Merged revisions 123271 via svnmerge from
[asterisk-bristuff.git] / configure
blob987fe0f3345e54bc8f5b42ff15de9264b854a6ec
1 #! /bin/sh
2 # From configure.ac Revision: 118608 .
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 ICONV_LIB
772 ICONV_INCLUDE
773 ICONV_DIR
774 PBX_ICONV
775 IKSEMEL_LIB
776 IKSEMEL_INCLUDE
777 IKSEMEL_DIR
778 PBX_IKSEMEL
779 IMAP_TK_LIB
780 IMAP_TK_INCLUDE
781 IMAP_TK_DIR
782 PBX_IMAP_TK
783 ISDNNET_LIB
784 ISDNNET_INCLUDE
785 ISDNNET_DIR
786 PBX_ISDNNET
787 JACK_LIB
788 JACK_INCLUDE
789 JACK_DIR
790 PBX_JACK
791 LDAP_LIB
792 LDAP_INCLUDE
793 LDAP_DIR
794 PBX_LDAP
795 LTDL_LIB
796 LTDL_INCLUDE
797 LTDL_DIR
798 PBX_LTDL
799 LUA_LIB
800 LUA_INCLUDE
801 LUA_DIR
802 PBX_LUA
803 MISDN_LIB
804 MISDN_INCLUDE
805 MISDN_DIR
806 PBX_MISDN
807 NBS_LIB
808 NBS_INCLUDE
809 NBS_DIR
810 PBX_NBS
811 NCURSES_LIB
812 NCURSES_INCLUDE
813 NCURSES_DIR
814 PBX_NCURSES
815 NETSNMP_LIB
816 NETSNMP_INCLUDE
817 NETSNMP_DIR
818 PBX_NETSNMP
819 NEWT_LIB
820 NEWT_INCLUDE
821 NEWT_DIR
822 PBX_NEWT
823 UNIXODBC_LIB
824 UNIXODBC_INCLUDE
825 UNIXODBC_DIR
826 PBX_UNIXODBC
827 OGG_LIB
828 OGG_INCLUDE
829 OGG_DIR
830 PBX_OGG
831 OSPTK_LIB
832 OSPTK_INCLUDE
833 OSPTK_DIR
834 PBX_OSPTK
835 OSS_LIB
836 OSS_INCLUDE
837 OSS_DIR
838 PBX_OSS
839 PGSQL_LIB
840 PGSQL_INCLUDE
841 PGSQL_DIR
842 PBX_PGSQL
843 POPT_LIB
844 POPT_INCLUDE
845 POPT_DIR
846 PBX_POPT
847 PORTAUDIO_LIB
848 PORTAUDIO_INCLUDE
849 PORTAUDIO_DIR
850 PBX_PORTAUDIO
851 PRI_LIB
852 PRI_INCLUDE
853 PRI_DIR
854 PBX_PRI
855 SS7_LIB
856 SS7_INCLUDE
857 SS7_DIR
858 PBX_SS7
859 PWLIB_LIB
860 PWLIB_INCLUDE
861 PWLIB_DIR
862 PBX_PWLIB
863 OPENH323_LIB
864 OPENH323_INCLUDE
865 OPENH323_DIR
866 PBX_OPENH323
867 RADIUS_LIB
868 RADIUS_INCLUDE
869 RADIUS_DIR
870 PBX_RADIUS
871 SDL_LIB
872 SDL_INCLUDE
873 SDL_DIR
874 PBX_SDL
875 SDL_IMAGE_LIB
876 SDL_IMAGE_INCLUDE
877 SDL_IMAGE_DIR
878 PBX_SDL_IMAGE
879 SPEEX_LIB
880 SPEEX_INCLUDE
881 SPEEX_DIR
882 PBX_SPEEX
883 SPEEXDSP_LIB
884 SPEEXDSP_INCLUDE
885 SPEEXDSP_DIR
886 PBX_SPEEXDSP
887 SQLITE_LIB
888 SQLITE_INCLUDE
889 SQLITE_DIR
890 PBX_SQLITE
891 SQLITE3_LIB
892 SQLITE3_INCLUDE
893 SQLITE3_DIR
894 PBX_SQLITE3
895 SUPPSERV_LIB
896 SUPPSERV_INCLUDE
897 SUPPSERV_DIR
898 PBX_SUPPSERV
899 OPENSSL_LIB
900 OPENSSL_INCLUDE
901 OPENSSL_DIR
902 PBX_OPENSSL
903 FREETDS_LIB
904 FREETDS_INCLUDE
905 FREETDS_DIR
906 PBX_FREETDS
907 TERMCAP_LIB
908 TERMCAP_INCLUDE
909 TERMCAP_DIR
910 PBX_TERMCAP
911 TINFO_LIB
912 TINFO_INCLUDE
913 TINFO_DIR
914 PBX_TINFO
915 TONEZONE_LIB
916 TONEZONE_INCLUDE
917 TONEZONE_DIR
918 PBX_TONEZONE
919 USB_LIB
920 USB_INCLUDE
921 USB_DIR
922 PBX_USB
923 VORBIS_LIB
924 VORBIS_INCLUDE
925 VORBIS_DIR
926 PBX_VORBIS
927 VPB_LIB
928 VPB_INCLUDE
929 VPB_DIR
930 PBX_VPB
931 X11_LIB
932 X11_INCLUDE
933 X11_DIR
934 PBX_X11
935 ZLIB_LIB
936 ZLIB_INCLUDE
937 ZLIB_DIR
938 PBX_ZLIB
939 ALLOCA
940 LIBOBJS
941 POW_LIB
942 HAS_POLL
943 PBX_PTHREAD_RWLOCK_INITIALIZER
944 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
945 GC_CFLAGS
946 GC_LDFLAGS
947 AST_DECLARATION_AFTER_STATEMENT
948 AST_NO_STRICT_OVERFLOW
949 PBX_RTLD_NOLOAD
950 PBX_IP_MTU_DISCOVER
951 GSM_INTERNAL
952 PBX_MISDN_FAC_RESULT
953 PBX_MISDN_FAC_ERROR
954 CONFIG_NETSNMP
955 PG_CONFIG
956 PTLIB_CONFIG
957 PWLIBDIR
958 PWLIB_INCDIR
959 PWLIB_LIBDIR
960 PWLIB_PLATFORM
961 OPENH323DIR
962 OPENH323_INCDIR
963 OPENH323_LIBDIR
964 OPENH323_SUFFIX
965 OPENH323_BUILD
966 PBX_SPEEX_PREPROCESS
967 CONFIG_GMIME
968 EDITLINE_LIB
969 PBX_H323
970 PBX_IXJUSER
971 CONFIG_SDL
972 CONFIG_GTK
973 PKGCONFIG
974 CURL_CONFIG
975 LTLIBOBJS'
976 ac_subst_files=''
977 ac_precious_vars='build_alias
978 host_alias
979 target_alias
981 CFLAGS
982 LDFLAGS
983 LIBS
984 CPPFLAGS
987 CXXFLAGS
989 CXXCPP'
992 # Initialize some variables set by options.
993 ac_init_help=
994 ac_init_version=false
995 # The variables have the same names as the options, with
996 # dashes changed to underlines.
997 cache_file=/dev/null
998 exec_prefix=NONE
999 no_create=
1000 no_recursion=
1001 prefix=NONE
1002 program_prefix=NONE
1003 program_suffix=NONE
1004 program_transform_name=s,x,x,
1005 silent=
1006 site=
1007 srcdir=
1008 verbose=
1009 x_includes=NONE
1010 x_libraries=NONE
1012 # Installation directory options.
1013 # These are left unexpanded so users can "make install exec_prefix=/foo"
1014 # and all the variables that are supposed to be based on exec_prefix
1015 # by default will actually change.
1016 # Use braces instead of parens because sh, perl, etc. also accept them.
1017 # (The list follows the same order as the GNU Coding Standards.)
1018 bindir='${exec_prefix}/bin'
1019 sbindir='${exec_prefix}/sbin'
1020 libexecdir='${exec_prefix}/libexec'
1021 datarootdir='${prefix}/share'
1022 datadir='${datarootdir}'
1023 sysconfdir='${prefix}/etc'
1024 sharedstatedir='${prefix}/com'
1025 localstatedir='${prefix}/var'
1026 includedir='${prefix}/include'
1027 oldincludedir='/usr/include'
1028 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1029 infodir='${datarootdir}/info'
1030 htmldir='${docdir}'
1031 dvidir='${docdir}'
1032 pdfdir='${docdir}'
1033 psdir='${docdir}'
1034 libdir='${exec_prefix}/lib'
1035 localedir='${datarootdir}/locale'
1036 mandir='${datarootdir}/man'
1038 ac_prev=
1039 ac_dashdash=
1040 for ac_option
1042 # If the previous option needs an argument, assign it.
1043 if test -n "$ac_prev"; then
1044 eval $ac_prev=\$ac_option
1045 ac_prev=
1046 continue
1049 case $ac_option in
1050 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1051 *) ac_optarg=yes ;;
1052 esac
1054 # Accept the important Cygnus configure options, so we can diagnose typos.
1056 case $ac_dashdash$ac_option in
1058 ac_dashdash=yes ;;
1060 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1061 ac_prev=bindir ;;
1062 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1063 bindir=$ac_optarg ;;
1065 -build | --build | --buil | --bui | --bu)
1066 ac_prev=build_alias ;;
1067 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1068 build_alias=$ac_optarg ;;
1070 -cache-file | --cache-file | --cache-fil | --cache-fi \
1071 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1072 ac_prev=cache_file ;;
1073 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1074 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1075 cache_file=$ac_optarg ;;
1077 --config-cache | -C)
1078 cache_file=config.cache ;;
1080 -datadir | --datadir | --datadi | --datad)
1081 ac_prev=datadir ;;
1082 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1083 datadir=$ac_optarg ;;
1085 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1086 | --dataroo | --dataro | --datar)
1087 ac_prev=datarootdir ;;
1088 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1089 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1090 datarootdir=$ac_optarg ;;
1092 -disable-* | --disable-*)
1093 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097 { (exit 1); exit 1; }; }
1098 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1099 eval enable_$ac_feature=no ;;
1101 -docdir | --docdir | --docdi | --doc | --do)
1102 ac_prev=docdir ;;
1103 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1104 docdir=$ac_optarg ;;
1106 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1107 ac_prev=dvidir ;;
1108 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1109 dvidir=$ac_optarg ;;
1111 -enable-* | --enable-*)
1112 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1118 eval enable_$ac_feature=\$ac_optarg ;;
1120 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1121 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1122 | --exec | --exe | --ex)
1123 ac_prev=exec_prefix ;;
1124 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1125 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1126 | --exec=* | --exe=* | --ex=*)
1127 exec_prefix=$ac_optarg ;;
1129 -gas | --gas | --ga | --g)
1130 # Obsolete; use --with-gas.
1131 with_gas=yes ;;
1133 -help | --help | --hel | --he | -h)
1134 ac_init_help=long ;;
1135 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1136 ac_init_help=recursive ;;
1137 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1138 ac_init_help=short ;;
1140 -host | --host | --hos | --ho)
1141 ac_prev=host_alias ;;
1142 -host=* | --host=* | --hos=* | --ho=*)
1143 host_alias=$ac_optarg ;;
1145 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1146 ac_prev=htmldir ;;
1147 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1148 | --ht=*)
1149 htmldir=$ac_optarg ;;
1151 -includedir | --includedir | --includedi | --included | --include \
1152 | --includ | --inclu | --incl | --inc)
1153 ac_prev=includedir ;;
1154 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1155 | --includ=* | --inclu=* | --incl=* | --inc=*)
1156 includedir=$ac_optarg ;;
1158 -infodir | --infodir | --infodi | --infod | --info | --inf)
1159 ac_prev=infodir ;;
1160 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1161 infodir=$ac_optarg ;;
1163 -libdir | --libdir | --libdi | --libd)
1164 ac_prev=libdir ;;
1165 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1166 libdir=$ac_optarg ;;
1168 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1169 | --libexe | --libex | --libe)
1170 ac_prev=libexecdir ;;
1171 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1172 | --libexe=* | --libex=* | --libe=*)
1173 libexecdir=$ac_optarg ;;
1175 -localedir | --localedir | --localedi | --localed | --locale)
1176 ac_prev=localedir ;;
1177 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1178 localedir=$ac_optarg ;;
1180 -localstatedir | --localstatedir | --localstatedi | --localstated \
1181 | --localstate | --localstat | --localsta | --localst | --locals)
1182 ac_prev=localstatedir ;;
1183 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1184 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1185 localstatedir=$ac_optarg ;;
1187 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1188 ac_prev=mandir ;;
1189 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1190 mandir=$ac_optarg ;;
1192 -nfp | --nfp | --nf)
1193 # Obsolete; use --without-fp.
1194 with_fp=no ;;
1196 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1197 | --no-cr | --no-c | -n)
1198 no_create=yes ;;
1200 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1201 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1202 no_recursion=yes ;;
1204 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1205 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1206 | --oldin | --oldi | --old | --ol | --o)
1207 ac_prev=oldincludedir ;;
1208 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1209 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1210 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1211 oldincludedir=$ac_optarg ;;
1213 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1214 ac_prev=prefix ;;
1215 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1216 prefix=$ac_optarg ;;
1218 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1219 | --program-pre | --program-pr | --program-p)
1220 ac_prev=program_prefix ;;
1221 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1222 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1223 program_prefix=$ac_optarg ;;
1225 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1226 | --program-suf | --program-su | --program-s)
1227 ac_prev=program_suffix ;;
1228 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1229 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1230 program_suffix=$ac_optarg ;;
1232 -program-transform-name | --program-transform-name \
1233 | --program-transform-nam | --program-transform-na \
1234 | --program-transform-n | --program-transform- \
1235 | --program-transform | --program-transfor \
1236 | --program-transfo | --program-transf \
1237 | --program-trans | --program-tran \
1238 | --progr-tra | --program-tr | --program-t)
1239 ac_prev=program_transform_name ;;
1240 -program-transform-name=* | --program-transform-name=* \
1241 | --program-transform-nam=* | --program-transform-na=* \
1242 | --program-transform-n=* | --program-transform-=* \
1243 | --program-transform=* | --program-transfor=* \
1244 | --program-transfo=* | --program-transf=* \
1245 | --program-trans=* | --program-tran=* \
1246 | --progr-tra=* | --program-tr=* | --program-t=*)
1247 program_transform_name=$ac_optarg ;;
1249 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1250 ac_prev=pdfdir ;;
1251 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1252 pdfdir=$ac_optarg ;;
1254 -psdir | --psdir | --psdi | --psd | --ps)
1255 ac_prev=psdir ;;
1256 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1257 psdir=$ac_optarg ;;
1259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260 | -silent | --silent | --silen | --sile | --sil)
1261 silent=yes ;;
1263 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1264 ac_prev=sbindir ;;
1265 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1266 | --sbi=* | --sb=*)
1267 sbindir=$ac_optarg ;;
1269 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1270 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1271 | --sharedst | --shareds | --shared | --share | --shar \
1272 | --sha | --sh)
1273 ac_prev=sharedstatedir ;;
1274 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1275 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1276 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1277 | --sha=* | --sh=*)
1278 sharedstatedir=$ac_optarg ;;
1280 -site | --site | --sit)
1281 ac_prev=site ;;
1282 -site=* | --site=* | --sit=*)
1283 site=$ac_optarg ;;
1285 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1286 ac_prev=srcdir ;;
1287 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1288 srcdir=$ac_optarg ;;
1290 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1291 | --syscon | --sysco | --sysc | --sys | --sy)
1292 ac_prev=sysconfdir ;;
1293 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1294 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1295 sysconfdir=$ac_optarg ;;
1297 -target | --target | --targe | --targ | --tar | --ta | --t)
1298 ac_prev=target_alias ;;
1299 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1300 target_alias=$ac_optarg ;;
1302 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1303 verbose=yes ;;
1305 -version | --version | --versio | --versi | --vers | -V)
1306 ac_init_version=: ;;
1308 -with-* | --with-*)
1309 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1312 { echo "$as_me: error: invalid package name: $ac_package" >&2
1313 { (exit 1); exit 1; }; }
1314 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1315 eval with_$ac_package=\$ac_optarg ;;
1317 -without-* | --without-*)
1318 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 { echo "$as_me: error: invalid package name: $ac_package" >&2
1322 { (exit 1); exit 1; }; }
1323 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1324 eval with_$ac_package=no ;;
1326 --x)
1327 # Obsolete; use --with-x.
1328 with_x=yes ;;
1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331 | --x-incl | --x-inc | --x-in | --x-i)
1332 ac_prev=x_includes ;;
1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335 x_includes=$ac_optarg ;;
1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339 ac_prev=x_libraries ;;
1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342 x_libraries=$ac_optarg ;;
1344 -*) { echo "$as_me: error: unrecognized option: $ac_option
1345 Try \`$0 --help' for more information." >&2
1346 { (exit 1); exit 1; }; }
1349 *=*)
1350 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1353 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1354 { (exit 1); exit 1; }; }
1355 eval $ac_envvar=\$ac_optarg
1356 export $ac_envvar ;;
1359 # FIXME: should be removed in autoconf 3.0.
1360 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1366 esac
1367 done
1369 if test -n "$ac_prev"; then
1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371 { echo "$as_me: error: missing argument to $ac_option" >&2
1372 { (exit 1); exit 1; }; }
1375 # Be sure to have absolute directory names.
1376 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1377 datadir sysconfdir sharedstatedir localstatedir includedir \
1378 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1379 libdir localedir mandir
1381 eval ac_val=\$$ac_var
1382 case $ac_val in
1383 [\\/$]* | ?:[\\/]* ) continue;;
1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385 esac
1386 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1387 { (exit 1); exit 1; }; }
1388 done
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 { echo "$as_me: error: Working directory cannot be determined" >&2
1418 { (exit 1); exit 1; }; }
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 { echo "$as_me: error: pwd does not report name of working directory" >&2
1421 { (exit 1); exit 1; }; }
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426 ac_srcdir_defaulted=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir=`$as_dirname -- "$0" ||
1429 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$0" : 'X\(//\)[^/]' \| \
1431 X"$0" : 'X\(//\)$' \| \
1432 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1433 echo X"$0" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 s//\1/
1438 /^X\(\/\/\)[^/].*/{
1439 s//\1/
1442 /^X\(\/\/\)$/{
1443 s//\1/
1446 /^X\(\/\).*/{
1447 s//\1/
1450 s/.*/./; q'`
1451 srcdir=$ac_confdir
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 srcdir=..
1455 else
1456 ac_srcdir_defaulted=no
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1461 { (exit 1); exit 1; }; }
1463 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464 ac_abs_confdir=`(
1465 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1466 { (exit 1); exit 1; }; }
1467 pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470 srcdir=.
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_${ac_var}_value=\$${ac_var}
1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1486 # Report the --help message.
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1491 cat <<_ACEOF
1492 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1499 Defaults for the options are specified in brackets.
1501 Configuration:
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 [PREFIX]
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1523 For better control, use the options below.
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1545 _ACEOF
1547 cat <<\_ACEOF
1549 System types:
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552 _ACEOF
1555 if test -n "$ac_init_help"; then
1556 case $ac_init_help in
1557 short | recursive ) echo "Configuration of asterisk 1.6:";;
1558 esac
1559 cat <<\_ACEOF
1561 Optional Features:
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --enable-dev-mode Turn on developer mode
1565 --disable-largefile omit support for large files
1567 Optional Packages:
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1570 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1571 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1572 --with-execinfo=PATH use Stack Backtrace support files in PATH
1573 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1574 --with-curl=PATH use cURL files in PATH
1575 --with-curses=PATH use curses files in PATH
1576 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1577 --with-dahdi=PATH use DAHDI files in PATH
1578 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1579 --with-gsm=PATH use External GSM library files in PATH , use
1580 'internal' GSM otherwise
1581 --with-gtk=PATH use gtk libraries files in PATH
1582 --with-gtk2=PATH use gtk2 libraries files in PATH
1583 --with-gmime=PATH use GMime library files in PATH
1584 --with-iconv=PATH use Iconv Library files in PATH
1585 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1586 --with-imap=PATH use UW IMAP Toolkit files in PATH
1587 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1588 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1589 --with-ldap=PATH use OpenLDAP files in PATH
1590 --with-ltdl=PATH use libtool files in PATH
1591 --with-lua=PATH use Lua files in PATH
1592 --with-misdn=PATH use mISDN User Library files in PATH
1593 --with-nbs=PATH use Network Broadcast Sound files in PATH
1594 --with-ncurses=PATH use ncurses files in PATH
1595 --with-netsnmp=PATH use Net-SNMP files in PATH
1596 --with-newt=PATH use newt files in PATH
1597 --with-odbc=PATH use unixODBC files in PATH
1598 --with-ogg=PATH use OGG files in PATH
1599 --with-osptk=PATH use OSP Toolkit files in PATH
1600 --with-oss=PATH use Open Sound System files in PATH
1601 --with-postgres=PATH use PostgreSQL files in PATH
1602 --with-popt=PATH use popt files in PATH
1603 --with-portaudio=PATH use PortAudio files in PATH
1604 --with-pri=PATH use ISDN PRI files in PATH
1605 --with-ss7=PATH use ISDN SS7 files in PATH
1606 --with-pwlib=PATH use PWlib files in PATH
1607 --with-h323=PATH use OpenH323 files in PATH
1608 --with-radius=PATH use Radius Client files in PATH
1609 --with-sdl=PATH use Sdl files in PATH
1610 --with-SDL_image=PATH use Sdl Image library files in PATH
1611 --with-speex=PATH use Speex files in PATH
1612 --with-speexdsp=PATH use Speexdsp files in PATH
1613 --with-sqlite=PATH use SQLite files in PATH
1614 --with-sqlite3=PATH use SQLite files in PATH
1615 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1616 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1617 PATH
1618 --with-tds=PATH use FreeTDS files in PATH
1619 --with-termcap=PATH use Termcap files in PATH
1620 --with-tinfo=PATH use Term Info files in PATH
1621 --with-tonezone=PATH use tonezone files in PATH
1622 --with-usb=PATH use usb files in PATH
1623 --with-vorbis=PATH use Vorbis files in PATH
1624 --with-vpb=PATH use Voicetronix API files in PATH
1625 --with-x11=PATH use X11 support files in PATH
1626 --with-z=PATH use zlib files in PATH
1628 Some influential environment variables:
1629 CC C compiler command
1630 CFLAGS C compiler flags
1631 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1632 nonstandard directory <lib dir>
1633 LIBS libraries to pass to the linker, e.g. -l<library>
1634 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1635 you have headers in a nonstandard directory <include dir>
1636 CPP C preprocessor
1637 CXX C++ compiler command
1638 CXXFLAGS C++ compiler flags
1639 CXXCPP C++ preprocessor
1641 Use these variables to override the choices made by `configure' or to help
1642 it to find libraries and programs with nonstandard names/locations.
1644 Report bugs to <www.asterisk.org>.
1645 _ACEOF
1646 ac_status=$?
1649 if test "$ac_init_help" = "recursive"; then
1650 # If there are subdirs, report their specific --help.
1651 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1652 test -d "$ac_dir" || continue
1653 ac_builddir=.
1655 case "$ac_dir" in
1656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1659 # A ".." for each directory in $ac_dir_suffix.
1660 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1661 case $ac_top_builddir_sub in
1662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664 esac ;;
1665 esac
1666 ac_abs_top_builddir=$ac_pwd
1667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668 # for backward compatibility:
1669 ac_top_builddir=$ac_top_build_prefix
1671 case $srcdir in
1672 .) # We are building in place.
1673 ac_srcdir=.
1674 ac_top_srcdir=$ac_top_builddir_sub
1675 ac_abs_top_srcdir=$ac_pwd ;;
1676 [\\/]* | ?:[\\/]* ) # Absolute name.
1677 ac_srcdir=$srcdir$ac_dir_suffix;
1678 ac_top_srcdir=$srcdir
1679 ac_abs_top_srcdir=$srcdir ;;
1680 *) # Relative name.
1681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682 ac_top_srcdir=$ac_top_build_prefix$srcdir
1683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684 esac
1685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687 cd "$ac_dir" || { ac_status=$?; continue; }
1688 # Check for guested configure.
1689 if test -f "$ac_srcdir/configure.gnu"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692 elif test -f "$ac_srcdir/configure"; then
1693 echo &&
1694 $SHELL "$ac_srcdir/configure" --help=recursive
1695 else
1696 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697 fi || ac_status=$?
1698 cd "$ac_pwd" || { ac_status=$?; break; }
1699 done
1702 test -n "$ac_init_help" && exit $ac_status
1703 if $ac_init_version; then
1704 cat <<\_ACEOF
1705 asterisk configure 1.6
1706 generated by GNU Autoconf 2.61
1708 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1709 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1713 "Asterisk"
1714 _ACEOF
1715 exit
1717 cat >config.log <<_ACEOF
1718 This file contains any messages produced by compilers while
1719 running configure, to aid debugging if configure makes a mistake.
1721 It was created by asterisk $as_me 1.6, which was
1722 generated by GNU Autoconf 2.61. Invocation command line was
1724 $ $0 $@
1726 _ACEOF
1727 exec 5>>config.log
1729 cat <<_ASUNAME
1730 ## --------- ##
1731 ## Platform. ##
1732 ## --------- ##
1734 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1735 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1736 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1737 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1738 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1740 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1741 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1743 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1744 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1745 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1746 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1747 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1748 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1749 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1751 _ASUNAME
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1756 IFS=$as_save_IFS
1757 test -z "$as_dir" && as_dir=.
1758 echo "PATH: $as_dir"
1759 done
1760 IFS=$as_save_IFS
1762 } >&5
1764 cat >&5 <<_ACEOF
1767 ## ----------- ##
1768 ## Core tests. ##
1769 ## ----------- ##
1771 _ACEOF
1774 # Keep a trace of the command line.
1775 # Strip out --no-create and --no-recursion so they do not pile up.
1776 # Strip out --silent because we don't want to record it for future runs.
1777 # Also quote any args containing shell meta-characters.
1778 # Make two passes to allow for proper duplicate-argument suppression.
1779 ac_configure_args=
1780 ac_configure_args0=
1781 ac_configure_args1=
1782 ac_must_keep_next=false
1783 for ac_pass in 1 2
1785 for ac_arg
1787 case $ac_arg in
1788 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1790 | -silent | --silent | --silen | --sile | --sil)
1791 continue ;;
1792 *\'*)
1793 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1794 esac
1795 case $ac_pass in
1796 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1798 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1799 if test $ac_must_keep_next = true; then
1800 ac_must_keep_next=false # Got value, back to normal.
1801 else
1802 case $ac_arg in
1803 *=* | --config-cache | -C | -disable-* | --disable-* \
1804 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1805 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1806 | -with-* | --with-* | -without-* | --without-* | --x)
1807 case "$ac_configure_args0 " in
1808 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1809 esac
1811 -* ) ac_must_keep_next=true ;;
1812 esac
1814 ac_configure_args="$ac_configure_args '$ac_arg'"
1816 esac
1817 done
1818 done
1819 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1820 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1822 # When interrupted or exit'd, cleanup temporary files, and complete
1823 # config.log. We remove comments because anyway the quotes in there
1824 # would cause problems or look ugly.
1825 # WARNING: Use '\'' to represent an apostrophe within the trap.
1826 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1827 trap 'exit_status=$?
1828 # Save into config.log some information that might help in debugging.
1830 echo
1832 cat <<\_ASBOX
1833 ## ---------------- ##
1834 ## Cache variables. ##
1835 ## ---------------- ##
1836 _ASBOX
1837 echo
1838 # The following way of writing the cache mishandles newlines in values,
1840 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1841 eval ac_val=\$$ac_var
1842 case $ac_val in #(
1843 *${as_nl}*)
1844 case $ac_var in #(
1845 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1846 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1847 esac
1848 case $ac_var in #(
1849 _ | IFS | as_nl) ;; #(
1850 *) $as_unset $ac_var ;;
1851 esac ;;
1852 esac
1853 done
1854 (set) 2>&1 |
1855 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1856 *${as_nl}ac_space=\ *)
1857 sed -n \
1858 "s/'\''/'\''\\\\'\'''\''/g;
1859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1860 ;; #(
1862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1864 esac |
1865 sort
1867 echo
1869 cat <<\_ASBOX
1870 ## ----------------- ##
1871 ## Output variables. ##
1872 ## ----------------- ##
1873 _ASBOX
1874 echo
1875 for ac_var in $ac_subst_vars
1877 eval ac_val=\$$ac_var
1878 case $ac_val in
1879 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880 esac
1881 echo "$ac_var='\''$ac_val'\''"
1882 done | sort
1883 echo
1885 if test -n "$ac_subst_files"; then
1886 cat <<\_ASBOX
1887 ## ------------------- ##
1888 ## File substitutions. ##
1889 ## ------------------- ##
1890 _ASBOX
1891 echo
1892 for ac_var in $ac_subst_files
1894 eval ac_val=\$$ac_var
1895 case $ac_val in
1896 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897 esac
1898 echo "$ac_var='\''$ac_val'\''"
1899 done | sort
1900 echo
1903 if test -s confdefs.h; then
1904 cat <<\_ASBOX
1905 ## ----------- ##
1906 ## confdefs.h. ##
1907 ## ----------- ##
1908 _ASBOX
1909 echo
1910 cat confdefs.h
1911 echo
1913 test "$ac_signal" != 0 &&
1914 echo "$as_me: caught signal $ac_signal"
1915 echo "$as_me: exit $exit_status"
1916 } >&5
1917 rm -f core *.core core.conftest.* &&
1918 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1919 exit $exit_status
1921 for ac_signal in 1 2 13 15; do
1922 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1923 done
1924 ac_signal=0
1926 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1927 rm -f -r conftest* confdefs.h
1929 # Predefined preprocessor variables.
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_NAME "$PACKAGE_NAME"
1933 _ACEOF
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1938 _ACEOF
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1943 _ACEOF
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_STRING "$PACKAGE_STRING"
1948 _ACEOF
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1953 _ACEOF
1956 # Let the site file select an alternate cache file if it wants to.
1957 # Prefer explicitly selected file to automatically selected ones.
1958 if test -n "$CONFIG_SITE"; then
1959 set x "$CONFIG_SITE"
1960 elif test "x$prefix" != xNONE; then
1961 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1962 else
1963 set x "$ac_default_prefix/share/config.site" \
1964 "$ac_default_prefix/etc/config.site"
1966 shift
1967 for ac_site_file
1969 if test -r "$ac_site_file"; then
1970 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1971 echo "$as_me: loading site script $ac_site_file" >&6;}
1972 sed 's/^/| /' "$ac_site_file" >&5
1973 . "$ac_site_file"
1975 done
1977 if test -r "$cache_file"; then
1978 # Some versions of bash will fail to source /dev/null (special
1979 # files actually), so we avoid doing that.
1980 if test -f "$cache_file"; then
1981 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1982 echo "$as_me: loading cache $cache_file" >&6;}
1983 case $cache_file in
1984 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1985 *) . "./$cache_file";;
1986 esac
1988 else
1989 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1990 echo "$as_me: creating cache $cache_file" >&6;}
1991 >$cache_file
1994 ac_header_list="$ac_header_list utime.h"
1995 # Check that the precious variables saved in the cache have kept the same
1996 # value.
1997 ac_cache_corrupted=false
1998 for ac_var in $ac_precious_vars; do
1999 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2000 eval ac_new_set=\$ac_env_${ac_var}_set
2001 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2002 eval ac_new_val=\$ac_env_${ac_var}_value
2003 case $ac_old_set,$ac_new_set in
2004 set,)
2005 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2006 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2007 ac_cache_corrupted=: ;;
2008 ,set)
2009 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2010 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2011 ac_cache_corrupted=: ;;
2012 ,);;
2014 if test "x$ac_old_val" != "x$ac_new_val"; then
2015 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2016 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2017 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2018 echo "$as_me: former value: $ac_old_val" >&2;}
2019 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2020 echo "$as_me: current value: $ac_new_val" >&2;}
2021 ac_cache_corrupted=:
2022 fi;;
2023 esac
2024 # Pass precious variables to config.status.
2025 if test "$ac_new_set" = set; then
2026 case $ac_new_val in
2027 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2028 *) ac_arg=$ac_var=$ac_new_val ;;
2029 esac
2030 case " $ac_configure_args " in
2031 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2032 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2033 esac
2035 done
2036 if $ac_cache_corrupted; then
2037 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2038 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2039 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2040 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2041 { (exit 1); exit 1; }; }
2068 ac_ext=c
2069 ac_cpp='$CPP $CPPFLAGS'
2070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076 # cross-compile macros
2077 ac_aux_dir=
2078 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2079 if test -f "$ac_dir/install-sh"; then
2080 ac_aux_dir=$ac_dir
2081 ac_install_sh="$ac_aux_dir/install-sh -c"
2082 break
2083 elif test -f "$ac_dir/install.sh"; then
2084 ac_aux_dir=$ac_dir
2085 ac_install_sh="$ac_aux_dir/install.sh -c"
2086 break
2087 elif test -f "$ac_dir/shtool"; then
2088 ac_aux_dir=$ac_dir
2089 ac_install_sh="$ac_aux_dir/shtool install -c"
2090 break
2092 done
2093 if test -z "$ac_aux_dir"; then
2094 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2095 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2096 { (exit 1); exit 1; }; }
2099 # These three variables are undocumented and unsupported,
2100 # and are intended to be withdrawn in a future Autoconf release.
2101 # They can cause serious problems if a builder's source tree is in a directory
2102 # whose full name contains unusual characters.
2103 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2104 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2105 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2108 # Make sure we can run config.sub.
2109 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2110 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2111 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2112 { (exit 1); exit 1; }; }
2114 { echo "$as_me:$LINENO: checking build system type" >&5
2115 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2116 if test "${ac_cv_build+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119 ac_build_alias=$build_alias
2120 test "x$ac_build_alias" = x &&
2121 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2122 test "x$ac_build_alias" = x &&
2123 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2124 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2125 { (exit 1); exit 1; }; }
2126 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2127 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2128 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2129 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2133 echo "${ECHO_T}$ac_cv_build" >&6; }
2134 case $ac_cv_build in
2135 *-*-*) ;;
2136 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2137 echo "$as_me: error: invalid value of canonical build" >&2;}
2138 { (exit 1); exit 1; }; };;
2139 esac
2140 build=$ac_cv_build
2141 ac_save_IFS=$IFS; IFS='-'
2142 set x $ac_cv_build
2143 shift
2144 build_cpu=$1
2145 build_vendor=$2
2146 shift; shift
2147 # Remember, the first character of IFS is used to create $*,
2148 # except with old shells:
2149 build_os=$*
2150 IFS=$ac_save_IFS
2151 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2154 { echo "$as_me:$LINENO: checking host system type" >&5
2155 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2156 if test "${ac_cv_host+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159 if test "x$host_alias" = x; then
2160 ac_cv_host=$ac_cv_build
2161 else
2162 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2163 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2164 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2165 { (exit 1); exit 1; }; }
2169 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2170 echo "${ECHO_T}$ac_cv_host" >&6; }
2171 case $ac_cv_host in
2172 *-*-*) ;;
2173 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2174 echo "$as_me: error: invalid value of canonical host" >&2;}
2175 { (exit 1); exit 1; }; };;
2176 esac
2177 host=$ac_cv_host
2178 ac_save_IFS=$IFS; IFS='-'
2179 set x $ac_cv_host
2180 shift
2181 host_cpu=$1
2182 host_vendor=$2
2183 shift; shift
2184 # Remember, the first character of IFS is used to create $*,
2185 # except with old shells:
2186 host_os=$*
2187 IFS=$ac_save_IFS
2188 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2192 # check existence of the package
2195 # specify output header file
2196 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2203 cat >>confdefs.h <<\_ACEOF
2204 #define _GNU_SOURCE 1
2205 _ACEOF
2208 ac_ext=c
2209 ac_cpp='$CPP $CPPFLAGS'
2210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213 if test -n "$ac_tool_prefix"; then
2214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2215 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218 if test "${ac_cv_prog_CC+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 if test -n "$CC"; then
2222 ac_cv_prog_CC="$CC" # Let the user override the test.
2223 else
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 break 2
2235 done
2236 done
2237 IFS=$as_save_IFS
2241 CC=$ac_cv_prog_CC
2242 if test -n "$CC"; then
2243 { echo "$as_me:$LINENO: result: $CC" >&5
2244 echo "${ECHO_T}$CC" >&6; }
2245 else
2246 { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2252 if test -z "$ac_cv_prog_CC"; then
2253 ac_ct_CC=$CC
2254 # Extract the first word of "gcc", so it can be a program name with args.
2255 set dummy gcc; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261 if test -n "$ac_ct_CC"; then
2262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2263 else
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271 ac_cv_prog_ac_ct_CC="gcc"
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 break 2
2275 done
2276 done
2277 IFS=$as_save_IFS
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284 echo "${ECHO_T}$ac_ct_CC" >&6; }
2285 else
2286 { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2290 if test "x$ac_ct_CC" = x; then
2291 CC=""
2292 else
2293 case $cross_compiling:$ac_tool_warned in
2294 yes:)
2295 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2296 whose name does not start with the host triplet. If you think this
2297 configuration is useful to you, please write to autoconf@gnu.org." >&5
2298 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2299 whose name does not start with the host triplet. If you think this
2300 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2301 ac_tool_warned=yes ;;
2302 esac
2303 CC=$ac_ct_CC
2305 else
2306 CC="$ac_cv_prog_CC"
2309 if test -z "$CC"; then
2310 if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2312 set dummy ${ac_tool_prefix}cc; ac_word=$2
2313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2315 if test "${ac_cv_prog_CC+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318 if test -n "$CC"; then
2319 ac_cv_prog_CC="$CC" # Let the user override the test.
2320 else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328 ac_cv_prog_CC="${ac_tool_prefix}cc"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 break 2
2332 done
2333 done
2334 IFS=$as_save_IFS
2338 CC=$ac_cv_prog_CC
2339 if test -n "$CC"; then
2340 { echo "$as_me:$LINENO: result: $CC" >&5
2341 echo "${ECHO_T}$CC" >&6; }
2342 else
2343 { echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6; }
2350 if test -z "$CC"; then
2351 # Extract the first word of "cc", so it can be a program name with args.
2352 set dummy cc; ac_word=$2
2353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2355 if test "${ac_cv_prog_CC+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358 if test -n "$CC"; then
2359 ac_cv_prog_CC="$CC" # Let the user override the test.
2360 else
2361 ac_prog_rejected=no
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2370 ac_prog_rejected=yes
2371 continue
2373 ac_cv_prog_CC="cc"
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 break 2
2377 done
2378 done
2379 IFS=$as_save_IFS
2381 if test $ac_prog_rejected = yes; then
2382 # We found a bogon in the path, so make sure we never use it.
2383 set dummy $ac_cv_prog_CC
2384 shift
2385 if test $# != 0; then
2386 # We chose a different compiler from the bogus one.
2387 # However, it has the same basename, so the bogon will be chosen
2388 # first if we set CC to just the basename; use the full file name.
2389 shift
2390 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2395 CC=$ac_cv_prog_CC
2396 if test -n "$CC"; then
2397 { echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6; }
2399 else
2400 { echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6; }
2406 if test -z "$CC"; then
2407 if test -n "$ac_tool_prefix"; then
2408 for ac_prog in cl.exe
2410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2414 if test "${ac_cv_prog_CC+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417 if test -n "$CC"; then
2418 ac_cv_prog_CC="$CC" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2431 done
2432 done
2433 IFS=$as_save_IFS
2437 CC=$ac_cv_prog_CC
2438 if test -n "$CC"; then
2439 { echo "$as_me:$LINENO: result: $CC" >&5
2440 echo "${ECHO_T}$CC" >&6; }
2441 else
2442 { echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6; }
2447 test -n "$CC" && break
2448 done
2450 if test -z "$CC"; then
2451 ac_ct_CC=$CC
2452 for ac_prog in cl.exe
2454 # Extract the first word of "$ac_prog", so it can be a program name with args.
2455 set dummy $ac_prog; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461 if test -n "$ac_ct_CC"; then
2462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 ac_cv_prog_ac_ct_CC="$ac_prog"
2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2475 done
2476 done
2477 IFS=$as_save_IFS
2481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2482 if test -n "$ac_ct_CC"; then
2483 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2484 echo "${ECHO_T}$ac_ct_CC" >&6; }
2485 else
2486 { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2491 test -n "$ac_ct_CC" && break
2492 done
2494 if test "x$ac_ct_CC" = x; then
2495 CC=""
2496 else
2497 case $cross_compiling:$ac_tool_warned in
2498 yes:)
2499 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2500 whose name does not start with the host triplet. If you think this
2501 configuration is useful to you, please write to autoconf@gnu.org." >&5
2502 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2503 whose name does not start with the host triplet. If you think this
2504 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2505 ac_tool_warned=yes ;;
2506 esac
2507 CC=$ac_ct_CC
2514 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2515 See \`config.log' for more details." >&5
2516 echo "$as_me: error: no acceptable C compiler found in \$PATH
2517 See \`config.log' for more details." >&2;}
2518 { (exit 1); exit 1; }; }
2520 # Provide some information about the compiler.
2521 echo "$as_me:$LINENO: checking for C compiler version" >&5
2522 ac_compiler=`set X $ac_compile; echo $2`
2523 { (ac_try="$ac_compiler --version >&5"
2524 case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527 esac
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_compiler --version >&5") 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }
2533 { (ac_try="$ac_compiler -v >&5"
2534 case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537 esac
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_compiler -v >&5") 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }
2543 { (ac_try="$ac_compiler -V >&5"
2544 case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547 esac
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_compiler -V >&5") 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }
2554 cat >conftest.$ac_ext <<_ACEOF
2555 /* confdefs.h. */
2556 _ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h. */
2562 main ()
2566 return 0;
2568 _ACEOF
2569 ac_clean_files_save=$ac_clean_files
2570 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2571 # Try to create an executable without -o first, disregard a.out.
2572 # It will help us diagnose broken compilers, and finding out an intuition
2573 # of exeext.
2574 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2575 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2576 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2578 # List of possible output files, starting from the most likely.
2579 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2580 # only as a last resort. b.out is created by i960 compilers.
2581 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2583 # The IRIX 6 linker writes into existing files which may not be
2584 # executable, retaining their permissions. Remove them first so a
2585 # subsequent execution test works.
2586 ac_rmfiles=
2587 for ac_file in $ac_files
2589 case $ac_file in
2590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2591 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2592 esac
2593 done
2594 rm -f $ac_rmfiles
2596 if { (ac_try="$ac_link_default"
2597 case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_link_default") 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; then
2606 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2607 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2608 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2609 # so that the user can short-circuit this test for compilers unknown to
2610 # Autoconf.
2611 for ac_file in $ac_files ''
2613 test -f "$ac_file" || continue
2614 case $ac_file in
2615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2617 [ab].out )
2618 # We found the default executable, but exeext='' is most
2619 # certainly right.
2620 break;;
2621 *.* )
2622 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2623 then :; else
2624 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2626 # We set ac_cv_exeext here because the later test for it is not
2627 # safe: cross compilers may not add the suffix if given an `-o'
2628 # argument, so we may need to know it at that point already.
2629 # Even if this section looks crufty: it has the advantage of
2630 # actually working.
2631 break;;
2633 break;;
2634 esac
2635 done
2636 test "$ac_cv_exeext" = no && ac_cv_exeext=
2638 else
2639 ac_file=''
2642 { echo "$as_me:$LINENO: result: $ac_file" >&5
2643 echo "${ECHO_T}$ac_file" >&6; }
2644 if test -z "$ac_file"; then
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2648 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2649 See \`config.log' for more details." >&5
2650 echo "$as_me: error: C compiler cannot create executables
2651 See \`config.log' for more details." >&2;}
2652 { (exit 77); exit 77; }; }
2655 ac_exeext=$ac_cv_exeext
2657 # Check that the compiler produces executables we can run. If not, either
2658 # the compiler is broken, or we cross compile.
2659 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2660 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2661 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2662 # If not cross compiling, check that we can run a simple program.
2663 if test "$cross_compiling" != yes; then
2664 if { ac_try='./$ac_file'
2665 { (case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668 esac
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_try") 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 cross_compiling=no
2675 else
2676 if test "$cross_compiling" = maybe; then
2677 cross_compiling=yes
2678 else
2679 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2680 If you meant to cross compile, use \`--host'.
2681 See \`config.log' for more details." >&5
2682 echo "$as_me: error: cannot run C compiled programs.
2683 If you meant to cross compile, use \`--host'.
2684 See \`config.log' for more details." >&2;}
2685 { (exit 1); exit 1; }; }
2689 { echo "$as_me:$LINENO: result: yes" >&5
2690 echo "${ECHO_T}yes" >&6; }
2692 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2693 ac_clean_files=$ac_clean_files_save
2694 # Check that the compiler produces executables we can run. If not, either
2695 # the compiler is broken, or we cross compile.
2696 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2697 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2698 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2699 echo "${ECHO_T}$cross_compiling" >&6; }
2701 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2702 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2703 if { (ac_try="$ac_link"
2704 case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707 esac
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_link") 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; then
2713 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2714 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2715 # work properly (i.e., refer to `conftest.exe'), while it won't with
2716 # `rm'.
2717 for ac_file in conftest.exe conftest conftest.*; do
2718 test -f "$ac_file" || continue
2719 case $ac_file in
2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2721 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2722 break;;
2723 * ) break;;
2724 esac
2725 done
2726 else
2727 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2728 See \`config.log' for more details." >&5
2729 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2730 See \`config.log' for more details." >&2;}
2731 { (exit 1); exit 1; }; }
2734 rm -f conftest$ac_cv_exeext
2735 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2736 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2738 rm -f conftest.$ac_ext
2739 EXEEXT=$ac_cv_exeext
2740 ac_exeext=$EXEEXT
2741 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2742 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2743 if test "${ac_cv_objext+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746 cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h. */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2754 main ()
2758 return 0;
2760 _ACEOF
2761 rm -f conftest.o conftest.obj
2762 if { (ac_try="$ac_compile"
2763 case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766 esac
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compile") 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; then
2772 for ac_file in conftest.o conftest.obj conftest.*; do
2773 test -f "$ac_file" || continue;
2774 case $ac_file in
2775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2776 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2777 break;;
2778 esac
2779 done
2780 else
2781 echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2784 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2785 See \`config.log' for more details." >&5
2786 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2787 See \`config.log' for more details." >&2;}
2788 { (exit 1); exit 1; }; }
2791 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2793 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2794 echo "${ECHO_T}$ac_cv_objext" >&6; }
2795 OBJEXT=$ac_cv_objext
2796 ac_objext=$OBJEXT
2797 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2798 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2799 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 cat >conftest.$ac_ext <<_ACEOF
2803 /* confdefs.h. */
2804 _ACEOF
2805 cat confdefs.h >>conftest.$ac_ext
2806 cat >>conftest.$ac_ext <<_ACEOF
2807 /* end confdefs.h. */
2810 main ()
2812 #ifndef __GNUC__
2813 choke me
2814 #endif
2817 return 0;
2819 _ACEOF
2820 rm -f conftest.$ac_objext
2821 if { (ac_try="$ac_compile"
2822 case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825 esac
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_compile") 2>conftest.er1
2828 ac_status=$?
2829 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } && {
2834 test -z "$ac_c_werror_flag" ||
2835 test ! -s conftest.err
2836 } && test -s conftest.$ac_objext; then
2837 ac_compiler_gnu=yes
2838 else
2839 echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2842 ac_compiler_gnu=no
2845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2849 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2850 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2851 GCC=`test $ac_compiler_gnu = yes && echo yes`
2852 ac_test_CFLAGS=${CFLAGS+set}
2853 ac_save_CFLAGS=$CFLAGS
2854 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2855 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2856 if test "${ac_cv_prog_cc_g+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859 ac_save_c_werror_flag=$ac_c_werror_flag
2860 ac_c_werror_flag=yes
2861 ac_cv_prog_cc_g=no
2862 CFLAGS="-g"
2863 cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h. */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2871 main ()
2875 return 0;
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (ac_try="$ac_compile"
2880 case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883 esac
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_compile") 2>conftest.er1
2886 ac_status=$?
2887 grep -v '^ *+' conftest.er1 >conftest.err
2888 rm -f conftest.er1
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } && {
2892 test -z "$ac_c_werror_flag" ||
2893 test ! -s conftest.err
2894 } && test -s conftest.$ac_objext; then
2895 ac_cv_prog_cc_g=yes
2896 else
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 CFLAGS=""
2901 cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h. */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2909 main ()
2913 return 0;
2915 _ACEOF
2916 rm -f conftest.$ac_objext
2917 if { (ac_try="$ac_compile"
2918 case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_compile") 2>conftest.er1
2924 ac_status=$?
2925 grep -v '^ *+' conftest.er1 >conftest.err
2926 rm -f conftest.er1
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } && {
2930 test -z "$ac_c_werror_flag" ||
2931 test ! -s conftest.err
2932 } && test -s conftest.$ac_objext; then
2934 else
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2938 ac_c_werror_flag=$ac_save_c_werror_flag
2939 CFLAGS="-g"
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2948 main ()
2952 return 0;
2954 _ACEOF
2955 rm -f conftest.$ac_objext
2956 if { (ac_try="$ac_compile"
2957 case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960 esac
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_compile") 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } && {
2969 test -z "$ac_c_werror_flag" ||
2970 test ! -s conftest.err
2971 } && test -s conftest.$ac_objext; then
2972 ac_cv_prog_cc_g=yes
2973 else
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987 ac_c_werror_flag=$ac_save_c_werror_flag
2989 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2990 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2991 if test "$ac_test_CFLAGS" = set; then
2992 CFLAGS=$ac_save_CFLAGS
2993 elif test $ac_cv_prog_cc_g = yes; then
2994 if test "$GCC" = yes; then
2995 CFLAGS="-g -O2"
2996 else
2997 CFLAGS="-g"
2999 else
3000 if test "$GCC" = yes; then
3001 CFLAGS="-O2"
3002 else
3003 CFLAGS=
3006 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3007 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3008 if test "${ac_cv_prog_cc_c89+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 else
3011 ac_cv_prog_cc_c89=no
3012 ac_save_CC=$CC
3013 cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h. */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 #include <stdarg.h>
3020 #include <stdio.h>
3021 #include <sys/types.h>
3022 #include <sys/stat.h>
3023 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3024 struct buf { int x; };
3025 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3026 static char *e (p, i)
3027 char **p;
3028 int i;
3030 return p[i];
3032 static char *f (char * (*g) (char **, int), char **p, ...)
3034 char *s;
3035 va_list v;
3036 va_start (v,p);
3037 s = g (p, va_arg (v,int));
3038 va_end (v);
3039 return s;
3042 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3043 function prototypes and stuff, but not '\xHH' hex character constants.
3044 These don't provoke an error unfortunately, instead are silently treated
3045 as 'x'. The following induces an error, until -std is added to get
3046 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3047 array size at least. It's necessary to write '\x00'==0 to get something
3048 that's true only with -std. */
3049 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3051 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3052 inside strings and character constants. */
3053 #define FOO(x) 'x'
3054 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3056 int test (int i, double x);
3057 struct s1 {int (*f) (int a);};
3058 struct s2 {int (*f) (double a);};
3059 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3060 int argc;
3061 char **argv;
3063 main ()
3065 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3067 return 0;
3069 _ACEOF
3070 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3071 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3073 CC="$ac_save_CC $ac_arg"
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } && {
3088 test -z "$ac_c_werror_flag" ||
3089 test ! -s conftest.err
3090 } && test -s conftest.$ac_objext; then
3091 ac_cv_prog_cc_c89=$ac_arg
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3099 rm -f core conftest.err conftest.$ac_objext
3100 test "x$ac_cv_prog_cc_c89" != "xno" && break
3101 done
3102 rm -f conftest.$ac_ext
3103 CC=$ac_save_CC
3106 # AC_CACHE_VAL
3107 case "x$ac_cv_prog_cc_c89" in
3109 { echo "$as_me:$LINENO: result: none needed" >&5
3110 echo "${ECHO_T}none needed" >&6; } ;;
3111 xno)
3112 { echo "$as_me:$LINENO: result: unsupported" >&5
3113 echo "${ECHO_T}unsupported" >&6; } ;;
3115 CC="$CC $ac_cv_prog_cc_c89"
3116 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3117 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3118 esac
3121 ac_ext=c
3122 ac_cpp='$CPP $CPPFLAGS'
3123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128 ac_ext=c
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3134 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3135 # On Suns, sometimes $CPP names a directory.
3136 if test -n "$CPP" && test -d "$CPP"; then
3137 CPP=
3139 if test -z "$CPP"; then
3140 if test "${ac_cv_prog_CPP+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143 # Double quotes because CPP needs to be expanded
3144 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3146 ac_preproc_ok=false
3147 for ac_c_preproc_warn_flag in '' yes
3149 # Use a header file that comes with gcc, so configuring glibc
3150 # with a fresh cross-compiler works.
3151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3152 # <limits.h> exists even on freestanding compilers.
3153 # On the NeXT, cc -E runs the code through the compiler's parser,
3154 # not just through cpp. "Syntax error" is here to catch this case.
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3161 #ifdef __STDC__
3162 # include <limits.h>
3163 #else
3164 # include <assert.h>
3165 #endif
3166 Syntax error
3167 _ACEOF
3168 if { (ac_try="$ac_cpp conftest.$ac_ext"
3169 case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } >/dev/null && {
3181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3182 test ! -s conftest.err
3183 }; then
3185 else
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 # Broken: fails on valid input.
3190 continue
3193 rm -f conftest.err conftest.$ac_ext
3195 # OK, works on sane cases. Now check whether nonexistent headers
3196 # can be detected and how.
3197 cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h. */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3203 #include <ac_nonexistent.h>
3204 _ACEOF
3205 if { (ac_try="$ac_cpp conftest.$ac_ext"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3212 ac_status=$?
3213 grep -v '^ *+' conftest.er1 >conftest.err
3214 rm -f conftest.er1
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } >/dev/null && {
3218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3219 test ! -s conftest.err
3220 }; then
3221 # Broken: success on invalid input.
3222 continue
3223 else
3224 echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3227 # Passes both tests.
3228 ac_preproc_ok=:
3229 break
3232 rm -f conftest.err conftest.$ac_ext
3234 done
3235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3236 rm -f conftest.err conftest.$ac_ext
3237 if $ac_preproc_ok; then
3238 break
3241 done
3242 ac_cv_prog_CPP=$CPP
3245 CPP=$ac_cv_prog_CPP
3246 else
3247 ac_cv_prog_CPP=$CPP
3249 { echo "$as_me:$LINENO: result: $CPP" >&5
3250 echo "${ECHO_T}$CPP" >&6; }
3251 ac_preproc_ok=false
3252 for ac_c_preproc_warn_flag in '' yes
3254 # Use a header file that comes with gcc, so configuring glibc
3255 # with a fresh cross-compiler works.
3256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257 # <limits.h> exists even on freestanding compilers.
3258 # On the NeXT, cc -E runs the code through the compiler's parser,
3259 # not just through cpp. "Syntax error" is here to catch this case.
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266 #ifdef __STDC__
3267 # include <limits.h>
3268 #else
3269 # include <assert.h>
3270 #endif
3271 Syntax error
3272 _ACEOF
3273 if { (ac_try="$ac_cpp conftest.$ac_ext"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } >/dev/null && {
3286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3287 test ! -s conftest.err
3288 }; then
3290 else
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 # Broken: fails on valid input.
3295 continue
3298 rm -f conftest.err conftest.$ac_ext
3300 # OK, works on sane cases. Now check whether nonexistent headers
3301 # can be detected and how.
3302 cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h. */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3308 #include <ac_nonexistent.h>
3309 _ACEOF
3310 if { (ac_try="$ac_cpp conftest.$ac_ext"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3317 ac_status=$?
3318 grep -v '^ *+' conftest.er1 >conftest.err
3319 rm -f conftest.er1
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } >/dev/null && {
3323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3324 test ! -s conftest.err
3325 }; then
3326 # Broken: success on invalid input.
3327 continue
3328 else
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 # Passes both tests.
3333 ac_preproc_ok=:
3334 break
3337 rm -f conftest.err conftest.$ac_ext
3339 done
3340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3341 rm -f conftest.err conftest.$ac_ext
3342 if $ac_preproc_ok; then
3344 else
3345 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3346 See \`config.log' for more details." >&5
3347 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3348 See \`config.log' for more details." >&2;}
3349 { (exit 1); exit 1; }; }
3352 ac_ext=c
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3360 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3361 if test "${ac_cv_path_GREP+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364 # Extract the first word of "grep ggrep" to use in msg output
3365 if test -z "$GREP"; then
3366 set dummy grep ggrep; ac_prog_name=$2
3367 if test "${ac_cv_path_GREP+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370 ac_path_GREP_found=false
3371 # Loop through the user's path and test for each of PROGNAME-LIST
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_prog in grep ggrep; do
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3380 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3381 # Check for GNU ac_path_GREP and select it if it is found.
3382 # Check for GNU $ac_path_GREP
3383 case `"$ac_path_GREP" --version 2>&1` in
3384 *GNU*)
3385 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3387 ac_count=0
3388 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3389 while :
3391 cat "conftest.in" "conftest.in" >"conftest.tmp"
3392 mv "conftest.tmp" "conftest.in"
3393 cp "conftest.in" "conftest.nl"
3394 echo 'GREP' >> "conftest.nl"
3395 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3397 ac_count=`expr $ac_count + 1`
3398 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3399 # Best one so far, save it but keep looking for a better one
3400 ac_cv_path_GREP="$ac_path_GREP"
3401 ac_path_GREP_max=$ac_count
3403 # 10*(2^10) chars as input seems more than enough
3404 test $ac_count -gt 10 && break
3405 done
3406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3407 esac
3410 $ac_path_GREP_found && break 3
3411 done
3412 done
3414 done
3415 IFS=$as_save_IFS
3420 GREP="$ac_cv_path_GREP"
3421 if test -z "$GREP"; then
3422 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3423 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3424 { (exit 1); exit 1; }; }
3427 else
3428 ac_cv_path_GREP=$GREP
3433 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3434 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3435 GREP="$ac_cv_path_GREP"
3438 { echo "$as_me:$LINENO: checking for egrep" >&5
3439 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3440 if test "${ac_cv_path_EGREP+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3444 then ac_cv_path_EGREP="$GREP -E"
3445 else
3446 # Extract the first word of "egrep" to use in msg output
3447 if test -z "$EGREP"; then
3448 set dummy egrep; ac_prog_name=$2
3449 if test "${ac_cv_path_EGREP+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 ac_path_EGREP_found=false
3453 # Loop through the user's path and test for each of PROGNAME-LIST
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
3459 for ac_prog in egrep; do
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3462 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3463 # Check for GNU ac_path_EGREP and select it if it is found.
3464 # Check for GNU $ac_path_EGREP
3465 case `"$ac_path_EGREP" --version 2>&1` in
3466 *GNU*)
3467 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3469 ac_count=0
3470 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3471 while :
3473 cat "conftest.in" "conftest.in" >"conftest.tmp"
3474 mv "conftest.tmp" "conftest.in"
3475 cp "conftest.in" "conftest.nl"
3476 echo 'EGREP' >> "conftest.nl"
3477 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3479 ac_count=`expr $ac_count + 1`
3480 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3481 # Best one so far, save it but keep looking for a better one
3482 ac_cv_path_EGREP="$ac_path_EGREP"
3483 ac_path_EGREP_max=$ac_count
3485 # 10*(2^10) chars as input seems more than enough
3486 test $ac_count -gt 10 && break
3487 done
3488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3489 esac
3492 $ac_path_EGREP_found && break 3
3493 done
3494 done
3496 done
3497 IFS=$as_save_IFS
3502 EGREP="$ac_cv_path_EGREP"
3503 if test -z "$EGREP"; then
3504 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3505 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3506 { (exit 1); exit 1; }; }
3509 else
3510 ac_cv_path_EGREP=$EGREP
3516 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3517 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3518 EGREP="$ac_cv_path_EGREP"
3522 { echo "$as_me:$LINENO: checking for AIX" >&5
3523 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3524 cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h. */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 #ifdef _AIX
3532 #endif
3534 _ACEOF
3535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3536 $EGREP "yes" >/dev/null 2>&1; then
3537 { echo "$as_me:$LINENO: result: yes" >&5
3538 echo "${ECHO_T}yes" >&6; }
3539 cat >>confdefs.h <<\_ACEOF
3540 #define _ALL_SOURCE 1
3541 _ACEOF
3543 else
3544 { echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6; }
3547 rm -f conftest*
3550 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3551 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3552 if test "${ac_cv_header_stdc+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 #include <stdlib.h>
3562 #include <stdarg.h>
3563 #include <string.h>
3564 #include <float.h>
3567 main ()
3571 return 0;
3573 _ACEOF
3574 rm -f conftest.$ac_objext
3575 if { (ac_try="$ac_compile"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_compile") 2>conftest.er1
3582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } && {
3588 test -z "$ac_c_werror_flag" ||
3589 test ! -s conftest.err
3590 } && test -s conftest.$ac_objext; then
3591 ac_cv_header_stdc=yes
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 ac_cv_header_stdc=no
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 if test $ac_cv_header_stdc = yes; then
3602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3603 cat >conftest.$ac_ext <<_ACEOF
3604 /* confdefs.h. */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3609 #include <string.h>
3611 _ACEOF
3612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3613 $EGREP "memchr" >/dev/null 2>&1; then
3615 else
3616 ac_cv_header_stdc=no
3618 rm -f conftest*
3622 if test $ac_cv_header_stdc = yes; then
3623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3624 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h. */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 #include <stdlib.h>
3632 _ACEOF
3633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3634 $EGREP "free" >/dev/null 2>&1; then
3636 else
3637 ac_cv_header_stdc=no
3639 rm -f conftest*
3643 if test $ac_cv_header_stdc = yes; then
3644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3645 if test "$cross_compiling" = yes; then
3647 else
3648 cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h. */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 #include <ctype.h>
3655 #include <stdlib.h>
3656 #if ((' ' & 0x0FF) == 0x020)
3657 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3658 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3659 #else
3660 # define ISLOWER(c) \
3661 (('a' <= (c) && (c) <= 'i') \
3662 || ('j' <= (c) && (c) <= 'r') \
3663 || ('s' <= (c) && (c) <= 'z'))
3664 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3665 #endif
3667 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3669 main ()
3671 int i;
3672 for (i = 0; i < 256; i++)
3673 if (XOR (islower (i), ISLOWER (i))
3674 || toupper (i) != TOUPPER (i))
3675 return 2;
3676 return 0;
3678 _ACEOF
3679 rm -f conftest$ac_exeext
3680 if { (ac_try="$ac_link"
3681 case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_link") 2>&5
3687 ac_status=$?
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3690 { (case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3693 esac
3694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695 (eval "$ac_try") 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; }; then
3700 else
3701 echo "$as_me: program exited with status $ac_status" >&5
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 ( exit $ac_status )
3706 ac_cv_header_stdc=no
3708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3714 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3715 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3716 if test $ac_cv_header_stdc = yes; then
3718 cat >>confdefs.h <<\_ACEOF
3719 #define STDC_HEADERS 1
3720 _ACEOF
3724 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3734 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3735 inttypes.h stdint.h unistd.h
3737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h. */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3749 $ac_includes_default
3751 #include <$ac_header>
3752 _ACEOF
3753 rm -f conftest.$ac_objext
3754 if { (ac_try="$ac_compile"
3755 case "(($ac_try" in
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3758 esac
3759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3760 (eval "$ac_compile") 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } && {
3767 test -z "$ac_c_werror_flag" ||
3768 test ! -s conftest.err
3769 } && test -s conftest.$ac_objext; then
3770 eval "$as_ac_Header=yes"
3771 else
3772 echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3775 eval "$as_ac_Header=no"
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 ac_res=`eval echo '${'$as_ac_Header'}'`
3781 { echo "$as_me:$LINENO: result: $ac_res" >&5
3782 echo "${ECHO_T}$ac_res" >&6; }
3783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3784 cat >>confdefs.h <<_ACEOF
3785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3786 _ACEOF
3790 done
3793 if test "${ac_cv_header_minix_config_h+set}" = set; then
3794 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3795 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3796 if test "${ac_cv_header_minix_config_h+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3800 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3801 else
3802 # Is the header compilable?
3803 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3804 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3805 cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h. */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811 $ac_includes_default
3812 #include <minix/config.h>
3813 _ACEOF
3814 rm -f conftest.$ac_objext
3815 if { (ac_try="$ac_compile"
3816 case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819 esac
3820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821 (eval "$ac_compile") 2>conftest.er1
3822 ac_status=$?
3823 grep -v '^ *+' conftest.er1 >conftest.err
3824 rm -f conftest.er1
3825 cat conftest.err >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } && {
3828 test -z "$ac_c_werror_flag" ||
3829 test ! -s conftest.err
3830 } && test -s conftest.$ac_objext; then
3831 ac_header_compiler=yes
3832 else
3833 echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3836 ac_header_compiler=no
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3841 echo "${ECHO_T}$ac_header_compiler" >&6; }
3843 # Is the header present?
3844 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3845 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3846 cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h. */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3852 #include <minix/config.h>
3853 _ACEOF
3854 if { (ac_try="$ac_cpp conftest.$ac_ext"
3855 case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858 esac
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } >/dev/null && {
3867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3868 test ! -s conftest.err
3869 }; then
3870 ac_header_preproc=yes
3871 else
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 ac_header_preproc=no
3878 rm -f conftest.err conftest.$ac_ext
3879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3880 echo "${ECHO_T}$ac_header_preproc" >&6; }
3882 # So? What about this header?
3883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3884 yes:no: )
3885 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3886 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3887 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3888 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3889 ac_header_preproc=yes
3891 no:yes:* )
3892 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3893 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3894 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3895 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3896 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3897 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3898 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3899 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3900 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3901 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3902 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3903 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3904 ( cat <<\_ASBOX
3905 ## ------------------------------- ##
3906 ## Report this to www.asterisk.org ##
3907 ## ------------------------------- ##
3908 _ASBOX
3909 ) | sed "s/^/$as_me: WARNING: /" >&2
3911 esac
3912 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3913 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3914 if test "${ac_cv_header_minix_config_h+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 ac_cv_header_minix_config_h=$ac_header_preproc
3919 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3920 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3923 if test $ac_cv_header_minix_config_h = yes; then
3924 MINIX=yes
3925 else
3926 MINIX=
3930 if test "$MINIX" = yes; then
3932 cat >>confdefs.h <<\_ACEOF
3933 #define _POSIX_SOURCE 1
3934 _ACEOF
3937 cat >>confdefs.h <<\_ACEOF
3938 #define _POSIX_1_SOURCE 2
3939 _ACEOF
3942 cat >>confdefs.h <<\_ACEOF
3943 #define _MINIX 1
3944 _ACEOF
3958 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3959 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3960 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963 cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h. */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3970 # define __EXTENSIONS__ 1
3971 $ac_includes_default
3973 main ()
3977 return 0;
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (ac_try="$ac_compile"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_compile") 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } && {
3994 test -z "$ac_c_werror_flag" ||
3995 test ! -s conftest.err
3996 } && test -s conftest.$ac_objext; then
3997 ac_cv_safe_to_define___extensions__=yes
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 ac_cv_safe_to_define___extensions__=no
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4008 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4009 test $ac_cv_safe_to_define___extensions__ = yes &&
4010 cat >>confdefs.h <<\_ACEOF
4011 #define __EXTENSIONS__ 1
4012 _ACEOF
4014 cat >>confdefs.h <<\_ACEOF
4015 #define _POSIX_PTHREAD_SEMANTICS 1
4016 _ACEOF
4018 cat >>confdefs.h <<\_ACEOF
4019 #define _TANDEM_SOURCE 1
4020 _ACEOF
4022 # note- does not work on FreeBSD
4024 case "${host_os}" in
4025 freebsd*)
4026 ac_default_prefix=/usr/local
4027 CPPFLAGS=-I/usr/local/include
4028 LDFLAGS=-L/usr/local/lib
4032 ac_default_prefix=/usr
4033 if test ${sysconfdir} = '${prefix}/etc'; then
4034 sysconfdir=/etc
4036 if test ${mandir} = '${prefix}/man'; then
4037 mandir=/usr/share/man
4040 esac
4042 if test ${localstatedir} = '${prefix}/var'; then
4043 localstatedir=/var
4046 BUILD_PLATFORM=${build}
4047 BUILD_CPU=${build_cpu}
4048 BUILD_VENDOR=${build_vendor}
4049 BUILD_OS=${build_os}
4056 HOST_PLATFORM=${host}
4057 HOST_CPU=${host_cpu}
4058 HOST_VENDOR=${host_vendor}
4059 HOST_OS=${host_os}
4066 WINARCH=0
4068 case "${host_os}" in
4069 freebsd*)
4070 OSARCH=FreeBSD
4072 netbsd*)
4073 OSARCH=NetBSD
4075 openbsd*)
4076 OSARCH=OpenBSD
4078 solaris*)
4079 OSARCH=SunOS
4081 mingw32)
4082 OSARCH=mingw32
4083 WINARCH=1
4085 cygwin)
4086 OSARCH=cygwin
4087 WINARCH=1
4090 OSARCH=${host_os}
4092 esac
4097 # check for uname
4098 if test -n "$ac_tool_prefix"; then
4099 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4100 set dummy ${ac_tool_prefix}uname; ac_word=$2
4101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4103 if test "${ac_cv_path_UNAME+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 case $UNAME in
4107 [\\/]* | ?:[\\/]*)
4108 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4122 done
4123 done
4124 IFS=$as_save_IFS
4127 esac
4129 UNAME=$ac_cv_path_UNAME
4130 if test -n "$UNAME"; then
4131 { echo "$as_me:$LINENO: result: $UNAME" >&5
4132 echo "${ECHO_T}$UNAME" >&6; }
4133 else
4134 { echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6; }
4140 if test -z "$ac_cv_path_UNAME"; then
4141 ac_pt_UNAME=$UNAME
4142 # Extract the first word of "uname", so it can be a program name with args.
4143 set dummy uname; ac_word=$2
4144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4146 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 case $ac_pt_UNAME in
4150 [\\/]* | ?:[\\/]*)
4151 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4165 done
4166 done
4167 IFS=$as_save_IFS
4170 esac
4172 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4173 if test -n "$ac_pt_UNAME"; then
4174 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4175 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4176 else
4177 { echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6; }
4181 if test "x$ac_pt_UNAME" = x; then
4182 UNAME="No"
4183 else
4184 case $cross_compiling:$ac_tool_warned in
4185 yes:)
4186 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4187 whose name does not start with the host triplet. If you think this
4188 configuration is useful to you, please write to autoconf@gnu.org." >&5
4189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4190 whose name does not start with the host triplet. If you think this
4191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4192 ac_tool_warned=yes ;;
4193 esac
4194 UNAME=$ac_pt_UNAME
4196 else
4197 UNAME="$ac_cv_path_UNAME"
4200 if test ! x"${UNAME}" = xNo; then
4201 PBX_OSREV=$(${UNAME} -r)
4211 # cross-compile checks
4212 if test "${cross_compiling}" = "yes";
4213 then
4214 if test -n "$ac_tool_prefix"; then
4215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4219 if test "${ac_cv_prog_CC+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 if test -n "$CC"; then
4223 ac_cv_prog_CC="$CC" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4236 done
4237 done
4238 IFS=$as_save_IFS
4242 CC=$ac_cv_prog_CC
4243 if test -n "$CC"; then
4244 { echo "$as_me:$LINENO: result: $CC" >&5
4245 echo "${ECHO_T}$CC" >&6; }
4246 else
4247 { echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6; }
4253 if test -z "$ac_cv_prog_CC"; then
4254 ac_ct_CC=$CC
4255 # Extract the first word of "gcc", so it can be a program name with args.
4256 set dummy gcc; ac_word=$2
4257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262 if test -n "$ac_ct_CC"; then
4263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_prog_ac_ct_CC="gcc"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4276 done
4277 done
4278 IFS=$as_save_IFS
4282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4283 if test -n "$ac_ct_CC"; then
4284 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4285 echo "${ECHO_T}$ac_ct_CC" >&6; }
4286 else
4287 { echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6; }
4291 if test "x$ac_ct_CC" = x; then
4292 CC=":"
4293 else
4294 case $cross_compiling:$ac_tool_warned in
4295 yes:)
4296 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4297 whose name does not start with the host triplet. If you think this
4298 configuration is useful to you, please write to autoconf@gnu.org." >&5
4299 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4300 whose name does not start with the host triplet. If you think this
4301 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4302 ac_tool_warned=yes ;;
4303 esac
4304 CC=$ac_ct_CC
4306 else
4307 CC="$ac_cv_prog_CC"
4310 if test -n "$ac_tool_prefix"; then
4311 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4312 set dummy ${ac_tool_prefix}g++; ac_word=$2
4313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4315 if test "${ac_cv_prog_CXX+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 if test -n "$CXX"; then
4319 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4334 IFS=$as_save_IFS
4338 CXX=$ac_cv_prog_CXX
4339 if test -n "$CXX"; then
4340 { echo "$as_me:$LINENO: result: $CXX" >&5
4341 echo "${ECHO_T}$CXX" >&6; }
4342 else
4343 { echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6; }
4349 if test -z "$ac_cv_prog_CXX"; then
4350 ac_ct_CXX=$CXX
4351 # Extract the first word of "g++", so it can be a program name with args.
4352 set dummy g++; ac_word=$2
4353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4355 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 if test -n "$ac_ct_CXX"; then
4359 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368 ac_cv_prog_ac_ct_CXX="g++"
4369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4372 done
4373 done
4374 IFS=$as_save_IFS
4378 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4379 if test -n "$ac_ct_CXX"; then
4380 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4381 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4382 else
4383 { echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6; }
4387 if test "x$ac_ct_CXX" = x; then
4388 CXX=":"
4389 else
4390 case $cross_compiling:$ac_tool_warned in
4391 yes:)
4392 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4393 whose name does not start with the host triplet. If you think this
4394 configuration is useful to you, please write to autoconf@gnu.org." >&5
4395 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4396 whose name does not start with the host triplet. If you think this
4397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4398 ac_tool_warned=yes ;;
4399 esac
4400 CXX=$ac_ct_CXX
4402 else
4403 CXX="$ac_cv_prog_CXX"
4406 if test -n "$ac_tool_prefix"; then
4407 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4408 set dummy ${ac_tool_prefix}ld; ac_word=$2
4409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411 if test "${ac_cv_prog_LD+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414 if test -n "$LD"; then
4415 ac_cv_prog_LD="$LD" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_prog_LD="${ac_tool_prefix}ld"
4425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4428 done
4429 done
4430 IFS=$as_save_IFS
4434 LD=$ac_cv_prog_LD
4435 if test -n "$LD"; then
4436 { echo "$as_me:$LINENO: result: $LD" >&5
4437 echo "${ECHO_T}$LD" >&6; }
4438 else
4439 { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4445 if test -z "$ac_cv_prog_LD"; then
4446 ac_ct_LD=$LD
4447 # Extract the first word of "ld", so it can be a program name with args.
4448 set dummy ld; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454 if test -n "$ac_ct_LD"; then
4455 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_ac_ct_LD="ld"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4468 done
4469 done
4470 IFS=$as_save_IFS
4474 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4475 if test -n "$ac_ct_LD"; then
4476 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4477 echo "${ECHO_T}$ac_ct_LD" >&6; }
4478 else
4479 { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4483 if test "x$ac_ct_LD" = x; then
4484 LD=":"
4485 else
4486 case $cross_compiling:$ac_tool_warned in
4487 yes:)
4488 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4489 whose name does not start with the host triplet. If you think this
4490 configuration is useful to you, please write to autoconf@gnu.org." >&5
4491 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4492 whose name does not start with the host triplet. If you think this
4493 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 LD=$ac_ct_LD
4498 else
4499 LD="$ac_cv_prog_LD"
4502 if test -n "$ac_tool_prefix"; then
4503 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4504 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4507 if test "${ac_cv_prog_RANLIB+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510 if test -n "$RANLIB"; then
4511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4524 done
4525 done
4526 IFS=$as_save_IFS
4530 RANLIB=$ac_cv_prog_RANLIB
4531 if test -n "$RANLIB"; then
4532 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4533 echo "${ECHO_T}$RANLIB" >&6; }
4534 else
4535 { echo "$as_me:$LINENO: result: no" >&5
4536 echo "${ECHO_T}no" >&6; }
4541 if test -z "$ac_cv_prog_RANLIB"; then
4542 ac_ct_RANLIB=$RANLIB
4543 # Extract the first word of "ranlib", so it can be a program name with args.
4544 set dummy ranlib; ac_word=$2
4545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4547 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550 if test -n "$ac_ct_RANLIB"; then
4551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_ac_ct_RANLIB="ranlib"
4561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4564 done
4565 done
4566 IFS=$as_save_IFS
4570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4571 if test -n "$ac_ct_RANLIB"; then
4572 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4573 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4574 else
4575 { echo "$as_me:$LINENO: result: no" >&5
4576 echo "${ECHO_T}no" >&6; }
4579 if test "x$ac_ct_RANLIB" = x; then
4580 RANLIB=":"
4581 else
4582 case $cross_compiling:$ac_tool_warned in
4583 yes:)
4584 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4585 whose name does not start with the host triplet. If you think this
4586 configuration is useful to you, please write to autoconf@gnu.org." >&5
4587 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4588 whose name does not start with the host triplet. If you think this
4589 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4590 ac_tool_warned=yes ;;
4591 esac
4592 RANLIB=$ac_ct_RANLIB
4594 else
4595 RANLIB="$ac_cv_prog_RANLIB"
4600 # Checks for programs.
4601 ac_ext=c
4602 ac_cpp='$CPP $CPPFLAGS'
4603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_prog_CC+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 if test -n "$CC"; then
4615 ac_cv_prog_CC="$CC" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4628 done
4629 done
4630 IFS=$as_save_IFS
4634 CC=$ac_cv_prog_CC
4635 if test -n "$CC"; then
4636 { echo "$as_me:$LINENO: result: $CC" >&5
4637 echo "${ECHO_T}$CC" >&6; }
4638 else
4639 { echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6; }
4645 if test -z "$ac_cv_prog_CC"; then
4646 ac_ct_CC=$CC
4647 # Extract the first word of "gcc", so it can be a program name with args.
4648 set dummy gcc; ac_word=$2
4649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654 if test -n "$ac_ct_CC"; then
4655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_ac_ct_CC="gcc"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4670 IFS=$as_save_IFS
4674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4675 if test -n "$ac_ct_CC"; then
4676 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4677 echo "${ECHO_T}$ac_ct_CC" >&6; }
4678 else
4679 { echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6; }
4683 if test "x$ac_ct_CC" = x; then
4684 CC=""
4685 else
4686 case $cross_compiling:$ac_tool_warned in
4687 yes:)
4688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4689 whose name does not start with the host triplet. If you think this
4690 configuration is useful to you, please write to autoconf@gnu.org." >&5
4691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4692 whose name does not start with the host triplet. If you think this
4693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4694 ac_tool_warned=yes ;;
4695 esac
4696 CC=$ac_ct_CC
4698 else
4699 CC="$ac_cv_prog_CC"
4702 if test -z "$CC"; then
4703 if test -n "$ac_tool_prefix"; then
4704 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4705 set dummy ${ac_tool_prefix}cc; ac_word=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_prog_CC+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711 if test -n "$CC"; then
4712 ac_cv_prog_CC="$CC" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_CC="${ac_tool_prefix}cc"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4725 done
4726 done
4727 IFS=$as_save_IFS
4731 CC=$ac_cv_prog_CC
4732 if test -n "$CC"; then
4733 { echo "$as_me:$LINENO: result: $CC" >&5
4734 echo "${ECHO_T}$CC" >&6; }
4735 else
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4743 if test -z "$CC"; then
4744 # Extract the first word of "cc", so it can be a program name with args.
4745 set dummy cc; ac_word=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_prog_CC+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 if test -n "$CC"; then
4752 ac_cv_prog_CC="$CC" # Let the user override the test.
4753 else
4754 ac_prog_rejected=no
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4763 ac_prog_rejected=yes
4764 continue
4766 ac_cv_prog_CC="cc"
4767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4770 done
4771 done
4772 IFS=$as_save_IFS
4774 if test $ac_prog_rejected = yes; then
4775 # We found a bogon in the path, so make sure we never use it.
4776 set dummy $ac_cv_prog_CC
4777 shift
4778 if test $# != 0; then
4779 # We chose a different compiler from the bogus one.
4780 # However, it has the same basename, so the bogon will be chosen
4781 # first if we set CC to just the basename; use the full file name.
4782 shift
4783 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4788 CC=$ac_cv_prog_CC
4789 if test -n "$CC"; then
4790 { echo "$as_me:$LINENO: result: $CC" >&5
4791 echo "${ECHO_T}$CC" >&6; }
4792 else
4793 { echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6; }
4799 if test -z "$CC"; then
4800 if test -n "$ac_tool_prefix"; then
4801 for ac_prog in cl.exe
4803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4807 if test "${ac_cv_prog_CC+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810 if test -n "$CC"; then
4811 ac_cv_prog_CC="$CC" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4824 done
4825 done
4826 IFS=$as_save_IFS
4830 CC=$ac_cv_prog_CC
4831 if test -n "$CC"; then
4832 { echo "$as_me:$LINENO: result: $CC" >&5
4833 echo "${ECHO_T}$CC" >&6; }
4834 else
4835 { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4840 test -n "$CC" && break
4841 done
4843 if test -z "$CC"; then
4844 ac_ct_CC=$CC
4845 for ac_prog in cl.exe
4847 # Extract the first word of "$ac_prog", so it can be a program name with args.
4848 set dummy $ac_prog; ac_word=$2
4849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854 if test -n "$ac_ct_CC"; then
4855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864 ac_cv_prog_ac_ct_CC="$ac_prog"
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4868 done
4869 done
4870 IFS=$as_save_IFS
4874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4875 if test -n "$ac_ct_CC"; then
4876 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4877 echo "${ECHO_T}$ac_ct_CC" >&6; }
4878 else
4879 { echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6; }
4884 test -n "$ac_ct_CC" && break
4885 done
4887 if test "x$ac_ct_CC" = x; then
4888 CC=""
4889 else
4890 case $cross_compiling:$ac_tool_warned in
4891 yes:)
4892 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4893 whose name does not start with the host triplet. If you think this
4894 configuration is useful to you, please write to autoconf@gnu.org." >&5
4895 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4896 whose name does not start with the host triplet. If you think this
4897 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4898 ac_tool_warned=yes ;;
4899 esac
4900 CC=$ac_ct_CC
4907 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4908 See \`config.log' for more details." >&5
4909 echo "$as_me: error: no acceptable C compiler found in \$PATH
4910 See \`config.log' for more details." >&2;}
4911 { (exit 1); exit 1; }; }
4913 # Provide some information about the compiler.
4914 echo "$as_me:$LINENO: checking for C compiler version" >&5
4915 ac_compiler=`set X $ac_compile; echo $2`
4916 { (ac_try="$ac_compiler --version >&5"
4917 case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920 esac
4921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922 (eval "$ac_compiler --version >&5") 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }
4926 { (ac_try="$ac_compiler -v >&5"
4927 case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930 esac
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_compiler -v >&5") 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }
4936 { (ac_try="$ac_compiler -V >&5"
4937 case "(($ac_try" in
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4940 esac
4941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4942 (eval "$ac_compiler -V >&5") 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }
4947 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4948 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4949 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4960 main ()
4962 #ifndef __GNUC__
4963 choke me
4964 #endif
4967 return 0;
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (ac_try="$ac_compile"
4972 case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975 esac
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_compile") 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } && {
4984 test -z "$ac_c_werror_flag" ||
4985 test ! -s conftest.err
4986 } && test -s conftest.$ac_objext; then
4987 ac_compiler_gnu=yes
4988 else
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 ac_compiler_gnu=no
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4999 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5000 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5001 GCC=`test $ac_compiler_gnu = yes && echo yes`
5002 ac_test_CFLAGS=${CFLAGS+set}
5003 ac_save_CFLAGS=$CFLAGS
5004 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5005 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5006 if test "${ac_cv_prog_cc_g+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009 ac_save_c_werror_flag=$ac_c_werror_flag
5010 ac_c_werror_flag=yes
5011 ac_cv_prog_cc_g=no
5012 CFLAGS="-g"
5013 cat >conftest.$ac_ext <<_ACEOF
5014 /* confdefs.h. */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5021 main ()
5025 return 0;
5027 _ACEOF
5028 rm -f conftest.$ac_objext
5029 if { (ac_try="$ac_compile"
5030 case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033 esac
5034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035 (eval "$ac_compile") 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } && {
5042 test -z "$ac_c_werror_flag" ||
5043 test ! -s conftest.err
5044 } && test -s conftest.$ac_objext; then
5045 ac_cv_prog_cc_g=yes
5046 else
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5050 CFLAGS=""
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5059 main ()
5063 return 0;
5065 _ACEOF
5066 rm -f conftest.$ac_objext
5067 if { (ac_try="$ac_compile"
5068 case "(($ac_try" in
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5071 esac
5072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073 (eval "$ac_compile") 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } && {
5080 test -z "$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5082 } && test -s conftest.$ac_objext; then
5084 else
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5088 ac_c_werror_flag=$ac_save_c_werror_flag
5089 CFLAGS="-g"
5090 cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h. */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5098 main ()
5102 return 0;
5104 _ACEOF
5105 rm -f conftest.$ac_objext
5106 if { (ac_try="$ac_compile"
5107 case "(($ac_try" in
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5110 esac
5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_compile") 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } && {
5119 test -z "$ac_c_werror_flag" ||
5120 test ! -s conftest.err
5121 } && test -s conftest.$ac_objext; then
5122 ac_cv_prog_cc_g=yes
5123 else
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 ac_c_werror_flag=$ac_save_c_werror_flag
5139 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5140 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5141 if test "$ac_test_CFLAGS" = set; then
5142 CFLAGS=$ac_save_CFLAGS
5143 elif test $ac_cv_prog_cc_g = yes; then
5144 if test "$GCC" = yes; then
5145 CFLAGS="-g -O2"
5146 else
5147 CFLAGS="-g"
5149 else
5150 if test "$GCC" = yes; then
5151 CFLAGS="-O2"
5152 else
5153 CFLAGS=
5156 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5157 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5158 if test "${ac_cv_prog_cc_c89+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161 ac_cv_prog_cc_c89=no
5162 ac_save_CC=$CC
5163 cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h. */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5169 #include <stdarg.h>
5170 #include <stdio.h>
5171 #include <sys/types.h>
5172 #include <sys/stat.h>
5173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5174 struct buf { int x; };
5175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5176 static char *e (p, i)
5177 char **p;
5178 int i;
5180 return p[i];
5182 static char *f (char * (*g) (char **, int), char **p, ...)
5184 char *s;
5185 va_list v;
5186 va_start (v,p);
5187 s = g (p, va_arg (v,int));
5188 va_end (v);
5189 return s;
5192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5193 function prototypes and stuff, but not '\xHH' hex character constants.
5194 These don't provoke an error unfortunately, instead are silently treated
5195 as 'x'. The following induces an error, until -std is added to get
5196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5197 array size at least. It's necessary to write '\x00'==0 to get something
5198 that's true only with -std. */
5199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5202 inside strings and character constants. */
5203 #define FOO(x) 'x'
5204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5206 int test (int i, double x);
5207 struct s1 {int (*f) (int a);};
5208 struct s2 {int (*f) (double a);};
5209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5210 int argc;
5211 char **argv;
5213 main ()
5215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5217 return 0;
5219 _ACEOF
5220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5223 CC="$ac_save_CC $ac_arg"
5224 rm -f conftest.$ac_objext
5225 if { (ac_try="$ac_compile"
5226 case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_compile") 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } && {
5238 test -z "$ac_c_werror_flag" ||
5239 test ! -s conftest.err
5240 } && test -s conftest.$ac_objext; then
5241 ac_cv_prog_cc_c89=$ac_arg
5242 else
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5249 rm -f core conftest.err conftest.$ac_objext
5250 test "x$ac_cv_prog_cc_c89" != "xno" && break
5251 done
5252 rm -f conftest.$ac_ext
5253 CC=$ac_save_CC
5256 # AC_CACHE_VAL
5257 case "x$ac_cv_prog_cc_c89" in
5259 { echo "$as_me:$LINENO: result: none needed" >&5
5260 echo "${ECHO_T}none needed" >&6; } ;;
5261 xno)
5262 { echo "$as_me:$LINENO: result: unsupported" >&5
5263 echo "${ECHO_T}unsupported" >&6; } ;;
5265 CC="$CC $ac_cv_prog_cc_c89"
5266 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5267 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5268 esac
5271 ac_ext=c
5272 ac_cpp='$CPP $CPPFLAGS'
5273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5277 ac_ext=cpp
5278 ac_cpp='$CXXCPP $CPPFLAGS'
5279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5282 if test -z "$CXX"; then
5283 if test -n "$CCC"; then
5284 CXX=$CCC
5285 else
5286 if test -n "$ac_tool_prefix"; then
5287 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5293 if test "${ac_cv_prog_CXX+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 if test -n "$CXX"; then
5297 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5310 done
5311 done
5312 IFS=$as_save_IFS
5316 CXX=$ac_cv_prog_CXX
5317 if test -n "$CXX"; then
5318 { echo "$as_me:$LINENO: result: $CXX" >&5
5319 echo "${ECHO_T}$CXX" >&6; }
5320 else
5321 { echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6; }
5326 test -n "$CXX" && break
5327 done
5329 if test -z "$CXX"; then
5330 ac_ct_CXX=$CXX
5331 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5333 # Extract the first word of "$ac_prog", so it can be a program name with args.
5334 set dummy $ac_prog; ac_word=$2
5335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5337 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340 if test -n "$ac_ct_CXX"; then
5341 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_prog_ac_ct_CXX="$ac_prog"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5356 IFS=$as_save_IFS
5360 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5361 if test -n "$ac_ct_CXX"; then
5362 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5363 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5364 else
5365 { echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6; }
5370 test -n "$ac_ct_CXX" && break
5371 done
5373 if test "x$ac_ct_CXX" = x; then
5374 CXX="g++"
5375 else
5376 case $cross_compiling:$ac_tool_warned in
5377 yes:)
5378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5379 whose name does not start with the host triplet. If you think this
5380 configuration is useful to you, please write to autoconf@gnu.org." >&5
5381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5382 whose name does not start with the host triplet. If you think this
5383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5384 ac_tool_warned=yes ;;
5385 esac
5386 CXX=$ac_ct_CXX
5392 # Provide some information about the compiler.
5393 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5394 ac_compiler=`set X $ac_compile; echo $2`
5395 { (ac_try="$ac_compiler --version >&5"
5396 case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_compiler --version >&5") 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }
5405 { (ac_try="$ac_compiler -v >&5"
5406 case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409 esac
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_compiler -v >&5") 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }
5415 { (ac_try="$ac_compiler -V >&5"
5416 case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419 esac
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_compiler -V >&5") 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }
5426 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5427 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5428 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5439 main ()
5441 #ifndef __GNUC__
5442 choke me
5443 #endif
5446 return 0;
5448 _ACEOF
5449 rm -f conftest.$ac_objext
5450 if { (ac_try="$ac_compile"
5451 case "(($ac_try" in
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5454 esac
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456 (eval "$ac_compile") 2>conftest.er1
5457 ac_status=$?
5458 grep -v '^ *+' conftest.er1 >conftest.err
5459 rm -f conftest.er1
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } && {
5463 test -z "$ac_cxx_werror_flag" ||
5464 test ! -s conftest.err
5465 } && test -s conftest.$ac_objext; then
5466 ac_compiler_gnu=yes
5467 else
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5471 ac_compiler_gnu=no
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5478 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5479 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5480 GXX=`test $ac_compiler_gnu = yes && echo yes`
5481 ac_test_CXXFLAGS=${CXXFLAGS+set}
5482 ac_save_CXXFLAGS=$CXXFLAGS
5483 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5484 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5485 if test "${ac_cv_prog_cxx_g+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5489 ac_cxx_werror_flag=yes
5490 ac_cv_prog_cxx_g=no
5491 CXXFLAGS="-g"
5492 cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h. */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5500 main ()
5504 return 0;
5506 _ACEOF
5507 rm -f conftest.$ac_objext
5508 if { (ac_try="$ac_compile"
5509 case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_compile") 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } && {
5521 test -z "$ac_cxx_werror_flag" ||
5522 test ! -s conftest.err
5523 } && test -s conftest.$ac_objext; then
5524 ac_cv_prog_cxx_g=yes
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 CXXFLAGS=""
5530 cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5538 main ()
5542 return 0;
5544 _ACEOF
5545 rm -f conftest.$ac_objext
5546 if { (ac_try="$ac_compile"
5547 case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550 esac
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_compile") 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } && {
5559 test -z "$ac_cxx_werror_flag" ||
5560 test ! -s conftest.err
5561 } && test -s conftest.$ac_objext; then
5563 else
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5567 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5568 CXXFLAGS="-g"
5569 cat >conftest.$ac_ext <<_ACEOF
5570 /* confdefs.h. */
5571 _ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5577 main ()
5581 return 0;
5583 _ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5586 case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_compile") 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && {
5598 test -z "$ac_cxx_werror_flag" ||
5599 test ! -s conftest.err
5600 } && test -s conftest.$ac_objext; then
5601 ac_cv_prog_cxx_g=yes
5602 else
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5618 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5619 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5620 if test "$ac_test_CXXFLAGS" = set; then
5621 CXXFLAGS=$ac_save_CXXFLAGS
5622 elif test $ac_cv_prog_cxx_g = yes; then
5623 if test "$GXX" = yes; then
5624 CXXFLAGS="-g -O2"
5625 else
5626 CXXFLAGS="-g"
5628 else
5629 if test "$GXX" = yes; then
5630 CXXFLAGS="-O2"
5631 else
5632 CXXFLAGS=
5635 ac_ext=c
5636 ac_cpp='$CPP $CPPFLAGS'
5637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641 ac_ext=c
5642 ac_cpp='$CPP $CPPFLAGS'
5643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5647 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5648 # On Suns, sometimes $CPP names a directory.
5649 if test -n "$CPP" && test -d "$CPP"; then
5650 CPP=
5652 if test -z "$CPP"; then
5653 if test "${ac_cv_prog_CPP+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656 # Double quotes because CPP needs to be expanded
5657 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5659 ac_preproc_ok=false
5660 for ac_c_preproc_warn_flag in '' yes
5662 # Use a header file that comes with gcc, so configuring glibc
5663 # with a fresh cross-compiler works.
5664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5665 # <limits.h> exists even on freestanding compilers.
5666 # On the NeXT, cc -E runs the code through the compiler's parser,
5667 # not just through cpp. "Syntax error" is here to catch this case.
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #ifdef __STDC__
5675 # include <limits.h>
5676 #else
5677 # include <assert.h>
5678 #endif
5679 Syntax error
5680 _ACEOF
5681 if { (ac_try="$ac_cpp conftest.$ac_ext"
5682 case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } >/dev/null && {
5694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5696 }; then
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5702 # Broken: fails on valid input.
5703 continue
5706 rm -f conftest.err conftest.$ac_ext
5708 # OK, works on sane cases. Now check whether nonexistent headers
5709 # can be detected and how.
5710 cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h. */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #include <ac_nonexistent.h>
5717 _ACEOF
5718 if { (ac_try="$ac_cpp conftest.$ac_ext"
5719 case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } >/dev/null && {
5731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 }; then
5734 # Broken: success on invalid input.
5735 continue
5736 else
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 # Passes both tests.
5741 ac_preproc_ok=:
5742 break
5745 rm -f conftest.err conftest.$ac_ext
5747 done
5748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5749 rm -f conftest.err conftest.$ac_ext
5750 if $ac_preproc_ok; then
5751 break
5754 done
5755 ac_cv_prog_CPP=$CPP
5758 CPP=$ac_cv_prog_CPP
5759 else
5760 ac_cv_prog_CPP=$CPP
5762 { echo "$as_me:$LINENO: result: $CPP" >&5
5763 echo "${ECHO_T}$CPP" >&6; }
5764 ac_preproc_ok=false
5765 for ac_c_preproc_warn_flag in '' yes
5767 # Use a header file that comes with gcc, so configuring glibc
5768 # with a fresh cross-compiler works.
5769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5770 # <limits.h> exists even on freestanding compilers.
5771 # On the NeXT, cc -E runs the code through the compiler's parser,
5772 # not just through cpp. "Syntax error" is here to catch this case.
5773 cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h. */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779 #ifdef __STDC__
5780 # include <limits.h>
5781 #else
5782 # include <assert.h>
5783 #endif
5784 Syntax error
5785 _ACEOF
5786 if { (ac_try="$ac_cpp conftest.$ac_ext"
5787 case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } >/dev/null && {
5799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5800 test ! -s conftest.err
5801 }; then
5803 else
5804 echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5807 # Broken: fails on valid input.
5808 continue
5811 rm -f conftest.err conftest.$ac_ext
5813 # OK, works on sane cases. Now check whether nonexistent headers
5814 # can be detected and how.
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 #include <ac_nonexistent.h>
5822 _ACEOF
5823 if { (ac_try="$ac_cpp conftest.$ac_ext"
5824 case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } >/dev/null && {
5836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 }; then
5839 # Broken: success on invalid input.
5840 continue
5841 else
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5845 # Passes both tests.
5846 ac_preproc_ok=:
5847 break
5850 rm -f conftest.err conftest.$ac_ext
5852 done
5853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5854 rm -f conftest.err conftest.$ac_ext
5855 if $ac_preproc_ok; then
5857 else
5858 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5859 See \`config.log' for more details." >&5
5860 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5861 See \`config.log' for more details." >&2;}
5862 { (exit 1); exit 1; }; }
5865 ac_ext=c
5866 ac_cpp='$CPP $CPPFLAGS'
5867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5871 ac_ext=cpp
5872 ac_cpp='$CXXCPP $CPPFLAGS'
5873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5876 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5877 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5878 if test -z "$CXXCPP"; then
5879 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 # Double quotes because CXXCPP needs to be expanded
5883 for CXXCPP in "$CXX -E" "/lib/cpp"
5885 ac_preproc_ok=false
5886 for ac_cxx_preproc_warn_flag in '' yes
5888 # Use a header file that comes with gcc, so configuring glibc
5889 # with a fresh cross-compiler works.
5890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5891 # <limits.h> exists even on freestanding compilers.
5892 # On the NeXT, cc -E runs the code through the compiler's parser,
5893 # not just through cpp. "Syntax error" is here to catch this case.
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 #ifdef __STDC__
5901 # include <limits.h>
5902 #else
5903 # include <assert.h>
5904 #endif
5905 Syntax error
5906 _ACEOF
5907 if { (ac_try="$ac_cpp conftest.$ac_ext"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } >/dev/null && {
5920 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5921 test ! -s conftest.err
5922 }; then
5924 else
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 # Broken: fails on valid input.
5929 continue
5932 rm -f conftest.err conftest.$ac_ext
5934 # OK, works on sane cases. Now check whether nonexistent headers
5935 # can be detected and how.
5936 cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h. */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 #include <ac_nonexistent.h>
5943 _ACEOF
5944 if { (ac_try="$ac_cpp conftest.$ac_ext"
5945 case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948 esac
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } >/dev/null && {
5957 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5958 test ! -s conftest.err
5959 }; then
5960 # Broken: success on invalid input.
5961 continue
5962 else
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5966 # Passes both tests.
5967 ac_preproc_ok=:
5968 break
5971 rm -f conftest.err conftest.$ac_ext
5973 done
5974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5975 rm -f conftest.err conftest.$ac_ext
5976 if $ac_preproc_ok; then
5977 break
5980 done
5981 ac_cv_prog_CXXCPP=$CXXCPP
5984 CXXCPP=$ac_cv_prog_CXXCPP
5985 else
5986 ac_cv_prog_CXXCPP=$CXXCPP
5988 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5989 echo "${ECHO_T}$CXXCPP" >&6; }
5990 ac_preproc_ok=false
5991 for ac_cxx_preproc_warn_flag in '' yes
5993 # Use a header file that comes with gcc, so configuring glibc
5994 # with a fresh cross-compiler works.
5995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5996 # <limits.h> exists even on freestanding compilers.
5997 # On the NeXT, cc -E runs the code through the compiler's parser,
5998 # not just through cpp. "Syntax error" is here to catch this case.
5999 cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h. */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 #ifdef __STDC__
6006 # include <limits.h>
6007 #else
6008 # include <assert.h>
6009 #endif
6010 Syntax error
6011 _ACEOF
6012 if { (ac_try="$ac_cpp conftest.$ac_ext"
6013 case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6019 ac_status=$?
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } >/dev/null && {
6025 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6026 test ! -s conftest.err
6027 }; then
6029 else
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6033 # Broken: fails on valid input.
6034 continue
6037 rm -f conftest.err conftest.$ac_ext
6039 # OK, works on sane cases. Now check whether nonexistent headers
6040 # can be detected and how.
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h. */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 #include <ac_nonexistent.h>
6048 _ACEOF
6049 if { (ac_try="$ac_cpp conftest.$ac_ext"
6050 case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053 esac
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } >/dev/null && {
6062 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6063 test ! -s conftest.err
6064 }; then
6065 # Broken: success on invalid input.
6066 continue
6067 else
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6071 # Passes both tests.
6072 ac_preproc_ok=:
6073 break
6076 rm -f conftest.err conftest.$ac_ext
6078 done
6079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6080 rm -f conftest.err conftest.$ac_ext
6081 if $ac_preproc_ok; then
6083 else
6084 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6085 See \`config.log' for more details." >&5
6086 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6087 See \`config.log' for more details." >&2;}
6088 { (exit 1); exit 1; }; }
6091 ac_ext=c
6092 ac_cpp='$CPP $CPPFLAGS'
6093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6097 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6098 # the developers regenerating the configure script don't have to install libtool.
6099 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6100 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6101 if test "${ac_cv_path_SED+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6105 for ac_i in 1 2 3 4 5 6 7; do
6106 ac_script="$ac_script$as_nl$ac_script"
6107 done
6108 echo "$ac_script" | sed 99q >conftest.sed
6109 $as_unset ac_script || ac_script=
6110 # Extract the first word of "sed gsed" to use in msg output
6111 if test -z "$SED"; then
6112 set dummy sed gsed; ac_prog_name=$2
6113 if test "${ac_cv_path_SED+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116 ac_path_SED_found=false
6117 # Loop through the user's path and test for each of PROGNAME-LIST
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_prog in sed gsed; do
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6126 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6127 # Check for GNU ac_path_SED and select it if it is found.
6128 # Check for GNU $ac_path_SED
6129 case `"$ac_path_SED" --version 2>&1` in
6130 *GNU*)
6131 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6133 ac_count=0
6134 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6135 while :
6137 cat "conftest.in" "conftest.in" >"conftest.tmp"
6138 mv "conftest.tmp" "conftest.in"
6139 cp "conftest.in" "conftest.nl"
6140 echo '' >> "conftest.nl"
6141 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6143 ac_count=`expr $ac_count + 1`
6144 if test $ac_count -gt ${ac_path_SED_max-0}; then
6145 # Best one so far, save it but keep looking for a better one
6146 ac_cv_path_SED="$ac_path_SED"
6147 ac_path_SED_max=$ac_count
6149 # 10*(2^10) chars as input seems more than enough
6150 test $ac_count -gt 10 && break
6151 done
6152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6153 esac
6156 $ac_path_SED_found && break 3
6157 done
6158 done
6160 done
6161 IFS=$as_save_IFS
6166 SED="$ac_cv_path_SED"
6167 if test -z "$SED"; then
6168 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6169 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6170 { (exit 1); exit 1; }; }
6173 else
6174 ac_cv_path_SED=$SED
6178 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6179 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6180 SED="$ac_cv_path_SED"
6181 rm -f conftest.sed
6183 { echo "$as_me:$LINENO: checking for egrep" >&5
6184 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6185 if test "${ac_cv_prog_egrep+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6189 then ac_cv_prog_egrep='grep -E'
6190 else ac_cv_prog_egrep='egrep'
6193 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6194 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6195 EGREP=$ac_cv_prog_egrep
6199 # Check whether --with-gnu-ld was given.
6200 if test "${with_gnu_ld+set}" = set; then
6201 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6202 else
6203 with_gnu_ld=no
6206 ac_prog=ld
6207 if test "$GCC" = yes; then
6208 # Check if gcc -print-prog-name=ld gives a path.
6209 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6210 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6211 case $host in
6212 *-*-mingw*)
6213 # gcc leaves a trailing carriage return which upsets mingw
6214 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6216 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6217 esac
6218 case $ac_prog in
6219 # Accept absolute paths.
6220 [\\/]* | ?:[\\/]*)
6221 re_direlt='/[^/][^/]*/\.\./'
6222 # Canonicalize the pathname of ld
6223 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6224 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6225 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6226 done
6227 test -z "$LD" && LD="$ac_prog"
6230 # If it fails, then pretend we aren't using GCC.
6231 ac_prog=ld
6234 # If it is relative, then search for the first ld in PATH.
6235 with_gnu_ld=unknown
6237 esac
6238 elif test "$with_gnu_ld" = yes; then
6239 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6240 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6241 else
6242 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6243 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6245 if test "${lt_cv_path_LD+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248 if test -z "$LD"; then
6249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6250 for ac_dir in $PATH; do
6251 IFS="$lt_save_ifs"
6252 test -z "$ac_dir" && ac_dir=.
6253 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6254 lt_cv_path_LD="$ac_dir/$ac_prog"
6255 # Check to see if the program is GNU ld. I'd rather use --version,
6256 # but apparently some variants of GNU ld only accept -v.
6257 # Break only if it was the GNU/non-GNU ld that we prefer.
6258 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6259 *GNU* | *'with BFD'*)
6260 test "$with_gnu_ld" != no && break
6263 test "$with_gnu_ld" != yes && break
6265 esac
6267 done
6268 IFS="$lt_save_ifs"
6269 else
6270 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6274 LD="$lt_cv_path_LD"
6275 if test -n "$LD"; then
6276 { echo "$as_me:$LINENO: result: $LD" >&5
6277 echo "${ECHO_T}$LD" >&6; }
6278 else
6279 { echo "$as_me:$LINENO: result: no" >&5
6280 echo "${ECHO_T}no" >&6; }
6282 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6283 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6284 { (exit 1); exit 1; }; }
6285 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6286 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6287 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6291 case `$LD -v 2>&1 </dev/null` in
6292 *GNU* | *'with BFD'*)
6293 lt_cv_prog_gnu_ld=yes
6296 lt_cv_prog_gnu_ld=no
6298 esac
6300 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6301 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6302 with_gnu_ld=$lt_cv_prog_gnu_ld
6304 # note, does not work on FreeBSD
6305 for ac_prog in gawk mawk nawk awk
6307 # Extract the first word of "$ac_prog", so it can be a program name with args.
6308 set dummy $ac_prog; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_prog_AWK+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314 if test -n "$AWK"; then
6315 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_AWK="$ac_prog"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6328 done
6329 done
6330 IFS=$as_save_IFS
6334 AWK=$ac_cv_prog_AWK
6335 if test -n "$AWK"; then
6336 { echo "$as_me:$LINENO: result: $AWK" >&5
6337 echo "${ECHO_T}$AWK" >&6; }
6338 else
6339 { echo "$as_me:$LINENO: result: no" >&5
6340 echo "${ECHO_T}no" >&6; }
6344 test -n "$AWK" && break
6345 done
6347 # Find a good install program. We prefer a C program (faster),
6348 # so one script is as good as another. But avoid the broken or
6349 # incompatible versions:
6350 # SysV /etc/install, /usr/sbin/install
6351 # SunOS /usr/etc/install
6352 # IRIX /sbin/install
6353 # AIX /bin/install
6354 # AmigaOS /C/install, which installs bootblocks on floppy discs
6355 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6356 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6357 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6358 # OS/2's system install, which has a completely different semantic
6359 # ./install, which can be erroneously created by make from ./install.sh.
6360 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6361 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6362 if test -z "$INSTALL"; then
6363 if test "${ac_cv_path_install+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 # Account for people who put trailing slashes in PATH elements.
6372 case $as_dir/ in
6373 ./ | .// | /cC/* | \
6374 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6375 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6376 /usr/ucb/* ) ;;
6378 # OSF1 and SCO ODT 3.0 have their own names for install.
6379 # Don't use installbsd from OSF since it installs stuff as root
6380 # by default.
6381 for ac_prog in ginstall scoinst install; do
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6384 if test $ac_prog = install &&
6385 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6386 # AIX install. It has an incompatible calling convention.
6388 elif test $ac_prog = install &&
6389 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6390 # program-specific install script used by HP pwplus--don't use.
6392 else
6393 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6394 break 3
6397 done
6398 done
6400 esac
6401 done
6402 IFS=$as_save_IFS
6406 if test "${ac_cv_path_install+set}" = set; then
6407 INSTALL=$ac_cv_path_install
6408 else
6409 # As a last resort, use the slow shell script. Don't cache a
6410 # value for INSTALL within a source directory, because that will
6411 # break other packages using the cache if that directory is
6412 # removed, or if the value is a relative name.
6413 INSTALL=$ac_install_sh
6416 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6417 echo "${ECHO_T}$INSTALL" >&6; }
6419 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6420 # It thinks the first close brace ends the variable substitution.
6421 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6423 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6425 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6427 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6428 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6429 LN_S=$as_ln_s
6430 if test "$LN_S" = "ln -s"; then
6431 { echo "$as_me:$LINENO: result: yes" >&5
6432 echo "${ECHO_T}yes" >&6; }
6433 else
6434 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6435 echo "${ECHO_T}no, using $LN_S" >&6; }
6438 if test -n "$ac_tool_prefix"; then
6439 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6443 if test "${ac_cv_prog_RANLIB+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 else
6446 if test -n "$RANLIB"; then
6447 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6460 done
6461 done
6462 IFS=$as_save_IFS
6466 RANLIB=$ac_cv_prog_RANLIB
6467 if test -n "$RANLIB"; then
6468 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6469 echo "${ECHO_T}$RANLIB" >&6; }
6470 else
6471 { echo "$as_me:$LINENO: result: no" >&5
6472 echo "${ECHO_T}no" >&6; }
6477 if test -z "$ac_cv_prog_RANLIB"; then
6478 ac_ct_RANLIB=$RANLIB
6479 # Extract the first word of "ranlib", so it can be a program name with args.
6480 set dummy ranlib; ac_word=$2
6481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486 if test -n "$ac_ct_RANLIB"; then
6487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_ac_ct_RANLIB="ranlib"
6497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 break 2
6500 done
6501 done
6502 IFS=$as_save_IFS
6506 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6507 if test -n "$ac_ct_RANLIB"; then
6508 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6509 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6510 else
6511 { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6515 if test "x$ac_ct_RANLIB" = x; then
6516 RANLIB=":"
6517 else
6518 case $cross_compiling:$ac_tool_warned in
6519 yes:)
6520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6521 whose name does not start with the host triplet. If you think this
6522 configuration is useful to you, please write to autoconf@gnu.org." >&5
6523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6524 whose name does not start with the host triplet. If you think this
6525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6526 ac_tool_warned=yes ;;
6527 esac
6528 RANLIB=$ac_ct_RANLIB
6530 else
6531 RANLIB="$ac_cv_prog_RANLIB"
6534 { echo "$as_me:$LINENO: checking for GNU make" >&5
6535 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6536 if test "${GNU_MAKE+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539 GNU_MAKE='Not Found' ;
6540 GNU_MAKE_VERSION_MAJOR=0 ;
6541 GNU_MAKE_VERSION_MINOR=0 ;
6542 for a in make gmake gnumake ; do
6543 if test -z "$a" ; then continue ; fi ;
6544 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6545 GNU_MAKE=$a ;
6546 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6547 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6548 break;
6550 done ;
6553 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6554 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6555 if test "x$GNU_MAKE" = "xNot Found" ; then
6556 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6557 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6558 { (exit 1); exit 1; }; }
6559 exit 1
6564 if test -n "$ac_tool_prefix"; then
6565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6566 set dummy ${ac_tool_prefix}strip; ac_word=$2
6567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569 if test "${ac_cv_path_STRIP+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572 case $STRIP in
6573 [\\/]* | ?:[\\/]*)
6574 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6580 IFS=$as_save_IFS
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 break 2
6588 done
6589 done
6590 IFS=$as_save_IFS
6593 esac
6595 STRIP=$ac_cv_path_STRIP
6596 if test -n "$STRIP"; then
6597 { echo "$as_me:$LINENO: result: $STRIP" >&5
6598 echo "${ECHO_T}$STRIP" >&6; }
6599 else
6600 { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6606 if test -z "$ac_cv_path_STRIP"; then
6607 ac_pt_STRIP=$STRIP
6608 # Extract the first word of "strip", so it can be a program name with args.
6609 set dummy strip; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615 case $ac_pt_STRIP in
6616 [\\/]* | ?:[\\/]*)
6617 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6623 IFS=$as_save_IFS
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 break 2
6631 done
6632 done
6633 IFS=$as_save_IFS
6636 esac
6638 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6639 if test -n "$ac_pt_STRIP"; then
6640 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6641 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6642 else
6643 { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6647 if test "x$ac_pt_STRIP" = x; then
6648 STRIP=":"
6649 else
6650 case $cross_compiling:$ac_tool_warned in
6651 yes:)
6652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6653 whose name does not start with the host triplet. If you think this
6654 configuration is useful to you, please write to autoconf@gnu.org." >&5
6655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6656 whose name does not start with the host triplet. If you think this
6657 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6658 ac_tool_warned=yes ;;
6659 esac
6660 STRIP=$ac_pt_STRIP
6662 else
6663 STRIP="$ac_cv_path_STRIP"
6666 if test -n "$ac_tool_prefix"; then
6667 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6668 set dummy ${ac_tool_prefix}ar; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_AR+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 case $AR in
6675 [\\/]* | ?:[\\/]*)
6676 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 break 2
6690 done
6691 done
6692 IFS=$as_save_IFS
6695 esac
6697 AR=$ac_cv_path_AR
6698 if test -n "$AR"; then
6699 { echo "$as_me:$LINENO: result: $AR" >&5
6700 echo "${ECHO_T}$AR" >&6; }
6701 else
6702 { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6708 if test -z "$ac_cv_path_AR"; then
6709 ac_pt_AR=$AR
6710 # Extract the first word of "ar", so it can be a program name with args.
6711 set dummy ar; ac_word=$2
6712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 case $ac_pt_AR in
6718 [\\/]* | ?:[\\/]*)
6719 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6733 done
6734 done
6735 IFS=$as_save_IFS
6738 esac
6740 ac_pt_AR=$ac_cv_path_ac_pt_AR
6741 if test -n "$ac_pt_AR"; then
6742 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6743 echo "${ECHO_T}$ac_pt_AR" >&6; }
6744 else
6745 { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6749 if test "x$ac_pt_AR" = x; then
6750 AR=":"
6751 else
6752 case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6755 whose name does not start with the host triplet. If you think this
6756 configuration is useful to you, please write to autoconf@gnu.org." >&5
6757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet. If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762 AR=$ac_pt_AR
6764 else
6765 AR="$ac_cv_path_AR"
6769 GNU_LD=0
6770 if test "x$with_gnu_ld" = "xyes" ; then
6771 GNU_LD=1
6775 # Extract the first word of "grep", so it can be a program name with args.
6776 set dummy grep; ac_word=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_path_GREP+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782 case $GREP in
6783 [\\/]* | ?:[\\/]*)
6784 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6798 done
6799 done
6800 IFS=$as_save_IFS
6802 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6804 esac
6806 GREP=$ac_cv_path_GREP
6807 if test -n "$GREP"; then
6808 { echo "$as_me:$LINENO: result: $GREP" >&5
6809 echo "${ECHO_T}$GREP" >&6; }
6810 else
6811 { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6816 # Extract the first word of "find", so it can be a program name with args.
6817 set dummy find; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_path_FIND+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823 case $FIND in
6824 [\\/]* | ?:[\\/]*)
6825 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6839 done
6840 done
6841 IFS=$as_save_IFS
6843 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6845 esac
6847 FIND=$ac_cv_path_FIND
6848 if test -n "$FIND"; then
6849 { echo "$as_me:$LINENO: result: $FIND" >&5
6850 echo "${ECHO_T}$FIND" >&6; }
6851 else
6852 { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6857 # Extract the first word of "compress", so it can be a program name with args.
6858 set dummy compress; ac_word=$2
6859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861 if test "${ac_cv_path_COMPRESS+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 case $COMPRESS in
6865 [\\/]* | ?:[\\/]*)
6866 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6880 done
6881 done
6882 IFS=$as_save_IFS
6884 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6886 esac
6888 COMPRESS=$ac_cv_path_COMPRESS
6889 if test -n "$COMPRESS"; then
6890 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6891 echo "${ECHO_T}$COMPRESS" >&6; }
6892 else
6893 { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6898 # Extract the first word of "basename", so it can be a program name with args.
6899 set dummy basename; ac_word=$2
6900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902 if test "${ac_cv_path_BASENAME+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 else
6905 case $BASENAME in
6906 [\\/]* | ?:[\\/]*)
6907 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6921 done
6922 done
6923 IFS=$as_save_IFS
6925 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6927 esac
6929 BASENAME=$ac_cv_path_BASENAME
6930 if test -n "$BASENAME"; then
6931 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6932 echo "${ECHO_T}$BASENAME" >&6; }
6933 else
6934 { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6939 # Extract the first word of "id", so it can be a program name with args.
6940 set dummy id; ac_word=$2
6941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6943 if test "${ac_cv_path_ID+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946 case $ID in
6947 [\\/]* | ?:[\\/]*)
6948 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6962 done
6963 done
6964 IFS=$as_save_IFS
6966 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6968 esac
6970 ID=$ac_cv_path_ID
6971 if test -n "$ID"; then
6972 { echo "$as_me:$LINENO: result: $ID" >&5
6973 echo "${ECHO_T}$ID" >&6; }
6974 else
6975 { echo "$as_me:$LINENO: result: no" >&5
6976 echo "${ECHO_T}no" >&6; }
6980 # Extract the first word of "dirname", so it can be a program name with args.
6981 set dummy dirname; ac_word=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_path_DIRNAME+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 case $DIRNAME in
6988 [\\/]* | ?:[\\/]*)
6989 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7003 done
7004 done
7005 IFS=$as_save_IFS
7007 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
7009 esac
7011 DIRNAME=$ac_cv_path_DIRNAME
7012 if test -n "$DIRNAME"; then
7013 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
7014 echo "${ECHO_T}$DIRNAME" >&6; }
7015 else
7016 { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7021 # Extract the first word of "sh", so it can be a program name with args.
7022 set dummy sh; ac_word=$2
7023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025 if test "${ac_cv_path_SHELL+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028 case $SHELL in
7029 [\\/]* | ?:[\\/]*)
7030 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7040 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
7041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 break 2
7044 done
7045 done
7046 IFS=$as_save_IFS
7048 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7050 esac
7052 SHELL=$ac_cv_path_SHELL
7053 if test -n "$SHELL"; then
7054 { echo "$as_me:$LINENO: result: $SHELL" >&5
7055 echo "${ECHO_T}$SHELL" >&6; }
7056 else
7057 { echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6; }
7062 # Extract the first word of "ln", so it can be a program name with args.
7063 set dummy ln; ac_word=$2
7064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066 if test "${ac_cv_path_LN+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 case $LN in
7070 [\\/]* | ?:[\\/]*)
7071 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7085 done
7086 done
7087 IFS=$as_save_IFS
7089 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7091 esac
7093 LN=$ac_cv_path_LN
7094 if test -n "$LN"; then
7095 { echo "$as_me:$LINENO: result: $LN" >&5
7096 echo "${ECHO_T}$LN" >&6; }
7097 else
7098 { echo "$as_me:$LINENO: result: no" >&5
7099 echo "${ECHO_T}no" >&6; }
7103 # Extract the first word of "dot", so it can be a program name with args.
7104 set dummy dot; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_path_DOT+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 case $DOT in
7111 [\\/]* | ?:[\\/]*)
7112 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7122 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7126 done
7127 done
7128 IFS=$as_save_IFS
7130 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7132 esac
7134 DOT=$ac_cv_path_DOT
7135 if test -n "$DOT"; then
7136 { echo "$as_me:$LINENO: result: $DOT" >&5
7137 echo "${ECHO_T}$DOT" >&6; }
7138 else
7139 { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7144 # Extract the first word of "wget", so it can be a program name with args.
7145 set dummy wget; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_WGET+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151 case $WGET in
7152 [\\/]* | ?:[\\/]*)
7153 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7167 done
7168 done
7169 IFS=$as_save_IFS
7171 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7173 esac
7175 WGET=$ac_cv_path_WGET
7176 if test -n "$WGET"; then
7177 { echo "$as_me:$LINENO: result: $WGET" >&5
7178 echo "${ECHO_T}$WGET" >&6; }
7179 else
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7185 # Extract the first word of "rubber", so it can be a program name with args.
7186 set dummy rubber; ac_word=$2
7187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189 if test "${ac_cv_path_RUBBER+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192 case $RUBBER in
7193 [\\/]* | ?:[\\/]*)
7194 ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7204 ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
7205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 break 2
7208 done
7209 done
7210 IFS=$as_save_IFS
7212 test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
7214 esac
7216 RUBBER=$ac_cv_path_RUBBER
7217 if test -n "$RUBBER"; then
7218 { echo "$as_me:$LINENO: result: $RUBBER" >&5
7219 echo "${ECHO_T}$RUBBER" >&6; }
7220 else
7221 { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7226 # Extract the first word of "kpsewhich", so it can be a program name with args.
7227 set dummy kpsewhich; ac_word=$2
7228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7230 if test "${ac_cv_path_KPATHSEA+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233 case $KPATHSEA in
7234 [\\/]* | ?:[\\/]*)
7235 ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
7246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7249 done
7250 done
7251 IFS=$as_save_IFS
7253 test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
7255 esac
7257 KPATHSEA=$ac_cv_path_KPATHSEA
7258 if test -n "$KPATHSEA"; then
7259 { echo "$as_me:$LINENO: result: $KPATHSEA" >&5
7260 echo "${ECHO_T}$KPATHSEA" >&6; }
7261 else
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7267 if test "${WGET}" != ":" ; then
7268 DOWNLOAD=${WGET}
7269 else
7270 # Extract the first word of "fetch", so it can be a program name with args.
7271 set dummy fetch; ac_word=$2
7272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274 if test "${ac_cv_path_FETCH+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277 case $FETCH in
7278 [\\/]* | ?:[\\/]*)
7279 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7289 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7293 done
7294 done
7295 IFS=$as_save_IFS
7297 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7299 esac
7301 FETCH=$ac_cv_path_FETCH
7302 if test -n "$FETCH"; then
7303 { echo "$as_me:$LINENO: result: $FETCH" >&5
7304 echo "${ECHO_T}$FETCH" >&6; }
7305 else
7306 { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7311 DOWNLOAD=${FETCH}
7315 if test -n "$ac_tool_prefix"; then
7316 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7317 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323 if test -n "$SOXMIX"; then
7324 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 break 2
7337 done
7338 done
7339 IFS=$as_save_IFS
7343 SOXMIX=$ac_cv_prog_SOXMIX
7344 if test -n "$SOXMIX"; then
7345 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7346 echo "${ECHO_T}$SOXMIX" >&6; }
7347 else
7348 { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7354 if test -z "$ac_cv_prog_SOXMIX"; then
7355 ac_ct_SOXMIX=$SOXMIX
7356 # Extract the first word of "soxmix", so it can be a program name with args.
7357 set dummy soxmix; ac_word=$2
7358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363 if test -n "$ac_ct_SOXMIX"; then
7364 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7377 done
7378 done
7379 IFS=$as_save_IFS
7383 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7384 if test -n "$ac_ct_SOXMIX"; then
7385 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7386 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7387 else
7388 { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7392 if test "x$ac_ct_SOXMIX" = x; then
7393 SOXMIX=":"
7394 else
7395 case $cross_compiling:$ac_tool_warned in
7396 yes:)
7397 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7398 whose name does not start with the host triplet. If you think this
7399 configuration is useful to you, please write to autoconf@gnu.org." >&5
7400 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7401 whose name does not start with the host triplet. If you think this
7402 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7403 ac_tool_warned=yes ;;
7404 esac
7405 SOXMIX=$ac_ct_SOXMIX
7407 else
7408 SOXMIX="$ac_cv_prog_SOXMIX"
7411 if test "${SOXMIX}" != ":" ; then
7413 cat >>confdefs.h <<\_ACEOF
7414 #define HAVE_SOXMIX 1
7415 _ACEOF
7422 ac_ext=c
7423 ac_cpp='$CPP $CPPFLAGS'
7424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7428 acx_pthread_ok=no
7430 # We used to check for pthread.h first, but this fails if pthread.h
7431 # requires special compiler flags (e.g. on True64 or Sequent).
7432 # It gets checked for in the link test anyway.
7434 # First of all, check if the user has set any of the PTHREAD_LIBS,
7435 # etcetera environment variables, and if threads linking works using
7436 # them:
7437 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7438 save_CFLAGS="$CFLAGS"
7439 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7440 save_LIBS="$LIBS"
7441 LIBS="$PTHREAD_LIBS $LIBS"
7442 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7443 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7444 cat >conftest.$ac_ext <<_ACEOF
7445 /* confdefs.h. */
7446 _ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7451 /* Override any GCC internal prototype to avoid an error.
7452 Use char because int might match the return type of a GCC
7453 builtin and then its argument prototype would still apply. */
7454 #ifdef __cplusplus
7455 extern "C"
7456 #endif
7457 char pthread_join ();
7459 main ()
7461 return pthread_join ();
7463 return 0;
7465 _ACEOF
7466 rm -f conftest.$ac_objext conftest$ac_exeext
7467 if { (ac_try="$ac_link"
7468 case "(($ac_try" in
7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7471 esac
7472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7473 (eval "$ac_link") 2>conftest.er1
7474 ac_status=$?
7475 grep -v '^ *+' conftest.er1 >conftest.err
7476 rm -f conftest.er1
7477 cat conftest.err >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && {
7480 test -z "$ac_c_werror_flag" ||
7481 test ! -s conftest.err
7482 } && test -s conftest$ac_exeext &&
7483 $as_test_x conftest$ac_exeext; then
7484 acx_pthread_ok=yes
7485 else
7486 echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7493 conftest$ac_exeext conftest.$ac_ext
7494 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7495 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7496 if test x"$acx_pthread_ok" = xno; then
7497 PTHREAD_LIBS=""
7498 PTHREAD_CFLAGS=""
7500 LIBS="$save_LIBS"
7501 CFLAGS="$save_CFLAGS"
7504 # We must check for the threads library under a number of different
7505 # names; the ordering is very important because some systems
7506 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7507 # libraries is broken (non-POSIX).
7509 # Create a list of thread flags to try. Items starting with a "-" are
7510 # C compiler flags, and other items are library names, except for "none"
7511 # which indicates that we try without any flags at all, and "pthread-config"
7512 # which is a program returning the flags for the Pth emulation library.
7514 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7516 # The ordering *is* (sometimes) important. Some notes on the
7517 # individual items follow:
7519 # pthreads: AIX (must check this before -lpthread)
7520 # none: in case threads are in libc; should be tried before -Kthread and
7521 # other compiler flags to prevent continual compiler warnings
7522 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7523 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7524 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7525 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7526 # -pthreads: Solaris/gcc
7527 # -mthreads: Mingw32/gcc, Lynx/gcc
7528 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7529 # doesn't hurt to check since this sometimes defines pthreads too;
7530 # also defines -D_REENTRANT)
7531 # ... -mt is also the pthreads flag for HP/aCC
7532 # pthread: Linux, etcetera
7533 # --thread-safe: KAI C++
7534 # pthread-config: use pthread-config program (for GNU Pth library)
7536 case "${host_cpu}-${host_os}" in
7537 *solaris*)
7539 # On Solaris (at least, for some versions), libc contains stubbed
7540 # (non-functional) versions of the pthreads routines, so link-based
7541 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7542 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7543 # a function called by this macro, so we could check for that, but
7544 # who knows whether they'll stub that too in a future libc.) So,
7545 # we'll just look for -pthreads and -lpthread first:
7547 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7549 esac
7551 if test x"$acx_pthread_ok" = xno; then
7552 for flag in $acx_pthread_flags; do
7554 case $flag in
7555 none)
7556 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7557 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7561 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7562 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7563 PTHREAD_CFLAGS="$flag"
7566 pthread-config)
7567 # Extract the first word of "pthread-config", so it can be a program name with args.
7568 set dummy pthread-config; ac_word=$2
7569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7571 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574 if test -n "$acx_pthread_config"; then
7575 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7584 ac_cv_prog_acx_pthread_config="yes"
7585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7588 done
7589 done
7590 IFS=$as_save_IFS
7592 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7595 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7596 if test -n "$acx_pthread_config"; then
7597 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7598 echo "${ECHO_T}$acx_pthread_config" >&6; }
7599 else
7600 { echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6; }
7605 if test x"$acx_pthread_config" = xno; then continue; fi
7606 PTHREAD_CFLAGS="`pthread-config --cflags`"
7607 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7611 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7612 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7613 PTHREAD_LIBS="-l$flag"
7615 esac
7617 save_LIBS="$LIBS"
7618 save_CFLAGS="$CFLAGS"
7619 LIBS="$PTHREAD_LIBS $LIBS"
7620 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7622 # Check for various functions. We must include pthread.h,
7623 # since some functions may be macros. (On the Sequent, we
7624 # need a special flag -Kthread to make this header compile.)
7625 # We check for pthread_join because it is in -lpthread on IRIX
7626 # while pthread_create is in libc. We check for pthread_attr_init
7627 # due to DEC craziness with -lpthreads. We check for
7628 # pthread_cleanup_push because it is one of the few pthread
7629 # functions on Solaris that doesn't have a non-functional libc stub.
7630 # We try pthread_create on general principles.
7631 cat >conftest.$ac_ext <<_ACEOF
7632 /* confdefs.h. */
7633 _ACEOF
7634 cat confdefs.h >>conftest.$ac_ext
7635 cat >>conftest.$ac_ext <<_ACEOF
7636 /* end confdefs.h. */
7637 #include <pthread.h>
7639 main ()
7641 pthread_t th; pthread_join(th, 0);
7642 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7643 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7645 return 0;
7647 _ACEOF
7648 rm -f conftest.$ac_objext conftest$ac_exeext
7649 if { (ac_try="$ac_link"
7650 case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653 esac
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_link") 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest$ac_exeext &&
7665 $as_test_x conftest$ac_exeext; then
7666 acx_pthread_ok=yes
7667 else
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7675 conftest$ac_exeext conftest.$ac_ext
7677 LIBS="$save_LIBS"
7678 CFLAGS="$save_CFLAGS"
7680 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7681 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7682 if test "x$acx_pthread_ok" = xyes; then
7683 break;
7686 PTHREAD_LIBS=""
7687 PTHREAD_CFLAGS=""
7688 done
7691 # Various other checks:
7692 if test "x$acx_pthread_ok" = xyes; then
7693 save_LIBS="$LIBS"
7694 LIBS="$PTHREAD_LIBS $LIBS"
7695 save_CFLAGS="$CFLAGS"
7696 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7698 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7699 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7700 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7701 attr_name=unknown
7702 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7703 cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h. */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 #include <pthread.h>
7711 main ()
7713 int attr=$attr; return attr;
7715 return 0;
7717 _ACEOF
7718 rm -f conftest.$ac_objext conftest$ac_exeext
7719 if { (ac_try="$ac_link"
7720 case "(($ac_try" in
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7723 esac
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_link") 2>conftest.er1
7726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && {
7732 test -z "$ac_c_werror_flag" ||
7733 test ! -s conftest.err
7734 } && test -s conftest$ac_exeext &&
7735 $as_test_x conftest$ac_exeext; then
7736 attr_name=$attr; break
7737 else
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7745 conftest$ac_exeext conftest.$ac_ext
7746 done
7747 { echo "$as_me:$LINENO: result: $attr_name" >&5
7748 echo "${ECHO_T}$attr_name" >&6; }
7749 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7751 cat >>confdefs.h <<_ACEOF
7752 #define PTHREAD_CREATE_JOINABLE $attr_name
7753 _ACEOF
7757 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7758 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7759 flag=no
7760 case "${host_cpu}-${host_os}" in
7761 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7762 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7763 esac
7764 { echo "$as_me:$LINENO: result: ${flag}" >&5
7765 echo "${ECHO_T}${flag}" >&6; }
7766 if test "x$flag" != xno; then
7767 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7770 LIBS="$save_LIBS"
7771 CFLAGS="$save_CFLAGS"
7773 # More AIX lossage: must compile with xlc_r or cc_r
7774 if test x"$GCC" != xyes; then
7775 for ac_prog in xlc_r cc_r
7777 # Extract the first word of "$ac_prog", so it can be a program name with args.
7778 set dummy $ac_prog; ac_word=$2
7779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7781 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784 if test -n "$PTHREAD_CC"; then
7785 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7794 ac_cv_prog_PTHREAD_CC="$ac_prog"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7798 done
7799 done
7800 IFS=$as_save_IFS
7804 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7805 if test -n "$PTHREAD_CC"; then
7806 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7807 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7808 else
7809 { echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6; }
7814 test -n "$PTHREAD_CC" && break
7815 done
7816 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7818 else
7819 PTHREAD_CC=$CC
7821 else
7822 PTHREAD_CC="$CC"
7829 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7830 if test x"$acx_pthread_ok" = xyes; then
7832 cat >>confdefs.h <<\_ACEOF
7833 #define HAVE_PTHREAD 1
7834 _ACEOF
7837 else
7838 acx_pthread_ok=no
7841 ac_ext=c
7842 ac_cpp='$CPP $CPPFLAGS'
7843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7849 ac_ext=c
7850 ac_cpp='$CPP $CPPFLAGS'
7851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7856 # Check whether --enable-dev-mode was given.
7857 if test "${enable_dev_mode+set}" = set; then
7858 enableval=$enable_dev_mode; case "${enableval}" in
7859 y|ye|yes) AST_DEVMODE=yes ;;
7860 n|no) AST_DEVMODE=no ;;
7861 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7862 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7863 { (exit 1); exit 1; }; } ;;
7864 esac
7869 # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
7870 # various packages.
7871 # $1 is the prefix for the variables in makeopts and autoconfig.h
7872 # $2 is the short comment, $4 is the long comment
7873 # $3 is the name used in --with- or --without- flags for configure.
7875 # Package option names should be in alphabetical order
7876 # by the --with option name (the third field),
7877 # to make things easier for the users.
7880 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7881 ALSA_OPTION="asound"
7883 # Check whether --with-asound was given.
7884 if test "${with_asound+set}" = set; then
7885 withval=$with_asound;
7886 case ${withval} in
7887 n|no)
7888 USE_ALSA=no
7890 y|ye|yes)
7891 ac_mandatory_list="${ac_mandatory_list} ALSA"
7894 ALSA_DIR="${withval}"
7895 ac_mandatory_list="${ac_mandatory_list} ALSA"
7897 esac
7901 PBX_ALSA=0
7908 # BKTR is used for backtrace support on platforms that do not
7909 # have it natively.
7911 BKTR_DESCRIP="Stack Backtrace support"
7912 BKTR_OPTION="execinfo"
7914 # Check whether --with-execinfo was given.
7915 if test "${with_execinfo+set}" = set; then
7916 withval=$with_execinfo;
7917 case ${withval} in
7918 n|no)
7919 USE_BKTR=no
7921 y|ye|yes)
7922 ac_mandatory_list="${ac_mandatory_list} BKTR"
7925 BKTR_DIR="${withval}"
7926 ac_mandatory_list="${ac_mandatory_list} BKTR"
7928 esac
7932 PBX_BKTR=0
7939 CAP_DESCRIP="POSIX 1.e capabilities"
7940 CAP_OPTION="cap"
7942 # Check whether --with-cap was given.
7943 if test "${with_cap+set}" = set; then
7944 withval=$with_cap;
7945 case ${withval} in
7946 n|no)
7947 USE_CAP=no
7949 y|ye|yes)
7950 ac_mandatory_list="${ac_mandatory_list} CAP"
7953 CAP_DIR="${withval}"
7954 ac_mandatory_list="${ac_mandatory_list} CAP"
7956 esac
7960 PBX_CAP=0
7967 CURL_DESCRIP="cURL"
7968 CURL_OPTION="curl"
7970 # Check whether --with-curl was given.
7971 if test "${with_curl+set}" = set; then
7972 withval=$with_curl;
7973 case ${withval} in
7974 n|no)
7975 USE_CURL=no
7977 y|ye|yes)
7978 ac_mandatory_list="${ac_mandatory_list} CURL"
7981 CURL_DIR="${withval}"
7982 ac_mandatory_list="${ac_mandatory_list} CURL"
7984 esac
7988 PBX_CURL=0
7995 CURSES_DESCRIP="curses"
7996 CURSES_OPTION="curses"
7998 # Check whether --with-curses was given.
7999 if test "${with_curses+set}" = set; then
8000 withval=$with_curses;
8001 case ${withval} in
8002 n|no)
8003 USE_CURSES=no
8005 y|ye|yes)
8006 ac_mandatory_list="${ac_mandatory_list} CURSES"
8009 CURSES_DIR="${withval}"
8010 ac_mandatory_list="${ac_mandatory_list} CURSES"
8012 esac
8016 PBX_CURSES=0
8023 CRYPTO_DESCRIP="OpenSSL Cryptography support"
8024 CRYPTO_OPTION="crypto"
8026 # Check whether --with-crypto was given.
8027 if test "${with_crypto+set}" = set; then
8028 withval=$with_crypto;
8029 case ${withval} in
8030 n|no)
8031 USE_CRYPTO=no
8033 y|ye|yes)
8034 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8037 CRYPTO_DIR="${withval}"
8038 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8040 esac
8044 PBX_CRYPTO=0
8051 DAHDI_DESCRIP="DAHDI"
8052 DAHDI_OPTION="dahdi"
8054 # Check whether --with-dahdi was given.
8055 if test "${with_dahdi+set}" = set; then
8056 withval=$with_dahdi;
8057 case ${withval} in
8058 n|no)
8059 USE_DAHDI=no
8061 y|ye|yes)
8062 ac_mandatory_list="${ac_mandatory_list} DAHDI"
8065 DAHDI_DIR="${withval}"
8066 ac_mandatory_list="${ac_mandatory_list} DAHDI"
8068 esac
8072 PBX_DAHDI=0
8079 FFMPEG_DESCRIP="Ffmpeg and avcodec library"
8080 FFMPEG_OPTION="avcodec"
8082 # Check whether --with-avcodec was given.
8083 if test "${with_avcodec+set}" = set; then
8084 withval=$with_avcodec;
8085 case ${withval} in
8086 n|no)
8087 USE_FFMPEG=no
8089 y|ye|yes)
8090 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8093 FFMPEG_DIR="${withval}"
8094 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8096 esac
8100 PBX_FFMPEG=0
8107 GSM_DESCRIP="External GSM library"
8108 GSM_OPTION="gsm"
8110 # Check whether --with-gsm was given.
8111 if test "${with_gsm+set}" = set; then
8112 withval=$with_gsm;
8113 case ${withval} in
8114 n|no)
8115 USE_GSM=no
8117 y|ye|yes)
8118 ac_mandatory_list="${ac_mandatory_list} GSM"
8121 GSM_DIR="${withval}"
8122 ac_mandatory_list="${ac_mandatory_list} GSM"
8124 esac
8128 PBX_GSM=0
8135 GTK_DESCRIP="gtk libraries"
8136 GTK_OPTION="gtk"
8138 # Check whether --with-gtk was given.
8139 if test "${with_gtk+set}" = set; then
8140 withval=$with_gtk;
8141 case ${withval} in
8142 n|no)
8143 USE_GTK=no
8145 y|ye|yes)
8146 ac_mandatory_list="${ac_mandatory_list} GTK"
8149 GTK_DIR="${withval}"
8150 ac_mandatory_list="${ac_mandatory_list} GTK"
8152 esac
8156 PBX_GTK=0
8163 GTK2_DESCRIP="gtk2 libraries"
8164 GTK2_OPTION="gtk2"
8166 # Check whether --with-gtk2 was given.
8167 if test "${with_gtk2+set}" = set; then
8168 withval=$with_gtk2;
8169 case ${withval} in
8170 n|no)
8171 USE_GTK2=no
8173 y|ye|yes)
8174 ac_mandatory_list="${ac_mandatory_list} GTK2"
8177 GTK2_DIR="${withval}"
8178 ac_mandatory_list="${ac_mandatory_list} GTK2"
8180 esac
8184 PBX_GTK2=0
8191 GMIME_DESCRIP="GMime library"
8192 GMIME_OPTION="gmime"
8194 # Check whether --with-gmime was given.
8195 if test "${with_gmime+set}" = set; then
8196 withval=$with_gmime;
8197 case ${withval} in
8198 n|no)
8199 USE_GMIME=no
8201 y|ye|yes)
8202 ac_mandatory_list="${ac_mandatory_list} GMIME"
8205 GMIME_DIR="${withval}"
8206 ac_mandatory_list="${ac_mandatory_list} GMIME"
8208 esac
8212 PBX_GMIME=0
8219 ICONV_DESCRIP="Iconv Library"
8220 ICONV_OPTION="iconv"
8222 # Check whether --with-iconv was given.
8223 if test "${with_iconv+set}" = set; then
8224 withval=$with_iconv;
8225 case ${withval} in
8226 n|no)
8227 USE_ICONV=no
8229 y|ye|yes)
8230 ac_mandatory_list="${ac_mandatory_list} ICONV"
8233 ICONV_DIR="${withval}"
8234 ac_mandatory_list="${ac_mandatory_list} ICONV"
8236 esac
8240 PBX_ICONV=0
8247 IKSEMEL_DESCRIP="Iksemel Jabber Library"
8248 IKSEMEL_OPTION="iksemel"
8250 # Check whether --with-iksemel was given.
8251 if test "${with_iksemel+set}" = set; then
8252 withval=$with_iksemel;
8253 case ${withval} in
8254 n|no)
8255 USE_IKSEMEL=no
8257 y|ye|yes)
8258 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8261 IKSEMEL_DIR="${withval}"
8262 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8264 esac
8268 PBX_IKSEMEL=0
8275 IMAP_TK_DESCRIP="UW IMAP Toolkit"
8276 IMAP_TK_OPTION="imap"
8278 # Check whether --with-imap was given.
8279 if test "${with_imap+set}" = set; then
8280 withval=$with_imap;
8281 case ${withval} in
8282 n|no)
8283 USE_IMAP_TK=no
8285 y|ye|yes)
8286 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8289 IMAP_TK_DIR="${withval}"
8290 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8292 esac
8296 PBX_IMAP_TK=0
8303 ISDNNET_DESCRIP="ISDN4Linux Library"
8304 ISDNNET_OPTION="isdnnet"
8306 # Check whether --with-isdnnet was given.
8307 if test "${with_isdnnet+set}" = set; then
8308 withval=$with_isdnnet;
8309 case ${withval} in
8310 n|no)
8311 USE_ISDNNET=no
8313 y|ye|yes)
8314 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8317 ISDNNET_DIR="${withval}"
8318 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8320 esac
8324 PBX_ISDNNET=0
8331 JACK_DESCRIP="Jack Audio Connection Kit"
8332 JACK_OPTION="jack"
8334 # Check whether --with-jack was given.
8335 if test "${with_jack+set}" = set; then
8336 withval=$with_jack;
8337 case ${withval} in
8338 n|no)
8339 USE_JACK=no
8341 y|ye|yes)
8342 ac_mandatory_list="${ac_mandatory_list} JACK"
8345 JACK_DIR="${withval}"
8346 ac_mandatory_list="${ac_mandatory_list} JACK"
8348 esac
8352 PBX_JACK=0
8359 LDAP_DESCRIP="OpenLDAP"
8360 LDAP_OPTION="ldap"
8362 # Check whether --with-ldap was given.
8363 if test "${with_ldap+set}" = set; then
8364 withval=$with_ldap;
8365 case ${withval} in
8366 n|no)
8367 USE_LDAP=no
8369 y|ye|yes)
8370 ac_mandatory_list="${ac_mandatory_list} LDAP"
8373 LDAP_DIR="${withval}"
8374 ac_mandatory_list="${ac_mandatory_list} LDAP"
8376 esac
8380 PBX_LDAP=0
8387 LTDL_DESCRIP="libtool"
8388 LTDL_OPTION="ltdl"
8390 # Check whether --with-ltdl was given.
8391 if test "${with_ltdl+set}" = set; then
8392 withval=$with_ltdl;
8393 case ${withval} in
8394 n|no)
8395 USE_LTDL=no
8397 y|ye|yes)
8398 ac_mandatory_list="${ac_mandatory_list} LTDL"
8401 LTDL_DIR="${withval}"
8402 ac_mandatory_list="${ac_mandatory_list} LTDL"
8404 esac
8408 PBX_LTDL=0
8415 LUA_DESCRIP="Lua"
8416 LUA_OPTION="lua"
8418 # Check whether --with-lua was given.
8419 if test "${with_lua+set}" = set; then
8420 withval=$with_lua;
8421 case ${withval} in
8422 n|no)
8423 USE_LUA=no
8425 y|ye|yes)
8426 ac_mandatory_list="${ac_mandatory_list} LUA"
8429 LUA_DIR="${withval}"
8430 ac_mandatory_list="${ac_mandatory_list} LUA"
8432 esac
8436 PBX_LUA=0
8443 MISDN_DESCRIP="mISDN User Library"
8444 MISDN_OPTION="misdn"
8446 # Check whether --with-misdn was given.
8447 if test "${with_misdn+set}" = set; then
8448 withval=$with_misdn;
8449 case ${withval} in
8450 n|no)
8451 USE_MISDN=no
8453 y|ye|yes)
8454 ac_mandatory_list="${ac_mandatory_list} MISDN"
8457 MISDN_DIR="${withval}"
8458 ac_mandatory_list="${ac_mandatory_list} MISDN"
8460 esac
8464 PBX_MISDN=0
8471 NBS_DESCRIP="Network Broadcast Sound"
8472 NBS_OPTION="nbs"
8474 # Check whether --with-nbs was given.
8475 if test "${with_nbs+set}" = set; then
8476 withval=$with_nbs;
8477 case ${withval} in
8478 n|no)
8479 USE_NBS=no
8481 y|ye|yes)
8482 ac_mandatory_list="${ac_mandatory_list} NBS"
8485 NBS_DIR="${withval}"
8486 ac_mandatory_list="${ac_mandatory_list} NBS"
8488 esac
8492 PBX_NBS=0
8499 NCURSES_DESCRIP="ncurses"
8500 NCURSES_OPTION="ncurses"
8502 # Check whether --with-ncurses was given.
8503 if test "${with_ncurses+set}" = set; then
8504 withval=$with_ncurses;
8505 case ${withval} in
8506 n|no)
8507 USE_NCURSES=no
8509 y|ye|yes)
8510 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8513 NCURSES_DIR="${withval}"
8514 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8516 esac
8520 PBX_NCURSES=0
8527 NETSNMP_DESCRIP="Net-SNMP"
8528 NETSNMP_OPTION="netsnmp"
8530 # Check whether --with-netsnmp was given.
8531 if test "${with_netsnmp+set}" = set; then
8532 withval=$with_netsnmp;
8533 case ${withval} in
8534 n|no)
8535 USE_NETSNMP=no
8537 y|ye|yes)
8538 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8541 NETSNMP_DIR="${withval}"
8542 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8544 esac
8548 PBX_NETSNMP=0
8555 NEWT_DESCRIP="newt"
8556 NEWT_OPTION="newt"
8558 # Check whether --with-newt was given.
8559 if test "${with_newt+set}" = set; then
8560 withval=$with_newt;
8561 case ${withval} in
8562 n|no)
8563 USE_NEWT=no
8565 y|ye|yes)
8566 ac_mandatory_list="${ac_mandatory_list} NEWT"
8569 NEWT_DIR="${withval}"
8570 ac_mandatory_list="${ac_mandatory_list} NEWT"
8572 esac
8576 PBX_NEWT=0
8583 UNIXODBC_DESCRIP="unixODBC"
8584 UNIXODBC_OPTION="odbc"
8586 # Check whether --with-odbc was given.
8587 if test "${with_odbc+set}" = set; then
8588 withval=$with_odbc;
8589 case ${withval} in
8590 n|no)
8591 USE_UNIXODBC=no
8593 y|ye|yes)
8594 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8597 UNIXODBC_DIR="${withval}"
8598 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8600 esac
8604 PBX_UNIXODBC=0
8611 OGG_DESCRIP="OGG"
8612 OGG_OPTION="ogg"
8614 # Check whether --with-ogg was given.
8615 if test "${with_ogg+set}" = set; then
8616 withval=$with_ogg;
8617 case ${withval} in
8618 n|no)
8619 USE_OGG=no
8621 y|ye|yes)
8622 ac_mandatory_list="${ac_mandatory_list} OGG"
8625 OGG_DIR="${withval}"
8626 ac_mandatory_list="${ac_mandatory_list} OGG"
8628 esac
8632 PBX_OGG=0
8639 OSPTK_DESCRIP="OSP Toolkit"
8640 OSPTK_OPTION="osptk"
8642 # Check whether --with-osptk was given.
8643 if test "${with_osptk+set}" = set; then
8644 withval=$with_osptk;
8645 case ${withval} in
8646 n|no)
8647 USE_OSPTK=no
8649 y|ye|yes)
8650 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8653 OSPTK_DIR="${withval}"
8654 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8656 esac
8660 PBX_OSPTK=0
8667 OSS_DESCRIP="Open Sound System"
8668 OSS_OPTION="oss"
8670 # Check whether --with-oss was given.
8671 if test "${with_oss+set}" = set; then
8672 withval=$with_oss;
8673 case ${withval} in
8674 n|no)
8675 USE_OSS=no
8677 y|ye|yes)
8678 ac_mandatory_list="${ac_mandatory_list} OSS"
8681 OSS_DIR="${withval}"
8682 ac_mandatory_list="${ac_mandatory_list} OSS"
8684 esac
8688 PBX_OSS=0
8695 PGSQL_DESCRIP="PostgreSQL"
8696 PGSQL_OPTION="postgres"
8698 # Check whether --with-postgres was given.
8699 if test "${with_postgres+set}" = set; then
8700 withval=$with_postgres;
8701 case ${withval} in
8702 n|no)
8703 USE_PGSQL=no
8705 y|ye|yes)
8706 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8709 PGSQL_DIR="${withval}"
8710 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8712 esac
8716 PBX_PGSQL=0
8723 POPT_DESCRIP="popt"
8724 POPT_OPTION="popt"
8726 # Check whether --with-popt was given.
8727 if test "${with_popt+set}" = set; then
8728 withval=$with_popt;
8729 case ${withval} in
8730 n|no)
8731 USE_POPT=no
8733 y|ye|yes)
8734 ac_mandatory_list="${ac_mandatory_list} POPT"
8737 POPT_DIR="${withval}"
8738 ac_mandatory_list="${ac_mandatory_list} POPT"
8740 esac
8744 PBX_POPT=0
8751 PORTAUDIO_DESCRIP="PortAudio"
8752 PORTAUDIO_OPTION="portaudio"
8754 # Check whether --with-portaudio was given.
8755 if test "${with_portaudio+set}" = set; then
8756 withval=$with_portaudio;
8757 case ${withval} in
8758 n|no)
8759 USE_PORTAUDIO=no
8761 y|ye|yes)
8762 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8765 PORTAUDIO_DIR="${withval}"
8766 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8768 esac
8772 PBX_PORTAUDIO=0
8779 PRI_DESCRIP="ISDN PRI"
8780 PRI_OPTION="pri"
8782 # Check whether --with-pri was given.
8783 if test "${with_pri+set}" = set; then
8784 withval=$with_pri;
8785 case ${withval} in
8786 n|no)
8787 USE_PRI=no
8789 y|ye|yes)
8790 ac_mandatory_list="${ac_mandatory_list} PRI"
8793 PRI_DIR="${withval}"
8794 ac_mandatory_list="${ac_mandatory_list} PRI"
8796 esac
8800 PBX_PRI=0
8807 SS7_DESCRIP="ISDN SS7"
8808 SS7_OPTION="ss7"
8810 # Check whether --with-ss7 was given.
8811 if test "${with_ss7+set}" = set; then
8812 withval=$with_ss7;
8813 case ${withval} in
8814 n|no)
8815 USE_SS7=no
8817 y|ye|yes)
8818 ac_mandatory_list="${ac_mandatory_list} SS7"
8821 SS7_DIR="${withval}"
8822 ac_mandatory_list="${ac_mandatory_list} SS7"
8824 esac
8828 PBX_SS7=0
8835 PWLIB_DESCRIP="PWlib"
8836 PWLIB_OPTION="pwlib"
8838 # Check whether --with-pwlib was given.
8839 if test "${with_pwlib+set}" = set; then
8840 withval=$with_pwlib;
8841 case ${withval} in
8842 n|no)
8843 USE_PWLIB=no
8845 y|ye|yes)
8846 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8849 PWLIB_DIR="${withval}"
8850 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8852 esac
8856 PBX_PWLIB=0
8863 OPENH323_DESCRIP="OpenH323"
8864 OPENH323_OPTION="h323"
8866 # Check whether --with-h323 was given.
8867 if test "${with_h323+set}" = set; then
8868 withval=$with_h323;
8869 case ${withval} in
8870 n|no)
8871 USE_OPENH323=no
8873 y|ye|yes)
8874 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8877 OPENH323_DIR="${withval}"
8878 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8880 esac
8884 PBX_OPENH323=0
8891 RADIUS_DESCRIP="Radius Client"
8892 RADIUS_OPTION="radius"
8894 # Check whether --with-radius was given.
8895 if test "${with_radius+set}" = set; then
8896 withval=$with_radius;
8897 case ${withval} in
8898 n|no)
8899 USE_RADIUS=no
8901 y|ye|yes)
8902 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8905 RADIUS_DIR="${withval}"
8906 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8908 esac
8912 PBX_RADIUS=0
8919 SDL_DESCRIP="Sdl"
8920 SDL_OPTION="sdl"
8922 # Check whether --with-sdl was given.
8923 if test "${with_sdl+set}" = set; then
8924 withval=$with_sdl;
8925 case ${withval} in
8926 n|no)
8927 USE_SDL=no
8929 y|ye|yes)
8930 ac_mandatory_list="${ac_mandatory_list} SDL"
8933 SDL_DIR="${withval}"
8934 ac_mandatory_list="${ac_mandatory_list} SDL"
8936 esac
8940 PBX_SDL=0
8947 SDL_IMAGE_DESCRIP="Sdl Image library"
8948 SDL_IMAGE_OPTION="SDL_image"
8950 # Check whether --with-SDL_image was given.
8951 if test "${with_SDL_image+set}" = set; then
8952 withval=$with_SDL_image;
8953 case ${withval} in
8954 n|no)
8955 USE_SDL_IMAGE=no
8957 y|ye|yes)
8958 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
8961 SDL_IMAGE_DIR="${withval}"
8962 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
8964 esac
8968 PBX_SDL_IMAGE=0
8975 SPEEX_DESCRIP="Speex"
8976 SPEEX_OPTION="speex"
8978 # Check whether --with-speex was given.
8979 if test "${with_speex+set}" = set; then
8980 withval=$with_speex;
8981 case ${withval} in
8982 n|no)
8983 USE_SPEEX=no
8985 y|ye|yes)
8986 ac_mandatory_list="${ac_mandatory_list} SPEEX"
8989 SPEEX_DIR="${withval}"
8990 ac_mandatory_list="${ac_mandatory_list} SPEEX"
8992 esac
8996 PBX_SPEEX=0
9003 SPEEXDSP_DESCRIP="Speexdsp"
9004 SPEEXDSP_OPTION="speexdsp"
9006 # Check whether --with-speexdsp was given.
9007 if test "${with_speexdsp+set}" = set; then
9008 withval=$with_speexdsp;
9009 case ${withval} in
9010 n|no)
9011 USE_SPEEXDSP=no
9013 y|ye|yes)
9014 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9017 SPEEXDSP_DIR="${withval}"
9018 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9020 esac
9024 PBX_SPEEXDSP=0
9031 SQLITE_DESCRIP="SQLite"
9032 SQLITE_OPTION="sqlite"
9034 # Check whether --with-sqlite was given.
9035 if test "${with_sqlite+set}" = set; then
9036 withval=$with_sqlite;
9037 case ${withval} in
9038 n|no)
9039 USE_SQLITE=no
9041 y|ye|yes)
9042 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9045 SQLITE_DIR="${withval}"
9046 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9048 esac
9052 PBX_SQLITE=0
9059 SQLITE3_DESCRIP="SQLite"
9060 SQLITE3_OPTION="sqlite3"
9062 # Check whether --with-sqlite3 was given.
9063 if test "${with_sqlite3+set}" = set; then
9064 withval=$with_sqlite3;
9065 case ${withval} in
9066 n|no)
9067 USE_SQLITE3=no
9069 y|ye|yes)
9070 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9073 SQLITE3_DIR="${withval}"
9074 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9076 esac
9080 PBX_SQLITE3=0
9087 SUPPSERV_DESCRIP="mISDN Supplemental Services"
9088 SUPPSERV_OPTION="suppserv"
9090 # Check whether --with-suppserv was given.
9091 if test "${with_suppserv+set}" = set; then
9092 withval=$with_suppserv;
9093 case ${withval} in
9094 n|no)
9095 USE_SUPPSERV=no
9097 y|ye|yes)
9098 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9101 SUPPSERV_DIR="${withval}"
9102 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9104 esac
9108 PBX_SUPPSERV=0
9115 OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer support"
9116 OPENSSL_OPTION="ssl"
9118 # Check whether --with-ssl was given.
9119 if test "${with_ssl+set}" = set; then
9120 withval=$with_ssl;
9121 case ${withval} in
9122 n|no)
9123 USE_OPENSSL=no
9125 y|ye|yes)
9126 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9129 OPENSSL_DIR="${withval}"
9130 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9132 esac
9136 PBX_OPENSSL=0
9143 FREETDS_DESCRIP="FreeTDS"
9144 FREETDS_OPTION="tds"
9146 # Check whether --with-tds was given.
9147 if test "${with_tds+set}" = set; then
9148 withval=$with_tds;
9149 case ${withval} in
9150 n|no)
9151 USE_FREETDS=no
9153 y|ye|yes)
9154 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9157 FREETDS_DIR="${withval}"
9158 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9160 esac
9164 PBX_FREETDS=0
9171 TERMCAP_DESCRIP="Termcap"
9172 TERMCAP_OPTION="termcap"
9174 # Check whether --with-termcap was given.
9175 if test "${with_termcap+set}" = set; then
9176 withval=$with_termcap;
9177 case ${withval} in
9178 n|no)
9179 USE_TERMCAP=no
9181 y|ye|yes)
9182 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9185 TERMCAP_DIR="${withval}"
9186 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9188 esac
9192 PBX_TERMCAP=0
9199 TINFO_DESCRIP="Term Info"
9200 TINFO_OPTION="tinfo"
9202 # Check whether --with-tinfo was given.
9203 if test "${with_tinfo+set}" = set; then
9204 withval=$with_tinfo;
9205 case ${withval} in
9206 n|no)
9207 USE_TINFO=no
9209 y|ye|yes)
9210 ac_mandatory_list="${ac_mandatory_list} TINFO"
9213 TINFO_DIR="${withval}"
9214 ac_mandatory_list="${ac_mandatory_list} TINFO"
9216 esac
9220 PBX_TINFO=0
9227 TONEZONE_DESCRIP="tonezone"
9228 TONEZONE_OPTION="tonezone"
9230 # Check whether --with-tonezone was given.
9231 if test "${with_tonezone+set}" = set; then
9232 withval=$with_tonezone;
9233 case ${withval} in
9234 n|no)
9235 USE_TONEZONE=no
9237 y|ye|yes)
9238 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9241 TONEZONE_DIR="${withval}"
9242 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9244 esac
9248 PBX_TONEZONE=0
9255 USB_DESCRIP="usb"
9256 USB_OPTION="usb"
9258 # Check whether --with-usb was given.
9259 if test "${with_usb+set}" = set; then
9260 withval=$with_usb;
9261 case ${withval} in
9262 n|no)
9263 USE_USB=no
9265 y|ye|yes)
9266 ac_mandatory_list="${ac_mandatory_list} USB"
9269 USB_DIR="${withval}"
9270 ac_mandatory_list="${ac_mandatory_list} USB"
9272 esac
9276 PBX_USB=0
9283 VORBIS_DESCRIP="Vorbis"
9284 VORBIS_OPTION="vorbis"
9286 # Check whether --with-vorbis was given.
9287 if test "${with_vorbis+set}" = set; then
9288 withval=$with_vorbis;
9289 case ${withval} in
9290 n|no)
9291 USE_VORBIS=no
9293 y|ye|yes)
9294 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9297 VORBIS_DIR="${withval}"
9298 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9300 esac
9304 PBX_VORBIS=0
9311 VPB_DESCRIP="Voicetronix API"
9312 VPB_OPTION="vpb"
9314 # Check whether --with-vpb was given.
9315 if test "${with_vpb+set}" = set; then
9316 withval=$with_vpb;
9317 case ${withval} in
9318 n|no)
9319 USE_VPB=no
9321 y|ye|yes)
9322 ac_mandatory_list="${ac_mandatory_list} VPB"
9325 VPB_DIR="${withval}"
9326 ac_mandatory_list="${ac_mandatory_list} VPB"
9328 esac
9332 PBX_VPB=0
9339 X11_DESCRIP="X11 support"
9340 X11_OPTION="x11"
9342 # Check whether --with-x11 was given.
9343 if test "${with_x11+set}" = set; then
9344 withval=$with_x11;
9345 case ${withval} in
9346 n|no)
9347 USE_X11=no
9349 y|ye|yes)
9350 ac_mandatory_list="${ac_mandatory_list} X11"
9353 X11_DIR="${withval}"
9354 ac_mandatory_list="${ac_mandatory_list} X11"
9356 esac
9360 PBX_X11=0
9367 ZLIB_DESCRIP="zlib"
9368 ZLIB_OPTION="z"
9370 # Check whether --with-z was given.
9371 if test "${with_z+set}" = set; then
9372 withval=$with_z;
9373 case ${withval} in
9374 n|no)
9375 USE_ZLIB=no
9377 y|ye|yes)
9378 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9381 ZLIB_DIR="${withval}"
9382 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9384 esac
9388 PBX_ZLIB=0
9395 # check for basic system features and functionality before
9396 # checking for package libraries
9398 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9399 # for constant arguments. Useless!
9400 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9401 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9402 if test "${ac_cv_working_alloca_h+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h. */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 #include <alloca.h>
9413 main ()
9415 char *p = (char *) alloca (2 * sizeof (int));
9416 if (p) return 0;
9418 return 0;
9420 _ACEOF
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (ac_try="$ac_link"
9423 case "(($ac_try" in
9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9426 esac
9427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428 (eval "$ac_link") 2>conftest.er1
9429 ac_status=$?
9430 grep -v '^ *+' conftest.er1 >conftest.err
9431 rm -f conftest.er1
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } && {
9435 test -z "$ac_c_werror_flag" ||
9436 test ! -s conftest.err
9437 } && test -s conftest$ac_exeext &&
9438 $as_test_x conftest$ac_exeext; then
9439 ac_cv_working_alloca_h=yes
9440 else
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9444 ac_cv_working_alloca_h=no
9447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9448 conftest$ac_exeext conftest.$ac_ext
9450 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9451 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9452 if test $ac_cv_working_alloca_h = yes; then
9454 cat >>confdefs.h <<\_ACEOF
9455 #define HAVE_ALLOCA_H 1
9456 _ACEOF
9460 { echo "$as_me:$LINENO: checking for alloca" >&5
9461 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9462 if test "${ac_cv_func_alloca_works+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465 cat >conftest.$ac_ext <<_ACEOF
9466 /* confdefs.h. */
9467 _ACEOF
9468 cat confdefs.h >>conftest.$ac_ext
9469 cat >>conftest.$ac_ext <<_ACEOF
9470 /* end confdefs.h. */
9471 #ifdef __GNUC__
9472 # define alloca __builtin_alloca
9473 #else
9474 # ifdef _MSC_VER
9475 # include <malloc.h>
9476 # define alloca _alloca
9477 # else
9478 # ifdef HAVE_ALLOCA_H
9479 # include <alloca.h>
9480 # else
9481 # ifdef _AIX
9482 #pragma alloca
9483 # else
9484 # ifndef alloca /* predefined by HP cc +Olibcalls */
9485 char *alloca ();
9486 # endif
9487 # endif
9488 # endif
9489 # endif
9490 #endif
9493 main ()
9495 char *p = (char *) alloca (1);
9496 if (p) return 0;
9498 return 0;
9500 _ACEOF
9501 rm -f conftest.$ac_objext conftest$ac_exeext
9502 if { (ac_try="$ac_link"
9503 case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_link") 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest$ac_exeext &&
9518 $as_test_x conftest$ac_exeext; then
9519 ac_cv_func_alloca_works=yes
9520 else
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9524 ac_cv_func_alloca_works=no
9527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9528 conftest$ac_exeext conftest.$ac_ext
9530 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9531 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9533 if test $ac_cv_func_alloca_works = yes; then
9535 cat >>confdefs.h <<\_ACEOF
9536 #define HAVE_ALLOCA 1
9537 _ACEOF
9539 else
9540 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9541 # that cause trouble. Some versions do not even contain alloca or
9542 # contain a buggy version. If you still want to use their alloca,
9543 # use ar to extract alloca.o from them instead of compiling alloca.c.
9545 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9547 cat >>confdefs.h <<\_ACEOF
9548 #define C_ALLOCA 1
9549 _ACEOF
9552 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9553 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9554 if test "${ac_cv_os_cray+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h. */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563 #if defined CRAY && ! defined CRAY2
9564 webecray
9565 #else
9566 wenotbecray
9567 #endif
9569 _ACEOF
9570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9571 $EGREP "webecray" >/dev/null 2>&1; then
9572 ac_cv_os_cray=yes
9573 else
9574 ac_cv_os_cray=no
9576 rm -f conftest*
9579 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9580 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9581 if test $ac_cv_os_cray = yes; then
9582 for ac_func in _getb67 GETB67 getb67; do
9583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9597 #define $ac_func innocuous_$ac_func
9599 /* System header to define __stub macros and hopefully few prototypes,
9600 which can conflict with char $ac_func (); below.
9601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9602 <limits.h> exists even on freestanding compilers. */
9604 #ifdef __STDC__
9605 # include <limits.h>
9606 #else
9607 # include <assert.h>
9608 #endif
9610 #undef $ac_func
9612 /* Override any GCC internal prototype to avoid an error.
9613 Use char because int might match the return type of a GCC
9614 builtin and then its argument prototype would still apply. */
9615 #ifdef __cplusplus
9616 extern "C"
9617 #endif
9618 char $ac_func ();
9619 /* The GNU C library defines this for functions which it implements
9620 to always fail with ENOSYS. Some functions are actually named
9621 something starting with __ and the normal name is an alias. */
9622 #if defined __stub_$ac_func || defined __stub___$ac_func
9623 choke me
9624 #endif
9627 main ()
9629 return $ac_func ();
9631 return 0;
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9636 case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639 esac
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_link") 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && {
9648 test -z "$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9650 } && test -s conftest$ac_exeext &&
9651 $as_test_x conftest$ac_exeext; then
9652 eval "$as_ac_var=yes"
9653 else
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 eval "$as_ac_var=no"
9660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9661 conftest$ac_exeext conftest.$ac_ext
9663 ac_res=`eval echo '${'$as_ac_var'}'`
9664 { echo "$as_me:$LINENO: result: $ac_res" >&5
9665 echo "${ECHO_T}$ac_res" >&6; }
9666 if test `eval echo '${'$as_ac_var'}'` = yes; then
9668 cat >>confdefs.h <<_ACEOF
9669 #define CRAY_STACKSEG_END $ac_func
9670 _ACEOF
9672 break
9675 done
9678 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9679 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9680 if test "${ac_cv_c_stack_direction+set}" = set; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683 if test "$cross_compiling" = yes; then
9684 ac_cv_c_stack_direction=0
9685 else
9686 cat >conftest.$ac_ext <<_ACEOF
9687 /* confdefs.h. */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9692 $ac_includes_default
9694 find_stack_direction ()
9696 static char *addr = 0;
9697 auto char dummy;
9698 if (addr == 0)
9700 addr = &dummy;
9701 return find_stack_direction ();
9703 else
9704 return (&dummy > addr) ? 1 : -1;
9708 main ()
9710 return find_stack_direction () < 0;
9712 _ACEOF
9713 rm -f conftest$ac_exeext
9714 if { (ac_try="$ac_link"
9715 case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9724 { (case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_try") 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_c_stack_direction=1
9734 else
9735 echo "$as_me: program exited with status $ac_status" >&5
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9739 ( exit $ac_status )
9740 ac_cv_c_stack_direction=-1
9742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9747 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9748 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9750 cat >>confdefs.h <<_ACEOF
9751 #define STACK_DIRECTION $ac_cv_c_stack_direction
9752 _ACEOF
9762 ac_header_dirent=no
9763 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9764 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9765 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9766 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770 cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h. */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 #include <sys/types.h>
9777 #include <$ac_hdr>
9780 main ()
9782 if ((DIR *) 0)
9783 return 0;
9785 return 0;
9787 _ACEOF
9788 rm -f conftest.$ac_objext
9789 if { (ac_try="$ac_compile"
9790 case "(($ac_try" in
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9793 esac
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795 (eval "$ac_compile") 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } && {
9802 test -z "$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9804 } && test -s conftest.$ac_objext; then
9805 eval "$as_ac_Header=yes"
9806 else
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 eval "$as_ac_Header=no"
9813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815 ac_res=`eval echo '${'$as_ac_Header'}'`
9816 { echo "$as_me:$LINENO: result: $ac_res" >&5
9817 echo "${ECHO_T}$ac_res" >&6; }
9818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9819 cat >>confdefs.h <<_ACEOF
9820 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9821 _ACEOF
9823 ac_header_dirent=$ac_hdr; break
9826 done
9827 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9828 if test $ac_header_dirent = dirent.h; then
9829 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9830 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9831 if test "${ac_cv_search_opendir+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834 ac_func_search_save_LIBS=$LIBS
9835 cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h. */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9842 /* Override any GCC internal prototype to avoid an error.
9843 Use char because int might match the return type of a GCC
9844 builtin and then its argument prototype would still apply. */
9845 #ifdef __cplusplus
9846 extern "C"
9847 #endif
9848 char opendir ();
9850 main ()
9852 return opendir ();
9854 return 0;
9856 _ACEOF
9857 for ac_lib in '' dir; do
9858 if test -z "$ac_lib"; then
9859 ac_res="none required"
9860 else
9861 ac_res=-l$ac_lib
9862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (ac_try="$ac_link"
9866 case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_link") 2>conftest.er1
9872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } && {
9878 test -z "$ac_c_werror_flag" ||
9879 test ! -s conftest.err
9880 } && test -s conftest$ac_exeext &&
9881 $as_test_x conftest$ac_exeext; then
9882 ac_cv_search_opendir=$ac_res
9883 else
9884 echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9891 conftest$ac_exeext
9892 if test "${ac_cv_search_opendir+set}" = set; then
9893 break
9895 done
9896 if test "${ac_cv_search_opendir+set}" = set; then
9898 else
9899 ac_cv_search_opendir=no
9901 rm conftest.$ac_ext
9902 LIBS=$ac_func_search_save_LIBS
9904 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9905 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9906 ac_res=$ac_cv_search_opendir
9907 if test "$ac_res" != no; then
9908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9912 else
9913 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9914 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9915 if test "${ac_cv_search_opendir+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918 ac_func_search_save_LIBS=$LIBS
9919 cat >conftest.$ac_ext <<_ACEOF
9920 /* confdefs.h. */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9926 /* Override any GCC internal prototype to avoid an error.
9927 Use char because int might match the return type of a GCC
9928 builtin and then its argument prototype would still apply. */
9929 #ifdef __cplusplus
9930 extern "C"
9931 #endif
9932 char opendir ();
9934 main ()
9936 return opendir ();
9938 return 0;
9940 _ACEOF
9941 for ac_lib in '' x; do
9942 if test -z "$ac_lib"; then
9943 ac_res="none required"
9944 else
9945 ac_res=-l$ac_lib
9946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9950 case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest$ac_exeext &&
9965 $as_test_x conftest$ac_exeext; then
9966 ac_cv_search_opendir=$ac_res
9967 else
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9975 conftest$ac_exeext
9976 if test "${ac_cv_search_opendir+set}" = set; then
9977 break
9979 done
9980 if test "${ac_cv_search_opendir+set}" = set; then
9982 else
9983 ac_cv_search_opendir=no
9985 rm conftest.$ac_ext
9986 LIBS=$ac_func_search_save_LIBS
9988 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9989 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9990 ac_res=$ac_cv_search_opendir
9991 if test "$ac_res" != no; then
9992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9998 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9999 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10000 if test "${ac_cv_header_stdc+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003 cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h. */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 #include <stdlib.h>
10010 #include <stdarg.h>
10011 #include <string.h>
10012 #include <float.h>
10015 main ()
10019 return 0;
10021 _ACEOF
10022 rm -f conftest.$ac_objext
10023 if { (ac_try="$ac_compile"
10024 case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_compile") 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && {
10036 test -z "$ac_c_werror_flag" ||
10037 test ! -s conftest.err
10038 } && test -s conftest.$ac_objext; then
10039 ac_cv_header_stdc=yes
10040 else
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10044 ac_cv_header_stdc=no
10047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10049 if test $ac_cv_header_stdc = yes; then
10050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10051 cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h. */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 #include <string.h>
10059 _ACEOF
10060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10061 $EGREP "memchr" >/dev/null 2>&1; then
10063 else
10064 ac_cv_header_stdc=no
10066 rm -f conftest*
10070 if test $ac_cv_header_stdc = yes; then
10071 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h. */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 #include <stdlib.h>
10080 _ACEOF
10081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10082 $EGREP "free" >/dev/null 2>&1; then
10084 else
10085 ac_cv_header_stdc=no
10087 rm -f conftest*
10091 if test $ac_cv_header_stdc = yes; then
10092 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10093 if test "$cross_compiling" = yes; then
10095 else
10096 cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h. */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 #include <ctype.h>
10103 #include <stdlib.h>
10104 #if ((' ' & 0x0FF) == 0x020)
10105 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10106 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10107 #else
10108 # define ISLOWER(c) \
10109 (('a' <= (c) && (c) <= 'i') \
10110 || ('j' <= (c) && (c) <= 'r') \
10111 || ('s' <= (c) && (c) <= 'z'))
10112 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10113 #endif
10115 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10117 main ()
10119 int i;
10120 for (i = 0; i < 256; i++)
10121 if (XOR (islower (i), ISLOWER (i))
10122 || toupper (i) != TOUPPER (i))
10123 return 2;
10124 return 0;
10126 _ACEOF
10127 rm -f conftest$ac_exeext
10128 if { (ac_try="$ac_link"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10132 esac
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_link") 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10138 { (case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141 esac
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_try") 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
10148 else
10149 echo "$as_me: program exited with status $ac_status" >&5
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ( exit $ac_status )
10154 ac_cv_header_stdc=no
10156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10162 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10163 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10164 if test $ac_cv_header_stdc = yes; then
10166 cat >>confdefs.h <<\_ACEOF
10167 #define STDC_HEADERS 1
10168 _ACEOF
10172 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10173 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10174 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 else
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h. */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 #include <sys/types.h>
10184 #include <sys/wait.h>
10185 #ifndef WEXITSTATUS
10186 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10187 #endif
10188 #ifndef WIFEXITED
10189 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10190 #endif
10193 main ()
10195 int s;
10196 wait (&s);
10197 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10199 return 0;
10201 _ACEOF
10202 rm -f conftest.$ac_objext
10203 if { (ac_try="$ac_compile"
10204 case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_compile") 2>conftest.er1
10210 ac_status=$?
10211 grep -v '^ *+' conftest.er1 >conftest.err
10212 rm -f conftest.er1
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest.$ac_objext; then
10219 ac_cv_header_sys_wait_h=yes
10220 else
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_cv_header_sys_wait_h=no
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10230 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10231 if test $ac_cv_header_sys_wait_h = yes; then
10233 cat >>confdefs.h <<\_ACEOF
10234 #define HAVE_SYS_WAIT_H 1
10235 _ACEOF
10263 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
10265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 ac_res=`eval echo '${'$as_ac_Header'}'`
10273 { echo "$as_me:$LINENO: result: $ac_res" >&5
10274 echo "${ECHO_T}$ac_res" >&6; }
10275 else
10276 # Is the header compilable?
10277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10279 cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h. */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 $ac_includes_default
10286 #include <$ac_header>
10287 _ACEOF
10288 rm -f conftest.$ac_objext
10289 if { (ac_try="$ac_compile"
10290 case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10293 esac
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_compile") 2>conftest.er1
10296 ac_status=$?
10297 grep -v '^ *+' conftest.er1 >conftest.err
10298 rm -f conftest.er1
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && {
10302 test -z "$ac_c_werror_flag" ||
10303 test ! -s conftest.err
10304 } && test -s conftest.$ac_objext; then
10305 ac_header_compiler=yes
10306 else
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_header_compiler=no
10313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10315 echo "${ECHO_T}$ac_header_compiler" >&6; }
10317 # Is the header present?
10318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10320 cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h. */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326 #include <$ac_header>
10327 _ACEOF
10328 if { (ac_try="$ac_cpp conftest.$ac_ext"
10329 case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332 esac
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } >/dev/null && {
10341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10343 }; then
10344 ac_header_preproc=yes
10345 else
10346 echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10349 ac_header_preproc=no
10352 rm -f conftest.err conftest.$ac_ext
10353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10354 echo "${ECHO_T}$ac_header_preproc" >&6; }
10356 # So? What about this header?
10357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10358 yes:no: )
10359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10363 ac_header_preproc=yes
10365 no:yes:* )
10366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10378 ( cat <<\_ASBOX
10379 ## ------------------------------- ##
10380 ## Report this to www.asterisk.org ##
10381 ## ------------------------------- ##
10382 _ASBOX
10383 ) | sed "s/^/$as_me: WARNING: /" >&2
10385 esac
10386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391 eval "$as_ac_Header=\$ac_header_preproc"
10393 ac_res=`eval echo '${'$as_ac_Header'}'`
10394 { echo "$as_me:$LINENO: result: $ac_res" >&5
10395 echo "${ECHO_T}$ac_res" >&6; }
10398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10399 cat >>confdefs.h <<_ACEOF
10400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10401 _ACEOF
10405 done
10410 for ac_header in winsock.h winsock2.h
10412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 ac_res=`eval echo '${'$as_ac_Header'}'`
10420 { echo "$as_me:$LINENO: result: $ac_res" >&5
10421 echo "${ECHO_T}$ac_res" >&6; }
10422 else
10423 # Is the header compilable?
10424 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10426 cat >conftest.$ac_ext <<_ACEOF
10427 /* confdefs.h. */
10428 _ACEOF
10429 cat confdefs.h >>conftest.$ac_ext
10430 cat >>conftest.$ac_ext <<_ACEOF
10431 /* end confdefs.h. */
10432 $ac_includes_default
10433 #include <$ac_header>
10434 _ACEOF
10435 rm -f conftest.$ac_objext
10436 if { (ac_try="$ac_compile"
10437 case "(($ac_try" in
10438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439 *) ac_try_echo=$ac_try;;
10440 esac
10441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442 (eval "$ac_compile") 2>conftest.er1
10443 ac_status=$?
10444 grep -v '^ *+' conftest.er1 >conftest.err
10445 rm -f conftest.er1
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } && {
10449 test -z "$ac_c_werror_flag" ||
10450 test ! -s conftest.err
10451 } && test -s conftest.$ac_objext; then
10452 ac_header_compiler=yes
10453 else
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10457 ac_header_compiler=no
10460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10462 echo "${ECHO_T}$ac_header_compiler" >&6; }
10464 # Is the header present?
10465 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10467 cat >conftest.$ac_ext <<_ACEOF
10468 /* confdefs.h. */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10473 #include <$ac_header>
10474 _ACEOF
10475 if { (ac_try="$ac_cpp conftest.$ac_ext"
10476 case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10479 esac
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10482 ac_status=$?
10483 grep -v '^ *+' conftest.er1 >conftest.err
10484 rm -f conftest.er1
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } >/dev/null && {
10488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10489 test ! -s conftest.err
10490 }; then
10491 ac_header_preproc=yes
10492 else
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 ac_header_preproc=no
10499 rm -f conftest.err conftest.$ac_ext
10500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10501 echo "${ECHO_T}$ac_header_preproc" >&6; }
10503 # So? What about this header?
10504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10505 yes:no: )
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10510 ac_header_preproc=yes
10512 no:yes:* )
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10525 ( cat <<\_ASBOX
10526 ## ------------------------------- ##
10527 ## Report this to www.asterisk.org ##
10528 ## ------------------------------- ##
10529 _ASBOX
10530 ) | sed "s/^/$as_me: WARNING: /" >&2
10532 esac
10533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538 eval "$as_ac_Header=\$ac_header_preproc"
10540 ac_res=`eval echo '${'$as_ac_Header'}'`
10541 { echo "$as_me:$LINENO: result: $ac_res" >&5
10542 echo "${ECHO_T}$ac_res" >&6; }
10545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10546 cat >>confdefs.h <<_ACEOF
10547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10548 _ACEOF
10552 done
10555 # Check whether --enable-largefile was given.
10556 if test "${enable_largefile+set}" = set; then
10557 enableval=$enable_largefile;
10560 if test "$enable_largefile" != no; then
10562 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10563 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10564 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 else
10567 ac_cv_sys_largefile_CC=no
10568 if test "$GCC" != yes; then
10569 ac_save_CC=$CC
10570 while :; do
10571 # IRIX 6.2 and later do not support large files by default,
10572 # so use the C compiler's -n32 option if that helps.
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h. */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579 #include <sys/types.h>
10580 /* Check that off_t can represent 2**63 - 1 correctly.
10581 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10582 since some C++ compilers masquerading as C compilers
10583 incorrectly reject 9223372036854775807. */
10584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10586 && LARGE_OFF_T % 2147483647 == 1)
10587 ? 1 : -1];
10589 main ()
10593 return 0;
10595 _ACEOF
10596 rm -f conftest.$ac_objext
10597 if { (ac_try="$ac_compile"
10598 case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10601 esac
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_compile") 2>conftest.er1
10604 ac_status=$?
10605 grep -v '^ *+' conftest.er1 >conftest.err
10606 rm -f conftest.er1
10607 cat conftest.err >&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest.$ac_objext; then
10613 break
10614 else
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10621 rm -f core conftest.err conftest.$ac_objext
10622 CC="$CC -n32"
10623 rm -f conftest.$ac_objext
10624 if { (ac_try="$ac_compile"
10625 case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628 esac
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_compile") 2>conftest.er1
10631 ac_status=$?
10632 grep -v '^ *+' conftest.er1 >conftest.err
10633 rm -f conftest.er1
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } && {
10637 test -z "$ac_c_werror_flag" ||
10638 test ! -s conftest.err
10639 } && test -s conftest.$ac_objext; then
10640 ac_cv_sys_largefile_CC=' -n32'; break
10641 else
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10648 rm -f core conftest.err conftest.$ac_objext
10649 break
10650 done
10651 CC=$ac_save_CC
10652 rm -f conftest.$ac_ext
10655 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10656 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10657 if test "$ac_cv_sys_largefile_CC" != no; then
10658 CC=$CC$ac_cv_sys_largefile_CC
10661 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10662 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10663 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 else
10666 while :; do
10667 cat >conftest.$ac_ext <<_ACEOF
10668 /* confdefs.h. */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10673 #include <sys/types.h>
10674 /* Check that off_t can represent 2**63 - 1 correctly.
10675 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10676 since some C++ compilers masquerading as C compilers
10677 incorrectly reject 9223372036854775807. */
10678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10679 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10680 && LARGE_OFF_T % 2147483647 == 1)
10681 ? 1 : -1];
10683 main ()
10687 return 0;
10689 _ACEOF
10690 rm -f conftest.$ac_objext
10691 if { (ac_try="$ac_compile"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_compile") 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest.$ac_objext; then
10707 ac_cv_sys_file_offset_bits=no; break
10708 else
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10716 cat >conftest.$ac_ext <<_ACEOF
10717 /* confdefs.h. */
10718 _ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10722 #define _FILE_OFFSET_BITS 64
10723 #include <sys/types.h>
10724 /* Check that off_t can represent 2**63 - 1 correctly.
10725 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10726 since some C++ compilers masquerading as C compilers
10727 incorrectly reject 9223372036854775807. */
10728 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10729 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10730 && LARGE_OFF_T % 2147483647 == 1)
10731 ? 1 : -1];
10733 main ()
10737 return 0;
10739 _ACEOF
10740 rm -f conftest.$ac_objext
10741 if { (ac_try="$ac_compile"
10742 case "(($ac_try" in
10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 *) ac_try_echo=$ac_try;;
10745 esac
10746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747 (eval "$ac_compile") 2>conftest.er1
10748 ac_status=$?
10749 grep -v '^ *+' conftest.er1 >conftest.err
10750 rm -f conftest.er1
10751 cat conftest.err >&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } && {
10754 test -z "$ac_c_werror_flag" ||
10755 test ! -s conftest.err
10756 } && test -s conftest.$ac_objext; then
10757 ac_cv_sys_file_offset_bits=64; break
10758 else
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10766 ac_cv_sys_file_offset_bits=unknown
10767 break
10768 done
10770 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10771 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10772 case $ac_cv_sys_file_offset_bits in #(
10773 no | unknown) ;;
10775 cat >>confdefs.h <<_ACEOF
10776 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10777 _ACEOF
10779 esac
10780 rm -f conftest*
10781 if test $ac_cv_sys_file_offset_bits = unknown; then
10782 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10783 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10784 if test "${ac_cv_sys_large_files+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 else
10787 while :; do
10788 cat >conftest.$ac_ext <<_ACEOF
10789 /* confdefs.h. */
10790 _ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10794 #include <sys/types.h>
10795 /* Check that off_t can represent 2**63 - 1 correctly.
10796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10797 since some C++ compilers masquerading as C compilers
10798 incorrectly reject 9223372036854775807. */
10799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10801 && LARGE_OFF_T % 2147483647 == 1)
10802 ? 1 : -1];
10804 main ()
10808 return 0;
10810 _ACEOF
10811 rm -f conftest.$ac_objext
10812 if { (ac_try="$ac_compile"
10813 case "(($ac_try" in
10814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815 *) ac_try_echo=$ac_try;;
10816 esac
10817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818 (eval "$ac_compile") 2>conftest.er1
10819 ac_status=$?
10820 grep -v '^ *+' conftest.er1 >conftest.err
10821 rm -f conftest.er1
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } && {
10825 test -z "$ac_c_werror_flag" ||
10826 test ! -s conftest.err
10827 } && test -s conftest.$ac_objext; then
10828 ac_cv_sys_large_files=no; break
10829 else
10830 echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h. */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #define _LARGE_FILES 1
10844 #include <sys/types.h>
10845 /* Check that off_t can represent 2**63 - 1 correctly.
10846 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10847 since some C++ compilers masquerading as C compilers
10848 incorrectly reject 9223372036854775807. */
10849 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10850 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10851 && LARGE_OFF_T % 2147483647 == 1)
10852 ? 1 : -1];
10854 main ()
10858 return 0;
10860 _ACEOF
10861 rm -f conftest.$ac_objext
10862 if { (ac_try="$ac_compile"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_compile") 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } && {
10875 test -z "$ac_c_werror_flag" ||
10876 test ! -s conftest.err
10877 } && test -s conftest.$ac_objext; then
10878 ac_cv_sys_large_files=1; break
10879 else
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10887 ac_cv_sys_large_files=unknown
10888 break
10889 done
10891 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10892 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10893 case $ac_cv_sys_large_files in #(
10894 no | unknown) ;;
10896 cat >>confdefs.h <<_ACEOF
10897 #define _LARGE_FILES $ac_cv_sys_large_files
10898 _ACEOF
10900 esac
10901 rm -f conftest*
10906 # Checks for typedefs, structures, and compiler characteristics.
10907 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10908 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10909 if test "${ac_cv_header_stdbool_h+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911 else
10912 cat >conftest.$ac_ext <<_ACEOF
10913 /* confdefs.h. */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h. */
10919 #include <stdbool.h>
10920 #ifndef bool
10921 "error: bool is not defined"
10922 #endif
10923 #ifndef false
10924 "error: false is not defined"
10925 #endif
10926 #if false
10927 "error: false is not 0"
10928 #endif
10929 #ifndef true
10930 "error: true is not defined"
10931 #endif
10932 #if true != 1
10933 "error: true is not 1"
10934 #endif
10935 #ifndef __bool_true_false_are_defined
10936 "error: __bool_true_false_are_defined is not defined"
10937 #endif
10939 struct s { _Bool s: 1; _Bool t; } s;
10941 char a[true == 1 ? 1 : -1];
10942 char b[false == 0 ? 1 : -1];
10943 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10944 char d[(bool) 0.5 == true ? 1 : -1];
10945 bool e = &s;
10946 char f[(_Bool) 0.0 == false ? 1 : -1];
10947 char g[true];
10948 char h[sizeof (_Bool)];
10949 char i[sizeof s.t];
10950 enum { j = false, k = true, l = false * true, m = true * 256 };
10951 _Bool n[m];
10952 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10953 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10954 # if defined __xlc__ || defined __GNUC__
10955 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10956 reported by James Lemley on 2005-10-05; see
10957 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10958 This test is not quite right, since xlc is allowed to
10959 reject this program, as the initializer for xlcbug is
10960 not one of the forms that C requires support for.
10961 However, doing the test right would require a runtime
10962 test, and that would make cross-compilation harder.
10963 Let us hope that IBM fixes the xlc bug, and also adds
10964 support for this kind of constant expression. In the
10965 meantime, this test will reject xlc, which is OK, since
10966 our stdbool.h substitute should suffice. We also test
10967 this with GCC, where it should work, to detect more
10968 quickly whether someone messes up the test in the
10969 future. */
10970 char digs[] = "0123456789";
10971 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10972 # endif
10973 /* Catch a bug in an HP-UX C compiler. See
10974 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10975 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10977 _Bool q = true;
10978 _Bool *pq = &q;
10981 main ()
10984 *pq |= q;
10985 *pq |= ! q;
10986 /* Refer to every declared value, to avoid compiler optimizations. */
10987 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10988 + !m + !n + !o + !p + !q + !pq);
10991 return 0;
10993 _ACEOF
10994 rm -f conftest.$ac_objext
10995 if { (ac_try="$ac_compile"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_compile") 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && {
11008 test -z "$ac_c_werror_flag" ||
11009 test ! -s conftest.err
11010 } && test -s conftest.$ac_objext; then
11011 ac_cv_header_stdbool_h=yes
11012 else
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_cv_header_stdbool_h=no
11019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11022 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11023 { echo "$as_me:$LINENO: checking for _Bool" >&5
11024 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11025 if test "${ac_cv_type__Bool+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028 cat >conftest.$ac_ext <<_ACEOF
11029 /* confdefs.h. */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 $ac_includes_default
11035 typedef _Bool ac__type_new_;
11037 main ()
11039 if ((ac__type_new_ *) 0)
11040 return 0;
11041 if (sizeof (ac__type_new_))
11042 return 0;
11044 return 0;
11046 _ACEOF
11047 rm -f conftest.$ac_objext
11048 if { (ac_try="$ac_compile"
11049 case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11052 esac
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054 (eval "$ac_compile") 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } && {
11061 test -z "$ac_c_werror_flag" ||
11062 test ! -s conftest.err
11063 } && test -s conftest.$ac_objext; then
11064 ac_cv_type__Bool=yes
11065 else
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 ac_cv_type__Bool=no
11072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11074 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11075 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11076 if test $ac_cv_type__Bool = yes; then
11078 cat >>confdefs.h <<_ACEOF
11079 #define HAVE__BOOL 1
11080 _ACEOF
11085 if test $ac_cv_header_stdbool_h = yes; then
11087 cat >>confdefs.h <<\_ACEOF
11088 #define HAVE_STDBOOL_H 1
11089 _ACEOF
11093 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11094 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11095 if test "${ac_cv_c_const+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h. */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11106 main ()
11108 /* FIXME: Include the comments suggested by Paul. */
11109 #ifndef __cplusplus
11110 /* Ultrix mips cc rejects this. */
11111 typedef int charset[2];
11112 const charset cs;
11113 /* SunOS 4.1.1 cc rejects this. */
11114 char const *const *pcpcc;
11115 char **ppc;
11116 /* NEC SVR4.0.2 mips cc rejects this. */
11117 struct point {int x, y;};
11118 static struct point const zero = {0,0};
11119 /* AIX XL C 1.02.0.0 rejects this.
11120 It does not let you subtract one const X* pointer from another in
11121 an arm of an if-expression whose if-part is not a constant
11122 expression */
11123 const char *g = "string";
11124 pcpcc = &g + (g ? g-g : 0);
11125 /* HPUX 7.0 cc rejects these. */
11126 ++pcpcc;
11127 ppc = (char**) pcpcc;
11128 pcpcc = (char const *const *) ppc;
11129 { /* SCO 3.2v4 cc rejects this. */
11130 char *t;
11131 char const *s = 0 ? (char *) 0 : (char const *) 0;
11133 *t++ = 0;
11134 if (s) return 0;
11136 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11137 int x[] = {25, 17};
11138 const int *foo = &x[0];
11139 ++foo;
11141 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11142 typedef const int *iptr;
11143 iptr p = 0;
11144 ++p;
11146 { /* AIX XL C 1.02.0.0 rejects this saying
11147 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11148 struct s { int j; const int *ap[3]; };
11149 struct s *b; b->j = 5;
11151 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11152 const int foo = 10;
11153 if (!foo) return 0;
11155 return !cs[0] && !zero.x;
11156 #endif
11159 return 0;
11161 _ACEOF
11162 rm -f conftest.$ac_objext
11163 if { (ac_try="$ac_compile"
11164 case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_compile") 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } && {
11176 test -z "$ac_c_werror_flag" ||
11177 test ! -s conftest.err
11178 } && test -s conftest.$ac_objext; then
11179 ac_cv_c_const=yes
11180 else
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 ac_cv_c_const=no
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11189 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11190 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11191 if test $ac_cv_c_const = no; then
11193 cat >>confdefs.h <<\_ACEOF
11194 #define const
11195 _ACEOF
11199 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11200 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11201 if test "${ac_cv_type_uid_t+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204 cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h. */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11210 #include <sys/types.h>
11212 _ACEOF
11213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11214 $EGREP "uid_t" >/dev/null 2>&1; then
11215 ac_cv_type_uid_t=yes
11216 else
11217 ac_cv_type_uid_t=no
11219 rm -f conftest*
11222 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11223 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11224 if test $ac_cv_type_uid_t = no; then
11226 cat >>confdefs.h <<\_ACEOF
11227 #define uid_t int
11228 _ACEOF
11231 cat >>confdefs.h <<\_ACEOF
11232 #define gid_t int
11233 _ACEOF
11237 { echo "$as_me:$LINENO: checking for inline" >&5
11238 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11239 if test "${ac_cv_c_inline+set}" = set; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242 ac_cv_c_inline=no
11243 for ac_kw in inline __inline__ __inline; do
11244 cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h. */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 #ifndef __cplusplus
11251 typedef int foo_t;
11252 static $ac_kw foo_t static_foo () {return 0; }
11253 $ac_kw foo_t foo () {return 0; }
11254 #endif
11256 _ACEOF
11257 rm -f conftest.$ac_objext
11258 if { (ac_try="$ac_compile"
11259 case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11262 esac
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_compile") 2>conftest.er1
11265 ac_status=$?
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } && {
11271 test -z "$ac_c_werror_flag" ||
11272 test ! -s conftest.err
11273 } && test -s conftest.$ac_objext; then
11274 ac_cv_c_inline=$ac_kw
11275 else
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 test "$ac_cv_c_inline" != no && break
11284 done
11287 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11288 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11291 case $ac_cv_c_inline in
11292 inline | yes) ;;
11294 case $ac_cv_c_inline in
11295 no) ac_val=;;
11296 *) ac_val=$ac_cv_c_inline;;
11297 esac
11298 cat >>confdefs.h <<_ACEOF
11299 #ifndef __cplusplus
11300 #define inline $ac_val
11301 #endif
11302 _ACEOF
11304 esac
11306 { echo "$as_me:$LINENO: checking for mode_t" >&5
11307 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11308 if test "${ac_cv_type_mode_t+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h. */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 $ac_includes_default
11318 typedef mode_t ac__type_new_;
11320 main ()
11322 if ((ac__type_new_ *) 0)
11323 return 0;
11324 if (sizeof (ac__type_new_))
11325 return 0;
11327 return 0;
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (ac_try="$ac_compile"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_compile") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest.$ac_objext; then
11347 ac_cv_type_mode_t=yes
11348 else
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11352 ac_cv_type_mode_t=no
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11358 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11359 if test $ac_cv_type_mode_t = yes; then
11361 else
11363 cat >>confdefs.h <<_ACEOF
11364 #define mode_t int
11365 _ACEOF
11369 { echo "$as_me:$LINENO: checking for off_t" >&5
11370 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11371 if test "${ac_cv_type_off_t+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374 cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h. */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 $ac_includes_default
11381 typedef off_t ac__type_new_;
11383 main ()
11385 if ((ac__type_new_ *) 0)
11386 return 0;
11387 if (sizeof (ac__type_new_))
11388 return 0;
11390 return 0;
11392 _ACEOF
11393 rm -f conftest.$ac_objext
11394 if { (ac_try="$ac_compile"
11395 case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11398 esac
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_compile") 2>conftest.er1
11401 ac_status=$?
11402 grep -v '^ *+' conftest.er1 >conftest.err
11403 rm -f conftest.er1
11404 cat conftest.err >&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } && {
11407 test -z "$ac_c_werror_flag" ||
11408 test ! -s conftest.err
11409 } && test -s conftest.$ac_objext; then
11410 ac_cv_type_off_t=yes
11411 else
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11415 ac_cv_type_off_t=no
11418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11420 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11421 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11422 if test $ac_cv_type_off_t = yes; then
11424 else
11426 cat >>confdefs.h <<_ACEOF
11427 #define off_t long int
11428 _ACEOF
11432 { echo "$as_me:$LINENO: checking for pid_t" >&5
11433 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11434 if test "${ac_cv_type_pid_t+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h. */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 $ac_includes_default
11444 typedef pid_t ac__type_new_;
11446 main ()
11448 if ((ac__type_new_ *) 0)
11449 return 0;
11450 if (sizeof (ac__type_new_))
11451 return 0;
11453 return 0;
11455 _ACEOF
11456 rm -f conftest.$ac_objext
11457 if { (ac_try="$ac_compile"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_compile") 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } && {
11470 test -z "$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11472 } && test -s conftest.$ac_objext; then
11473 ac_cv_type_pid_t=yes
11474 else
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11478 ac_cv_type_pid_t=no
11481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11483 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11484 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11485 if test $ac_cv_type_pid_t = yes; then
11487 else
11489 cat >>confdefs.h <<_ACEOF
11490 #define pid_t int
11491 _ACEOF
11495 { echo "$as_me:$LINENO: checking for size_t" >&5
11496 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11497 if test "${ac_cv_type_size_t+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500 cat >conftest.$ac_ext <<_ACEOF
11501 /* confdefs.h. */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 $ac_includes_default
11507 typedef size_t ac__type_new_;
11509 main ()
11511 if ((ac__type_new_ *) 0)
11512 return 0;
11513 if (sizeof (ac__type_new_))
11514 return 0;
11516 return 0;
11518 _ACEOF
11519 rm -f conftest.$ac_objext
11520 if { (ac_try="$ac_compile"
11521 case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11524 esac
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_compile") 2>conftest.er1
11527 ac_status=$?
11528 grep -v '^ *+' conftest.er1 >conftest.err
11529 rm -f conftest.er1
11530 cat conftest.err >&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } && {
11533 test -z "$ac_c_werror_flag" ||
11534 test ! -s conftest.err
11535 } && test -s conftest.$ac_objext; then
11536 ac_cv_type_size_t=yes
11537 else
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11541 ac_cv_type_size_t=no
11544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11546 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11547 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11548 if test $ac_cv_type_size_t = yes; then
11550 else
11552 cat >>confdefs.h <<_ACEOF
11553 #define size_t unsigned int
11554 _ACEOF
11558 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11559 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
11560 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h. */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 $ac_includes_default
11571 main ()
11573 static struct stat ac_aggr;
11574 if (ac_aggr.st_blksize)
11575 return 0;
11577 return 0;
11579 _ACEOF
11580 rm -f conftest.$ac_objext
11581 if { (ac_try="$ac_compile"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11585 esac
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_compile") 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } && {
11594 test -z "$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11596 } && test -s conftest.$ac_objext; then
11597 ac_cv_member_struct_stat_st_blksize=yes
11598 else
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h. */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 $ac_includes_default
11610 main ()
11612 static struct stat ac_aggr;
11613 if (sizeof ac_aggr.st_blksize)
11614 return 0;
11616 return 0;
11618 _ACEOF
11619 rm -f conftest.$ac_objext
11620 if { (ac_try="$ac_compile"
11621 case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11624 esac
11625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_compile") 2>conftest.er1
11627 ac_status=$?
11628 grep -v '^ *+' conftest.er1 >conftest.err
11629 rm -f conftest.er1
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } && {
11633 test -z "$ac_c_werror_flag" ||
11634 test ! -s conftest.err
11635 } && test -s conftest.$ac_objext; then
11636 ac_cv_member_struct_stat_st_blksize=yes
11637 else
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11641 ac_cv_member_struct_stat_st_blksize=no
11644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11650 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11651 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11653 cat >>confdefs.h <<_ACEOF
11654 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11655 _ACEOF
11660 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11661 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11662 if test "${ac_cv_header_time+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665 cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h. */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <sys/types.h>
11672 #include <sys/time.h>
11673 #include <time.h>
11676 main ()
11678 if ((struct tm *) 0)
11679 return 0;
11681 return 0;
11683 _ACEOF
11684 rm -f conftest.$ac_objext
11685 if { (ac_try="$ac_compile"
11686 case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689 esac
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_compile") 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && {
11698 test -z "$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11700 } && test -s conftest.$ac_objext; then
11701 ac_cv_header_time=yes
11702 else
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 ac_cv_header_time=no
11709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11712 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11713 if test $ac_cv_header_time = yes; then
11715 cat >>confdefs.h <<\_ACEOF
11716 #define TIME_WITH_SYS_TIME 1
11717 _ACEOF
11721 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11722 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11723 if test "${ac_cv_struct_tm+set}" = set; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 else
11726 cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h. */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11732 #include <sys/types.h>
11733 #include <time.h>
11736 main ()
11738 struct tm tm;
11739 int *p = &tm.tm_sec;
11740 return !p;
11742 return 0;
11744 _ACEOF
11745 rm -f conftest.$ac_objext
11746 if { (ac_try="$ac_compile"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750 esac
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_compile") 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } && {
11759 test -z "$ac_c_werror_flag" ||
11760 test ! -s conftest.err
11761 } && test -s conftest.$ac_objext; then
11762 ac_cv_struct_tm=time.h
11763 else
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11767 ac_cv_struct_tm=sys/time.h
11770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11772 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11773 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11774 if test $ac_cv_struct_tm = sys/time.h; then
11776 cat >>confdefs.h <<\_ACEOF
11777 #define TM_IN_SYS_TIME 1
11778 _ACEOF
11782 { echo "$as_me:$LINENO: checking for working volatile" >&5
11783 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11784 if test "${ac_cv_c_volatile+set}" = set; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
11786 else
11787 cat >conftest.$ac_ext <<_ACEOF
11788 /* confdefs.h. */
11789 _ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11795 main ()
11798 volatile int x;
11799 int * volatile y = (int *) 0;
11800 return !x && !y;
11802 return 0;
11804 _ACEOF
11805 rm -f conftest.$ac_objext
11806 if { (ac_try="$ac_compile"
11807 case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810 esac
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_compile") 2>conftest.er1
11813 ac_status=$?
11814 grep -v '^ *+' conftest.er1 >conftest.err
11815 rm -f conftest.er1
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } && {
11819 test -z "$ac_c_werror_flag" ||
11820 test ! -s conftest.err
11821 } && test -s conftest.$ac_objext; then
11822 ac_cv_c_volatile=yes
11823 else
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11827 ac_cv_c_volatile=no
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11832 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11833 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11834 if test $ac_cv_c_volatile = no; then
11836 cat >>confdefs.h <<\_ACEOF
11837 #define volatile
11838 _ACEOF
11842 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11843 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11844 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847 cat >conftest.$ac_ext <<_ACEOF
11848 /* confdefs.h. */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11853 $ac_includes_default
11854 typedef ptrdiff_t ac__type_new_;
11856 main ()
11858 if ((ac__type_new_ *) 0)
11859 return 0;
11860 if (sizeof (ac__type_new_))
11861 return 0;
11863 return 0;
11865 _ACEOF
11866 rm -f conftest.$ac_objext
11867 if { (ac_try="$ac_compile"
11868 case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871 esac
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_compile") 2>conftest.er1
11874 ac_status=$?
11875 grep -v '^ *+' conftest.er1 >conftest.err
11876 rm -f conftest.er1
11877 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } && {
11880 test -z "$ac_c_werror_flag" ||
11881 test ! -s conftest.err
11882 } && test -s conftest.$ac_objext; then
11883 ac_cv_type_ptrdiff_t=yes
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11888 ac_cv_type_ptrdiff_t=no
11891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11893 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11894 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11895 if test $ac_cv_type_ptrdiff_t = yes; then
11897 cat >>confdefs.h <<_ACEOF
11898 #define HAVE_PTRDIFF_T 1
11899 _ACEOF
11905 # Checks for library functions.
11907 for ac_header in unistd.h
11909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 ac_res=`eval echo '${'$as_ac_Header'}'`
11917 { echo "$as_me:$LINENO: result: $ac_res" >&5
11918 echo "${ECHO_T}$ac_res" >&6; }
11919 else
11920 # Is the header compilable?
11921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11923 cat >conftest.$ac_ext <<_ACEOF
11924 /* confdefs.h. */
11925 _ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11929 $ac_includes_default
11930 #include <$ac_header>
11931 _ACEOF
11932 rm -f conftest.$ac_objext
11933 if { (ac_try="$ac_compile"
11934 case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11937 esac
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_compile") 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } && {
11946 test -z "$ac_c_werror_flag" ||
11947 test ! -s conftest.err
11948 } && test -s conftest.$ac_objext; then
11949 ac_header_compiler=yes
11950 else
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11954 ac_header_compiler=no
11957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11959 echo "${ECHO_T}$ac_header_compiler" >&6; }
11961 # Is the header present?
11962 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11964 cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h. */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11970 #include <$ac_header>
11971 _ACEOF
11972 if { (ac_try="$ac_cpp conftest.$ac_ext"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } >/dev/null && {
11985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11986 test ! -s conftest.err
11987 }; then
11988 ac_header_preproc=yes
11989 else
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 ac_header_preproc=no
11996 rm -f conftest.err conftest.$ac_ext
11997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11998 echo "${ECHO_T}$ac_header_preproc" >&6; }
12000 # So? What about this header?
12001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12002 yes:no: )
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12007 ac_header_preproc=yes
12009 no:yes:* )
12010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12022 ( cat <<\_ASBOX
12023 ## ------------------------------- ##
12024 ## Report this to www.asterisk.org ##
12025 ## ------------------------------- ##
12026 _ASBOX
12027 ) | sed "s/^/$as_me: WARNING: /" >&2
12029 esac
12030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035 eval "$as_ac_Header=\$ac_header_preproc"
12037 ac_res=`eval echo '${'$as_ac_Header'}'`
12038 { echo "$as_me:$LINENO: result: $ac_res" >&5
12039 echo "${ECHO_T}$ac_res" >&6; }
12042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12043 cat >>confdefs.h <<_ACEOF
12044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12045 _ACEOF
12049 done
12051 { echo "$as_me:$LINENO: checking for working chown" >&5
12052 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
12053 if test "${ac_cv_func_chown_works+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056 if test "$cross_compiling" = yes; then
12057 ac_cv_func_chown_works=no
12058 else
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 $ac_includes_default
12066 #include <fcntl.h>
12069 main ()
12071 char *f = "conftest.chown";
12072 struct stat before, after;
12074 if (creat (f, 0600) < 0)
12075 return 1;
12076 if (stat (f, &before) < 0)
12077 return 1;
12078 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12079 return 1;
12080 if (stat (f, &after) < 0)
12081 return 1;
12082 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12085 return 0;
12087 _ACEOF
12088 rm -f conftest$ac_exeext
12089 if { (ac_try="$ac_link"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093 esac
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_link") 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12099 { (case "(($ac_try" in
12100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101 *) ac_try_echo=$ac_try;;
12102 esac
12103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12104 (eval "$ac_try") 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 ac_cv_func_chown_works=yes
12109 else
12110 echo "$as_me: program exited with status $ac_status" >&5
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 ( exit $ac_status )
12115 ac_cv_func_chown_works=no
12117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12121 rm -f conftest.chown
12124 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
12125 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
12126 if test $ac_cv_func_chown_works = yes; then
12128 cat >>confdefs.h <<\_ACEOF
12129 #define HAVE_CHOWN 1
12130 _ACEOF
12134 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12135 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
12136 if test "${ac_cv_func_closedir_void+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 else
12139 if test "$cross_compiling" = yes; then
12140 ac_cv_func_closedir_void=yes
12141 else
12142 cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h. */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12148 $ac_includes_default
12149 #include <$ac_header_dirent>
12150 #ifndef __cplusplus
12151 int closedir ();
12152 #endif
12155 main ()
12157 return closedir (opendir (".")) != 0;
12159 return 0;
12161 _ACEOF
12162 rm -f conftest$ac_exeext
12163 if { (ac_try="$ac_link"
12164 case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_link") 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12173 { (case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176 esac
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_try") 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
12182 ac_cv_func_closedir_void=no
12183 else
12184 echo "$as_me: program exited with status $ac_status" >&5
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ( exit $ac_status )
12189 ac_cv_func_closedir_void=yes
12191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12196 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12197 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12198 if test $ac_cv_func_closedir_void = yes; then
12200 cat >>confdefs.h <<\_ACEOF
12201 #define CLOSEDIR_VOID 1
12202 _ACEOF
12206 { echo "$as_me:$LINENO: checking for error_at_line" >&5
12207 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
12208 if test "${ac_cv_lib_error_at_line+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h. */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217 #include <error.h>
12219 main ()
12221 error_at_line (0, 0, "", 0, "an error occurred");
12223 return 0;
12225 _ACEOF
12226 rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (ac_try="$ac_link"
12228 case "(($ac_try" in
12229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230 *) ac_try_echo=$ac_try;;
12231 esac
12232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12233 (eval "$ac_link") 2>conftest.er1
12234 ac_status=$?
12235 grep -v '^ *+' conftest.er1 >conftest.err
12236 rm -f conftest.er1
12237 cat conftest.err >&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } && {
12240 test -z "$ac_c_werror_flag" ||
12241 test ! -s conftest.err
12242 } && test -s conftest$ac_exeext &&
12243 $as_test_x conftest$ac_exeext; then
12244 ac_cv_lib_error_at_line=yes
12245 else
12246 echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12249 ac_cv_lib_error_at_line=no
12252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12253 conftest$ac_exeext conftest.$ac_ext
12255 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
12256 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
12257 if test $ac_cv_lib_error_at_line = no; then
12258 case " $LIBOBJS " in
12259 *" error.$ac_objext "* ) ;;
12260 *) LIBOBJS="$LIBOBJS error.$ac_objext"
12262 esac
12267 for ac_header in vfork.h
12269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 ac_res=`eval echo '${'$as_ac_Header'}'`
12277 { echo "$as_me:$LINENO: result: $ac_res" >&5
12278 echo "${ECHO_T}$ac_res" >&6; }
12279 else
12280 # Is the header compilable?
12281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12283 cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h. */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 $ac_includes_default
12290 #include <$ac_header>
12291 _ACEOF
12292 rm -f conftest.$ac_objext
12293 if { (ac_try="$ac_compile"
12294 case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12297 esac
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_compile") 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } && {
12306 test -z "$ac_c_werror_flag" ||
12307 test ! -s conftest.err
12308 } && test -s conftest.$ac_objext; then
12309 ac_header_compiler=yes
12310 else
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 ac_header_compiler=no
12317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12319 echo "${ECHO_T}$ac_header_compiler" >&6; }
12321 # Is the header present?
12322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12324 cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h. */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 #include <$ac_header>
12331 _ACEOF
12332 if { (ac_try="$ac_cpp conftest.$ac_ext"
12333 case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } >/dev/null && {
12345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 }; then
12348 ac_header_preproc=yes
12349 else
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_header_preproc=no
12356 rm -f conftest.err conftest.$ac_ext
12357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12358 echo "${ECHO_T}$ac_header_preproc" >&6; }
12360 # So? What about this header?
12361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12362 yes:no: )
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12367 ac_header_preproc=yes
12369 no:yes:* )
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12382 ( cat <<\_ASBOX
12383 ## ------------------------------- ##
12384 ## Report this to www.asterisk.org ##
12385 ## ------------------------------- ##
12386 _ASBOX
12387 ) | sed "s/^/$as_me: WARNING: /" >&2
12389 esac
12390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 else
12395 eval "$as_ac_Header=\$ac_header_preproc"
12397 ac_res=`eval echo '${'$as_ac_Header'}'`
12398 { echo "$as_me:$LINENO: result: $ac_res" >&5
12399 echo "${ECHO_T}$ac_res" >&6; }
12402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12403 cat >>confdefs.h <<_ACEOF
12404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12405 _ACEOF
12409 done
12413 for ac_func in fork vfork
12415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 else
12421 cat >conftest.$ac_ext <<_ACEOF
12422 /* confdefs.h. */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12429 #define $ac_func innocuous_$ac_func
12431 /* System header to define __stub macros and hopefully few prototypes,
12432 which can conflict with char $ac_func (); below.
12433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12434 <limits.h> exists even on freestanding compilers. */
12436 #ifdef __STDC__
12437 # include <limits.h>
12438 #else
12439 # include <assert.h>
12440 #endif
12442 #undef $ac_func
12444 /* Override any GCC internal prototype to avoid an error.
12445 Use char because int might match the return type of a GCC
12446 builtin and then its argument prototype would still apply. */
12447 #ifdef __cplusplus
12448 extern "C"
12449 #endif
12450 char $ac_func ();
12451 /* The GNU C library defines this for functions which it implements
12452 to always fail with ENOSYS. Some functions are actually named
12453 something starting with __ and the normal name is an alias. */
12454 #if defined __stub_$ac_func || defined __stub___$ac_func
12455 choke me
12456 #endif
12459 main ()
12461 return $ac_func ();
12463 return 0;
12465 _ACEOF
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (ac_try="$ac_link"
12468 case "(($ac_try" in
12469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12471 esac
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_link") 2>conftest.er1
12474 ac_status=$?
12475 grep -v '^ *+' conftest.er1 >conftest.err
12476 rm -f conftest.er1
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } && {
12480 test -z "$ac_c_werror_flag" ||
12481 test ! -s conftest.err
12482 } && test -s conftest$ac_exeext &&
12483 $as_test_x conftest$ac_exeext; then
12484 eval "$as_ac_var=yes"
12485 else
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12489 eval "$as_ac_var=no"
12492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12493 conftest$ac_exeext conftest.$ac_ext
12495 ac_res=`eval echo '${'$as_ac_var'}'`
12496 { echo "$as_me:$LINENO: result: $ac_res" >&5
12497 echo "${ECHO_T}$ac_res" >&6; }
12498 if test `eval echo '${'$as_ac_var'}'` = yes; then
12499 cat >>confdefs.h <<_ACEOF
12500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12501 _ACEOF
12504 done
12506 if test "x$ac_cv_func_fork" = xyes; then
12507 { echo "$as_me:$LINENO: checking for working fork" >&5
12508 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
12509 if test "${ac_cv_func_fork_works+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512 if test "$cross_compiling" = yes; then
12513 ac_cv_func_fork_works=cross
12514 else
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h. */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12521 $ac_includes_default
12523 main ()
12526 /* By Ruediger Kuhlmann. */
12527 return fork () < 0;
12530 return 0;
12532 _ACEOF
12533 rm -f conftest$ac_exeext
12534 if { (ac_try="$ac_link"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12538 esac
12539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540 (eval "$ac_link") 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12544 { (case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_try") 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_cv_func_fork_works=yes
12554 else
12555 echo "$as_me: program exited with status $ac_status" >&5
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12559 ( exit $ac_status )
12560 ac_cv_func_fork_works=no
12562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12567 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12568 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12570 else
12571 ac_cv_func_fork_works=$ac_cv_func_fork
12573 if test "x$ac_cv_func_fork_works" = xcross; then
12574 case $host in
12575 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
12576 # Override, as these systems have only a dummy fork() stub
12577 ac_cv_func_fork_works=no
12580 ac_cv_func_fork_works=yes
12582 esac
12583 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12584 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12586 ac_cv_func_vfork_works=$ac_cv_func_vfork
12587 if test "x$ac_cv_func_vfork" = xyes; then
12588 { echo "$as_me:$LINENO: checking for working vfork" >&5
12589 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
12590 if test "${ac_cv_func_vfork_works+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593 if test "$cross_compiling" = yes; then
12594 ac_cv_func_vfork_works=cross
12595 else
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h. */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 /* Thanks to Paul Eggert for this test. */
12603 $ac_includes_default
12604 #include <sys/wait.h>
12605 #ifdef HAVE_VFORK_H
12606 # include <vfork.h>
12607 #endif
12608 /* On some sparc systems, changes by the child to local and incoming
12609 argument registers are propagated back to the parent. The compiler
12610 is told about this with #include <vfork.h>, but some compilers
12611 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12612 static variable whose address is put into a register that is
12613 clobbered by the vfork. */
12614 static void
12615 #ifdef __cplusplus
12616 sparc_address_test (int arg)
12617 # else
12618 sparc_address_test (arg) int arg;
12619 #endif
12621 static pid_t child;
12622 if (!child) {
12623 child = vfork ();
12624 if (child < 0) {
12625 perror ("vfork");
12626 _exit(2);
12628 if (!child) {
12629 arg = getpid();
12630 write(-1, "", 0);
12631 _exit (arg);
12637 main ()
12639 pid_t parent = getpid ();
12640 pid_t child;
12642 sparc_address_test (0);
12644 child = vfork ();
12646 if (child == 0) {
12647 /* Here is another test for sparc vfork register problems. This
12648 test uses lots of local variables, at least as many local
12649 variables as main has allocated so far including compiler
12650 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12651 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12652 reuse the register of parent for one of the local variables,
12653 since it will think that parent can't possibly be used any more
12654 in this routine. Assigning to the local variable will thus
12655 munge parent in the parent process. */
12656 pid_t
12657 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12658 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12659 /* Convince the compiler that p..p7 are live; otherwise, it might
12660 use the same hardware register for all 8 local variables. */
12661 if (p != p1 || p != p2 || p != p3 || p != p4
12662 || p != p5 || p != p6 || p != p7)
12663 _exit(1);
12665 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12666 from child file descriptors. If the child closes a descriptor
12667 before it execs or exits, this munges the parent's descriptor
12668 as well. Test for this by closing stdout in the child. */
12669 _exit(close(fileno(stdout)) != 0);
12670 } else {
12671 int status;
12672 struct stat st;
12674 while (wait(&status) != child)
12676 return (
12677 /* Was there some problem with vforking? */
12678 child < 0
12680 /* Did the child fail? (This shouldn't happen.) */
12681 || status
12683 /* Did the vfork/compiler bug occur? */
12684 || parent != getpid()
12686 /* Did the file descriptor bug occur? */
12687 || fstat(fileno(stdout), &st) != 0
12691 _ACEOF
12692 rm -f conftest$ac_exeext
12693 if { (ac_try="$ac_link"
12694 case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12697 esac
12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_link") 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12703 { (case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_try") 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12712 ac_cv_func_vfork_works=yes
12713 else
12714 echo "$as_me: program exited with status $ac_status" >&5
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ( exit $ac_status )
12719 ac_cv_func_vfork_works=no
12721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12726 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12727 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12730 if test "x$ac_cv_func_fork_works" = xcross; then
12731 ac_cv_func_vfork_works=$ac_cv_func_vfork
12732 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12733 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12736 if test "x$ac_cv_func_vfork_works" = xyes; then
12738 cat >>confdefs.h <<\_ACEOF
12739 #define HAVE_WORKING_VFORK 1
12740 _ACEOF
12742 else
12744 cat >>confdefs.h <<\_ACEOF
12745 #define vfork fork
12746 _ACEOF
12749 if test "x$ac_cv_func_fork_works" = xyes; then
12751 cat >>confdefs.h <<\_ACEOF
12752 #define HAVE_WORKING_FORK 1
12753 _ACEOF
12757 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12758 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12759 if test "${ac_cv_sys_largefile_source+set}" = set; then
12760 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 else
12762 while :; do
12763 cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h. */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769 #include <sys/types.h> /* for off_t */
12770 #include <stdio.h>
12772 main ()
12774 int (*fp) (FILE *, off_t, int) = fseeko;
12775 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12777 return 0;
12779 _ACEOF
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (ac_try="$ac_link"
12782 case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785 esac
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_link") 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && {
12794 test -z "$ac_c_werror_flag" ||
12795 test ! -s conftest.err
12796 } && test -s conftest$ac_exeext &&
12797 $as_test_x conftest$ac_exeext; then
12798 ac_cv_sys_largefile_source=no; break
12799 else
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12807 conftest$ac_exeext conftest.$ac_ext
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 #define _LARGEFILE_SOURCE 1
12815 #include <sys/types.h> /* for off_t */
12816 #include <stdio.h>
12818 main ()
12820 int (*fp) (FILE *, off_t, int) = fseeko;
12821 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12823 return 0;
12825 _ACEOF
12826 rm -f conftest.$ac_objext conftest$ac_exeext
12827 if { (ac_try="$ac_link"
12828 case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_link") 2>conftest.er1
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } && {
12840 test -z "$ac_c_werror_flag" ||
12841 test ! -s conftest.err
12842 } && test -s conftest$ac_exeext &&
12843 $as_test_x conftest$ac_exeext; then
12844 ac_cv_sys_largefile_source=1; break
12845 else
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12853 conftest$ac_exeext conftest.$ac_ext
12854 ac_cv_sys_largefile_source=unknown
12855 break
12856 done
12858 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12859 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12860 case $ac_cv_sys_largefile_source in #(
12861 no | unknown) ;;
12863 cat >>confdefs.h <<_ACEOF
12864 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12865 _ACEOF
12867 esac
12868 rm -f conftest*
12870 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12871 # in glibc 2.1.3, but that breaks too many other things.
12872 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12873 if test $ac_cv_sys_largefile_source != unknown; then
12875 cat >>confdefs.h <<\_ACEOF
12876 #define HAVE_FSEEKO 1
12877 _ACEOF
12881 if test $ac_cv_c_compiler_gnu = yes; then
12882 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12883 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12884 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887 ac_pattern="Autoconf.*'x'"
12888 cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h. */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12894 #include <sgtty.h>
12895 Autoconf TIOCGETP
12896 _ACEOF
12897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12898 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12899 ac_cv_prog_gcc_traditional=yes
12900 else
12901 ac_cv_prog_gcc_traditional=no
12903 rm -f conftest*
12906 if test $ac_cv_prog_gcc_traditional = no; then
12907 cat >conftest.$ac_ext <<_ACEOF
12908 /* confdefs.h. */
12909 _ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12913 #include <termio.h>
12914 Autoconf TCGETA
12915 _ACEOF
12916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12917 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12918 ac_cv_prog_gcc_traditional=yes
12920 rm -f conftest*
12924 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12925 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12926 if test $ac_cv_prog_gcc_traditional = yes; then
12927 CC="$CC -traditional"
12931 # XXX: these are commented out until we determine whether it matters if our malloc()
12932 # acts exactly like glibc's or not
12933 # AC_FUNC_MALLOC
12934 # AC_FUNC_REALLOC
12935 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12936 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12937 if test "${ac_cv_func_memcmp_working+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 else
12940 if test "$cross_compiling" = yes; then
12941 ac_cv_func_memcmp_working=no
12942 else
12943 cat >conftest.$ac_ext <<_ACEOF
12944 /* confdefs.h. */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 $ac_includes_default
12951 main ()
12954 /* Some versions of memcmp are not 8-bit clean. */
12955 char c0 = '\100', c1 = '\200', c2 = '\201';
12956 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12957 return 1;
12959 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12960 or more and with at least one buffer not starting on a 4-byte boundary.
12961 William Lewis provided this test program. */
12963 char foo[21];
12964 char bar[21];
12965 int i;
12966 for (i = 0; i < 4; i++)
12968 char *a = foo + i;
12969 char *b = bar + i;
12970 strcpy (a, "--------01111111");
12971 strcpy (b, "--------10000000");
12972 if (memcmp (a, b, 16) >= 0)
12973 return 1;
12975 return 0;
12979 return 0;
12981 _ACEOF
12982 rm -f conftest$ac_exeext
12983 if { (ac_try="$ac_link"
12984 case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12987 esac
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_link") 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12993 { (case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996 esac
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_try") 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002 ac_cv_func_memcmp_working=yes
13003 else
13004 echo "$as_me: program exited with status $ac_status" >&5
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13008 ( exit $ac_status )
13009 ac_cv_func_memcmp_working=no
13011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13016 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
13017 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
13018 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13019 *" memcmp.$ac_objext "* ) ;;
13020 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13022 esac
13027 for ac_header in stdlib.h unistd.h
13029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 ac_res=`eval echo '${'$as_ac_Header'}'`
13037 { echo "$as_me:$LINENO: result: $ac_res" >&5
13038 echo "${ECHO_T}$ac_res" >&6; }
13039 else
13040 # Is the header compilable?
13041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13043 cat >conftest.$ac_ext <<_ACEOF
13044 /* confdefs.h. */
13045 _ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13049 $ac_includes_default
13050 #include <$ac_header>
13051 _ACEOF
13052 rm -f conftest.$ac_objext
13053 if { (ac_try="$ac_compile"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_compile") 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest.$ac_objext; then
13069 ac_header_compiler=yes
13070 else
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 ac_header_compiler=no
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13079 echo "${ECHO_T}$ac_header_compiler" >&6; }
13081 # Is the header present?
13082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13084 cat >conftest.$ac_ext <<_ACEOF
13085 /* confdefs.h. */
13086 _ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13090 #include <$ac_header>
13091 _ACEOF
13092 if { (ac_try="$ac_cpp conftest.$ac_ext"
13093 case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13096 esac
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13099 ac_status=$?
13100 grep -v '^ *+' conftest.er1 >conftest.err
13101 rm -f conftest.er1
13102 cat conftest.err >&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } >/dev/null && {
13105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13106 test ! -s conftest.err
13107 }; then
13108 ac_header_preproc=yes
13109 else
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13113 ac_header_preproc=no
13116 rm -f conftest.err conftest.$ac_ext
13117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13118 echo "${ECHO_T}$ac_header_preproc" >&6; }
13120 # So? What about this header?
13121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13122 yes:no: )
13123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13127 ac_header_preproc=yes
13129 no:yes:* )
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13142 ( cat <<\_ASBOX
13143 ## ------------------------------- ##
13144 ## Report this to www.asterisk.org ##
13145 ## ------------------------------- ##
13146 _ASBOX
13147 ) | sed "s/^/$as_me: WARNING: /" >&2
13149 esac
13150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155 eval "$as_ac_Header=\$ac_header_preproc"
13157 ac_res=`eval echo '${'$as_ac_Header'}'`
13158 { echo "$as_me:$LINENO: result: $ac_res" >&5
13159 echo "${ECHO_T}$ac_res" >&6; }
13162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13163 cat >>confdefs.h <<_ACEOF
13164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13165 _ACEOF
13169 done
13172 for ac_func in getpagesize
13174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 else
13180 cat >conftest.$ac_ext <<_ACEOF
13181 /* confdefs.h. */
13182 _ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13188 #define $ac_func innocuous_$ac_func
13190 /* System header to define __stub macros and hopefully few prototypes,
13191 which can conflict with char $ac_func (); below.
13192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13193 <limits.h> exists even on freestanding compilers. */
13195 #ifdef __STDC__
13196 # include <limits.h>
13197 #else
13198 # include <assert.h>
13199 #endif
13201 #undef $ac_func
13203 /* Override any GCC internal prototype to avoid an error.
13204 Use char because int might match the return type of a GCC
13205 builtin and then its argument prototype would still apply. */
13206 #ifdef __cplusplus
13207 extern "C"
13208 #endif
13209 char $ac_func ();
13210 /* The GNU C library defines this for functions which it implements
13211 to always fail with ENOSYS. Some functions are actually named
13212 something starting with __ and the normal name is an alias. */
13213 #if defined __stub_$ac_func || defined __stub___$ac_func
13214 choke me
13215 #endif
13218 main ()
13220 return $ac_func ();
13222 return 0;
13224 _ACEOF
13225 rm -f conftest.$ac_objext conftest$ac_exeext
13226 if { (ac_try="$ac_link"
13227 case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13230 esac
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_link") 2>conftest.er1
13233 ac_status=$?
13234 grep -v '^ *+' conftest.er1 >conftest.err
13235 rm -f conftest.er1
13236 cat conftest.err >&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } && {
13239 test -z "$ac_c_werror_flag" ||
13240 test ! -s conftest.err
13241 } && test -s conftest$ac_exeext &&
13242 $as_test_x conftest$ac_exeext; then
13243 eval "$as_ac_var=yes"
13244 else
13245 echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13248 eval "$as_ac_var=no"
13251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13252 conftest$ac_exeext conftest.$ac_ext
13254 ac_res=`eval echo '${'$as_ac_var'}'`
13255 { echo "$as_me:$LINENO: result: $ac_res" >&5
13256 echo "${ECHO_T}$ac_res" >&6; }
13257 if test `eval echo '${'$as_ac_var'}'` = yes; then
13258 cat >>confdefs.h <<_ACEOF
13259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13260 _ACEOF
13263 done
13265 { echo "$as_me:$LINENO: checking for working mmap" >&5
13266 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
13267 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270 if test "$cross_compiling" = yes; then
13271 ac_cv_func_mmap_fixed_mapped=no
13272 else
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h. */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 $ac_includes_default
13280 /* malloc might have been renamed as rpl_malloc. */
13281 #undef malloc
13283 /* Thanks to Mike Haertel and Jim Avera for this test.
13284 Here is a matrix of mmap possibilities:
13285 mmap private not fixed
13286 mmap private fixed at somewhere currently unmapped
13287 mmap private fixed at somewhere already mapped
13288 mmap shared not fixed
13289 mmap shared fixed at somewhere currently unmapped
13290 mmap shared fixed at somewhere already mapped
13291 For private mappings, we should verify that changes cannot be read()
13292 back from the file, nor mmap's back from the file at a different
13293 address. (There have been systems where private was not correctly
13294 implemented like the infamous i386 svr4.0, and systems where the
13295 VM page cache was not coherent with the file system buffer cache
13296 like early versions of FreeBSD and possibly contemporary NetBSD.)
13297 For shared mappings, we should conversely verify that changes get
13298 propagated back to all the places they're supposed to be.
13300 Grep wants private fixed already mapped.
13301 The main things grep needs to know about mmap are:
13302 * does it exist and is it safe to write into the mmap'd area
13303 * how to use it (BSD variants) */
13305 #include <fcntl.h>
13306 #include <sys/mman.h>
13308 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13309 char *malloc ();
13310 #endif
13312 /* This mess was copied from the GNU getpagesize.h. */
13313 #ifndef HAVE_GETPAGESIZE
13314 /* Assume that all systems that can run configure have sys/param.h. */
13315 # ifndef HAVE_SYS_PARAM_H
13316 # define HAVE_SYS_PARAM_H 1
13317 # endif
13319 # ifdef _SC_PAGESIZE
13320 # define getpagesize() sysconf(_SC_PAGESIZE)
13321 # else /* no _SC_PAGESIZE */
13322 # ifdef HAVE_SYS_PARAM_H
13323 # include <sys/param.h>
13324 # ifdef EXEC_PAGESIZE
13325 # define getpagesize() EXEC_PAGESIZE
13326 # else /* no EXEC_PAGESIZE */
13327 # ifdef NBPG
13328 # define getpagesize() NBPG * CLSIZE
13329 # ifndef CLSIZE
13330 # define CLSIZE 1
13331 # endif /* no CLSIZE */
13332 # else /* no NBPG */
13333 # ifdef NBPC
13334 # define getpagesize() NBPC
13335 # else /* no NBPC */
13336 # ifdef PAGESIZE
13337 # define getpagesize() PAGESIZE
13338 # endif /* PAGESIZE */
13339 # endif /* no NBPC */
13340 # endif /* no NBPG */
13341 # endif /* no EXEC_PAGESIZE */
13342 # else /* no HAVE_SYS_PARAM_H */
13343 # define getpagesize() 8192 /* punt totally */
13344 # endif /* no HAVE_SYS_PARAM_H */
13345 # endif /* no _SC_PAGESIZE */
13347 #endif /* no HAVE_GETPAGESIZE */
13350 main ()
13352 char *data, *data2, *data3;
13353 int i, pagesize;
13354 int fd;
13356 pagesize = getpagesize ();
13358 /* First, make a file with some known garbage in it. */
13359 data = (char *) malloc (pagesize);
13360 if (!data)
13361 return 1;
13362 for (i = 0; i < pagesize; ++i)
13363 *(data + i) = rand ();
13364 umask (0);
13365 fd = creat ("conftest.mmap", 0600);
13366 if (fd < 0)
13367 return 1;
13368 if (write (fd, data, pagesize) != pagesize)
13369 return 1;
13370 close (fd);
13372 /* Next, try to mmap the file at a fixed address which already has
13373 something else allocated at it. If we can, also make sure that
13374 we see the same garbage. */
13375 fd = open ("conftest.mmap", O_RDWR);
13376 if (fd < 0)
13377 return 1;
13378 data2 = (char *) malloc (2 * pagesize);
13379 if (!data2)
13380 return 1;
13381 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13382 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13383 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13384 return 1;
13385 for (i = 0; i < pagesize; ++i)
13386 if (*(data + i) != *(data2 + i))
13387 return 1;
13389 /* Finally, make sure that changes to the mapped area do not
13390 percolate back to the file as seen by read(). (This is a bug on
13391 some variants of i386 svr4.0.) */
13392 for (i = 0; i < pagesize; ++i)
13393 *(data2 + i) = *(data2 + i) + 1;
13394 data3 = (char *) malloc (pagesize);
13395 if (!data3)
13396 return 1;
13397 if (read (fd, data3, pagesize) != pagesize)
13398 return 1;
13399 for (i = 0; i < pagesize; ++i)
13400 if (*(data + i) != *(data3 + i))
13401 return 1;
13402 close (fd);
13403 return 0;
13405 _ACEOF
13406 rm -f conftest$ac_exeext
13407 if { (ac_try="$ac_link"
13408 case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13411 esac
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_link") 2>&5
13414 ac_status=$?
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13417 { (case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420 esac
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
13426 ac_cv_func_mmap_fixed_mapped=yes
13427 else
13428 echo "$as_me: program exited with status $ac_status" >&5
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 ( exit $ac_status )
13433 ac_cv_func_mmap_fixed_mapped=no
13435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13440 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13441 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13442 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13444 cat >>confdefs.h <<\_ACEOF
13445 #define HAVE_MMAP 1
13446 _ACEOF
13449 rm -f conftest.mmap
13453 for ac_header in sys/select.h sys/socket.h
13455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 ac_res=`eval echo '${'$as_ac_Header'}'`
13463 { echo "$as_me:$LINENO: result: $ac_res" >&5
13464 echo "${ECHO_T}$ac_res" >&6; }
13465 else
13466 # Is the header compilable?
13467 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13469 cat >conftest.$ac_ext <<_ACEOF
13470 /* confdefs.h. */
13471 _ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 $ac_includes_default
13476 #include <$ac_header>
13477 _ACEOF
13478 rm -f conftest.$ac_objext
13479 if { (ac_try="$ac_compile"
13480 case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483 esac
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_compile") 2>conftest.er1
13486 ac_status=$?
13487 grep -v '^ *+' conftest.er1 >conftest.err
13488 rm -f conftest.er1
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } && {
13492 test -z "$ac_c_werror_flag" ||
13493 test ! -s conftest.err
13494 } && test -s conftest.$ac_objext; then
13495 ac_header_compiler=yes
13496 else
13497 echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13500 ac_header_compiler=no
13503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13505 echo "${ECHO_T}$ac_header_compiler" >&6; }
13507 # Is the header present?
13508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h. */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <$ac_header>
13517 _ACEOF
13518 if { (ac_try="$ac_cpp conftest.$ac_ext"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } >/dev/null && {
13531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13532 test ! -s conftest.err
13533 }; then
13534 ac_header_preproc=yes
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_header_preproc=no
13542 rm -f conftest.err conftest.$ac_ext
13543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13544 echo "${ECHO_T}$ac_header_preproc" >&6; }
13546 # So? What about this header?
13547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13548 yes:no: )
13549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13553 ac_header_preproc=yes
13555 no:yes:* )
13556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13568 ( cat <<\_ASBOX
13569 ## ------------------------------- ##
13570 ## Report this to www.asterisk.org ##
13571 ## ------------------------------- ##
13572 _ASBOX
13573 ) | sed "s/^/$as_me: WARNING: /" >&2
13575 esac
13576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581 eval "$as_ac_Header=\$ac_header_preproc"
13583 ac_res=`eval echo '${'$as_ac_Header'}'`
13584 { echo "$as_me:$LINENO: result: $ac_res" >&5
13585 echo "${ECHO_T}$ac_res" >&6; }
13588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13589 cat >>confdefs.h <<_ACEOF
13590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13591 _ACEOF
13595 done
13597 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13598 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13599 if test "${ac_cv_func_select_args+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 else
13602 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13603 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13604 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13605 cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h. */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13611 $ac_includes_default
13612 #ifdef HAVE_SYS_SELECT_H
13613 # include <sys/select.h>
13614 #endif
13615 #ifdef HAVE_SYS_SOCKET_H
13616 # include <sys/socket.h>
13617 #endif
13620 main ()
13622 extern int select ($ac_arg1,
13623 $ac_arg234, $ac_arg234, $ac_arg234,
13624 $ac_arg5);
13626 return 0;
13628 _ACEOF
13629 rm -f conftest.$ac_objext
13630 if { (ac_try="$ac_compile"
13631 case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13634 esac
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_compile") 2>conftest.er1
13637 ac_status=$?
13638 grep -v '^ *+' conftest.er1 >conftest.err
13639 rm -f conftest.er1
13640 cat conftest.err >&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } && {
13643 test -z "$ac_c_werror_flag" ||
13644 test ! -s conftest.err
13645 } && test -s conftest.$ac_objext; then
13646 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13647 else
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 done
13656 done
13657 done
13658 # Provide a safe default value.
13659 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13662 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13663 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13664 ac_save_IFS=$IFS; IFS=','
13665 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13666 IFS=$ac_save_IFS
13667 shift
13669 cat >>confdefs.h <<_ACEOF
13670 #define SELECT_TYPE_ARG1 $1
13671 _ACEOF
13674 cat >>confdefs.h <<_ACEOF
13675 #define SELECT_TYPE_ARG234 ($2)
13676 _ACEOF
13679 cat >>confdefs.h <<_ACEOF
13680 #define SELECT_TYPE_ARG5 ($3)
13681 _ACEOF
13683 rm -f conftest*
13685 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13686 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13687 if test "$ac_cv_prog_cc_c89" != no; then
13688 { echo "$as_me:$LINENO: result: yes" >&5
13689 echo "${ECHO_T}yes" >&6; }
13691 cat >>confdefs.h <<\_ACEOF
13692 #define PROTOTYPES 1
13693 _ACEOF
13696 cat >>confdefs.h <<\_ACEOF
13697 #define __PROTOTYPES 1
13698 _ACEOF
13700 else
13701 { echo "$as_me:$LINENO: result: no" >&5
13702 echo "${ECHO_T}no" >&6; }
13705 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13706 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13707 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710 ac_cv_func_setvbuf_reversed=no
13711 cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h. */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 #include <stdio.h>
13718 # ifdef PROTOTYPES
13719 int (setvbuf) (FILE *, int, char *, size_t);
13720 # endif
13722 main ()
13724 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13726 return 0;
13728 _ACEOF
13729 rm -f conftest.$ac_objext conftest$ac_exeext
13730 if { (ac_try="$ac_link"
13731 case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734 esac
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_link") 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && {
13743 test -z "$ac_c_werror_flag" ||
13744 test ! -s conftest.err
13745 } && test -s conftest$ac_exeext &&
13746 $as_test_x conftest$ac_exeext; then
13747 cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h. */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 #include <stdio.h>
13754 # ifdef PROTOTYPES
13755 int (setvbuf) (FILE *, int, char *, size_t);
13756 # endif
13758 main ()
13760 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13762 return 0;
13764 _ACEOF
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (ac_try="$ac_link"
13767 case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770 esac
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_link") 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && {
13779 test -z "$ac_c_werror_flag" ||
13780 test ! -s conftest.err
13781 } && test -s conftest$ac_exeext &&
13782 $as_test_x conftest$ac_exeext; then
13783 # It compiles and links either way, so it must not be declared
13784 # with a prototype and most likely this is a K&R C compiler.
13785 # Try running it.
13786 if test "$cross_compiling" = yes; then
13787 : # Assume setvbuf is not reversed when cross-compiling.
13788 else
13789 cat >conftest.$ac_ext <<_ACEOF
13790 /* confdefs.h. */
13791 _ACEOF
13792 cat confdefs.h >>conftest.$ac_ext
13793 cat >>conftest.$ac_ext <<_ACEOF
13794 /* end confdefs.h. */
13795 $ac_includes_default
13797 main ()
13799 /* This call has the arguments reversed.
13800 A reversed system may check and see that the address of buf
13801 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13802 char buf;
13803 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13804 return 1;
13805 putchar ('\r');
13806 return 0; /* Non-reversed systems SEGV here. */
13808 return 0;
13810 _ACEOF
13811 rm -f conftest$ac_exeext
13812 if { (ac_try="$ac_link"
13813 case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13816 esac
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_link") 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13822 { (case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13825 esac
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_try") 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 ac_cv_func_setvbuf_reversed=yes
13832 else
13833 echo "$as_me: program exited with status $ac_status" >&5
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13842 ac_cv_func_setvbuf_reversed=yes
13843 else
13844 echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13851 conftest$ac_exeext conftest.$ac_ext
13852 else
13853 echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13860 conftest$ac_exeext conftest.$ac_ext
13862 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13863 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13864 if test $ac_cv_func_setvbuf_reversed = yes; then
13866 cat >>confdefs.h <<\_ACEOF
13867 #define SETVBUF_REVERSED 1
13868 _ACEOF
13872 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13873 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13874 if test "${ac_cv_type_signal+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877 cat >conftest.$ac_ext <<_ACEOF
13878 /* confdefs.h. */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883 #include <sys/types.h>
13884 #include <signal.h>
13887 main ()
13889 return *(signal (0, 0)) (0) == 1;
13891 return 0;
13893 _ACEOF
13894 rm -f conftest.$ac_objext
13895 if { (ac_try="$ac_compile"
13896 case "(($ac_try" in
13897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898 *) ac_try_echo=$ac_try;;
13899 esac
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901 (eval "$ac_compile") 2>conftest.er1
13902 ac_status=$?
13903 grep -v '^ *+' conftest.er1 >conftest.err
13904 rm -f conftest.er1
13905 cat conftest.err >&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } && {
13908 test -z "$ac_c_werror_flag" ||
13909 test ! -s conftest.err
13910 } && test -s conftest.$ac_objext; then
13911 ac_cv_type_signal=int
13912 else
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13916 ac_cv_type_signal=void
13919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13921 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13922 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13924 cat >>confdefs.h <<_ACEOF
13925 #define RETSIGTYPE $ac_cv_type_signal
13926 _ACEOF
13929 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13930 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13931 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 else
13934 rm -f conftest.sym conftest.file
13935 echo >conftest.file
13936 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13937 if test "$cross_compiling" = yes; then
13938 ac_cv_func_lstat_dereferences_slashed_symlink=no
13939 else
13940 cat >conftest.$ac_ext <<_ACEOF
13941 /* confdefs.h. */
13942 _ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13946 $ac_includes_default
13948 main ()
13950 struct stat sbuf;
13951 /* Linux will dereference the symlink and fail.
13952 That is better in the sense that it means we will not
13953 have to compile and use the lstat wrapper. */
13954 return lstat ("conftest.sym/", &sbuf) == 0;
13956 return 0;
13958 _ACEOF
13959 rm -f conftest$ac_exeext
13960 if { (ac_try="$ac_link"
13961 case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13964 esac
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_link") 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13970 { (case "(($ac_try" in
13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972 *) ac_try_echo=$ac_try;;
13973 esac
13974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975 (eval "$ac_try") 2>&5
13976 ac_status=$?
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13979 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13980 else
13981 echo "$as_me: program exited with status $ac_status" >&5
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13985 ( exit $ac_status )
13986 ac_cv_func_lstat_dereferences_slashed_symlink=no
13988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13992 else
13993 # If the `ln -s' command failed, then we probably don't even
13994 # have an lstat function.
13995 ac_cv_func_lstat_dereferences_slashed_symlink=no
13997 rm -f conftest.sym conftest.file
14000 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14001 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14003 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14005 cat >>confdefs.h <<_ACEOF
14006 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14007 _ACEOF
14010 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14011 case " $LIBOBJS " in
14012 *" lstat.$ac_objext "* ) ;;
14013 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14015 esac
14019 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
14020 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
14021 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 else
14024 if test "$cross_compiling" = yes; then
14025 ac_cv_func_stat_empty_string_bug=yes
14026 else
14027 cat >conftest.$ac_ext <<_ACEOF
14028 /* confdefs.h. */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14033 $ac_includes_default
14035 main ()
14037 struct stat sbuf;
14038 return stat ("", &sbuf) == 0;
14040 return 0;
14042 _ACEOF
14043 rm -f conftest$ac_exeext
14044 if { (ac_try="$ac_link"
14045 case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14048 esac
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_link") 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14054 { (case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14057 esac
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_try") 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
14063 ac_cv_func_stat_empty_string_bug=no
14064 else
14065 echo "$as_me: program exited with status $ac_status" >&5
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14069 ( exit $ac_status )
14070 ac_cv_func_stat_empty_string_bug=yes
14072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14077 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
14078 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
14079 if test $ac_cv_func_stat_empty_string_bug = yes; then
14080 case " $LIBOBJS " in
14081 *" stat.$ac_objext "* ) ;;
14082 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14084 esac
14087 cat >>confdefs.h <<_ACEOF
14088 #define HAVE_STAT_EMPTY_STRING_BUG 1
14089 _ACEOF
14093 { echo "$as_me:$LINENO: checking for working strcoll" >&5
14094 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
14095 if test "${ac_cv_func_strcoll_works+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098 if test "$cross_compiling" = yes; then
14099 ac_cv_func_strcoll_works=no
14100 else
14101 cat >conftest.$ac_ext <<_ACEOF
14102 /* confdefs.h. */
14103 _ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 $ac_includes_default
14109 main ()
14111 return (strcoll ("abc", "def") >= 0 ||
14112 strcoll ("ABC", "DEF") >= 0 ||
14113 strcoll ("123", "456") >= 0)
14115 return 0;
14117 _ACEOF
14118 rm -f conftest$ac_exeext
14119 if { (ac_try="$ac_link"
14120 case "(($ac_try" in
14121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14122 *) ac_try_echo=$ac_try;;
14123 esac
14124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14125 (eval "$ac_link") 2>&5
14126 ac_status=$?
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14129 { (case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14132 esac
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134 (eval "$ac_try") 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_cv_func_strcoll_works=yes
14139 else
14140 echo "$as_me: program exited with status $ac_status" >&5
14141 echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14144 ( exit $ac_status )
14145 ac_cv_func_strcoll_works=no
14147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14152 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
14153 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
14154 if test $ac_cv_func_strcoll_works = yes; then
14156 cat >>confdefs.h <<\_ACEOF
14157 #define HAVE_STRCOLL 1
14158 _ACEOF
14163 for ac_func in strftime
14165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171 cat >conftest.$ac_ext <<_ACEOF
14172 /* confdefs.h. */
14173 _ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14179 #define $ac_func innocuous_$ac_func
14181 /* System header to define __stub macros and hopefully few prototypes,
14182 which can conflict with char $ac_func (); below.
14183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14184 <limits.h> exists even on freestanding compilers. */
14186 #ifdef __STDC__
14187 # include <limits.h>
14188 #else
14189 # include <assert.h>
14190 #endif
14192 #undef $ac_func
14194 /* Override any GCC internal prototype to avoid an error.
14195 Use char because int might match the return type of a GCC
14196 builtin and then its argument prototype would still apply. */
14197 #ifdef __cplusplus
14198 extern "C"
14199 #endif
14200 char $ac_func ();
14201 /* The GNU C library defines this for functions which it implements
14202 to always fail with ENOSYS. Some functions are actually named
14203 something starting with __ and the normal name is an alias. */
14204 #if defined __stub_$ac_func || defined __stub___$ac_func
14205 choke me
14206 #endif
14209 main ()
14211 return $ac_func ();
14213 return 0;
14215 _ACEOF
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (ac_try="$ac_link"
14218 case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14221 esac
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_link") 2>conftest.er1
14224 ac_status=$?
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } && {
14230 test -z "$ac_c_werror_flag" ||
14231 test ! -s conftest.err
14232 } && test -s conftest$ac_exeext &&
14233 $as_test_x conftest$ac_exeext; then
14234 eval "$as_ac_var=yes"
14235 else
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 eval "$as_ac_var=no"
14242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14243 conftest$ac_exeext conftest.$ac_ext
14245 ac_res=`eval echo '${'$as_ac_var'}'`
14246 { echo "$as_me:$LINENO: result: $ac_res" >&5
14247 echo "${ECHO_T}$ac_res" >&6; }
14248 if test `eval echo '${'$as_ac_var'}'` = yes; then
14249 cat >>confdefs.h <<_ACEOF
14250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14251 _ACEOF
14253 else
14254 # strftime is in -lintl on SCO UNIX.
14255 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14256 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14257 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260 ac_check_lib_save_LIBS=$LIBS
14261 LIBS="-lintl $LIBS"
14262 cat >conftest.$ac_ext <<_ACEOF
14263 /* confdefs.h. */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14269 /* Override any GCC internal prototype to avoid an error.
14270 Use char because int might match the return type of a GCC
14271 builtin and then its argument prototype would still apply. */
14272 #ifdef __cplusplus
14273 extern "C"
14274 #endif
14275 char strftime ();
14277 main ()
14279 return strftime ();
14281 return 0;
14283 _ACEOF
14284 rm -f conftest.$ac_objext conftest$ac_exeext
14285 if { (ac_try="$ac_link"
14286 case "(($ac_try" in
14287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14289 esac
14290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291 (eval "$ac_link") 2>conftest.er1
14292 ac_status=$?
14293 grep -v '^ *+' conftest.er1 >conftest.err
14294 rm -f conftest.er1
14295 cat conftest.err >&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } && {
14298 test -z "$ac_c_werror_flag" ||
14299 test ! -s conftest.err
14300 } && test -s conftest$ac_exeext &&
14301 $as_test_x conftest$ac_exeext; then
14302 ac_cv_lib_intl_strftime=yes
14303 else
14304 echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14307 ac_cv_lib_intl_strftime=no
14310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14311 conftest$ac_exeext conftest.$ac_ext
14312 LIBS=$ac_check_lib_save_LIBS
14314 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14315 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14316 if test $ac_cv_lib_intl_strftime = yes; then
14317 cat >>confdefs.h <<\_ACEOF
14318 #define HAVE_STRFTIME 1
14319 _ACEOF
14321 LIBS="-lintl $LIBS"
14325 done
14327 { echo "$as_me:$LINENO: checking for working strnlen" >&5
14328 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
14329 if test "${ac_cv_func_strnlen_working+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332 if test "$cross_compiling" = yes; then
14333 ac_cv_func_strnlen_working=no
14334 else
14335 cat >conftest.$ac_ext <<_ACEOF
14336 /* confdefs.h. */
14337 _ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h. */
14341 $ac_includes_default
14343 main ()
14346 #define S "foobar"
14347 #define S_LEN (sizeof S - 1)
14349 /* At least one implementation is buggy: that of AIX 4.3 would
14350 give strnlen (S, 1) == 3. */
14352 int i;
14353 for (i = 0; i < S_LEN + 1; ++i)
14355 int expected = i <= S_LEN ? i : S_LEN;
14356 if (strnlen (S, i) != expected)
14357 return 1;
14359 return 0;
14362 return 0;
14364 _ACEOF
14365 rm -f conftest$ac_exeext
14366 if { (ac_try="$ac_link"
14367 case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14370 esac
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_link") 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14376 { (case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14379 esac
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_try") 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; }; then
14385 ac_cv_func_strnlen_working=yes
14386 else
14387 echo "$as_me: program exited with status $ac_status" >&5
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 ( exit $ac_status )
14392 ac_cv_func_strnlen_working=no
14394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14399 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
14400 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
14401 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
14402 *" strnlen.$ac_objext "* ) ;;
14403 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
14405 esac
14408 { echo "$as_me:$LINENO: checking for working strtod" >&5
14409 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
14410 if test "${ac_cv_func_strtod+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413 if test "$cross_compiling" = yes; then
14414 ac_cv_func_strtod=no
14415 else
14416 cat >conftest.$ac_ext <<_ACEOF
14417 /* confdefs.h. */
14418 _ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14423 $ac_includes_default
14424 #ifndef strtod
14425 double strtod ();
14426 #endif
14428 main()
14431 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14432 char *string = " +69";
14433 char *term;
14434 double value;
14435 value = strtod (string, &term);
14436 if (value != 69 || term != (string + 4))
14437 return 1;
14441 /* Under Solaris 2.4, strtod returns the wrong value for the
14442 terminating character under some conditions. */
14443 char *string = "NaN";
14444 char *term;
14445 strtod (string, &term);
14446 if (term != string && *(term - 1) == 0)
14447 return 1;
14449 return 0;
14452 _ACEOF
14453 rm -f conftest$ac_exeext
14454 if { (ac_try="$ac_link"
14455 case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458 esac
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_link") 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14464 { (case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14467 esac
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_try") 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 ac_cv_func_strtod=yes
14474 else
14475 echo "$as_me: program exited with status $ac_status" >&5
14476 echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14479 ( exit $ac_status )
14480 ac_cv_func_strtod=no
14482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14487 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14488 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14489 if test $ac_cv_func_strtod = no; then
14490 case " $LIBOBJS " in
14491 *" strtod.$ac_objext "* ) ;;
14492 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14494 esac
14496 { echo "$as_me:$LINENO: checking for pow" >&5
14497 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14498 if test "${ac_cv_func_pow+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501 cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h. */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14509 #define pow innocuous_pow
14511 /* System header to define __stub macros and hopefully few prototypes,
14512 which can conflict with char pow (); below.
14513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14514 <limits.h> exists even on freestanding compilers. */
14516 #ifdef __STDC__
14517 # include <limits.h>
14518 #else
14519 # include <assert.h>
14520 #endif
14522 #undef pow
14524 /* Override any GCC internal prototype to avoid an error.
14525 Use char because int might match the return type of a GCC
14526 builtin and then its argument prototype would still apply. */
14527 #ifdef __cplusplus
14528 extern "C"
14529 #endif
14530 char pow ();
14531 /* The GNU C library defines this for functions which it implements
14532 to always fail with ENOSYS. Some functions are actually named
14533 something starting with __ and the normal name is an alias. */
14534 #if defined __stub_pow || defined __stub___pow
14535 choke me
14536 #endif
14539 main ()
14541 return pow ();
14543 return 0;
14545 _ACEOF
14546 rm -f conftest.$ac_objext conftest$ac_exeext
14547 if { (ac_try="$ac_link"
14548 case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14551 esac
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_link") 2>conftest.er1
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } && {
14560 test -z "$ac_c_werror_flag" ||
14561 test ! -s conftest.err
14562 } && test -s conftest$ac_exeext &&
14563 $as_test_x conftest$ac_exeext; then
14564 ac_cv_func_pow=yes
14565 else
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14569 ac_cv_func_pow=no
14572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14573 conftest$ac_exeext conftest.$ac_ext
14575 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14576 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14578 if test $ac_cv_func_pow = no; then
14579 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14580 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14581 if test "${ac_cv_lib_m_pow+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584 ac_check_lib_save_LIBS=$LIBS
14585 LIBS="-lm $LIBS"
14586 cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h. */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14593 /* Override any GCC internal prototype to avoid an error.
14594 Use char because int might match the return type of a GCC
14595 builtin and then its argument prototype would still apply. */
14596 #ifdef __cplusplus
14597 extern "C"
14598 #endif
14599 char pow ();
14601 main ()
14603 return pow ();
14605 return 0;
14607 _ACEOF
14608 rm -f conftest.$ac_objext conftest$ac_exeext
14609 if { (ac_try="$ac_link"
14610 case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_link") 2>conftest.er1
14616 ac_status=$?
14617 grep -v '^ *+' conftest.er1 >conftest.err
14618 rm -f conftest.er1
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } && {
14622 test -z "$ac_c_werror_flag" ||
14623 test ! -s conftest.err
14624 } && test -s conftest$ac_exeext &&
14625 $as_test_x conftest$ac_exeext; then
14626 ac_cv_lib_m_pow=yes
14627 else
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14631 ac_cv_lib_m_pow=no
14634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14635 conftest$ac_exeext conftest.$ac_ext
14636 LIBS=$ac_check_lib_save_LIBS
14638 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14639 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14640 if test $ac_cv_lib_m_pow = yes; then
14641 POW_LIB=-lm
14642 else
14643 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14644 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14655 for ac_header in $ac_header_list
14657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 ac_res=`eval echo '${'$as_ac_Header'}'`
14665 { echo "$as_me:$LINENO: result: $ac_res" >&5
14666 echo "${ECHO_T}$ac_res" >&6; }
14667 else
14668 # Is the header compilable?
14669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14671 cat >conftest.$ac_ext <<_ACEOF
14672 /* confdefs.h. */
14673 _ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14677 $ac_includes_default
14678 #include <$ac_header>
14679 _ACEOF
14680 rm -f conftest.$ac_objext
14681 if { (ac_try="$ac_compile"
14682 case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14685 esac
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_compile") 2>conftest.er1
14688 ac_status=$?
14689 grep -v '^ *+' conftest.er1 >conftest.err
14690 rm -f conftest.er1
14691 cat conftest.err >&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } && {
14694 test -z "$ac_c_werror_flag" ||
14695 test ! -s conftest.err
14696 } && test -s conftest.$ac_objext; then
14697 ac_header_compiler=yes
14698 else
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14702 ac_header_compiler=no
14705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14707 echo "${ECHO_T}$ac_header_compiler" >&6; }
14709 # Is the header present?
14710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14712 cat >conftest.$ac_ext <<_ACEOF
14713 /* confdefs.h. */
14714 _ACEOF
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h. */
14718 #include <$ac_header>
14719 _ACEOF
14720 if { (ac_try="$ac_cpp conftest.$ac_ext"
14721 case "(($ac_try" in
14722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723 *) ac_try_echo=$ac_try;;
14724 esac
14725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14727 ac_status=$?
14728 grep -v '^ *+' conftest.er1 >conftest.err
14729 rm -f conftest.er1
14730 cat conftest.err >&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } >/dev/null && {
14733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14734 test ! -s conftest.err
14735 }; then
14736 ac_header_preproc=yes
14737 else
14738 echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.$ac_ext >&5
14741 ac_header_preproc=no
14744 rm -f conftest.err conftest.$ac_ext
14745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14746 echo "${ECHO_T}$ac_header_preproc" >&6; }
14748 # So? What about this header?
14749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14750 yes:no: )
14751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14755 ac_header_preproc=yes
14757 no:yes:* )
14758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14770 ( cat <<\_ASBOX
14771 ## ------------------------------- ##
14772 ## Report this to www.asterisk.org ##
14773 ## ------------------------------- ##
14774 _ASBOX
14775 ) | sed "s/^/$as_me: WARNING: /" >&2
14777 esac
14778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 else
14783 eval "$as_ac_Header=\$ac_header_preproc"
14785 ac_res=`eval echo '${'$as_ac_Header'}'`
14786 { echo "$as_me:$LINENO: result: $ac_res" >&5
14787 echo "${ECHO_T}$ac_res" >&6; }
14790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14791 cat >>confdefs.h <<_ACEOF
14792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14793 _ACEOF
14797 done
14807 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14808 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14809 if test "${ac_cv_func_utime_null+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 else
14812 rm -f conftest.data; >conftest.data
14813 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14814 if test "$cross_compiling" = yes; then
14815 ac_cv_func_utime_null=no
14816 else
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 $ac_includes_default
14824 #ifdef HAVE_UTIME_H
14825 # include <utime.h>
14826 #endif
14828 main ()
14830 struct stat s, t;
14831 return ! (stat ("conftest.data", &s) == 0
14832 && utime ("conftest.data", 0) == 0
14833 && stat ("conftest.data", &t) == 0
14834 && t.st_mtime >= s.st_mtime
14835 && t.st_mtime - s.st_mtime < 120);
14837 return 0;
14839 _ACEOF
14840 rm -f conftest$ac_exeext
14841 if { (ac_try="$ac_link"
14842 case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14845 esac
14846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847 (eval "$ac_link") 2>&5
14848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14851 { (case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14854 esac
14855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856 (eval "$ac_try") 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 ac_cv_func_utime_null=yes
14861 else
14862 echo "$as_me: program exited with status $ac_status" >&5
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ( exit $ac_status )
14867 ac_cv_func_utime_null=no
14869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14874 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14875 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14876 if test $ac_cv_func_utime_null = yes; then
14878 cat >>confdefs.h <<\_ACEOF
14879 #define HAVE_UTIME_NULL 1
14880 _ACEOF
14883 rm -f conftest.data
14886 for ac_func in vprintf
14888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14893 else
14894 cat >conftest.$ac_ext <<_ACEOF
14895 /* confdefs.h. */
14896 _ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h. */
14900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14902 #define $ac_func innocuous_$ac_func
14904 /* System header to define __stub macros and hopefully few prototypes,
14905 which can conflict with char $ac_func (); below.
14906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14907 <limits.h> exists even on freestanding compilers. */
14909 #ifdef __STDC__
14910 # include <limits.h>
14911 #else
14912 # include <assert.h>
14913 #endif
14915 #undef $ac_func
14917 /* Override any GCC internal prototype to avoid an error.
14918 Use char because int might match the return type of a GCC
14919 builtin and then its argument prototype would still apply. */
14920 #ifdef __cplusplus
14921 extern "C"
14922 #endif
14923 char $ac_func ();
14924 /* The GNU C library defines this for functions which it implements
14925 to always fail with ENOSYS. Some functions are actually named
14926 something starting with __ and the normal name is an alias. */
14927 #if defined __stub_$ac_func || defined __stub___$ac_func
14928 choke me
14929 #endif
14932 main ()
14934 return $ac_func ();
14936 return 0;
14938 _ACEOF
14939 rm -f conftest.$ac_objext conftest$ac_exeext
14940 if { (ac_try="$ac_link"
14941 case "(($ac_try" in
14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14944 esac
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_link") 2>conftest.er1
14947 ac_status=$?
14948 grep -v '^ *+' conftest.er1 >conftest.err
14949 rm -f conftest.er1
14950 cat conftest.err >&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } && {
14953 test -z "$ac_c_werror_flag" ||
14954 test ! -s conftest.err
14955 } && test -s conftest$ac_exeext &&
14956 $as_test_x conftest$ac_exeext; then
14957 eval "$as_ac_var=yes"
14958 else
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14962 eval "$as_ac_var=no"
14965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14966 conftest$ac_exeext conftest.$ac_ext
14968 ac_res=`eval echo '${'$as_ac_var'}'`
14969 { echo "$as_me:$LINENO: result: $ac_res" >&5
14970 echo "${ECHO_T}$ac_res" >&6; }
14971 if test `eval echo '${'$as_ac_var'}'` = yes; then
14972 cat >>confdefs.h <<_ACEOF
14973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14974 _ACEOF
14976 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14977 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14978 if test "${ac_cv_func__doprnt+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14980 else
14981 cat >conftest.$ac_ext <<_ACEOF
14982 /* confdefs.h. */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14987 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14989 #define _doprnt innocuous__doprnt
14991 /* System header to define __stub macros and hopefully few prototypes,
14992 which can conflict with char _doprnt (); below.
14993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14994 <limits.h> exists even on freestanding compilers. */
14996 #ifdef __STDC__
14997 # include <limits.h>
14998 #else
14999 # include <assert.h>
15000 #endif
15002 #undef _doprnt
15004 /* Override any GCC internal prototype to avoid an error.
15005 Use char because int might match the return type of a GCC
15006 builtin and then its argument prototype would still apply. */
15007 #ifdef __cplusplus
15008 extern "C"
15009 #endif
15010 char _doprnt ();
15011 /* The GNU C library defines this for functions which it implements
15012 to always fail with ENOSYS. Some functions are actually named
15013 something starting with __ and the normal name is an alias. */
15014 #if defined __stub__doprnt || defined __stub____doprnt
15015 choke me
15016 #endif
15019 main ()
15021 return _doprnt ();
15023 return 0;
15025 _ACEOF
15026 rm -f conftest.$ac_objext conftest$ac_exeext
15027 if { (ac_try="$ac_link"
15028 case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_link") 2>conftest.er1
15034 ac_status=$?
15035 grep -v '^ *+' conftest.er1 >conftest.err
15036 rm -f conftest.er1
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_c_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest$ac_exeext &&
15043 $as_test_x conftest$ac_exeext; then
15044 ac_cv_func__doprnt=yes
15045 else
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15049 ac_cv_func__doprnt=no
15052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15053 conftest$ac_exeext conftest.$ac_ext
15055 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15056 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
15057 if test $ac_cv_func__doprnt = yes; then
15059 cat >>confdefs.h <<\_ACEOF
15060 #define HAVE_DOPRNT 1
15061 _ACEOF
15066 done
15114 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
15116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15120 echo $ECHO_N "(cached) $ECHO_C" >&6
15121 else
15122 cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h. */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15130 #define $ac_func innocuous_$ac_func
15132 /* System header to define __stub macros and hopefully few prototypes,
15133 which can conflict with char $ac_func (); below.
15134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15135 <limits.h> exists even on freestanding compilers. */
15137 #ifdef __STDC__
15138 # include <limits.h>
15139 #else
15140 # include <assert.h>
15141 #endif
15143 #undef $ac_func
15145 /* Override any GCC internal prototype to avoid an error.
15146 Use char because int might match the return type of a GCC
15147 builtin and then its argument prototype would still apply. */
15148 #ifdef __cplusplus
15149 extern "C"
15150 #endif
15151 char $ac_func ();
15152 /* The GNU C library defines this for functions which it implements
15153 to always fail with ENOSYS. Some functions are actually named
15154 something starting with __ and the normal name is an alias. */
15155 #if defined __stub_$ac_func || defined __stub___$ac_func
15156 choke me
15157 #endif
15160 main ()
15162 return $ac_func ();
15164 return 0;
15166 _ACEOF
15167 rm -f conftest.$ac_objext conftest$ac_exeext
15168 if { (ac_try="$ac_link"
15169 case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15172 esac
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_link") 2>conftest.er1
15175 ac_status=$?
15176 grep -v '^ *+' conftest.er1 >conftest.err
15177 rm -f conftest.er1
15178 cat conftest.err >&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } && {
15181 test -z "$ac_c_werror_flag" ||
15182 test ! -s conftest.err
15183 } && test -s conftest$ac_exeext &&
15184 $as_test_x conftest$ac_exeext; then
15185 eval "$as_ac_var=yes"
15186 else
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15190 eval "$as_ac_var=no"
15193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15194 conftest$ac_exeext conftest.$ac_ext
15196 ac_res=`eval echo '${'$as_ac_var'}'`
15197 { echo "$as_me:$LINENO: result: $ac_res" >&5
15198 echo "${ECHO_T}$ac_res" >&6; }
15199 if test `eval echo '${'$as_ac_var'}'` = yes; then
15200 cat >>confdefs.h <<_ACEOF
15201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15202 _ACEOF
15205 done
15209 for ac_func in glob
15211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15212 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 else
15217 cat >conftest.$ac_ext <<_ACEOF
15218 /* confdefs.h. */
15219 _ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h. */
15223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15225 #define $ac_func innocuous_$ac_func
15227 /* System header to define __stub macros and hopefully few prototypes,
15228 which can conflict with char $ac_func (); below.
15229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15230 <limits.h> exists even on freestanding compilers. */
15232 #ifdef __STDC__
15233 # include <limits.h>
15234 #else
15235 # include <assert.h>
15236 #endif
15238 #undef $ac_func
15240 /* Override any GCC internal prototype to avoid an error.
15241 Use char because int might match the return type of a GCC
15242 builtin and then its argument prototype would still apply. */
15243 #ifdef __cplusplus
15244 extern "C"
15245 #endif
15246 char $ac_func ();
15247 /* The GNU C library defines this for functions which it implements
15248 to always fail with ENOSYS. Some functions are actually named
15249 something starting with __ and the normal name is an alias. */
15250 #if defined __stub_$ac_func || defined __stub___$ac_func
15251 choke me
15252 #endif
15255 main ()
15257 return $ac_func ();
15259 return 0;
15261 _ACEOF
15262 rm -f conftest.$ac_objext conftest$ac_exeext
15263 if { (ac_try="$ac_link"
15264 case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15267 esac
15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_link") 2>conftest.er1
15270 ac_status=$?
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } && {
15276 test -z "$ac_c_werror_flag" ||
15277 test ! -s conftest.err
15278 } && test -s conftest$ac_exeext &&
15279 $as_test_x conftest$ac_exeext; then
15280 eval "$as_ac_var=yes"
15281 else
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15285 eval "$as_ac_var=no"
15288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15289 conftest$ac_exeext conftest.$ac_ext
15291 ac_res=`eval echo '${'$as_ac_var'}'`
15292 { echo "$as_me:$LINENO: result: $ac_res" >&5
15293 echo "${ECHO_T}$ac_res" >&6; }
15294 if test `eval echo '${'$as_ac_var'}'` = yes; then
15295 cat >>confdefs.h <<_ACEOF
15296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15297 _ACEOF
15300 done
15303 { echo "$as_me:$LINENO: checking for timersub in time.h" >&5
15304 echo $ECHO_N "checking for timersub in time.h... $ECHO_C" >&6; }
15305 cat >conftest.$ac_ext <<_ACEOF
15306 /* confdefs.h. */
15307 _ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 #include <sys/time.h>
15313 main ()
15315 struct timeval *a; timersub(a, a, a);
15317 return 0;
15319 _ACEOF
15320 rm -f conftest.$ac_objext conftest$ac_exeext
15321 if { (ac_try="$ac_link"
15322 case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15325 esac
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_link") 2>conftest.er1
15328 ac_status=$?
15329 grep -v '^ *+' conftest.er1 >conftest.err
15330 rm -f conftest.er1
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } && {
15334 test -z "$ac_c_werror_flag" ||
15335 test ! -s conftest.err
15336 } && test -s conftest$ac_exeext &&
15337 $as_test_x conftest$ac_exeext; then
15338 { echo "$as_me:$LINENO: result: yes" >&5
15339 echo "${ECHO_T}yes" >&6; }
15341 cat >>confdefs.h <<\_ACEOF
15342 #define HAVE_TIMERSUB 1
15343 _ACEOF
15345 else
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 { echo "$as_me:$LINENO: result: no" >&5
15350 echo "${ECHO_T}no" >&6; }
15354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15355 conftest$ac_exeext conftest.$ac_ext
15357 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15358 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15359 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15360 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15364 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15365 else
15366 # Is the header compilable?
15367 { echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
15368 echo $ECHO_N "checking sys/poll.h usability... $ECHO_C" >&6; }
15369 cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h. */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 $ac_includes_default
15376 #include <sys/poll.h>
15377 _ACEOF
15378 rm -f conftest.$ac_objext
15379 if { (ac_try="$ac_compile"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15383 esac
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_compile") 2>conftest.er1
15386 ac_status=$?
15387 grep -v '^ *+' conftest.er1 >conftest.err
15388 rm -f conftest.er1
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } && {
15392 test -z "$ac_c_werror_flag" ||
15393 test ! -s conftest.err
15394 } && test -s conftest.$ac_objext; then
15395 ac_header_compiler=yes
15396 else
15397 echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15400 ac_header_compiler=no
15403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15405 echo "${ECHO_T}$ac_header_compiler" >&6; }
15407 # Is the header present?
15408 { echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
15409 echo $ECHO_N "checking sys/poll.h presence... $ECHO_C" >&6; }
15410 cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h. */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15416 #include <sys/poll.h>
15417 _ACEOF
15418 if { (ac_try="$ac_cpp conftest.$ac_ext"
15419 case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15422 esac
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15425 ac_status=$?
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } >/dev/null && {
15431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15432 test ! -s conftest.err
15433 }; then
15434 ac_header_preproc=yes
15435 else
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 ac_header_preproc=no
15442 rm -f conftest.err conftest.$ac_ext
15443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15444 echo "${ECHO_T}$ac_header_preproc" >&6; }
15446 # So? What about this header?
15447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15448 yes:no: )
15449 { echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
15450 echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15451 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
15452 echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
15453 ac_header_preproc=yes
15455 no:yes:* )
15456 { echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
15457 echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
15459 echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
15461 echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
15463 echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
15465 echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
15467 echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
15468 ( cat <<\_ASBOX
15469 ## ------------------------------- ##
15470 ## Report this to www.asterisk.org ##
15471 ## ------------------------------- ##
15472 _ASBOX
15473 ) | sed "s/^/$as_me: WARNING: /" >&2
15475 esac
15476 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15477 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15478 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 else
15481 ac_cv_header_sys_poll_h=$ac_header_preproc
15483 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15484 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15487 if test $ac_cv_header_sys_poll_h = yes; then
15488 HAS_POLL=1
15490 cat >>confdefs.h <<\_ACEOF
15491 #define HAVE_SYS_POLL_H 1
15492 _ACEOF
15499 # https support (in main/http.c) uses funopen on BSD systems,
15500 # fopencookie on linux
15503 for ac_func in funopen fopencookie
15505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15506 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15510 else
15511 cat >conftest.$ac_ext <<_ACEOF
15512 /* confdefs.h. */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15519 #define $ac_func innocuous_$ac_func
15521 /* System header to define __stub macros and hopefully few prototypes,
15522 which can conflict with char $ac_func (); below.
15523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15524 <limits.h> exists even on freestanding compilers. */
15526 #ifdef __STDC__
15527 # include <limits.h>
15528 #else
15529 # include <assert.h>
15530 #endif
15532 #undef $ac_func
15534 /* Override any GCC internal prototype to avoid an error.
15535 Use char because int might match the return type of a GCC
15536 builtin and then its argument prototype would still apply. */
15537 #ifdef __cplusplus
15538 extern "C"
15539 #endif
15540 char $ac_func ();
15541 /* The GNU C library defines this for functions which it implements
15542 to always fail with ENOSYS. Some functions are actually named
15543 something starting with __ and the normal name is an alias. */
15544 #if defined __stub_$ac_func || defined __stub___$ac_func
15545 choke me
15546 #endif
15549 main ()
15551 return $ac_func ();
15553 return 0;
15555 _ACEOF
15556 rm -f conftest.$ac_objext conftest$ac_exeext
15557 if { (ac_try="$ac_link"
15558 case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15561 esac
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_link") 2>conftest.er1
15564 ac_status=$?
15565 grep -v '^ *+' conftest.er1 >conftest.err
15566 rm -f conftest.er1
15567 cat conftest.err >&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } && {
15570 test -z "$ac_c_werror_flag" ||
15571 test ! -s conftest.err
15572 } && test -s conftest$ac_exeext &&
15573 $as_test_x conftest$ac_exeext; then
15574 eval "$as_ac_var=yes"
15575 else
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 eval "$as_ac_var=no"
15582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15583 conftest$ac_exeext conftest.$ac_ext
15585 ac_res=`eval echo '${'$as_ac_var'}'`
15586 { echo "$as_me:$LINENO: result: $ac_res" >&5
15587 echo "${ECHO_T}$ac_res" >&6; }
15588 if test `eval echo '${'$as_ac_var'}'` = yes; then
15589 cat >>confdefs.h <<_ACEOF
15590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15591 _ACEOF
15594 done
15598 for ac_func in inet_aton
15600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606 cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h. */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15614 #define $ac_func innocuous_$ac_func
15616 /* System header to define __stub macros and hopefully few prototypes,
15617 which can conflict with char $ac_func (); below.
15618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15619 <limits.h> exists even on freestanding compilers. */
15621 #ifdef __STDC__
15622 # include <limits.h>
15623 #else
15624 # include <assert.h>
15625 #endif
15627 #undef $ac_func
15629 /* Override any GCC internal prototype to avoid an error.
15630 Use char because int might match the return type of a GCC
15631 builtin and then its argument prototype would still apply. */
15632 #ifdef __cplusplus
15633 extern "C"
15634 #endif
15635 char $ac_func ();
15636 /* The GNU C library defines this for functions which it implements
15637 to always fail with ENOSYS. Some functions are actually named
15638 something starting with __ and the normal name is an alias. */
15639 #if defined __stub_$ac_func || defined __stub___$ac_func
15640 choke me
15641 #endif
15644 main ()
15646 return $ac_func ();
15648 return 0;
15650 _ACEOF
15651 rm -f conftest.$ac_objext conftest$ac_exeext
15652 if { (ac_try="$ac_link"
15653 case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15656 esac
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_link") 2>conftest.er1
15659 ac_status=$?
15660 grep -v '^ *+' conftest.er1 >conftest.err
15661 rm -f conftest.er1
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } && {
15665 test -z "$ac_c_werror_flag" ||
15666 test ! -s conftest.err
15667 } && test -s conftest$ac_exeext &&
15668 $as_test_x conftest$ac_exeext; then
15669 eval "$as_ac_var=yes"
15670 else
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 eval "$as_ac_var=no"
15677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15678 conftest$ac_exeext conftest.$ac_ext
15680 ac_res=`eval echo '${'$as_ac_var'}'`
15681 { echo "$as_me:$LINENO: result: $ac_res" >&5
15682 echo "${ECHO_T}$ac_res" >&6; }
15683 if test `eval echo '${'$as_ac_var'}'` = yes; then
15684 cat >>confdefs.h <<_ACEOF
15685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15686 _ACEOF
15689 done
15692 # check if we have IP_PKTINFO constant defined
15693 { echo "$as_me:$LINENO: checking for IP_PKTINFO" >&5
15694 echo $ECHO_N "checking for IP_PKTINFO... $ECHO_C" >&6; }
15695 cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h. */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15701 #include <netinet/in.h>
15703 main ()
15705 int pi = IP_PKTINFO;
15707 return 0;
15709 _ACEOF
15710 rm -f conftest.$ac_objext conftest$ac_exeext
15711 if { (ac_try="$ac_link"
15712 case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15715 esac
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_link") 2>conftest.er1
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } && {
15724 test -z "$ac_c_werror_flag" ||
15725 test ! -s conftest.err
15726 } && test -s conftest$ac_exeext &&
15727 $as_test_x conftest$ac_exeext; then
15728 { echo "$as_me:$LINENO: result: yes" >&5
15729 echo "${ECHO_T}yes" >&6; }
15731 cat >>confdefs.h <<\_ACEOF
15732 #define HAVE_PKTINFO 1
15733 _ACEOF
15735 else
15736 echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739 { echo "$as_me:$LINENO: result: no" >&5
15740 echo "${ECHO_T}no" >&6; }
15744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15745 conftest$ac_exeext conftest.$ac_ext
15747 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
15748 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
15749 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
15750 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753 ac_func_search_save_LIBS=$LIBS
15754 cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h. */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15761 /* Override any GCC internal prototype to avoid an error.
15762 Use char because int might match the return type of a GCC
15763 builtin and then its argument prototype would still apply. */
15764 #ifdef __cplusplus
15765 extern "C"
15766 #endif
15767 char gethostbyname_r ();
15769 main ()
15771 return gethostbyname_r ();
15773 return 0;
15775 _ACEOF
15776 for ac_lib in '' socket nsl; do
15777 if test -z "$ac_lib"; then
15778 ac_res="none required"
15779 else
15780 ac_res=-l$ac_lib
15781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15783 rm -f conftest.$ac_objext conftest$ac_exeext
15784 if { (ac_try="$ac_link"
15785 case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15788 esac
15789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790 (eval "$ac_link") 2>conftest.er1
15791 ac_status=$?
15792 grep -v '^ *+' conftest.er1 >conftest.err
15793 rm -f conftest.er1
15794 cat conftest.err >&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); } && {
15797 test -z "$ac_c_werror_flag" ||
15798 test ! -s conftest.err
15799 } && test -s conftest$ac_exeext &&
15800 $as_test_x conftest$ac_exeext; then
15801 ac_cv_search_gethostbyname_r=$ac_res
15802 else
15803 echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15810 conftest$ac_exeext
15811 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15812 break
15814 done
15815 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15817 else
15818 ac_cv_search_gethostbyname_r=no
15820 rm conftest.$ac_ext
15821 LIBS=$ac_func_search_save_LIBS
15823 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
15824 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
15825 ac_res=$ac_cv_search_gethostbyname_r
15826 if test "$ac_res" != no; then
15827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15832 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
15833 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h. */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 #include <stdlib.h>
15841 #include <netdb.h>
15843 main ()
15845 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
15847 return 0;
15849 _ACEOF
15850 rm -f conftest.$ac_objext conftest$ac_exeext
15851 if { (ac_try="$ac_link"
15852 case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15855 esac
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_link") 2>conftest.er1
15858 ac_status=$?
15859 grep -v '^ *+' conftest.er1 >conftest.err
15860 rm -f conftest.er1
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } && {
15864 test -z "$ac_c_werror_flag" ||
15865 test ! -s conftest.err
15866 } && test -s conftest$ac_exeext &&
15867 $as_test_x conftest$ac_exeext; then
15868 { echo "$as_me:$LINENO: result: yes" >&5
15869 echo "${ECHO_T}yes" >&6; }
15871 cat >>confdefs.h <<\_ACEOF
15872 #define HAVE_GETHOSTBYNAME_R_6 1
15873 _ACEOF
15875 else
15876 echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 { echo "$as_me:$LINENO: result: no" >&5
15880 echo "${ECHO_T}no" >&6; }
15884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15885 conftest$ac_exeext conftest.$ac_ext
15887 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
15888 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h. */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 #include <stdlib.h>
15896 #include <netdb.h>
15898 main ()
15900 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
15902 return 0;
15904 _ACEOF
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (ac_try="$ac_link"
15907 case "(($ac_try" in
15908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909 *) ac_try_echo=$ac_try;;
15910 esac
15911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15912 (eval "$ac_link") 2>conftest.er1
15913 ac_status=$?
15914 grep -v '^ *+' conftest.er1 >conftest.err
15915 rm -f conftest.er1
15916 cat conftest.err >&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } && {
15919 test -z "$ac_c_werror_flag" ||
15920 test ! -s conftest.err
15921 } && test -s conftest$ac_exeext &&
15922 $as_test_x conftest$ac_exeext; then
15923 { echo "$as_me:$LINENO: result: yes" >&5
15924 echo "${ECHO_T}yes" >&6; }
15926 cat >>confdefs.h <<\_ACEOF
15927 #define HAVE_GETHOSTBYNAME_R_5 1
15928 _ACEOF
15930 else
15931 echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15934 { echo "$as_me:$LINENO: result: no" >&5
15935 echo "${ECHO_T}no" >&6; }
15939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15940 conftest$ac_exeext conftest.$ac_ext
15942 if test "${ac_cv_header_byteswap_h+set}" = set; then
15943 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
15944 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
15945 if test "${ac_cv_header_byteswap_h+set}" = set; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15948 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
15949 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
15950 else
15951 # Is the header compilable?
15952 { echo "$as_me:$LINENO: checking byteswap.h usability" >&5
15953 echo $ECHO_N "checking byteswap.h usability... $ECHO_C" >&6; }
15954 cat >conftest.$ac_ext <<_ACEOF
15955 /* confdefs.h. */
15956 _ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15960 $ac_includes_default
15961 #include <byteswap.h>
15962 _ACEOF
15963 rm -f conftest.$ac_objext
15964 if { (ac_try="$ac_compile"
15965 case "(($ac_try" in
15966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967 *) ac_try_echo=$ac_try;;
15968 esac
15969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15970 (eval "$ac_compile") 2>conftest.er1
15971 ac_status=$?
15972 grep -v '^ *+' conftest.er1 >conftest.err
15973 rm -f conftest.er1
15974 cat conftest.err >&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } && {
15977 test -z "$ac_c_werror_flag" ||
15978 test ! -s conftest.err
15979 } && test -s conftest.$ac_objext; then
15980 ac_header_compiler=yes
15981 else
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 ac_header_compiler=no
15988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15990 echo "${ECHO_T}$ac_header_compiler" >&6; }
15992 # Is the header present?
15993 { echo "$as_me:$LINENO: checking byteswap.h presence" >&5
15994 echo $ECHO_N "checking byteswap.h presence... $ECHO_C" >&6; }
15995 cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h. */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 #include <byteswap.h>
16002 _ACEOF
16003 if { (ac_try="$ac_cpp conftest.$ac_ext"
16004 case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16007 esac
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16010 ac_status=$?
16011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } >/dev/null && {
16016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16017 test ! -s conftest.err
16018 }; then
16019 ac_header_preproc=yes
16020 else
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16024 ac_header_preproc=no
16027 rm -f conftest.err conftest.$ac_ext
16028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16029 echo "${ECHO_T}$ac_header_preproc" >&6; }
16031 # So? What about this header?
16032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16033 yes:no: )
16034 { echo "$as_me:$LINENO: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&5
16035 echo "$as_me: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the compiler's result" >&5
16037 echo "$as_me: WARNING: byteswap.h: proceeding with the compiler's result" >&2;}
16038 ac_header_preproc=yes
16040 no:yes:* )
16041 { echo "$as_me:$LINENO: WARNING: byteswap.h: present but cannot be compiled" >&5
16042 echo "$as_me: WARNING: byteswap.h: present but cannot be compiled" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: byteswap.h: check for missing prerequisite headers?" >&5
16044 echo "$as_me: WARNING: byteswap.h: check for missing prerequisite headers?" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: byteswap.h: see the Autoconf documentation" >&5
16046 echo "$as_me: WARNING: byteswap.h: see the Autoconf documentation" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&5
16048 echo "$as_me: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the preprocessor's result" >&5
16050 echo "$as_me: WARNING: byteswap.h: proceeding with the preprocessor's result" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: byteswap.h: in the future, the compiler will take precedence" >&5
16052 echo "$as_me: WARNING: byteswap.h: in the future, the compiler will take precedence" >&2;}
16053 ( cat <<\_ASBOX
16054 ## ------------------------------- ##
16055 ## Report this to www.asterisk.org ##
16056 ## ------------------------------- ##
16057 _ASBOX
16058 ) | sed "s/^/$as_me: WARNING: /" >&2
16060 esac
16061 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16062 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16063 if test "${ac_cv_header_byteswap_h+set}" = set; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16065 else
16066 ac_cv_header_byteswap_h=$ac_header_preproc
16068 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16069 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16072 if test $ac_cv_header_byteswap_h = yes; then
16074 cat >>confdefs.h <<_ACEOF
16075 #define HAVE_BYTESWAP_H 1
16076 _ACEOF
16082 { echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
16083 echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16084 cat >conftest.$ac_ext <<_ACEOF
16085 /* confdefs.h. */
16086 _ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h. */
16090 #include <sys/endian.h>
16092 main ()
16094 int a = 1; int b = __swap16(a);
16096 return 0;
16098 _ACEOF
16099 rm -f conftest.$ac_objext conftest$ac_exeext
16100 if { (ac_try="$ac_link"
16101 case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16104 esac
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_link") 2>conftest.er1
16107 ac_status=$?
16108 grep -v '^ *+' conftest.er1 >conftest.err
16109 rm -f conftest.er1
16110 cat conftest.err >&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } && {
16113 test -z "$ac_c_werror_flag" ||
16114 test ! -s conftest.err
16115 } && test -s conftest$ac_exeext &&
16116 $as_test_x conftest$ac_exeext; then
16117 { echo "$as_me:$LINENO: result: yes" >&5
16118 echo "${ECHO_T}yes" >&6; }
16120 cat >>confdefs.h <<\_ACEOF
16121 #define HAVE_SYS_ENDIAN_SWAP16 1
16122 _ACEOF
16124 else
16125 echo "$as_me: failed program was:" >&5
16126 sed 's/^/| /' conftest.$ac_ext >&5
16128 { echo "$as_me:$LINENO: result: no" >&5
16129 echo "${ECHO_T}no" >&6; }
16133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16134 conftest$ac_exeext conftest.$ac_ext
16136 { echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
16137 echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16138 cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h. */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16144 #include <sys/endian.h>
16146 main ()
16148 int a = 1; int b = bswap16(a);
16150 return 0;
16152 _ACEOF
16153 rm -f conftest.$ac_objext conftest$ac_exeext
16154 if { (ac_try="$ac_link"
16155 case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16158 esac
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_link") 2>conftest.er1
16161 ac_status=$?
16162 grep -v '^ *+' conftest.er1 >conftest.err
16163 rm -f conftest.er1
16164 cat conftest.err >&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } && {
16167 test -z "$ac_c_werror_flag" ||
16168 test ! -s conftest.err
16169 } && test -s conftest$ac_exeext &&
16170 $as_test_x conftest$ac_exeext; then
16171 { echo "$as_me:$LINENO: result: yes" >&5
16172 echo "${ECHO_T}yes" >&6; }
16174 cat >>confdefs.h <<\_ACEOF
16175 #define HAVE_SYS_ENDIAN_BSWAP16 1
16176 _ACEOF
16178 else
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16182 { echo "$as_me:$LINENO: result: no" >&5
16183 echo "${ECHO_T}no" >&6; }
16187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16188 conftest$ac_exeext conftest.$ac_ext
16190 if test "${cross_compiling}" = "no";
16191 then
16192 { echo "$as_me:$LINENO: checking for /dev/urandom" >&5
16193 echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6; }
16194 if test "${ac_cv_file__dev_urandom+set}" = set; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197 test "$cross_compiling" = yes &&
16198 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16199 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16200 { (exit 1); exit 1; }; }
16201 if test -r "/dev/urandom"; then
16202 ac_cv_file__dev_urandom=yes
16203 else
16204 ac_cv_file__dev_urandom=no
16207 { echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
16208 echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6; }
16209 if test $ac_cv_file__dev_urandom = yes; then
16211 cat >>confdefs.h <<\_ACEOF
16212 #define HAVE_DEV_URANDOM 1
16213 _ACEOF
16220 if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
16221 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
16222 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... $ECHO_C" >&6; }
16223 saved_cppflags="${CPPFLAGS}"
16224 if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
16225 PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
16227 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
16229 cat >conftest.$ac_ext <<_ACEOF
16230 /* confdefs.h. */
16231 _ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h. */
16235 #include <pthread.h>
16237 main ()
16239 #if defined(PTHREAD_RWLOCK_INITIALIZER)
16240 int foo = 0;
16241 #else
16242 int foo = bar;
16243 #endif
16247 return 0;
16249 _ACEOF
16250 rm -f conftest.$ac_objext
16251 if { (ac_try="$ac_compile"
16252 case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16255 esac
16256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_compile") 2>conftest.er1
16258 ac_status=$?
16259 grep -v '^ *+' conftest.er1 >conftest.err
16260 rm -f conftest.er1
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } && {
16264 test -z "$ac_c_werror_flag" ||
16265 test ! -s conftest.err
16266 } && test -s conftest.$ac_objext; then
16267 { echo "$as_me:$LINENO: result: yes" >&5
16268 echo "${ECHO_T}yes" >&6; }
16269 PBX_PTHREAD_RWLOCK_INITIALIZER=1
16271 cat >>confdefs.h <<\_ACEOF
16272 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
16273 _ACEOF
16276 cat >>confdefs.h <<\_ACEOF
16277 #define HAVE_PTHREAD_RWLOCK_INITIALIZER_VERSION
16278 _ACEOF
16281 else
16282 echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16285 { echo "$as_me:$LINENO: result: no" >&5
16286 echo "${ECHO_T}no" >&6; }
16290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16291 CPPFLAGS="${saved_cppflags}"
16296 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
16297 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... $ECHO_C" >&6; }
16298 cat >conftest.$ac_ext <<_ACEOF
16299 /* confdefs.h. */
16300 _ACEOF
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h. */
16304 #include <pthread.h>
16306 main ()
16308 int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
16310 return 0;
16312 _ACEOF
16313 rm -f conftest.$ac_objext conftest$ac_exeext
16314 if { (ac_try="$ac_link"
16315 case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16318 esac
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_link") 2>conftest.er1
16321 ac_status=$?
16322 grep -v '^ *+' conftest.er1 >conftest.err
16323 rm -f conftest.er1
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } && {
16327 test -z "$ac_c_werror_flag" ||
16328 test ! -s conftest.err
16329 } && test -s conftest$ac_exeext &&
16330 $as_test_x conftest$ac_exeext; then
16331 { echo "$as_me:$LINENO: result: yes" >&5
16332 echo "${ECHO_T}yes" >&6; }
16334 cat >>confdefs.h <<\_ACEOF
16335 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
16336 _ACEOF
16338 else
16339 echo "$as_me: failed program was:" >&5
16340 sed 's/^/| /' conftest.$ac_ext >&5
16342 { echo "$as_me:$LINENO: result: no" >&5
16343 echo "${ECHO_T}no" >&6; }
16347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16348 conftest$ac_exeext conftest.$ac_ext
16350 { echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
16351 echo $ECHO_N "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... $ECHO_C" >&6; }
16352 cat >conftest.$ac_ext <<_ACEOF
16353 /* confdefs.h. */
16354 _ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16358 #include <pthread.h>
16360 main ()
16362 int a = PTHREAD_MUTEX_RECURSIVE_NP;
16364 return 0;
16366 _ACEOF
16367 rm -f conftest.$ac_objext conftest$ac_exeext
16368 if { (ac_try="$ac_link"
16369 case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16372 esac
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_link") 2>conftest.er1
16375 ac_status=$?
16376 grep -v '^ *+' conftest.er1 >conftest.err
16377 rm -f conftest.er1
16378 cat conftest.err >&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } && {
16381 test -z "$ac_c_werror_flag" ||
16382 test ! -s conftest.err
16383 } && test -s conftest$ac_exeext &&
16384 $as_test_x conftest$ac_exeext; then
16385 { echo "$as_me:$LINENO: result: yes" >&5
16386 echo "${ECHO_T}yes" >&6; }
16388 cat >>confdefs.h <<\_ACEOF
16389 #define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1
16390 _ACEOF
16392 else
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 { echo "$as_me:$LINENO: result: no" >&5
16397 echo "${ECHO_T}no" >&6; }
16401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16402 conftest$ac_exeext conftest.$ac_ext
16405 if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
16406 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
16407 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... $ECHO_C" >&6; }
16408 saved_cppflags="${CPPFLAGS}"
16409 if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
16410 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
16412 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
16414 cat >conftest.$ac_ext <<_ACEOF
16415 /* confdefs.h. */
16416 _ACEOF
16417 cat confdefs.h >>conftest.$ac_ext
16418 cat >>conftest.$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16420 #include <pthread.h>
16422 main ()
16424 #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
16425 int foo = 0;
16426 #else
16427 int foo = bar;
16428 #endif
16432 return 0;
16434 _ACEOF
16435 rm -f conftest.$ac_objext
16436 if { (ac_try="$ac_compile"
16437 case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16440 esac
16441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442 (eval "$ac_compile") 2>conftest.er1
16443 ac_status=$?
16444 grep -v '^ *+' conftest.er1 >conftest.err
16445 rm -f conftest.er1
16446 cat conftest.err >&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } && {
16449 test -z "$ac_c_werror_flag" ||
16450 test ! -s conftest.err
16451 } && test -s conftest.$ac_objext; then
16452 { echo "$as_me:$LINENO: result: yes" >&5
16453 echo "${ECHO_T}yes" >&6; }
16454 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
16456 cat >>confdefs.h <<\_ACEOF
16457 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1
16458 _ACEOF
16461 cat >>confdefs.h <<\_ACEOF
16462 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_VERSION
16463 _ACEOF
16466 else
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16470 { echo "$as_me:$LINENO: result: no" >&5
16471 echo "${ECHO_T}no" >&6; }
16475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476 CPPFLAGS="${saved_cppflags}"
16481 #if test "${cross_compiling}" = "no";
16482 #then
16483 #AC_MSG_CHECKING(for working epoll support)
16484 #AC_LINK_IFELSE(
16485 #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
16486 # if (res < 0)
16487 # return 1;
16488 # close (res);
16489 # return 0;]),
16490 #AC_MSG_RESULT(yes)
16491 #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
16492 #AC_MSG_RESULT(no)
16496 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
16497 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
16498 cat >conftest.$ac_ext <<_ACEOF
16499 /* confdefs.h. */
16500 _ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h. */
16506 main ()
16508 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
16510 return 0;
16512 _ACEOF
16513 rm -f conftest.$ac_objext conftest$ac_exeext
16514 if { (ac_try="$ac_link"
16515 case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16518 esac
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_link") 2>conftest.er1
16521 ac_status=$?
16522 grep -v '^ *+' conftest.er1 >conftest.err
16523 rm -f conftest.er1
16524 cat conftest.err >&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } && {
16527 test -z "$ac_c_werror_flag" ||
16528 test ! -s conftest.err
16529 } && test -s conftest$ac_exeext &&
16530 $as_test_x conftest$ac_exeext; then
16531 { echo "$as_me:$LINENO: result: yes" >&5
16532 echo "${ECHO_T}yes" >&6; }
16534 cat >>confdefs.h <<\_ACEOF
16535 #define HAVE_GCC_ATOMICS 1
16536 _ACEOF
16538 else
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16542 { echo "$as_me:$LINENO: result: no" >&5
16543 echo "${ECHO_T}no" >&6; }
16547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16548 conftest$ac_exeext conftest.$ac_ext
16551 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
16552 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
16553 saved_CFLAGS="$CFLAGS"
16554 CFLAGS="$CFLAGS -Werror"
16555 cat >conftest.$ac_ext <<_ACEOF
16556 /* confdefs.h. */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 static void __attribute__((pure)) *test(void *muffin, ...) {}
16563 main ()
16567 return 0;
16569 _ACEOF
16570 rm -f conftest.$ac_objext
16571 if { (ac_try="$ac_compile"
16572 case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575 esac
16576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_compile") 2>conftest.er1
16578 ac_status=$?
16579 grep -v '^ *+' conftest.er1 >conftest.err
16580 rm -f conftest.er1
16581 cat conftest.err >&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } && {
16584 test -z "$ac_c_werror_flag" ||
16585 test ! -s conftest.err
16586 } && test -s conftest.$ac_objext; then
16587 { echo "$as_me:$LINENO: result: yes" >&5
16588 echo "${ECHO_T}yes" >&6; }
16590 cat >>confdefs.h <<_ACEOF
16591 #define HAVE_ATTRIBUTE_pure 1
16592 _ACEOF
16594 else
16595 echo "$as_me: failed program was:" >&5
16596 sed 's/^/| /' conftest.$ac_ext >&5
16598 { echo "$as_me:$LINENO: result: no" >&5
16599 echo "${ECHO_T}no" >&6; }
16602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16604 CFLAGS="$saved_CFLAGS"
16607 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
16608 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
16609 saved_CFLAGS="$CFLAGS"
16610 CFLAGS="$CFLAGS -Werror"
16611 cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h. */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16617 static void __attribute__((malloc)) *test(void *muffin, ...) {}
16619 main ()
16623 return 0;
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (ac_try="$ac_compile"
16628 case "(($ac_try" in
16629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630 *) ac_try_echo=$ac_try;;
16631 esac
16632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16633 (eval "$ac_compile") 2>conftest.er1
16634 ac_status=$?
16635 grep -v '^ *+' conftest.er1 >conftest.err
16636 rm -f conftest.er1
16637 cat conftest.err >&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } && {
16640 test -z "$ac_c_werror_flag" ||
16641 test ! -s conftest.err
16642 } && test -s conftest.$ac_objext; then
16643 { echo "$as_me:$LINENO: result: yes" >&5
16644 echo "${ECHO_T}yes" >&6; }
16646 cat >>confdefs.h <<_ACEOF
16647 #define HAVE_ATTRIBUTE_malloc 1
16648 _ACEOF
16650 else
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654 { echo "$as_me:$LINENO: result: no" >&5
16655 echo "${ECHO_T}no" >&6; }
16658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660 CFLAGS="$saved_CFLAGS"
16663 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
16664 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
16665 saved_CFLAGS="$CFLAGS"
16666 CFLAGS="$CFLAGS -Werror"
16667 cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h. */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16673 static void __attribute__((const)) *test(void *muffin, ...) {}
16675 main ()
16679 return 0;
16681 _ACEOF
16682 rm -f conftest.$ac_objext
16683 if { (ac_try="$ac_compile"
16684 case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16687 esac
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_compile") 2>conftest.er1
16690 ac_status=$?
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } && {
16696 test -z "$ac_c_werror_flag" ||
16697 test ! -s conftest.err
16698 } && test -s conftest.$ac_objext; then
16699 { echo "$as_me:$LINENO: result: yes" >&5
16700 echo "${ECHO_T}yes" >&6; }
16702 cat >>confdefs.h <<_ACEOF
16703 #define HAVE_ATTRIBUTE_const 1
16704 _ACEOF
16706 else
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16710 { echo "$as_me:$LINENO: result: no" >&5
16711 echo "${ECHO_T}no" >&6; }
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 CFLAGS="$saved_CFLAGS"
16719 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
16720 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
16721 saved_CFLAGS="$CFLAGS"
16722 CFLAGS="$CFLAGS -Werror"
16723 cat >conftest.$ac_ext <<_ACEOF
16724 /* confdefs.h. */
16725 _ACEOF
16726 cat confdefs.h >>conftest.$ac_ext
16727 cat >>conftest.$ac_ext <<_ACEOF
16728 /* end confdefs.h. */
16729 static void __attribute__((unused)) *test(void *muffin, ...) {}
16731 main ()
16735 return 0;
16737 _ACEOF
16738 rm -f conftest.$ac_objext
16739 if { (ac_try="$ac_compile"
16740 case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16743 esac
16744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_compile") 2>conftest.er1
16746 ac_status=$?
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } && {
16752 test -z "$ac_c_werror_flag" ||
16753 test ! -s conftest.err
16754 } && test -s conftest.$ac_objext; then
16755 { echo "$as_me:$LINENO: result: yes" >&5
16756 echo "${ECHO_T}yes" >&6; }
16758 cat >>confdefs.h <<_ACEOF
16759 #define HAVE_ATTRIBUTE_unused 1
16760 _ACEOF
16762 else
16763 echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16766 { echo "$as_me:$LINENO: result: no" >&5
16767 echo "${ECHO_T}no" >&6; }
16770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772 CFLAGS="$saved_CFLAGS"
16775 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
16776 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
16777 saved_CFLAGS="$CFLAGS"
16778 CFLAGS="$CFLAGS -Werror"
16779 cat >conftest.$ac_ext <<_ACEOF
16780 /* confdefs.h. */
16781 _ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
16787 main ()
16791 return 0;
16793 _ACEOF
16794 rm -f conftest.$ac_objext
16795 if { (ac_try="$ac_compile"
16796 case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16799 esac
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_compile") 2>conftest.er1
16802 ac_status=$?
16803 grep -v '^ *+' conftest.er1 >conftest.err
16804 rm -f conftest.er1
16805 cat conftest.err >&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } && {
16808 test -z "$ac_c_werror_flag" ||
16809 test ! -s conftest.err
16810 } && test -s conftest.$ac_objext; then
16811 { echo "$as_me:$LINENO: result: yes" >&5
16812 echo "${ECHO_T}yes" >&6; }
16814 cat >>confdefs.h <<_ACEOF
16815 #define HAVE_ATTRIBUTE_always_inline 1
16816 _ACEOF
16818 else
16819 echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16822 { echo "$as_me:$LINENO: result: no" >&5
16823 echo "${ECHO_T}no" >&6; }
16826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16828 CFLAGS="$saved_CFLAGS"
16831 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
16832 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
16833 saved_CFLAGS="$CFLAGS"
16834 CFLAGS="$CFLAGS -Werror"
16835 cat >conftest.$ac_ext <<_ACEOF
16836 /* confdefs.h. */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
16843 main ()
16847 return 0;
16849 _ACEOF
16850 rm -f conftest.$ac_objext
16851 if { (ac_try="$ac_compile"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_compile") 2>conftest.er1
16858 ac_status=$?
16859 grep -v '^ *+' conftest.er1 >conftest.err
16860 rm -f conftest.er1
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest.$ac_objext; then
16867 { echo "$as_me:$LINENO: result: yes" >&5
16868 echo "${ECHO_T}yes" >&6; }
16870 cat >>confdefs.h <<_ACEOF
16871 #define HAVE_ATTRIBUTE_deprecated 1
16872 _ACEOF
16874 else
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 { echo "$as_me:$LINENO: result: no" >&5
16879 echo "${ECHO_T}no" >&6; }
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884 CFLAGS="$saved_CFLAGS"
16887 { echo "$as_me:$LINENO: checking for compiler 'attribute sentinel' support" >&5
16888 echo $ECHO_N "checking for compiler 'attribute sentinel' support... $ECHO_C" >&6; }
16889 saved_CFLAGS="$CFLAGS"
16890 CFLAGS="$CFLAGS -Werror"
16891 cat >conftest.$ac_ext <<_ACEOF
16892 /* confdefs.h. */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 static void __attribute__((sentinel)) *test(void *muffin, ...) {}
16899 main ()
16903 return 0;
16905 _ACEOF
16906 rm -f conftest.$ac_objext
16907 if { (ac_try="$ac_compile"
16908 case "(($ac_try" in
16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910 *) ac_try_echo=$ac_try;;
16911 esac
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_compile") 2>conftest.er1
16914 ac_status=$?
16915 grep -v '^ *+' conftest.er1 >conftest.err
16916 rm -f conftest.er1
16917 cat conftest.err >&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } && {
16920 test -z "$ac_c_werror_flag" ||
16921 test ! -s conftest.err
16922 } && test -s conftest.$ac_objext; then
16923 { echo "$as_me:$LINENO: result: yes" >&5
16924 echo "${ECHO_T}yes" >&6; }
16926 cat >>confdefs.h <<_ACEOF
16927 #define HAVE_ATTRIBUTE_sentinel 1
16928 _ACEOF
16930 else
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 { echo "$as_me:$LINENO: result: no" >&5
16935 echo "${ECHO_T}no" >&6; }
16938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16940 CFLAGS="$saved_CFLAGS"
16943 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
16944 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
16945 saved_CFLAGS="${CFLAGS}"
16946 CFLAGS="${CFLAGS} -ffunction-sections"
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h. */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16955 main ()
16957 int x = 1;
16959 return 0;
16961 _ACEOF
16962 rm -f conftest.$ac_objext
16963 if { (ac_try="$ac_compile"
16964 case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16967 esac
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_compile") 2>conftest.er1
16970 ac_status=$?
16971 grep -v '^ *+' conftest.er1 >conftest.err
16972 rm -f conftest.er1
16973 cat conftest.err >&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } && {
16976 test -z "$ac_c_werror_flag" ||
16977 test ! -s conftest.err
16978 } && test -s conftest.$ac_objext; then
16979 { echo "$as_me:$LINENO: result: yes" >&5
16980 echo "${ECHO_T}yes" >&6; }
16981 saved_LDFLAGS="${LDFLAGS}"
16982 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
16983 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
16984 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
16985 cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h. */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16993 main ()
16995 int x = 1;
16997 return 0;
16999 _ACEOF
17000 rm -f conftest.$ac_objext conftest$ac_exeext
17001 if { (ac_try="$ac_link"
17002 case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17005 esac
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_link") 2>conftest.er1
17008 ac_status=$?
17009 grep -v '^ *+' conftest.er1 >conftest.err
17010 rm -f conftest.er1
17011 cat conftest.err >&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } && {
17014 test -z "$ac_c_werror_flag" ||
17015 test ! -s conftest.err
17016 } && test -s conftest$ac_exeext &&
17017 $as_test_x conftest$ac_exeext; then
17018 { echo "$as_me:$LINENO: result: yes" >&5
17019 echo "${ECHO_T}yes" >&6; }
17020 GC_CFLAGS="-ffunction-sections"
17021 GC_LDFLAGS="-Wl,--gc-sections"
17022 else
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 { echo "$as_me:$LINENO: result: no" >&5
17027 echo "${ECHO_T}no" >&6; }
17031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17032 conftest$ac_exeext conftest.$ac_ext
17033 LDFLAGS="${saved_LDFLAGS}"
17034 else
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17038 { echo "$as_me:$LINENO: result: no" >&5
17039 echo "${ECHO_T}no" >&6; }
17043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17044 CFLAGS="${saved_CFLAGS}"
17048 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
17049 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
17050 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17051 { echo "$as_me:$LINENO: result: yes" >&5
17052 echo "${ECHO_T}yes" >&6; }
17053 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
17054 else
17055 { echo "$as_me:$LINENO: result: no" >&5
17056 echo "${ECHO_T}no" >&6; }
17057 AST_DECLARATION_AFTER_STATEMENT=
17061 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
17062 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
17063 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17064 { echo "$as_me:$LINENO: result: yes" >&5
17065 echo "${ECHO_T}yes" >&6; }
17066 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
17067 else
17068 { echo "$as_me:$LINENO: result: no" >&5
17069 echo "${ECHO_T}no" >&6; }
17070 AST_NO_STRICT_OVERFLOW=
17074 { echo "$as_me:$LINENO: checking for sysinfo" >&5
17075 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
17076 cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h. */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082 #include <sys/sysinfo.h>
17084 main ()
17086 struct sysinfo sys_info; int uptime = sys_info.uptime
17088 return 0;
17090 _ACEOF
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_link") 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } && {
17105 test -z "$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 } && test -s conftest$ac_exeext &&
17108 $as_test_x conftest$ac_exeext; then
17109 { echo "$as_me:$LINENO: result: yes" >&5
17110 echo "${ECHO_T}yes" >&6; }
17112 cat >>confdefs.h <<\_ACEOF
17113 #define HAVE_SYSINFO 1
17114 _ACEOF
17116 else
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 { echo "$as_me:$LINENO: result: no" >&5
17121 echo "${ECHO_T}no" >&6; }
17125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17126 conftest$ac_exeext conftest.$ac_ext
17128 { echo "$as_me:$LINENO: checking for library containing res_9_ninit" >&5
17129 echo $ECHO_N "checking for library containing res_9_ninit... $ECHO_C" >&6; }
17130 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133 ac_func_search_save_LIBS=$LIBS
17134 cat >conftest.$ac_ext <<_ACEOF
17135 /* confdefs.h. */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h. */
17141 /* Override any GCC internal prototype to avoid an error.
17142 Use char because int might match the return type of a GCC
17143 builtin and then its argument prototype would still apply. */
17144 #ifdef __cplusplus
17145 extern "C"
17146 #endif
17147 char res_9_ninit ();
17149 main ()
17151 return res_9_ninit ();
17153 return 0;
17155 _ACEOF
17156 for ac_lib in '' resolv; do
17157 if test -z "$ac_lib"; then
17158 ac_res="none required"
17159 else
17160 ac_res=-l$ac_lib
17161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (ac_try="$ac_link"
17165 case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168 esac
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_link") 2>conftest.er1
17171 ac_status=$?
17172 grep -v '^ *+' conftest.er1 >conftest.err
17173 rm -f conftest.er1
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } && {
17177 test -z "$ac_c_werror_flag" ||
17178 test ! -s conftest.err
17179 } && test -s conftest$ac_exeext &&
17180 $as_test_x conftest$ac_exeext; then
17181 ac_cv_search_res_9_ninit=$ac_res
17182 else
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17190 conftest$ac_exeext
17191 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17192 break
17194 done
17195 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17197 else
17198 ac_cv_search_res_9_ninit=no
17200 rm conftest.$ac_ext
17201 LIBS=$ac_func_search_save_LIBS
17203 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ninit" >&5
17204 echo "${ECHO_T}$ac_cv_search_res_9_ninit" >&6; }
17205 ac_res=$ac_cv_search_res_9_ninit
17206 if test "$ac_res" != no; then
17207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17211 { echo "$as_me:$LINENO: checking for res_ninit" >&5
17212 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
17213 cat >conftest.$ac_ext <<_ACEOF
17214 /* confdefs.h. */
17215 _ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17220 #ifdef HAVE_SYS_SOCKET_H
17221 #include <sys/socket.h>
17222 #endif
17223 #ifdef HAVE_NETINET_IN_H
17224 #include <netinet/in.h>
17225 #endif
17226 #ifdef HAVE_ARPA_NAMESER_H
17227 #include <arpa/nameser.h>
17228 #endif
17229 #include <resolv.h>
17231 main ()
17233 int foo = res_ninit(NULL);
17235 return 0;
17237 _ACEOF
17238 rm -f conftest.$ac_objext conftest$ac_exeext
17239 if { (ac_try="$ac_link"
17240 case "(($ac_try" in
17241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17243 esac
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_link") 2>conftest.er1
17246 ac_status=$?
17247 grep -v '^ *+' conftest.er1 >conftest.err
17248 rm -f conftest.er1
17249 cat conftest.err >&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } && {
17252 test -z "$ac_c_werror_flag" ||
17253 test ! -s conftest.err
17254 } && test -s conftest$ac_exeext &&
17255 $as_test_x conftest$ac_exeext; then
17256 { echo "$as_me:$LINENO: result: yes" >&5
17257 echo "${ECHO_T}yes" >&6; }
17259 cat >>confdefs.h <<\_ACEOF
17260 #define HAVE_RES_NINIT 1
17261 _ACEOF
17263 { echo "$as_me:$LINENO: checking for library containing res_9_ndestroy" >&5
17264 echo $ECHO_N "checking for library containing res_9_ndestroy... $ECHO_C" >&6; }
17265 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268 ac_func_search_save_LIBS=$LIBS
17269 cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h. */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17276 /* Override any GCC internal prototype to avoid an error.
17277 Use char because int might match the return type of a GCC
17278 builtin and then its argument prototype would still apply. */
17279 #ifdef __cplusplus
17280 extern "C"
17281 #endif
17282 char res_9_ndestroy ();
17284 main ()
17286 return res_9_ndestroy ();
17288 return 0;
17290 _ACEOF
17291 for ac_lib in '' resolv; do
17292 if test -z "$ac_lib"; then
17293 ac_res="none required"
17294 else
17295 ac_res=-l$ac_lib
17296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17298 rm -f conftest.$ac_objext conftest$ac_exeext
17299 if { (ac_try="$ac_link"
17300 case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17303 esac
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_link") 2>conftest.er1
17306 ac_status=$?
17307 grep -v '^ *+' conftest.er1 >conftest.err
17308 rm -f conftest.er1
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } && {
17312 test -z "$ac_c_werror_flag" ||
17313 test ! -s conftest.err
17314 } && test -s conftest$ac_exeext &&
17315 $as_test_x conftest$ac_exeext; then
17316 ac_cv_search_res_9_ndestroy=$ac_res
17317 else
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325 conftest$ac_exeext
17326 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17327 break
17329 done
17330 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17332 else
17333 ac_cv_search_res_9_ndestroy=no
17335 rm conftest.$ac_ext
17336 LIBS=$ac_func_search_save_LIBS
17338 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ndestroy" >&5
17339 echo "${ECHO_T}$ac_cv_search_res_9_ndestroy" >&6; }
17340 ac_res=$ac_cv_search_res_9_ndestroy
17341 if test "$ac_res" != no; then
17342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17346 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
17347 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
17348 cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h. */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17355 #ifdef HAVE_SYS_SOCKET_H
17356 #include <sys/socket.h>
17357 #endif
17358 #ifdef HAVE_NETINET_IN_H
17359 #include <netinet/in.h>
17360 #endif
17361 #ifdef HAVE_ARPA_NAMESER_H
17362 #include <arpa/nameser.h>
17363 #endif
17364 #include <resolv.h>
17366 main ()
17368 res_ndestroy(NULL);
17370 return 0;
17372 _ACEOF
17373 rm -f conftest.$ac_objext conftest$ac_exeext
17374 if { (ac_try="$ac_link"
17375 case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17378 esac
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_link") 2>conftest.er1
17381 ac_status=$?
17382 grep -v '^ *+' conftest.er1 >conftest.err
17383 rm -f conftest.er1
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } && {
17387 test -z "$ac_c_werror_flag" ||
17388 test ! -s conftest.err
17389 } && test -s conftest$ac_exeext &&
17390 $as_test_x conftest$ac_exeext; then
17391 { echo "$as_me:$LINENO: result: yes" >&5
17392 echo "${ECHO_T}yes" >&6; }
17394 cat >>confdefs.h <<\_ACEOF
17395 #define HAVE_RES_NDESTROY 1
17396 _ACEOF
17398 else
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17402 { echo "$as_me:$LINENO: result: no" >&5
17403 echo "${ECHO_T}no" >&6; }
17407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17408 conftest$ac_exeext conftest.$ac_ext
17409 else
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 { echo "$as_me:$LINENO: result: no" >&5
17414 echo "${ECHO_T}no" >&6; }
17418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17419 conftest$ac_exeext conftest.$ac_ext
17422 if test "x${PBX_RTLD_NOLOAD}" != "x1"; then
17423 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD in dlfcn.h" >&5
17424 echo $ECHO_N "checking for RTLD_NOLOAD in dlfcn.h... $ECHO_C" >&6; }
17425 saved_cppflags="${CPPFLAGS}"
17426 if test "x${RTLD_NOLOAD_DIR}" != "x"; then
17427 RTLD_NOLOAD_INCLUDE="-I${RTLD_NOLOAD_DIR}/include"
17429 CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
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. */
17437 #include <dlfcn.h>
17439 main ()
17441 #if defined(RTLD_NOLOAD)
17442 int foo = 0;
17443 #else
17444 int foo = bar;
17445 #endif
17449 return 0;
17451 _ACEOF
17452 rm -f conftest.$ac_objext
17453 if { (ac_try="$ac_compile"
17454 case "(($ac_try" in
17455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456 *) ac_try_echo=$ac_try;;
17457 esac
17458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459 (eval "$ac_compile") 2>conftest.er1
17460 ac_status=$?
17461 grep -v '^ *+' conftest.er1 >conftest.err
17462 rm -f conftest.er1
17463 cat conftest.err >&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } && {
17466 test -z "$ac_c_werror_flag" ||
17467 test ! -s conftest.err
17468 } && test -s conftest.$ac_objext; then
17469 { echo "$as_me:$LINENO: result: yes" >&5
17470 echo "${ECHO_T}yes" >&6; }
17471 PBX_RTLD_NOLOAD=1
17473 cat >>confdefs.h <<\_ACEOF
17474 #define HAVE_RTLD_NOLOAD 1
17475 _ACEOF
17478 cat >>confdefs.h <<\_ACEOF
17479 #define HAVE_RTLD_NOLOAD_VERSION
17480 _ACEOF
17483 else
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17487 { echo "$as_me:$LINENO: result: no" >&5
17488 echo "${ECHO_T}no" >&6; }
17492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17493 CPPFLAGS="${saved_cppflags}"
17499 if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
17500 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
17501 echo $ECHO_N "checking for IP_MTU_DISCOVER in netinet/in.h... $ECHO_C" >&6; }
17502 saved_cppflags="${CPPFLAGS}"
17503 if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
17504 IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
17506 CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
17508 cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h. */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 #include <netinet/in.h>
17516 main ()
17518 #if defined(IP_MTU_DISCOVER)
17519 int foo = 0;
17520 #else
17521 int foo = bar;
17522 #endif
17526 return 0;
17528 _ACEOF
17529 rm -f conftest.$ac_objext
17530 if { (ac_try="$ac_compile"
17531 case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534 esac
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_compile") 2>conftest.er1
17537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } && {
17543 test -z "$ac_c_werror_flag" ||
17544 test ! -s conftest.err
17545 } && test -s conftest.$ac_objext; then
17546 { echo "$as_me:$LINENO: result: yes" >&5
17547 echo "${ECHO_T}yes" >&6; }
17548 PBX_IP_MTU_DISCOVER=1
17550 cat >>confdefs.h <<\_ACEOF
17551 #define HAVE_IP_MTU_DISCOVER 1
17552 _ACEOF
17555 cat >>confdefs.h <<\_ACEOF
17556 #define HAVE_IP_MTU_DISCOVER_VERSION
17557 _ACEOF
17560 else
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17564 { echo "$as_me:$LINENO: result: no" >&5
17565 echo "${ECHO_T}no" >&6; }
17569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17570 CPPFLAGS="${saved_cppflags}"
17575 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17576 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17577 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17578 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
17581 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17582 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17583 else
17584 # Is the header compilable?
17585 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
17586 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
17587 cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h. */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 $ac_includes_default
17594 #include <libkern/OSAtomic.h>
17595 _ACEOF
17596 rm -f conftest.$ac_objext
17597 if { (ac_try="$ac_compile"
17598 case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17601 esac
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_compile") 2>conftest.er1
17604 ac_status=$?
17605 grep -v '^ *+' conftest.er1 >conftest.err
17606 rm -f conftest.er1
17607 cat conftest.err >&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } && {
17610 test -z "$ac_c_werror_flag" ||
17611 test ! -s conftest.err
17612 } && test -s conftest.$ac_objext; then
17613 ac_header_compiler=yes
17614 else
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618 ac_header_compiler=no
17621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17623 echo "${ECHO_T}$ac_header_compiler" >&6; }
17625 # Is the header present?
17626 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
17627 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
17628 cat >conftest.$ac_ext <<_ACEOF
17629 /* confdefs.h. */
17630 _ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h. */
17634 #include <libkern/OSAtomic.h>
17635 _ACEOF
17636 if { (ac_try="$ac_cpp conftest.$ac_ext"
17637 case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17640 esac
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17643 ac_status=$?
17644 grep -v '^ *+' conftest.er1 >conftest.err
17645 rm -f conftest.er1
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } >/dev/null && {
17649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17650 test ! -s conftest.err
17651 }; then
17652 ac_header_preproc=yes
17653 else
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 ac_header_preproc=no
17660 rm -f conftest.err conftest.$ac_ext
17661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17662 echo "${ECHO_T}$ac_header_preproc" >&6; }
17664 # So? What about this header?
17665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17666 yes:no: )
17667 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
17668 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17669 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
17670 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
17671 ac_header_preproc=yes
17673 no:yes:* )
17674 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
17675 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
17676 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
17677 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
17678 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
17679 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
17680 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
17681 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
17682 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
17683 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
17684 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
17685 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
17686 ( cat <<\_ASBOX
17687 ## ------------------------------- ##
17688 ## Report this to www.asterisk.org ##
17689 ## ------------------------------- ##
17690 _ASBOX
17691 ) | sed "s/^/$as_me: WARNING: /" >&2
17693 esac
17694 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17695 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17696 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
17701 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17702 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17705 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
17707 cat >>confdefs.h <<_ACEOF
17708 #define HAVE_OSX_ATOMICS 1
17709 _ACEOF
17715 { echo "$as_me:$LINENO: checking for int" >&5
17716 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
17717 if test "${ac_cv_type_int+set}" = set; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 else
17720 cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h. */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 $ac_includes_default
17727 typedef int ac__type_new_;
17729 main ()
17731 if ((ac__type_new_ *) 0)
17732 return 0;
17733 if (sizeof (ac__type_new_))
17734 return 0;
17736 return 0;
17738 _ACEOF
17739 rm -f conftest.$ac_objext
17740 if { (ac_try="$ac_compile"
17741 case "(($ac_try" in
17742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743 *) ac_try_echo=$ac_try;;
17744 esac
17745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746 (eval "$ac_compile") 2>conftest.er1
17747 ac_status=$?
17748 grep -v '^ *+' conftest.er1 >conftest.err
17749 rm -f conftest.er1
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } && {
17753 test -z "$ac_c_werror_flag" ||
17754 test ! -s conftest.err
17755 } && test -s conftest.$ac_objext; then
17756 ac_cv_type_int=yes
17757 else
17758 echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17761 ac_cv_type_int=no
17764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17766 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17767 echo "${ECHO_T}$ac_cv_type_int" >&6; }
17769 # The cast to long int works around a bug in the HP C Compiler
17770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17772 # This bug is HP SR number 8606223364.
17773 { echo "$as_me:$LINENO: checking size of int" >&5
17774 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
17775 if test "${ac_cv_sizeof_int+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 else
17778 if test "$cross_compiling" = yes; then
17779 # Depending upon the size, compute the lo and hi bounds.
17780 cat >conftest.$ac_ext <<_ACEOF
17781 /* confdefs.h. */
17782 _ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 $ac_includes_default
17787 typedef int ac__type_sizeof_;
17789 main ()
17791 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17792 test_array [0] = 0
17795 return 0;
17797 _ACEOF
17798 rm -f conftest.$ac_objext
17799 if { (ac_try="$ac_compile"
17800 case "(($ac_try" in
17801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802 *) ac_try_echo=$ac_try;;
17803 esac
17804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805 (eval "$ac_compile") 2>conftest.er1
17806 ac_status=$?
17807 grep -v '^ *+' conftest.er1 >conftest.err
17808 rm -f conftest.er1
17809 cat conftest.err >&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } && {
17812 test -z "$ac_c_werror_flag" ||
17813 test ! -s conftest.err
17814 } && test -s conftest.$ac_objext; then
17815 ac_lo=0 ac_mid=0
17816 while :; do
17817 cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h. */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823 $ac_includes_default
17824 typedef int ac__type_sizeof_;
17826 main ()
17828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17829 test_array [0] = 0
17832 return 0;
17834 _ACEOF
17835 rm -f conftest.$ac_objext
17836 if { (ac_try="$ac_compile"
17837 case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17840 esac
17841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842 (eval "$ac_compile") 2>conftest.er1
17843 ac_status=$?
17844 grep -v '^ *+' conftest.er1 >conftest.err
17845 rm -f conftest.er1
17846 cat conftest.err >&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } && {
17849 test -z "$ac_c_werror_flag" ||
17850 test ! -s conftest.err
17851 } && test -s conftest.$ac_objext; then
17852 ac_hi=$ac_mid; break
17853 else
17854 echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17857 ac_lo=`expr $ac_mid + 1`
17858 if test $ac_lo -le $ac_mid; then
17859 ac_lo= ac_hi=
17860 break
17862 ac_mid=`expr 2 '*' $ac_mid + 1`
17865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17866 done
17867 else
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 cat >conftest.$ac_ext <<_ACEOF
17872 /* confdefs.h. */
17873 _ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17877 $ac_includes_default
17878 typedef int ac__type_sizeof_;
17880 main ()
17882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
17883 test_array [0] = 0
17886 return 0;
17888 _ACEOF
17889 rm -f conftest.$ac_objext
17890 if { (ac_try="$ac_compile"
17891 case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17894 esac
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_compile") 2>conftest.er1
17897 ac_status=$?
17898 grep -v '^ *+' conftest.er1 >conftest.err
17899 rm -f conftest.er1
17900 cat conftest.err >&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } && {
17903 test -z "$ac_c_werror_flag" ||
17904 test ! -s conftest.err
17905 } && test -s conftest.$ac_objext; then
17906 ac_hi=-1 ac_mid=-1
17907 while :; do
17908 cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h. */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17914 $ac_includes_default
17915 typedef int ac__type_sizeof_;
17917 main ()
17919 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
17920 test_array [0] = 0
17923 return 0;
17925 _ACEOF
17926 rm -f conftest.$ac_objext
17927 if { (ac_try="$ac_compile"
17928 case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931 esac
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_compile") 2>conftest.er1
17934 ac_status=$?
17935 grep -v '^ *+' conftest.er1 >conftest.err
17936 rm -f conftest.er1
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } && {
17940 test -z "$ac_c_werror_flag" ||
17941 test ! -s conftest.err
17942 } && test -s conftest.$ac_objext; then
17943 ac_lo=$ac_mid; break
17944 else
17945 echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17948 ac_hi=`expr '(' $ac_mid ')' - 1`
17949 if test $ac_mid -le $ac_hi; then
17950 ac_lo= ac_hi=
17951 break
17953 ac_mid=`expr 2 '*' $ac_mid`
17956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17957 done
17958 else
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17962 ac_lo= ac_hi=
17965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969 # Binary search between lo and hi bounds.
17970 while test "x$ac_lo" != "x$ac_hi"; do
17971 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17972 cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h. */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17978 $ac_includes_default
17979 typedef int ac__type_sizeof_;
17981 main ()
17983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17984 test_array [0] = 0
17987 return 0;
17989 _ACEOF
17990 rm -f conftest.$ac_objext
17991 if { (ac_try="$ac_compile"
17992 case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17995 esac
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_compile") 2>conftest.er1
17998 ac_status=$?
17999 grep -v '^ *+' conftest.er1 >conftest.err
18000 rm -f conftest.er1
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } && {
18004 test -z "$ac_c_werror_flag" ||
18005 test ! -s conftest.err
18006 } && test -s conftest.$ac_objext; then
18007 ac_hi=$ac_mid
18008 else
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 ac_lo=`expr '(' $ac_mid ')' + 1`
18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18016 done
18017 case $ac_lo in
18018 ?*) ac_cv_sizeof_int=$ac_lo;;
18019 '') if test "$ac_cv_type_int" = yes; then
18020 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18021 See \`config.log' for more details." >&5
18022 echo "$as_me: error: cannot compute sizeof (int)
18023 See \`config.log' for more details." >&2;}
18024 { (exit 77); exit 77; }; }
18025 else
18026 ac_cv_sizeof_int=0
18027 fi ;;
18028 esac
18029 else
18030 cat >conftest.$ac_ext <<_ACEOF
18031 /* confdefs.h. */
18032 _ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18036 $ac_includes_default
18037 typedef int ac__type_sizeof_;
18038 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18039 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18040 #include <stdio.h>
18041 #include <stdlib.h>
18043 main ()
18046 FILE *f = fopen ("conftest.val", "w");
18047 if (! f)
18048 return 1;
18049 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18051 long int i = longval ();
18052 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18053 return 1;
18054 fprintf (f, "%ld\n", i);
18056 else
18058 unsigned long int i = ulongval ();
18059 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18060 return 1;
18061 fprintf (f, "%lu\n", i);
18063 return ferror (f) || fclose (f) != 0;
18066 return 0;
18068 _ACEOF
18069 rm -f conftest$ac_exeext
18070 if { (ac_try="$ac_link"
18071 case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_link") 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18080 { (case "(($ac_try" in
18081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082 *) ac_try_echo=$ac_try;;
18083 esac
18084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18085 (eval "$ac_try") 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
18089 ac_cv_sizeof_int=`cat conftest.val`
18090 else
18091 echo "$as_me: program exited with status $ac_status" >&5
18092 echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18095 ( exit $ac_status )
18096 if test "$ac_cv_type_int" = yes; then
18097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18098 See \`config.log' for more details." >&5
18099 echo "$as_me: error: cannot compute sizeof (int)
18100 See \`config.log' for more details." >&2;}
18101 { (exit 77); exit 77; }; }
18102 else
18103 ac_cv_sizeof_int=0
18106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18108 rm -f conftest.val
18110 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18111 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
18115 cat >>confdefs.h <<_ACEOF
18116 #define SIZEOF_INT $ac_cv_sizeof_int
18117 _ACEOF
18121 # do the package library checks now
18124 if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
18125 pbxlibdir=""
18126 # if --with-ALSA=DIR has been specified, use it.
18127 if test "x${ALSA_DIR}" != "x"; then
18128 if test -d ${ALSA_DIR}/lib; then
18129 pbxlibdir="-L${ALSA_DIR}/lib"
18130 else
18131 pbxlibdir="-L${ALSA_DIR}"
18134 pbxfuncname="snd_spcm_init"
18135 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18136 AST_ALSA_FOUND=yes
18137 else
18138 as_ac_Lib=`echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
18139 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lasound" >&5
18140 echo $ECHO_N "checking for ${pbxfuncname} in -lasound... $ECHO_C" >&6; }
18141 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18142 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 else
18144 ac_check_lib_save_LIBS=$LIBS
18145 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
18146 cat >conftest.$ac_ext <<_ACEOF
18147 /* confdefs.h. */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18153 /* Override any GCC internal prototype to avoid an error.
18154 Use char because int might match the return type of a GCC
18155 builtin and then its argument prototype would still apply. */
18156 #ifdef __cplusplus
18157 extern "C"
18158 #endif
18159 char ${pbxfuncname} ();
18161 main ()
18163 return ${pbxfuncname} ();
18165 return 0;
18167 _ACEOF
18168 rm -f conftest.$ac_objext conftest$ac_exeext
18169 if { (ac_try="$ac_link"
18170 case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18173 esac
18174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_link") 2>conftest.er1
18176 ac_status=$?
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } && {
18182 test -z "$ac_c_werror_flag" ||
18183 test ! -s conftest.err
18184 } && test -s conftest$ac_exeext &&
18185 $as_test_x conftest$ac_exeext; then
18186 eval "$as_ac_Lib=yes"
18187 else
18188 echo "$as_me: failed program was:" >&5
18189 sed 's/^/| /' conftest.$ac_ext >&5
18191 eval "$as_ac_Lib=no"
18194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18195 conftest$ac_exeext conftest.$ac_ext
18196 LIBS=$ac_check_lib_save_LIBS
18198 ac_res=`eval echo '${'$as_ac_Lib'}'`
18199 { echo "$as_me:$LINENO: result: $ac_res" >&5
18200 echo "${ECHO_T}$ac_res" >&6; }
18201 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18202 AST_ALSA_FOUND=yes
18203 else
18204 AST_ALSA_FOUND=no
18209 # now check for the header.
18210 if test "${AST_ALSA_FOUND}" = "yes"; then
18211 ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
18212 # if --with-ALSA=DIR has been specified, use it.
18213 if test "x${ALSA_DIR}" != "x"; then
18214 ALSA_INCLUDE="-I${ALSA_DIR}/include"
18216 ALSA_INCLUDE="${ALSA_INCLUDE} "
18217 if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
18218 ALSA_HEADER_FOUND="1"
18219 else # check for the header
18220 saved_cppflags="${CPPFLAGS}"
18221 CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE} "
18222 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18223 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18224 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18225 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18228 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18229 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18230 else
18231 # Is the header compilable?
18232 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
18233 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
18234 cat >conftest.$ac_ext <<_ACEOF
18235 /* confdefs.h. */
18236 _ACEOF
18237 cat confdefs.h >>conftest.$ac_ext
18238 cat >>conftest.$ac_ext <<_ACEOF
18239 /* end confdefs.h. */
18240 $ac_includes_default
18241 #include <alsa/asoundlib.h>
18242 _ACEOF
18243 rm -f conftest.$ac_objext
18244 if { (ac_try="$ac_compile"
18245 case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18248 esac
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_compile") 2>conftest.er1
18251 ac_status=$?
18252 grep -v '^ *+' conftest.er1 >conftest.err
18253 rm -f conftest.er1
18254 cat conftest.err >&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } && {
18257 test -z "$ac_c_werror_flag" ||
18258 test ! -s conftest.err
18259 } && test -s conftest.$ac_objext; then
18260 ac_header_compiler=yes
18261 else
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 ac_header_compiler=no
18268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18270 echo "${ECHO_T}$ac_header_compiler" >&6; }
18272 # Is the header present?
18273 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
18274 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
18275 cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h. */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 #include <alsa/asoundlib.h>
18282 _ACEOF
18283 if { (ac_try="$ac_cpp conftest.$ac_ext"
18284 case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18287 esac
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18290 ac_status=$?
18291 grep -v '^ *+' conftest.er1 >conftest.err
18292 rm -f conftest.er1
18293 cat conftest.err >&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } >/dev/null && {
18296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18297 test ! -s conftest.err
18298 }; then
18299 ac_header_preproc=yes
18300 else
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18304 ac_header_preproc=no
18307 rm -f conftest.err conftest.$ac_ext
18308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18309 echo "${ECHO_T}$ac_header_preproc" >&6; }
18311 # So? What about this header?
18312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18313 yes:no: )
18314 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18315 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18316 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
18317 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18318 ac_header_preproc=yes
18320 no:yes:* )
18321 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
18322 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
18323 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18324 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18325 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
18326 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18327 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18328 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18329 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18330 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18331 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18332 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18333 ( cat <<\_ASBOX
18334 ## ------------------------------- ##
18335 ## Report this to www.asterisk.org ##
18336 ## ------------------------------- ##
18337 _ASBOX
18338 ) | sed "s/^/$as_me: WARNING: /" >&2
18340 esac
18341 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18342 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18343 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18345 else
18346 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
18348 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18349 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18352 if test $ac_cv_header_alsa_asoundlib_h = yes; then
18353 ALSA_HEADER_FOUND=1
18354 else
18355 ALSA_HEADER_FOUND=0
18359 CPPFLAGS="${saved_cppflags}"
18361 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
18362 ALSA_LIB=""
18363 ALSA_INCLUDE=""
18364 else
18365 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18366 ALSA_LIB=""
18368 PBX_ALSA=1
18369 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18371 cat >>confdefs.h <<_ACEOF
18372 #define HAVE_ALSA 1
18373 _ACEOF
18376 cat >>confdefs.h <<_ACEOF
18377 #define HAVE_ALSA_VERSION
18378 _ACEOF
18386 if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
18387 pbxlibdir=""
18388 # if --with-CURSES=DIR has been specified, use it.
18389 if test "x${CURSES_DIR}" != "x"; then
18390 if test -d ${CURSES_DIR}/lib; then
18391 pbxlibdir="-L${CURSES_DIR}/lib"
18392 else
18393 pbxlibdir="-L${CURSES_DIR}"
18396 pbxfuncname="initscr"
18397 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18398 AST_CURSES_FOUND=yes
18399 else
18400 as_ac_Lib=`echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
18401 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcurses" >&5
18402 echo $ECHO_N "checking for ${pbxfuncname} in -lcurses... $ECHO_C" >&6; }
18403 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18404 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 else
18406 ac_check_lib_save_LIBS=$LIBS
18407 LIBS="-lcurses ${pbxlibdir} $LIBS"
18408 cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h. */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18415 /* Override any GCC internal prototype to avoid an error.
18416 Use char because int might match the return type of a GCC
18417 builtin and then its argument prototype would still apply. */
18418 #ifdef __cplusplus
18419 extern "C"
18420 #endif
18421 char ${pbxfuncname} ();
18423 main ()
18425 return ${pbxfuncname} ();
18427 return 0;
18429 _ACEOF
18430 rm -f conftest.$ac_objext conftest$ac_exeext
18431 if { (ac_try="$ac_link"
18432 case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18435 esac
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_link") 2>conftest.er1
18438 ac_status=$?
18439 grep -v '^ *+' conftest.er1 >conftest.err
18440 rm -f conftest.er1
18441 cat conftest.err >&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } && {
18444 test -z "$ac_c_werror_flag" ||
18445 test ! -s conftest.err
18446 } && test -s conftest$ac_exeext &&
18447 $as_test_x conftest$ac_exeext; then
18448 eval "$as_ac_Lib=yes"
18449 else
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18453 eval "$as_ac_Lib=no"
18456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18457 conftest$ac_exeext conftest.$ac_ext
18458 LIBS=$ac_check_lib_save_LIBS
18460 ac_res=`eval echo '${'$as_ac_Lib'}'`
18461 { echo "$as_me:$LINENO: result: $ac_res" >&5
18462 echo "${ECHO_T}$ac_res" >&6; }
18463 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18464 AST_CURSES_FOUND=yes
18465 else
18466 AST_CURSES_FOUND=no
18471 # now check for the header.
18472 if test "${AST_CURSES_FOUND}" = "yes"; then
18473 CURSES_LIB="${pbxlibdir} -lcurses "
18474 # if --with-CURSES=DIR has been specified, use it.
18475 if test "x${CURSES_DIR}" != "x"; then
18476 CURSES_INCLUDE="-I${CURSES_DIR}/include"
18478 CURSES_INCLUDE="${CURSES_INCLUDE} "
18479 if test "xcurses.h" = "x" ; then # no header, assume found
18480 CURSES_HEADER_FOUND="1"
18481 else # check for the header
18482 saved_cppflags="${CPPFLAGS}"
18483 CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE} "
18484 if test "${ac_cv_header_curses_h+set}" = set; then
18485 { echo "$as_me:$LINENO: checking for curses.h" >&5
18486 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18487 if test "${ac_cv_header_curses_h+set}" = set; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
18490 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18491 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18492 else
18493 # Is the header compilable?
18494 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18495 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18496 cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h. */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h. */
18502 $ac_includes_default
18503 #include <curses.h>
18504 _ACEOF
18505 rm -f conftest.$ac_objext
18506 if { (ac_try="$ac_compile"
18507 case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_compile") 2>conftest.er1
18513 ac_status=$?
18514 grep -v '^ *+' conftest.er1 >conftest.err
18515 rm -f conftest.er1
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } && {
18519 test -z "$ac_c_werror_flag" ||
18520 test ! -s conftest.err
18521 } && test -s conftest.$ac_objext; then
18522 ac_header_compiler=yes
18523 else
18524 echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18527 ac_header_compiler=no
18530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18532 echo "${ECHO_T}$ac_header_compiler" >&6; }
18534 # Is the header present?
18535 { echo "$as_me:$LINENO: checking curses.h presence" >&5
18536 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
18537 cat >conftest.$ac_ext <<_ACEOF
18538 /* confdefs.h. */
18539 _ACEOF
18540 cat confdefs.h >>conftest.$ac_ext
18541 cat >>conftest.$ac_ext <<_ACEOF
18542 /* end confdefs.h. */
18543 #include <curses.h>
18544 _ACEOF
18545 if { (ac_try="$ac_cpp conftest.$ac_ext"
18546 case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549 esac
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18552 ac_status=$?
18553 grep -v '^ *+' conftest.er1 >conftest.err
18554 rm -f conftest.er1
18555 cat conftest.err >&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } >/dev/null && {
18558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18559 test ! -s conftest.err
18560 }; then
18561 ac_header_preproc=yes
18562 else
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18566 ac_header_preproc=no
18569 rm -f conftest.err conftest.$ac_ext
18570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18571 echo "${ECHO_T}$ac_header_preproc" >&6; }
18573 # So? What about this header?
18574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18575 yes:no: )
18576 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18577 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18578 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
18579 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
18580 ac_header_preproc=yes
18582 no:yes:* )
18583 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
18584 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
18585 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
18586 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
18587 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
18588 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
18589 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
18590 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18591 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
18592 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
18593 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
18594 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
18595 ( cat <<\_ASBOX
18596 ## ------------------------------- ##
18597 ## Report this to www.asterisk.org ##
18598 ## ------------------------------- ##
18599 _ASBOX
18600 ) | sed "s/^/$as_me: WARNING: /" >&2
18602 esac
18603 { echo "$as_me:$LINENO: checking for curses.h" >&5
18604 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18605 if test "${ac_cv_header_curses_h+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18608 ac_cv_header_curses_h=$ac_header_preproc
18610 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18611 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18614 if test $ac_cv_header_curses_h = yes; then
18615 CURSES_HEADER_FOUND=1
18616 else
18617 CURSES_HEADER_FOUND=0
18621 CPPFLAGS="${saved_cppflags}"
18623 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
18624 CURSES_LIB=""
18625 CURSES_INCLUDE=""
18626 else
18627 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18628 CURSES_LIB=""
18630 PBX_CURSES=1
18631 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18633 cat >>confdefs.h <<_ACEOF
18634 #define HAVE_CURSES 1
18635 _ACEOF
18638 cat >>confdefs.h <<_ACEOF
18639 #define HAVE_CURSES_VERSION
18640 _ACEOF
18647 if test "x${host_os}" = "xlinux-gnu" ; then
18649 if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
18650 pbxlibdir=""
18651 # if --with-CAP=DIR has been specified, use it.
18652 if test "x${CAP_DIR}" != "x"; then
18653 if test -d ${CAP_DIR}/lib; then
18654 pbxlibdir="-L${CAP_DIR}/lib"
18655 else
18656 pbxlibdir="-L${CAP_DIR}"
18659 pbxfuncname="cap_from_text"
18660 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18661 AST_CAP_FOUND=yes
18662 else
18663 as_ac_Lib=`echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
18664 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcap" >&5
18665 echo $ECHO_N "checking for ${pbxfuncname} in -lcap... $ECHO_C" >&6; }
18666 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18668 else
18669 ac_check_lib_save_LIBS=$LIBS
18670 LIBS="-lcap ${pbxlibdir} $LIBS"
18671 cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h. */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18678 /* Override any GCC internal prototype to avoid an error.
18679 Use char because int might match the return type of a GCC
18680 builtin and then its argument prototype would still apply. */
18681 #ifdef __cplusplus
18682 extern "C"
18683 #endif
18684 char ${pbxfuncname} ();
18686 main ()
18688 return ${pbxfuncname} ();
18690 return 0;
18692 _ACEOF
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (ac_try="$ac_link"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_link") 2>conftest.er1
18701 ac_status=$?
18702 grep -v '^ *+' conftest.er1 >conftest.err
18703 rm -f conftest.er1
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } && {
18707 test -z "$ac_c_werror_flag" ||
18708 test ! -s conftest.err
18709 } && test -s conftest$ac_exeext &&
18710 $as_test_x conftest$ac_exeext; then
18711 eval "$as_ac_Lib=yes"
18712 else
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 eval "$as_ac_Lib=no"
18719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18720 conftest$ac_exeext conftest.$ac_ext
18721 LIBS=$ac_check_lib_save_LIBS
18723 ac_res=`eval echo '${'$as_ac_Lib'}'`
18724 { echo "$as_me:$LINENO: result: $ac_res" >&5
18725 echo "${ECHO_T}$ac_res" >&6; }
18726 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18727 AST_CAP_FOUND=yes
18728 else
18729 AST_CAP_FOUND=no
18734 # now check for the header.
18735 if test "${AST_CAP_FOUND}" = "yes"; then
18736 CAP_LIB="${pbxlibdir} -lcap "
18737 # if --with-CAP=DIR has been specified, use it.
18738 if test "x${CAP_DIR}" != "x"; then
18739 CAP_INCLUDE="-I${CAP_DIR}/include"
18741 CAP_INCLUDE="${CAP_INCLUDE} "
18742 if test "xsys/capability.h" = "x" ; then # no header, assume found
18743 CAP_HEADER_FOUND="1"
18744 else # check for the header
18745 saved_cppflags="${CPPFLAGS}"
18746 CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE} "
18747 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18748 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18749 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18750 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18753 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18754 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18755 else
18756 # Is the header compilable?
18757 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
18758 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
18759 cat >conftest.$ac_ext <<_ACEOF
18760 /* confdefs.h. */
18761 _ACEOF
18762 cat confdefs.h >>conftest.$ac_ext
18763 cat >>conftest.$ac_ext <<_ACEOF
18764 /* end confdefs.h. */
18765 $ac_includes_default
18766 #include <sys/capability.h>
18767 _ACEOF
18768 rm -f conftest.$ac_objext
18769 if { (ac_try="$ac_compile"
18770 case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18773 esac
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_compile") 2>conftest.er1
18776 ac_status=$?
18777 grep -v '^ *+' conftest.er1 >conftest.err
18778 rm -f conftest.er1
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } && {
18782 test -z "$ac_c_werror_flag" ||
18783 test ! -s conftest.err
18784 } && test -s conftest.$ac_objext; then
18785 ac_header_compiler=yes
18786 else
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18790 ac_header_compiler=no
18793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18795 echo "${ECHO_T}$ac_header_compiler" >&6; }
18797 # Is the header present?
18798 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
18799 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
18800 cat >conftest.$ac_ext <<_ACEOF
18801 /* confdefs.h. */
18802 _ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h. */
18806 #include <sys/capability.h>
18807 _ACEOF
18808 if { (ac_try="$ac_cpp conftest.$ac_ext"
18809 case "(($ac_try" in
18810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811 *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18815 ac_status=$?
18816 grep -v '^ *+' conftest.er1 >conftest.err
18817 rm -f conftest.er1
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } >/dev/null && {
18821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18822 test ! -s conftest.err
18823 }; then
18824 ac_header_preproc=yes
18825 else
18826 echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18829 ac_header_preproc=no
18832 rm -f conftest.err conftest.$ac_ext
18833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18834 echo "${ECHO_T}$ac_header_preproc" >&6; }
18836 # So? What about this header?
18837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18838 yes:no: )
18839 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
18840 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18841 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
18842 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
18843 ac_header_preproc=yes
18845 no:yes:* )
18846 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
18847 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
18848 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
18849 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
18850 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
18851 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
18852 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
18853 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
18854 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
18855 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
18856 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
18857 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
18858 ( cat <<\_ASBOX
18859 ## ------------------------------- ##
18860 ## Report this to www.asterisk.org ##
18861 ## ------------------------------- ##
18862 _ASBOX
18863 ) | sed "s/^/$as_me: WARNING: /" >&2
18865 esac
18866 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18867 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18868 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
18870 else
18871 ac_cv_header_sys_capability_h=$ac_header_preproc
18873 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18874 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18877 if test $ac_cv_header_sys_capability_h = yes; then
18878 CAP_HEADER_FOUND=1
18879 else
18880 CAP_HEADER_FOUND=0
18884 CPPFLAGS="${saved_cppflags}"
18886 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
18887 CAP_LIB=""
18888 CAP_INCLUDE=""
18889 else
18890 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18891 CAP_LIB=""
18893 PBX_CAP=1
18894 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18896 cat >>confdefs.h <<_ACEOF
18897 #define HAVE_CAP 1
18898 _ACEOF
18901 cat >>confdefs.h <<_ACEOF
18902 #define HAVE_CAP_VERSION
18903 _ACEOF
18912 if test "x${PBX_DAHDI}" != "x1"; then
18913 { echo "$as_me:$LINENO: checking for DAHDI_CODE in dahdi/user.h" >&5
18914 echo $ECHO_N "checking for DAHDI_CODE in dahdi/user.h... $ECHO_C" >&6; }
18915 saved_cppflags="${CPPFLAGS}"
18916 if test "x${DAHDI_DIR}" != "x"; then
18917 DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
18919 CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
18921 cat >conftest.$ac_ext <<_ACEOF
18922 /* confdefs.h. */
18923 _ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18927 #include <dahdi/user.h>
18929 main ()
18931 #if defined(DAHDI_CODE)
18932 int foo = 0;
18933 #else
18934 int foo = bar;
18935 #endif
18939 return 0;
18941 _ACEOF
18942 rm -f conftest.$ac_objext
18943 if { (ac_try="$ac_compile"
18944 case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18947 esac
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_compile") 2>conftest.er1
18950 ac_status=$?
18951 grep -v '^ *+' conftest.er1 >conftest.err
18952 rm -f conftest.er1
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } && {
18956 test -z "$ac_c_werror_flag" ||
18957 test ! -s conftest.err
18958 } && test -s conftest.$ac_objext; then
18959 { echo "$as_me:$LINENO: result: yes" >&5
18960 echo "${ECHO_T}yes" >&6; }
18961 PBX_DAHDI=1
18963 cat >>confdefs.h <<\_ACEOF
18964 #define HAVE_DAHDI 1
18965 _ACEOF
18968 cat >>confdefs.h <<\_ACEOF
18969 #define HAVE_DAHDI_VERSION
18970 _ACEOF
18973 else
18974 echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18977 { echo "$as_me:$LINENO: result: no" >&5
18978 echo "${ECHO_T}no" >&6; }
18982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18983 CPPFLAGS="${saved_cppflags}"
18988 # BSD might not have exp2, and/or log2
18990 if test "x${PBX_EXP2L}" != "x1" -a "${USE_EXP2L}" != "no"; then
18991 pbxlibdir=""
18992 # if --with-EXP2L=DIR has been specified, use it.
18993 if test "x${EXP2L_DIR}" != "x"; then
18994 if test -d ${EXP2L_DIR}/lib; then
18995 pbxlibdir="-L${EXP2L_DIR}/lib"
18996 else
18997 pbxlibdir="-L${EXP2L_DIR}"
19000 pbxfuncname="exp2l"
19001 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19002 AST_EXP2L_FOUND=yes
19003 else
19004 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19005 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19006 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19007 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19009 else
19010 ac_check_lib_save_LIBS=$LIBS
19011 LIBS="-lm ${pbxlibdir} $LIBS"
19012 cat >conftest.$ac_ext <<_ACEOF
19013 /* confdefs.h. */
19014 _ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h. */
19019 /* Override any GCC internal prototype to avoid an error.
19020 Use char because int might match the return type of a GCC
19021 builtin and then its argument prototype would still apply. */
19022 #ifdef __cplusplus
19023 extern "C"
19024 #endif
19025 char ${pbxfuncname} ();
19027 main ()
19029 return ${pbxfuncname} ();
19031 return 0;
19033 _ACEOF
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (ac_try="$ac_link"
19036 case "(($ac_try" in
19037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038 *) ac_try_echo=$ac_try;;
19039 esac
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041 (eval "$ac_link") 2>conftest.er1
19042 ac_status=$?
19043 grep -v '^ *+' conftest.er1 >conftest.err
19044 rm -f conftest.er1
19045 cat conftest.err >&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } && {
19048 test -z "$ac_c_werror_flag" ||
19049 test ! -s conftest.err
19050 } && test -s conftest$ac_exeext &&
19051 $as_test_x conftest$ac_exeext; then
19052 eval "$as_ac_Lib=yes"
19053 else
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19057 eval "$as_ac_Lib=no"
19060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19061 conftest$ac_exeext conftest.$ac_ext
19062 LIBS=$ac_check_lib_save_LIBS
19064 ac_res=`eval echo '${'$as_ac_Lib'}'`
19065 { echo "$as_me:$LINENO: result: $ac_res" >&5
19066 echo "${ECHO_T}$ac_res" >&6; }
19067 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19068 AST_EXP2L_FOUND=yes
19069 else
19070 AST_EXP2L_FOUND=no
19075 # now check for the header.
19076 if test "${AST_EXP2L_FOUND}" = "yes"; then
19077 EXP2L_LIB="${pbxlibdir} -lm "
19078 # if --with-EXP2L=DIR has been specified, use it.
19079 if test "x${EXP2L_DIR}" != "x"; then
19080 EXP2L_INCLUDE="-I${EXP2L_DIR}/include"
19082 EXP2L_INCLUDE="${EXP2L_INCLUDE} "
19083 if test "x" = "x" ; then # no header, assume found
19084 EXP2L_HEADER_FOUND="1"
19085 else # check for the header
19086 saved_cppflags="${CPPFLAGS}"
19087 CPPFLAGS="${CPPFLAGS} ${EXP2L_INCLUDE} "
19088 if test "${ac_cv_header_+set}" = set; then
19089 { echo "$as_me:$LINENO: checking for " >&5
19090 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19091 if test "${ac_cv_header_+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19095 echo "${ECHO_T}$ac_cv_header_" >&6; }
19096 else
19097 # Is the header compilable?
19098 { echo "$as_me:$LINENO: checking usability" >&5
19099 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19100 cat >conftest.$ac_ext <<_ACEOF
19101 /* confdefs.h. */
19102 _ACEOF
19103 cat confdefs.h >>conftest.$ac_ext
19104 cat >>conftest.$ac_ext <<_ACEOF
19105 /* end confdefs.h. */
19106 $ac_includes_default
19107 #include <>
19108 _ACEOF
19109 rm -f conftest.$ac_objext
19110 if { (ac_try="$ac_compile"
19111 case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19114 esac
19115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116 (eval "$ac_compile") 2>conftest.er1
19117 ac_status=$?
19118 grep -v '^ *+' conftest.er1 >conftest.err
19119 rm -f conftest.er1
19120 cat conftest.err >&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } && {
19123 test -z "$ac_c_werror_flag" ||
19124 test ! -s conftest.err
19125 } && test -s conftest.$ac_objext; then
19126 ac_header_compiler=yes
19127 else
19128 echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19131 ac_header_compiler=no
19134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19136 echo "${ECHO_T}$ac_header_compiler" >&6; }
19138 # Is the header present?
19139 { echo "$as_me:$LINENO: checking presence" >&5
19140 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19141 cat >conftest.$ac_ext <<_ACEOF
19142 /* confdefs.h. */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19147 #include <>
19148 _ACEOF
19149 if { (ac_try="$ac_cpp conftest.$ac_ext"
19150 case "(($ac_try" in
19151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152 *) ac_try_echo=$ac_try;;
19153 esac
19154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19156 ac_status=$?
19157 grep -v '^ *+' conftest.er1 >conftest.err
19158 rm -f conftest.er1
19159 cat conftest.err >&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } >/dev/null && {
19162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19163 test ! -s conftest.err
19164 }; then
19165 ac_header_preproc=yes
19166 else
19167 echo "$as_me: failed program was:" >&5
19168 sed 's/^/| /' conftest.$ac_ext >&5
19170 ac_header_preproc=no
19173 rm -f conftest.err conftest.$ac_ext
19174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19175 echo "${ECHO_T}$ac_header_preproc" >&6; }
19177 # So? What about this header?
19178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19179 yes:no: )
19180 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19181 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19182 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19183 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19184 ac_header_preproc=yes
19186 no:yes:* )
19187 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19188 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19189 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19190 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19191 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19192 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19193 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19194 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19195 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19196 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19197 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19198 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19199 ( cat <<\_ASBOX
19200 ## ------------------------------- ##
19201 ## Report this to www.asterisk.org ##
19202 ## ------------------------------- ##
19203 _ASBOX
19204 ) | sed "s/^/$as_me: WARNING: /" >&2
19206 esac
19207 { echo "$as_me:$LINENO: checking for " >&5
19208 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19209 if test "${ac_cv_header_+set}" = set; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 else
19212 ac_cv_header_=$ac_header_preproc
19214 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19215 echo "${ECHO_T}$ac_cv_header_" >&6; }
19218 if test $ac_cv_header_ = yes; then
19219 EXP2L_HEADER_FOUND=1
19220 else
19221 EXP2L_HEADER_FOUND=0
19225 CPPFLAGS="${saved_cppflags}"
19227 if test "x${EXP2L_HEADER_FOUND}" = "x0" ; then
19228 EXP2L_LIB=""
19229 EXP2L_INCLUDE=""
19230 else
19231 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19232 EXP2L_LIB=""
19234 PBX_EXP2L=1
19235 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19237 cat >>confdefs.h <<_ACEOF
19238 #define HAVE_EXP2L 1
19239 _ACEOF
19242 cat >>confdefs.h <<_ACEOF
19243 #define HAVE_EXP2L_VERSION
19244 _ACEOF
19251 if test "x${PBX_LOG2L}" != "x1" -a "${USE_LOG2L}" != "no"; then
19252 pbxlibdir=""
19253 # if --with-LOG2L=DIR has been specified, use it.
19254 if test "x${LOG2L_DIR}" != "x"; then
19255 if test -d ${LOG2L_DIR}/lib; then
19256 pbxlibdir="-L${LOG2L_DIR}/lib"
19257 else
19258 pbxlibdir="-L${LOG2L_DIR}"
19261 pbxfuncname="log2l"
19262 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19263 AST_LOG2L_FOUND=yes
19264 else
19265 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19266 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19267 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19268 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19270 else
19271 ac_check_lib_save_LIBS=$LIBS
19272 LIBS="-lm ${pbxlibdir} $LIBS"
19273 cat >conftest.$ac_ext <<_ACEOF
19274 /* confdefs.h. */
19275 _ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19280 /* Override any GCC internal prototype to avoid an error.
19281 Use char because int might match the return type of a GCC
19282 builtin and then its argument prototype would still apply. */
19283 #ifdef __cplusplus
19284 extern "C"
19285 #endif
19286 char ${pbxfuncname} ();
19288 main ()
19290 return ${pbxfuncname} ();
19292 return 0;
19294 _ACEOF
19295 rm -f conftest.$ac_objext conftest$ac_exeext
19296 if { (ac_try="$ac_link"
19297 case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19300 esac
19301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_link") 2>conftest.er1
19303 ac_status=$?
19304 grep -v '^ *+' conftest.er1 >conftest.err
19305 rm -f conftest.er1
19306 cat conftest.err >&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } && {
19309 test -z "$ac_c_werror_flag" ||
19310 test ! -s conftest.err
19311 } && test -s conftest$ac_exeext &&
19312 $as_test_x conftest$ac_exeext; then
19313 eval "$as_ac_Lib=yes"
19314 else
19315 echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19318 eval "$as_ac_Lib=no"
19321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19322 conftest$ac_exeext conftest.$ac_ext
19323 LIBS=$ac_check_lib_save_LIBS
19325 ac_res=`eval echo '${'$as_ac_Lib'}'`
19326 { echo "$as_me:$LINENO: result: $ac_res" >&5
19327 echo "${ECHO_T}$ac_res" >&6; }
19328 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19329 AST_LOG2L_FOUND=yes
19330 else
19331 AST_LOG2L_FOUND=no
19336 # now check for the header.
19337 if test "${AST_LOG2L_FOUND}" = "yes"; then
19338 LOG2L_LIB="${pbxlibdir} -lm "
19339 # if --with-LOG2L=DIR has been specified, use it.
19340 if test "x${LOG2L_DIR}" != "x"; then
19341 LOG2L_INCLUDE="-I${LOG2L_DIR}/include"
19343 LOG2L_INCLUDE="${LOG2L_INCLUDE} "
19344 if test "x" = "x" ; then # no header, assume found
19345 LOG2L_HEADER_FOUND="1"
19346 else # check for the header
19347 saved_cppflags="${CPPFLAGS}"
19348 CPPFLAGS="${CPPFLAGS} ${LOG2L_INCLUDE} "
19349 if test "${ac_cv_header_+set}" = set; then
19350 { echo "$as_me:$LINENO: checking for " >&5
19351 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19352 if test "${ac_cv_header_+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19355 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19356 echo "${ECHO_T}$ac_cv_header_" >&6; }
19357 else
19358 # Is the header compilable?
19359 { echo "$as_me:$LINENO: checking usability" >&5
19360 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19361 cat >conftest.$ac_ext <<_ACEOF
19362 /* confdefs.h. */
19363 _ACEOF
19364 cat confdefs.h >>conftest.$ac_ext
19365 cat >>conftest.$ac_ext <<_ACEOF
19366 /* end confdefs.h. */
19367 $ac_includes_default
19368 #include <>
19369 _ACEOF
19370 rm -f conftest.$ac_objext
19371 if { (ac_try="$ac_compile"
19372 case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19375 esac
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_compile") 2>conftest.er1
19378 ac_status=$?
19379 grep -v '^ *+' conftest.er1 >conftest.err
19380 rm -f conftest.er1
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } && {
19384 test -z "$ac_c_werror_flag" ||
19385 test ! -s conftest.err
19386 } && test -s conftest.$ac_objext; then
19387 ac_header_compiler=yes
19388 else
19389 echo "$as_me: failed program was:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19392 ac_header_compiler=no
19395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19397 echo "${ECHO_T}$ac_header_compiler" >&6; }
19399 # Is the header present?
19400 { echo "$as_me:$LINENO: checking presence" >&5
19401 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19402 cat >conftest.$ac_ext <<_ACEOF
19403 /* confdefs.h. */
19404 _ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19408 #include <>
19409 _ACEOF
19410 if { (ac_try="$ac_cpp conftest.$ac_ext"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19417 ac_status=$?
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } >/dev/null && {
19423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19424 test ! -s conftest.err
19425 }; then
19426 ac_header_preproc=yes
19427 else
19428 echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19431 ac_header_preproc=no
19434 rm -f conftest.err conftest.$ac_ext
19435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19436 echo "${ECHO_T}$ac_header_preproc" >&6; }
19438 # So? What about this header?
19439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19440 yes:no: )
19441 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19442 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19443 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19444 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19445 ac_header_preproc=yes
19447 no:yes:* )
19448 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19449 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19450 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19451 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19452 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19453 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19454 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19455 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19456 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19457 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19459 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19460 ( cat <<\_ASBOX
19461 ## ------------------------------- ##
19462 ## Report this to www.asterisk.org ##
19463 ## ------------------------------- ##
19464 _ASBOX
19465 ) | sed "s/^/$as_me: WARNING: /" >&2
19467 esac
19468 { echo "$as_me:$LINENO: checking for " >&5
19469 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19470 if test "${ac_cv_header_+set}" = set; then
19471 echo $ECHO_N "(cached) $ECHO_C" >&6
19472 else
19473 ac_cv_header_=$ac_header_preproc
19475 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19476 echo "${ECHO_T}$ac_cv_header_" >&6; }
19479 if test $ac_cv_header_ = yes; then
19480 LOG2L_HEADER_FOUND=1
19481 else
19482 LOG2L_HEADER_FOUND=0
19486 CPPFLAGS="${saved_cppflags}"
19488 if test "x${LOG2L_HEADER_FOUND}" = "x0" ; then
19489 LOG2L_LIB=""
19490 LOG2L_INCLUDE=""
19491 else
19492 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19493 LOG2L_LIB=""
19495 PBX_LOG2L=1
19496 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19498 cat >>confdefs.h <<_ACEOF
19499 #define HAVE_LOG2L 1
19500 _ACEOF
19503 cat >>confdefs.h <<_ACEOF
19504 #define HAVE_LOG2L_VERSION
19505 _ACEOF
19512 if test "x${PBX_EXP10L}" != "x1" -a "${USE_EXP10L}" != "no"; then
19513 pbxlibdir=""
19514 # if --with-EXP10L=DIR has been specified, use it.
19515 if test "x${EXP10L_DIR}" != "x"; then
19516 if test -d ${EXP10L_DIR}/lib; then
19517 pbxlibdir="-L${EXP10L_DIR}/lib"
19518 else
19519 pbxlibdir="-L${EXP10L_DIR}"
19522 pbxfuncname="exp10l"
19523 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19524 AST_EXP10L_FOUND=yes
19525 else
19526 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19527 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19528 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19529 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 else
19532 ac_check_lib_save_LIBS=$LIBS
19533 LIBS="-lm ${pbxlibdir} $LIBS"
19534 cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h. */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19541 /* Override any GCC internal prototype to avoid an error.
19542 Use char because int might match the return type of a GCC
19543 builtin and then its argument prototype would still apply. */
19544 #ifdef __cplusplus
19545 extern "C"
19546 #endif
19547 char ${pbxfuncname} ();
19549 main ()
19551 return ${pbxfuncname} ();
19553 return 0;
19555 _ACEOF
19556 rm -f conftest.$ac_objext conftest$ac_exeext
19557 if { (ac_try="$ac_link"
19558 case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19561 esac
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_link") 2>conftest.er1
19564 ac_status=$?
19565 grep -v '^ *+' conftest.er1 >conftest.err
19566 rm -f conftest.er1
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } && {
19570 test -z "$ac_c_werror_flag" ||
19571 test ! -s conftest.err
19572 } && test -s conftest$ac_exeext &&
19573 $as_test_x conftest$ac_exeext; then
19574 eval "$as_ac_Lib=yes"
19575 else
19576 echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19579 eval "$as_ac_Lib=no"
19582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19583 conftest$ac_exeext conftest.$ac_ext
19584 LIBS=$ac_check_lib_save_LIBS
19586 ac_res=`eval echo '${'$as_ac_Lib'}'`
19587 { echo "$as_me:$LINENO: result: $ac_res" >&5
19588 echo "${ECHO_T}$ac_res" >&6; }
19589 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19590 AST_EXP10L_FOUND=yes
19591 else
19592 AST_EXP10L_FOUND=no
19597 # now check for the header.
19598 if test "${AST_EXP10L_FOUND}" = "yes"; then
19599 EXP10L_LIB="${pbxlibdir} -lm "
19600 # if --with-EXP10L=DIR has been specified, use it.
19601 if test "x${EXP10L_DIR}" != "x"; then
19602 EXP10L_INCLUDE="-I${EXP10L_DIR}/include"
19604 EXP10L_INCLUDE="${EXP10L_INCLUDE} "
19605 if test "x" = "x" ; then # no header, assume found
19606 EXP10L_HEADER_FOUND="1"
19607 else # check for the header
19608 saved_cppflags="${CPPFLAGS}"
19609 CPPFLAGS="${CPPFLAGS} ${EXP10L_INCLUDE} "
19610 if test "${ac_cv_header_+set}" = set; then
19611 { echo "$as_me:$LINENO: checking for " >&5
19612 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19613 if test "${ac_cv_header_+set}" = set; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19616 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19617 echo "${ECHO_T}$ac_cv_header_" >&6; }
19618 else
19619 # Is the header compilable?
19620 { echo "$as_me:$LINENO: checking usability" >&5
19621 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19622 cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h. */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19628 $ac_includes_default
19629 #include <>
19630 _ACEOF
19631 rm -f conftest.$ac_objext
19632 if { (ac_try="$ac_compile"
19633 case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19636 esac
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_compile") 2>conftest.er1
19639 ac_status=$?
19640 grep -v '^ *+' conftest.er1 >conftest.err
19641 rm -f conftest.er1
19642 cat conftest.err >&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } && {
19645 test -z "$ac_c_werror_flag" ||
19646 test ! -s conftest.err
19647 } && test -s conftest.$ac_objext; then
19648 ac_header_compiler=yes
19649 else
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 ac_header_compiler=no
19656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19658 echo "${ECHO_T}$ac_header_compiler" >&6; }
19660 # Is the header present?
19661 { echo "$as_me:$LINENO: checking presence" >&5
19662 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19663 cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h. */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669 #include <>
19670 _ACEOF
19671 if { (ac_try="$ac_cpp conftest.$ac_ext"
19672 case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19675 esac
19676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19678 ac_status=$?
19679 grep -v '^ *+' conftest.er1 >conftest.err
19680 rm -f conftest.er1
19681 cat conftest.err >&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } >/dev/null && {
19684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19685 test ! -s conftest.err
19686 }; then
19687 ac_header_preproc=yes
19688 else
19689 echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19692 ac_header_preproc=no
19695 rm -f conftest.err conftest.$ac_ext
19696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19697 echo "${ECHO_T}$ac_header_preproc" >&6; }
19699 # So? What about this header?
19700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19701 yes:no: )
19702 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19703 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19704 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19705 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19706 ac_header_preproc=yes
19708 no:yes:* )
19709 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19710 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19712 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19713 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19714 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19715 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19716 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19717 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19718 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19719 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19720 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19721 ( cat <<\_ASBOX
19722 ## ------------------------------- ##
19723 ## Report this to www.asterisk.org ##
19724 ## ------------------------------- ##
19725 _ASBOX
19726 ) | sed "s/^/$as_me: WARNING: /" >&2
19728 esac
19729 { echo "$as_me:$LINENO: checking for " >&5
19730 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19731 if test "${ac_cv_header_+set}" = set; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19733 else
19734 ac_cv_header_=$ac_header_preproc
19736 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19737 echo "${ECHO_T}$ac_cv_header_" >&6; }
19740 if test $ac_cv_header_ = yes; then
19741 EXP10L_HEADER_FOUND=1
19742 else
19743 EXP10L_HEADER_FOUND=0
19747 CPPFLAGS="${saved_cppflags}"
19749 if test "x${EXP10L_HEADER_FOUND}" = "x0" ; then
19750 EXP10L_LIB=""
19751 EXP10L_INCLUDE=""
19752 else
19753 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19754 EXP10L_LIB=""
19756 PBX_EXP10L=1
19757 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19759 cat >>confdefs.h <<_ACEOF
19760 #define HAVE_EXP10L 1
19761 _ACEOF
19764 cat >>confdefs.h <<_ACEOF
19765 #define HAVE_EXP10L_VERSION
19766 _ACEOF
19773 if test "x${PBX_LOG10L}" != "x1" -a "${USE_LOG10L}" != "no"; then
19774 pbxlibdir=""
19775 # if --with-LOG10L=DIR has been specified, use it.
19776 if test "x${LOG10L_DIR}" != "x"; then
19777 if test -d ${LOG10L_DIR}/lib; then
19778 pbxlibdir="-L${LOG10L_DIR}/lib"
19779 else
19780 pbxlibdir="-L${LOG10L_DIR}"
19783 pbxfuncname="log10l"
19784 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19785 AST_LOG10L_FOUND=yes
19786 else
19787 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19788 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19789 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19790 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19791 echo $ECHO_N "(cached) $ECHO_C" >&6
19792 else
19793 ac_check_lib_save_LIBS=$LIBS
19794 LIBS="-lm ${pbxlibdir} $LIBS"
19795 cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h. */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19802 /* Override any GCC internal prototype to avoid an error.
19803 Use char because int might match the return type of a GCC
19804 builtin and then its argument prototype would still apply. */
19805 #ifdef __cplusplus
19806 extern "C"
19807 #endif
19808 char ${pbxfuncname} ();
19810 main ()
19812 return ${pbxfuncname} ();
19814 return 0;
19816 _ACEOF
19817 rm -f conftest.$ac_objext conftest$ac_exeext
19818 if { (ac_try="$ac_link"
19819 case "(($ac_try" in
19820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19821 *) ac_try_echo=$ac_try;;
19822 esac
19823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19824 (eval "$ac_link") 2>conftest.er1
19825 ac_status=$?
19826 grep -v '^ *+' conftest.er1 >conftest.err
19827 rm -f conftest.er1
19828 cat conftest.err >&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } && {
19831 test -z "$ac_c_werror_flag" ||
19832 test ! -s conftest.err
19833 } && test -s conftest$ac_exeext &&
19834 $as_test_x conftest$ac_exeext; then
19835 eval "$as_ac_Lib=yes"
19836 else
19837 echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19840 eval "$as_ac_Lib=no"
19843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19844 conftest$ac_exeext conftest.$ac_ext
19845 LIBS=$ac_check_lib_save_LIBS
19847 ac_res=`eval echo '${'$as_ac_Lib'}'`
19848 { echo "$as_me:$LINENO: result: $ac_res" >&5
19849 echo "${ECHO_T}$ac_res" >&6; }
19850 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19851 AST_LOG10L_FOUND=yes
19852 else
19853 AST_LOG10L_FOUND=no
19858 # now check for the header.
19859 if test "${AST_LOG10L_FOUND}" = "yes"; then
19860 LOG10L_LIB="${pbxlibdir} -lm "
19861 # if --with-LOG10L=DIR has been specified, use it.
19862 if test "x${LOG10L_DIR}" != "x"; then
19863 LOG10L_INCLUDE="-I${LOG10L_DIR}/include"
19865 LOG10L_INCLUDE="${LOG10L_INCLUDE} "
19866 if test "x" = "x" ; then # no header, assume found
19867 LOG10L_HEADER_FOUND="1"
19868 else # check for the header
19869 saved_cppflags="${CPPFLAGS}"
19870 CPPFLAGS="${CPPFLAGS} ${LOG10L_INCLUDE} "
19871 if test "${ac_cv_header_+set}" = set; then
19872 { echo "$as_me:$LINENO: checking for " >&5
19873 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19874 if test "${ac_cv_header_+set}" = set; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19877 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19878 echo "${ECHO_T}$ac_cv_header_" >&6; }
19879 else
19880 # Is the header compilable?
19881 { echo "$as_me:$LINENO: checking usability" >&5
19882 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19883 cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h. */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19889 $ac_includes_default
19890 #include <>
19891 _ACEOF
19892 rm -f conftest.$ac_objext
19893 if { (ac_try="$ac_compile"
19894 case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_compile") 2>conftest.er1
19900 ac_status=$?
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } && {
19906 test -z "$ac_c_werror_flag" ||
19907 test ! -s conftest.err
19908 } && test -s conftest.$ac_objext; then
19909 ac_header_compiler=yes
19910 else
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19914 ac_header_compiler=no
19917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19919 echo "${ECHO_T}$ac_header_compiler" >&6; }
19921 # Is the header present?
19922 { echo "$as_me:$LINENO: checking presence" >&5
19923 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19924 cat >conftest.$ac_ext <<_ACEOF
19925 /* confdefs.h. */
19926 _ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h. */
19930 #include <>
19931 _ACEOF
19932 if { (ac_try="$ac_cpp conftest.$ac_ext"
19933 case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19936 esac
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19939 ac_status=$?
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } >/dev/null && {
19945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19946 test ! -s conftest.err
19947 }; then
19948 ac_header_preproc=yes
19949 else
19950 echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19953 ac_header_preproc=no
19956 rm -f conftest.err conftest.$ac_ext
19957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19958 echo "${ECHO_T}$ac_header_preproc" >&6; }
19960 # So? What about this header?
19961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19962 yes:no: )
19963 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19964 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19965 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19966 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19967 ac_header_preproc=yes
19969 no:yes:* )
19970 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19971 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19972 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19973 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19974 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19975 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19976 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19977 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19978 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19979 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19980 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19981 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19982 ( cat <<\_ASBOX
19983 ## ------------------------------- ##
19984 ## Report this to www.asterisk.org ##
19985 ## ------------------------------- ##
19986 _ASBOX
19987 ) | sed "s/^/$as_me: WARNING: /" >&2
19989 esac
19990 { echo "$as_me:$LINENO: checking for " >&5
19991 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19992 if test "${ac_cv_header_+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995 ac_cv_header_=$ac_header_preproc
19997 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19998 echo "${ECHO_T}$ac_cv_header_" >&6; }
20001 if test $ac_cv_header_ = yes; then
20002 LOG10L_HEADER_FOUND=1
20003 else
20004 LOG10L_HEADER_FOUND=0
20008 CPPFLAGS="${saved_cppflags}"
20010 if test "x${LOG10L_HEADER_FOUND}" = "x0" ; then
20011 LOG10L_LIB=""
20012 LOG10L_INCLUDE=""
20013 else
20014 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20015 LOG10L_LIB=""
20017 PBX_LOG10L=1
20018 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20020 cat >>confdefs.h <<_ACEOF
20021 #define HAVE_LOG10L 1
20022 _ACEOF
20025 cat >>confdefs.h <<_ACEOF
20026 #define HAVE_LOG10L_VERSION
20027 _ACEOF
20034 if test "x${PBX_SINL}" != "x1" -a "${USE_SINL}" != "no"; then
20035 pbxlibdir=""
20036 # if --with-SINL=DIR has been specified, use it.
20037 if test "x${SINL_DIR}" != "x"; then
20038 if test -d ${SINL_DIR}/lib; then
20039 pbxlibdir="-L${SINL_DIR}/lib"
20040 else
20041 pbxlibdir="-L${SINL_DIR}"
20044 pbxfuncname="sinl"
20045 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20046 AST_SINL_FOUND=yes
20047 else
20048 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20049 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20050 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20051 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 else
20054 ac_check_lib_save_LIBS=$LIBS
20055 LIBS="-lm ${pbxlibdir} $LIBS"
20056 cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h. */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20063 /* Override any GCC internal prototype to avoid an error.
20064 Use char because int might match the return type of a GCC
20065 builtin and then its argument prototype would still apply. */
20066 #ifdef __cplusplus
20067 extern "C"
20068 #endif
20069 char ${pbxfuncname} ();
20071 main ()
20073 return ${pbxfuncname} ();
20075 return 0;
20077 _ACEOF
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (ac_try="$ac_link"
20080 case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20083 esac
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_link") 2>conftest.er1
20086 ac_status=$?
20087 grep -v '^ *+' conftest.er1 >conftest.err
20088 rm -f conftest.er1
20089 cat conftest.err >&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } && {
20092 test -z "$ac_c_werror_flag" ||
20093 test ! -s conftest.err
20094 } && test -s conftest$ac_exeext &&
20095 $as_test_x conftest$ac_exeext; then
20096 eval "$as_ac_Lib=yes"
20097 else
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 eval "$as_ac_Lib=no"
20104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20105 conftest$ac_exeext conftest.$ac_ext
20106 LIBS=$ac_check_lib_save_LIBS
20108 ac_res=`eval echo '${'$as_ac_Lib'}'`
20109 { echo "$as_me:$LINENO: result: $ac_res" >&5
20110 echo "${ECHO_T}$ac_res" >&6; }
20111 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20112 AST_SINL_FOUND=yes
20113 else
20114 AST_SINL_FOUND=no
20119 # now check for the header.
20120 if test "${AST_SINL_FOUND}" = "yes"; then
20121 SINL_LIB="${pbxlibdir} -lm "
20122 # if --with-SINL=DIR has been specified, use it.
20123 if test "x${SINL_DIR}" != "x"; then
20124 SINL_INCLUDE="-I${SINL_DIR}/include"
20126 SINL_INCLUDE="${SINL_INCLUDE} "
20127 if test "x" = "x" ; then # no header, assume found
20128 SINL_HEADER_FOUND="1"
20129 else # check for the header
20130 saved_cppflags="${CPPFLAGS}"
20131 CPPFLAGS="${CPPFLAGS} ${SINL_INCLUDE} "
20132 if test "${ac_cv_header_+set}" = set; then
20133 { echo "$as_me:$LINENO: checking for " >&5
20134 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20135 if test "${ac_cv_header_+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20139 echo "${ECHO_T}$ac_cv_header_" >&6; }
20140 else
20141 # Is the header compilable?
20142 { echo "$as_me:$LINENO: checking usability" >&5
20143 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h. */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 $ac_includes_default
20151 #include <>
20152 _ACEOF
20153 rm -f conftest.$ac_objext
20154 if { (ac_try="$ac_compile"
20155 case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20158 esac
20159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20160 (eval "$ac_compile") 2>conftest.er1
20161 ac_status=$?
20162 grep -v '^ *+' conftest.er1 >conftest.err
20163 rm -f conftest.er1
20164 cat conftest.err >&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); } && {
20167 test -z "$ac_c_werror_flag" ||
20168 test ! -s conftest.err
20169 } && test -s conftest.$ac_objext; then
20170 ac_header_compiler=yes
20171 else
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20175 ac_header_compiler=no
20178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20180 echo "${ECHO_T}$ac_header_compiler" >&6; }
20182 # Is the header present?
20183 { echo "$as_me:$LINENO: checking presence" >&5
20184 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20185 cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h. */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191 #include <>
20192 _ACEOF
20193 if { (ac_try="$ac_cpp conftest.$ac_ext"
20194 case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20197 esac
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20200 ac_status=$?
20201 grep -v '^ *+' conftest.er1 >conftest.err
20202 rm -f conftest.er1
20203 cat conftest.err >&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } >/dev/null && {
20206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20207 test ! -s conftest.err
20208 }; then
20209 ac_header_preproc=yes
20210 else
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20214 ac_header_preproc=no
20217 rm -f conftest.err conftest.$ac_ext
20218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20219 echo "${ECHO_T}$ac_header_preproc" >&6; }
20221 # So? What about this header?
20222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20223 yes:no: )
20224 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20225 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20226 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20227 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20228 ac_header_preproc=yes
20230 no:yes:* )
20231 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20232 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20233 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20234 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20235 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20236 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20237 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20238 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20240 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20242 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20243 ( cat <<\_ASBOX
20244 ## ------------------------------- ##
20245 ## Report this to www.asterisk.org ##
20246 ## ------------------------------- ##
20247 _ASBOX
20248 ) | sed "s/^/$as_me: WARNING: /" >&2
20250 esac
20251 { echo "$as_me:$LINENO: checking for " >&5
20252 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20253 if test "${ac_cv_header_+set}" = set; then
20254 echo $ECHO_N "(cached) $ECHO_C" >&6
20255 else
20256 ac_cv_header_=$ac_header_preproc
20258 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20259 echo "${ECHO_T}$ac_cv_header_" >&6; }
20262 if test $ac_cv_header_ = yes; then
20263 SINL_HEADER_FOUND=1
20264 else
20265 SINL_HEADER_FOUND=0
20269 CPPFLAGS="${saved_cppflags}"
20271 if test "x${SINL_HEADER_FOUND}" = "x0" ; then
20272 SINL_LIB=""
20273 SINL_INCLUDE=""
20274 else
20275 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20276 SINL_LIB=""
20278 PBX_SINL=1
20279 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20281 cat >>confdefs.h <<_ACEOF
20282 #define HAVE_SINL 1
20283 _ACEOF
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_SINL_VERSION
20288 _ACEOF
20295 if test "x${PBX_COSL}" != "x1" -a "${USE_COSL}" != "no"; then
20296 pbxlibdir=""
20297 # if --with-COSL=DIR has been specified, use it.
20298 if test "x${COSL_DIR}" != "x"; then
20299 if test -d ${COSL_DIR}/lib; then
20300 pbxlibdir="-L${COSL_DIR}/lib"
20301 else
20302 pbxlibdir="-L${COSL_DIR}"
20305 pbxfuncname="cosl"
20306 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20307 AST_COSL_FOUND=yes
20308 else
20309 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20310 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20311 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20312 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20313 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 else
20315 ac_check_lib_save_LIBS=$LIBS
20316 LIBS="-lm ${pbxlibdir} $LIBS"
20317 cat >conftest.$ac_ext <<_ACEOF
20318 /* confdefs.h. */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20324 /* Override any GCC internal prototype to avoid an error.
20325 Use char because int might match the return type of a GCC
20326 builtin and then its argument prototype would still apply. */
20327 #ifdef __cplusplus
20328 extern "C"
20329 #endif
20330 char ${pbxfuncname} ();
20332 main ()
20334 return ${pbxfuncname} ();
20336 return 0;
20338 _ACEOF
20339 rm -f conftest.$ac_objext conftest$ac_exeext
20340 if { (ac_try="$ac_link"
20341 case "(($ac_try" in
20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20344 esac
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_link") 2>conftest.er1
20347 ac_status=$?
20348 grep -v '^ *+' conftest.er1 >conftest.err
20349 rm -f conftest.er1
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } && {
20353 test -z "$ac_c_werror_flag" ||
20354 test ! -s conftest.err
20355 } && test -s conftest$ac_exeext &&
20356 $as_test_x conftest$ac_exeext; then
20357 eval "$as_ac_Lib=yes"
20358 else
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20362 eval "$as_ac_Lib=no"
20365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20366 conftest$ac_exeext conftest.$ac_ext
20367 LIBS=$ac_check_lib_save_LIBS
20369 ac_res=`eval echo '${'$as_ac_Lib'}'`
20370 { echo "$as_me:$LINENO: result: $ac_res" >&5
20371 echo "${ECHO_T}$ac_res" >&6; }
20372 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20373 AST_COSL_FOUND=yes
20374 else
20375 AST_COSL_FOUND=no
20380 # now check for the header.
20381 if test "${AST_COSL_FOUND}" = "yes"; then
20382 COSL_LIB="${pbxlibdir} -lm "
20383 # if --with-COSL=DIR has been specified, use it.
20384 if test "x${COSL_DIR}" != "x"; then
20385 COSL_INCLUDE="-I${COSL_DIR}/include"
20387 COSL_INCLUDE="${COSL_INCLUDE} "
20388 if test "x" = "x" ; then # no header, assume found
20389 COSL_HEADER_FOUND="1"
20390 else # check for the header
20391 saved_cppflags="${CPPFLAGS}"
20392 CPPFLAGS="${CPPFLAGS} ${COSL_INCLUDE} "
20393 if test "${ac_cv_header_+set}" = set; then
20394 { echo "$as_me:$LINENO: checking for " >&5
20395 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20396 if test "${ac_cv_header_+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20400 echo "${ECHO_T}$ac_cv_header_" >&6; }
20401 else
20402 # Is the header compilable?
20403 { echo "$as_me:$LINENO: checking usability" >&5
20404 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20405 cat >conftest.$ac_ext <<_ACEOF
20406 /* confdefs.h. */
20407 _ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h. */
20411 $ac_includes_default
20412 #include <>
20413 _ACEOF
20414 rm -f conftest.$ac_objext
20415 if { (ac_try="$ac_compile"
20416 case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_compile") 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } && {
20428 test -z "$ac_c_werror_flag" ||
20429 test ! -s conftest.err
20430 } && test -s conftest.$ac_objext; then
20431 ac_header_compiler=yes
20432 else
20433 echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20436 ac_header_compiler=no
20439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20441 echo "${ECHO_T}$ac_header_compiler" >&6; }
20443 # Is the header present?
20444 { echo "$as_me:$LINENO: checking presence" >&5
20445 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20446 cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h. */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20452 #include <>
20453 _ACEOF
20454 if { (ac_try="$ac_cpp conftest.$ac_ext"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } >/dev/null && {
20467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20468 test ! -s conftest.err
20469 }; then
20470 ac_header_preproc=yes
20471 else
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 ac_header_preproc=no
20478 rm -f conftest.err conftest.$ac_ext
20479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20480 echo "${ECHO_T}$ac_header_preproc" >&6; }
20482 # So? What about this header?
20483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20484 yes:no: )
20485 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20486 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20487 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20488 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20489 ac_header_preproc=yes
20491 no:yes:* )
20492 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20493 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20495 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20496 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20497 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20498 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20499 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20500 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20501 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20502 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20503 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20504 ( cat <<\_ASBOX
20505 ## ------------------------------- ##
20506 ## Report this to www.asterisk.org ##
20507 ## ------------------------------- ##
20508 _ASBOX
20509 ) | sed "s/^/$as_me: WARNING: /" >&2
20511 esac
20512 { echo "$as_me:$LINENO: checking for " >&5
20513 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20514 if test "${ac_cv_header_+set}" = set; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20516 else
20517 ac_cv_header_=$ac_header_preproc
20519 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20520 echo "${ECHO_T}$ac_cv_header_" >&6; }
20523 if test $ac_cv_header_ = yes; then
20524 COSL_HEADER_FOUND=1
20525 else
20526 COSL_HEADER_FOUND=0
20530 CPPFLAGS="${saved_cppflags}"
20532 if test "x${COSL_HEADER_FOUND}" = "x0" ; then
20533 COSL_LIB=""
20534 COSL_INCLUDE=""
20535 else
20536 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20537 COSL_LIB=""
20539 PBX_COSL=1
20540 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20542 cat >>confdefs.h <<_ACEOF
20543 #define HAVE_COSL 1
20544 _ACEOF
20547 cat >>confdefs.h <<_ACEOF
20548 #define HAVE_COSL_VERSION
20549 _ACEOF
20556 if test "x${PBX_TANL}" != "x1" -a "${USE_TANL}" != "no"; then
20557 pbxlibdir=""
20558 # if --with-TANL=DIR has been specified, use it.
20559 if test "x${TANL_DIR}" != "x"; then
20560 if test -d ${TANL_DIR}/lib; then
20561 pbxlibdir="-L${TANL_DIR}/lib"
20562 else
20563 pbxlibdir="-L${TANL_DIR}"
20566 pbxfuncname="tanl"
20567 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20568 AST_TANL_FOUND=yes
20569 else
20570 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20571 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20572 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20573 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576 ac_check_lib_save_LIBS=$LIBS
20577 LIBS="-lm ${pbxlibdir} $LIBS"
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h. */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20585 /* Override any GCC internal prototype to avoid an error.
20586 Use char because int might match the return type of a GCC
20587 builtin and then its argument prototype would still apply. */
20588 #ifdef __cplusplus
20589 extern "C"
20590 #endif
20591 char ${pbxfuncname} ();
20593 main ()
20595 return ${pbxfuncname} ();
20597 return 0;
20599 _ACEOF
20600 rm -f conftest.$ac_objext conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_link") 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } && {
20614 test -z "$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 } && test -s conftest$ac_exeext &&
20617 $as_test_x conftest$ac_exeext; then
20618 eval "$as_ac_Lib=yes"
20619 else
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 eval "$as_ac_Lib=no"
20626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20627 conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20630 ac_res=`eval echo '${'$as_ac_Lib'}'`
20631 { echo "$as_me:$LINENO: result: $ac_res" >&5
20632 echo "${ECHO_T}$ac_res" >&6; }
20633 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20634 AST_TANL_FOUND=yes
20635 else
20636 AST_TANL_FOUND=no
20641 # now check for the header.
20642 if test "${AST_TANL_FOUND}" = "yes"; then
20643 TANL_LIB="${pbxlibdir} -lm "
20644 # if --with-TANL=DIR has been specified, use it.
20645 if test "x${TANL_DIR}" != "x"; then
20646 TANL_INCLUDE="-I${TANL_DIR}/include"
20648 TANL_INCLUDE="${TANL_INCLUDE} "
20649 if test "x" = "x" ; then # no header, assume found
20650 TANL_HEADER_FOUND="1"
20651 else # check for the header
20652 saved_cppflags="${CPPFLAGS}"
20653 CPPFLAGS="${CPPFLAGS} ${TANL_INCLUDE} "
20654 if test "${ac_cv_header_+set}" = set; then
20655 { echo "$as_me:$LINENO: checking for " >&5
20656 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20657 if test "${ac_cv_header_+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20660 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20661 echo "${ECHO_T}$ac_cv_header_" >&6; }
20662 else
20663 # Is the header compilable?
20664 { echo "$as_me:$LINENO: checking usability" >&5
20665 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20666 cat >conftest.$ac_ext <<_ACEOF
20667 /* confdefs.h. */
20668 _ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h. */
20672 $ac_includes_default
20673 #include <>
20674 _ACEOF
20675 rm -f conftest.$ac_objext
20676 if { (ac_try="$ac_compile"
20677 case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20680 esac
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_compile") 2>conftest.er1
20683 ac_status=$?
20684 grep -v '^ *+' conftest.er1 >conftest.err
20685 rm -f conftest.er1
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } && {
20689 test -z "$ac_c_werror_flag" ||
20690 test ! -s conftest.err
20691 } && test -s conftest.$ac_objext; then
20692 ac_header_compiler=yes
20693 else
20694 echo "$as_me: failed program was:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20697 ac_header_compiler=no
20700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20702 echo "${ECHO_T}$ac_header_compiler" >&6; }
20704 # Is the header present?
20705 { echo "$as_me:$LINENO: checking presence" >&5
20706 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20707 cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h. */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20713 #include <>
20714 _ACEOF
20715 if { (ac_try="$ac_cpp conftest.$ac_ext"
20716 case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20722 ac_status=$?
20723 grep -v '^ *+' conftest.er1 >conftest.err
20724 rm -f conftest.er1
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } >/dev/null && {
20728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20729 test ! -s conftest.err
20730 }; then
20731 ac_header_preproc=yes
20732 else
20733 echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20736 ac_header_preproc=no
20739 rm -f conftest.err conftest.$ac_ext
20740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20741 echo "${ECHO_T}$ac_header_preproc" >&6; }
20743 # So? What about this header?
20744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20745 yes:no: )
20746 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20747 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20748 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20749 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20750 ac_header_preproc=yes
20752 no:yes:* )
20753 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20754 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20755 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20756 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20757 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20758 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20759 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20760 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20761 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20762 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20763 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20764 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20765 ( cat <<\_ASBOX
20766 ## ------------------------------- ##
20767 ## Report this to www.asterisk.org ##
20768 ## ------------------------------- ##
20769 _ASBOX
20770 ) | sed "s/^/$as_me: WARNING: /" >&2
20772 esac
20773 { echo "$as_me:$LINENO: checking for " >&5
20774 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20775 if test "${ac_cv_header_+set}" = set; then
20776 echo $ECHO_N "(cached) $ECHO_C" >&6
20777 else
20778 ac_cv_header_=$ac_header_preproc
20780 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20781 echo "${ECHO_T}$ac_cv_header_" >&6; }
20784 if test $ac_cv_header_ = yes; then
20785 TANL_HEADER_FOUND=1
20786 else
20787 TANL_HEADER_FOUND=0
20791 CPPFLAGS="${saved_cppflags}"
20793 if test "x${TANL_HEADER_FOUND}" = "x0" ; then
20794 TANL_LIB=""
20795 TANL_INCLUDE=""
20796 else
20797 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20798 TANL_LIB=""
20800 PBX_TANL=1
20801 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20803 cat >>confdefs.h <<_ACEOF
20804 #define HAVE_TANL 1
20805 _ACEOF
20808 cat >>confdefs.h <<_ACEOF
20809 #define HAVE_TANL_VERSION
20810 _ACEOF
20817 if test "x${PBX_ASINL}" != "x1" -a "${USE_ASINL}" != "no"; then
20818 pbxlibdir=""
20819 # if --with-ASINL=DIR has been specified, use it.
20820 if test "x${ASINL_DIR}" != "x"; then
20821 if test -d ${ASINL_DIR}/lib; then
20822 pbxlibdir="-L${ASINL_DIR}/lib"
20823 else
20824 pbxlibdir="-L${ASINL_DIR}"
20827 pbxfuncname="asinl"
20828 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20829 AST_ASINL_FOUND=yes
20830 else
20831 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20832 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20833 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20834 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20836 else
20837 ac_check_lib_save_LIBS=$LIBS
20838 LIBS="-lm ${pbxlibdir} $LIBS"
20839 cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h. */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20846 /* Override any GCC internal prototype to avoid an error.
20847 Use char because int might match the return type of a GCC
20848 builtin and then its argument prototype would still apply. */
20849 #ifdef __cplusplus
20850 extern "C"
20851 #endif
20852 char ${pbxfuncname} ();
20854 main ()
20856 return ${pbxfuncname} ();
20858 return 0;
20860 _ACEOF
20861 rm -f conftest.$ac_objext conftest$ac_exeext
20862 if { (ac_try="$ac_link"
20863 case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_link") 2>conftest.er1
20869 ac_status=$?
20870 grep -v '^ *+' conftest.er1 >conftest.err
20871 rm -f conftest.er1
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } && {
20875 test -z "$ac_c_werror_flag" ||
20876 test ! -s conftest.err
20877 } && test -s conftest$ac_exeext &&
20878 $as_test_x conftest$ac_exeext; then
20879 eval "$as_ac_Lib=yes"
20880 else
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20884 eval "$as_ac_Lib=no"
20887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20888 conftest$ac_exeext conftest.$ac_ext
20889 LIBS=$ac_check_lib_save_LIBS
20891 ac_res=`eval echo '${'$as_ac_Lib'}'`
20892 { echo "$as_me:$LINENO: result: $ac_res" >&5
20893 echo "${ECHO_T}$ac_res" >&6; }
20894 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20895 AST_ASINL_FOUND=yes
20896 else
20897 AST_ASINL_FOUND=no
20902 # now check for the header.
20903 if test "${AST_ASINL_FOUND}" = "yes"; then
20904 ASINL_LIB="${pbxlibdir} -lm "
20905 # if --with-ASINL=DIR has been specified, use it.
20906 if test "x${ASINL_DIR}" != "x"; then
20907 ASINL_INCLUDE="-I${ASINL_DIR}/include"
20909 ASINL_INCLUDE="${ASINL_INCLUDE} "
20910 if test "x" = "x" ; then # no header, assume found
20911 ASINL_HEADER_FOUND="1"
20912 else # check for the header
20913 saved_cppflags="${CPPFLAGS}"
20914 CPPFLAGS="${CPPFLAGS} ${ASINL_INCLUDE} "
20915 if test "${ac_cv_header_+set}" = set; then
20916 { echo "$as_me:$LINENO: checking for " >&5
20917 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20918 if test "${ac_cv_header_+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20921 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20922 echo "${ECHO_T}$ac_cv_header_" >&6; }
20923 else
20924 # Is the header compilable?
20925 { echo "$as_me:$LINENO: checking usability" >&5
20926 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20927 cat >conftest.$ac_ext <<_ACEOF
20928 /* confdefs.h. */
20929 _ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h. */
20933 $ac_includes_default
20934 #include <>
20935 _ACEOF
20936 rm -f conftest.$ac_objext
20937 if { (ac_try="$ac_compile"
20938 case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20941 esac
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_compile") 2>conftest.er1
20944 ac_status=$?
20945 grep -v '^ *+' conftest.er1 >conftest.err
20946 rm -f conftest.er1
20947 cat conftest.err >&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); } && {
20950 test -z "$ac_c_werror_flag" ||
20951 test ! -s conftest.err
20952 } && test -s conftest.$ac_objext; then
20953 ac_header_compiler=yes
20954 else
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20958 ac_header_compiler=no
20961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20963 echo "${ECHO_T}$ac_header_compiler" >&6; }
20965 # Is the header present?
20966 { echo "$as_me:$LINENO: checking presence" >&5
20967 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20968 cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h. */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 #include <>
20975 _ACEOF
20976 if { (ac_try="$ac_cpp conftest.$ac_ext"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20983 ac_status=$?
20984 grep -v '^ *+' conftest.er1 >conftest.err
20985 rm -f conftest.er1
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } >/dev/null && {
20989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20990 test ! -s conftest.err
20991 }; then
20992 ac_header_preproc=yes
20993 else
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20997 ac_header_preproc=no
21000 rm -f conftest.err conftest.$ac_ext
21001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21002 echo "${ECHO_T}$ac_header_preproc" >&6; }
21004 # So? What about this header?
21005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21006 yes:no: )
21007 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21008 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21009 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21010 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21011 ac_header_preproc=yes
21013 no:yes:* )
21014 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21015 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21016 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21017 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21018 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21019 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21020 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21021 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21022 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21023 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21024 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21025 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21026 ( cat <<\_ASBOX
21027 ## ------------------------------- ##
21028 ## Report this to www.asterisk.org ##
21029 ## ------------------------------- ##
21030 _ASBOX
21031 ) | sed "s/^/$as_me: WARNING: /" >&2
21033 esac
21034 { echo "$as_me:$LINENO: checking for " >&5
21035 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21036 if test "${ac_cv_header_+set}" = set; then
21037 echo $ECHO_N "(cached) $ECHO_C" >&6
21038 else
21039 ac_cv_header_=$ac_header_preproc
21041 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21042 echo "${ECHO_T}$ac_cv_header_" >&6; }
21045 if test $ac_cv_header_ = yes; then
21046 ASINL_HEADER_FOUND=1
21047 else
21048 ASINL_HEADER_FOUND=0
21052 CPPFLAGS="${saved_cppflags}"
21054 if test "x${ASINL_HEADER_FOUND}" = "x0" ; then
21055 ASINL_LIB=""
21056 ASINL_INCLUDE=""
21057 else
21058 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21059 ASINL_LIB=""
21061 PBX_ASINL=1
21062 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21064 cat >>confdefs.h <<_ACEOF
21065 #define HAVE_ASINL 1
21066 _ACEOF
21069 cat >>confdefs.h <<_ACEOF
21070 #define HAVE_ASINL_VERSION
21071 _ACEOF
21078 if test "x${PBX_ACOSL}" != "x1" -a "${USE_ACOSL}" != "no"; then
21079 pbxlibdir=""
21080 # if --with-ACOSL=DIR has been specified, use it.
21081 if test "x${ACOSL_DIR}" != "x"; then
21082 if test -d ${ACOSL_DIR}/lib; then
21083 pbxlibdir="-L${ACOSL_DIR}/lib"
21084 else
21085 pbxlibdir="-L${ACOSL_DIR}"
21088 pbxfuncname="acosl"
21089 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21090 AST_ACOSL_FOUND=yes
21091 else
21092 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21093 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21094 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21095 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21097 else
21098 ac_check_lib_save_LIBS=$LIBS
21099 LIBS="-lm ${pbxlibdir} $LIBS"
21100 cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h. */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21107 /* Override any GCC internal prototype to avoid an error.
21108 Use char because int might match the return type of a GCC
21109 builtin and then its argument prototype would still apply. */
21110 #ifdef __cplusplus
21111 extern "C"
21112 #endif
21113 char ${pbxfuncname} ();
21115 main ()
21117 return ${pbxfuncname} ();
21119 return 0;
21121 _ACEOF
21122 rm -f conftest.$ac_objext conftest$ac_exeext
21123 if { (ac_try="$ac_link"
21124 case "(($ac_try" in
21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126 *) ac_try_echo=$ac_try;;
21127 esac
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129 (eval "$ac_link") 2>conftest.er1
21130 ac_status=$?
21131 grep -v '^ *+' conftest.er1 >conftest.err
21132 rm -f conftest.er1
21133 cat conftest.err >&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); } && {
21136 test -z "$ac_c_werror_flag" ||
21137 test ! -s conftest.err
21138 } && test -s conftest$ac_exeext &&
21139 $as_test_x conftest$ac_exeext; then
21140 eval "$as_ac_Lib=yes"
21141 else
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 eval "$as_ac_Lib=no"
21148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21149 conftest$ac_exeext conftest.$ac_ext
21150 LIBS=$ac_check_lib_save_LIBS
21152 ac_res=`eval echo '${'$as_ac_Lib'}'`
21153 { echo "$as_me:$LINENO: result: $ac_res" >&5
21154 echo "${ECHO_T}$ac_res" >&6; }
21155 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21156 AST_ACOSL_FOUND=yes
21157 else
21158 AST_ACOSL_FOUND=no
21163 # now check for the header.
21164 if test "${AST_ACOSL_FOUND}" = "yes"; then
21165 ACOSL_LIB="${pbxlibdir} -lm "
21166 # if --with-ACOSL=DIR has been specified, use it.
21167 if test "x${ACOSL_DIR}" != "x"; then
21168 ACOSL_INCLUDE="-I${ACOSL_DIR}/include"
21170 ACOSL_INCLUDE="${ACOSL_INCLUDE} "
21171 if test "x" = "x" ; then # no header, assume found
21172 ACOSL_HEADER_FOUND="1"
21173 else # check for the header
21174 saved_cppflags="${CPPFLAGS}"
21175 CPPFLAGS="${CPPFLAGS} ${ACOSL_INCLUDE} "
21176 if test "${ac_cv_header_+set}" = set; then
21177 { echo "$as_me:$LINENO: checking for " >&5
21178 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21179 if test "${ac_cv_header_+set}" = set; then
21180 echo $ECHO_N "(cached) $ECHO_C" >&6
21182 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21183 echo "${ECHO_T}$ac_cv_header_" >&6; }
21184 else
21185 # Is the header compilable?
21186 { echo "$as_me:$LINENO: checking usability" >&5
21187 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21188 cat >conftest.$ac_ext <<_ACEOF
21189 /* confdefs.h. */
21190 _ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21194 $ac_includes_default
21195 #include <>
21196 _ACEOF
21197 rm -f conftest.$ac_objext
21198 if { (ac_try="$ac_compile"
21199 case "(($ac_try" in
21200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201 *) ac_try_echo=$ac_try;;
21202 esac
21203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21204 (eval "$ac_compile") 2>conftest.er1
21205 ac_status=$?
21206 grep -v '^ *+' conftest.er1 >conftest.err
21207 rm -f conftest.er1
21208 cat conftest.err >&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); } && {
21211 test -z "$ac_c_werror_flag" ||
21212 test ! -s conftest.err
21213 } && test -s conftest.$ac_objext; then
21214 ac_header_compiler=yes
21215 else
21216 echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21219 ac_header_compiler=no
21222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21224 echo "${ECHO_T}$ac_header_compiler" >&6; }
21226 # Is the header present?
21227 { echo "$as_me:$LINENO: checking presence" >&5
21228 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21229 cat >conftest.$ac_ext <<_ACEOF
21230 /* confdefs.h. */
21231 _ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21235 #include <>
21236 _ACEOF
21237 if { (ac_try="$ac_cpp conftest.$ac_ext"
21238 case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21241 esac
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21244 ac_status=$?
21245 grep -v '^ *+' conftest.er1 >conftest.err
21246 rm -f conftest.er1
21247 cat conftest.err >&5
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } >/dev/null && {
21250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21251 test ! -s conftest.err
21252 }; then
21253 ac_header_preproc=yes
21254 else
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21258 ac_header_preproc=no
21261 rm -f conftest.err conftest.$ac_ext
21262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21263 echo "${ECHO_T}$ac_header_preproc" >&6; }
21265 # So? What about this header?
21266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21267 yes:no: )
21268 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21269 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21270 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21271 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21272 ac_header_preproc=yes
21274 no:yes:* )
21275 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21276 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21277 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21278 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21279 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21280 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21281 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21282 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21283 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21284 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21285 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21286 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21287 ( cat <<\_ASBOX
21288 ## ------------------------------- ##
21289 ## Report this to www.asterisk.org ##
21290 ## ------------------------------- ##
21291 _ASBOX
21292 ) | sed "s/^/$as_me: WARNING: /" >&2
21294 esac
21295 { echo "$as_me:$LINENO: checking for " >&5
21296 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21297 if test "${ac_cv_header_+set}" = set; then
21298 echo $ECHO_N "(cached) $ECHO_C" >&6
21299 else
21300 ac_cv_header_=$ac_header_preproc
21302 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21303 echo "${ECHO_T}$ac_cv_header_" >&6; }
21306 if test $ac_cv_header_ = yes; then
21307 ACOSL_HEADER_FOUND=1
21308 else
21309 ACOSL_HEADER_FOUND=0
21313 CPPFLAGS="${saved_cppflags}"
21315 if test "x${ACOSL_HEADER_FOUND}" = "x0" ; then
21316 ACOSL_LIB=""
21317 ACOSL_INCLUDE=""
21318 else
21319 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21320 ACOSL_LIB=""
21322 PBX_ACOSL=1
21323 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21325 cat >>confdefs.h <<_ACEOF
21326 #define HAVE_ACOSL 1
21327 _ACEOF
21330 cat >>confdefs.h <<_ACEOF
21331 #define HAVE_ACOSL_VERSION
21332 _ACEOF
21339 if test "x${PBX_ATANL}" != "x1" -a "${USE_ATANL}" != "no"; then
21340 pbxlibdir=""
21341 # if --with-ATANL=DIR has been specified, use it.
21342 if test "x${ATANL_DIR}" != "x"; then
21343 if test -d ${ATANL_DIR}/lib; then
21344 pbxlibdir="-L${ATANL_DIR}/lib"
21345 else
21346 pbxlibdir="-L${ATANL_DIR}"
21349 pbxfuncname="atanl"
21350 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21351 AST_ATANL_FOUND=yes
21352 else
21353 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21354 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21355 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21356 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21357 echo $ECHO_N "(cached) $ECHO_C" >&6
21358 else
21359 ac_check_lib_save_LIBS=$LIBS
21360 LIBS="-lm ${pbxlibdir} $LIBS"
21361 cat >conftest.$ac_ext <<_ACEOF
21362 /* confdefs.h. */
21363 _ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21368 /* Override any GCC internal prototype to avoid an error.
21369 Use char because int might match the return type of a GCC
21370 builtin and then its argument prototype would still apply. */
21371 #ifdef __cplusplus
21372 extern "C"
21373 #endif
21374 char ${pbxfuncname} ();
21376 main ()
21378 return ${pbxfuncname} ();
21380 return 0;
21382 _ACEOF
21383 rm -f conftest.$ac_objext conftest$ac_exeext
21384 if { (ac_try="$ac_link"
21385 case "(($ac_try" in
21386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387 *) ac_try_echo=$ac_try;;
21388 esac
21389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21390 (eval "$ac_link") 2>conftest.er1
21391 ac_status=$?
21392 grep -v '^ *+' conftest.er1 >conftest.err
21393 rm -f conftest.er1
21394 cat conftest.err >&5
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); } && {
21397 test -z "$ac_c_werror_flag" ||
21398 test ! -s conftest.err
21399 } && test -s conftest$ac_exeext &&
21400 $as_test_x conftest$ac_exeext; then
21401 eval "$as_ac_Lib=yes"
21402 else
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 eval "$as_ac_Lib=no"
21409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21410 conftest$ac_exeext conftest.$ac_ext
21411 LIBS=$ac_check_lib_save_LIBS
21413 ac_res=`eval echo '${'$as_ac_Lib'}'`
21414 { echo "$as_me:$LINENO: result: $ac_res" >&5
21415 echo "${ECHO_T}$ac_res" >&6; }
21416 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21417 AST_ATANL_FOUND=yes
21418 else
21419 AST_ATANL_FOUND=no
21424 # now check for the header.
21425 if test "${AST_ATANL_FOUND}" = "yes"; then
21426 ATANL_LIB="${pbxlibdir} -lm "
21427 # if --with-ATANL=DIR has been specified, use it.
21428 if test "x${ATANL_DIR}" != "x"; then
21429 ATANL_INCLUDE="-I${ATANL_DIR}/include"
21431 ATANL_INCLUDE="${ATANL_INCLUDE} "
21432 if test "x" = "x" ; then # no header, assume found
21433 ATANL_HEADER_FOUND="1"
21434 else # check for the header
21435 saved_cppflags="${CPPFLAGS}"
21436 CPPFLAGS="${CPPFLAGS} ${ATANL_INCLUDE} "
21437 if test "${ac_cv_header_+set}" = set; then
21438 { echo "$as_me:$LINENO: checking for " >&5
21439 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21440 if test "${ac_cv_header_+set}" = set; then
21441 echo $ECHO_N "(cached) $ECHO_C" >&6
21443 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21444 echo "${ECHO_T}$ac_cv_header_" >&6; }
21445 else
21446 # Is the header compilable?
21447 { echo "$as_me:$LINENO: checking usability" >&5
21448 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21449 cat >conftest.$ac_ext <<_ACEOF
21450 /* confdefs.h. */
21451 _ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h. */
21455 $ac_includes_default
21456 #include <>
21457 _ACEOF
21458 rm -f conftest.$ac_objext
21459 if { (ac_try="$ac_compile"
21460 case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_compile") 2>conftest.er1
21466 ac_status=$?
21467 grep -v '^ *+' conftest.er1 >conftest.err
21468 rm -f conftest.er1
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } && {
21472 test -z "$ac_c_werror_flag" ||
21473 test ! -s conftest.err
21474 } && test -s conftest.$ac_objext; then
21475 ac_header_compiler=yes
21476 else
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21480 ac_header_compiler=no
21483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21485 echo "${ECHO_T}$ac_header_compiler" >&6; }
21487 # Is the header present?
21488 { echo "$as_me:$LINENO: checking presence" >&5
21489 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21490 cat >conftest.$ac_ext <<_ACEOF
21491 /* confdefs.h. */
21492 _ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21496 #include <>
21497 _ACEOF
21498 if { (ac_try="$ac_cpp conftest.$ac_ext"
21499 case "(($ac_try" in
21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21502 esac
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21505 ac_status=$?
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } >/dev/null && {
21511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21512 test ! -s conftest.err
21513 }; then
21514 ac_header_preproc=yes
21515 else
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21519 ac_header_preproc=no
21522 rm -f conftest.err conftest.$ac_ext
21523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21524 echo "${ECHO_T}$ac_header_preproc" >&6; }
21526 # So? What about this header?
21527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21528 yes:no: )
21529 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21530 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21532 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21533 ac_header_preproc=yes
21535 no:yes:* )
21536 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21537 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21538 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21539 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21540 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21541 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21542 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21543 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21544 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21545 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21546 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21547 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21548 ( cat <<\_ASBOX
21549 ## ------------------------------- ##
21550 ## Report this to www.asterisk.org ##
21551 ## ------------------------------- ##
21552 _ASBOX
21553 ) | sed "s/^/$as_me: WARNING: /" >&2
21555 esac
21556 { echo "$as_me:$LINENO: checking for " >&5
21557 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21558 if test "${ac_cv_header_+set}" = set; then
21559 echo $ECHO_N "(cached) $ECHO_C" >&6
21560 else
21561 ac_cv_header_=$ac_header_preproc
21563 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21564 echo "${ECHO_T}$ac_cv_header_" >&6; }
21567 if test $ac_cv_header_ = yes; then
21568 ATANL_HEADER_FOUND=1
21569 else
21570 ATANL_HEADER_FOUND=0
21574 CPPFLAGS="${saved_cppflags}"
21576 if test "x${ATANL_HEADER_FOUND}" = "x0" ; then
21577 ATANL_LIB=""
21578 ATANL_INCLUDE=""
21579 else
21580 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21581 ATANL_LIB=""
21583 PBX_ATANL=1
21584 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21586 cat >>confdefs.h <<_ACEOF
21587 #define HAVE_ATANL 1
21588 _ACEOF
21591 cat >>confdefs.h <<_ACEOF
21592 #define HAVE_ATANL_VERSION
21593 _ACEOF
21600 if test "x${PBX_ATAN2L}" != "x1" -a "${USE_ATAN2L}" != "no"; then
21601 pbxlibdir=""
21602 # if --with-ATAN2L=DIR has been specified, use it.
21603 if test "x${ATAN2L_DIR}" != "x"; then
21604 if test -d ${ATAN2L_DIR}/lib; then
21605 pbxlibdir="-L${ATAN2L_DIR}/lib"
21606 else
21607 pbxlibdir="-L${ATAN2L_DIR}"
21610 pbxfuncname="atan2l"
21611 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21612 AST_ATAN2L_FOUND=yes
21613 else
21614 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21615 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21616 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21617 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21619 else
21620 ac_check_lib_save_LIBS=$LIBS
21621 LIBS="-lm ${pbxlibdir} $LIBS"
21622 cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h. */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21629 /* Override any GCC internal prototype to avoid an error.
21630 Use char because int might match the return type of a GCC
21631 builtin and then its argument prototype would still apply. */
21632 #ifdef __cplusplus
21633 extern "C"
21634 #endif
21635 char ${pbxfuncname} ();
21637 main ()
21639 return ${pbxfuncname} ();
21641 return 0;
21643 _ACEOF
21644 rm -f conftest.$ac_objext conftest$ac_exeext
21645 if { (ac_try="$ac_link"
21646 case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21649 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_link") 2>conftest.er1
21652 ac_status=$?
21653 grep -v '^ *+' conftest.er1 >conftest.err
21654 rm -f conftest.er1
21655 cat conftest.err >&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } && {
21658 test -z "$ac_c_werror_flag" ||
21659 test ! -s conftest.err
21660 } && test -s conftest$ac_exeext &&
21661 $as_test_x conftest$ac_exeext; then
21662 eval "$as_ac_Lib=yes"
21663 else
21664 echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21667 eval "$as_ac_Lib=no"
21670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21671 conftest$ac_exeext conftest.$ac_ext
21672 LIBS=$ac_check_lib_save_LIBS
21674 ac_res=`eval echo '${'$as_ac_Lib'}'`
21675 { echo "$as_me:$LINENO: result: $ac_res" >&5
21676 echo "${ECHO_T}$ac_res" >&6; }
21677 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21678 AST_ATAN2L_FOUND=yes
21679 else
21680 AST_ATAN2L_FOUND=no
21685 # now check for the header.
21686 if test "${AST_ATAN2L_FOUND}" = "yes"; then
21687 ATAN2L_LIB="${pbxlibdir} -lm "
21688 # if --with-ATAN2L=DIR has been specified, use it.
21689 if test "x${ATAN2L_DIR}" != "x"; then
21690 ATAN2L_INCLUDE="-I${ATAN2L_DIR}/include"
21692 ATAN2L_INCLUDE="${ATAN2L_INCLUDE} "
21693 if test "x" = "x" ; then # no header, assume found
21694 ATAN2L_HEADER_FOUND="1"
21695 else # check for the header
21696 saved_cppflags="${CPPFLAGS}"
21697 CPPFLAGS="${CPPFLAGS} ${ATAN2L_INCLUDE} "
21698 if test "${ac_cv_header_+set}" = set; then
21699 { echo "$as_me:$LINENO: checking for " >&5
21700 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21701 if test "${ac_cv_header_+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21704 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21705 echo "${ECHO_T}$ac_cv_header_" >&6; }
21706 else
21707 # Is the header compilable?
21708 { echo "$as_me:$LINENO: checking usability" >&5
21709 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21710 cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h. */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21716 $ac_includes_default
21717 #include <>
21718 _ACEOF
21719 rm -f conftest.$ac_objext
21720 if { (ac_try="$ac_compile"
21721 case "(($ac_try" in
21722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21724 esac
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_compile") 2>conftest.er1
21727 ac_status=$?
21728 grep -v '^ *+' conftest.er1 >conftest.err
21729 rm -f conftest.er1
21730 cat conftest.err >&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); } && {
21733 test -z "$ac_c_werror_flag" ||
21734 test ! -s conftest.err
21735 } && test -s conftest.$ac_objext; then
21736 ac_header_compiler=yes
21737 else
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21741 ac_header_compiler=no
21744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21746 echo "${ECHO_T}$ac_header_compiler" >&6; }
21748 # Is the header present?
21749 { echo "$as_me:$LINENO: checking presence" >&5
21750 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21751 cat >conftest.$ac_ext <<_ACEOF
21752 /* confdefs.h. */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 #include <>
21758 _ACEOF
21759 if { (ac_try="$ac_cpp conftest.$ac_ext"
21760 case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21763 esac
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21766 ac_status=$?
21767 grep -v '^ *+' conftest.er1 >conftest.err
21768 rm -f conftest.er1
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } >/dev/null && {
21772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21773 test ! -s conftest.err
21774 }; then
21775 ac_header_preproc=yes
21776 else
21777 echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21780 ac_header_preproc=no
21783 rm -f conftest.err conftest.$ac_ext
21784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21785 echo "${ECHO_T}$ac_header_preproc" >&6; }
21787 # So? What about this header?
21788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21789 yes:no: )
21790 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21791 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21792 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21793 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21794 ac_header_preproc=yes
21796 no:yes:* )
21797 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21798 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21799 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21800 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21801 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21802 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21804 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21806 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21807 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21808 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21809 ( cat <<\_ASBOX
21810 ## ------------------------------- ##
21811 ## Report this to www.asterisk.org ##
21812 ## ------------------------------- ##
21813 _ASBOX
21814 ) | sed "s/^/$as_me: WARNING: /" >&2
21816 esac
21817 { echo "$as_me:$LINENO: checking for " >&5
21818 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21819 if test "${ac_cv_header_+set}" = set; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21821 else
21822 ac_cv_header_=$ac_header_preproc
21824 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21825 echo "${ECHO_T}$ac_cv_header_" >&6; }
21828 if test $ac_cv_header_ = yes; then
21829 ATAN2L_HEADER_FOUND=1
21830 else
21831 ATAN2L_HEADER_FOUND=0
21835 CPPFLAGS="${saved_cppflags}"
21837 if test "x${ATAN2L_HEADER_FOUND}" = "x0" ; then
21838 ATAN2L_LIB=""
21839 ATAN2L_INCLUDE=""
21840 else
21841 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21842 ATAN2L_LIB=""
21844 PBX_ATAN2L=1
21845 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21847 cat >>confdefs.h <<_ACEOF
21848 #define HAVE_ATAN2L 1
21849 _ACEOF
21852 cat >>confdefs.h <<_ACEOF
21853 #define HAVE_ATAN2L_VERSION
21854 _ACEOF
21861 if test "x${PBX_POWL}" != "x1" -a "${USE_POWL}" != "no"; then
21862 pbxlibdir=""
21863 # if --with-POWL=DIR has been specified, use it.
21864 if test "x${POWL_DIR}" != "x"; then
21865 if test -d ${POWL_DIR}/lib; then
21866 pbxlibdir="-L${POWL_DIR}/lib"
21867 else
21868 pbxlibdir="-L${POWL_DIR}"
21871 pbxfuncname="powl"
21872 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21873 AST_POWL_FOUND=yes
21874 else
21875 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21876 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21877 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21878 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21879 echo $ECHO_N "(cached) $ECHO_C" >&6
21880 else
21881 ac_check_lib_save_LIBS=$LIBS
21882 LIBS="-lm ${pbxlibdir} $LIBS"
21883 cat >conftest.$ac_ext <<_ACEOF
21884 /* confdefs.h. */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21890 /* Override any GCC internal prototype to avoid an error.
21891 Use char because int might match the return type of a GCC
21892 builtin and then its argument prototype would still apply. */
21893 #ifdef __cplusplus
21894 extern "C"
21895 #endif
21896 char ${pbxfuncname} ();
21898 main ()
21900 return ${pbxfuncname} ();
21902 return 0;
21904 _ACEOF
21905 rm -f conftest.$ac_objext conftest$ac_exeext
21906 if { (ac_try="$ac_link"
21907 case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_link") 2>conftest.er1
21913 ac_status=$?
21914 grep -v '^ *+' conftest.er1 >conftest.err
21915 rm -f conftest.er1
21916 cat conftest.err >&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } && {
21919 test -z "$ac_c_werror_flag" ||
21920 test ! -s conftest.err
21921 } && test -s conftest$ac_exeext &&
21922 $as_test_x conftest$ac_exeext; then
21923 eval "$as_ac_Lib=yes"
21924 else
21925 echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21928 eval "$as_ac_Lib=no"
21931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21932 conftest$ac_exeext conftest.$ac_ext
21933 LIBS=$ac_check_lib_save_LIBS
21935 ac_res=`eval echo '${'$as_ac_Lib'}'`
21936 { echo "$as_me:$LINENO: result: $ac_res" >&5
21937 echo "${ECHO_T}$ac_res" >&6; }
21938 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21939 AST_POWL_FOUND=yes
21940 else
21941 AST_POWL_FOUND=no
21946 # now check for the header.
21947 if test "${AST_POWL_FOUND}" = "yes"; then
21948 POWL_LIB="${pbxlibdir} -lm "
21949 # if --with-POWL=DIR has been specified, use it.
21950 if test "x${POWL_DIR}" != "x"; then
21951 POWL_INCLUDE="-I${POWL_DIR}/include"
21953 POWL_INCLUDE="${POWL_INCLUDE} "
21954 if test "x" = "x" ; then # no header, assume found
21955 POWL_HEADER_FOUND="1"
21956 else # check for the header
21957 saved_cppflags="${CPPFLAGS}"
21958 CPPFLAGS="${CPPFLAGS} ${POWL_INCLUDE} "
21959 if test "${ac_cv_header_+set}" = set; then
21960 { echo "$as_me:$LINENO: checking for " >&5
21961 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21962 if test "${ac_cv_header_+set}" = set; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21966 echo "${ECHO_T}$ac_cv_header_" >&6; }
21967 else
21968 # Is the header compilable?
21969 { echo "$as_me:$LINENO: checking usability" >&5
21970 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21971 cat >conftest.$ac_ext <<_ACEOF
21972 /* confdefs.h. */
21973 _ACEOF
21974 cat confdefs.h >>conftest.$ac_ext
21975 cat >>conftest.$ac_ext <<_ACEOF
21976 /* end confdefs.h. */
21977 $ac_includes_default
21978 #include <>
21979 _ACEOF
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_compile") 2>conftest.er1
21988 ac_status=$?
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } && {
21994 test -z "$ac_c_werror_flag" ||
21995 test ! -s conftest.err
21996 } && test -s conftest.$ac_objext; then
21997 ac_header_compiler=yes
21998 else
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ac_header_compiler=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22007 echo "${ECHO_T}$ac_header_compiler" >&6; }
22009 # Is the header present?
22010 { echo "$as_me:$LINENO: checking presence" >&5
22011 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22012 cat >conftest.$ac_ext <<_ACEOF
22013 /* confdefs.h. */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 #include <>
22019 _ACEOF
22020 if { (ac_try="$ac_cpp conftest.$ac_ext"
22021 case "(($ac_try" in
22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023 *) ac_try_echo=$ac_try;;
22024 esac
22025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22027 ac_status=$?
22028 grep -v '^ *+' conftest.er1 >conftest.err
22029 rm -f conftest.er1
22030 cat conftest.err >&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } >/dev/null && {
22033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22034 test ! -s conftest.err
22035 }; then
22036 ac_header_preproc=yes
22037 else
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 ac_header_preproc=no
22044 rm -f conftest.err conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22046 echo "${ECHO_T}$ac_header_preproc" >&6; }
22048 # So? What about this header?
22049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22050 yes:no: )
22051 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22052 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22053 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22054 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22055 ac_header_preproc=yes
22057 no:yes:* )
22058 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22059 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22060 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22061 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22062 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22063 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22064 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22065 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22066 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22067 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22068 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22069 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22070 ( cat <<\_ASBOX
22071 ## ------------------------------- ##
22072 ## Report this to www.asterisk.org ##
22073 ## ------------------------------- ##
22074 _ASBOX
22075 ) | sed "s/^/$as_me: WARNING: /" >&2
22077 esac
22078 { echo "$as_me:$LINENO: checking for " >&5
22079 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22080 if test "${ac_cv_header_+set}" = set; then
22081 echo $ECHO_N "(cached) $ECHO_C" >&6
22082 else
22083 ac_cv_header_=$ac_header_preproc
22085 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22086 echo "${ECHO_T}$ac_cv_header_" >&6; }
22089 if test $ac_cv_header_ = yes; then
22090 POWL_HEADER_FOUND=1
22091 else
22092 POWL_HEADER_FOUND=0
22096 CPPFLAGS="${saved_cppflags}"
22098 if test "x${POWL_HEADER_FOUND}" = "x0" ; then
22099 POWL_LIB=""
22100 POWL_INCLUDE=""
22101 else
22102 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22103 POWL_LIB=""
22105 PBX_POWL=1
22106 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22108 cat >>confdefs.h <<_ACEOF
22109 #define HAVE_POWL 1
22110 _ACEOF
22113 cat >>confdefs.h <<_ACEOF
22114 #define HAVE_POWL_VERSION
22115 _ACEOF
22122 if test "x${PBX_SQRTL}" != "x1" -a "${USE_SQRTL}" != "no"; then
22123 pbxlibdir=""
22124 # if --with-SQRTL=DIR has been specified, use it.
22125 if test "x${SQRTL_DIR}" != "x"; then
22126 if test -d ${SQRTL_DIR}/lib; then
22127 pbxlibdir="-L${SQRTL_DIR}/lib"
22128 else
22129 pbxlibdir="-L${SQRTL_DIR}"
22132 pbxfuncname="sqrtl"
22133 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22134 AST_SQRTL_FOUND=yes
22135 else
22136 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22137 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22138 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22139 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22141 else
22142 ac_check_lib_save_LIBS=$LIBS
22143 LIBS="-lm ${pbxlibdir} $LIBS"
22144 cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h. */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22151 /* Override any GCC internal prototype to avoid an error.
22152 Use char because int might match the return type of a GCC
22153 builtin and then its argument prototype would still apply. */
22154 #ifdef __cplusplus
22155 extern "C"
22156 #endif
22157 char ${pbxfuncname} ();
22159 main ()
22161 return ${pbxfuncname} ();
22163 return 0;
22165 _ACEOF
22166 rm -f conftest.$ac_objext conftest$ac_exeext
22167 if { (ac_try="$ac_link"
22168 case "(($ac_try" in
22169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170 *) ac_try_echo=$ac_try;;
22171 esac
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173 (eval "$ac_link") 2>conftest.er1
22174 ac_status=$?
22175 grep -v '^ *+' conftest.er1 >conftest.err
22176 rm -f conftest.er1
22177 cat conftest.err >&5
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } && {
22180 test -z "$ac_c_werror_flag" ||
22181 test ! -s conftest.err
22182 } && test -s conftest$ac_exeext &&
22183 $as_test_x conftest$ac_exeext; then
22184 eval "$as_ac_Lib=yes"
22185 else
22186 echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22189 eval "$as_ac_Lib=no"
22192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22193 conftest$ac_exeext conftest.$ac_ext
22194 LIBS=$ac_check_lib_save_LIBS
22196 ac_res=`eval echo '${'$as_ac_Lib'}'`
22197 { echo "$as_me:$LINENO: result: $ac_res" >&5
22198 echo "${ECHO_T}$ac_res" >&6; }
22199 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22200 AST_SQRTL_FOUND=yes
22201 else
22202 AST_SQRTL_FOUND=no
22207 # now check for the header.
22208 if test "${AST_SQRTL_FOUND}" = "yes"; then
22209 SQRTL_LIB="${pbxlibdir} -lm "
22210 # if --with-SQRTL=DIR has been specified, use it.
22211 if test "x${SQRTL_DIR}" != "x"; then
22212 SQRTL_INCLUDE="-I${SQRTL_DIR}/include"
22214 SQRTL_INCLUDE="${SQRTL_INCLUDE} "
22215 if test "x" = "x" ; then # no header, assume found
22216 SQRTL_HEADER_FOUND="1"
22217 else # check for the header
22218 saved_cppflags="${CPPFLAGS}"
22219 CPPFLAGS="${CPPFLAGS} ${SQRTL_INCLUDE} "
22220 if test "${ac_cv_header_+set}" = set; then
22221 { echo "$as_me:$LINENO: checking for " >&5
22222 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22223 if test "${ac_cv_header_+set}" = set; then
22224 echo $ECHO_N "(cached) $ECHO_C" >&6
22226 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22227 echo "${ECHO_T}$ac_cv_header_" >&6; }
22228 else
22229 # Is the header compilable?
22230 { echo "$as_me:$LINENO: checking usability" >&5
22231 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22232 cat >conftest.$ac_ext <<_ACEOF
22233 /* confdefs.h. */
22234 _ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h. */
22238 $ac_includes_default
22239 #include <>
22240 _ACEOF
22241 rm -f conftest.$ac_objext
22242 if { (ac_try="$ac_compile"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22246 esac
22247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_compile") 2>conftest.er1
22249 ac_status=$?
22250 grep -v '^ *+' conftest.er1 >conftest.err
22251 rm -f conftest.er1
22252 cat conftest.err >&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } && {
22255 test -z "$ac_c_werror_flag" ||
22256 test ! -s conftest.err
22257 } && test -s conftest.$ac_objext; then
22258 ac_header_compiler=yes
22259 else
22260 echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22263 ac_header_compiler=no
22266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22268 echo "${ECHO_T}$ac_header_compiler" >&6; }
22270 # Is the header present?
22271 { echo "$as_me:$LINENO: checking presence" >&5
22272 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22273 cat >conftest.$ac_ext <<_ACEOF
22274 /* confdefs.h. */
22275 _ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22279 #include <>
22280 _ACEOF
22281 if { (ac_try="$ac_cpp conftest.$ac_ext"
22282 case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22285 esac
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22288 ac_status=$?
22289 grep -v '^ *+' conftest.er1 >conftest.err
22290 rm -f conftest.er1
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } >/dev/null && {
22294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22295 test ! -s conftest.err
22296 }; then
22297 ac_header_preproc=yes
22298 else
22299 echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22302 ac_header_preproc=no
22305 rm -f conftest.err conftest.$ac_ext
22306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22307 echo "${ECHO_T}$ac_header_preproc" >&6; }
22309 # So? What about this header?
22310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22311 yes:no: )
22312 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22313 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22314 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22315 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22316 ac_header_preproc=yes
22318 no:yes:* )
22319 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22320 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22321 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22322 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22323 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22324 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22325 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22326 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22327 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22328 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22329 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22330 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22331 ( cat <<\_ASBOX
22332 ## ------------------------------- ##
22333 ## Report this to www.asterisk.org ##
22334 ## ------------------------------- ##
22335 _ASBOX
22336 ) | sed "s/^/$as_me: WARNING: /" >&2
22338 esac
22339 { echo "$as_me:$LINENO: checking for " >&5
22340 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22341 if test "${ac_cv_header_+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344 ac_cv_header_=$ac_header_preproc
22346 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22347 echo "${ECHO_T}$ac_cv_header_" >&6; }
22350 if test $ac_cv_header_ = yes; then
22351 SQRTL_HEADER_FOUND=1
22352 else
22353 SQRTL_HEADER_FOUND=0
22357 CPPFLAGS="${saved_cppflags}"
22359 if test "x${SQRTL_HEADER_FOUND}" = "x0" ; then
22360 SQRTL_LIB=""
22361 SQRTL_INCLUDE=""
22362 else
22363 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22364 SQRTL_LIB=""
22366 PBX_SQRTL=1
22367 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22369 cat >>confdefs.h <<_ACEOF
22370 #define HAVE_SQRTL 1
22371 _ACEOF
22374 cat >>confdefs.h <<_ACEOF
22375 #define HAVE_SQRTL_VERSION
22376 _ACEOF
22383 if test "x${PBX_RINTL}" != "x1" -a "${USE_RINTL}" != "no"; then
22384 pbxlibdir=""
22385 # if --with-RINTL=DIR has been specified, use it.
22386 if test "x${RINTL_DIR}" != "x"; then
22387 if test -d ${RINTL_DIR}/lib; then
22388 pbxlibdir="-L${RINTL_DIR}/lib"
22389 else
22390 pbxlibdir="-L${RINTL_DIR}"
22393 pbxfuncname="rintl"
22394 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22395 AST_RINTL_FOUND=yes
22396 else
22397 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22398 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22399 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22400 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22401 echo $ECHO_N "(cached) $ECHO_C" >&6
22402 else
22403 ac_check_lib_save_LIBS=$LIBS
22404 LIBS="-lm ${pbxlibdir} $LIBS"
22405 cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h. */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22412 /* Override any GCC internal prototype to avoid an error.
22413 Use char because int might match the return type of a GCC
22414 builtin and then its argument prototype would still apply. */
22415 #ifdef __cplusplus
22416 extern "C"
22417 #endif
22418 char ${pbxfuncname} ();
22420 main ()
22422 return ${pbxfuncname} ();
22424 return 0;
22426 _ACEOF
22427 rm -f conftest.$ac_objext conftest$ac_exeext
22428 if { (ac_try="$ac_link"
22429 case "(($ac_try" in
22430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22431 *) ac_try_echo=$ac_try;;
22432 esac
22433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22434 (eval "$ac_link") 2>conftest.er1
22435 ac_status=$?
22436 grep -v '^ *+' conftest.er1 >conftest.err
22437 rm -f conftest.er1
22438 cat conftest.err >&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } && {
22441 test -z "$ac_c_werror_flag" ||
22442 test ! -s conftest.err
22443 } && test -s conftest$ac_exeext &&
22444 $as_test_x conftest$ac_exeext; then
22445 eval "$as_ac_Lib=yes"
22446 else
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 eval "$as_ac_Lib=no"
22453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22454 conftest$ac_exeext conftest.$ac_ext
22455 LIBS=$ac_check_lib_save_LIBS
22457 ac_res=`eval echo '${'$as_ac_Lib'}'`
22458 { echo "$as_me:$LINENO: result: $ac_res" >&5
22459 echo "${ECHO_T}$ac_res" >&6; }
22460 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22461 AST_RINTL_FOUND=yes
22462 else
22463 AST_RINTL_FOUND=no
22468 # now check for the header.
22469 if test "${AST_RINTL_FOUND}" = "yes"; then
22470 RINTL_LIB="${pbxlibdir} -lm "
22471 # if --with-RINTL=DIR has been specified, use it.
22472 if test "x${RINTL_DIR}" != "x"; then
22473 RINTL_INCLUDE="-I${RINTL_DIR}/include"
22475 RINTL_INCLUDE="${RINTL_INCLUDE} "
22476 if test "x" = "x" ; then # no header, assume found
22477 RINTL_HEADER_FOUND="1"
22478 else # check for the header
22479 saved_cppflags="${CPPFLAGS}"
22480 CPPFLAGS="${CPPFLAGS} ${RINTL_INCLUDE} "
22481 if test "${ac_cv_header_+set}" = set; then
22482 { echo "$as_me:$LINENO: checking for " >&5
22483 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22484 if test "${ac_cv_header_+set}" = set; then
22485 echo $ECHO_N "(cached) $ECHO_C" >&6
22487 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22488 echo "${ECHO_T}$ac_cv_header_" >&6; }
22489 else
22490 # Is the header compilable?
22491 { echo "$as_me:$LINENO: checking usability" >&5
22492 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22493 cat >conftest.$ac_ext <<_ACEOF
22494 /* confdefs.h. */
22495 _ACEOF
22496 cat confdefs.h >>conftest.$ac_ext
22497 cat >>conftest.$ac_ext <<_ACEOF
22498 /* end confdefs.h. */
22499 $ac_includes_default
22500 #include <>
22501 _ACEOF
22502 rm -f conftest.$ac_objext
22503 if { (ac_try="$ac_compile"
22504 case "(($ac_try" in
22505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22506 *) ac_try_echo=$ac_try;;
22507 esac
22508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22509 (eval "$ac_compile") 2>conftest.er1
22510 ac_status=$?
22511 grep -v '^ *+' conftest.er1 >conftest.err
22512 rm -f conftest.er1
22513 cat conftest.err >&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } && {
22516 test -z "$ac_c_werror_flag" ||
22517 test ! -s conftest.err
22518 } && test -s conftest.$ac_objext; then
22519 ac_header_compiler=yes
22520 else
22521 echo "$as_me: failed program was:" >&5
22522 sed 's/^/| /' conftest.$ac_ext >&5
22524 ac_header_compiler=no
22527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22529 echo "${ECHO_T}$ac_header_compiler" >&6; }
22531 # Is the header present?
22532 { echo "$as_me:$LINENO: checking presence" >&5
22533 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22534 cat >conftest.$ac_ext <<_ACEOF
22535 /* confdefs.h. */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 #include <>
22541 _ACEOF
22542 if { (ac_try="$ac_cpp conftest.$ac_ext"
22543 case "(($ac_try" in
22544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545 *) ac_try_echo=$ac_try;;
22546 esac
22547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22549 ac_status=$?
22550 grep -v '^ *+' conftest.er1 >conftest.err
22551 rm -f conftest.er1
22552 cat conftest.err >&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); } >/dev/null && {
22555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22556 test ! -s conftest.err
22557 }; then
22558 ac_header_preproc=yes
22559 else
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22563 ac_header_preproc=no
22566 rm -f conftest.err conftest.$ac_ext
22567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22568 echo "${ECHO_T}$ac_header_preproc" >&6; }
22570 # So? What about this header?
22571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22572 yes:no: )
22573 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22574 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22575 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22576 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22577 ac_header_preproc=yes
22579 no:yes:* )
22580 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22581 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22582 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22583 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22584 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22585 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22586 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22587 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22588 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22589 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22590 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22591 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22592 ( cat <<\_ASBOX
22593 ## ------------------------------- ##
22594 ## Report this to www.asterisk.org ##
22595 ## ------------------------------- ##
22596 _ASBOX
22597 ) | sed "s/^/$as_me: WARNING: /" >&2
22599 esac
22600 { echo "$as_me:$LINENO: checking for " >&5
22601 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22602 if test "${ac_cv_header_+set}" = set; then
22603 echo $ECHO_N "(cached) $ECHO_C" >&6
22604 else
22605 ac_cv_header_=$ac_header_preproc
22607 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22608 echo "${ECHO_T}$ac_cv_header_" >&6; }
22611 if test $ac_cv_header_ = yes; then
22612 RINTL_HEADER_FOUND=1
22613 else
22614 RINTL_HEADER_FOUND=0
22618 CPPFLAGS="${saved_cppflags}"
22620 if test "x${RINTL_HEADER_FOUND}" = "x0" ; then
22621 RINTL_LIB=""
22622 RINTL_INCLUDE=""
22623 else
22624 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22625 RINTL_LIB=""
22627 PBX_RINTL=1
22628 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22630 cat >>confdefs.h <<_ACEOF
22631 #define HAVE_RINTL 1
22632 _ACEOF
22635 cat >>confdefs.h <<_ACEOF
22636 #define HAVE_RINTL_VERSION
22637 _ACEOF
22644 if test "x${PBX_EXPL}" != "x1" -a "${USE_EXPL}" != "no"; then
22645 pbxlibdir=""
22646 # if --with-EXPL=DIR has been specified, use it.
22647 if test "x${EXPL_DIR}" != "x"; then
22648 if test -d ${EXPL_DIR}/lib; then
22649 pbxlibdir="-L${EXPL_DIR}/lib"
22650 else
22651 pbxlibdir="-L${EXPL_DIR}"
22654 pbxfuncname="expl"
22655 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22656 AST_EXPL_FOUND=yes
22657 else
22658 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22659 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22660 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22661 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22662 echo $ECHO_N "(cached) $ECHO_C" >&6
22663 else
22664 ac_check_lib_save_LIBS=$LIBS
22665 LIBS="-lm ${pbxlibdir} $LIBS"
22666 cat >conftest.$ac_ext <<_ACEOF
22667 /* confdefs.h. */
22668 _ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22673 /* Override any GCC internal prototype to avoid an error.
22674 Use char because int might match the return type of a GCC
22675 builtin and then its argument prototype would still apply. */
22676 #ifdef __cplusplus
22677 extern "C"
22678 #endif
22679 char ${pbxfuncname} ();
22681 main ()
22683 return ${pbxfuncname} ();
22685 return 0;
22687 _ACEOF
22688 rm -f conftest.$ac_objext conftest$ac_exeext
22689 if { (ac_try="$ac_link"
22690 case "(($ac_try" in
22691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22692 *) ac_try_echo=$ac_try;;
22693 esac
22694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22695 (eval "$ac_link") 2>conftest.er1
22696 ac_status=$?
22697 grep -v '^ *+' conftest.er1 >conftest.err
22698 rm -f conftest.er1
22699 cat conftest.err >&5
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); } && {
22702 test -z "$ac_c_werror_flag" ||
22703 test ! -s conftest.err
22704 } && test -s conftest$ac_exeext &&
22705 $as_test_x conftest$ac_exeext; then
22706 eval "$as_ac_Lib=yes"
22707 else
22708 echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22711 eval "$as_ac_Lib=no"
22714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22715 conftest$ac_exeext conftest.$ac_ext
22716 LIBS=$ac_check_lib_save_LIBS
22718 ac_res=`eval echo '${'$as_ac_Lib'}'`
22719 { echo "$as_me:$LINENO: result: $ac_res" >&5
22720 echo "${ECHO_T}$ac_res" >&6; }
22721 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22722 AST_EXPL_FOUND=yes
22723 else
22724 AST_EXPL_FOUND=no
22729 # now check for the header.
22730 if test "${AST_EXPL_FOUND}" = "yes"; then
22731 EXPL_LIB="${pbxlibdir} -lm "
22732 # if --with-EXPL=DIR has been specified, use it.
22733 if test "x${EXPL_DIR}" != "x"; then
22734 EXPL_INCLUDE="-I${EXPL_DIR}/include"
22736 EXPL_INCLUDE="${EXPL_INCLUDE} "
22737 if test "x" = "x" ; then # no header, assume found
22738 EXPL_HEADER_FOUND="1"
22739 else # check for the header
22740 saved_cppflags="${CPPFLAGS}"
22741 CPPFLAGS="${CPPFLAGS} ${EXPL_INCLUDE} "
22742 if test "${ac_cv_header_+set}" = set; then
22743 { echo "$as_me:$LINENO: checking for " >&5
22744 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22745 if test "${ac_cv_header_+set}" = set; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22748 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22749 echo "${ECHO_T}$ac_cv_header_" >&6; }
22750 else
22751 # Is the header compilable?
22752 { echo "$as_me:$LINENO: checking usability" >&5
22753 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22754 cat >conftest.$ac_ext <<_ACEOF
22755 /* confdefs.h. */
22756 _ACEOF
22757 cat confdefs.h >>conftest.$ac_ext
22758 cat >>conftest.$ac_ext <<_ACEOF
22759 /* end confdefs.h. */
22760 $ac_includes_default
22761 #include <>
22762 _ACEOF
22763 rm -f conftest.$ac_objext
22764 if { (ac_try="$ac_compile"
22765 case "(($ac_try" in
22766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767 *) ac_try_echo=$ac_try;;
22768 esac
22769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22770 (eval "$ac_compile") 2>conftest.er1
22771 ac_status=$?
22772 grep -v '^ *+' conftest.er1 >conftest.err
22773 rm -f conftest.er1
22774 cat conftest.err >&5
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); } && {
22777 test -z "$ac_c_werror_flag" ||
22778 test ! -s conftest.err
22779 } && test -s conftest.$ac_objext; then
22780 ac_header_compiler=yes
22781 else
22782 echo "$as_me: failed program was:" >&5
22783 sed 's/^/| /' conftest.$ac_ext >&5
22785 ac_header_compiler=no
22788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22790 echo "${ECHO_T}$ac_header_compiler" >&6; }
22792 # Is the header present?
22793 { echo "$as_me:$LINENO: checking presence" >&5
22794 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22795 cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h. */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22801 #include <>
22802 _ACEOF
22803 if { (ac_try="$ac_cpp conftest.$ac_ext"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22807 esac
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22810 ac_status=$?
22811 grep -v '^ *+' conftest.er1 >conftest.err
22812 rm -f conftest.er1
22813 cat conftest.err >&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } >/dev/null && {
22816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22817 test ! -s conftest.err
22818 }; then
22819 ac_header_preproc=yes
22820 else
22821 echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22824 ac_header_preproc=no
22827 rm -f conftest.err conftest.$ac_ext
22828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22829 echo "${ECHO_T}$ac_header_preproc" >&6; }
22831 # So? What about this header?
22832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22833 yes:no: )
22834 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22835 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22836 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22837 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22838 ac_header_preproc=yes
22840 no:yes:* )
22841 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22842 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22843 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22844 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22845 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22846 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22847 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22848 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22849 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22850 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22851 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22852 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22853 ( cat <<\_ASBOX
22854 ## ------------------------------- ##
22855 ## Report this to www.asterisk.org ##
22856 ## ------------------------------- ##
22857 _ASBOX
22858 ) | sed "s/^/$as_me: WARNING: /" >&2
22860 esac
22861 { echo "$as_me:$LINENO: checking for " >&5
22862 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22863 if test "${ac_cv_header_+set}" = set; then
22864 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 else
22866 ac_cv_header_=$ac_header_preproc
22868 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22869 echo "${ECHO_T}$ac_cv_header_" >&6; }
22872 if test $ac_cv_header_ = yes; then
22873 EXPL_HEADER_FOUND=1
22874 else
22875 EXPL_HEADER_FOUND=0
22879 CPPFLAGS="${saved_cppflags}"
22881 if test "x${EXPL_HEADER_FOUND}" = "x0" ; then
22882 EXPL_LIB=""
22883 EXPL_INCLUDE=""
22884 else
22885 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22886 EXPL_LIB=""
22888 PBX_EXPL=1
22889 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22891 cat >>confdefs.h <<_ACEOF
22892 #define HAVE_EXPL 1
22893 _ACEOF
22896 cat >>confdefs.h <<_ACEOF
22897 #define HAVE_EXPL_VERSION
22898 _ACEOF
22905 if test "x${PBX_LOGL}" != "x1" -a "${USE_LOGL}" != "no"; then
22906 pbxlibdir=""
22907 # if --with-LOGL=DIR has been specified, use it.
22908 if test "x${LOGL_DIR}" != "x"; then
22909 if test -d ${LOGL_DIR}/lib; then
22910 pbxlibdir="-L${LOGL_DIR}/lib"
22911 else
22912 pbxlibdir="-L${LOGL_DIR}"
22915 pbxfuncname="logl"
22916 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22917 AST_LOGL_FOUND=yes
22918 else
22919 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22920 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22921 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22922 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22923 echo $ECHO_N "(cached) $ECHO_C" >&6
22924 else
22925 ac_check_lib_save_LIBS=$LIBS
22926 LIBS="-lm ${pbxlibdir} $LIBS"
22927 cat >conftest.$ac_ext <<_ACEOF
22928 /* confdefs.h. */
22929 _ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h. */
22934 /* Override any GCC internal prototype to avoid an error.
22935 Use char because int might match the return type of a GCC
22936 builtin and then its argument prototype would still apply. */
22937 #ifdef __cplusplus
22938 extern "C"
22939 #endif
22940 char ${pbxfuncname} ();
22942 main ()
22944 return ${pbxfuncname} ();
22946 return 0;
22948 _ACEOF
22949 rm -f conftest.$ac_objext conftest$ac_exeext
22950 if { (ac_try="$ac_link"
22951 case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22954 esac
22955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956 (eval "$ac_link") 2>conftest.er1
22957 ac_status=$?
22958 grep -v '^ *+' conftest.er1 >conftest.err
22959 rm -f conftest.er1
22960 cat conftest.err >&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } && {
22963 test -z "$ac_c_werror_flag" ||
22964 test ! -s conftest.err
22965 } && test -s conftest$ac_exeext &&
22966 $as_test_x conftest$ac_exeext; then
22967 eval "$as_ac_Lib=yes"
22968 else
22969 echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22972 eval "$as_ac_Lib=no"
22975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22976 conftest$ac_exeext conftest.$ac_ext
22977 LIBS=$ac_check_lib_save_LIBS
22979 ac_res=`eval echo '${'$as_ac_Lib'}'`
22980 { echo "$as_me:$LINENO: result: $ac_res" >&5
22981 echo "${ECHO_T}$ac_res" >&6; }
22982 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22983 AST_LOGL_FOUND=yes
22984 else
22985 AST_LOGL_FOUND=no
22990 # now check for the header.
22991 if test "${AST_LOGL_FOUND}" = "yes"; then
22992 LOGL_LIB="${pbxlibdir} -lm "
22993 # if --with-LOGL=DIR has been specified, use it.
22994 if test "x${LOGL_DIR}" != "x"; then
22995 LOGL_INCLUDE="-I${LOGL_DIR}/include"
22997 LOGL_INCLUDE="${LOGL_INCLUDE} "
22998 if test "x" = "x" ; then # no header, assume found
22999 LOGL_HEADER_FOUND="1"
23000 else # check for the header
23001 saved_cppflags="${CPPFLAGS}"
23002 CPPFLAGS="${CPPFLAGS} ${LOGL_INCLUDE} "
23003 if test "${ac_cv_header_+set}" = set; then
23004 { echo "$as_me:$LINENO: checking for " >&5
23005 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23006 if test "${ac_cv_header_+set}" = set; then
23007 echo $ECHO_N "(cached) $ECHO_C" >&6
23009 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23010 echo "${ECHO_T}$ac_cv_header_" >&6; }
23011 else
23012 # Is the header compilable?
23013 { echo "$as_me:$LINENO: checking usability" >&5
23014 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23015 cat >conftest.$ac_ext <<_ACEOF
23016 /* confdefs.h. */
23017 _ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h. */
23021 $ac_includes_default
23022 #include <>
23023 _ACEOF
23024 rm -f conftest.$ac_objext
23025 if { (ac_try="$ac_compile"
23026 case "(($ac_try" in
23027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23028 *) ac_try_echo=$ac_try;;
23029 esac
23030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23031 (eval "$ac_compile") 2>conftest.er1
23032 ac_status=$?
23033 grep -v '^ *+' conftest.er1 >conftest.err
23034 rm -f conftest.er1
23035 cat conftest.err >&5
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); } && {
23038 test -z "$ac_c_werror_flag" ||
23039 test ! -s conftest.err
23040 } && test -s conftest.$ac_objext; then
23041 ac_header_compiler=yes
23042 else
23043 echo "$as_me: failed program was:" >&5
23044 sed 's/^/| /' conftest.$ac_ext >&5
23046 ac_header_compiler=no
23049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23051 echo "${ECHO_T}$ac_header_compiler" >&6; }
23053 # Is the header present?
23054 { echo "$as_me:$LINENO: checking presence" >&5
23055 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23056 cat >conftest.$ac_ext <<_ACEOF
23057 /* confdefs.h. */
23058 _ACEOF
23059 cat confdefs.h >>conftest.$ac_ext
23060 cat >>conftest.$ac_ext <<_ACEOF
23061 /* end confdefs.h. */
23062 #include <>
23063 _ACEOF
23064 if { (ac_try="$ac_cpp conftest.$ac_ext"
23065 case "(($ac_try" in
23066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23067 *) ac_try_echo=$ac_try;;
23068 esac
23069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23071 ac_status=$?
23072 grep -v '^ *+' conftest.er1 >conftest.err
23073 rm -f conftest.er1
23074 cat conftest.err >&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } >/dev/null && {
23077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23078 test ! -s conftest.err
23079 }; then
23080 ac_header_preproc=yes
23081 else
23082 echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23085 ac_header_preproc=no
23088 rm -f conftest.err conftest.$ac_ext
23089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23090 echo "${ECHO_T}$ac_header_preproc" >&6; }
23092 # So? What about this header?
23093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23094 yes:no: )
23095 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23096 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23097 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23098 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23099 ac_header_preproc=yes
23101 no:yes:* )
23102 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23103 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23104 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23105 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23106 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23107 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23108 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23109 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23110 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23111 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23112 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23113 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23114 ( cat <<\_ASBOX
23115 ## ------------------------------- ##
23116 ## Report this to www.asterisk.org ##
23117 ## ------------------------------- ##
23118 _ASBOX
23119 ) | sed "s/^/$as_me: WARNING: /" >&2
23121 esac
23122 { echo "$as_me:$LINENO: checking for " >&5
23123 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23124 if test "${ac_cv_header_+set}" = set; then
23125 echo $ECHO_N "(cached) $ECHO_C" >&6
23126 else
23127 ac_cv_header_=$ac_header_preproc
23129 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23130 echo "${ECHO_T}$ac_cv_header_" >&6; }
23133 if test $ac_cv_header_ = yes; then
23134 LOGL_HEADER_FOUND=1
23135 else
23136 LOGL_HEADER_FOUND=0
23140 CPPFLAGS="${saved_cppflags}"
23142 if test "x${LOGL_HEADER_FOUND}" = "x0" ; then
23143 LOGL_LIB=""
23144 LOGL_INCLUDE=""
23145 else
23146 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23147 LOGL_LIB=""
23149 PBX_LOGL=1
23150 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23152 cat >>confdefs.h <<_ACEOF
23153 #define HAVE_LOGL 1
23154 _ACEOF
23157 cat >>confdefs.h <<_ACEOF
23158 #define HAVE_LOGL_VERSION
23159 _ACEOF
23166 if test "x${PBX_REMAINDERL}" != "x1" -a "${USE_REMAINDERL}" != "no"; then
23167 pbxlibdir=""
23168 # if --with-REMAINDERL=DIR has been specified, use it.
23169 if test "x${REMAINDERL_DIR}" != "x"; then
23170 if test -d ${REMAINDERL_DIR}/lib; then
23171 pbxlibdir="-L${REMAINDERL_DIR}/lib"
23172 else
23173 pbxlibdir="-L${REMAINDERL_DIR}"
23176 pbxfuncname="remainderl"
23177 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23178 AST_REMAINDERL_FOUND=yes
23179 else
23180 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23181 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23182 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23183 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23184 echo $ECHO_N "(cached) $ECHO_C" >&6
23185 else
23186 ac_check_lib_save_LIBS=$LIBS
23187 LIBS="-lm ${pbxlibdir} $LIBS"
23188 cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h. */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23195 /* Override any GCC internal prototype to avoid an error.
23196 Use char because int might match the return type of a GCC
23197 builtin and then its argument prototype would still apply. */
23198 #ifdef __cplusplus
23199 extern "C"
23200 #endif
23201 char ${pbxfuncname} ();
23203 main ()
23205 return ${pbxfuncname} ();
23207 return 0;
23209 _ACEOF
23210 rm -f conftest.$ac_objext conftest$ac_exeext
23211 if { (ac_try="$ac_link"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23215 esac
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217 (eval "$ac_link") 2>conftest.er1
23218 ac_status=$?
23219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } && {
23224 test -z "$ac_c_werror_flag" ||
23225 test ! -s conftest.err
23226 } && test -s conftest$ac_exeext &&
23227 $as_test_x conftest$ac_exeext; then
23228 eval "$as_ac_Lib=yes"
23229 else
23230 echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 eval "$as_ac_Lib=no"
23236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23237 conftest$ac_exeext conftest.$ac_ext
23238 LIBS=$ac_check_lib_save_LIBS
23240 ac_res=`eval echo '${'$as_ac_Lib'}'`
23241 { echo "$as_me:$LINENO: result: $ac_res" >&5
23242 echo "${ECHO_T}$ac_res" >&6; }
23243 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23244 AST_REMAINDERL_FOUND=yes
23245 else
23246 AST_REMAINDERL_FOUND=no
23251 # now check for the header.
23252 if test "${AST_REMAINDERL_FOUND}" = "yes"; then
23253 REMAINDERL_LIB="${pbxlibdir} -lm "
23254 # if --with-REMAINDERL=DIR has been specified, use it.
23255 if test "x${REMAINDERL_DIR}" != "x"; then
23256 REMAINDERL_INCLUDE="-I${REMAINDERL_DIR}/include"
23258 REMAINDERL_INCLUDE="${REMAINDERL_INCLUDE} "
23259 if test "x" = "x" ; then # no header, assume found
23260 REMAINDERL_HEADER_FOUND="1"
23261 else # check for the header
23262 saved_cppflags="${CPPFLAGS}"
23263 CPPFLAGS="${CPPFLAGS} ${REMAINDERL_INCLUDE} "
23264 if test "${ac_cv_header_+set}" = set; then
23265 { echo "$as_me:$LINENO: checking for " >&5
23266 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23267 if test "${ac_cv_header_+set}" = set; then
23268 echo $ECHO_N "(cached) $ECHO_C" >&6
23270 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23271 echo "${ECHO_T}$ac_cv_header_" >&6; }
23272 else
23273 # Is the header compilable?
23274 { echo "$as_me:$LINENO: checking usability" >&5
23275 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23276 cat >conftest.$ac_ext <<_ACEOF
23277 /* confdefs.h. */
23278 _ACEOF
23279 cat confdefs.h >>conftest.$ac_ext
23280 cat >>conftest.$ac_ext <<_ACEOF
23281 /* end confdefs.h. */
23282 $ac_includes_default
23283 #include <>
23284 _ACEOF
23285 rm -f conftest.$ac_objext
23286 if { (ac_try="$ac_compile"
23287 case "(($ac_try" in
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23290 esac
23291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23292 (eval "$ac_compile") 2>conftest.er1
23293 ac_status=$?
23294 grep -v '^ *+' conftest.er1 >conftest.err
23295 rm -f conftest.er1
23296 cat conftest.err >&5
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); } && {
23299 test -z "$ac_c_werror_flag" ||
23300 test ! -s conftest.err
23301 } && test -s conftest.$ac_objext; then
23302 ac_header_compiler=yes
23303 else
23304 echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 ac_header_compiler=no
23310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23312 echo "${ECHO_T}$ac_header_compiler" >&6; }
23314 # Is the header present?
23315 { echo "$as_me:$LINENO: checking presence" >&5
23316 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23317 cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h. */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 #include <>
23324 _ACEOF
23325 if { (ac_try="$ac_cpp conftest.$ac_ext"
23326 case "(($ac_try" in
23327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23329 esac
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23332 ac_status=$?
23333 grep -v '^ *+' conftest.er1 >conftest.err
23334 rm -f conftest.er1
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } >/dev/null && {
23338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23339 test ! -s conftest.err
23340 }; then
23341 ac_header_preproc=yes
23342 else
23343 echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23346 ac_header_preproc=no
23349 rm -f conftest.err conftest.$ac_ext
23350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23351 echo "${ECHO_T}$ac_header_preproc" >&6; }
23353 # So? What about this header?
23354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23355 yes:no: )
23356 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23357 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23358 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23359 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23360 ac_header_preproc=yes
23362 no:yes:* )
23363 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23364 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23365 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23366 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23367 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23368 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23369 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23370 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23371 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23372 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23373 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23374 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23375 ( cat <<\_ASBOX
23376 ## ------------------------------- ##
23377 ## Report this to www.asterisk.org ##
23378 ## ------------------------------- ##
23379 _ASBOX
23380 ) | sed "s/^/$as_me: WARNING: /" >&2
23382 esac
23383 { echo "$as_me:$LINENO: checking for " >&5
23384 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23385 if test "${ac_cv_header_+set}" = set; then
23386 echo $ECHO_N "(cached) $ECHO_C" >&6
23387 else
23388 ac_cv_header_=$ac_header_preproc
23390 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23391 echo "${ECHO_T}$ac_cv_header_" >&6; }
23394 if test $ac_cv_header_ = yes; then
23395 REMAINDERL_HEADER_FOUND=1
23396 else
23397 REMAINDERL_HEADER_FOUND=0
23401 CPPFLAGS="${saved_cppflags}"
23403 if test "x${REMAINDERL_HEADER_FOUND}" = "x0" ; then
23404 REMAINDERL_LIB=""
23405 REMAINDERL_INCLUDE=""
23406 else
23407 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23408 REMAINDERL_LIB=""
23410 PBX_REMAINDERL=1
23411 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23413 cat >>confdefs.h <<_ACEOF
23414 #define HAVE_REMAINDERL 1
23415 _ACEOF
23418 cat >>confdefs.h <<_ACEOF
23419 #define HAVE_REMAINDERL_VERSION
23420 _ACEOF
23427 if test "x${PBX_FMODL}" != "x1" -a "${USE_FMODL}" != "no"; then
23428 pbxlibdir=""
23429 # if --with-FMODL=DIR has been specified, use it.
23430 if test "x${FMODL_DIR}" != "x"; then
23431 if test -d ${FMODL_DIR}/lib; then
23432 pbxlibdir="-L${FMODL_DIR}/lib"
23433 else
23434 pbxlibdir="-L${FMODL_DIR}"
23437 pbxfuncname="fmodl"
23438 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23439 AST_FMODL_FOUND=yes
23440 else
23441 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23442 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23443 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23444 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23445 echo $ECHO_N "(cached) $ECHO_C" >&6
23446 else
23447 ac_check_lib_save_LIBS=$LIBS
23448 LIBS="-lm ${pbxlibdir} $LIBS"
23449 cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h. */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23456 /* Override any GCC internal prototype to avoid an error.
23457 Use char because int might match the return type of a GCC
23458 builtin and then its argument prototype would still apply. */
23459 #ifdef __cplusplus
23460 extern "C"
23461 #endif
23462 char ${pbxfuncname} ();
23464 main ()
23466 return ${pbxfuncname} ();
23468 return 0;
23470 _ACEOF
23471 rm -f conftest.$ac_objext conftest$ac_exeext
23472 if { (ac_try="$ac_link"
23473 case "(($ac_try" in
23474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475 *) ac_try_echo=$ac_try;;
23476 esac
23477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23478 (eval "$ac_link") 2>conftest.er1
23479 ac_status=$?
23480 grep -v '^ *+' conftest.er1 >conftest.err
23481 rm -f conftest.er1
23482 cat conftest.err >&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } && {
23485 test -z "$ac_c_werror_flag" ||
23486 test ! -s conftest.err
23487 } && test -s conftest$ac_exeext &&
23488 $as_test_x conftest$ac_exeext; then
23489 eval "$as_ac_Lib=yes"
23490 else
23491 echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23494 eval "$as_ac_Lib=no"
23497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23498 conftest$ac_exeext conftest.$ac_ext
23499 LIBS=$ac_check_lib_save_LIBS
23501 ac_res=`eval echo '${'$as_ac_Lib'}'`
23502 { echo "$as_me:$LINENO: result: $ac_res" >&5
23503 echo "${ECHO_T}$ac_res" >&6; }
23504 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23505 AST_FMODL_FOUND=yes
23506 else
23507 AST_FMODL_FOUND=no
23512 # now check for the header.
23513 if test "${AST_FMODL_FOUND}" = "yes"; then
23514 FMODL_LIB="${pbxlibdir} -lm "
23515 # if --with-FMODL=DIR has been specified, use it.
23516 if test "x${FMODL_DIR}" != "x"; then
23517 FMODL_INCLUDE="-I${FMODL_DIR}/include"
23519 FMODL_INCLUDE="${FMODL_INCLUDE} "
23520 if test "x" = "x" ; then # no header, assume found
23521 FMODL_HEADER_FOUND="1"
23522 else # check for the header
23523 saved_cppflags="${CPPFLAGS}"
23524 CPPFLAGS="${CPPFLAGS} ${FMODL_INCLUDE} "
23525 if test "${ac_cv_header_+set}" = set; then
23526 { echo "$as_me:$LINENO: checking for " >&5
23527 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23528 if test "${ac_cv_header_+set}" = set; then
23529 echo $ECHO_N "(cached) $ECHO_C" >&6
23531 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23532 echo "${ECHO_T}$ac_cv_header_" >&6; }
23533 else
23534 # Is the header compilable?
23535 { echo "$as_me:$LINENO: checking usability" >&5
23536 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23537 cat >conftest.$ac_ext <<_ACEOF
23538 /* confdefs.h. */
23539 _ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h. */
23543 $ac_includes_default
23544 #include <>
23545 _ACEOF
23546 rm -f conftest.$ac_objext
23547 if { (ac_try="$ac_compile"
23548 case "(($ac_try" in
23549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23550 *) ac_try_echo=$ac_try;;
23551 esac
23552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23553 (eval "$ac_compile") 2>conftest.er1
23554 ac_status=$?
23555 grep -v '^ *+' conftest.er1 >conftest.err
23556 rm -f conftest.er1
23557 cat conftest.err >&5
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); } && {
23560 test -z "$ac_c_werror_flag" ||
23561 test ! -s conftest.err
23562 } && test -s conftest.$ac_objext; then
23563 ac_header_compiler=yes
23564 else
23565 echo "$as_me: failed program was:" >&5
23566 sed 's/^/| /' conftest.$ac_ext >&5
23568 ac_header_compiler=no
23571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23573 echo "${ECHO_T}$ac_header_compiler" >&6; }
23575 # Is the header present?
23576 { echo "$as_me:$LINENO: checking presence" >&5
23577 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23578 cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h. */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584 #include <>
23585 _ACEOF
23586 if { (ac_try="$ac_cpp conftest.$ac_ext"
23587 case "(($ac_try" in
23588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23589 *) ac_try_echo=$ac_try;;
23590 esac
23591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23593 ac_status=$?
23594 grep -v '^ *+' conftest.er1 >conftest.err
23595 rm -f conftest.er1
23596 cat conftest.err >&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); } >/dev/null && {
23599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23600 test ! -s conftest.err
23601 }; then
23602 ac_header_preproc=yes
23603 else
23604 echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23607 ac_header_preproc=no
23610 rm -f conftest.err conftest.$ac_ext
23611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23612 echo "${ECHO_T}$ac_header_preproc" >&6; }
23614 # So? What about this header?
23615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23616 yes:no: )
23617 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23618 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23619 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23620 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23621 ac_header_preproc=yes
23623 no:yes:* )
23624 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23625 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23626 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23627 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23628 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23629 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23630 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23631 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23632 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23633 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23634 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23635 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23636 ( cat <<\_ASBOX
23637 ## ------------------------------- ##
23638 ## Report this to www.asterisk.org ##
23639 ## ------------------------------- ##
23640 _ASBOX
23641 ) | sed "s/^/$as_me: WARNING: /" >&2
23643 esac
23644 { echo "$as_me:$LINENO: checking for " >&5
23645 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23646 if test "${ac_cv_header_+set}" = set; then
23647 echo $ECHO_N "(cached) $ECHO_C" >&6
23648 else
23649 ac_cv_header_=$ac_header_preproc
23651 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23652 echo "${ECHO_T}$ac_cv_header_" >&6; }
23655 if test $ac_cv_header_ = yes; then
23656 FMODL_HEADER_FOUND=1
23657 else
23658 FMODL_HEADER_FOUND=0
23662 CPPFLAGS="${saved_cppflags}"
23664 if test "x${FMODL_HEADER_FOUND}" = "x0" ; then
23665 FMODL_LIB=""
23666 FMODL_INCLUDE=""
23667 else
23668 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23669 FMODL_LIB=""
23671 PBX_FMODL=1
23672 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23674 cat >>confdefs.h <<_ACEOF
23675 #define HAVE_FMODL 1
23676 _ACEOF
23679 cat >>confdefs.h <<_ACEOF
23680 #define HAVE_FMODL_VERSION
23681 _ACEOF
23688 if test "x${PBX_ROUNDL}" != "x1" -a "${USE_ROUNDL}" != "no"; then
23689 pbxlibdir=""
23690 # if --with-ROUNDL=DIR has been specified, use it.
23691 if test "x${ROUNDL_DIR}" != "x"; then
23692 if test -d ${ROUNDL_DIR}/lib; then
23693 pbxlibdir="-L${ROUNDL_DIR}/lib"
23694 else
23695 pbxlibdir="-L${ROUNDL_DIR}"
23698 pbxfuncname="roundl"
23699 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23700 AST_ROUNDL_FOUND=yes
23701 else
23702 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23703 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23704 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23705 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23706 echo $ECHO_N "(cached) $ECHO_C" >&6
23707 else
23708 ac_check_lib_save_LIBS=$LIBS
23709 LIBS="-lm ${pbxlibdir} $LIBS"
23710 cat >conftest.$ac_ext <<_ACEOF
23711 /* confdefs.h. */
23712 _ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h. */
23717 /* Override any GCC internal prototype to avoid an error.
23718 Use char because int might match the return type of a GCC
23719 builtin and then its argument prototype would still apply. */
23720 #ifdef __cplusplus
23721 extern "C"
23722 #endif
23723 char ${pbxfuncname} ();
23725 main ()
23727 return ${pbxfuncname} ();
23729 return 0;
23731 _ACEOF
23732 rm -f conftest.$ac_objext conftest$ac_exeext
23733 if { (ac_try="$ac_link"
23734 case "(($ac_try" in
23735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23736 *) ac_try_echo=$ac_try;;
23737 esac
23738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23739 (eval "$ac_link") 2>conftest.er1
23740 ac_status=$?
23741 grep -v '^ *+' conftest.er1 >conftest.err
23742 rm -f conftest.er1
23743 cat conftest.err >&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } && {
23746 test -z "$ac_c_werror_flag" ||
23747 test ! -s conftest.err
23748 } && test -s conftest$ac_exeext &&
23749 $as_test_x conftest$ac_exeext; then
23750 eval "$as_ac_Lib=yes"
23751 else
23752 echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23755 eval "$as_ac_Lib=no"
23758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23759 conftest$ac_exeext conftest.$ac_ext
23760 LIBS=$ac_check_lib_save_LIBS
23762 ac_res=`eval echo '${'$as_ac_Lib'}'`
23763 { echo "$as_me:$LINENO: result: $ac_res" >&5
23764 echo "${ECHO_T}$ac_res" >&6; }
23765 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23766 AST_ROUNDL_FOUND=yes
23767 else
23768 AST_ROUNDL_FOUND=no
23773 # now check for the header.
23774 if test "${AST_ROUNDL_FOUND}" = "yes"; then
23775 ROUNDL_LIB="${pbxlibdir} -lm "
23776 # if --with-ROUNDL=DIR has been specified, use it.
23777 if test "x${ROUNDL_DIR}" != "x"; then
23778 ROUNDL_INCLUDE="-I${ROUNDL_DIR}/include"
23780 ROUNDL_INCLUDE="${ROUNDL_INCLUDE} "
23781 if test "x" = "x" ; then # no header, assume found
23782 ROUNDL_HEADER_FOUND="1"
23783 else # check for the header
23784 saved_cppflags="${CPPFLAGS}"
23785 CPPFLAGS="${CPPFLAGS} ${ROUNDL_INCLUDE} "
23786 if test "${ac_cv_header_+set}" = set; then
23787 { echo "$as_me:$LINENO: checking for " >&5
23788 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23789 if test "${ac_cv_header_+set}" = set; then
23790 echo $ECHO_N "(cached) $ECHO_C" >&6
23792 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23793 echo "${ECHO_T}$ac_cv_header_" >&6; }
23794 else
23795 # Is the header compilable?
23796 { echo "$as_me:$LINENO: checking usability" >&5
23797 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23798 cat >conftest.$ac_ext <<_ACEOF
23799 /* confdefs.h. */
23800 _ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h. */
23804 $ac_includes_default
23805 #include <>
23806 _ACEOF
23807 rm -f conftest.$ac_objext
23808 if { (ac_try="$ac_compile"
23809 case "(($ac_try" in
23810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23811 *) ac_try_echo=$ac_try;;
23812 esac
23813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23814 (eval "$ac_compile") 2>conftest.er1
23815 ac_status=$?
23816 grep -v '^ *+' conftest.er1 >conftest.err
23817 rm -f conftest.er1
23818 cat conftest.err >&5
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); } && {
23821 test -z "$ac_c_werror_flag" ||
23822 test ! -s conftest.err
23823 } && test -s conftest.$ac_objext; then
23824 ac_header_compiler=yes
23825 else
23826 echo "$as_me: failed program was:" >&5
23827 sed 's/^/| /' conftest.$ac_ext >&5
23829 ac_header_compiler=no
23832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23834 echo "${ECHO_T}$ac_header_compiler" >&6; }
23836 # Is the header present?
23837 { echo "$as_me:$LINENO: checking presence" >&5
23838 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23839 cat >conftest.$ac_ext <<_ACEOF
23840 /* confdefs.h. */
23841 _ACEOF
23842 cat confdefs.h >>conftest.$ac_ext
23843 cat >>conftest.$ac_ext <<_ACEOF
23844 /* end confdefs.h. */
23845 #include <>
23846 _ACEOF
23847 if { (ac_try="$ac_cpp conftest.$ac_ext"
23848 case "(($ac_try" in
23849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23850 *) ac_try_echo=$ac_try;;
23851 esac
23852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23854 ac_status=$?
23855 grep -v '^ *+' conftest.er1 >conftest.err
23856 rm -f conftest.er1
23857 cat conftest.err >&5
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); } >/dev/null && {
23860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23861 test ! -s conftest.err
23862 }; then
23863 ac_header_preproc=yes
23864 else
23865 echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23868 ac_header_preproc=no
23871 rm -f conftest.err conftest.$ac_ext
23872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23873 echo "${ECHO_T}$ac_header_preproc" >&6; }
23875 # So? What about this header?
23876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23877 yes:no: )
23878 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23879 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23880 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23881 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23882 ac_header_preproc=yes
23884 no:yes:* )
23885 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23886 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23887 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23888 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23889 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23890 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23891 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23892 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23893 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23894 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23895 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23896 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23897 ( cat <<\_ASBOX
23898 ## ------------------------------- ##
23899 ## Report this to www.asterisk.org ##
23900 ## ------------------------------- ##
23901 _ASBOX
23902 ) | sed "s/^/$as_me: WARNING: /" >&2
23904 esac
23905 { echo "$as_me:$LINENO: checking for " >&5
23906 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23907 if test "${ac_cv_header_+set}" = set; then
23908 echo $ECHO_N "(cached) $ECHO_C" >&6
23909 else
23910 ac_cv_header_=$ac_header_preproc
23912 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23913 echo "${ECHO_T}$ac_cv_header_" >&6; }
23916 if test $ac_cv_header_ = yes; then
23917 ROUNDL_HEADER_FOUND=1
23918 else
23919 ROUNDL_HEADER_FOUND=0
23923 CPPFLAGS="${saved_cppflags}"
23925 if test "x${ROUNDL_HEADER_FOUND}" = "x0" ; then
23926 ROUNDL_LIB=""
23927 ROUNDL_INCLUDE=""
23928 else
23929 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23930 ROUNDL_LIB=""
23932 PBX_ROUNDL=1
23933 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23935 cat >>confdefs.h <<_ACEOF
23936 #define HAVE_ROUNDL 1
23937 _ACEOF
23940 cat >>confdefs.h <<_ACEOF
23941 #define HAVE_ROUNDL_VERSION
23942 _ACEOF
23949 if test "x${PBX_TRUNCL}" != "x1" -a "${USE_TRUNCL}" != "no"; then
23950 pbxlibdir=""
23951 # if --with-TRUNCL=DIR has been specified, use it.
23952 if test "x${TRUNCL_DIR}" != "x"; then
23953 if test -d ${TRUNCL_DIR}/lib; then
23954 pbxlibdir="-L${TRUNCL_DIR}/lib"
23955 else
23956 pbxlibdir="-L${TRUNCL_DIR}"
23959 pbxfuncname="truncl"
23960 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23961 AST_TRUNCL_FOUND=yes
23962 else
23963 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23964 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23965 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23966 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23967 echo $ECHO_N "(cached) $ECHO_C" >&6
23968 else
23969 ac_check_lib_save_LIBS=$LIBS
23970 LIBS="-lm ${pbxlibdir} $LIBS"
23971 cat >conftest.$ac_ext <<_ACEOF
23972 /* confdefs.h. */
23973 _ACEOF
23974 cat confdefs.h >>conftest.$ac_ext
23975 cat >>conftest.$ac_ext <<_ACEOF
23976 /* end confdefs.h. */
23978 /* Override any GCC internal prototype to avoid an error.
23979 Use char because int might match the return type of a GCC
23980 builtin and then its argument prototype would still apply. */
23981 #ifdef __cplusplus
23982 extern "C"
23983 #endif
23984 char ${pbxfuncname} ();
23986 main ()
23988 return ${pbxfuncname} ();
23990 return 0;
23992 _ACEOF
23993 rm -f conftest.$ac_objext conftest$ac_exeext
23994 if { (ac_try="$ac_link"
23995 case "(($ac_try" in
23996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23997 *) ac_try_echo=$ac_try;;
23998 esac
23999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24000 (eval "$ac_link") 2>conftest.er1
24001 ac_status=$?
24002 grep -v '^ *+' conftest.er1 >conftest.err
24003 rm -f conftest.er1
24004 cat conftest.err >&5
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); } && {
24007 test -z "$ac_c_werror_flag" ||
24008 test ! -s conftest.err
24009 } && test -s conftest$ac_exeext &&
24010 $as_test_x conftest$ac_exeext; then
24011 eval "$as_ac_Lib=yes"
24012 else
24013 echo "$as_me: failed program was:" >&5
24014 sed 's/^/| /' conftest.$ac_ext >&5
24016 eval "$as_ac_Lib=no"
24019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24020 conftest$ac_exeext conftest.$ac_ext
24021 LIBS=$ac_check_lib_save_LIBS
24023 ac_res=`eval echo '${'$as_ac_Lib'}'`
24024 { echo "$as_me:$LINENO: result: $ac_res" >&5
24025 echo "${ECHO_T}$ac_res" >&6; }
24026 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24027 AST_TRUNCL_FOUND=yes
24028 else
24029 AST_TRUNCL_FOUND=no
24034 # now check for the header.
24035 if test "${AST_TRUNCL_FOUND}" = "yes"; then
24036 TRUNCL_LIB="${pbxlibdir} -lm "
24037 # if --with-TRUNCL=DIR has been specified, use it.
24038 if test "x${TRUNCL_DIR}" != "x"; then
24039 TRUNCL_INCLUDE="-I${TRUNCL_DIR}/include"
24041 TRUNCL_INCLUDE="${TRUNCL_INCLUDE} "
24042 if test "x" = "x" ; then # no header, assume found
24043 TRUNCL_HEADER_FOUND="1"
24044 else # check for the header
24045 saved_cppflags="${CPPFLAGS}"
24046 CPPFLAGS="${CPPFLAGS} ${TRUNCL_INCLUDE} "
24047 if test "${ac_cv_header_+set}" = set; then
24048 { echo "$as_me:$LINENO: checking for " >&5
24049 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24050 if test "${ac_cv_header_+set}" = set; then
24051 echo $ECHO_N "(cached) $ECHO_C" >&6
24053 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24054 echo "${ECHO_T}$ac_cv_header_" >&6; }
24055 else
24056 # Is the header compilable?
24057 { echo "$as_me:$LINENO: checking usability" >&5
24058 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24059 cat >conftest.$ac_ext <<_ACEOF
24060 /* confdefs.h. */
24061 _ACEOF
24062 cat confdefs.h >>conftest.$ac_ext
24063 cat >>conftest.$ac_ext <<_ACEOF
24064 /* end confdefs.h. */
24065 $ac_includes_default
24066 #include <>
24067 _ACEOF
24068 rm -f conftest.$ac_objext
24069 if { (ac_try="$ac_compile"
24070 case "(($ac_try" in
24071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24072 *) ac_try_echo=$ac_try;;
24073 esac
24074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24075 (eval "$ac_compile") 2>conftest.er1
24076 ac_status=$?
24077 grep -v '^ *+' conftest.er1 >conftest.err
24078 rm -f conftest.er1
24079 cat conftest.err >&5
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); } && {
24082 test -z "$ac_c_werror_flag" ||
24083 test ! -s conftest.err
24084 } && test -s conftest.$ac_objext; then
24085 ac_header_compiler=yes
24086 else
24087 echo "$as_me: failed program was:" >&5
24088 sed 's/^/| /' conftest.$ac_ext >&5
24090 ac_header_compiler=no
24093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24095 echo "${ECHO_T}$ac_header_compiler" >&6; }
24097 # Is the header present?
24098 { echo "$as_me:$LINENO: checking presence" >&5
24099 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24100 cat >conftest.$ac_ext <<_ACEOF
24101 /* confdefs.h. */
24102 _ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h. */
24106 #include <>
24107 _ACEOF
24108 if { (ac_try="$ac_cpp conftest.$ac_ext"
24109 case "(($ac_try" in
24110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111 *) ac_try_echo=$ac_try;;
24112 esac
24113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24115 ac_status=$?
24116 grep -v '^ *+' conftest.er1 >conftest.err
24117 rm -f conftest.er1
24118 cat conftest.err >&5
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); } >/dev/null && {
24121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24122 test ! -s conftest.err
24123 }; then
24124 ac_header_preproc=yes
24125 else
24126 echo "$as_me: failed program was:" >&5
24127 sed 's/^/| /' conftest.$ac_ext >&5
24129 ac_header_preproc=no
24132 rm -f conftest.err conftest.$ac_ext
24133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24134 echo "${ECHO_T}$ac_header_preproc" >&6; }
24136 # So? What about this header?
24137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24138 yes:no: )
24139 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24140 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24141 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24142 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24143 ac_header_preproc=yes
24145 no:yes:* )
24146 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24147 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24148 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24149 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24150 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24151 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24152 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24153 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24154 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24155 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24156 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24157 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24158 ( cat <<\_ASBOX
24159 ## ------------------------------- ##
24160 ## Report this to www.asterisk.org ##
24161 ## ------------------------------- ##
24162 _ASBOX
24163 ) | sed "s/^/$as_me: WARNING: /" >&2
24165 esac
24166 { echo "$as_me:$LINENO: checking for " >&5
24167 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24168 if test "${ac_cv_header_+set}" = set; then
24169 echo $ECHO_N "(cached) $ECHO_C" >&6
24170 else
24171 ac_cv_header_=$ac_header_preproc
24173 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24174 echo "${ECHO_T}$ac_cv_header_" >&6; }
24177 if test $ac_cv_header_ = yes; then
24178 TRUNCL_HEADER_FOUND=1
24179 else
24180 TRUNCL_HEADER_FOUND=0
24184 CPPFLAGS="${saved_cppflags}"
24186 if test "x${TRUNCL_HEADER_FOUND}" = "x0" ; then
24187 TRUNCL_LIB=""
24188 TRUNCL_INCLUDE=""
24189 else
24190 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24191 TRUNCL_LIB=""
24193 PBX_TRUNCL=1
24194 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24196 cat >>confdefs.h <<_ACEOF
24197 #define HAVE_TRUNCL 1
24198 _ACEOF
24201 cat >>confdefs.h <<_ACEOF
24202 #define HAVE_TRUNCL_VERSION
24203 _ACEOF
24210 if test "x${PBX_STRTOLD}" != "x1" -a "${USE_STRTOLD}" != "no"; then
24211 pbxlibdir=""
24212 # if --with-STRTOLD=DIR has been specified, use it.
24213 if test "x${STRTOLD_DIR}" != "x"; then
24214 if test -d ${STRTOLD_DIR}/lib; then
24215 pbxlibdir="-L${STRTOLD_DIR}/lib"
24216 else
24217 pbxlibdir="-L${STRTOLD_DIR}"
24220 pbxfuncname="strtold"
24221 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24222 AST_STRTOLD_FOUND=yes
24223 else
24224 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
24225 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
24226 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
24227 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24228 echo $ECHO_N "(cached) $ECHO_C" >&6
24229 else
24230 ac_check_lib_save_LIBS=$LIBS
24231 LIBS="-lc ${pbxlibdir} $LIBS"
24232 cat >conftest.$ac_ext <<_ACEOF
24233 /* confdefs.h. */
24234 _ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h. */
24239 /* Override any GCC internal prototype to avoid an error.
24240 Use char because int might match the return type of a GCC
24241 builtin and then its argument prototype would still apply. */
24242 #ifdef __cplusplus
24243 extern "C"
24244 #endif
24245 char ${pbxfuncname} ();
24247 main ()
24249 return ${pbxfuncname} ();
24251 return 0;
24253 _ACEOF
24254 rm -f conftest.$ac_objext conftest$ac_exeext
24255 if { (ac_try="$ac_link"
24256 case "(($ac_try" in
24257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24258 *) ac_try_echo=$ac_try;;
24259 esac
24260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24261 (eval "$ac_link") 2>conftest.er1
24262 ac_status=$?
24263 grep -v '^ *+' conftest.er1 >conftest.err
24264 rm -f conftest.er1
24265 cat conftest.err >&5
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); } && {
24268 test -z "$ac_c_werror_flag" ||
24269 test ! -s conftest.err
24270 } && test -s conftest$ac_exeext &&
24271 $as_test_x conftest$ac_exeext; then
24272 eval "$as_ac_Lib=yes"
24273 else
24274 echo "$as_me: failed program was:" >&5
24275 sed 's/^/| /' conftest.$ac_ext >&5
24277 eval "$as_ac_Lib=no"
24280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24281 conftest$ac_exeext conftest.$ac_ext
24282 LIBS=$ac_check_lib_save_LIBS
24284 ac_res=`eval echo '${'$as_ac_Lib'}'`
24285 { echo "$as_me:$LINENO: result: $ac_res" >&5
24286 echo "${ECHO_T}$ac_res" >&6; }
24287 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24288 AST_STRTOLD_FOUND=yes
24289 else
24290 AST_STRTOLD_FOUND=no
24295 # now check for the header.
24296 if test "${AST_STRTOLD_FOUND}" = "yes"; then
24297 STRTOLD_LIB="${pbxlibdir} -lc "
24298 # if --with-STRTOLD=DIR has been specified, use it.
24299 if test "x${STRTOLD_DIR}" != "x"; then
24300 STRTOLD_INCLUDE="-I${STRTOLD_DIR}/include"
24302 STRTOLD_INCLUDE="${STRTOLD_INCLUDE} "
24303 if test "xstdlib.h" = "x" ; then # no header, assume found
24304 STRTOLD_HEADER_FOUND="1"
24305 else # check for the header
24306 saved_cppflags="${CPPFLAGS}"
24307 CPPFLAGS="${CPPFLAGS} ${STRTOLD_INCLUDE} "
24308 if test "${ac_cv_header_stdlib_h+set}" = set; then
24309 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24310 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24311 if test "${ac_cv_header_stdlib_h+set}" = set; then
24312 echo $ECHO_N "(cached) $ECHO_C" >&6
24314 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24315 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24316 else
24317 # Is the header compilable?
24318 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
24319 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
24320 cat >conftest.$ac_ext <<_ACEOF
24321 /* confdefs.h. */
24322 _ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h. */
24326 $ac_includes_default
24327 #include <stdlib.h>
24328 _ACEOF
24329 rm -f conftest.$ac_objext
24330 if { (ac_try="$ac_compile"
24331 case "(($ac_try" in
24332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333 *) ac_try_echo=$ac_try;;
24334 esac
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336 (eval "$ac_compile") 2>conftest.er1
24337 ac_status=$?
24338 grep -v '^ *+' conftest.er1 >conftest.err
24339 rm -f conftest.er1
24340 cat conftest.err >&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } && {
24343 test -z "$ac_c_werror_flag" ||
24344 test ! -s conftest.err
24345 } && test -s conftest.$ac_objext; then
24346 ac_header_compiler=yes
24347 else
24348 echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24351 ac_header_compiler=no
24354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24356 echo "${ECHO_T}$ac_header_compiler" >&6; }
24358 # Is the header present?
24359 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
24360 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
24361 cat >conftest.$ac_ext <<_ACEOF
24362 /* confdefs.h. */
24363 _ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h. */
24367 #include <stdlib.h>
24368 _ACEOF
24369 if { (ac_try="$ac_cpp conftest.$ac_ext"
24370 case "(($ac_try" in
24371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24372 *) ac_try_echo=$ac_try;;
24373 esac
24374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24376 ac_status=$?
24377 grep -v '^ *+' conftest.er1 >conftest.err
24378 rm -f conftest.er1
24379 cat conftest.err >&5
24380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); } >/dev/null && {
24382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24383 test ! -s conftest.err
24384 }; then
24385 ac_header_preproc=yes
24386 else
24387 echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24390 ac_header_preproc=no
24393 rm -f conftest.err conftest.$ac_ext
24394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24395 echo "${ECHO_T}$ac_header_preproc" >&6; }
24397 # So? What about this header?
24398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24399 yes:no: )
24400 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24401 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24402 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
24403 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
24404 ac_header_preproc=yes
24406 no:yes:* )
24407 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
24408 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
24409 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
24410 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
24411 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
24412 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
24413 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
24414 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24415 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
24416 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
24417 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
24418 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
24419 ( cat <<\_ASBOX
24420 ## ------------------------------- ##
24421 ## Report this to www.asterisk.org ##
24422 ## ------------------------------- ##
24423 _ASBOX
24424 ) | sed "s/^/$as_me: WARNING: /" >&2
24426 esac
24427 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24428 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24429 if test "${ac_cv_header_stdlib_h+set}" = set; then
24430 echo $ECHO_N "(cached) $ECHO_C" >&6
24431 else
24432 ac_cv_header_stdlib_h=$ac_header_preproc
24434 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24435 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24438 if test $ac_cv_header_stdlib_h = yes; then
24439 STRTOLD_HEADER_FOUND=1
24440 else
24441 STRTOLD_HEADER_FOUND=0
24445 CPPFLAGS="${saved_cppflags}"
24447 if test "x${STRTOLD_HEADER_FOUND}" = "x0" ; then
24448 STRTOLD_LIB=""
24449 STRTOLD_INCLUDE=""
24450 else
24451 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24452 STRTOLD_LIB=""
24454 PBX_STRTOLD=1
24455 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24457 cat >>confdefs.h <<_ACEOF
24458 #define HAVE_STRTOLD 1
24459 _ACEOF
24462 cat >>confdefs.h <<_ACEOF
24463 #define HAVE_STRTOLD_VERSION
24464 _ACEOF
24471 if test "x${PBX_FLOORL}" != "x1" -a "${USE_FLOORL}" != "no"; then
24472 pbxlibdir=""
24473 # if --with-FLOORL=DIR has been specified, use it.
24474 if test "x${FLOORL_DIR}" != "x"; then
24475 if test -d ${FLOORL_DIR}/lib; then
24476 pbxlibdir="-L${FLOORL_DIR}/lib"
24477 else
24478 pbxlibdir="-L${FLOORL_DIR}"
24481 pbxfuncname="floorl"
24482 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24483 AST_FLOORL_FOUND=yes
24484 else
24485 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24486 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24487 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24488 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24489 echo $ECHO_N "(cached) $ECHO_C" >&6
24490 else
24491 ac_check_lib_save_LIBS=$LIBS
24492 LIBS="-lm ${pbxlibdir} $LIBS"
24493 cat >conftest.$ac_ext <<_ACEOF
24494 /* confdefs.h. */
24495 _ACEOF
24496 cat confdefs.h >>conftest.$ac_ext
24497 cat >>conftest.$ac_ext <<_ACEOF
24498 /* end confdefs.h. */
24500 /* Override any GCC internal prototype to avoid an error.
24501 Use char because int might match the return type of a GCC
24502 builtin and then its argument prototype would still apply. */
24503 #ifdef __cplusplus
24504 extern "C"
24505 #endif
24506 char ${pbxfuncname} ();
24508 main ()
24510 return ${pbxfuncname} ();
24512 return 0;
24514 _ACEOF
24515 rm -f conftest.$ac_objext conftest$ac_exeext
24516 if { (ac_try="$ac_link"
24517 case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24520 esac
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_link") 2>conftest.er1
24523 ac_status=$?
24524 grep -v '^ *+' conftest.er1 >conftest.err
24525 rm -f conftest.er1
24526 cat conftest.err >&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } && {
24529 test -z "$ac_c_werror_flag" ||
24530 test ! -s conftest.err
24531 } && test -s conftest$ac_exeext &&
24532 $as_test_x conftest$ac_exeext; then
24533 eval "$as_ac_Lib=yes"
24534 else
24535 echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24538 eval "$as_ac_Lib=no"
24541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24542 conftest$ac_exeext conftest.$ac_ext
24543 LIBS=$ac_check_lib_save_LIBS
24545 ac_res=`eval echo '${'$as_ac_Lib'}'`
24546 { echo "$as_me:$LINENO: result: $ac_res" >&5
24547 echo "${ECHO_T}$ac_res" >&6; }
24548 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24549 AST_FLOORL_FOUND=yes
24550 else
24551 AST_FLOORL_FOUND=no
24556 # now check for the header.
24557 if test "${AST_FLOORL_FOUND}" = "yes"; then
24558 FLOORL_LIB="${pbxlibdir} -lm "
24559 # if --with-FLOORL=DIR has been specified, use it.
24560 if test "x${FLOORL_DIR}" != "x"; then
24561 FLOORL_INCLUDE="-I${FLOORL_DIR}/include"
24563 FLOORL_INCLUDE="${FLOORL_INCLUDE} "
24564 if test "x" = "x" ; then # no header, assume found
24565 FLOORL_HEADER_FOUND="1"
24566 else # check for the header
24567 saved_cppflags="${CPPFLAGS}"
24568 CPPFLAGS="${CPPFLAGS} ${FLOORL_INCLUDE} "
24569 if test "${ac_cv_header_+set}" = set; then
24570 { echo "$as_me:$LINENO: checking for " >&5
24571 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24572 if test "${ac_cv_header_+set}" = set; then
24573 echo $ECHO_N "(cached) $ECHO_C" >&6
24575 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24576 echo "${ECHO_T}$ac_cv_header_" >&6; }
24577 else
24578 # Is the header compilable?
24579 { echo "$as_me:$LINENO: checking usability" >&5
24580 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24581 cat >conftest.$ac_ext <<_ACEOF
24582 /* confdefs.h. */
24583 _ACEOF
24584 cat confdefs.h >>conftest.$ac_ext
24585 cat >>conftest.$ac_ext <<_ACEOF
24586 /* end confdefs.h. */
24587 $ac_includes_default
24588 #include <>
24589 _ACEOF
24590 rm -f conftest.$ac_objext
24591 if { (ac_try="$ac_compile"
24592 case "(($ac_try" in
24593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24594 *) ac_try_echo=$ac_try;;
24595 esac
24596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24597 (eval "$ac_compile") 2>conftest.er1
24598 ac_status=$?
24599 grep -v '^ *+' conftest.er1 >conftest.err
24600 rm -f conftest.er1
24601 cat conftest.err >&5
24602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); } && {
24604 test -z "$ac_c_werror_flag" ||
24605 test ! -s conftest.err
24606 } && test -s conftest.$ac_objext; then
24607 ac_header_compiler=yes
24608 else
24609 echo "$as_me: failed program was:" >&5
24610 sed 's/^/| /' conftest.$ac_ext >&5
24612 ac_header_compiler=no
24615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24617 echo "${ECHO_T}$ac_header_compiler" >&6; }
24619 # Is the header present?
24620 { echo "$as_me:$LINENO: checking presence" >&5
24621 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24622 cat >conftest.$ac_ext <<_ACEOF
24623 /* confdefs.h. */
24624 _ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h. */
24628 #include <>
24629 _ACEOF
24630 if { (ac_try="$ac_cpp conftest.$ac_ext"
24631 case "(($ac_try" in
24632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633 *) ac_try_echo=$ac_try;;
24634 esac
24635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24637 ac_status=$?
24638 grep -v '^ *+' conftest.er1 >conftest.err
24639 rm -f conftest.er1
24640 cat conftest.err >&5
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); } >/dev/null && {
24643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24644 test ! -s conftest.err
24645 }; then
24646 ac_header_preproc=yes
24647 else
24648 echo "$as_me: failed program was:" >&5
24649 sed 's/^/| /' conftest.$ac_ext >&5
24651 ac_header_preproc=no
24654 rm -f conftest.err conftest.$ac_ext
24655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24656 echo "${ECHO_T}$ac_header_preproc" >&6; }
24658 # So? What about this header?
24659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24660 yes:no: )
24661 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24662 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24663 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24664 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24665 ac_header_preproc=yes
24667 no:yes:* )
24668 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24669 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24670 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24671 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24672 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24673 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24674 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24675 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24676 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24677 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24678 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24679 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24680 ( cat <<\_ASBOX
24681 ## ------------------------------- ##
24682 ## Report this to www.asterisk.org ##
24683 ## ------------------------------- ##
24684 _ASBOX
24685 ) | sed "s/^/$as_me: WARNING: /" >&2
24687 esac
24688 { echo "$as_me:$LINENO: checking for " >&5
24689 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24690 if test "${ac_cv_header_+set}" = set; then
24691 echo $ECHO_N "(cached) $ECHO_C" >&6
24692 else
24693 ac_cv_header_=$ac_header_preproc
24695 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24696 echo "${ECHO_T}$ac_cv_header_" >&6; }
24699 if test $ac_cv_header_ = yes; then
24700 FLOORL_HEADER_FOUND=1
24701 else
24702 FLOORL_HEADER_FOUND=0
24706 CPPFLAGS="${saved_cppflags}"
24708 if test "x${FLOORL_HEADER_FOUND}" = "x0" ; then
24709 FLOORL_LIB=""
24710 FLOORL_INCLUDE=""
24711 else
24712 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24713 FLOORL_LIB=""
24715 PBX_FLOORL=1
24716 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24718 cat >>confdefs.h <<_ACEOF
24719 #define HAVE_FLOORL 1
24720 _ACEOF
24723 cat >>confdefs.h <<_ACEOF
24724 #define HAVE_FLOORL_VERSION
24725 _ACEOF
24732 if test "x${PBX_CEILL}" != "x1" -a "${USE_CEILL}" != "no"; then
24733 pbxlibdir=""
24734 # if --with-CEILL=DIR has been specified, use it.
24735 if test "x${CEILL_DIR}" != "x"; then
24736 if test -d ${CEILL_DIR}/lib; then
24737 pbxlibdir="-L${CEILL_DIR}/lib"
24738 else
24739 pbxlibdir="-L${CEILL_DIR}"
24742 pbxfuncname="ceill"
24743 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24744 AST_CEILL_FOUND=yes
24745 else
24746 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24747 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24748 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24749 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24750 echo $ECHO_N "(cached) $ECHO_C" >&6
24751 else
24752 ac_check_lib_save_LIBS=$LIBS
24753 LIBS="-lm ${pbxlibdir} $LIBS"
24754 cat >conftest.$ac_ext <<_ACEOF
24755 /* confdefs.h. */
24756 _ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h. */
24761 /* Override any GCC internal prototype to avoid an error.
24762 Use char because int might match the return type of a GCC
24763 builtin and then its argument prototype would still apply. */
24764 #ifdef __cplusplus
24765 extern "C"
24766 #endif
24767 char ${pbxfuncname} ();
24769 main ()
24771 return ${pbxfuncname} ();
24773 return 0;
24775 _ACEOF
24776 rm -f conftest.$ac_objext conftest$ac_exeext
24777 if { (ac_try="$ac_link"
24778 case "(($ac_try" in
24779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24780 *) ac_try_echo=$ac_try;;
24781 esac
24782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24783 (eval "$ac_link") 2>conftest.er1
24784 ac_status=$?
24785 grep -v '^ *+' conftest.er1 >conftest.err
24786 rm -f conftest.er1
24787 cat conftest.err >&5
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); } && {
24790 test -z "$ac_c_werror_flag" ||
24791 test ! -s conftest.err
24792 } && test -s conftest$ac_exeext &&
24793 $as_test_x conftest$ac_exeext; then
24794 eval "$as_ac_Lib=yes"
24795 else
24796 echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24799 eval "$as_ac_Lib=no"
24802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24803 conftest$ac_exeext conftest.$ac_ext
24804 LIBS=$ac_check_lib_save_LIBS
24806 ac_res=`eval echo '${'$as_ac_Lib'}'`
24807 { echo "$as_me:$LINENO: result: $ac_res" >&5
24808 echo "${ECHO_T}$ac_res" >&6; }
24809 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24810 AST_CEILL_FOUND=yes
24811 else
24812 AST_CEILL_FOUND=no
24817 # now check for the header.
24818 if test "${AST_CEILL_FOUND}" = "yes"; then
24819 CEILL_LIB="${pbxlibdir} -lm "
24820 # if --with-CEILL=DIR has been specified, use it.
24821 if test "x${CEILL_DIR}" != "x"; then
24822 CEILL_INCLUDE="-I${CEILL_DIR}/include"
24824 CEILL_INCLUDE="${CEILL_INCLUDE} "
24825 if test "x" = "x" ; then # no header, assume found
24826 CEILL_HEADER_FOUND="1"
24827 else # check for the header
24828 saved_cppflags="${CPPFLAGS}"
24829 CPPFLAGS="${CPPFLAGS} ${CEILL_INCLUDE} "
24830 if test "${ac_cv_header_+set}" = set; then
24831 { echo "$as_me:$LINENO: checking for " >&5
24832 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24833 if test "${ac_cv_header_+set}" = set; then
24834 echo $ECHO_N "(cached) $ECHO_C" >&6
24836 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24837 echo "${ECHO_T}$ac_cv_header_" >&6; }
24838 else
24839 # Is the header compilable?
24840 { echo "$as_me:$LINENO: checking usability" >&5
24841 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24842 cat >conftest.$ac_ext <<_ACEOF
24843 /* confdefs.h. */
24844 _ACEOF
24845 cat confdefs.h >>conftest.$ac_ext
24846 cat >>conftest.$ac_ext <<_ACEOF
24847 /* end confdefs.h. */
24848 $ac_includes_default
24849 #include <>
24850 _ACEOF
24851 rm -f conftest.$ac_objext
24852 if { (ac_try="$ac_compile"
24853 case "(($ac_try" in
24854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24855 *) ac_try_echo=$ac_try;;
24856 esac
24857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24858 (eval "$ac_compile") 2>conftest.er1
24859 ac_status=$?
24860 grep -v '^ *+' conftest.er1 >conftest.err
24861 rm -f conftest.er1
24862 cat conftest.err >&5
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); } && {
24865 test -z "$ac_c_werror_flag" ||
24866 test ! -s conftest.err
24867 } && test -s conftest.$ac_objext; then
24868 ac_header_compiler=yes
24869 else
24870 echo "$as_me: failed program was:" >&5
24871 sed 's/^/| /' conftest.$ac_ext >&5
24873 ac_header_compiler=no
24876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24878 echo "${ECHO_T}$ac_header_compiler" >&6; }
24880 # Is the header present?
24881 { echo "$as_me:$LINENO: checking presence" >&5
24882 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24883 cat >conftest.$ac_ext <<_ACEOF
24884 /* confdefs.h. */
24885 _ACEOF
24886 cat confdefs.h >>conftest.$ac_ext
24887 cat >>conftest.$ac_ext <<_ACEOF
24888 /* end confdefs.h. */
24889 #include <>
24890 _ACEOF
24891 if { (ac_try="$ac_cpp conftest.$ac_ext"
24892 case "(($ac_try" in
24893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24894 *) ac_try_echo=$ac_try;;
24895 esac
24896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24898 ac_status=$?
24899 grep -v '^ *+' conftest.er1 >conftest.err
24900 rm -f conftest.er1
24901 cat conftest.err >&5
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); } >/dev/null && {
24904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24905 test ! -s conftest.err
24906 }; then
24907 ac_header_preproc=yes
24908 else
24909 echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24912 ac_header_preproc=no
24915 rm -f conftest.err conftest.$ac_ext
24916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24917 echo "${ECHO_T}$ac_header_preproc" >&6; }
24919 # So? What about this header?
24920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24921 yes:no: )
24922 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24923 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24924 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24925 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24926 ac_header_preproc=yes
24928 no:yes:* )
24929 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24930 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24931 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24932 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24933 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24934 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24935 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24936 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24937 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24938 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24939 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24940 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24941 ( cat <<\_ASBOX
24942 ## ------------------------------- ##
24943 ## Report this to www.asterisk.org ##
24944 ## ------------------------------- ##
24945 _ASBOX
24946 ) | sed "s/^/$as_me: WARNING: /" >&2
24948 esac
24949 { echo "$as_me:$LINENO: checking for " >&5
24950 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24951 if test "${ac_cv_header_+set}" = set; then
24952 echo $ECHO_N "(cached) $ECHO_C" >&6
24953 else
24954 ac_cv_header_=$ac_header_preproc
24956 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24957 echo "${ECHO_T}$ac_cv_header_" >&6; }
24960 if test $ac_cv_header_ = yes; then
24961 CEILL_HEADER_FOUND=1
24962 else
24963 CEILL_HEADER_FOUND=0
24967 CPPFLAGS="${saved_cppflags}"
24969 if test "x${CEILL_HEADER_FOUND}" = "x0" ; then
24970 CEILL_LIB=""
24971 CEILL_INCLUDE=""
24972 else
24973 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24974 CEILL_LIB=""
24976 PBX_CEILL=1
24977 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24979 cat >>confdefs.h <<_ACEOF
24980 #define HAVE_CEILL 1
24981 _ACEOF
24984 cat >>confdefs.h <<_ACEOF
24985 #define HAVE_CEILL_VERSION
24986 _ACEOF
24993 if test "x${PBX_EXP2}" != "x1" -a "${USE_EXP2}" != "no"; then
24994 pbxlibdir=""
24995 # if --with-EXP2=DIR has been specified, use it.
24996 if test "x${EXP2_DIR}" != "x"; then
24997 if test -d ${EXP2_DIR}/lib; then
24998 pbxlibdir="-L${EXP2_DIR}/lib"
24999 else
25000 pbxlibdir="-L${EXP2_DIR}"
25003 pbxfuncname="exp2"
25004 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25005 AST_EXP2_FOUND=yes
25006 else
25007 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25008 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25009 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25010 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25011 echo $ECHO_N "(cached) $ECHO_C" >&6
25012 else
25013 ac_check_lib_save_LIBS=$LIBS
25014 LIBS="-lm ${pbxlibdir} $LIBS"
25015 cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h. */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25022 /* Override any GCC internal prototype to avoid an error.
25023 Use char because int might match the return type of a GCC
25024 builtin and then its argument prototype would still apply. */
25025 #ifdef __cplusplus
25026 extern "C"
25027 #endif
25028 char ${pbxfuncname} ();
25030 main ()
25032 return ${pbxfuncname} ();
25034 return 0;
25036 _ACEOF
25037 rm -f conftest.$ac_objext conftest$ac_exeext
25038 if { (ac_try="$ac_link"
25039 case "(($ac_try" in
25040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25041 *) ac_try_echo=$ac_try;;
25042 esac
25043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25044 (eval "$ac_link") 2>conftest.er1
25045 ac_status=$?
25046 grep -v '^ *+' conftest.er1 >conftest.err
25047 rm -f conftest.er1
25048 cat conftest.err >&5
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); } && {
25051 test -z "$ac_c_werror_flag" ||
25052 test ! -s conftest.err
25053 } && test -s conftest$ac_exeext &&
25054 $as_test_x conftest$ac_exeext; then
25055 eval "$as_ac_Lib=yes"
25056 else
25057 echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25060 eval "$as_ac_Lib=no"
25063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25064 conftest$ac_exeext conftest.$ac_ext
25065 LIBS=$ac_check_lib_save_LIBS
25067 ac_res=`eval echo '${'$as_ac_Lib'}'`
25068 { echo "$as_me:$LINENO: result: $ac_res" >&5
25069 echo "${ECHO_T}$ac_res" >&6; }
25070 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25071 AST_EXP2_FOUND=yes
25072 else
25073 AST_EXP2_FOUND=no
25078 # now check for the header.
25079 if test "${AST_EXP2_FOUND}" = "yes"; then
25080 EXP2_LIB="${pbxlibdir} -lm "
25081 # if --with-EXP2=DIR has been specified, use it.
25082 if test "x${EXP2_DIR}" != "x"; then
25083 EXP2_INCLUDE="-I${EXP2_DIR}/include"
25085 EXP2_INCLUDE="${EXP2_INCLUDE} "
25086 if test "x" = "x" ; then # no header, assume found
25087 EXP2_HEADER_FOUND="1"
25088 else # check for the header
25089 saved_cppflags="${CPPFLAGS}"
25090 CPPFLAGS="${CPPFLAGS} ${EXP2_INCLUDE} "
25091 if test "${ac_cv_header_+set}" = set; then
25092 { echo "$as_me:$LINENO: checking for " >&5
25093 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25094 if test "${ac_cv_header_+set}" = set; then
25095 echo $ECHO_N "(cached) $ECHO_C" >&6
25097 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25098 echo "${ECHO_T}$ac_cv_header_" >&6; }
25099 else
25100 # Is the header compilable?
25101 { echo "$as_me:$LINENO: checking usability" >&5
25102 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25103 cat >conftest.$ac_ext <<_ACEOF
25104 /* confdefs.h. */
25105 _ACEOF
25106 cat confdefs.h >>conftest.$ac_ext
25107 cat >>conftest.$ac_ext <<_ACEOF
25108 /* end confdefs.h. */
25109 $ac_includes_default
25110 #include <>
25111 _ACEOF
25112 rm -f conftest.$ac_objext
25113 if { (ac_try="$ac_compile"
25114 case "(($ac_try" in
25115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25116 *) ac_try_echo=$ac_try;;
25117 esac
25118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25119 (eval "$ac_compile") 2>conftest.er1
25120 ac_status=$?
25121 grep -v '^ *+' conftest.er1 >conftest.err
25122 rm -f conftest.er1
25123 cat conftest.err >&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); } && {
25126 test -z "$ac_c_werror_flag" ||
25127 test ! -s conftest.err
25128 } && test -s conftest.$ac_objext; then
25129 ac_header_compiler=yes
25130 else
25131 echo "$as_me: failed program was:" >&5
25132 sed 's/^/| /' conftest.$ac_ext >&5
25134 ac_header_compiler=no
25137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25139 echo "${ECHO_T}$ac_header_compiler" >&6; }
25141 # Is the header present?
25142 { echo "$as_me:$LINENO: checking presence" >&5
25143 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25144 cat >conftest.$ac_ext <<_ACEOF
25145 /* confdefs.h. */
25146 _ACEOF
25147 cat confdefs.h >>conftest.$ac_ext
25148 cat >>conftest.$ac_ext <<_ACEOF
25149 /* end confdefs.h. */
25150 #include <>
25151 _ACEOF
25152 if { (ac_try="$ac_cpp conftest.$ac_ext"
25153 case "(($ac_try" in
25154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25155 *) ac_try_echo=$ac_try;;
25156 esac
25157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25159 ac_status=$?
25160 grep -v '^ *+' conftest.er1 >conftest.err
25161 rm -f conftest.er1
25162 cat conftest.err >&5
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); } >/dev/null && {
25165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25166 test ! -s conftest.err
25167 }; then
25168 ac_header_preproc=yes
25169 else
25170 echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25173 ac_header_preproc=no
25176 rm -f conftest.err conftest.$ac_ext
25177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25178 echo "${ECHO_T}$ac_header_preproc" >&6; }
25180 # So? What about this header?
25181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25182 yes:no: )
25183 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25184 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25185 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25186 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25187 ac_header_preproc=yes
25189 no:yes:* )
25190 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25191 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25192 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25193 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25194 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25195 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25196 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25197 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25198 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25199 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25200 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25201 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25202 ( cat <<\_ASBOX
25203 ## ------------------------------- ##
25204 ## Report this to www.asterisk.org ##
25205 ## ------------------------------- ##
25206 _ASBOX
25207 ) | sed "s/^/$as_me: WARNING: /" >&2
25209 esac
25210 { echo "$as_me:$LINENO: checking for " >&5
25211 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25212 if test "${ac_cv_header_+set}" = set; then
25213 echo $ECHO_N "(cached) $ECHO_C" >&6
25214 else
25215 ac_cv_header_=$ac_header_preproc
25217 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25218 echo "${ECHO_T}$ac_cv_header_" >&6; }
25221 if test $ac_cv_header_ = yes; then
25222 EXP2_HEADER_FOUND=1
25223 else
25224 EXP2_HEADER_FOUND=0
25228 CPPFLAGS="${saved_cppflags}"
25230 if test "x${EXP2_HEADER_FOUND}" = "x0" ; then
25231 EXP2_LIB=""
25232 EXP2_INCLUDE=""
25233 else
25234 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25235 EXP2_LIB=""
25237 PBX_EXP2=1
25238 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25240 cat >>confdefs.h <<_ACEOF
25241 #define HAVE_EXP2 1
25242 _ACEOF
25245 cat >>confdefs.h <<_ACEOF
25246 #define HAVE_EXP2_VERSION
25247 _ACEOF
25254 if test "x${PBX_LOG2}" != "x1" -a "${USE_LOG2}" != "no"; then
25255 pbxlibdir=""
25256 # if --with-LOG2=DIR has been specified, use it.
25257 if test "x${LOG2_DIR}" != "x"; then
25258 if test -d ${LOG2_DIR}/lib; then
25259 pbxlibdir="-L${LOG2_DIR}/lib"
25260 else
25261 pbxlibdir="-L${LOG2_DIR}"
25264 pbxfuncname="log2"
25265 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25266 AST_LOG2_FOUND=yes
25267 else
25268 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25269 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25270 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25271 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25272 echo $ECHO_N "(cached) $ECHO_C" >&6
25273 else
25274 ac_check_lib_save_LIBS=$LIBS
25275 LIBS="-lm ${pbxlibdir} $LIBS"
25276 cat >conftest.$ac_ext <<_ACEOF
25277 /* confdefs.h. */
25278 _ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h. */
25283 /* Override any GCC internal prototype to avoid an error.
25284 Use char because int might match the return type of a GCC
25285 builtin and then its argument prototype would still apply. */
25286 #ifdef __cplusplus
25287 extern "C"
25288 #endif
25289 char ${pbxfuncname} ();
25291 main ()
25293 return ${pbxfuncname} ();
25295 return 0;
25297 _ACEOF
25298 rm -f conftest.$ac_objext conftest$ac_exeext
25299 if { (ac_try="$ac_link"
25300 case "(($ac_try" in
25301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25302 *) ac_try_echo=$ac_try;;
25303 esac
25304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25305 (eval "$ac_link") 2>conftest.er1
25306 ac_status=$?
25307 grep -v '^ *+' conftest.er1 >conftest.err
25308 rm -f conftest.er1
25309 cat conftest.err >&5
25310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); } && {
25312 test -z "$ac_c_werror_flag" ||
25313 test ! -s conftest.err
25314 } && test -s conftest$ac_exeext &&
25315 $as_test_x conftest$ac_exeext; then
25316 eval "$as_ac_Lib=yes"
25317 else
25318 echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.$ac_ext >&5
25321 eval "$as_ac_Lib=no"
25324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25325 conftest$ac_exeext conftest.$ac_ext
25326 LIBS=$ac_check_lib_save_LIBS
25328 ac_res=`eval echo '${'$as_ac_Lib'}'`
25329 { echo "$as_me:$LINENO: result: $ac_res" >&5
25330 echo "${ECHO_T}$ac_res" >&6; }
25331 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25332 AST_LOG2_FOUND=yes
25333 else
25334 AST_LOG2_FOUND=no
25339 # now check for the header.
25340 if test "${AST_LOG2_FOUND}" = "yes"; then
25341 LOG2_LIB="${pbxlibdir} -lm "
25342 # if --with-LOG2=DIR has been specified, use it.
25343 if test "x${LOG2_DIR}" != "x"; then
25344 LOG2_INCLUDE="-I${LOG2_DIR}/include"
25346 LOG2_INCLUDE="${LOG2_INCLUDE} "
25347 if test "x" = "x" ; then # no header, assume found
25348 LOG2_HEADER_FOUND="1"
25349 else # check for the header
25350 saved_cppflags="${CPPFLAGS}"
25351 CPPFLAGS="${CPPFLAGS} ${LOG2_INCLUDE} "
25352 if test "${ac_cv_header_+set}" = set; then
25353 { echo "$as_me:$LINENO: checking for " >&5
25354 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25355 if test "${ac_cv_header_+set}" = set; then
25356 echo $ECHO_N "(cached) $ECHO_C" >&6
25358 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25359 echo "${ECHO_T}$ac_cv_header_" >&6; }
25360 else
25361 # Is the header compilable?
25362 { echo "$as_me:$LINENO: checking usability" >&5
25363 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25364 cat >conftest.$ac_ext <<_ACEOF
25365 /* confdefs.h. */
25366 _ACEOF
25367 cat confdefs.h >>conftest.$ac_ext
25368 cat >>conftest.$ac_ext <<_ACEOF
25369 /* end confdefs.h. */
25370 $ac_includes_default
25371 #include <>
25372 _ACEOF
25373 rm -f conftest.$ac_objext
25374 if { (ac_try="$ac_compile"
25375 case "(($ac_try" in
25376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377 *) ac_try_echo=$ac_try;;
25378 esac
25379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25380 (eval "$ac_compile") 2>conftest.er1
25381 ac_status=$?
25382 grep -v '^ *+' conftest.er1 >conftest.err
25383 rm -f conftest.er1
25384 cat conftest.err >&5
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); } && {
25387 test -z "$ac_c_werror_flag" ||
25388 test ! -s conftest.err
25389 } && test -s conftest.$ac_objext; then
25390 ac_header_compiler=yes
25391 else
25392 echo "$as_me: failed program was:" >&5
25393 sed 's/^/| /' conftest.$ac_ext >&5
25395 ac_header_compiler=no
25398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25400 echo "${ECHO_T}$ac_header_compiler" >&6; }
25402 # Is the header present?
25403 { echo "$as_me:$LINENO: checking presence" >&5
25404 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25405 cat >conftest.$ac_ext <<_ACEOF
25406 /* confdefs.h. */
25407 _ACEOF
25408 cat confdefs.h >>conftest.$ac_ext
25409 cat >>conftest.$ac_ext <<_ACEOF
25410 /* end confdefs.h. */
25411 #include <>
25412 _ACEOF
25413 if { (ac_try="$ac_cpp conftest.$ac_ext"
25414 case "(($ac_try" in
25415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25416 *) ac_try_echo=$ac_try;;
25417 esac
25418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25420 ac_status=$?
25421 grep -v '^ *+' conftest.er1 >conftest.err
25422 rm -f conftest.er1
25423 cat conftest.err >&5
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); } >/dev/null && {
25426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25427 test ! -s conftest.err
25428 }; then
25429 ac_header_preproc=yes
25430 else
25431 echo "$as_me: failed program was:" >&5
25432 sed 's/^/| /' conftest.$ac_ext >&5
25434 ac_header_preproc=no
25437 rm -f conftest.err conftest.$ac_ext
25438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25439 echo "${ECHO_T}$ac_header_preproc" >&6; }
25441 # So? What about this header?
25442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25443 yes:no: )
25444 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25445 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25446 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25447 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25448 ac_header_preproc=yes
25450 no:yes:* )
25451 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25452 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25453 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25454 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25455 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25456 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25457 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25458 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25459 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25460 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25461 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25462 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25463 ( cat <<\_ASBOX
25464 ## ------------------------------- ##
25465 ## Report this to www.asterisk.org ##
25466 ## ------------------------------- ##
25467 _ASBOX
25468 ) | sed "s/^/$as_me: WARNING: /" >&2
25470 esac
25471 { echo "$as_me:$LINENO: checking for " >&5
25472 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25473 if test "${ac_cv_header_+set}" = set; then
25474 echo $ECHO_N "(cached) $ECHO_C" >&6
25475 else
25476 ac_cv_header_=$ac_header_preproc
25478 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25479 echo "${ECHO_T}$ac_cv_header_" >&6; }
25482 if test $ac_cv_header_ = yes; then
25483 LOG2_HEADER_FOUND=1
25484 else
25485 LOG2_HEADER_FOUND=0
25489 CPPFLAGS="${saved_cppflags}"
25491 if test "x${LOG2_HEADER_FOUND}" = "x0" ; then
25492 LOG2_LIB=""
25493 LOG2_INCLUDE=""
25494 else
25495 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25496 LOG2_LIB=""
25498 PBX_LOG2=1
25499 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25501 cat >>confdefs.h <<_ACEOF
25502 #define HAVE_LOG2 1
25503 _ACEOF
25506 cat >>confdefs.h <<_ACEOF
25507 #define HAVE_LOG2_VERSION
25508 _ACEOF
25515 if test "x${PBX_EXP10}" != "x1" -a "${USE_EXP10}" != "no"; then
25516 pbxlibdir=""
25517 # if --with-EXP10=DIR has been specified, use it.
25518 if test "x${EXP10_DIR}" != "x"; then
25519 if test -d ${EXP10_DIR}/lib; then
25520 pbxlibdir="-L${EXP10_DIR}/lib"
25521 else
25522 pbxlibdir="-L${EXP10_DIR}"
25525 pbxfuncname="exp10"
25526 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25527 AST_EXP10_FOUND=yes
25528 else
25529 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25530 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25531 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25532 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25533 echo $ECHO_N "(cached) $ECHO_C" >&6
25534 else
25535 ac_check_lib_save_LIBS=$LIBS
25536 LIBS="-lm ${pbxlibdir} $LIBS"
25537 cat >conftest.$ac_ext <<_ACEOF
25538 /* confdefs.h. */
25539 _ACEOF
25540 cat confdefs.h >>conftest.$ac_ext
25541 cat >>conftest.$ac_ext <<_ACEOF
25542 /* end confdefs.h. */
25544 /* Override any GCC internal prototype to avoid an error.
25545 Use char because int might match the return type of a GCC
25546 builtin and then its argument prototype would still apply. */
25547 #ifdef __cplusplus
25548 extern "C"
25549 #endif
25550 char ${pbxfuncname} ();
25552 main ()
25554 return ${pbxfuncname} ();
25556 return 0;
25558 _ACEOF
25559 rm -f conftest.$ac_objext conftest$ac_exeext
25560 if { (ac_try="$ac_link"
25561 case "(($ac_try" in
25562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25563 *) ac_try_echo=$ac_try;;
25564 esac
25565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25566 (eval "$ac_link") 2>conftest.er1
25567 ac_status=$?
25568 grep -v '^ *+' conftest.er1 >conftest.err
25569 rm -f conftest.er1
25570 cat conftest.err >&5
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); } && {
25573 test -z "$ac_c_werror_flag" ||
25574 test ! -s conftest.err
25575 } && test -s conftest$ac_exeext &&
25576 $as_test_x conftest$ac_exeext; then
25577 eval "$as_ac_Lib=yes"
25578 else
25579 echo "$as_me: failed program was:" >&5
25580 sed 's/^/| /' conftest.$ac_ext >&5
25582 eval "$as_ac_Lib=no"
25585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25586 conftest$ac_exeext conftest.$ac_ext
25587 LIBS=$ac_check_lib_save_LIBS
25589 ac_res=`eval echo '${'$as_ac_Lib'}'`
25590 { echo "$as_me:$LINENO: result: $ac_res" >&5
25591 echo "${ECHO_T}$ac_res" >&6; }
25592 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25593 AST_EXP10_FOUND=yes
25594 else
25595 AST_EXP10_FOUND=no
25600 # now check for the header.
25601 if test "${AST_EXP10_FOUND}" = "yes"; then
25602 EXP10_LIB="${pbxlibdir} -lm "
25603 # if --with-EXP10=DIR has been specified, use it.
25604 if test "x${EXP10_DIR}" != "x"; then
25605 EXP10_INCLUDE="-I${EXP10_DIR}/include"
25607 EXP10_INCLUDE="${EXP10_INCLUDE} "
25608 if test "x" = "x" ; then # no header, assume found
25609 EXP10_HEADER_FOUND="1"
25610 else # check for the header
25611 saved_cppflags="${CPPFLAGS}"
25612 CPPFLAGS="${CPPFLAGS} ${EXP10_INCLUDE} "
25613 if test "${ac_cv_header_+set}" = set; then
25614 { echo "$as_me:$LINENO: checking for " >&5
25615 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25616 if test "${ac_cv_header_+set}" = set; then
25617 echo $ECHO_N "(cached) $ECHO_C" >&6
25619 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25620 echo "${ECHO_T}$ac_cv_header_" >&6; }
25621 else
25622 # Is the header compilable?
25623 { echo "$as_me:$LINENO: checking usability" >&5
25624 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25625 cat >conftest.$ac_ext <<_ACEOF
25626 /* confdefs.h. */
25627 _ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h. */
25631 $ac_includes_default
25632 #include <>
25633 _ACEOF
25634 rm -f conftest.$ac_objext
25635 if { (ac_try="$ac_compile"
25636 case "(($ac_try" in
25637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25638 *) ac_try_echo=$ac_try;;
25639 esac
25640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25641 (eval "$ac_compile") 2>conftest.er1
25642 ac_status=$?
25643 grep -v '^ *+' conftest.er1 >conftest.err
25644 rm -f conftest.er1
25645 cat conftest.err >&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } && {
25648 test -z "$ac_c_werror_flag" ||
25649 test ! -s conftest.err
25650 } && test -s conftest.$ac_objext; then
25651 ac_header_compiler=yes
25652 else
25653 echo "$as_me: failed program was:" >&5
25654 sed 's/^/| /' conftest.$ac_ext >&5
25656 ac_header_compiler=no
25659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25661 echo "${ECHO_T}$ac_header_compiler" >&6; }
25663 # Is the header present?
25664 { echo "$as_me:$LINENO: checking presence" >&5
25665 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25666 cat >conftest.$ac_ext <<_ACEOF
25667 /* confdefs.h. */
25668 _ACEOF
25669 cat confdefs.h >>conftest.$ac_ext
25670 cat >>conftest.$ac_ext <<_ACEOF
25671 /* end confdefs.h. */
25672 #include <>
25673 _ACEOF
25674 if { (ac_try="$ac_cpp conftest.$ac_ext"
25675 case "(($ac_try" in
25676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25677 *) ac_try_echo=$ac_try;;
25678 esac
25679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25681 ac_status=$?
25682 grep -v '^ *+' conftest.er1 >conftest.err
25683 rm -f conftest.er1
25684 cat conftest.err >&5
25685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686 (exit $ac_status); } >/dev/null && {
25687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25688 test ! -s conftest.err
25689 }; then
25690 ac_header_preproc=yes
25691 else
25692 echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.$ac_ext >&5
25695 ac_header_preproc=no
25698 rm -f conftest.err conftest.$ac_ext
25699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25700 echo "${ECHO_T}$ac_header_preproc" >&6; }
25702 # So? What about this header?
25703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25704 yes:no: )
25705 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25706 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25707 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25708 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25709 ac_header_preproc=yes
25711 no:yes:* )
25712 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25713 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25714 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25715 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25716 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25717 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25718 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25719 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25720 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25721 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25722 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25723 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25724 ( cat <<\_ASBOX
25725 ## ------------------------------- ##
25726 ## Report this to www.asterisk.org ##
25727 ## ------------------------------- ##
25728 _ASBOX
25729 ) | sed "s/^/$as_me: WARNING: /" >&2
25731 esac
25732 { echo "$as_me:$LINENO: checking for " >&5
25733 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25734 if test "${ac_cv_header_+set}" = set; then
25735 echo $ECHO_N "(cached) $ECHO_C" >&6
25736 else
25737 ac_cv_header_=$ac_header_preproc
25739 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25740 echo "${ECHO_T}$ac_cv_header_" >&6; }
25743 if test $ac_cv_header_ = yes; then
25744 EXP10_HEADER_FOUND=1
25745 else
25746 EXP10_HEADER_FOUND=0
25750 CPPFLAGS="${saved_cppflags}"
25752 if test "x${EXP10_HEADER_FOUND}" = "x0" ; then
25753 EXP10_LIB=""
25754 EXP10_INCLUDE=""
25755 else
25756 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25757 EXP10_LIB=""
25759 PBX_EXP10=1
25760 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25762 cat >>confdefs.h <<_ACEOF
25763 #define HAVE_EXP10 1
25764 _ACEOF
25767 cat >>confdefs.h <<_ACEOF
25768 #define HAVE_EXP10_VERSION
25769 _ACEOF
25776 if test "x${PBX_LOG10}" != "x1" -a "${USE_LOG10}" != "no"; then
25777 pbxlibdir=""
25778 # if --with-LOG10=DIR has been specified, use it.
25779 if test "x${LOG10_DIR}" != "x"; then
25780 if test -d ${LOG10_DIR}/lib; then
25781 pbxlibdir="-L${LOG10_DIR}/lib"
25782 else
25783 pbxlibdir="-L${LOG10_DIR}"
25786 pbxfuncname="log10"
25787 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25788 AST_LOG10_FOUND=yes
25789 else
25790 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25791 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25792 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25793 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25794 echo $ECHO_N "(cached) $ECHO_C" >&6
25795 else
25796 ac_check_lib_save_LIBS=$LIBS
25797 LIBS="-lm ${pbxlibdir} $LIBS"
25798 cat >conftest.$ac_ext <<_ACEOF
25799 /* confdefs.h. */
25800 _ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h. */
25805 /* Override any GCC internal prototype to avoid an error.
25806 Use char because int might match the return type of a GCC
25807 builtin and then its argument prototype would still apply. */
25808 #ifdef __cplusplus
25809 extern "C"
25810 #endif
25811 char ${pbxfuncname} ();
25813 main ()
25815 return ${pbxfuncname} ();
25817 return 0;
25819 _ACEOF
25820 rm -f conftest.$ac_objext conftest$ac_exeext
25821 if { (ac_try="$ac_link"
25822 case "(($ac_try" in
25823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25824 *) ac_try_echo=$ac_try;;
25825 esac
25826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25827 (eval "$ac_link") 2>conftest.er1
25828 ac_status=$?
25829 grep -v '^ *+' conftest.er1 >conftest.err
25830 rm -f conftest.er1
25831 cat conftest.err >&5
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } && {
25834 test -z "$ac_c_werror_flag" ||
25835 test ! -s conftest.err
25836 } && test -s conftest$ac_exeext &&
25837 $as_test_x conftest$ac_exeext; then
25838 eval "$as_ac_Lib=yes"
25839 else
25840 echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25843 eval "$as_ac_Lib=no"
25846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25847 conftest$ac_exeext conftest.$ac_ext
25848 LIBS=$ac_check_lib_save_LIBS
25850 ac_res=`eval echo '${'$as_ac_Lib'}'`
25851 { echo "$as_me:$LINENO: result: $ac_res" >&5
25852 echo "${ECHO_T}$ac_res" >&6; }
25853 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25854 AST_LOG10_FOUND=yes
25855 else
25856 AST_LOG10_FOUND=no
25861 # now check for the header.
25862 if test "${AST_LOG10_FOUND}" = "yes"; then
25863 LOG10_LIB="${pbxlibdir} -lm "
25864 # if --with-LOG10=DIR has been specified, use it.
25865 if test "x${LOG10_DIR}" != "x"; then
25866 LOG10_INCLUDE="-I${LOG10_DIR}/include"
25868 LOG10_INCLUDE="${LOG10_INCLUDE} "
25869 if test "x" = "x" ; then # no header, assume found
25870 LOG10_HEADER_FOUND="1"
25871 else # check for the header
25872 saved_cppflags="${CPPFLAGS}"
25873 CPPFLAGS="${CPPFLAGS} ${LOG10_INCLUDE} "
25874 if test "${ac_cv_header_+set}" = set; then
25875 { echo "$as_me:$LINENO: checking for " >&5
25876 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25877 if test "${ac_cv_header_+set}" = set; then
25878 echo $ECHO_N "(cached) $ECHO_C" >&6
25880 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25881 echo "${ECHO_T}$ac_cv_header_" >&6; }
25882 else
25883 # Is the header compilable?
25884 { echo "$as_me:$LINENO: checking usability" >&5
25885 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25886 cat >conftest.$ac_ext <<_ACEOF
25887 /* confdefs.h. */
25888 _ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h. */
25892 $ac_includes_default
25893 #include <>
25894 _ACEOF
25895 rm -f conftest.$ac_objext
25896 if { (ac_try="$ac_compile"
25897 case "(($ac_try" in
25898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25899 *) ac_try_echo=$ac_try;;
25900 esac
25901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25902 (eval "$ac_compile") 2>conftest.er1
25903 ac_status=$?
25904 grep -v '^ *+' conftest.er1 >conftest.err
25905 rm -f conftest.er1
25906 cat conftest.err >&5
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); } && {
25909 test -z "$ac_c_werror_flag" ||
25910 test ! -s conftest.err
25911 } && test -s conftest.$ac_objext; then
25912 ac_header_compiler=yes
25913 else
25914 echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25917 ac_header_compiler=no
25920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25922 echo "${ECHO_T}$ac_header_compiler" >&6; }
25924 # Is the header present?
25925 { echo "$as_me:$LINENO: checking presence" >&5
25926 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25927 cat >conftest.$ac_ext <<_ACEOF
25928 /* confdefs.h. */
25929 _ACEOF
25930 cat confdefs.h >>conftest.$ac_ext
25931 cat >>conftest.$ac_ext <<_ACEOF
25932 /* end confdefs.h. */
25933 #include <>
25934 _ACEOF
25935 if { (ac_try="$ac_cpp conftest.$ac_ext"
25936 case "(($ac_try" in
25937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938 *) ac_try_echo=$ac_try;;
25939 esac
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25942 ac_status=$?
25943 grep -v '^ *+' conftest.er1 >conftest.err
25944 rm -f conftest.er1
25945 cat conftest.err >&5
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } >/dev/null && {
25948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25949 test ! -s conftest.err
25950 }; then
25951 ac_header_preproc=yes
25952 else
25953 echo "$as_me: failed program was:" >&5
25954 sed 's/^/| /' conftest.$ac_ext >&5
25956 ac_header_preproc=no
25959 rm -f conftest.err conftest.$ac_ext
25960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25961 echo "${ECHO_T}$ac_header_preproc" >&6; }
25963 # So? What about this header?
25964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25965 yes:no: )
25966 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25967 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25968 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25969 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25970 ac_header_preproc=yes
25972 no:yes:* )
25973 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25974 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25975 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25976 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25977 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25978 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25979 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25980 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25981 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25982 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25983 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25984 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25985 ( cat <<\_ASBOX
25986 ## ------------------------------- ##
25987 ## Report this to www.asterisk.org ##
25988 ## ------------------------------- ##
25989 _ASBOX
25990 ) | sed "s/^/$as_me: WARNING: /" >&2
25992 esac
25993 { echo "$as_me:$LINENO: checking for " >&5
25994 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25995 if test "${ac_cv_header_+set}" = set; then
25996 echo $ECHO_N "(cached) $ECHO_C" >&6
25997 else
25998 ac_cv_header_=$ac_header_preproc
26000 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26001 echo "${ECHO_T}$ac_cv_header_" >&6; }
26004 if test $ac_cv_header_ = yes; then
26005 LOG10_HEADER_FOUND=1
26006 else
26007 LOG10_HEADER_FOUND=0
26011 CPPFLAGS="${saved_cppflags}"
26013 if test "x${LOG10_HEADER_FOUND}" = "x0" ; then
26014 LOG10_LIB=""
26015 LOG10_INCLUDE=""
26016 else
26017 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26018 LOG10_LIB=""
26020 PBX_LOG10=1
26021 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26023 cat >>confdefs.h <<_ACEOF
26024 #define HAVE_LOG10 1
26025 _ACEOF
26028 cat >>confdefs.h <<_ACEOF
26029 #define HAVE_LOG10_VERSION
26030 _ACEOF
26037 if test "x${PBX_SIN}" != "x1" -a "${USE_SIN}" != "no"; then
26038 pbxlibdir=""
26039 # if --with-SIN=DIR has been specified, use it.
26040 if test "x${SIN_DIR}" != "x"; then
26041 if test -d ${SIN_DIR}/lib; then
26042 pbxlibdir="-L${SIN_DIR}/lib"
26043 else
26044 pbxlibdir="-L${SIN_DIR}"
26047 pbxfuncname="sin"
26048 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26049 AST_SIN_FOUND=yes
26050 else
26051 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26052 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26053 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26054 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26055 echo $ECHO_N "(cached) $ECHO_C" >&6
26056 else
26057 ac_check_lib_save_LIBS=$LIBS
26058 LIBS="-lm ${pbxlibdir} $LIBS"
26059 cat >conftest.$ac_ext <<_ACEOF
26060 /* confdefs.h. */
26061 _ACEOF
26062 cat confdefs.h >>conftest.$ac_ext
26063 cat >>conftest.$ac_ext <<_ACEOF
26064 /* end confdefs.h. */
26066 /* Override any GCC internal prototype to avoid an error.
26067 Use char because int might match the return type of a GCC
26068 builtin and then its argument prototype would still apply. */
26069 #ifdef __cplusplus
26070 extern "C"
26071 #endif
26072 char ${pbxfuncname} ();
26074 main ()
26076 return ${pbxfuncname} ();
26078 return 0;
26080 _ACEOF
26081 rm -f conftest.$ac_objext conftest$ac_exeext
26082 if { (ac_try="$ac_link"
26083 case "(($ac_try" in
26084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26085 *) ac_try_echo=$ac_try;;
26086 esac
26087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26088 (eval "$ac_link") 2>conftest.er1
26089 ac_status=$?
26090 grep -v '^ *+' conftest.er1 >conftest.err
26091 rm -f conftest.er1
26092 cat conftest.err >&5
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); } && {
26095 test -z "$ac_c_werror_flag" ||
26096 test ! -s conftest.err
26097 } && test -s conftest$ac_exeext &&
26098 $as_test_x conftest$ac_exeext; then
26099 eval "$as_ac_Lib=yes"
26100 else
26101 echo "$as_me: failed program was:" >&5
26102 sed 's/^/| /' conftest.$ac_ext >&5
26104 eval "$as_ac_Lib=no"
26107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26108 conftest$ac_exeext conftest.$ac_ext
26109 LIBS=$ac_check_lib_save_LIBS
26111 ac_res=`eval echo '${'$as_ac_Lib'}'`
26112 { echo "$as_me:$LINENO: result: $ac_res" >&5
26113 echo "${ECHO_T}$ac_res" >&6; }
26114 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26115 AST_SIN_FOUND=yes
26116 else
26117 AST_SIN_FOUND=no
26122 # now check for the header.
26123 if test "${AST_SIN_FOUND}" = "yes"; then
26124 SIN_LIB="${pbxlibdir} -lm "
26125 # if --with-SIN=DIR has been specified, use it.
26126 if test "x${SIN_DIR}" != "x"; then
26127 SIN_INCLUDE="-I${SIN_DIR}/include"
26129 SIN_INCLUDE="${SIN_INCLUDE} "
26130 if test "x" = "x" ; then # no header, assume found
26131 SIN_HEADER_FOUND="1"
26132 else # check for the header
26133 saved_cppflags="${CPPFLAGS}"
26134 CPPFLAGS="${CPPFLAGS} ${SIN_INCLUDE} "
26135 if test "${ac_cv_header_+set}" = set; then
26136 { echo "$as_me:$LINENO: checking for " >&5
26137 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26138 if test "${ac_cv_header_+set}" = set; then
26139 echo $ECHO_N "(cached) $ECHO_C" >&6
26141 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26142 echo "${ECHO_T}$ac_cv_header_" >&6; }
26143 else
26144 # Is the header compilable?
26145 { echo "$as_me:$LINENO: checking usability" >&5
26146 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26147 cat >conftest.$ac_ext <<_ACEOF
26148 /* confdefs.h. */
26149 _ACEOF
26150 cat confdefs.h >>conftest.$ac_ext
26151 cat >>conftest.$ac_ext <<_ACEOF
26152 /* end confdefs.h. */
26153 $ac_includes_default
26154 #include <>
26155 _ACEOF
26156 rm -f conftest.$ac_objext
26157 if { (ac_try="$ac_compile"
26158 case "(($ac_try" in
26159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26160 *) ac_try_echo=$ac_try;;
26161 esac
26162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26163 (eval "$ac_compile") 2>conftest.er1
26164 ac_status=$?
26165 grep -v '^ *+' conftest.er1 >conftest.err
26166 rm -f conftest.er1
26167 cat conftest.err >&5
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); } && {
26170 test -z "$ac_c_werror_flag" ||
26171 test ! -s conftest.err
26172 } && test -s conftest.$ac_objext; then
26173 ac_header_compiler=yes
26174 else
26175 echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26178 ac_header_compiler=no
26181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26183 echo "${ECHO_T}$ac_header_compiler" >&6; }
26185 # Is the header present?
26186 { echo "$as_me:$LINENO: checking presence" >&5
26187 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26188 cat >conftest.$ac_ext <<_ACEOF
26189 /* confdefs.h. */
26190 _ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h. */
26194 #include <>
26195 _ACEOF
26196 if { (ac_try="$ac_cpp conftest.$ac_ext"
26197 case "(($ac_try" in
26198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26199 *) ac_try_echo=$ac_try;;
26200 esac
26201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26203 ac_status=$?
26204 grep -v '^ *+' conftest.er1 >conftest.err
26205 rm -f conftest.er1
26206 cat conftest.err >&5
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); } >/dev/null && {
26209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26210 test ! -s conftest.err
26211 }; then
26212 ac_header_preproc=yes
26213 else
26214 echo "$as_me: failed program was:" >&5
26215 sed 's/^/| /' conftest.$ac_ext >&5
26217 ac_header_preproc=no
26220 rm -f conftest.err conftest.$ac_ext
26221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26222 echo "${ECHO_T}$ac_header_preproc" >&6; }
26224 # So? What about this header?
26225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26226 yes:no: )
26227 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26228 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26229 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26230 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26231 ac_header_preproc=yes
26233 no:yes:* )
26234 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26235 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26236 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26237 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26238 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26239 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26240 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26241 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26242 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26243 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26244 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26245 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26246 ( cat <<\_ASBOX
26247 ## ------------------------------- ##
26248 ## Report this to www.asterisk.org ##
26249 ## ------------------------------- ##
26250 _ASBOX
26251 ) | sed "s/^/$as_me: WARNING: /" >&2
26253 esac
26254 { echo "$as_me:$LINENO: checking for " >&5
26255 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26256 if test "${ac_cv_header_+set}" = set; then
26257 echo $ECHO_N "(cached) $ECHO_C" >&6
26258 else
26259 ac_cv_header_=$ac_header_preproc
26261 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26262 echo "${ECHO_T}$ac_cv_header_" >&6; }
26265 if test $ac_cv_header_ = yes; then
26266 SIN_HEADER_FOUND=1
26267 else
26268 SIN_HEADER_FOUND=0
26272 CPPFLAGS="${saved_cppflags}"
26274 if test "x${SIN_HEADER_FOUND}" = "x0" ; then
26275 SIN_LIB=""
26276 SIN_INCLUDE=""
26277 else
26278 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26279 SIN_LIB=""
26281 PBX_SIN=1
26282 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26284 cat >>confdefs.h <<_ACEOF
26285 #define HAVE_SIN 1
26286 _ACEOF
26289 cat >>confdefs.h <<_ACEOF
26290 #define HAVE_SIN_VERSION
26291 _ACEOF
26298 if test "x${PBX_COS}" != "x1" -a "${USE_COS}" != "no"; then
26299 pbxlibdir=""
26300 # if --with-COS=DIR has been specified, use it.
26301 if test "x${COS_DIR}" != "x"; then
26302 if test -d ${COS_DIR}/lib; then
26303 pbxlibdir="-L${COS_DIR}/lib"
26304 else
26305 pbxlibdir="-L${COS_DIR}"
26308 pbxfuncname="cos"
26309 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26310 AST_COS_FOUND=yes
26311 else
26312 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26313 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26314 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26315 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26316 echo $ECHO_N "(cached) $ECHO_C" >&6
26317 else
26318 ac_check_lib_save_LIBS=$LIBS
26319 LIBS="-lm ${pbxlibdir} $LIBS"
26320 cat >conftest.$ac_ext <<_ACEOF
26321 /* confdefs.h. */
26322 _ACEOF
26323 cat confdefs.h >>conftest.$ac_ext
26324 cat >>conftest.$ac_ext <<_ACEOF
26325 /* end confdefs.h. */
26327 /* Override any GCC internal prototype to avoid an error.
26328 Use char because int might match the return type of a GCC
26329 builtin and then its argument prototype would still apply. */
26330 #ifdef __cplusplus
26331 extern "C"
26332 #endif
26333 char ${pbxfuncname} ();
26335 main ()
26337 return ${pbxfuncname} ();
26339 return 0;
26341 _ACEOF
26342 rm -f conftest.$ac_objext conftest$ac_exeext
26343 if { (ac_try="$ac_link"
26344 case "(($ac_try" in
26345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26346 *) ac_try_echo=$ac_try;;
26347 esac
26348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26349 (eval "$ac_link") 2>conftest.er1
26350 ac_status=$?
26351 grep -v '^ *+' conftest.er1 >conftest.err
26352 rm -f conftest.er1
26353 cat conftest.err >&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); } && {
26356 test -z "$ac_c_werror_flag" ||
26357 test ! -s conftest.err
26358 } && test -s conftest$ac_exeext &&
26359 $as_test_x conftest$ac_exeext; then
26360 eval "$as_ac_Lib=yes"
26361 else
26362 echo "$as_me: failed program was:" >&5
26363 sed 's/^/| /' conftest.$ac_ext >&5
26365 eval "$as_ac_Lib=no"
26368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26369 conftest$ac_exeext conftest.$ac_ext
26370 LIBS=$ac_check_lib_save_LIBS
26372 ac_res=`eval echo '${'$as_ac_Lib'}'`
26373 { echo "$as_me:$LINENO: result: $ac_res" >&5
26374 echo "${ECHO_T}$ac_res" >&6; }
26375 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26376 AST_COS_FOUND=yes
26377 else
26378 AST_COS_FOUND=no
26383 # now check for the header.
26384 if test "${AST_COS_FOUND}" = "yes"; then
26385 COS_LIB="${pbxlibdir} -lm "
26386 # if --with-COS=DIR has been specified, use it.
26387 if test "x${COS_DIR}" != "x"; then
26388 COS_INCLUDE="-I${COS_DIR}/include"
26390 COS_INCLUDE="${COS_INCLUDE} "
26391 if test "x" = "x" ; then # no header, assume found
26392 COS_HEADER_FOUND="1"
26393 else # check for the header
26394 saved_cppflags="${CPPFLAGS}"
26395 CPPFLAGS="${CPPFLAGS} ${COS_INCLUDE} "
26396 if test "${ac_cv_header_+set}" = set; then
26397 { echo "$as_me:$LINENO: checking for " >&5
26398 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26399 if test "${ac_cv_header_+set}" = set; then
26400 echo $ECHO_N "(cached) $ECHO_C" >&6
26402 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26403 echo "${ECHO_T}$ac_cv_header_" >&6; }
26404 else
26405 # Is the header compilable?
26406 { echo "$as_me:$LINENO: checking usability" >&5
26407 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26408 cat >conftest.$ac_ext <<_ACEOF
26409 /* confdefs.h. */
26410 _ACEOF
26411 cat confdefs.h >>conftest.$ac_ext
26412 cat >>conftest.$ac_ext <<_ACEOF
26413 /* end confdefs.h. */
26414 $ac_includes_default
26415 #include <>
26416 _ACEOF
26417 rm -f conftest.$ac_objext
26418 if { (ac_try="$ac_compile"
26419 case "(($ac_try" in
26420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26421 *) ac_try_echo=$ac_try;;
26422 esac
26423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26424 (eval "$ac_compile") 2>conftest.er1
26425 ac_status=$?
26426 grep -v '^ *+' conftest.er1 >conftest.err
26427 rm -f conftest.er1
26428 cat conftest.err >&5
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); } && {
26431 test -z "$ac_c_werror_flag" ||
26432 test ! -s conftest.err
26433 } && test -s conftest.$ac_objext; then
26434 ac_header_compiler=yes
26435 else
26436 echo "$as_me: failed program was:" >&5
26437 sed 's/^/| /' conftest.$ac_ext >&5
26439 ac_header_compiler=no
26442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26444 echo "${ECHO_T}$ac_header_compiler" >&6; }
26446 # Is the header present?
26447 { echo "$as_me:$LINENO: checking presence" >&5
26448 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26449 cat >conftest.$ac_ext <<_ACEOF
26450 /* confdefs.h. */
26451 _ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h. */
26455 #include <>
26456 _ACEOF
26457 if { (ac_try="$ac_cpp conftest.$ac_ext"
26458 case "(($ac_try" in
26459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26460 *) ac_try_echo=$ac_try;;
26461 esac
26462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26464 ac_status=$?
26465 grep -v '^ *+' conftest.er1 >conftest.err
26466 rm -f conftest.er1
26467 cat conftest.err >&5
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); } >/dev/null && {
26470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26471 test ! -s conftest.err
26472 }; then
26473 ac_header_preproc=yes
26474 else
26475 echo "$as_me: failed program was:" >&5
26476 sed 's/^/| /' conftest.$ac_ext >&5
26478 ac_header_preproc=no
26481 rm -f conftest.err conftest.$ac_ext
26482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26483 echo "${ECHO_T}$ac_header_preproc" >&6; }
26485 # So? What about this header?
26486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26487 yes:no: )
26488 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26489 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26490 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26491 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26492 ac_header_preproc=yes
26494 no:yes:* )
26495 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26496 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26497 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26498 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26499 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26500 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26501 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26502 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26503 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26504 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26505 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26506 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26507 ( cat <<\_ASBOX
26508 ## ------------------------------- ##
26509 ## Report this to www.asterisk.org ##
26510 ## ------------------------------- ##
26511 _ASBOX
26512 ) | sed "s/^/$as_me: WARNING: /" >&2
26514 esac
26515 { echo "$as_me:$LINENO: checking for " >&5
26516 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26517 if test "${ac_cv_header_+set}" = set; then
26518 echo $ECHO_N "(cached) $ECHO_C" >&6
26519 else
26520 ac_cv_header_=$ac_header_preproc
26522 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26523 echo "${ECHO_T}$ac_cv_header_" >&6; }
26526 if test $ac_cv_header_ = yes; then
26527 COS_HEADER_FOUND=1
26528 else
26529 COS_HEADER_FOUND=0
26533 CPPFLAGS="${saved_cppflags}"
26535 if test "x${COS_HEADER_FOUND}" = "x0" ; then
26536 COS_LIB=""
26537 COS_INCLUDE=""
26538 else
26539 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26540 COS_LIB=""
26542 PBX_COS=1
26543 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26545 cat >>confdefs.h <<_ACEOF
26546 #define HAVE_COS 1
26547 _ACEOF
26550 cat >>confdefs.h <<_ACEOF
26551 #define HAVE_COS_VERSION
26552 _ACEOF
26559 if test "x${PBX_TAN}" != "x1" -a "${USE_TAN}" != "no"; then
26560 pbxlibdir=""
26561 # if --with-TAN=DIR has been specified, use it.
26562 if test "x${TAN_DIR}" != "x"; then
26563 if test -d ${TAN_DIR}/lib; then
26564 pbxlibdir="-L${TAN_DIR}/lib"
26565 else
26566 pbxlibdir="-L${TAN_DIR}"
26569 pbxfuncname="tan"
26570 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26571 AST_TAN_FOUND=yes
26572 else
26573 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26574 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26575 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26576 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26577 echo $ECHO_N "(cached) $ECHO_C" >&6
26578 else
26579 ac_check_lib_save_LIBS=$LIBS
26580 LIBS="-lm ${pbxlibdir} $LIBS"
26581 cat >conftest.$ac_ext <<_ACEOF
26582 /* confdefs.h. */
26583 _ACEOF
26584 cat confdefs.h >>conftest.$ac_ext
26585 cat >>conftest.$ac_ext <<_ACEOF
26586 /* end confdefs.h. */
26588 /* Override any GCC internal prototype to avoid an error.
26589 Use char because int might match the return type of a GCC
26590 builtin and then its argument prototype would still apply. */
26591 #ifdef __cplusplus
26592 extern "C"
26593 #endif
26594 char ${pbxfuncname} ();
26596 main ()
26598 return ${pbxfuncname} ();
26600 return 0;
26602 _ACEOF
26603 rm -f conftest.$ac_objext conftest$ac_exeext
26604 if { (ac_try="$ac_link"
26605 case "(($ac_try" in
26606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26607 *) ac_try_echo=$ac_try;;
26608 esac
26609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26610 (eval "$ac_link") 2>conftest.er1
26611 ac_status=$?
26612 grep -v '^ *+' conftest.er1 >conftest.err
26613 rm -f conftest.er1
26614 cat conftest.err >&5
26615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616 (exit $ac_status); } && {
26617 test -z "$ac_c_werror_flag" ||
26618 test ! -s conftest.err
26619 } && test -s conftest$ac_exeext &&
26620 $as_test_x conftest$ac_exeext; then
26621 eval "$as_ac_Lib=yes"
26622 else
26623 echo "$as_me: failed program was:" >&5
26624 sed 's/^/| /' conftest.$ac_ext >&5
26626 eval "$as_ac_Lib=no"
26629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26630 conftest$ac_exeext conftest.$ac_ext
26631 LIBS=$ac_check_lib_save_LIBS
26633 ac_res=`eval echo '${'$as_ac_Lib'}'`
26634 { echo "$as_me:$LINENO: result: $ac_res" >&5
26635 echo "${ECHO_T}$ac_res" >&6; }
26636 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26637 AST_TAN_FOUND=yes
26638 else
26639 AST_TAN_FOUND=no
26644 # now check for the header.
26645 if test "${AST_TAN_FOUND}" = "yes"; then
26646 TAN_LIB="${pbxlibdir} -lm "
26647 # if --with-TAN=DIR has been specified, use it.
26648 if test "x${TAN_DIR}" != "x"; then
26649 TAN_INCLUDE="-I${TAN_DIR}/include"
26651 TAN_INCLUDE="${TAN_INCLUDE} "
26652 if test "x" = "x" ; then # no header, assume found
26653 TAN_HEADER_FOUND="1"
26654 else # check for the header
26655 saved_cppflags="${CPPFLAGS}"
26656 CPPFLAGS="${CPPFLAGS} ${TAN_INCLUDE} "
26657 if test "${ac_cv_header_+set}" = set; then
26658 { echo "$as_me:$LINENO: checking for " >&5
26659 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26660 if test "${ac_cv_header_+set}" = set; then
26661 echo $ECHO_N "(cached) $ECHO_C" >&6
26663 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26664 echo "${ECHO_T}$ac_cv_header_" >&6; }
26665 else
26666 # Is the header compilable?
26667 { echo "$as_me:$LINENO: checking usability" >&5
26668 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26669 cat >conftest.$ac_ext <<_ACEOF
26670 /* confdefs.h. */
26671 _ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h. */
26675 $ac_includes_default
26676 #include <>
26677 _ACEOF
26678 rm -f conftest.$ac_objext
26679 if { (ac_try="$ac_compile"
26680 case "(($ac_try" in
26681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26682 *) ac_try_echo=$ac_try;;
26683 esac
26684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26685 (eval "$ac_compile") 2>conftest.er1
26686 ac_status=$?
26687 grep -v '^ *+' conftest.er1 >conftest.err
26688 rm -f conftest.er1
26689 cat conftest.err >&5
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); } && {
26692 test -z "$ac_c_werror_flag" ||
26693 test ! -s conftest.err
26694 } && test -s conftest.$ac_objext; then
26695 ac_header_compiler=yes
26696 else
26697 echo "$as_me: failed program was:" >&5
26698 sed 's/^/| /' conftest.$ac_ext >&5
26700 ac_header_compiler=no
26703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26705 echo "${ECHO_T}$ac_header_compiler" >&6; }
26707 # Is the header present?
26708 { echo "$as_me:$LINENO: checking presence" >&5
26709 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26710 cat >conftest.$ac_ext <<_ACEOF
26711 /* confdefs.h. */
26712 _ACEOF
26713 cat confdefs.h >>conftest.$ac_ext
26714 cat >>conftest.$ac_ext <<_ACEOF
26715 /* end confdefs.h. */
26716 #include <>
26717 _ACEOF
26718 if { (ac_try="$ac_cpp conftest.$ac_ext"
26719 case "(($ac_try" in
26720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26721 *) ac_try_echo=$ac_try;;
26722 esac
26723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26725 ac_status=$?
26726 grep -v '^ *+' conftest.er1 >conftest.err
26727 rm -f conftest.er1
26728 cat conftest.err >&5
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); } >/dev/null && {
26731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26732 test ! -s conftest.err
26733 }; then
26734 ac_header_preproc=yes
26735 else
26736 echo "$as_me: failed program was:" >&5
26737 sed 's/^/| /' conftest.$ac_ext >&5
26739 ac_header_preproc=no
26742 rm -f conftest.err conftest.$ac_ext
26743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26744 echo "${ECHO_T}$ac_header_preproc" >&6; }
26746 # So? What about this header?
26747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26748 yes:no: )
26749 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26750 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26751 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26752 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26753 ac_header_preproc=yes
26755 no:yes:* )
26756 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26757 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26758 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26759 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26760 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26761 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26762 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26763 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26764 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26765 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26766 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26767 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26768 ( cat <<\_ASBOX
26769 ## ------------------------------- ##
26770 ## Report this to www.asterisk.org ##
26771 ## ------------------------------- ##
26772 _ASBOX
26773 ) | sed "s/^/$as_me: WARNING: /" >&2
26775 esac
26776 { echo "$as_me:$LINENO: checking for " >&5
26777 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26778 if test "${ac_cv_header_+set}" = set; then
26779 echo $ECHO_N "(cached) $ECHO_C" >&6
26780 else
26781 ac_cv_header_=$ac_header_preproc
26783 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26784 echo "${ECHO_T}$ac_cv_header_" >&6; }
26787 if test $ac_cv_header_ = yes; then
26788 TAN_HEADER_FOUND=1
26789 else
26790 TAN_HEADER_FOUND=0
26794 CPPFLAGS="${saved_cppflags}"
26796 if test "x${TAN_HEADER_FOUND}" = "x0" ; then
26797 TAN_LIB=""
26798 TAN_INCLUDE=""
26799 else
26800 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26801 TAN_LIB=""
26803 PBX_TAN=1
26804 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26806 cat >>confdefs.h <<_ACEOF
26807 #define HAVE_TAN 1
26808 _ACEOF
26811 cat >>confdefs.h <<_ACEOF
26812 #define HAVE_TAN_VERSION
26813 _ACEOF
26820 if test "x${PBX_ASIN}" != "x1" -a "${USE_ASIN}" != "no"; then
26821 pbxlibdir=""
26822 # if --with-ASIN=DIR has been specified, use it.
26823 if test "x${ASIN_DIR}" != "x"; then
26824 if test -d ${ASIN_DIR}/lib; then
26825 pbxlibdir="-L${ASIN_DIR}/lib"
26826 else
26827 pbxlibdir="-L${ASIN_DIR}"
26830 pbxfuncname="asin"
26831 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26832 AST_ASIN_FOUND=yes
26833 else
26834 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26835 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26836 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26837 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26838 echo $ECHO_N "(cached) $ECHO_C" >&6
26839 else
26840 ac_check_lib_save_LIBS=$LIBS
26841 LIBS="-lm ${pbxlibdir} $LIBS"
26842 cat >conftest.$ac_ext <<_ACEOF
26843 /* confdefs.h. */
26844 _ACEOF
26845 cat confdefs.h >>conftest.$ac_ext
26846 cat >>conftest.$ac_ext <<_ACEOF
26847 /* end confdefs.h. */
26849 /* Override any GCC internal prototype to avoid an error.
26850 Use char because int might match the return type of a GCC
26851 builtin and then its argument prototype would still apply. */
26852 #ifdef __cplusplus
26853 extern "C"
26854 #endif
26855 char ${pbxfuncname} ();
26857 main ()
26859 return ${pbxfuncname} ();
26861 return 0;
26863 _ACEOF
26864 rm -f conftest.$ac_objext conftest$ac_exeext
26865 if { (ac_try="$ac_link"
26866 case "(($ac_try" in
26867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26868 *) ac_try_echo=$ac_try;;
26869 esac
26870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26871 (eval "$ac_link") 2>conftest.er1
26872 ac_status=$?
26873 grep -v '^ *+' conftest.er1 >conftest.err
26874 rm -f conftest.er1
26875 cat conftest.err >&5
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); } && {
26878 test -z "$ac_c_werror_flag" ||
26879 test ! -s conftest.err
26880 } && test -s conftest$ac_exeext &&
26881 $as_test_x conftest$ac_exeext; then
26882 eval "$as_ac_Lib=yes"
26883 else
26884 echo "$as_me: failed program was:" >&5
26885 sed 's/^/| /' conftest.$ac_ext >&5
26887 eval "$as_ac_Lib=no"
26890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26891 conftest$ac_exeext conftest.$ac_ext
26892 LIBS=$ac_check_lib_save_LIBS
26894 ac_res=`eval echo '${'$as_ac_Lib'}'`
26895 { echo "$as_me:$LINENO: result: $ac_res" >&5
26896 echo "${ECHO_T}$ac_res" >&6; }
26897 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26898 AST_ASIN_FOUND=yes
26899 else
26900 AST_ASIN_FOUND=no
26905 # now check for the header.
26906 if test "${AST_ASIN_FOUND}" = "yes"; then
26907 ASIN_LIB="${pbxlibdir} -lm "
26908 # if --with-ASIN=DIR has been specified, use it.
26909 if test "x${ASIN_DIR}" != "x"; then
26910 ASIN_INCLUDE="-I${ASIN_DIR}/include"
26912 ASIN_INCLUDE="${ASIN_INCLUDE} "
26913 if test "x" = "x" ; then # no header, assume found
26914 ASIN_HEADER_FOUND="1"
26915 else # check for the header
26916 saved_cppflags="${CPPFLAGS}"
26917 CPPFLAGS="${CPPFLAGS} ${ASIN_INCLUDE} "
26918 if test "${ac_cv_header_+set}" = set; then
26919 { echo "$as_me:$LINENO: checking for " >&5
26920 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26921 if test "${ac_cv_header_+set}" = set; then
26922 echo $ECHO_N "(cached) $ECHO_C" >&6
26924 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26925 echo "${ECHO_T}$ac_cv_header_" >&6; }
26926 else
26927 # Is the header compilable?
26928 { echo "$as_me:$LINENO: checking usability" >&5
26929 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26930 cat >conftest.$ac_ext <<_ACEOF
26931 /* confdefs.h. */
26932 _ACEOF
26933 cat confdefs.h >>conftest.$ac_ext
26934 cat >>conftest.$ac_ext <<_ACEOF
26935 /* end confdefs.h. */
26936 $ac_includes_default
26937 #include <>
26938 _ACEOF
26939 rm -f conftest.$ac_objext
26940 if { (ac_try="$ac_compile"
26941 case "(($ac_try" in
26942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943 *) ac_try_echo=$ac_try;;
26944 esac
26945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946 (eval "$ac_compile") 2>conftest.er1
26947 ac_status=$?
26948 grep -v '^ *+' conftest.er1 >conftest.err
26949 rm -f conftest.er1
26950 cat conftest.err >&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); } && {
26953 test -z "$ac_c_werror_flag" ||
26954 test ! -s conftest.err
26955 } && test -s conftest.$ac_objext; then
26956 ac_header_compiler=yes
26957 else
26958 echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26961 ac_header_compiler=no
26964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26966 echo "${ECHO_T}$ac_header_compiler" >&6; }
26968 # Is the header present?
26969 { echo "$as_me:$LINENO: checking presence" >&5
26970 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26971 cat >conftest.$ac_ext <<_ACEOF
26972 /* confdefs.h. */
26973 _ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h. */
26977 #include <>
26978 _ACEOF
26979 if { (ac_try="$ac_cpp conftest.$ac_ext"
26980 case "(($ac_try" in
26981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26982 *) ac_try_echo=$ac_try;;
26983 esac
26984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26986 ac_status=$?
26987 grep -v '^ *+' conftest.er1 >conftest.err
26988 rm -f conftest.er1
26989 cat conftest.err >&5
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); } >/dev/null && {
26992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26993 test ! -s conftest.err
26994 }; then
26995 ac_header_preproc=yes
26996 else
26997 echo "$as_me: failed program was:" >&5
26998 sed 's/^/| /' conftest.$ac_ext >&5
27000 ac_header_preproc=no
27003 rm -f conftest.err conftest.$ac_ext
27004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27005 echo "${ECHO_T}$ac_header_preproc" >&6; }
27007 # So? What about this header?
27008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27009 yes:no: )
27010 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27011 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27012 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27013 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27014 ac_header_preproc=yes
27016 no:yes:* )
27017 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27018 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27019 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27020 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27021 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27022 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27023 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27024 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27025 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27026 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27027 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27028 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27029 ( cat <<\_ASBOX
27030 ## ------------------------------- ##
27031 ## Report this to www.asterisk.org ##
27032 ## ------------------------------- ##
27033 _ASBOX
27034 ) | sed "s/^/$as_me: WARNING: /" >&2
27036 esac
27037 { echo "$as_me:$LINENO: checking for " >&5
27038 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27039 if test "${ac_cv_header_+set}" = set; then
27040 echo $ECHO_N "(cached) $ECHO_C" >&6
27041 else
27042 ac_cv_header_=$ac_header_preproc
27044 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27045 echo "${ECHO_T}$ac_cv_header_" >&6; }
27048 if test $ac_cv_header_ = yes; then
27049 ASIN_HEADER_FOUND=1
27050 else
27051 ASIN_HEADER_FOUND=0
27055 CPPFLAGS="${saved_cppflags}"
27057 if test "x${ASIN_HEADER_FOUND}" = "x0" ; then
27058 ASIN_LIB=""
27059 ASIN_INCLUDE=""
27060 else
27061 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27062 ASIN_LIB=""
27064 PBX_ASIN=1
27065 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27067 cat >>confdefs.h <<_ACEOF
27068 #define HAVE_ASIN 1
27069 _ACEOF
27072 cat >>confdefs.h <<_ACEOF
27073 #define HAVE_ASIN_VERSION
27074 _ACEOF
27081 if test "x${PBX_ACOS}" != "x1" -a "${USE_ACOS}" != "no"; then
27082 pbxlibdir=""
27083 # if --with-ACOS=DIR has been specified, use it.
27084 if test "x${ACOS_DIR}" != "x"; then
27085 if test -d ${ACOS_DIR}/lib; then
27086 pbxlibdir="-L${ACOS_DIR}/lib"
27087 else
27088 pbxlibdir="-L${ACOS_DIR}"
27091 pbxfuncname="acos"
27092 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27093 AST_ACOS_FOUND=yes
27094 else
27095 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27096 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27097 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27098 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27099 echo $ECHO_N "(cached) $ECHO_C" >&6
27100 else
27101 ac_check_lib_save_LIBS=$LIBS
27102 LIBS="-lm ${pbxlibdir} $LIBS"
27103 cat >conftest.$ac_ext <<_ACEOF
27104 /* confdefs.h. */
27105 _ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h. */
27110 /* Override any GCC internal prototype to avoid an error.
27111 Use char because int might match the return type of a GCC
27112 builtin and then its argument prototype would still apply. */
27113 #ifdef __cplusplus
27114 extern "C"
27115 #endif
27116 char ${pbxfuncname} ();
27118 main ()
27120 return ${pbxfuncname} ();
27122 return 0;
27124 _ACEOF
27125 rm -f conftest.$ac_objext conftest$ac_exeext
27126 if { (ac_try="$ac_link"
27127 case "(($ac_try" in
27128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27129 *) ac_try_echo=$ac_try;;
27130 esac
27131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27132 (eval "$ac_link") 2>conftest.er1
27133 ac_status=$?
27134 grep -v '^ *+' conftest.er1 >conftest.err
27135 rm -f conftest.er1
27136 cat conftest.err >&5
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); } && {
27139 test -z "$ac_c_werror_flag" ||
27140 test ! -s conftest.err
27141 } && test -s conftest$ac_exeext &&
27142 $as_test_x conftest$ac_exeext; then
27143 eval "$as_ac_Lib=yes"
27144 else
27145 echo "$as_me: failed program was:" >&5
27146 sed 's/^/| /' conftest.$ac_ext >&5
27148 eval "$as_ac_Lib=no"
27151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27152 conftest$ac_exeext conftest.$ac_ext
27153 LIBS=$ac_check_lib_save_LIBS
27155 ac_res=`eval echo '${'$as_ac_Lib'}'`
27156 { echo "$as_me:$LINENO: result: $ac_res" >&5
27157 echo "${ECHO_T}$ac_res" >&6; }
27158 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27159 AST_ACOS_FOUND=yes
27160 else
27161 AST_ACOS_FOUND=no
27166 # now check for the header.
27167 if test "${AST_ACOS_FOUND}" = "yes"; then
27168 ACOS_LIB="${pbxlibdir} -lm "
27169 # if --with-ACOS=DIR has been specified, use it.
27170 if test "x${ACOS_DIR}" != "x"; then
27171 ACOS_INCLUDE="-I${ACOS_DIR}/include"
27173 ACOS_INCLUDE="${ACOS_INCLUDE} "
27174 if test "x" = "x" ; then # no header, assume found
27175 ACOS_HEADER_FOUND="1"
27176 else # check for the header
27177 saved_cppflags="${CPPFLAGS}"
27178 CPPFLAGS="${CPPFLAGS} ${ACOS_INCLUDE} "
27179 if test "${ac_cv_header_+set}" = set; then
27180 { echo "$as_me:$LINENO: checking for " >&5
27181 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27182 if test "${ac_cv_header_+set}" = set; then
27183 echo $ECHO_N "(cached) $ECHO_C" >&6
27185 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27186 echo "${ECHO_T}$ac_cv_header_" >&6; }
27187 else
27188 # Is the header compilable?
27189 { echo "$as_me:$LINENO: checking usability" >&5
27190 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27191 cat >conftest.$ac_ext <<_ACEOF
27192 /* confdefs.h. */
27193 _ACEOF
27194 cat confdefs.h >>conftest.$ac_ext
27195 cat >>conftest.$ac_ext <<_ACEOF
27196 /* end confdefs.h. */
27197 $ac_includes_default
27198 #include <>
27199 _ACEOF
27200 rm -f conftest.$ac_objext
27201 if { (ac_try="$ac_compile"
27202 case "(($ac_try" in
27203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204 *) ac_try_echo=$ac_try;;
27205 esac
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207 (eval "$ac_compile") 2>conftest.er1
27208 ac_status=$?
27209 grep -v '^ *+' conftest.er1 >conftest.err
27210 rm -f conftest.er1
27211 cat conftest.err >&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } && {
27214 test -z "$ac_c_werror_flag" ||
27215 test ! -s conftest.err
27216 } && test -s conftest.$ac_objext; then
27217 ac_header_compiler=yes
27218 else
27219 echo "$as_me: failed program was:" >&5
27220 sed 's/^/| /' conftest.$ac_ext >&5
27222 ac_header_compiler=no
27225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27227 echo "${ECHO_T}$ac_header_compiler" >&6; }
27229 # Is the header present?
27230 { echo "$as_me:$LINENO: checking presence" >&5
27231 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27232 cat >conftest.$ac_ext <<_ACEOF
27233 /* confdefs.h. */
27234 _ACEOF
27235 cat confdefs.h >>conftest.$ac_ext
27236 cat >>conftest.$ac_ext <<_ACEOF
27237 /* end confdefs.h. */
27238 #include <>
27239 _ACEOF
27240 if { (ac_try="$ac_cpp conftest.$ac_ext"
27241 case "(($ac_try" in
27242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27243 *) ac_try_echo=$ac_try;;
27244 esac
27245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27247 ac_status=$?
27248 grep -v '^ *+' conftest.er1 >conftest.err
27249 rm -f conftest.er1
27250 cat conftest.err >&5
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); } >/dev/null && {
27253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27254 test ! -s conftest.err
27255 }; then
27256 ac_header_preproc=yes
27257 else
27258 echo "$as_me: failed program was:" >&5
27259 sed 's/^/| /' conftest.$ac_ext >&5
27261 ac_header_preproc=no
27264 rm -f conftest.err conftest.$ac_ext
27265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27266 echo "${ECHO_T}$ac_header_preproc" >&6; }
27268 # So? What about this header?
27269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27270 yes:no: )
27271 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27272 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27273 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27274 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27275 ac_header_preproc=yes
27277 no:yes:* )
27278 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27279 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27280 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27281 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27282 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27283 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27284 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27285 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27286 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27287 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27288 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27289 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27290 ( cat <<\_ASBOX
27291 ## ------------------------------- ##
27292 ## Report this to www.asterisk.org ##
27293 ## ------------------------------- ##
27294 _ASBOX
27295 ) | sed "s/^/$as_me: WARNING: /" >&2
27297 esac
27298 { echo "$as_me:$LINENO: checking for " >&5
27299 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27300 if test "${ac_cv_header_+set}" = set; then
27301 echo $ECHO_N "(cached) $ECHO_C" >&6
27302 else
27303 ac_cv_header_=$ac_header_preproc
27305 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27306 echo "${ECHO_T}$ac_cv_header_" >&6; }
27309 if test $ac_cv_header_ = yes; then
27310 ACOS_HEADER_FOUND=1
27311 else
27312 ACOS_HEADER_FOUND=0
27316 CPPFLAGS="${saved_cppflags}"
27318 if test "x${ACOS_HEADER_FOUND}" = "x0" ; then
27319 ACOS_LIB=""
27320 ACOS_INCLUDE=""
27321 else
27322 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27323 ACOS_LIB=""
27325 PBX_ACOS=1
27326 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27328 cat >>confdefs.h <<_ACEOF
27329 #define HAVE_ACOS 1
27330 _ACEOF
27333 cat >>confdefs.h <<_ACEOF
27334 #define HAVE_ACOS_VERSION
27335 _ACEOF
27342 if test "x${PBX_ATAN}" != "x1" -a "${USE_ATAN}" != "no"; then
27343 pbxlibdir=""
27344 # if --with-ATAN=DIR has been specified, use it.
27345 if test "x${ATAN_DIR}" != "x"; then
27346 if test -d ${ATAN_DIR}/lib; then
27347 pbxlibdir="-L${ATAN_DIR}/lib"
27348 else
27349 pbxlibdir="-L${ATAN_DIR}"
27352 pbxfuncname="atan"
27353 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27354 AST_ATAN_FOUND=yes
27355 else
27356 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27357 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27358 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27359 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27360 echo $ECHO_N "(cached) $ECHO_C" >&6
27361 else
27362 ac_check_lib_save_LIBS=$LIBS
27363 LIBS="-lm ${pbxlibdir} $LIBS"
27364 cat >conftest.$ac_ext <<_ACEOF
27365 /* confdefs.h. */
27366 _ACEOF
27367 cat confdefs.h >>conftest.$ac_ext
27368 cat >>conftest.$ac_ext <<_ACEOF
27369 /* end confdefs.h. */
27371 /* Override any GCC internal prototype to avoid an error.
27372 Use char because int might match the return type of a GCC
27373 builtin and then its argument prototype would still apply. */
27374 #ifdef __cplusplus
27375 extern "C"
27376 #endif
27377 char ${pbxfuncname} ();
27379 main ()
27381 return ${pbxfuncname} ();
27383 return 0;
27385 _ACEOF
27386 rm -f conftest.$ac_objext conftest$ac_exeext
27387 if { (ac_try="$ac_link"
27388 case "(($ac_try" in
27389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27390 *) ac_try_echo=$ac_try;;
27391 esac
27392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27393 (eval "$ac_link") 2>conftest.er1
27394 ac_status=$?
27395 grep -v '^ *+' conftest.er1 >conftest.err
27396 rm -f conftest.er1
27397 cat conftest.err >&5
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); } && {
27400 test -z "$ac_c_werror_flag" ||
27401 test ! -s conftest.err
27402 } && test -s conftest$ac_exeext &&
27403 $as_test_x conftest$ac_exeext; then
27404 eval "$as_ac_Lib=yes"
27405 else
27406 echo "$as_me: failed program was:" >&5
27407 sed 's/^/| /' conftest.$ac_ext >&5
27409 eval "$as_ac_Lib=no"
27412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27413 conftest$ac_exeext conftest.$ac_ext
27414 LIBS=$ac_check_lib_save_LIBS
27416 ac_res=`eval echo '${'$as_ac_Lib'}'`
27417 { echo "$as_me:$LINENO: result: $ac_res" >&5
27418 echo "${ECHO_T}$ac_res" >&6; }
27419 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27420 AST_ATAN_FOUND=yes
27421 else
27422 AST_ATAN_FOUND=no
27427 # now check for the header.
27428 if test "${AST_ATAN_FOUND}" = "yes"; then
27429 ATAN_LIB="${pbxlibdir} -lm "
27430 # if --with-ATAN=DIR has been specified, use it.
27431 if test "x${ATAN_DIR}" != "x"; then
27432 ATAN_INCLUDE="-I${ATAN_DIR}/include"
27434 ATAN_INCLUDE="${ATAN_INCLUDE} "
27435 if test "x" = "x" ; then # no header, assume found
27436 ATAN_HEADER_FOUND="1"
27437 else # check for the header
27438 saved_cppflags="${CPPFLAGS}"
27439 CPPFLAGS="${CPPFLAGS} ${ATAN_INCLUDE} "
27440 if test "${ac_cv_header_+set}" = set; then
27441 { echo "$as_me:$LINENO: checking for " >&5
27442 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27443 if test "${ac_cv_header_+set}" = set; then
27444 echo $ECHO_N "(cached) $ECHO_C" >&6
27446 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27447 echo "${ECHO_T}$ac_cv_header_" >&6; }
27448 else
27449 # Is the header compilable?
27450 { echo "$as_me:$LINENO: checking usability" >&5
27451 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27452 cat >conftest.$ac_ext <<_ACEOF
27453 /* confdefs.h. */
27454 _ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h. */
27458 $ac_includes_default
27459 #include <>
27460 _ACEOF
27461 rm -f conftest.$ac_objext
27462 if { (ac_try="$ac_compile"
27463 case "(($ac_try" in
27464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465 *) ac_try_echo=$ac_try;;
27466 esac
27467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468 (eval "$ac_compile") 2>conftest.er1
27469 ac_status=$?
27470 grep -v '^ *+' conftest.er1 >conftest.err
27471 rm -f conftest.er1
27472 cat conftest.err >&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); } && {
27475 test -z "$ac_c_werror_flag" ||
27476 test ! -s conftest.err
27477 } && test -s conftest.$ac_objext; then
27478 ac_header_compiler=yes
27479 else
27480 echo "$as_me: failed program was:" >&5
27481 sed 's/^/| /' conftest.$ac_ext >&5
27483 ac_header_compiler=no
27486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27488 echo "${ECHO_T}$ac_header_compiler" >&6; }
27490 # Is the header present?
27491 { echo "$as_me:$LINENO: checking presence" >&5
27492 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27493 cat >conftest.$ac_ext <<_ACEOF
27494 /* confdefs.h. */
27495 _ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h. */
27499 #include <>
27500 _ACEOF
27501 if { (ac_try="$ac_cpp conftest.$ac_ext"
27502 case "(($ac_try" in
27503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504 *) ac_try_echo=$ac_try;;
27505 esac
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27508 ac_status=$?
27509 grep -v '^ *+' conftest.er1 >conftest.err
27510 rm -f conftest.er1
27511 cat conftest.err >&5
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); } >/dev/null && {
27514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27515 test ! -s conftest.err
27516 }; then
27517 ac_header_preproc=yes
27518 else
27519 echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27522 ac_header_preproc=no
27525 rm -f conftest.err conftest.$ac_ext
27526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27527 echo "${ECHO_T}$ac_header_preproc" >&6; }
27529 # So? What about this header?
27530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27531 yes:no: )
27532 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27533 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27534 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27535 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27536 ac_header_preproc=yes
27538 no:yes:* )
27539 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27540 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27541 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27542 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27543 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27544 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27545 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27546 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27547 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27548 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27549 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27550 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27551 ( cat <<\_ASBOX
27552 ## ------------------------------- ##
27553 ## Report this to www.asterisk.org ##
27554 ## ------------------------------- ##
27555 _ASBOX
27556 ) | sed "s/^/$as_me: WARNING: /" >&2
27558 esac
27559 { echo "$as_me:$LINENO: checking for " >&5
27560 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27561 if test "${ac_cv_header_+set}" = set; then
27562 echo $ECHO_N "(cached) $ECHO_C" >&6
27563 else
27564 ac_cv_header_=$ac_header_preproc
27566 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27567 echo "${ECHO_T}$ac_cv_header_" >&6; }
27570 if test $ac_cv_header_ = yes; then
27571 ATAN_HEADER_FOUND=1
27572 else
27573 ATAN_HEADER_FOUND=0
27577 CPPFLAGS="${saved_cppflags}"
27579 if test "x${ATAN_HEADER_FOUND}" = "x0" ; then
27580 ATAN_LIB=""
27581 ATAN_INCLUDE=""
27582 else
27583 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27584 ATAN_LIB=""
27586 PBX_ATAN=1
27587 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27589 cat >>confdefs.h <<_ACEOF
27590 #define HAVE_ATAN 1
27591 _ACEOF
27594 cat >>confdefs.h <<_ACEOF
27595 #define HAVE_ATAN_VERSION
27596 _ACEOF
27603 if test "x${PBX_ATAN2}" != "x1" -a "${USE_ATAN2}" != "no"; then
27604 pbxlibdir=""
27605 # if --with-ATAN2=DIR has been specified, use it.
27606 if test "x${ATAN2_DIR}" != "x"; then
27607 if test -d ${ATAN2_DIR}/lib; then
27608 pbxlibdir="-L${ATAN2_DIR}/lib"
27609 else
27610 pbxlibdir="-L${ATAN2_DIR}"
27613 pbxfuncname="atan2"
27614 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27615 AST_ATAN2_FOUND=yes
27616 else
27617 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27618 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27619 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27620 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27621 echo $ECHO_N "(cached) $ECHO_C" >&6
27622 else
27623 ac_check_lib_save_LIBS=$LIBS
27624 LIBS="-lm ${pbxlibdir} $LIBS"
27625 cat >conftest.$ac_ext <<_ACEOF
27626 /* confdefs.h. */
27627 _ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h. */
27632 /* Override any GCC internal prototype to avoid an error.
27633 Use char because int might match the return type of a GCC
27634 builtin and then its argument prototype would still apply. */
27635 #ifdef __cplusplus
27636 extern "C"
27637 #endif
27638 char ${pbxfuncname} ();
27640 main ()
27642 return ${pbxfuncname} ();
27644 return 0;
27646 _ACEOF
27647 rm -f conftest.$ac_objext conftest$ac_exeext
27648 if { (ac_try="$ac_link"
27649 case "(($ac_try" in
27650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27652 esac
27653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654 (eval "$ac_link") 2>conftest.er1
27655 ac_status=$?
27656 grep -v '^ *+' conftest.er1 >conftest.err
27657 rm -f conftest.er1
27658 cat conftest.err >&5
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); } && {
27661 test -z "$ac_c_werror_flag" ||
27662 test ! -s conftest.err
27663 } && test -s conftest$ac_exeext &&
27664 $as_test_x conftest$ac_exeext; then
27665 eval "$as_ac_Lib=yes"
27666 else
27667 echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27670 eval "$as_ac_Lib=no"
27673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27674 conftest$ac_exeext conftest.$ac_ext
27675 LIBS=$ac_check_lib_save_LIBS
27677 ac_res=`eval echo '${'$as_ac_Lib'}'`
27678 { echo "$as_me:$LINENO: result: $ac_res" >&5
27679 echo "${ECHO_T}$ac_res" >&6; }
27680 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27681 AST_ATAN2_FOUND=yes
27682 else
27683 AST_ATAN2_FOUND=no
27688 # now check for the header.
27689 if test "${AST_ATAN2_FOUND}" = "yes"; then
27690 ATAN2_LIB="${pbxlibdir} -lm "
27691 # if --with-ATAN2=DIR has been specified, use it.
27692 if test "x${ATAN2_DIR}" != "x"; then
27693 ATAN2_INCLUDE="-I${ATAN2_DIR}/include"
27695 ATAN2_INCLUDE="${ATAN2_INCLUDE} "
27696 if test "x" = "x" ; then # no header, assume found
27697 ATAN2_HEADER_FOUND="1"
27698 else # check for the header
27699 saved_cppflags="${CPPFLAGS}"
27700 CPPFLAGS="${CPPFLAGS} ${ATAN2_INCLUDE} "
27701 if test "${ac_cv_header_+set}" = set; then
27702 { echo "$as_me:$LINENO: checking for " >&5
27703 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27704 if test "${ac_cv_header_+set}" = set; then
27705 echo $ECHO_N "(cached) $ECHO_C" >&6
27707 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27708 echo "${ECHO_T}$ac_cv_header_" >&6; }
27709 else
27710 # Is the header compilable?
27711 { echo "$as_me:$LINENO: checking usability" >&5
27712 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27713 cat >conftest.$ac_ext <<_ACEOF
27714 /* confdefs.h. */
27715 _ACEOF
27716 cat confdefs.h >>conftest.$ac_ext
27717 cat >>conftest.$ac_ext <<_ACEOF
27718 /* end confdefs.h. */
27719 $ac_includes_default
27720 #include <>
27721 _ACEOF
27722 rm -f conftest.$ac_objext
27723 if { (ac_try="$ac_compile"
27724 case "(($ac_try" in
27725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726 *) ac_try_echo=$ac_try;;
27727 esac
27728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27729 (eval "$ac_compile") 2>conftest.er1
27730 ac_status=$?
27731 grep -v '^ *+' conftest.er1 >conftest.err
27732 rm -f conftest.er1
27733 cat conftest.err >&5
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); } && {
27736 test -z "$ac_c_werror_flag" ||
27737 test ! -s conftest.err
27738 } && test -s conftest.$ac_objext; then
27739 ac_header_compiler=yes
27740 else
27741 echo "$as_me: failed program was:" >&5
27742 sed 's/^/| /' conftest.$ac_ext >&5
27744 ac_header_compiler=no
27747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27749 echo "${ECHO_T}$ac_header_compiler" >&6; }
27751 # Is the header present?
27752 { echo "$as_me:$LINENO: checking presence" >&5
27753 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27754 cat >conftest.$ac_ext <<_ACEOF
27755 /* confdefs.h. */
27756 _ACEOF
27757 cat confdefs.h >>conftest.$ac_ext
27758 cat >>conftest.$ac_ext <<_ACEOF
27759 /* end confdefs.h. */
27760 #include <>
27761 _ACEOF
27762 if { (ac_try="$ac_cpp conftest.$ac_ext"
27763 case "(($ac_try" in
27764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27765 *) ac_try_echo=$ac_try;;
27766 esac
27767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27769 ac_status=$?
27770 grep -v '^ *+' conftest.er1 >conftest.err
27771 rm -f conftest.er1
27772 cat conftest.err >&5
27773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774 (exit $ac_status); } >/dev/null && {
27775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27776 test ! -s conftest.err
27777 }; then
27778 ac_header_preproc=yes
27779 else
27780 echo "$as_me: failed program was:" >&5
27781 sed 's/^/| /' conftest.$ac_ext >&5
27783 ac_header_preproc=no
27786 rm -f conftest.err conftest.$ac_ext
27787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27788 echo "${ECHO_T}$ac_header_preproc" >&6; }
27790 # So? What about this header?
27791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27792 yes:no: )
27793 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27794 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27795 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27796 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27797 ac_header_preproc=yes
27799 no:yes:* )
27800 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27801 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27802 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27803 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27804 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27805 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27806 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27807 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27808 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27809 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27810 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27811 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27812 ( cat <<\_ASBOX
27813 ## ------------------------------- ##
27814 ## Report this to www.asterisk.org ##
27815 ## ------------------------------- ##
27816 _ASBOX
27817 ) | sed "s/^/$as_me: WARNING: /" >&2
27819 esac
27820 { echo "$as_me:$LINENO: checking for " >&5
27821 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27822 if test "${ac_cv_header_+set}" = set; then
27823 echo $ECHO_N "(cached) $ECHO_C" >&6
27824 else
27825 ac_cv_header_=$ac_header_preproc
27827 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27828 echo "${ECHO_T}$ac_cv_header_" >&6; }
27831 if test $ac_cv_header_ = yes; then
27832 ATAN2_HEADER_FOUND=1
27833 else
27834 ATAN2_HEADER_FOUND=0
27838 CPPFLAGS="${saved_cppflags}"
27840 if test "x${ATAN2_HEADER_FOUND}" = "x0" ; then
27841 ATAN2_LIB=""
27842 ATAN2_INCLUDE=""
27843 else
27844 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27845 ATAN2_LIB=""
27847 PBX_ATAN2=1
27848 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27850 cat >>confdefs.h <<_ACEOF
27851 #define HAVE_ATAN2 1
27852 _ACEOF
27855 cat >>confdefs.h <<_ACEOF
27856 #define HAVE_ATAN2_VERSION
27857 _ACEOF
27864 if test "x${PBX_POW}" != "x1" -a "${USE_POW}" != "no"; then
27865 pbxlibdir=""
27866 # if --with-POW=DIR has been specified, use it.
27867 if test "x${POW_DIR}" != "x"; then
27868 if test -d ${POW_DIR}/lib; then
27869 pbxlibdir="-L${POW_DIR}/lib"
27870 else
27871 pbxlibdir="-L${POW_DIR}"
27874 pbxfuncname="pow"
27875 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27876 AST_POW_FOUND=yes
27877 else
27878 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27879 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27880 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27881 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27882 echo $ECHO_N "(cached) $ECHO_C" >&6
27883 else
27884 ac_check_lib_save_LIBS=$LIBS
27885 LIBS="-lm ${pbxlibdir} $LIBS"
27886 cat >conftest.$ac_ext <<_ACEOF
27887 /* confdefs.h. */
27888 _ACEOF
27889 cat confdefs.h >>conftest.$ac_ext
27890 cat >>conftest.$ac_ext <<_ACEOF
27891 /* end confdefs.h. */
27893 /* Override any GCC internal prototype to avoid an error.
27894 Use char because int might match the return type of a GCC
27895 builtin and then its argument prototype would still apply. */
27896 #ifdef __cplusplus
27897 extern "C"
27898 #endif
27899 char ${pbxfuncname} ();
27901 main ()
27903 return ${pbxfuncname} ();
27905 return 0;
27907 _ACEOF
27908 rm -f conftest.$ac_objext conftest$ac_exeext
27909 if { (ac_try="$ac_link"
27910 case "(($ac_try" in
27911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27912 *) ac_try_echo=$ac_try;;
27913 esac
27914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27915 (eval "$ac_link") 2>conftest.er1
27916 ac_status=$?
27917 grep -v '^ *+' conftest.er1 >conftest.err
27918 rm -f conftest.er1
27919 cat conftest.err >&5
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); } && {
27922 test -z "$ac_c_werror_flag" ||
27923 test ! -s conftest.err
27924 } && test -s conftest$ac_exeext &&
27925 $as_test_x conftest$ac_exeext; then
27926 eval "$as_ac_Lib=yes"
27927 else
27928 echo "$as_me: failed program was:" >&5
27929 sed 's/^/| /' conftest.$ac_ext >&5
27931 eval "$as_ac_Lib=no"
27934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27935 conftest$ac_exeext conftest.$ac_ext
27936 LIBS=$ac_check_lib_save_LIBS
27938 ac_res=`eval echo '${'$as_ac_Lib'}'`
27939 { echo "$as_me:$LINENO: result: $ac_res" >&5
27940 echo "${ECHO_T}$ac_res" >&6; }
27941 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27942 AST_POW_FOUND=yes
27943 else
27944 AST_POW_FOUND=no
27949 # now check for the header.
27950 if test "${AST_POW_FOUND}" = "yes"; then
27951 POW_LIB="${pbxlibdir} -lm "
27952 # if --with-POW=DIR has been specified, use it.
27953 if test "x${POW_DIR}" != "x"; then
27954 POW_INCLUDE="-I${POW_DIR}/include"
27956 POW_INCLUDE="${POW_INCLUDE} "
27957 if test "x" = "x" ; then # no header, assume found
27958 POW_HEADER_FOUND="1"
27959 else # check for the header
27960 saved_cppflags="${CPPFLAGS}"
27961 CPPFLAGS="${CPPFLAGS} ${POW_INCLUDE} "
27962 if test "${ac_cv_header_+set}" = set; then
27963 { echo "$as_me:$LINENO: checking for " >&5
27964 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27965 if test "${ac_cv_header_+set}" = set; then
27966 echo $ECHO_N "(cached) $ECHO_C" >&6
27968 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27969 echo "${ECHO_T}$ac_cv_header_" >&6; }
27970 else
27971 # Is the header compilable?
27972 { echo "$as_me:$LINENO: checking usability" >&5
27973 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27974 cat >conftest.$ac_ext <<_ACEOF
27975 /* confdefs.h. */
27976 _ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h. */
27980 $ac_includes_default
27981 #include <>
27982 _ACEOF
27983 rm -f conftest.$ac_objext
27984 if { (ac_try="$ac_compile"
27985 case "(($ac_try" in
27986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987 *) ac_try_echo=$ac_try;;
27988 esac
27989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27990 (eval "$ac_compile") 2>conftest.er1
27991 ac_status=$?
27992 grep -v '^ *+' conftest.er1 >conftest.err
27993 rm -f conftest.er1
27994 cat conftest.err >&5
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); } && {
27997 test -z "$ac_c_werror_flag" ||
27998 test ! -s conftest.err
27999 } && test -s conftest.$ac_objext; then
28000 ac_header_compiler=yes
28001 else
28002 echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28005 ac_header_compiler=no
28008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28010 echo "${ECHO_T}$ac_header_compiler" >&6; }
28012 # Is the header present?
28013 { echo "$as_me:$LINENO: checking presence" >&5
28014 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28015 cat >conftest.$ac_ext <<_ACEOF
28016 /* confdefs.h. */
28017 _ACEOF
28018 cat confdefs.h >>conftest.$ac_ext
28019 cat >>conftest.$ac_ext <<_ACEOF
28020 /* end confdefs.h. */
28021 #include <>
28022 _ACEOF
28023 if { (ac_try="$ac_cpp conftest.$ac_ext"
28024 case "(($ac_try" in
28025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026 *) ac_try_echo=$ac_try;;
28027 esac
28028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28030 ac_status=$?
28031 grep -v '^ *+' conftest.er1 >conftest.err
28032 rm -f conftest.er1
28033 cat conftest.err >&5
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); } >/dev/null && {
28036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28037 test ! -s conftest.err
28038 }; then
28039 ac_header_preproc=yes
28040 else
28041 echo "$as_me: failed program was:" >&5
28042 sed 's/^/| /' conftest.$ac_ext >&5
28044 ac_header_preproc=no
28047 rm -f conftest.err conftest.$ac_ext
28048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28049 echo "${ECHO_T}$ac_header_preproc" >&6; }
28051 # So? What about this header?
28052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28053 yes:no: )
28054 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28055 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28056 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28057 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28058 ac_header_preproc=yes
28060 no:yes:* )
28061 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28062 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28063 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28064 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28065 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28066 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28067 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28068 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28069 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28070 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28071 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28072 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28073 ( cat <<\_ASBOX
28074 ## ------------------------------- ##
28075 ## Report this to www.asterisk.org ##
28076 ## ------------------------------- ##
28077 _ASBOX
28078 ) | sed "s/^/$as_me: WARNING: /" >&2
28080 esac
28081 { echo "$as_me:$LINENO: checking for " >&5
28082 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28083 if test "${ac_cv_header_+set}" = set; then
28084 echo $ECHO_N "(cached) $ECHO_C" >&6
28085 else
28086 ac_cv_header_=$ac_header_preproc
28088 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28089 echo "${ECHO_T}$ac_cv_header_" >&6; }
28092 if test $ac_cv_header_ = yes; then
28093 POW_HEADER_FOUND=1
28094 else
28095 POW_HEADER_FOUND=0
28099 CPPFLAGS="${saved_cppflags}"
28101 if test "x${POW_HEADER_FOUND}" = "x0" ; then
28102 POW_LIB=""
28103 POW_INCLUDE=""
28104 else
28105 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28106 POW_LIB=""
28108 PBX_POW=1
28109 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28111 cat >>confdefs.h <<_ACEOF
28112 #define HAVE_POW 1
28113 _ACEOF
28116 cat >>confdefs.h <<_ACEOF
28117 #define HAVE_POW_VERSION
28118 _ACEOF
28125 if test "x${PBX_SQRT}" != "x1" -a "${USE_SQRT}" != "no"; then
28126 pbxlibdir=""
28127 # if --with-SQRT=DIR has been specified, use it.
28128 if test "x${SQRT_DIR}" != "x"; then
28129 if test -d ${SQRT_DIR}/lib; then
28130 pbxlibdir="-L${SQRT_DIR}/lib"
28131 else
28132 pbxlibdir="-L${SQRT_DIR}"
28135 pbxfuncname="sqrt"
28136 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28137 AST_SQRT_FOUND=yes
28138 else
28139 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28140 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28141 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28142 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28143 echo $ECHO_N "(cached) $ECHO_C" >&6
28144 else
28145 ac_check_lib_save_LIBS=$LIBS
28146 LIBS="-lm ${pbxlibdir} $LIBS"
28147 cat >conftest.$ac_ext <<_ACEOF
28148 /* confdefs.h. */
28149 _ACEOF
28150 cat confdefs.h >>conftest.$ac_ext
28151 cat >>conftest.$ac_ext <<_ACEOF
28152 /* end confdefs.h. */
28154 /* Override any GCC internal prototype to avoid an error.
28155 Use char because int might match the return type of a GCC
28156 builtin and then its argument prototype would still apply. */
28157 #ifdef __cplusplus
28158 extern "C"
28159 #endif
28160 char ${pbxfuncname} ();
28162 main ()
28164 return ${pbxfuncname} ();
28166 return 0;
28168 _ACEOF
28169 rm -f conftest.$ac_objext conftest$ac_exeext
28170 if { (ac_try="$ac_link"
28171 case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28174 esac
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_link") 2>conftest.er1
28177 ac_status=$?
28178 grep -v '^ *+' conftest.er1 >conftest.err
28179 rm -f conftest.er1
28180 cat conftest.err >&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); } && {
28183 test -z "$ac_c_werror_flag" ||
28184 test ! -s conftest.err
28185 } && test -s conftest$ac_exeext &&
28186 $as_test_x conftest$ac_exeext; then
28187 eval "$as_ac_Lib=yes"
28188 else
28189 echo "$as_me: failed program was:" >&5
28190 sed 's/^/| /' conftest.$ac_ext >&5
28192 eval "$as_ac_Lib=no"
28195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28196 conftest$ac_exeext conftest.$ac_ext
28197 LIBS=$ac_check_lib_save_LIBS
28199 ac_res=`eval echo '${'$as_ac_Lib'}'`
28200 { echo "$as_me:$LINENO: result: $ac_res" >&5
28201 echo "${ECHO_T}$ac_res" >&6; }
28202 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28203 AST_SQRT_FOUND=yes
28204 else
28205 AST_SQRT_FOUND=no
28210 # now check for the header.
28211 if test "${AST_SQRT_FOUND}" = "yes"; then
28212 SQRT_LIB="${pbxlibdir} -lm "
28213 # if --with-SQRT=DIR has been specified, use it.
28214 if test "x${SQRT_DIR}" != "x"; then
28215 SQRT_INCLUDE="-I${SQRT_DIR}/include"
28217 SQRT_INCLUDE="${SQRT_INCLUDE} "
28218 if test "x" = "x" ; then # no header, assume found
28219 SQRT_HEADER_FOUND="1"
28220 else # check for the header
28221 saved_cppflags="${CPPFLAGS}"
28222 CPPFLAGS="${CPPFLAGS} ${SQRT_INCLUDE} "
28223 if test "${ac_cv_header_+set}" = set; then
28224 { echo "$as_me:$LINENO: checking for " >&5
28225 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28226 if test "${ac_cv_header_+set}" = set; then
28227 echo $ECHO_N "(cached) $ECHO_C" >&6
28229 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28230 echo "${ECHO_T}$ac_cv_header_" >&6; }
28231 else
28232 # Is the header compilable?
28233 { echo "$as_me:$LINENO: checking usability" >&5
28234 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28235 cat >conftest.$ac_ext <<_ACEOF
28236 /* confdefs.h. */
28237 _ACEOF
28238 cat confdefs.h >>conftest.$ac_ext
28239 cat >>conftest.$ac_ext <<_ACEOF
28240 /* end confdefs.h. */
28241 $ac_includes_default
28242 #include <>
28243 _ACEOF
28244 rm -f conftest.$ac_objext
28245 if { (ac_try="$ac_compile"
28246 case "(($ac_try" in
28247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28248 *) ac_try_echo=$ac_try;;
28249 esac
28250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28251 (eval "$ac_compile") 2>conftest.er1
28252 ac_status=$?
28253 grep -v '^ *+' conftest.er1 >conftest.err
28254 rm -f conftest.er1
28255 cat conftest.err >&5
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); } && {
28258 test -z "$ac_c_werror_flag" ||
28259 test ! -s conftest.err
28260 } && test -s conftest.$ac_objext; then
28261 ac_header_compiler=yes
28262 else
28263 echo "$as_me: failed program was:" >&5
28264 sed 's/^/| /' conftest.$ac_ext >&5
28266 ac_header_compiler=no
28269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28271 echo "${ECHO_T}$ac_header_compiler" >&6; }
28273 # Is the header present?
28274 { echo "$as_me:$LINENO: checking presence" >&5
28275 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28276 cat >conftest.$ac_ext <<_ACEOF
28277 /* confdefs.h. */
28278 _ACEOF
28279 cat confdefs.h >>conftest.$ac_ext
28280 cat >>conftest.$ac_ext <<_ACEOF
28281 /* end confdefs.h. */
28282 #include <>
28283 _ACEOF
28284 if { (ac_try="$ac_cpp conftest.$ac_ext"
28285 case "(($ac_try" in
28286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28287 *) ac_try_echo=$ac_try;;
28288 esac
28289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28291 ac_status=$?
28292 grep -v '^ *+' conftest.er1 >conftest.err
28293 rm -f conftest.er1
28294 cat conftest.err >&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); } >/dev/null && {
28297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28298 test ! -s conftest.err
28299 }; then
28300 ac_header_preproc=yes
28301 else
28302 echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28305 ac_header_preproc=no
28308 rm -f conftest.err conftest.$ac_ext
28309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28310 echo "${ECHO_T}$ac_header_preproc" >&6; }
28312 # So? What about this header?
28313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28314 yes:no: )
28315 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28316 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28317 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28318 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28319 ac_header_preproc=yes
28321 no:yes:* )
28322 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28323 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28324 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28325 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28326 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28327 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28328 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28329 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28330 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28331 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28332 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28333 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28334 ( cat <<\_ASBOX
28335 ## ------------------------------- ##
28336 ## Report this to www.asterisk.org ##
28337 ## ------------------------------- ##
28338 _ASBOX
28339 ) | sed "s/^/$as_me: WARNING: /" >&2
28341 esac
28342 { echo "$as_me:$LINENO: checking for " >&5
28343 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28344 if test "${ac_cv_header_+set}" = set; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28346 else
28347 ac_cv_header_=$ac_header_preproc
28349 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28350 echo "${ECHO_T}$ac_cv_header_" >&6; }
28353 if test $ac_cv_header_ = yes; then
28354 SQRT_HEADER_FOUND=1
28355 else
28356 SQRT_HEADER_FOUND=0
28360 CPPFLAGS="${saved_cppflags}"
28362 if test "x${SQRT_HEADER_FOUND}" = "x0" ; then
28363 SQRT_LIB=""
28364 SQRT_INCLUDE=""
28365 else
28366 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28367 SQRT_LIB=""
28369 PBX_SQRT=1
28370 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28372 cat >>confdefs.h <<_ACEOF
28373 #define HAVE_SQRT 1
28374 _ACEOF
28377 cat >>confdefs.h <<_ACEOF
28378 #define HAVE_SQRT_VERSION
28379 _ACEOF
28386 if test "x${PBX_RINT}" != "x1" -a "${USE_RINT}" != "no"; then
28387 pbxlibdir=""
28388 # if --with-RINT=DIR has been specified, use it.
28389 if test "x${RINT_DIR}" != "x"; then
28390 if test -d ${RINT_DIR}/lib; then
28391 pbxlibdir="-L${RINT_DIR}/lib"
28392 else
28393 pbxlibdir="-L${RINT_DIR}"
28396 pbxfuncname="rint"
28397 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28398 AST_RINT_FOUND=yes
28399 else
28400 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28401 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28402 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28403 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28404 echo $ECHO_N "(cached) $ECHO_C" >&6
28405 else
28406 ac_check_lib_save_LIBS=$LIBS
28407 LIBS="-lm ${pbxlibdir} $LIBS"
28408 cat >conftest.$ac_ext <<_ACEOF
28409 /* confdefs.h. */
28410 _ACEOF
28411 cat confdefs.h >>conftest.$ac_ext
28412 cat >>conftest.$ac_ext <<_ACEOF
28413 /* end confdefs.h. */
28415 /* Override any GCC internal prototype to avoid an error.
28416 Use char because int might match the return type of a GCC
28417 builtin and then its argument prototype would still apply. */
28418 #ifdef __cplusplus
28419 extern "C"
28420 #endif
28421 char ${pbxfuncname} ();
28423 main ()
28425 return ${pbxfuncname} ();
28427 return 0;
28429 _ACEOF
28430 rm -f conftest.$ac_objext conftest$ac_exeext
28431 if { (ac_try="$ac_link"
28432 case "(($ac_try" in
28433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434 *) ac_try_echo=$ac_try;;
28435 esac
28436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28437 (eval "$ac_link") 2>conftest.er1
28438 ac_status=$?
28439 grep -v '^ *+' conftest.er1 >conftest.err
28440 rm -f conftest.er1
28441 cat conftest.err >&5
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); } && {
28444 test -z "$ac_c_werror_flag" ||
28445 test ! -s conftest.err
28446 } && test -s conftest$ac_exeext &&
28447 $as_test_x conftest$ac_exeext; then
28448 eval "$as_ac_Lib=yes"
28449 else
28450 echo "$as_me: failed program was:" >&5
28451 sed 's/^/| /' conftest.$ac_ext >&5
28453 eval "$as_ac_Lib=no"
28456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28457 conftest$ac_exeext conftest.$ac_ext
28458 LIBS=$ac_check_lib_save_LIBS
28460 ac_res=`eval echo '${'$as_ac_Lib'}'`
28461 { echo "$as_me:$LINENO: result: $ac_res" >&5
28462 echo "${ECHO_T}$ac_res" >&6; }
28463 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28464 AST_RINT_FOUND=yes
28465 else
28466 AST_RINT_FOUND=no
28471 # now check for the header.
28472 if test "${AST_RINT_FOUND}" = "yes"; then
28473 RINT_LIB="${pbxlibdir} -lm "
28474 # if --with-RINT=DIR has been specified, use it.
28475 if test "x${RINT_DIR}" != "x"; then
28476 RINT_INCLUDE="-I${RINT_DIR}/include"
28478 RINT_INCLUDE="${RINT_INCLUDE} "
28479 if test "x" = "x" ; then # no header, assume found
28480 RINT_HEADER_FOUND="1"
28481 else # check for the header
28482 saved_cppflags="${CPPFLAGS}"
28483 CPPFLAGS="${CPPFLAGS} ${RINT_INCLUDE} "
28484 if test "${ac_cv_header_+set}" = set; then
28485 { echo "$as_me:$LINENO: checking for " >&5
28486 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28487 if test "${ac_cv_header_+set}" = set; then
28488 echo $ECHO_N "(cached) $ECHO_C" >&6
28490 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28491 echo "${ECHO_T}$ac_cv_header_" >&6; }
28492 else
28493 # Is the header compilable?
28494 { echo "$as_me:$LINENO: checking usability" >&5
28495 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28496 cat >conftest.$ac_ext <<_ACEOF
28497 /* confdefs.h. */
28498 _ACEOF
28499 cat confdefs.h >>conftest.$ac_ext
28500 cat >>conftest.$ac_ext <<_ACEOF
28501 /* end confdefs.h. */
28502 $ac_includes_default
28503 #include <>
28504 _ACEOF
28505 rm -f conftest.$ac_objext
28506 if { (ac_try="$ac_compile"
28507 case "(($ac_try" in
28508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28509 *) ac_try_echo=$ac_try;;
28510 esac
28511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28512 (eval "$ac_compile") 2>conftest.er1
28513 ac_status=$?
28514 grep -v '^ *+' conftest.er1 >conftest.err
28515 rm -f conftest.er1
28516 cat conftest.err >&5
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); } && {
28519 test -z "$ac_c_werror_flag" ||
28520 test ! -s conftest.err
28521 } && test -s conftest.$ac_objext; then
28522 ac_header_compiler=yes
28523 else
28524 echo "$as_me: failed program was:" >&5
28525 sed 's/^/| /' conftest.$ac_ext >&5
28527 ac_header_compiler=no
28530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28532 echo "${ECHO_T}$ac_header_compiler" >&6; }
28534 # Is the header present?
28535 { echo "$as_me:$LINENO: checking presence" >&5
28536 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28537 cat >conftest.$ac_ext <<_ACEOF
28538 /* confdefs.h. */
28539 _ACEOF
28540 cat confdefs.h >>conftest.$ac_ext
28541 cat >>conftest.$ac_ext <<_ACEOF
28542 /* end confdefs.h. */
28543 #include <>
28544 _ACEOF
28545 if { (ac_try="$ac_cpp conftest.$ac_ext"
28546 case "(($ac_try" in
28547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28548 *) ac_try_echo=$ac_try;;
28549 esac
28550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28552 ac_status=$?
28553 grep -v '^ *+' conftest.er1 >conftest.err
28554 rm -f conftest.er1
28555 cat conftest.err >&5
28556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557 (exit $ac_status); } >/dev/null && {
28558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28559 test ! -s conftest.err
28560 }; then
28561 ac_header_preproc=yes
28562 else
28563 echo "$as_me: failed program was:" >&5
28564 sed 's/^/| /' conftest.$ac_ext >&5
28566 ac_header_preproc=no
28569 rm -f conftest.err conftest.$ac_ext
28570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28571 echo "${ECHO_T}$ac_header_preproc" >&6; }
28573 # So? What about this header?
28574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28575 yes:no: )
28576 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28577 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28578 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28579 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28580 ac_header_preproc=yes
28582 no:yes:* )
28583 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28584 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28585 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28586 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28587 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28588 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28589 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28590 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28591 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28592 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28593 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28594 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28595 ( cat <<\_ASBOX
28596 ## ------------------------------- ##
28597 ## Report this to www.asterisk.org ##
28598 ## ------------------------------- ##
28599 _ASBOX
28600 ) | sed "s/^/$as_me: WARNING: /" >&2
28602 esac
28603 { echo "$as_me:$LINENO: checking for " >&5
28604 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28605 if test "${ac_cv_header_+set}" = set; then
28606 echo $ECHO_N "(cached) $ECHO_C" >&6
28607 else
28608 ac_cv_header_=$ac_header_preproc
28610 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28611 echo "${ECHO_T}$ac_cv_header_" >&6; }
28614 if test $ac_cv_header_ = yes; then
28615 RINT_HEADER_FOUND=1
28616 else
28617 RINT_HEADER_FOUND=0
28621 CPPFLAGS="${saved_cppflags}"
28623 if test "x${RINT_HEADER_FOUND}" = "x0" ; then
28624 RINT_LIB=""
28625 RINT_INCLUDE=""
28626 else
28627 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28628 RINT_LIB=""
28630 PBX_RINT=1
28631 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28633 cat >>confdefs.h <<_ACEOF
28634 #define HAVE_RINT 1
28635 _ACEOF
28638 cat >>confdefs.h <<_ACEOF
28639 #define HAVE_RINT_VERSION
28640 _ACEOF
28647 if test "x${PBX_EXP}" != "x1" -a "${USE_EXP}" != "no"; then
28648 pbxlibdir=""
28649 # if --with-EXP=DIR has been specified, use it.
28650 if test "x${EXP_DIR}" != "x"; then
28651 if test -d ${EXP_DIR}/lib; then
28652 pbxlibdir="-L${EXP_DIR}/lib"
28653 else
28654 pbxlibdir="-L${EXP_DIR}"
28657 pbxfuncname="exp"
28658 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28659 AST_EXP_FOUND=yes
28660 else
28661 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28662 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28663 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28664 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28666 else
28667 ac_check_lib_save_LIBS=$LIBS
28668 LIBS="-lm ${pbxlibdir} $LIBS"
28669 cat >conftest.$ac_ext <<_ACEOF
28670 /* confdefs.h. */
28671 _ACEOF
28672 cat confdefs.h >>conftest.$ac_ext
28673 cat >>conftest.$ac_ext <<_ACEOF
28674 /* end confdefs.h. */
28676 /* Override any GCC internal prototype to avoid an error.
28677 Use char because int might match the return type of a GCC
28678 builtin and then its argument prototype would still apply. */
28679 #ifdef __cplusplus
28680 extern "C"
28681 #endif
28682 char ${pbxfuncname} ();
28684 main ()
28686 return ${pbxfuncname} ();
28688 return 0;
28690 _ACEOF
28691 rm -f conftest.$ac_objext conftest$ac_exeext
28692 if { (ac_try="$ac_link"
28693 case "(($ac_try" in
28694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28695 *) ac_try_echo=$ac_try;;
28696 esac
28697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28698 (eval "$ac_link") 2>conftest.er1
28699 ac_status=$?
28700 grep -v '^ *+' conftest.er1 >conftest.err
28701 rm -f conftest.er1
28702 cat conftest.err >&5
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); } && {
28705 test -z "$ac_c_werror_flag" ||
28706 test ! -s conftest.err
28707 } && test -s conftest$ac_exeext &&
28708 $as_test_x conftest$ac_exeext; then
28709 eval "$as_ac_Lib=yes"
28710 else
28711 echo "$as_me: failed program was:" >&5
28712 sed 's/^/| /' conftest.$ac_ext >&5
28714 eval "$as_ac_Lib=no"
28717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28718 conftest$ac_exeext conftest.$ac_ext
28719 LIBS=$ac_check_lib_save_LIBS
28721 ac_res=`eval echo '${'$as_ac_Lib'}'`
28722 { echo "$as_me:$LINENO: result: $ac_res" >&5
28723 echo "${ECHO_T}$ac_res" >&6; }
28724 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28725 AST_EXP_FOUND=yes
28726 else
28727 AST_EXP_FOUND=no
28732 # now check for the header.
28733 if test "${AST_EXP_FOUND}" = "yes"; then
28734 EXP_LIB="${pbxlibdir} -lm "
28735 # if --with-EXP=DIR has been specified, use it.
28736 if test "x${EXP_DIR}" != "x"; then
28737 EXP_INCLUDE="-I${EXP_DIR}/include"
28739 EXP_INCLUDE="${EXP_INCLUDE} "
28740 if test "x" = "x" ; then # no header, assume found
28741 EXP_HEADER_FOUND="1"
28742 else # check for the header
28743 saved_cppflags="${CPPFLAGS}"
28744 CPPFLAGS="${CPPFLAGS} ${EXP_INCLUDE} "
28745 if test "${ac_cv_header_+set}" = set; then
28746 { echo "$as_me:$LINENO: checking for " >&5
28747 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28748 if test "${ac_cv_header_+set}" = set; then
28749 echo $ECHO_N "(cached) $ECHO_C" >&6
28751 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28752 echo "${ECHO_T}$ac_cv_header_" >&6; }
28753 else
28754 # Is the header compilable?
28755 { echo "$as_me:$LINENO: checking usability" >&5
28756 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28757 cat >conftest.$ac_ext <<_ACEOF
28758 /* confdefs.h. */
28759 _ACEOF
28760 cat confdefs.h >>conftest.$ac_ext
28761 cat >>conftest.$ac_ext <<_ACEOF
28762 /* end confdefs.h. */
28763 $ac_includes_default
28764 #include <>
28765 _ACEOF
28766 rm -f conftest.$ac_objext
28767 if { (ac_try="$ac_compile"
28768 case "(($ac_try" in
28769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28770 *) ac_try_echo=$ac_try;;
28771 esac
28772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28773 (eval "$ac_compile") 2>conftest.er1
28774 ac_status=$?
28775 grep -v '^ *+' conftest.er1 >conftest.err
28776 rm -f conftest.er1
28777 cat conftest.err >&5
28778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 (exit $ac_status); } && {
28780 test -z "$ac_c_werror_flag" ||
28781 test ! -s conftest.err
28782 } && test -s conftest.$ac_objext; then
28783 ac_header_compiler=yes
28784 else
28785 echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28788 ac_header_compiler=no
28791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28793 echo "${ECHO_T}$ac_header_compiler" >&6; }
28795 # Is the header present?
28796 { echo "$as_me:$LINENO: checking presence" >&5
28797 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28798 cat >conftest.$ac_ext <<_ACEOF
28799 /* confdefs.h. */
28800 _ACEOF
28801 cat confdefs.h >>conftest.$ac_ext
28802 cat >>conftest.$ac_ext <<_ACEOF
28803 /* end confdefs.h. */
28804 #include <>
28805 _ACEOF
28806 if { (ac_try="$ac_cpp conftest.$ac_ext"
28807 case "(($ac_try" in
28808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809 *) ac_try_echo=$ac_try;;
28810 esac
28811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28813 ac_status=$?
28814 grep -v '^ *+' conftest.er1 >conftest.err
28815 rm -f conftest.er1
28816 cat conftest.err >&5
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); } >/dev/null && {
28819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28820 test ! -s conftest.err
28821 }; then
28822 ac_header_preproc=yes
28823 else
28824 echo "$as_me: failed program was:" >&5
28825 sed 's/^/| /' conftest.$ac_ext >&5
28827 ac_header_preproc=no
28830 rm -f conftest.err conftest.$ac_ext
28831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28832 echo "${ECHO_T}$ac_header_preproc" >&6; }
28834 # So? What about this header?
28835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28836 yes:no: )
28837 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28838 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28839 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28840 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28841 ac_header_preproc=yes
28843 no:yes:* )
28844 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28845 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28846 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28847 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28848 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28849 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28850 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28851 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28852 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28853 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28854 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28855 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28856 ( cat <<\_ASBOX
28857 ## ------------------------------- ##
28858 ## Report this to www.asterisk.org ##
28859 ## ------------------------------- ##
28860 _ASBOX
28861 ) | sed "s/^/$as_me: WARNING: /" >&2
28863 esac
28864 { echo "$as_me:$LINENO: checking for " >&5
28865 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28866 if test "${ac_cv_header_+set}" = set; then
28867 echo $ECHO_N "(cached) $ECHO_C" >&6
28868 else
28869 ac_cv_header_=$ac_header_preproc
28871 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28872 echo "${ECHO_T}$ac_cv_header_" >&6; }
28875 if test $ac_cv_header_ = yes; then
28876 EXP_HEADER_FOUND=1
28877 else
28878 EXP_HEADER_FOUND=0
28882 CPPFLAGS="${saved_cppflags}"
28884 if test "x${EXP_HEADER_FOUND}" = "x0" ; then
28885 EXP_LIB=""
28886 EXP_INCLUDE=""
28887 else
28888 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28889 EXP_LIB=""
28891 PBX_EXP=1
28892 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28894 cat >>confdefs.h <<_ACEOF
28895 #define HAVE_EXP 1
28896 _ACEOF
28899 cat >>confdefs.h <<_ACEOF
28900 #define HAVE_EXP_VERSION
28901 _ACEOF
28908 if test "x${PBX_LOG}" != "x1" -a "${USE_LOG}" != "no"; then
28909 pbxlibdir=""
28910 # if --with-LOG=DIR has been specified, use it.
28911 if test "x${LOG_DIR}" != "x"; then
28912 if test -d ${LOG_DIR}/lib; then
28913 pbxlibdir="-L${LOG_DIR}/lib"
28914 else
28915 pbxlibdir="-L${LOG_DIR}"
28918 pbxfuncname="log"
28919 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28920 AST_LOG_FOUND=yes
28921 else
28922 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28923 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28924 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28925 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28926 echo $ECHO_N "(cached) $ECHO_C" >&6
28927 else
28928 ac_check_lib_save_LIBS=$LIBS
28929 LIBS="-lm ${pbxlibdir} $LIBS"
28930 cat >conftest.$ac_ext <<_ACEOF
28931 /* confdefs.h. */
28932 _ACEOF
28933 cat confdefs.h >>conftest.$ac_ext
28934 cat >>conftest.$ac_ext <<_ACEOF
28935 /* end confdefs.h. */
28937 /* Override any GCC internal prototype to avoid an error.
28938 Use char because int might match the return type of a GCC
28939 builtin and then its argument prototype would still apply. */
28940 #ifdef __cplusplus
28941 extern "C"
28942 #endif
28943 char ${pbxfuncname} ();
28945 main ()
28947 return ${pbxfuncname} ();
28949 return 0;
28951 _ACEOF
28952 rm -f conftest.$ac_objext conftest$ac_exeext
28953 if { (ac_try="$ac_link"
28954 case "(($ac_try" in
28955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956 *) ac_try_echo=$ac_try;;
28957 esac
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959 (eval "$ac_link") 2>conftest.er1
28960 ac_status=$?
28961 grep -v '^ *+' conftest.er1 >conftest.err
28962 rm -f conftest.er1
28963 cat conftest.err >&5
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); } && {
28966 test -z "$ac_c_werror_flag" ||
28967 test ! -s conftest.err
28968 } && test -s conftest$ac_exeext &&
28969 $as_test_x conftest$ac_exeext; then
28970 eval "$as_ac_Lib=yes"
28971 else
28972 echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28975 eval "$as_ac_Lib=no"
28978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28979 conftest$ac_exeext conftest.$ac_ext
28980 LIBS=$ac_check_lib_save_LIBS
28982 ac_res=`eval echo '${'$as_ac_Lib'}'`
28983 { echo "$as_me:$LINENO: result: $ac_res" >&5
28984 echo "${ECHO_T}$ac_res" >&6; }
28985 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28986 AST_LOG_FOUND=yes
28987 else
28988 AST_LOG_FOUND=no
28993 # now check for the header.
28994 if test "${AST_LOG_FOUND}" = "yes"; then
28995 LOG_LIB="${pbxlibdir} -lm "
28996 # if --with-LOG=DIR has been specified, use it.
28997 if test "x${LOG_DIR}" != "x"; then
28998 LOG_INCLUDE="-I${LOG_DIR}/include"
29000 LOG_INCLUDE="${LOG_INCLUDE} "
29001 if test "x" = "x" ; then # no header, assume found
29002 LOG_HEADER_FOUND="1"
29003 else # check for the header
29004 saved_cppflags="${CPPFLAGS}"
29005 CPPFLAGS="${CPPFLAGS} ${LOG_INCLUDE} "
29006 if test "${ac_cv_header_+set}" = set; then
29007 { echo "$as_me:$LINENO: checking for " >&5
29008 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29009 if test "${ac_cv_header_+set}" = set; then
29010 echo $ECHO_N "(cached) $ECHO_C" >&6
29012 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29013 echo "${ECHO_T}$ac_cv_header_" >&6; }
29014 else
29015 # Is the header compilable?
29016 { echo "$as_me:$LINENO: checking usability" >&5
29017 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29018 cat >conftest.$ac_ext <<_ACEOF
29019 /* confdefs.h. */
29020 _ACEOF
29021 cat confdefs.h >>conftest.$ac_ext
29022 cat >>conftest.$ac_ext <<_ACEOF
29023 /* end confdefs.h. */
29024 $ac_includes_default
29025 #include <>
29026 _ACEOF
29027 rm -f conftest.$ac_objext
29028 if { (ac_try="$ac_compile"
29029 case "(($ac_try" in
29030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29031 *) ac_try_echo=$ac_try;;
29032 esac
29033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29034 (eval "$ac_compile") 2>conftest.er1
29035 ac_status=$?
29036 grep -v '^ *+' conftest.er1 >conftest.err
29037 rm -f conftest.er1
29038 cat conftest.err >&5
29039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29040 (exit $ac_status); } && {
29041 test -z "$ac_c_werror_flag" ||
29042 test ! -s conftest.err
29043 } && test -s conftest.$ac_objext; then
29044 ac_header_compiler=yes
29045 else
29046 echo "$as_me: failed program was:" >&5
29047 sed 's/^/| /' conftest.$ac_ext >&5
29049 ac_header_compiler=no
29052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29054 echo "${ECHO_T}$ac_header_compiler" >&6; }
29056 # Is the header present?
29057 { echo "$as_me:$LINENO: checking presence" >&5
29058 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29059 cat >conftest.$ac_ext <<_ACEOF
29060 /* confdefs.h. */
29061 _ACEOF
29062 cat confdefs.h >>conftest.$ac_ext
29063 cat >>conftest.$ac_ext <<_ACEOF
29064 /* end confdefs.h. */
29065 #include <>
29066 _ACEOF
29067 if { (ac_try="$ac_cpp conftest.$ac_ext"
29068 case "(($ac_try" in
29069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070 *) ac_try_echo=$ac_try;;
29071 esac
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29074 ac_status=$?
29075 grep -v '^ *+' conftest.er1 >conftest.err
29076 rm -f conftest.er1
29077 cat conftest.err >&5
29078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079 (exit $ac_status); } >/dev/null && {
29080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29081 test ! -s conftest.err
29082 }; then
29083 ac_header_preproc=yes
29084 else
29085 echo "$as_me: failed program was:" >&5
29086 sed 's/^/| /' conftest.$ac_ext >&5
29088 ac_header_preproc=no
29091 rm -f conftest.err conftest.$ac_ext
29092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29093 echo "${ECHO_T}$ac_header_preproc" >&6; }
29095 # So? What about this header?
29096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29097 yes:no: )
29098 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29099 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29100 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29101 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29102 ac_header_preproc=yes
29104 no:yes:* )
29105 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29106 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29107 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29108 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29109 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29110 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29111 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29112 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29113 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29114 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29115 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29116 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29117 ( cat <<\_ASBOX
29118 ## ------------------------------- ##
29119 ## Report this to www.asterisk.org ##
29120 ## ------------------------------- ##
29121 _ASBOX
29122 ) | sed "s/^/$as_me: WARNING: /" >&2
29124 esac
29125 { echo "$as_me:$LINENO: checking for " >&5
29126 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29127 if test "${ac_cv_header_+set}" = set; then
29128 echo $ECHO_N "(cached) $ECHO_C" >&6
29129 else
29130 ac_cv_header_=$ac_header_preproc
29132 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29133 echo "${ECHO_T}$ac_cv_header_" >&6; }
29136 if test $ac_cv_header_ = yes; then
29137 LOG_HEADER_FOUND=1
29138 else
29139 LOG_HEADER_FOUND=0
29143 CPPFLAGS="${saved_cppflags}"
29145 if test "x${LOG_HEADER_FOUND}" = "x0" ; then
29146 LOG_LIB=""
29147 LOG_INCLUDE=""
29148 else
29149 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29150 LOG_LIB=""
29152 PBX_LOG=1
29153 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29155 cat >>confdefs.h <<_ACEOF
29156 #define HAVE_LOG 1
29157 _ACEOF
29160 cat >>confdefs.h <<_ACEOF
29161 #define HAVE_LOG_VERSION
29162 _ACEOF
29169 if test "x${PBX_REMAINDER}" != "x1" -a "${USE_REMAINDER}" != "no"; then
29170 pbxlibdir=""
29171 # if --with-REMAINDER=DIR has been specified, use it.
29172 if test "x${REMAINDER_DIR}" != "x"; then
29173 if test -d ${REMAINDER_DIR}/lib; then
29174 pbxlibdir="-L${REMAINDER_DIR}/lib"
29175 else
29176 pbxlibdir="-L${REMAINDER_DIR}"
29179 pbxfuncname="remainder"
29180 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29181 AST_REMAINDER_FOUND=yes
29182 else
29183 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29184 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29185 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29186 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29187 echo $ECHO_N "(cached) $ECHO_C" >&6
29188 else
29189 ac_check_lib_save_LIBS=$LIBS
29190 LIBS="-lm ${pbxlibdir} $LIBS"
29191 cat >conftest.$ac_ext <<_ACEOF
29192 /* confdefs.h. */
29193 _ACEOF
29194 cat confdefs.h >>conftest.$ac_ext
29195 cat >>conftest.$ac_ext <<_ACEOF
29196 /* end confdefs.h. */
29198 /* Override any GCC internal prototype to avoid an error.
29199 Use char because int might match the return type of a GCC
29200 builtin and then its argument prototype would still apply. */
29201 #ifdef __cplusplus
29202 extern "C"
29203 #endif
29204 char ${pbxfuncname} ();
29206 main ()
29208 return ${pbxfuncname} ();
29210 return 0;
29212 _ACEOF
29213 rm -f conftest.$ac_objext conftest$ac_exeext
29214 if { (ac_try="$ac_link"
29215 case "(($ac_try" in
29216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217 *) ac_try_echo=$ac_try;;
29218 esac
29219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220 (eval "$ac_link") 2>conftest.er1
29221 ac_status=$?
29222 grep -v '^ *+' conftest.er1 >conftest.err
29223 rm -f conftest.er1
29224 cat conftest.err >&5
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); } && {
29227 test -z "$ac_c_werror_flag" ||
29228 test ! -s conftest.err
29229 } && test -s conftest$ac_exeext &&
29230 $as_test_x conftest$ac_exeext; then
29231 eval "$as_ac_Lib=yes"
29232 else
29233 echo "$as_me: failed program was:" >&5
29234 sed 's/^/| /' conftest.$ac_ext >&5
29236 eval "$as_ac_Lib=no"
29239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29240 conftest$ac_exeext conftest.$ac_ext
29241 LIBS=$ac_check_lib_save_LIBS
29243 ac_res=`eval echo '${'$as_ac_Lib'}'`
29244 { echo "$as_me:$LINENO: result: $ac_res" >&5
29245 echo "${ECHO_T}$ac_res" >&6; }
29246 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29247 AST_REMAINDER_FOUND=yes
29248 else
29249 AST_REMAINDER_FOUND=no
29254 # now check for the header.
29255 if test "${AST_REMAINDER_FOUND}" = "yes"; then
29256 REMAINDER_LIB="${pbxlibdir} -lm "
29257 # if --with-REMAINDER=DIR has been specified, use it.
29258 if test "x${REMAINDER_DIR}" != "x"; then
29259 REMAINDER_INCLUDE="-I${REMAINDER_DIR}/include"
29261 REMAINDER_INCLUDE="${REMAINDER_INCLUDE} "
29262 if test "x" = "x" ; then # no header, assume found
29263 REMAINDER_HEADER_FOUND="1"
29264 else # check for the header
29265 saved_cppflags="${CPPFLAGS}"
29266 CPPFLAGS="${CPPFLAGS} ${REMAINDER_INCLUDE} "
29267 if test "${ac_cv_header_+set}" = set; then
29268 { echo "$as_me:$LINENO: checking for " >&5
29269 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29270 if test "${ac_cv_header_+set}" = set; then
29271 echo $ECHO_N "(cached) $ECHO_C" >&6
29273 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29274 echo "${ECHO_T}$ac_cv_header_" >&6; }
29275 else
29276 # Is the header compilable?
29277 { echo "$as_me:$LINENO: checking usability" >&5
29278 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29279 cat >conftest.$ac_ext <<_ACEOF
29280 /* confdefs.h. */
29281 _ACEOF
29282 cat confdefs.h >>conftest.$ac_ext
29283 cat >>conftest.$ac_ext <<_ACEOF
29284 /* end confdefs.h. */
29285 $ac_includes_default
29286 #include <>
29287 _ACEOF
29288 rm -f conftest.$ac_objext
29289 if { (ac_try="$ac_compile"
29290 case "(($ac_try" in
29291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29292 *) ac_try_echo=$ac_try;;
29293 esac
29294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29295 (eval "$ac_compile") 2>conftest.er1
29296 ac_status=$?
29297 grep -v '^ *+' conftest.er1 >conftest.err
29298 rm -f conftest.er1
29299 cat conftest.err >&5
29300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301 (exit $ac_status); } && {
29302 test -z "$ac_c_werror_flag" ||
29303 test ! -s conftest.err
29304 } && test -s conftest.$ac_objext; then
29305 ac_header_compiler=yes
29306 else
29307 echo "$as_me: failed program was:" >&5
29308 sed 's/^/| /' conftest.$ac_ext >&5
29310 ac_header_compiler=no
29313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29315 echo "${ECHO_T}$ac_header_compiler" >&6; }
29317 # Is the header present?
29318 { echo "$as_me:$LINENO: checking presence" >&5
29319 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29320 cat >conftest.$ac_ext <<_ACEOF
29321 /* confdefs.h. */
29322 _ACEOF
29323 cat confdefs.h >>conftest.$ac_ext
29324 cat >>conftest.$ac_ext <<_ACEOF
29325 /* end confdefs.h. */
29326 #include <>
29327 _ACEOF
29328 if { (ac_try="$ac_cpp conftest.$ac_ext"
29329 case "(($ac_try" in
29330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29331 *) ac_try_echo=$ac_try;;
29332 esac
29333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29335 ac_status=$?
29336 grep -v '^ *+' conftest.er1 >conftest.err
29337 rm -f conftest.er1
29338 cat conftest.err >&5
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); } >/dev/null && {
29341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29342 test ! -s conftest.err
29343 }; then
29344 ac_header_preproc=yes
29345 else
29346 echo "$as_me: failed program was:" >&5
29347 sed 's/^/| /' conftest.$ac_ext >&5
29349 ac_header_preproc=no
29352 rm -f conftest.err conftest.$ac_ext
29353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29354 echo "${ECHO_T}$ac_header_preproc" >&6; }
29356 # So? What about this header?
29357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29358 yes:no: )
29359 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29360 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29361 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29362 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29363 ac_header_preproc=yes
29365 no:yes:* )
29366 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29367 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29368 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29369 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29370 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29371 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29372 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29373 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29374 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29375 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29376 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29377 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29378 ( cat <<\_ASBOX
29379 ## ------------------------------- ##
29380 ## Report this to www.asterisk.org ##
29381 ## ------------------------------- ##
29382 _ASBOX
29383 ) | sed "s/^/$as_me: WARNING: /" >&2
29385 esac
29386 { echo "$as_me:$LINENO: checking for " >&5
29387 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29388 if test "${ac_cv_header_+set}" = set; then
29389 echo $ECHO_N "(cached) $ECHO_C" >&6
29390 else
29391 ac_cv_header_=$ac_header_preproc
29393 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29394 echo "${ECHO_T}$ac_cv_header_" >&6; }
29397 if test $ac_cv_header_ = yes; then
29398 REMAINDER_HEADER_FOUND=1
29399 else
29400 REMAINDER_HEADER_FOUND=0
29404 CPPFLAGS="${saved_cppflags}"
29406 if test "x${REMAINDER_HEADER_FOUND}" = "x0" ; then
29407 REMAINDER_LIB=""
29408 REMAINDER_INCLUDE=""
29409 else
29410 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29411 REMAINDER_LIB=""
29413 PBX_REMAINDER=1
29414 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29416 cat >>confdefs.h <<_ACEOF
29417 #define HAVE_REMAINDER 1
29418 _ACEOF
29421 cat >>confdefs.h <<_ACEOF
29422 #define HAVE_REMAINDER_VERSION
29423 _ACEOF
29430 if test "x${PBX_FMOD}" != "x1" -a "${USE_FMOD}" != "no"; then
29431 pbxlibdir=""
29432 # if --with-FMOD=DIR has been specified, use it.
29433 if test "x${FMOD_DIR}" != "x"; then
29434 if test -d ${FMOD_DIR}/lib; then
29435 pbxlibdir="-L${FMOD_DIR}/lib"
29436 else
29437 pbxlibdir="-L${FMOD_DIR}"
29440 pbxfuncname="fmod"
29441 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29442 AST_FMOD_FOUND=yes
29443 else
29444 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29445 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29446 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29447 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29448 echo $ECHO_N "(cached) $ECHO_C" >&6
29449 else
29450 ac_check_lib_save_LIBS=$LIBS
29451 LIBS="-lm ${pbxlibdir} $LIBS"
29452 cat >conftest.$ac_ext <<_ACEOF
29453 /* confdefs.h. */
29454 _ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h. */
29459 /* Override any GCC internal prototype to avoid an error.
29460 Use char because int might match the return type of a GCC
29461 builtin and then its argument prototype would still apply. */
29462 #ifdef __cplusplus
29463 extern "C"
29464 #endif
29465 char ${pbxfuncname} ();
29467 main ()
29469 return ${pbxfuncname} ();
29471 return 0;
29473 _ACEOF
29474 rm -f conftest.$ac_objext conftest$ac_exeext
29475 if { (ac_try="$ac_link"
29476 case "(($ac_try" in
29477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29478 *) ac_try_echo=$ac_try;;
29479 esac
29480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29481 (eval "$ac_link") 2>conftest.er1
29482 ac_status=$?
29483 grep -v '^ *+' conftest.er1 >conftest.err
29484 rm -f conftest.er1
29485 cat conftest.err >&5
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); } && {
29488 test -z "$ac_c_werror_flag" ||
29489 test ! -s conftest.err
29490 } && test -s conftest$ac_exeext &&
29491 $as_test_x conftest$ac_exeext; then
29492 eval "$as_ac_Lib=yes"
29493 else
29494 echo "$as_me: failed program was:" >&5
29495 sed 's/^/| /' conftest.$ac_ext >&5
29497 eval "$as_ac_Lib=no"
29500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29501 conftest$ac_exeext conftest.$ac_ext
29502 LIBS=$ac_check_lib_save_LIBS
29504 ac_res=`eval echo '${'$as_ac_Lib'}'`
29505 { echo "$as_me:$LINENO: result: $ac_res" >&5
29506 echo "${ECHO_T}$ac_res" >&6; }
29507 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29508 AST_FMOD_FOUND=yes
29509 else
29510 AST_FMOD_FOUND=no
29515 # now check for the header.
29516 if test "${AST_FMOD_FOUND}" = "yes"; then
29517 FMOD_LIB="${pbxlibdir} -lm "
29518 # if --with-FMOD=DIR has been specified, use it.
29519 if test "x${FMOD_DIR}" != "x"; then
29520 FMOD_INCLUDE="-I${FMOD_DIR}/include"
29522 FMOD_INCLUDE="${FMOD_INCLUDE} "
29523 if test "x" = "x" ; then # no header, assume found
29524 FMOD_HEADER_FOUND="1"
29525 else # check for the header
29526 saved_cppflags="${CPPFLAGS}"
29527 CPPFLAGS="${CPPFLAGS} ${FMOD_INCLUDE} "
29528 if test "${ac_cv_header_+set}" = set; then
29529 { echo "$as_me:$LINENO: checking for " >&5
29530 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29531 if test "${ac_cv_header_+set}" = set; then
29532 echo $ECHO_N "(cached) $ECHO_C" >&6
29534 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29535 echo "${ECHO_T}$ac_cv_header_" >&6; }
29536 else
29537 # Is the header compilable?
29538 { echo "$as_me:$LINENO: checking usability" >&5
29539 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29540 cat >conftest.$ac_ext <<_ACEOF
29541 /* confdefs.h. */
29542 _ACEOF
29543 cat confdefs.h >>conftest.$ac_ext
29544 cat >>conftest.$ac_ext <<_ACEOF
29545 /* end confdefs.h. */
29546 $ac_includes_default
29547 #include <>
29548 _ACEOF
29549 rm -f conftest.$ac_objext
29550 if { (ac_try="$ac_compile"
29551 case "(($ac_try" in
29552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29553 *) ac_try_echo=$ac_try;;
29554 esac
29555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29556 (eval "$ac_compile") 2>conftest.er1
29557 ac_status=$?
29558 grep -v '^ *+' conftest.er1 >conftest.err
29559 rm -f conftest.er1
29560 cat conftest.err >&5
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); } && {
29563 test -z "$ac_c_werror_flag" ||
29564 test ! -s conftest.err
29565 } && test -s conftest.$ac_objext; then
29566 ac_header_compiler=yes
29567 else
29568 echo "$as_me: failed program was:" >&5
29569 sed 's/^/| /' conftest.$ac_ext >&5
29571 ac_header_compiler=no
29574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29576 echo "${ECHO_T}$ac_header_compiler" >&6; }
29578 # Is the header present?
29579 { echo "$as_me:$LINENO: checking presence" >&5
29580 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29581 cat >conftest.$ac_ext <<_ACEOF
29582 /* confdefs.h. */
29583 _ACEOF
29584 cat confdefs.h >>conftest.$ac_ext
29585 cat >>conftest.$ac_ext <<_ACEOF
29586 /* end confdefs.h. */
29587 #include <>
29588 _ACEOF
29589 if { (ac_try="$ac_cpp conftest.$ac_ext"
29590 case "(($ac_try" in
29591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29592 *) ac_try_echo=$ac_try;;
29593 esac
29594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29596 ac_status=$?
29597 grep -v '^ *+' conftest.er1 >conftest.err
29598 rm -f conftest.er1
29599 cat conftest.err >&5
29600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601 (exit $ac_status); } >/dev/null && {
29602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29603 test ! -s conftest.err
29604 }; then
29605 ac_header_preproc=yes
29606 else
29607 echo "$as_me: failed program was:" >&5
29608 sed 's/^/| /' conftest.$ac_ext >&5
29610 ac_header_preproc=no
29613 rm -f conftest.err conftest.$ac_ext
29614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29615 echo "${ECHO_T}$ac_header_preproc" >&6; }
29617 # So? What about this header?
29618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29619 yes:no: )
29620 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29621 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29622 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29623 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29624 ac_header_preproc=yes
29626 no:yes:* )
29627 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29628 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29629 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29630 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29631 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29632 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29633 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29634 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29635 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29636 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29637 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29638 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29639 ( cat <<\_ASBOX
29640 ## ------------------------------- ##
29641 ## Report this to www.asterisk.org ##
29642 ## ------------------------------- ##
29643 _ASBOX
29644 ) | sed "s/^/$as_me: WARNING: /" >&2
29646 esac
29647 { echo "$as_me:$LINENO: checking for " >&5
29648 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29649 if test "${ac_cv_header_+set}" = set; then
29650 echo $ECHO_N "(cached) $ECHO_C" >&6
29651 else
29652 ac_cv_header_=$ac_header_preproc
29654 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29655 echo "${ECHO_T}$ac_cv_header_" >&6; }
29658 if test $ac_cv_header_ = yes; then
29659 FMOD_HEADER_FOUND=1
29660 else
29661 FMOD_HEADER_FOUND=0
29665 CPPFLAGS="${saved_cppflags}"
29667 if test "x${FMOD_HEADER_FOUND}" = "x0" ; then
29668 FMOD_LIB=""
29669 FMOD_INCLUDE=""
29670 else
29671 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29672 FMOD_LIB=""
29674 PBX_FMOD=1
29675 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29677 cat >>confdefs.h <<_ACEOF
29678 #define HAVE_FMOD 1
29679 _ACEOF
29682 cat >>confdefs.h <<_ACEOF
29683 #define HAVE_FMOD_VERSION
29684 _ACEOF
29691 if test "x${PBX_ROUND}" != "x1" -a "${USE_ROUND}" != "no"; then
29692 pbxlibdir=""
29693 # if --with-ROUND=DIR has been specified, use it.
29694 if test "x${ROUND_DIR}" != "x"; then
29695 if test -d ${ROUND_DIR}/lib; then
29696 pbxlibdir="-L${ROUND_DIR}/lib"
29697 else
29698 pbxlibdir="-L${ROUND_DIR}"
29701 pbxfuncname="round"
29702 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29703 AST_ROUND_FOUND=yes
29704 else
29705 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29706 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29707 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29708 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29709 echo $ECHO_N "(cached) $ECHO_C" >&6
29710 else
29711 ac_check_lib_save_LIBS=$LIBS
29712 LIBS="-lm ${pbxlibdir} $LIBS"
29713 cat >conftest.$ac_ext <<_ACEOF
29714 /* confdefs.h. */
29715 _ACEOF
29716 cat confdefs.h >>conftest.$ac_ext
29717 cat >>conftest.$ac_ext <<_ACEOF
29718 /* end confdefs.h. */
29720 /* Override any GCC internal prototype to avoid an error.
29721 Use char because int might match the return type of a GCC
29722 builtin and then its argument prototype would still apply. */
29723 #ifdef __cplusplus
29724 extern "C"
29725 #endif
29726 char ${pbxfuncname} ();
29728 main ()
29730 return ${pbxfuncname} ();
29732 return 0;
29734 _ACEOF
29735 rm -f conftest.$ac_objext conftest$ac_exeext
29736 if { (ac_try="$ac_link"
29737 case "(($ac_try" in
29738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29739 *) ac_try_echo=$ac_try;;
29740 esac
29741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29742 (eval "$ac_link") 2>conftest.er1
29743 ac_status=$?
29744 grep -v '^ *+' conftest.er1 >conftest.err
29745 rm -f conftest.er1
29746 cat conftest.err >&5
29747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748 (exit $ac_status); } && {
29749 test -z "$ac_c_werror_flag" ||
29750 test ! -s conftest.err
29751 } && test -s conftest$ac_exeext &&
29752 $as_test_x conftest$ac_exeext; then
29753 eval "$as_ac_Lib=yes"
29754 else
29755 echo "$as_me: failed program was:" >&5
29756 sed 's/^/| /' conftest.$ac_ext >&5
29758 eval "$as_ac_Lib=no"
29761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29762 conftest$ac_exeext conftest.$ac_ext
29763 LIBS=$ac_check_lib_save_LIBS
29765 ac_res=`eval echo '${'$as_ac_Lib'}'`
29766 { echo "$as_me:$LINENO: result: $ac_res" >&5
29767 echo "${ECHO_T}$ac_res" >&6; }
29768 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29769 AST_ROUND_FOUND=yes
29770 else
29771 AST_ROUND_FOUND=no
29776 # now check for the header.
29777 if test "${AST_ROUND_FOUND}" = "yes"; then
29778 ROUND_LIB="${pbxlibdir} -lm "
29779 # if --with-ROUND=DIR has been specified, use it.
29780 if test "x${ROUND_DIR}" != "x"; then
29781 ROUND_INCLUDE="-I${ROUND_DIR}/include"
29783 ROUND_INCLUDE="${ROUND_INCLUDE} "
29784 if test "x" = "x" ; then # no header, assume found
29785 ROUND_HEADER_FOUND="1"
29786 else # check for the header
29787 saved_cppflags="${CPPFLAGS}"
29788 CPPFLAGS="${CPPFLAGS} ${ROUND_INCLUDE} "
29789 if test "${ac_cv_header_+set}" = set; then
29790 { echo "$as_me:$LINENO: checking for " >&5
29791 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29792 if test "${ac_cv_header_+set}" = set; then
29793 echo $ECHO_N "(cached) $ECHO_C" >&6
29795 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29796 echo "${ECHO_T}$ac_cv_header_" >&6; }
29797 else
29798 # Is the header compilable?
29799 { echo "$as_me:$LINENO: checking usability" >&5
29800 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29801 cat >conftest.$ac_ext <<_ACEOF
29802 /* confdefs.h. */
29803 _ACEOF
29804 cat confdefs.h >>conftest.$ac_ext
29805 cat >>conftest.$ac_ext <<_ACEOF
29806 /* end confdefs.h. */
29807 $ac_includes_default
29808 #include <>
29809 _ACEOF
29810 rm -f conftest.$ac_objext
29811 if { (ac_try="$ac_compile"
29812 case "(($ac_try" in
29813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29814 *) ac_try_echo=$ac_try;;
29815 esac
29816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29817 (eval "$ac_compile") 2>conftest.er1
29818 ac_status=$?
29819 grep -v '^ *+' conftest.er1 >conftest.err
29820 rm -f conftest.er1
29821 cat conftest.err >&5
29822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29823 (exit $ac_status); } && {
29824 test -z "$ac_c_werror_flag" ||
29825 test ! -s conftest.err
29826 } && test -s conftest.$ac_objext; then
29827 ac_header_compiler=yes
29828 else
29829 echo "$as_me: failed program was:" >&5
29830 sed 's/^/| /' conftest.$ac_ext >&5
29832 ac_header_compiler=no
29835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29837 echo "${ECHO_T}$ac_header_compiler" >&6; }
29839 # Is the header present?
29840 { echo "$as_me:$LINENO: checking presence" >&5
29841 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29842 cat >conftest.$ac_ext <<_ACEOF
29843 /* confdefs.h. */
29844 _ACEOF
29845 cat confdefs.h >>conftest.$ac_ext
29846 cat >>conftest.$ac_ext <<_ACEOF
29847 /* end confdefs.h. */
29848 #include <>
29849 _ACEOF
29850 if { (ac_try="$ac_cpp conftest.$ac_ext"
29851 case "(($ac_try" in
29852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853 *) ac_try_echo=$ac_try;;
29854 esac
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29857 ac_status=$?
29858 grep -v '^ *+' conftest.er1 >conftest.err
29859 rm -f conftest.er1
29860 cat conftest.err >&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); } >/dev/null && {
29863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29864 test ! -s conftest.err
29865 }; then
29866 ac_header_preproc=yes
29867 else
29868 echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29871 ac_header_preproc=no
29874 rm -f conftest.err conftest.$ac_ext
29875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29876 echo "${ECHO_T}$ac_header_preproc" >&6; }
29878 # So? What about this header?
29879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29880 yes:no: )
29881 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29882 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29883 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29884 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29885 ac_header_preproc=yes
29887 no:yes:* )
29888 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29889 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29890 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29891 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29892 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29893 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29894 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29895 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29896 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29897 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29898 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29899 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29900 ( cat <<\_ASBOX
29901 ## ------------------------------- ##
29902 ## Report this to www.asterisk.org ##
29903 ## ------------------------------- ##
29904 _ASBOX
29905 ) | sed "s/^/$as_me: WARNING: /" >&2
29907 esac
29908 { echo "$as_me:$LINENO: checking for " >&5
29909 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29910 if test "${ac_cv_header_+set}" = set; then
29911 echo $ECHO_N "(cached) $ECHO_C" >&6
29912 else
29913 ac_cv_header_=$ac_header_preproc
29915 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29916 echo "${ECHO_T}$ac_cv_header_" >&6; }
29919 if test $ac_cv_header_ = yes; then
29920 ROUND_HEADER_FOUND=1
29921 else
29922 ROUND_HEADER_FOUND=0
29926 CPPFLAGS="${saved_cppflags}"
29928 if test "x${ROUND_HEADER_FOUND}" = "x0" ; then
29929 ROUND_LIB=""
29930 ROUND_INCLUDE=""
29931 else
29932 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29933 ROUND_LIB=""
29935 PBX_ROUND=1
29936 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29938 cat >>confdefs.h <<_ACEOF
29939 #define HAVE_ROUND 1
29940 _ACEOF
29943 cat >>confdefs.h <<_ACEOF
29944 #define HAVE_ROUND_VERSION
29945 _ACEOF
29952 if test "x${PBX_TRUNC}" != "x1" -a "${USE_TRUNC}" != "no"; then
29953 pbxlibdir=""
29954 # if --with-TRUNC=DIR has been specified, use it.
29955 if test "x${TRUNC_DIR}" != "x"; then
29956 if test -d ${TRUNC_DIR}/lib; then
29957 pbxlibdir="-L${TRUNC_DIR}/lib"
29958 else
29959 pbxlibdir="-L${TRUNC_DIR}"
29962 pbxfuncname="trunc"
29963 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29964 AST_TRUNC_FOUND=yes
29965 else
29966 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29967 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29968 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29969 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29970 echo $ECHO_N "(cached) $ECHO_C" >&6
29971 else
29972 ac_check_lib_save_LIBS=$LIBS
29973 LIBS="-lm ${pbxlibdir} $LIBS"
29974 cat >conftest.$ac_ext <<_ACEOF
29975 /* confdefs.h. */
29976 _ACEOF
29977 cat confdefs.h >>conftest.$ac_ext
29978 cat >>conftest.$ac_ext <<_ACEOF
29979 /* end confdefs.h. */
29981 /* Override any GCC internal prototype to avoid an error.
29982 Use char because int might match the return type of a GCC
29983 builtin and then its argument prototype would still apply. */
29984 #ifdef __cplusplus
29985 extern "C"
29986 #endif
29987 char ${pbxfuncname} ();
29989 main ()
29991 return ${pbxfuncname} ();
29993 return 0;
29995 _ACEOF
29996 rm -f conftest.$ac_objext conftest$ac_exeext
29997 if { (ac_try="$ac_link"
29998 case "(($ac_try" in
29999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30000 *) ac_try_echo=$ac_try;;
30001 esac
30002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30003 (eval "$ac_link") 2>conftest.er1
30004 ac_status=$?
30005 grep -v '^ *+' conftest.er1 >conftest.err
30006 rm -f conftest.er1
30007 cat conftest.err >&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } && {
30010 test -z "$ac_c_werror_flag" ||
30011 test ! -s conftest.err
30012 } && test -s conftest$ac_exeext &&
30013 $as_test_x conftest$ac_exeext; then
30014 eval "$as_ac_Lib=yes"
30015 else
30016 echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30019 eval "$as_ac_Lib=no"
30022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30023 conftest$ac_exeext conftest.$ac_ext
30024 LIBS=$ac_check_lib_save_LIBS
30026 ac_res=`eval echo '${'$as_ac_Lib'}'`
30027 { echo "$as_me:$LINENO: result: $ac_res" >&5
30028 echo "${ECHO_T}$ac_res" >&6; }
30029 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30030 AST_TRUNC_FOUND=yes
30031 else
30032 AST_TRUNC_FOUND=no
30037 # now check for the header.
30038 if test "${AST_TRUNC_FOUND}" = "yes"; then
30039 TRUNC_LIB="${pbxlibdir} -lm "
30040 # if --with-TRUNC=DIR has been specified, use it.
30041 if test "x${TRUNC_DIR}" != "x"; then
30042 TRUNC_INCLUDE="-I${TRUNC_DIR}/include"
30044 TRUNC_INCLUDE="${TRUNC_INCLUDE} "
30045 if test "x" = "x" ; then # no header, assume found
30046 TRUNC_HEADER_FOUND="1"
30047 else # check for the header
30048 saved_cppflags="${CPPFLAGS}"
30049 CPPFLAGS="${CPPFLAGS} ${TRUNC_INCLUDE} "
30050 if test "${ac_cv_header_+set}" = set; then
30051 { echo "$as_me:$LINENO: checking for " >&5
30052 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30053 if test "${ac_cv_header_+set}" = set; then
30054 echo $ECHO_N "(cached) $ECHO_C" >&6
30056 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30057 echo "${ECHO_T}$ac_cv_header_" >&6; }
30058 else
30059 # Is the header compilable?
30060 { echo "$as_me:$LINENO: checking usability" >&5
30061 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30062 cat >conftest.$ac_ext <<_ACEOF
30063 /* confdefs.h. */
30064 _ACEOF
30065 cat confdefs.h >>conftest.$ac_ext
30066 cat >>conftest.$ac_ext <<_ACEOF
30067 /* end confdefs.h. */
30068 $ac_includes_default
30069 #include <>
30070 _ACEOF
30071 rm -f conftest.$ac_objext
30072 if { (ac_try="$ac_compile"
30073 case "(($ac_try" in
30074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30075 *) ac_try_echo=$ac_try;;
30076 esac
30077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30078 (eval "$ac_compile") 2>conftest.er1
30079 ac_status=$?
30080 grep -v '^ *+' conftest.er1 >conftest.err
30081 rm -f conftest.er1
30082 cat conftest.err >&5
30083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084 (exit $ac_status); } && {
30085 test -z "$ac_c_werror_flag" ||
30086 test ! -s conftest.err
30087 } && test -s conftest.$ac_objext; then
30088 ac_header_compiler=yes
30089 else
30090 echo "$as_me: failed program was:" >&5
30091 sed 's/^/| /' conftest.$ac_ext >&5
30093 ac_header_compiler=no
30096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30098 echo "${ECHO_T}$ac_header_compiler" >&6; }
30100 # Is the header present?
30101 { echo "$as_me:$LINENO: checking presence" >&5
30102 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30103 cat >conftest.$ac_ext <<_ACEOF
30104 /* confdefs.h. */
30105 _ACEOF
30106 cat confdefs.h >>conftest.$ac_ext
30107 cat >>conftest.$ac_ext <<_ACEOF
30108 /* end confdefs.h. */
30109 #include <>
30110 _ACEOF
30111 if { (ac_try="$ac_cpp conftest.$ac_ext"
30112 case "(($ac_try" in
30113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30114 *) ac_try_echo=$ac_try;;
30115 esac
30116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30118 ac_status=$?
30119 grep -v '^ *+' conftest.er1 >conftest.err
30120 rm -f conftest.er1
30121 cat conftest.err >&5
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); } >/dev/null && {
30124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30125 test ! -s conftest.err
30126 }; then
30127 ac_header_preproc=yes
30128 else
30129 echo "$as_me: failed program was:" >&5
30130 sed 's/^/| /' conftest.$ac_ext >&5
30132 ac_header_preproc=no
30135 rm -f conftest.err conftest.$ac_ext
30136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30137 echo "${ECHO_T}$ac_header_preproc" >&6; }
30139 # So? What about this header?
30140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30141 yes:no: )
30142 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30143 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30144 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30145 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30146 ac_header_preproc=yes
30148 no:yes:* )
30149 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30150 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30151 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30152 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30153 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30154 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30155 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30156 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30157 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30158 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30159 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30160 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30161 ( cat <<\_ASBOX
30162 ## ------------------------------- ##
30163 ## Report this to www.asterisk.org ##
30164 ## ------------------------------- ##
30165 _ASBOX
30166 ) | sed "s/^/$as_me: WARNING: /" >&2
30168 esac
30169 { echo "$as_me:$LINENO: checking for " >&5
30170 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30171 if test "${ac_cv_header_+set}" = set; then
30172 echo $ECHO_N "(cached) $ECHO_C" >&6
30173 else
30174 ac_cv_header_=$ac_header_preproc
30176 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30177 echo "${ECHO_T}$ac_cv_header_" >&6; }
30180 if test $ac_cv_header_ = yes; then
30181 TRUNC_HEADER_FOUND=1
30182 else
30183 TRUNC_HEADER_FOUND=0
30187 CPPFLAGS="${saved_cppflags}"
30189 if test "x${TRUNC_HEADER_FOUND}" = "x0" ; then
30190 TRUNC_LIB=""
30191 TRUNC_INCLUDE=""
30192 else
30193 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30194 TRUNC_LIB=""
30196 PBX_TRUNC=1
30197 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30199 cat >>confdefs.h <<_ACEOF
30200 #define HAVE_TRUNC 1
30201 _ACEOF
30204 cat >>confdefs.h <<_ACEOF
30205 #define HAVE_TRUNC_VERSION
30206 _ACEOF
30213 if test "x${PBX_STRTOD}" != "x1" -a "${USE_STRTOD}" != "no"; then
30214 pbxlibdir=""
30215 # if --with-STRTOD=DIR has been specified, use it.
30216 if test "x${STRTOD_DIR}" != "x"; then
30217 if test -d ${STRTOD_DIR}/lib; then
30218 pbxlibdir="-L${STRTOD_DIR}/lib"
30219 else
30220 pbxlibdir="-L${STRTOD_DIR}"
30223 pbxfuncname="strtod"
30224 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30225 AST_STRTOD_FOUND=yes
30226 else
30227 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
30228 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
30229 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
30230 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30231 echo $ECHO_N "(cached) $ECHO_C" >&6
30232 else
30233 ac_check_lib_save_LIBS=$LIBS
30234 LIBS="-lc ${pbxlibdir} $LIBS"
30235 cat >conftest.$ac_ext <<_ACEOF
30236 /* confdefs.h. */
30237 _ACEOF
30238 cat confdefs.h >>conftest.$ac_ext
30239 cat >>conftest.$ac_ext <<_ACEOF
30240 /* end confdefs.h. */
30242 /* Override any GCC internal prototype to avoid an error.
30243 Use char because int might match the return type of a GCC
30244 builtin and then its argument prototype would still apply. */
30245 #ifdef __cplusplus
30246 extern "C"
30247 #endif
30248 char ${pbxfuncname} ();
30250 main ()
30252 return ${pbxfuncname} ();
30254 return 0;
30256 _ACEOF
30257 rm -f conftest.$ac_objext conftest$ac_exeext
30258 if { (ac_try="$ac_link"
30259 case "(($ac_try" in
30260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30261 *) ac_try_echo=$ac_try;;
30262 esac
30263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30264 (eval "$ac_link") 2>conftest.er1
30265 ac_status=$?
30266 grep -v '^ *+' conftest.er1 >conftest.err
30267 rm -f conftest.er1
30268 cat conftest.err >&5
30269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30270 (exit $ac_status); } && {
30271 test -z "$ac_c_werror_flag" ||
30272 test ! -s conftest.err
30273 } && test -s conftest$ac_exeext &&
30274 $as_test_x conftest$ac_exeext; then
30275 eval "$as_ac_Lib=yes"
30276 else
30277 echo "$as_me: failed program was:" >&5
30278 sed 's/^/| /' conftest.$ac_ext >&5
30280 eval "$as_ac_Lib=no"
30283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30284 conftest$ac_exeext conftest.$ac_ext
30285 LIBS=$ac_check_lib_save_LIBS
30287 ac_res=`eval echo '${'$as_ac_Lib'}'`
30288 { echo "$as_me:$LINENO: result: $ac_res" >&5
30289 echo "${ECHO_T}$ac_res" >&6; }
30290 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30291 AST_STRTOD_FOUND=yes
30292 else
30293 AST_STRTOD_FOUND=no
30298 # now check for the header.
30299 if test "${AST_STRTOD_FOUND}" = "yes"; then
30300 STRTOD_LIB="${pbxlibdir} -lc "
30301 # if --with-STRTOD=DIR has been specified, use it.
30302 if test "x${STRTOD_DIR}" != "x"; then
30303 STRTOD_INCLUDE="-I${STRTOD_DIR}/include"
30305 STRTOD_INCLUDE="${STRTOD_INCLUDE} "
30306 if test "xstdlib.h" = "x" ; then # no header, assume found
30307 STRTOD_HEADER_FOUND="1"
30308 else # check for the header
30309 saved_cppflags="${CPPFLAGS}"
30310 CPPFLAGS="${CPPFLAGS} ${STRTOD_INCLUDE} "
30311 if test "${ac_cv_header_stdlib_h+set}" = set; then
30312 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30313 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30314 if test "${ac_cv_header_stdlib_h+set}" = set; then
30315 echo $ECHO_N "(cached) $ECHO_C" >&6
30317 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30318 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30319 else
30320 # Is the header compilable?
30321 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
30322 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
30323 cat >conftest.$ac_ext <<_ACEOF
30324 /* confdefs.h. */
30325 _ACEOF
30326 cat confdefs.h >>conftest.$ac_ext
30327 cat >>conftest.$ac_ext <<_ACEOF
30328 /* end confdefs.h. */
30329 $ac_includes_default
30330 #include <stdlib.h>
30331 _ACEOF
30332 rm -f conftest.$ac_objext
30333 if { (ac_try="$ac_compile"
30334 case "(($ac_try" in
30335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30336 *) ac_try_echo=$ac_try;;
30337 esac
30338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30339 (eval "$ac_compile") 2>conftest.er1
30340 ac_status=$?
30341 grep -v '^ *+' conftest.er1 >conftest.err
30342 rm -f conftest.er1
30343 cat conftest.err >&5
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); } && {
30346 test -z "$ac_c_werror_flag" ||
30347 test ! -s conftest.err
30348 } && test -s conftest.$ac_objext; then
30349 ac_header_compiler=yes
30350 else
30351 echo "$as_me: failed program was:" >&5
30352 sed 's/^/| /' conftest.$ac_ext >&5
30354 ac_header_compiler=no
30357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30359 echo "${ECHO_T}$ac_header_compiler" >&6; }
30361 # Is the header present?
30362 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
30363 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
30364 cat >conftest.$ac_ext <<_ACEOF
30365 /* confdefs.h. */
30366 _ACEOF
30367 cat confdefs.h >>conftest.$ac_ext
30368 cat >>conftest.$ac_ext <<_ACEOF
30369 /* end confdefs.h. */
30370 #include <stdlib.h>
30371 _ACEOF
30372 if { (ac_try="$ac_cpp conftest.$ac_ext"
30373 case "(($ac_try" in
30374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30375 *) ac_try_echo=$ac_try;;
30376 esac
30377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30379 ac_status=$?
30380 grep -v '^ *+' conftest.er1 >conftest.err
30381 rm -f conftest.er1
30382 cat conftest.err >&5
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); } >/dev/null && {
30385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30386 test ! -s conftest.err
30387 }; then
30388 ac_header_preproc=yes
30389 else
30390 echo "$as_me: failed program was:" >&5
30391 sed 's/^/| /' conftest.$ac_ext >&5
30393 ac_header_preproc=no
30396 rm -f conftest.err conftest.$ac_ext
30397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30398 echo "${ECHO_T}$ac_header_preproc" >&6; }
30400 # So? What about this header?
30401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30402 yes:no: )
30403 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30404 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30405 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
30406 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
30407 ac_header_preproc=yes
30409 no:yes:* )
30410 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
30411 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
30412 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
30413 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
30414 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
30415 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
30416 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
30417 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30418 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
30419 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
30420 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
30421 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
30422 ( cat <<\_ASBOX
30423 ## ------------------------------- ##
30424 ## Report this to www.asterisk.org ##
30425 ## ------------------------------- ##
30426 _ASBOX
30427 ) | sed "s/^/$as_me: WARNING: /" >&2
30429 esac
30430 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30431 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30432 if test "${ac_cv_header_stdlib_h+set}" = set; then
30433 echo $ECHO_N "(cached) $ECHO_C" >&6
30434 else
30435 ac_cv_header_stdlib_h=$ac_header_preproc
30437 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30438 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30441 if test $ac_cv_header_stdlib_h = yes; then
30442 STRTOD_HEADER_FOUND=1
30443 else
30444 STRTOD_HEADER_FOUND=0
30448 CPPFLAGS="${saved_cppflags}"
30450 if test "x${STRTOD_HEADER_FOUND}" = "x0" ; then
30451 STRTOD_LIB=""
30452 STRTOD_INCLUDE=""
30453 else
30454 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30455 STRTOD_LIB=""
30457 PBX_STRTOD=1
30458 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30460 cat >>confdefs.h <<_ACEOF
30461 #define HAVE_STRTOD 1
30462 _ACEOF
30465 cat >>confdefs.h <<_ACEOF
30466 #define HAVE_STRTOD_VERSION
30467 _ACEOF
30474 if test "x${PBX_FLOOR}" != "x1" -a "${USE_FLOOR}" != "no"; then
30475 pbxlibdir=""
30476 # if --with-FLOOR=DIR has been specified, use it.
30477 if test "x${FLOOR_DIR}" != "x"; then
30478 if test -d ${FLOOR_DIR}/lib; then
30479 pbxlibdir="-L${FLOOR_DIR}/lib"
30480 else
30481 pbxlibdir="-L${FLOOR_DIR}"
30484 pbxfuncname="floor"
30485 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30486 AST_FLOOR_FOUND=yes
30487 else
30488 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30489 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30490 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30491 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30492 echo $ECHO_N "(cached) $ECHO_C" >&6
30493 else
30494 ac_check_lib_save_LIBS=$LIBS
30495 LIBS="-lm ${pbxlibdir} $LIBS"
30496 cat >conftest.$ac_ext <<_ACEOF
30497 /* confdefs.h. */
30498 _ACEOF
30499 cat confdefs.h >>conftest.$ac_ext
30500 cat >>conftest.$ac_ext <<_ACEOF
30501 /* end confdefs.h. */
30503 /* Override any GCC internal prototype to avoid an error.
30504 Use char because int might match the return type of a GCC
30505 builtin and then its argument prototype would still apply. */
30506 #ifdef __cplusplus
30507 extern "C"
30508 #endif
30509 char ${pbxfuncname} ();
30511 main ()
30513 return ${pbxfuncname} ();
30515 return 0;
30517 _ACEOF
30518 rm -f conftest.$ac_objext conftest$ac_exeext
30519 if { (ac_try="$ac_link"
30520 case "(($ac_try" in
30521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30522 *) ac_try_echo=$ac_try;;
30523 esac
30524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30525 (eval "$ac_link") 2>conftest.er1
30526 ac_status=$?
30527 grep -v '^ *+' conftest.er1 >conftest.err
30528 rm -f conftest.er1
30529 cat conftest.err >&5
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); } && {
30532 test -z "$ac_c_werror_flag" ||
30533 test ! -s conftest.err
30534 } && test -s conftest$ac_exeext &&
30535 $as_test_x conftest$ac_exeext; then
30536 eval "$as_ac_Lib=yes"
30537 else
30538 echo "$as_me: failed program was:" >&5
30539 sed 's/^/| /' conftest.$ac_ext >&5
30541 eval "$as_ac_Lib=no"
30544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30545 conftest$ac_exeext conftest.$ac_ext
30546 LIBS=$ac_check_lib_save_LIBS
30548 ac_res=`eval echo '${'$as_ac_Lib'}'`
30549 { echo "$as_me:$LINENO: result: $ac_res" >&5
30550 echo "${ECHO_T}$ac_res" >&6; }
30551 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30552 AST_FLOOR_FOUND=yes
30553 else
30554 AST_FLOOR_FOUND=no
30559 # now check for the header.
30560 if test "${AST_FLOOR_FOUND}" = "yes"; then
30561 FLOOR_LIB="${pbxlibdir} -lm "
30562 # if --with-FLOOR=DIR has been specified, use it.
30563 if test "x${FLOOR_DIR}" != "x"; then
30564 FLOOR_INCLUDE="-I${FLOOR_DIR}/include"
30566 FLOOR_INCLUDE="${FLOOR_INCLUDE} "
30567 if test "x" = "x" ; then # no header, assume found
30568 FLOOR_HEADER_FOUND="1"
30569 else # check for the header
30570 saved_cppflags="${CPPFLAGS}"
30571 CPPFLAGS="${CPPFLAGS} ${FLOOR_INCLUDE} "
30572 if test "${ac_cv_header_+set}" = set; then
30573 { echo "$as_me:$LINENO: checking for " >&5
30574 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30575 if test "${ac_cv_header_+set}" = set; then
30576 echo $ECHO_N "(cached) $ECHO_C" >&6
30578 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30579 echo "${ECHO_T}$ac_cv_header_" >&6; }
30580 else
30581 # Is the header compilable?
30582 { echo "$as_me:$LINENO: checking usability" >&5
30583 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30584 cat >conftest.$ac_ext <<_ACEOF
30585 /* confdefs.h. */
30586 _ACEOF
30587 cat confdefs.h >>conftest.$ac_ext
30588 cat >>conftest.$ac_ext <<_ACEOF
30589 /* end confdefs.h. */
30590 $ac_includes_default
30591 #include <>
30592 _ACEOF
30593 rm -f conftest.$ac_objext
30594 if { (ac_try="$ac_compile"
30595 case "(($ac_try" in
30596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30597 *) ac_try_echo=$ac_try;;
30598 esac
30599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30600 (eval "$ac_compile") 2>conftest.er1
30601 ac_status=$?
30602 grep -v '^ *+' conftest.er1 >conftest.err
30603 rm -f conftest.er1
30604 cat conftest.err >&5
30605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); } && {
30607 test -z "$ac_c_werror_flag" ||
30608 test ! -s conftest.err
30609 } && test -s conftest.$ac_objext; then
30610 ac_header_compiler=yes
30611 else
30612 echo "$as_me: failed program was:" >&5
30613 sed 's/^/| /' conftest.$ac_ext >&5
30615 ac_header_compiler=no
30618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30620 echo "${ECHO_T}$ac_header_compiler" >&6; }
30622 # Is the header present?
30623 { echo "$as_me:$LINENO: checking presence" >&5
30624 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30625 cat >conftest.$ac_ext <<_ACEOF
30626 /* confdefs.h. */
30627 _ACEOF
30628 cat confdefs.h >>conftest.$ac_ext
30629 cat >>conftest.$ac_ext <<_ACEOF
30630 /* end confdefs.h. */
30631 #include <>
30632 _ACEOF
30633 if { (ac_try="$ac_cpp conftest.$ac_ext"
30634 case "(($ac_try" in
30635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30636 *) ac_try_echo=$ac_try;;
30637 esac
30638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30640 ac_status=$?
30641 grep -v '^ *+' conftest.er1 >conftest.err
30642 rm -f conftest.er1
30643 cat conftest.err >&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); } >/dev/null && {
30646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30647 test ! -s conftest.err
30648 }; then
30649 ac_header_preproc=yes
30650 else
30651 echo "$as_me: failed program was:" >&5
30652 sed 's/^/| /' conftest.$ac_ext >&5
30654 ac_header_preproc=no
30657 rm -f conftest.err conftest.$ac_ext
30658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30659 echo "${ECHO_T}$ac_header_preproc" >&6; }
30661 # So? What about this header?
30662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30663 yes:no: )
30664 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30665 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30666 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30667 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30668 ac_header_preproc=yes
30670 no:yes:* )
30671 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30672 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30673 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30674 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30675 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30676 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30677 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30678 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30679 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30680 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30681 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30682 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30683 ( cat <<\_ASBOX
30684 ## ------------------------------- ##
30685 ## Report this to www.asterisk.org ##
30686 ## ------------------------------- ##
30687 _ASBOX
30688 ) | sed "s/^/$as_me: WARNING: /" >&2
30690 esac
30691 { echo "$as_me:$LINENO: checking for " >&5
30692 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30693 if test "${ac_cv_header_+set}" = set; then
30694 echo $ECHO_N "(cached) $ECHO_C" >&6
30695 else
30696 ac_cv_header_=$ac_header_preproc
30698 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30699 echo "${ECHO_T}$ac_cv_header_" >&6; }
30702 if test $ac_cv_header_ = yes; then
30703 FLOOR_HEADER_FOUND=1
30704 else
30705 FLOOR_HEADER_FOUND=0
30709 CPPFLAGS="${saved_cppflags}"
30711 if test "x${FLOOR_HEADER_FOUND}" = "x0" ; then
30712 FLOOR_LIB=""
30713 FLOOR_INCLUDE=""
30714 else
30715 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30716 FLOOR_LIB=""
30718 PBX_FLOOR=1
30719 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30721 cat >>confdefs.h <<_ACEOF
30722 #define HAVE_FLOOR 1
30723 _ACEOF
30726 cat >>confdefs.h <<_ACEOF
30727 #define HAVE_FLOOR_VERSION
30728 _ACEOF
30735 if test "x${PBX_CEIL}" != "x1" -a "${USE_CEIL}" != "no"; then
30736 pbxlibdir=""
30737 # if --with-CEIL=DIR has been specified, use it.
30738 if test "x${CEIL_DIR}" != "x"; then
30739 if test -d ${CEIL_DIR}/lib; then
30740 pbxlibdir="-L${CEIL_DIR}/lib"
30741 else
30742 pbxlibdir="-L${CEIL_DIR}"
30745 pbxfuncname="ceil"
30746 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30747 AST_CEIL_FOUND=yes
30748 else
30749 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30750 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30751 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30752 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30753 echo $ECHO_N "(cached) $ECHO_C" >&6
30754 else
30755 ac_check_lib_save_LIBS=$LIBS
30756 LIBS="-lm ${pbxlibdir} $LIBS"
30757 cat >conftest.$ac_ext <<_ACEOF
30758 /* confdefs.h. */
30759 _ACEOF
30760 cat confdefs.h >>conftest.$ac_ext
30761 cat >>conftest.$ac_ext <<_ACEOF
30762 /* end confdefs.h. */
30764 /* Override any GCC internal prototype to avoid an error.
30765 Use char because int might match the return type of a GCC
30766 builtin and then its argument prototype would still apply. */
30767 #ifdef __cplusplus
30768 extern "C"
30769 #endif
30770 char ${pbxfuncname} ();
30772 main ()
30774 return ${pbxfuncname} ();
30776 return 0;
30778 _ACEOF
30779 rm -f conftest.$ac_objext conftest$ac_exeext
30780 if { (ac_try="$ac_link"
30781 case "(($ac_try" in
30782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30783 *) ac_try_echo=$ac_try;;
30784 esac
30785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30786 (eval "$ac_link") 2>conftest.er1
30787 ac_status=$?
30788 grep -v '^ *+' conftest.er1 >conftest.err
30789 rm -f conftest.er1
30790 cat conftest.err >&5
30791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792 (exit $ac_status); } && {
30793 test -z "$ac_c_werror_flag" ||
30794 test ! -s conftest.err
30795 } && test -s conftest$ac_exeext &&
30796 $as_test_x conftest$ac_exeext; then
30797 eval "$as_ac_Lib=yes"
30798 else
30799 echo "$as_me: failed program was:" >&5
30800 sed 's/^/| /' conftest.$ac_ext >&5
30802 eval "$as_ac_Lib=no"
30805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30806 conftest$ac_exeext conftest.$ac_ext
30807 LIBS=$ac_check_lib_save_LIBS
30809 ac_res=`eval echo '${'$as_ac_Lib'}'`
30810 { echo "$as_me:$LINENO: result: $ac_res" >&5
30811 echo "${ECHO_T}$ac_res" >&6; }
30812 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30813 AST_CEIL_FOUND=yes
30814 else
30815 AST_CEIL_FOUND=no
30820 # now check for the header.
30821 if test "${AST_CEIL_FOUND}" = "yes"; then
30822 CEIL_LIB="${pbxlibdir} -lm "
30823 # if --with-CEIL=DIR has been specified, use it.
30824 if test "x${CEIL_DIR}" != "x"; then
30825 CEIL_INCLUDE="-I${CEIL_DIR}/include"
30827 CEIL_INCLUDE="${CEIL_INCLUDE} "
30828 if test "x" = "x" ; then # no header, assume found
30829 CEIL_HEADER_FOUND="1"
30830 else # check for the header
30831 saved_cppflags="${CPPFLAGS}"
30832 CPPFLAGS="${CPPFLAGS} ${CEIL_INCLUDE} "
30833 if test "${ac_cv_header_+set}" = set; then
30834 { echo "$as_me:$LINENO: checking for " >&5
30835 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30836 if test "${ac_cv_header_+set}" = set; then
30837 echo $ECHO_N "(cached) $ECHO_C" >&6
30839 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30840 echo "${ECHO_T}$ac_cv_header_" >&6; }
30841 else
30842 # Is the header compilable?
30843 { echo "$as_me:$LINENO: checking usability" >&5
30844 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30845 cat >conftest.$ac_ext <<_ACEOF
30846 /* confdefs.h. */
30847 _ACEOF
30848 cat confdefs.h >>conftest.$ac_ext
30849 cat >>conftest.$ac_ext <<_ACEOF
30850 /* end confdefs.h. */
30851 $ac_includes_default
30852 #include <>
30853 _ACEOF
30854 rm -f conftest.$ac_objext
30855 if { (ac_try="$ac_compile"
30856 case "(($ac_try" in
30857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30858 *) ac_try_echo=$ac_try;;
30859 esac
30860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30861 (eval "$ac_compile") 2>conftest.er1
30862 ac_status=$?
30863 grep -v '^ *+' conftest.er1 >conftest.err
30864 rm -f conftest.er1
30865 cat conftest.err >&5
30866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867 (exit $ac_status); } && {
30868 test -z "$ac_c_werror_flag" ||
30869 test ! -s conftest.err
30870 } && test -s conftest.$ac_objext; then
30871 ac_header_compiler=yes
30872 else
30873 echo "$as_me: failed program was:" >&5
30874 sed 's/^/| /' conftest.$ac_ext >&5
30876 ac_header_compiler=no
30879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30881 echo "${ECHO_T}$ac_header_compiler" >&6; }
30883 # Is the header present?
30884 { echo "$as_me:$LINENO: checking presence" >&5
30885 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30886 cat >conftest.$ac_ext <<_ACEOF
30887 /* confdefs.h. */
30888 _ACEOF
30889 cat confdefs.h >>conftest.$ac_ext
30890 cat >>conftest.$ac_ext <<_ACEOF
30891 /* end confdefs.h. */
30892 #include <>
30893 _ACEOF
30894 if { (ac_try="$ac_cpp conftest.$ac_ext"
30895 case "(($ac_try" in
30896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30897 *) ac_try_echo=$ac_try;;
30898 esac
30899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30901 ac_status=$?
30902 grep -v '^ *+' conftest.er1 >conftest.err
30903 rm -f conftest.er1
30904 cat conftest.err >&5
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); } >/dev/null && {
30907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30908 test ! -s conftest.err
30909 }; then
30910 ac_header_preproc=yes
30911 else
30912 echo "$as_me: failed program was:" >&5
30913 sed 's/^/| /' conftest.$ac_ext >&5
30915 ac_header_preproc=no
30918 rm -f conftest.err conftest.$ac_ext
30919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30920 echo "${ECHO_T}$ac_header_preproc" >&6; }
30922 # So? What about this header?
30923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30924 yes:no: )
30925 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30926 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30927 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30928 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30929 ac_header_preproc=yes
30931 no:yes:* )
30932 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30933 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30934 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30935 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30936 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30937 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30938 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30939 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30940 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30941 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30942 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30943 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30944 ( cat <<\_ASBOX
30945 ## ------------------------------- ##
30946 ## Report this to www.asterisk.org ##
30947 ## ------------------------------- ##
30948 _ASBOX
30949 ) | sed "s/^/$as_me: WARNING: /" >&2
30951 esac
30952 { echo "$as_me:$LINENO: checking for " >&5
30953 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30954 if test "${ac_cv_header_+set}" = set; then
30955 echo $ECHO_N "(cached) $ECHO_C" >&6
30956 else
30957 ac_cv_header_=$ac_header_preproc
30959 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30960 echo "${ECHO_T}$ac_cv_header_" >&6; }
30963 if test $ac_cv_header_ = yes; then
30964 CEIL_HEADER_FOUND=1
30965 else
30966 CEIL_HEADER_FOUND=0
30970 CPPFLAGS="${saved_cppflags}"
30972 if test "x${CEIL_HEADER_FOUND}" = "x0" ; then
30973 CEIL_LIB=""
30974 CEIL_INCLUDE=""
30975 else
30976 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30977 CEIL_LIB=""
30979 PBX_CEIL=1
30980 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30982 cat >>confdefs.h <<_ACEOF
30983 #define HAVE_CEIL 1
30984 _ACEOF
30987 cat >>confdefs.h <<_ACEOF
30988 #define HAVE_CEIL_VERSION
30989 _ACEOF
30997 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
30998 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
30999 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
31000 saved_cppflags="${CPPFLAGS}"
31001 if test "x${GETIFADDRS_DIR}" != "x"; then
31002 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
31004 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
31006 cat >conftest.$ac_ext <<_ACEOF
31007 /* confdefs.h. */
31008 _ACEOF
31009 cat confdefs.h >>conftest.$ac_ext
31010 cat >>conftest.$ac_ext <<_ACEOF
31011 /* end confdefs.h. */
31012 #include <ifaddrs.h>
31014 main ()
31016 struct ifaddrs *p; getifaddrs(&p);
31019 return 0;
31021 _ACEOF
31022 rm -f conftest.$ac_objext
31023 if { (ac_try="$ac_compile"
31024 case "(($ac_try" in
31025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31026 *) ac_try_echo=$ac_try;;
31027 esac
31028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31029 (eval "$ac_compile") 2>conftest.er1
31030 ac_status=$?
31031 grep -v '^ *+' conftest.er1 >conftest.err
31032 rm -f conftest.er1
31033 cat conftest.err >&5
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); } && {
31036 test -z "$ac_c_werror_flag" ||
31037 test ! -s conftest.err
31038 } && test -s conftest.$ac_objext; then
31039 { echo "$as_me:$LINENO: result: yes" >&5
31040 echo "${ECHO_T}yes" >&6; }
31041 PBX_GETIFADDRS=1
31043 cat >>confdefs.h <<\_ACEOF
31044 #define HAVE_GETIFADDRS 1
31045 _ACEOF
31048 cat >>confdefs.h <<\_ACEOF
31049 #define HAVE_GETIFADDRS_VERSION
31050 _ACEOF
31053 else
31054 echo "$as_me: failed program was:" >&5
31055 sed 's/^/| /' conftest.$ac_ext >&5
31057 { echo "$as_me:$LINENO: result: no" >&5
31058 echo "${ECHO_T}no" >&6; }
31062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31063 CPPFLAGS="${saved_cppflags}"
31067 GSM_INTERNAL="yes"
31069 GSM_SYSTEM="yes"
31070 if test "${USE_GSM}" != "no"; then
31071 if test "${GSM_DIR}" = "internal"; then
31072 GSM_SYSTEM="no"
31073 elif test "${GSM_DIR}" != ""; then
31074 GSM_INTERNAL="no"
31076 if test "${GSM_SYSTEM}" = "yes"; then
31077 gsmlibdir=""
31078 if test "x${GSM_DIR}" != "x"; then
31079 if test -d ${GSM_DIR}/lib; then
31080 gsmlibdir="-L${GSM_DIR}/lib"
31081 else
31082 gsmlibdir="-L${GSM_DIR}"
31085 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
31086 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
31087 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
31088 echo $ECHO_N "(cached) $ECHO_C" >&6
31089 else
31090 ac_check_lib_save_LIBS=$LIBS
31091 LIBS="-lgsm ${gsmlibdir} $LIBS"
31092 cat >conftest.$ac_ext <<_ACEOF
31093 /* confdefs.h. */
31094 _ACEOF
31095 cat confdefs.h >>conftest.$ac_ext
31096 cat >>conftest.$ac_ext <<_ACEOF
31097 /* end confdefs.h. */
31099 /* Override any GCC internal prototype to avoid an error.
31100 Use char because int might match the return type of a GCC
31101 builtin and then its argument prototype would still apply. */
31102 #ifdef __cplusplus
31103 extern "C"
31104 #endif
31105 char gsm_create ();
31107 main ()
31109 return gsm_create ();
31111 return 0;
31113 _ACEOF
31114 rm -f conftest.$ac_objext conftest$ac_exeext
31115 if { (ac_try="$ac_link"
31116 case "(($ac_try" in
31117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118 *) ac_try_echo=$ac_try;;
31119 esac
31120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121 (eval "$ac_link") 2>conftest.er1
31122 ac_status=$?
31123 grep -v '^ *+' conftest.er1 >conftest.err
31124 rm -f conftest.er1
31125 cat conftest.err >&5
31126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127 (exit $ac_status); } && {
31128 test -z "$ac_c_werror_flag" ||
31129 test ! -s conftest.err
31130 } && test -s conftest$ac_exeext &&
31131 $as_test_x conftest$ac_exeext; then
31132 ac_cv_lib_gsm_gsm_create=yes
31133 else
31134 echo "$as_me: failed program was:" >&5
31135 sed 's/^/| /' conftest.$ac_ext >&5
31137 ac_cv_lib_gsm_gsm_create=no
31140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31141 conftest$ac_exeext conftest.$ac_ext
31142 LIBS=$ac_check_lib_save_LIBS
31144 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
31145 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
31146 if test $ac_cv_lib_gsm_gsm_create = yes; then
31148 cat >>confdefs.h <<_ACEOF
31149 #define HAVE_GSM 1
31150 _ACEOF
31154 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
31155 if test "x${GSM_DIR}" != "x" ; then
31156 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
31157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31158 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31159 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31161 echo $ECHO_N "(cached) $ECHO_C" >&6
31163 ac_res=`eval echo '${'$as_ac_Header'}'`
31164 { echo "$as_me:$LINENO: result: $ac_res" >&5
31165 echo "${ECHO_T}$ac_res" >&6; }
31166 else
31167 # Is the header compilable?
31168 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
31169 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
31170 cat >conftest.$ac_ext <<_ACEOF
31171 /* confdefs.h. */
31172 _ACEOF
31173 cat confdefs.h >>conftest.$ac_ext
31174 cat >>conftest.$ac_ext <<_ACEOF
31175 /* end confdefs.h. */
31176 $ac_includes_default
31177 #include <${GSM_DIR}/include/gsm.h>
31178 _ACEOF
31179 rm -f conftest.$ac_objext
31180 if { (ac_try="$ac_compile"
31181 case "(($ac_try" in
31182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31183 *) ac_try_echo=$ac_try;;
31184 esac
31185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31186 (eval "$ac_compile") 2>conftest.er1
31187 ac_status=$?
31188 grep -v '^ *+' conftest.er1 >conftest.err
31189 rm -f conftest.er1
31190 cat conftest.err >&5
31191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31192 (exit $ac_status); } && {
31193 test -z "$ac_c_werror_flag" ||
31194 test ! -s conftest.err
31195 } && test -s conftest.$ac_objext; then
31196 ac_header_compiler=yes
31197 else
31198 echo "$as_me: failed program was:" >&5
31199 sed 's/^/| /' conftest.$ac_ext >&5
31201 ac_header_compiler=no
31204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31206 echo "${ECHO_T}$ac_header_compiler" >&6; }
31208 # Is the header present?
31209 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
31210 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
31211 cat >conftest.$ac_ext <<_ACEOF
31212 /* confdefs.h. */
31213 _ACEOF
31214 cat confdefs.h >>conftest.$ac_ext
31215 cat >>conftest.$ac_ext <<_ACEOF
31216 /* end confdefs.h. */
31217 #include <${GSM_DIR}/include/gsm.h>
31218 _ACEOF
31219 if { (ac_try="$ac_cpp conftest.$ac_ext"
31220 case "(($ac_try" in
31221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31222 *) ac_try_echo=$ac_try;;
31223 esac
31224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31226 ac_status=$?
31227 grep -v '^ *+' conftest.er1 >conftest.err
31228 rm -f conftest.er1
31229 cat conftest.err >&5
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); } >/dev/null && {
31232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31233 test ! -s conftest.err
31234 }; then
31235 ac_header_preproc=yes
31236 else
31237 echo "$as_me: failed program was:" >&5
31238 sed 's/^/| /' conftest.$ac_ext >&5
31240 ac_header_preproc=no
31243 rm -f conftest.err conftest.$ac_ext
31244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31245 echo "${ECHO_T}$ac_header_preproc" >&6; }
31247 # So? What about this header?
31248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31249 yes:no: )
31250 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31251 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31252 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
31253 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
31254 ac_header_preproc=yes
31256 no:yes:* )
31257 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
31258 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
31259 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
31260 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
31261 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
31262 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
31263 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31264 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31265 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
31266 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
31267 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
31268 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
31269 ( cat <<\_ASBOX
31270 ## ------------------------------- ##
31271 ## Report this to www.asterisk.org ##
31272 ## ------------------------------- ##
31273 _ASBOX
31274 ) | sed "s/^/$as_me: WARNING: /" >&2
31276 esac
31277 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31278 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31280 echo $ECHO_N "(cached) $ECHO_C" >&6
31281 else
31282 eval "$as_ac_Header=\$ac_header_preproc"
31284 ac_res=`eval echo '${'$as_ac_Header'}'`
31285 { echo "$as_me:$LINENO: result: $ac_res" >&5
31286 echo "${ECHO_T}$ac_res" >&6; }
31289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31290 GSM_HEADER_FOUND=1
31291 else
31292 GSM_HEADER_FOUND=0
31296 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
31297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31298 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31299 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31301 echo $ECHO_N "(cached) $ECHO_C" >&6
31303 ac_res=`eval echo '${'$as_ac_Header'}'`
31304 { echo "$as_me:$LINENO: result: $ac_res" >&5
31305 echo "${ECHO_T}$ac_res" >&6; }
31306 else
31307 # Is the header compilable?
31308 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
31309 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
31310 cat >conftest.$ac_ext <<_ACEOF
31311 /* confdefs.h. */
31312 _ACEOF
31313 cat confdefs.h >>conftest.$ac_ext
31314 cat >>conftest.$ac_ext <<_ACEOF
31315 /* end confdefs.h. */
31316 $ac_includes_default
31317 #include <${GSM_DIR}/include/gsm/gsm.h>
31318 _ACEOF
31319 rm -f conftest.$ac_objext
31320 if { (ac_try="$ac_compile"
31321 case "(($ac_try" in
31322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31323 *) ac_try_echo=$ac_try;;
31324 esac
31325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31326 (eval "$ac_compile") 2>conftest.er1
31327 ac_status=$?
31328 grep -v '^ *+' conftest.er1 >conftest.err
31329 rm -f conftest.er1
31330 cat conftest.err >&5
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); } && {
31333 test -z "$ac_c_werror_flag" ||
31334 test ! -s conftest.err
31335 } && test -s conftest.$ac_objext; then
31336 ac_header_compiler=yes
31337 else
31338 echo "$as_me: failed program was:" >&5
31339 sed 's/^/| /' conftest.$ac_ext >&5
31341 ac_header_compiler=no
31344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31346 echo "${ECHO_T}$ac_header_compiler" >&6; }
31348 # Is the header present?
31349 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
31350 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
31351 cat >conftest.$ac_ext <<_ACEOF
31352 /* confdefs.h. */
31353 _ACEOF
31354 cat confdefs.h >>conftest.$ac_ext
31355 cat >>conftest.$ac_ext <<_ACEOF
31356 /* end confdefs.h. */
31357 #include <${GSM_DIR}/include/gsm/gsm.h>
31358 _ACEOF
31359 if { (ac_try="$ac_cpp conftest.$ac_ext"
31360 case "(($ac_try" in
31361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31362 *) ac_try_echo=$ac_try;;
31363 esac
31364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31366 ac_status=$?
31367 grep -v '^ *+' conftest.er1 >conftest.err
31368 rm -f conftest.er1
31369 cat conftest.err >&5
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371 (exit $ac_status); } >/dev/null && {
31372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31373 test ! -s conftest.err
31374 }; then
31375 ac_header_preproc=yes
31376 else
31377 echo "$as_me: failed program was:" >&5
31378 sed 's/^/| /' conftest.$ac_ext >&5
31380 ac_header_preproc=no
31383 rm -f conftest.err conftest.$ac_ext
31384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31385 echo "${ECHO_T}$ac_header_preproc" >&6; }
31387 # So? What about this header?
31388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31389 yes:no: )
31390 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31391 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31392 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
31393 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
31394 ac_header_preproc=yes
31396 no:yes:* )
31397 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
31398 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
31399 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
31400 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31401 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
31402 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
31403 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31404 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31405 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
31406 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31407 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
31408 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31409 ( cat <<\_ASBOX
31410 ## ------------------------------- ##
31411 ## Report this to www.asterisk.org ##
31412 ## ------------------------------- ##
31413 _ASBOX
31414 ) | sed "s/^/$as_me: WARNING: /" >&2
31416 esac
31417 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31418 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31420 echo $ECHO_N "(cached) $ECHO_C" >&6
31421 else
31422 eval "$as_ac_Header=\$ac_header_preproc"
31424 ac_res=`eval echo '${'$as_ac_Header'}'`
31425 { echo "$as_me:$LINENO: result: $ac_res" >&5
31426 echo "${ECHO_T}$ac_res" >&6; }
31429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31430 GSM_GSM_HEADER_FOUND=1
31431 else
31432 GSM_GSM_HEADER_FOUND=0
31436 else
31437 if test "${ac_cv_header_gsm_h+set}" = set; then
31438 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31439 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31440 if test "${ac_cv_header_gsm_h+set}" = set; then
31441 echo $ECHO_N "(cached) $ECHO_C" >&6
31443 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31444 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31445 else
31446 # Is the header compilable?
31447 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
31448 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
31449 cat >conftest.$ac_ext <<_ACEOF
31450 /* confdefs.h. */
31451 _ACEOF
31452 cat confdefs.h >>conftest.$ac_ext
31453 cat >>conftest.$ac_ext <<_ACEOF
31454 /* end confdefs.h. */
31455 $ac_includes_default
31456 #include <gsm.h>
31457 _ACEOF
31458 rm -f conftest.$ac_objext
31459 if { (ac_try="$ac_compile"
31460 case "(($ac_try" in
31461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31462 *) ac_try_echo=$ac_try;;
31463 esac
31464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31465 (eval "$ac_compile") 2>conftest.er1
31466 ac_status=$?
31467 grep -v '^ *+' conftest.er1 >conftest.err
31468 rm -f conftest.er1
31469 cat conftest.err >&5
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); } && {
31472 test -z "$ac_c_werror_flag" ||
31473 test ! -s conftest.err
31474 } && test -s conftest.$ac_objext; then
31475 ac_header_compiler=yes
31476 else
31477 echo "$as_me: failed program was:" >&5
31478 sed 's/^/| /' conftest.$ac_ext >&5
31480 ac_header_compiler=no
31483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31485 echo "${ECHO_T}$ac_header_compiler" >&6; }
31487 # Is the header present?
31488 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
31489 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
31490 cat >conftest.$ac_ext <<_ACEOF
31491 /* confdefs.h. */
31492 _ACEOF
31493 cat confdefs.h >>conftest.$ac_ext
31494 cat >>conftest.$ac_ext <<_ACEOF
31495 /* end confdefs.h. */
31496 #include <gsm.h>
31497 _ACEOF
31498 if { (ac_try="$ac_cpp conftest.$ac_ext"
31499 case "(($ac_try" in
31500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31501 *) ac_try_echo=$ac_try;;
31502 esac
31503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31505 ac_status=$?
31506 grep -v '^ *+' conftest.er1 >conftest.err
31507 rm -f conftest.er1
31508 cat conftest.err >&5
31509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31510 (exit $ac_status); } >/dev/null && {
31511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31512 test ! -s conftest.err
31513 }; then
31514 ac_header_preproc=yes
31515 else
31516 echo "$as_me: failed program was:" >&5
31517 sed 's/^/| /' conftest.$ac_ext >&5
31519 ac_header_preproc=no
31522 rm -f conftest.err conftest.$ac_ext
31523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31524 echo "${ECHO_T}$ac_header_preproc" >&6; }
31526 # So? What about this header?
31527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31528 yes:no: )
31529 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31530 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31531 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
31532 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
31533 ac_header_preproc=yes
31535 no:yes:* )
31536 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
31537 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
31538 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
31539 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
31540 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
31541 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
31542 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31543 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31544 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
31545 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
31546 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
31547 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
31548 ( cat <<\_ASBOX
31549 ## ------------------------------- ##
31550 ## Report this to www.asterisk.org ##
31551 ## ------------------------------- ##
31552 _ASBOX
31553 ) | sed "s/^/$as_me: WARNING: /" >&2
31555 esac
31556 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31557 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31558 if test "${ac_cv_header_gsm_h+set}" = set; then
31559 echo $ECHO_N "(cached) $ECHO_C" >&6
31560 else
31561 ac_cv_header_gsm_h=$ac_header_preproc
31563 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31564 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31567 if test $ac_cv_header_gsm_h = yes; then
31568 GSM_HEADER_FOUND=1
31569 else
31570 GSM_HEADER_FOUND=0
31574 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31575 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31576 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31577 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31578 echo $ECHO_N "(cached) $ECHO_C" >&6
31580 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31581 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31582 else
31583 # Is the header compilable?
31584 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
31585 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
31586 cat >conftest.$ac_ext <<_ACEOF
31587 /* confdefs.h. */
31588 _ACEOF
31589 cat confdefs.h >>conftest.$ac_ext
31590 cat >>conftest.$ac_ext <<_ACEOF
31591 /* end confdefs.h. */
31592 $ac_includes_default
31593 #include <gsm/gsm.h>
31594 _ACEOF
31595 rm -f conftest.$ac_objext
31596 if { (ac_try="$ac_compile"
31597 case "(($ac_try" in
31598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31599 *) ac_try_echo=$ac_try;;
31600 esac
31601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31602 (eval "$ac_compile") 2>conftest.er1
31603 ac_status=$?
31604 grep -v '^ *+' conftest.er1 >conftest.err
31605 rm -f conftest.er1
31606 cat conftest.err >&5
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); } && {
31609 test -z "$ac_c_werror_flag" ||
31610 test ! -s conftest.err
31611 } && test -s conftest.$ac_objext; then
31612 ac_header_compiler=yes
31613 else
31614 echo "$as_me: failed program was:" >&5
31615 sed 's/^/| /' conftest.$ac_ext >&5
31617 ac_header_compiler=no
31620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31622 echo "${ECHO_T}$ac_header_compiler" >&6; }
31624 # Is the header present?
31625 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
31626 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
31627 cat >conftest.$ac_ext <<_ACEOF
31628 /* confdefs.h. */
31629 _ACEOF
31630 cat confdefs.h >>conftest.$ac_ext
31631 cat >>conftest.$ac_ext <<_ACEOF
31632 /* end confdefs.h. */
31633 #include <gsm/gsm.h>
31634 _ACEOF
31635 if { (ac_try="$ac_cpp conftest.$ac_ext"
31636 case "(($ac_try" in
31637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638 *) ac_try_echo=$ac_try;;
31639 esac
31640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31642 ac_status=$?
31643 grep -v '^ *+' conftest.er1 >conftest.err
31644 rm -f conftest.er1
31645 cat conftest.err >&5
31646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647 (exit $ac_status); } >/dev/null && {
31648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31649 test ! -s conftest.err
31650 }; then
31651 ac_header_preproc=yes
31652 else
31653 echo "$as_me: failed program was:" >&5
31654 sed 's/^/| /' conftest.$ac_ext >&5
31656 ac_header_preproc=no
31659 rm -f conftest.err conftest.$ac_ext
31660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31661 echo "${ECHO_T}$ac_header_preproc" >&6; }
31663 # So? What about this header?
31664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31665 yes:no: )
31666 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31667 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31668 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
31669 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
31670 ac_header_preproc=yes
31672 no:yes:* )
31673 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
31674 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
31675 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
31676 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31677 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
31678 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
31679 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31680 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31681 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
31682 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31683 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
31684 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31685 ( cat <<\_ASBOX
31686 ## ------------------------------- ##
31687 ## Report this to www.asterisk.org ##
31688 ## ------------------------------- ##
31689 _ASBOX
31690 ) | sed "s/^/$as_me: WARNING: /" >&2
31692 esac
31693 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31694 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31695 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31696 echo $ECHO_N "(cached) $ECHO_C" >&6
31697 else
31698 ac_cv_header_gsm_gsm_h=$ac_header_preproc
31700 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31701 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31704 if test $ac_cv_header_gsm_gsm_h = yes; then
31705 GSM_GSM_HEADER_FOUND=1
31706 else
31707 GSM_GSM_HEADER_FOUND=0
31712 if test "${GSM_HEADER_FOUND}" = "0" ; then
31713 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
31714 if test "x${GSM_MANDATORY}" = "xyes" ; then
31715 { echo "$as_me:$LINENO: ***" >&5
31716 echo "$as_me: ***" >&6;}
31717 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
31718 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
31719 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
31720 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
31721 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
31722 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
31723 exit 1
31727 GSM_OK=0
31728 if test "${GSM_HEADER_FOUND}" = "1" ; then
31730 cat >>confdefs.h <<_ACEOF
31731 #define HAVE_GSM_HEADER 1
31732 _ACEOF
31734 GSM_OK=1
31735 else
31736 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
31738 cat >>confdefs.h <<_ACEOF
31739 #define HAVE_GSM_GSM_HEADER 1
31740 _ACEOF
31742 GSM_OK=1
31745 if test "${GSM_OK}" = "1" ; then
31746 GSM_LIB="-lgsm"
31747 if test "x${GSM_DIR}" != "x"; then
31748 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
31749 GSM_INCLUDE="-I${GSM_DIR}/include"
31751 PBX_GSM=1
31752 GSM_INTERNAL="no"
31756 if test "${GSM_INTERNAL}" = "yes"; then
31757 PBX_GSM=1
31759 cat >>confdefs.h <<_ACEOF
31760 #define HAVE_GSM_HEADER 1
31761 _ACEOF
31766 if test "${host_os}" != "linux-gnu" ; then
31768 if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
31769 pbxlibdir=""
31770 # if --with-ICONV=DIR has been specified, use it.
31771 if test "x${ICONV_DIR}" != "x"; then
31772 if test -d ${ICONV_DIR}/lib; then
31773 pbxlibdir="-L${ICONV_DIR}/lib"
31774 else
31775 pbxlibdir="-L${ICONV_DIR}"
31778 pbxfuncname="iconv_open"
31779 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
31780 AST_ICONV_FOUND=yes
31781 else
31782 as_ac_Lib=`echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
31783 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liconv" >&5
31784 echo $ECHO_N "checking for ${pbxfuncname} in -liconv... $ECHO_C" >&6; }
31785 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31786 echo $ECHO_N "(cached) $ECHO_C" >&6
31787 else
31788 ac_check_lib_save_LIBS=$LIBS
31789 LIBS="-liconv ${pbxlibdir} $LIBS"
31790 cat >conftest.$ac_ext <<_ACEOF
31791 /* confdefs.h. */
31792 _ACEOF
31793 cat confdefs.h >>conftest.$ac_ext
31794 cat >>conftest.$ac_ext <<_ACEOF
31795 /* end confdefs.h. */
31797 /* Override any GCC internal prototype to avoid an error.
31798 Use char because int might match the return type of a GCC
31799 builtin and then its argument prototype would still apply. */
31800 #ifdef __cplusplus
31801 extern "C"
31802 #endif
31803 char ${pbxfuncname} ();
31805 main ()
31807 return ${pbxfuncname} ();
31809 return 0;
31811 _ACEOF
31812 rm -f conftest.$ac_objext conftest$ac_exeext
31813 if { (ac_try="$ac_link"
31814 case "(($ac_try" in
31815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816 *) ac_try_echo=$ac_try;;
31817 esac
31818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819 (eval "$ac_link") 2>conftest.er1
31820 ac_status=$?
31821 grep -v '^ *+' conftest.er1 >conftest.err
31822 rm -f conftest.er1
31823 cat conftest.err >&5
31824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825 (exit $ac_status); } && {
31826 test -z "$ac_c_werror_flag" ||
31827 test ! -s conftest.err
31828 } && test -s conftest$ac_exeext &&
31829 $as_test_x conftest$ac_exeext; then
31830 eval "$as_ac_Lib=yes"
31831 else
31832 echo "$as_me: failed program was:" >&5
31833 sed 's/^/| /' conftest.$ac_ext >&5
31835 eval "$as_ac_Lib=no"
31838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31839 conftest$ac_exeext conftest.$ac_ext
31840 LIBS=$ac_check_lib_save_LIBS
31842 ac_res=`eval echo '${'$as_ac_Lib'}'`
31843 { echo "$as_me:$LINENO: result: $ac_res" >&5
31844 echo "${ECHO_T}$ac_res" >&6; }
31845 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31846 AST_ICONV_FOUND=yes
31847 else
31848 AST_ICONV_FOUND=no
31853 # now check for the header.
31854 if test "${AST_ICONV_FOUND}" = "yes"; then
31855 ICONV_LIB="${pbxlibdir} -liconv "
31856 # if --with-ICONV=DIR has been specified, use it.
31857 if test "x${ICONV_DIR}" != "x"; then
31858 ICONV_INCLUDE="-I${ICONV_DIR}/include"
31860 ICONV_INCLUDE="${ICONV_INCLUDE} "
31861 if test "xiconv.h" = "x" ; then # no header, assume found
31862 ICONV_HEADER_FOUND="1"
31863 else # check for the header
31864 saved_cppflags="${CPPFLAGS}"
31865 CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE} "
31866 if test "${ac_cv_header_iconv_h+set}" = set; then
31867 { echo "$as_me:$LINENO: checking for iconv.h" >&5
31868 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
31869 if test "${ac_cv_header_iconv_h+set}" = set; then
31870 echo $ECHO_N "(cached) $ECHO_C" >&6
31872 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
31873 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
31874 else
31875 # Is the header compilable?
31876 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
31877 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
31878 cat >conftest.$ac_ext <<_ACEOF
31879 /* confdefs.h. */
31880 _ACEOF
31881 cat confdefs.h >>conftest.$ac_ext
31882 cat >>conftest.$ac_ext <<_ACEOF
31883 /* end confdefs.h. */
31884 $ac_includes_default
31885 #include <iconv.h>
31886 _ACEOF
31887 rm -f conftest.$ac_objext
31888 if { (ac_try="$ac_compile"
31889 case "(($ac_try" in
31890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31891 *) ac_try_echo=$ac_try;;
31892 esac
31893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31894 (eval "$ac_compile") 2>conftest.er1
31895 ac_status=$?
31896 grep -v '^ *+' conftest.er1 >conftest.err
31897 rm -f conftest.er1
31898 cat conftest.err >&5
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); } && {
31901 test -z "$ac_c_werror_flag" ||
31902 test ! -s conftest.err
31903 } && test -s conftest.$ac_objext; then
31904 ac_header_compiler=yes
31905 else
31906 echo "$as_me: failed program was:" >&5
31907 sed 's/^/| /' conftest.$ac_ext >&5
31909 ac_header_compiler=no
31912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31914 echo "${ECHO_T}$ac_header_compiler" >&6; }
31916 # Is the header present?
31917 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
31918 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
31919 cat >conftest.$ac_ext <<_ACEOF
31920 /* confdefs.h. */
31921 _ACEOF
31922 cat confdefs.h >>conftest.$ac_ext
31923 cat >>conftest.$ac_ext <<_ACEOF
31924 /* end confdefs.h. */
31925 #include <iconv.h>
31926 _ACEOF
31927 if { (ac_try="$ac_cpp conftest.$ac_ext"
31928 case "(($ac_try" in
31929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31930 *) ac_try_echo=$ac_try;;
31931 esac
31932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31934 ac_status=$?
31935 grep -v '^ *+' conftest.er1 >conftest.err
31936 rm -f conftest.er1
31937 cat conftest.err >&5
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); } >/dev/null && {
31940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31941 test ! -s conftest.err
31942 }; then
31943 ac_header_preproc=yes
31944 else
31945 echo "$as_me: failed program was:" >&5
31946 sed 's/^/| /' conftest.$ac_ext >&5
31948 ac_header_preproc=no
31951 rm -f conftest.err conftest.$ac_ext
31952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31953 echo "${ECHO_T}$ac_header_preproc" >&6; }
31955 # So? What about this header?
31956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31957 yes:no: )
31958 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
31959 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31960 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
31961 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
31962 ac_header_preproc=yes
31964 no:yes:* )
31965 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
31966 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
31967 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
31968 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
31969 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
31970 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
31971 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
31972 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
31973 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
31974 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
31975 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
31976 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
31977 ( cat <<\_ASBOX
31978 ## ------------------------------- ##
31979 ## Report this to www.asterisk.org ##
31980 ## ------------------------------- ##
31981 _ASBOX
31982 ) | sed "s/^/$as_me: WARNING: /" >&2
31984 esac
31985 { echo "$as_me:$LINENO: checking for iconv.h" >&5
31986 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
31987 if test "${ac_cv_header_iconv_h+set}" = set; then
31988 echo $ECHO_N "(cached) $ECHO_C" >&6
31989 else
31990 ac_cv_header_iconv_h=$ac_header_preproc
31992 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
31993 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
31996 if test $ac_cv_header_iconv_h = yes; then
31997 ICONV_HEADER_FOUND=1
31998 else
31999 ICONV_HEADER_FOUND=0
32003 CPPFLAGS="${saved_cppflags}"
32005 if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
32006 ICONV_LIB=""
32007 ICONV_INCLUDE=""
32008 else
32009 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32010 ICONV_LIB=""
32012 PBX_ICONV=1
32013 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32015 cat >>confdefs.h <<_ACEOF
32016 #define HAVE_ICONV 1
32017 _ACEOF
32020 cat >>confdefs.h <<_ACEOF
32021 #define HAVE_ICONV_VERSION
32022 _ACEOF
32028 else
32029 PBX_ICONV=1
32033 if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
32034 pbxlibdir=""
32035 # if --with-IKSEMEL=DIR has been specified, use it.
32036 if test "x${IKSEMEL_DIR}" != "x"; then
32037 if test -d ${IKSEMEL_DIR}/lib; then
32038 pbxlibdir="-L${IKSEMEL_DIR}/lib"
32039 else
32040 pbxlibdir="-L${IKSEMEL_DIR}"
32043 pbxfuncname="iks_start_sasl"
32044 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
32045 AST_IKSEMEL_FOUND=yes
32046 else
32047 as_ac_Lib=`echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
32048 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liksemel" >&5
32049 echo $ECHO_N "checking for ${pbxfuncname} in -liksemel... $ECHO_C" >&6; }
32050 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32051 echo $ECHO_N "(cached) $ECHO_C" >&6
32052 else
32053 ac_check_lib_save_LIBS=$LIBS
32054 LIBS="-liksemel ${pbxlibdir} $LIBS"
32055 cat >conftest.$ac_ext <<_ACEOF
32056 /* confdefs.h. */
32057 _ACEOF
32058 cat confdefs.h >>conftest.$ac_ext
32059 cat >>conftest.$ac_ext <<_ACEOF
32060 /* end confdefs.h. */
32062 /* Override any GCC internal prototype to avoid an error.
32063 Use char because int might match the return type of a GCC
32064 builtin and then its argument prototype would still apply. */
32065 #ifdef __cplusplus
32066 extern "C"
32067 #endif
32068 char ${pbxfuncname} ();
32070 main ()
32072 return ${pbxfuncname} ();
32074 return 0;
32076 _ACEOF
32077 rm -f conftest.$ac_objext conftest$ac_exeext
32078 if { (ac_try="$ac_link"
32079 case "(($ac_try" in
32080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32081 *) ac_try_echo=$ac_try;;
32082 esac
32083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32084 (eval "$ac_link") 2>conftest.er1
32085 ac_status=$?
32086 grep -v '^ *+' conftest.er1 >conftest.err
32087 rm -f conftest.er1
32088 cat conftest.err >&5
32089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); } && {
32091 test -z "$ac_c_werror_flag" ||
32092 test ! -s conftest.err
32093 } && test -s conftest$ac_exeext &&
32094 $as_test_x conftest$ac_exeext; then
32095 eval "$as_ac_Lib=yes"
32096 else
32097 echo "$as_me: failed program was:" >&5
32098 sed 's/^/| /' conftest.$ac_ext >&5
32100 eval "$as_ac_Lib=no"
32103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32104 conftest$ac_exeext conftest.$ac_ext
32105 LIBS=$ac_check_lib_save_LIBS
32107 ac_res=`eval echo '${'$as_ac_Lib'}'`
32108 { echo "$as_me:$LINENO: result: $ac_res" >&5
32109 echo "${ECHO_T}$ac_res" >&6; }
32110 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32111 AST_IKSEMEL_FOUND=yes
32112 else
32113 AST_IKSEMEL_FOUND=no
32118 # now check for the header.
32119 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
32120 IKSEMEL_LIB="${pbxlibdir} -liksemel "
32121 # if --with-IKSEMEL=DIR has been specified, use it.
32122 if test "x${IKSEMEL_DIR}" != "x"; then
32123 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
32125 IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
32126 if test "xiksemel.h" = "x" ; then # no header, assume found
32127 IKSEMEL_HEADER_FOUND="1"
32128 else # check for the header
32129 saved_cppflags="${CPPFLAGS}"
32130 CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE} "
32131 if test "${ac_cv_header_iksemel_h+set}" = set; then
32132 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32133 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32134 if test "${ac_cv_header_iksemel_h+set}" = set; then
32135 echo $ECHO_N "(cached) $ECHO_C" >&6
32137 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32138 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32139 else
32140 # Is the header compilable?
32141 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
32142 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
32143 cat >conftest.$ac_ext <<_ACEOF
32144 /* confdefs.h. */
32145 _ACEOF
32146 cat confdefs.h >>conftest.$ac_ext
32147 cat >>conftest.$ac_ext <<_ACEOF
32148 /* end confdefs.h. */
32149 $ac_includes_default
32150 #include <iksemel.h>
32151 _ACEOF
32152 rm -f conftest.$ac_objext
32153 if { (ac_try="$ac_compile"
32154 case "(($ac_try" in
32155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156 *) ac_try_echo=$ac_try;;
32157 esac
32158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159 (eval "$ac_compile") 2>conftest.er1
32160 ac_status=$?
32161 grep -v '^ *+' conftest.er1 >conftest.err
32162 rm -f conftest.er1
32163 cat conftest.err >&5
32164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165 (exit $ac_status); } && {
32166 test -z "$ac_c_werror_flag" ||
32167 test ! -s conftest.err
32168 } && test -s conftest.$ac_objext; then
32169 ac_header_compiler=yes
32170 else
32171 echo "$as_me: failed program was:" >&5
32172 sed 's/^/| /' conftest.$ac_ext >&5
32174 ac_header_compiler=no
32177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32179 echo "${ECHO_T}$ac_header_compiler" >&6; }
32181 # Is the header present?
32182 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
32183 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
32184 cat >conftest.$ac_ext <<_ACEOF
32185 /* confdefs.h. */
32186 _ACEOF
32187 cat confdefs.h >>conftest.$ac_ext
32188 cat >>conftest.$ac_ext <<_ACEOF
32189 /* end confdefs.h. */
32190 #include <iksemel.h>
32191 _ACEOF
32192 if { (ac_try="$ac_cpp conftest.$ac_ext"
32193 case "(($ac_try" in
32194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195 *) ac_try_echo=$ac_try;;
32196 esac
32197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32199 ac_status=$?
32200 grep -v '^ *+' conftest.er1 >conftest.err
32201 rm -f conftest.er1
32202 cat conftest.err >&5
32203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 (exit $ac_status); } >/dev/null && {
32205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32206 test ! -s conftest.err
32207 }; then
32208 ac_header_preproc=yes
32209 else
32210 echo "$as_me: failed program was:" >&5
32211 sed 's/^/| /' conftest.$ac_ext >&5
32213 ac_header_preproc=no
32216 rm -f conftest.err conftest.$ac_ext
32217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32218 echo "${ECHO_T}$ac_header_preproc" >&6; }
32220 # So? What about this header?
32221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32222 yes:no: )
32223 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
32224 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32225 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
32226 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
32227 ac_header_preproc=yes
32229 no:yes:* )
32230 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
32231 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
32232 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
32233 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
32234 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
32235 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
32236 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
32237 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
32238 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
32239 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
32240 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
32241 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
32242 ( cat <<\_ASBOX
32243 ## ------------------------------- ##
32244 ## Report this to www.asterisk.org ##
32245 ## ------------------------------- ##
32246 _ASBOX
32247 ) | sed "s/^/$as_me: WARNING: /" >&2
32249 esac
32250 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32251 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32252 if test "${ac_cv_header_iksemel_h+set}" = set; then
32253 echo $ECHO_N "(cached) $ECHO_C" >&6
32254 else
32255 ac_cv_header_iksemel_h=$ac_header_preproc
32257 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32258 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32261 if test $ac_cv_header_iksemel_h = yes; then
32262 IKSEMEL_HEADER_FOUND=1
32263 else
32264 IKSEMEL_HEADER_FOUND=0
32268 CPPFLAGS="${saved_cppflags}"
32270 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
32271 IKSEMEL_LIB=""
32272 IKSEMEL_INCLUDE=""
32273 else
32274 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32275 IKSEMEL_LIB=""
32277 PBX_IKSEMEL=1
32278 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32280 cat >>confdefs.h <<_ACEOF
32281 #define HAVE_IKSEMEL 1
32282 _ACEOF
32285 cat >>confdefs.h <<_ACEOF
32286 #define HAVE_IKSEMEL_VERSION
32287 _ACEOF
32294 if test "${USE_IMAP_TK}" != "no"; then
32295 saved_cppflags="${CPPFLAGS}"
32296 saved_libs="${LIBS}"
32297 switch_to_system_on_failure="no"
32298 if test "${IMAP_TK_DIR}" = ""; then
32299 IMAP_TK_DIR=`pwd`"/../imap-2004g"
32300 switch_to_system_on_failure="yes"
32302 if test "${IMAP_TK_DIR}" != "system"; then
32303 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
32304 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
32305 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
32306 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
32308 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
32309 imap_include="-I${IMAP_TK_DIR}/c-client"
32310 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32311 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32312 cat >conftest.$ac_ext <<_ACEOF
32313 /* confdefs.h. */
32314 _ACEOF
32315 cat confdefs.h >>conftest.$ac_ext
32316 cat >>conftest.$ac_ext <<_ACEOF
32317 /* end confdefs.h. */
32318 #include "c-client.h"
32319 void mm_searched (MAILSTREAM *stream,unsigned long number)
32322 void mm_exists (MAILSTREAM *stream,unsigned long number)
32325 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32328 void mm_flags (MAILSTREAM *stream,unsigned long number)
32331 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32334 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32337 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32340 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32343 void mm_log (char *string,long errflg)
32346 void mm_dlog (char *string)
32349 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32352 void mm_critical (MAILSTREAM *stream)
32355 void mm_nocritical (MAILSTREAM *stream)
32358 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32361 void mm_fatal (char *string)
32365 main ()
32368 MAILSTREAM *foo = mail_open(NULL, "", 0);
32372 return 0;
32374 _ACEOF
32375 rm -f conftest.$ac_objext conftest$ac_exeext
32376 if { (ac_try="$ac_link"
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_link") 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_exeext &&
32392 $as_test_x conftest$ac_exeext; then
32393 ac_cv_imap_tk="yes"
32394 else
32395 echo "$as_me: failed program was:" >&5
32396 sed 's/^/| /' conftest.$ac_ext >&5
32398 ac_cv_imap_tk="no"
32402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32403 conftest$ac_exeext conftest.$ac_ext
32404 if test "${ac_cv_imap_tk}" = "yes"; then
32405 cat >conftest.$ac_ext <<_ACEOF
32406 /* confdefs.h. */
32407 _ACEOF
32408 cat confdefs.h >>conftest.$ac_ext
32409 cat >>conftest.$ac_ext <<_ACEOF
32410 /* end confdefs.h. */
32411 #include "c-client.h"
32412 void mm_searched (MAILSTREAM *stream,unsigned long number)
32415 void mm_exists (MAILSTREAM *stream,unsigned long number)
32418 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32421 void mm_flags (MAILSTREAM *stream,unsigned long number)
32424 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32427 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32430 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32433 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32436 void mm_log (char *string,long errflg)
32439 void mm_dlog (char *string)
32442 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32445 void mm_critical (MAILSTREAM *stream)
32448 void mm_nocritical (MAILSTREAM *stream)
32451 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32454 void mm_fatal (char *string)
32458 main ()
32461 long check = mail_expunge_full(NULL, "", 0);
32465 return 0;
32467 _ACEOF
32468 rm -f conftest.$ac_objext conftest$ac_exeext
32469 if { (ac_try="$ac_link"
32470 case "(($ac_try" in
32471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32472 *) ac_try_echo=$ac_try;;
32473 esac
32474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32475 (eval "$ac_link") 2>conftest.er1
32476 ac_status=$?
32477 grep -v '^ *+' conftest.er1 >conftest.err
32478 rm -f conftest.er1
32479 cat conftest.err >&5
32480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481 (exit $ac_status); } && {
32482 test -z "$ac_c_werror_flag" ||
32483 test ! -s conftest.err
32484 } && test -s conftest$ac_exeext &&
32485 $as_test_x conftest$ac_exeext; then
32486 ac_cv_imap_tk2006="yes"
32487 else
32488 echo "$as_me: failed program was:" >&5
32489 sed 's/^/| /' conftest.$ac_ext >&5
32491 ac_cv_imap_tk2006="no"
32495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32496 conftest$ac_exeext conftest.$ac_ext
32498 CPPFLAGS="${saved_cppflags}"
32499 LIBS="${saved_libs}"
32500 if test "${ac_cv_imap_tk}" = "no"; then
32501 { echo "$as_me:$LINENO: result: no" >&5
32502 echo "${ECHO_T}no" >&6; }
32503 if test "${switch_to_system_on_failure}" = "yes"; then
32504 IMAP_TK_DIR="system"
32505 else #This means they specified a directory. Search for a package installation there too
32506 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32507 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32508 CPPFLAGS="${saved_cppflags}"
32509 LIBS="${saved_libs}"
32510 imap_include="-I${IMAP_TK_DIR}/include"
32511 imap_ldflags="-L${IMAP_TK_DIR}/lib"
32512 imap_libs="-lc-client"
32513 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32514 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
32515 cat >conftest.$ac_ext <<_ACEOF
32516 /* confdefs.h. */
32517 _ACEOF
32518 cat confdefs.h >>conftest.$ac_ext
32519 cat >>conftest.$ac_ext <<_ACEOF
32520 /* end confdefs.h. */
32521 #include "c-client.h"
32522 void mm_searched (MAILSTREAM *stream,unsigned long number)
32525 void mm_exists (MAILSTREAM *stream,unsigned long number)
32528 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32531 void mm_flags (MAILSTREAM *stream,unsigned long number)
32534 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32537 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32540 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32543 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32546 void mm_log (char *string,long errflg)
32549 void mm_dlog (char *string)
32552 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32555 void mm_critical (MAILSTREAM *stream)
32558 void mm_nocritical (MAILSTREAM *stream)
32561 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32564 void mm_fatal (char *string)
32568 main ()
32571 MAILSTREAM *foo = mail_open(NULL, "", 0);
32575 return 0;
32577 _ACEOF
32578 rm -f conftest.$ac_objext conftest$ac_exeext
32579 if { (ac_try="$ac_link"
32580 case "(($ac_try" in
32581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582 *) ac_try_echo=$ac_try;;
32583 esac
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585 (eval "$ac_link") 2>conftest.er1
32586 ac_status=$?
32587 grep -v '^ *+' conftest.er1 >conftest.err
32588 rm -f conftest.er1
32589 cat conftest.err >&5
32590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591 (exit $ac_status); } && {
32592 test -z "$ac_c_werror_flag" ||
32593 test ! -s conftest.err
32594 } && test -s conftest$ac_exeext &&
32595 $as_test_x conftest$ac_exeext; then
32596 ac_cv_imap_tk="yes"
32597 else
32598 echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.$ac_ext >&5
32601 ac_cv_imap_tk="no"
32605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32606 conftest$ac_exeext conftest.$ac_ext
32607 if test "${ac_cv_imap_tk}" = "yes"; then
32608 cat >conftest.$ac_ext <<_ACEOF
32609 /* confdefs.h. */
32610 _ACEOF
32611 cat confdefs.h >>conftest.$ac_ext
32612 cat >>conftest.$ac_ext <<_ACEOF
32613 /* end confdefs.h. */
32614 #include "c-client.h"
32615 void mm_searched (MAILSTREAM *stream,unsigned long number)
32618 void mm_exists (MAILSTREAM *stream,unsigned long number)
32621 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32624 void mm_flags (MAILSTREAM *stream,unsigned long number)
32627 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32630 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32633 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32636 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32639 void mm_log (char *string,long errflg)
32642 void mm_dlog (char *string)
32645 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32648 void mm_critical (MAILSTREAM *stream)
32651 void mm_nocritical (MAILSTREAM *stream)
32654 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32657 void mm_fatal (char *string)
32661 main ()
32664 long check = mail_expunge_full(NULL, "", 0);
32668 return 0;
32670 _ACEOF
32671 rm -f conftest.$ac_objext conftest$ac_exeext
32672 if { (ac_try="$ac_link"
32673 case "(($ac_try" in
32674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32675 *) ac_try_echo=$ac_try;;
32676 esac
32677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32678 (eval "$ac_link") 2>conftest.er1
32679 ac_status=$?
32680 grep -v '^ *+' conftest.er1 >conftest.err
32681 rm -f conftest.er1
32682 cat conftest.err >&5
32683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); } && {
32685 test -z "$ac_c_werror_flag" ||
32686 test ! -s conftest.err
32687 } && test -s conftest$ac_exeext &&
32688 $as_test_x conftest$ac_exeext; then
32689 ac_cv_imap_tk2006="yes"
32690 else
32691 echo "$as_me: failed program was:" >&5
32692 sed 's/^/| /' conftest.$ac_ext >&5
32694 ac_cv_imap_tk2006="no"
32698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32699 conftest$ac_exeext conftest.$ac_ext
32704 if test "${IMAP_TK_DIR}" = "system"; then
32705 #We will enter here if user specified "system" or if any of above checks failed
32706 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32707 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32708 CPPFLAGS="${saved_cppflags}"
32709 LIBS="${saved_libs}"
32710 imap_ldflags=""
32711 imap_libs="-lc-client"
32712 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
32713 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32714 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32715 cat >conftest.$ac_ext <<_ACEOF
32716 /* confdefs.h. */
32717 _ACEOF
32718 cat confdefs.h >>conftest.$ac_ext
32719 cat >>conftest.$ac_ext <<_ACEOF
32720 /* end confdefs.h. */
32721 #include <stdio.h>
32722 #include <imap/c-client.h>
32723 void mm_searched (MAILSTREAM *stream,unsigned long number)
32726 void mm_exists (MAILSTREAM *stream,unsigned long number)
32729 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32732 void mm_flags (MAILSTREAM *stream,unsigned long number)
32735 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32738 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32741 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32744 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32747 void mm_log (char *string,long errflg)
32750 void mm_dlog (char *string)
32753 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32756 void mm_critical (MAILSTREAM *stream)
32759 void mm_nocritical (MAILSTREAM *stream)
32762 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32765 void mm_fatal (char *string)
32769 main ()
32772 MAILSTREAM *foo = mail_open(NULL, "", 0);
32776 return 0;
32778 _ACEOF
32779 rm -f conftest.$ac_objext conftest$ac_exeext
32780 if { (ac_try="$ac_link"
32781 case "(($ac_try" in
32782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32783 *) ac_try_echo=$ac_try;;
32784 esac
32785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786 (eval "$ac_link") 2>conftest.er1
32787 ac_status=$?
32788 grep -v '^ *+' conftest.er1 >conftest.err
32789 rm -f conftest.er1
32790 cat conftest.err >&5
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); } && {
32793 test -z "$ac_c_werror_flag" ||
32794 test ! -s conftest.err
32795 } && test -s conftest$ac_exeext &&
32796 $as_test_x conftest$ac_exeext; then
32797 ac_cv_imap_tk="yes"
32798 else
32799 echo "$as_me: failed program was:" >&5
32800 sed 's/^/| /' conftest.$ac_ext >&5
32802 ac_cv_imap_tk="no"
32806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32807 conftest$ac_exeext conftest.$ac_ext
32808 if test "${ac_cv_imap_tk}" = "yes"; then
32809 cat >conftest.$ac_ext <<_ACEOF
32810 /* confdefs.h. */
32811 _ACEOF
32812 cat confdefs.h >>conftest.$ac_ext
32813 cat >>conftest.$ac_ext <<_ACEOF
32814 /* end confdefs.h. */
32815 #include <stdio.h>
32816 #include <imap/c-client.h>
32817 void mm_searched (MAILSTREAM *stream,unsigned long number)
32820 void mm_exists (MAILSTREAM *stream,unsigned long number)
32823 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32826 void mm_flags (MAILSTREAM *stream,unsigned long number)
32829 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32832 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32835 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32838 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32841 void mm_log (char *string,long errflg)
32844 void mm_dlog (char *string)
32847 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32850 void mm_critical (MAILSTREAM *stream)
32853 void mm_nocritical (MAILSTREAM *stream)
32856 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32859 void mm_fatal (char *string)
32863 main ()
32866 long check = mail_expunge_full(NULL, "", 0);
32870 return 0;
32872 _ACEOF
32873 rm -f conftest.$ac_objext conftest$ac_exeext
32874 if { (ac_try="$ac_link"
32875 case "(($ac_try" in
32876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32877 *) ac_try_echo=$ac_try;;
32878 esac
32879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32880 (eval "$ac_link") 2>conftest.er1
32881 ac_status=$?
32882 grep -v '^ *+' conftest.er1 >conftest.err
32883 rm -f conftest.er1
32884 cat conftest.err >&5
32885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886 (exit $ac_status); } && {
32887 test -z "$ac_c_werror_flag" ||
32888 test ! -s conftest.err
32889 } && test -s conftest$ac_exeext &&
32890 $as_test_x conftest$ac_exeext; then
32891 ac_cv_imap_tk2006="yes"
32892 else
32893 echo "$as_me: failed program was:" >&5
32894 sed 's/^/| /' conftest.$ac_ext >&5
32896 ac_cv_imap_tk2006="no"
32900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32901 conftest$ac_exeext conftest.$ac_ext
32902 else #looking in imap directory didn't work, try c-client
32903 imap_ldflags=""
32904 imap_libs="-lc-client"
32905 imap_include="-DUSE_SYSTEM_CCLIENT"
32906 CPPFLAGS="${saved_cppflags}"
32907 LIBS="${saved_libs}"
32908 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32909 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32910 cat >conftest.$ac_ext <<_ACEOF
32911 /* confdefs.h. */
32912 _ACEOF
32913 cat confdefs.h >>conftest.$ac_ext
32914 cat >>conftest.$ac_ext <<_ACEOF
32915 /* end confdefs.h. */
32916 #include <stdio.h>
32917 #include <c-client/c-client.h>
32918 void mm_searched (MAILSTREAM *stream,unsigned long number)
32921 void mm_exists (MAILSTREAM *stream,unsigned long number)
32924 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32927 void mm_flags (MAILSTREAM *stream,unsigned long number)
32930 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32933 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32936 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32939 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32942 void mm_log (char *string,long errflg)
32945 void mm_dlog (char *string)
32948 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32951 void mm_critical (MAILSTREAM *stream)
32954 void mm_nocritical (MAILSTREAM *stream)
32957 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32960 void mm_fatal (char *string)
32964 main ()
32967 MAILSTREAM *foo = mail_open(NULL, "", 0);
32971 return 0;
32973 _ACEOF
32974 rm -f conftest.$ac_objext conftest$ac_exeext
32975 if { (ac_try="$ac_link"
32976 case "(($ac_try" in
32977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32978 *) ac_try_echo=$ac_try;;
32979 esac
32980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32981 (eval "$ac_link") 2>conftest.er1
32982 ac_status=$?
32983 grep -v '^ *+' conftest.er1 >conftest.err
32984 rm -f conftest.er1
32985 cat conftest.err >&5
32986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32987 (exit $ac_status); } && {
32988 test -z "$ac_c_werror_flag" ||
32989 test ! -s conftest.err
32990 } && test -s conftest$ac_exeext &&
32991 $as_test_x conftest$ac_exeext; then
32992 ac_cv_imap_tk="yes"
32993 else
32994 echo "$as_me: failed program was:" >&5
32995 sed 's/^/| /' conftest.$ac_ext >&5
32997 ac_cv_imap_tk="no"
33001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33002 conftest$ac_exeext conftest.$ac_ext
33003 if test "${ac_cv_imap_tk}" = "yes"; then
33004 cat >conftest.$ac_ext <<_ACEOF
33005 /* confdefs.h. */
33006 _ACEOF
33007 cat confdefs.h >>conftest.$ac_ext
33008 cat >>conftest.$ac_ext <<_ACEOF
33009 /* end confdefs.h. */
33010 #include <stdio.h>
33011 #include <c-client/c-client.h>
33012 void mm_searched (MAILSTREAM *stream,unsigned long number)
33015 void mm_exists (MAILSTREAM *stream,unsigned long number)
33018 void mm_expunged (MAILSTREAM *stream,unsigned long number)
33021 void mm_flags (MAILSTREAM *stream,unsigned long number)
33024 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
33027 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33030 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33033 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
33036 void mm_log (char *string,long errflg)
33039 void mm_dlog (char *string)
33042 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33045 void mm_critical (MAILSTREAM *stream)
33048 void mm_nocritical (MAILSTREAM *stream)
33051 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33054 void mm_fatal (char *string)
33058 main ()
33061 long check = mail_expunge_full(NULL, "", 0);
33065 return 0;
33067 _ACEOF
33068 rm -f conftest.$ac_objext conftest$ac_exeext
33069 if { (ac_try="$ac_link"
33070 case "(($ac_try" in
33071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072 *) ac_try_echo=$ac_try;;
33073 esac
33074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075 (eval "$ac_link") 2>conftest.er1
33076 ac_status=$?
33077 grep -v '^ *+' conftest.er1 >conftest.err
33078 rm -f conftest.er1
33079 cat conftest.err >&5
33080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081 (exit $ac_status); } && {
33082 test -z "$ac_c_werror_flag" ||
33083 test ! -s conftest.err
33084 } && test -s conftest$ac_exeext &&
33085 $as_test_x conftest$ac_exeext; then
33086 ac_cv_imap_tk2006="yes"
33087 else
33088 echo "$as_me: failed program was:" >&5
33089 sed 's/^/| /' conftest.$ac_ext >&5
33091 ac_cv_imap_tk2006="no"
33095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33096 conftest$ac_exeext conftest.$ac_ext
33100 if test "${ac_cv_imap_tk}" = "yes"; then
33101 { echo "$as_me:$LINENO: result: yes" >&5
33102 echo "${ECHO_T}yes" >&6; }
33103 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
33104 IMAP_TK_INCLUDE="${imap_include}"
33105 PBX_IMAP_TK=1
33107 cat >>confdefs.h <<\_ACEOF
33108 #define HAVE_IMAP_TK 1
33109 _ACEOF
33111 if test "${ac_cv_imap_tk2006}" = "yes"; then
33113 cat >>confdefs.h <<\_ACEOF
33114 #define HAVE_IMAP_TK2006 1
33115 _ACEOF
33118 else
33119 { echo "$as_me:$LINENO: result: no" >&5
33120 echo "${ECHO_T}no" >&6; }
33122 CPPFLAGS="${saved_cppflags}"
33123 LIBS="${saved_libs}"
33127 if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
33128 pbxlibdir=""
33129 # if --with-JACK=DIR has been specified, use it.
33130 if test "x${JACK_DIR}" != "x"; then
33131 if test -d ${JACK_DIR}/lib; then
33132 pbxlibdir="-L${JACK_DIR}/lib"
33133 else
33134 pbxlibdir="-L${JACK_DIR}"
33137 pbxfuncname="jack_activate"
33138 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33139 AST_JACK_FOUND=yes
33140 else
33141 as_ac_Lib=`echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
33142 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ljack" >&5
33143 echo $ECHO_N "checking for ${pbxfuncname} in -ljack... $ECHO_C" >&6; }
33144 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33145 echo $ECHO_N "(cached) $ECHO_C" >&6
33146 else
33147 ac_check_lib_save_LIBS=$LIBS
33148 LIBS="-ljack ${pbxlibdir} $LIBS"
33149 cat >conftest.$ac_ext <<_ACEOF
33150 /* confdefs.h. */
33151 _ACEOF
33152 cat confdefs.h >>conftest.$ac_ext
33153 cat >>conftest.$ac_ext <<_ACEOF
33154 /* end confdefs.h. */
33156 /* Override any GCC internal prototype to avoid an error.
33157 Use char because int might match the return type of a GCC
33158 builtin and then its argument prototype would still apply. */
33159 #ifdef __cplusplus
33160 extern "C"
33161 #endif
33162 char ${pbxfuncname} ();
33164 main ()
33166 return ${pbxfuncname} ();
33168 return 0;
33170 _ACEOF
33171 rm -f conftest.$ac_objext conftest$ac_exeext
33172 if { (ac_try="$ac_link"
33173 case "(($ac_try" in
33174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33175 *) ac_try_echo=$ac_try;;
33176 esac
33177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33178 (eval "$ac_link") 2>conftest.er1
33179 ac_status=$?
33180 grep -v '^ *+' conftest.er1 >conftest.err
33181 rm -f conftest.er1
33182 cat conftest.err >&5
33183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33184 (exit $ac_status); } && {
33185 test -z "$ac_c_werror_flag" ||
33186 test ! -s conftest.err
33187 } && test -s conftest$ac_exeext &&
33188 $as_test_x conftest$ac_exeext; then
33189 eval "$as_ac_Lib=yes"
33190 else
33191 echo "$as_me: failed program was:" >&5
33192 sed 's/^/| /' conftest.$ac_ext >&5
33194 eval "$as_ac_Lib=no"
33197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33198 conftest$ac_exeext conftest.$ac_ext
33199 LIBS=$ac_check_lib_save_LIBS
33201 ac_res=`eval echo '${'$as_ac_Lib'}'`
33202 { echo "$as_me:$LINENO: result: $ac_res" >&5
33203 echo "${ECHO_T}$ac_res" >&6; }
33204 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33205 AST_JACK_FOUND=yes
33206 else
33207 AST_JACK_FOUND=no
33212 # now check for the header.
33213 if test "${AST_JACK_FOUND}" = "yes"; then
33214 JACK_LIB="${pbxlibdir} -ljack "
33215 # if --with-JACK=DIR has been specified, use it.
33216 if test "x${JACK_DIR}" != "x"; then
33217 JACK_INCLUDE="-I${JACK_DIR}/include"
33219 JACK_INCLUDE="${JACK_INCLUDE} "
33220 if test "xjack/jack.h" = "x" ; then # no header, assume found
33221 JACK_HEADER_FOUND="1"
33222 else # check for the header
33223 saved_cppflags="${CPPFLAGS}"
33224 CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE} "
33225 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33226 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33227 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33228 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33229 echo $ECHO_N "(cached) $ECHO_C" >&6
33231 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33232 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33233 else
33234 # Is the header compilable?
33235 { echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
33236 echo $ECHO_N "checking jack/jack.h usability... $ECHO_C" >&6; }
33237 cat >conftest.$ac_ext <<_ACEOF
33238 /* confdefs.h. */
33239 _ACEOF
33240 cat confdefs.h >>conftest.$ac_ext
33241 cat >>conftest.$ac_ext <<_ACEOF
33242 /* end confdefs.h. */
33243 $ac_includes_default
33244 #include <jack/jack.h>
33245 _ACEOF
33246 rm -f conftest.$ac_objext
33247 if { (ac_try="$ac_compile"
33248 case "(($ac_try" in
33249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33250 *) ac_try_echo=$ac_try;;
33251 esac
33252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33253 (eval "$ac_compile") 2>conftest.er1
33254 ac_status=$?
33255 grep -v '^ *+' conftest.er1 >conftest.err
33256 rm -f conftest.er1
33257 cat conftest.err >&5
33258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33259 (exit $ac_status); } && {
33260 test -z "$ac_c_werror_flag" ||
33261 test ! -s conftest.err
33262 } && test -s conftest.$ac_objext; then
33263 ac_header_compiler=yes
33264 else
33265 echo "$as_me: failed program was:" >&5
33266 sed 's/^/| /' conftest.$ac_ext >&5
33268 ac_header_compiler=no
33271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33273 echo "${ECHO_T}$ac_header_compiler" >&6; }
33275 # Is the header present?
33276 { echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
33277 echo $ECHO_N "checking jack/jack.h presence... $ECHO_C" >&6; }
33278 cat >conftest.$ac_ext <<_ACEOF
33279 /* confdefs.h. */
33280 _ACEOF
33281 cat confdefs.h >>conftest.$ac_ext
33282 cat >>conftest.$ac_ext <<_ACEOF
33283 /* end confdefs.h. */
33284 #include <jack/jack.h>
33285 _ACEOF
33286 if { (ac_try="$ac_cpp conftest.$ac_ext"
33287 case "(($ac_try" in
33288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33289 *) ac_try_echo=$ac_try;;
33290 esac
33291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33293 ac_status=$?
33294 grep -v '^ *+' conftest.er1 >conftest.err
33295 rm -f conftest.er1
33296 cat conftest.err >&5
33297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298 (exit $ac_status); } >/dev/null && {
33299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33300 test ! -s conftest.err
33301 }; then
33302 ac_header_preproc=yes
33303 else
33304 echo "$as_me: failed program was:" >&5
33305 sed 's/^/| /' conftest.$ac_ext >&5
33307 ac_header_preproc=no
33310 rm -f conftest.err conftest.$ac_ext
33311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33312 echo "${ECHO_T}$ac_header_preproc" >&6; }
33314 # So? What about this header?
33315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33316 yes:no: )
33317 { echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
33318 echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33319 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
33320 echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
33321 ac_header_preproc=yes
33323 no:yes:* )
33324 { echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
33325 echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
33326 { echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5
33327 echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;}
33328 { echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
33329 echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
33330 { echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5
33331 echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;}
33332 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
33333 echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
33334 { echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
33335 echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
33336 ( cat <<\_ASBOX
33337 ## ------------------------------- ##
33338 ## Report this to www.asterisk.org ##
33339 ## ------------------------------- ##
33340 _ASBOX
33341 ) | sed "s/^/$as_me: WARNING: /" >&2
33343 esac
33344 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33345 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33346 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33347 echo $ECHO_N "(cached) $ECHO_C" >&6
33348 else
33349 ac_cv_header_jack_jack_h=$ac_header_preproc
33351 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33352 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33355 if test $ac_cv_header_jack_jack_h = yes; then
33356 JACK_HEADER_FOUND=1
33357 else
33358 JACK_HEADER_FOUND=0
33362 CPPFLAGS="${saved_cppflags}"
33364 if test "x${JACK_HEADER_FOUND}" = "x0" ; then
33365 JACK_LIB=""
33366 JACK_INCLUDE=""
33367 else
33368 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33369 JACK_LIB=""
33371 PBX_JACK=1
33372 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33374 cat >>confdefs.h <<_ACEOF
33375 #define HAVE_JACK 1
33376 _ACEOF
33379 cat >>confdefs.h <<_ACEOF
33380 #define HAVE_JACK_VERSION
33381 _ACEOF
33388 # Needed by unixodbc
33390 if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
33391 pbxlibdir=""
33392 # if --with-LTDL=DIR has been specified, use it.
33393 if test "x${LTDL_DIR}" != "x"; then
33394 if test -d ${LTDL_DIR}/lib; then
33395 pbxlibdir="-L${LTDL_DIR}/lib"
33396 else
33397 pbxlibdir="-L${LTDL_DIR}"
33400 pbxfuncname="lt_dlinit"
33401 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33402 AST_LTDL_FOUND=yes
33403 else
33404 as_ac_Lib=`echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
33405 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lltdl" >&5
33406 echo $ECHO_N "checking for ${pbxfuncname} in -lltdl... $ECHO_C" >&6; }
33407 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33408 echo $ECHO_N "(cached) $ECHO_C" >&6
33409 else
33410 ac_check_lib_save_LIBS=$LIBS
33411 LIBS="-lltdl ${pbxlibdir} $LIBS"
33412 cat >conftest.$ac_ext <<_ACEOF
33413 /* confdefs.h. */
33414 _ACEOF
33415 cat confdefs.h >>conftest.$ac_ext
33416 cat >>conftest.$ac_ext <<_ACEOF
33417 /* end confdefs.h. */
33419 /* Override any GCC internal prototype to avoid an error.
33420 Use char because int might match the return type of a GCC
33421 builtin and then its argument prototype would still apply. */
33422 #ifdef __cplusplus
33423 extern "C"
33424 #endif
33425 char ${pbxfuncname} ();
33427 main ()
33429 return ${pbxfuncname} ();
33431 return 0;
33433 _ACEOF
33434 rm -f conftest.$ac_objext conftest$ac_exeext
33435 if { (ac_try="$ac_link"
33436 case "(($ac_try" in
33437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438 *) ac_try_echo=$ac_try;;
33439 esac
33440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441 (eval "$ac_link") 2>conftest.er1
33442 ac_status=$?
33443 grep -v '^ *+' conftest.er1 >conftest.err
33444 rm -f conftest.er1
33445 cat conftest.err >&5
33446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 (exit $ac_status); } && {
33448 test -z "$ac_c_werror_flag" ||
33449 test ! -s conftest.err
33450 } && test -s conftest$ac_exeext &&
33451 $as_test_x conftest$ac_exeext; then
33452 eval "$as_ac_Lib=yes"
33453 else
33454 echo "$as_me: failed program was:" >&5
33455 sed 's/^/| /' conftest.$ac_ext >&5
33457 eval "$as_ac_Lib=no"
33460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33461 conftest$ac_exeext conftest.$ac_ext
33462 LIBS=$ac_check_lib_save_LIBS
33464 ac_res=`eval echo '${'$as_ac_Lib'}'`
33465 { echo "$as_me:$LINENO: result: $ac_res" >&5
33466 echo "${ECHO_T}$ac_res" >&6; }
33467 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33468 AST_LTDL_FOUND=yes
33469 else
33470 AST_LTDL_FOUND=no
33475 # now check for the header.
33476 if test "${AST_LTDL_FOUND}" = "yes"; then
33477 LTDL_LIB="${pbxlibdir} -lltdl "
33478 # if --with-LTDL=DIR has been specified, use it.
33479 if test "x${LTDL_DIR}" != "x"; then
33480 LTDL_INCLUDE="-I${LTDL_DIR}/include"
33482 LTDL_INCLUDE="${LTDL_INCLUDE} "
33483 if test "xltdl.h" = "x" ; then # no header, assume found
33484 LTDL_HEADER_FOUND="1"
33485 else # check for the header
33486 saved_cppflags="${CPPFLAGS}"
33487 CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE} "
33488 if test "${ac_cv_header_ltdl_h+set}" = set; then
33489 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33490 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33491 if test "${ac_cv_header_ltdl_h+set}" = set; then
33492 echo $ECHO_N "(cached) $ECHO_C" >&6
33494 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33495 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33496 else
33497 # Is the header compilable?
33498 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
33499 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
33500 cat >conftest.$ac_ext <<_ACEOF
33501 /* confdefs.h. */
33502 _ACEOF
33503 cat confdefs.h >>conftest.$ac_ext
33504 cat >>conftest.$ac_ext <<_ACEOF
33505 /* end confdefs.h. */
33506 $ac_includes_default
33507 #include <ltdl.h>
33508 _ACEOF
33509 rm -f conftest.$ac_objext
33510 if { (ac_try="$ac_compile"
33511 case "(($ac_try" in
33512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33513 *) ac_try_echo=$ac_try;;
33514 esac
33515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33516 (eval "$ac_compile") 2>conftest.er1
33517 ac_status=$?
33518 grep -v '^ *+' conftest.er1 >conftest.err
33519 rm -f conftest.er1
33520 cat conftest.err >&5
33521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522 (exit $ac_status); } && {
33523 test -z "$ac_c_werror_flag" ||
33524 test ! -s conftest.err
33525 } && test -s conftest.$ac_objext; then
33526 ac_header_compiler=yes
33527 else
33528 echo "$as_me: failed program was:" >&5
33529 sed 's/^/| /' conftest.$ac_ext >&5
33531 ac_header_compiler=no
33534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33536 echo "${ECHO_T}$ac_header_compiler" >&6; }
33538 # Is the header present?
33539 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
33540 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
33541 cat >conftest.$ac_ext <<_ACEOF
33542 /* confdefs.h. */
33543 _ACEOF
33544 cat confdefs.h >>conftest.$ac_ext
33545 cat >>conftest.$ac_ext <<_ACEOF
33546 /* end confdefs.h. */
33547 #include <ltdl.h>
33548 _ACEOF
33549 if { (ac_try="$ac_cpp conftest.$ac_ext"
33550 case "(($ac_try" in
33551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33552 *) ac_try_echo=$ac_try;;
33553 esac
33554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33556 ac_status=$?
33557 grep -v '^ *+' conftest.er1 >conftest.err
33558 rm -f conftest.er1
33559 cat conftest.err >&5
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); } >/dev/null && {
33562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33563 test ! -s conftest.err
33564 }; then
33565 ac_header_preproc=yes
33566 else
33567 echo "$as_me: failed program was:" >&5
33568 sed 's/^/| /' conftest.$ac_ext >&5
33570 ac_header_preproc=no
33573 rm -f conftest.err conftest.$ac_ext
33574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33575 echo "${ECHO_T}$ac_header_preproc" >&6; }
33577 # So? What about this header?
33578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33579 yes:no: )
33580 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33581 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33582 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
33583 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
33584 ac_header_preproc=yes
33586 no:yes:* )
33587 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
33588 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
33589 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
33590 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
33591 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
33592 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
33593 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
33594 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33595 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
33596 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
33597 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
33598 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
33599 ( cat <<\_ASBOX
33600 ## ------------------------------- ##
33601 ## Report this to www.asterisk.org ##
33602 ## ------------------------------- ##
33603 _ASBOX
33604 ) | sed "s/^/$as_me: WARNING: /" >&2
33606 esac
33607 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33608 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33609 if test "${ac_cv_header_ltdl_h+set}" = set; then
33610 echo $ECHO_N "(cached) $ECHO_C" >&6
33611 else
33612 ac_cv_header_ltdl_h=$ac_header_preproc
33614 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33615 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33618 if test $ac_cv_header_ltdl_h = yes; then
33619 LTDL_HEADER_FOUND=1
33620 else
33621 LTDL_HEADER_FOUND=0
33625 CPPFLAGS="${saved_cppflags}"
33627 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
33628 LTDL_LIB=""
33629 LTDL_INCLUDE=""
33630 else
33631 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33632 LTDL_LIB=""
33634 PBX_LTDL=1
33635 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33637 cat >>confdefs.h <<_ACEOF
33638 #define HAVE_LTDL 1
33639 _ACEOF
33642 cat >>confdefs.h <<_ACEOF
33643 #define HAVE_LTDL_VERSION
33644 _ACEOF
33652 if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
33653 pbxlibdir=""
33654 # if --with-LDAP=DIR has been specified, use it.
33655 if test "x${LDAP_DIR}" != "x"; then
33656 if test -d ${LDAP_DIR}/lib; then
33657 pbxlibdir="-L${LDAP_DIR}/lib"
33658 else
33659 pbxlibdir="-L${LDAP_DIR}"
33662 pbxfuncname="ldap_initialize"
33663 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33664 AST_LDAP_FOUND=yes
33665 else
33666 as_ac_Lib=`echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
33667 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lldap" >&5
33668 echo $ECHO_N "checking for ${pbxfuncname} in -lldap... $ECHO_C" >&6; }
33669 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33670 echo $ECHO_N "(cached) $ECHO_C" >&6
33671 else
33672 ac_check_lib_save_LIBS=$LIBS
33673 LIBS="-lldap ${pbxlibdir} $LIBS"
33674 cat >conftest.$ac_ext <<_ACEOF
33675 /* confdefs.h. */
33676 _ACEOF
33677 cat confdefs.h >>conftest.$ac_ext
33678 cat >>conftest.$ac_ext <<_ACEOF
33679 /* end confdefs.h. */
33681 /* Override any GCC internal prototype to avoid an error.
33682 Use char because int might match the return type of a GCC
33683 builtin and then its argument prototype would still apply. */
33684 #ifdef __cplusplus
33685 extern "C"
33686 #endif
33687 char ${pbxfuncname} ();
33689 main ()
33691 return ${pbxfuncname} ();
33693 return 0;
33695 _ACEOF
33696 rm -f conftest.$ac_objext conftest$ac_exeext
33697 if { (ac_try="$ac_link"
33698 case "(($ac_try" in
33699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33700 *) ac_try_echo=$ac_try;;
33701 esac
33702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33703 (eval "$ac_link") 2>conftest.er1
33704 ac_status=$?
33705 grep -v '^ *+' conftest.er1 >conftest.err
33706 rm -f conftest.er1
33707 cat conftest.err >&5
33708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33709 (exit $ac_status); } && {
33710 test -z "$ac_c_werror_flag" ||
33711 test ! -s conftest.err
33712 } && test -s conftest$ac_exeext &&
33713 $as_test_x conftest$ac_exeext; then
33714 eval "$as_ac_Lib=yes"
33715 else
33716 echo "$as_me: failed program was:" >&5
33717 sed 's/^/| /' conftest.$ac_ext >&5
33719 eval "$as_ac_Lib=no"
33722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33723 conftest$ac_exeext conftest.$ac_ext
33724 LIBS=$ac_check_lib_save_LIBS
33726 ac_res=`eval echo '${'$as_ac_Lib'}'`
33727 { echo "$as_me:$LINENO: result: $ac_res" >&5
33728 echo "${ECHO_T}$ac_res" >&6; }
33729 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33730 AST_LDAP_FOUND=yes
33731 else
33732 AST_LDAP_FOUND=no
33737 # now check for the header.
33738 if test "${AST_LDAP_FOUND}" = "yes"; then
33739 LDAP_LIB="${pbxlibdir} -lldap "
33740 # if --with-LDAP=DIR has been specified, use it.
33741 if test "x${LDAP_DIR}" != "x"; then
33742 LDAP_INCLUDE="-I${LDAP_DIR}/include"
33744 LDAP_INCLUDE="${LDAP_INCLUDE} "
33745 if test "xldap.h" = "x" ; then # no header, assume found
33746 LDAP_HEADER_FOUND="1"
33747 else # check for the header
33748 saved_cppflags="${CPPFLAGS}"
33749 CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE} "
33750 if test "${ac_cv_header_ldap_h+set}" = set; then
33751 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33752 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33753 if test "${ac_cv_header_ldap_h+set}" = set; then
33754 echo $ECHO_N "(cached) $ECHO_C" >&6
33756 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33757 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33758 else
33759 # Is the header compilable?
33760 { echo "$as_me:$LINENO: checking ldap.h usability" >&5
33761 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6; }
33762 cat >conftest.$ac_ext <<_ACEOF
33763 /* confdefs.h. */
33764 _ACEOF
33765 cat confdefs.h >>conftest.$ac_ext
33766 cat >>conftest.$ac_ext <<_ACEOF
33767 /* end confdefs.h. */
33768 $ac_includes_default
33769 #include <ldap.h>
33770 _ACEOF
33771 rm -f conftest.$ac_objext
33772 if { (ac_try="$ac_compile"
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_compile") 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); } && {
33785 test -z "$ac_c_werror_flag" ||
33786 test ! -s conftest.err
33787 } && test -s conftest.$ac_objext; then
33788 ac_header_compiler=yes
33789 else
33790 echo "$as_me: failed program was:" >&5
33791 sed 's/^/| /' conftest.$ac_ext >&5
33793 ac_header_compiler=no
33796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33798 echo "${ECHO_T}$ac_header_compiler" >&6; }
33800 # Is the header present?
33801 { echo "$as_me:$LINENO: checking ldap.h presence" >&5
33802 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6; }
33803 cat >conftest.$ac_ext <<_ACEOF
33804 /* confdefs.h. */
33805 _ACEOF
33806 cat confdefs.h >>conftest.$ac_ext
33807 cat >>conftest.$ac_ext <<_ACEOF
33808 /* end confdefs.h. */
33809 #include <ldap.h>
33810 _ACEOF
33811 if { (ac_try="$ac_cpp conftest.$ac_ext"
33812 case "(($ac_try" in
33813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33814 *) ac_try_echo=$ac_try;;
33815 esac
33816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33818 ac_status=$?
33819 grep -v '^ *+' conftest.er1 >conftest.err
33820 rm -f conftest.er1
33821 cat conftest.err >&5
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); } >/dev/null && {
33824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33825 test ! -s conftest.err
33826 }; then
33827 ac_header_preproc=yes
33828 else
33829 echo "$as_me: failed program was:" >&5
33830 sed 's/^/| /' conftest.$ac_ext >&5
33832 ac_header_preproc=no
33835 rm -f conftest.err conftest.$ac_ext
33836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33837 echo "${ECHO_T}$ac_header_preproc" >&6; }
33839 # So? What about this header?
33840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33841 yes:no: )
33842 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
33843 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33844 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
33845 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
33846 ac_header_preproc=yes
33848 no:yes:* )
33849 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
33850 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
33851 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
33852 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
33853 { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
33854 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
33855 { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
33856 echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
33857 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
33858 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
33859 { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
33860 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
33861 ( cat <<\_ASBOX
33862 ## ------------------------------- ##
33863 ## Report this to www.asterisk.org ##
33864 ## ------------------------------- ##
33865 _ASBOX
33866 ) | sed "s/^/$as_me: WARNING: /" >&2
33868 esac
33869 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33870 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33871 if test "${ac_cv_header_ldap_h+set}" = set; then
33872 echo $ECHO_N "(cached) $ECHO_C" >&6
33873 else
33874 ac_cv_header_ldap_h=$ac_header_preproc
33876 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33877 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33880 if test $ac_cv_header_ldap_h = yes; then
33881 LDAP_HEADER_FOUND=1
33882 else
33883 LDAP_HEADER_FOUND=0
33887 CPPFLAGS="${saved_cppflags}"
33889 if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
33890 LDAP_LIB=""
33891 LDAP_INCLUDE=""
33892 else
33893 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33894 LDAP_LIB=""
33896 PBX_LDAP=1
33897 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33899 cat >>confdefs.h <<_ACEOF
33900 #define HAVE_LDAP 1
33901 _ACEOF
33904 cat >>confdefs.h <<_ACEOF
33905 #define HAVE_LDAP_VERSION
33906 _ACEOF
33914 if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
33915 pbxlibdir=""
33916 # if --with-MISDN=DIR has been specified, use it.
33917 if test "x${MISDN_DIR}" != "x"; then
33918 if test -d ${MISDN_DIR}/lib; then
33919 pbxlibdir="-L${MISDN_DIR}/lib"
33920 else
33921 pbxlibdir="-L${MISDN_DIR}"
33924 pbxfuncname="mISDN_open"
33925 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33926 AST_MISDN_FOUND=yes
33927 else
33928 as_ac_Lib=`echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
33929 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lmISDN" >&5
33930 echo $ECHO_N "checking for ${pbxfuncname} in -lmISDN... $ECHO_C" >&6; }
33931 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33932 echo $ECHO_N "(cached) $ECHO_C" >&6
33933 else
33934 ac_check_lib_save_LIBS=$LIBS
33935 LIBS="-lmISDN ${pbxlibdir} $LIBS"
33936 cat >conftest.$ac_ext <<_ACEOF
33937 /* confdefs.h. */
33938 _ACEOF
33939 cat confdefs.h >>conftest.$ac_ext
33940 cat >>conftest.$ac_ext <<_ACEOF
33941 /* end confdefs.h. */
33943 /* Override any GCC internal prototype to avoid an error.
33944 Use char because int might match the return type of a GCC
33945 builtin and then its argument prototype would still apply. */
33946 #ifdef __cplusplus
33947 extern "C"
33948 #endif
33949 char ${pbxfuncname} ();
33951 main ()
33953 return ${pbxfuncname} ();
33955 return 0;
33957 _ACEOF
33958 rm -f conftest.$ac_objext conftest$ac_exeext
33959 if { (ac_try="$ac_link"
33960 case "(($ac_try" in
33961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33962 *) ac_try_echo=$ac_try;;
33963 esac
33964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33965 (eval "$ac_link") 2>conftest.er1
33966 ac_status=$?
33967 grep -v '^ *+' conftest.er1 >conftest.err
33968 rm -f conftest.er1
33969 cat conftest.err >&5
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); } && {
33972 test -z "$ac_c_werror_flag" ||
33973 test ! -s conftest.err
33974 } && test -s conftest$ac_exeext &&
33975 $as_test_x conftest$ac_exeext; then
33976 eval "$as_ac_Lib=yes"
33977 else
33978 echo "$as_me: failed program was:" >&5
33979 sed 's/^/| /' conftest.$ac_ext >&5
33981 eval "$as_ac_Lib=no"
33984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33985 conftest$ac_exeext conftest.$ac_ext
33986 LIBS=$ac_check_lib_save_LIBS
33988 ac_res=`eval echo '${'$as_ac_Lib'}'`
33989 { echo "$as_me:$LINENO: result: $ac_res" >&5
33990 echo "${ECHO_T}$ac_res" >&6; }
33991 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33992 AST_MISDN_FOUND=yes
33993 else
33994 AST_MISDN_FOUND=no
33999 # now check for the header.
34000 if test "${AST_MISDN_FOUND}" = "yes"; then
34001 MISDN_LIB="${pbxlibdir} -lmISDN "
34002 # if --with-MISDN=DIR has been specified, use it.
34003 if test "x${MISDN_DIR}" != "x"; then
34004 MISDN_INCLUDE="-I${MISDN_DIR}/include"
34006 MISDN_INCLUDE="${MISDN_INCLUDE} "
34007 if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
34008 MISDN_HEADER_FOUND="1"
34009 else # check for the header
34010 saved_cppflags="${CPPFLAGS}"
34011 CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE} "
34012 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34013 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
34014 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
34015 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34016 echo $ECHO_N "(cached) $ECHO_C" >&6
34018 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
34019 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
34020 else
34021 # Is the header compilable?
34022 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
34023 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
34024 cat >conftest.$ac_ext <<_ACEOF
34025 /* confdefs.h. */
34026 _ACEOF
34027 cat confdefs.h >>conftest.$ac_ext
34028 cat >>conftest.$ac_ext <<_ACEOF
34029 /* end confdefs.h. */
34030 $ac_includes_default
34031 #include <mISDNuser/mISDNlib.h>
34032 _ACEOF
34033 rm -f conftest.$ac_objext
34034 if { (ac_try="$ac_compile"
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_compile") 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); } && {
34047 test -z "$ac_c_werror_flag" ||
34048 test ! -s conftest.err
34049 } && test -s conftest.$ac_objext; then
34050 ac_header_compiler=yes
34051 else
34052 echo "$as_me: failed program was:" >&5
34053 sed 's/^/| /' conftest.$ac_ext >&5
34055 ac_header_compiler=no
34058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34060 echo "${ECHO_T}$ac_header_compiler" >&6; }
34062 # Is the header present?
34063 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
34064 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
34065 cat >conftest.$ac_ext <<_ACEOF
34066 /* confdefs.h. */
34067 _ACEOF
34068 cat confdefs.h >>conftest.$ac_ext
34069 cat >>conftest.$ac_ext <<_ACEOF
34070 /* end confdefs.h. */
34071 #include <mISDNuser/mISDNlib.h>
34072 _ACEOF
34073 if { (ac_try="$ac_cpp conftest.$ac_ext"
34074 case "(($ac_try" in
34075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34076 *) ac_try_echo=$ac_try;;
34077 esac
34078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34080 ac_status=$?
34081 grep -v '^ *+' conftest.er1 >conftest.err
34082 rm -f conftest.er1
34083 cat conftest.err >&5
34084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085 (exit $ac_status); } >/dev/null && {
34086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34087 test ! -s conftest.err
34088 }; then
34089 ac_header_preproc=yes
34090 else
34091 echo "$as_me: failed program was:" >&5
34092 sed 's/^/| /' conftest.$ac_ext >&5
34094 ac_header_preproc=no
34097 rm -f conftest.err conftest.$ac_ext
34098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34099 echo "${ECHO_T}$ac_header_preproc" >&6; }
34101 # So? What about this header?
34102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34103 yes:no: )
34104 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34105 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34106 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
34107 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
34108 ac_header_preproc=yes
34110 no:yes:* )
34111 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
34112 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
34113 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
34114 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
34115 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
34116 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
34117 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
34118 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34119 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
34120 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
34121 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
34122 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
34123 ( cat <<\_ASBOX
34124 ## ------------------------------- ##
34125 ## Report this to www.asterisk.org ##
34126 ## ------------------------------- ##
34127 _ASBOX
34128 ) | sed "s/^/$as_me: WARNING: /" >&2
34130 esac
34131 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
34132 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
34133 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34134 echo $ECHO_N "(cached) $ECHO_C" >&6
34135 else
34136 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
34138 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
34139 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
34142 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
34143 MISDN_HEADER_FOUND=1
34144 else
34145 MISDN_HEADER_FOUND=0
34149 CPPFLAGS="${saved_cppflags}"
34151 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
34152 MISDN_LIB=""
34153 MISDN_INCLUDE=""
34154 else
34155 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34156 MISDN_LIB=""
34158 PBX_MISDN=1
34159 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34161 cat >>confdefs.h <<_ACEOF
34162 #define HAVE_MISDN 1
34163 _ACEOF
34166 cat >>confdefs.h <<_ACEOF
34167 #define HAVE_MISDN_VERSION
34168 _ACEOF
34175 if test "${PBX_MISDN}" = 1; then
34177 if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
34178 pbxlibdir=""
34179 # if --with-ISDNNET=DIR has been specified, use it.
34180 if test "x${ISDNNET_DIR}" != "x"; then
34181 if test -d ${ISDNNET_DIR}/lib; then
34182 pbxlibdir="-L${ISDNNET_DIR}/lib"
34183 else
34184 pbxlibdir="-L${ISDNNET_DIR}"
34187 pbxfuncname="init_manager"
34188 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34189 AST_ISDNNET_FOUND=yes
34190 else
34191 as_ac_Lib=`echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
34192 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lisdnnet" >&5
34193 echo $ECHO_N "checking for ${pbxfuncname} in -lisdnnet... $ECHO_C" >&6; }
34194 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34195 echo $ECHO_N "(cached) $ECHO_C" >&6
34196 else
34197 ac_check_lib_save_LIBS=$LIBS
34198 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
34199 cat >conftest.$ac_ext <<_ACEOF
34200 /* confdefs.h. */
34201 _ACEOF
34202 cat confdefs.h >>conftest.$ac_ext
34203 cat >>conftest.$ac_ext <<_ACEOF
34204 /* end confdefs.h. */
34206 /* Override any GCC internal prototype to avoid an error.
34207 Use char because int might match the return type of a GCC
34208 builtin and then its argument prototype would still apply. */
34209 #ifdef __cplusplus
34210 extern "C"
34211 #endif
34212 char ${pbxfuncname} ();
34214 main ()
34216 return ${pbxfuncname} ();
34218 return 0;
34220 _ACEOF
34221 rm -f conftest.$ac_objext conftest$ac_exeext
34222 if { (ac_try="$ac_link"
34223 case "(($ac_try" in
34224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34225 *) ac_try_echo=$ac_try;;
34226 esac
34227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34228 (eval "$ac_link") 2>conftest.er1
34229 ac_status=$?
34230 grep -v '^ *+' conftest.er1 >conftest.err
34231 rm -f conftest.er1
34232 cat conftest.err >&5
34233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234 (exit $ac_status); } && {
34235 test -z "$ac_c_werror_flag" ||
34236 test ! -s conftest.err
34237 } && test -s conftest$ac_exeext &&
34238 $as_test_x conftest$ac_exeext; then
34239 eval "$as_ac_Lib=yes"
34240 else
34241 echo "$as_me: failed program was:" >&5
34242 sed 's/^/| /' conftest.$ac_ext >&5
34244 eval "$as_ac_Lib=no"
34247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34248 conftest$ac_exeext conftest.$ac_ext
34249 LIBS=$ac_check_lib_save_LIBS
34251 ac_res=`eval echo '${'$as_ac_Lib'}'`
34252 { echo "$as_me:$LINENO: result: $ac_res" >&5
34253 echo "${ECHO_T}$ac_res" >&6; }
34254 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34255 AST_ISDNNET_FOUND=yes
34256 else
34257 AST_ISDNNET_FOUND=no
34262 # now check for the header.
34263 if test "${AST_ISDNNET_FOUND}" = "yes"; then
34264 ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
34265 # if --with-ISDNNET=DIR has been specified, use it.
34266 if test "x${ISDNNET_DIR}" != "x"; then
34267 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
34269 ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
34270 if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
34271 ISDNNET_HEADER_FOUND="1"
34272 else # check for the header
34273 saved_cppflags="${CPPFLAGS}"
34274 CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE} "
34275 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34276 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34277 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34278 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34279 echo $ECHO_N "(cached) $ECHO_C" >&6
34281 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34282 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34283 else
34284 # Is the header compilable?
34285 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
34286 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
34287 cat >conftest.$ac_ext <<_ACEOF
34288 /* confdefs.h. */
34289 _ACEOF
34290 cat confdefs.h >>conftest.$ac_ext
34291 cat >>conftest.$ac_ext <<_ACEOF
34292 /* end confdefs.h. */
34293 $ac_includes_default
34294 #include <mISDNuser/isdn_net.h>
34295 _ACEOF
34296 rm -f conftest.$ac_objext
34297 if { (ac_try="$ac_compile"
34298 case "(($ac_try" in
34299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34300 *) ac_try_echo=$ac_try;;
34301 esac
34302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34303 (eval "$ac_compile") 2>conftest.er1
34304 ac_status=$?
34305 grep -v '^ *+' conftest.er1 >conftest.err
34306 rm -f conftest.er1
34307 cat conftest.err >&5
34308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34309 (exit $ac_status); } && {
34310 test -z "$ac_c_werror_flag" ||
34311 test ! -s conftest.err
34312 } && test -s conftest.$ac_objext; then
34313 ac_header_compiler=yes
34314 else
34315 echo "$as_me: failed program was:" >&5
34316 sed 's/^/| /' conftest.$ac_ext >&5
34318 ac_header_compiler=no
34321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34323 echo "${ECHO_T}$ac_header_compiler" >&6; }
34325 # Is the header present?
34326 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
34327 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
34328 cat >conftest.$ac_ext <<_ACEOF
34329 /* confdefs.h. */
34330 _ACEOF
34331 cat confdefs.h >>conftest.$ac_ext
34332 cat >>conftest.$ac_ext <<_ACEOF
34333 /* end confdefs.h. */
34334 #include <mISDNuser/isdn_net.h>
34335 _ACEOF
34336 if { (ac_try="$ac_cpp conftest.$ac_ext"
34337 case "(($ac_try" in
34338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34339 *) ac_try_echo=$ac_try;;
34340 esac
34341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34343 ac_status=$?
34344 grep -v '^ *+' conftest.er1 >conftest.err
34345 rm -f conftest.er1
34346 cat conftest.err >&5
34347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348 (exit $ac_status); } >/dev/null && {
34349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34350 test ! -s conftest.err
34351 }; then
34352 ac_header_preproc=yes
34353 else
34354 echo "$as_me: failed program was:" >&5
34355 sed 's/^/| /' conftest.$ac_ext >&5
34357 ac_header_preproc=no
34360 rm -f conftest.err conftest.$ac_ext
34361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34362 echo "${ECHO_T}$ac_header_preproc" >&6; }
34364 # So? What about this header?
34365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34366 yes:no: )
34367 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
34368 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34369 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
34370 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
34371 ac_header_preproc=yes
34373 no:yes:* )
34374 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
34375 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
34376 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
34377 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
34378 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
34379 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
34380 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
34381 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
34382 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
34383 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
34384 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
34385 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
34386 ( cat <<\_ASBOX
34387 ## ------------------------------- ##
34388 ## Report this to www.asterisk.org ##
34389 ## ------------------------------- ##
34390 _ASBOX
34391 ) | sed "s/^/$as_me: WARNING: /" >&2
34393 esac
34394 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34395 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34396 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34397 echo $ECHO_N "(cached) $ECHO_C" >&6
34398 else
34399 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
34401 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34402 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34405 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
34406 ISDNNET_HEADER_FOUND=1
34407 else
34408 ISDNNET_HEADER_FOUND=0
34412 CPPFLAGS="${saved_cppflags}"
34414 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
34415 ISDNNET_LIB=""
34416 ISDNNET_INCLUDE=""
34417 else
34418 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34419 ISDNNET_LIB=""
34421 PBX_ISDNNET=1
34422 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34424 cat >>confdefs.h <<_ACEOF
34425 #define HAVE_ISDNNET 1
34426 _ACEOF
34429 cat >>confdefs.h <<_ACEOF
34430 #define HAVE_ISDNNET_VERSION
34431 _ACEOF
34438 if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
34439 pbxlibdir=""
34440 # if --with-SUPPSERV=DIR has been specified, use it.
34441 if test "x${SUPPSERV_DIR}" != "x"; then
34442 if test -d ${SUPPSERV_DIR}/lib; then
34443 pbxlibdir="-L${SUPPSERV_DIR}/lib"
34444 else
34445 pbxlibdir="-L${SUPPSERV_DIR}"
34448 pbxfuncname="encodeFac"
34449 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34450 AST_SUPPSERV_FOUND=yes
34451 else
34452 as_ac_Lib=`echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
34453 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsuppserv" >&5
34454 echo $ECHO_N "checking for ${pbxfuncname} in -lsuppserv... $ECHO_C" >&6; }
34455 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34456 echo $ECHO_N "(cached) $ECHO_C" >&6
34457 else
34458 ac_check_lib_save_LIBS=$LIBS
34459 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
34460 cat >conftest.$ac_ext <<_ACEOF
34461 /* confdefs.h. */
34462 _ACEOF
34463 cat confdefs.h >>conftest.$ac_ext
34464 cat >>conftest.$ac_ext <<_ACEOF
34465 /* end confdefs.h. */
34467 /* Override any GCC internal prototype to avoid an error.
34468 Use char because int might match the return type of a GCC
34469 builtin and then its argument prototype would still apply. */
34470 #ifdef __cplusplus
34471 extern "C"
34472 #endif
34473 char ${pbxfuncname} ();
34475 main ()
34477 return ${pbxfuncname} ();
34479 return 0;
34481 _ACEOF
34482 rm -f conftest.$ac_objext conftest$ac_exeext
34483 if { (ac_try="$ac_link"
34484 case "(($ac_try" in
34485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34486 *) ac_try_echo=$ac_try;;
34487 esac
34488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34489 (eval "$ac_link") 2>conftest.er1
34490 ac_status=$?
34491 grep -v '^ *+' conftest.er1 >conftest.err
34492 rm -f conftest.er1
34493 cat conftest.err >&5
34494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34495 (exit $ac_status); } && {
34496 test -z "$ac_c_werror_flag" ||
34497 test ! -s conftest.err
34498 } && test -s conftest$ac_exeext &&
34499 $as_test_x conftest$ac_exeext; then
34500 eval "$as_ac_Lib=yes"
34501 else
34502 echo "$as_me: failed program was:" >&5
34503 sed 's/^/| /' conftest.$ac_ext >&5
34505 eval "$as_ac_Lib=no"
34508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34509 conftest$ac_exeext conftest.$ac_ext
34510 LIBS=$ac_check_lib_save_LIBS
34512 ac_res=`eval echo '${'$as_ac_Lib'}'`
34513 { echo "$as_me:$LINENO: result: $ac_res" >&5
34514 echo "${ECHO_T}$ac_res" >&6; }
34515 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34516 AST_SUPPSERV_FOUND=yes
34517 else
34518 AST_SUPPSERV_FOUND=no
34523 # now check for the header.
34524 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
34525 SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
34526 # if --with-SUPPSERV=DIR has been specified, use it.
34527 if test "x${SUPPSERV_DIR}" != "x"; then
34528 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
34530 SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
34531 if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
34532 SUPPSERV_HEADER_FOUND="1"
34533 else # check for the header
34534 saved_cppflags="${CPPFLAGS}"
34535 CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE} "
34536 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34537 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34538 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34539 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34540 echo $ECHO_N "(cached) $ECHO_C" >&6
34542 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34543 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34544 else
34545 # Is the header compilable?
34546 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
34547 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
34548 cat >conftest.$ac_ext <<_ACEOF
34549 /* confdefs.h. */
34550 _ACEOF
34551 cat confdefs.h >>conftest.$ac_ext
34552 cat >>conftest.$ac_ext <<_ACEOF
34553 /* end confdefs.h. */
34554 $ac_includes_default
34555 #include <mISDNuser/suppserv.h>
34556 _ACEOF
34557 rm -f conftest.$ac_objext
34558 if { (ac_try="$ac_compile"
34559 case "(($ac_try" in
34560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34561 *) ac_try_echo=$ac_try;;
34562 esac
34563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34564 (eval "$ac_compile") 2>conftest.er1
34565 ac_status=$?
34566 grep -v '^ *+' conftest.er1 >conftest.err
34567 rm -f conftest.er1
34568 cat conftest.err >&5
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); } && {
34571 test -z "$ac_c_werror_flag" ||
34572 test ! -s conftest.err
34573 } && test -s conftest.$ac_objext; then
34574 ac_header_compiler=yes
34575 else
34576 echo "$as_me: failed program was:" >&5
34577 sed 's/^/| /' conftest.$ac_ext >&5
34579 ac_header_compiler=no
34582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34584 echo "${ECHO_T}$ac_header_compiler" >&6; }
34586 # Is the header present?
34587 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
34588 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
34589 cat >conftest.$ac_ext <<_ACEOF
34590 /* confdefs.h. */
34591 _ACEOF
34592 cat confdefs.h >>conftest.$ac_ext
34593 cat >>conftest.$ac_ext <<_ACEOF
34594 /* end confdefs.h. */
34595 #include <mISDNuser/suppserv.h>
34596 _ACEOF
34597 if { (ac_try="$ac_cpp conftest.$ac_ext"
34598 case "(($ac_try" in
34599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34600 *) ac_try_echo=$ac_try;;
34601 esac
34602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34604 ac_status=$?
34605 grep -v '^ *+' conftest.er1 >conftest.err
34606 rm -f conftest.er1
34607 cat conftest.err >&5
34608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609 (exit $ac_status); } >/dev/null && {
34610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34611 test ! -s conftest.err
34612 }; then
34613 ac_header_preproc=yes
34614 else
34615 echo "$as_me: failed program was:" >&5
34616 sed 's/^/| /' conftest.$ac_ext >&5
34618 ac_header_preproc=no
34621 rm -f conftest.err conftest.$ac_ext
34622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34623 echo "${ECHO_T}$ac_header_preproc" >&6; }
34625 # So? What about this header?
34626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34627 yes:no: )
34628 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
34629 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34630 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
34631 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
34632 ac_header_preproc=yes
34634 no:yes:* )
34635 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
34636 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
34637 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
34638 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
34639 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
34640 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
34641 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
34642 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
34643 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
34644 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
34645 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
34646 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
34647 ( cat <<\_ASBOX
34648 ## ------------------------------- ##
34649 ## Report this to www.asterisk.org ##
34650 ## ------------------------------- ##
34651 _ASBOX
34652 ) | sed "s/^/$as_me: WARNING: /" >&2
34654 esac
34655 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34656 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34657 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34658 echo $ECHO_N "(cached) $ECHO_C" >&6
34659 else
34660 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
34662 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34663 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34666 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
34667 SUPPSERV_HEADER_FOUND=1
34668 else
34669 SUPPSERV_HEADER_FOUND=0
34673 CPPFLAGS="${saved_cppflags}"
34675 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
34676 SUPPSERV_LIB=""
34677 SUPPSERV_INCLUDE=""
34678 else
34679 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34680 SUPPSERV_LIB=""
34682 PBX_SUPPSERV=1
34683 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34685 cat >>confdefs.h <<_ACEOF
34686 #define HAVE_SUPPSERV 1
34687 _ACEOF
34690 cat >>confdefs.h <<_ACEOF
34691 #define HAVE_SUPPSERV_VERSION
34692 _ACEOF
34699 if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
34700 { echo "$as_me:$LINENO: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
34701 echo $ECHO_N "checking for Fac_RESULT in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34702 saved_cppflags="${CPPFLAGS}"
34703 if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
34704 MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
34706 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
34708 cat >conftest.$ac_ext <<_ACEOF
34709 /* confdefs.h. */
34710 _ACEOF
34711 cat confdefs.h >>conftest.$ac_ext
34712 cat >>conftest.$ac_ext <<_ACEOF
34713 /* end confdefs.h. */
34714 #include <mISDNuser/suppserv.h>
34716 main ()
34718 #if defined(Fac_RESULT)
34719 int foo = 0;
34720 #else
34721 int foo = bar;
34722 #endif
34726 return 0;
34728 _ACEOF
34729 rm -f conftest.$ac_objext
34730 if { (ac_try="$ac_compile"
34731 case "(($ac_try" in
34732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34733 *) ac_try_echo=$ac_try;;
34734 esac
34735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34736 (eval "$ac_compile") 2>conftest.er1
34737 ac_status=$?
34738 grep -v '^ *+' conftest.er1 >conftest.err
34739 rm -f conftest.er1
34740 cat conftest.err >&5
34741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); } && {
34743 test -z "$ac_c_werror_flag" ||
34744 test ! -s conftest.err
34745 } && test -s conftest.$ac_objext; then
34746 { echo "$as_me:$LINENO: result: yes" >&5
34747 echo "${ECHO_T}yes" >&6; }
34748 PBX_MISDN_FAC_RESULT=1
34750 cat >>confdefs.h <<\_ACEOF
34751 #define HAVE_MISDN_FAC_RESULT 1
34752 _ACEOF
34755 cat >>confdefs.h <<\_ACEOF
34756 #define HAVE_MISDN_FAC_RESULT_VERSION
34757 _ACEOF
34760 else
34761 echo "$as_me: failed program was:" >&5
34762 sed 's/^/| /' conftest.$ac_ext >&5
34764 { echo "$as_me:$LINENO: result: no" >&5
34765 echo "${ECHO_T}no" >&6; }
34769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34770 CPPFLAGS="${saved_cppflags}"
34775 if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
34776 { echo "$as_me:$LINENO: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
34777 echo $ECHO_N "checking for Fac_ERROR in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34778 saved_cppflags="${CPPFLAGS}"
34779 if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
34780 MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
34782 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
34784 cat >conftest.$ac_ext <<_ACEOF
34785 /* confdefs.h. */
34786 _ACEOF
34787 cat confdefs.h >>conftest.$ac_ext
34788 cat >>conftest.$ac_ext <<_ACEOF
34789 /* end confdefs.h. */
34790 #include <mISDNuser/suppserv.h>
34792 main ()
34794 #if defined(Fac_ERROR)
34795 int foo = 0;
34796 #else
34797 int foo = bar;
34798 #endif
34802 return 0;
34804 _ACEOF
34805 rm -f conftest.$ac_objext
34806 if { (ac_try="$ac_compile"
34807 case "(($ac_try" in
34808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34809 *) ac_try_echo=$ac_try;;
34810 esac
34811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34812 (eval "$ac_compile") 2>conftest.er1
34813 ac_status=$?
34814 grep -v '^ *+' conftest.er1 >conftest.err
34815 rm -f conftest.er1
34816 cat conftest.err >&5
34817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818 (exit $ac_status); } && {
34819 test -z "$ac_c_werror_flag" ||
34820 test ! -s conftest.err
34821 } && test -s conftest.$ac_objext; then
34822 { echo "$as_me:$LINENO: result: yes" >&5
34823 echo "${ECHO_T}yes" >&6; }
34824 PBX_MISDN_FAC_ERROR=1
34826 cat >>confdefs.h <<\_ACEOF
34827 #define HAVE_MISDN_FAC_ERROR 1
34828 _ACEOF
34831 cat >>confdefs.h <<\_ACEOF
34832 #define HAVE_MISDN_FAC_ERROR_VERSION
34833 _ACEOF
34836 else
34837 echo "$as_me: failed program was:" >&5
34838 sed 's/^/| /' conftest.$ac_ext >&5
34840 { echo "$as_me:$LINENO: result: no" >&5
34841 echo "${ECHO_T}no" >&6; }
34845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34846 CPPFLAGS="${saved_cppflags}"
34850 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34851 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
34852 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
34853 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34854 echo $ECHO_N "(cached) $ECHO_C" >&6
34856 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
34857 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
34858 else
34859 # Is the header compilable?
34860 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
34861 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
34862 cat >conftest.$ac_ext <<_ACEOF
34863 /* confdefs.h. */
34864 _ACEOF
34865 cat confdefs.h >>conftest.$ac_ext
34866 cat >>conftest.$ac_ext <<_ACEOF
34867 /* end confdefs.h. */
34868 $ac_includes_default
34869 #include <linux/mISDNdsp.h>
34870 _ACEOF
34871 rm -f conftest.$ac_objext
34872 if { (ac_try="$ac_compile"
34873 case "(($ac_try" in
34874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34875 *) ac_try_echo=$ac_try;;
34876 esac
34877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34878 (eval "$ac_compile") 2>conftest.er1
34879 ac_status=$?
34880 grep -v '^ *+' conftest.er1 >conftest.err
34881 rm -f conftest.er1
34882 cat conftest.err >&5
34883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34884 (exit $ac_status); } && {
34885 test -z "$ac_c_werror_flag" ||
34886 test ! -s conftest.err
34887 } && test -s conftest.$ac_objext; then
34888 ac_header_compiler=yes
34889 else
34890 echo "$as_me: failed program was:" >&5
34891 sed 's/^/| /' conftest.$ac_ext >&5
34893 ac_header_compiler=no
34896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34898 echo "${ECHO_T}$ac_header_compiler" >&6; }
34900 # Is the header present?
34901 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
34902 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
34903 cat >conftest.$ac_ext <<_ACEOF
34904 /* confdefs.h. */
34905 _ACEOF
34906 cat confdefs.h >>conftest.$ac_ext
34907 cat >>conftest.$ac_ext <<_ACEOF
34908 /* end confdefs.h. */
34909 #include <linux/mISDNdsp.h>
34910 _ACEOF
34911 if { (ac_try="$ac_cpp conftest.$ac_ext"
34912 case "(($ac_try" in
34913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34914 *) ac_try_echo=$ac_try;;
34915 esac
34916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34918 ac_status=$?
34919 grep -v '^ *+' conftest.er1 >conftest.err
34920 rm -f conftest.er1
34921 cat conftest.err >&5
34922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923 (exit $ac_status); } >/dev/null && {
34924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34925 test ! -s conftest.err
34926 }; then
34927 ac_header_preproc=yes
34928 else
34929 echo "$as_me: failed program was:" >&5
34930 sed 's/^/| /' conftest.$ac_ext >&5
34932 ac_header_preproc=no
34935 rm -f conftest.err conftest.$ac_ext
34936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34937 echo "${ECHO_T}$ac_header_preproc" >&6; }
34939 # So? What about this header?
34940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34941 yes:no: )
34942 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
34943 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34944 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
34945 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
34946 ac_header_preproc=yes
34948 no:yes:* )
34949 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
34950 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
34951 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
34952 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
34953 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
34954 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
34955 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
34956 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
34957 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
34958 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
34959 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
34960 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
34961 ( cat <<\_ASBOX
34962 ## ------------------------------- ##
34963 ## Report this to www.asterisk.org ##
34964 ## ------------------------------- ##
34965 _ASBOX
34966 ) | sed "s/^/$as_me: WARNING: /" >&2
34968 esac
34969 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
34970 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
34971 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34972 echo $ECHO_N "(cached) $ECHO_C" >&6
34973 else
34974 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
34976 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
34977 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
34980 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
34982 cat >>confdefs.h <<_ACEOF
34983 #define MISDN_1_2 1
34984 _ACEOF
34992 if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
34993 pbxlibdir=""
34994 # if --with-NBS=DIR has been specified, use it.
34995 if test "x${NBS_DIR}" != "x"; then
34996 if test -d ${NBS_DIR}/lib; then
34997 pbxlibdir="-L${NBS_DIR}/lib"
34998 else
34999 pbxlibdir="-L${NBS_DIR}"
35002 pbxfuncname="nbs_connect"
35003 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35004 AST_NBS_FOUND=yes
35005 else
35006 as_ac_Lib=`echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
35007 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnbs" >&5
35008 echo $ECHO_N "checking for ${pbxfuncname} in -lnbs... $ECHO_C" >&6; }
35009 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35010 echo $ECHO_N "(cached) $ECHO_C" >&6
35011 else
35012 ac_check_lib_save_LIBS=$LIBS
35013 LIBS="-lnbs ${pbxlibdir} $LIBS"
35014 cat >conftest.$ac_ext <<_ACEOF
35015 /* confdefs.h. */
35016 _ACEOF
35017 cat confdefs.h >>conftest.$ac_ext
35018 cat >>conftest.$ac_ext <<_ACEOF
35019 /* end confdefs.h. */
35021 /* Override any GCC internal prototype to avoid an error.
35022 Use char because int might match the return type of a GCC
35023 builtin and then its argument prototype would still apply. */
35024 #ifdef __cplusplus
35025 extern "C"
35026 #endif
35027 char ${pbxfuncname} ();
35029 main ()
35031 return ${pbxfuncname} ();
35033 return 0;
35035 _ACEOF
35036 rm -f conftest.$ac_objext conftest$ac_exeext
35037 if { (ac_try="$ac_link"
35038 case "(($ac_try" in
35039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35040 *) ac_try_echo=$ac_try;;
35041 esac
35042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35043 (eval "$ac_link") 2>conftest.er1
35044 ac_status=$?
35045 grep -v '^ *+' conftest.er1 >conftest.err
35046 rm -f conftest.er1
35047 cat conftest.err >&5
35048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35049 (exit $ac_status); } && {
35050 test -z "$ac_c_werror_flag" ||
35051 test ! -s conftest.err
35052 } && test -s conftest$ac_exeext &&
35053 $as_test_x conftest$ac_exeext; then
35054 eval "$as_ac_Lib=yes"
35055 else
35056 echo "$as_me: failed program was:" >&5
35057 sed 's/^/| /' conftest.$ac_ext >&5
35059 eval "$as_ac_Lib=no"
35062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35063 conftest$ac_exeext conftest.$ac_ext
35064 LIBS=$ac_check_lib_save_LIBS
35066 ac_res=`eval echo '${'$as_ac_Lib'}'`
35067 { echo "$as_me:$LINENO: result: $ac_res" >&5
35068 echo "${ECHO_T}$ac_res" >&6; }
35069 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35070 AST_NBS_FOUND=yes
35071 else
35072 AST_NBS_FOUND=no
35077 # now check for the header.
35078 if test "${AST_NBS_FOUND}" = "yes"; then
35079 NBS_LIB="${pbxlibdir} -lnbs "
35080 # if --with-NBS=DIR has been specified, use it.
35081 if test "x${NBS_DIR}" != "x"; then
35082 NBS_INCLUDE="-I${NBS_DIR}/include"
35084 NBS_INCLUDE="${NBS_INCLUDE} "
35085 if test "xnbs.h" = "x" ; then # no header, assume found
35086 NBS_HEADER_FOUND="1"
35087 else # check for the header
35088 saved_cppflags="${CPPFLAGS}"
35089 CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE} "
35090 if test "${ac_cv_header_nbs_h+set}" = set; then
35091 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35092 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35093 if test "${ac_cv_header_nbs_h+set}" = set; then
35094 echo $ECHO_N "(cached) $ECHO_C" >&6
35096 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35097 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35098 else
35099 # Is the header compilable?
35100 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
35101 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
35102 cat >conftest.$ac_ext <<_ACEOF
35103 /* confdefs.h. */
35104 _ACEOF
35105 cat confdefs.h >>conftest.$ac_ext
35106 cat >>conftest.$ac_ext <<_ACEOF
35107 /* end confdefs.h. */
35108 $ac_includes_default
35109 #include <nbs.h>
35110 _ACEOF
35111 rm -f conftest.$ac_objext
35112 if { (ac_try="$ac_compile"
35113 case "(($ac_try" in
35114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35115 *) ac_try_echo=$ac_try;;
35116 esac
35117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35118 (eval "$ac_compile") 2>conftest.er1
35119 ac_status=$?
35120 grep -v '^ *+' conftest.er1 >conftest.err
35121 rm -f conftest.er1
35122 cat conftest.err >&5
35123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124 (exit $ac_status); } && {
35125 test -z "$ac_c_werror_flag" ||
35126 test ! -s conftest.err
35127 } && test -s conftest.$ac_objext; then
35128 ac_header_compiler=yes
35129 else
35130 echo "$as_me: failed program was:" >&5
35131 sed 's/^/| /' conftest.$ac_ext >&5
35133 ac_header_compiler=no
35136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35138 echo "${ECHO_T}$ac_header_compiler" >&6; }
35140 # Is the header present?
35141 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
35142 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
35143 cat >conftest.$ac_ext <<_ACEOF
35144 /* confdefs.h. */
35145 _ACEOF
35146 cat confdefs.h >>conftest.$ac_ext
35147 cat >>conftest.$ac_ext <<_ACEOF
35148 /* end confdefs.h. */
35149 #include <nbs.h>
35150 _ACEOF
35151 if { (ac_try="$ac_cpp conftest.$ac_ext"
35152 case "(($ac_try" in
35153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35154 *) ac_try_echo=$ac_try;;
35155 esac
35156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35158 ac_status=$?
35159 grep -v '^ *+' conftest.er1 >conftest.err
35160 rm -f conftest.er1
35161 cat conftest.err >&5
35162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163 (exit $ac_status); } >/dev/null && {
35164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35165 test ! -s conftest.err
35166 }; then
35167 ac_header_preproc=yes
35168 else
35169 echo "$as_me: failed program was:" >&5
35170 sed 's/^/| /' conftest.$ac_ext >&5
35172 ac_header_preproc=no
35175 rm -f conftest.err conftest.$ac_ext
35176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35177 echo "${ECHO_T}$ac_header_preproc" >&6; }
35179 # So? What about this header?
35180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35181 yes:no: )
35182 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
35183 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35184 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
35185 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
35186 ac_header_preproc=yes
35188 no:yes:* )
35189 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
35190 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
35191 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
35192 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
35193 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
35194 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
35195 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
35196 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
35197 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
35198 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
35199 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
35200 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
35201 ( cat <<\_ASBOX
35202 ## ------------------------------- ##
35203 ## Report this to www.asterisk.org ##
35204 ## ------------------------------- ##
35205 _ASBOX
35206 ) | sed "s/^/$as_me: WARNING: /" >&2
35208 esac
35209 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35210 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35211 if test "${ac_cv_header_nbs_h+set}" = set; then
35212 echo $ECHO_N "(cached) $ECHO_C" >&6
35213 else
35214 ac_cv_header_nbs_h=$ac_header_preproc
35216 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35217 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35220 if test $ac_cv_header_nbs_h = yes; then
35221 NBS_HEADER_FOUND=1
35222 else
35223 NBS_HEADER_FOUND=0
35227 CPPFLAGS="${saved_cppflags}"
35229 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
35230 NBS_LIB=""
35231 NBS_INCLUDE=""
35232 else
35233 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35234 NBS_LIB=""
35236 PBX_NBS=1
35237 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35239 cat >>confdefs.h <<_ACEOF
35240 #define HAVE_NBS 1
35241 _ACEOF
35244 cat >>confdefs.h <<_ACEOF
35245 #define HAVE_NBS_VERSION
35246 _ACEOF
35254 if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
35255 pbxlibdir=""
35256 # if --with-NCURSES=DIR has been specified, use it.
35257 if test "x${NCURSES_DIR}" != "x"; then
35258 if test -d ${NCURSES_DIR}/lib; then
35259 pbxlibdir="-L${NCURSES_DIR}/lib"
35260 else
35261 pbxlibdir="-L${NCURSES_DIR}"
35264 pbxfuncname="initscr"
35265 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35266 AST_NCURSES_FOUND=yes
35267 else
35268 as_ac_Lib=`echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
35269 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lncurses" >&5
35270 echo $ECHO_N "checking for ${pbxfuncname} in -lncurses... $ECHO_C" >&6; }
35271 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35272 echo $ECHO_N "(cached) $ECHO_C" >&6
35273 else
35274 ac_check_lib_save_LIBS=$LIBS
35275 LIBS="-lncurses ${pbxlibdir} $LIBS"
35276 cat >conftest.$ac_ext <<_ACEOF
35277 /* confdefs.h. */
35278 _ACEOF
35279 cat confdefs.h >>conftest.$ac_ext
35280 cat >>conftest.$ac_ext <<_ACEOF
35281 /* end confdefs.h. */
35283 /* Override any GCC internal prototype to avoid an error.
35284 Use char because int might match the return type of a GCC
35285 builtin and then its argument prototype would still apply. */
35286 #ifdef __cplusplus
35287 extern "C"
35288 #endif
35289 char ${pbxfuncname} ();
35291 main ()
35293 return ${pbxfuncname} ();
35295 return 0;
35297 _ACEOF
35298 rm -f conftest.$ac_objext conftest$ac_exeext
35299 if { (ac_try="$ac_link"
35300 case "(($ac_try" in
35301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35302 *) ac_try_echo=$ac_try;;
35303 esac
35304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35305 (eval "$ac_link") 2>conftest.er1
35306 ac_status=$?
35307 grep -v '^ *+' conftest.er1 >conftest.err
35308 rm -f conftest.er1
35309 cat conftest.err >&5
35310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311 (exit $ac_status); } && {
35312 test -z "$ac_c_werror_flag" ||
35313 test ! -s conftest.err
35314 } && test -s conftest$ac_exeext &&
35315 $as_test_x conftest$ac_exeext; then
35316 eval "$as_ac_Lib=yes"
35317 else
35318 echo "$as_me: failed program was:" >&5
35319 sed 's/^/| /' conftest.$ac_ext >&5
35321 eval "$as_ac_Lib=no"
35324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35325 conftest$ac_exeext conftest.$ac_ext
35326 LIBS=$ac_check_lib_save_LIBS
35328 ac_res=`eval echo '${'$as_ac_Lib'}'`
35329 { echo "$as_me:$LINENO: result: $ac_res" >&5
35330 echo "${ECHO_T}$ac_res" >&6; }
35331 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35332 AST_NCURSES_FOUND=yes
35333 else
35334 AST_NCURSES_FOUND=no
35339 # now check for the header.
35340 if test "${AST_NCURSES_FOUND}" = "yes"; then
35341 NCURSES_LIB="${pbxlibdir} -lncurses "
35342 # if --with-NCURSES=DIR has been specified, use it.
35343 if test "x${NCURSES_DIR}" != "x"; then
35344 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
35346 NCURSES_INCLUDE="${NCURSES_INCLUDE} "
35347 if test "xcurses.h" = "x" ; then # no header, assume found
35348 NCURSES_HEADER_FOUND="1"
35349 else # check for the header
35350 saved_cppflags="${CPPFLAGS}"
35351 CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE} "
35352 if test "${ac_cv_header_curses_h+set}" = set; then
35353 { echo "$as_me:$LINENO: checking for curses.h" >&5
35354 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35355 if test "${ac_cv_header_curses_h+set}" = set; then
35356 echo $ECHO_N "(cached) $ECHO_C" >&6
35358 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35359 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35360 else
35361 # Is the header compilable?
35362 { echo "$as_me:$LINENO: checking curses.h usability" >&5
35363 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
35364 cat >conftest.$ac_ext <<_ACEOF
35365 /* confdefs.h. */
35366 _ACEOF
35367 cat confdefs.h >>conftest.$ac_ext
35368 cat >>conftest.$ac_ext <<_ACEOF
35369 /* end confdefs.h. */
35370 $ac_includes_default
35371 #include <curses.h>
35372 _ACEOF
35373 rm -f conftest.$ac_objext
35374 if { (ac_try="$ac_compile"
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_compile") 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); } && {
35387 test -z "$ac_c_werror_flag" ||
35388 test ! -s conftest.err
35389 } && test -s conftest.$ac_objext; then
35390 ac_header_compiler=yes
35391 else
35392 echo "$as_me: failed program was:" >&5
35393 sed 's/^/| /' conftest.$ac_ext >&5
35395 ac_header_compiler=no
35398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35400 echo "${ECHO_T}$ac_header_compiler" >&6; }
35402 # Is the header present?
35403 { echo "$as_me:$LINENO: checking curses.h presence" >&5
35404 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
35405 cat >conftest.$ac_ext <<_ACEOF
35406 /* confdefs.h. */
35407 _ACEOF
35408 cat confdefs.h >>conftest.$ac_ext
35409 cat >>conftest.$ac_ext <<_ACEOF
35410 /* end confdefs.h. */
35411 #include <curses.h>
35412 _ACEOF
35413 if { (ac_try="$ac_cpp conftest.$ac_ext"
35414 case "(($ac_try" in
35415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35416 *) ac_try_echo=$ac_try;;
35417 esac
35418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35420 ac_status=$?
35421 grep -v '^ *+' conftest.er1 >conftest.err
35422 rm -f conftest.er1
35423 cat conftest.err >&5
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); } >/dev/null && {
35426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35427 test ! -s conftest.err
35428 }; then
35429 ac_header_preproc=yes
35430 else
35431 echo "$as_me: failed program was:" >&5
35432 sed 's/^/| /' conftest.$ac_ext >&5
35434 ac_header_preproc=no
35437 rm -f conftest.err conftest.$ac_ext
35438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35439 echo "${ECHO_T}$ac_header_preproc" >&6; }
35441 # So? What about this header?
35442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35443 yes:no: )
35444 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
35445 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35446 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
35447 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
35448 ac_header_preproc=yes
35450 no:yes:* )
35451 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
35452 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
35453 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
35454 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
35455 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
35456 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
35457 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
35458 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
35459 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
35460 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
35461 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
35462 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
35463 ( cat <<\_ASBOX
35464 ## ------------------------------- ##
35465 ## Report this to www.asterisk.org ##
35466 ## ------------------------------- ##
35467 _ASBOX
35468 ) | sed "s/^/$as_me: WARNING: /" >&2
35470 esac
35471 { echo "$as_me:$LINENO: checking for curses.h" >&5
35472 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35473 if test "${ac_cv_header_curses_h+set}" = set; then
35474 echo $ECHO_N "(cached) $ECHO_C" >&6
35475 else
35476 ac_cv_header_curses_h=$ac_header_preproc
35478 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35479 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35482 if test $ac_cv_header_curses_h = yes; then
35483 NCURSES_HEADER_FOUND=1
35484 else
35485 NCURSES_HEADER_FOUND=0
35489 CPPFLAGS="${saved_cppflags}"
35491 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
35492 NCURSES_LIB=""
35493 NCURSES_INCLUDE=""
35494 else
35495 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35496 NCURSES_LIB=""
35498 PBX_NCURSES=1
35499 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35501 cat >>confdefs.h <<_ACEOF
35502 #define HAVE_NCURSES 1
35503 _ACEOF
35506 cat >>confdefs.h <<_ACEOF
35507 #define HAVE_NCURSES_VERSION
35508 _ACEOF
35516 if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
35517 PBX_NETSNMP=0
35518 if test -n "$ac_tool_prefix"; then
35519 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
35520 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
35521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35523 if test "${ac_cv_prog_CONFIG_NETSNMP+set}" = set; then
35524 echo $ECHO_N "(cached) $ECHO_C" >&6
35525 else
35526 if test -n "$CONFIG_NETSNMP"; then
35527 ac_cv_prog_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test.
35528 else
35529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35530 for as_dir in $PATH
35532 IFS=$as_save_IFS
35533 test -z "$as_dir" && as_dir=.
35534 for ac_exec_ext in '' $ac_executable_extensions; do
35535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35536 ac_cv_prog_CONFIG_NETSNMP="${ac_tool_prefix}net-snmp-config"
35537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35538 break 2
35540 done
35541 done
35542 IFS=$as_save_IFS
35546 CONFIG_NETSNMP=$ac_cv_prog_CONFIG_NETSNMP
35547 if test -n "$CONFIG_NETSNMP"; then
35548 { echo "$as_me:$LINENO: result: $CONFIG_NETSNMP" >&5
35549 echo "${ECHO_T}$CONFIG_NETSNMP" >&6; }
35550 else
35551 { echo "$as_me:$LINENO: result: no" >&5
35552 echo "${ECHO_T}no" >&6; }
35557 if test -z "$ac_cv_prog_CONFIG_NETSNMP"; then
35558 ac_ct_CONFIG_NETSNMP=$CONFIG_NETSNMP
35559 # Extract the first word of "net-snmp-config", so it can be a program name with args.
35560 set dummy net-snmp-config; ac_word=$2
35561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35563 if test "${ac_cv_prog_ac_ct_CONFIG_NETSNMP+set}" = set; then
35564 echo $ECHO_N "(cached) $ECHO_C" >&6
35565 else
35566 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35567 ac_cv_prog_ac_ct_CONFIG_NETSNMP="$ac_ct_CONFIG_NETSNMP" # Let the user override the test.
35568 else
35569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35570 for as_dir in $PATH
35572 IFS=$as_save_IFS
35573 test -z "$as_dir" && as_dir=.
35574 for ac_exec_ext in '' $ac_executable_extensions; do
35575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35576 ac_cv_prog_ac_ct_CONFIG_NETSNMP="net-snmp-config"
35577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35578 break 2
35580 done
35581 done
35582 IFS=$as_save_IFS
35586 ac_ct_CONFIG_NETSNMP=$ac_cv_prog_ac_ct_CONFIG_NETSNMP
35587 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35588 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_NETSNMP" >&5
35589 echo "${ECHO_T}$ac_ct_CONFIG_NETSNMP" >&6; }
35590 else
35591 { echo "$as_me:$LINENO: result: no" >&5
35592 echo "${ECHO_T}no" >&6; }
35595 if test "x$ac_ct_CONFIG_NETSNMP" = x; then
35596 CONFIG_NETSNMP="No"
35597 else
35598 case $cross_compiling:$ac_tool_warned in
35599 yes:)
35600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35601 whose name does not start with the host triplet. If you think this
35602 configuration is useful to you, please write to autoconf@gnu.org." >&5
35603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35604 whose name does not start with the host triplet. If you think this
35605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35606 ac_tool_warned=yes ;;
35607 esac
35608 CONFIG_NETSNMP=$ac_ct_CONFIG_NETSNMP
35610 else
35611 CONFIG_NETSNMP="$ac_cv_prog_CONFIG_NETSNMP"
35614 if test ! "x${CONFIG_NETSNMP}" = xNo; then
35615 if test x"" = x ; then A=--cflags ; else A="" ; fi
35616 NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
35617 if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
35618 NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
35619 if test x"#include <net-snmp/net-snmp-config.h>
35620 #include <net-snmp/net-snmp-includes.h>
35621 #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
35622 saved_cppflags="${CPPFLAGS}"
35623 if test "x${NETSNMP_DIR}" != "x"; then
35624 NETSNMP_INCLUDE="-I${NETSNMP_DIR}/include"
35626 CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
35628 saved_ldflags="${LDFLAGS}"
35629 LDFLAGS="${NETSNMP_LIB}"
35631 cat >conftest.$ac_ext <<_ACEOF
35632 /* confdefs.h. */
35633 _ACEOF
35634 cat confdefs.h >>conftest.$ac_ext
35635 cat >>conftest.$ac_ext <<_ACEOF
35636 /* end confdefs.h. */
35637 #include <net-snmp/net-snmp-config.h>
35638 #include <net-snmp/net-snmp-includes.h>
35639 #include <net-snmp/agent/net-snmp-agent-includes.h>
35641 main ()
35643 int callback = snmp_register_callback(0, 0, NULL, NULL);
35646 return 0;
35648 _ACEOF
35649 rm -f conftest.$ac_objext conftest$ac_exeext
35650 if { (ac_try="$ac_link"
35651 case "(($ac_try" in
35652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35653 *) ac_try_echo=$ac_try;;
35654 esac
35655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35656 (eval "$ac_link") 2>conftest.er1
35657 ac_status=$?
35658 grep -v '^ *+' conftest.er1 >conftest.err
35659 rm -f conftest.er1
35660 cat conftest.err >&5
35661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35662 (exit $ac_status); } && {
35663 test -z "$ac_c_werror_flag" ||
35664 test ! -s conftest.err
35665 } && test -s conftest$ac_exeext &&
35666 $as_test_x conftest$ac_exeext; then
35667 PBX_NETSNMP=1
35669 cat >>confdefs.h <<\_ACEOF
35670 #define HAVE_NETSNMP 1
35671 _ACEOF
35674 else
35675 echo "$as_me: failed program was:" >&5
35676 sed 's/^/| /' conftest.$ac_ext >&5
35682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35683 conftest$ac_exeext conftest.$ac_ext
35684 CPPFLAGS="${saved_cppflags}"
35685 LDFLAGS="${saved_ldflags}"
35686 else
35687 PBX_NETSNMP=1
35689 cat >>confdefs.h <<\_ACEOF
35690 #define HAVE_NETSNMP 1
35691 _ACEOF
35699 if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
35700 pbxlibdir=""
35701 # if --with-NEWT=DIR has been specified, use it.
35702 if test "x${NEWT_DIR}" != "x"; then
35703 if test -d ${NEWT_DIR}/lib; then
35704 pbxlibdir="-L${NEWT_DIR}/lib"
35705 else
35706 pbxlibdir="-L${NEWT_DIR}"
35709 pbxfuncname="newtBell"
35710 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35711 AST_NEWT_FOUND=yes
35712 else
35713 as_ac_Lib=`echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
35714 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnewt" >&5
35715 echo $ECHO_N "checking for ${pbxfuncname} in -lnewt... $ECHO_C" >&6; }
35716 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35717 echo $ECHO_N "(cached) $ECHO_C" >&6
35718 else
35719 ac_check_lib_save_LIBS=$LIBS
35720 LIBS="-lnewt ${pbxlibdir} $LIBS"
35721 cat >conftest.$ac_ext <<_ACEOF
35722 /* confdefs.h. */
35723 _ACEOF
35724 cat confdefs.h >>conftest.$ac_ext
35725 cat >>conftest.$ac_ext <<_ACEOF
35726 /* end confdefs.h. */
35728 /* Override any GCC internal prototype to avoid an error.
35729 Use char because int might match the return type of a GCC
35730 builtin and then its argument prototype would still apply. */
35731 #ifdef __cplusplus
35732 extern "C"
35733 #endif
35734 char ${pbxfuncname} ();
35736 main ()
35738 return ${pbxfuncname} ();
35740 return 0;
35742 _ACEOF
35743 rm -f conftest.$ac_objext conftest$ac_exeext
35744 if { (ac_try="$ac_link"
35745 case "(($ac_try" in
35746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35747 *) ac_try_echo=$ac_try;;
35748 esac
35749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35750 (eval "$ac_link") 2>conftest.er1
35751 ac_status=$?
35752 grep -v '^ *+' conftest.er1 >conftest.err
35753 rm -f conftest.er1
35754 cat conftest.err >&5
35755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756 (exit $ac_status); } && {
35757 test -z "$ac_c_werror_flag" ||
35758 test ! -s conftest.err
35759 } && test -s conftest$ac_exeext &&
35760 $as_test_x conftest$ac_exeext; then
35761 eval "$as_ac_Lib=yes"
35762 else
35763 echo "$as_me: failed program was:" >&5
35764 sed 's/^/| /' conftest.$ac_ext >&5
35766 eval "$as_ac_Lib=no"
35769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35770 conftest$ac_exeext conftest.$ac_ext
35771 LIBS=$ac_check_lib_save_LIBS
35773 ac_res=`eval echo '${'$as_ac_Lib'}'`
35774 { echo "$as_me:$LINENO: result: $ac_res" >&5
35775 echo "${ECHO_T}$ac_res" >&6; }
35776 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35777 AST_NEWT_FOUND=yes
35778 else
35779 AST_NEWT_FOUND=no
35784 # now check for the header.
35785 if test "${AST_NEWT_FOUND}" = "yes"; then
35786 NEWT_LIB="${pbxlibdir} -lnewt "
35787 # if --with-NEWT=DIR has been specified, use it.
35788 if test "x${NEWT_DIR}" != "x"; then
35789 NEWT_INCLUDE="-I${NEWT_DIR}/include"
35791 NEWT_INCLUDE="${NEWT_INCLUDE} "
35792 if test "xnewt.h" = "x" ; then # no header, assume found
35793 NEWT_HEADER_FOUND="1"
35794 else # check for the header
35795 saved_cppflags="${CPPFLAGS}"
35796 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE} "
35797 if test "${ac_cv_header_newt_h+set}" = set; then
35798 { echo "$as_me:$LINENO: checking for newt.h" >&5
35799 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
35800 if test "${ac_cv_header_newt_h+set}" = set; then
35801 echo $ECHO_N "(cached) $ECHO_C" >&6
35803 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
35804 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
35805 else
35806 # Is the header compilable?
35807 { echo "$as_me:$LINENO: checking newt.h usability" >&5
35808 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
35809 cat >conftest.$ac_ext <<_ACEOF
35810 /* confdefs.h. */
35811 _ACEOF
35812 cat confdefs.h >>conftest.$ac_ext
35813 cat >>conftest.$ac_ext <<_ACEOF
35814 /* end confdefs.h. */
35815 $ac_includes_default
35816 #include <newt.h>
35817 _ACEOF
35818 rm -f conftest.$ac_objext
35819 if { (ac_try="$ac_compile"
35820 case "(($ac_try" in
35821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35822 *) ac_try_echo=$ac_try;;
35823 esac
35824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35825 (eval "$ac_compile") 2>conftest.er1
35826 ac_status=$?
35827 grep -v '^ *+' conftest.er1 >conftest.err
35828 rm -f conftest.er1
35829 cat conftest.err >&5
35830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35831 (exit $ac_status); } && {
35832 test -z "$ac_c_werror_flag" ||
35833 test ! -s conftest.err
35834 } && test -s conftest.$ac_objext; then
35835 ac_header_compiler=yes
35836 else
35837 echo "$as_me: failed program was:" >&5
35838 sed 's/^/| /' conftest.$ac_ext >&5
35840 ac_header_compiler=no
35843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35845 echo "${ECHO_T}$ac_header_compiler" >&6; }
35847 # Is the header present?
35848 { echo "$as_me:$LINENO: checking newt.h presence" >&5
35849 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
35850 cat >conftest.$ac_ext <<_ACEOF
35851 /* confdefs.h. */
35852 _ACEOF
35853 cat confdefs.h >>conftest.$ac_ext
35854 cat >>conftest.$ac_ext <<_ACEOF
35855 /* end confdefs.h. */
35856 #include <newt.h>
35857 _ACEOF
35858 if { (ac_try="$ac_cpp conftest.$ac_ext"
35859 case "(($ac_try" in
35860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35861 *) ac_try_echo=$ac_try;;
35862 esac
35863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35865 ac_status=$?
35866 grep -v '^ *+' conftest.er1 >conftest.err
35867 rm -f conftest.er1
35868 cat conftest.err >&5
35869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870 (exit $ac_status); } >/dev/null && {
35871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35872 test ! -s conftest.err
35873 }; then
35874 ac_header_preproc=yes
35875 else
35876 echo "$as_me: failed program was:" >&5
35877 sed 's/^/| /' conftest.$ac_ext >&5
35879 ac_header_preproc=no
35882 rm -f conftest.err conftest.$ac_ext
35883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35884 echo "${ECHO_T}$ac_header_preproc" >&6; }
35886 # So? What about this header?
35887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35888 yes:no: )
35889 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
35890 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35891 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
35892 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
35893 ac_header_preproc=yes
35895 no:yes:* )
35896 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
35897 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
35898 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
35899 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
35900 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
35901 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
35902 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
35903 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
35904 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
35905 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
35906 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
35907 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
35908 ( cat <<\_ASBOX
35909 ## ------------------------------- ##
35910 ## Report this to www.asterisk.org ##
35911 ## ------------------------------- ##
35912 _ASBOX
35913 ) | sed "s/^/$as_me: WARNING: /" >&2
35915 esac
35916 { echo "$as_me:$LINENO: checking for newt.h" >&5
35917 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
35918 if test "${ac_cv_header_newt_h+set}" = set; then
35919 echo $ECHO_N "(cached) $ECHO_C" >&6
35920 else
35921 ac_cv_header_newt_h=$ac_header_preproc
35923 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
35924 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
35927 if test $ac_cv_header_newt_h = yes; then
35928 NEWT_HEADER_FOUND=1
35929 else
35930 NEWT_HEADER_FOUND=0
35934 CPPFLAGS="${saved_cppflags}"
35936 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
35937 NEWT_LIB=""
35938 NEWT_INCLUDE=""
35939 else
35940 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35941 NEWT_LIB=""
35943 PBX_NEWT=1
35944 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35946 cat >>confdefs.h <<_ACEOF
35947 #define HAVE_NEWT 1
35948 _ACEOF
35951 cat >>confdefs.h <<_ACEOF
35952 #define HAVE_NEWT_VERSION
35953 _ACEOF
35961 if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
35962 pbxlibdir=""
35963 # if --with-UNIXODBC=DIR has been specified, use it.
35964 if test "x${UNIXODBC_DIR}" != "x"; then
35965 if test -d ${UNIXODBC_DIR}/lib; then
35966 pbxlibdir="-L${UNIXODBC_DIR}/lib"
35967 else
35968 pbxlibdir="-L${UNIXODBC_DIR}"
35971 pbxfuncname="SQLConnect"
35972 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35973 AST_UNIXODBC_FOUND=yes
35974 else
35975 as_ac_Lib=`echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
35976 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lodbc" >&5
35977 echo $ECHO_N "checking for ${pbxfuncname} in -lodbc... $ECHO_C" >&6; }
35978 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35979 echo $ECHO_N "(cached) $ECHO_C" >&6
35980 else
35981 ac_check_lib_save_LIBS=$LIBS
35982 LIBS="-lodbc ${pbxlibdir} $LIBS"
35983 cat >conftest.$ac_ext <<_ACEOF
35984 /* confdefs.h. */
35985 _ACEOF
35986 cat confdefs.h >>conftest.$ac_ext
35987 cat >>conftest.$ac_ext <<_ACEOF
35988 /* end confdefs.h. */
35990 /* Override any GCC internal prototype to avoid an error.
35991 Use char because int might match the return type of a GCC
35992 builtin and then its argument prototype would still apply. */
35993 #ifdef __cplusplus
35994 extern "C"
35995 #endif
35996 char ${pbxfuncname} ();
35998 main ()
36000 return ${pbxfuncname} ();
36002 return 0;
36004 _ACEOF
36005 rm -f conftest.$ac_objext conftest$ac_exeext
36006 if { (ac_try="$ac_link"
36007 case "(($ac_try" in
36008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36009 *) ac_try_echo=$ac_try;;
36010 esac
36011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36012 (eval "$ac_link") 2>conftest.er1
36013 ac_status=$?
36014 grep -v '^ *+' conftest.er1 >conftest.err
36015 rm -f conftest.er1
36016 cat conftest.err >&5
36017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018 (exit $ac_status); } && {
36019 test -z "$ac_c_werror_flag" ||
36020 test ! -s conftest.err
36021 } && test -s conftest$ac_exeext &&
36022 $as_test_x conftest$ac_exeext; then
36023 eval "$as_ac_Lib=yes"
36024 else
36025 echo "$as_me: failed program was:" >&5
36026 sed 's/^/| /' conftest.$ac_ext >&5
36028 eval "$as_ac_Lib=no"
36031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36032 conftest$ac_exeext conftest.$ac_ext
36033 LIBS=$ac_check_lib_save_LIBS
36035 ac_res=`eval echo '${'$as_ac_Lib'}'`
36036 { echo "$as_me:$LINENO: result: $ac_res" >&5
36037 echo "${ECHO_T}$ac_res" >&6; }
36038 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36039 AST_UNIXODBC_FOUND=yes
36040 else
36041 AST_UNIXODBC_FOUND=no
36046 # now check for the header.
36047 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
36048 UNIXODBC_LIB="${pbxlibdir} -lodbc "
36049 # if --with-UNIXODBC=DIR has been specified, use it.
36050 if test "x${UNIXODBC_DIR}" != "x"; then
36051 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
36053 UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
36054 if test "xsql.h" = "x" ; then # no header, assume found
36055 UNIXODBC_HEADER_FOUND="1"
36056 else # check for the header
36057 saved_cppflags="${CPPFLAGS}"
36058 CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE} "
36059 if test "${ac_cv_header_sql_h+set}" = set; then
36060 { echo "$as_me:$LINENO: checking for sql.h" >&5
36061 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36062 if test "${ac_cv_header_sql_h+set}" = set; then
36063 echo $ECHO_N "(cached) $ECHO_C" >&6
36065 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36066 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36067 else
36068 # Is the header compilable?
36069 { echo "$as_me:$LINENO: checking sql.h usability" >&5
36070 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
36071 cat >conftest.$ac_ext <<_ACEOF
36072 /* confdefs.h. */
36073 _ACEOF
36074 cat confdefs.h >>conftest.$ac_ext
36075 cat >>conftest.$ac_ext <<_ACEOF
36076 /* end confdefs.h. */
36077 $ac_includes_default
36078 #include <sql.h>
36079 _ACEOF
36080 rm -f conftest.$ac_objext
36081 if { (ac_try="$ac_compile"
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_compile") 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); } && {
36094 test -z "$ac_c_werror_flag" ||
36095 test ! -s conftest.err
36096 } && test -s conftest.$ac_objext; then
36097 ac_header_compiler=yes
36098 else
36099 echo "$as_me: failed program was:" >&5
36100 sed 's/^/| /' conftest.$ac_ext >&5
36102 ac_header_compiler=no
36105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36107 echo "${ECHO_T}$ac_header_compiler" >&6; }
36109 # Is the header present?
36110 { echo "$as_me:$LINENO: checking sql.h presence" >&5
36111 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
36112 cat >conftest.$ac_ext <<_ACEOF
36113 /* confdefs.h. */
36114 _ACEOF
36115 cat confdefs.h >>conftest.$ac_ext
36116 cat >>conftest.$ac_ext <<_ACEOF
36117 /* end confdefs.h. */
36118 #include <sql.h>
36119 _ACEOF
36120 if { (ac_try="$ac_cpp conftest.$ac_ext"
36121 case "(($ac_try" in
36122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36123 *) ac_try_echo=$ac_try;;
36124 esac
36125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36127 ac_status=$?
36128 grep -v '^ *+' conftest.er1 >conftest.err
36129 rm -f conftest.er1
36130 cat conftest.err >&5
36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132 (exit $ac_status); } >/dev/null && {
36133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36134 test ! -s conftest.err
36135 }; then
36136 ac_header_preproc=yes
36137 else
36138 echo "$as_me: failed program was:" >&5
36139 sed 's/^/| /' conftest.$ac_ext >&5
36141 ac_header_preproc=no
36144 rm -f conftest.err conftest.$ac_ext
36145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36146 echo "${ECHO_T}$ac_header_preproc" >&6; }
36148 # So? What about this header?
36149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36150 yes:no: )
36151 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
36152 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36153 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
36154 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
36155 ac_header_preproc=yes
36157 no:yes:* )
36158 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
36159 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
36160 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
36161 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
36162 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
36163 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
36164 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
36165 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
36166 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
36167 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
36168 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
36169 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
36170 ( cat <<\_ASBOX
36171 ## ------------------------------- ##
36172 ## Report this to www.asterisk.org ##
36173 ## ------------------------------- ##
36174 _ASBOX
36175 ) | sed "s/^/$as_me: WARNING: /" >&2
36177 esac
36178 { echo "$as_me:$LINENO: checking for sql.h" >&5
36179 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36180 if test "${ac_cv_header_sql_h+set}" = set; then
36181 echo $ECHO_N "(cached) $ECHO_C" >&6
36182 else
36183 ac_cv_header_sql_h=$ac_header_preproc
36185 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36186 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36189 if test $ac_cv_header_sql_h = yes; then
36190 UNIXODBC_HEADER_FOUND=1
36191 else
36192 UNIXODBC_HEADER_FOUND=0
36196 CPPFLAGS="${saved_cppflags}"
36198 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
36199 UNIXODBC_LIB=""
36200 UNIXODBC_INCLUDE=""
36201 else
36202 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36203 UNIXODBC_LIB=""
36205 PBX_UNIXODBC=1
36206 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36208 cat >>confdefs.h <<_ACEOF
36209 #define HAVE_UNIXODBC 1
36210 _ACEOF
36213 cat >>confdefs.h <<_ACEOF
36214 #define HAVE_UNIXODBC_VERSION
36215 _ACEOF
36223 if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
36224 pbxlibdir=""
36225 # if --with-OGG=DIR has been specified, use it.
36226 if test "x${OGG_DIR}" != "x"; then
36227 if test -d ${OGG_DIR}/lib; then
36228 pbxlibdir="-L${OGG_DIR}/lib"
36229 else
36230 pbxlibdir="-L${OGG_DIR}"
36233 pbxfuncname="ogg_sync_init"
36234 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36235 AST_OGG_FOUND=yes
36236 else
36237 as_ac_Lib=`echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
36238 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -logg" >&5
36239 echo $ECHO_N "checking for ${pbxfuncname} in -logg... $ECHO_C" >&6; }
36240 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36241 echo $ECHO_N "(cached) $ECHO_C" >&6
36242 else
36243 ac_check_lib_save_LIBS=$LIBS
36244 LIBS="-logg ${pbxlibdir} $LIBS"
36245 cat >conftest.$ac_ext <<_ACEOF
36246 /* confdefs.h. */
36247 _ACEOF
36248 cat confdefs.h >>conftest.$ac_ext
36249 cat >>conftest.$ac_ext <<_ACEOF
36250 /* end confdefs.h. */
36252 /* Override any GCC internal prototype to avoid an error.
36253 Use char because int might match the return type of a GCC
36254 builtin and then its argument prototype would still apply. */
36255 #ifdef __cplusplus
36256 extern "C"
36257 #endif
36258 char ${pbxfuncname} ();
36260 main ()
36262 return ${pbxfuncname} ();
36264 return 0;
36266 _ACEOF
36267 rm -f conftest.$ac_objext conftest$ac_exeext
36268 if { (ac_try="$ac_link"
36269 case "(($ac_try" in
36270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36271 *) ac_try_echo=$ac_try;;
36272 esac
36273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36274 (eval "$ac_link") 2>conftest.er1
36275 ac_status=$?
36276 grep -v '^ *+' conftest.er1 >conftest.err
36277 rm -f conftest.er1
36278 cat conftest.err >&5
36279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36280 (exit $ac_status); } && {
36281 test -z "$ac_c_werror_flag" ||
36282 test ! -s conftest.err
36283 } && test -s conftest$ac_exeext &&
36284 $as_test_x conftest$ac_exeext; then
36285 eval "$as_ac_Lib=yes"
36286 else
36287 echo "$as_me: failed program was:" >&5
36288 sed 's/^/| /' conftest.$ac_ext >&5
36290 eval "$as_ac_Lib=no"
36293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36294 conftest$ac_exeext conftest.$ac_ext
36295 LIBS=$ac_check_lib_save_LIBS
36297 ac_res=`eval echo '${'$as_ac_Lib'}'`
36298 { echo "$as_me:$LINENO: result: $ac_res" >&5
36299 echo "${ECHO_T}$ac_res" >&6; }
36300 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36301 AST_OGG_FOUND=yes
36302 else
36303 AST_OGG_FOUND=no
36308 # now check for the header.
36309 if test "${AST_OGG_FOUND}" = "yes"; then
36310 OGG_LIB="${pbxlibdir} -logg "
36311 # if --with-OGG=DIR has been specified, use it.
36312 if test "x${OGG_DIR}" != "x"; then
36313 OGG_INCLUDE="-I${OGG_DIR}/include"
36315 OGG_INCLUDE="${OGG_INCLUDE} "
36316 if test "x" = "x" ; then # no header, assume found
36317 OGG_HEADER_FOUND="1"
36318 else # check for the header
36319 saved_cppflags="${CPPFLAGS}"
36320 CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE} "
36321 if test "${ac_cv_header_+set}" = set; then
36322 { echo "$as_me:$LINENO: checking for " >&5
36323 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36324 if test "${ac_cv_header_+set}" = set; then
36325 echo $ECHO_N "(cached) $ECHO_C" >&6
36327 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36328 echo "${ECHO_T}$ac_cv_header_" >&6; }
36329 else
36330 # Is the header compilable?
36331 { echo "$as_me:$LINENO: checking usability" >&5
36332 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
36333 cat >conftest.$ac_ext <<_ACEOF
36334 /* confdefs.h. */
36335 _ACEOF
36336 cat confdefs.h >>conftest.$ac_ext
36337 cat >>conftest.$ac_ext <<_ACEOF
36338 /* end confdefs.h. */
36339 $ac_includes_default
36340 #include <>
36341 _ACEOF
36342 rm -f conftest.$ac_objext
36343 if { (ac_try="$ac_compile"
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_compile") 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); } && {
36356 test -z "$ac_c_werror_flag" ||
36357 test ! -s conftest.err
36358 } && test -s conftest.$ac_objext; then
36359 ac_header_compiler=yes
36360 else
36361 echo "$as_me: failed program was:" >&5
36362 sed 's/^/| /' conftest.$ac_ext >&5
36364 ac_header_compiler=no
36367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36369 echo "${ECHO_T}$ac_header_compiler" >&6; }
36371 # Is the header present?
36372 { echo "$as_me:$LINENO: checking presence" >&5
36373 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
36374 cat >conftest.$ac_ext <<_ACEOF
36375 /* confdefs.h. */
36376 _ACEOF
36377 cat confdefs.h >>conftest.$ac_ext
36378 cat >>conftest.$ac_ext <<_ACEOF
36379 /* end confdefs.h. */
36380 #include <>
36381 _ACEOF
36382 if { (ac_try="$ac_cpp conftest.$ac_ext"
36383 case "(($ac_try" in
36384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36385 *) ac_try_echo=$ac_try;;
36386 esac
36387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36389 ac_status=$?
36390 grep -v '^ *+' conftest.er1 >conftest.err
36391 rm -f conftest.er1
36392 cat conftest.err >&5
36393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36394 (exit $ac_status); } >/dev/null && {
36395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36396 test ! -s conftest.err
36397 }; then
36398 ac_header_preproc=yes
36399 else
36400 echo "$as_me: failed program was:" >&5
36401 sed 's/^/| /' conftest.$ac_ext >&5
36403 ac_header_preproc=no
36406 rm -f conftest.err conftest.$ac_ext
36407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36408 echo "${ECHO_T}$ac_header_preproc" >&6; }
36410 # So? What about this header?
36411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36412 yes:no: )
36413 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
36414 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
36415 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
36416 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
36417 ac_header_preproc=yes
36419 no:yes:* )
36420 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
36421 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
36422 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
36423 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
36424 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
36425 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
36426 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
36427 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
36428 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
36429 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
36430 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
36431 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
36432 ( cat <<\_ASBOX
36433 ## ------------------------------- ##
36434 ## Report this to www.asterisk.org ##
36435 ## ------------------------------- ##
36436 _ASBOX
36437 ) | sed "s/^/$as_me: WARNING: /" >&2
36439 esac
36440 { echo "$as_me:$LINENO: checking for " >&5
36441 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36442 if test "${ac_cv_header_+set}" = set; then
36443 echo $ECHO_N "(cached) $ECHO_C" >&6
36444 else
36445 ac_cv_header_=$ac_header_preproc
36447 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36448 echo "${ECHO_T}$ac_cv_header_" >&6; }
36451 if test $ac_cv_header_ = yes; then
36452 OGG_HEADER_FOUND=1
36453 else
36454 OGG_HEADER_FOUND=0
36458 CPPFLAGS="${saved_cppflags}"
36460 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
36461 OGG_LIB=""
36462 OGG_INCLUDE=""
36463 else
36464 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36465 OGG_LIB=""
36467 PBX_OGG=1
36468 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36470 cat >>confdefs.h <<_ACEOF
36471 #define HAVE_OGG 1
36472 _ACEOF
36475 cat >>confdefs.h <<_ACEOF
36476 #define HAVE_OGG_VERSION
36477 _ACEOF
36484 # Non-glibc platforms require libexecinfo for backtrace support
36486 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36487 pbxlibdir=""
36488 # if --with-BKTR=DIR has been specified, use it.
36489 if test "x${BKTR_DIR}" != "x"; then
36490 if test -d ${BKTR_DIR}/lib; then
36491 pbxlibdir="-L${BKTR_DIR}/lib"
36492 else
36493 pbxlibdir="-L${BKTR_DIR}"
36496 pbxfuncname="backtrace"
36497 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36498 AST_BKTR_FOUND=yes
36499 else
36500 as_ac_Lib=`echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
36501 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lexecinfo" >&5
36502 echo $ECHO_N "checking for ${pbxfuncname} in -lexecinfo... $ECHO_C" >&6; }
36503 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36504 echo $ECHO_N "(cached) $ECHO_C" >&6
36505 else
36506 ac_check_lib_save_LIBS=$LIBS
36507 LIBS="-lexecinfo ${pbxlibdir} $LIBS"
36508 cat >conftest.$ac_ext <<_ACEOF
36509 /* confdefs.h. */
36510 _ACEOF
36511 cat confdefs.h >>conftest.$ac_ext
36512 cat >>conftest.$ac_ext <<_ACEOF
36513 /* end confdefs.h. */
36515 /* Override any GCC internal prototype to avoid an error.
36516 Use char because int might match the return type of a GCC
36517 builtin and then its argument prototype would still apply. */
36518 #ifdef __cplusplus
36519 extern "C"
36520 #endif
36521 char ${pbxfuncname} ();
36523 main ()
36525 return ${pbxfuncname} ();
36527 return 0;
36529 _ACEOF
36530 rm -f conftest.$ac_objext conftest$ac_exeext
36531 if { (ac_try="$ac_link"
36532 case "(($ac_try" in
36533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36534 *) ac_try_echo=$ac_try;;
36535 esac
36536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36537 (eval "$ac_link") 2>conftest.er1
36538 ac_status=$?
36539 grep -v '^ *+' conftest.er1 >conftest.err
36540 rm -f conftest.er1
36541 cat conftest.err >&5
36542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36543 (exit $ac_status); } && {
36544 test -z "$ac_c_werror_flag" ||
36545 test ! -s conftest.err
36546 } && test -s conftest$ac_exeext &&
36547 $as_test_x conftest$ac_exeext; then
36548 eval "$as_ac_Lib=yes"
36549 else
36550 echo "$as_me: failed program was:" >&5
36551 sed 's/^/| /' conftest.$ac_ext >&5
36553 eval "$as_ac_Lib=no"
36556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36557 conftest$ac_exeext conftest.$ac_ext
36558 LIBS=$ac_check_lib_save_LIBS
36560 ac_res=`eval echo '${'$as_ac_Lib'}'`
36561 { echo "$as_me:$LINENO: result: $ac_res" >&5
36562 echo "${ECHO_T}$ac_res" >&6; }
36563 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36564 AST_BKTR_FOUND=yes
36565 else
36566 AST_BKTR_FOUND=no
36571 # now check for the header.
36572 if test "${AST_BKTR_FOUND}" = "yes"; then
36573 BKTR_LIB="${pbxlibdir} -lexecinfo "
36574 # if --with-BKTR=DIR has been specified, use it.
36575 if test "x${BKTR_DIR}" != "x"; then
36576 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36578 BKTR_INCLUDE="${BKTR_INCLUDE} "
36579 if test "xexecinfo.h" = "x" ; then # no header, assume found
36580 BKTR_HEADER_FOUND="1"
36581 else # check for the header
36582 saved_cppflags="${CPPFLAGS}"
36583 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE} "
36584 if test "${ac_cv_header_execinfo_h+set}" = set; then
36585 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36586 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36587 if test "${ac_cv_header_execinfo_h+set}" = set; then
36588 echo $ECHO_N "(cached) $ECHO_C" >&6
36590 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36591 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36592 else
36593 # Is the header compilable?
36594 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36595 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36596 cat >conftest.$ac_ext <<_ACEOF
36597 /* confdefs.h. */
36598 _ACEOF
36599 cat confdefs.h >>conftest.$ac_ext
36600 cat >>conftest.$ac_ext <<_ACEOF
36601 /* end confdefs.h. */
36602 $ac_includes_default
36603 #include <execinfo.h>
36604 _ACEOF
36605 rm -f conftest.$ac_objext
36606 if { (ac_try="$ac_compile"
36607 case "(($ac_try" in
36608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36609 *) ac_try_echo=$ac_try;;
36610 esac
36611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36612 (eval "$ac_compile") 2>conftest.er1
36613 ac_status=$?
36614 grep -v '^ *+' conftest.er1 >conftest.err
36615 rm -f conftest.er1
36616 cat conftest.err >&5
36617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618 (exit $ac_status); } && {
36619 test -z "$ac_c_werror_flag" ||
36620 test ! -s conftest.err
36621 } && test -s conftest.$ac_objext; then
36622 ac_header_compiler=yes
36623 else
36624 echo "$as_me: failed program was:" >&5
36625 sed 's/^/| /' conftest.$ac_ext >&5
36627 ac_header_compiler=no
36630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36631 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36632 echo "${ECHO_T}$ac_header_compiler" >&6; }
36634 # Is the header present?
36635 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36636 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36637 cat >conftest.$ac_ext <<_ACEOF
36638 /* confdefs.h. */
36639 _ACEOF
36640 cat confdefs.h >>conftest.$ac_ext
36641 cat >>conftest.$ac_ext <<_ACEOF
36642 /* end confdefs.h. */
36643 #include <execinfo.h>
36644 _ACEOF
36645 if { (ac_try="$ac_cpp conftest.$ac_ext"
36646 case "(($ac_try" in
36647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36648 *) ac_try_echo=$ac_try;;
36649 esac
36650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36652 ac_status=$?
36653 grep -v '^ *+' conftest.er1 >conftest.err
36654 rm -f conftest.er1
36655 cat conftest.err >&5
36656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657 (exit $ac_status); } >/dev/null && {
36658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36659 test ! -s conftest.err
36660 }; then
36661 ac_header_preproc=yes
36662 else
36663 echo "$as_me: failed program was:" >&5
36664 sed 's/^/| /' conftest.$ac_ext >&5
36666 ac_header_preproc=no
36669 rm -f conftest.err conftest.$ac_ext
36670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36671 echo "${ECHO_T}$ac_header_preproc" >&6; }
36673 # So? What about this header?
36674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36675 yes:no: )
36676 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36677 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36678 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36679 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36680 ac_header_preproc=yes
36682 no:yes:* )
36683 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36684 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36685 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36686 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36687 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36688 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36689 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36690 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36691 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36692 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36693 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36694 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36695 ( cat <<\_ASBOX
36696 ## ------------------------------- ##
36697 ## Report this to www.asterisk.org ##
36698 ## ------------------------------- ##
36699 _ASBOX
36700 ) | sed "s/^/$as_me: WARNING: /" >&2
36702 esac
36703 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36704 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36705 if test "${ac_cv_header_execinfo_h+set}" = set; then
36706 echo $ECHO_N "(cached) $ECHO_C" >&6
36707 else
36708 ac_cv_header_execinfo_h=$ac_header_preproc
36710 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36711 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36714 if test $ac_cv_header_execinfo_h = yes; then
36715 BKTR_HEADER_FOUND=1
36716 else
36717 BKTR_HEADER_FOUND=0
36721 CPPFLAGS="${saved_cppflags}"
36723 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
36724 BKTR_LIB=""
36725 BKTR_INCLUDE=""
36726 else
36727 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36728 BKTR_LIB=""
36730 PBX_BKTR=1
36731 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36733 cat >>confdefs.h <<_ACEOF
36734 #define HAVE_BKTR 1
36735 _ACEOF
36738 cat >>confdefs.h <<_ACEOF
36739 #define HAVE_BKTR_VERSION
36740 _ACEOF
36746 # Linux, however, has backtrace directly in glibc
36748 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36749 pbxlibdir=""
36750 # if --with-BKTR=DIR has been specified, use it.
36751 if test "x${BKTR_DIR}" != "x"; then
36752 if test -d ${BKTR_DIR}/lib; then
36753 pbxlibdir="-L${BKTR_DIR}/lib"
36754 else
36755 pbxlibdir="-L${BKTR_DIR}"
36758 pbxfuncname="backtrace"
36759 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36760 AST_BKTR_FOUND=yes
36761 else
36762 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
36763 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
36764 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
36765 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36766 echo $ECHO_N "(cached) $ECHO_C" >&6
36767 else
36768 ac_check_lib_save_LIBS=$LIBS
36769 LIBS="-lc ${pbxlibdir} $LIBS"
36770 cat >conftest.$ac_ext <<_ACEOF
36771 /* confdefs.h. */
36772 _ACEOF
36773 cat confdefs.h >>conftest.$ac_ext
36774 cat >>conftest.$ac_ext <<_ACEOF
36775 /* end confdefs.h. */
36777 /* Override any GCC internal prototype to avoid an error.
36778 Use char because int might match the return type of a GCC
36779 builtin and then its argument prototype would still apply. */
36780 #ifdef __cplusplus
36781 extern "C"
36782 #endif
36783 char ${pbxfuncname} ();
36785 main ()
36787 return ${pbxfuncname} ();
36789 return 0;
36791 _ACEOF
36792 rm -f conftest.$ac_objext conftest$ac_exeext
36793 if { (ac_try="$ac_link"
36794 case "(($ac_try" in
36795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36796 *) ac_try_echo=$ac_try;;
36797 esac
36798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36799 (eval "$ac_link") 2>conftest.er1
36800 ac_status=$?
36801 grep -v '^ *+' conftest.er1 >conftest.err
36802 rm -f conftest.er1
36803 cat conftest.err >&5
36804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805 (exit $ac_status); } && {
36806 test -z "$ac_c_werror_flag" ||
36807 test ! -s conftest.err
36808 } && test -s conftest$ac_exeext &&
36809 $as_test_x conftest$ac_exeext; then
36810 eval "$as_ac_Lib=yes"
36811 else
36812 echo "$as_me: failed program was:" >&5
36813 sed 's/^/| /' conftest.$ac_ext >&5
36815 eval "$as_ac_Lib=no"
36818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36819 conftest$ac_exeext conftest.$ac_ext
36820 LIBS=$ac_check_lib_save_LIBS
36822 ac_res=`eval echo '${'$as_ac_Lib'}'`
36823 { echo "$as_me:$LINENO: result: $ac_res" >&5
36824 echo "${ECHO_T}$ac_res" >&6; }
36825 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36826 AST_BKTR_FOUND=yes
36827 else
36828 AST_BKTR_FOUND=no
36833 # now check for the header.
36834 if test "${AST_BKTR_FOUND}" = "yes"; then
36835 BKTR_LIB="${pbxlibdir} -lc "
36836 # if --with-BKTR=DIR has been specified, use it.
36837 if test "x${BKTR_DIR}" != "x"; then
36838 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36840 BKTR_INCLUDE="${BKTR_INCLUDE} "
36841 if test "xexecinfo.h" = "x" ; then # no header, assume found
36842 BKTR_HEADER_FOUND="1"
36843 else # check for the header
36844 saved_cppflags="${CPPFLAGS}"
36845 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE} "
36846 if test "${ac_cv_header_execinfo_h+set}" = set; then
36847 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36848 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36849 if test "${ac_cv_header_execinfo_h+set}" = set; then
36850 echo $ECHO_N "(cached) $ECHO_C" >&6
36852 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36853 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36854 else
36855 # Is the header compilable?
36856 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36857 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36858 cat >conftest.$ac_ext <<_ACEOF
36859 /* confdefs.h. */
36860 _ACEOF
36861 cat confdefs.h >>conftest.$ac_ext
36862 cat >>conftest.$ac_ext <<_ACEOF
36863 /* end confdefs.h. */
36864 $ac_includes_default
36865 #include <execinfo.h>
36866 _ACEOF
36867 rm -f conftest.$ac_objext
36868 if { (ac_try="$ac_compile"
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_compile") 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); } && {
36881 test -z "$ac_c_werror_flag" ||
36882 test ! -s conftest.err
36883 } && test -s conftest.$ac_objext; then
36884 ac_header_compiler=yes
36885 else
36886 echo "$as_me: failed program was:" >&5
36887 sed 's/^/| /' conftest.$ac_ext >&5
36889 ac_header_compiler=no
36892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36894 echo "${ECHO_T}$ac_header_compiler" >&6; }
36896 # Is the header present?
36897 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36898 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36899 cat >conftest.$ac_ext <<_ACEOF
36900 /* confdefs.h. */
36901 _ACEOF
36902 cat confdefs.h >>conftest.$ac_ext
36903 cat >>conftest.$ac_ext <<_ACEOF
36904 /* end confdefs.h. */
36905 #include <execinfo.h>
36906 _ACEOF
36907 if { (ac_try="$ac_cpp conftest.$ac_ext"
36908 case "(($ac_try" in
36909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36910 *) ac_try_echo=$ac_try;;
36911 esac
36912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36914 ac_status=$?
36915 grep -v '^ *+' conftest.er1 >conftest.err
36916 rm -f conftest.er1
36917 cat conftest.err >&5
36918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36919 (exit $ac_status); } >/dev/null && {
36920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36921 test ! -s conftest.err
36922 }; then
36923 ac_header_preproc=yes
36924 else
36925 echo "$as_me: failed program was:" >&5
36926 sed 's/^/| /' conftest.$ac_ext >&5
36928 ac_header_preproc=no
36931 rm -f conftest.err conftest.$ac_ext
36932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36933 echo "${ECHO_T}$ac_header_preproc" >&6; }
36935 # So? What about this header?
36936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36937 yes:no: )
36938 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36939 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36940 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36941 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36942 ac_header_preproc=yes
36944 no:yes:* )
36945 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36946 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36947 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36948 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36949 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36950 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36951 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36952 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36953 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36954 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36955 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36956 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36957 ( cat <<\_ASBOX
36958 ## ------------------------------- ##
36959 ## Report this to www.asterisk.org ##
36960 ## ------------------------------- ##
36961 _ASBOX
36962 ) | sed "s/^/$as_me: WARNING: /" >&2
36964 esac
36965 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36966 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36967 if test "${ac_cv_header_execinfo_h+set}" = set; then
36968 echo $ECHO_N "(cached) $ECHO_C" >&6
36969 else
36970 ac_cv_header_execinfo_h=$ac_header_preproc
36972 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36973 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36976 if test $ac_cv_header_execinfo_h = yes; then
36977 BKTR_HEADER_FOUND=1
36978 else
36979 BKTR_HEADER_FOUND=0
36983 CPPFLAGS="${saved_cppflags}"
36985 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
36986 BKTR_LIB=""
36987 BKTR_INCLUDE=""
36988 else
36989 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36990 BKTR_LIB=""
36992 PBX_BKTR=1
36993 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36995 cat >>confdefs.h <<_ACEOF
36996 #define HAVE_BKTR 1
36997 _ACEOF
37000 cat >>confdefs.h <<_ACEOF
37001 #define HAVE_BKTR_VERSION
37002 _ACEOF
37009 # possible places for oss definitions
37011 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37012 pbxlibdir=""
37013 # if --with-OSS=DIR has been specified, use it.
37014 if test "x${OSS_DIR}" != "x"; then
37015 if test -d ${OSS_DIR}/lib; then
37016 pbxlibdir="-L${OSS_DIR}/lib"
37017 else
37018 pbxlibdir="-L${OSS_DIR}"
37021 pbxfuncname=""
37022 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37023 AST_OSS_FOUND=yes
37024 else
37025 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37026 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37027 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37028 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37029 echo $ECHO_N "(cached) $ECHO_C" >&6
37030 else
37031 ac_check_lib_save_LIBS=$LIBS
37032 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37033 cat >conftest.$ac_ext <<_ACEOF
37034 /* confdefs.h. */
37035 _ACEOF
37036 cat confdefs.h >>conftest.$ac_ext
37037 cat >>conftest.$ac_ext <<_ACEOF
37038 /* end confdefs.h. */
37040 /* Override any GCC internal prototype to avoid an error.
37041 Use char because int might match the return type of a GCC
37042 builtin and then its argument prototype would still apply. */
37043 #ifdef __cplusplus
37044 extern "C"
37045 #endif
37046 char ${pbxfuncname} ();
37048 main ()
37050 return ${pbxfuncname} ();
37052 return 0;
37054 _ACEOF
37055 rm -f conftest.$ac_objext conftest$ac_exeext
37056 if { (ac_try="$ac_link"
37057 case "(($ac_try" in
37058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37059 *) ac_try_echo=$ac_try;;
37060 esac
37061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37062 (eval "$ac_link") 2>conftest.er1
37063 ac_status=$?
37064 grep -v '^ *+' conftest.er1 >conftest.err
37065 rm -f conftest.er1
37066 cat conftest.err >&5
37067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37068 (exit $ac_status); } && {
37069 test -z "$ac_c_werror_flag" ||
37070 test ! -s conftest.err
37071 } && test -s conftest$ac_exeext &&
37072 $as_test_x conftest$ac_exeext; then
37073 eval "$as_ac_Lib=yes"
37074 else
37075 echo "$as_me: failed program was:" >&5
37076 sed 's/^/| /' conftest.$ac_ext >&5
37078 eval "$as_ac_Lib=no"
37081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37082 conftest$ac_exeext conftest.$ac_ext
37083 LIBS=$ac_check_lib_save_LIBS
37085 ac_res=`eval echo '${'$as_ac_Lib'}'`
37086 { echo "$as_me:$LINENO: result: $ac_res" >&5
37087 echo "${ECHO_T}$ac_res" >&6; }
37088 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37089 AST_OSS_FOUND=yes
37090 else
37091 AST_OSS_FOUND=no
37096 # now check for the header.
37097 if test "${AST_OSS_FOUND}" = "yes"; then
37098 OSS_LIB="${pbxlibdir} -lossaudio "
37099 # if --with-OSS=DIR has been specified, use it.
37100 if test "x${OSS_DIR}" != "x"; then
37101 OSS_INCLUDE="-I${OSS_DIR}/include"
37103 OSS_INCLUDE="${OSS_INCLUDE} "
37104 if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
37105 OSS_HEADER_FOUND="1"
37106 else # check for the header
37107 saved_cppflags="${CPPFLAGS}"
37108 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37109 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37110 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37111 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37112 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37113 echo $ECHO_N "(cached) $ECHO_C" >&6
37115 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37116 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37117 else
37118 # Is the header compilable?
37119 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
37120 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
37121 cat >conftest.$ac_ext <<_ACEOF
37122 /* confdefs.h. */
37123 _ACEOF
37124 cat confdefs.h >>conftest.$ac_ext
37125 cat >>conftest.$ac_ext <<_ACEOF
37126 /* end confdefs.h. */
37127 $ac_includes_default
37128 #include <linux/soundcard.h>
37129 _ACEOF
37130 rm -f conftest.$ac_objext
37131 if { (ac_try="$ac_compile"
37132 case "(($ac_try" in
37133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37134 *) ac_try_echo=$ac_try;;
37135 esac
37136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37137 (eval "$ac_compile") 2>conftest.er1
37138 ac_status=$?
37139 grep -v '^ *+' conftest.er1 >conftest.err
37140 rm -f conftest.er1
37141 cat conftest.err >&5
37142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37143 (exit $ac_status); } && {
37144 test -z "$ac_c_werror_flag" ||
37145 test ! -s conftest.err
37146 } && test -s conftest.$ac_objext; then
37147 ac_header_compiler=yes
37148 else
37149 echo "$as_me: failed program was:" >&5
37150 sed 's/^/| /' conftest.$ac_ext >&5
37152 ac_header_compiler=no
37155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37157 echo "${ECHO_T}$ac_header_compiler" >&6; }
37159 # Is the header present?
37160 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
37161 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
37162 cat >conftest.$ac_ext <<_ACEOF
37163 /* confdefs.h. */
37164 _ACEOF
37165 cat confdefs.h >>conftest.$ac_ext
37166 cat >>conftest.$ac_ext <<_ACEOF
37167 /* end confdefs.h. */
37168 #include <linux/soundcard.h>
37169 _ACEOF
37170 if { (ac_try="$ac_cpp conftest.$ac_ext"
37171 case "(($ac_try" in
37172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37173 *) ac_try_echo=$ac_try;;
37174 esac
37175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37177 ac_status=$?
37178 grep -v '^ *+' conftest.er1 >conftest.err
37179 rm -f conftest.er1
37180 cat conftest.err >&5
37181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37182 (exit $ac_status); } >/dev/null && {
37183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37184 test ! -s conftest.err
37185 }; then
37186 ac_header_preproc=yes
37187 else
37188 echo "$as_me: failed program was:" >&5
37189 sed 's/^/| /' conftest.$ac_ext >&5
37191 ac_header_preproc=no
37194 rm -f conftest.err conftest.$ac_ext
37195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37196 echo "${ECHO_T}$ac_header_preproc" >&6; }
37198 # So? What about this header?
37199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37200 yes:no: )
37201 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37202 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37203 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
37204 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
37205 ac_header_preproc=yes
37207 no:yes:* )
37208 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
37209 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
37210 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
37211 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
37212 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
37213 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
37214 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37215 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37216 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
37217 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
37218 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
37219 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
37220 ( cat <<\_ASBOX
37221 ## ------------------------------- ##
37222 ## Report this to www.asterisk.org ##
37223 ## ------------------------------- ##
37224 _ASBOX
37225 ) | sed "s/^/$as_me: WARNING: /" >&2
37227 esac
37228 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37229 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37230 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37231 echo $ECHO_N "(cached) $ECHO_C" >&6
37232 else
37233 ac_cv_header_linux_soundcard_h=$ac_header_preproc
37235 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37236 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37239 if test $ac_cv_header_linux_soundcard_h = yes; then
37240 OSS_HEADER_FOUND=1
37241 else
37242 OSS_HEADER_FOUND=0
37246 CPPFLAGS="${saved_cppflags}"
37248 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37249 OSS_LIB=""
37250 OSS_INCLUDE=""
37251 else
37252 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37253 OSS_LIB=""
37255 PBX_OSS=1
37256 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37258 cat >>confdefs.h <<_ACEOF
37259 #define HAVE_OSS 1
37260 _ACEOF
37263 cat >>confdefs.h <<_ACEOF
37264 #define HAVE_OSS_VERSION
37265 _ACEOF
37272 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37273 pbxlibdir=""
37274 # if --with-OSS=DIR has been specified, use it.
37275 if test "x${OSS_DIR}" != "x"; then
37276 if test -d ${OSS_DIR}/lib; then
37277 pbxlibdir="-L${OSS_DIR}/lib"
37278 else
37279 pbxlibdir="-L${OSS_DIR}"
37282 pbxfuncname=""
37283 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37284 AST_OSS_FOUND=yes
37285 else
37286 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37287 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37288 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37289 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37290 echo $ECHO_N "(cached) $ECHO_C" >&6
37291 else
37292 ac_check_lib_save_LIBS=$LIBS
37293 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37294 cat >conftest.$ac_ext <<_ACEOF
37295 /* confdefs.h. */
37296 _ACEOF
37297 cat confdefs.h >>conftest.$ac_ext
37298 cat >>conftest.$ac_ext <<_ACEOF
37299 /* end confdefs.h. */
37301 /* Override any GCC internal prototype to avoid an error.
37302 Use char because int might match the return type of a GCC
37303 builtin and then its argument prototype would still apply. */
37304 #ifdef __cplusplus
37305 extern "C"
37306 #endif
37307 char ${pbxfuncname} ();
37309 main ()
37311 return ${pbxfuncname} ();
37313 return 0;
37315 _ACEOF
37316 rm -f conftest.$ac_objext conftest$ac_exeext
37317 if { (ac_try="$ac_link"
37318 case "(($ac_try" in
37319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37320 *) ac_try_echo=$ac_try;;
37321 esac
37322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37323 (eval "$ac_link") 2>conftest.er1
37324 ac_status=$?
37325 grep -v '^ *+' conftest.er1 >conftest.err
37326 rm -f conftest.er1
37327 cat conftest.err >&5
37328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37329 (exit $ac_status); } && {
37330 test -z "$ac_c_werror_flag" ||
37331 test ! -s conftest.err
37332 } && test -s conftest$ac_exeext &&
37333 $as_test_x conftest$ac_exeext; then
37334 eval "$as_ac_Lib=yes"
37335 else
37336 echo "$as_me: failed program was:" >&5
37337 sed 's/^/| /' conftest.$ac_ext >&5
37339 eval "$as_ac_Lib=no"
37342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37343 conftest$ac_exeext conftest.$ac_ext
37344 LIBS=$ac_check_lib_save_LIBS
37346 ac_res=`eval echo '${'$as_ac_Lib'}'`
37347 { echo "$as_me:$LINENO: result: $ac_res" >&5
37348 echo "${ECHO_T}$ac_res" >&6; }
37349 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37350 AST_OSS_FOUND=yes
37351 else
37352 AST_OSS_FOUND=no
37357 # now check for the header.
37358 if test "${AST_OSS_FOUND}" = "yes"; then
37359 OSS_LIB="${pbxlibdir} -lossaudio "
37360 # if --with-OSS=DIR has been specified, use it.
37361 if test "x${OSS_DIR}" != "x"; then
37362 OSS_INCLUDE="-I${OSS_DIR}/include"
37364 OSS_INCLUDE="${OSS_INCLUDE} "
37365 if test "xsys/soundcard.h" = "x" ; then # no header, assume found
37366 OSS_HEADER_FOUND="1"
37367 else # check for the header
37368 saved_cppflags="${CPPFLAGS}"
37369 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37370 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37371 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37372 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37373 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37374 echo $ECHO_N "(cached) $ECHO_C" >&6
37376 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37377 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37378 else
37379 # Is the header compilable?
37380 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
37381 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
37382 cat >conftest.$ac_ext <<_ACEOF
37383 /* confdefs.h. */
37384 _ACEOF
37385 cat confdefs.h >>conftest.$ac_ext
37386 cat >>conftest.$ac_ext <<_ACEOF
37387 /* end confdefs.h. */
37388 $ac_includes_default
37389 #include <sys/soundcard.h>
37390 _ACEOF
37391 rm -f conftest.$ac_objext
37392 if { (ac_try="$ac_compile"
37393 case "(($ac_try" in
37394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37395 *) ac_try_echo=$ac_try;;
37396 esac
37397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37398 (eval "$ac_compile") 2>conftest.er1
37399 ac_status=$?
37400 grep -v '^ *+' conftest.er1 >conftest.err
37401 rm -f conftest.er1
37402 cat conftest.err >&5
37403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404 (exit $ac_status); } && {
37405 test -z "$ac_c_werror_flag" ||
37406 test ! -s conftest.err
37407 } && test -s conftest.$ac_objext; then
37408 ac_header_compiler=yes
37409 else
37410 echo "$as_me: failed program was:" >&5
37411 sed 's/^/| /' conftest.$ac_ext >&5
37413 ac_header_compiler=no
37416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37418 echo "${ECHO_T}$ac_header_compiler" >&6; }
37420 # Is the header present?
37421 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
37422 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
37423 cat >conftest.$ac_ext <<_ACEOF
37424 /* confdefs.h. */
37425 _ACEOF
37426 cat confdefs.h >>conftest.$ac_ext
37427 cat >>conftest.$ac_ext <<_ACEOF
37428 /* end confdefs.h. */
37429 #include <sys/soundcard.h>
37430 _ACEOF
37431 if { (ac_try="$ac_cpp conftest.$ac_ext"
37432 case "(($ac_try" in
37433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37434 *) ac_try_echo=$ac_try;;
37435 esac
37436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37438 ac_status=$?
37439 grep -v '^ *+' conftest.er1 >conftest.err
37440 rm -f conftest.er1
37441 cat conftest.err >&5
37442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443 (exit $ac_status); } >/dev/null && {
37444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37445 test ! -s conftest.err
37446 }; then
37447 ac_header_preproc=yes
37448 else
37449 echo "$as_me: failed program was:" >&5
37450 sed 's/^/| /' conftest.$ac_ext >&5
37452 ac_header_preproc=no
37455 rm -f conftest.err conftest.$ac_ext
37456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37457 echo "${ECHO_T}$ac_header_preproc" >&6; }
37459 # So? What about this header?
37460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37461 yes:no: )
37462 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37463 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37464 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
37465 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
37466 ac_header_preproc=yes
37468 no:yes:* )
37469 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
37470 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
37471 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
37472 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
37473 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
37474 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
37475 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37476 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37477 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
37478 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
37479 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
37480 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
37481 ( cat <<\_ASBOX
37482 ## ------------------------------- ##
37483 ## Report this to www.asterisk.org ##
37484 ## ------------------------------- ##
37485 _ASBOX
37486 ) | sed "s/^/$as_me: WARNING: /" >&2
37488 esac
37489 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37490 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37491 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37492 echo $ECHO_N "(cached) $ECHO_C" >&6
37493 else
37494 ac_cv_header_sys_soundcard_h=$ac_header_preproc
37496 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37497 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37500 if test $ac_cv_header_sys_soundcard_h = yes; then
37501 OSS_HEADER_FOUND=1
37502 else
37503 OSS_HEADER_FOUND=0
37507 CPPFLAGS="${saved_cppflags}"
37509 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37510 OSS_LIB=""
37511 OSS_INCLUDE=""
37512 else
37513 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37514 OSS_LIB=""
37516 PBX_OSS=1
37517 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37519 cat >>confdefs.h <<_ACEOF
37520 #define HAVE_OSS 1
37521 _ACEOF
37524 cat >>confdefs.h <<_ACEOF
37525 #define HAVE_OSS_VERSION
37526 _ACEOF
37533 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37534 pbxlibdir=""
37535 # if --with-OSS=DIR has been specified, use it.
37536 if test "x${OSS_DIR}" != "x"; then
37537 if test -d ${OSS_DIR}/lib; then
37538 pbxlibdir="-L${OSS_DIR}/lib"
37539 else
37540 pbxlibdir="-L${OSS_DIR}"
37543 pbxfuncname="oss_ioctl_mixer"
37544 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37545 AST_OSS_FOUND=yes
37546 else
37547 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37548 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37549 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37550 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37551 echo $ECHO_N "(cached) $ECHO_C" >&6
37552 else
37553 ac_check_lib_save_LIBS=$LIBS
37554 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37555 cat >conftest.$ac_ext <<_ACEOF
37556 /* confdefs.h. */
37557 _ACEOF
37558 cat confdefs.h >>conftest.$ac_ext
37559 cat >>conftest.$ac_ext <<_ACEOF
37560 /* end confdefs.h. */
37562 /* Override any GCC internal prototype to avoid an error.
37563 Use char because int might match the return type of a GCC
37564 builtin and then its argument prototype would still apply. */
37565 #ifdef __cplusplus
37566 extern "C"
37567 #endif
37568 char ${pbxfuncname} ();
37570 main ()
37572 return ${pbxfuncname} ();
37574 return 0;
37576 _ACEOF
37577 rm -f conftest.$ac_objext conftest$ac_exeext
37578 if { (ac_try="$ac_link"
37579 case "(($ac_try" in
37580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37581 *) ac_try_echo=$ac_try;;
37582 esac
37583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37584 (eval "$ac_link") 2>conftest.er1
37585 ac_status=$?
37586 grep -v '^ *+' conftest.er1 >conftest.err
37587 rm -f conftest.er1
37588 cat conftest.err >&5
37589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590 (exit $ac_status); } && {
37591 test -z "$ac_c_werror_flag" ||
37592 test ! -s conftest.err
37593 } && test -s conftest$ac_exeext &&
37594 $as_test_x conftest$ac_exeext; then
37595 eval "$as_ac_Lib=yes"
37596 else
37597 echo "$as_me: failed program was:" >&5
37598 sed 's/^/| /' conftest.$ac_ext >&5
37600 eval "$as_ac_Lib=no"
37603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37604 conftest$ac_exeext conftest.$ac_ext
37605 LIBS=$ac_check_lib_save_LIBS
37607 ac_res=`eval echo '${'$as_ac_Lib'}'`
37608 { echo "$as_me:$LINENO: result: $ac_res" >&5
37609 echo "${ECHO_T}$ac_res" >&6; }
37610 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37611 AST_OSS_FOUND=yes
37612 else
37613 AST_OSS_FOUND=no
37618 # now check for the header.
37619 if test "${AST_OSS_FOUND}" = "yes"; then
37620 OSS_LIB="${pbxlibdir} -lossaudio "
37621 # if --with-OSS=DIR has been specified, use it.
37622 if test "x${OSS_DIR}" != "x"; then
37623 OSS_INCLUDE="-I${OSS_DIR}/include"
37625 OSS_INCLUDE="${OSS_INCLUDE} "
37626 if test "xsoundcard.h" = "x" ; then # no header, assume found
37627 OSS_HEADER_FOUND="1"
37628 else # check for the header
37629 saved_cppflags="${CPPFLAGS}"
37630 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37631 if test "${ac_cv_header_soundcard_h+set}" = set; then
37632 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37633 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37634 if test "${ac_cv_header_soundcard_h+set}" = set; then
37635 echo $ECHO_N "(cached) $ECHO_C" >&6
37637 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37638 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37639 else
37640 # Is the header compilable?
37641 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
37642 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
37643 cat >conftest.$ac_ext <<_ACEOF
37644 /* confdefs.h. */
37645 _ACEOF
37646 cat confdefs.h >>conftest.$ac_ext
37647 cat >>conftest.$ac_ext <<_ACEOF
37648 /* end confdefs.h. */
37649 $ac_includes_default
37650 #include <soundcard.h>
37651 _ACEOF
37652 rm -f conftest.$ac_objext
37653 if { (ac_try="$ac_compile"
37654 case "(($ac_try" in
37655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37656 *) ac_try_echo=$ac_try;;
37657 esac
37658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37659 (eval "$ac_compile") 2>conftest.er1
37660 ac_status=$?
37661 grep -v '^ *+' conftest.er1 >conftest.err
37662 rm -f conftest.er1
37663 cat conftest.err >&5
37664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665 (exit $ac_status); } && {
37666 test -z "$ac_c_werror_flag" ||
37667 test ! -s conftest.err
37668 } && test -s conftest.$ac_objext; then
37669 ac_header_compiler=yes
37670 else
37671 echo "$as_me: failed program was:" >&5
37672 sed 's/^/| /' conftest.$ac_ext >&5
37674 ac_header_compiler=no
37677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37679 echo "${ECHO_T}$ac_header_compiler" >&6; }
37681 # Is the header present?
37682 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
37683 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
37684 cat >conftest.$ac_ext <<_ACEOF
37685 /* confdefs.h. */
37686 _ACEOF
37687 cat confdefs.h >>conftest.$ac_ext
37688 cat >>conftest.$ac_ext <<_ACEOF
37689 /* end confdefs.h. */
37690 #include <soundcard.h>
37691 _ACEOF
37692 if { (ac_try="$ac_cpp conftest.$ac_ext"
37693 case "(($ac_try" in
37694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37695 *) ac_try_echo=$ac_try;;
37696 esac
37697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37699 ac_status=$?
37700 grep -v '^ *+' conftest.er1 >conftest.err
37701 rm -f conftest.er1
37702 cat conftest.err >&5
37703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37704 (exit $ac_status); } >/dev/null && {
37705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37706 test ! -s conftest.err
37707 }; then
37708 ac_header_preproc=yes
37709 else
37710 echo "$as_me: failed program was:" >&5
37711 sed 's/^/| /' conftest.$ac_ext >&5
37713 ac_header_preproc=no
37716 rm -f conftest.err conftest.$ac_ext
37717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37718 echo "${ECHO_T}$ac_header_preproc" >&6; }
37720 # So? What about this header?
37721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37722 yes:no: )
37723 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37724 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37725 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
37726 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
37727 ac_header_preproc=yes
37729 no:yes:* )
37730 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
37731 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
37732 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
37733 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
37734 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
37735 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
37736 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37737 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37738 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
37739 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
37740 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
37741 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
37742 ( cat <<\_ASBOX
37743 ## ------------------------------- ##
37744 ## Report this to www.asterisk.org ##
37745 ## ------------------------------- ##
37746 _ASBOX
37747 ) | sed "s/^/$as_me: WARNING: /" >&2
37749 esac
37750 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37751 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37752 if test "${ac_cv_header_soundcard_h+set}" = set; then
37753 echo $ECHO_N "(cached) $ECHO_C" >&6
37754 else
37755 ac_cv_header_soundcard_h=$ac_header_preproc
37757 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37758 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37761 if test $ac_cv_header_soundcard_h = yes; then
37762 OSS_HEADER_FOUND=1
37763 else
37764 OSS_HEADER_FOUND=0
37768 CPPFLAGS="${saved_cppflags}"
37770 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37771 OSS_LIB=""
37772 OSS_INCLUDE=""
37773 else
37774 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37775 OSS_LIB=""
37777 PBX_OSS=1
37778 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37780 cat >>confdefs.h <<_ACEOF
37781 #define HAVE_OSS 1
37782 _ACEOF
37785 cat >>confdefs.h <<_ACEOF
37786 #define HAVE_OSS_VERSION
37787 _ACEOF
37794 PG_CONFIG=No
37795 if test "${USE_PGSQL}" != "no"; then
37796 if test "x${PGSQL_DIR}" != "x"; then
37797 if test -n "$ac_tool_prefix"; then
37798 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
37799 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
37800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37802 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
37803 echo $ECHO_N "(cached) $ECHO_C" >&6
37804 else
37805 case $PG_CONFIG in
37806 [\\/]* | ?:[\\/]*)
37807 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
37810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37811 for as_dir in ${PGSQL_DIR}/bin
37813 IFS=$as_save_IFS
37814 test -z "$as_dir" && as_dir=.
37815 for ac_exec_ext in '' $ac_executable_extensions; do
37816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37817 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37819 break 2
37821 done
37822 done
37823 IFS=$as_save_IFS
37826 esac
37828 PG_CONFIG=$ac_cv_path_PG_CONFIG
37829 if test -n "$PG_CONFIG"; then
37830 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
37831 echo "${ECHO_T}$PG_CONFIG" >&6; }
37832 else
37833 { echo "$as_me:$LINENO: result: no" >&5
37834 echo "${ECHO_T}no" >&6; }
37839 if test -z "$ac_cv_path_PG_CONFIG"; then
37840 ac_pt_PG_CONFIG=$PG_CONFIG
37841 # Extract the first word of "pg_config", so it can be a program name with args.
37842 set dummy pg_config; ac_word=$2
37843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37845 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
37846 echo $ECHO_N "(cached) $ECHO_C" >&6
37847 else
37848 case $ac_pt_PG_CONFIG in
37849 [\\/]* | ?:[\\/]*)
37850 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
37853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37854 for as_dir in ${PGSQL_DIR}/bin
37856 IFS=$as_save_IFS
37857 test -z "$as_dir" && as_dir=.
37858 for ac_exec_ext in '' $ac_executable_extensions; do
37859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37860 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37862 break 2
37864 done
37865 done
37866 IFS=$as_save_IFS
37869 esac
37871 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
37872 if test -n "$ac_pt_PG_CONFIG"; then
37873 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
37874 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
37875 else
37876 { echo "$as_me:$LINENO: result: no" >&5
37877 echo "${ECHO_T}no" >&6; }
37880 if test "x$ac_pt_PG_CONFIG" = x; then
37881 PG_CONFIG="No"
37882 else
37883 case $cross_compiling:$ac_tool_warned in
37884 yes:)
37885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37886 whose name does not start with the host triplet. If you think this
37887 configuration is useful to you, please write to autoconf@gnu.org." >&5
37888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37889 whose name does not start with the host triplet. If you think this
37890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37891 ac_tool_warned=yes ;;
37892 esac
37893 PG_CONFIG=$ac_pt_PG_CONFIG
37895 else
37896 PG_CONFIG="$ac_cv_path_PG_CONFIG"
37899 if test x"${PG_CONFIG}" = xNo; then
37900 { echo "$as_me:$LINENO: ***" >&5
37901 echo "$as_me: ***" >&6;}
37902 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
37903 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
37904 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
37905 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
37906 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37907 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37908 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
37909 echo "$as_me: *** including --without-postgres" >&6;}
37910 exit 1
37912 else
37913 if test -n "$ac_tool_prefix"; then
37914 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
37915 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
37916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37918 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
37919 echo $ECHO_N "(cached) $ECHO_C" >&6
37920 else
37921 case $PG_CONFIG in
37922 [\\/]* | ?:[\\/]*)
37923 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
37926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37927 for as_dir in $PATH
37929 IFS=$as_save_IFS
37930 test -z "$as_dir" && as_dir=.
37931 for ac_exec_ext in '' $ac_executable_extensions; do
37932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37933 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37935 break 2
37937 done
37938 done
37939 IFS=$as_save_IFS
37942 esac
37944 PG_CONFIG=$ac_cv_path_PG_CONFIG
37945 if test -n "$PG_CONFIG"; then
37946 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
37947 echo "${ECHO_T}$PG_CONFIG" >&6; }
37948 else
37949 { echo "$as_me:$LINENO: result: no" >&5
37950 echo "${ECHO_T}no" >&6; }
37955 if test -z "$ac_cv_path_PG_CONFIG"; then
37956 ac_pt_PG_CONFIG=$PG_CONFIG
37957 # Extract the first word of "pg_config", so it can be a program name with args.
37958 set dummy pg_config; ac_word=$2
37959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37961 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
37962 echo $ECHO_N "(cached) $ECHO_C" >&6
37963 else
37964 case $ac_pt_PG_CONFIG in
37965 [\\/]* | ?:[\\/]*)
37966 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
37969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37970 for as_dir in $PATH
37972 IFS=$as_save_IFS
37973 test -z "$as_dir" && as_dir=.
37974 for ac_exec_ext in '' $ac_executable_extensions; do
37975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37976 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37978 break 2
37980 done
37981 done
37982 IFS=$as_save_IFS
37985 esac
37987 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
37988 if test -n "$ac_pt_PG_CONFIG"; then
37989 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
37990 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
37991 else
37992 { echo "$as_me:$LINENO: result: no" >&5
37993 echo "${ECHO_T}no" >&6; }
37996 if test "x$ac_pt_PG_CONFIG" = x; then
37997 PG_CONFIG="No"
37998 else
37999 case $cross_compiling:$ac_tool_warned in
38000 yes:)
38001 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38002 whose name does not start with the host triplet. If you think this
38003 configuration is useful to you, please write to autoconf@gnu.org." >&5
38004 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38005 whose name does not start with the host triplet. If you think this
38006 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38007 ac_tool_warned=yes ;;
38008 esac
38009 PG_CONFIG=$ac_pt_PG_CONFIG
38011 else
38012 PG_CONFIG="$ac_cv_path_PG_CONFIG"
38017 if test "${PG_CONFIG}" != No; then
38018 PGSQL_libdir=`${PG_CONFIG} --libdir`
38019 PGSQL_includedir=`${PG_CONFIG} --includedir`
38020 if test "x$?" != "x0" ; then
38021 if test -n "${PGSQL_MANDATORY}" ; then
38022 { echo "$as_me:$LINENO: ***" >&5
38023 echo "$as_me: ***" >&6;}
38024 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
38025 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
38026 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38027 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38028 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38029 echo "$as_me: *** including --without-postgres" >&6;}
38030 exit 1
38032 else
38033 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
38034 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
38035 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
38036 echo $ECHO_N "(cached) $ECHO_C" >&6
38037 else
38038 ac_check_lib_save_LIBS=$LIBS
38039 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
38040 cat >conftest.$ac_ext <<_ACEOF
38041 /* confdefs.h. */
38042 _ACEOF
38043 cat confdefs.h >>conftest.$ac_ext
38044 cat >>conftest.$ac_ext <<_ACEOF
38045 /* end confdefs.h. */
38047 /* Override any GCC internal prototype to avoid an error.
38048 Use char because int might match the return type of a GCC
38049 builtin and then its argument prototype would still apply. */
38050 #ifdef __cplusplus
38051 extern "C"
38052 #endif
38053 char PQescapeStringConn ();
38055 main ()
38057 return PQescapeStringConn ();
38059 return 0;
38061 _ACEOF
38062 rm -f conftest.$ac_objext conftest$ac_exeext
38063 if { (ac_try="$ac_link"
38064 case "(($ac_try" in
38065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38066 *) ac_try_echo=$ac_try;;
38067 esac
38068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38069 (eval "$ac_link") 2>conftest.er1
38070 ac_status=$?
38071 grep -v '^ *+' conftest.er1 >conftest.err
38072 rm -f conftest.er1
38073 cat conftest.err >&5
38074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38075 (exit $ac_status); } && {
38076 test -z "$ac_c_werror_flag" ||
38077 test ! -s conftest.err
38078 } && test -s conftest$ac_exeext &&
38079 $as_test_x conftest$ac_exeext; then
38080 ac_cv_lib_pq_PQescapeStringConn=yes
38081 else
38082 echo "$as_me: failed program was:" >&5
38083 sed 's/^/| /' conftest.$ac_ext >&5
38085 ac_cv_lib_pq_PQescapeStringConn=no
38088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38089 conftest$ac_exeext conftest.$ac_ext
38090 LIBS=$ac_check_lib_save_LIBS
38092 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
38093 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
38094 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
38096 cat >>confdefs.h <<_ACEOF
38097 #define HAVE_PGSQL 1
38098 _ACEOF
38103 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
38104 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
38105 PGSQL_INCLUDE="-I${PGSQL_includedir}"
38106 PBX_PGSQL=1
38107 elif test -n "${PGSQL_MANDATORY}";
38108 then
38109 { echo "$as_me:$LINENO: ***" >&5
38110 echo "$as_me: ***" >&6;}
38111 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
38112 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
38113 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38114 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38115 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38116 echo "$as_me: *** including --without-postgres" >&6;}
38117 exit 1
38123 if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
38124 pbxlibdir=""
38125 # if --with-POPT=DIR has been specified, use it.
38126 if test "x${POPT_DIR}" != "x"; then
38127 if test -d ${POPT_DIR}/lib; then
38128 pbxlibdir="-L${POPT_DIR}/lib"
38129 else
38130 pbxlibdir="-L${POPT_DIR}"
38133 pbxfuncname="poptStrerror"
38134 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38135 AST_POPT_FOUND=yes
38136 else
38137 as_ac_Lib=`echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
38138 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpopt" >&5
38139 echo $ECHO_N "checking for ${pbxfuncname} in -lpopt... $ECHO_C" >&6; }
38140 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38141 echo $ECHO_N "(cached) $ECHO_C" >&6
38142 else
38143 ac_check_lib_save_LIBS=$LIBS
38144 LIBS="-lpopt ${pbxlibdir} $LIBS"
38145 cat >conftest.$ac_ext <<_ACEOF
38146 /* confdefs.h. */
38147 _ACEOF
38148 cat confdefs.h >>conftest.$ac_ext
38149 cat >>conftest.$ac_ext <<_ACEOF
38150 /* end confdefs.h. */
38152 /* Override any GCC internal prototype to avoid an error.
38153 Use char because int might match the return type of a GCC
38154 builtin and then its argument prototype would still apply. */
38155 #ifdef __cplusplus
38156 extern "C"
38157 #endif
38158 char ${pbxfuncname} ();
38160 main ()
38162 return ${pbxfuncname} ();
38164 return 0;
38166 _ACEOF
38167 rm -f conftest.$ac_objext conftest$ac_exeext
38168 if { (ac_try="$ac_link"
38169 case "(($ac_try" in
38170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38171 *) ac_try_echo=$ac_try;;
38172 esac
38173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38174 (eval "$ac_link") 2>conftest.er1
38175 ac_status=$?
38176 grep -v '^ *+' conftest.er1 >conftest.err
38177 rm -f conftest.er1
38178 cat conftest.err >&5
38179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38180 (exit $ac_status); } && {
38181 test -z "$ac_c_werror_flag" ||
38182 test ! -s conftest.err
38183 } && test -s conftest$ac_exeext &&
38184 $as_test_x conftest$ac_exeext; then
38185 eval "$as_ac_Lib=yes"
38186 else
38187 echo "$as_me: failed program was:" >&5
38188 sed 's/^/| /' conftest.$ac_ext >&5
38190 eval "$as_ac_Lib=no"
38193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38194 conftest$ac_exeext conftest.$ac_ext
38195 LIBS=$ac_check_lib_save_LIBS
38197 ac_res=`eval echo '${'$as_ac_Lib'}'`
38198 { echo "$as_me:$LINENO: result: $ac_res" >&5
38199 echo "${ECHO_T}$ac_res" >&6; }
38200 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38201 AST_POPT_FOUND=yes
38202 else
38203 AST_POPT_FOUND=no
38208 # now check for the header.
38209 if test "${AST_POPT_FOUND}" = "yes"; then
38210 POPT_LIB="${pbxlibdir} -lpopt "
38211 # if --with-POPT=DIR has been specified, use it.
38212 if test "x${POPT_DIR}" != "x"; then
38213 POPT_INCLUDE="-I${POPT_DIR}/include"
38215 POPT_INCLUDE="${POPT_INCLUDE} "
38216 if test "xpopt.h" = "x" ; then # no header, assume found
38217 POPT_HEADER_FOUND="1"
38218 else # check for the header
38219 saved_cppflags="${CPPFLAGS}"
38220 CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE} "
38221 if test "${ac_cv_header_popt_h+set}" = set; then
38222 { echo "$as_me:$LINENO: checking for popt.h" >&5
38223 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38224 if test "${ac_cv_header_popt_h+set}" = set; then
38225 echo $ECHO_N "(cached) $ECHO_C" >&6
38227 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38228 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38229 else
38230 # Is the header compilable?
38231 { echo "$as_me:$LINENO: checking popt.h usability" >&5
38232 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
38233 cat >conftest.$ac_ext <<_ACEOF
38234 /* confdefs.h. */
38235 _ACEOF
38236 cat confdefs.h >>conftest.$ac_ext
38237 cat >>conftest.$ac_ext <<_ACEOF
38238 /* end confdefs.h. */
38239 $ac_includes_default
38240 #include <popt.h>
38241 _ACEOF
38242 rm -f conftest.$ac_objext
38243 if { (ac_try="$ac_compile"
38244 case "(($ac_try" in
38245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38246 *) ac_try_echo=$ac_try;;
38247 esac
38248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38249 (eval "$ac_compile") 2>conftest.er1
38250 ac_status=$?
38251 grep -v '^ *+' conftest.er1 >conftest.err
38252 rm -f conftest.er1
38253 cat conftest.err >&5
38254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38255 (exit $ac_status); } && {
38256 test -z "$ac_c_werror_flag" ||
38257 test ! -s conftest.err
38258 } && test -s conftest.$ac_objext; then
38259 ac_header_compiler=yes
38260 else
38261 echo "$as_me: failed program was:" >&5
38262 sed 's/^/| /' conftest.$ac_ext >&5
38264 ac_header_compiler=no
38267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38269 echo "${ECHO_T}$ac_header_compiler" >&6; }
38271 # Is the header present?
38272 { echo "$as_me:$LINENO: checking popt.h presence" >&5
38273 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
38274 cat >conftest.$ac_ext <<_ACEOF
38275 /* confdefs.h. */
38276 _ACEOF
38277 cat confdefs.h >>conftest.$ac_ext
38278 cat >>conftest.$ac_ext <<_ACEOF
38279 /* end confdefs.h. */
38280 #include <popt.h>
38281 _ACEOF
38282 if { (ac_try="$ac_cpp conftest.$ac_ext"
38283 case "(($ac_try" in
38284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38285 *) ac_try_echo=$ac_try;;
38286 esac
38287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38289 ac_status=$?
38290 grep -v '^ *+' conftest.er1 >conftest.err
38291 rm -f conftest.er1
38292 cat conftest.err >&5
38293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294 (exit $ac_status); } >/dev/null && {
38295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38296 test ! -s conftest.err
38297 }; then
38298 ac_header_preproc=yes
38299 else
38300 echo "$as_me: failed program was:" >&5
38301 sed 's/^/| /' conftest.$ac_ext >&5
38303 ac_header_preproc=no
38306 rm -f conftest.err conftest.$ac_ext
38307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38308 echo "${ECHO_T}$ac_header_preproc" >&6; }
38310 # So? What about this header?
38311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38312 yes:no: )
38313 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
38314 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38315 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
38316 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
38317 ac_header_preproc=yes
38319 no:yes:* )
38320 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
38321 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
38322 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
38323 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
38324 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
38325 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
38326 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
38327 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
38328 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
38329 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
38330 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
38331 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
38332 ( cat <<\_ASBOX
38333 ## ------------------------------- ##
38334 ## Report this to www.asterisk.org ##
38335 ## ------------------------------- ##
38336 _ASBOX
38337 ) | sed "s/^/$as_me: WARNING: /" >&2
38339 esac
38340 { echo "$as_me:$LINENO: checking for popt.h" >&5
38341 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38342 if test "${ac_cv_header_popt_h+set}" = set; then
38343 echo $ECHO_N "(cached) $ECHO_C" >&6
38344 else
38345 ac_cv_header_popt_h=$ac_header_preproc
38347 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38348 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38351 if test $ac_cv_header_popt_h = yes; then
38352 POPT_HEADER_FOUND=1
38353 else
38354 POPT_HEADER_FOUND=0
38358 CPPFLAGS="${saved_cppflags}"
38360 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
38361 POPT_LIB=""
38362 POPT_INCLUDE=""
38363 else
38364 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38365 POPT_LIB=""
38367 PBX_POPT=1
38368 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38370 cat >>confdefs.h <<_ACEOF
38371 #define HAVE_POPT 1
38372 _ACEOF
38375 cat >>confdefs.h <<_ACEOF
38376 #define HAVE_POPT_VERSION
38377 _ACEOF
38385 if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
38386 pbxlibdir=""
38387 # if --with-PORTAUDIO=DIR has been specified, use it.
38388 if test "x${PORTAUDIO_DIR}" != "x"; then
38389 if test -d ${PORTAUDIO_DIR}/lib; then
38390 pbxlibdir="-L${PORTAUDIO_DIR}/lib"
38391 else
38392 pbxlibdir="-L${PORTAUDIO_DIR}"
38395 pbxfuncname="Pa_GetDeviceCount"
38396 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38397 AST_PORTAUDIO_FOUND=yes
38398 else
38399 as_ac_Lib=`echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
38400 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lportaudio" >&5
38401 echo $ECHO_N "checking for ${pbxfuncname} in -lportaudio... $ECHO_C" >&6; }
38402 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38403 echo $ECHO_N "(cached) $ECHO_C" >&6
38404 else
38405 ac_check_lib_save_LIBS=$LIBS
38406 LIBS="-lportaudio ${pbxlibdir} $LIBS"
38407 cat >conftest.$ac_ext <<_ACEOF
38408 /* confdefs.h. */
38409 _ACEOF
38410 cat confdefs.h >>conftest.$ac_ext
38411 cat >>conftest.$ac_ext <<_ACEOF
38412 /* end confdefs.h. */
38414 /* Override any GCC internal prototype to avoid an error.
38415 Use char because int might match the return type of a GCC
38416 builtin and then its argument prototype would still apply. */
38417 #ifdef __cplusplus
38418 extern "C"
38419 #endif
38420 char ${pbxfuncname} ();
38422 main ()
38424 return ${pbxfuncname} ();
38426 return 0;
38428 _ACEOF
38429 rm -f conftest.$ac_objext conftest$ac_exeext
38430 if { (ac_try="$ac_link"
38431 case "(($ac_try" in
38432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38433 *) ac_try_echo=$ac_try;;
38434 esac
38435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38436 (eval "$ac_link") 2>conftest.er1
38437 ac_status=$?
38438 grep -v '^ *+' conftest.er1 >conftest.err
38439 rm -f conftest.er1
38440 cat conftest.err >&5
38441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442 (exit $ac_status); } && {
38443 test -z "$ac_c_werror_flag" ||
38444 test ! -s conftest.err
38445 } && test -s conftest$ac_exeext &&
38446 $as_test_x conftest$ac_exeext; then
38447 eval "$as_ac_Lib=yes"
38448 else
38449 echo "$as_me: failed program was:" >&5
38450 sed 's/^/| /' conftest.$ac_ext >&5
38452 eval "$as_ac_Lib=no"
38455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38456 conftest$ac_exeext conftest.$ac_ext
38457 LIBS=$ac_check_lib_save_LIBS
38459 ac_res=`eval echo '${'$as_ac_Lib'}'`
38460 { echo "$as_me:$LINENO: result: $ac_res" >&5
38461 echo "${ECHO_T}$ac_res" >&6; }
38462 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38463 AST_PORTAUDIO_FOUND=yes
38464 else
38465 AST_PORTAUDIO_FOUND=no
38470 # now check for the header.
38471 if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
38472 PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
38473 # if --with-PORTAUDIO=DIR has been specified, use it.
38474 if test "x${PORTAUDIO_DIR}" != "x"; then
38475 PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
38477 PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
38478 if test "xportaudio.h" = "x" ; then # no header, assume found
38479 PORTAUDIO_HEADER_FOUND="1"
38480 else # check for the header
38481 saved_cppflags="${CPPFLAGS}"
38482 CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE} "
38483 if test "${ac_cv_header_portaudio_h+set}" = set; then
38484 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38485 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38486 if test "${ac_cv_header_portaudio_h+set}" = set; then
38487 echo $ECHO_N "(cached) $ECHO_C" >&6
38489 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38490 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38491 else
38492 # Is the header compilable?
38493 { echo "$as_me:$LINENO: checking portaudio.h usability" >&5
38494 echo $ECHO_N "checking portaudio.h usability... $ECHO_C" >&6; }
38495 cat >conftest.$ac_ext <<_ACEOF
38496 /* confdefs.h. */
38497 _ACEOF
38498 cat confdefs.h >>conftest.$ac_ext
38499 cat >>conftest.$ac_ext <<_ACEOF
38500 /* end confdefs.h. */
38501 $ac_includes_default
38502 #include <portaudio.h>
38503 _ACEOF
38504 rm -f conftest.$ac_objext
38505 if { (ac_try="$ac_compile"
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_compile") 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); } && {
38518 test -z "$ac_c_werror_flag" ||
38519 test ! -s conftest.err
38520 } && test -s conftest.$ac_objext; then
38521 ac_header_compiler=yes
38522 else
38523 echo "$as_me: failed program was:" >&5
38524 sed 's/^/| /' conftest.$ac_ext >&5
38526 ac_header_compiler=no
38529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38531 echo "${ECHO_T}$ac_header_compiler" >&6; }
38533 # Is the header present?
38534 { echo "$as_me:$LINENO: checking portaudio.h presence" >&5
38535 echo $ECHO_N "checking portaudio.h presence... $ECHO_C" >&6; }
38536 cat >conftest.$ac_ext <<_ACEOF
38537 /* confdefs.h. */
38538 _ACEOF
38539 cat confdefs.h >>conftest.$ac_ext
38540 cat >>conftest.$ac_ext <<_ACEOF
38541 /* end confdefs.h. */
38542 #include <portaudio.h>
38543 _ACEOF
38544 if { (ac_try="$ac_cpp conftest.$ac_ext"
38545 case "(($ac_try" in
38546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38547 *) ac_try_echo=$ac_try;;
38548 esac
38549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38551 ac_status=$?
38552 grep -v '^ *+' conftest.er1 >conftest.err
38553 rm -f conftest.er1
38554 cat conftest.err >&5
38555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38556 (exit $ac_status); } >/dev/null && {
38557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38558 test ! -s conftest.err
38559 }; then
38560 ac_header_preproc=yes
38561 else
38562 echo "$as_me: failed program was:" >&5
38563 sed 's/^/| /' conftest.$ac_ext >&5
38565 ac_header_preproc=no
38568 rm -f conftest.err conftest.$ac_ext
38569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38570 echo "${ECHO_T}$ac_header_preproc" >&6; }
38572 # So? What about this header?
38573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38574 yes:no: )
38575 { echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
38576 echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38577 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
38578 echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
38579 ac_header_preproc=yes
38581 no:yes:* )
38582 { echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
38583 echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
38584 { echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
38585 echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
38586 { echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
38587 echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
38588 { echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
38589 echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
38590 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
38591 echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
38592 { echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
38593 echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
38594 ( cat <<\_ASBOX
38595 ## ------------------------------- ##
38596 ## Report this to www.asterisk.org ##
38597 ## ------------------------------- ##
38598 _ASBOX
38599 ) | sed "s/^/$as_me: WARNING: /" >&2
38601 esac
38602 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38603 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38604 if test "${ac_cv_header_portaudio_h+set}" = set; then
38605 echo $ECHO_N "(cached) $ECHO_C" >&6
38606 else
38607 ac_cv_header_portaudio_h=$ac_header_preproc
38609 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38610 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38613 if test $ac_cv_header_portaudio_h = yes; then
38614 PORTAUDIO_HEADER_FOUND=1
38615 else
38616 PORTAUDIO_HEADER_FOUND=0
38620 CPPFLAGS="${saved_cppflags}"
38622 if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
38623 PORTAUDIO_LIB=""
38624 PORTAUDIO_INCLUDE=""
38625 else
38626 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38627 PORTAUDIO_LIB=""
38629 PBX_PORTAUDIO=1
38630 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38632 cat >>confdefs.h <<_ACEOF
38633 #define HAVE_PORTAUDIO 1
38634 _ACEOF
38637 cat >>confdefs.h <<_ACEOF
38638 #define HAVE_PORTAUDIO_VERSION
38639 _ACEOF
38647 if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
38648 pbxlibdir=""
38649 # if --with-PRI=DIR has been specified, use it.
38650 if test "x${PRI_DIR}" != "x"; then
38651 if test -d ${PRI_DIR}/lib; then
38652 pbxlibdir="-L${PRI_DIR}/lib"
38653 else
38654 pbxlibdir="-L${PRI_DIR}"
38657 pbxfuncname="pri_get_version"
38658 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38659 AST_PRI_FOUND=yes
38660 else
38661 as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
38662 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
38663 echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
38664 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38665 echo $ECHO_N "(cached) $ECHO_C" >&6
38666 else
38667 ac_check_lib_save_LIBS=$LIBS
38668 LIBS="-lpri ${pbxlibdir} $LIBS"
38669 cat >conftest.$ac_ext <<_ACEOF
38670 /* confdefs.h. */
38671 _ACEOF
38672 cat confdefs.h >>conftest.$ac_ext
38673 cat >>conftest.$ac_ext <<_ACEOF
38674 /* end confdefs.h. */
38676 /* Override any GCC internal prototype to avoid an error.
38677 Use char because int might match the return type of a GCC
38678 builtin and then its argument prototype would still apply. */
38679 #ifdef __cplusplus
38680 extern "C"
38681 #endif
38682 char ${pbxfuncname} ();
38684 main ()
38686 return ${pbxfuncname} ();
38688 return 0;
38690 _ACEOF
38691 rm -f conftest.$ac_objext conftest$ac_exeext
38692 if { (ac_try="$ac_link"
38693 case "(($ac_try" in
38694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38695 *) ac_try_echo=$ac_try;;
38696 esac
38697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38698 (eval "$ac_link") 2>conftest.er1
38699 ac_status=$?
38700 grep -v '^ *+' conftest.er1 >conftest.err
38701 rm -f conftest.er1
38702 cat conftest.err >&5
38703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38704 (exit $ac_status); } && {
38705 test -z "$ac_c_werror_flag" ||
38706 test ! -s conftest.err
38707 } && test -s conftest$ac_exeext &&
38708 $as_test_x conftest$ac_exeext; then
38709 eval "$as_ac_Lib=yes"
38710 else
38711 echo "$as_me: failed program was:" >&5
38712 sed 's/^/| /' conftest.$ac_ext >&5
38714 eval "$as_ac_Lib=no"
38717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38718 conftest$ac_exeext conftest.$ac_ext
38719 LIBS=$ac_check_lib_save_LIBS
38721 ac_res=`eval echo '${'$as_ac_Lib'}'`
38722 { echo "$as_me:$LINENO: result: $ac_res" >&5
38723 echo "${ECHO_T}$ac_res" >&6; }
38724 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38725 AST_PRI_FOUND=yes
38726 else
38727 AST_PRI_FOUND=no
38732 # now check for the header.
38733 if test "${AST_PRI_FOUND}" = "yes"; then
38734 PRI_LIB="${pbxlibdir} -lpri "
38735 # if --with-PRI=DIR has been specified, use it.
38736 if test "x${PRI_DIR}" != "x"; then
38737 PRI_INCLUDE="-I${PRI_DIR}/include"
38739 PRI_INCLUDE="${PRI_INCLUDE} "
38740 if test "xlibpri.h" = "x" ; then # no header, assume found
38741 PRI_HEADER_FOUND="1"
38742 else # check for the header
38743 saved_cppflags="${CPPFLAGS}"
38744 CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE} "
38745 if test "${ac_cv_header_libpri_h+set}" = set; then
38746 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38747 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38748 if test "${ac_cv_header_libpri_h+set}" = set; then
38749 echo $ECHO_N "(cached) $ECHO_C" >&6
38751 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38752 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38753 else
38754 # Is the header compilable?
38755 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
38756 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
38757 cat >conftest.$ac_ext <<_ACEOF
38758 /* confdefs.h. */
38759 _ACEOF
38760 cat confdefs.h >>conftest.$ac_ext
38761 cat >>conftest.$ac_ext <<_ACEOF
38762 /* end confdefs.h. */
38763 $ac_includes_default
38764 #include <libpri.h>
38765 _ACEOF
38766 rm -f conftest.$ac_objext
38767 if { (ac_try="$ac_compile"
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_compile") 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); } && {
38780 test -z "$ac_c_werror_flag" ||
38781 test ! -s conftest.err
38782 } && test -s conftest.$ac_objext; then
38783 ac_header_compiler=yes
38784 else
38785 echo "$as_me: failed program was:" >&5
38786 sed 's/^/| /' conftest.$ac_ext >&5
38788 ac_header_compiler=no
38791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38793 echo "${ECHO_T}$ac_header_compiler" >&6; }
38795 # Is the header present?
38796 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
38797 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
38798 cat >conftest.$ac_ext <<_ACEOF
38799 /* confdefs.h. */
38800 _ACEOF
38801 cat confdefs.h >>conftest.$ac_ext
38802 cat >>conftest.$ac_ext <<_ACEOF
38803 /* end confdefs.h. */
38804 #include <libpri.h>
38805 _ACEOF
38806 if { (ac_try="$ac_cpp conftest.$ac_ext"
38807 case "(($ac_try" in
38808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38809 *) ac_try_echo=$ac_try;;
38810 esac
38811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38813 ac_status=$?
38814 grep -v '^ *+' conftest.er1 >conftest.err
38815 rm -f conftest.er1
38816 cat conftest.err >&5
38817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38818 (exit $ac_status); } >/dev/null && {
38819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38820 test ! -s conftest.err
38821 }; then
38822 ac_header_preproc=yes
38823 else
38824 echo "$as_me: failed program was:" >&5
38825 sed 's/^/| /' conftest.$ac_ext >&5
38827 ac_header_preproc=no
38830 rm -f conftest.err conftest.$ac_ext
38831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38832 echo "${ECHO_T}$ac_header_preproc" >&6; }
38834 # So? What about this header?
38835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38836 yes:no: )
38837 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
38838 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38839 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
38840 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
38841 ac_header_preproc=yes
38843 no:yes:* )
38844 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
38845 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
38846 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
38847 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
38848 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
38849 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
38850 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
38851 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
38852 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
38853 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
38854 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
38855 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
38856 ( cat <<\_ASBOX
38857 ## ------------------------------- ##
38858 ## Report this to www.asterisk.org ##
38859 ## ------------------------------- ##
38860 _ASBOX
38861 ) | sed "s/^/$as_me: WARNING: /" >&2
38863 esac
38864 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38865 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38866 if test "${ac_cv_header_libpri_h+set}" = set; then
38867 echo $ECHO_N "(cached) $ECHO_C" >&6
38868 else
38869 ac_cv_header_libpri_h=$ac_header_preproc
38871 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38872 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38875 if test $ac_cv_header_libpri_h = yes; then
38876 PRI_HEADER_FOUND=1
38877 else
38878 PRI_HEADER_FOUND=0
38882 CPPFLAGS="${saved_cppflags}"
38884 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
38885 PRI_LIB=""
38886 PRI_INCLUDE=""
38887 else
38888 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38889 PRI_LIB=""
38891 PBX_PRI=1
38892 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38894 cat >>confdefs.h <<_ACEOF
38895 #define HAVE_PRI 1
38896 _ACEOF
38899 cat >>confdefs.h <<_ACEOF
38900 #define HAVE_PRI_VERSION
38901 _ACEOF
38909 if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
38910 pbxlibdir=""
38911 # if --with-SS7=DIR has been specified, use it.
38912 if test "x${SS7_DIR}" != "x"; then
38913 if test -d ${SS7_DIR}/lib; then
38914 pbxlibdir="-L${SS7_DIR}/lib"
38915 else
38916 pbxlibdir="-L${SS7_DIR}"
38919 pbxfuncname="ss7_pollflags"
38920 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38921 AST_SS7_FOUND=yes
38922 else
38923 as_ac_Lib=`echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
38924 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lss7" >&5
38925 echo $ECHO_N "checking for ${pbxfuncname} in -lss7... $ECHO_C" >&6; }
38926 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38927 echo $ECHO_N "(cached) $ECHO_C" >&6
38928 else
38929 ac_check_lib_save_LIBS=$LIBS
38930 LIBS="-lss7 ${pbxlibdir} $LIBS"
38931 cat >conftest.$ac_ext <<_ACEOF
38932 /* confdefs.h. */
38933 _ACEOF
38934 cat confdefs.h >>conftest.$ac_ext
38935 cat >>conftest.$ac_ext <<_ACEOF
38936 /* end confdefs.h. */
38938 /* Override any GCC internal prototype to avoid an error.
38939 Use char because int might match the return type of a GCC
38940 builtin and then its argument prototype would still apply. */
38941 #ifdef __cplusplus
38942 extern "C"
38943 #endif
38944 char ${pbxfuncname} ();
38946 main ()
38948 return ${pbxfuncname} ();
38950 return 0;
38952 _ACEOF
38953 rm -f conftest.$ac_objext conftest$ac_exeext
38954 if { (ac_try="$ac_link"
38955 case "(($ac_try" in
38956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38957 *) ac_try_echo=$ac_try;;
38958 esac
38959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38960 (eval "$ac_link") 2>conftest.er1
38961 ac_status=$?
38962 grep -v '^ *+' conftest.er1 >conftest.err
38963 rm -f conftest.er1
38964 cat conftest.err >&5
38965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38966 (exit $ac_status); } && {
38967 test -z "$ac_c_werror_flag" ||
38968 test ! -s conftest.err
38969 } && test -s conftest$ac_exeext &&
38970 $as_test_x conftest$ac_exeext; then
38971 eval "$as_ac_Lib=yes"
38972 else
38973 echo "$as_me: failed program was:" >&5
38974 sed 's/^/| /' conftest.$ac_ext >&5
38976 eval "$as_ac_Lib=no"
38979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38980 conftest$ac_exeext conftest.$ac_ext
38981 LIBS=$ac_check_lib_save_LIBS
38983 ac_res=`eval echo '${'$as_ac_Lib'}'`
38984 { echo "$as_me:$LINENO: result: $ac_res" >&5
38985 echo "${ECHO_T}$ac_res" >&6; }
38986 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38987 AST_SS7_FOUND=yes
38988 else
38989 AST_SS7_FOUND=no
38994 # now check for the header.
38995 if test "${AST_SS7_FOUND}" = "yes"; then
38996 SS7_LIB="${pbxlibdir} -lss7 "
38997 # if --with-SS7=DIR has been specified, use it.
38998 if test "x${SS7_DIR}" != "x"; then
38999 SS7_INCLUDE="-I${SS7_DIR}/include"
39001 SS7_INCLUDE="${SS7_INCLUDE} "
39002 if test "xlibss7.h" = "x" ; then # no header, assume found
39003 SS7_HEADER_FOUND="1"
39004 else # check for the header
39005 saved_cppflags="${CPPFLAGS}"
39006 CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE} "
39007 if test "${ac_cv_header_libss7_h+set}" = set; then
39008 { echo "$as_me:$LINENO: checking for libss7.h" >&5
39009 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
39010 if test "${ac_cv_header_libss7_h+set}" = set; then
39011 echo $ECHO_N "(cached) $ECHO_C" >&6
39013 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
39014 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
39015 else
39016 # Is the header compilable?
39017 { echo "$as_me:$LINENO: checking libss7.h usability" >&5
39018 echo $ECHO_N "checking libss7.h usability... $ECHO_C" >&6; }
39019 cat >conftest.$ac_ext <<_ACEOF
39020 /* confdefs.h. */
39021 _ACEOF
39022 cat confdefs.h >>conftest.$ac_ext
39023 cat >>conftest.$ac_ext <<_ACEOF
39024 /* end confdefs.h. */
39025 $ac_includes_default
39026 #include <libss7.h>
39027 _ACEOF
39028 rm -f conftest.$ac_objext
39029 if { (ac_try="$ac_compile"
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_compile") 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); } && {
39042 test -z "$ac_c_werror_flag" ||
39043 test ! -s conftest.err
39044 } && test -s conftest.$ac_objext; then
39045 ac_header_compiler=yes
39046 else
39047 echo "$as_me: failed program was:" >&5
39048 sed 's/^/| /' conftest.$ac_ext >&5
39050 ac_header_compiler=no
39053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39055 echo "${ECHO_T}$ac_header_compiler" >&6; }
39057 # Is the header present?
39058 { echo "$as_me:$LINENO: checking libss7.h presence" >&5
39059 echo $ECHO_N "checking libss7.h presence... $ECHO_C" >&6; }
39060 cat >conftest.$ac_ext <<_ACEOF
39061 /* confdefs.h. */
39062 _ACEOF
39063 cat confdefs.h >>conftest.$ac_ext
39064 cat >>conftest.$ac_ext <<_ACEOF
39065 /* end confdefs.h. */
39066 #include <libss7.h>
39067 _ACEOF
39068 if { (ac_try="$ac_cpp conftest.$ac_ext"
39069 case "(($ac_try" in
39070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39071 *) ac_try_echo=$ac_try;;
39072 esac
39073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39075 ac_status=$?
39076 grep -v '^ *+' conftest.er1 >conftest.err
39077 rm -f conftest.er1
39078 cat conftest.err >&5
39079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39080 (exit $ac_status); } >/dev/null && {
39081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39082 test ! -s conftest.err
39083 }; then
39084 ac_header_preproc=yes
39085 else
39086 echo "$as_me: failed program was:" >&5
39087 sed 's/^/| /' conftest.$ac_ext >&5
39089 ac_header_preproc=no
39092 rm -f conftest.err conftest.$ac_ext
39093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39094 echo "${ECHO_T}$ac_header_preproc" >&6; }
39096 # So? What about this header?
39097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39098 yes:no: )
39099 { echo "$as_me:$LINENO: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&5
39100 echo "$as_me: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39101 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the compiler's result" >&5
39102 echo "$as_me: WARNING: libss7.h: proceeding with the compiler's result" >&2;}
39103 ac_header_preproc=yes
39105 no:yes:* )
39106 { echo "$as_me:$LINENO: WARNING: libss7.h: present but cannot be compiled" >&5
39107 echo "$as_me: WARNING: libss7.h: present but cannot be compiled" >&2;}
39108 { echo "$as_me:$LINENO: WARNING: libss7.h: check for missing prerequisite headers?" >&5
39109 echo "$as_me: WARNING: libss7.h: check for missing prerequisite headers?" >&2;}
39110 { echo "$as_me:$LINENO: WARNING: libss7.h: see the Autoconf documentation" >&5
39111 echo "$as_me: WARNING: libss7.h: see the Autoconf documentation" >&2;}
39112 { echo "$as_me:$LINENO: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&5
39113 echo "$as_me: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&2;}
39114 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the preprocessor's result" >&5
39115 echo "$as_me: WARNING: libss7.h: proceeding with the preprocessor's result" >&2;}
39116 { echo "$as_me:$LINENO: WARNING: libss7.h: in the future, the compiler will take precedence" >&5
39117 echo "$as_me: WARNING: libss7.h: in the future, the compiler will take precedence" >&2;}
39118 ( cat <<\_ASBOX
39119 ## ------------------------------- ##
39120 ## Report this to www.asterisk.org ##
39121 ## ------------------------------- ##
39122 _ASBOX
39123 ) | sed "s/^/$as_me: WARNING: /" >&2
39125 esac
39126 { echo "$as_me:$LINENO: checking for libss7.h" >&5
39127 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
39128 if test "${ac_cv_header_libss7_h+set}" = set; then
39129 echo $ECHO_N "(cached) $ECHO_C" >&6
39130 else
39131 ac_cv_header_libss7_h=$ac_header_preproc
39133 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
39134 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
39137 if test $ac_cv_header_libss7_h = yes; then
39138 SS7_HEADER_FOUND=1
39139 else
39140 SS7_HEADER_FOUND=0
39144 CPPFLAGS="${saved_cppflags}"
39146 if test "x${SS7_HEADER_FOUND}" = "x0" ; then
39147 SS7_LIB=""
39148 SS7_INCLUDE=""
39149 else
39150 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39151 SS7_LIB=""
39153 PBX_SS7=1
39154 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39156 cat >>confdefs.h <<_ACEOF
39157 #define HAVE_SS7 1
39158 _ACEOF
39161 cat >>confdefs.h <<_ACEOF
39162 #define HAVE_SS7_VERSION
39163 _ACEOF
39170 if test "${USE_PWLIB}" != "no"; then
39171 if test -n "${PWLIB_DIR}"; then
39172 PWLIBDIR="${PWLIB_DIR}"
39177 PWLIB_INCDIR=
39178 PWLIB_LIBDIR=
39179 ac_ext=cpp
39180 ac_cpp='$CXXCPP $CPPFLAGS'
39181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39185 if test "${PWLIBDIR:-unset}" != "unset" ; then
39186 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
39187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39188 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
39189 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
39190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39191 echo $ECHO_N "(cached) $ECHO_C" >&6
39193 ac_res=`eval echo '${'$as_ac_Header'}'`
39194 { echo "$as_me:$LINENO: result: $ac_res" >&5
39195 echo "${ECHO_T}$ac_res" >&6; }
39196 else
39197 # Is the header compilable?
39198 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
39199 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
39200 cat >conftest.$ac_ext <<_ACEOF
39201 /* confdefs.h. */
39202 _ACEOF
39203 cat confdefs.h >>conftest.$ac_ext
39204 cat >>conftest.$ac_ext <<_ACEOF
39205 /* end confdefs.h. */
39206 $ac_includes_default
39207 #include <${PWLIBDIR}/version.h>
39208 _ACEOF
39209 rm -f conftest.$ac_objext
39210 if { (ac_try="$ac_compile"
39211 case "(($ac_try" in
39212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39213 *) ac_try_echo=$ac_try;;
39214 esac
39215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39216 (eval "$ac_compile") 2>conftest.er1
39217 ac_status=$?
39218 grep -v '^ *+' conftest.er1 >conftest.err
39219 rm -f conftest.er1
39220 cat conftest.err >&5
39221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39222 (exit $ac_status); } && {
39223 test -z "$ac_cxx_werror_flag" ||
39224 test ! -s conftest.err
39225 } && test -s conftest.$ac_objext; then
39226 ac_header_compiler=yes
39227 else
39228 echo "$as_me: failed program was:" >&5
39229 sed 's/^/| /' conftest.$ac_ext >&5
39231 ac_header_compiler=no
39234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39236 echo "${ECHO_T}$ac_header_compiler" >&6; }
39238 # Is the header present?
39239 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
39240 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
39241 cat >conftest.$ac_ext <<_ACEOF
39242 /* confdefs.h. */
39243 _ACEOF
39244 cat confdefs.h >>conftest.$ac_ext
39245 cat >>conftest.$ac_ext <<_ACEOF
39246 /* end confdefs.h. */
39247 #include <${PWLIBDIR}/version.h>
39248 _ACEOF
39249 if { (ac_try="$ac_cpp conftest.$ac_ext"
39250 case "(($ac_try" in
39251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39252 *) ac_try_echo=$ac_try;;
39253 esac
39254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39256 ac_status=$?
39257 grep -v '^ *+' conftest.er1 >conftest.err
39258 rm -f conftest.er1
39259 cat conftest.err >&5
39260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39261 (exit $ac_status); } >/dev/null && {
39262 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39263 test ! -s conftest.err
39264 }; then
39265 ac_header_preproc=yes
39266 else
39267 echo "$as_me: failed program was:" >&5
39268 sed 's/^/| /' conftest.$ac_ext >&5
39270 ac_header_preproc=no
39273 rm -f conftest.err conftest.$ac_ext
39274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39275 echo "${ECHO_T}$ac_header_preproc" >&6; }
39277 # So? What about this header?
39278 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39279 yes:no: )
39280 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
39281 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39282 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
39283 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
39284 ac_header_preproc=yes
39286 no:yes:* )
39287 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
39288 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
39289 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
39290 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
39291 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
39292 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
39293 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
39294 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
39295 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
39296 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
39297 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
39298 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
39299 ( cat <<\_ASBOX
39300 ## ------------------------------- ##
39301 ## Report this to www.asterisk.org ##
39302 ## ------------------------------- ##
39303 _ASBOX
39304 ) | sed "s/^/$as_me: WARNING: /" >&2
39306 esac
39307 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
39308 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
39309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39310 echo $ECHO_N "(cached) $ECHO_C" >&6
39311 else
39312 eval "$as_ac_Header=\$ac_header_preproc"
39314 ac_res=`eval echo '${'$as_ac_Header'}'`
39315 { echo "$as_me:$LINENO: result: $ac_res" >&5
39316 echo "${ECHO_T}$ac_res" >&6; }
39319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39320 HAS_PWLIB=1
39325 if test "${HAS_PWLIB:-unset}" = "unset" ; then
39326 if test "${OPENH323DIR:-unset}" != "unset"; then
39327 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
39328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39329 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
39330 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
39331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39332 echo $ECHO_N "(cached) $ECHO_C" >&6
39334 ac_res=`eval echo '${'$as_ac_Header'}'`
39335 { echo "$as_me:$LINENO: result: $ac_res" >&5
39336 echo "${ECHO_T}$ac_res" >&6; }
39337 else
39338 # Is the header compilable?
39339 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
39340 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
39341 cat >conftest.$ac_ext <<_ACEOF
39342 /* confdefs.h. */
39343 _ACEOF
39344 cat confdefs.h >>conftest.$ac_ext
39345 cat >>conftest.$ac_ext <<_ACEOF
39346 /* end confdefs.h. */
39347 $ac_includes_default
39348 #include <${OPENH323DIR}/../pwlib/version.h>
39349 _ACEOF
39350 rm -f conftest.$ac_objext
39351 if { (ac_try="$ac_compile"
39352 case "(($ac_try" in
39353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39354 *) ac_try_echo=$ac_try;;
39355 esac
39356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39357 (eval "$ac_compile") 2>conftest.er1
39358 ac_status=$?
39359 grep -v '^ *+' conftest.er1 >conftest.err
39360 rm -f conftest.er1
39361 cat conftest.err >&5
39362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39363 (exit $ac_status); } && {
39364 test -z "$ac_cxx_werror_flag" ||
39365 test ! -s conftest.err
39366 } && test -s conftest.$ac_objext; then
39367 ac_header_compiler=yes
39368 else
39369 echo "$as_me: failed program was:" >&5
39370 sed 's/^/| /' conftest.$ac_ext >&5
39372 ac_header_compiler=no
39375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39377 echo "${ECHO_T}$ac_header_compiler" >&6; }
39379 # Is the header present?
39380 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
39381 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
39382 cat >conftest.$ac_ext <<_ACEOF
39383 /* confdefs.h. */
39384 _ACEOF
39385 cat confdefs.h >>conftest.$ac_ext
39386 cat >>conftest.$ac_ext <<_ACEOF
39387 /* end confdefs.h. */
39388 #include <${OPENH323DIR}/../pwlib/version.h>
39389 _ACEOF
39390 if { (ac_try="$ac_cpp conftest.$ac_ext"
39391 case "(($ac_try" in
39392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39393 *) ac_try_echo=$ac_try;;
39394 esac
39395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39397 ac_status=$?
39398 grep -v '^ *+' conftest.er1 >conftest.err
39399 rm -f conftest.er1
39400 cat conftest.err >&5
39401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39402 (exit $ac_status); } >/dev/null && {
39403 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39404 test ! -s conftest.err
39405 }; then
39406 ac_header_preproc=yes
39407 else
39408 echo "$as_me: failed program was:" >&5
39409 sed 's/^/| /' conftest.$ac_ext >&5
39411 ac_header_preproc=no
39414 rm -f conftest.err conftest.$ac_ext
39415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39416 echo "${ECHO_T}$ac_header_preproc" >&6; }
39418 # So? What about this header?
39419 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39420 yes:no: )
39421 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
39422 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39423 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
39424 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
39425 ac_header_preproc=yes
39427 no:yes:* )
39428 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
39429 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
39430 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
39431 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
39432 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
39433 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
39434 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
39435 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
39436 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
39437 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
39438 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
39439 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
39440 ( cat <<\_ASBOX
39441 ## ------------------------------- ##
39442 ## Report this to www.asterisk.org ##
39443 ## ------------------------------- ##
39444 _ASBOX
39445 ) | sed "s/^/$as_me: WARNING: /" >&2
39447 esac
39448 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
39449 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
39450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39451 echo $ECHO_N "(cached) $ECHO_C" >&6
39452 else
39453 eval "$as_ac_Header=\$ac_header_preproc"
39455 ac_res=`eval echo '${'$as_ac_Header'}'`
39456 { echo "$as_me:$LINENO: result: $ac_res" >&5
39457 echo "${ECHO_T}$ac_res" >&6; }
39460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39461 HAS_PWLIB=1
39466 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39467 PWLIBDIR="${OPENH323DIR}/../pwlib"
39468 else
39469 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
39470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39471 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
39472 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
39473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39474 echo $ECHO_N "(cached) $ECHO_C" >&6
39476 ac_res=`eval echo '${'$as_ac_Header'}'`
39477 { echo "$as_me:$LINENO: result: $ac_res" >&5
39478 echo "${ECHO_T}$ac_res" >&6; }
39479 else
39480 # Is the header compilable?
39481 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
39482 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
39483 cat >conftest.$ac_ext <<_ACEOF
39484 /* confdefs.h. */
39485 _ACEOF
39486 cat confdefs.h >>conftest.$ac_ext
39487 cat >>conftest.$ac_ext <<_ACEOF
39488 /* end confdefs.h. */
39489 $ac_includes_default
39490 #include <${HOME}/pwlib/include/ptlib.h>
39491 _ACEOF
39492 rm -f conftest.$ac_objext
39493 if { (ac_try="$ac_compile"
39494 case "(($ac_try" in
39495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39496 *) ac_try_echo=$ac_try;;
39497 esac
39498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39499 (eval "$ac_compile") 2>conftest.er1
39500 ac_status=$?
39501 grep -v '^ *+' conftest.er1 >conftest.err
39502 rm -f conftest.er1
39503 cat conftest.err >&5
39504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39505 (exit $ac_status); } && {
39506 test -z "$ac_cxx_werror_flag" ||
39507 test ! -s conftest.err
39508 } && test -s conftest.$ac_objext; then
39509 ac_header_compiler=yes
39510 else
39511 echo "$as_me: failed program was:" >&5
39512 sed 's/^/| /' conftest.$ac_ext >&5
39514 ac_header_compiler=no
39517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39519 echo "${ECHO_T}$ac_header_compiler" >&6; }
39521 # Is the header present?
39522 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
39523 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
39524 cat >conftest.$ac_ext <<_ACEOF
39525 /* confdefs.h. */
39526 _ACEOF
39527 cat confdefs.h >>conftest.$ac_ext
39528 cat >>conftest.$ac_ext <<_ACEOF
39529 /* end confdefs.h. */
39530 #include <${HOME}/pwlib/include/ptlib.h>
39531 _ACEOF
39532 if { (ac_try="$ac_cpp conftest.$ac_ext"
39533 case "(($ac_try" in
39534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39535 *) ac_try_echo=$ac_try;;
39536 esac
39537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39539 ac_status=$?
39540 grep -v '^ *+' conftest.er1 >conftest.err
39541 rm -f conftest.er1
39542 cat conftest.err >&5
39543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544 (exit $ac_status); } >/dev/null && {
39545 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39546 test ! -s conftest.err
39547 }; then
39548 ac_header_preproc=yes
39549 else
39550 echo "$as_me: failed program was:" >&5
39551 sed 's/^/| /' conftest.$ac_ext >&5
39553 ac_header_preproc=no
39556 rm -f conftest.err conftest.$ac_ext
39557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39558 echo "${ECHO_T}$ac_header_preproc" >&6; }
39560 # So? What about this header?
39561 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39562 yes:no: )
39563 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39564 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39565 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
39566 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
39567 ac_header_preproc=yes
39569 no:yes:* )
39570 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
39571 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
39572 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
39573 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
39574 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
39575 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
39576 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
39577 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39578 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
39579 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
39580 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
39581 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
39582 ( cat <<\_ASBOX
39583 ## ------------------------------- ##
39584 ## Report this to www.asterisk.org ##
39585 ## ------------------------------- ##
39586 _ASBOX
39587 ) | sed "s/^/$as_me: WARNING: /" >&2
39589 esac
39590 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
39591 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
39592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39593 echo $ECHO_N "(cached) $ECHO_C" >&6
39594 else
39595 eval "$as_ac_Header=\$ac_header_preproc"
39597 ac_res=`eval echo '${'$as_ac_Header'}'`
39598 { echo "$as_me:$LINENO: result: $ac_res" >&5
39599 echo "${ECHO_T}$ac_res" >&6; }
39602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39603 HAS_PWLIB=1
39607 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39608 PWLIBDIR="${HOME}/pwlib"
39609 else
39610 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
39611 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
39612 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
39613 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
39614 echo $ECHO_N "(cached) $ECHO_C" >&6
39616 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
39617 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
39618 else
39619 # Is the header compilable?
39620 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
39621 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
39622 cat >conftest.$ac_ext <<_ACEOF
39623 /* confdefs.h. */
39624 _ACEOF
39625 cat confdefs.h >>conftest.$ac_ext
39626 cat >>conftest.$ac_ext <<_ACEOF
39627 /* end confdefs.h. */
39628 $ac_includes_default
39629 #include </usr/local/include/ptlib.h>
39630 _ACEOF
39631 rm -f conftest.$ac_objext
39632 if { (ac_try="$ac_compile"
39633 case "(($ac_try" in
39634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39635 *) ac_try_echo=$ac_try;;
39636 esac
39637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39638 (eval "$ac_compile") 2>conftest.er1
39639 ac_status=$?
39640 grep -v '^ *+' conftest.er1 >conftest.err
39641 rm -f conftest.er1
39642 cat conftest.err >&5
39643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39644 (exit $ac_status); } && {
39645 test -z "$ac_cxx_werror_flag" ||
39646 test ! -s conftest.err
39647 } && test -s conftest.$ac_objext; then
39648 ac_header_compiler=yes
39649 else
39650 echo "$as_me: failed program was:" >&5
39651 sed 's/^/| /' conftest.$ac_ext >&5
39653 ac_header_compiler=no
39656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39658 echo "${ECHO_T}$ac_header_compiler" >&6; }
39660 # Is the header present?
39661 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
39662 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
39663 cat >conftest.$ac_ext <<_ACEOF
39664 /* confdefs.h. */
39665 _ACEOF
39666 cat confdefs.h >>conftest.$ac_ext
39667 cat >>conftest.$ac_ext <<_ACEOF
39668 /* end confdefs.h. */
39669 #include </usr/local/include/ptlib.h>
39670 _ACEOF
39671 if { (ac_try="$ac_cpp conftest.$ac_ext"
39672 case "(($ac_try" in
39673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39674 *) ac_try_echo=$ac_try;;
39675 esac
39676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39678 ac_status=$?
39679 grep -v '^ *+' conftest.er1 >conftest.err
39680 rm -f conftest.er1
39681 cat conftest.err >&5
39682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39683 (exit $ac_status); } >/dev/null && {
39684 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39685 test ! -s conftest.err
39686 }; then
39687 ac_header_preproc=yes
39688 else
39689 echo "$as_me: failed program was:" >&5
39690 sed 's/^/| /' conftest.$ac_ext >&5
39692 ac_header_preproc=no
39695 rm -f conftest.err conftest.$ac_ext
39696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39697 echo "${ECHO_T}$ac_header_preproc" >&6; }
39699 # So? What about this header?
39700 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39701 yes:no: )
39702 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39703 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39704 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
39705 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
39706 ac_header_preproc=yes
39708 no:yes:* )
39709 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
39710 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
39711 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
39712 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
39713 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
39714 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
39715 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
39716 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39717 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
39718 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
39719 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
39720 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
39721 ( cat <<\_ASBOX
39722 ## ------------------------------- ##
39723 ## Report this to www.asterisk.org ##
39724 ## ------------------------------- ##
39725 _ASBOX
39726 ) | sed "s/^/$as_me: WARNING: /" >&2
39728 esac
39729 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
39730 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
39731 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
39732 echo $ECHO_N "(cached) $ECHO_C" >&6
39733 else
39734 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
39736 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
39737 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
39740 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
39741 HAS_PWLIB=1
39745 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39746 # Extract the first word of "ptlib-config", so it can be a program name with args.
39747 set dummy ptlib-config; ac_word=$2
39748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39750 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
39751 echo $ECHO_N "(cached) $ECHO_C" >&6
39752 else
39753 case $PTLIB_CONFIG in
39754 [\\/]* | ?:[\\/]*)
39755 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
39758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39759 for as_dir in /usr/local/bin
39761 IFS=$as_save_IFS
39762 test -z "$as_dir" && as_dir=.
39763 for ac_exec_ext in '' $ac_executable_extensions; do
39764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39765 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39767 break 2
39769 done
39770 done
39771 IFS=$as_save_IFS
39774 esac
39776 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
39777 if test -n "$PTLIB_CONFIG"; then
39778 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
39779 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
39780 else
39781 { echo "$as_me:$LINENO: result: no" >&5
39782 echo "${ECHO_T}no" >&6; }
39786 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
39787 # Extract the first word of "ptlib-config", so it can be a program name with args.
39788 set dummy ptlib-config; ac_word=$2
39789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39791 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
39792 echo $ECHO_N "(cached) $ECHO_C" >&6
39793 else
39794 case $PTLIB_CONFIG in
39795 [\\/]* | ?:[\\/]*)
39796 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
39799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39800 for as_dir in /usr/local/share/pwlib/make
39802 IFS=$as_save_IFS
39803 test -z "$as_dir" && as_dir=.
39804 for ac_exec_ext in '' $ac_executable_extensions; do
39805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39806 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39808 break 2
39810 done
39811 done
39812 IFS=$as_save_IFS
39815 esac
39817 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
39818 if test -n "$PTLIB_CONFIG"; then
39819 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
39820 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
39821 else
39822 { echo "$as_me:$LINENO: result: no" >&5
39823 echo "${ECHO_T}no" >&6; }
39828 PWLIB_INCDIR="/usr/local/include"
39829 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
39830 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
39831 if test "x$LIB64" != "x"; then
39832 PWLIB_LIBDIR="/usr/local/lib64"
39833 else
39834 PWLIB_LIBDIR="/usr/local/lib"
39837 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
39838 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
39839 else
39840 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
39841 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
39842 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
39843 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
39844 echo $ECHO_N "(cached) $ECHO_C" >&6
39846 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
39847 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
39848 else
39849 # Is the header compilable?
39850 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
39851 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
39852 cat >conftest.$ac_ext <<_ACEOF
39853 /* confdefs.h. */
39854 _ACEOF
39855 cat confdefs.h >>conftest.$ac_ext
39856 cat >>conftest.$ac_ext <<_ACEOF
39857 /* end confdefs.h. */
39858 $ac_includes_default
39859 #include </usr/include/ptlib.h>
39860 _ACEOF
39861 rm -f conftest.$ac_objext
39862 if { (ac_try="$ac_compile"
39863 case "(($ac_try" in
39864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39865 *) ac_try_echo=$ac_try;;
39866 esac
39867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39868 (eval "$ac_compile") 2>conftest.er1
39869 ac_status=$?
39870 grep -v '^ *+' conftest.er1 >conftest.err
39871 rm -f conftest.er1
39872 cat conftest.err >&5
39873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39874 (exit $ac_status); } && {
39875 test -z "$ac_cxx_werror_flag" ||
39876 test ! -s conftest.err
39877 } && test -s conftest.$ac_objext; then
39878 ac_header_compiler=yes
39879 else
39880 echo "$as_me: failed program was:" >&5
39881 sed 's/^/| /' conftest.$ac_ext >&5
39883 ac_header_compiler=no
39886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39888 echo "${ECHO_T}$ac_header_compiler" >&6; }
39890 # Is the header present?
39891 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
39892 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
39893 cat >conftest.$ac_ext <<_ACEOF
39894 /* confdefs.h. */
39895 _ACEOF
39896 cat confdefs.h >>conftest.$ac_ext
39897 cat >>conftest.$ac_ext <<_ACEOF
39898 /* end confdefs.h. */
39899 #include </usr/include/ptlib.h>
39900 _ACEOF
39901 if { (ac_try="$ac_cpp conftest.$ac_ext"
39902 case "(($ac_try" in
39903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39904 *) ac_try_echo=$ac_try;;
39905 esac
39906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39908 ac_status=$?
39909 grep -v '^ *+' conftest.er1 >conftest.err
39910 rm -f conftest.er1
39911 cat conftest.err >&5
39912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913 (exit $ac_status); } >/dev/null && {
39914 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39915 test ! -s conftest.err
39916 }; then
39917 ac_header_preproc=yes
39918 else
39919 echo "$as_me: failed program was:" >&5
39920 sed 's/^/| /' conftest.$ac_ext >&5
39922 ac_header_preproc=no
39925 rm -f conftest.err conftest.$ac_ext
39926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39927 echo "${ECHO_T}$ac_header_preproc" >&6; }
39929 # So? What about this header?
39930 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39931 yes:no: )
39932 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39933 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39934 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
39935 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
39936 ac_header_preproc=yes
39938 no:yes:* )
39939 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
39940 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
39941 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
39942 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
39943 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
39944 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
39945 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
39946 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39947 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
39948 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
39949 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
39950 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
39951 ( cat <<\_ASBOX
39952 ## ------------------------------- ##
39953 ## Report this to www.asterisk.org ##
39954 ## ------------------------------- ##
39955 _ASBOX
39956 ) | sed "s/^/$as_me: WARNING: /" >&2
39958 esac
39959 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
39960 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
39961 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
39962 echo $ECHO_N "(cached) $ECHO_C" >&6
39963 else
39964 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
39966 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
39967 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
39970 if test $ac_cv_header__usr_include_ptlib_h = yes; then
39971 HAS_PWLIB=1
39975 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39976 # Extract the first word of "ptlib-config", so it can be a program name with args.
39977 set dummy ptlib-config; ac_word=$2
39978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39980 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
39981 echo $ECHO_N "(cached) $ECHO_C" >&6
39982 else
39983 case $PTLIB_CONFIG in
39984 [\\/]* | ?:[\\/]*)
39985 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
39988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39989 for as_dir in /usr/share/pwlib/make
39991 IFS=$as_save_IFS
39992 test -z "$as_dir" && as_dir=.
39993 for ac_exec_ext in '' $ac_executable_extensions; do
39994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39995 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39997 break 2
39999 done
40000 done
40001 IFS=$as_save_IFS
40004 esac
40006 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40007 if test -n "$PTLIB_CONFIG"; then
40008 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40009 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40010 else
40011 { echo "$as_me:$LINENO: result: no" >&5
40012 echo "${ECHO_T}no" >&6; }
40016 PWLIB_INCDIR="/usr/include"
40017 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
40018 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40019 if test "x$LIB64" != "x"; then
40020 PWLIB_LIBDIR="/usr/lib64"
40021 else
40022 PWLIB_LIBDIR="/usr/lib"
40025 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
40026 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
40033 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
40034 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
40035 # exit
40038 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40039 if test "${PWLIBDIR:-unset}" = "unset" ; then
40040 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
40041 PWLIBDIR=`$PTLIB_CONFIG --prefix`
40042 else
40043 echo "Cannot find ptlib-config - please install and try again"
40044 exit
40048 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
40049 PWLIBDIR="/usr/share/pwlib"
40050 PWLIB_INCDIR="/usr/include"
40051 if test "x$LIB64" != "x"; then
40052 PWLIB_LIBDIR="/usr/lib64"
40053 else
40054 PWLIB_LIBDIR="/usr/lib"
40057 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
40058 PWLIBDIR="/usr/local/share/pwlib"
40059 PWLIB_INCDIR="/usr/local/include"
40060 if test "x$LIB64" != "x"; then
40061 PWLIB_LIBDIR="/usr/local/lib64"
40062 else
40063 PWLIB_LIBDIR="/usr/local/lib"
40067 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
40068 PWLIB_INCDIR="${PWLIBDIR}/include"
40070 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40071 PWLIB_LIBDIR="${PWLIBDIR}/lib"
40078 ac_ext=c
40079 ac_cpp='$CPP $CPPFLAGS'
40080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40086 if test "${HAS_PWLIB:-unset}" != "unset"; then
40087 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
40088 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
40089 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
40090 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
40091 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
40092 let PWLIB_REQ=1*10000+9*100+2
40094 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
40095 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
40096 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
40097 { echo "$as_me:$LINENO: result: no" >&5
40098 echo "${ECHO_T}no" >&6; }
40099 unset HAS_PWLIB
40100 else
40101 { echo "$as_me:$LINENO: result: yes" >&5
40102 echo "${ECHO_T}yes" >&6; }
40107 if test "${HAS_PWLIB:-unset}" != "unset"; then
40109 PWLIB_OSTYPE=
40110 case "$host_os" in
40111 linux*) PWLIB_OSTYPE=linux ;
40113 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
40115 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
40116 ENDLDLIBS="-lossaudio" ;
40118 netbsd* ) PWLIB_OSTYPE=NetBSD ;
40119 ENDLDLIBS="-lossaudio" ;
40121 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
40123 darwin* ) PWLIB_OSTYPE=Darwin ;
40125 beos*) PWLIB_OSTYPE=beos ;
40126 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
40128 cygwin*) PWLIB_OSTYPE=cygwin ;
40130 mingw*) PWLIB_OSTYPE=mingw ;
40131 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
40132 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
40134 * ) PWLIB_OSTYPE="$host_os" ;
40135 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
40136 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
40138 esac
40140 PWLIB_MACHTYPE=
40141 case "$host_cpu" in
40142 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
40145 x86_64) PWLIB_MACHTYPE=x86_64 ;
40146 P_64BIT=1 ;
40147 LIB64=1 ;
40150 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
40151 P_64BIT=1 ;
40154 sparc ) PWLIB_MACHTYPE=sparc ;
40157 powerpc ) PWLIB_MACHTYPE=ppc ;
40160 ppc ) PWLIB_MACHTYPE=ppc ;
40163 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
40164 P_64BIT=1 ;
40165 LIB64=1 ;
40168 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
40169 P_64BIT=1 ;
40170 LIB64=1 ;
40173 ia64) PWLIB_MACHTYPE=ia64 ;
40174 P_64BIT=1 ;
40177 s390x) PWLIB_MACHTYPE=s390x ;
40178 P_64BIT=1 ;
40179 LIB64=1 ;
40182 s390) PWLIB_MACHTYPE=s390 ;
40185 * ) PWLIB_MACHTYPE="$host_cpu";
40186 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
40187 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
40188 esac
40190 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
40195 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
40198 if test "${HAS_PWLIB:-unset}" != "unset"; then
40199 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
40200 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
40202 saved_cppflags="${CPPFLAGS}"
40203 saved_libs="${LIBS}"
40204 if test "${PWLIB_LIB:-unset}" != "unset"; then
40205 LIBS="${LIBS} ${PWLIB_LIB} "
40206 else
40207 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
40209 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
40211 ac_ext=cpp
40212 ac_cpp='$CXXCPP $CPPFLAGS'
40213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40218 cat >conftest.$ac_ext <<_ACEOF
40219 /* confdefs.h. */
40220 _ACEOF
40221 cat confdefs.h >>conftest.$ac_ext
40222 cat >>conftest.$ac_ext <<_ACEOF
40223 /* end confdefs.h. */
40224 #include "ptlib.h"
40226 main ()
40228 BOOL q = PTime::IsDaylightSavings();
40230 return 0;
40232 _ACEOF
40233 rm -f conftest.$ac_objext conftest$ac_exeext
40234 if { (ac_try="$ac_link"
40235 case "(($ac_try" in
40236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40237 *) ac_try_echo=$ac_try;;
40238 esac
40239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40240 (eval "$ac_link") 2>conftest.er1
40241 ac_status=$?
40242 grep -v '^ *+' conftest.er1 >conftest.err
40243 rm -f conftest.er1
40244 cat conftest.err >&5
40245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40246 (exit $ac_status); } && {
40247 test -z "$ac_cxx_werror_flag" ||
40248 test ! -s conftest.err
40249 } && test -s conftest$ac_exeext &&
40250 $as_test_x conftest$ac_exeext; then
40251 { echo "$as_me:$LINENO: result: yes" >&5
40252 echo "${ECHO_T}yes" >&6; }
40253 ac_cv_lib_PWLIB="yes"
40255 else
40256 echo "$as_me: failed program was:" >&5
40257 sed 's/^/| /' conftest.$ac_ext >&5
40259 { echo "$as_me:$LINENO: result: no" >&5
40260 echo "${ECHO_T}no" >&6; }
40261 ac_cv_lib_PWLIB="no"
40266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40267 conftest$ac_exeext conftest.$ac_ext
40269 ac_ext=c
40270 ac_cpp='$CPP $CPPFLAGS'
40271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40276 LIBS="${saved_libs}"
40277 CPPFLAGS="${saved_cppflags}"
40279 if test "${ac_cv_lib_PWLIB}" = "yes"; then
40280 if test "${PWLIB_LIB:-undef}" = "undef"; then
40281 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
40282 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
40283 else
40284 PWLIB_LIB="-l${PLATFORM_PWLIB}"
40287 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
40288 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
40290 PBX_PWLIB=1
40292 cat >>confdefs.h <<\_ACEOF
40293 #define HAVE_PWLIB 1
40294 _ACEOF
40302 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
40303 if test -n "${OPENH323_DIR}"; then
40304 OPENH323DIR="${OPENH323_DIR}"
40307 OPENH323_INCDIR=
40308 OPENH323_LIBDIR=
40309 ac_ext=cpp
40310 ac_cpp='$CXXCPP $CPPFLAGS'
40311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40315 if test "${OPENH323DIR:-unset}" != "unset" ; then
40316 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
40317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40318 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
40319 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
40320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40321 echo $ECHO_N "(cached) $ECHO_C" >&6
40323 ac_res=`eval echo '${'$as_ac_Header'}'`
40324 { echo "$as_me:$LINENO: result: $ac_res" >&5
40325 echo "${ECHO_T}$ac_res" >&6; }
40326 else
40327 # Is the header compilable?
40328 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
40329 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
40330 cat >conftest.$ac_ext <<_ACEOF
40331 /* confdefs.h. */
40332 _ACEOF
40333 cat confdefs.h >>conftest.$ac_ext
40334 cat >>conftest.$ac_ext <<_ACEOF
40335 /* end confdefs.h. */
40336 $ac_includes_default
40337 #include <${OPENH323DIR}/version.h>
40338 _ACEOF
40339 rm -f conftest.$ac_objext
40340 if { (ac_try="$ac_compile"
40341 case "(($ac_try" in
40342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40343 *) ac_try_echo=$ac_try;;
40344 esac
40345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40346 (eval "$ac_compile") 2>conftest.er1
40347 ac_status=$?
40348 grep -v '^ *+' conftest.er1 >conftest.err
40349 rm -f conftest.er1
40350 cat conftest.err >&5
40351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40352 (exit $ac_status); } && {
40353 test -z "$ac_cxx_werror_flag" ||
40354 test ! -s conftest.err
40355 } && test -s conftest.$ac_objext; then
40356 ac_header_compiler=yes
40357 else
40358 echo "$as_me: failed program was:" >&5
40359 sed 's/^/| /' conftest.$ac_ext >&5
40361 ac_header_compiler=no
40364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40366 echo "${ECHO_T}$ac_header_compiler" >&6; }
40368 # Is the header present?
40369 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
40370 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
40371 cat >conftest.$ac_ext <<_ACEOF
40372 /* confdefs.h. */
40373 _ACEOF
40374 cat confdefs.h >>conftest.$ac_ext
40375 cat >>conftest.$ac_ext <<_ACEOF
40376 /* end confdefs.h. */
40377 #include <${OPENH323DIR}/version.h>
40378 _ACEOF
40379 if { (ac_try="$ac_cpp conftest.$ac_ext"
40380 case "(($ac_try" in
40381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40382 *) ac_try_echo=$ac_try;;
40383 esac
40384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40386 ac_status=$?
40387 grep -v '^ *+' conftest.er1 >conftest.err
40388 rm -f conftest.er1
40389 cat conftest.err >&5
40390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40391 (exit $ac_status); } >/dev/null && {
40392 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40393 test ! -s conftest.err
40394 }; then
40395 ac_header_preproc=yes
40396 else
40397 echo "$as_me: failed program was:" >&5
40398 sed 's/^/| /' conftest.$ac_ext >&5
40400 ac_header_preproc=no
40403 rm -f conftest.err conftest.$ac_ext
40404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40405 echo "${ECHO_T}$ac_header_preproc" >&6; }
40407 # So? What about this header?
40408 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40409 yes:no: )
40410 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40411 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40412 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
40413 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
40414 ac_header_preproc=yes
40416 no:yes:* )
40417 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
40418 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
40419 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
40420 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
40421 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
40422 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
40423 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
40424 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40425 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
40426 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
40427 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
40428 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
40429 ( cat <<\_ASBOX
40430 ## ------------------------------- ##
40431 ## Report this to www.asterisk.org ##
40432 ## ------------------------------- ##
40433 _ASBOX
40434 ) | sed "s/^/$as_me: WARNING: /" >&2
40436 esac
40437 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
40438 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
40439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40440 echo $ECHO_N "(cached) $ECHO_C" >&6
40441 else
40442 eval "$as_ac_Header=\$ac_header_preproc"
40444 ac_res=`eval echo '${'$as_ac_Header'}'`
40445 { echo "$as_me:$LINENO: result: $ac_res" >&5
40446 echo "${ECHO_T}$ac_res" >&6; }
40449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40450 HAS_OPENH323=1
40455 if test "${HAS_OPENH323:-unset}" = "unset" ; then
40456 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
40457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40458 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
40459 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
40460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40461 echo $ECHO_N "(cached) $ECHO_C" >&6
40463 ac_res=`eval echo '${'$as_ac_Header'}'`
40464 { echo "$as_me:$LINENO: result: $ac_res" >&5
40465 echo "${ECHO_T}$ac_res" >&6; }
40466 else
40467 # Is the header compilable?
40468 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
40469 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
40470 cat >conftest.$ac_ext <<_ACEOF
40471 /* confdefs.h. */
40472 _ACEOF
40473 cat confdefs.h >>conftest.$ac_ext
40474 cat >>conftest.$ac_ext <<_ACEOF
40475 /* end confdefs.h. */
40476 $ac_includes_default
40477 #include <${PWLIBDIR}/../openh323/version.h>
40478 _ACEOF
40479 rm -f conftest.$ac_objext
40480 if { (ac_try="$ac_compile"
40481 case "(($ac_try" in
40482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40483 *) ac_try_echo=$ac_try;;
40484 esac
40485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40486 (eval "$ac_compile") 2>conftest.er1
40487 ac_status=$?
40488 grep -v '^ *+' conftest.er1 >conftest.err
40489 rm -f conftest.er1
40490 cat conftest.err >&5
40491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40492 (exit $ac_status); } && {
40493 test -z "$ac_cxx_werror_flag" ||
40494 test ! -s conftest.err
40495 } && test -s conftest.$ac_objext; then
40496 ac_header_compiler=yes
40497 else
40498 echo "$as_me: failed program was:" >&5
40499 sed 's/^/| /' conftest.$ac_ext >&5
40501 ac_header_compiler=no
40504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40506 echo "${ECHO_T}$ac_header_compiler" >&6; }
40508 # Is the header present?
40509 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
40510 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
40511 cat >conftest.$ac_ext <<_ACEOF
40512 /* confdefs.h. */
40513 _ACEOF
40514 cat confdefs.h >>conftest.$ac_ext
40515 cat >>conftest.$ac_ext <<_ACEOF
40516 /* end confdefs.h. */
40517 #include <${PWLIBDIR}/../openh323/version.h>
40518 _ACEOF
40519 if { (ac_try="$ac_cpp conftest.$ac_ext"
40520 case "(($ac_try" in
40521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40522 *) ac_try_echo=$ac_try;;
40523 esac
40524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40526 ac_status=$?
40527 grep -v '^ *+' conftest.er1 >conftest.err
40528 rm -f conftest.er1
40529 cat conftest.err >&5
40530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40531 (exit $ac_status); } >/dev/null && {
40532 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40533 test ! -s conftest.err
40534 }; then
40535 ac_header_preproc=yes
40536 else
40537 echo "$as_me: failed program was:" >&5
40538 sed 's/^/| /' conftest.$ac_ext >&5
40540 ac_header_preproc=no
40543 rm -f conftest.err conftest.$ac_ext
40544 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40545 echo "${ECHO_T}$ac_header_preproc" >&6; }
40547 # So? What about this header?
40548 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40549 yes:no: )
40550 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40551 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40552 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
40553 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
40554 ac_header_preproc=yes
40556 no:yes:* )
40557 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
40558 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
40559 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
40560 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
40561 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
40562 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
40563 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
40564 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40565 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
40566 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
40567 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
40568 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
40569 ( cat <<\_ASBOX
40570 ## ------------------------------- ##
40571 ## Report this to www.asterisk.org ##
40572 ## ------------------------------- ##
40573 _ASBOX
40574 ) | sed "s/^/$as_me: WARNING: /" >&2
40576 esac
40577 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
40578 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
40579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40580 echo $ECHO_N "(cached) $ECHO_C" >&6
40581 else
40582 eval "$as_ac_Header=\$ac_header_preproc"
40584 ac_res=`eval echo '${'$as_ac_Header'}'`
40585 { echo "$as_me:$LINENO: result: $ac_res" >&5
40586 echo "${ECHO_T}$ac_res" >&6; }
40589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40590 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
40594 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40595 OPENH323DIR="${PWLIBDIR}/../openh323"
40596 saved_cppflags="${CPPFLAGS}"
40597 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
40598 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
40599 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
40600 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
40601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40602 echo $ECHO_N "(cached) $ECHO_C" >&6
40603 else
40604 cat >conftest.$ac_ext <<_ACEOF
40605 /* confdefs.h. */
40606 _ACEOF
40607 cat confdefs.h >>conftest.$ac_ext
40608 cat >>conftest.$ac_ext <<_ACEOF
40609 /* end confdefs.h. */
40610 #include <ptlib.h>
40612 #include <${OPENH323DIR}/include/h323.h>
40613 _ACEOF
40614 rm -f conftest.$ac_objext
40615 if { (ac_try="$ac_compile"
40616 case "(($ac_try" in
40617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40618 *) ac_try_echo=$ac_try;;
40619 esac
40620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40621 (eval "$ac_compile") 2>conftest.er1
40622 ac_status=$?
40623 grep -v '^ *+' conftest.er1 >conftest.err
40624 rm -f conftest.er1
40625 cat conftest.err >&5
40626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40627 (exit $ac_status); } && {
40628 test -z "$ac_cxx_werror_flag" ||
40629 test ! -s conftest.err
40630 } && test -s conftest.$ac_objext; then
40631 eval "$as_ac_Header=yes"
40632 else
40633 echo "$as_me: failed program was:" >&5
40634 sed 's/^/| /' conftest.$ac_ext >&5
40636 eval "$as_ac_Header=no"
40639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40641 ac_res=`eval echo '${'$as_ac_Header'}'`
40642 { echo "$as_me:$LINENO: result: $ac_res" >&5
40643 echo "${ECHO_T}$ac_res" >&6; }
40644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40646 else
40647 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
40651 CPPFLAGS="${saved_cppflags}"
40652 else
40653 saved_cppflags="${CPPFLAGS}"
40654 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
40655 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
40656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40657 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
40658 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
40659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40660 echo $ECHO_N "(cached) $ECHO_C" >&6
40662 ac_res=`eval echo '${'$as_ac_Header'}'`
40663 { echo "$as_me:$LINENO: result: $ac_res" >&5
40664 echo "${ECHO_T}$ac_res" >&6; }
40665 else
40666 # Is the header compilable?
40667 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
40668 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
40669 cat >conftest.$ac_ext <<_ACEOF
40670 /* confdefs.h. */
40671 _ACEOF
40672 cat confdefs.h >>conftest.$ac_ext
40673 cat >>conftest.$ac_ext <<_ACEOF
40674 /* end confdefs.h. */
40675 $ac_includes_default
40676 #include <${HOME}/openh323/include/h323.h>
40677 _ACEOF
40678 rm -f conftest.$ac_objext
40679 if { (ac_try="$ac_compile"
40680 case "(($ac_try" in
40681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40682 *) ac_try_echo=$ac_try;;
40683 esac
40684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40685 (eval "$ac_compile") 2>conftest.er1
40686 ac_status=$?
40687 grep -v '^ *+' conftest.er1 >conftest.err
40688 rm -f conftest.er1
40689 cat conftest.err >&5
40690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40691 (exit $ac_status); } && {
40692 test -z "$ac_cxx_werror_flag" ||
40693 test ! -s conftest.err
40694 } && test -s conftest.$ac_objext; then
40695 ac_header_compiler=yes
40696 else
40697 echo "$as_me: failed program was:" >&5
40698 sed 's/^/| /' conftest.$ac_ext >&5
40700 ac_header_compiler=no
40703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40705 echo "${ECHO_T}$ac_header_compiler" >&6; }
40707 # Is the header present?
40708 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
40709 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
40710 cat >conftest.$ac_ext <<_ACEOF
40711 /* confdefs.h. */
40712 _ACEOF
40713 cat confdefs.h >>conftest.$ac_ext
40714 cat >>conftest.$ac_ext <<_ACEOF
40715 /* end confdefs.h. */
40716 #include <${HOME}/openh323/include/h323.h>
40717 _ACEOF
40718 if { (ac_try="$ac_cpp conftest.$ac_ext"
40719 case "(($ac_try" in
40720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40721 *) ac_try_echo=$ac_try;;
40722 esac
40723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40725 ac_status=$?
40726 grep -v '^ *+' conftest.er1 >conftest.err
40727 rm -f conftest.er1
40728 cat conftest.err >&5
40729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40730 (exit $ac_status); } >/dev/null && {
40731 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40732 test ! -s conftest.err
40733 }; then
40734 ac_header_preproc=yes
40735 else
40736 echo "$as_me: failed program was:" >&5
40737 sed 's/^/| /' conftest.$ac_ext >&5
40739 ac_header_preproc=no
40742 rm -f conftest.err conftest.$ac_ext
40743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40744 echo "${ECHO_T}$ac_header_preproc" >&6; }
40746 # So? What about this header?
40747 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40748 yes:no: )
40749 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
40750 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40751 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
40752 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
40753 ac_header_preproc=yes
40755 no:yes:* )
40756 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
40757 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
40758 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
40759 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
40760 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
40761 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
40762 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
40763 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
40764 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
40765 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
40766 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
40767 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
40768 ( cat <<\_ASBOX
40769 ## ------------------------------- ##
40770 ## Report this to www.asterisk.org ##
40771 ## ------------------------------- ##
40772 _ASBOX
40773 ) | sed "s/^/$as_me: WARNING: /" >&2
40775 esac
40776 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
40777 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
40778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40779 echo $ECHO_N "(cached) $ECHO_C" >&6
40780 else
40781 eval "$as_ac_Header=\$ac_header_preproc"
40783 ac_res=`eval echo '${'$as_ac_Header'}'`
40784 { echo "$as_me:$LINENO: result: $ac_res" >&5
40785 echo "${ECHO_T}$ac_res" >&6; }
40788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40789 HAS_OPENH323=1
40793 CPPFLAGS="${saved_cppflags}"
40794 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40795 OPENH323DIR="${HOME}/openh323"
40796 else
40797 saved_cppflags="${CPPFLAGS}"
40798 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
40799 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
40800 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
40801 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
40802 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
40803 echo $ECHO_N "(cached) $ECHO_C" >&6
40805 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
40806 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
40807 else
40808 # Is the header compilable?
40809 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
40810 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
40811 cat >conftest.$ac_ext <<_ACEOF
40812 /* confdefs.h. */
40813 _ACEOF
40814 cat confdefs.h >>conftest.$ac_ext
40815 cat >>conftest.$ac_ext <<_ACEOF
40816 /* end confdefs.h. */
40817 $ac_includes_default
40818 #include </usr/local/include/openh323/h323.h>
40819 _ACEOF
40820 rm -f conftest.$ac_objext
40821 if { (ac_try="$ac_compile"
40822 case "(($ac_try" in
40823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40824 *) ac_try_echo=$ac_try;;
40825 esac
40826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40827 (eval "$ac_compile") 2>conftest.er1
40828 ac_status=$?
40829 grep -v '^ *+' conftest.er1 >conftest.err
40830 rm -f conftest.er1
40831 cat conftest.err >&5
40832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40833 (exit $ac_status); } && {
40834 test -z "$ac_cxx_werror_flag" ||
40835 test ! -s conftest.err
40836 } && test -s conftest.$ac_objext; then
40837 ac_header_compiler=yes
40838 else
40839 echo "$as_me: failed program was:" >&5
40840 sed 's/^/| /' conftest.$ac_ext >&5
40842 ac_header_compiler=no
40845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40847 echo "${ECHO_T}$ac_header_compiler" >&6; }
40849 # Is the header present?
40850 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
40851 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
40852 cat >conftest.$ac_ext <<_ACEOF
40853 /* confdefs.h. */
40854 _ACEOF
40855 cat confdefs.h >>conftest.$ac_ext
40856 cat >>conftest.$ac_ext <<_ACEOF
40857 /* end confdefs.h. */
40858 #include </usr/local/include/openh323/h323.h>
40859 _ACEOF
40860 if { (ac_try="$ac_cpp conftest.$ac_ext"
40861 case "(($ac_try" in
40862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40863 *) ac_try_echo=$ac_try;;
40864 esac
40865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40867 ac_status=$?
40868 grep -v '^ *+' conftest.er1 >conftest.err
40869 rm -f conftest.er1
40870 cat conftest.err >&5
40871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872 (exit $ac_status); } >/dev/null && {
40873 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40874 test ! -s conftest.err
40875 }; then
40876 ac_header_preproc=yes
40877 else
40878 echo "$as_me: failed program was:" >&5
40879 sed 's/^/| /' conftest.$ac_ext >&5
40881 ac_header_preproc=no
40884 rm -f conftest.err conftest.$ac_ext
40885 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40886 echo "${ECHO_T}$ac_header_preproc" >&6; }
40888 # So? What about this header?
40889 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40890 yes:no: )
40891 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
40892 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40893 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
40894 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
40895 ac_header_preproc=yes
40897 no:yes:* )
40898 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
40899 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
40900 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
40901 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
40902 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
40903 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
40904 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
40905 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
40906 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
40907 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
40908 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
40909 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
40910 ( cat <<\_ASBOX
40911 ## ------------------------------- ##
40912 ## Report this to www.asterisk.org ##
40913 ## ------------------------------- ##
40914 _ASBOX
40915 ) | sed "s/^/$as_me: WARNING: /" >&2
40917 esac
40918 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
40919 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
40920 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
40921 echo $ECHO_N "(cached) $ECHO_C" >&6
40922 else
40923 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
40925 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
40926 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
40929 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
40930 HAS_OPENH323=1
40934 CPPFLAGS="${saved_cppflags}"
40935 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40936 OPENH323DIR="/usr/local/share/openh323"
40937 OPENH323_INCDIR="/usr/local/include/openh323"
40938 if test "x$LIB64" != "x"; then
40939 OPENH323_LIBDIR="/usr/local/lib64"
40940 else
40941 OPENH323_LIBDIR="/usr/local/lib"
40943 else
40944 saved_cppflags="${CPPFLAGS}"
40945 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
40946 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
40947 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
40948 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
40949 echo $ECHO_N "(cached) $ECHO_C" >&6
40950 else
40951 cat >conftest.$ac_ext <<_ACEOF
40952 /* confdefs.h. */
40953 _ACEOF
40954 cat confdefs.h >>conftest.$ac_ext
40955 cat >>conftest.$ac_ext <<_ACEOF
40956 /* end confdefs.h. */
40957 #include <ptlib.h>
40959 #include </usr/include/openh323/h323.h>
40960 _ACEOF
40961 rm -f conftest.$ac_objext
40962 if { (ac_try="$ac_compile"
40963 case "(($ac_try" in
40964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40965 *) ac_try_echo=$ac_try;;
40966 esac
40967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40968 (eval "$ac_compile") 2>conftest.er1
40969 ac_status=$?
40970 grep -v '^ *+' conftest.er1 >conftest.err
40971 rm -f conftest.er1
40972 cat conftest.err >&5
40973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974 (exit $ac_status); } && {
40975 test -z "$ac_cxx_werror_flag" ||
40976 test ! -s conftest.err
40977 } && test -s conftest.$ac_objext; then
40978 ac_cv_header__usr_include_openh323_h323_h=yes
40979 else
40980 echo "$as_me: failed program was:" >&5
40981 sed 's/^/| /' conftest.$ac_ext >&5
40983 ac_cv_header__usr_include_openh323_h323_h=no
40986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40988 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
40989 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
40990 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
40991 HAS_OPENH323=1
40995 CPPFLAGS="${saved_cppflags}"
40996 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40997 OPENH323DIR="/usr/share/openh323"
40998 OPENH323_INCDIR="/usr/include/openh323"
40999 if test "x$LIB64" != "x"; then
41000 OPENH323_LIBDIR="/usr/lib64"
41001 else
41002 OPENH323_LIBDIR="/usr/lib"
41010 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41011 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
41012 OPENH323_INCDIR="${OPENH323DIR}/include"
41014 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
41015 OPENH323_LIBDIR="${OPENH323DIR}/lib"
41018 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
41019 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
41020 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
41026 ac_ext=c
41027 ac_cpp='$CPP $CPPFLAGS'
41028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41034 if test "${HAS_OPENH323:-unset}" != "unset"; then
41035 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
41036 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
41037 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
41038 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
41039 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
41040 let OPENH323_REQ=1*10000+17*100+3
41042 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
41043 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
41044 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
41045 { echo "$as_me:$LINENO: result: no" >&5
41046 echo "${ECHO_T}no" >&6; }
41047 unset HAS_OPENH323
41048 else
41049 { echo "$as_me:$LINENO: result: yes" >&5
41050 echo "${ECHO_T}yes" >&6; }
41055 if test "${HAS_OPENH323:-unset}" != "unset"; then
41056 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
41057 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
41058 OPENH323_SUFFIX=
41059 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
41060 for pfx in $prefixes; do
41061 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
41062 libfile=
41063 if test -n "$files"; then
41064 for f in $files; do
41065 if test -f $f -a ! -L $f; then
41066 libfile=`basename $f`
41067 break;
41069 done
41071 if test -n "$libfile"; then
41072 OPENH323_PREFIX=$pfx
41073 break;
41075 done
41076 if test "${libfile:-unset}" != "unset"; then
41077 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
41079 case "${OPENH323_SUFFIX}" in
41081 OPENH323_BUILD="notrace";;
41083 OPENH323_BUILD="opt";;
41085 OPENH323_BUILD="debug";;
41087 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
41088 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
41089 if test "x$notrace" = "x"; then
41090 notrace="0"
41092 if test "$notrace" -ne 0; then
41093 OPENH323_BUILD="notrace"
41094 else
41095 OPENH323_BUILD="opt"
41097 OPENH323_LIB="-l${OPENH323_PREFIX}"
41098 else
41099 OPENH323_BUILD="notrace"
41102 esac
41103 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
41104 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
41110 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
41112 if test "${HAS_OPENH323:-unset}" != "unset"; then
41113 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
41114 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
41116 saved_cppflags="${CPPFLAGS}"
41117 saved_libs="${LIBS}"
41118 if test "${OPENH323_LIB:-unset}" != "unset"; then
41119 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
41120 else
41121 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
41123 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
41125 ac_ext=cpp
41126 ac_cpp='$CXXCPP $CPPFLAGS'
41127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41132 cat >conftest.$ac_ext <<_ACEOF
41133 /* confdefs.h. */
41134 _ACEOF
41135 cat confdefs.h >>conftest.$ac_ext
41136 cat >>conftest.$ac_ext <<_ACEOF
41137 /* end confdefs.h. */
41138 #include "ptlib.h"
41139 #include "h323.h"
41140 #include "h323ep.h"
41142 main ()
41144 H323EndPoint ep = H323EndPoint();
41146 return 0;
41148 _ACEOF
41149 rm -f conftest.$ac_objext conftest$ac_exeext
41150 if { (ac_try="$ac_link"
41151 case "(($ac_try" in
41152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41153 *) ac_try_echo=$ac_try;;
41154 esac
41155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41156 (eval "$ac_link") 2>conftest.er1
41157 ac_status=$?
41158 grep -v '^ *+' conftest.er1 >conftest.err
41159 rm -f conftest.er1
41160 cat conftest.err >&5
41161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41162 (exit $ac_status); } && {
41163 test -z "$ac_cxx_werror_flag" ||
41164 test ! -s conftest.err
41165 } && test -s conftest$ac_exeext &&
41166 $as_test_x conftest$ac_exeext; then
41167 { echo "$as_me:$LINENO: result: yes" >&5
41168 echo "${ECHO_T}yes" >&6; }
41169 ac_cv_lib_OPENH323="yes"
41171 else
41172 echo "$as_me: failed program was:" >&5
41173 sed 's/^/| /' conftest.$ac_ext >&5
41175 { echo "$as_me:$LINENO: result: no" >&5
41176 echo "${ECHO_T}no" >&6; }
41177 ac_cv_lib_OPENH323="no"
41182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41183 conftest$ac_exeext conftest.$ac_ext
41185 ac_ext=c
41186 ac_cpp='$CPP $CPPFLAGS'
41187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41192 LIBS="${saved_libs}"
41193 CPPFLAGS="${saved_cppflags}"
41195 if test "${ac_cv_lib_OPENH323}" = "yes"; then
41196 if test "${OPENH323_LIB:-undef}" = "undef"; then
41197 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
41198 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
41199 else
41200 OPENH323_LIB="-l${PLATFORM_OPENH323}"
41203 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
41204 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
41206 PBX_OPENH323=1
41208 cat >>confdefs.h <<\_ACEOF
41209 #define HAVE_OPENH323 1
41210 _ACEOF
41217 LUA_INCLUDE="-I/usr/include/lua5.1"
41218 LUA_LIB="-llua5.1"
41220 if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
41221 pbxlibdir=""
41222 # if --with-LUA=DIR has been specified, use it.
41223 if test "x${LUA_DIR}" != "x"; then
41224 if test -d ${LUA_DIR}/lib; then
41225 pbxlibdir="-L${LUA_DIR}/lib"
41226 else
41227 pbxlibdir="-L${LUA_DIR}"
41230 pbxfuncname="luaL_newstate"
41231 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41232 AST_LUA_FOUND=yes
41233 else
41234 as_ac_Lib=`echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
41235 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua5.1" >&5
41236 echo $ECHO_N "checking for ${pbxfuncname} in -llua5.1... $ECHO_C" >&6; }
41237 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41238 echo $ECHO_N "(cached) $ECHO_C" >&6
41239 else
41240 ac_check_lib_save_LIBS=$LIBS
41241 LIBS="-llua5.1 ${pbxlibdir} $LIBS"
41242 cat >conftest.$ac_ext <<_ACEOF
41243 /* confdefs.h. */
41244 _ACEOF
41245 cat confdefs.h >>conftest.$ac_ext
41246 cat >>conftest.$ac_ext <<_ACEOF
41247 /* end confdefs.h. */
41249 /* Override any GCC internal prototype to avoid an error.
41250 Use char because int might match the return type of a GCC
41251 builtin and then its argument prototype would still apply. */
41252 #ifdef __cplusplus
41253 extern "C"
41254 #endif
41255 char ${pbxfuncname} ();
41257 main ()
41259 return ${pbxfuncname} ();
41261 return 0;
41263 _ACEOF
41264 rm -f conftest.$ac_objext conftest$ac_exeext
41265 if { (ac_try="$ac_link"
41266 case "(($ac_try" in
41267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41268 *) ac_try_echo=$ac_try;;
41269 esac
41270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41271 (eval "$ac_link") 2>conftest.er1
41272 ac_status=$?
41273 grep -v '^ *+' conftest.er1 >conftest.err
41274 rm -f conftest.er1
41275 cat conftest.err >&5
41276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41277 (exit $ac_status); } && {
41278 test -z "$ac_c_werror_flag" ||
41279 test ! -s conftest.err
41280 } && test -s conftest$ac_exeext &&
41281 $as_test_x conftest$ac_exeext; then
41282 eval "$as_ac_Lib=yes"
41283 else
41284 echo "$as_me: failed program was:" >&5
41285 sed 's/^/| /' conftest.$ac_ext >&5
41287 eval "$as_ac_Lib=no"
41290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41291 conftest$ac_exeext conftest.$ac_ext
41292 LIBS=$ac_check_lib_save_LIBS
41294 ac_res=`eval echo '${'$as_ac_Lib'}'`
41295 { echo "$as_me:$LINENO: result: $ac_res" >&5
41296 echo "${ECHO_T}$ac_res" >&6; }
41297 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41298 AST_LUA_FOUND=yes
41299 else
41300 AST_LUA_FOUND=no
41305 # now check for the header.
41306 if test "${AST_LUA_FOUND}" = "yes"; then
41307 LUA_LIB="${pbxlibdir} -llua5.1 "
41308 # if --with-LUA=DIR has been specified, use it.
41309 if test "x${LUA_DIR}" != "x"; then
41310 LUA_INCLUDE="-I${LUA_DIR}/include"
41312 LUA_INCLUDE="${LUA_INCLUDE} "
41313 if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
41314 LUA_HEADER_FOUND="1"
41315 else # check for the header
41316 saved_cppflags="${CPPFLAGS}"
41317 CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE} "
41318 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41319 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
41320 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
41321 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41322 echo $ECHO_N "(cached) $ECHO_C" >&6
41324 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
41325 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
41326 else
41327 # Is the header compilable?
41328 { echo "$as_me:$LINENO: checking lua5.1/lua.h usability" >&5
41329 echo $ECHO_N "checking lua5.1/lua.h usability... $ECHO_C" >&6; }
41330 cat >conftest.$ac_ext <<_ACEOF
41331 /* confdefs.h. */
41332 _ACEOF
41333 cat confdefs.h >>conftest.$ac_ext
41334 cat >>conftest.$ac_ext <<_ACEOF
41335 /* end confdefs.h. */
41336 $ac_includes_default
41337 #include <lua5.1/lua.h>
41338 _ACEOF
41339 rm -f conftest.$ac_objext
41340 if { (ac_try="$ac_compile"
41341 case "(($ac_try" in
41342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41343 *) ac_try_echo=$ac_try;;
41344 esac
41345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41346 (eval "$ac_compile") 2>conftest.er1
41347 ac_status=$?
41348 grep -v '^ *+' conftest.er1 >conftest.err
41349 rm -f conftest.er1
41350 cat conftest.err >&5
41351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41352 (exit $ac_status); } && {
41353 test -z "$ac_c_werror_flag" ||
41354 test ! -s conftest.err
41355 } && test -s conftest.$ac_objext; then
41356 ac_header_compiler=yes
41357 else
41358 echo "$as_me: failed program was:" >&5
41359 sed 's/^/| /' conftest.$ac_ext >&5
41361 ac_header_compiler=no
41364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41366 echo "${ECHO_T}$ac_header_compiler" >&6; }
41368 # Is the header present?
41369 { echo "$as_me:$LINENO: checking lua5.1/lua.h presence" >&5
41370 echo $ECHO_N "checking lua5.1/lua.h presence... $ECHO_C" >&6; }
41371 cat >conftest.$ac_ext <<_ACEOF
41372 /* confdefs.h. */
41373 _ACEOF
41374 cat confdefs.h >>conftest.$ac_ext
41375 cat >>conftest.$ac_ext <<_ACEOF
41376 /* end confdefs.h. */
41377 #include <lua5.1/lua.h>
41378 _ACEOF
41379 if { (ac_try="$ac_cpp conftest.$ac_ext"
41380 case "(($ac_try" in
41381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41382 *) ac_try_echo=$ac_try;;
41383 esac
41384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41386 ac_status=$?
41387 grep -v '^ *+' conftest.er1 >conftest.err
41388 rm -f conftest.er1
41389 cat conftest.err >&5
41390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41391 (exit $ac_status); } >/dev/null && {
41392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41393 test ! -s conftest.err
41394 }; then
41395 ac_header_preproc=yes
41396 else
41397 echo "$as_me: failed program was:" >&5
41398 sed 's/^/| /' conftest.$ac_ext >&5
41400 ac_header_preproc=no
41403 rm -f conftest.err conftest.$ac_ext
41404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41405 echo "${ECHO_T}$ac_header_preproc" >&6; }
41407 # So? What about this header?
41408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41409 yes:no: )
41410 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
41411 echo "$as_me: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41412 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&5
41413 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&2;}
41414 ac_header_preproc=yes
41416 no:yes:* )
41417 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: present but cannot be compiled" >&5
41418 echo "$as_me: WARNING: lua5.1/lua.h: present but cannot be compiled" >&2;}
41419 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&5
41420 echo "$as_me: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&2;}
41421 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&5
41422 echo "$as_me: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&2;}
41423 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&5
41424 echo "$as_me: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
41425 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&5
41426 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&2;}
41427 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&5
41428 echo "$as_me: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&2;}
41429 ( cat <<\_ASBOX
41430 ## ------------------------------- ##
41431 ## Report this to www.asterisk.org ##
41432 ## ------------------------------- ##
41433 _ASBOX
41434 ) | sed "s/^/$as_me: WARNING: /" >&2
41436 esac
41437 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
41438 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
41439 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41440 echo $ECHO_N "(cached) $ECHO_C" >&6
41441 else
41442 ac_cv_header_lua5_1_lua_h=$ac_header_preproc
41444 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
41445 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
41448 if test $ac_cv_header_lua5_1_lua_h = yes; then
41449 LUA_HEADER_FOUND=1
41450 else
41451 LUA_HEADER_FOUND=0
41455 CPPFLAGS="${saved_cppflags}"
41457 if test "x${LUA_HEADER_FOUND}" = "x0" ; then
41458 LUA_LIB=""
41459 LUA_INCLUDE=""
41460 else
41461 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41462 LUA_LIB=""
41464 PBX_LUA=1
41465 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41467 cat >>confdefs.h <<_ACEOF
41468 #define HAVE_LUA 1
41469 _ACEOF
41472 cat >>confdefs.h <<_ACEOF
41473 #define HAVE_LUA_VERSION
41474 _ACEOF
41482 if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
41483 pbxlibdir=""
41484 # if --with-RADIUS=DIR has been specified, use it.
41485 if test "x${RADIUS_DIR}" != "x"; then
41486 if test -d ${RADIUS_DIR}/lib; then
41487 pbxlibdir="-L${RADIUS_DIR}/lib"
41488 else
41489 pbxlibdir="-L${RADIUS_DIR}"
41492 pbxfuncname="rc_read_config"
41493 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41494 AST_RADIUS_FOUND=yes
41495 else
41496 as_ac_Lib=`echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
41497 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
41498 echo $ECHO_N "checking for ${pbxfuncname} in -lradiusclient-ng... $ECHO_C" >&6; }
41499 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41500 echo $ECHO_N "(cached) $ECHO_C" >&6
41501 else
41502 ac_check_lib_save_LIBS=$LIBS
41503 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
41504 cat >conftest.$ac_ext <<_ACEOF
41505 /* confdefs.h. */
41506 _ACEOF
41507 cat confdefs.h >>conftest.$ac_ext
41508 cat >>conftest.$ac_ext <<_ACEOF
41509 /* end confdefs.h. */
41511 /* Override any GCC internal prototype to avoid an error.
41512 Use char because int might match the return type of a GCC
41513 builtin and then its argument prototype would still apply. */
41514 #ifdef __cplusplus
41515 extern "C"
41516 #endif
41517 char ${pbxfuncname} ();
41519 main ()
41521 return ${pbxfuncname} ();
41523 return 0;
41525 _ACEOF
41526 rm -f conftest.$ac_objext conftest$ac_exeext
41527 if { (ac_try="$ac_link"
41528 case "(($ac_try" in
41529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41530 *) ac_try_echo=$ac_try;;
41531 esac
41532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41533 (eval "$ac_link") 2>conftest.er1
41534 ac_status=$?
41535 grep -v '^ *+' conftest.er1 >conftest.err
41536 rm -f conftest.er1
41537 cat conftest.err >&5
41538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41539 (exit $ac_status); } && {
41540 test -z "$ac_c_werror_flag" ||
41541 test ! -s conftest.err
41542 } && test -s conftest$ac_exeext &&
41543 $as_test_x conftest$ac_exeext; then
41544 eval "$as_ac_Lib=yes"
41545 else
41546 echo "$as_me: failed program was:" >&5
41547 sed 's/^/| /' conftest.$ac_ext >&5
41549 eval "$as_ac_Lib=no"
41552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41553 conftest$ac_exeext conftest.$ac_ext
41554 LIBS=$ac_check_lib_save_LIBS
41556 ac_res=`eval echo '${'$as_ac_Lib'}'`
41557 { echo "$as_me:$LINENO: result: $ac_res" >&5
41558 echo "${ECHO_T}$ac_res" >&6; }
41559 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41560 AST_RADIUS_FOUND=yes
41561 else
41562 AST_RADIUS_FOUND=no
41567 # now check for the header.
41568 if test "${AST_RADIUS_FOUND}" = "yes"; then
41569 RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
41570 # if --with-RADIUS=DIR has been specified, use it.
41571 if test "x${RADIUS_DIR}" != "x"; then
41572 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
41574 RADIUS_INCLUDE="${RADIUS_INCLUDE} "
41575 if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
41576 RADIUS_HEADER_FOUND="1"
41577 else # check for the header
41578 saved_cppflags="${CPPFLAGS}"
41579 CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE} "
41580 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
41581 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
41582 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
41583 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
41584 echo $ECHO_N "(cached) $ECHO_C" >&6
41586 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
41587 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
41588 else
41589 # Is the header compilable?
41590 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
41591 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
41592 cat >conftest.$ac_ext <<_ACEOF
41593 /* confdefs.h. */
41594 _ACEOF
41595 cat confdefs.h >>conftest.$ac_ext
41596 cat >>conftest.$ac_ext <<_ACEOF
41597 /* end confdefs.h. */
41598 $ac_includes_default
41599 #include <radiusclient-ng.h>
41600 _ACEOF
41601 rm -f conftest.$ac_objext
41602 if { (ac_try="$ac_compile"
41603 case "(($ac_try" in
41604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41605 *) ac_try_echo=$ac_try;;
41606 esac
41607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41608 (eval "$ac_compile") 2>conftest.er1
41609 ac_status=$?
41610 grep -v '^ *+' conftest.er1 >conftest.err
41611 rm -f conftest.er1
41612 cat conftest.err >&5
41613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41614 (exit $ac_status); } && {
41615 test -z "$ac_c_werror_flag" ||
41616 test ! -s conftest.err
41617 } && test -s conftest.$ac_objext; then
41618 ac_header_compiler=yes
41619 else
41620 echo "$as_me: failed program was:" >&5
41621 sed 's/^/| /' conftest.$ac_ext >&5
41623 ac_header_compiler=no
41626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41628 echo "${ECHO_T}$ac_header_compiler" >&6; }
41630 # Is the header present?
41631 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
41632 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
41633 cat >conftest.$ac_ext <<_ACEOF
41634 /* confdefs.h. */
41635 _ACEOF
41636 cat confdefs.h >>conftest.$ac_ext
41637 cat >>conftest.$ac_ext <<_ACEOF
41638 /* end confdefs.h. */
41639 #include <radiusclient-ng.h>
41640 _ACEOF
41641 if { (ac_try="$ac_cpp conftest.$ac_ext"
41642 case "(($ac_try" in
41643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41644 *) ac_try_echo=$ac_try;;
41645 esac
41646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41648 ac_status=$?
41649 grep -v '^ *+' conftest.er1 >conftest.err
41650 rm -f conftest.er1
41651 cat conftest.err >&5
41652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41653 (exit $ac_status); } >/dev/null && {
41654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41655 test ! -s conftest.err
41656 }; then
41657 ac_header_preproc=yes
41658 else
41659 echo "$as_me: failed program was:" >&5
41660 sed 's/^/| /' conftest.$ac_ext >&5
41662 ac_header_preproc=no
41665 rm -f conftest.err conftest.$ac_ext
41666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41667 echo "${ECHO_T}$ac_header_preproc" >&6; }
41669 # So? What about this header?
41670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41671 yes:no: )
41672 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
41673 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41674 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
41675 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
41676 ac_header_preproc=yes
41678 no:yes:* )
41679 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
41680 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
41681 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
41682 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
41683 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
41684 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
41685 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
41686 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
41687 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
41688 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
41689 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
41690 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
41691 ( cat <<\_ASBOX
41692 ## ------------------------------- ##
41693 ## Report this to www.asterisk.org ##
41694 ## ------------------------------- ##
41695 _ASBOX
41696 ) | sed "s/^/$as_me: WARNING: /" >&2
41698 esac
41699 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
41700 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
41701 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
41702 echo $ECHO_N "(cached) $ECHO_C" >&6
41703 else
41704 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
41706 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
41707 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
41710 if test $ac_cv_header_radiusclient_ng_h = yes; then
41711 RADIUS_HEADER_FOUND=1
41712 else
41713 RADIUS_HEADER_FOUND=0
41717 CPPFLAGS="${saved_cppflags}"
41719 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
41720 RADIUS_LIB=""
41721 RADIUS_INCLUDE=""
41722 else
41723 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41724 RADIUS_LIB=""
41726 PBX_RADIUS=1
41727 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41729 cat >>confdefs.h <<_ACEOF
41730 #define HAVE_RADIUS 1
41731 _ACEOF
41734 cat >>confdefs.h <<_ACEOF
41735 #define HAVE_RADIUS_VERSION
41736 _ACEOF
41744 if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
41745 pbxlibdir=""
41746 # if --with-SPEEX=DIR has been specified, use it.
41747 if test "x${SPEEX_DIR}" != "x"; then
41748 if test -d ${SPEEX_DIR}/lib; then
41749 pbxlibdir="-L${SPEEX_DIR}/lib"
41750 else
41751 pbxlibdir="-L${SPEEX_DIR}"
41754 pbxfuncname="speex_encode"
41755 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41756 AST_SPEEX_FOUND=yes
41757 else
41758 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
41759 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
41760 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
41761 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41762 echo $ECHO_N "(cached) $ECHO_C" >&6
41763 else
41764 ac_check_lib_save_LIBS=$LIBS
41765 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
41766 cat >conftest.$ac_ext <<_ACEOF
41767 /* confdefs.h. */
41768 _ACEOF
41769 cat confdefs.h >>conftest.$ac_ext
41770 cat >>conftest.$ac_ext <<_ACEOF
41771 /* end confdefs.h. */
41773 /* Override any GCC internal prototype to avoid an error.
41774 Use char because int might match the return type of a GCC
41775 builtin and then its argument prototype would still apply. */
41776 #ifdef __cplusplus
41777 extern "C"
41778 #endif
41779 char ${pbxfuncname} ();
41781 main ()
41783 return ${pbxfuncname} ();
41785 return 0;
41787 _ACEOF
41788 rm -f conftest.$ac_objext conftest$ac_exeext
41789 if { (ac_try="$ac_link"
41790 case "(($ac_try" in
41791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41792 *) ac_try_echo=$ac_try;;
41793 esac
41794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41795 (eval "$ac_link") 2>conftest.er1
41796 ac_status=$?
41797 grep -v '^ *+' conftest.er1 >conftest.err
41798 rm -f conftest.er1
41799 cat conftest.err >&5
41800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41801 (exit $ac_status); } && {
41802 test -z "$ac_c_werror_flag" ||
41803 test ! -s conftest.err
41804 } && test -s conftest$ac_exeext &&
41805 $as_test_x conftest$ac_exeext; then
41806 eval "$as_ac_Lib=yes"
41807 else
41808 echo "$as_me: failed program was:" >&5
41809 sed 's/^/| /' conftest.$ac_ext >&5
41811 eval "$as_ac_Lib=no"
41814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41815 conftest$ac_exeext conftest.$ac_ext
41816 LIBS=$ac_check_lib_save_LIBS
41818 ac_res=`eval echo '${'$as_ac_Lib'}'`
41819 { echo "$as_me:$LINENO: result: $ac_res" >&5
41820 echo "${ECHO_T}$ac_res" >&6; }
41821 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41822 AST_SPEEX_FOUND=yes
41823 else
41824 AST_SPEEX_FOUND=no
41829 # now check for the header.
41830 if test "${AST_SPEEX_FOUND}" = "yes"; then
41831 SPEEX_LIB="${pbxlibdir} -lspeex -lm"
41832 # if --with-SPEEX=DIR has been specified, use it.
41833 if test "x${SPEEX_DIR}" != "x"; then
41834 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
41836 SPEEX_INCLUDE="${SPEEX_INCLUDE} "
41837 if test "xspeex/speex.h" = "x" ; then # no header, assume found
41838 SPEEX_HEADER_FOUND="1"
41839 else # check for the header
41840 saved_cppflags="${CPPFLAGS}"
41841 CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE} "
41842 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41843 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
41844 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
41845 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41846 echo $ECHO_N "(cached) $ECHO_C" >&6
41848 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
41849 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
41850 else
41851 # Is the header compilable?
41852 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
41853 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
41854 cat >conftest.$ac_ext <<_ACEOF
41855 /* confdefs.h. */
41856 _ACEOF
41857 cat confdefs.h >>conftest.$ac_ext
41858 cat >>conftest.$ac_ext <<_ACEOF
41859 /* end confdefs.h. */
41860 $ac_includes_default
41861 #include <speex/speex.h>
41862 _ACEOF
41863 rm -f conftest.$ac_objext
41864 if { (ac_try="$ac_compile"
41865 case "(($ac_try" in
41866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41867 *) ac_try_echo=$ac_try;;
41868 esac
41869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41870 (eval "$ac_compile") 2>conftest.er1
41871 ac_status=$?
41872 grep -v '^ *+' conftest.er1 >conftest.err
41873 rm -f conftest.er1
41874 cat conftest.err >&5
41875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41876 (exit $ac_status); } && {
41877 test -z "$ac_c_werror_flag" ||
41878 test ! -s conftest.err
41879 } && test -s conftest.$ac_objext; then
41880 ac_header_compiler=yes
41881 else
41882 echo "$as_me: failed program was:" >&5
41883 sed 's/^/| /' conftest.$ac_ext >&5
41885 ac_header_compiler=no
41888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41890 echo "${ECHO_T}$ac_header_compiler" >&6; }
41892 # Is the header present?
41893 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
41894 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
41895 cat >conftest.$ac_ext <<_ACEOF
41896 /* confdefs.h. */
41897 _ACEOF
41898 cat confdefs.h >>conftest.$ac_ext
41899 cat >>conftest.$ac_ext <<_ACEOF
41900 /* end confdefs.h. */
41901 #include <speex/speex.h>
41902 _ACEOF
41903 if { (ac_try="$ac_cpp conftest.$ac_ext"
41904 case "(($ac_try" in
41905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41906 *) ac_try_echo=$ac_try;;
41907 esac
41908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41910 ac_status=$?
41911 grep -v '^ *+' conftest.er1 >conftest.err
41912 rm -f conftest.er1
41913 cat conftest.err >&5
41914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41915 (exit $ac_status); } >/dev/null && {
41916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41917 test ! -s conftest.err
41918 }; then
41919 ac_header_preproc=yes
41920 else
41921 echo "$as_me: failed program was:" >&5
41922 sed 's/^/| /' conftest.$ac_ext >&5
41924 ac_header_preproc=no
41927 rm -f conftest.err conftest.$ac_ext
41928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41929 echo "${ECHO_T}$ac_header_preproc" >&6; }
41931 # So? What about this header?
41932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41933 yes:no: )
41934 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
41935 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41936 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
41937 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
41938 ac_header_preproc=yes
41940 no:yes:* )
41941 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
41942 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
41943 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
41944 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
41945 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
41946 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
41947 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
41948 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
41949 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
41950 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
41951 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
41952 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
41953 ( cat <<\_ASBOX
41954 ## ------------------------------- ##
41955 ## Report this to www.asterisk.org ##
41956 ## ------------------------------- ##
41957 _ASBOX
41958 ) | sed "s/^/$as_me: WARNING: /" >&2
41960 esac
41961 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
41962 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
41963 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41964 echo $ECHO_N "(cached) $ECHO_C" >&6
41965 else
41966 ac_cv_header_speex_speex_h=$ac_header_preproc
41968 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
41969 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
41972 if test $ac_cv_header_speex_speex_h = yes; then
41973 SPEEX_HEADER_FOUND=1
41974 else
41975 SPEEX_HEADER_FOUND=0
41979 CPPFLAGS="${saved_cppflags}"
41981 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
41982 SPEEX_LIB=""
41983 SPEEX_INCLUDE=""
41984 else
41985 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41986 SPEEX_LIB=""
41988 PBX_SPEEX=1
41989 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41991 cat >>confdefs.h <<_ACEOF
41992 #define HAVE_SPEEX 1
41993 _ACEOF
41996 cat >>confdefs.h <<_ACEOF
41997 #define HAVE_SPEEX_VERSION
41998 _ACEOF
42005 # See if the main speex library contains the preprocess functions
42007 if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
42008 pbxlibdir=""
42009 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
42010 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
42011 if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
42012 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
42013 else
42014 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
42017 pbxfuncname="speex_preprocess_ctl"
42018 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42019 AST_SPEEX_PREPROCESS_FOUND=yes
42020 else
42021 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
42022 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
42023 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
42024 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42025 echo $ECHO_N "(cached) $ECHO_C" >&6
42026 else
42027 ac_check_lib_save_LIBS=$LIBS
42028 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
42029 cat >conftest.$ac_ext <<_ACEOF
42030 /* confdefs.h. */
42031 _ACEOF
42032 cat confdefs.h >>conftest.$ac_ext
42033 cat >>conftest.$ac_ext <<_ACEOF
42034 /* end confdefs.h. */
42036 /* Override any GCC internal prototype to avoid an error.
42037 Use char because int might match the return type of a GCC
42038 builtin and then its argument prototype would still apply. */
42039 #ifdef __cplusplus
42040 extern "C"
42041 #endif
42042 char ${pbxfuncname} ();
42044 main ()
42046 return ${pbxfuncname} ();
42048 return 0;
42050 _ACEOF
42051 rm -f conftest.$ac_objext conftest$ac_exeext
42052 if { (ac_try="$ac_link"
42053 case "(($ac_try" in
42054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42055 *) ac_try_echo=$ac_try;;
42056 esac
42057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42058 (eval "$ac_link") 2>conftest.er1
42059 ac_status=$?
42060 grep -v '^ *+' conftest.er1 >conftest.err
42061 rm -f conftest.er1
42062 cat conftest.err >&5
42063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42064 (exit $ac_status); } && {
42065 test -z "$ac_c_werror_flag" ||
42066 test ! -s conftest.err
42067 } && test -s conftest$ac_exeext &&
42068 $as_test_x conftest$ac_exeext; then
42069 eval "$as_ac_Lib=yes"
42070 else
42071 echo "$as_me: failed program was:" >&5
42072 sed 's/^/| /' conftest.$ac_ext >&5
42074 eval "$as_ac_Lib=no"
42077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42078 conftest$ac_exeext conftest.$ac_ext
42079 LIBS=$ac_check_lib_save_LIBS
42081 ac_res=`eval echo '${'$as_ac_Lib'}'`
42082 { echo "$as_me:$LINENO: result: $ac_res" >&5
42083 echo "${ECHO_T}$ac_res" >&6; }
42084 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42085 AST_SPEEX_PREPROCESS_FOUND=yes
42086 else
42087 AST_SPEEX_PREPROCESS_FOUND=no
42092 # now check for the header.
42093 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
42094 SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
42095 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
42096 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
42097 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
42099 SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
42100 if test "xspeex/speex.h" = "x" ; then # no header, assume found
42101 SPEEX_PREPROCESS_HEADER_FOUND="1"
42102 else # check for the header
42103 saved_cppflags="${CPPFLAGS}"
42104 CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE} "
42105 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42106 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42107 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42108 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42109 echo $ECHO_N "(cached) $ECHO_C" >&6
42111 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42112 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42113 else
42114 # Is the header compilable?
42115 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
42116 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
42117 cat >conftest.$ac_ext <<_ACEOF
42118 /* confdefs.h. */
42119 _ACEOF
42120 cat confdefs.h >>conftest.$ac_ext
42121 cat >>conftest.$ac_ext <<_ACEOF
42122 /* end confdefs.h. */
42123 $ac_includes_default
42124 #include <speex/speex.h>
42125 _ACEOF
42126 rm -f conftest.$ac_objext
42127 if { (ac_try="$ac_compile"
42128 case "(($ac_try" in
42129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42130 *) ac_try_echo=$ac_try;;
42131 esac
42132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42133 (eval "$ac_compile") 2>conftest.er1
42134 ac_status=$?
42135 grep -v '^ *+' conftest.er1 >conftest.err
42136 rm -f conftest.er1
42137 cat conftest.err >&5
42138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42139 (exit $ac_status); } && {
42140 test -z "$ac_c_werror_flag" ||
42141 test ! -s conftest.err
42142 } && test -s conftest.$ac_objext; then
42143 ac_header_compiler=yes
42144 else
42145 echo "$as_me: failed program was:" >&5
42146 sed 's/^/| /' conftest.$ac_ext >&5
42148 ac_header_compiler=no
42151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42153 echo "${ECHO_T}$ac_header_compiler" >&6; }
42155 # Is the header present?
42156 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
42157 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
42158 cat >conftest.$ac_ext <<_ACEOF
42159 /* confdefs.h. */
42160 _ACEOF
42161 cat confdefs.h >>conftest.$ac_ext
42162 cat >>conftest.$ac_ext <<_ACEOF
42163 /* end confdefs.h. */
42164 #include <speex/speex.h>
42165 _ACEOF
42166 if { (ac_try="$ac_cpp conftest.$ac_ext"
42167 case "(($ac_try" in
42168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42169 *) ac_try_echo=$ac_try;;
42170 esac
42171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42173 ac_status=$?
42174 grep -v '^ *+' conftest.er1 >conftest.err
42175 rm -f conftest.er1
42176 cat conftest.err >&5
42177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42178 (exit $ac_status); } >/dev/null && {
42179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42180 test ! -s conftest.err
42181 }; then
42182 ac_header_preproc=yes
42183 else
42184 echo "$as_me: failed program was:" >&5
42185 sed 's/^/| /' conftest.$ac_ext >&5
42187 ac_header_preproc=no
42190 rm -f conftest.err conftest.$ac_ext
42191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42192 echo "${ECHO_T}$ac_header_preproc" >&6; }
42194 # So? What about this header?
42195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42196 yes:no: )
42197 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
42198 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42199 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
42200 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
42201 ac_header_preproc=yes
42203 no:yes:* )
42204 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
42205 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
42206 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
42207 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
42208 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
42209 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
42210 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
42211 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
42212 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
42213 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
42214 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
42215 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
42216 ( cat <<\_ASBOX
42217 ## ------------------------------- ##
42218 ## Report this to www.asterisk.org ##
42219 ## ------------------------------- ##
42220 _ASBOX
42221 ) | sed "s/^/$as_me: WARNING: /" >&2
42223 esac
42224 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42225 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42226 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42227 echo $ECHO_N "(cached) $ECHO_C" >&6
42228 else
42229 ac_cv_header_speex_speex_h=$ac_header_preproc
42231 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42232 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42235 if test $ac_cv_header_speex_speex_h = yes; then
42236 SPEEX_PREPROCESS_HEADER_FOUND=1
42237 else
42238 SPEEX_PREPROCESS_HEADER_FOUND=0
42242 CPPFLAGS="${saved_cppflags}"
42244 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
42245 SPEEX_PREPROCESS_LIB=""
42246 SPEEX_PREPROCESS_INCLUDE=""
42247 else
42248 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42249 SPEEX_PREPROCESS_LIB=""
42251 PBX_SPEEX_PREPROCESS=1
42252 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42254 cat >>confdefs.h <<_ACEOF
42255 #define HAVE_SPEEX_PREPROCESS 1
42256 _ACEOF
42259 cat >>confdefs.h <<_ACEOF
42260 #define HAVE_SPEEX_PREPROCESS_VERSION
42261 _ACEOF
42267 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
42268 PBX_SPEEX_PREPROCESS=1
42272 if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
42273 pbxlibdir=""
42274 # if --with-SPEEXDSP=DIR has been specified, use it.
42275 if test "x${SPEEXDSP_DIR}" != "x"; then
42276 if test -d ${SPEEXDSP_DIR}/lib; then
42277 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
42278 else
42279 pbxlibdir="-L${SPEEXDSP_DIR}"
42282 pbxfuncname="speex_preprocess_ctl"
42283 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42284 AST_SPEEXDSP_FOUND=yes
42285 else
42286 as_ac_Lib=`echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
42287 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeexdsp" >&5
42288 echo $ECHO_N "checking for ${pbxfuncname} in -lspeexdsp... $ECHO_C" >&6; }
42289 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42290 echo $ECHO_N "(cached) $ECHO_C" >&6
42291 else
42292 ac_check_lib_save_LIBS=$LIBS
42293 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
42294 cat >conftest.$ac_ext <<_ACEOF
42295 /* confdefs.h. */
42296 _ACEOF
42297 cat confdefs.h >>conftest.$ac_ext
42298 cat >>conftest.$ac_ext <<_ACEOF
42299 /* end confdefs.h. */
42301 /* Override any GCC internal prototype to avoid an error.
42302 Use char because int might match the return type of a GCC
42303 builtin and then its argument prototype would still apply. */
42304 #ifdef __cplusplus
42305 extern "C"
42306 #endif
42307 char ${pbxfuncname} ();
42309 main ()
42311 return ${pbxfuncname} ();
42313 return 0;
42315 _ACEOF
42316 rm -f conftest.$ac_objext conftest$ac_exeext
42317 if { (ac_try="$ac_link"
42318 case "(($ac_try" in
42319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42320 *) ac_try_echo=$ac_try;;
42321 esac
42322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42323 (eval "$ac_link") 2>conftest.er1
42324 ac_status=$?
42325 grep -v '^ *+' conftest.er1 >conftest.err
42326 rm -f conftest.er1
42327 cat conftest.err >&5
42328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42329 (exit $ac_status); } && {
42330 test -z "$ac_c_werror_flag" ||
42331 test ! -s conftest.err
42332 } && test -s conftest$ac_exeext &&
42333 $as_test_x conftest$ac_exeext; then
42334 eval "$as_ac_Lib=yes"
42335 else
42336 echo "$as_me: failed program was:" >&5
42337 sed 's/^/| /' conftest.$ac_ext >&5
42339 eval "$as_ac_Lib=no"
42342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42343 conftest$ac_exeext conftest.$ac_ext
42344 LIBS=$ac_check_lib_save_LIBS
42346 ac_res=`eval echo '${'$as_ac_Lib'}'`
42347 { echo "$as_me:$LINENO: result: $ac_res" >&5
42348 echo "${ECHO_T}$ac_res" >&6; }
42349 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42350 AST_SPEEXDSP_FOUND=yes
42351 else
42352 AST_SPEEXDSP_FOUND=no
42357 # now check for the header.
42358 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
42359 SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
42360 # if --with-SPEEXDSP=DIR has been specified, use it.
42361 if test "x${SPEEXDSP_DIR}" != "x"; then
42362 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
42364 SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
42365 if test "xspeex/speex.h" = "x" ; then # no header, assume found
42366 SPEEXDSP_HEADER_FOUND="1"
42367 else # check for the header
42368 saved_cppflags="${CPPFLAGS}"
42369 CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE} "
42370 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42371 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42372 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42373 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42374 echo $ECHO_N "(cached) $ECHO_C" >&6
42376 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42377 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42378 else
42379 # Is the header compilable?
42380 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
42381 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
42382 cat >conftest.$ac_ext <<_ACEOF
42383 /* confdefs.h. */
42384 _ACEOF
42385 cat confdefs.h >>conftest.$ac_ext
42386 cat >>conftest.$ac_ext <<_ACEOF
42387 /* end confdefs.h. */
42388 $ac_includes_default
42389 #include <speex/speex.h>
42390 _ACEOF
42391 rm -f conftest.$ac_objext
42392 if { (ac_try="$ac_compile"
42393 case "(($ac_try" in
42394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42395 *) ac_try_echo=$ac_try;;
42396 esac
42397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42398 (eval "$ac_compile") 2>conftest.er1
42399 ac_status=$?
42400 grep -v '^ *+' conftest.er1 >conftest.err
42401 rm -f conftest.er1
42402 cat conftest.err >&5
42403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404 (exit $ac_status); } && {
42405 test -z "$ac_c_werror_flag" ||
42406 test ! -s conftest.err
42407 } && test -s conftest.$ac_objext; then
42408 ac_header_compiler=yes
42409 else
42410 echo "$as_me: failed program was:" >&5
42411 sed 's/^/| /' conftest.$ac_ext >&5
42413 ac_header_compiler=no
42416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42418 echo "${ECHO_T}$ac_header_compiler" >&6; }
42420 # Is the header present?
42421 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
42422 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
42423 cat >conftest.$ac_ext <<_ACEOF
42424 /* confdefs.h. */
42425 _ACEOF
42426 cat confdefs.h >>conftest.$ac_ext
42427 cat >>conftest.$ac_ext <<_ACEOF
42428 /* end confdefs.h. */
42429 #include <speex/speex.h>
42430 _ACEOF
42431 if { (ac_try="$ac_cpp conftest.$ac_ext"
42432 case "(($ac_try" in
42433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42434 *) ac_try_echo=$ac_try;;
42435 esac
42436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42438 ac_status=$?
42439 grep -v '^ *+' conftest.er1 >conftest.err
42440 rm -f conftest.er1
42441 cat conftest.err >&5
42442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42443 (exit $ac_status); } >/dev/null && {
42444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42445 test ! -s conftest.err
42446 }; then
42447 ac_header_preproc=yes
42448 else
42449 echo "$as_me: failed program was:" >&5
42450 sed 's/^/| /' conftest.$ac_ext >&5
42452 ac_header_preproc=no
42455 rm -f conftest.err conftest.$ac_ext
42456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42457 echo "${ECHO_T}$ac_header_preproc" >&6; }
42459 # So? What about this header?
42460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42461 yes:no: )
42462 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
42463 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42464 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
42465 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
42466 ac_header_preproc=yes
42468 no:yes:* )
42469 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
42470 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
42471 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
42472 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
42473 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
42474 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
42475 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
42476 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
42477 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
42478 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
42479 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
42480 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
42481 ( cat <<\_ASBOX
42482 ## ------------------------------- ##
42483 ## Report this to www.asterisk.org ##
42484 ## ------------------------------- ##
42485 _ASBOX
42486 ) | sed "s/^/$as_me: WARNING: /" >&2
42488 esac
42489 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42490 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42491 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42492 echo $ECHO_N "(cached) $ECHO_C" >&6
42493 else
42494 ac_cv_header_speex_speex_h=$ac_header_preproc
42496 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42497 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42500 if test $ac_cv_header_speex_speex_h = yes; then
42501 SPEEXDSP_HEADER_FOUND=1
42502 else
42503 SPEEXDSP_HEADER_FOUND=0
42507 CPPFLAGS="${saved_cppflags}"
42509 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
42510 SPEEXDSP_LIB=""
42511 SPEEXDSP_INCLUDE=""
42512 else
42513 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42514 SPEEXDSP_LIB=""
42516 PBX_SPEEXDSP=1
42517 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42519 cat >>confdefs.h <<_ACEOF
42520 #define HAVE_SPEEXDSP 1
42521 _ACEOF
42524 cat >>confdefs.h <<_ACEOF
42525 #define HAVE_SPEEXDSP_VERSION
42526 _ACEOF
42532 if test "${PBX_SPEEXDSP}" = 1; then
42533 PBX_SPEEX_PREPROCESS=1
42539 if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
42540 pbxlibdir=""
42541 # if --with-SQLITE=DIR has been specified, use it.
42542 if test "x${SQLITE_DIR}" != "x"; then
42543 if test -d ${SQLITE_DIR}/lib; then
42544 pbxlibdir="-L${SQLITE_DIR}/lib"
42545 else
42546 pbxlibdir="-L${SQLITE_DIR}"
42549 pbxfuncname="sqlite_exec"
42550 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42551 AST_SQLITE_FOUND=yes
42552 else
42553 as_ac_Lib=`echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
42554 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite" >&5
42555 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite... $ECHO_C" >&6; }
42556 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42557 echo $ECHO_N "(cached) $ECHO_C" >&6
42558 else
42559 ac_check_lib_save_LIBS=$LIBS
42560 LIBS="-lsqlite ${pbxlibdir} $LIBS"
42561 cat >conftest.$ac_ext <<_ACEOF
42562 /* confdefs.h. */
42563 _ACEOF
42564 cat confdefs.h >>conftest.$ac_ext
42565 cat >>conftest.$ac_ext <<_ACEOF
42566 /* end confdefs.h. */
42568 /* Override any GCC internal prototype to avoid an error.
42569 Use char because int might match the return type of a GCC
42570 builtin and then its argument prototype would still apply. */
42571 #ifdef __cplusplus
42572 extern "C"
42573 #endif
42574 char ${pbxfuncname} ();
42576 main ()
42578 return ${pbxfuncname} ();
42580 return 0;
42582 _ACEOF
42583 rm -f conftest.$ac_objext conftest$ac_exeext
42584 if { (ac_try="$ac_link"
42585 case "(($ac_try" in
42586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42587 *) ac_try_echo=$ac_try;;
42588 esac
42589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42590 (eval "$ac_link") 2>conftest.er1
42591 ac_status=$?
42592 grep -v '^ *+' conftest.er1 >conftest.err
42593 rm -f conftest.er1
42594 cat conftest.err >&5
42595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42596 (exit $ac_status); } && {
42597 test -z "$ac_c_werror_flag" ||
42598 test ! -s conftest.err
42599 } && test -s conftest$ac_exeext &&
42600 $as_test_x conftest$ac_exeext; then
42601 eval "$as_ac_Lib=yes"
42602 else
42603 echo "$as_me: failed program was:" >&5
42604 sed 's/^/| /' conftest.$ac_ext >&5
42606 eval "$as_ac_Lib=no"
42609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42610 conftest$ac_exeext conftest.$ac_ext
42611 LIBS=$ac_check_lib_save_LIBS
42613 ac_res=`eval echo '${'$as_ac_Lib'}'`
42614 { echo "$as_me:$LINENO: result: $ac_res" >&5
42615 echo "${ECHO_T}$ac_res" >&6; }
42616 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42617 AST_SQLITE_FOUND=yes
42618 else
42619 AST_SQLITE_FOUND=no
42624 # now check for the header.
42625 if test "${AST_SQLITE_FOUND}" = "yes"; then
42626 SQLITE_LIB="${pbxlibdir} -lsqlite "
42627 # if --with-SQLITE=DIR has been specified, use it.
42628 if test "x${SQLITE_DIR}" != "x"; then
42629 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
42631 SQLITE_INCLUDE="${SQLITE_INCLUDE} "
42632 if test "xsqlite.h" = "x" ; then # no header, assume found
42633 SQLITE_HEADER_FOUND="1"
42634 else # check for the header
42635 saved_cppflags="${CPPFLAGS}"
42636 CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE} "
42637 if test "${ac_cv_header_sqlite_h+set}" = set; then
42638 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
42639 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
42640 if test "${ac_cv_header_sqlite_h+set}" = set; then
42641 echo $ECHO_N "(cached) $ECHO_C" >&6
42643 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
42644 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
42645 else
42646 # Is the header compilable?
42647 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
42648 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
42649 cat >conftest.$ac_ext <<_ACEOF
42650 /* confdefs.h. */
42651 _ACEOF
42652 cat confdefs.h >>conftest.$ac_ext
42653 cat >>conftest.$ac_ext <<_ACEOF
42654 /* end confdefs.h. */
42655 $ac_includes_default
42656 #include <sqlite.h>
42657 _ACEOF
42658 rm -f conftest.$ac_objext
42659 if { (ac_try="$ac_compile"
42660 case "(($ac_try" in
42661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42662 *) ac_try_echo=$ac_try;;
42663 esac
42664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42665 (eval "$ac_compile") 2>conftest.er1
42666 ac_status=$?
42667 grep -v '^ *+' conftest.er1 >conftest.err
42668 rm -f conftest.er1
42669 cat conftest.err >&5
42670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42671 (exit $ac_status); } && {
42672 test -z "$ac_c_werror_flag" ||
42673 test ! -s conftest.err
42674 } && test -s conftest.$ac_objext; then
42675 ac_header_compiler=yes
42676 else
42677 echo "$as_me: failed program was:" >&5
42678 sed 's/^/| /' conftest.$ac_ext >&5
42680 ac_header_compiler=no
42683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42685 echo "${ECHO_T}$ac_header_compiler" >&6; }
42687 # Is the header present?
42688 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
42689 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
42690 cat >conftest.$ac_ext <<_ACEOF
42691 /* confdefs.h. */
42692 _ACEOF
42693 cat confdefs.h >>conftest.$ac_ext
42694 cat >>conftest.$ac_ext <<_ACEOF
42695 /* end confdefs.h. */
42696 #include <sqlite.h>
42697 _ACEOF
42698 if { (ac_try="$ac_cpp conftest.$ac_ext"
42699 case "(($ac_try" in
42700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42701 *) ac_try_echo=$ac_try;;
42702 esac
42703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42705 ac_status=$?
42706 grep -v '^ *+' conftest.er1 >conftest.err
42707 rm -f conftest.er1
42708 cat conftest.err >&5
42709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42710 (exit $ac_status); } >/dev/null && {
42711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42712 test ! -s conftest.err
42713 }; then
42714 ac_header_preproc=yes
42715 else
42716 echo "$as_me: failed program was:" >&5
42717 sed 's/^/| /' conftest.$ac_ext >&5
42719 ac_header_preproc=no
42722 rm -f conftest.err conftest.$ac_ext
42723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42724 echo "${ECHO_T}$ac_header_preproc" >&6; }
42726 # So? What about this header?
42727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42728 yes:no: )
42729 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
42730 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42731 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
42732 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
42733 ac_header_preproc=yes
42735 no:yes:* )
42736 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
42737 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
42738 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
42739 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
42740 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
42741 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
42742 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
42743 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
42744 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
42745 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
42746 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
42747 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
42748 ( cat <<\_ASBOX
42749 ## ------------------------------- ##
42750 ## Report this to www.asterisk.org ##
42751 ## ------------------------------- ##
42752 _ASBOX
42753 ) | sed "s/^/$as_me: WARNING: /" >&2
42755 esac
42756 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
42757 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
42758 if test "${ac_cv_header_sqlite_h+set}" = set; then
42759 echo $ECHO_N "(cached) $ECHO_C" >&6
42760 else
42761 ac_cv_header_sqlite_h=$ac_header_preproc
42763 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
42764 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
42767 if test $ac_cv_header_sqlite_h = yes; then
42768 SQLITE_HEADER_FOUND=1
42769 else
42770 SQLITE_HEADER_FOUND=0
42774 CPPFLAGS="${saved_cppflags}"
42776 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
42777 SQLITE_LIB=""
42778 SQLITE_INCLUDE=""
42779 else
42780 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42781 SQLITE_LIB=""
42783 PBX_SQLITE=1
42784 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42786 cat >>confdefs.h <<_ACEOF
42787 #define HAVE_SQLITE 1
42788 _ACEOF
42791 cat >>confdefs.h <<_ACEOF
42792 #define HAVE_SQLITE_VERSION
42793 _ACEOF
42801 if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
42802 pbxlibdir=""
42803 # if --with-SQLITE3=DIR has been specified, use it.
42804 if test "x${SQLITE3_DIR}" != "x"; then
42805 if test -d ${SQLITE3_DIR}/lib; then
42806 pbxlibdir="-L${SQLITE3_DIR}/lib"
42807 else
42808 pbxlibdir="-L${SQLITE3_DIR}"
42811 pbxfuncname="sqlite3_open"
42812 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42813 AST_SQLITE3_FOUND=yes
42814 else
42815 as_ac_Lib=`echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
42816 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite3" >&5
42817 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite3... $ECHO_C" >&6; }
42818 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42819 echo $ECHO_N "(cached) $ECHO_C" >&6
42820 else
42821 ac_check_lib_save_LIBS=$LIBS
42822 LIBS="-lsqlite3 ${pbxlibdir} $LIBS"
42823 cat >conftest.$ac_ext <<_ACEOF
42824 /* confdefs.h. */
42825 _ACEOF
42826 cat confdefs.h >>conftest.$ac_ext
42827 cat >>conftest.$ac_ext <<_ACEOF
42828 /* end confdefs.h. */
42830 /* Override any GCC internal prototype to avoid an error.
42831 Use char because int might match the return type of a GCC
42832 builtin and then its argument prototype would still apply. */
42833 #ifdef __cplusplus
42834 extern "C"
42835 #endif
42836 char ${pbxfuncname} ();
42838 main ()
42840 return ${pbxfuncname} ();
42842 return 0;
42844 _ACEOF
42845 rm -f conftest.$ac_objext conftest$ac_exeext
42846 if { (ac_try="$ac_link"
42847 case "(($ac_try" in
42848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42849 *) ac_try_echo=$ac_try;;
42850 esac
42851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42852 (eval "$ac_link") 2>conftest.er1
42853 ac_status=$?
42854 grep -v '^ *+' conftest.er1 >conftest.err
42855 rm -f conftest.er1
42856 cat conftest.err >&5
42857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42858 (exit $ac_status); } && {
42859 test -z "$ac_c_werror_flag" ||
42860 test ! -s conftest.err
42861 } && test -s conftest$ac_exeext &&
42862 $as_test_x conftest$ac_exeext; then
42863 eval "$as_ac_Lib=yes"
42864 else
42865 echo "$as_me: failed program was:" >&5
42866 sed 's/^/| /' conftest.$ac_ext >&5
42868 eval "$as_ac_Lib=no"
42871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42872 conftest$ac_exeext conftest.$ac_ext
42873 LIBS=$ac_check_lib_save_LIBS
42875 ac_res=`eval echo '${'$as_ac_Lib'}'`
42876 { echo "$as_me:$LINENO: result: $ac_res" >&5
42877 echo "${ECHO_T}$ac_res" >&6; }
42878 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42879 AST_SQLITE3_FOUND=yes
42880 else
42881 AST_SQLITE3_FOUND=no
42886 # now check for the header.
42887 if test "${AST_SQLITE3_FOUND}" = "yes"; then
42888 SQLITE3_LIB="${pbxlibdir} -lsqlite3 "
42889 # if --with-SQLITE3=DIR has been specified, use it.
42890 if test "x${SQLITE3_DIR}" != "x"; then
42891 SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
42893 SQLITE3_INCLUDE="${SQLITE3_INCLUDE} "
42894 if test "xsqlite3.h" = "x" ; then # no header, assume found
42895 SQLITE3_HEADER_FOUND="1"
42896 else # check for the header
42897 saved_cppflags="${CPPFLAGS}"
42898 CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE} "
42899 if test "${ac_cv_header_sqlite3_h+set}" = set; then
42900 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
42901 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
42902 if test "${ac_cv_header_sqlite3_h+set}" = set; then
42903 echo $ECHO_N "(cached) $ECHO_C" >&6
42905 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
42906 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
42907 else
42908 # Is the header compilable?
42909 { echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
42910 echo $ECHO_N "checking sqlite3.h usability... $ECHO_C" >&6; }
42911 cat >conftest.$ac_ext <<_ACEOF
42912 /* confdefs.h. */
42913 _ACEOF
42914 cat confdefs.h >>conftest.$ac_ext
42915 cat >>conftest.$ac_ext <<_ACEOF
42916 /* end confdefs.h. */
42917 $ac_includes_default
42918 #include <sqlite3.h>
42919 _ACEOF
42920 rm -f conftest.$ac_objext
42921 if { (ac_try="$ac_compile"
42922 case "(($ac_try" in
42923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42924 *) ac_try_echo=$ac_try;;
42925 esac
42926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42927 (eval "$ac_compile") 2>conftest.er1
42928 ac_status=$?
42929 grep -v '^ *+' conftest.er1 >conftest.err
42930 rm -f conftest.er1
42931 cat conftest.err >&5
42932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42933 (exit $ac_status); } && {
42934 test -z "$ac_c_werror_flag" ||
42935 test ! -s conftest.err
42936 } && test -s conftest.$ac_objext; then
42937 ac_header_compiler=yes
42938 else
42939 echo "$as_me: failed program was:" >&5
42940 sed 's/^/| /' conftest.$ac_ext >&5
42942 ac_header_compiler=no
42945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42947 echo "${ECHO_T}$ac_header_compiler" >&6; }
42949 # Is the header present?
42950 { echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
42951 echo $ECHO_N "checking sqlite3.h presence... $ECHO_C" >&6; }
42952 cat >conftest.$ac_ext <<_ACEOF
42953 /* confdefs.h. */
42954 _ACEOF
42955 cat confdefs.h >>conftest.$ac_ext
42956 cat >>conftest.$ac_ext <<_ACEOF
42957 /* end confdefs.h. */
42958 #include <sqlite3.h>
42959 _ACEOF
42960 if { (ac_try="$ac_cpp conftest.$ac_ext"
42961 case "(($ac_try" in
42962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42963 *) ac_try_echo=$ac_try;;
42964 esac
42965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42967 ac_status=$?
42968 grep -v '^ *+' conftest.er1 >conftest.err
42969 rm -f conftest.er1
42970 cat conftest.err >&5
42971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42972 (exit $ac_status); } >/dev/null && {
42973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42974 test ! -s conftest.err
42975 }; then
42976 ac_header_preproc=yes
42977 else
42978 echo "$as_me: failed program was:" >&5
42979 sed 's/^/| /' conftest.$ac_ext >&5
42981 ac_header_preproc=no
42984 rm -f conftest.err conftest.$ac_ext
42985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42986 echo "${ECHO_T}$ac_header_preproc" >&6; }
42988 # So? What about this header?
42989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42990 yes:no: )
42991 { echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
42992 echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42993 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
42994 echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
42995 ac_header_preproc=yes
42997 no:yes:* )
42998 { echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
42999 echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
43000 { echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
43001 echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
43002 { echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
43003 echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
43004 { echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
43005 echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
43006 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
43007 echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
43008 { echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
43009 echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
43010 ( cat <<\_ASBOX
43011 ## ------------------------------- ##
43012 ## Report this to www.asterisk.org ##
43013 ## ------------------------------- ##
43014 _ASBOX
43015 ) | sed "s/^/$as_me: WARNING: /" >&2
43017 esac
43018 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
43019 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
43020 if test "${ac_cv_header_sqlite3_h+set}" = set; then
43021 echo $ECHO_N "(cached) $ECHO_C" >&6
43022 else
43023 ac_cv_header_sqlite3_h=$ac_header_preproc
43025 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
43026 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
43029 if test $ac_cv_header_sqlite3_h = yes; then
43030 SQLITE3_HEADER_FOUND=1
43031 else
43032 SQLITE3_HEADER_FOUND=0
43036 CPPFLAGS="${saved_cppflags}"
43038 if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
43039 SQLITE3_LIB=""
43040 SQLITE3_INCLUDE=""
43041 else
43042 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43043 SQLITE3_LIB=""
43045 PBX_SQLITE3=1
43046 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43048 cat >>confdefs.h <<_ACEOF
43049 #define HAVE_SQLITE3 1
43050 _ACEOF
43053 cat >>confdefs.h <<_ACEOF
43054 #define HAVE_SQLITE3_VERSION
43055 _ACEOF
43063 if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
43064 pbxlibdir=""
43065 # if --with-CRYPTO=DIR has been specified, use it.
43066 if test "x${CRYPTO_DIR}" != "x"; then
43067 if test -d ${CRYPTO_DIR}/lib; then
43068 pbxlibdir="-L${CRYPTO_DIR}/lib"
43069 else
43070 pbxlibdir="-L${CRYPTO_DIR}"
43073 pbxfuncname="AES_encrypt"
43074 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43075 AST_CRYPTO_FOUND=yes
43076 else
43077 as_ac_Lib=`echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
43078 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcrypto" >&5
43079 echo $ECHO_N "checking for ${pbxfuncname} in -lcrypto... $ECHO_C" >&6; }
43080 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43081 echo $ECHO_N "(cached) $ECHO_C" >&6
43082 else
43083 ac_check_lib_save_LIBS=$LIBS
43084 LIBS="-lcrypto ${pbxlibdir} $LIBS"
43085 cat >conftest.$ac_ext <<_ACEOF
43086 /* confdefs.h. */
43087 _ACEOF
43088 cat confdefs.h >>conftest.$ac_ext
43089 cat >>conftest.$ac_ext <<_ACEOF
43090 /* end confdefs.h. */
43092 /* Override any GCC internal prototype to avoid an error.
43093 Use char because int might match the return type of a GCC
43094 builtin and then its argument prototype would still apply. */
43095 #ifdef __cplusplus
43096 extern "C"
43097 #endif
43098 char ${pbxfuncname} ();
43100 main ()
43102 return ${pbxfuncname} ();
43104 return 0;
43106 _ACEOF
43107 rm -f conftest.$ac_objext conftest$ac_exeext
43108 if { (ac_try="$ac_link"
43109 case "(($ac_try" in
43110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43111 *) ac_try_echo=$ac_try;;
43112 esac
43113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43114 (eval "$ac_link") 2>conftest.er1
43115 ac_status=$?
43116 grep -v '^ *+' conftest.er1 >conftest.err
43117 rm -f conftest.er1
43118 cat conftest.err >&5
43119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43120 (exit $ac_status); } && {
43121 test -z "$ac_c_werror_flag" ||
43122 test ! -s conftest.err
43123 } && test -s conftest$ac_exeext &&
43124 $as_test_x conftest$ac_exeext; then
43125 eval "$as_ac_Lib=yes"
43126 else
43127 echo "$as_me: failed program was:" >&5
43128 sed 's/^/| /' conftest.$ac_ext >&5
43130 eval "$as_ac_Lib=no"
43133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43134 conftest$ac_exeext conftest.$ac_ext
43135 LIBS=$ac_check_lib_save_LIBS
43137 ac_res=`eval echo '${'$as_ac_Lib'}'`
43138 { echo "$as_me:$LINENO: result: $ac_res" >&5
43139 echo "${ECHO_T}$ac_res" >&6; }
43140 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43141 AST_CRYPTO_FOUND=yes
43142 else
43143 AST_CRYPTO_FOUND=no
43148 # now check for the header.
43149 if test "${AST_CRYPTO_FOUND}" = "yes"; then
43150 CRYPTO_LIB="${pbxlibdir} -lcrypto "
43151 # if --with-CRYPTO=DIR has been specified, use it.
43152 if test "x${CRYPTO_DIR}" != "x"; then
43153 CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
43155 CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
43156 if test "xopenssl/aes.h" = "x" ; then # no header, assume found
43157 CRYPTO_HEADER_FOUND="1"
43158 else # check for the header
43159 saved_cppflags="${CPPFLAGS}"
43160 CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE} "
43161 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
43162 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
43163 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
43164 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
43165 echo $ECHO_N "(cached) $ECHO_C" >&6
43167 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
43168 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
43169 else
43170 # Is the header compilable?
43171 { echo "$as_me:$LINENO: checking openssl/aes.h usability" >&5
43172 echo $ECHO_N "checking openssl/aes.h usability... $ECHO_C" >&6; }
43173 cat >conftest.$ac_ext <<_ACEOF
43174 /* confdefs.h. */
43175 _ACEOF
43176 cat confdefs.h >>conftest.$ac_ext
43177 cat >>conftest.$ac_ext <<_ACEOF
43178 /* end confdefs.h. */
43179 $ac_includes_default
43180 #include <openssl/aes.h>
43181 _ACEOF
43182 rm -f conftest.$ac_objext
43183 if { (ac_try="$ac_compile"
43184 case "(($ac_try" in
43185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43186 *) ac_try_echo=$ac_try;;
43187 esac
43188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43189 (eval "$ac_compile") 2>conftest.er1
43190 ac_status=$?
43191 grep -v '^ *+' conftest.er1 >conftest.err
43192 rm -f conftest.er1
43193 cat conftest.err >&5
43194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43195 (exit $ac_status); } && {
43196 test -z "$ac_c_werror_flag" ||
43197 test ! -s conftest.err
43198 } && test -s conftest.$ac_objext; then
43199 ac_header_compiler=yes
43200 else
43201 echo "$as_me: failed program was:" >&5
43202 sed 's/^/| /' conftest.$ac_ext >&5
43204 ac_header_compiler=no
43207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43209 echo "${ECHO_T}$ac_header_compiler" >&6; }
43211 # Is the header present?
43212 { echo "$as_me:$LINENO: checking openssl/aes.h presence" >&5
43213 echo $ECHO_N "checking openssl/aes.h presence... $ECHO_C" >&6; }
43214 cat >conftest.$ac_ext <<_ACEOF
43215 /* confdefs.h. */
43216 _ACEOF
43217 cat confdefs.h >>conftest.$ac_ext
43218 cat >>conftest.$ac_ext <<_ACEOF
43219 /* end confdefs.h. */
43220 #include <openssl/aes.h>
43221 _ACEOF
43222 if { (ac_try="$ac_cpp conftest.$ac_ext"
43223 case "(($ac_try" in
43224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43225 *) ac_try_echo=$ac_try;;
43226 esac
43227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43229 ac_status=$?
43230 grep -v '^ *+' conftest.er1 >conftest.err
43231 rm -f conftest.er1
43232 cat conftest.err >&5
43233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43234 (exit $ac_status); } >/dev/null && {
43235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43236 test ! -s conftest.err
43237 }; then
43238 ac_header_preproc=yes
43239 else
43240 echo "$as_me: failed program was:" >&5
43241 sed 's/^/| /' conftest.$ac_ext >&5
43243 ac_header_preproc=no
43246 rm -f conftest.err conftest.$ac_ext
43247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43248 echo "${ECHO_T}$ac_header_preproc" >&6; }
43250 # So? What about this header?
43251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43252 yes:no: )
43253 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&5
43254 echo "$as_me: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43255 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the compiler's result" >&5
43256 echo "$as_me: WARNING: openssl/aes.h: proceeding with the compiler's result" >&2;}
43257 ac_header_preproc=yes
43259 no:yes:* )
43260 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: present but cannot be compiled" >&5
43261 echo "$as_me: WARNING: openssl/aes.h: present but cannot be compiled" >&2;}
43262 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&5
43263 echo "$as_me: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&2;}
43264 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: see the Autoconf documentation" >&5
43265 echo "$as_me: WARNING: openssl/aes.h: see the Autoconf documentation" >&2;}
43266 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&5
43267 echo "$as_me: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&2;}
43268 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&5
43269 echo "$as_me: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&2;}
43270 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&5
43271 echo "$as_me: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&2;}
43272 ( cat <<\_ASBOX
43273 ## ------------------------------- ##
43274 ## Report this to www.asterisk.org ##
43275 ## ------------------------------- ##
43276 _ASBOX
43277 ) | sed "s/^/$as_me: WARNING: /" >&2
43279 esac
43280 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
43281 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
43282 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
43283 echo $ECHO_N "(cached) $ECHO_C" >&6
43284 else
43285 ac_cv_header_openssl_aes_h=$ac_header_preproc
43287 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
43288 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
43291 if test $ac_cv_header_openssl_aes_h = yes; then
43292 CRYPTO_HEADER_FOUND=1
43293 else
43294 CRYPTO_HEADER_FOUND=0
43298 CPPFLAGS="${saved_cppflags}"
43300 if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
43301 CRYPTO_LIB=""
43302 CRYPTO_INCLUDE=""
43303 else
43304 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43305 CRYPTO_LIB=""
43307 PBX_CRYPTO=1
43308 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43310 cat >>confdefs.h <<_ACEOF
43311 #define HAVE_CRYPTO 1
43312 _ACEOF
43315 cat >>confdefs.h <<_ACEOF
43316 #define HAVE_CRYPTO_VERSION
43317 _ACEOF
43324 if test "$PBX_CRYPTO" = "1";
43325 then
43327 if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
43328 pbxlibdir=""
43329 # if --with-OPENSSL=DIR has been specified, use it.
43330 if test "x${OPENSSL_DIR}" != "x"; then
43331 if test -d ${OPENSSL_DIR}/lib; then
43332 pbxlibdir="-L${OPENSSL_DIR}/lib"
43333 else
43334 pbxlibdir="-L${OPENSSL_DIR}"
43337 pbxfuncname="ssl2_connect"
43338 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43339 AST_OPENSSL_FOUND=yes
43340 else
43341 as_ac_Lib=`echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
43342 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lssl" >&5
43343 echo $ECHO_N "checking for ${pbxfuncname} in -lssl... $ECHO_C" >&6; }
43344 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43345 echo $ECHO_N "(cached) $ECHO_C" >&6
43346 else
43347 ac_check_lib_save_LIBS=$LIBS
43348 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
43349 cat >conftest.$ac_ext <<_ACEOF
43350 /* confdefs.h. */
43351 _ACEOF
43352 cat confdefs.h >>conftest.$ac_ext
43353 cat >>conftest.$ac_ext <<_ACEOF
43354 /* end confdefs.h. */
43356 /* Override any GCC internal prototype to avoid an error.
43357 Use char because int might match the return type of a GCC
43358 builtin and then its argument prototype would still apply. */
43359 #ifdef __cplusplus
43360 extern "C"
43361 #endif
43362 char ${pbxfuncname} ();
43364 main ()
43366 return ${pbxfuncname} ();
43368 return 0;
43370 _ACEOF
43371 rm -f conftest.$ac_objext conftest$ac_exeext
43372 if { (ac_try="$ac_link"
43373 case "(($ac_try" in
43374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43375 *) ac_try_echo=$ac_try;;
43376 esac
43377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43378 (eval "$ac_link") 2>conftest.er1
43379 ac_status=$?
43380 grep -v '^ *+' conftest.er1 >conftest.err
43381 rm -f conftest.er1
43382 cat conftest.err >&5
43383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43384 (exit $ac_status); } && {
43385 test -z "$ac_c_werror_flag" ||
43386 test ! -s conftest.err
43387 } && test -s conftest$ac_exeext &&
43388 $as_test_x conftest$ac_exeext; then
43389 eval "$as_ac_Lib=yes"
43390 else
43391 echo "$as_me: failed program was:" >&5
43392 sed 's/^/| /' conftest.$ac_ext >&5
43394 eval "$as_ac_Lib=no"
43397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43398 conftest$ac_exeext conftest.$ac_ext
43399 LIBS=$ac_check_lib_save_LIBS
43401 ac_res=`eval echo '${'$as_ac_Lib'}'`
43402 { echo "$as_me:$LINENO: result: $ac_res" >&5
43403 echo "${ECHO_T}$ac_res" >&6; }
43404 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43405 AST_OPENSSL_FOUND=yes
43406 else
43407 AST_OPENSSL_FOUND=no
43412 # now check for the header.
43413 if test "${AST_OPENSSL_FOUND}" = "yes"; then
43414 OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
43415 # if --with-OPENSSL=DIR has been specified, use it.
43416 if test "x${OPENSSL_DIR}" != "x"; then
43417 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
43419 OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
43420 if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
43421 OPENSSL_HEADER_FOUND="1"
43422 else # check for the header
43423 saved_cppflags="${CPPFLAGS}"
43424 CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE} "
43425 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
43426 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
43427 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
43428 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
43429 echo $ECHO_N "(cached) $ECHO_C" >&6
43431 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
43432 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
43433 else
43434 # Is the header compilable?
43435 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
43436 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
43437 cat >conftest.$ac_ext <<_ACEOF
43438 /* confdefs.h. */
43439 _ACEOF
43440 cat confdefs.h >>conftest.$ac_ext
43441 cat >>conftest.$ac_ext <<_ACEOF
43442 /* end confdefs.h. */
43443 $ac_includes_default
43444 #include <openssl/ssl.h>
43445 _ACEOF
43446 rm -f conftest.$ac_objext
43447 if { (ac_try="$ac_compile"
43448 case "(($ac_try" in
43449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43450 *) ac_try_echo=$ac_try;;
43451 esac
43452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43453 (eval "$ac_compile") 2>conftest.er1
43454 ac_status=$?
43455 grep -v '^ *+' conftest.er1 >conftest.err
43456 rm -f conftest.er1
43457 cat conftest.err >&5
43458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43459 (exit $ac_status); } && {
43460 test -z "$ac_c_werror_flag" ||
43461 test ! -s conftest.err
43462 } && test -s conftest.$ac_objext; then
43463 ac_header_compiler=yes
43464 else
43465 echo "$as_me: failed program was:" >&5
43466 sed 's/^/| /' conftest.$ac_ext >&5
43468 ac_header_compiler=no
43471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43473 echo "${ECHO_T}$ac_header_compiler" >&6; }
43475 # Is the header present?
43476 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
43477 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
43478 cat >conftest.$ac_ext <<_ACEOF
43479 /* confdefs.h. */
43480 _ACEOF
43481 cat confdefs.h >>conftest.$ac_ext
43482 cat >>conftest.$ac_ext <<_ACEOF
43483 /* end confdefs.h. */
43484 #include <openssl/ssl.h>
43485 _ACEOF
43486 if { (ac_try="$ac_cpp conftest.$ac_ext"
43487 case "(($ac_try" in
43488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43489 *) ac_try_echo=$ac_try;;
43490 esac
43491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43493 ac_status=$?
43494 grep -v '^ *+' conftest.er1 >conftest.err
43495 rm -f conftest.er1
43496 cat conftest.err >&5
43497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43498 (exit $ac_status); } >/dev/null && {
43499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43500 test ! -s conftest.err
43501 }; then
43502 ac_header_preproc=yes
43503 else
43504 echo "$as_me: failed program was:" >&5
43505 sed 's/^/| /' conftest.$ac_ext >&5
43507 ac_header_preproc=no
43510 rm -f conftest.err conftest.$ac_ext
43511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43512 echo "${ECHO_T}$ac_header_preproc" >&6; }
43514 # So? What about this header?
43515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43516 yes:no: )
43517 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
43518 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43519 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
43520 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
43521 ac_header_preproc=yes
43523 no:yes:* )
43524 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
43525 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
43526 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
43527 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
43528 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
43529 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
43530 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
43531 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
43532 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
43533 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
43534 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
43535 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
43536 ( cat <<\_ASBOX
43537 ## ------------------------------- ##
43538 ## Report this to www.asterisk.org ##
43539 ## ------------------------------- ##
43540 _ASBOX
43541 ) | sed "s/^/$as_me: WARNING: /" >&2
43543 esac
43544 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
43545 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
43546 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
43547 echo $ECHO_N "(cached) $ECHO_C" >&6
43548 else
43549 ac_cv_header_openssl_ssl_h=$ac_header_preproc
43551 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
43552 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
43555 if test $ac_cv_header_openssl_ssl_h = yes; then
43556 OPENSSL_HEADER_FOUND=1
43557 else
43558 OPENSSL_HEADER_FOUND=0
43562 CPPFLAGS="${saved_cppflags}"
43564 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
43565 OPENSSL_LIB=""
43566 OPENSSL_INCLUDE=""
43567 else
43568 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43569 OPENSSL_LIB=""
43571 PBX_OPENSSL=1
43572 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43574 cat >>confdefs.h <<_ACEOF
43575 #define HAVE_OPENSSL 1
43576 _ACEOF
43579 cat >>confdefs.h <<_ACEOF
43580 #define HAVE_OPENSSL_VERSION
43581 _ACEOF
43589 if test "$PBX_OPENSSL" = "1";
43590 then
43592 if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
43593 pbxlibdir=""
43594 # if --with-OSPTK=DIR has been specified, use it.
43595 if test "x${OSPTK_DIR}" != "x"; then
43596 if test -d ${OSPTK_DIR}/lib; then
43597 pbxlibdir="-L${OSPTK_DIR}/lib"
43598 else
43599 pbxlibdir="-L${OSPTK_DIR}"
43602 pbxfuncname="OSPPCryptoDecrypt"
43603 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43604 AST_OSPTK_FOUND=yes
43605 else
43606 as_ac_Lib=`echo "ac_cv_lib_osptk_${pbxfuncname}" | $as_tr_sh`
43607 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -losptk" >&5
43608 echo $ECHO_N "checking for ${pbxfuncname} in -losptk... $ECHO_C" >&6; }
43609 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43610 echo $ECHO_N "(cached) $ECHO_C" >&6
43611 else
43612 ac_check_lib_save_LIBS=$LIBS
43613 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
43614 cat >conftest.$ac_ext <<_ACEOF
43615 /* confdefs.h. */
43616 _ACEOF
43617 cat confdefs.h >>conftest.$ac_ext
43618 cat >>conftest.$ac_ext <<_ACEOF
43619 /* end confdefs.h. */
43621 /* Override any GCC internal prototype to avoid an error.
43622 Use char because int might match the return type of a GCC
43623 builtin and then its argument prototype would still apply. */
43624 #ifdef __cplusplus
43625 extern "C"
43626 #endif
43627 char ${pbxfuncname} ();
43629 main ()
43631 return ${pbxfuncname} ();
43633 return 0;
43635 _ACEOF
43636 rm -f conftest.$ac_objext conftest$ac_exeext
43637 if { (ac_try="$ac_link"
43638 case "(($ac_try" in
43639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43640 *) ac_try_echo=$ac_try;;
43641 esac
43642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43643 (eval "$ac_link") 2>conftest.er1
43644 ac_status=$?
43645 grep -v '^ *+' conftest.er1 >conftest.err
43646 rm -f conftest.er1
43647 cat conftest.err >&5
43648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43649 (exit $ac_status); } && {
43650 test -z "$ac_c_werror_flag" ||
43651 test ! -s conftest.err
43652 } && test -s conftest$ac_exeext &&
43653 $as_test_x conftest$ac_exeext; then
43654 eval "$as_ac_Lib=yes"
43655 else
43656 echo "$as_me: failed program was:" >&5
43657 sed 's/^/| /' conftest.$ac_ext >&5
43659 eval "$as_ac_Lib=no"
43662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43663 conftest$ac_exeext conftest.$ac_ext
43664 LIBS=$ac_check_lib_save_LIBS
43666 ac_res=`eval echo '${'$as_ac_Lib'}'`
43667 { echo "$as_me:$LINENO: result: $ac_res" >&5
43668 echo "${ECHO_T}$ac_res" >&6; }
43669 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43670 AST_OSPTK_FOUND=yes
43671 else
43672 AST_OSPTK_FOUND=no
43677 # now check for the header.
43678 if test "${AST_OSPTK_FOUND}" = "yes"; then
43679 OSPTK_LIB="${pbxlibdir} -losptk -lcrypto -lssl"
43680 # if --with-OSPTK=DIR has been specified, use it.
43681 if test "x${OSPTK_DIR}" != "x"; then
43682 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
43684 OSPTK_INCLUDE="${OSPTK_INCLUDE} "
43685 if test "xosp/osp.h" = "x" ; then # no header, assume found
43686 OSPTK_HEADER_FOUND="1"
43687 else # check for the header
43688 saved_cppflags="${CPPFLAGS}"
43689 CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE} "
43690 if test "${ac_cv_header_osp_osp_h+set}" = set; then
43691 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
43692 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
43693 if test "${ac_cv_header_osp_osp_h+set}" = set; then
43694 echo $ECHO_N "(cached) $ECHO_C" >&6
43696 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
43697 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
43698 else
43699 # Is the header compilable?
43700 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
43701 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
43702 cat >conftest.$ac_ext <<_ACEOF
43703 /* confdefs.h. */
43704 _ACEOF
43705 cat confdefs.h >>conftest.$ac_ext
43706 cat >>conftest.$ac_ext <<_ACEOF
43707 /* end confdefs.h. */
43708 $ac_includes_default
43709 #include <osp/osp.h>
43710 _ACEOF
43711 rm -f conftest.$ac_objext
43712 if { (ac_try="$ac_compile"
43713 case "(($ac_try" in
43714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43715 *) ac_try_echo=$ac_try;;
43716 esac
43717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43718 (eval "$ac_compile") 2>conftest.er1
43719 ac_status=$?
43720 grep -v '^ *+' conftest.er1 >conftest.err
43721 rm -f conftest.er1
43722 cat conftest.err >&5
43723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43724 (exit $ac_status); } && {
43725 test -z "$ac_c_werror_flag" ||
43726 test ! -s conftest.err
43727 } && test -s conftest.$ac_objext; then
43728 ac_header_compiler=yes
43729 else
43730 echo "$as_me: failed program was:" >&5
43731 sed 's/^/| /' conftest.$ac_ext >&5
43733 ac_header_compiler=no
43736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43738 echo "${ECHO_T}$ac_header_compiler" >&6; }
43740 # Is the header present?
43741 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
43742 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
43743 cat >conftest.$ac_ext <<_ACEOF
43744 /* confdefs.h. */
43745 _ACEOF
43746 cat confdefs.h >>conftest.$ac_ext
43747 cat >>conftest.$ac_ext <<_ACEOF
43748 /* end confdefs.h. */
43749 #include <osp/osp.h>
43750 _ACEOF
43751 if { (ac_try="$ac_cpp conftest.$ac_ext"
43752 case "(($ac_try" in
43753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43754 *) ac_try_echo=$ac_try;;
43755 esac
43756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43758 ac_status=$?
43759 grep -v '^ *+' conftest.er1 >conftest.err
43760 rm -f conftest.er1
43761 cat conftest.err >&5
43762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43763 (exit $ac_status); } >/dev/null && {
43764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43765 test ! -s conftest.err
43766 }; then
43767 ac_header_preproc=yes
43768 else
43769 echo "$as_me: failed program was:" >&5
43770 sed 's/^/| /' conftest.$ac_ext >&5
43772 ac_header_preproc=no
43775 rm -f conftest.err conftest.$ac_ext
43776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43777 echo "${ECHO_T}$ac_header_preproc" >&6; }
43779 # So? What about this header?
43780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43781 yes:no: )
43782 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
43783 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43784 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
43785 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
43786 ac_header_preproc=yes
43788 no:yes:* )
43789 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
43790 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
43791 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
43792 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
43793 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
43794 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
43795 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
43796 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
43797 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
43798 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
43799 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
43800 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
43801 ( cat <<\_ASBOX
43802 ## ------------------------------- ##
43803 ## Report this to www.asterisk.org ##
43804 ## ------------------------------- ##
43805 _ASBOX
43806 ) | sed "s/^/$as_me: WARNING: /" >&2
43808 esac
43809 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
43810 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
43811 if test "${ac_cv_header_osp_osp_h+set}" = set; then
43812 echo $ECHO_N "(cached) $ECHO_C" >&6
43813 else
43814 ac_cv_header_osp_osp_h=$ac_header_preproc
43816 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
43817 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
43820 if test $ac_cv_header_osp_osp_h = yes; then
43821 OSPTK_HEADER_FOUND=1
43822 else
43823 OSPTK_HEADER_FOUND=0
43827 CPPFLAGS="${saved_cppflags}"
43829 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
43830 OSPTK_LIB=""
43831 OSPTK_INCLUDE=""
43832 else
43833 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43834 OSPTK_LIB=""
43836 PBX_OSPTK=1
43837 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43839 cat >>confdefs.h <<_ACEOF
43840 #define HAVE_OSPTK 1
43841 _ACEOF
43844 cat >>confdefs.h <<_ACEOF
43845 #define HAVE_OSPTK_VERSION
43846 _ACEOF
43855 if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
43856 PBX_GMIME=0
43857 if test -n "$ac_tool_prefix"; then
43858 # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args.
43859 set dummy ${ac_tool_prefix}gmime-config; ac_word=$2
43860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43862 if test "${ac_cv_prog_CONFIG_GMIME+set}" = set; then
43863 echo $ECHO_N "(cached) $ECHO_C" >&6
43864 else
43865 if test -n "$CONFIG_GMIME"; then
43866 ac_cv_prog_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test.
43867 else
43868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43869 for as_dir in $PATH
43871 IFS=$as_save_IFS
43872 test -z "$as_dir" && as_dir=.
43873 for ac_exec_ext in '' $ac_executable_extensions; do
43874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43875 ac_cv_prog_CONFIG_GMIME="${ac_tool_prefix}gmime-config"
43876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43877 break 2
43879 done
43880 done
43881 IFS=$as_save_IFS
43885 CONFIG_GMIME=$ac_cv_prog_CONFIG_GMIME
43886 if test -n "$CONFIG_GMIME"; then
43887 { echo "$as_me:$LINENO: result: $CONFIG_GMIME" >&5
43888 echo "${ECHO_T}$CONFIG_GMIME" >&6; }
43889 else
43890 { echo "$as_me:$LINENO: result: no" >&5
43891 echo "${ECHO_T}no" >&6; }
43896 if test -z "$ac_cv_prog_CONFIG_GMIME"; then
43897 ac_ct_CONFIG_GMIME=$CONFIG_GMIME
43898 # Extract the first word of "gmime-config", so it can be a program name with args.
43899 set dummy gmime-config; ac_word=$2
43900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43902 if test "${ac_cv_prog_ac_ct_CONFIG_GMIME+set}" = set; then
43903 echo $ECHO_N "(cached) $ECHO_C" >&6
43904 else
43905 if test -n "$ac_ct_CONFIG_GMIME"; then
43906 ac_cv_prog_ac_ct_CONFIG_GMIME="$ac_ct_CONFIG_GMIME" # Let the user override the test.
43907 else
43908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43909 for as_dir in $PATH
43911 IFS=$as_save_IFS
43912 test -z "$as_dir" && as_dir=.
43913 for ac_exec_ext in '' $ac_executable_extensions; do
43914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43915 ac_cv_prog_ac_ct_CONFIG_GMIME="gmime-config"
43916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43917 break 2
43919 done
43920 done
43921 IFS=$as_save_IFS
43925 ac_ct_CONFIG_GMIME=$ac_cv_prog_ac_ct_CONFIG_GMIME
43926 if test -n "$ac_ct_CONFIG_GMIME"; then
43927 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GMIME" >&5
43928 echo "${ECHO_T}$ac_ct_CONFIG_GMIME" >&6; }
43929 else
43930 { echo "$as_me:$LINENO: result: no" >&5
43931 echo "${ECHO_T}no" >&6; }
43934 if test "x$ac_ct_CONFIG_GMIME" = x; then
43935 CONFIG_GMIME="No"
43936 else
43937 case $cross_compiling:$ac_tool_warned in
43938 yes:)
43939 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
43940 whose name does not start with the host triplet. If you think this
43941 configuration is useful to you, please write to autoconf@gnu.org." >&5
43942 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
43943 whose name does not start with the host triplet. If you think this
43944 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
43945 ac_tool_warned=yes ;;
43946 esac
43947 CONFIG_GMIME=$ac_ct_CONFIG_GMIME
43949 else
43950 CONFIG_GMIME="$ac_cv_prog_CONFIG_GMIME"
43953 if test ! "x${CONFIG_GMIME}" = xNo; then
43954 if test x"" = x ; then A=--cflags ; else A="" ; fi
43955 GMIME_INCLUDE=$(${CONFIG_GMIME} $A)
43956 if test x"" = x ; then A=--libs ; else A="" ; fi
43957 GMIME_LIB=$(${CONFIG_GMIME} $A)
43958 if test x"" != x ; then
43959 saved_cppflags="${CPPFLAGS}"
43960 if test "x${GMIME_DIR}" != "x"; then
43961 GMIME_INCLUDE="-I${GMIME_DIR}/include"
43963 CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}"
43965 saved_ldflags="${LDFLAGS}"
43966 LDFLAGS="${GMIME_LIB}"
43968 cat >conftest.$ac_ext <<_ACEOF
43969 /* confdefs.h. */
43970 _ACEOF
43971 cat confdefs.h >>conftest.$ac_ext
43972 cat >>conftest.$ac_ext <<_ACEOF
43973 /* end confdefs.h. */
43976 main ()
43981 return 0;
43983 _ACEOF
43984 rm -f conftest.$ac_objext conftest$ac_exeext
43985 if { (ac_try="$ac_link"
43986 case "(($ac_try" in
43987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43988 *) ac_try_echo=$ac_try;;
43989 esac
43990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43991 (eval "$ac_link") 2>conftest.er1
43992 ac_status=$?
43993 grep -v '^ *+' conftest.er1 >conftest.err
43994 rm -f conftest.er1
43995 cat conftest.err >&5
43996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43997 (exit $ac_status); } && {
43998 test -z "$ac_c_werror_flag" ||
43999 test ! -s conftest.err
44000 } && test -s conftest$ac_exeext &&
44001 $as_test_x conftest$ac_exeext; then
44002 PBX_GMIME=1
44004 cat >>confdefs.h <<\_ACEOF
44005 #define HAVE_GMIME 1
44006 _ACEOF
44009 else
44010 echo "$as_me: failed program was:" >&5
44011 sed 's/^/| /' conftest.$ac_ext >&5
44017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44018 conftest$ac_exeext conftest.$ac_ext
44019 CPPFLAGS="${saved_cppflags}"
44020 LDFLAGS="${saved_ldflags}"
44021 else
44022 PBX_GMIME=1
44024 cat >>confdefs.h <<\_ACEOF
44025 #define HAVE_GMIME 1
44026 _ACEOF
44034 if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
44035 pbxlibdir=""
44036 # if --with-FREETDS=DIR has been specified, use it.
44037 if test "x${FREETDS_DIR}" != "x"; then
44038 if test -d ${FREETDS_DIR}/lib; then
44039 pbxlibdir="-L${FREETDS_DIR}/lib"
44040 else
44041 pbxlibdir="-L${FREETDS_DIR}"
44044 pbxfuncname="tds_version"
44045 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44046 AST_FREETDS_FOUND=yes
44047 else
44048 as_ac_Lib=`echo "ac_cv_lib_tds_${pbxfuncname}" | $as_tr_sh`
44049 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltds" >&5
44050 echo $ECHO_N "checking for ${pbxfuncname} in -ltds... $ECHO_C" >&6; }
44051 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44052 echo $ECHO_N "(cached) $ECHO_C" >&6
44053 else
44054 ac_check_lib_save_LIBS=$LIBS
44055 LIBS="-ltds ${pbxlibdir} $LIBS"
44056 cat >conftest.$ac_ext <<_ACEOF
44057 /* confdefs.h. */
44058 _ACEOF
44059 cat confdefs.h >>conftest.$ac_ext
44060 cat >>conftest.$ac_ext <<_ACEOF
44061 /* end confdefs.h. */
44063 /* Override any GCC internal prototype to avoid an error.
44064 Use char because int might match the return type of a GCC
44065 builtin and then its argument prototype would still apply. */
44066 #ifdef __cplusplus
44067 extern "C"
44068 #endif
44069 char ${pbxfuncname} ();
44071 main ()
44073 return ${pbxfuncname} ();
44075 return 0;
44077 _ACEOF
44078 rm -f conftest.$ac_objext conftest$ac_exeext
44079 if { (ac_try="$ac_link"
44080 case "(($ac_try" in
44081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44082 *) ac_try_echo=$ac_try;;
44083 esac
44084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44085 (eval "$ac_link") 2>conftest.er1
44086 ac_status=$?
44087 grep -v '^ *+' conftest.er1 >conftest.err
44088 rm -f conftest.er1
44089 cat conftest.err >&5
44090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44091 (exit $ac_status); } && {
44092 test -z "$ac_c_werror_flag" ||
44093 test ! -s conftest.err
44094 } && test -s conftest$ac_exeext &&
44095 $as_test_x conftest$ac_exeext; then
44096 eval "$as_ac_Lib=yes"
44097 else
44098 echo "$as_me: failed program was:" >&5
44099 sed 's/^/| /' conftest.$ac_ext >&5
44101 eval "$as_ac_Lib=no"
44104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44105 conftest$ac_exeext conftest.$ac_ext
44106 LIBS=$ac_check_lib_save_LIBS
44108 ac_res=`eval echo '${'$as_ac_Lib'}'`
44109 { echo "$as_me:$LINENO: result: $ac_res" >&5
44110 echo "${ECHO_T}$ac_res" >&6; }
44111 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44112 AST_FREETDS_FOUND=yes
44113 else
44114 AST_FREETDS_FOUND=no
44119 # now check for the header.
44120 if test "${AST_FREETDS_FOUND}" = "yes"; then
44121 FREETDS_LIB="${pbxlibdir} -ltds "
44122 # if --with-FREETDS=DIR has been specified, use it.
44123 if test "x${FREETDS_DIR}" != "x"; then
44124 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
44126 FREETDS_INCLUDE="${FREETDS_INCLUDE} "
44127 if test "xtds.h" = "x" ; then # no header, assume found
44128 FREETDS_HEADER_FOUND="1"
44129 else # check for the header
44130 saved_cppflags="${CPPFLAGS}"
44131 CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE} "
44132 if test "${ac_cv_header_tds_h+set}" = set; then
44133 { echo "$as_me:$LINENO: checking for tds.h" >&5
44134 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
44135 if test "${ac_cv_header_tds_h+set}" = set; then
44136 echo $ECHO_N "(cached) $ECHO_C" >&6
44138 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
44139 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
44140 else
44141 # Is the header compilable?
44142 { echo "$as_me:$LINENO: checking tds.h usability" >&5
44143 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
44144 cat >conftest.$ac_ext <<_ACEOF
44145 /* confdefs.h. */
44146 _ACEOF
44147 cat confdefs.h >>conftest.$ac_ext
44148 cat >>conftest.$ac_ext <<_ACEOF
44149 /* end confdefs.h. */
44150 $ac_includes_default
44151 #include <tds.h>
44152 _ACEOF
44153 rm -f conftest.$ac_objext
44154 if { (ac_try="$ac_compile"
44155 case "(($ac_try" in
44156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44157 *) ac_try_echo=$ac_try;;
44158 esac
44159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44160 (eval "$ac_compile") 2>conftest.er1
44161 ac_status=$?
44162 grep -v '^ *+' conftest.er1 >conftest.err
44163 rm -f conftest.er1
44164 cat conftest.err >&5
44165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44166 (exit $ac_status); } && {
44167 test -z "$ac_c_werror_flag" ||
44168 test ! -s conftest.err
44169 } && test -s conftest.$ac_objext; then
44170 ac_header_compiler=yes
44171 else
44172 echo "$as_me: failed program was:" >&5
44173 sed 's/^/| /' conftest.$ac_ext >&5
44175 ac_header_compiler=no
44178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44180 echo "${ECHO_T}$ac_header_compiler" >&6; }
44182 # Is the header present?
44183 { echo "$as_me:$LINENO: checking tds.h presence" >&5
44184 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
44185 cat >conftest.$ac_ext <<_ACEOF
44186 /* confdefs.h. */
44187 _ACEOF
44188 cat confdefs.h >>conftest.$ac_ext
44189 cat >>conftest.$ac_ext <<_ACEOF
44190 /* end confdefs.h. */
44191 #include <tds.h>
44192 _ACEOF
44193 if { (ac_try="$ac_cpp conftest.$ac_ext"
44194 case "(($ac_try" in
44195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44196 *) ac_try_echo=$ac_try;;
44197 esac
44198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44200 ac_status=$?
44201 grep -v '^ *+' conftest.er1 >conftest.err
44202 rm -f conftest.er1
44203 cat conftest.err >&5
44204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44205 (exit $ac_status); } >/dev/null && {
44206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44207 test ! -s conftest.err
44208 }; then
44209 ac_header_preproc=yes
44210 else
44211 echo "$as_me: failed program was:" >&5
44212 sed 's/^/| /' conftest.$ac_ext >&5
44214 ac_header_preproc=no
44217 rm -f conftest.err conftest.$ac_ext
44218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44219 echo "${ECHO_T}$ac_header_preproc" >&6; }
44221 # So? What about this header?
44222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44223 yes:no: )
44224 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
44225 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44226 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
44227 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
44228 ac_header_preproc=yes
44230 no:yes:* )
44231 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
44232 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
44233 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
44234 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
44235 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
44236 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
44237 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
44238 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
44239 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
44240 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
44241 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
44242 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
44243 ( cat <<\_ASBOX
44244 ## ------------------------------- ##
44245 ## Report this to www.asterisk.org ##
44246 ## ------------------------------- ##
44247 _ASBOX
44248 ) | sed "s/^/$as_me: WARNING: /" >&2
44250 esac
44251 { echo "$as_me:$LINENO: checking for tds.h" >&5
44252 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
44253 if test "${ac_cv_header_tds_h+set}" = set; then
44254 echo $ECHO_N "(cached) $ECHO_C" >&6
44255 else
44256 ac_cv_header_tds_h=$ac_header_preproc
44258 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
44259 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
44262 if test $ac_cv_header_tds_h = yes; then
44263 FREETDS_HEADER_FOUND=1
44264 else
44265 FREETDS_HEADER_FOUND=0
44269 CPPFLAGS="${saved_cppflags}"
44271 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
44272 FREETDS_LIB=""
44273 FREETDS_INCLUDE=""
44274 else
44275 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44276 FREETDS_LIB=""
44278 PBX_FREETDS=1
44279 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44281 cat >>confdefs.h <<_ACEOF
44282 #define HAVE_FREETDS 1
44283 _ACEOF
44286 cat >>confdefs.h <<_ACEOF
44287 #define HAVE_FREETDS_VERSION
44288 _ACEOF
44294 if test "${PBX_FREETDS}" != "0";
44295 then
44296 if test "${FREETDS_DIR}x" = "x";
44297 then
44298 for tds_dir in /usr /usr/local;
44300 if test -f "${tds_dir}/include/tdsver.h";
44301 then
44302 FREETDS_DIR="${tds_dir}"
44304 done
44306 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
44307 *0.64*)
44308 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
44310 *0.63*)
44311 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
44313 *0.62*)
44314 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
44317 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
44319 esac
44323 if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
44324 pbxlibdir=""
44325 # if --with-TERMCAP=DIR has been specified, use it.
44326 if test "x${TERMCAP_DIR}" != "x"; then
44327 if test -d ${TERMCAP_DIR}/lib; then
44328 pbxlibdir="-L${TERMCAP_DIR}/lib"
44329 else
44330 pbxlibdir="-L${TERMCAP_DIR}"
44333 pbxfuncname="tgetent"
44334 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44335 AST_TERMCAP_FOUND=yes
44336 else
44337 as_ac_Lib=`echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
44338 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltermcap" >&5
44339 echo $ECHO_N "checking for ${pbxfuncname} in -ltermcap... $ECHO_C" >&6; }
44340 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44341 echo $ECHO_N "(cached) $ECHO_C" >&6
44342 else
44343 ac_check_lib_save_LIBS=$LIBS
44344 LIBS="-ltermcap ${pbxlibdir} $LIBS"
44345 cat >conftest.$ac_ext <<_ACEOF
44346 /* confdefs.h. */
44347 _ACEOF
44348 cat confdefs.h >>conftest.$ac_ext
44349 cat >>conftest.$ac_ext <<_ACEOF
44350 /* end confdefs.h. */
44352 /* Override any GCC internal prototype to avoid an error.
44353 Use char because int might match the return type of a GCC
44354 builtin and then its argument prototype would still apply. */
44355 #ifdef __cplusplus
44356 extern "C"
44357 #endif
44358 char ${pbxfuncname} ();
44360 main ()
44362 return ${pbxfuncname} ();
44364 return 0;
44366 _ACEOF
44367 rm -f conftest.$ac_objext conftest$ac_exeext
44368 if { (ac_try="$ac_link"
44369 case "(($ac_try" in
44370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44371 *) ac_try_echo=$ac_try;;
44372 esac
44373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44374 (eval "$ac_link") 2>conftest.er1
44375 ac_status=$?
44376 grep -v '^ *+' conftest.er1 >conftest.err
44377 rm -f conftest.er1
44378 cat conftest.err >&5
44379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44380 (exit $ac_status); } && {
44381 test -z "$ac_c_werror_flag" ||
44382 test ! -s conftest.err
44383 } && test -s conftest$ac_exeext &&
44384 $as_test_x conftest$ac_exeext; then
44385 eval "$as_ac_Lib=yes"
44386 else
44387 echo "$as_me: failed program was:" >&5
44388 sed 's/^/| /' conftest.$ac_ext >&5
44390 eval "$as_ac_Lib=no"
44393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44394 conftest$ac_exeext conftest.$ac_ext
44395 LIBS=$ac_check_lib_save_LIBS
44397 ac_res=`eval echo '${'$as_ac_Lib'}'`
44398 { echo "$as_me:$LINENO: result: $ac_res" >&5
44399 echo "${ECHO_T}$ac_res" >&6; }
44400 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44401 AST_TERMCAP_FOUND=yes
44402 else
44403 AST_TERMCAP_FOUND=no
44408 # now check for the header.
44409 if test "${AST_TERMCAP_FOUND}" = "yes"; then
44410 TERMCAP_LIB="${pbxlibdir} -ltermcap "
44411 # if --with-TERMCAP=DIR has been specified, use it.
44412 if test "x${TERMCAP_DIR}" != "x"; then
44413 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
44415 TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
44416 if test "x" = "x" ; then # no header, assume found
44417 TERMCAP_HEADER_FOUND="1"
44418 else # check for the header
44419 saved_cppflags="${CPPFLAGS}"
44420 CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE} "
44421 if test "${ac_cv_header_+set}" = set; then
44422 { echo "$as_me:$LINENO: checking for " >&5
44423 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
44424 if test "${ac_cv_header_+set}" = set; then
44425 echo $ECHO_N "(cached) $ECHO_C" >&6
44427 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
44428 echo "${ECHO_T}$ac_cv_header_" >&6; }
44429 else
44430 # Is the header compilable?
44431 { echo "$as_me:$LINENO: checking usability" >&5
44432 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
44433 cat >conftest.$ac_ext <<_ACEOF
44434 /* confdefs.h. */
44435 _ACEOF
44436 cat confdefs.h >>conftest.$ac_ext
44437 cat >>conftest.$ac_ext <<_ACEOF
44438 /* end confdefs.h. */
44439 $ac_includes_default
44440 #include <>
44441 _ACEOF
44442 rm -f conftest.$ac_objext
44443 if { (ac_try="$ac_compile"
44444 case "(($ac_try" in
44445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44446 *) ac_try_echo=$ac_try;;
44447 esac
44448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44449 (eval "$ac_compile") 2>conftest.er1
44450 ac_status=$?
44451 grep -v '^ *+' conftest.er1 >conftest.err
44452 rm -f conftest.er1
44453 cat conftest.err >&5
44454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44455 (exit $ac_status); } && {
44456 test -z "$ac_c_werror_flag" ||
44457 test ! -s conftest.err
44458 } && test -s conftest.$ac_objext; then
44459 ac_header_compiler=yes
44460 else
44461 echo "$as_me: failed program was:" >&5
44462 sed 's/^/| /' conftest.$ac_ext >&5
44464 ac_header_compiler=no
44467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44469 echo "${ECHO_T}$ac_header_compiler" >&6; }
44471 # Is the header present?
44472 { echo "$as_me:$LINENO: checking presence" >&5
44473 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
44474 cat >conftest.$ac_ext <<_ACEOF
44475 /* confdefs.h. */
44476 _ACEOF
44477 cat confdefs.h >>conftest.$ac_ext
44478 cat >>conftest.$ac_ext <<_ACEOF
44479 /* end confdefs.h. */
44480 #include <>
44481 _ACEOF
44482 if { (ac_try="$ac_cpp conftest.$ac_ext"
44483 case "(($ac_try" in
44484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44485 *) ac_try_echo=$ac_try;;
44486 esac
44487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44489 ac_status=$?
44490 grep -v '^ *+' conftest.er1 >conftest.err
44491 rm -f conftest.er1
44492 cat conftest.err >&5
44493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44494 (exit $ac_status); } >/dev/null && {
44495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44496 test ! -s conftest.err
44497 }; then
44498 ac_header_preproc=yes
44499 else
44500 echo "$as_me: failed program was:" >&5
44501 sed 's/^/| /' conftest.$ac_ext >&5
44503 ac_header_preproc=no
44506 rm -f conftest.err conftest.$ac_ext
44507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44508 echo "${ECHO_T}$ac_header_preproc" >&6; }
44510 # So? What about this header?
44511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44512 yes:no: )
44513 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
44514 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
44515 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
44516 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
44517 ac_header_preproc=yes
44519 no:yes:* )
44520 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
44521 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
44522 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
44523 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
44524 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
44525 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
44526 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
44527 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
44528 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
44529 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
44530 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
44531 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
44532 ( cat <<\_ASBOX
44533 ## ------------------------------- ##
44534 ## Report this to www.asterisk.org ##
44535 ## ------------------------------- ##
44536 _ASBOX
44537 ) | sed "s/^/$as_me: WARNING: /" >&2
44539 esac
44540 { echo "$as_me:$LINENO: checking for " >&5
44541 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
44542 if test "${ac_cv_header_+set}" = set; then
44543 echo $ECHO_N "(cached) $ECHO_C" >&6
44544 else
44545 ac_cv_header_=$ac_header_preproc
44547 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
44548 echo "${ECHO_T}$ac_cv_header_" >&6; }
44551 if test $ac_cv_header_ = yes; then
44552 TERMCAP_HEADER_FOUND=1
44553 else
44554 TERMCAP_HEADER_FOUND=0
44558 CPPFLAGS="${saved_cppflags}"
44560 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
44561 TERMCAP_LIB=""
44562 TERMCAP_INCLUDE=""
44563 else
44564 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44565 TERMCAP_LIB=""
44567 PBX_TERMCAP=1
44568 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44570 cat >>confdefs.h <<_ACEOF
44571 #define HAVE_TERMCAP 1
44572 _ACEOF
44575 cat >>confdefs.h <<_ACEOF
44576 #define HAVE_TERMCAP_VERSION
44577 _ACEOF
44585 if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
44586 pbxlibdir=""
44587 # if --with-TINFO=DIR has been specified, use it.
44588 if test "x${TINFO_DIR}" != "x"; then
44589 if test -d ${TINFO_DIR}/lib; then
44590 pbxlibdir="-L${TINFO_DIR}/lib"
44591 else
44592 pbxlibdir="-L${TINFO_DIR}"
44595 pbxfuncname="tgetent"
44596 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44597 AST_TINFO_FOUND=yes
44598 else
44599 as_ac_Lib=`echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
44600 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltinfo" >&5
44601 echo $ECHO_N "checking for ${pbxfuncname} in -ltinfo... $ECHO_C" >&6; }
44602 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44603 echo $ECHO_N "(cached) $ECHO_C" >&6
44604 else
44605 ac_check_lib_save_LIBS=$LIBS
44606 LIBS="-ltinfo ${pbxlibdir} $LIBS"
44607 cat >conftest.$ac_ext <<_ACEOF
44608 /* confdefs.h. */
44609 _ACEOF
44610 cat confdefs.h >>conftest.$ac_ext
44611 cat >>conftest.$ac_ext <<_ACEOF
44612 /* end confdefs.h. */
44614 /* Override any GCC internal prototype to avoid an error.
44615 Use char because int might match the return type of a GCC
44616 builtin and then its argument prototype would still apply. */
44617 #ifdef __cplusplus
44618 extern "C"
44619 #endif
44620 char ${pbxfuncname} ();
44622 main ()
44624 return ${pbxfuncname} ();
44626 return 0;
44628 _ACEOF
44629 rm -f conftest.$ac_objext conftest$ac_exeext
44630 if { (ac_try="$ac_link"
44631 case "(($ac_try" in
44632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44633 *) ac_try_echo=$ac_try;;
44634 esac
44635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44636 (eval "$ac_link") 2>conftest.er1
44637 ac_status=$?
44638 grep -v '^ *+' conftest.er1 >conftest.err
44639 rm -f conftest.er1
44640 cat conftest.err >&5
44641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44642 (exit $ac_status); } && {
44643 test -z "$ac_c_werror_flag" ||
44644 test ! -s conftest.err
44645 } && test -s conftest$ac_exeext &&
44646 $as_test_x conftest$ac_exeext; then
44647 eval "$as_ac_Lib=yes"
44648 else
44649 echo "$as_me: failed program was:" >&5
44650 sed 's/^/| /' conftest.$ac_ext >&5
44652 eval "$as_ac_Lib=no"
44655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44656 conftest$ac_exeext conftest.$ac_ext
44657 LIBS=$ac_check_lib_save_LIBS
44659 ac_res=`eval echo '${'$as_ac_Lib'}'`
44660 { echo "$as_me:$LINENO: result: $ac_res" >&5
44661 echo "${ECHO_T}$ac_res" >&6; }
44662 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44663 AST_TINFO_FOUND=yes
44664 else
44665 AST_TINFO_FOUND=no
44670 # now check for the header.
44671 if test "${AST_TINFO_FOUND}" = "yes"; then
44672 TINFO_LIB="${pbxlibdir} -ltinfo "
44673 # if --with-TINFO=DIR has been specified, use it.
44674 if test "x${TINFO_DIR}" != "x"; then
44675 TINFO_INCLUDE="-I${TINFO_DIR}/include"
44677 TINFO_INCLUDE="${TINFO_INCLUDE} "
44678 if test "x" = "x" ; then # no header, assume found
44679 TINFO_HEADER_FOUND="1"
44680 else # check for the header
44681 saved_cppflags="${CPPFLAGS}"
44682 CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE} "
44683 if test "${ac_cv_header_+set}" = set; then
44684 { echo "$as_me:$LINENO: checking for " >&5
44685 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
44686 if test "${ac_cv_header_+set}" = set; then
44687 echo $ECHO_N "(cached) $ECHO_C" >&6
44689 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
44690 echo "${ECHO_T}$ac_cv_header_" >&6; }
44691 else
44692 # Is the header compilable?
44693 { echo "$as_me:$LINENO: checking usability" >&5
44694 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
44695 cat >conftest.$ac_ext <<_ACEOF
44696 /* confdefs.h. */
44697 _ACEOF
44698 cat confdefs.h >>conftest.$ac_ext
44699 cat >>conftest.$ac_ext <<_ACEOF
44700 /* end confdefs.h. */
44701 $ac_includes_default
44702 #include <>
44703 _ACEOF
44704 rm -f conftest.$ac_objext
44705 if { (ac_try="$ac_compile"
44706 case "(($ac_try" in
44707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44708 *) ac_try_echo=$ac_try;;
44709 esac
44710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44711 (eval "$ac_compile") 2>conftest.er1
44712 ac_status=$?
44713 grep -v '^ *+' conftest.er1 >conftest.err
44714 rm -f conftest.er1
44715 cat conftest.err >&5
44716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44717 (exit $ac_status); } && {
44718 test -z "$ac_c_werror_flag" ||
44719 test ! -s conftest.err
44720 } && test -s conftest.$ac_objext; then
44721 ac_header_compiler=yes
44722 else
44723 echo "$as_me: failed program was:" >&5
44724 sed 's/^/| /' conftest.$ac_ext >&5
44726 ac_header_compiler=no
44729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44731 echo "${ECHO_T}$ac_header_compiler" >&6; }
44733 # Is the header present?
44734 { echo "$as_me:$LINENO: checking presence" >&5
44735 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
44736 cat >conftest.$ac_ext <<_ACEOF
44737 /* confdefs.h. */
44738 _ACEOF
44739 cat confdefs.h >>conftest.$ac_ext
44740 cat >>conftest.$ac_ext <<_ACEOF
44741 /* end confdefs.h. */
44742 #include <>
44743 _ACEOF
44744 if { (ac_try="$ac_cpp conftest.$ac_ext"
44745 case "(($ac_try" in
44746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44747 *) ac_try_echo=$ac_try;;
44748 esac
44749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44751 ac_status=$?
44752 grep -v '^ *+' conftest.er1 >conftest.err
44753 rm -f conftest.er1
44754 cat conftest.err >&5
44755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44756 (exit $ac_status); } >/dev/null && {
44757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44758 test ! -s conftest.err
44759 }; then
44760 ac_header_preproc=yes
44761 else
44762 echo "$as_me: failed program was:" >&5
44763 sed 's/^/| /' conftest.$ac_ext >&5
44765 ac_header_preproc=no
44768 rm -f conftest.err conftest.$ac_ext
44769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44770 echo "${ECHO_T}$ac_header_preproc" >&6; }
44772 # So? What about this header?
44773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44774 yes:no: )
44775 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
44776 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
44777 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
44778 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
44779 ac_header_preproc=yes
44781 no:yes:* )
44782 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
44783 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
44784 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
44785 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
44786 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
44787 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
44788 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
44789 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
44790 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
44791 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
44792 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
44793 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
44794 ( cat <<\_ASBOX
44795 ## ------------------------------- ##
44796 ## Report this to www.asterisk.org ##
44797 ## ------------------------------- ##
44798 _ASBOX
44799 ) | sed "s/^/$as_me: WARNING: /" >&2
44801 esac
44802 { echo "$as_me:$LINENO: checking for " >&5
44803 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
44804 if test "${ac_cv_header_+set}" = set; then
44805 echo $ECHO_N "(cached) $ECHO_C" >&6
44806 else
44807 ac_cv_header_=$ac_header_preproc
44809 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
44810 echo "${ECHO_T}$ac_cv_header_" >&6; }
44813 if test $ac_cv_header_ = yes; then
44814 TINFO_HEADER_FOUND=1
44815 else
44816 TINFO_HEADER_FOUND=0
44820 CPPFLAGS="${saved_cppflags}"
44822 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
44823 TINFO_LIB=""
44824 TINFO_INCLUDE=""
44825 else
44826 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44827 TINFO_LIB=""
44829 PBX_TINFO=1
44830 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44832 cat >>confdefs.h <<_ACEOF
44833 #define HAVE_TINFO 1
44834 _ACEOF
44837 cat >>confdefs.h <<_ACEOF
44838 #define HAVE_TINFO_VERSION
44839 _ACEOF
44846 if test "${host_os}" != "linux-gnu" ; then
44847 tonezone_extra="-lm"
44850 # new tonezone, version 1.4.0
44852 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
44853 pbxlibdir=""
44854 # if --with-TONEZONE=DIR has been specified, use it.
44855 if test "x${TONEZONE_DIR}" != "x"; then
44856 if test -d ${TONEZONE_DIR}/lib; then
44857 pbxlibdir="-L${TONEZONE_DIR}/lib"
44858 else
44859 pbxlibdir="-L${TONEZONE_DIR}"
44862 pbxfuncname="tone_zone_find"
44863 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44864 AST_TONEZONE_FOUND=yes
44865 else
44866 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
44867 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
44868 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
44869 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44870 echo $ECHO_N "(cached) $ECHO_C" >&6
44871 else
44872 ac_check_lib_save_LIBS=$LIBS
44873 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
44874 cat >conftest.$ac_ext <<_ACEOF
44875 /* confdefs.h. */
44876 _ACEOF
44877 cat confdefs.h >>conftest.$ac_ext
44878 cat >>conftest.$ac_ext <<_ACEOF
44879 /* end confdefs.h. */
44881 /* Override any GCC internal prototype to avoid an error.
44882 Use char because int might match the return type of a GCC
44883 builtin and then its argument prototype would still apply. */
44884 #ifdef __cplusplus
44885 extern "C"
44886 #endif
44887 char ${pbxfuncname} ();
44889 main ()
44891 return ${pbxfuncname} ();
44893 return 0;
44895 _ACEOF
44896 rm -f conftest.$ac_objext conftest$ac_exeext
44897 if { (ac_try="$ac_link"
44898 case "(($ac_try" in
44899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44900 *) ac_try_echo=$ac_try;;
44901 esac
44902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44903 (eval "$ac_link") 2>conftest.er1
44904 ac_status=$?
44905 grep -v '^ *+' conftest.er1 >conftest.err
44906 rm -f conftest.er1
44907 cat conftest.err >&5
44908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44909 (exit $ac_status); } && {
44910 test -z "$ac_c_werror_flag" ||
44911 test ! -s conftest.err
44912 } && test -s conftest$ac_exeext &&
44913 $as_test_x conftest$ac_exeext; then
44914 eval "$as_ac_Lib=yes"
44915 else
44916 echo "$as_me: failed program was:" >&5
44917 sed 's/^/| /' conftest.$ac_ext >&5
44919 eval "$as_ac_Lib=no"
44922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44923 conftest$ac_exeext conftest.$ac_ext
44924 LIBS=$ac_check_lib_save_LIBS
44926 ac_res=`eval echo '${'$as_ac_Lib'}'`
44927 { echo "$as_me:$LINENO: result: $ac_res" >&5
44928 echo "${ECHO_T}$ac_res" >&6; }
44929 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44930 AST_TONEZONE_FOUND=yes
44931 else
44932 AST_TONEZONE_FOUND=no
44937 # now check for the header.
44938 if test "${AST_TONEZONE_FOUND}" = "yes"; then
44939 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
44940 # if --with-TONEZONE=DIR has been specified, use it.
44941 if test "x${TONEZONE_DIR}" != "x"; then
44942 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
44944 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
44945 if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found
44946 TONEZONE_HEADER_FOUND="1"
44947 else # check for the header
44948 saved_cppflags="${CPPFLAGS}"
44949 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
44950 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
44951 { echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
44952 echo $ECHO_N "checking for dahdi/tonezone.h... $ECHO_C" >&6; }
44953 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
44954 echo $ECHO_N "(cached) $ECHO_C" >&6
44956 { echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
44957 echo "${ECHO_T}$ac_cv_header_dahdi_tonezone_h" >&6; }
44958 else
44959 # Is the header compilable?
44960 { echo "$as_me:$LINENO: checking dahdi/tonezone.h usability" >&5
44961 echo $ECHO_N "checking dahdi/tonezone.h usability... $ECHO_C" >&6; }
44962 cat >conftest.$ac_ext <<_ACEOF
44963 /* confdefs.h. */
44964 _ACEOF
44965 cat confdefs.h >>conftest.$ac_ext
44966 cat >>conftest.$ac_ext <<_ACEOF
44967 /* end confdefs.h. */
44968 $ac_includes_default
44969 #include <dahdi/tonezone.h>
44970 _ACEOF
44971 rm -f conftest.$ac_objext
44972 if { (ac_try="$ac_compile"
44973 case "(($ac_try" in
44974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44975 *) ac_try_echo=$ac_try;;
44976 esac
44977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44978 (eval "$ac_compile") 2>conftest.er1
44979 ac_status=$?
44980 grep -v '^ *+' conftest.er1 >conftest.err
44981 rm -f conftest.er1
44982 cat conftest.err >&5
44983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44984 (exit $ac_status); } && {
44985 test -z "$ac_c_werror_flag" ||
44986 test ! -s conftest.err
44987 } && test -s conftest.$ac_objext; then
44988 ac_header_compiler=yes
44989 else
44990 echo "$as_me: failed program was:" >&5
44991 sed 's/^/| /' conftest.$ac_ext >&5
44993 ac_header_compiler=no
44996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44998 echo "${ECHO_T}$ac_header_compiler" >&6; }
45000 # Is the header present?
45001 { echo "$as_me:$LINENO: checking dahdi/tonezone.h presence" >&5
45002 echo $ECHO_N "checking dahdi/tonezone.h presence... $ECHO_C" >&6; }
45003 cat >conftest.$ac_ext <<_ACEOF
45004 /* confdefs.h. */
45005 _ACEOF
45006 cat confdefs.h >>conftest.$ac_ext
45007 cat >>conftest.$ac_ext <<_ACEOF
45008 /* end confdefs.h. */
45009 #include <dahdi/tonezone.h>
45010 _ACEOF
45011 if { (ac_try="$ac_cpp conftest.$ac_ext"
45012 case "(($ac_try" in
45013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45014 *) ac_try_echo=$ac_try;;
45015 esac
45016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45018 ac_status=$?
45019 grep -v '^ *+' conftest.er1 >conftest.err
45020 rm -f conftest.er1
45021 cat conftest.err >&5
45022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45023 (exit $ac_status); } >/dev/null && {
45024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45025 test ! -s conftest.err
45026 }; then
45027 ac_header_preproc=yes
45028 else
45029 echo "$as_me: failed program was:" >&5
45030 sed 's/^/| /' conftest.$ac_ext >&5
45032 ac_header_preproc=no
45035 rm -f conftest.err conftest.$ac_ext
45036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45037 echo "${ECHO_T}$ac_header_preproc" >&6; }
45039 # So? What about this header?
45040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45041 yes:no: )
45042 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
45043 echo "$as_me: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45044 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&5
45045 echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&2;}
45046 ac_header_preproc=yes
45048 no:yes:* )
45049 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&5
45050 echo "$as_me: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&2;}
45051 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&5
45052 echo "$as_me: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&2;}
45053 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&5
45054 echo "$as_me: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&2;}
45055 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
45056 echo "$as_me: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
45057 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&5
45058 echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&2;}
45059 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&5
45060 echo "$as_me: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&2;}
45061 ( cat <<\_ASBOX
45062 ## ------------------------------- ##
45063 ## Report this to www.asterisk.org ##
45064 ## ------------------------------- ##
45065 _ASBOX
45066 ) | sed "s/^/$as_me: WARNING: /" >&2
45068 esac
45069 { echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
45070 echo $ECHO_N "checking for dahdi/tonezone.h... $ECHO_C" >&6; }
45071 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
45072 echo $ECHO_N "(cached) $ECHO_C" >&6
45073 else
45074 ac_cv_header_dahdi_tonezone_h=$ac_header_preproc
45076 { echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
45077 echo "${ECHO_T}$ac_cv_header_dahdi_tonezone_h" >&6; }
45080 if test $ac_cv_header_dahdi_tonezone_h = yes; then
45081 TONEZONE_HEADER_FOUND=1
45082 else
45083 TONEZONE_HEADER_FOUND=0
45087 CPPFLAGS="${saved_cppflags}"
45089 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
45090 TONEZONE_LIB=""
45091 TONEZONE_INCLUDE=""
45092 else
45093 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45094 TONEZONE_LIB=""
45096 PBX_TONEZONE=1
45097 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45099 cat >>confdefs.h <<_ACEOF
45100 #define HAVE_TONEZONE 1
45101 _ACEOF
45104 cat >>confdefs.h <<_ACEOF
45105 #define HAVE_TONEZONE_VERSION
45106 _ACEOF
45114 if test "x${PBX_USB}" != "x1" -a "${USE_USB}" != "no"; then
45115 pbxlibdir=""
45116 # if --with-USB=DIR has been specified, use it.
45117 if test "x${USB_DIR}" != "x"; then
45118 if test -d ${USB_DIR}/lib; then
45119 pbxlibdir="-L${USB_DIR}/lib"
45120 else
45121 pbxlibdir="-L${USB_DIR}"
45124 pbxfuncname="usb_init"
45125 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45126 AST_USB_FOUND=yes
45127 else
45128 as_ac_Lib=`echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh`
45129 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lusb" >&5
45130 echo $ECHO_N "checking for ${pbxfuncname} in -lusb... $ECHO_C" >&6; }
45131 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45132 echo $ECHO_N "(cached) $ECHO_C" >&6
45133 else
45134 ac_check_lib_save_LIBS=$LIBS
45135 LIBS="-lusb ${pbxlibdir} $LIBS"
45136 cat >conftest.$ac_ext <<_ACEOF
45137 /* confdefs.h. */
45138 _ACEOF
45139 cat confdefs.h >>conftest.$ac_ext
45140 cat >>conftest.$ac_ext <<_ACEOF
45141 /* end confdefs.h. */
45143 /* Override any GCC internal prototype to avoid an error.
45144 Use char because int might match the return type of a GCC
45145 builtin and then its argument prototype would still apply. */
45146 #ifdef __cplusplus
45147 extern "C"
45148 #endif
45149 char ${pbxfuncname} ();
45151 main ()
45153 return ${pbxfuncname} ();
45155 return 0;
45157 _ACEOF
45158 rm -f conftest.$ac_objext conftest$ac_exeext
45159 if { (ac_try="$ac_link"
45160 case "(($ac_try" in
45161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45162 *) ac_try_echo=$ac_try;;
45163 esac
45164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45165 (eval "$ac_link") 2>conftest.er1
45166 ac_status=$?
45167 grep -v '^ *+' conftest.er1 >conftest.err
45168 rm -f conftest.er1
45169 cat conftest.err >&5
45170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45171 (exit $ac_status); } && {
45172 test -z "$ac_c_werror_flag" ||
45173 test ! -s conftest.err
45174 } && test -s conftest$ac_exeext &&
45175 $as_test_x conftest$ac_exeext; then
45176 eval "$as_ac_Lib=yes"
45177 else
45178 echo "$as_me: failed program was:" >&5
45179 sed 's/^/| /' conftest.$ac_ext >&5
45181 eval "$as_ac_Lib=no"
45184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45185 conftest$ac_exeext conftest.$ac_ext
45186 LIBS=$ac_check_lib_save_LIBS
45188 ac_res=`eval echo '${'$as_ac_Lib'}'`
45189 { echo "$as_me:$LINENO: result: $ac_res" >&5
45190 echo "${ECHO_T}$ac_res" >&6; }
45191 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45192 AST_USB_FOUND=yes
45193 else
45194 AST_USB_FOUND=no
45199 # now check for the header.
45200 if test "${AST_USB_FOUND}" = "yes"; then
45201 USB_LIB="${pbxlibdir} -lusb "
45202 # if --with-USB=DIR has been specified, use it.
45203 if test "x${USB_DIR}" != "x"; then
45204 USB_INCLUDE="-I${USB_DIR}/include"
45206 USB_INCLUDE="${USB_INCLUDE} "
45207 if test "xusb.h" = "x" ; then # no header, assume found
45208 USB_HEADER_FOUND="1"
45209 else # check for the header
45210 saved_cppflags="${CPPFLAGS}"
45211 CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE} "
45212 if test "${ac_cv_header_usb_h+set}" = set; then
45213 { echo "$as_me:$LINENO: checking for usb.h" >&5
45214 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
45215 if test "${ac_cv_header_usb_h+set}" = set; then
45216 echo $ECHO_N "(cached) $ECHO_C" >&6
45218 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
45219 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
45220 else
45221 # Is the header compilable?
45222 { echo "$as_me:$LINENO: checking usb.h usability" >&5
45223 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
45224 cat >conftest.$ac_ext <<_ACEOF
45225 /* confdefs.h. */
45226 _ACEOF
45227 cat confdefs.h >>conftest.$ac_ext
45228 cat >>conftest.$ac_ext <<_ACEOF
45229 /* end confdefs.h. */
45230 $ac_includes_default
45231 #include <usb.h>
45232 _ACEOF
45233 rm -f conftest.$ac_objext
45234 if { (ac_try="$ac_compile"
45235 case "(($ac_try" in
45236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45237 *) ac_try_echo=$ac_try;;
45238 esac
45239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45240 (eval "$ac_compile") 2>conftest.er1
45241 ac_status=$?
45242 grep -v '^ *+' conftest.er1 >conftest.err
45243 rm -f conftest.er1
45244 cat conftest.err >&5
45245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45246 (exit $ac_status); } && {
45247 test -z "$ac_c_werror_flag" ||
45248 test ! -s conftest.err
45249 } && test -s conftest.$ac_objext; then
45250 ac_header_compiler=yes
45251 else
45252 echo "$as_me: failed program was:" >&5
45253 sed 's/^/| /' conftest.$ac_ext >&5
45255 ac_header_compiler=no
45258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45260 echo "${ECHO_T}$ac_header_compiler" >&6; }
45262 # Is the header present?
45263 { echo "$as_me:$LINENO: checking usb.h presence" >&5
45264 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
45265 cat >conftest.$ac_ext <<_ACEOF
45266 /* confdefs.h. */
45267 _ACEOF
45268 cat confdefs.h >>conftest.$ac_ext
45269 cat >>conftest.$ac_ext <<_ACEOF
45270 /* end confdefs.h. */
45271 #include <usb.h>
45272 _ACEOF
45273 if { (ac_try="$ac_cpp conftest.$ac_ext"
45274 case "(($ac_try" in
45275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45276 *) ac_try_echo=$ac_try;;
45277 esac
45278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45280 ac_status=$?
45281 grep -v '^ *+' conftest.er1 >conftest.err
45282 rm -f conftest.er1
45283 cat conftest.err >&5
45284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45285 (exit $ac_status); } >/dev/null && {
45286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45287 test ! -s conftest.err
45288 }; then
45289 ac_header_preproc=yes
45290 else
45291 echo "$as_me: failed program was:" >&5
45292 sed 's/^/| /' conftest.$ac_ext >&5
45294 ac_header_preproc=no
45297 rm -f conftest.err conftest.$ac_ext
45298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45299 echo "${ECHO_T}$ac_header_preproc" >&6; }
45301 # So? What about this header?
45302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45303 yes:no: )
45304 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
45305 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45306 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
45307 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
45308 ac_header_preproc=yes
45310 no:yes:* )
45311 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
45312 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
45313 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
45314 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
45315 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
45316 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
45317 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
45318 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
45319 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
45320 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
45321 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
45322 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
45323 ( cat <<\_ASBOX
45324 ## ------------------------------- ##
45325 ## Report this to www.asterisk.org ##
45326 ## ------------------------------- ##
45327 _ASBOX
45328 ) | sed "s/^/$as_me: WARNING: /" >&2
45330 esac
45331 { echo "$as_me:$LINENO: checking for usb.h" >&5
45332 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
45333 if test "${ac_cv_header_usb_h+set}" = set; then
45334 echo $ECHO_N "(cached) $ECHO_C" >&6
45335 else
45336 ac_cv_header_usb_h=$ac_header_preproc
45338 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
45339 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
45342 if test $ac_cv_header_usb_h = yes; then
45343 USB_HEADER_FOUND=1
45344 else
45345 USB_HEADER_FOUND=0
45349 CPPFLAGS="${saved_cppflags}"
45351 if test "x${USB_HEADER_FOUND}" = "x0" ; then
45352 USB_LIB=""
45353 USB_INCLUDE=""
45354 else
45355 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45356 USB_LIB=""
45358 PBX_USB=1
45359 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45361 cat >>confdefs.h <<_ACEOF
45362 #define HAVE_USB 1
45363 _ACEOF
45366 cat >>confdefs.h <<_ACEOF
45367 #define HAVE_USB_VERSION
45368 _ACEOF
45376 if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
45377 pbxlibdir=""
45378 # if --with-VORBIS=DIR has been specified, use it.
45379 if test "x${VORBIS_DIR}" != "x"; then
45380 if test -d ${VORBIS_DIR}/lib; then
45381 pbxlibdir="-L${VORBIS_DIR}/lib"
45382 else
45383 pbxlibdir="-L${VORBIS_DIR}"
45386 pbxfuncname="vorbis_info_init"
45387 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45388 AST_VORBIS_FOUND=yes
45389 else
45390 as_ac_Lib=`echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
45391 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
45392 echo $ECHO_N "checking for ${pbxfuncname} in -lvorbis... $ECHO_C" >&6; }
45393 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45394 echo $ECHO_N "(cached) $ECHO_C" >&6
45395 else
45396 ac_check_lib_save_LIBS=$LIBS
45397 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
45398 cat >conftest.$ac_ext <<_ACEOF
45399 /* confdefs.h. */
45400 _ACEOF
45401 cat confdefs.h >>conftest.$ac_ext
45402 cat >>conftest.$ac_ext <<_ACEOF
45403 /* end confdefs.h. */
45405 /* Override any GCC internal prototype to avoid an error.
45406 Use char because int might match the return type of a GCC
45407 builtin and then its argument prototype would still apply. */
45408 #ifdef __cplusplus
45409 extern "C"
45410 #endif
45411 char ${pbxfuncname} ();
45413 main ()
45415 return ${pbxfuncname} ();
45417 return 0;
45419 _ACEOF
45420 rm -f conftest.$ac_objext conftest$ac_exeext
45421 if { (ac_try="$ac_link"
45422 case "(($ac_try" in
45423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45424 *) ac_try_echo=$ac_try;;
45425 esac
45426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45427 (eval "$ac_link") 2>conftest.er1
45428 ac_status=$?
45429 grep -v '^ *+' conftest.er1 >conftest.err
45430 rm -f conftest.er1
45431 cat conftest.err >&5
45432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45433 (exit $ac_status); } && {
45434 test -z "$ac_c_werror_flag" ||
45435 test ! -s conftest.err
45436 } && test -s conftest$ac_exeext &&
45437 $as_test_x conftest$ac_exeext; then
45438 eval "$as_ac_Lib=yes"
45439 else
45440 echo "$as_me: failed program was:" >&5
45441 sed 's/^/| /' conftest.$ac_ext >&5
45443 eval "$as_ac_Lib=no"
45446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45447 conftest$ac_exeext conftest.$ac_ext
45448 LIBS=$ac_check_lib_save_LIBS
45450 ac_res=`eval echo '${'$as_ac_Lib'}'`
45451 { echo "$as_me:$LINENO: result: $ac_res" >&5
45452 echo "${ECHO_T}$ac_res" >&6; }
45453 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45454 AST_VORBIS_FOUND=yes
45455 else
45456 AST_VORBIS_FOUND=no
45461 # now check for the header.
45462 if test "${AST_VORBIS_FOUND}" = "yes"; then
45463 VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc"
45464 # if --with-VORBIS=DIR has been specified, use it.
45465 if test "x${VORBIS_DIR}" != "x"; then
45466 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
45468 VORBIS_INCLUDE="${VORBIS_INCLUDE} "
45469 if test "xvorbis/codec.h" = "x" ; then # no header, assume found
45470 VORBIS_HEADER_FOUND="1"
45471 else # check for the header
45472 saved_cppflags="${CPPFLAGS}"
45473 CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE} "
45474 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
45475 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
45476 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
45477 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
45478 echo $ECHO_N "(cached) $ECHO_C" >&6
45480 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
45481 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
45482 else
45483 # Is the header compilable?
45484 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
45485 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
45486 cat >conftest.$ac_ext <<_ACEOF
45487 /* confdefs.h. */
45488 _ACEOF
45489 cat confdefs.h >>conftest.$ac_ext
45490 cat >>conftest.$ac_ext <<_ACEOF
45491 /* end confdefs.h. */
45492 $ac_includes_default
45493 #include <vorbis/codec.h>
45494 _ACEOF
45495 rm -f conftest.$ac_objext
45496 if { (ac_try="$ac_compile"
45497 case "(($ac_try" in
45498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45499 *) ac_try_echo=$ac_try;;
45500 esac
45501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45502 (eval "$ac_compile") 2>conftest.er1
45503 ac_status=$?
45504 grep -v '^ *+' conftest.er1 >conftest.err
45505 rm -f conftest.er1
45506 cat conftest.err >&5
45507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45508 (exit $ac_status); } && {
45509 test -z "$ac_c_werror_flag" ||
45510 test ! -s conftest.err
45511 } && test -s conftest.$ac_objext; then
45512 ac_header_compiler=yes
45513 else
45514 echo "$as_me: failed program was:" >&5
45515 sed 's/^/| /' conftest.$ac_ext >&5
45517 ac_header_compiler=no
45520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45522 echo "${ECHO_T}$ac_header_compiler" >&6; }
45524 # Is the header present?
45525 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
45526 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
45527 cat >conftest.$ac_ext <<_ACEOF
45528 /* confdefs.h. */
45529 _ACEOF
45530 cat confdefs.h >>conftest.$ac_ext
45531 cat >>conftest.$ac_ext <<_ACEOF
45532 /* end confdefs.h. */
45533 #include <vorbis/codec.h>
45534 _ACEOF
45535 if { (ac_try="$ac_cpp conftest.$ac_ext"
45536 case "(($ac_try" in
45537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45538 *) ac_try_echo=$ac_try;;
45539 esac
45540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45542 ac_status=$?
45543 grep -v '^ *+' conftest.er1 >conftest.err
45544 rm -f conftest.er1
45545 cat conftest.err >&5
45546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45547 (exit $ac_status); } >/dev/null && {
45548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45549 test ! -s conftest.err
45550 }; then
45551 ac_header_preproc=yes
45552 else
45553 echo "$as_me: failed program was:" >&5
45554 sed 's/^/| /' conftest.$ac_ext >&5
45556 ac_header_preproc=no
45559 rm -f conftest.err conftest.$ac_ext
45560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45561 echo "${ECHO_T}$ac_header_preproc" >&6; }
45563 # So? What about this header?
45564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45565 yes:no: )
45566 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
45567 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45568 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
45569 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
45570 ac_header_preproc=yes
45572 no:yes:* )
45573 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
45574 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
45575 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
45576 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
45577 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
45578 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
45579 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
45580 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
45581 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
45582 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
45583 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
45584 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
45585 ( cat <<\_ASBOX
45586 ## ------------------------------- ##
45587 ## Report this to www.asterisk.org ##
45588 ## ------------------------------- ##
45589 _ASBOX
45590 ) | sed "s/^/$as_me: WARNING: /" >&2
45592 esac
45593 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
45594 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
45595 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
45596 echo $ECHO_N "(cached) $ECHO_C" >&6
45597 else
45598 ac_cv_header_vorbis_codec_h=$ac_header_preproc
45600 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
45601 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
45604 if test $ac_cv_header_vorbis_codec_h = yes; then
45605 VORBIS_HEADER_FOUND=1
45606 else
45607 VORBIS_HEADER_FOUND=0
45611 CPPFLAGS="${saved_cppflags}"
45613 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
45614 VORBIS_LIB=""
45615 VORBIS_INCLUDE=""
45616 else
45617 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45618 VORBIS_LIB=""
45620 PBX_VORBIS=1
45621 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45623 cat >>confdefs.h <<_ACEOF
45624 #define HAVE_VORBIS 1
45625 _ACEOF
45628 cat >>confdefs.h <<_ACEOF
45629 #define HAVE_VORBIS_VERSION
45630 _ACEOF
45637 ac_ext=cpp
45638 ac_cpp='$CXXCPP $CPPFLAGS'
45639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45644 if test "${USE_VPB}" != "no"; then
45645 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
45646 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
45647 saved_libs="${LIBS}"
45648 saved_cppflags="${CPPFLAGS}"
45649 if test "x${VPB_DIR}" != "x"; then
45650 if test -d ${VPB_DIR}/lib; then
45651 vpblibdir=${VPB_DIR}/lib
45652 else
45653 vpblibdir=${VPB_DIR}
45655 LIBS="${LIBS} -L${vpblibdir}"
45656 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
45658 LIBS="${LIBS} -lvpb -lpthread"
45659 cat >conftest.$ac_ext <<_ACEOF
45661 /* confdefs.h. */
45662 _ACEOF
45663 cat confdefs.h >>conftest.$ac_ext
45664 cat >>conftest.$ac_ext <<_ACEOF
45665 /* end confdefs.h. */
45666 #include <vpbapi.h>
45668 main ()
45670 int q = vpb_open(0,0);
45672 return 0;
45675 _ACEOF
45676 rm -f conftest.$ac_objext conftest$ac_exeext
45677 if { (ac_try="$ac_link"
45678 case "(($ac_try" in
45679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45680 *) ac_try_echo=$ac_try;;
45681 esac
45682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45683 (eval "$ac_link") 2>conftest.er1
45684 ac_status=$?
45685 grep -v '^ *+' conftest.er1 >conftest.err
45686 rm -f conftest.er1
45687 cat conftest.err >&5
45688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45689 (exit $ac_status); } && {
45690 test -z "$ac_cxx_werror_flag" ||
45691 test ! -s conftest.err
45692 } && test -s conftest$ac_exeext &&
45693 $as_test_x conftest$ac_exeext; then
45694 { echo "$as_me:$LINENO: result: yes" >&5
45695 echo "${ECHO_T}yes" >&6; }
45696 ac_cv_lib_vpb_vpb_open="yes"
45698 else
45699 echo "$as_me: failed program was:" >&5
45700 sed 's/^/| /' conftest.$ac_ext >&5
45702 { echo "$as_me:$LINENO: result: no" >&5
45703 echo "${ECHO_T}no" >&6; }
45704 ac_cv_lib_vpb_vpb_open="no"
45709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45710 conftest$ac_exeext conftest.$ac_ext
45711 LIBS="${saved_libs}"
45712 CPPFLAGS="${saved_cppflags}"
45713 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
45714 VPB_LIB="-lvpb"
45715 if test "${VPB_DIR}" != ""; then
45716 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
45717 VPB_INCLUDE="-I${VPB_DIR}/include"
45719 PBX_VPB=1
45721 cat >>confdefs.h <<\_ACEOF
45722 #define HAVE_VPB 1
45723 _ACEOF
45728 ac_ext=c
45729 ac_cpp='$CPP $CPPFLAGS'
45730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45736 if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
45737 pbxlibdir=""
45738 # if --with-ZLIB=DIR has been specified, use it.
45739 if test "x${ZLIB_DIR}" != "x"; then
45740 if test -d ${ZLIB_DIR}/lib; then
45741 pbxlibdir="-L${ZLIB_DIR}/lib"
45742 else
45743 pbxlibdir="-L${ZLIB_DIR}"
45746 pbxfuncname="compress"
45747 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45748 AST_ZLIB_FOUND=yes
45749 else
45750 as_ac_Lib=`echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
45751 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lz" >&5
45752 echo $ECHO_N "checking for ${pbxfuncname} in -lz... $ECHO_C" >&6; }
45753 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45754 echo $ECHO_N "(cached) $ECHO_C" >&6
45755 else
45756 ac_check_lib_save_LIBS=$LIBS
45757 LIBS="-lz ${pbxlibdir} $LIBS"
45758 cat >conftest.$ac_ext <<_ACEOF
45759 /* confdefs.h. */
45760 _ACEOF
45761 cat confdefs.h >>conftest.$ac_ext
45762 cat >>conftest.$ac_ext <<_ACEOF
45763 /* end confdefs.h. */
45765 /* Override any GCC internal prototype to avoid an error.
45766 Use char because int might match the return type of a GCC
45767 builtin and then its argument prototype would still apply. */
45768 #ifdef __cplusplus
45769 extern "C"
45770 #endif
45771 char ${pbxfuncname} ();
45773 main ()
45775 return ${pbxfuncname} ();
45777 return 0;
45779 _ACEOF
45780 rm -f conftest.$ac_objext conftest$ac_exeext
45781 if { (ac_try="$ac_link"
45782 case "(($ac_try" in
45783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45784 *) ac_try_echo=$ac_try;;
45785 esac
45786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45787 (eval "$ac_link") 2>conftest.er1
45788 ac_status=$?
45789 grep -v '^ *+' conftest.er1 >conftest.err
45790 rm -f conftest.er1
45791 cat conftest.err >&5
45792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45793 (exit $ac_status); } && {
45794 test -z "$ac_c_werror_flag" ||
45795 test ! -s conftest.err
45796 } && test -s conftest$ac_exeext &&
45797 $as_test_x conftest$ac_exeext; then
45798 eval "$as_ac_Lib=yes"
45799 else
45800 echo "$as_me: failed program was:" >&5
45801 sed 's/^/| /' conftest.$ac_ext >&5
45803 eval "$as_ac_Lib=no"
45806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45807 conftest$ac_exeext conftest.$ac_ext
45808 LIBS=$ac_check_lib_save_LIBS
45810 ac_res=`eval echo '${'$as_ac_Lib'}'`
45811 { echo "$as_me:$LINENO: result: $ac_res" >&5
45812 echo "${ECHO_T}$ac_res" >&6; }
45813 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45814 AST_ZLIB_FOUND=yes
45815 else
45816 AST_ZLIB_FOUND=no
45821 # now check for the header.
45822 if test "${AST_ZLIB_FOUND}" = "yes"; then
45823 ZLIB_LIB="${pbxlibdir} -lz "
45824 # if --with-ZLIB=DIR has been specified, use it.
45825 if test "x${ZLIB_DIR}" != "x"; then
45826 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
45828 ZLIB_INCLUDE="${ZLIB_INCLUDE} "
45829 if test "xzlib.h" = "x" ; then # no header, assume found
45830 ZLIB_HEADER_FOUND="1"
45831 else # check for the header
45832 saved_cppflags="${CPPFLAGS}"
45833 CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE} "
45834 if test "${ac_cv_header_zlib_h+set}" = set; then
45835 { echo "$as_me:$LINENO: checking for zlib.h" >&5
45836 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
45837 if test "${ac_cv_header_zlib_h+set}" = set; then
45838 echo $ECHO_N "(cached) $ECHO_C" >&6
45840 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
45841 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
45842 else
45843 # Is the header compilable?
45844 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
45845 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
45846 cat >conftest.$ac_ext <<_ACEOF
45847 /* confdefs.h. */
45848 _ACEOF
45849 cat confdefs.h >>conftest.$ac_ext
45850 cat >>conftest.$ac_ext <<_ACEOF
45851 /* end confdefs.h. */
45852 $ac_includes_default
45853 #include <zlib.h>
45854 _ACEOF
45855 rm -f conftest.$ac_objext
45856 if { (ac_try="$ac_compile"
45857 case "(($ac_try" in
45858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45859 *) ac_try_echo=$ac_try;;
45860 esac
45861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45862 (eval "$ac_compile") 2>conftest.er1
45863 ac_status=$?
45864 grep -v '^ *+' conftest.er1 >conftest.err
45865 rm -f conftest.er1
45866 cat conftest.err >&5
45867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45868 (exit $ac_status); } && {
45869 test -z "$ac_c_werror_flag" ||
45870 test ! -s conftest.err
45871 } && test -s conftest.$ac_objext; then
45872 ac_header_compiler=yes
45873 else
45874 echo "$as_me: failed program was:" >&5
45875 sed 's/^/| /' conftest.$ac_ext >&5
45877 ac_header_compiler=no
45880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45882 echo "${ECHO_T}$ac_header_compiler" >&6; }
45884 # Is the header present?
45885 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
45886 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
45887 cat >conftest.$ac_ext <<_ACEOF
45888 /* confdefs.h. */
45889 _ACEOF
45890 cat confdefs.h >>conftest.$ac_ext
45891 cat >>conftest.$ac_ext <<_ACEOF
45892 /* end confdefs.h. */
45893 #include <zlib.h>
45894 _ACEOF
45895 if { (ac_try="$ac_cpp conftest.$ac_ext"
45896 case "(($ac_try" in
45897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45898 *) ac_try_echo=$ac_try;;
45899 esac
45900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45902 ac_status=$?
45903 grep -v '^ *+' conftest.er1 >conftest.err
45904 rm -f conftest.er1
45905 cat conftest.err >&5
45906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45907 (exit $ac_status); } >/dev/null && {
45908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45909 test ! -s conftest.err
45910 }; then
45911 ac_header_preproc=yes
45912 else
45913 echo "$as_me: failed program was:" >&5
45914 sed 's/^/| /' conftest.$ac_ext >&5
45916 ac_header_preproc=no
45919 rm -f conftest.err conftest.$ac_ext
45920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45921 echo "${ECHO_T}$ac_header_preproc" >&6; }
45923 # So? What about this header?
45924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45925 yes:no: )
45926 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
45927 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45928 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
45929 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
45930 ac_header_preproc=yes
45932 no:yes:* )
45933 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
45934 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
45935 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
45936 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
45937 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
45938 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
45939 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
45940 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
45941 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
45942 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
45943 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
45944 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
45945 ( cat <<\_ASBOX
45946 ## ------------------------------- ##
45947 ## Report this to www.asterisk.org ##
45948 ## ------------------------------- ##
45949 _ASBOX
45950 ) | sed "s/^/$as_me: WARNING: /" >&2
45952 esac
45953 { echo "$as_me:$LINENO: checking for zlib.h" >&5
45954 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
45955 if test "${ac_cv_header_zlib_h+set}" = set; then
45956 echo $ECHO_N "(cached) $ECHO_C" >&6
45957 else
45958 ac_cv_header_zlib_h=$ac_header_preproc
45960 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
45961 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
45964 if test $ac_cv_header_zlib_h = yes; then
45965 ZLIB_HEADER_FOUND=1
45966 else
45967 ZLIB_HEADER_FOUND=0
45971 CPPFLAGS="${saved_cppflags}"
45973 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
45974 ZLIB_LIB=""
45975 ZLIB_INCLUDE=""
45976 else
45977 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45978 ZLIB_LIB=""
45980 PBX_ZLIB=1
45981 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45983 cat >>confdefs.h <<_ACEOF
45984 #define HAVE_ZLIB 1
45985 _ACEOF
45988 cat >>confdefs.h <<_ACEOF
45989 #define HAVE_ZLIB_VERSION
45990 _ACEOF
45997 EDITLINE_LIB=""
45998 if test "x$TERMCAP_LIB" != "x" ; then
45999 EDITLINE_LIB="$TERMCAP_LIB"
46000 elif test "x$TINFO_LIB" != "x" ; then
46001 EDITLINE_LIB="$TINFO_LIB"
46002 elif test "x$CURSES_LIB" != "x" ; then
46003 EDITLINE_LIB="$CURSES_LIB"
46004 elif test "x$NCURSES_LIB" != "x" ; then
46005 EDITLINE_LIB="$NCURSES_LIB"
46006 else
46007 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
46008 echo "$as_me: error: *** termcap support not found" >&2;}
46009 { (exit 1); exit 1; }; }
46013 if test "${ac_cv_header_h323_h+set}" = set; then
46014 { echo "$as_me:$LINENO: checking for h323.h" >&5
46015 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
46016 if test "${ac_cv_header_h323_h+set}" = set; then
46017 echo $ECHO_N "(cached) $ECHO_C" >&6
46019 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
46020 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
46021 else
46022 # Is the header compilable?
46023 { echo "$as_me:$LINENO: checking h323.h usability" >&5
46024 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
46025 cat >conftest.$ac_ext <<_ACEOF
46026 /* confdefs.h. */
46027 _ACEOF
46028 cat confdefs.h >>conftest.$ac_ext
46029 cat >>conftest.$ac_ext <<_ACEOF
46030 /* end confdefs.h. */
46031 $ac_includes_default
46032 #include <h323.h>
46033 _ACEOF
46034 rm -f conftest.$ac_objext
46035 if { (ac_try="$ac_compile"
46036 case "(($ac_try" in
46037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46038 *) ac_try_echo=$ac_try;;
46039 esac
46040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46041 (eval "$ac_compile") 2>conftest.er1
46042 ac_status=$?
46043 grep -v '^ *+' conftest.er1 >conftest.err
46044 rm -f conftest.er1
46045 cat conftest.err >&5
46046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46047 (exit $ac_status); } && {
46048 test -z "$ac_c_werror_flag" ||
46049 test ! -s conftest.err
46050 } && test -s conftest.$ac_objext; then
46051 ac_header_compiler=yes
46052 else
46053 echo "$as_me: failed program was:" >&5
46054 sed 's/^/| /' conftest.$ac_ext >&5
46056 ac_header_compiler=no
46059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46061 echo "${ECHO_T}$ac_header_compiler" >&6; }
46063 # Is the header present?
46064 { echo "$as_me:$LINENO: checking h323.h presence" >&5
46065 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
46066 cat >conftest.$ac_ext <<_ACEOF
46067 /* confdefs.h. */
46068 _ACEOF
46069 cat confdefs.h >>conftest.$ac_ext
46070 cat >>conftest.$ac_ext <<_ACEOF
46071 /* end confdefs.h. */
46072 #include <h323.h>
46073 _ACEOF
46074 if { (ac_try="$ac_cpp conftest.$ac_ext"
46075 case "(($ac_try" in
46076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46077 *) ac_try_echo=$ac_try;;
46078 esac
46079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46081 ac_status=$?
46082 grep -v '^ *+' conftest.er1 >conftest.err
46083 rm -f conftest.er1
46084 cat conftest.err >&5
46085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46086 (exit $ac_status); } >/dev/null && {
46087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46088 test ! -s conftest.err
46089 }; then
46090 ac_header_preproc=yes
46091 else
46092 echo "$as_me: failed program was:" >&5
46093 sed 's/^/| /' conftest.$ac_ext >&5
46095 ac_header_preproc=no
46098 rm -f conftest.err conftest.$ac_ext
46099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46100 echo "${ECHO_T}$ac_header_preproc" >&6; }
46102 # So? What about this header?
46103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46104 yes:no: )
46105 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
46106 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46107 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
46108 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
46109 ac_header_preproc=yes
46111 no:yes:* )
46112 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
46113 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
46114 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
46115 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
46116 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
46117 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
46118 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
46119 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
46120 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
46121 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
46122 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
46123 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
46124 ( cat <<\_ASBOX
46125 ## ------------------------------- ##
46126 ## Report this to www.asterisk.org ##
46127 ## ------------------------------- ##
46128 _ASBOX
46129 ) | sed "s/^/$as_me: WARNING: /" >&2
46131 esac
46132 { echo "$as_me:$LINENO: checking for h323.h" >&5
46133 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
46134 if test "${ac_cv_header_h323_h+set}" = set; then
46135 echo $ECHO_N "(cached) $ECHO_C" >&6
46136 else
46137 ac_cv_header_h323_h=$ac_header_preproc
46139 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
46140 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
46143 if test $ac_cv_header_h323_h = yes; then
46144 PBX_H323=1
46145 else
46146 PBX_H323=0
46152 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
46153 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
46154 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
46155 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
46156 echo $ECHO_N "(cached) $ECHO_C" >&6
46158 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
46159 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
46160 else
46161 # Is the header compilable?
46162 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
46163 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
46164 cat >conftest.$ac_ext <<_ACEOF
46165 /* confdefs.h. */
46166 _ACEOF
46167 cat confdefs.h >>conftest.$ac_ext
46168 cat >>conftest.$ac_ext <<_ACEOF
46169 /* end confdefs.h. */
46170 $ac_includes_default
46171 #include <linux/compiler.h>
46172 _ACEOF
46173 rm -f conftest.$ac_objext
46174 if { (ac_try="$ac_compile"
46175 case "(($ac_try" in
46176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46177 *) ac_try_echo=$ac_try;;
46178 esac
46179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46180 (eval "$ac_compile") 2>conftest.er1
46181 ac_status=$?
46182 grep -v '^ *+' conftest.er1 >conftest.err
46183 rm -f conftest.er1
46184 cat conftest.err >&5
46185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46186 (exit $ac_status); } && {
46187 test -z "$ac_c_werror_flag" ||
46188 test ! -s conftest.err
46189 } && test -s conftest.$ac_objext; then
46190 ac_header_compiler=yes
46191 else
46192 echo "$as_me: failed program was:" >&5
46193 sed 's/^/| /' conftest.$ac_ext >&5
46195 ac_header_compiler=no
46198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46200 echo "${ECHO_T}$ac_header_compiler" >&6; }
46202 # Is the header present?
46203 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
46204 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
46205 cat >conftest.$ac_ext <<_ACEOF
46206 /* confdefs.h. */
46207 _ACEOF
46208 cat confdefs.h >>conftest.$ac_ext
46209 cat >>conftest.$ac_ext <<_ACEOF
46210 /* end confdefs.h. */
46211 #include <linux/compiler.h>
46212 _ACEOF
46213 if { (ac_try="$ac_cpp conftest.$ac_ext"
46214 case "(($ac_try" in
46215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46216 *) ac_try_echo=$ac_try;;
46217 esac
46218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46220 ac_status=$?
46221 grep -v '^ *+' conftest.er1 >conftest.err
46222 rm -f conftest.er1
46223 cat conftest.err >&5
46224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46225 (exit $ac_status); } >/dev/null && {
46226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46227 test ! -s conftest.err
46228 }; then
46229 ac_header_preproc=yes
46230 else
46231 echo "$as_me: failed program was:" >&5
46232 sed 's/^/| /' conftest.$ac_ext >&5
46234 ac_header_preproc=no
46237 rm -f conftest.err conftest.$ac_ext
46238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46239 echo "${ECHO_T}$ac_header_preproc" >&6; }
46241 # So? What about this header?
46242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46243 yes:no: )
46244 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
46245 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46246 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
46247 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
46248 ac_header_preproc=yes
46250 no:yes:* )
46251 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
46252 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
46253 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
46254 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
46255 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
46256 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
46257 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
46258 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
46259 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
46260 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
46261 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
46262 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
46263 ( cat <<\_ASBOX
46264 ## ------------------------------- ##
46265 ## Report this to www.asterisk.org ##
46266 ## ------------------------------- ##
46267 _ASBOX
46268 ) | sed "s/^/$as_me: WARNING: /" >&2
46270 esac
46271 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
46272 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
46273 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
46274 echo $ECHO_N "(cached) $ECHO_C" >&6
46275 else
46276 ac_cv_header_linux_compiler_h=$ac_header_preproc
46278 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
46279 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
46282 if test $ac_cv_header_linux_compiler_h = yes; then
46284 cat >>confdefs.h <<_ACEOF
46285 #define HAVE_LINUX_COMPILER_H 1
46286 _ACEOF
46292 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
46293 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
46294 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
46295 echo $ECHO_N "(cached) $ECHO_C" >&6
46296 else
46297 cat >conftest.$ac_ext <<_ACEOF
46298 /* confdefs.h. */
46299 _ACEOF
46300 cat confdefs.h >>conftest.$ac_ext
46301 cat >>conftest.$ac_ext <<_ACEOF
46302 /* end confdefs.h. */
46304 #include <linux/version.h>
46305 #ifdef HAVE_LINUX_COMPILER_H
46306 #include <linux/compiler.h>
46307 #endif
46310 #include <linux/ixjuser.h>
46311 _ACEOF
46312 rm -f conftest.$ac_objext
46313 if { (ac_try="$ac_compile"
46314 case "(($ac_try" in
46315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46316 *) ac_try_echo=$ac_try;;
46317 esac
46318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46319 (eval "$ac_compile") 2>conftest.er1
46320 ac_status=$?
46321 grep -v '^ *+' conftest.er1 >conftest.err
46322 rm -f conftest.er1
46323 cat conftest.err >&5
46324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46325 (exit $ac_status); } && {
46326 test -z "$ac_c_werror_flag" ||
46327 test ! -s conftest.err
46328 } && test -s conftest.$ac_objext; then
46329 ac_cv_header_linux_ixjuser_h=yes
46330 else
46331 echo "$as_me: failed program was:" >&5
46332 sed 's/^/| /' conftest.$ac_ext >&5
46334 ac_cv_header_linux_ixjuser_h=no
46337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46339 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
46340 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
46341 if test $ac_cv_header_linux_ixjuser_h = yes; then
46342 PBX_IXJUSER=1
46343 else
46344 PBX_IXJUSER=0
46351 if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
46352 PBX_SDL=0
46353 if test -n "$ac_tool_prefix"; then
46354 # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
46355 set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
46356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46358 if test "${ac_cv_prog_CONFIG_SDL+set}" = set; then
46359 echo $ECHO_N "(cached) $ECHO_C" >&6
46360 else
46361 if test -n "$CONFIG_SDL"; then
46362 ac_cv_prog_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test.
46363 else
46364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46365 for as_dir in $PATH
46367 IFS=$as_save_IFS
46368 test -z "$as_dir" && as_dir=.
46369 for ac_exec_ext in '' $ac_executable_extensions; do
46370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46371 ac_cv_prog_CONFIG_SDL="${ac_tool_prefix}sdl-config"
46372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46373 break 2
46375 done
46376 done
46377 IFS=$as_save_IFS
46381 CONFIG_SDL=$ac_cv_prog_CONFIG_SDL
46382 if test -n "$CONFIG_SDL"; then
46383 { echo "$as_me:$LINENO: result: $CONFIG_SDL" >&5
46384 echo "${ECHO_T}$CONFIG_SDL" >&6; }
46385 else
46386 { echo "$as_me:$LINENO: result: no" >&5
46387 echo "${ECHO_T}no" >&6; }
46392 if test -z "$ac_cv_prog_CONFIG_SDL"; then
46393 ac_ct_CONFIG_SDL=$CONFIG_SDL
46394 # Extract the first word of "sdl-config", so it can be a program name with args.
46395 set dummy sdl-config; ac_word=$2
46396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46398 if test "${ac_cv_prog_ac_ct_CONFIG_SDL+set}" = set; then
46399 echo $ECHO_N "(cached) $ECHO_C" >&6
46400 else
46401 if test -n "$ac_ct_CONFIG_SDL"; then
46402 ac_cv_prog_ac_ct_CONFIG_SDL="$ac_ct_CONFIG_SDL" # Let the user override the test.
46403 else
46404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46405 for as_dir in $PATH
46407 IFS=$as_save_IFS
46408 test -z "$as_dir" && as_dir=.
46409 for ac_exec_ext in '' $ac_executable_extensions; do
46410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46411 ac_cv_prog_ac_ct_CONFIG_SDL="sdl-config"
46412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46413 break 2
46415 done
46416 done
46417 IFS=$as_save_IFS
46421 ac_ct_CONFIG_SDL=$ac_cv_prog_ac_ct_CONFIG_SDL
46422 if test -n "$ac_ct_CONFIG_SDL"; then
46423 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_SDL" >&5
46424 echo "${ECHO_T}$ac_ct_CONFIG_SDL" >&6; }
46425 else
46426 { echo "$as_me:$LINENO: result: no" >&5
46427 echo "${ECHO_T}no" >&6; }
46430 if test "x$ac_ct_CONFIG_SDL" = x; then
46431 CONFIG_SDL="No"
46432 else
46433 case $cross_compiling:$ac_tool_warned in
46434 yes:)
46435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46436 whose name does not start with the host triplet. If you think this
46437 configuration is useful to you, please write to autoconf@gnu.org." >&5
46438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46439 whose name does not start with the host triplet. If you think this
46440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46441 ac_tool_warned=yes ;;
46442 esac
46443 CONFIG_SDL=$ac_ct_CONFIG_SDL
46445 else
46446 CONFIG_SDL="$ac_cv_prog_CONFIG_SDL"
46449 if test ! "x${CONFIG_SDL}" = xNo; then
46450 if test x"" = x ; then A=--cflags ; else A="" ; fi
46451 SDL_INCLUDE=$(${CONFIG_SDL} $A)
46452 if test x"" = x ; then A=--libs ; else A="" ; fi
46453 SDL_LIB=$(${CONFIG_SDL} $A)
46454 if test x"" != x ; then
46455 saved_cppflags="${CPPFLAGS}"
46456 if test "x${SDL_DIR}" != "x"; then
46457 SDL_INCLUDE="-I${SDL_DIR}/include"
46459 CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
46461 saved_ldflags="${LDFLAGS}"
46462 LDFLAGS="${SDL_LIB}"
46464 cat >conftest.$ac_ext <<_ACEOF
46465 /* confdefs.h. */
46466 _ACEOF
46467 cat confdefs.h >>conftest.$ac_ext
46468 cat >>conftest.$ac_ext <<_ACEOF
46469 /* end confdefs.h. */
46472 main ()
46477 return 0;
46479 _ACEOF
46480 rm -f conftest.$ac_objext conftest$ac_exeext
46481 if { (ac_try="$ac_link"
46482 case "(($ac_try" in
46483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46484 *) ac_try_echo=$ac_try;;
46485 esac
46486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46487 (eval "$ac_link") 2>conftest.er1
46488 ac_status=$?
46489 grep -v '^ *+' conftest.er1 >conftest.err
46490 rm -f conftest.er1
46491 cat conftest.err >&5
46492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46493 (exit $ac_status); } && {
46494 test -z "$ac_c_werror_flag" ||
46495 test ! -s conftest.err
46496 } && test -s conftest$ac_exeext &&
46497 $as_test_x conftest$ac_exeext; then
46498 PBX_SDL=1
46500 cat >>confdefs.h <<\_ACEOF
46501 #define HAVE_SDL 1
46502 _ACEOF
46505 else
46506 echo "$as_me: failed program was:" >&5
46507 sed 's/^/| /' conftest.$ac_ext >&5
46513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46514 conftest$ac_exeext conftest.$ac_ext
46515 CPPFLAGS="${saved_cppflags}"
46516 LDFLAGS="${saved_ldflags}"
46517 else
46518 PBX_SDL=1
46520 cat >>confdefs.h <<\_ACEOF
46521 #define HAVE_SDL 1
46522 _ACEOF
46529 if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
46530 pbxlibdir=""
46531 # if --with-SDL_IMAGE=DIR has been specified, use it.
46532 if test "x${SDL_IMAGE_DIR}" != "x"; then
46533 if test -d ${SDL_IMAGE_DIR}/lib; then
46534 pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
46535 else
46536 pbxlibdir="-L${SDL_IMAGE_DIR}"
46539 pbxfuncname="IMG_Load"
46540 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46541 AST_SDL_IMAGE_FOUND=yes
46542 else
46543 as_ac_Lib=`echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
46544 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSDL_image" >&5
46545 echo $ECHO_N "checking for ${pbxfuncname} in -lSDL_image... $ECHO_C" >&6; }
46546 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46547 echo $ECHO_N "(cached) $ECHO_C" >&6
46548 else
46549 ac_check_lib_save_LIBS=$LIBS
46550 LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
46551 cat >conftest.$ac_ext <<_ACEOF
46552 /* confdefs.h. */
46553 _ACEOF
46554 cat confdefs.h >>conftest.$ac_ext
46555 cat >>conftest.$ac_ext <<_ACEOF
46556 /* end confdefs.h. */
46558 /* Override any GCC internal prototype to avoid an error.
46559 Use char because int might match the return type of a GCC
46560 builtin and then its argument prototype would still apply. */
46561 #ifdef __cplusplus
46562 extern "C"
46563 #endif
46564 char ${pbxfuncname} ();
46566 main ()
46568 return ${pbxfuncname} ();
46570 return 0;
46572 _ACEOF
46573 rm -f conftest.$ac_objext conftest$ac_exeext
46574 if { (ac_try="$ac_link"
46575 case "(($ac_try" in
46576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46577 *) ac_try_echo=$ac_try;;
46578 esac
46579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46580 (eval "$ac_link") 2>conftest.er1
46581 ac_status=$?
46582 grep -v '^ *+' conftest.er1 >conftest.err
46583 rm -f conftest.er1
46584 cat conftest.err >&5
46585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46586 (exit $ac_status); } && {
46587 test -z "$ac_c_werror_flag" ||
46588 test ! -s conftest.err
46589 } && test -s conftest$ac_exeext &&
46590 $as_test_x conftest$ac_exeext; then
46591 eval "$as_ac_Lib=yes"
46592 else
46593 echo "$as_me: failed program was:" >&5
46594 sed 's/^/| /' conftest.$ac_ext >&5
46596 eval "$as_ac_Lib=no"
46599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46600 conftest$ac_exeext conftest.$ac_ext
46601 LIBS=$ac_check_lib_save_LIBS
46603 ac_res=`eval echo '${'$as_ac_Lib'}'`
46604 { echo "$as_me:$LINENO: result: $ac_res" >&5
46605 echo "${ECHO_T}$ac_res" >&6; }
46606 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46607 AST_SDL_IMAGE_FOUND=yes
46608 else
46609 AST_SDL_IMAGE_FOUND=no
46614 # now check for the header.
46615 if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
46616 SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
46617 # if --with-SDL_IMAGE=DIR has been specified, use it.
46618 if test "x${SDL_IMAGE_DIR}" != "x"; then
46619 SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
46621 SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
46622 if test "xSDL_image.h" = "x" ; then # no header, assume found
46623 SDL_IMAGE_HEADER_FOUND="1"
46624 else # check for the header
46625 saved_cppflags="${CPPFLAGS}"
46626 CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
46627 if test "${ac_cv_header_SDL_image_h+set}" = set; then
46628 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
46629 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
46630 if test "${ac_cv_header_SDL_image_h+set}" = set; then
46631 echo $ECHO_N "(cached) $ECHO_C" >&6
46633 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
46634 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
46635 else
46636 # Is the header compilable?
46637 { echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
46638 echo $ECHO_N "checking SDL_image.h usability... $ECHO_C" >&6; }
46639 cat >conftest.$ac_ext <<_ACEOF
46640 /* confdefs.h. */
46641 _ACEOF
46642 cat confdefs.h >>conftest.$ac_ext
46643 cat >>conftest.$ac_ext <<_ACEOF
46644 /* end confdefs.h. */
46645 $ac_includes_default
46646 #include <SDL_image.h>
46647 _ACEOF
46648 rm -f conftest.$ac_objext
46649 if { (ac_try="$ac_compile"
46650 case "(($ac_try" in
46651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46652 *) ac_try_echo=$ac_try;;
46653 esac
46654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46655 (eval "$ac_compile") 2>conftest.er1
46656 ac_status=$?
46657 grep -v '^ *+' conftest.er1 >conftest.err
46658 rm -f conftest.er1
46659 cat conftest.err >&5
46660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46661 (exit $ac_status); } && {
46662 test -z "$ac_c_werror_flag" ||
46663 test ! -s conftest.err
46664 } && test -s conftest.$ac_objext; then
46665 ac_header_compiler=yes
46666 else
46667 echo "$as_me: failed program was:" >&5
46668 sed 's/^/| /' conftest.$ac_ext >&5
46670 ac_header_compiler=no
46673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46675 echo "${ECHO_T}$ac_header_compiler" >&6; }
46677 # Is the header present?
46678 { echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
46679 echo $ECHO_N "checking SDL_image.h presence... $ECHO_C" >&6; }
46680 cat >conftest.$ac_ext <<_ACEOF
46681 /* confdefs.h. */
46682 _ACEOF
46683 cat confdefs.h >>conftest.$ac_ext
46684 cat >>conftest.$ac_ext <<_ACEOF
46685 /* end confdefs.h. */
46686 #include <SDL_image.h>
46687 _ACEOF
46688 if { (ac_try="$ac_cpp conftest.$ac_ext"
46689 case "(($ac_try" in
46690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46691 *) ac_try_echo=$ac_try;;
46692 esac
46693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46695 ac_status=$?
46696 grep -v '^ *+' conftest.er1 >conftest.err
46697 rm -f conftest.er1
46698 cat conftest.err >&5
46699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46700 (exit $ac_status); } >/dev/null && {
46701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46702 test ! -s conftest.err
46703 }; then
46704 ac_header_preproc=yes
46705 else
46706 echo "$as_me: failed program was:" >&5
46707 sed 's/^/| /' conftest.$ac_ext >&5
46709 ac_header_preproc=no
46712 rm -f conftest.err conftest.$ac_ext
46713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46714 echo "${ECHO_T}$ac_header_preproc" >&6; }
46716 # So? What about this header?
46717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46718 yes:no: )
46719 { echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
46720 echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46721 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
46722 echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
46723 ac_header_preproc=yes
46725 no:yes:* )
46726 { echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
46727 echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
46728 { echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
46729 echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
46730 { echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
46731 echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
46732 { echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
46733 echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
46734 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
46735 echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
46736 { echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
46737 echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
46738 ( cat <<\_ASBOX
46739 ## ------------------------------- ##
46740 ## Report this to www.asterisk.org ##
46741 ## ------------------------------- ##
46742 _ASBOX
46743 ) | sed "s/^/$as_me: WARNING: /" >&2
46745 esac
46746 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
46747 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
46748 if test "${ac_cv_header_SDL_image_h+set}" = set; then
46749 echo $ECHO_N "(cached) $ECHO_C" >&6
46750 else
46751 ac_cv_header_SDL_image_h=$ac_header_preproc
46753 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
46754 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
46757 if test $ac_cv_header_SDL_image_h = yes; then
46758 SDL_IMAGE_HEADER_FOUND=1
46759 else
46760 SDL_IMAGE_HEADER_FOUND=0
46764 CPPFLAGS="${saved_cppflags}"
46766 if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
46767 SDL_IMAGE_LIB=""
46768 SDL_IMAGE_INCLUDE=""
46769 else
46770 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46771 SDL_IMAGE_LIB=""
46773 PBX_SDL_IMAGE=1
46774 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46776 cat >>confdefs.h <<_ACEOF
46777 #define HAVE_SDL_IMAGE 1
46778 _ACEOF
46781 cat >>confdefs.h <<_ACEOF
46782 #define HAVE_SDL_IMAGE_VERSION
46783 _ACEOF
46790 if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
46791 pbxlibdir=""
46792 # if --with-FFMPEG=DIR has been specified, use it.
46793 if test "x${FFMPEG_DIR}" != "x"; then
46794 if test -d ${FFMPEG_DIR}/lib; then
46795 pbxlibdir="-L${FFMPEG_DIR}/lib"
46796 else
46797 pbxlibdir="-L${FFMPEG_DIR}"
46800 pbxfuncname="sws_getContext"
46801 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46802 AST_FFMPEG_FOUND=yes
46803 else
46804 as_ac_Lib=`echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
46805 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lavcodec" >&5
46806 echo $ECHO_N "checking for ${pbxfuncname} in -lavcodec... $ECHO_C" >&6; }
46807 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46808 echo $ECHO_N "(cached) $ECHO_C" >&6
46809 else
46810 ac_check_lib_save_LIBS=$LIBS
46811 LIBS="-lavcodec ${pbxlibdir} -lpthread -lz -lm $LIBS"
46812 cat >conftest.$ac_ext <<_ACEOF
46813 /* confdefs.h. */
46814 _ACEOF
46815 cat confdefs.h >>conftest.$ac_ext
46816 cat >>conftest.$ac_ext <<_ACEOF
46817 /* end confdefs.h. */
46819 /* Override any GCC internal prototype to avoid an error.
46820 Use char because int might match the return type of a GCC
46821 builtin and then its argument prototype would still apply. */
46822 #ifdef __cplusplus
46823 extern "C"
46824 #endif
46825 char ${pbxfuncname} ();
46827 main ()
46829 return ${pbxfuncname} ();
46831 return 0;
46833 _ACEOF
46834 rm -f conftest.$ac_objext conftest$ac_exeext
46835 if { (ac_try="$ac_link"
46836 case "(($ac_try" in
46837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46838 *) ac_try_echo=$ac_try;;
46839 esac
46840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46841 (eval "$ac_link") 2>conftest.er1
46842 ac_status=$?
46843 grep -v '^ *+' conftest.er1 >conftest.err
46844 rm -f conftest.er1
46845 cat conftest.err >&5
46846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46847 (exit $ac_status); } && {
46848 test -z "$ac_c_werror_flag" ||
46849 test ! -s conftest.err
46850 } && test -s conftest$ac_exeext &&
46851 $as_test_x conftest$ac_exeext; then
46852 eval "$as_ac_Lib=yes"
46853 else
46854 echo "$as_me: failed program was:" >&5
46855 sed 's/^/| /' conftest.$ac_ext >&5
46857 eval "$as_ac_Lib=no"
46860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46861 conftest$ac_exeext conftest.$ac_ext
46862 LIBS=$ac_check_lib_save_LIBS
46864 ac_res=`eval echo '${'$as_ac_Lib'}'`
46865 { echo "$as_me:$LINENO: result: $ac_res" >&5
46866 echo "${ECHO_T}$ac_res" >&6; }
46867 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46868 AST_FFMPEG_FOUND=yes
46869 else
46870 AST_FFMPEG_FOUND=no
46875 # now check for the header.
46876 if test "${AST_FFMPEG_FOUND}" = "yes"; then
46877 FFMPEG_LIB="${pbxlibdir} -lavcodec -lpthread -lz -lm"
46878 # if --with-FFMPEG=DIR has been specified, use it.
46879 if test "x${FFMPEG_DIR}" != "x"; then
46880 FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
46882 FFMPEG_INCLUDE="${FFMPEG_INCLUDE} "
46883 if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
46884 FFMPEG_HEADER_FOUND="1"
46885 else # check for the header
46886 saved_cppflags="${CPPFLAGS}"
46887 CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE} "
46888 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
46889 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
46890 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
46891 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
46892 echo $ECHO_N "(cached) $ECHO_C" >&6
46894 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
46895 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
46896 else
46897 # Is the header compilable?
46898 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
46899 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
46900 cat >conftest.$ac_ext <<_ACEOF
46901 /* confdefs.h. */
46902 _ACEOF
46903 cat confdefs.h >>conftest.$ac_ext
46904 cat >>conftest.$ac_ext <<_ACEOF
46905 /* end confdefs.h. */
46906 $ac_includes_default
46907 #include <ffmpeg/avcodec.h>
46908 _ACEOF
46909 rm -f conftest.$ac_objext
46910 if { (ac_try="$ac_compile"
46911 case "(($ac_try" in
46912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46913 *) ac_try_echo=$ac_try;;
46914 esac
46915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46916 (eval "$ac_compile") 2>conftest.er1
46917 ac_status=$?
46918 grep -v '^ *+' conftest.er1 >conftest.err
46919 rm -f conftest.er1
46920 cat conftest.err >&5
46921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46922 (exit $ac_status); } && {
46923 test -z "$ac_c_werror_flag" ||
46924 test ! -s conftest.err
46925 } && test -s conftest.$ac_objext; then
46926 ac_header_compiler=yes
46927 else
46928 echo "$as_me: failed program was:" >&5
46929 sed 's/^/| /' conftest.$ac_ext >&5
46931 ac_header_compiler=no
46934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46936 echo "${ECHO_T}$ac_header_compiler" >&6; }
46938 # Is the header present?
46939 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
46940 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
46941 cat >conftest.$ac_ext <<_ACEOF
46942 /* confdefs.h. */
46943 _ACEOF
46944 cat confdefs.h >>conftest.$ac_ext
46945 cat >>conftest.$ac_ext <<_ACEOF
46946 /* end confdefs.h. */
46947 #include <ffmpeg/avcodec.h>
46948 _ACEOF
46949 if { (ac_try="$ac_cpp conftest.$ac_ext"
46950 case "(($ac_try" in
46951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46952 *) ac_try_echo=$ac_try;;
46953 esac
46954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46956 ac_status=$?
46957 grep -v '^ *+' conftest.er1 >conftest.err
46958 rm -f conftest.er1
46959 cat conftest.err >&5
46960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46961 (exit $ac_status); } >/dev/null && {
46962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46963 test ! -s conftest.err
46964 }; then
46965 ac_header_preproc=yes
46966 else
46967 echo "$as_me: failed program was:" >&5
46968 sed 's/^/| /' conftest.$ac_ext >&5
46970 ac_header_preproc=no
46973 rm -f conftest.err conftest.$ac_ext
46974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46975 echo "${ECHO_T}$ac_header_preproc" >&6; }
46977 # So? What about this header?
46978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46979 yes:no: )
46980 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
46981 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46982 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
46983 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
46984 ac_header_preproc=yes
46986 no:yes:* )
46987 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
46988 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
46989 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5
46990 echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;}
46991 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
46992 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
46993 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
46994 echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
46995 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
46996 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
46997 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
46998 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
46999 ( cat <<\_ASBOX
47000 ## ------------------------------- ##
47001 ## Report this to www.asterisk.org ##
47002 ## ------------------------------- ##
47003 _ASBOX
47004 ) | sed "s/^/$as_me: WARNING: /" >&2
47006 esac
47007 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
47008 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
47009 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
47010 echo $ECHO_N "(cached) $ECHO_C" >&6
47011 else
47012 ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
47014 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
47015 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
47018 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
47019 FFMPEG_HEADER_FOUND=1
47020 else
47021 FFMPEG_HEADER_FOUND=0
47025 CPPFLAGS="${saved_cppflags}"
47027 if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
47028 FFMPEG_LIB=""
47029 FFMPEG_INCLUDE=""
47030 else
47031 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47032 FFMPEG_LIB=""
47034 PBX_FFMPEG=1
47035 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47037 cat >>confdefs.h <<_ACEOF
47038 #define HAVE_FFMPEG 1
47039 _ACEOF
47042 cat >>confdefs.h <<_ACEOF
47043 #define HAVE_FFMPEG_VERSION
47044 _ACEOF
47051 # possible places for video4linux version 1
47052 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
47053 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
47054 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
47055 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
47056 echo $ECHO_N "(cached) $ECHO_C" >&6
47058 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
47059 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
47060 else
47061 # Is the header compilable?
47062 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
47063 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
47064 cat >conftest.$ac_ext <<_ACEOF
47065 /* confdefs.h. */
47066 _ACEOF
47067 cat confdefs.h >>conftest.$ac_ext
47068 cat >>conftest.$ac_ext <<_ACEOF
47069 /* end confdefs.h. */
47070 $ac_includes_default
47071 #include <linux/videodev.h>
47072 _ACEOF
47073 rm -f conftest.$ac_objext
47074 if { (ac_try="$ac_compile"
47075 case "(($ac_try" in
47076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47077 *) ac_try_echo=$ac_try;;
47078 esac
47079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47080 (eval "$ac_compile") 2>conftest.er1
47081 ac_status=$?
47082 grep -v '^ *+' conftest.er1 >conftest.err
47083 rm -f conftest.er1
47084 cat conftest.err >&5
47085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47086 (exit $ac_status); } && {
47087 test -z "$ac_c_werror_flag" ||
47088 test ! -s conftest.err
47089 } && test -s conftest.$ac_objext; then
47090 ac_header_compiler=yes
47091 else
47092 echo "$as_me: failed program was:" >&5
47093 sed 's/^/| /' conftest.$ac_ext >&5
47095 ac_header_compiler=no
47098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47100 echo "${ECHO_T}$ac_header_compiler" >&6; }
47102 # Is the header present?
47103 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
47104 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
47105 cat >conftest.$ac_ext <<_ACEOF
47106 /* confdefs.h. */
47107 _ACEOF
47108 cat confdefs.h >>conftest.$ac_ext
47109 cat >>conftest.$ac_ext <<_ACEOF
47110 /* end confdefs.h. */
47111 #include <linux/videodev.h>
47112 _ACEOF
47113 if { (ac_try="$ac_cpp conftest.$ac_ext"
47114 case "(($ac_try" in
47115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47116 *) ac_try_echo=$ac_try;;
47117 esac
47118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47120 ac_status=$?
47121 grep -v '^ *+' conftest.er1 >conftest.err
47122 rm -f conftest.er1
47123 cat conftest.err >&5
47124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47125 (exit $ac_status); } >/dev/null && {
47126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47127 test ! -s conftest.err
47128 }; then
47129 ac_header_preproc=yes
47130 else
47131 echo "$as_me: failed program was:" >&5
47132 sed 's/^/| /' conftest.$ac_ext >&5
47134 ac_header_preproc=no
47137 rm -f conftest.err conftest.$ac_ext
47138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47139 echo "${ECHO_T}$ac_header_preproc" >&6; }
47141 # So? What about this header?
47142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47143 yes:no: )
47144 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
47145 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47146 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
47147 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
47148 ac_header_preproc=yes
47150 no:yes:* )
47151 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
47152 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
47153 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
47154 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
47155 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
47156 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
47157 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
47158 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
47159 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
47160 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
47161 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
47162 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
47163 ( cat <<\_ASBOX
47164 ## ------------------------------- ##
47165 ## Report this to www.asterisk.org ##
47166 ## ------------------------------- ##
47167 _ASBOX
47168 ) | sed "s/^/$as_me: WARNING: /" >&2
47170 esac
47171 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
47172 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
47173 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
47174 echo $ECHO_N "(cached) $ECHO_C" >&6
47175 else
47176 ac_cv_header_linux_videodev_h=$ac_header_preproc
47178 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
47179 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
47182 if test $ac_cv_header_linux_videodev_h = yes; then
47184 cat >>confdefs.h <<_ACEOF
47185 #define HAVE_VIDEODEV_H 1
47186 _ACEOF
47192 # possible places for X11
47194 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
47195 pbxlibdir=""
47196 # if --with-X11=DIR has been specified, use it.
47197 if test "x${X11_DIR}" != "x"; then
47198 if test -d ${X11_DIR}/lib; then
47199 pbxlibdir="-L${X11_DIR}/lib"
47200 else
47201 pbxlibdir="-L${X11_DIR}"
47204 pbxfuncname="XOpenDisplay"
47205 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47206 AST_X11_FOUND=yes
47207 else
47208 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
47209 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
47210 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
47211 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47212 echo $ECHO_N "(cached) $ECHO_C" >&6
47213 else
47214 ac_check_lib_save_LIBS=$LIBS
47215 LIBS="-lX11 ${pbxlibdir} $LIBS"
47216 cat >conftest.$ac_ext <<_ACEOF
47217 /* confdefs.h. */
47218 _ACEOF
47219 cat confdefs.h >>conftest.$ac_ext
47220 cat >>conftest.$ac_ext <<_ACEOF
47221 /* end confdefs.h. */
47223 /* Override any GCC internal prototype to avoid an error.
47224 Use char because int might match the return type of a GCC
47225 builtin and then its argument prototype would still apply. */
47226 #ifdef __cplusplus
47227 extern "C"
47228 #endif
47229 char ${pbxfuncname} ();
47231 main ()
47233 return ${pbxfuncname} ();
47235 return 0;
47237 _ACEOF
47238 rm -f conftest.$ac_objext conftest$ac_exeext
47239 if { (ac_try="$ac_link"
47240 case "(($ac_try" in
47241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47242 *) ac_try_echo=$ac_try;;
47243 esac
47244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47245 (eval "$ac_link") 2>conftest.er1
47246 ac_status=$?
47247 grep -v '^ *+' conftest.er1 >conftest.err
47248 rm -f conftest.er1
47249 cat conftest.err >&5
47250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47251 (exit $ac_status); } && {
47252 test -z "$ac_c_werror_flag" ||
47253 test ! -s conftest.err
47254 } && test -s conftest$ac_exeext &&
47255 $as_test_x conftest$ac_exeext; then
47256 eval "$as_ac_Lib=yes"
47257 else
47258 echo "$as_me: failed program was:" >&5
47259 sed 's/^/| /' conftest.$ac_ext >&5
47261 eval "$as_ac_Lib=no"
47264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47265 conftest$ac_exeext conftest.$ac_ext
47266 LIBS=$ac_check_lib_save_LIBS
47268 ac_res=`eval echo '${'$as_ac_Lib'}'`
47269 { echo "$as_me:$LINENO: result: $ac_res" >&5
47270 echo "${ECHO_T}$ac_res" >&6; }
47271 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47272 AST_X11_FOUND=yes
47273 else
47274 AST_X11_FOUND=no
47279 # now check for the header.
47280 if test "${AST_X11_FOUND}" = "yes"; then
47281 X11_LIB="${pbxlibdir} -lX11 "
47282 # if --with-X11=DIR has been specified, use it.
47283 if test "x${X11_DIR}" != "x"; then
47284 X11_INCLUDE="-I${X11_DIR}/include"
47286 X11_INCLUDE="${X11_INCLUDE} "
47287 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
47288 X11_HEADER_FOUND="1"
47289 else # check for the header
47290 saved_cppflags="${CPPFLAGS}"
47291 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE} "
47292 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
47293 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
47294 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
47295 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
47296 echo $ECHO_N "(cached) $ECHO_C" >&6
47298 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
47299 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
47300 else
47301 # Is the header compilable?
47302 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
47303 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
47304 cat >conftest.$ac_ext <<_ACEOF
47305 /* confdefs.h. */
47306 _ACEOF
47307 cat confdefs.h >>conftest.$ac_ext
47308 cat >>conftest.$ac_ext <<_ACEOF
47309 /* end confdefs.h. */
47310 $ac_includes_default
47311 #include <X11/Xlib.h>
47312 _ACEOF
47313 rm -f conftest.$ac_objext
47314 if { (ac_try="$ac_compile"
47315 case "(($ac_try" in
47316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47317 *) ac_try_echo=$ac_try;;
47318 esac
47319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47320 (eval "$ac_compile") 2>conftest.er1
47321 ac_status=$?
47322 grep -v '^ *+' conftest.er1 >conftest.err
47323 rm -f conftest.er1
47324 cat conftest.err >&5
47325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47326 (exit $ac_status); } && {
47327 test -z "$ac_c_werror_flag" ||
47328 test ! -s conftest.err
47329 } && test -s conftest.$ac_objext; then
47330 ac_header_compiler=yes
47331 else
47332 echo "$as_me: failed program was:" >&5
47333 sed 's/^/| /' conftest.$ac_ext >&5
47335 ac_header_compiler=no
47338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47340 echo "${ECHO_T}$ac_header_compiler" >&6; }
47342 # Is the header present?
47343 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
47344 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
47345 cat >conftest.$ac_ext <<_ACEOF
47346 /* confdefs.h. */
47347 _ACEOF
47348 cat confdefs.h >>conftest.$ac_ext
47349 cat >>conftest.$ac_ext <<_ACEOF
47350 /* end confdefs.h. */
47351 #include <X11/Xlib.h>
47352 _ACEOF
47353 if { (ac_try="$ac_cpp conftest.$ac_ext"
47354 case "(($ac_try" in
47355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47356 *) ac_try_echo=$ac_try;;
47357 esac
47358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47360 ac_status=$?
47361 grep -v '^ *+' conftest.er1 >conftest.err
47362 rm -f conftest.er1
47363 cat conftest.err >&5
47364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47365 (exit $ac_status); } >/dev/null && {
47366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47367 test ! -s conftest.err
47368 }; then
47369 ac_header_preproc=yes
47370 else
47371 echo "$as_me: failed program was:" >&5
47372 sed 's/^/| /' conftest.$ac_ext >&5
47374 ac_header_preproc=no
47377 rm -f conftest.err conftest.$ac_ext
47378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47379 echo "${ECHO_T}$ac_header_preproc" >&6; }
47381 # So? What about this header?
47382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47383 yes:no: )
47384 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
47385 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47386 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
47387 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
47388 ac_header_preproc=yes
47390 no:yes:* )
47391 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
47392 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
47393 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
47394 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
47395 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
47396 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
47397 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
47398 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
47399 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
47400 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
47401 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
47402 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
47403 ( cat <<\_ASBOX
47404 ## ------------------------------- ##
47405 ## Report this to www.asterisk.org ##
47406 ## ------------------------------- ##
47407 _ASBOX
47408 ) | sed "s/^/$as_me: WARNING: /" >&2
47410 esac
47411 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
47412 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
47413 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
47414 echo $ECHO_N "(cached) $ECHO_C" >&6
47415 else
47416 ac_cv_header_X11_Xlib_h=$ac_header_preproc
47418 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
47419 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
47422 if test $ac_cv_header_X11_Xlib_h = yes; then
47423 X11_HEADER_FOUND=1
47424 else
47425 X11_HEADER_FOUND=0
47429 CPPFLAGS="${saved_cppflags}"
47431 if test "x${X11_HEADER_FOUND}" = "x0" ; then
47432 X11_LIB=""
47433 X11_INCLUDE=""
47434 else
47435 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47436 X11_LIB=""
47438 PBX_X11=1
47439 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47441 cat >>confdefs.h <<_ACEOF
47442 #define HAVE_X11 1
47443 _ACEOF
47446 cat >>confdefs.h <<_ACEOF
47447 #define HAVE_X11_VERSION standard_path
47448 _ACEOF
47455 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
47456 pbxlibdir=""
47457 # if --with-X11=DIR has been specified, use it.
47458 if test "x${X11_DIR}" != "x"; then
47459 if test -d ${X11_DIR}/lib; then
47460 pbxlibdir="-L${X11_DIR}/lib"
47461 else
47462 pbxlibdir="-L${X11_DIR}"
47465 pbxfuncname="XOpenDisplay"
47466 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47467 AST_X11_FOUND=yes
47468 else
47469 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
47470 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
47471 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
47472 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47473 echo $ECHO_N "(cached) $ECHO_C" >&6
47474 else
47475 ac_check_lib_save_LIBS=$LIBS
47476 LIBS="-lX11 ${pbxlibdir} $LIBS"
47477 cat >conftest.$ac_ext <<_ACEOF
47478 /* confdefs.h. */
47479 _ACEOF
47480 cat confdefs.h >>conftest.$ac_ext
47481 cat >>conftest.$ac_ext <<_ACEOF
47482 /* end confdefs.h. */
47484 /* Override any GCC internal prototype to avoid an error.
47485 Use char because int might match the return type of a GCC
47486 builtin and then its argument prototype would still apply. */
47487 #ifdef __cplusplus
47488 extern "C"
47489 #endif
47490 char ${pbxfuncname} ();
47492 main ()
47494 return ${pbxfuncname} ();
47496 return 0;
47498 _ACEOF
47499 rm -f conftest.$ac_objext conftest$ac_exeext
47500 if { (ac_try="$ac_link"
47501 case "(($ac_try" in
47502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47503 *) ac_try_echo=$ac_try;;
47504 esac
47505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47506 (eval "$ac_link") 2>conftest.er1
47507 ac_status=$?
47508 grep -v '^ *+' conftest.er1 >conftest.err
47509 rm -f conftest.er1
47510 cat conftest.err >&5
47511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47512 (exit $ac_status); } && {
47513 test -z "$ac_c_werror_flag" ||
47514 test ! -s conftest.err
47515 } && test -s conftest$ac_exeext &&
47516 $as_test_x conftest$ac_exeext; then
47517 eval "$as_ac_Lib=yes"
47518 else
47519 echo "$as_me: failed program was:" >&5
47520 sed 's/^/| /' conftest.$ac_ext >&5
47522 eval "$as_ac_Lib=no"
47525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47526 conftest$ac_exeext conftest.$ac_ext
47527 LIBS=$ac_check_lib_save_LIBS
47529 ac_res=`eval echo '${'$as_ac_Lib'}'`
47530 { echo "$as_me:$LINENO: result: $ac_res" >&5
47531 echo "${ECHO_T}$ac_res" >&6; }
47532 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47533 AST_X11_FOUND=yes
47534 else
47535 AST_X11_FOUND=no
47540 # now check for the header.
47541 if test "${AST_X11_FOUND}" = "yes"; then
47542 X11_LIB="${pbxlibdir} -lX11 "
47543 # if --with-X11=DIR has been specified, use it.
47544 if test "x${X11_DIR}" != "x"; then
47545 X11_INCLUDE="-I${X11_DIR}/include"
47547 X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
47548 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
47549 X11_HEADER_FOUND="1"
47550 else # check for the header
47551 saved_cppflags="${CPPFLAGS}"
47552 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE} -I/usr/X11R6/include"
47553 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
47554 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
47555 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
47556 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
47557 echo $ECHO_N "(cached) $ECHO_C" >&6
47559 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
47560 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
47561 else
47562 # Is the header compilable?
47563 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
47564 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
47565 cat >conftest.$ac_ext <<_ACEOF
47566 /* confdefs.h. */
47567 _ACEOF
47568 cat confdefs.h >>conftest.$ac_ext
47569 cat >>conftest.$ac_ext <<_ACEOF
47570 /* end confdefs.h. */
47571 $ac_includes_default
47572 #include <X11/Xlib.h>
47573 _ACEOF
47574 rm -f conftest.$ac_objext
47575 if { (ac_try="$ac_compile"
47576 case "(($ac_try" in
47577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47578 *) ac_try_echo=$ac_try;;
47579 esac
47580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47581 (eval "$ac_compile") 2>conftest.er1
47582 ac_status=$?
47583 grep -v '^ *+' conftest.er1 >conftest.err
47584 rm -f conftest.er1
47585 cat conftest.err >&5
47586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47587 (exit $ac_status); } && {
47588 test -z "$ac_c_werror_flag" ||
47589 test ! -s conftest.err
47590 } && test -s conftest.$ac_objext; then
47591 ac_header_compiler=yes
47592 else
47593 echo "$as_me: failed program was:" >&5
47594 sed 's/^/| /' conftest.$ac_ext >&5
47596 ac_header_compiler=no
47599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47601 echo "${ECHO_T}$ac_header_compiler" >&6; }
47603 # Is the header present?
47604 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
47605 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
47606 cat >conftest.$ac_ext <<_ACEOF
47607 /* confdefs.h. */
47608 _ACEOF
47609 cat confdefs.h >>conftest.$ac_ext
47610 cat >>conftest.$ac_ext <<_ACEOF
47611 /* end confdefs.h. */
47612 #include <X11/Xlib.h>
47613 _ACEOF
47614 if { (ac_try="$ac_cpp conftest.$ac_ext"
47615 case "(($ac_try" in
47616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47617 *) ac_try_echo=$ac_try;;
47618 esac
47619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47621 ac_status=$?
47622 grep -v '^ *+' conftest.er1 >conftest.err
47623 rm -f conftest.er1
47624 cat conftest.err >&5
47625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47626 (exit $ac_status); } >/dev/null && {
47627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47628 test ! -s conftest.err
47629 }; then
47630 ac_header_preproc=yes
47631 else
47632 echo "$as_me: failed program was:" >&5
47633 sed 's/^/| /' conftest.$ac_ext >&5
47635 ac_header_preproc=no
47638 rm -f conftest.err conftest.$ac_ext
47639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47640 echo "${ECHO_T}$ac_header_preproc" >&6; }
47642 # So? What about this header?
47643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47644 yes:no: )
47645 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
47646 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47647 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
47648 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
47649 ac_header_preproc=yes
47651 no:yes:* )
47652 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
47653 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
47654 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
47655 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
47656 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
47657 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
47658 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
47659 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
47660 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
47661 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
47662 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
47663 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
47664 ( cat <<\_ASBOX
47665 ## ------------------------------- ##
47666 ## Report this to www.asterisk.org ##
47667 ## ------------------------------- ##
47668 _ASBOX
47669 ) | sed "s/^/$as_me: WARNING: /" >&2
47671 esac
47672 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
47673 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
47674 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
47675 echo $ECHO_N "(cached) $ECHO_C" >&6
47676 else
47677 ac_cv_header_X11_Xlib_h=$ac_header_preproc
47679 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
47680 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
47683 if test $ac_cv_header_X11_Xlib_h = yes; then
47684 X11_HEADER_FOUND=1
47685 else
47686 X11_HEADER_FOUND=0
47690 CPPFLAGS="${saved_cppflags}"
47692 if test "x${X11_HEADER_FOUND}" = "x0" ; then
47693 X11_LIB=""
47694 X11_INCLUDE=""
47695 else
47696 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47697 X11_LIB=""
47699 PBX_X11=1
47700 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47702 cat >>confdefs.h <<_ACEOF
47703 #define HAVE_X11 1
47704 _ACEOF
47707 cat >>confdefs.h <<_ACEOF
47708 #define HAVE_X11_VERSION X11R6
47709 _ACEOF
47716 if test "${cross_compiling}" = "no";
47717 then
47718 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
47719 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
47720 if test "${ac_cv_file__sbin_launchd+set}" = set; then
47721 echo $ECHO_N "(cached) $ECHO_C" >&6
47722 else
47723 test "$cross_compiling" = yes &&
47724 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
47725 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
47726 { (exit 1); exit 1; }; }
47727 if test -r "/sbin/launchd"; then
47728 ac_cv_file__sbin_launchd=yes
47729 else
47730 ac_cv_file__sbin_launchd=no
47733 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
47734 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
47735 if test $ac_cv_file__sbin_launchd = yes; then
47737 cat >>confdefs.h <<\_ACEOF
47738 #define HAVE_SBIN_LAUNCHD 1
47739 _ACEOF
47745 PBX_GTK=0
47747 if test "x${PBX_GTK}" != "x1" -a "${USE_GTK}" != "no"; then
47748 PBX_GTK=0
47749 if test -n "$ac_tool_prefix"; then
47750 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
47751 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
47752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47754 if test "${ac_cv_prog_CONFIG_GTK+set}" = set; then
47755 echo $ECHO_N "(cached) $ECHO_C" >&6
47756 else
47757 if test -n "$CONFIG_GTK"; then
47758 ac_cv_prog_CONFIG_GTK="$CONFIG_GTK" # Let the user override the test.
47759 else
47760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47761 for as_dir in $PATH
47763 IFS=$as_save_IFS
47764 test -z "$as_dir" && as_dir=.
47765 for ac_exec_ext in '' $ac_executable_extensions; do
47766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47767 ac_cv_prog_CONFIG_GTK="${ac_tool_prefix}gtk-config"
47768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47769 break 2
47771 done
47772 done
47773 IFS=$as_save_IFS
47777 CONFIG_GTK=$ac_cv_prog_CONFIG_GTK
47778 if test -n "$CONFIG_GTK"; then
47779 { echo "$as_me:$LINENO: result: $CONFIG_GTK" >&5
47780 echo "${ECHO_T}$CONFIG_GTK" >&6; }
47781 else
47782 { echo "$as_me:$LINENO: result: no" >&5
47783 echo "${ECHO_T}no" >&6; }
47788 if test -z "$ac_cv_prog_CONFIG_GTK"; then
47789 ac_ct_CONFIG_GTK=$CONFIG_GTK
47790 # Extract the first word of "gtk-config", so it can be a program name with args.
47791 set dummy gtk-config; ac_word=$2
47792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47794 if test "${ac_cv_prog_ac_ct_CONFIG_GTK+set}" = set; then
47795 echo $ECHO_N "(cached) $ECHO_C" >&6
47796 else
47797 if test -n "$ac_ct_CONFIG_GTK"; then
47798 ac_cv_prog_ac_ct_CONFIG_GTK="$ac_ct_CONFIG_GTK" # Let the user override the test.
47799 else
47800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47801 for as_dir in $PATH
47803 IFS=$as_save_IFS
47804 test -z "$as_dir" && as_dir=.
47805 for ac_exec_ext in '' $ac_executable_extensions; do
47806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47807 ac_cv_prog_ac_ct_CONFIG_GTK="gtk-config"
47808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47809 break 2
47811 done
47812 done
47813 IFS=$as_save_IFS
47817 ac_ct_CONFIG_GTK=$ac_cv_prog_ac_ct_CONFIG_GTK
47818 if test -n "$ac_ct_CONFIG_GTK"; then
47819 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GTK" >&5
47820 echo "${ECHO_T}$ac_ct_CONFIG_GTK" >&6; }
47821 else
47822 { echo "$as_me:$LINENO: result: no" >&5
47823 echo "${ECHO_T}no" >&6; }
47826 if test "x$ac_ct_CONFIG_GTK" = x; then
47827 CONFIG_GTK="No"
47828 else
47829 case $cross_compiling:$ac_tool_warned in
47830 yes:)
47831 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47832 whose name does not start with the host triplet. If you think this
47833 configuration is useful to you, please write to autoconf@gnu.org." >&5
47834 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47835 whose name does not start with the host triplet. If you think this
47836 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47837 ac_tool_warned=yes ;;
47838 esac
47839 CONFIG_GTK=$ac_ct_CONFIG_GTK
47841 else
47842 CONFIG_GTK="$ac_cv_prog_CONFIG_GTK"
47845 if test ! "x${CONFIG_GTK}" = xNo; then
47846 if test x"--cflags gthread" = x ; then A=--cflags ; else A="--cflags gthread" ; fi
47847 GTK_INCLUDE=$(${CONFIG_GTK} $A)
47848 if test x"--libs gthread" = x ; then A=--libs ; else A="--libs gthread" ; fi
47849 GTK_LIB=$(${CONFIG_GTK} $A)
47850 if test x"" != x ; then
47851 saved_cppflags="${CPPFLAGS}"
47852 if test "x${GTK_DIR}" != "x"; then
47853 GTK_INCLUDE="-I${GTK_DIR}/include"
47855 CPPFLAGS="${CPPFLAGS} ${GTK_INCLUDE}"
47857 saved_ldflags="${LDFLAGS}"
47858 LDFLAGS="${GTK_LIB}"
47860 cat >conftest.$ac_ext <<_ACEOF
47861 /* confdefs.h. */
47862 _ACEOF
47863 cat confdefs.h >>conftest.$ac_ext
47864 cat >>conftest.$ac_ext <<_ACEOF
47865 /* end confdefs.h. */
47868 main ()
47873 return 0;
47875 _ACEOF
47876 rm -f conftest.$ac_objext conftest$ac_exeext
47877 if { (ac_try="$ac_link"
47878 case "(($ac_try" in
47879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47880 *) ac_try_echo=$ac_try;;
47881 esac
47882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47883 (eval "$ac_link") 2>conftest.er1
47884 ac_status=$?
47885 grep -v '^ *+' conftest.er1 >conftest.err
47886 rm -f conftest.er1
47887 cat conftest.err >&5
47888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47889 (exit $ac_status); } && {
47890 test -z "$ac_c_werror_flag" ||
47891 test ! -s conftest.err
47892 } && test -s conftest$ac_exeext &&
47893 $as_test_x conftest$ac_exeext; then
47894 PBX_GTK=1
47896 cat >>confdefs.h <<\_ACEOF
47897 #define HAVE_GTK 1
47898 _ACEOF
47901 else
47902 echo "$as_me: failed program was:" >&5
47903 sed 's/^/| /' conftest.$ac_ext >&5
47909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47910 conftest$ac_exeext conftest.$ac_ext
47911 CPPFLAGS="${saved_cppflags}"
47912 LDFLAGS="${saved_ldflags}"
47913 else
47914 PBX_GTK=1
47916 cat >>confdefs.h <<\_ACEOF
47917 #define HAVE_GTK 1
47918 _ACEOF
47925 PBX_GTK2=0
47926 if test -n "$ac_tool_prefix"; then
47927 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
47928 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
47929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47931 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
47932 echo $ECHO_N "(cached) $ECHO_C" >&6
47933 else
47934 if test -n "$PKGCONFIG"; then
47935 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
47936 else
47937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47938 for as_dir in $PATH
47940 IFS=$as_save_IFS
47941 test -z "$as_dir" && as_dir=.
47942 for ac_exec_ext in '' $ac_executable_extensions; do
47943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47944 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
47945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47946 break 2
47948 done
47949 done
47950 IFS=$as_save_IFS
47954 PKGCONFIG=$ac_cv_prog_PKGCONFIG
47955 if test -n "$PKGCONFIG"; then
47956 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
47957 echo "${ECHO_T}$PKGCONFIG" >&6; }
47958 else
47959 { echo "$as_me:$LINENO: result: no" >&5
47960 echo "${ECHO_T}no" >&6; }
47965 if test -z "$ac_cv_prog_PKGCONFIG"; then
47966 ac_ct_PKGCONFIG=$PKGCONFIG
47967 # Extract the first word of "pkg-config", so it can be a program name with args.
47968 set dummy pkg-config; ac_word=$2
47969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47971 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
47972 echo $ECHO_N "(cached) $ECHO_C" >&6
47973 else
47974 if test -n "$ac_ct_PKGCONFIG"; then
47975 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
47976 else
47977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47978 for as_dir in $PATH
47980 IFS=$as_save_IFS
47981 test -z "$as_dir" && as_dir=.
47982 for ac_exec_ext in '' $ac_executable_extensions; do
47983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47984 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
47985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47986 break 2
47988 done
47989 done
47990 IFS=$as_save_IFS
47994 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
47995 if test -n "$ac_ct_PKGCONFIG"; then
47996 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
47997 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
47998 else
47999 { echo "$as_me:$LINENO: result: no" >&5
48000 echo "${ECHO_T}no" >&6; }
48003 if test "x$ac_ct_PKGCONFIG" = x; then
48004 PKGCONFIG="No"
48005 else
48006 case $cross_compiling:$ac_tool_warned in
48007 yes:)
48008 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48009 whose name does not start with the host triplet. If you think this
48010 configuration is useful to you, please write to autoconf@gnu.org." >&5
48011 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48012 whose name does not start with the host triplet. If you think this
48013 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48014 ac_tool_warned=yes ;;
48015 esac
48016 PKGCONFIG=$ac_ct_PKGCONFIG
48018 else
48019 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
48022 if test ! "x${PKGCONFIG}" = xNo; then
48023 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
48024 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
48025 PBX_GTK2=1
48027 cat >>confdefs.h <<\_ACEOF
48028 #define HAVE_GTK2 1
48029 _ACEOF
48036 if test "${USE_CURL}" != "no"; then
48037 if test -n "$ac_tool_prefix"; then
48038 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
48039 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
48040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48042 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
48043 echo $ECHO_N "(cached) $ECHO_C" >&6
48044 else
48045 case $CURL_CONFIG in
48046 [\\/]* | ?:[\\/]*)
48047 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
48050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48051 for as_dir in $PATH
48053 IFS=$as_save_IFS
48054 test -z "$as_dir" && as_dir=.
48055 for ac_exec_ext in '' $ac_executable_extensions; do
48056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48057 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48059 break 2
48061 done
48062 done
48063 IFS=$as_save_IFS
48066 esac
48068 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
48069 if test -n "$CURL_CONFIG"; then
48070 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
48071 echo "${ECHO_T}$CURL_CONFIG" >&6; }
48072 else
48073 { echo "$as_me:$LINENO: result: no" >&5
48074 echo "${ECHO_T}no" >&6; }
48079 if test -z "$ac_cv_path_CURL_CONFIG"; then
48080 ac_pt_CURL_CONFIG=$CURL_CONFIG
48081 # Extract the first word of "curl-config", so it can be a program name with args.
48082 set dummy curl-config; ac_word=$2
48083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48085 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
48086 echo $ECHO_N "(cached) $ECHO_C" >&6
48087 else
48088 case $ac_pt_CURL_CONFIG in
48089 [\\/]* | ?:[\\/]*)
48090 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
48093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48094 for as_dir in $PATH
48096 IFS=$as_save_IFS
48097 test -z "$as_dir" && as_dir=.
48098 for ac_exec_ext in '' $ac_executable_extensions; do
48099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48100 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48102 break 2
48104 done
48105 done
48106 IFS=$as_save_IFS
48109 esac
48111 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
48112 if test -n "$ac_pt_CURL_CONFIG"; then
48113 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
48114 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
48115 else
48116 { echo "$as_me:$LINENO: result: no" >&5
48117 echo "${ECHO_T}no" >&6; }
48120 if test "x$ac_pt_CURL_CONFIG" = x; then
48121 CURL_CONFIG="No"
48122 else
48123 case $cross_compiling:$ac_tool_warned in
48124 yes:)
48125 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48126 whose name does not start with the host triplet. If you think this
48127 configuration is useful to you, please write to autoconf@gnu.org." >&5
48128 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48129 whose name does not start with the host triplet. If you think this
48130 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48131 ac_tool_warned=yes ;;
48132 esac
48133 CURL_CONFIG=$ac_pt_CURL_CONFIG
48135 else
48136 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
48139 if test ! x"${CURL_CONFIG}" = xNo; then
48140 # check for version
48141 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
48142 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
48143 CURL_LIB=$(${CURL_CONFIG} --libs)
48145 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
48146 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
48147 saved_cppflags="${CPPFLAGS}"
48148 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
48149 cat >conftest.$ac_ext <<_ACEOF
48150 /* confdefs.h. */
48151 _ACEOF
48152 cat confdefs.h >>conftest.$ac_ext
48153 cat >>conftest.$ac_ext <<_ACEOF
48154 /* end confdefs.h. */
48155 #include <curl/curl.h>
48157 main ()
48159 curl_version();
48161 return 0;
48164 _ACEOF
48165 rm -f conftest.$ac_objext
48166 if { (ac_try="$ac_compile"
48167 case "(($ac_try" in
48168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48169 *) ac_try_echo=$ac_try;;
48170 esac
48171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48172 (eval "$ac_compile") 2>conftest.er1
48173 ac_status=$?
48174 grep -v '^ *+' conftest.er1 >conftest.err
48175 rm -f conftest.er1
48176 cat conftest.err >&5
48177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48178 (exit $ac_status); } && {
48179 test -z "$ac_c_werror_flag" ||
48180 test ! -s conftest.err
48181 } && test -s conftest.$ac_objext; then
48183 { echo "$as_me:$LINENO: result: yes" >&5
48184 echo "${ECHO_T}yes" >&6; }
48185 ac_cv_curl_h="yes"
48187 else
48188 echo "$as_me: failed program was:" >&5
48189 sed 's/^/| /' conftest.$ac_ext >&5
48192 { echo "$as_me:$LINENO: result: no" >&5
48193 echo "${ECHO_T}no" >&6; }
48194 ac_cv_curl_h="no"
48199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48200 CPPFLAGS="${saved_cppflags}"
48201 if test "${ac_cv_curl_h}" = "yes"; then
48202 PBX_CURL=1
48204 cat >>confdefs.h <<\_ACEOF
48205 #define HAVE_CURL 1
48206 _ACEOF
48213 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
48216 { echo "$as_me:$LINENO: checking for mandatory modules: ${ac_mandatory_list}" >&5
48217 echo $ECHO_N "checking for mandatory modules: ${ac_mandatory_list}... $ECHO_C" >&6; }
48218 err=0;
48219 for i in ${ac_mandatory_list}; do
48220 eval "a=\${PBX_$i}"
48221 if test "x${a}" = "x1" ; then continue; fi
48222 if test ${err} = "0" ; then { echo "$as_me:$LINENO: result: fail" >&5
48223 echo "${ECHO_T}fail" >&6; } ; fi
48224 { echo "$as_me:$LINENO: result: " >&5
48225 echo "${ECHO_T}" >&6; }
48226 eval "a=\${${i}_OPTION}"
48227 { echo "$as_me:$LINENO: ***" >&5
48228 echo "$as_me: ***" >&6;}
48229 { echo "$as_me:$LINENO: *** The $i installation appears to be missing or broken." >&5
48230 echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
48231 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
48232 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
48233 { echo "$as_me:$LINENO: *** including --without-${a}." >&5
48234 echo "$as_me: *** including --without-${a}." >&6;}
48235 err=1
48236 done
48237 if test $err = 1 ; then exit 1; fi
48238 { echo "$as_me:$LINENO: result: ok" >&5
48239 echo "${ECHO_T}ok" >&6; }
48242 cat >confcache <<\_ACEOF
48243 # This file is a shell script that caches the results of configure
48244 # tests run on this system so they can be shared between configure
48245 # scripts and configure runs, see configure's option --config-cache.
48246 # It is not useful on other systems. If it contains results you don't
48247 # want to keep, you may remove or edit it.
48249 # config.status only pays attention to the cache file if you give it
48250 # the --recheck option to rerun configure.
48252 # `ac_cv_env_foo' variables (set or unset) will be overridden when
48253 # loading this file, other *unset* `ac_cv_foo' will be assigned the
48254 # following values.
48256 _ACEOF
48258 # The following way of writing the cache mishandles newlines in values,
48259 # but we know of no workaround that is simple, portable, and efficient.
48260 # So, we kill variables containing newlines.
48261 # Ultrix sh set writes to stderr and can't be redirected directly,
48262 # and sets the high bit in the cache file unless we assign to the vars.
48264 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
48265 eval ac_val=\$$ac_var
48266 case $ac_val in #(
48267 *${as_nl}*)
48268 case $ac_var in #(
48269 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
48270 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
48271 esac
48272 case $ac_var in #(
48273 _ | IFS | as_nl) ;; #(
48274 *) $as_unset $ac_var ;;
48275 esac ;;
48276 esac
48277 done
48279 (set) 2>&1 |
48280 case $as_nl`(ac_space=' '; set) 2>&1` in #(
48281 *${as_nl}ac_space=\ *)
48282 # `set' does not quote correctly, so add quotes (double-quote
48283 # substitution turns \\\\ into \\, and sed turns \\ into \).
48284 sed -n \
48285 "s/'/'\\\\''/g;
48286 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
48287 ;; #(
48289 # `set' quotes correctly as required by POSIX, so do not add quotes.
48290 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
48292 esac |
48293 sort
48295 sed '
48296 /^ac_cv_env_/b end
48297 t clear
48298 :clear
48299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48300 t end
48301 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48302 :end' >>confcache
48303 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
48304 if test -w "$cache_file"; then
48305 test "x$cache_file" != "x/dev/null" &&
48306 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
48307 echo "$as_me: updating cache $cache_file" >&6;}
48308 cat confcache >$cache_file
48309 else
48310 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
48311 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
48314 rm -f confcache
48316 test "x$prefix" = xNONE && prefix=$ac_default_prefix
48317 # Let make expand exec_prefix.
48318 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48320 DEFS=-DHAVE_CONFIG_H
48322 ac_libobjs=
48323 ac_ltlibobjs=
48324 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48325 # 1. Remove the extension, and $U if already installed.
48326 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
48327 ac_i=`echo "$ac_i" | sed "$ac_script"`
48328 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
48329 # will be set to the directory where LIBOBJS objects are built.
48330 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
48331 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
48332 done
48333 LIBOBJS=$ac_libobjs
48335 LTLIBOBJS=$ac_ltlibobjs
48339 : ${CONFIG_STATUS=./config.status}
48340 ac_clean_files_save=$ac_clean_files
48341 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48342 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48343 echo "$as_me: creating $CONFIG_STATUS" >&6;}
48344 cat >$CONFIG_STATUS <<_ACEOF
48345 #! $SHELL
48346 # Generated by $as_me.
48347 # Run this file to recreate the current configuration.
48348 # Compiler output produced by configure, useful for debugging
48349 # configure, is in config.log if it exists.
48351 debug=false
48352 ac_cs_recheck=false
48353 ac_cs_silent=false
48354 SHELL=\${CONFIG_SHELL-$SHELL}
48355 _ACEOF
48357 cat >>$CONFIG_STATUS <<\_ACEOF
48358 ## --------------------- ##
48359 ## M4sh Initialization. ##
48360 ## --------------------- ##
48362 # Be more Bourne compatible
48363 DUALCASE=1; export DUALCASE # for MKS sh
48364 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48365 emulate sh
48366 NULLCMD=:
48367 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48368 # is contrary to our usage. Disable this feature.
48369 alias -g '${1+"$@"}'='"$@"'
48370 setopt NO_GLOB_SUBST
48371 else
48372 case `(set -o) 2>/dev/null` in
48373 *posix*) set -o posix ;;
48374 esac
48381 # PATH needs CR
48382 # Avoid depending upon Character Ranges.
48383 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48386 as_cr_digits='0123456789'
48387 as_cr_alnum=$as_cr_Letters$as_cr_digits
48389 # The user is always right.
48390 if test "${PATH_SEPARATOR+set}" != set; then
48391 echo "#! /bin/sh" >conf$$.sh
48392 echo "exit 0" >>conf$$.sh
48393 chmod +x conf$$.sh
48394 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48395 PATH_SEPARATOR=';'
48396 else
48397 PATH_SEPARATOR=:
48399 rm -f conf$$.sh
48402 # Support unset when possible.
48403 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
48404 as_unset=unset
48405 else
48406 as_unset=false
48410 # IFS
48411 # We need space, tab and new line, in precisely that order. Quoting is
48412 # there to prevent editors from complaining about space-tab.
48413 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
48414 # splitting by setting IFS to empty value.)
48415 as_nl='
48417 IFS=" "" $as_nl"
48419 # Find who we are. Look in the path if we contain no directory separator.
48420 case $0 in
48421 *[\\/]* ) as_myself=$0 ;;
48422 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48423 for as_dir in $PATH
48425 IFS=$as_save_IFS
48426 test -z "$as_dir" && as_dir=.
48427 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48428 done
48429 IFS=$as_save_IFS
48432 esac
48433 # We did not find ourselves, most probably we were run as `sh COMMAND'
48434 # in which case we are not to be found in the path.
48435 if test "x$as_myself" = x; then
48436 as_myself=$0
48438 if test ! -f "$as_myself"; then
48439 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
48440 { (exit 1); exit 1; }
48443 # Work around bugs in pre-3.0 UWIN ksh.
48444 for as_var in ENV MAIL MAILPATH
48445 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
48446 done
48447 PS1='$ '
48448 PS2='> '
48449 PS4='+ '
48451 # NLS nuisances.
48452 for as_var in \
48453 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48454 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48455 LC_TELEPHONE LC_TIME
48457 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48458 eval $as_var=C; export $as_var
48459 else
48460 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
48462 done
48464 # Required to use basename.
48465 if expr a : '\(a\)' >/dev/null 2>&1 &&
48466 test "X`expr 00001 : '.*\(...\)'`" = X001; then
48467 as_expr=expr
48468 else
48469 as_expr=false
48472 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
48473 as_basename=basename
48474 else
48475 as_basename=false
48479 # Name of the executable.
48480 as_me=`$as_basename -- "$0" ||
48481 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48482 X"$0" : 'X\(//\)$' \| \
48483 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
48484 echo X/"$0" |
48485 sed '/^.*\/\([^/][^/]*\)\/*$/{
48486 s//\1/
48489 /^X\/\(\/\/\)$/{
48490 s//\1/
48493 /^X\/\(\/\).*/{
48494 s//\1/
48497 s/.*/./; q'`
48499 # CDPATH.
48500 $as_unset CDPATH
48504 as_lineno_1=$LINENO
48505 as_lineno_2=$LINENO
48506 test "x$as_lineno_1" != "x$as_lineno_2" &&
48507 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
48509 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48510 # uniformly replaced by the line number. The first 'sed' inserts a
48511 # line-number line after each line using $LINENO; the second 'sed'
48512 # does the real work. The second script uses 'N' to pair each
48513 # line-number line with the line containing $LINENO, and appends
48514 # trailing '-' during substitution so that $LINENO is not a special
48515 # case at line end.
48516 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48517 # scripts with optimization help from Paolo Bonzini. Blame Lee
48518 # E. McMahon (1931-1989) for sed's syntax. :-)
48519 sed -n '
48521 /[$]LINENO/=
48522 ' <$as_myself |
48523 sed '
48524 s/[$]LINENO.*/&-/
48525 t lineno
48527 :lineno
48529 :loop
48530 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
48531 t loop
48532 s/-\n.*//
48533 ' >$as_me.lineno &&
48534 chmod +x "$as_me.lineno" ||
48535 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
48536 { (exit 1); exit 1; }; }
48538 # Don't try to exec as it changes $[0], causing all sort of problems
48539 # (the dirname of $[0] is not the place where we might find the
48540 # original and so on. Autoconf is especially sensitive to this).
48541 . "./$as_me.lineno"
48542 # Exit status is that of the last command.
48543 exit
48547 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
48548 as_dirname=dirname
48549 else
48550 as_dirname=false
48553 ECHO_C= ECHO_N= ECHO_T=
48554 case `echo -n x` in
48555 -n*)
48556 case `echo 'x\c'` in
48557 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
48558 *) ECHO_C='\c';;
48559 esac;;
48561 ECHO_N='-n';;
48562 esac
48564 if expr a : '\(a\)' >/dev/null 2>&1 &&
48565 test "X`expr 00001 : '.*\(...\)'`" = X001; then
48566 as_expr=expr
48567 else
48568 as_expr=false
48571 rm -f conf$$ conf$$.exe conf$$.file
48572 if test -d conf$$.dir; then
48573 rm -f conf$$.dir/conf$$.file
48574 else
48575 rm -f conf$$.dir
48576 mkdir conf$$.dir
48578 echo >conf$$.file
48579 if ln -s conf$$.file conf$$ 2>/dev/null; then
48580 as_ln_s='ln -s'
48581 # ... but there are two gotchas:
48582 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
48583 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
48584 # In both cases, we have to default to `cp -p'.
48585 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
48586 as_ln_s='cp -p'
48587 elif ln conf$$.file conf$$ 2>/dev/null; then
48588 as_ln_s=ln
48589 else
48590 as_ln_s='cp -p'
48592 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
48593 rmdir conf$$.dir 2>/dev/null
48595 if mkdir -p . 2>/dev/null; then
48596 as_mkdir_p=:
48597 else
48598 test -d ./-p && rmdir ./-p
48599 as_mkdir_p=false
48602 if test -x / >/dev/null 2>&1; then
48603 as_test_x='test -x'
48604 else
48605 if ls -dL / >/dev/null 2>&1; then
48606 as_ls_L_option=L
48607 else
48608 as_ls_L_option=
48610 as_test_x='
48611 eval sh -c '\''
48612 if test -d "$1"; then
48613 test -d "$1/.";
48614 else
48615 case $1 in
48616 -*)set "./$1";;
48617 esac;
48618 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
48619 ???[sx]*):;;*)false;;esac;fi
48620 '\'' sh
48623 as_executable_p=$as_test_x
48625 # Sed expression to map a string onto a valid CPP name.
48626 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
48628 # Sed expression to map a string onto a valid variable name.
48629 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
48632 exec 6>&1
48634 # Save the log message, to keep $[0] and so on meaningful, and to
48635 # report actual input values of CONFIG_FILES etc. instead of their
48636 # values after options handling.
48637 ac_log="
48638 This file was extended by asterisk $as_me 1.6, which was
48639 generated by GNU Autoconf 2.61. Invocation command line was
48641 CONFIG_FILES = $CONFIG_FILES
48642 CONFIG_HEADERS = $CONFIG_HEADERS
48643 CONFIG_LINKS = $CONFIG_LINKS
48644 CONFIG_COMMANDS = $CONFIG_COMMANDS
48645 $ $0 $@
48647 on `(hostname || uname -n) 2>/dev/null | sed 1q`
48650 _ACEOF
48652 cat >>$CONFIG_STATUS <<_ACEOF
48653 # Files that config.status was made for.
48654 config_files="$ac_config_files"
48655 config_headers="$ac_config_headers"
48657 _ACEOF
48659 cat >>$CONFIG_STATUS <<\_ACEOF
48660 ac_cs_usage="\
48661 \`$as_me' instantiates files from templates according to the
48662 current configuration.
48664 Usage: $0 [OPTIONS] [FILE]...
48666 -h, --help print this help, then exit
48667 -V, --version print version number and configuration settings, then exit
48668 -q, --quiet do not print progress messages
48669 -d, --debug don't remove temporary files
48670 --recheck update $as_me by reconfiguring in the same conditions
48671 --file=FILE[:TEMPLATE]
48672 instantiate the configuration file FILE
48673 --header=FILE[:TEMPLATE]
48674 instantiate the configuration header FILE
48676 Configuration files:
48677 $config_files
48679 Configuration headers:
48680 $config_headers
48682 Report bugs to <bug-autoconf@gnu.org>."
48684 _ACEOF
48685 cat >>$CONFIG_STATUS <<_ACEOF
48686 ac_cs_version="\\
48687 asterisk config.status 1.6
48688 configured by $0, generated by GNU Autoconf 2.61,
48689 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
48691 Copyright (C) 2006 Free Software Foundation, Inc.
48692 This config.status script is free software; the Free Software Foundation
48693 gives unlimited permission to copy, distribute and modify it."
48695 ac_pwd='$ac_pwd'
48696 srcdir='$srcdir'
48697 INSTALL='$INSTALL'
48698 _ACEOF
48700 cat >>$CONFIG_STATUS <<\_ACEOF
48701 # If no file are specified by the user, then we need to provide default
48702 # value. By we need to know if files were specified by the user.
48703 ac_need_defaults=:
48704 while test $# != 0
48706 case $1 in
48707 --*=*)
48708 ac_option=`expr "X$1" : 'X\([^=]*\)='`
48709 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
48710 ac_shift=:
48713 ac_option=$1
48714 ac_optarg=$2
48715 ac_shift=shift
48717 esac
48719 case $ac_option in
48720 # Handling of the options.
48721 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48722 ac_cs_recheck=: ;;
48723 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
48724 echo "$ac_cs_version"; exit ;;
48725 --debug | --debu | --deb | --de | --d | -d )
48726 debug=: ;;
48727 --file | --fil | --fi | --f )
48728 $ac_shift
48729 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
48730 ac_need_defaults=false;;
48731 --header | --heade | --head | --hea )
48732 $ac_shift
48733 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
48734 ac_need_defaults=false;;
48735 --he | --h)
48736 # Conflict between --help and --header
48737 { echo "$as_me: error: ambiguous option: $1
48738 Try \`$0 --help' for more information." >&2
48739 { (exit 1); exit 1; }; };;
48740 --help | --hel | -h )
48741 echo "$ac_cs_usage"; exit ;;
48742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48743 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48744 ac_cs_silent=: ;;
48746 # This is an error.
48747 -*) { echo "$as_me: error: unrecognized option: $1
48748 Try \`$0 --help' for more information." >&2
48749 { (exit 1); exit 1; }; } ;;
48751 *) ac_config_targets="$ac_config_targets $1"
48752 ac_need_defaults=false ;;
48754 esac
48755 shift
48756 done
48758 ac_configure_extra_args=
48760 if $ac_cs_silent; then
48761 exec 6>/dev/null
48762 ac_configure_extra_args="$ac_configure_extra_args --silent"
48765 _ACEOF
48766 cat >>$CONFIG_STATUS <<_ACEOF
48767 if \$ac_cs_recheck; then
48768 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
48769 CONFIG_SHELL=$SHELL
48770 export CONFIG_SHELL
48771 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48774 _ACEOF
48775 cat >>$CONFIG_STATUS <<\_ACEOF
48776 exec 5>>config.log
48778 echo
48779 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48780 ## Running $as_me. ##
48781 _ASBOX
48782 echo "$ac_log"
48783 } >&5
48785 _ACEOF
48786 cat >>$CONFIG_STATUS <<_ACEOF
48787 _ACEOF
48789 cat >>$CONFIG_STATUS <<\_ACEOF
48791 # Handling of arguments.
48792 for ac_config_target in $ac_config_targets
48794 case $ac_config_target in
48795 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
48796 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
48797 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
48798 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
48800 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48801 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48802 { (exit 1); exit 1; }; };;
48803 esac
48804 done
48807 # If the user did not use the arguments to specify the items to instantiate,
48808 # then the envvar interface is used. Set only those that are not.
48809 # We use the long form for the default assignment because of an extremely
48810 # bizarre bug on SunOS 4.1.3.
48811 if $ac_need_defaults; then
48812 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48813 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48816 # Have a temporary directory for convenience. Make it in the build tree
48817 # simply because there is no reason against having it here, and in addition,
48818 # creating and moving files from /tmp can sometimes cause problems.
48819 # Hook for its removal unless debugging.
48820 # Note that there is a small window in which the directory will not be cleaned:
48821 # after its creation but before its name has been assigned to `$tmp'.
48822 $debug ||
48824 tmp=
48825 trap 'exit_status=$?
48826 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
48828 trap '{ (exit 1); exit 1; }' 1 2 13 15
48830 # Create a (secure) tmp directory for tmp files.
48833 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
48834 test -n "$tmp" && test -d "$tmp"
48835 } ||
48837 tmp=./conf$$-$RANDOM
48838 (umask 077 && mkdir "$tmp")
48839 } ||
48841 echo "$me: cannot create a temporary directory in ." >&2
48842 { (exit 1); exit 1; }
48846 # Set up the sed scripts for CONFIG_FILES section.
48849 # No need to generate the scripts if there are no CONFIG_FILES.
48850 # This happens for instance when ./config.status config.h
48851 if test -n "$CONFIG_FILES"; then
48853 _ACEOF
48857 ac_delim='%!_!# '
48858 for ac_last_try in false false false false false :; do
48859 cat >conf$$subs.sed <<_ACEOF
48860 SHELL!$SHELL$ac_delim
48861 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
48862 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
48863 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
48864 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
48865 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
48866 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
48867 exec_prefix!$exec_prefix$ac_delim
48868 prefix!$prefix$ac_delim
48869 program_transform_name!$program_transform_name$ac_delim
48870 bindir!$bindir$ac_delim
48871 sbindir!$sbindir$ac_delim
48872 libexecdir!$libexecdir$ac_delim
48873 datarootdir!$datarootdir$ac_delim
48874 datadir!$datadir$ac_delim
48875 sysconfdir!$sysconfdir$ac_delim
48876 sharedstatedir!$sharedstatedir$ac_delim
48877 localstatedir!$localstatedir$ac_delim
48878 includedir!$includedir$ac_delim
48879 oldincludedir!$oldincludedir$ac_delim
48880 docdir!$docdir$ac_delim
48881 infodir!$infodir$ac_delim
48882 htmldir!$htmldir$ac_delim
48883 dvidir!$dvidir$ac_delim
48884 pdfdir!$pdfdir$ac_delim
48885 psdir!$psdir$ac_delim
48886 libdir!$libdir$ac_delim
48887 localedir!$localedir$ac_delim
48888 mandir!$mandir$ac_delim
48889 DEFS!$DEFS$ac_delim
48890 ECHO_C!$ECHO_C$ac_delim
48891 ECHO_N!$ECHO_N$ac_delim
48892 ECHO_T!$ECHO_T$ac_delim
48893 LIBS!$LIBS$ac_delim
48894 build_alias!$build_alias$ac_delim
48895 host_alias!$host_alias$ac_delim
48896 target_alias!$target_alias$ac_delim
48897 build!$build$ac_delim
48898 build_cpu!$build_cpu$ac_delim
48899 build_vendor!$build_vendor$ac_delim
48900 build_os!$build_os$ac_delim
48901 host!$host$ac_delim
48902 host_cpu!$host_cpu$ac_delim
48903 host_vendor!$host_vendor$ac_delim
48904 host_os!$host_os$ac_delim
48905 CC!$CC$ac_delim
48906 CFLAGS!$CFLAGS$ac_delim
48907 LDFLAGS!$LDFLAGS$ac_delim
48908 CPPFLAGS!$CPPFLAGS$ac_delim
48909 ac_ct_CC!$ac_ct_CC$ac_delim
48910 EXEEXT!$EXEEXT$ac_delim
48911 OBJEXT!$OBJEXT$ac_delim
48912 CPP!$CPP$ac_delim
48913 GREP!$GREP$ac_delim
48914 EGREP!$EGREP$ac_delim
48915 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
48916 BUILD_CPU!$BUILD_CPU$ac_delim
48917 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
48918 BUILD_OS!$BUILD_OS$ac_delim
48919 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
48920 HOST_CPU!$HOST_CPU$ac_delim
48921 HOST_VENDOR!$HOST_VENDOR$ac_delim
48922 HOST_OS!$HOST_OS$ac_delim
48923 OSARCH!$OSARCH$ac_delim
48924 WINARCH!$WINARCH$ac_delim
48925 UNAME!$UNAME$ac_delim
48926 PBX_OSREV!$PBX_OSREV$ac_delim
48927 CXX!$CXX$ac_delim
48928 LD!$LD$ac_delim
48929 RANLIB!$RANLIB$ac_delim
48930 CXXFLAGS!$CXXFLAGS$ac_delim
48931 ac_ct_CXX!$ac_ct_CXX$ac_delim
48932 CXXCPP!$CXXCPP$ac_delim
48933 SED!$SED$ac_delim
48934 AWK!$AWK$ac_delim
48935 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
48936 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
48937 INSTALL_DATA!$INSTALL_DATA$ac_delim
48938 LN_S!$LN_S$ac_delim
48939 GNU_MAKE!$GNU_MAKE$ac_delim
48940 STRIP!$STRIP$ac_delim
48941 AR!$AR$ac_delim
48942 GNU_LD!$GNU_LD$ac_delim
48943 FIND!$FIND$ac_delim
48944 COMPRESS!$COMPRESS$ac_delim
48945 BASENAME!$BASENAME$ac_delim
48946 ID!$ID$ac_delim
48947 DIRNAME!$DIRNAME$ac_delim
48948 LN!$LN$ac_delim
48949 DOT!$DOT$ac_delim
48950 WGET!$WGET$ac_delim
48951 RUBBER!$RUBBER$ac_delim
48952 KPATHSEA!$KPATHSEA$ac_delim
48953 FETCH!$FETCH$ac_delim
48954 DOWNLOAD!$DOWNLOAD$ac_delim
48955 SOXMIX!$SOXMIX$ac_delim
48956 acx_pthread_config!$acx_pthread_config$ac_delim
48957 _ACEOF
48959 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
48960 break
48961 elif $ac_last_try; then
48962 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48963 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48964 { (exit 1); exit 1; }; }
48965 else
48966 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48968 done
48970 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
48971 if test -n "$ac_eof"; then
48972 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
48973 ac_eof=`expr $ac_eof + 1`
48976 cat >>$CONFIG_STATUS <<_ACEOF
48977 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
48978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
48979 _ACEOF
48980 sed '
48981 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
48982 s/^/s,@/; s/!/@,|#_!!_#|/
48985 s/'"$ac_delim"'$/,g/; t
48986 s/$/\\/; p
48987 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
48988 ' >>$CONFIG_STATUS <conf$$subs.sed
48989 rm -f conf$$subs.sed
48990 cat >>$CONFIG_STATUS <<_ACEOF
48991 CEOF$ac_eof
48992 _ACEOF
48995 ac_delim='%!_!# '
48996 for ac_last_try in false false false false false :; do
48997 cat >conf$$subs.sed <<_ACEOF
48998 PTHREAD_CC!$PTHREAD_CC$ac_delim
48999 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
49000 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
49001 AST_DEVMODE!$AST_DEVMODE$ac_delim
49002 ALSA_LIB!$ALSA_LIB$ac_delim
49003 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
49004 ALSA_DIR!$ALSA_DIR$ac_delim
49005 PBX_ALSA!$PBX_ALSA$ac_delim
49006 BKTR_LIB!$BKTR_LIB$ac_delim
49007 BKTR_INCLUDE!$BKTR_INCLUDE$ac_delim
49008 BKTR_DIR!$BKTR_DIR$ac_delim
49009 PBX_BKTR!$PBX_BKTR$ac_delim
49010 CAP_LIB!$CAP_LIB$ac_delim
49011 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
49012 CAP_DIR!$CAP_DIR$ac_delim
49013 PBX_CAP!$PBX_CAP$ac_delim
49014 CURL_LIB!$CURL_LIB$ac_delim
49015 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
49016 CURL_DIR!$CURL_DIR$ac_delim
49017 PBX_CURL!$PBX_CURL$ac_delim
49018 CURSES_LIB!$CURSES_LIB$ac_delim
49019 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
49020 CURSES_DIR!$CURSES_DIR$ac_delim
49021 PBX_CURSES!$PBX_CURSES$ac_delim
49022 CRYPTO_LIB!$CRYPTO_LIB$ac_delim
49023 CRYPTO_INCLUDE!$CRYPTO_INCLUDE$ac_delim
49024 CRYPTO_DIR!$CRYPTO_DIR$ac_delim
49025 PBX_CRYPTO!$PBX_CRYPTO$ac_delim
49026 DAHDI_LIB!$DAHDI_LIB$ac_delim
49027 DAHDI_INCLUDE!$DAHDI_INCLUDE$ac_delim
49028 DAHDI_DIR!$DAHDI_DIR$ac_delim
49029 PBX_DAHDI!$PBX_DAHDI$ac_delim
49030 FFMPEG_LIB!$FFMPEG_LIB$ac_delim
49031 FFMPEG_INCLUDE!$FFMPEG_INCLUDE$ac_delim
49032 FFMPEG_DIR!$FFMPEG_DIR$ac_delim
49033 PBX_FFMPEG!$PBX_FFMPEG$ac_delim
49034 GSM_LIB!$GSM_LIB$ac_delim
49035 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
49036 GSM_DIR!$GSM_DIR$ac_delim
49037 PBX_GSM!$PBX_GSM$ac_delim
49038 GTK_LIB!$GTK_LIB$ac_delim
49039 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
49040 GTK_DIR!$GTK_DIR$ac_delim
49041 PBX_GTK!$PBX_GTK$ac_delim
49042 GTK2_LIB!$GTK2_LIB$ac_delim
49043 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
49044 GTK2_DIR!$GTK2_DIR$ac_delim
49045 PBX_GTK2!$PBX_GTK2$ac_delim
49046 GMIME_LIB!$GMIME_LIB$ac_delim
49047 GMIME_INCLUDE!$GMIME_INCLUDE$ac_delim
49048 GMIME_DIR!$GMIME_DIR$ac_delim
49049 PBX_GMIME!$PBX_GMIME$ac_delim
49050 ICONV_LIB!$ICONV_LIB$ac_delim
49051 ICONV_INCLUDE!$ICONV_INCLUDE$ac_delim
49052 ICONV_DIR!$ICONV_DIR$ac_delim
49053 PBX_ICONV!$PBX_ICONV$ac_delim
49054 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
49055 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
49056 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
49057 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
49058 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
49059 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
49060 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
49061 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
49062 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
49063 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
49064 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
49065 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
49066 JACK_LIB!$JACK_LIB$ac_delim
49067 JACK_INCLUDE!$JACK_INCLUDE$ac_delim
49068 JACK_DIR!$JACK_DIR$ac_delim
49069 PBX_JACK!$PBX_JACK$ac_delim
49070 LDAP_LIB!$LDAP_LIB$ac_delim
49071 LDAP_INCLUDE!$LDAP_INCLUDE$ac_delim
49072 LDAP_DIR!$LDAP_DIR$ac_delim
49073 PBX_LDAP!$PBX_LDAP$ac_delim
49074 LTDL_LIB!$LTDL_LIB$ac_delim
49075 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
49076 LTDL_DIR!$LTDL_DIR$ac_delim
49077 PBX_LTDL!$PBX_LTDL$ac_delim
49078 LUA_LIB!$LUA_LIB$ac_delim
49079 LUA_INCLUDE!$LUA_INCLUDE$ac_delim
49080 LUA_DIR!$LUA_DIR$ac_delim
49081 PBX_LUA!$PBX_LUA$ac_delim
49082 MISDN_LIB!$MISDN_LIB$ac_delim
49083 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
49084 MISDN_DIR!$MISDN_DIR$ac_delim
49085 PBX_MISDN!$PBX_MISDN$ac_delim
49086 NBS_LIB!$NBS_LIB$ac_delim
49087 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
49088 NBS_DIR!$NBS_DIR$ac_delim
49089 PBX_NBS!$PBX_NBS$ac_delim
49090 NCURSES_LIB!$NCURSES_LIB$ac_delim
49091 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
49092 NCURSES_DIR!$NCURSES_DIR$ac_delim
49093 PBX_NCURSES!$PBX_NCURSES$ac_delim
49094 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
49095 _ACEOF
49097 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
49098 break
49099 elif $ac_last_try; then
49100 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49101 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49102 { (exit 1); exit 1; }; }
49103 else
49104 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49106 done
49108 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
49109 if test -n "$ac_eof"; then
49110 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
49111 ac_eof=`expr $ac_eof + 1`
49114 cat >>$CONFIG_STATUS <<_ACEOF
49115 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
49116 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49117 _ACEOF
49118 sed '
49119 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
49120 s/^/s,@/; s/!/@,|#_!!_#|/
49123 s/'"$ac_delim"'$/,g/; t
49124 s/$/\\/; p
49125 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
49126 ' >>$CONFIG_STATUS <conf$$subs.sed
49127 rm -f conf$$subs.sed
49128 cat >>$CONFIG_STATUS <<_ACEOF
49129 CEOF$ac_eof
49130 _ACEOF
49133 ac_delim='%!_!# '
49134 for ac_last_try in false false false false false :; do
49135 cat >conf$$subs.sed <<_ACEOF
49136 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
49137 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
49138 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
49139 NEWT_LIB!$NEWT_LIB$ac_delim
49140 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
49141 NEWT_DIR!$NEWT_DIR$ac_delim
49142 PBX_NEWT!$PBX_NEWT$ac_delim
49143 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
49144 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
49145 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
49146 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
49147 OGG_LIB!$OGG_LIB$ac_delim
49148 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
49149 OGG_DIR!$OGG_DIR$ac_delim
49150 PBX_OGG!$PBX_OGG$ac_delim
49151 OSPTK_LIB!$OSPTK_LIB$ac_delim
49152 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
49153 OSPTK_DIR!$OSPTK_DIR$ac_delim
49154 PBX_OSPTK!$PBX_OSPTK$ac_delim
49155 OSS_LIB!$OSS_LIB$ac_delim
49156 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
49157 OSS_DIR!$OSS_DIR$ac_delim
49158 PBX_OSS!$PBX_OSS$ac_delim
49159 PGSQL_LIB!$PGSQL_LIB$ac_delim
49160 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
49161 PGSQL_DIR!$PGSQL_DIR$ac_delim
49162 PBX_PGSQL!$PBX_PGSQL$ac_delim
49163 POPT_LIB!$POPT_LIB$ac_delim
49164 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
49165 POPT_DIR!$POPT_DIR$ac_delim
49166 PBX_POPT!$PBX_POPT$ac_delim
49167 PORTAUDIO_LIB!$PORTAUDIO_LIB$ac_delim
49168 PORTAUDIO_INCLUDE!$PORTAUDIO_INCLUDE$ac_delim
49169 PORTAUDIO_DIR!$PORTAUDIO_DIR$ac_delim
49170 PBX_PORTAUDIO!$PBX_PORTAUDIO$ac_delim
49171 PRI_LIB!$PRI_LIB$ac_delim
49172 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
49173 PRI_DIR!$PRI_DIR$ac_delim
49174 PBX_PRI!$PBX_PRI$ac_delim
49175 SS7_LIB!$SS7_LIB$ac_delim
49176 SS7_INCLUDE!$SS7_INCLUDE$ac_delim
49177 SS7_DIR!$SS7_DIR$ac_delim
49178 PBX_SS7!$PBX_SS7$ac_delim
49179 PWLIB_LIB!$PWLIB_LIB$ac_delim
49180 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
49181 PWLIB_DIR!$PWLIB_DIR$ac_delim
49182 PBX_PWLIB!$PBX_PWLIB$ac_delim
49183 OPENH323_LIB!$OPENH323_LIB$ac_delim
49184 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
49185 OPENH323_DIR!$OPENH323_DIR$ac_delim
49186 PBX_OPENH323!$PBX_OPENH323$ac_delim
49187 RADIUS_LIB!$RADIUS_LIB$ac_delim
49188 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
49189 RADIUS_DIR!$RADIUS_DIR$ac_delim
49190 PBX_RADIUS!$PBX_RADIUS$ac_delim
49191 SDL_LIB!$SDL_LIB$ac_delim
49192 SDL_INCLUDE!$SDL_INCLUDE$ac_delim
49193 SDL_DIR!$SDL_DIR$ac_delim
49194 PBX_SDL!$PBX_SDL$ac_delim
49195 SDL_IMAGE_LIB!$SDL_IMAGE_LIB$ac_delim
49196 SDL_IMAGE_INCLUDE!$SDL_IMAGE_INCLUDE$ac_delim
49197 SDL_IMAGE_DIR!$SDL_IMAGE_DIR$ac_delim
49198 PBX_SDL_IMAGE!$PBX_SDL_IMAGE$ac_delim
49199 SPEEX_LIB!$SPEEX_LIB$ac_delim
49200 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
49201 SPEEX_DIR!$SPEEX_DIR$ac_delim
49202 PBX_SPEEX!$PBX_SPEEX$ac_delim
49203 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
49204 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
49205 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
49206 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
49207 SQLITE_LIB!$SQLITE_LIB$ac_delim
49208 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
49209 SQLITE_DIR!$SQLITE_DIR$ac_delim
49210 PBX_SQLITE!$PBX_SQLITE$ac_delim
49211 SQLITE3_LIB!$SQLITE3_LIB$ac_delim
49212 SQLITE3_INCLUDE!$SQLITE3_INCLUDE$ac_delim
49213 SQLITE3_DIR!$SQLITE3_DIR$ac_delim
49214 PBX_SQLITE3!$PBX_SQLITE3$ac_delim
49215 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
49216 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
49217 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
49218 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
49219 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
49220 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
49221 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
49222 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
49223 FREETDS_LIB!$FREETDS_LIB$ac_delim
49224 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
49225 FREETDS_DIR!$FREETDS_DIR$ac_delim
49226 PBX_FREETDS!$PBX_FREETDS$ac_delim
49227 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
49228 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
49229 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
49230 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
49231 TINFO_LIB!$TINFO_LIB$ac_delim
49232 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
49233 _ACEOF
49235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
49236 break
49237 elif $ac_last_try; then
49238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49239 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49240 { (exit 1); exit 1; }; }
49241 else
49242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49244 done
49246 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
49247 if test -n "$ac_eof"; then
49248 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
49249 ac_eof=`expr $ac_eof + 1`
49252 cat >>$CONFIG_STATUS <<_ACEOF
49253 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
49254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49255 _ACEOF
49256 sed '
49257 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
49258 s/^/s,@/; s/!/@,|#_!!_#|/
49261 s/'"$ac_delim"'$/,g/; t
49262 s/$/\\/; p
49263 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
49264 ' >>$CONFIG_STATUS <conf$$subs.sed
49265 rm -f conf$$subs.sed
49266 cat >>$CONFIG_STATUS <<_ACEOF
49267 CEOF$ac_eof
49268 _ACEOF
49271 ac_delim='%!_!# '
49272 for ac_last_try in false false false false false :; do
49273 cat >conf$$subs.sed <<_ACEOF
49274 TINFO_DIR!$TINFO_DIR$ac_delim
49275 PBX_TINFO!$PBX_TINFO$ac_delim
49276 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
49277 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
49278 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
49279 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
49280 USB_LIB!$USB_LIB$ac_delim
49281 USB_INCLUDE!$USB_INCLUDE$ac_delim
49282 USB_DIR!$USB_DIR$ac_delim
49283 PBX_USB!$PBX_USB$ac_delim
49284 VORBIS_LIB!$VORBIS_LIB$ac_delim
49285 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
49286 VORBIS_DIR!$VORBIS_DIR$ac_delim
49287 PBX_VORBIS!$PBX_VORBIS$ac_delim
49288 VPB_LIB!$VPB_LIB$ac_delim
49289 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
49290 VPB_DIR!$VPB_DIR$ac_delim
49291 PBX_VPB!$PBX_VPB$ac_delim
49292 X11_LIB!$X11_LIB$ac_delim
49293 X11_INCLUDE!$X11_INCLUDE$ac_delim
49294 X11_DIR!$X11_DIR$ac_delim
49295 PBX_X11!$PBX_X11$ac_delim
49296 ZLIB_LIB!$ZLIB_LIB$ac_delim
49297 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
49298 ZLIB_DIR!$ZLIB_DIR$ac_delim
49299 PBX_ZLIB!$PBX_ZLIB$ac_delim
49300 ALLOCA!$ALLOCA$ac_delim
49301 LIBOBJS!$LIBOBJS$ac_delim
49302 POW_LIB!$POW_LIB$ac_delim
49303 HAS_POLL!$HAS_POLL$ac_delim
49304 PBX_PTHREAD_RWLOCK_INITIALIZER!$PBX_PTHREAD_RWLOCK_INITIALIZER$ac_delim
49305 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP!$PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP$ac_delim
49306 GC_CFLAGS!$GC_CFLAGS$ac_delim
49307 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
49308 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
49309 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
49310 PBX_RTLD_NOLOAD!$PBX_RTLD_NOLOAD$ac_delim
49311 PBX_IP_MTU_DISCOVER!$PBX_IP_MTU_DISCOVER$ac_delim
49312 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
49313 PBX_MISDN_FAC_RESULT!$PBX_MISDN_FAC_RESULT$ac_delim
49314 PBX_MISDN_FAC_ERROR!$PBX_MISDN_FAC_ERROR$ac_delim
49315 CONFIG_NETSNMP!$CONFIG_NETSNMP$ac_delim
49316 PG_CONFIG!$PG_CONFIG$ac_delim
49317 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
49318 PWLIBDIR!$PWLIBDIR$ac_delim
49319 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
49320 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
49321 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
49322 OPENH323DIR!$OPENH323DIR$ac_delim
49323 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
49324 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
49325 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
49326 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
49327 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
49328 CONFIG_GMIME!$CONFIG_GMIME$ac_delim
49329 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
49330 PBX_H323!$PBX_H323$ac_delim
49331 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
49332 CONFIG_SDL!$CONFIG_SDL$ac_delim
49333 CONFIG_GTK!$CONFIG_GTK$ac_delim
49334 PKGCONFIG!$PKGCONFIG$ac_delim
49335 CURL_CONFIG!$CURL_CONFIG$ac_delim
49336 LTLIBOBJS!$LTLIBOBJS$ac_delim
49337 _ACEOF
49339 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
49340 break
49341 elif $ac_last_try; then
49342 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49343 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49344 { (exit 1); exit 1; }; }
49345 else
49346 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49348 done
49350 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
49351 if test -n "$ac_eof"; then
49352 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
49353 ac_eof=`expr $ac_eof + 1`
49356 cat >>$CONFIG_STATUS <<_ACEOF
49357 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
49358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
49359 _ACEOF
49360 sed '
49361 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
49362 s/^/s,@/; s/!/@,|#_!!_#|/
49365 s/'"$ac_delim"'$/,g/; t
49366 s/$/\\/; p
49367 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
49368 ' >>$CONFIG_STATUS <conf$$subs.sed
49369 rm -f conf$$subs.sed
49370 cat >>$CONFIG_STATUS <<_ACEOF
49371 :end
49372 s/|#_!!_#|//g
49373 CEOF$ac_eof
49374 _ACEOF
49377 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49378 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49379 # trailing colons and then remove the whole line if VPATH becomes empty
49380 # (actually we leave an empty line to preserve line numbers).
49381 if test "x$srcdir" = x.; then
49382 ac_vpsub='/^[ ]*VPATH[ ]*=/{
49383 s/:*\$(srcdir):*/:/
49384 s/:*\${srcdir}:*/:/
49385 s/:*@srcdir@:*/:/
49386 s/^\([^=]*=[ ]*\):*/\1/
49387 s/:*$//
49388 s/^[^=]*=[ ]*$//
49392 cat >>$CONFIG_STATUS <<\_ACEOF
49393 fi # test -n "$CONFIG_FILES"
49396 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
49398 case $ac_tag in
49399 :[FHLC]) ac_mode=$ac_tag; continue;;
49400 esac
49401 case $ac_mode$ac_tag in
49402 :[FHL]*:*);;
49403 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
49404 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
49405 { (exit 1); exit 1; }; };;
49406 :[FH]-) ac_tag=-:-;;
49407 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
49408 esac
49409 ac_save_IFS=$IFS
49410 IFS=:
49411 set x $ac_tag
49412 IFS=$ac_save_IFS
49413 shift
49414 ac_file=$1
49415 shift
49417 case $ac_mode in
49418 :L) ac_source=$1;;
49419 :[FH])
49420 ac_file_inputs=
49421 for ac_f
49423 case $ac_f in
49424 -) ac_f="$tmp/stdin";;
49425 *) # Look for the file first in the build tree, then in the source tree
49426 # (if the path is not absolute). The absolute path cannot be DOS-style,
49427 # because $ac_f cannot contain `:'.
49428 test -f "$ac_f" ||
49429 case $ac_f in
49430 [\\/$]*) false;;
49431 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
49432 esac ||
49433 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
49434 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
49435 { (exit 1); exit 1; }; };;
49436 esac
49437 ac_file_inputs="$ac_file_inputs $ac_f"
49438 done
49440 # Let's still pretend it is `configure' which instantiates (i.e., don't
49441 # use $as_me), people would be surprised to read:
49442 # /* config.h. Generated by config.status. */
49443 configure_input="Generated from "`IFS=:
49444 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
49445 if test x"$ac_file" != x-; then
49446 configure_input="$ac_file. $configure_input"
49447 { echo "$as_me:$LINENO: creating $ac_file" >&5
49448 echo "$as_me: creating $ac_file" >&6;}
49451 case $ac_tag in
49452 *:-:* | *:-) cat >"$tmp/stdin";;
49453 esac
49455 esac
49457 ac_dir=`$as_dirname -- "$ac_file" ||
49458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49459 X"$ac_file" : 'X\(//\)[^/]' \| \
49460 X"$ac_file" : 'X\(//\)$' \| \
49461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
49462 echo X"$ac_file" |
49463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49464 s//\1/
49467 /^X\(\/\/\)[^/].*/{
49468 s//\1/
49471 /^X\(\/\/\)$/{
49472 s//\1/
49475 /^X\(\/\).*/{
49476 s//\1/
49479 s/.*/./; q'`
49480 { as_dir="$ac_dir"
49481 case $as_dir in #(
49482 -*) as_dir=./$as_dir;;
49483 esac
49484 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
49485 as_dirs=
49486 while :; do
49487 case $as_dir in #(
49488 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
49489 *) as_qdir=$as_dir;;
49490 esac
49491 as_dirs="'$as_qdir' $as_dirs"
49492 as_dir=`$as_dirname -- "$as_dir" ||
49493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49494 X"$as_dir" : 'X\(//\)[^/]' \| \
49495 X"$as_dir" : 'X\(//\)$' \| \
49496 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
49497 echo X"$as_dir" |
49498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49499 s//\1/
49502 /^X\(\/\/\)[^/].*/{
49503 s//\1/
49506 /^X\(\/\/\)$/{
49507 s//\1/
49510 /^X\(\/\).*/{
49511 s//\1/
49514 s/.*/./; q'`
49515 test -d "$as_dir" && break
49516 done
49517 test -z "$as_dirs" || eval "mkdir $as_dirs"
49518 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
49519 echo "$as_me: error: cannot create directory $as_dir" >&2;}
49520 { (exit 1); exit 1; }; }; }
49521 ac_builddir=.
49523 case "$ac_dir" in
49524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
49526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49527 # A ".." for each directory in $ac_dir_suffix.
49528 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
49529 case $ac_top_builddir_sub in
49530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
49531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
49532 esac ;;
49533 esac
49534 ac_abs_top_builddir=$ac_pwd
49535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
49536 # for backward compatibility:
49537 ac_top_builddir=$ac_top_build_prefix
49539 case $srcdir in
49540 .) # We are building in place.
49541 ac_srcdir=.
49542 ac_top_srcdir=$ac_top_builddir_sub
49543 ac_abs_top_srcdir=$ac_pwd ;;
49544 [\\/]* | ?:[\\/]* ) # Absolute name.
49545 ac_srcdir=$srcdir$ac_dir_suffix;
49546 ac_top_srcdir=$srcdir
49547 ac_abs_top_srcdir=$srcdir ;;
49548 *) # Relative name.
49549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
49550 ac_top_srcdir=$ac_top_build_prefix$srcdir
49551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
49552 esac
49553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
49556 case $ac_mode in
49559 # CONFIG_FILE
49562 case $INSTALL in
49563 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49564 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
49565 esac
49566 _ACEOF
49568 cat >>$CONFIG_STATUS <<\_ACEOF
49569 # If the template does not know about datarootdir, expand it.
49570 # FIXME: This hack should be removed a few years after 2.60.
49571 ac_datarootdir_hack=; ac_datarootdir_seen=
49573 case `sed -n '/datarootdir/ {
49577 /@datadir@/p
49578 /@docdir@/p
49579 /@infodir@/p
49580 /@localedir@/p
49581 /@mandir@/p
49582 ' $ac_file_inputs` in
49583 *datarootdir*) ac_datarootdir_seen=yes;;
49584 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
49585 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
49586 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
49587 _ACEOF
49588 cat >>$CONFIG_STATUS <<_ACEOF
49589 ac_datarootdir_hack='
49590 s&@datadir@&$datadir&g
49591 s&@docdir@&$docdir&g
49592 s&@infodir@&$infodir&g
49593 s&@localedir@&$localedir&g
49594 s&@mandir@&$mandir&g
49595 s&\\\${datarootdir}&$datarootdir&g' ;;
49596 esac
49597 _ACEOF
49599 # Neutralize VPATH when `$srcdir' = `.'.
49600 # Shell code in configure.ac might set extrasub.
49601 # FIXME: do we really want to maintain this feature?
49602 cat >>$CONFIG_STATUS <<_ACEOF
49603 sed "$ac_vpsub
49604 $extrasub
49605 _ACEOF
49606 cat >>$CONFIG_STATUS <<\_ACEOF
49608 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49609 s&@configure_input@&$configure_input&;t t
49610 s&@top_builddir@&$ac_top_builddir_sub&;t t
49611 s&@srcdir@&$ac_srcdir&;t t
49612 s&@abs_srcdir@&$ac_abs_srcdir&;t t
49613 s&@top_srcdir@&$ac_top_srcdir&;t t
49614 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
49615 s&@builddir@&$ac_builddir&;t t
49616 s&@abs_builddir@&$ac_abs_builddir&;t t
49617 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
49618 s&@INSTALL@&$ac_INSTALL&;t t
49619 $ac_datarootdir_hack
49620 " $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
49622 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
49623 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
49624 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
49625 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49626 which seems to be undefined. Please make sure it is defined." >&5
49627 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49628 which seems to be undefined. Please make sure it is defined." >&2;}
49630 rm -f "$tmp/stdin"
49631 case $ac_file in
49632 -) cat "$tmp/out"; rm -f "$tmp/out";;
49633 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
49634 esac
49638 # CONFIG_HEADER
49640 _ACEOF
49642 # Transform confdefs.h into a sed script `conftest.defines', that
49643 # substitutes the proper values into config.h.in to produce config.h.
49644 rm -f conftest.defines conftest.tail
49645 # First, append a space to every undef/define line, to ease matching.
49646 echo 's/$/ /' >conftest.defines
49647 # Then, protect against being on the right side of a sed subst, or in
49648 # an unquoted here document, in config.status. If some macros were
49649 # called several times there might be several #defines for the same
49650 # symbol, which is useless. But do not sort them, since the last
49651 # AC_DEFINE must be honored.
49652 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
49653 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
49654 # NAME is the cpp macro being defined, VALUE is the value it is being given.
49655 # PARAMS is the parameter list in the macro definition--in most cases, it's
49656 # just an empty string.
49657 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
49658 ac_dB='\\)[ (].*,\\1define\\2'
49659 ac_dC=' '
49660 ac_dD=' ,'
49662 uniq confdefs.h |
49663 sed -n '
49664 t rset
49665 :rset
49666 s/^[ ]*#[ ]*define[ ][ ]*//
49667 t ok
49670 s/[\\&,]/\\&/g
49671 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
49672 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
49673 ' >>conftest.defines
49675 # Remove the space that was appended to ease matching.
49676 # Then replace #undef with comments. This is necessary, for
49677 # example, in the case of _POSIX_SOURCE, which is predefined and required
49678 # on some systems where configure will not decide to define it.
49679 # (The regexp can be short, since the line contains either #define or #undef.)
49680 echo 's/ $//
49681 s,^[ #]*u.*,/* & */,' >>conftest.defines
49683 # Break up conftest.defines:
49684 ac_max_sed_lines=50
49686 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
49687 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
49688 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
49689 # et cetera.
49690 ac_in='$ac_file_inputs'
49691 ac_out='"$tmp/out1"'
49692 ac_nxt='"$tmp/out2"'
49694 while :
49696 # Write a here document:
49697 cat >>$CONFIG_STATUS <<_ACEOF
49698 # First, check the format of the line:
49699 cat >"\$tmp/defines.sed" <<\\CEOF
49700 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
49701 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
49703 :def
49704 _ACEOF
49705 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
49706 echo 'CEOF
49707 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
49708 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
49709 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
49710 grep . conftest.tail >/dev/null || break
49711 rm -f conftest.defines
49712 mv conftest.tail conftest.defines
49713 done
49714 rm -f conftest.defines conftest.tail
49716 echo "ac_result=$ac_in" >>$CONFIG_STATUS
49717 cat >>$CONFIG_STATUS <<\_ACEOF
49718 if test x"$ac_file" != x-; then
49719 echo "/* $configure_input */" >"$tmp/config.h"
49720 cat "$ac_result" >>"$tmp/config.h"
49721 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
49722 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49723 echo "$as_me: $ac_file is unchanged" >&6;}
49724 else
49725 rm -f $ac_file
49726 mv "$tmp/config.h" $ac_file
49728 else
49729 echo "/* $configure_input */"
49730 cat "$ac_result"
49732 rm -f "$tmp/out12"
49736 esac
49738 done # for ac_tag
49741 { (exit 0); exit 0; }
49742 _ACEOF
49743 chmod +x $CONFIG_STATUS
49744 ac_clean_files=$ac_clean_files_save
49747 # configure is writing to config.log, and then calls config.status.
49748 # config.status does its own redirection, appending to config.log.
49749 # Unfortunately, on DOS this fails, as config.log is still kept open
49750 # by configure, so config.status won't be able to write to it; its
49751 # output is simply discarded. So we exec the FD to /dev/null,
49752 # effectively closing config.log, so it can be properly (re)opened and
49753 # appended to by config.status. When coming back to configure, we
49754 # need to make the FD available again.
49755 if test "$no_create" != yes; then
49756 ac_cs_success=:
49757 ac_config_status_args=
49758 test "$silent" = yes &&
49759 ac_config_status_args="$ac_config_status_args --quiet"
49760 exec 5>/dev/null
49761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49762 exec 5>>config.log
49763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49764 # would make configure fail if this is the last instruction.
49765 $ac_cs_success || { (exit 1); exit 1; }
49769 if test "x${silent}" != "xyes" ; then
49770 echo
49771 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
49772 echo " .\$7\$7.. .7\$\$7:. "
49773 echo " .\$\$:. ,\$7.7 "
49774 echo " .\$7. 7\$\$\$\$ .\$\$77 "
49775 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
49776 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
49777 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
49778 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
49779 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
49780 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
49781 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
49782 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
49783 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
49784 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
49785 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
49786 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
49787 echo " \$\$\$\$\$ \$\$\$ "
49788 echo " \$\$\$\$7. \$\$ (TM) "
49789 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
49790 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
49791 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
49792 echo
49795 { echo "$as_me:$LINENO: Package configured for: " >&5
49796 echo "$as_me: Package configured for: " >&6;}
49797 { echo "$as_me:$LINENO: OS type : $host_os" >&5
49798 echo "$as_me: OS type : $host_os" >&6;}
49799 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
49800 echo "$as_me: Host CPU : $host_cpu" >&6;}
49801 { echo "$as_me:$LINENO: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
49802 echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
49803 { echo "$as_me:$LINENO: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
49804 echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
49805 if test "${cross_compiling}" = "yes"; then
49806 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
49807 echo "$as_me: Cross Compilation = YES" >&6;}