Add missing terminator to ast_event_subscribe to fix a crash.
[asterisk-bristuff.git] / configure
blobe2fce4bbed17619d4609efe66cfb542a20b8fb33
1 #! /bin/sh
2 # From configure.ac Revision: 127767 .
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 SPANDSP_LIB
856 SPANDSP_INCLUDE
857 SPANDSP_DIR
858 PBX_SPANDSP
859 SS7_LIB
860 SS7_INCLUDE
861 SS7_DIR
862 PBX_SS7
863 PWLIB_LIB
864 PWLIB_INCLUDE
865 PWLIB_DIR
866 PBX_PWLIB
867 OPENH323_LIB
868 OPENH323_INCLUDE
869 OPENH323_DIR
870 PBX_OPENH323
871 RADIUS_LIB
872 RADIUS_INCLUDE
873 RADIUS_DIR
874 PBX_RADIUS
875 SDL_LIB
876 SDL_INCLUDE
877 SDL_DIR
878 PBX_SDL
879 SDL_IMAGE_LIB
880 SDL_IMAGE_INCLUDE
881 SDL_IMAGE_DIR
882 PBX_SDL_IMAGE
883 OPENAIS_LIB
884 OPENAIS_INCLUDE
885 OPENAIS_DIR
886 PBX_OPENAIS
887 SPEEX_LIB
888 SPEEX_INCLUDE
889 SPEEX_DIR
890 PBX_SPEEX
891 SPEEXDSP_LIB
892 SPEEXDSP_INCLUDE
893 SPEEXDSP_DIR
894 PBX_SPEEXDSP
895 SQLITE_LIB
896 SQLITE_INCLUDE
897 SQLITE_DIR
898 PBX_SQLITE
899 SQLITE3_LIB
900 SQLITE3_INCLUDE
901 SQLITE3_DIR
902 PBX_SQLITE3
903 SUPPSERV_LIB
904 SUPPSERV_INCLUDE
905 SUPPSERV_DIR
906 PBX_SUPPSERV
907 OPENSSL_LIB
908 OPENSSL_INCLUDE
909 OPENSSL_DIR
910 PBX_OPENSSL
911 FREETDS_LIB
912 FREETDS_INCLUDE
913 FREETDS_DIR
914 PBX_FREETDS
915 TERMCAP_LIB
916 TERMCAP_INCLUDE
917 TERMCAP_DIR
918 PBX_TERMCAP
919 TINFO_LIB
920 TINFO_INCLUDE
921 TINFO_DIR
922 PBX_TINFO
923 TONEZONE_LIB
924 TONEZONE_INCLUDE
925 TONEZONE_DIR
926 PBX_TONEZONE
927 USB_LIB
928 USB_INCLUDE
929 USB_DIR
930 PBX_USB
931 VORBIS_LIB
932 VORBIS_INCLUDE
933 VORBIS_DIR
934 PBX_VORBIS
935 VPB_LIB
936 VPB_INCLUDE
937 VPB_DIR
938 PBX_VPB
939 X11_LIB
940 X11_INCLUDE
941 X11_DIR
942 PBX_X11
943 ZLIB_LIB
944 ZLIB_INCLUDE
945 ZLIB_DIR
946 PBX_ZLIB
947 ALLOCA
948 LIBOBJS
949 POW_LIB
950 HAS_POLL
951 PBX_PTHREAD_RWLOCK_INITIALIZER
952 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
953 GC_CFLAGS
954 GC_LDFLAGS
955 AST_DECLARATION_AFTER_STATEMENT
956 AST_NO_STRICT_OVERFLOW
957 PBX_RTLD_NOLOAD
958 PBX_IP_MTU_DISCOVER
959 GSM_INTERNAL
960 PBX_MISDN_FAC_RESULT
961 PBX_MISDN_FAC_ERROR
962 CONFIG_NETSNMP
963 PG_CONFIG
964 PTLIB_CONFIG
965 PWLIBDIR
966 PWLIB_INCDIR
967 PWLIB_LIBDIR
968 PWLIB_PLATFORM
969 OPENH323DIR
970 OPENH323_INCDIR
971 OPENH323_LIBDIR
972 OPENH323_SUFFIX
973 OPENH323_BUILD
974 PBX_AIS
975 AIS_INCLUDE
976 AIS_LIB
977 PBX_SPEEX_PREPROCESS
978 CONFIG_GMIME
979 EDITLINE_LIB
980 PBX_H323
981 PBX_IXJUSER
982 CONFIG_SDL
983 CONFIG_GTK
984 PKGCONFIG
985 CURL_CONFIG
986 LTLIBOBJS'
987 ac_subst_files=''
988 ac_precious_vars='build_alias
989 host_alias
990 target_alias
992 CFLAGS
993 LDFLAGS
994 LIBS
995 CPPFLAGS
998 CXXFLAGS
1000 CXXCPP'
1003 # Initialize some variables set by options.
1004 ac_init_help=
1005 ac_init_version=false
1006 # The variables have the same names as the options, with
1007 # dashes changed to underlines.
1008 cache_file=/dev/null
1009 exec_prefix=NONE
1010 no_create=
1011 no_recursion=
1012 prefix=NONE
1013 program_prefix=NONE
1014 program_suffix=NONE
1015 program_transform_name=s,x,x,
1016 silent=
1017 site=
1018 srcdir=
1019 verbose=
1020 x_includes=NONE
1021 x_libraries=NONE
1023 # Installation directory options.
1024 # These are left unexpanded so users can "make install exec_prefix=/foo"
1025 # and all the variables that are supposed to be based on exec_prefix
1026 # by default will actually change.
1027 # Use braces instead of parens because sh, perl, etc. also accept them.
1028 # (The list follows the same order as the GNU Coding Standards.)
1029 bindir='${exec_prefix}/bin'
1030 sbindir='${exec_prefix}/sbin'
1031 libexecdir='${exec_prefix}/libexec'
1032 datarootdir='${prefix}/share'
1033 datadir='${datarootdir}'
1034 sysconfdir='${prefix}/etc'
1035 sharedstatedir='${prefix}/com'
1036 localstatedir='${prefix}/var'
1037 includedir='${prefix}/include'
1038 oldincludedir='/usr/include'
1039 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1040 infodir='${datarootdir}/info'
1041 htmldir='${docdir}'
1042 dvidir='${docdir}'
1043 pdfdir='${docdir}'
1044 psdir='${docdir}'
1045 libdir='${exec_prefix}/lib'
1046 localedir='${datarootdir}/locale'
1047 mandir='${datarootdir}/man'
1049 ac_prev=
1050 ac_dashdash=
1051 for ac_option
1053 # If the previous option needs an argument, assign it.
1054 if test -n "$ac_prev"; then
1055 eval $ac_prev=\$ac_option
1056 ac_prev=
1057 continue
1060 case $ac_option in
1061 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1062 *) ac_optarg=yes ;;
1063 esac
1065 # Accept the important Cygnus configure options, so we can diagnose typos.
1067 case $ac_dashdash$ac_option in
1069 ac_dashdash=yes ;;
1071 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1072 ac_prev=bindir ;;
1073 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1074 bindir=$ac_optarg ;;
1076 -build | --build | --buil | --bui | --bu)
1077 ac_prev=build_alias ;;
1078 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1079 build_alias=$ac_optarg ;;
1081 -cache-file | --cache-file | --cache-fil | --cache-fi \
1082 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1083 ac_prev=cache_file ;;
1084 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1085 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1086 cache_file=$ac_optarg ;;
1088 --config-cache | -C)
1089 cache_file=config.cache ;;
1091 -datadir | --datadir | --datadi | --datad)
1092 ac_prev=datadir ;;
1093 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1094 datadir=$ac_optarg ;;
1096 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1097 | --dataroo | --dataro | --datar)
1098 ac_prev=datarootdir ;;
1099 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1100 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1101 datarootdir=$ac_optarg ;;
1103 -disable-* | --disable-*)
1104 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1107 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1108 { (exit 1); exit 1; }; }
1109 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1110 eval enable_$ac_feature=no ;;
1112 -docdir | --docdir | --docdi | --doc | --do)
1113 ac_prev=docdir ;;
1114 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1115 docdir=$ac_optarg ;;
1117 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1118 ac_prev=dvidir ;;
1119 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1120 dvidir=$ac_optarg ;;
1122 -enable-* | --enable-*)
1123 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1126 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1127 { (exit 1); exit 1; }; }
1128 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1129 eval enable_$ac_feature=\$ac_optarg ;;
1131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1133 | --exec | --exe | --ex)
1134 ac_prev=exec_prefix ;;
1135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1137 | --exec=* | --exe=* | --ex=*)
1138 exec_prefix=$ac_optarg ;;
1140 -gas | --gas | --ga | --g)
1141 # Obsolete; use --with-gas.
1142 with_gas=yes ;;
1144 -help | --help | --hel | --he | -h)
1145 ac_init_help=long ;;
1146 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1147 ac_init_help=recursive ;;
1148 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1149 ac_init_help=short ;;
1151 -host | --host | --hos | --ho)
1152 ac_prev=host_alias ;;
1153 -host=* | --host=* | --hos=* | --ho=*)
1154 host_alias=$ac_optarg ;;
1156 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1157 ac_prev=htmldir ;;
1158 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1159 | --ht=*)
1160 htmldir=$ac_optarg ;;
1162 -includedir | --includedir | --includedi | --included | --include \
1163 | --includ | --inclu | --incl | --inc)
1164 ac_prev=includedir ;;
1165 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1166 | --includ=* | --inclu=* | --incl=* | --inc=*)
1167 includedir=$ac_optarg ;;
1169 -infodir | --infodir | --infodi | --infod | --info | --inf)
1170 ac_prev=infodir ;;
1171 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1172 infodir=$ac_optarg ;;
1174 -libdir | --libdir | --libdi | --libd)
1175 ac_prev=libdir ;;
1176 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1177 libdir=$ac_optarg ;;
1179 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1180 | --libexe | --libex | --libe)
1181 ac_prev=libexecdir ;;
1182 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1183 | --libexe=* | --libex=* | --libe=*)
1184 libexecdir=$ac_optarg ;;
1186 -localedir | --localedir | --localedi | --localed | --locale)
1187 ac_prev=localedir ;;
1188 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1189 localedir=$ac_optarg ;;
1191 -localstatedir | --localstatedir | --localstatedi | --localstated \
1192 | --localstate | --localstat | --localsta | --localst | --locals)
1193 ac_prev=localstatedir ;;
1194 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1195 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1196 localstatedir=$ac_optarg ;;
1198 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1199 ac_prev=mandir ;;
1200 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1201 mandir=$ac_optarg ;;
1203 -nfp | --nfp | --nf)
1204 # Obsolete; use --without-fp.
1205 with_fp=no ;;
1207 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1208 | --no-cr | --no-c | -n)
1209 no_create=yes ;;
1211 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1212 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1213 no_recursion=yes ;;
1215 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1216 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1217 | --oldin | --oldi | --old | --ol | --o)
1218 ac_prev=oldincludedir ;;
1219 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1220 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1221 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1222 oldincludedir=$ac_optarg ;;
1224 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1225 ac_prev=prefix ;;
1226 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1227 prefix=$ac_optarg ;;
1229 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1230 | --program-pre | --program-pr | --program-p)
1231 ac_prev=program_prefix ;;
1232 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1233 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1234 program_prefix=$ac_optarg ;;
1236 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1237 | --program-suf | --program-su | --program-s)
1238 ac_prev=program_suffix ;;
1239 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1240 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1241 program_suffix=$ac_optarg ;;
1243 -program-transform-name | --program-transform-name \
1244 | --program-transform-nam | --program-transform-na \
1245 | --program-transform-n | --program-transform- \
1246 | --program-transform | --program-transfor \
1247 | --program-transfo | --program-transf \
1248 | --program-trans | --program-tran \
1249 | --progr-tra | --program-tr | --program-t)
1250 ac_prev=program_transform_name ;;
1251 -program-transform-name=* | --program-transform-name=* \
1252 | --program-transform-nam=* | --program-transform-na=* \
1253 | --program-transform-n=* | --program-transform-=* \
1254 | --program-transform=* | --program-transfor=* \
1255 | --program-transfo=* | --program-transf=* \
1256 | --program-trans=* | --program-tran=* \
1257 | --progr-tra=* | --program-tr=* | --program-t=*)
1258 program_transform_name=$ac_optarg ;;
1260 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1261 ac_prev=pdfdir ;;
1262 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1263 pdfdir=$ac_optarg ;;
1265 -psdir | --psdir | --psdi | --psd | --ps)
1266 ac_prev=psdir ;;
1267 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1268 psdir=$ac_optarg ;;
1270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1271 | -silent | --silent | --silen | --sile | --sil)
1272 silent=yes ;;
1274 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1275 ac_prev=sbindir ;;
1276 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1277 | --sbi=* | --sb=*)
1278 sbindir=$ac_optarg ;;
1280 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1281 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1282 | --sharedst | --shareds | --shared | --share | --shar \
1283 | --sha | --sh)
1284 ac_prev=sharedstatedir ;;
1285 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1286 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1287 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1288 | --sha=* | --sh=*)
1289 sharedstatedir=$ac_optarg ;;
1291 -site | --site | --sit)
1292 ac_prev=site ;;
1293 -site=* | --site=* | --sit=*)
1294 site=$ac_optarg ;;
1296 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1297 ac_prev=srcdir ;;
1298 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1299 srcdir=$ac_optarg ;;
1301 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1302 | --syscon | --sysco | --sysc | --sys | --sy)
1303 ac_prev=sysconfdir ;;
1304 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1305 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1306 sysconfdir=$ac_optarg ;;
1308 -target | --target | --targe | --targ | --tar | --ta | --t)
1309 ac_prev=target_alias ;;
1310 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1311 target_alias=$ac_optarg ;;
1313 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1314 verbose=yes ;;
1316 -version | --version | --versio | --versi | --vers | -V)
1317 ac_init_version=: ;;
1319 -with-* | --with-*)
1320 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 { echo "$as_me: error: invalid package name: $ac_package" >&2
1324 { (exit 1); exit 1; }; }
1325 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1326 eval with_$ac_package=\$ac_optarg ;;
1328 -without-* | --without-*)
1329 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 { echo "$as_me: error: invalid package name: $ac_package" >&2
1333 { (exit 1); exit 1; }; }
1334 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1335 eval with_$ac_package=no ;;
1337 --x)
1338 # Obsolete; use --with-x.
1339 with_x=yes ;;
1341 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342 | --x-incl | --x-inc | --x-in | --x-i)
1343 ac_prev=x_includes ;;
1344 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346 x_includes=$ac_optarg ;;
1348 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350 ac_prev=x_libraries ;;
1351 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353 x_libraries=$ac_optarg ;;
1355 -*) { echo "$as_me: error: unrecognized option: $ac_option
1356 Try \`$0 --help' for more information." >&2
1357 { (exit 1); exit 1; }; }
1360 *=*)
1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1364 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1365 { (exit 1); exit 1; }; }
1366 eval $ac_envvar=\$ac_optarg
1367 export $ac_envvar ;;
1370 # FIXME: should be removed in autoconf 3.0.
1371 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1377 esac
1378 done
1380 if test -n "$ac_prev"; then
1381 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382 { echo "$as_me: error: missing argument to $ac_option" >&2
1383 { (exit 1); exit 1; }; }
1386 # Be sure to have absolute directory names.
1387 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1388 datadir sysconfdir sharedstatedir localstatedir includedir \
1389 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1390 libdir localedir mandir
1392 eval ac_val=\$$ac_var
1393 case $ac_val in
1394 [\\/$]* | ?:[\\/]* ) continue;;
1395 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396 esac
1397 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1398 { (exit 1); exit 1; }; }
1399 done
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1404 build=$build_alias
1405 host=$host_alias
1406 target=$target_alias
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x; then
1410 if test "x$build_alias" = x; then
1411 cross_compiling=maybe
1412 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1413 If a cross compiler is detected then cross compile mode will be used." >&2
1414 elif test "x$build_alias" != "x$host_alias"; then
1415 cross_compiling=yes
1419 ac_tool_prefix=
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422 test "$silent" = yes && exec 6>/dev/null
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428 { echo "$as_me: error: Working directory cannot be determined" >&2
1429 { (exit 1); exit 1; }; }
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431 { echo "$as_me: error: pwd does not report name of working directory" >&2
1432 { (exit 1); exit 1; }; }
1435 # Find the source files, if location was not specified.
1436 if test -z "$srcdir"; then
1437 ac_srcdir_defaulted=yes
1438 # Try the directory containing this script, then the parent directory.
1439 ac_confdir=`$as_dirname -- "$0" ||
1440 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1441 X"$0" : 'X\(//\)[^/]' \| \
1442 X"$0" : 'X\(//\)$' \| \
1443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1444 echo X"$0" |
1445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1446 s//\1/
1449 /^X\(\/\/\)[^/].*/{
1450 s//\1/
1453 /^X\(\/\/\)$/{
1454 s//\1/
1457 /^X\(\/\).*/{
1458 s//\1/
1461 s/.*/./; q'`
1462 srcdir=$ac_confdir
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1464 srcdir=..
1466 else
1467 ac_srcdir_defaulted=no
1469 if test ! -r "$srcdir/$ac_unique_file"; then
1470 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1471 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1472 { (exit 1); exit 1; }; }
1474 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1475 ac_abs_confdir=`(
1476 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1477 { (exit 1); exit 1; }; }
1478 pwd)`
1479 # When building in place, set srcdir=.
1480 if test "$ac_abs_confdir" = "$ac_pwd"; then
1481 srcdir=.
1483 # Remove unnecessary trailing slashes from srcdir.
1484 # Double slashes in file names in object file debugging info
1485 # mess up M-x gdb in Emacs.
1486 case $srcdir in
1487 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1488 esac
1489 for ac_var in $ac_precious_vars; do
1490 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1491 eval ac_env_${ac_var}_value=\$${ac_var}
1492 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1493 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1494 done
1497 # Report the --help message.
1499 if test "$ac_init_help" = "long"; then
1500 # Omit some internal or obsolete options to make the list less imposing.
1501 # This message is too long to be a string in the A/UX 3.1 sh.
1502 cat <<_ACEOF
1503 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1505 Usage: $0 [OPTION]... [VAR=VALUE]...
1507 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1508 VAR=VALUE. See below for descriptions of some of the useful variables.
1510 Defaults for the options are specified in brackets.
1512 Configuration:
1513 -h, --help display this help and exit
1514 --help=short display options specific to this package
1515 --help=recursive display the short help of all the included packages
1516 -V, --version display version information and exit
1517 -q, --quiet, --silent do not print \`checking...' messages
1518 --cache-file=FILE cache test results in FILE [disabled]
1519 -C, --config-cache alias for \`--cache-file=config.cache'
1520 -n, --no-create do not create output files
1521 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1523 Installation directories:
1524 --prefix=PREFIX install architecture-independent files in PREFIX
1525 [$ac_default_prefix]
1526 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1527 [PREFIX]
1529 By default, \`make install' will install all the files in
1530 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1531 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1532 for instance \`--prefix=\$HOME'.
1534 For better control, use the options below.
1536 Fine tuning of the installation directories:
1537 --bindir=DIR user executables [EPREFIX/bin]
1538 --sbindir=DIR system admin executables [EPREFIX/sbin]
1539 --libexecdir=DIR program executables [EPREFIX/libexec]
1540 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1541 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1542 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1543 --libdir=DIR object code libraries [EPREFIX/lib]
1544 --includedir=DIR C header files [PREFIX/include]
1545 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1546 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1547 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1548 --infodir=DIR info documentation [DATAROOTDIR/info]
1549 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1550 --mandir=DIR man documentation [DATAROOTDIR/man]
1551 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1552 --htmldir=DIR html documentation [DOCDIR]
1553 --dvidir=DIR dvi documentation [DOCDIR]
1554 --pdfdir=DIR pdf documentation [DOCDIR]
1555 --psdir=DIR ps documentation [DOCDIR]
1556 _ACEOF
1558 cat <<\_ACEOF
1560 System types:
1561 --build=BUILD configure for building on BUILD [guessed]
1562 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1563 _ACEOF
1566 if test -n "$ac_init_help"; then
1567 case $ac_init_help in
1568 short | recursive ) echo "Configuration of asterisk 1.6:";;
1569 esac
1570 cat <<\_ACEOF
1572 Optional Features:
1573 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1574 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1575 --enable-dev-mode Turn on developer mode
1576 --disable-largefile omit support for large files
1578 Optional Packages:
1579 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1580 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1582 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1583 --with-execinfo=PATH use Stack Backtrace support files in PATH
1584 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1585 --with-curl=PATH use cURL files in PATH
1586 --with-curses=PATH use curses files in PATH
1587 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1588 --with-dahdi=PATH use DAHDI files in PATH
1589 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1590 --with-gsm=PATH use External GSM library files in PATH , use
1591 'internal' GSM otherwise
1592 --with-gtk=PATH use gtk libraries files in PATH
1593 --with-gtk2=PATH use gtk2 libraries files in PATH
1594 --with-gmime=PATH use GMime library files in PATH
1595 --with-iconv=PATH use Iconv Library files in PATH
1596 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1597 --with-imap=PATH use UW IMAP Toolkit files in PATH
1598 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1599 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1600 --with-ldap=PATH use OpenLDAP files in PATH
1601 --with-ltdl=PATH use libtool files in PATH
1602 --with-lua=PATH use Lua files in PATH
1603 --with-misdn=PATH use mISDN User Library files in PATH
1604 --with-nbs=PATH use Network Broadcast Sound files in PATH
1605 --with-ncurses=PATH use ncurses files in PATH
1606 --with-netsnmp=PATH use Net-SNMP files in PATH
1607 --with-newt=PATH use newt files in PATH
1608 --with-odbc=PATH use unixODBC files in PATH
1609 --with-ogg=PATH use OGG files in PATH
1610 --with-osptk=PATH use OSP Toolkit files in PATH
1611 --with-oss=PATH use Open Sound System files in PATH
1612 --with-postgres=PATH use PostgreSQL files in PATH
1613 --with-popt=PATH use popt files in PATH
1614 --with-portaudio=PATH use PortAudio files in PATH
1615 --with-pri=PATH use ISDN PRI files in PATH
1616 --with-spandsp=PATH use SPANDSP files in PATH
1617 --with-ss7=PATH use ISDN SS7 files in PATH
1618 --with-pwlib=PATH use PWlib files in PATH
1619 --with-h323=PATH use OpenH323 files in PATH
1620 --with-radius=PATH use Radius Client files in PATH
1621 --with-sdl=PATH use Sdl files in PATH
1622 --with-SDL_image=PATH use Sdl Image library files in PATH
1623 --with-openais=PATH use OpenAIS files in PATH
1624 --with-speex=PATH use Speex files in PATH
1625 --with-speexdsp=PATH use Speexdsp files in PATH
1626 --with-sqlite=PATH use SQLite files in PATH
1627 --with-sqlite3=PATH use SQLite files in PATH
1628 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1629 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1630 PATH
1631 --with-tds=PATH use FreeTDS files in PATH
1632 --with-termcap=PATH use Termcap files in PATH
1633 --with-tinfo=PATH use Term Info files in PATH
1634 --with-tonezone=PATH use tonezone files in PATH
1635 --with-usb=PATH use usb files in PATH
1636 --with-vorbis=PATH use Vorbis files in PATH
1637 --with-vpb=PATH use Voicetronix API files in PATH
1638 --with-x11=PATH use X11 support files in PATH
1639 --with-z=PATH use zlib files in PATH
1641 Some influential environment variables:
1642 CC C compiler command
1643 CFLAGS C compiler flags
1644 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1645 nonstandard directory <lib dir>
1646 LIBS libraries to pass to the linker, e.g. -l<library>
1647 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1648 you have headers in a nonstandard directory <include dir>
1649 CPP C preprocessor
1650 CXX C++ compiler command
1651 CXXFLAGS C++ compiler flags
1652 CXXCPP C++ preprocessor
1654 Use these variables to override the choices made by `configure' or to help
1655 it to find libraries and programs with nonstandard names/locations.
1657 Report bugs to <www.asterisk.org>.
1658 _ACEOF
1659 ac_status=$?
1662 if test "$ac_init_help" = "recursive"; then
1663 # If there are subdirs, report their specific --help.
1664 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1665 test -d "$ac_dir" || continue
1666 ac_builddir=.
1668 case "$ac_dir" in
1669 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1672 # A ".." for each directory in $ac_dir_suffix.
1673 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1674 case $ac_top_builddir_sub in
1675 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1677 esac ;;
1678 esac
1679 ac_abs_top_builddir=$ac_pwd
1680 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1681 # for backward compatibility:
1682 ac_top_builddir=$ac_top_build_prefix
1684 case $srcdir in
1685 .) # We are building in place.
1686 ac_srcdir=.
1687 ac_top_srcdir=$ac_top_builddir_sub
1688 ac_abs_top_srcdir=$ac_pwd ;;
1689 [\\/]* | ?:[\\/]* ) # Absolute name.
1690 ac_srcdir=$srcdir$ac_dir_suffix;
1691 ac_top_srcdir=$srcdir
1692 ac_abs_top_srcdir=$srcdir ;;
1693 *) # Relative name.
1694 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1695 ac_top_srcdir=$ac_top_build_prefix$srcdir
1696 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1697 esac
1698 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1700 cd "$ac_dir" || { ac_status=$?; continue; }
1701 # Check for guested configure.
1702 if test -f "$ac_srcdir/configure.gnu"; then
1703 echo &&
1704 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1705 elif test -f "$ac_srcdir/configure"; then
1706 echo &&
1707 $SHELL "$ac_srcdir/configure" --help=recursive
1708 else
1709 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1710 fi || ac_status=$?
1711 cd "$ac_pwd" || { ac_status=$?; break; }
1712 done
1715 test -n "$ac_init_help" && exit $ac_status
1716 if $ac_init_version; then
1717 cat <<\_ACEOF
1718 asterisk configure 1.6
1719 generated by GNU Autoconf 2.61
1721 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1722 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1723 This configure script is free software; the Free Software Foundation
1724 gives unlimited permission to copy, distribute and modify it.
1726 "Asterisk"
1727 _ACEOF
1728 exit
1730 cat >config.log <<_ACEOF
1731 This file contains any messages produced by compilers while
1732 running configure, to aid debugging if configure makes a mistake.
1734 It was created by asterisk $as_me 1.6, which was
1735 generated by GNU Autoconf 2.61. Invocation command line was
1737 $ $0 $@
1739 _ACEOF
1740 exec 5>>config.log
1742 cat <<_ASUNAME
1743 ## --------- ##
1744 ## Platform. ##
1745 ## --------- ##
1747 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1748 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1749 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1750 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1751 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1753 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1754 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1756 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1757 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1758 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1759 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1760 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1761 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1762 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1764 _ASUNAME
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1769 IFS=$as_save_IFS
1770 test -z "$as_dir" && as_dir=.
1771 echo "PATH: $as_dir"
1772 done
1773 IFS=$as_save_IFS
1775 } >&5
1777 cat >&5 <<_ACEOF
1780 ## ----------- ##
1781 ## Core tests. ##
1782 ## ----------- ##
1784 _ACEOF
1787 # Keep a trace of the command line.
1788 # Strip out --no-create and --no-recursion so they do not pile up.
1789 # Strip out --silent because we don't want to record it for future runs.
1790 # Also quote any args containing shell meta-characters.
1791 # Make two passes to allow for proper duplicate-argument suppression.
1792 ac_configure_args=
1793 ac_configure_args0=
1794 ac_configure_args1=
1795 ac_must_keep_next=false
1796 for ac_pass in 1 2
1798 for ac_arg
1800 case $ac_arg in
1801 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1803 | -silent | --silent | --silen | --sile | --sil)
1804 continue ;;
1805 *\'*)
1806 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1807 esac
1808 case $ac_pass in
1809 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1811 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1812 if test $ac_must_keep_next = true; then
1813 ac_must_keep_next=false # Got value, back to normal.
1814 else
1815 case $ac_arg in
1816 *=* | --config-cache | -C | -disable-* | --disable-* \
1817 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1818 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1819 | -with-* | --with-* | -without-* | --without-* | --x)
1820 case "$ac_configure_args0 " in
1821 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1822 esac
1824 -* ) ac_must_keep_next=true ;;
1825 esac
1827 ac_configure_args="$ac_configure_args '$ac_arg'"
1829 esac
1830 done
1831 done
1832 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1833 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1835 # When interrupted or exit'd, cleanup temporary files, and complete
1836 # config.log. We remove comments because anyway the quotes in there
1837 # would cause problems or look ugly.
1838 # WARNING: Use '\'' to represent an apostrophe within the trap.
1839 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1840 trap 'exit_status=$?
1841 # Save into config.log some information that might help in debugging.
1843 echo
1845 cat <<\_ASBOX
1846 ## ---------------- ##
1847 ## Cache variables. ##
1848 ## ---------------- ##
1849 _ASBOX
1850 echo
1851 # The following way of writing the cache mishandles newlines in values,
1853 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1854 eval ac_val=\$$ac_var
1855 case $ac_val in #(
1856 *${as_nl}*)
1857 case $ac_var in #(
1858 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1859 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1860 esac
1861 case $ac_var in #(
1862 _ | IFS | as_nl) ;; #(
1863 *) $as_unset $ac_var ;;
1864 esac ;;
1865 esac
1866 done
1867 (set) 2>&1 |
1868 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1869 *${as_nl}ac_space=\ *)
1870 sed -n \
1871 "s/'\''/'\''\\\\'\'''\''/g;
1872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1873 ;; #(
1875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1877 esac |
1878 sort
1880 echo
1882 cat <<\_ASBOX
1883 ## ----------------- ##
1884 ## Output variables. ##
1885 ## ----------------- ##
1886 _ASBOX
1887 echo
1888 for ac_var in $ac_subst_vars
1890 eval ac_val=\$$ac_var
1891 case $ac_val in
1892 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893 esac
1894 echo "$ac_var='\''$ac_val'\''"
1895 done | sort
1896 echo
1898 if test -n "$ac_subst_files"; then
1899 cat <<\_ASBOX
1900 ## ------------------- ##
1901 ## File substitutions. ##
1902 ## ------------------- ##
1903 _ASBOX
1904 echo
1905 for ac_var in $ac_subst_files
1907 eval ac_val=\$$ac_var
1908 case $ac_val in
1909 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1910 esac
1911 echo "$ac_var='\''$ac_val'\''"
1912 done | sort
1913 echo
1916 if test -s confdefs.h; then
1917 cat <<\_ASBOX
1918 ## ----------- ##
1919 ## confdefs.h. ##
1920 ## ----------- ##
1921 _ASBOX
1922 echo
1923 cat confdefs.h
1924 echo
1926 test "$ac_signal" != 0 &&
1927 echo "$as_me: caught signal $ac_signal"
1928 echo "$as_me: exit $exit_status"
1929 } >&5
1930 rm -f core *.core core.conftest.* &&
1931 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1932 exit $exit_status
1934 for ac_signal in 1 2 13 15; do
1935 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1936 done
1937 ac_signal=0
1939 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1940 rm -f -r conftest* confdefs.h
1942 # Predefined preprocessor variables.
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_NAME "$PACKAGE_NAME"
1946 _ACEOF
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1951 _ACEOF
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1956 _ACEOF
1959 cat >>confdefs.h <<_ACEOF
1960 #define PACKAGE_STRING "$PACKAGE_STRING"
1961 _ACEOF
1964 cat >>confdefs.h <<_ACEOF
1965 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1966 _ACEOF
1969 # Let the site file select an alternate cache file if it wants to.
1970 # Prefer explicitly selected file to automatically selected ones.
1971 if test -n "$CONFIG_SITE"; then
1972 set x "$CONFIG_SITE"
1973 elif test "x$prefix" != xNONE; then
1974 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1975 else
1976 set x "$ac_default_prefix/share/config.site" \
1977 "$ac_default_prefix/etc/config.site"
1979 shift
1980 for ac_site_file
1982 if test -r "$ac_site_file"; then
1983 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1984 echo "$as_me: loading site script $ac_site_file" >&6;}
1985 sed 's/^/| /' "$ac_site_file" >&5
1986 . "$ac_site_file"
1988 done
1990 if test -r "$cache_file"; then
1991 # Some versions of bash will fail to source /dev/null (special
1992 # files actually), so we avoid doing that.
1993 if test -f "$cache_file"; then
1994 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1995 echo "$as_me: loading cache $cache_file" >&6;}
1996 case $cache_file in
1997 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1998 *) . "./$cache_file";;
1999 esac
2001 else
2002 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2003 echo "$as_me: creating cache $cache_file" >&6;}
2004 >$cache_file
2007 ac_header_list="$ac_header_list utime.h"
2008 # Check that the precious variables saved in the cache have kept the same
2009 # value.
2010 ac_cache_corrupted=false
2011 for ac_var in $ac_precious_vars; do
2012 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2013 eval ac_new_set=\$ac_env_${ac_var}_set
2014 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2015 eval ac_new_val=\$ac_env_${ac_var}_value
2016 case $ac_old_set,$ac_new_set in
2017 set,)
2018 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2019 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2020 ac_cache_corrupted=: ;;
2021 ,set)
2022 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2023 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2024 ac_cache_corrupted=: ;;
2025 ,);;
2027 if test "x$ac_old_val" != "x$ac_new_val"; then
2028 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2029 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2030 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2031 echo "$as_me: former value: $ac_old_val" >&2;}
2032 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2033 echo "$as_me: current value: $ac_new_val" >&2;}
2034 ac_cache_corrupted=:
2035 fi;;
2036 esac
2037 # Pass precious variables to config.status.
2038 if test "$ac_new_set" = set; then
2039 case $ac_new_val in
2040 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2041 *) ac_arg=$ac_var=$ac_new_val ;;
2042 esac
2043 case " $ac_configure_args " in
2044 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2045 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2046 esac
2048 done
2049 if $ac_cache_corrupted; then
2050 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2051 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2052 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2053 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2054 { (exit 1); exit 1; }; }
2081 ac_ext=c
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089 # cross-compile macros
2090 ac_aux_dir=
2091 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2092 if test -f "$ac_dir/install-sh"; then
2093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/install-sh -c"
2095 break
2096 elif test -f "$ac_dir/install.sh"; then
2097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/install.sh -c"
2099 break
2100 elif test -f "$ac_dir/shtool"; then
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/shtool install -c"
2103 break
2105 done
2106 if test -z "$ac_aux_dir"; then
2107 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2108 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2109 { (exit 1); exit 1; }; }
2112 # These three variables are undocumented and unsupported,
2113 # and are intended to be withdrawn in a future Autoconf release.
2114 # They can cause serious problems if a builder's source tree is in a directory
2115 # whose full name contains unusual characters.
2116 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2117 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2118 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2121 # Make sure we can run config.sub.
2122 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2123 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2124 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2125 { (exit 1); exit 1; }; }
2127 { echo "$as_me:$LINENO: checking build system type" >&5
2128 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2129 if test "${ac_cv_build+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 else
2132 ac_build_alias=$build_alias
2133 test "x$ac_build_alias" = x &&
2134 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2135 test "x$ac_build_alias" = x &&
2136 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2137 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2138 { (exit 1); exit 1; }; }
2139 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2140 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2141 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2142 { (exit 1); exit 1; }; }
2145 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2146 echo "${ECHO_T}$ac_cv_build" >&6; }
2147 case $ac_cv_build in
2148 *-*-*) ;;
2149 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2150 echo "$as_me: error: invalid value of canonical build" >&2;}
2151 { (exit 1); exit 1; }; };;
2152 esac
2153 build=$ac_cv_build
2154 ac_save_IFS=$IFS; IFS='-'
2155 set x $ac_cv_build
2156 shift
2157 build_cpu=$1
2158 build_vendor=$2
2159 shift; shift
2160 # Remember, the first character of IFS is used to create $*,
2161 # except with old shells:
2162 build_os=$*
2163 IFS=$ac_save_IFS
2164 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2167 { echo "$as_me:$LINENO: checking host system type" >&5
2168 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2169 if test "${ac_cv_host+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172 if test "x$host_alias" = x; then
2173 ac_cv_host=$ac_cv_build
2174 else
2175 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2176 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2177 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2178 { (exit 1); exit 1; }; }
2182 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2183 echo "${ECHO_T}$ac_cv_host" >&6; }
2184 case $ac_cv_host in
2185 *-*-*) ;;
2186 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2187 echo "$as_me: error: invalid value of canonical host" >&2;}
2188 { (exit 1); exit 1; }; };;
2189 esac
2190 host=$ac_cv_host
2191 ac_save_IFS=$IFS; IFS='-'
2192 set x $ac_cv_host
2193 shift
2194 host_cpu=$1
2195 host_vendor=$2
2196 shift; shift
2197 # Remember, the first character of IFS is used to create $*,
2198 # except with old shells:
2199 host_os=$*
2200 IFS=$ac_save_IFS
2201 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2205 # check existence of the package
2208 # specify output header file
2209 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2216 cat >>confdefs.h <<\_ACEOF
2217 #define _GNU_SOURCE 1
2218 _ACEOF
2221 ac_ext=c
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226 if test -n "$ac_tool_prefix"; then
2227 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2231 if test "${ac_cv_prog_CC+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234 if test -n "$CC"; then
2235 ac_cv_prog_CC="$CC" # Let the user override the test.
2236 else
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2244 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 break 2
2248 done
2249 done
2250 IFS=$as_save_IFS
2254 CC=$ac_cv_prog_CC
2255 if test -n "$CC"; then
2256 { echo "$as_me:$LINENO: result: $CC" >&5
2257 echo "${ECHO_T}$CC" >&6; }
2258 else
2259 { echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6; }
2265 if test -z "$ac_cv_prog_CC"; then
2266 ac_ct_CC=$CC
2267 # Extract the first word of "gcc", so it can be a program name with args.
2268 set dummy gcc; ac_word=$2
2269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274 if test -n "$ac_ct_CC"; then
2275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284 ac_cv_prog_ac_ct_CC="gcc"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 break 2
2288 done
2289 done
2290 IFS=$as_save_IFS
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297 echo "${ECHO_T}$ac_ct_CC" >&6; }
2298 else
2299 { echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6; }
2303 if test "x$ac_ct_CC" = x; then
2304 CC=""
2305 else
2306 case $cross_compiling:$ac_tool_warned in
2307 yes:)
2308 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2309 whose name does not start with the host triplet. If you think this
2310 configuration is useful to you, please write to autoconf@gnu.org." >&5
2311 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2312 whose name does not start with the host triplet. If you think this
2313 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2314 ac_tool_warned=yes ;;
2315 esac
2316 CC=$ac_ct_CC
2318 else
2319 CC="$ac_cv_prog_CC"
2322 if test -z "$CC"; then
2323 if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}cc; ac_word=$2
2326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328 if test "${ac_cv_prog_CC+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_CC="${ac_tool_prefix}cc"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2345 done
2346 done
2347 IFS=$as_save_IFS
2351 CC=$ac_cv_prog_CC
2352 if test -n "$CC"; then
2353 { echo "$as_me:$LINENO: result: $CC" >&5
2354 echo "${ECHO_T}$CC" >&6; }
2355 else
2356 { echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6; }
2363 if test -z "$CC"; then
2364 # Extract the first word of "cc", so it can be a program name with args.
2365 set dummy cc; ac_word=$2
2366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2368 if test "${ac_cv_prog_CC+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 if test -n "$CC"; then
2372 ac_cv_prog_CC="$CC" # Let the user override the test.
2373 else
2374 ac_prog_rejected=no
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2383 ac_prog_rejected=yes
2384 continue
2386 ac_cv_prog_CC="cc"
2387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2
2390 done
2391 done
2392 IFS=$as_save_IFS
2394 if test $ac_prog_rejected = yes; then
2395 # We found a bogon in the path, so make sure we never use it.
2396 set dummy $ac_cv_prog_CC
2397 shift
2398 if test $# != 0; then
2399 # We chose a different compiler from the bogus one.
2400 # However, it has the same basename, so the bogon will be chosen
2401 # first if we set CC to just the basename; use the full file name.
2402 shift
2403 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2408 CC=$ac_cv_prog_CC
2409 if test -n "$CC"; then
2410 { echo "$as_me:$LINENO: result: $CC" >&5
2411 echo "${ECHO_T}$CC" >&6; }
2412 else
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2419 if test -z "$CC"; then
2420 if test -n "$ac_tool_prefix"; then
2421 for ac_prog in cl.exe
2423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2424 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2444 done
2445 done
2446 IFS=$as_save_IFS
2450 CC=$ac_cv_prog_CC
2451 if test -n "$CC"; then
2452 { echo "$as_me:$LINENO: result: $CC" >&5
2453 echo "${ECHO_T}$CC" >&6; }
2454 else
2455 { echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6; }
2460 test -n "$CC" && break
2461 done
2463 if test -z "$CC"; then
2464 ac_ct_CC=$CC
2465 for ac_prog in cl.exe
2467 # Extract the first word of "$ac_prog", so it can be a program name with args.
2468 set dummy $ac_prog; ac_word=$2
2469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474 if test -n "$ac_ct_CC"; then
2475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 ac_cv_prog_ac_ct_CC="$ac_prog"
2485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2
2488 done
2489 done
2490 IFS=$as_save_IFS
2494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495 if test -n "$ac_ct_CC"; then
2496 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497 echo "${ECHO_T}$ac_ct_CC" >&6; }
2498 else
2499 { echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6; }
2504 test -n "$ac_ct_CC" && break
2505 done
2507 if test "x$ac_ct_CC" = x; then
2508 CC=""
2509 else
2510 case $cross_compiling:$ac_tool_warned in
2511 yes:)
2512 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2513 whose name does not start with the host triplet. If you think this
2514 configuration is useful to you, please write to autoconf@gnu.org." >&5
2515 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2516 whose name does not start with the host triplet. If you think this
2517 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2518 ac_tool_warned=yes ;;
2519 esac
2520 CC=$ac_ct_CC
2527 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: no acceptable C compiler found in \$PATH
2530 See \`config.log' for more details." >&2;}
2531 { (exit 1); exit 1; }; }
2533 # Provide some information about the compiler.
2534 echo "$as_me:$LINENO: checking for C compiler version" >&5
2535 ac_compiler=`set X $ac_compile; echo $2`
2536 { (ac_try="$ac_compiler --version >&5"
2537 case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compiler --version >&5") 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }
2546 { (ac_try="$ac_compiler -v >&5"
2547 case "(($ac_try" in
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2550 esac
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_compiler -v >&5") 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }
2556 { (ac_try="$ac_compiler -V >&5"
2557 case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560 esac
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_compiler -V >&5") 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }
2567 cat >conftest.$ac_ext <<_ACEOF
2568 /* confdefs.h. */
2569 _ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2575 main ()
2579 return 0;
2581 _ACEOF
2582 ac_clean_files_save=$ac_clean_files
2583 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2584 # Try to create an executable without -o first, disregard a.out.
2585 # It will help us diagnose broken compilers, and finding out an intuition
2586 # of exeext.
2587 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2588 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2589 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2591 # List of possible output files, starting from the most likely.
2592 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2593 # only as a last resort. b.out is created by i960 compilers.
2594 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2596 # The IRIX 6 linker writes into existing files which may not be
2597 # executable, retaining their permissions. Remove them first so a
2598 # subsequent execution test works.
2599 ac_rmfiles=
2600 for ac_file in $ac_files
2602 case $ac_file in
2603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2604 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2605 esac
2606 done
2607 rm -f $ac_rmfiles
2609 if { (ac_try="$ac_link_default"
2610 case "(($ac_try" in
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_link_default") 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; then
2619 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2620 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2621 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2622 # so that the user can short-circuit this test for compilers unknown to
2623 # Autoconf.
2624 for ac_file in $ac_files ''
2626 test -f "$ac_file" || continue
2627 case $ac_file in
2628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2630 [ab].out )
2631 # We found the default executable, but exeext='' is most
2632 # certainly right.
2633 break;;
2634 *.* )
2635 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2636 then :; else
2637 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2639 # We set ac_cv_exeext here because the later test for it is not
2640 # safe: cross compilers may not add the suffix if given an `-o'
2641 # argument, so we may need to know it at that point already.
2642 # Even if this section looks crufty: it has the advantage of
2643 # actually working.
2644 break;;
2646 break;;
2647 esac
2648 done
2649 test "$ac_cv_exeext" = no && ac_cv_exeext=
2651 else
2652 ac_file=''
2655 { echo "$as_me:$LINENO: result: $ac_file" >&5
2656 echo "${ECHO_T}$ac_file" >&6; }
2657 if test -z "$ac_file"; then
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: C compiler cannot create executables
2664 See \`config.log' for more details." >&2;}
2665 { (exit 77); exit 77; }; }
2668 ac_exeext=$ac_cv_exeext
2670 # Check that the compiler produces executables we can run. If not, either
2671 # the compiler is broken, or we cross compile.
2672 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2673 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2674 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2675 # If not cross compiling, check that we can run a simple program.
2676 if test "$cross_compiling" != yes; then
2677 if { ac_try='./$ac_file'
2678 { (case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2681 esac
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_try") 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2687 cross_compiling=no
2688 else
2689 if test "$cross_compiling" = maybe; then
2690 cross_compiling=yes
2691 else
2692 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2693 If you meant to cross compile, use \`--host'.
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: cannot run C compiled programs.
2696 If you meant to cross compile, use \`--host'.
2697 See \`config.log' for more details." >&2;}
2698 { (exit 1); exit 1; }; }
2702 { echo "$as_me:$LINENO: result: yes" >&5
2703 echo "${ECHO_T}yes" >&6; }
2705 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2706 ac_clean_files=$ac_clean_files_save
2707 # Check that the compiler produces executables we can run. If not, either
2708 # the compiler is broken, or we cross compile.
2709 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2710 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2711 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2712 echo "${ECHO_T}$cross_compiling" >&6; }
2714 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2715 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2716 if { (ac_try="$ac_link"
2717 case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720 esac
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_link") 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; then
2726 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2727 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2728 # work properly (i.e., refer to `conftest.exe'), while it won't with
2729 # `rm'.
2730 for ac_file in conftest.exe conftest conftest.*; do
2731 test -f "$ac_file" || continue
2732 case $ac_file in
2733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2734 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2735 break;;
2736 * ) break;;
2737 esac
2738 done
2739 else
2740 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2741 See \`config.log' for more details." >&5
2742 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2743 See \`config.log' for more details." >&2;}
2744 { (exit 1); exit 1; }; }
2747 rm -f conftest$ac_cv_exeext
2748 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2749 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2751 rm -f conftest.$ac_ext
2752 EXEEXT=$ac_cv_exeext
2753 ac_exeext=$EXEEXT
2754 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2755 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2756 if test "${ac_cv_objext+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h. */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2767 main ()
2771 return 0;
2773 _ACEOF
2774 rm -f conftest.o conftest.obj
2775 if { (ac_try="$ac_compile"
2776 case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
2785 for ac_file in conftest.o conftest.obj conftest.*; do
2786 test -f "$ac_file" || continue;
2787 case $ac_file in
2788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2789 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2790 break;;
2791 esac
2792 done
2793 else
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2798 See \`config.log' for more details." >&5
2799 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2800 See \`config.log' for more details." >&2;}
2801 { (exit 1); exit 1; }; }
2804 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2806 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2807 echo "${ECHO_T}$ac_cv_objext" >&6; }
2808 OBJEXT=$ac_cv_objext
2809 ac_objext=$OBJEXT
2810 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2811 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2812 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815 cat >conftest.$ac_ext <<_ACEOF
2816 /* confdefs.h. */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h. */
2823 main ()
2825 #ifndef __GNUC__
2826 choke me
2827 #endif
2830 return 0;
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (ac_try="$ac_compile"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_compile") 2>conftest.er1
2841 ac_status=$?
2842 grep -v '^ *+' conftest.er1 >conftest.err
2843 rm -f conftest.er1
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } && {
2847 test -z "$ac_c_werror_flag" ||
2848 test ! -s conftest.err
2849 } && test -s conftest.$ac_objext; then
2850 ac_compiler_gnu=yes
2851 else
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2855 ac_compiler_gnu=no
2858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2862 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2863 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2864 GCC=`test $ac_compiler_gnu = yes && echo yes`
2865 ac_test_CFLAGS=${CFLAGS+set}
2866 ac_save_CFLAGS=$CFLAGS
2867 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2868 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2869 if test "${ac_cv_prog_cc_g+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 ac_save_c_werror_flag=$ac_c_werror_flag
2873 ac_c_werror_flag=yes
2874 ac_cv_prog_cc_g=no
2875 CFLAGS="-g"
2876 cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h. */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2884 main ()
2888 return 0;
2890 _ACEOF
2891 rm -f conftest.$ac_objext
2892 if { (ac_try="$ac_compile"
2893 case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compile") 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } && {
2905 test -z "$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 } && test -s conftest.$ac_objext; then
2908 ac_cv_prog_cc_g=yes
2909 else
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2913 CFLAGS=""
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2922 main ()
2926 return 0;
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (ac_try="$ac_compile"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compile") 2>conftest.er1
2937 ac_status=$?
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && {
2943 test -z "$ac_c_werror_flag" ||
2944 test ! -s conftest.err
2945 } && test -s conftest.$ac_objext; then
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 ac_c_werror_flag=$ac_save_c_werror_flag
2952 CFLAGS="-g"
2953 cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h. */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2961 main ()
2965 return 0;
2967 _ACEOF
2968 rm -f conftest.$ac_objext
2969 if { (ac_try="$ac_compile"
2970 case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_compile") 2>conftest.er1
2976 ac_status=$?
2977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } && {
2982 test -z "$ac_c_werror_flag" ||
2983 test ! -s conftest.err
2984 } && test -s conftest.$ac_objext; then
2985 ac_cv_prog_cc_g=yes
2986 else
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000 ac_c_werror_flag=$ac_save_c_werror_flag
3002 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3003 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3004 if test "$ac_test_CFLAGS" = set; then
3005 CFLAGS=$ac_save_CFLAGS
3006 elif test $ac_cv_prog_cc_g = yes; then
3007 if test "$GCC" = yes; then
3008 CFLAGS="-g -O2"
3009 else
3010 CFLAGS="-g"
3012 else
3013 if test "$GCC" = yes; then
3014 CFLAGS="-O2"
3015 else
3016 CFLAGS=
3019 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3020 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3021 if test "${ac_cv_prog_cc_c89+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 ac_cv_prog_cc_c89=no
3025 ac_save_CC=$CC
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032 #include <stdarg.h>
3033 #include <stdio.h>
3034 #include <sys/types.h>
3035 #include <sys/stat.h>
3036 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3037 struct buf { int x; };
3038 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3039 static char *e (p, i)
3040 char **p;
3041 int i;
3043 return p[i];
3045 static char *f (char * (*g) (char **, int), char **p, ...)
3047 char *s;
3048 va_list v;
3049 va_start (v,p);
3050 s = g (p, va_arg (v,int));
3051 va_end (v);
3052 return s;
3055 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3056 function prototypes and stuff, but not '\xHH' hex character constants.
3057 These don't provoke an error unfortunately, instead are silently treated
3058 as 'x'. The following induces an error, until -std is added to get
3059 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3060 array size at least. It's necessary to write '\x00'==0 to get something
3061 that's true only with -std. */
3062 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3064 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3065 inside strings and character constants. */
3066 #define FOO(x) 'x'
3067 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3069 int test (int i, double x);
3070 struct s1 {int (*f) (int a);};
3071 struct s2 {int (*f) (double a);};
3072 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3073 int argc;
3074 char **argv;
3076 main ()
3078 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3080 return 0;
3082 _ACEOF
3083 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3084 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3086 CC="$ac_save_CC $ac_arg"
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3104 ac_cv_prog_cc_c89=$ac_arg
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3112 rm -f core conftest.err conftest.$ac_objext
3113 test "x$ac_cv_prog_cc_c89" != "xno" && break
3114 done
3115 rm -f conftest.$ac_ext
3116 CC=$ac_save_CC
3119 # AC_CACHE_VAL
3120 case "x$ac_cv_prog_cc_c89" in
3122 { echo "$as_me:$LINENO: result: none needed" >&5
3123 echo "${ECHO_T}none needed" >&6; } ;;
3124 xno)
3125 { echo "$as_me:$LINENO: result: unsupported" >&5
3126 echo "${ECHO_T}unsupported" >&6; } ;;
3128 CC="$CC $ac_cv_prog_cc_c89"
3129 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3130 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3131 esac
3134 ac_ext=c
3135 ac_cpp='$CPP $CPPFLAGS'
3136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141 ac_ext=c
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3147 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3148 # On Suns, sometimes $CPP names a directory.
3149 if test -n "$CPP" && test -d "$CPP"; then
3150 CPP=
3152 if test -z "$CPP"; then
3153 if test "${ac_cv_prog_CPP+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156 # Double quotes because CPP needs to be expanded
3157 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3159 ac_preproc_ok=false
3160 for ac_c_preproc_warn_flag in '' yes
3162 # Use a header file that comes with gcc, so configuring glibc
3163 # with a fresh cross-compiler works.
3164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3165 # <limits.h> exists even on freestanding compilers.
3166 # On the NeXT, cc -E runs the code through the compiler's parser,
3167 # not just through cpp. "Syntax error" is here to catch this case.
3168 cat >conftest.$ac_ext <<_ACEOF
3169 /* confdefs.h. */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3174 #ifdef __STDC__
3175 # include <limits.h>
3176 #else
3177 # include <assert.h>
3178 #endif
3179 Syntax error
3180 _ACEOF
3181 if { (ac_try="$ac_cpp conftest.$ac_ext"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } >/dev/null && {
3194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3196 }; then
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3202 # Broken: fails on valid input.
3203 continue
3206 rm -f conftest.err conftest.$ac_ext
3208 # OK, works on sane cases. Now check whether nonexistent headers
3209 # can be detected and how.
3210 cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h. */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3216 #include <ac_nonexistent.h>
3217 _ACEOF
3218 if { (ac_try="$ac_cpp conftest.$ac_ext"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3225 ac_status=$?
3226 grep -v '^ *+' conftest.er1 >conftest.err
3227 rm -f conftest.er1
3228 cat conftest.err >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } >/dev/null && {
3231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3232 test ! -s conftest.err
3233 }; then
3234 # Broken: success on invalid input.
3235 continue
3236 else
3237 echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3240 # Passes both tests.
3241 ac_preproc_ok=:
3242 break
3245 rm -f conftest.err conftest.$ac_ext
3247 done
3248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3249 rm -f conftest.err conftest.$ac_ext
3250 if $ac_preproc_ok; then
3251 break
3254 done
3255 ac_cv_prog_CPP=$CPP
3258 CPP=$ac_cv_prog_CPP
3259 else
3260 ac_cv_prog_CPP=$CPP
3262 { echo "$as_me:$LINENO: result: $CPP" >&5
3263 echo "${ECHO_T}$CPP" >&6; }
3264 ac_preproc_ok=false
3265 for ac_c_preproc_warn_flag in '' yes
3267 # Use a header file that comes with gcc, so configuring glibc
3268 # with a fresh cross-compiler works.
3269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3270 # <limits.h> exists even on freestanding compilers.
3271 # On the NeXT, cc -E runs the code through the compiler's parser,
3272 # not just through cpp. "Syntax error" is here to catch this case.
3273 cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h. */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3279 #ifdef __STDC__
3280 # include <limits.h>
3281 #else
3282 # include <assert.h>
3283 #endif
3284 Syntax error
3285 _ACEOF
3286 if { (ac_try="$ac_cpp conftest.$ac_ext"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null && {
3299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3300 test ! -s conftest.err
3301 }; then
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 # Broken: fails on valid input.
3308 continue
3311 rm -f conftest.err conftest.$ac_ext
3313 # OK, works on sane cases. Now check whether nonexistent headers
3314 # can be detected and how.
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h. */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 #include <ac_nonexistent.h>
3322 _ACEOF
3323 if { (ac_try="$ac_cpp conftest.$ac_ext"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } >/dev/null && {
3336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3337 test ! -s conftest.err
3338 }; then
3339 # Broken: success on invalid input.
3340 continue
3341 else
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3345 # Passes both tests.
3346 ac_preproc_ok=:
3347 break
3350 rm -f conftest.err conftest.$ac_ext
3352 done
3353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3354 rm -f conftest.err conftest.$ac_ext
3355 if $ac_preproc_ok; then
3357 else
3358 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3359 See \`config.log' for more details." >&5
3360 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3361 See \`config.log' for more details." >&2;}
3362 { (exit 1); exit 1; }; }
3365 ac_ext=c
3366 ac_cpp='$CPP $CPPFLAGS'
3367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3373 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3374 if test "${ac_cv_path_GREP+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 # Extract the first word of "grep ggrep" to use in msg output
3378 if test -z "$GREP"; then
3379 set dummy grep ggrep; ac_prog_name=$2
3380 if test "${ac_cv_path_GREP+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 ac_path_GREP_found=false
3384 # Loop through the user's path and test for each of PROGNAME-LIST
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_prog in grep ggrep; do
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3393 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3394 # Check for GNU ac_path_GREP and select it if it is found.
3395 # Check for GNU $ac_path_GREP
3396 case `"$ac_path_GREP" --version 2>&1` in
3397 *GNU*)
3398 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3400 ac_count=0
3401 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3402 while :
3404 cat "conftest.in" "conftest.in" >"conftest.tmp"
3405 mv "conftest.tmp" "conftest.in"
3406 cp "conftest.in" "conftest.nl"
3407 echo 'GREP' >> "conftest.nl"
3408 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3410 ac_count=`expr $ac_count + 1`
3411 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3412 # Best one so far, save it but keep looking for a better one
3413 ac_cv_path_GREP="$ac_path_GREP"
3414 ac_path_GREP_max=$ac_count
3416 # 10*(2^10) chars as input seems more than enough
3417 test $ac_count -gt 10 && break
3418 done
3419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3420 esac
3423 $ac_path_GREP_found && break 3
3424 done
3425 done
3427 done
3428 IFS=$as_save_IFS
3433 GREP="$ac_cv_path_GREP"
3434 if test -z "$GREP"; then
3435 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3436 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3437 { (exit 1); exit 1; }; }
3440 else
3441 ac_cv_path_GREP=$GREP
3446 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3447 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3448 GREP="$ac_cv_path_GREP"
3451 { echo "$as_me:$LINENO: checking for egrep" >&5
3452 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3453 if test "${ac_cv_path_EGREP+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3457 then ac_cv_path_EGREP="$GREP -E"
3458 else
3459 # Extract the first word of "egrep" to use in msg output
3460 if test -z "$EGREP"; then
3461 set dummy egrep; ac_prog_name=$2
3462 if test "${ac_cv_path_EGREP+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 ac_path_EGREP_found=false
3466 # Loop through the user's path and test for each of PROGNAME-LIST
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3470 IFS=$as_save_IFS
3471 test -z "$as_dir" && as_dir=.
3472 for ac_prog in egrep; do
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3475 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3476 # Check for GNU ac_path_EGREP and select it if it is found.
3477 # Check for GNU $ac_path_EGREP
3478 case `"$ac_path_EGREP" --version 2>&1` in
3479 *GNU*)
3480 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3482 ac_count=0
3483 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3484 while :
3486 cat "conftest.in" "conftest.in" >"conftest.tmp"
3487 mv "conftest.tmp" "conftest.in"
3488 cp "conftest.in" "conftest.nl"
3489 echo 'EGREP' >> "conftest.nl"
3490 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3492 ac_count=`expr $ac_count + 1`
3493 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3494 # Best one so far, save it but keep looking for a better one
3495 ac_cv_path_EGREP="$ac_path_EGREP"
3496 ac_path_EGREP_max=$ac_count
3498 # 10*(2^10) chars as input seems more than enough
3499 test $ac_count -gt 10 && break
3500 done
3501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3502 esac
3505 $ac_path_EGREP_found && break 3
3506 done
3507 done
3509 done
3510 IFS=$as_save_IFS
3515 EGREP="$ac_cv_path_EGREP"
3516 if test -z "$EGREP"; then
3517 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3518 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3519 { (exit 1); exit 1; }; }
3522 else
3523 ac_cv_path_EGREP=$EGREP
3529 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3530 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3531 EGREP="$ac_cv_path_EGREP"
3535 { echo "$as_me:$LINENO: checking for AIX" >&5
3536 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #ifdef _AIX
3545 #endif
3547 _ACEOF
3548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 $EGREP "yes" >/dev/null 2>&1; then
3550 { echo "$as_me:$LINENO: result: yes" >&5
3551 echo "${ECHO_T}yes" >&6; }
3552 cat >>confdefs.h <<\_ACEOF
3553 #define _ALL_SOURCE 1
3554 _ACEOF
3556 else
3557 { echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6; }
3560 rm -f conftest*
3563 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3564 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3565 if test "${ac_cv_header_stdc+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 #include <stdlib.h>
3575 #include <stdarg.h>
3576 #include <string.h>
3577 #include <float.h>
3580 main ()
3584 return 0;
3586 _ACEOF
3587 rm -f conftest.$ac_objext
3588 if { (ac_try="$ac_compile"
3589 case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_compile") 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } && {
3601 test -z "$ac_c_werror_flag" ||
3602 test ! -s conftest.err
3603 } && test -s conftest.$ac_objext; then
3604 ac_cv_header_stdc=yes
3605 else
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 ac_cv_header_stdc=no
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 if test $ac_cv_header_stdc = yes; then
3615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3616 cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h. */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 #include <string.h>
3624 _ACEOF
3625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3626 $EGREP "memchr" >/dev/null 2>&1; then
3628 else
3629 ac_cv_header_stdc=no
3631 rm -f conftest*
3635 if test $ac_cv_header_stdc = yes; then
3636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643 #include <stdlib.h>
3645 _ACEOF
3646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3647 $EGREP "free" >/dev/null 2>&1; then
3649 else
3650 ac_cv_header_stdc=no
3652 rm -f conftest*
3656 if test $ac_cv_header_stdc = yes; then
3657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3658 if test "$cross_compiling" = yes; then
3660 else
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h. */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 #include <ctype.h>
3668 #include <stdlib.h>
3669 #if ((' ' & 0x0FF) == 0x020)
3670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3672 #else
3673 # define ISLOWER(c) \
3674 (('a' <= (c) && (c) <= 'i') \
3675 || ('j' <= (c) && (c) <= 'r') \
3676 || ('s' <= (c) && (c) <= 'z'))
3677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3678 #endif
3680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3682 main ()
3684 int i;
3685 for (i = 0; i < 256; i++)
3686 if (XOR (islower (i), ISLOWER (i))
3687 || toupper (i) != TOUPPER (i))
3688 return 2;
3689 return 0;
3691 _ACEOF
3692 rm -f conftest$ac_exeext
3693 if { (ac_try="$ac_link"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_link") 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3703 { (case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_try") 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3713 else
3714 echo "$as_me: program exited with status $ac_status" >&5
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 ( exit $ac_status )
3719 ac_cv_header_stdc=no
3721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3727 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3728 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3729 if test $ac_cv_header_stdc = yes; then
3731 cat >>confdefs.h <<\_ACEOF
3732 #define STDC_HEADERS 1
3733 _ACEOF
3737 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3747 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3748 inttypes.h stdint.h unistd.h
3750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h. */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3762 $ac_includes_default
3764 #include <$ac_header>
3765 _ACEOF
3766 rm -f conftest.$ac_objext
3767 if { (ac_try="$ac_compile"
3768 case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_compile") 2>conftest.er1
3774 ac_status=$?
3775 grep -v '^ *+' conftest.er1 >conftest.err
3776 rm -f conftest.er1
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && {
3780 test -z "$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 } && test -s conftest.$ac_objext; then
3783 eval "$as_ac_Header=yes"
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 eval "$as_ac_Header=no"
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 ac_res=`eval echo '${'$as_ac_Header'}'`
3794 { echo "$as_me:$LINENO: result: $ac_res" >&5
3795 echo "${ECHO_T}$ac_res" >&6; }
3796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3797 cat >>confdefs.h <<_ACEOF
3798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3799 _ACEOF
3803 done
3806 if test "${ac_cv_header_minix_config_h+set}" = set; then
3807 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3808 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3809 if test "${ac_cv_header_minix_config_h+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3813 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3814 else
3815 # Is the header compilable?
3816 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3817 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3818 cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h. */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3824 $ac_includes_default
3825 #include <minix/config.h>
3826 _ACEOF
3827 rm -f conftest.$ac_objext
3828 if { (ac_try="$ac_compile"
3829 case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832 esac
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_compile") 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } && {
3841 test -z "$ac_c_werror_flag" ||
3842 test ! -s conftest.err
3843 } && test -s conftest.$ac_objext; then
3844 ac_header_compiler=yes
3845 else
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 ac_header_compiler=no
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3854 echo "${ECHO_T}$ac_header_compiler" >&6; }
3856 # Is the header present?
3857 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3858 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #include <minix/config.h>
3866 _ACEOF
3867 if { (ac_try="$ac_cpp conftest.$ac_ext"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } >/dev/null && {
3880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 }; then
3883 ac_header_preproc=yes
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 ac_header_preproc=no
3891 rm -f conftest.err conftest.$ac_ext
3892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3893 echo "${ECHO_T}$ac_header_preproc" >&6; }
3895 # So? What about this header?
3896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3897 yes:no: )
3898 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3899 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3900 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3901 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3902 ac_header_preproc=yes
3904 no:yes:* )
3905 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3906 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3907 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3908 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3909 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3910 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3911 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3912 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3914 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3916 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3917 ( cat <<\_ASBOX
3918 ## ------------------------------- ##
3919 ## Report this to www.asterisk.org ##
3920 ## ------------------------------- ##
3921 _ASBOX
3922 ) | sed "s/^/$as_me: WARNING: /" >&2
3924 esac
3925 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3926 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3927 if test "${ac_cv_header_minix_config_h+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930 ac_cv_header_minix_config_h=$ac_header_preproc
3932 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3933 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3936 if test $ac_cv_header_minix_config_h = yes; then
3937 MINIX=yes
3938 else
3939 MINIX=
3943 if test "$MINIX" = yes; then
3945 cat >>confdefs.h <<\_ACEOF
3946 #define _POSIX_SOURCE 1
3947 _ACEOF
3950 cat >>confdefs.h <<\_ACEOF
3951 #define _POSIX_1_SOURCE 2
3952 _ACEOF
3955 cat >>confdefs.h <<\_ACEOF
3956 #define _MINIX 1
3957 _ACEOF
3971 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3972 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3973 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3983 # define __EXTENSIONS__ 1
3984 $ac_includes_default
3986 main ()
3990 return 0;
3992 _ACEOF
3993 rm -f conftest.$ac_objext
3994 if { (ac_try="$ac_compile"
3995 case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_compile") 2>conftest.er1
4001 ac_status=$?
4002 grep -v '^ *+' conftest.er1 >conftest.err
4003 rm -f conftest.er1
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } && {
4007 test -z "$ac_c_werror_flag" ||
4008 test ! -s conftest.err
4009 } && test -s conftest.$ac_objext; then
4010 ac_cv_safe_to_define___extensions__=yes
4011 else
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 ac_cv_safe_to_define___extensions__=no
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4021 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4022 test $ac_cv_safe_to_define___extensions__ = yes &&
4023 cat >>confdefs.h <<\_ACEOF
4024 #define __EXTENSIONS__ 1
4025 _ACEOF
4027 cat >>confdefs.h <<\_ACEOF
4028 #define _POSIX_PTHREAD_SEMANTICS 1
4029 _ACEOF
4031 cat >>confdefs.h <<\_ACEOF
4032 #define _TANDEM_SOURCE 1
4033 _ACEOF
4035 # note- does not work on FreeBSD
4037 case "${host_os}" in
4038 freebsd*)
4039 ac_default_prefix=/usr/local
4040 CPPFLAGS=-I/usr/local/include
4041 LDFLAGS=-L/usr/local/lib
4045 ac_default_prefix=/usr
4046 if test ${sysconfdir} = '${prefix}/etc'; then
4047 sysconfdir=/etc
4049 if test ${mandir} = '${prefix}/man'; then
4050 mandir=/usr/share/man
4053 esac
4055 if test ${localstatedir} = '${prefix}/var'; then
4056 localstatedir=/var
4059 BUILD_PLATFORM=${build}
4060 BUILD_CPU=${build_cpu}
4061 BUILD_VENDOR=${build_vendor}
4062 BUILD_OS=${build_os}
4069 HOST_PLATFORM=${host}
4070 HOST_CPU=${host_cpu}
4071 HOST_VENDOR=${host_vendor}
4072 HOST_OS=${host_os}
4079 WINARCH=0
4081 case "${host_os}" in
4082 freebsd*)
4083 OSARCH=FreeBSD
4085 netbsd*)
4086 OSARCH=NetBSD
4088 openbsd*)
4089 OSARCH=OpenBSD
4091 solaris*)
4092 OSARCH=SunOS
4094 mingw32)
4095 OSARCH=mingw32
4096 WINARCH=1
4098 cygwin)
4099 OSARCH=cygwin
4100 WINARCH=1
4103 OSARCH=${host_os}
4105 esac
4110 # check for uname
4111 if test -n "$ac_tool_prefix"; then
4112 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4113 set dummy ${ac_tool_prefix}uname; ac_word=$2
4114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4116 if test "${ac_cv_path_UNAME+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 case $UNAME in
4120 [\\/]* | ?:[\\/]*)
4121 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4135 done
4136 done
4137 IFS=$as_save_IFS
4140 esac
4142 UNAME=$ac_cv_path_UNAME
4143 if test -n "$UNAME"; then
4144 { echo "$as_me:$LINENO: result: $UNAME" >&5
4145 echo "${ECHO_T}$UNAME" >&6; }
4146 else
4147 { echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6; }
4153 if test -z "$ac_cv_path_UNAME"; then
4154 ac_pt_UNAME=$UNAME
4155 # Extract the first word of "uname", so it can be a program name with args.
4156 set dummy uname; ac_word=$2
4157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4159 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162 case $ac_pt_UNAME in
4163 [\\/]* | ?:[\\/]*)
4164 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4178 done
4179 done
4180 IFS=$as_save_IFS
4183 esac
4185 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4186 if test -n "$ac_pt_UNAME"; then
4187 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4188 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4189 else
4190 { echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6; }
4194 if test "x$ac_pt_UNAME" = x; then
4195 UNAME="No"
4196 else
4197 case $cross_compiling:$ac_tool_warned in
4198 yes:)
4199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4200 whose name does not start with the host triplet. If you think this
4201 configuration is useful to you, please write to autoconf@gnu.org." >&5
4202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4203 whose name does not start with the host triplet. If you think this
4204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4205 ac_tool_warned=yes ;;
4206 esac
4207 UNAME=$ac_pt_UNAME
4209 else
4210 UNAME="$ac_cv_path_UNAME"
4213 if test ! x"${UNAME}" = xNo; then
4214 PBX_OSREV=$(${UNAME} -r)
4224 # cross-compile checks
4225 if test "${cross_compiling}" = "yes";
4226 then
4227 if test -n "$ac_tool_prefix"; then
4228 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4229 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4232 if test "${ac_cv_prog_CC+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235 if test -n "$CC"; then
4236 ac_cv_prog_CC="$CC" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4249 done
4250 done
4251 IFS=$as_save_IFS
4255 CC=$ac_cv_prog_CC
4256 if test -n "$CC"; then
4257 { echo "$as_me:$LINENO: result: $CC" >&5
4258 echo "${ECHO_T}$CC" >&6; }
4259 else
4260 { echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6; }
4266 if test -z "$ac_cv_prog_CC"; then
4267 ac_ct_CC=$CC
4268 # Extract the first word of "gcc", so it can be a program name with args.
4269 set dummy gcc; ac_word=$2
4270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 if test -n "$ac_ct_CC"; then
4276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285 ac_cv_prog_ac_ct_CC="gcc"
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4289 done
4290 done
4291 IFS=$as_save_IFS
4295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4296 if test -n "$ac_ct_CC"; then
4297 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4298 echo "${ECHO_T}$ac_ct_CC" >&6; }
4299 else
4300 { echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6; }
4304 if test "x$ac_ct_CC" = x; then
4305 CC=":"
4306 else
4307 case $cross_compiling:$ac_tool_warned in
4308 yes:)
4309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4310 whose name does not start with the host triplet. If you think this
4311 configuration is useful to you, please write to autoconf@gnu.org." >&5
4312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4313 whose name does not start with the host triplet. If you think this
4314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4315 ac_tool_warned=yes ;;
4316 esac
4317 CC=$ac_ct_CC
4319 else
4320 CC="$ac_cv_prog_CC"
4323 if test -n "$ac_tool_prefix"; then
4324 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4325 set dummy ${ac_tool_prefix}g++; ac_word=$2
4326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328 if test "${ac_cv_prog_CXX+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331 if test -n "$CXX"; then
4332 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4351 CXX=$ac_cv_prog_CXX
4352 if test -n "$CXX"; then
4353 { echo "$as_me:$LINENO: result: $CXX" >&5
4354 echo "${ECHO_T}$CXX" >&6; }
4355 else
4356 { echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6; }
4362 if test -z "$ac_cv_prog_CXX"; then
4363 ac_ct_CXX=$CXX
4364 # Extract the first word of "g++", so it can be a program name with args.
4365 set dummy g++; ac_word=$2
4366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4368 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371 if test -n "$ac_ct_CXX"; then
4372 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4373 else
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381 ac_cv_prog_ac_ct_CXX="g++"
4382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4385 done
4386 done
4387 IFS=$as_save_IFS
4391 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4392 if test -n "$ac_ct_CXX"; then
4393 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4394 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4395 else
4396 { echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6; }
4400 if test "x$ac_ct_CXX" = x; then
4401 CXX=":"
4402 else
4403 case $cross_compiling:$ac_tool_warned in
4404 yes:)
4405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4406 whose name does not start with the host triplet. If you think this
4407 configuration is useful to you, please write to autoconf@gnu.org." >&5
4408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4409 whose name does not start with the host triplet. If you think this
4410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4411 ac_tool_warned=yes ;;
4412 esac
4413 CXX=$ac_ct_CXX
4415 else
4416 CXX="$ac_cv_prog_CXX"
4419 if test -n "$ac_tool_prefix"; then
4420 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4421 set dummy ${ac_tool_prefix}ld; ac_word=$2
4422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4424 if test "${ac_cv_prog_LD+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427 if test -n "$LD"; then
4428 ac_cv_prog_LD="$LD" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_prog_LD="${ac_tool_prefix}ld"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4441 done
4442 done
4443 IFS=$as_save_IFS
4447 LD=$ac_cv_prog_LD
4448 if test -n "$LD"; then
4449 { echo "$as_me:$LINENO: result: $LD" >&5
4450 echo "${ECHO_T}$LD" >&6; }
4451 else
4452 { echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6; }
4458 if test -z "$ac_cv_prog_LD"; then
4459 ac_ct_LD=$LD
4460 # Extract the first word of "ld", so it can be a program name with args.
4461 set dummy ld; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467 if test -n "$ac_ct_LD"; then
4468 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 ac_cv_prog_ac_ct_LD="ld"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4481 done
4482 done
4483 IFS=$as_save_IFS
4487 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4488 if test -n "$ac_ct_LD"; then
4489 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4490 echo "${ECHO_T}$ac_ct_LD" >&6; }
4491 else
4492 { echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6; }
4496 if test "x$ac_ct_LD" = x; then
4497 LD=":"
4498 else
4499 case $cross_compiling:$ac_tool_warned in
4500 yes:)
4501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4502 whose name does not start with the host triplet. If you think this
4503 configuration is useful to you, please write to autoconf@gnu.org." >&5
4504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4505 whose name does not start with the host triplet. If you think this
4506 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4507 ac_tool_warned=yes ;;
4508 esac
4509 LD=$ac_ct_LD
4511 else
4512 LD="$ac_cv_prog_LD"
4515 if test -n "$ac_tool_prefix"; then
4516 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4517 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4520 if test "${ac_cv_prog_RANLIB+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 if test -n "$RANLIB"; then
4524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4537 done
4538 done
4539 IFS=$as_save_IFS
4543 RANLIB=$ac_cv_prog_RANLIB
4544 if test -n "$RANLIB"; then
4545 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4546 echo "${ECHO_T}$RANLIB" >&6; }
4547 else
4548 { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4554 if test -z "$ac_cv_prog_RANLIB"; then
4555 ac_ct_RANLIB=$RANLIB
4556 # Extract the first word of "ranlib", so it can be a program name with args.
4557 set dummy ranlib; ac_word=$2
4558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 if test -n "$ac_ct_RANLIB"; then
4564 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 ac_cv_prog_ac_ct_RANLIB="ranlib"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4579 IFS=$as_save_IFS
4583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4584 if test -n "$ac_ct_RANLIB"; then
4585 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4586 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4587 else
4588 { echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6; }
4592 if test "x$ac_ct_RANLIB" = x; then
4593 RANLIB=":"
4594 else
4595 case $cross_compiling:$ac_tool_warned in
4596 yes:)
4597 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4598 whose name does not start with the host triplet. If you think this
4599 configuration is useful to you, please write to autoconf@gnu.org." >&5
4600 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4601 whose name does not start with the host triplet. If you think this
4602 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4603 ac_tool_warned=yes ;;
4604 esac
4605 RANLIB=$ac_ct_RANLIB
4607 else
4608 RANLIB="$ac_cv_prog_RANLIB"
4613 # Checks for programs.
4614 ac_ext=c
4615 ac_cpp='$CPP $CPPFLAGS'
4616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619 if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC="$CC" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4641 done
4642 done
4643 IFS=$as_save_IFS
4647 CC=$ac_cv_prog_CC
4648 if test -n "$CC"; then
4649 { echo "$as_me:$LINENO: result: $CC" >&5
4650 echo "${ECHO_T}$CC" >&6; }
4651 else
4652 { echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6; }
4658 if test -z "$ac_cv_prog_CC"; then
4659 ac_ct_CC=$CC
4660 # Extract the first word of "gcc", so it can be a program name with args.
4661 set dummy gcc; ac_word=$2
4662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 if test -n "$ac_ct_CC"; then
4668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_ac_ct_CC="gcc"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4681 done
4682 done
4683 IFS=$as_save_IFS
4687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4688 if test -n "$ac_ct_CC"; then
4689 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4690 echo "${ECHO_T}$ac_ct_CC" >&6; }
4691 else
4692 { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4696 if test "x$ac_ct_CC" = x; then
4697 CC=""
4698 else
4699 case $cross_compiling:$ac_tool_warned in
4700 yes:)
4701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4702 whose name does not start with the host triplet. If you think this
4703 configuration is useful to you, please write to autoconf@gnu.org." >&5
4704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4705 whose name does not start with the host triplet. If you think this
4706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4707 ac_tool_warned=yes ;;
4708 esac
4709 CC=$ac_ct_CC
4711 else
4712 CC="$ac_cv_prog_CC"
4715 if test -z "$CC"; then
4716 if test -n "$ac_tool_prefix"; then
4717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4718 set dummy ${ac_tool_prefix}cc; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_prog_CC+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724 if test -n "$CC"; then
4725 ac_cv_prog_CC="$CC" # Let the user override the test.
4726 else
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_CC="${ac_tool_prefix}cc"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4738 done
4739 done
4740 IFS=$as_save_IFS
4744 CC=$ac_cv_prog_CC
4745 if test -n "$CC"; then
4746 { echo "$as_me:$LINENO: result: $CC" >&5
4747 echo "${ECHO_T}$CC" >&6; }
4748 else
4749 { echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6; }
4756 if test -z "$CC"; then
4757 # Extract the first word of "cc", so it can be a program name with args.
4758 set dummy cc; ac_word=$2
4759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4761 if test "${ac_cv_prog_CC+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764 if test -n "$CC"; then
4765 ac_cv_prog_CC="$CC" # Let the user override the test.
4766 else
4767 ac_prog_rejected=no
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4776 ac_prog_rejected=yes
4777 continue
4779 ac_cv_prog_CC="cc"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4783 done
4784 done
4785 IFS=$as_save_IFS
4787 if test $ac_prog_rejected = yes; then
4788 # We found a bogon in the path, so make sure we never use it.
4789 set dummy $ac_cv_prog_CC
4790 shift
4791 if test $# != 0; then
4792 # We chose a different compiler from the bogus one.
4793 # However, it has the same basename, so the bogon will be chosen
4794 # first if we set CC to just the basename; use the full file name.
4795 shift
4796 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4801 CC=$ac_cv_prog_CC
4802 if test -n "$CC"; then
4803 { echo "$as_me:$LINENO: result: $CC" >&5
4804 echo "${ECHO_T}$CC" >&6; }
4805 else
4806 { echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6; }
4812 if test -z "$CC"; then
4813 if test -n "$ac_tool_prefix"; then
4814 for ac_prog in cl.exe
4816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_prog_CC+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823 if test -n "$CC"; then
4824 ac_cv_prog_CC="$CC" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4837 done
4838 done
4839 IFS=$as_save_IFS
4843 CC=$ac_cv_prog_CC
4844 if test -n "$CC"; then
4845 { echo "$as_me:$LINENO: result: $CC" >&5
4846 echo "${ECHO_T}$CC" >&6; }
4847 else
4848 { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4853 test -n "$CC" && break
4854 done
4856 if test -z "$CC"; then
4857 ac_ct_CC=$CC
4858 for ac_prog in cl.exe
4860 # Extract the first word of "$ac_prog", so it can be a program name with args.
4861 set dummy $ac_prog; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 if test -n "$ac_ct_CC"; then
4868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_ac_ct_CC="$ac_prog"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4881 done
4882 done
4883 IFS=$as_save_IFS
4887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4888 if test -n "$ac_ct_CC"; then
4889 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4890 echo "${ECHO_T}$ac_ct_CC" >&6; }
4891 else
4892 { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4897 test -n "$ac_ct_CC" && break
4898 done
4900 if test "x$ac_ct_CC" = x; then
4901 CC=""
4902 else
4903 case $cross_compiling:$ac_tool_warned in
4904 yes:)
4905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4906 whose name does not start with the host triplet. If you think this
4907 configuration is useful to you, please write to autoconf@gnu.org." >&5
4908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4909 whose name does not start with the host triplet. If you think this
4910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4911 ac_tool_warned=yes ;;
4912 esac
4913 CC=$ac_ct_CC
4920 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4921 See \`config.log' for more details." >&5
4922 echo "$as_me: error: no acceptable C compiler found in \$PATH
4923 See \`config.log' for more details." >&2;}
4924 { (exit 1); exit 1; }; }
4926 # Provide some information about the compiler.
4927 echo "$as_me:$LINENO: checking for C compiler version" >&5
4928 ac_compiler=`set X $ac_compile; echo $2`
4929 { (ac_try="$ac_compiler --version >&5"
4930 case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933 esac
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_compiler --version >&5") 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }
4939 { (ac_try="$ac_compiler -v >&5"
4940 case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943 esac
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945 (eval "$ac_compiler -v >&5") 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }
4949 { (ac_try="$ac_compiler -V >&5"
4950 case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953 esac
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_compiler -V >&5") 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }
4960 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4961 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4962 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4973 main ()
4975 #ifndef __GNUC__
4976 choke me
4977 #endif
4980 return 0;
4982 _ACEOF
4983 rm -f conftest.$ac_objext
4984 if { (ac_try="$ac_compile"
4985 case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988 esac
4989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4990 (eval "$ac_compile") 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } && {
4997 test -z "$ac_c_werror_flag" ||
4998 test ! -s conftest.err
4999 } && test -s conftest.$ac_objext; then
5000 ac_compiler_gnu=yes
5001 else
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5005 ac_compiler_gnu=no
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5012 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5013 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5014 GCC=`test $ac_compiler_gnu = yes && echo yes`
5015 ac_test_CFLAGS=${CFLAGS+set}
5016 ac_save_CFLAGS=$CFLAGS
5017 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5018 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5019 if test "${ac_cv_prog_cc_g+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 ac_save_c_werror_flag=$ac_c_werror_flag
5023 ac_c_werror_flag=yes
5024 ac_cv_prog_cc_g=no
5025 CFLAGS="-g"
5026 cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h. */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5034 main ()
5038 return 0;
5040 _ACEOF
5041 rm -f conftest.$ac_objext
5042 if { (ac_try="$ac_compile"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_compile") 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest.$ac_objext; then
5058 ac_cv_prog_cc_g=yes
5059 else
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5063 CFLAGS=""
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5072 main ()
5076 return 0;
5078 _ACEOF
5079 rm -f conftest.$ac_objext
5080 if { (ac_try="$ac_compile"
5081 case "(($ac_try" in
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5084 esac
5085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5086 (eval "$ac_compile") 2>conftest.er1
5087 ac_status=$?
5088 grep -v '^ *+' conftest.er1 >conftest.err
5089 rm -f conftest.er1
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } && {
5093 test -z "$ac_c_werror_flag" ||
5094 test ! -s conftest.err
5095 } && test -s conftest.$ac_objext; then
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5101 ac_c_werror_flag=$ac_save_c_werror_flag
5102 CFLAGS="-g"
5103 cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h. */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5111 main ()
5115 return 0;
5117 _ACEOF
5118 rm -f conftest.$ac_objext
5119 if { (ac_try="$ac_compile"
5120 case "(($ac_try" in
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5123 esac
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125 (eval "$ac_compile") 2>conftest.er1
5126 ac_status=$?
5127 grep -v '^ *+' conftest.er1 >conftest.err
5128 rm -f conftest.er1
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } && {
5132 test -z "$ac_c_werror_flag" ||
5133 test ! -s conftest.err
5134 } && test -s conftest.$ac_objext; then
5135 ac_cv_prog_cc_g=yes
5136 else
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 ac_c_werror_flag=$ac_save_c_werror_flag
5152 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5153 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5154 if test "$ac_test_CFLAGS" = set; then
5155 CFLAGS=$ac_save_CFLAGS
5156 elif test $ac_cv_prog_cc_g = yes; then
5157 if test "$GCC" = yes; then
5158 CFLAGS="-g -O2"
5159 else
5160 CFLAGS="-g"
5162 else
5163 if test "$GCC" = yes; then
5164 CFLAGS="-O2"
5165 else
5166 CFLAGS=
5169 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5170 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5171 if test "${ac_cv_prog_cc_c89+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174 ac_cv_prog_cc_c89=no
5175 ac_save_CC=$CC
5176 cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h. */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 #include <stdarg.h>
5183 #include <stdio.h>
5184 #include <sys/types.h>
5185 #include <sys/stat.h>
5186 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5187 struct buf { int x; };
5188 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5189 static char *e (p, i)
5190 char **p;
5191 int i;
5193 return p[i];
5195 static char *f (char * (*g) (char **, int), char **p, ...)
5197 char *s;
5198 va_list v;
5199 va_start (v,p);
5200 s = g (p, va_arg (v,int));
5201 va_end (v);
5202 return s;
5205 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5206 function prototypes and stuff, but not '\xHH' hex character constants.
5207 These don't provoke an error unfortunately, instead are silently treated
5208 as 'x'. The following induces an error, until -std is added to get
5209 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5210 array size at least. It's necessary to write '\x00'==0 to get something
5211 that's true only with -std. */
5212 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5214 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5215 inside strings and character constants. */
5216 #define FOO(x) 'x'
5217 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5219 int test (int i, double x);
5220 struct s1 {int (*f) (int a);};
5221 struct s2 {int (*f) (double a);};
5222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5223 int argc;
5224 char **argv;
5226 main ()
5228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5230 return 0;
5232 _ACEOF
5233 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5234 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5236 CC="$ac_save_CC $ac_arg"
5237 rm -f conftest.$ac_objext
5238 if { (ac_try="$ac_compile"
5239 case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242 esac
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_compile") 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } && {
5251 test -z "$ac_c_werror_flag" ||
5252 test ! -s conftest.err
5253 } && test -s conftest.$ac_objext; then
5254 ac_cv_prog_cc_c89=$ac_arg
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5262 rm -f core conftest.err conftest.$ac_objext
5263 test "x$ac_cv_prog_cc_c89" != "xno" && break
5264 done
5265 rm -f conftest.$ac_ext
5266 CC=$ac_save_CC
5269 # AC_CACHE_VAL
5270 case "x$ac_cv_prog_cc_c89" in
5272 { echo "$as_me:$LINENO: result: none needed" >&5
5273 echo "${ECHO_T}none needed" >&6; } ;;
5274 xno)
5275 { echo "$as_me:$LINENO: result: unsupported" >&5
5276 echo "${ECHO_T}unsupported" >&6; } ;;
5278 CC="$CC $ac_cv_prog_cc_c89"
5279 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5280 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5281 esac
5284 ac_ext=c
5285 ac_cpp='$CPP $CPPFLAGS'
5286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5290 ac_ext=cpp
5291 ac_cpp='$CXXCPP $CPPFLAGS'
5292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5295 if test -z "$CXX"; then
5296 if test -n "$CCC"; then
5297 CXX=$CCC
5298 else
5299 if test -n "$ac_tool_prefix"; then
5300 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5306 if test "${ac_cv_prog_CXX+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309 if test -n "$CXX"; then
5310 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 break 2
5323 done
5324 done
5325 IFS=$as_save_IFS
5329 CXX=$ac_cv_prog_CXX
5330 if test -n "$CXX"; then
5331 { echo "$as_me:$LINENO: result: $CXX" >&5
5332 echo "${ECHO_T}$CXX" >&6; }
5333 else
5334 { echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6; }
5339 test -n "$CXX" && break
5340 done
5342 if test -z "$CXX"; then
5343 ac_ct_CXX=$CXX
5344 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5346 # Extract the first word of "$ac_prog", so it can be a program name with args.
5347 set dummy $ac_prog; ac_word=$2
5348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5350 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353 if test -n "$ac_ct_CXX"; then
5354 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_ac_ct_CXX="$ac_prog"
5364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5367 done
5368 done
5369 IFS=$as_save_IFS
5373 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5374 if test -n "$ac_ct_CXX"; then
5375 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5376 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5377 else
5378 { echo "$as_me:$LINENO: result: no" >&5
5379 echo "${ECHO_T}no" >&6; }
5383 test -n "$ac_ct_CXX" && break
5384 done
5386 if test "x$ac_ct_CXX" = x; then
5387 CXX="g++"
5388 else
5389 case $cross_compiling:$ac_tool_warned in
5390 yes:)
5391 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5392 whose name does not start with the host triplet. If you think this
5393 configuration is useful to you, please write to autoconf@gnu.org." >&5
5394 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5395 whose name does not start with the host triplet. If you think this
5396 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5397 ac_tool_warned=yes ;;
5398 esac
5399 CXX=$ac_ct_CXX
5405 # Provide some information about the compiler.
5406 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5407 ac_compiler=`set X $ac_compile; echo $2`
5408 { (ac_try="$ac_compiler --version >&5"
5409 case "(($ac_try" in
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5412 esac
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_compiler --version >&5") 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }
5418 { (ac_try="$ac_compiler -v >&5"
5419 case "(($ac_try" in
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5422 esac
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_compiler -v >&5") 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }
5428 { (ac_try="$ac_compiler -V >&5"
5429 case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5432 esac
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_compiler -V >&5") 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }
5439 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5440 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5441 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h. */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5452 main ()
5454 #ifndef __GNUC__
5455 choke me
5456 #endif
5459 return 0;
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (ac_try="$ac_compile"
5464 case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467 esac
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_compile") 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } && {
5476 test -z "$ac_cxx_werror_flag" ||
5477 test ! -s conftest.err
5478 } && test -s conftest.$ac_objext; then
5479 ac_compiler_gnu=yes
5480 else
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5484 ac_compiler_gnu=no
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5491 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5492 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5493 GXX=`test $ac_compiler_gnu = yes && echo yes`
5494 ac_test_CXXFLAGS=${CXXFLAGS+set}
5495 ac_save_CXXFLAGS=$CXXFLAGS
5496 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5497 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5498 if test "${ac_cv_prog_cxx_g+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5502 ac_cxx_werror_flag=yes
5503 ac_cv_prog_cxx_g=no
5504 CXXFLAGS="-g"
5505 cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h. */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5513 main ()
5517 return 0;
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5522 case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525 esac
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_compile") 2>conftest.er1
5528 ac_status=$?
5529 grep -v '^ *+' conftest.er1 >conftest.err
5530 rm -f conftest.er1
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } && {
5534 test -z "$ac_cxx_werror_flag" ||
5535 test ! -s conftest.err
5536 } && test -s conftest.$ac_objext; then
5537 ac_cv_prog_cxx_g=yes
5538 else
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5542 CXXFLAGS=""
5543 cat >conftest.$ac_ext <<_ACEOF
5544 /* confdefs.h. */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5551 main ()
5555 return 0;
5557 _ACEOF
5558 rm -f conftest.$ac_objext
5559 if { (ac_try="$ac_compile"
5560 case "(($ac_try" in
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5563 esac
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_compile") 2>conftest.er1
5566 ac_status=$?
5567 grep -v '^ *+' conftest.er1 >conftest.err
5568 rm -f conftest.er1
5569 cat conftest.err >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } && {
5572 test -z "$ac_cxx_werror_flag" ||
5573 test ! -s conftest.err
5574 } && test -s conftest.$ac_objext; then
5576 else
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5581 CXXFLAGS="-g"
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5590 main ()
5594 return 0;
5596 _ACEOF
5597 rm -f conftest.$ac_objext
5598 if { (ac_try="$ac_compile"
5599 case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5602 esac
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_compile") 2>conftest.er1
5605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_cxx_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest.$ac_objext; then
5614 ac_cv_prog_cxx_g=yes
5615 else
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5631 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5632 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5633 if test "$ac_test_CXXFLAGS" = set; then
5634 CXXFLAGS=$ac_save_CXXFLAGS
5635 elif test $ac_cv_prog_cxx_g = yes; then
5636 if test "$GXX" = yes; then
5637 CXXFLAGS="-g -O2"
5638 else
5639 CXXFLAGS="-g"
5641 else
5642 if test "$GXX" = yes; then
5643 CXXFLAGS="-O2"
5644 else
5645 CXXFLAGS=
5648 ac_ext=c
5649 ac_cpp='$CPP $CPPFLAGS'
5650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654 ac_ext=c
5655 ac_cpp='$CPP $CPPFLAGS'
5656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5659 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5660 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5661 # On Suns, sometimes $CPP names a directory.
5662 if test -n "$CPP" && test -d "$CPP"; then
5663 CPP=
5665 if test -z "$CPP"; then
5666 if test "${ac_cv_prog_CPP+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669 # Double quotes because CPP needs to be expanded
5670 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5672 ac_preproc_ok=false
5673 for ac_c_preproc_warn_flag in '' yes
5675 # Use a header file that comes with gcc, so configuring glibc
5676 # with a fresh cross-compiler works.
5677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5678 # <limits.h> exists even on freestanding compilers.
5679 # On the NeXT, cc -E runs the code through the compiler's parser,
5680 # not just through cpp. "Syntax error" is here to catch this case.
5681 cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h. */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 #ifdef __STDC__
5688 # include <limits.h>
5689 #else
5690 # include <assert.h>
5691 #endif
5692 Syntax error
5693 _ACEOF
5694 if { (ac_try="$ac_cpp conftest.$ac_ext"
5695 case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698 esac
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } >/dev/null && {
5707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5708 test ! -s conftest.err
5709 }; then
5711 else
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5715 # Broken: fails on valid input.
5716 continue
5719 rm -f conftest.err conftest.$ac_ext
5721 # OK, works on sane cases. Now check whether nonexistent headers
5722 # can be detected and how.
5723 cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 #include <ac_nonexistent.h>
5730 _ACEOF
5731 if { (ac_try="$ac_cpp conftest.$ac_ext"
5732 case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735 esac
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } >/dev/null && {
5744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5745 test ! -s conftest.err
5746 }; then
5747 # Broken: success on invalid input.
5748 continue
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 # Passes both tests.
5754 ac_preproc_ok=:
5755 break
5758 rm -f conftest.err conftest.$ac_ext
5760 done
5761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5762 rm -f conftest.err conftest.$ac_ext
5763 if $ac_preproc_ok; then
5764 break
5767 done
5768 ac_cv_prog_CPP=$CPP
5771 CPP=$ac_cv_prog_CPP
5772 else
5773 ac_cv_prog_CPP=$CPP
5775 { echo "$as_me:$LINENO: result: $CPP" >&5
5776 echo "${ECHO_T}$CPP" >&6; }
5777 ac_preproc_ok=false
5778 for ac_c_preproc_warn_flag in '' yes
5780 # Use a header file that comes with gcc, so configuring glibc
5781 # with a fresh cross-compiler works.
5782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5783 # <limits.h> exists even on freestanding compilers.
5784 # On the NeXT, cc -E runs the code through the compiler's parser,
5785 # not just through cpp. "Syntax error" is here to catch this case.
5786 cat >conftest.$ac_ext <<_ACEOF
5787 /* confdefs.h. */
5788 _ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 #ifdef __STDC__
5793 # include <limits.h>
5794 #else
5795 # include <assert.h>
5796 #endif
5797 Syntax error
5798 _ACEOF
5799 if { (ac_try="$ac_cpp conftest.$ac_ext"
5800 case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } >/dev/null && {
5812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 }; then
5816 else
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5820 # Broken: fails on valid input.
5821 continue
5824 rm -f conftest.err conftest.$ac_ext
5826 # OK, works on sane cases. Now check whether nonexistent headers
5827 # can be detected and how.
5828 cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h. */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #include <ac_nonexistent.h>
5835 _ACEOF
5836 if { (ac_try="$ac_cpp conftest.$ac_ext"
5837 case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840 esac
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } >/dev/null && {
5849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 }; then
5852 # Broken: success on invalid input.
5853 continue
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858 # Passes both tests.
5859 ac_preproc_ok=:
5860 break
5863 rm -f conftest.err conftest.$ac_ext
5865 done
5866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5867 rm -f conftest.err conftest.$ac_ext
5868 if $ac_preproc_ok; then
5870 else
5871 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5872 See \`config.log' for more details." >&5
5873 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5874 See \`config.log' for more details." >&2;}
5875 { (exit 1); exit 1; }; }
5878 ac_ext=c
5879 ac_cpp='$CPP $CPPFLAGS'
5880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5884 ac_ext=cpp
5885 ac_cpp='$CXXCPP $CPPFLAGS'
5886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5889 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5890 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5891 if test -z "$CXXCPP"; then
5892 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895 # Double quotes because CXXCPP needs to be expanded
5896 for CXXCPP in "$CXX -E" "/lib/cpp"
5898 ac_preproc_ok=false
5899 for ac_cxx_preproc_warn_flag in '' yes
5901 # Use a header file that comes with gcc, so configuring glibc
5902 # with a fresh cross-compiler works.
5903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5904 # <limits.h> exists even on freestanding compilers.
5905 # On the NeXT, cc -E runs the code through the compiler's parser,
5906 # not just through cpp. "Syntax error" is here to catch this case.
5907 cat >conftest.$ac_ext <<_ACEOF
5908 /* confdefs.h. */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913 #ifdef __STDC__
5914 # include <limits.h>
5915 #else
5916 # include <assert.h>
5917 #endif
5918 Syntax error
5919 _ACEOF
5920 if { (ac_try="$ac_cpp conftest.$ac_ext"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } >/dev/null && {
5933 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5934 test ! -s conftest.err
5935 }; then
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 # Broken: fails on valid input.
5942 continue
5945 rm -f conftest.err conftest.$ac_ext
5947 # OK, works on sane cases. Now check whether nonexistent headers
5948 # can be detected and how.
5949 cat >conftest.$ac_ext <<_ACEOF
5950 /* confdefs.h. */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5955 #include <ac_nonexistent.h>
5956 _ACEOF
5957 if { (ac_try="$ac_cpp conftest.$ac_ext"
5958 case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961 esac
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5964 ac_status=$?
5965 grep -v '^ *+' conftest.er1 >conftest.err
5966 rm -f conftest.er1
5967 cat conftest.err >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } >/dev/null && {
5970 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5971 test ! -s conftest.err
5972 }; then
5973 # Broken: success on invalid input.
5974 continue
5975 else
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5979 # Passes both tests.
5980 ac_preproc_ok=:
5981 break
5984 rm -f conftest.err conftest.$ac_ext
5986 done
5987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5988 rm -f conftest.err conftest.$ac_ext
5989 if $ac_preproc_ok; then
5990 break
5993 done
5994 ac_cv_prog_CXXCPP=$CXXCPP
5997 CXXCPP=$ac_cv_prog_CXXCPP
5998 else
5999 ac_cv_prog_CXXCPP=$CXXCPP
6001 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6002 echo "${ECHO_T}$CXXCPP" >&6; }
6003 ac_preproc_ok=false
6004 for ac_cxx_preproc_warn_flag in '' yes
6006 # Use a header file that comes with gcc, so configuring glibc
6007 # with a fresh cross-compiler works.
6008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6009 # <limits.h> exists even on freestanding compilers.
6010 # On the NeXT, cc -E runs the code through the compiler's parser,
6011 # not just through cpp. "Syntax error" is here to catch this case.
6012 cat >conftest.$ac_ext <<_ACEOF
6013 /* confdefs.h. */
6014 _ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h. */
6018 #ifdef __STDC__
6019 # include <limits.h>
6020 #else
6021 # include <assert.h>
6022 #endif
6023 Syntax error
6024 _ACEOF
6025 if { (ac_try="$ac_cpp conftest.$ac_ext"
6026 case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029 esac
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6032 ac_status=$?
6033 grep -v '^ *+' conftest.er1 >conftest.err
6034 rm -f conftest.er1
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } >/dev/null && {
6038 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6039 test ! -s conftest.err
6040 }; then
6042 else
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6046 # Broken: fails on valid input.
6047 continue
6050 rm -f conftest.err conftest.$ac_ext
6052 # OK, works on sane cases. Now check whether nonexistent headers
6053 # can be detected and how.
6054 cat >conftest.$ac_ext <<_ACEOF
6055 /* confdefs.h. */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 #include <ac_nonexistent.h>
6061 _ACEOF
6062 if { (ac_try="$ac_cpp conftest.$ac_ext"
6063 case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066 esac
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6069 ac_status=$?
6070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } >/dev/null && {
6075 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6076 test ! -s conftest.err
6077 }; then
6078 # Broken: success on invalid input.
6079 continue
6080 else
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 # Passes both tests.
6085 ac_preproc_ok=:
6086 break
6089 rm -f conftest.err conftest.$ac_ext
6091 done
6092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6093 rm -f conftest.err conftest.$ac_ext
6094 if $ac_preproc_ok; then
6096 else
6097 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6098 See \`config.log' for more details." >&5
6099 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6100 See \`config.log' for more details." >&2;}
6101 { (exit 1); exit 1; }; }
6104 ac_ext=c
6105 ac_cpp='$CPP $CPPFLAGS'
6106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6110 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6111 # the developers regenerating the configure script don't have to install libtool.
6112 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6113 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6114 if test "${ac_cv_path_SED+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6118 for ac_i in 1 2 3 4 5 6 7; do
6119 ac_script="$ac_script$as_nl$ac_script"
6120 done
6121 echo "$ac_script" | sed 99q >conftest.sed
6122 $as_unset ac_script || ac_script=
6123 # Extract the first word of "sed gsed" to use in msg output
6124 if test -z "$SED"; then
6125 set dummy sed gsed; ac_prog_name=$2
6126 if test "${ac_cv_path_SED+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129 ac_path_SED_found=false
6130 # Loop through the user's path and test for each of PROGNAME-LIST
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_prog in sed gsed; do
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6139 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6140 # Check for GNU ac_path_SED and select it if it is found.
6141 # Check for GNU $ac_path_SED
6142 case `"$ac_path_SED" --version 2>&1` in
6143 *GNU*)
6144 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6146 ac_count=0
6147 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6148 while :
6150 cat "conftest.in" "conftest.in" >"conftest.tmp"
6151 mv "conftest.tmp" "conftest.in"
6152 cp "conftest.in" "conftest.nl"
6153 echo '' >> "conftest.nl"
6154 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6156 ac_count=`expr $ac_count + 1`
6157 if test $ac_count -gt ${ac_path_SED_max-0}; then
6158 # Best one so far, save it but keep looking for a better one
6159 ac_cv_path_SED="$ac_path_SED"
6160 ac_path_SED_max=$ac_count
6162 # 10*(2^10) chars as input seems more than enough
6163 test $ac_count -gt 10 && break
6164 done
6165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6166 esac
6169 $ac_path_SED_found && break 3
6170 done
6171 done
6173 done
6174 IFS=$as_save_IFS
6179 SED="$ac_cv_path_SED"
6180 if test -z "$SED"; then
6181 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6182 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6183 { (exit 1); exit 1; }; }
6186 else
6187 ac_cv_path_SED=$SED
6191 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6192 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6193 SED="$ac_cv_path_SED"
6194 rm -f conftest.sed
6196 { echo "$as_me:$LINENO: checking for egrep" >&5
6197 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6198 if test "${ac_cv_prog_egrep+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6202 then ac_cv_prog_egrep='grep -E'
6203 else ac_cv_prog_egrep='egrep'
6206 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6207 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6208 EGREP=$ac_cv_prog_egrep
6212 # Check whether --with-gnu-ld was given.
6213 if test "${with_gnu_ld+set}" = set; then
6214 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6215 else
6216 with_gnu_ld=no
6219 ac_prog=ld
6220 if test "$GCC" = yes; then
6221 # Check if gcc -print-prog-name=ld gives a path.
6222 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6223 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6224 case $host in
6225 *-*-mingw*)
6226 # gcc leaves a trailing carriage return which upsets mingw
6227 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6229 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6230 esac
6231 case $ac_prog in
6232 # Accept absolute paths.
6233 [\\/]* | ?:[\\/]*)
6234 re_direlt='/[^/][^/]*/\.\./'
6235 # Canonicalize the pathname of ld
6236 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6237 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6238 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6239 done
6240 test -z "$LD" && LD="$ac_prog"
6243 # If it fails, then pretend we aren't using GCC.
6244 ac_prog=ld
6247 # If it is relative, then search for the first ld in PATH.
6248 with_gnu_ld=unknown
6250 esac
6251 elif test "$with_gnu_ld" = yes; then
6252 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6253 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6254 else
6255 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6256 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6258 if test "${lt_cv_path_LD+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261 if test -z "$LD"; then
6262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6263 for ac_dir in $PATH; do
6264 IFS="$lt_save_ifs"
6265 test -z "$ac_dir" && ac_dir=.
6266 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6267 lt_cv_path_LD="$ac_dir/$ac_prog"
6268 # Check to see if the program is GNU ld. I'd rather use --version,
6269 # but apparently some variants of GNU ld only accept -v.
6270 # Break only if it was the GNU/non-GNU ld that we prefer.
6271 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6272 *GNU* | *'with BFD'*)
6273 test "$with_gnu_ld" != no && break
6276 test "$with_gnu_ld" != yes && break
6278 esac
6280 done
6281 IFS="$lt_save_ifs"
6282 else
6283 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6287 LD="$lt_cv_path_LD"
6288 if test -n "$LD"; then
6289 { echo "$as_me:$LINENO: result: $LD" >&5
6290 echo "${ECHO_T}$LD" >&6; }
6291 else
6292 { echo "$as_me:$LINENO: result: no" >&5
6293 echo "${ECHO_T}no" >&6; }
6295 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6296 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6297 { (exit 1); exit 1; }; }
6298 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6299 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6300 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6304 case `$LD -v 2>&1 </dev/null` in
6305 *GNU* | *'with BFD'*)
6306 lt_cv_prog_gnu_ld=yes
6309 lt_cv_prog_gnu_ld=no
6311 esac
6313 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6314 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6315 with_gnu_ld=$lt_cv_prog_gnu_ld
6317 # note, does not work on FreeBSD
6318 for ac_prog in gawk mawk nawk awk
6320 # Extract the first word of "$ac_prog", so it can be a program name with args.
6321 set dummy $ac_prog; ac_word=$2
6322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6324 if test "${ac_cv_prog_AWK+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327 if test -n "$AWK"; then
6328 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_prog_AWK="$ac_prog"
6338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6341 done
6342 done
6343 IFS=$as_save_IFS
6347 AWK=$ac_cv_prog_AWK
6348 if test -n "$AWK"; then
6349 { echo "$as_me:$LINENO: result: $AWK" >&5
6350 echo "${ECHO_T}$AWK" >&6; }
6351 else
6352 { echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6; }
6357 test -n "$AWK" && break
6358 done
6360 # Find a good install program. We prefer a C program (faster),
6361 # so one script is as good as another. But avoid the broken or
6362 # incompatible versions:
6363 # SysV /etc/install, /usr/sbin/install
6364 # SunOS /usr/etc/install
6365 # IRIX /sbin/install
6366 # AIX /bin/install
6367 # AmigaOS /C/install, which installs bootblocks on floppy discs
6368 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6369 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6370 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6371 # OS/2's system install, which has a completely different semantic
6372 # ./install, which can be erroneously created by make from ./install.sh.
6373 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6374 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6375 if test -z "$INSTALL"; then
6376 if test "${ac_cv_path_install+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 # Account for people who put trailing slashes in PATH elements.
6385 case $as_dir/ in
6386 ./ | .// | /cC/* | \
6387 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6388 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6389 /usr/ucb/* ) ;;
6391 # OSF1 and SCO ODT 3.0 have their own names for install.
6392 # Don't use installbsd from OSF since it installs stuff as root
6393 # by default.
6394 for ac_prog in ginstall scoinst install; do
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6397 if test $ac_prog = install &&
6398 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6399 # AIX install. It has an incompatible calling convention.
6401 elif test $ac_prog = install &&
6402 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6403 # program-specific install script used by HP pwplus--don't use.
6405 else
6406 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6407 break 3
6410 done
6411 done
6413 esac
6414 done
6415 IFS=$as_save_IFS
6419 if test "${ac_cv_path_install+set}" = set; then
6420 INSTALL=$ac_cv_path_install
6421 else
6422 # As a last resort, use the slow shell script. Don't cache a
6423 # value for INSTALL within a source directory, because that will
6424 # break other packages using the cache if that directory is
6425 # removed, or if the value is a relative name.
6426 INSTALL=$ac_install_sh
6429 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6430 echo "${ECHO_T}$INSTALL" >&6; }
6432 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6433 # It thinks the first close brace ends the variable substitution.
6434 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6436 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6438 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6440 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6441 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6442 LN_S=$as_ln_s
6443 if test "$LN_S" = "ln -s"; then
6444 { echo "$as_me:$LINENO: result: yes" >&5
6445 echo "${ECHO_T}yes" >&6; }
6446 else
6447 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6448 echo "${ECHO_T}no, using $LN_S" >&6; }
6451 if test -n "$ac_tool_prefix"; then
6452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6456 if test "${ac_cv_prog_RANLIB+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459 if test -n "$RANLIB"; then
6460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6473 done
6474 done
6475 IFS=$as_save_IFS
6479 RANLIB=$ac_cv_prog_RANLIB
6480 if test -n "$RANLIB"; then
6481 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6482 echo "${ECHO_T}$RANLIB" >&6; }
6483 else
6484 { echo "$as_me:$LINENO: result: no" >&5
6485 echo "${ECHO_T}no" >&6; }
6490 if test -z "$ac_cv_prog_RANLIB"; then
6491 ac_ct_RANLIB=$RANLIB
6492 # Extract the first word of "ranlib", so it can be a program name with args.
6493 set dummy ranlib; ac_word=$2
6494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6496 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499 if test -n "$ac_ct_RANLIB"; then
6500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_ac_ct_RANLIB="ranlib"
6510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6513 done
6514 done
6515 IFS=$as_save_IFS
6519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6520 if test -n "$ac_ct_RANLIB"; then
6521 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6522 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6523 else
6524 { echo "$as_me:$LINENO: result: no" >&5
6525 echo "${ECHO_T}no" >&6; }
6528 if test "x$ac_ct_RANLIB" = x; then
6529 RANLIB=":"
6530 else
6531 case $cross_compiling:$ac_tool_warned in
6532 yes:)
6533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6534 whose name does not start with the host triplet. If you think this
6535 configuration is useful to you, please write to autoconf@gnu.org." >&5
6536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6537 whose name does not start with the host triplet. If you think this
6538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6539 ac_tool_warned=yes ;;
6540 esac
6541 RANLIB=$ac_ct_RANLIB
6543 else
6544 RANLIB="$ac_cv_prog_RANLIB"
6547 { echo "$as_me:$LINENO: checking for GNU make" >&5
6548 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6549 if test "${GNU_MAKE+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552 GNU_MAKE='Not Found' ;
6553 GNU_MAKE_VERSION_MAJOR=0 ;
6554 GNU_MAKE_VERSION_MINOR=0 ;
6555 for a in make gmake gnumake ; do
6556 if test -z "$a" ; then continue ; fi ;
6557 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6558 GNU_MAKE=$a ;
6559 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6560 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6561 break;
6563 done ;
6566 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6567 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6568 if test "x$GNU_MAKE" = "xNot Found" ; then
6569 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6570 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6571 { (exit 1); exit 1; }; }
6572 exit 1
6577 if test -n "$ac_tool_prefix"; then
6578 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6579 set dummy ${ac_tool_prefix}strip; ac_word=$2
6580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582 if test "${ac_cv_path_STRIP+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585 case $STRIP in
6586 [\\/]* | ?:[\\/]*)
6587 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6601 done
6602 done
6603 IFS=$as_save_IFS
6606 esac
6608 STRIP=$ac_cv_path_STRIP
6609 if test -n "$STRIP"; then
6610 { echo "$as_me:$LINENO: result: $STRIP" >&5
6611 echo "${ECHO_T}$STRIP" >&6; }
6612 else
6613 { echo "$as_me:$LINENO: result: no" >&5
6614 echo "${ECHO_T}no" >&6; }
6619 if test -z "$ac_cv_path_STRIP"; then
6620 ac_pt_STRIP=$STRIP
6621 # Extract the first word of "strip", so it can be a program name with args.
6622 set dummy strip; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 case $ac_pt_STRIP in
6629 [\\/]* | ?:[\\/]*)
6630 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
6644 done
6645 done
6646 IFS=$as_save_IFS
6649 esac
6651 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6652 if test -n "$ac_pt_STRIP"; then
6653 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6654 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6655 else
6656 { echo "$as_me:$LINENO: result: no" >&5
6657 echo "${ECHO_T}no" >&6; }
6660 if test "x$ac_pt_STRIP" = x; then
6661 STRIP=":"
6662 else
6663 case $cross_compiling:$ac_tool_warned in
6664 yes:)
6665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6666 whose name does not start with the host triplet. If you think this
6667 configuration is useful to you, please write to autoconf@gnu.org." >&5
6668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6669 whose name does not start with the host triplet. If you think this
6670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6671 ac_tool_warned=yes ;;
6672 esac
6673 STRIP=$ac_pt_STRIP
6675 else
6676 STRIP="$ac_cv_path_STRIP"
6679 if test -n "$ac_tool_prefix"; then
6680 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}ar; ac_word=$2
6682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6684 if test "${ac_cv_path_AR+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687 case $AR in
6688 [\\/]* | ?:[\\/]*)
6689 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6703 done
6704 done
6705 IFS=$as_save_IFS
6708 esac
6710 AR=$ac_cv_path_AR
6711 if test -n "$AR"; then
6712 { echo "$as_me:$LINENO: result: $AR" >&5
6713 echo "${ECHO_T}$AR" >&6; }
6714 else
6715 { echo "$as_me:$LINENO: result: no" >&5
6716 echo "${ECHO_T}no" >&6; }
6721 if test -z "$ac_cv_path_AR"; then
6722 ac_pt_AR=$AR
6723 # Extract the first word of "ar", so it can be a program name with args.
6724 set dummy ar; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730 case $ac_pt_AR in
6731 [\\/]* | ?:[\\/]*)
6732 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6746 done
6747 done
6748 IFS=$as_save_IFS
6751 esac
6753 ac_pt_AR=$ac_cv_path_ac_pt_AR
6754 if test -n "$ac_pt_AR"; then
6755 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6756 echo "${ECHO_T}$ac_pt_AR" >&6; }
6757 else
6758 { echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6; }
6762 if test "x$ac_pt_AR" = x; then
6763 AR=":"
6764 else
6765 case $cross_compiling:$ac_tool_warned in
6766 yes:)
6767 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6768 whose name does not start with the host triplet. If you think this
6769 configuration is useful to you, please write to autoconf@gnu.org." >&5
6770 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6771 whose name does not start with the host triplet. If you think this
6772 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6773 ac_tool_warned=yes ;;
6774 esac
6775 AR=$ac_pt_AR
6777 else
6778 AR="$ac_cv_path_AR"
6782 GNU_LD=0
6783 if test "x$with_gnu_ld" = "xyes" ; then
6784 GNU_LD=1
6788 # Extract the first word of "grep", so it can be a program name with args.
6789 set dummy grep; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_path_GREP+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 case $GREP in
6796 [\\/]* | ?:[\\/]*)
6797 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6811 done
6812 done
6813 IFS=$as_save_IFS
6815 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6817 esac
6819 GREP=$ac_cv_path_GREP
6820 if test -n "$GREP"; then
6821 { echo "$as_me:$LINENO: result: $GREP" >&5
6822 echo "${ECHO_T}$GREP" >&6; }
6823 else
6824 { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6829 # Extract the first word of "find", so it can be a program name with args.
6830 set dummy find; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_FIND+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836 case $FIND in
6837 [\\/]* | ?:[\\/]*)
6838 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6852 done
6853 done
6854 IFS=$as_save_IFS
6856 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6858 esac
6860 FIND=$ac_cv_path_FIND
6861 if test -n "$FIND"; then
6862 { echo "$as_me:$LINENO: result: $FIND" >&5
6863 echo "${ECHO_T}$FIND" >&6; }
6864 else
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6870 # Extract the first word of "compress", so it can be a program name with args.
6871 set dummy compress; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_path_COMPRESS+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 case $COMPRESS in
6878 [\\/]* | ?:[\\/]*)
6879 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6893 done
6894 done
6895 IFS=$as_save_IFS
6897 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6899 esac
6901 COMPRESS=$ac_cv_path_COMPRESS
6902 if test -n "$COMPRESS"; then
6903 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6904 echo "${ECHO_T}$COMPRESS" >&6; }
6905 else
6906 { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6911 # Extract the first word of "basename", so it can be a program name with args.
6912 set dummy basename; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_path_BASENAME+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918 case $BASENAME in
6919 [\\/]* | ?:[\\/]*)
6920 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6934 done
6935 done
6936 IFS=$as_save_IFS
6938 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6940 esac
6942 BASENAME=$ac_cv_path_BASENAME
6943 if test -n "$BASENAME"; then
6944 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6945 echo "${ECHO_T}$BASENAME" >&6; }
6946 else
6947 { echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6; }
6952 # Extract the first word of "id", so it can be a program name with args.
6953 set dummy id; ac_word=$2
6954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956 if test "${ac_cv_path_ID+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959 case $ID in
6960 [\\/]* | ?:[\\/]*)
6961 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6971 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6975 done
6976 done
6977 IFS=$as_save_IFS
6979 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6981 esac
6983 ID=$ac_cv_path_ID
6984 if test -n "$ID"; then
6985 { echo "$as_me:$LINENO: result: $ID" >&5
6986 echo "${ECHO_T}$ID" >&6; }
6987 else
6988 { echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6; }
6993 # Extract the first word of "dirname", so it can be a program name with args.
6994 set dummy dirname; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_DIRNAME+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000 case $DIRNAME in
7001 [\\/]* | ?:[\\/]*)
7002 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7016 done
7017 done
7018 IFS=$as_save_IFS
7020 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
7022 esac
7024 DIRNAME=$ac_cv_path_DIRNAME
7025 if test -n "$DIRNAME"; then
7026 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
7027 echo "${ECHO_T}$DIRNAME" >&6; }
7028 else
7029 { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7034 # Extract the first word of "sh", so it can be a program name with args.
7035 set dummy sh; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_SHELL+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041 case $SHELL in
7042 [\\/]* | ?:[\\/]*)
7043 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7057 done
7058 done
7059 IFS=$as_save_IFS
7061 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7063 esac
7065 SHELL=$ac_cv_path_SHELL
7066 if test -n "$SHELL"; then
7067 { echo "$as_me:$LINENO: result: $SHELL" >&5
7068 echo "${ECHO_T}$SHELL" >&6; }
7069 else
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7075 # Extract the first word of "ln", so it can be a program name with args.
7076 set dummy ln; ac_word=$2
7077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079 if test "${ac_cv_path_LN+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082 case $LN in
7083 [\\/]* | ?:[\\/]*)
7084 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7098 done
7099 done
7100 IFS=$as_save_IFS
7102 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7104 esac
7106 LN=$ac_cv_path_LN
7107 if test -n "$LN"; then
7108 { echo "$as_me:$LINENO: result: $LN" >&5
7109 echo "${ECHO_T}$LN" >&6; }
7110 else
7111 { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7116 # Extract the first word of "dot", so it can be a program name with args.
7117 set dummy dot; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_path_DOT+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123 case $DOT in
7124 [\\/]* | ?:[\\/]*)
7125 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7139 done
7140 done
7141 IFS=$as_save_IFS
7143 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7145 esac
7147 DOT=$ac_cv_path_DOT
7148 if test -n "$DOT"; then
7149 { echo "$as_me:$LINENO: result: $DOT" >&5
7150 echo "${ECHO_T}$DOT" >&6; }
7151 else
7152 { echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6; }
7157 # Extract the first word of "wget", so it can be a program name with args.
7158 set dummy wget; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_path_WGET+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 case $WGET in
7165 [\\/]* | ?:[\\/]*)
7166 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7180 done
7181 done
7182 IFS=$as_save_IFS
7184 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7186 esac
7188 WGET=$ac_cv_path_WGET
7189 if test -n "$WGET"; then
7190 { echo "$as_me:$LINENO: result: $WGET" >&5
7191 echo "${ECHO_T}$WGET" >&6; }
7192 else
7193 { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7198 # Extract the first word of "rubber", so it can be a program name with args.
7199 set dummy rubber; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_RUBBER+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205 case $RUBBER in
7206 [\\/]* | ?:[\\/]*)
7207 ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7221 done
7222 done
7223 IFS=$as_save_IFS
7225 test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
7227 esac
7229 RUBBER=$ac_cv_path_RUBBER
7230 if test -n "$RUBBER"; then
7231 { echo "$as_me:$LINENO: result: $RUBBER" >&5
7232 echo "${ECHO_T}$RUBBER" >&6; }
7233 else
7234 { echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6; }
7239 # Extract the first word of "kpsewhich", so it can be a program name with args.
7240 set dummy kpsewhich; ac_word=$2
7241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7243 if test "${ac_cv_path_KPATHSEA+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246 case $KPATHSEA in
7247 [\\/]* | ?:[\\/]*)
7248 ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7258 ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
7259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 break 2
7262 done
7263 done
7264 IFS=$as_save_IFS
7266 test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
7268 esac
7270 KPATHSEA=$ac_cv_path_KPATHSEA
7271 if test -n "$KPATHSEA"; then
7272 { echo "$as_me:$LINENO: result: $KPATHSEA" >&5
7273 echo "${ECHO_T}$KPATHSEA" >&6; }
7274 else
7275 { echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6; }
7280 if test "${WGET}" != ":" ; then
7281 DOWNLOAD=${WGET}
7282 else
7283 # Extract the first word of "fetch", so it can be a program name with args.
7284 set dummy fetch; ac_word=$2
7285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7287 if test "${ac_cv_path_FETCH+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 else
7290 case $FETCH in
7291 [\\/]* | ?:[\\/]*)
7292 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7306 done
7307 done
7308 IFS=$as_save_IFS
7310 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7312 esac
7314 FETCH=$ac_cv_path_FETCH
7315 if test -n "$FETCH"; then
7316 { echo "$as_me:$LINENO: result: $FETCH" >&5
7317 echo "${ECHO_T}$FETCH" >&6; }
7318 else
7319 { echo "$as_me:$LINENO: result: no" >&5
7320 echo "${ECHO_T}no" >&6; }
7324 DOWNLOAD=${FETCH}
7328 if test -n "$ac_tool_prefix"; then
7329 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7330 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7333 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336 if test -n "$SOXMIX"; then
7337 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7338 else
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7346 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 break 2
7350 done
7351 done
7352 IFS=$as_save_IFS
7356 SOXMIX=$ac_cv_prog_SOXMIX
7357 if test -n "$SOXMIX"; then
7358 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7359 echo "${ECHO_T}$SOXMIX" >&6; }
7360 else
7361 { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7367 if test -z "$ac_cv_prog_SOXMIX"; then
7368 ac_ct_SOXMIX=$SOXMIX
7369 # Extract the first word of "soxmix", so it can be a program name with args.
7370 set dummy soxmix; ac_word=$2
7371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7373 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376 if test -n "$ac_ct_SOXMIX"; then
7377 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7390 done
7391 done
7392 IFS=$as_save_IFS
7396 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7397 if test -n "$ac_ct_SOXMIX"; then
7398 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7399 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7400 else
7401 { echo "$as_me:$LINENO: result: no" >&5
7402 echo "${ECHO_T}no" >&6; }
7405 if test "x$ac_ct_SOXMIX" = x; then
7406 SOXMIX=":"
7407 else
7408 case $cross_compiling:$ac_tool_warned in
7409 yes:)
7410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7411 whose name does not start with the host triplet. If you think this
7412 configuration is useful to you, please write to autoconf@gnu.org." >&5
7413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7414 whose name does not start with the host triplet. If you think this
7415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7416 ac_tool_warned=yes ;;
7417 esac
7418 SOXMIX=$ac_ct_SOXMIX
7420 else
7421 SOXMIX="$ac_cv_prog_SOXMIX"
7424 if test "${SOXMIX}" != ":" ; then
7426 cat >>confdefs.h <<\_ACEOF
7427 #define HAVE_SOXMIX 1
7428 _ACEOF
7435 ac_ext=c
7436 ac_cpp='$CPP $CPPFLAGS'
7437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7441 acx_pthread_ok=no
7443 # We used to check for pthread.h first, but this fails if pthread.h
7444 # requires special compiler flags (e.g. on True64 or Sequent).
7445 # It gets checked for in the link test anyway.
7447 # First of all, check if the user has set any of the PTHREAD_LIBS,
7448 # etcetera environment variables, and if threads linking works using
7449 # them:
7450 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7451 save_CFLAGS="$CFLAGS"
7452 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7453 save_LIBS="$LIBS"
7454 LIBS="$PTHREAD_LIBS $LIBS"
7455 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7456 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7457 cat >conftest.$ac_ext <<_ACEOF
7458 /* confdefs.h. */
7459 _ACEOF
7460 cat confdefs.h >>conftest.$ac_ext
7461 cat >>conftest.$ac_ext <<_ACEOF
7462 /* end confdefs.h. */
7464 /* Override any GCC internal prototype to avoid an error.
7465 Use char because int might match the return type of a GCC
7466 builtin and then its argument prototype would still apply. */
7467 #ifdef __cplusplus
7468 extern "C"
7469 #endif
7470 char pthread_join ();
7472 main ()
7474 return pthread_join ();
7476 return 0;
7478 _ACEOF
7479 rm -f conftest.$ac_objext conftest$ac_exeext
7480 if { (ac_try="$ac_link"
7481 case "(($ac_try" in
7482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7483 *) ac_try_echo=$ac_try;;
7484 esac
7485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7486 (eval "$ac_link") 2>conftest.er1
7487 ac_status=$?
7488 grep -v '^ *+' conftest.er1 >conftest.err
7489 rm -f conftest.er1
7490 cat conftest.err >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } && {
7493 test -z "$ac_c_werror_flag" ||
7494 test ! -s conftest.err
7495 } && test -s conftest$ac_exeext &&
7496 $as_test_x conftest$ac_exeext; then
7497 acx_pthread_ok=yes
7498 else
7499 echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7506 conftest$ac_exeext conftest.$ac_ext
7507 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7508 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7509 if test x"$acx_pthread_ok" = xno; then
7510 PTHREAD_LIBS=""
7511 PTHREAD_CFLAGS=""
7513 LIBS="$save_LIBS"
7514 CFLAGS="$save_CFLAGS"
7517 # We must check for the threads library under a number of different
7518 # names; the ordering is very important because some systems
7519 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7520 # libraries is broken (non-POSIX).
7522 # Create a list of thread flags to try. Items starting with a "-" are
7523 # C compiler flags, and other items are library names, except for "none"
7524 # which indicates that we try without any flags at all, and "pthread-config"
7525 # which is a program returning the flags for the Pth emulation library.
7527 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7529 # The ordering *is* (sometimes) important. Some notes on the
7530 # individual items follow:
7532 # pthreads: AIX (must check this before -lpthread)
7533 # none: in case threads are in libc; should be tried before -Kthread and
7534 # other compiler flags to prevent continual compiler warnings
7535 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7536 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7537 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7538 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7539 # -pthreads: Solaris/gcc
7540 # -mthreads: Mingw32/gcc, Lynx/gcc
7541 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7542 # doesn't hurt to check since this sometimes defines pthreads too;
7543 # also defines -D_REENTRANT)
7544 # ... -mt is also the pthreads flag for HP/aCC
7545 # pthread: Linux, etcetera
7546 # --thread-safe: KAI C++
7547 # pthread-config: use pthread-config program (for GNU Pth library)
7549 case "${host_cpu}-${host_os}" in
7550 *solaris*)
7552 # On Solaris (at least, for some versions), libc contains stubbed
7553 # (non-functional) versions of the pthreads routines, so link-based
7554 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7555 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7556 # a function called by this macro, so we could check for that, but
7557 # who knows whether they'll stub that too in a future libc.) So,
7558 # we'll just look for -pthreads and -lpthread first:
7560 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7562 esac
7564 if test x"$acx_pthread_ok" = xno; then
7565 for flag in $acx_pthread_flags; do
7567 case $flag in
7568 none)
7569 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7570 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7574 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7575 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7576 PTHREAD_CFLAGS="$flag"
7579 pthread-config)
7580 # Extract the first word of "pthread-config", so it can be a program name with args.
7581 set dummy pthread-config; ac_word=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 if test -n "$acx_pthread_config"; then
7588 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7589 else
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_prog_acx_pthread_config="yes"
7598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 break 2
7601 done
7602 done
7603 IFS=$as_save_IFS
7605 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7608 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7609 if test -n "$acx_pthread_config"; then
7610 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7611 echo "${ECHO_T}$acx_pthread_config" >&6; }
7612 else
7613 { echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6; }
7618 if test x"$acx_pthread_config" = xno; then continue; fi
7619 PTHREAD_CFLAGS="`pthread-config --cflags`"
7620 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7624 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7625 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7626 PTHREAD_LIBS="-l$flag"
7628 esac
7630 save_LIBS="$LIBS"
7631 save_CFLAGS="$CFLAGS"
7632 LIBS="$PTHREAD_LIBS $LIBS"
7633 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7635 # Check for various functions. We must include pthread.h,
7636 # since some functions may be macros. (On the Sequent, we
7637 # need a special flag -Kthread to make this header compile.)
7638 # We check for pthread_join because it is in -lpthread on IRIX
7639 # while pthread_create is in libc. We check for pthread_attr_init
7640 # due to DEC craziness with -lpthreads. We check for
7641 # pthread_cleanup_push because it is one of the few pthread
7642 # functions on Solaris that doesn't have a non-functional libc stub.
7643 # We try pthread_create on general principles.
7644 cat >conftest.$ac_ext <<_ACEOF
7645 /* confdefs.h. */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650 #include <pthread.h>
7652 main ()
7654 pthread_t th; pthread_join(th, 0);
7655 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7656 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7658 return 0;
7660 _ACEOF
7661 rm -f conftest.$ac_objext conftest$ac_exeext
7662 if { (ac_try="$ac_link"
7663 case "(($ac_try" in
7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7666 esac
7667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668 (eval "$ac_link") 2>conftest.er1
7669 ac_status=$?
7670 grep -v '^ *+' conftest.er1 >conftest.err
7671 rm -f conftest.er1
7672 cat conftest.err >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } && {
7675 test -z "$ac_c_werror_flag" ||
7676 test ! -s conftest.err
7677 } && test -s conftest$ac_exeext &&
7678 $as_test_x conftest$ac_exeext; then
7679 acx_pthread_ok=yes
7680 else
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7688 conftest$ac_exeext conftest.$ac_ext
7690 LIBS="$save_LIBS"
7691 CFLAGS="$save_CFLAGS"
7693 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7694 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7695 if test "x$acx_pthread_ok" = xyes; then
7696 break;
7699 PTHREAD_LIBS=""
7700 PTHREAD_CFLAGS=""
7701 done
7704 # Various other checks:
7705 if test "x$acx_pthread_ok" = xyes; then
7706 save_LIBS="$LIBS"
7707 LIBS="$PTHREAD_LIBS $LIBS"
7708 save_CFLAGS="$CFLAGS"
7709 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7711 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7712 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7713 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7714 attr_name=unknown
7715 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7722 #include <pthread.h>
7724 main ()
7726 int attr=$attr; return attr;
7728 return 0;
7730 _ACEOF
7731 rm -f conftest.$ac_objext conftest$ac_exeext
7732 if { (ac_try="$ac_link"
7733 case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_link") 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest$ac_exeext &&
7748 $as_test_x conftest$ac_exeext; then
7749 attr_name=$attr; break
7750 else
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7758 conftest$ac_exeext conftest.$ac_ext
7759 done
7760 { echo "$as_me:$LINENO: result: $attr_name" >&5
7761 echo "${ECHO_T}$attr_name" >&6; }
7762 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7764 cat >>confdefs.h <<_ACEOF
7765 #define PTHREAD_CREATE_JOINABLE $attr_name
7766 _ACEOF
7770 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7771 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7772 flag=no
7773 case "${host_cpu}-${host_os}" in
7774 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7775 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7776 esac
7777 { echo "$as_me:$LINENO: result: ${flag}" >&5
7778 echo "${ECHO_T}${flag}" >&6; }
7779 if test "x$flag" != xno; then
7780 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7783 LIBS="$save_LIBS"
7784 CFLAGS="$save_CFLAGS"
7786 # More AIX lossage: must compile with xlc_r or cc_r
7787 if test x"$GCC" != xyes; then
7788 for ac_prog in xlc_r cc_r
7790 # Extract the first word of "$ac_prog", so it can be a program name with args.
7791 set dummy $ac_prog; ac_word=$2
7792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7794 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797 if test -n "$PTHREAD_CC"; then
7798 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_PTHREAD_CC="$ac_prog"
7808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7811 done
7812 done
7813 IFS=$as_save_IFS
7817 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7818 if test -n "$PTHREAD_CC"; then
7819 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7820 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7821 else
7822 { echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6; }
7827 test -n "$PTHREAD_CC" && break
7828 done
7829 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7831 else
7832 PTHREAD_CC=$CC
7834 else
7835 PTHREAD_CC="$CC"
7842 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7843 if test x"$acx_pthread_ok" = xyes; then
7845 cat >>confdefs.h <<\_ACEOF
7846 #define HAVE_PTHREAD 1
7847 _ACEOF
7850 else
7851 acx_pthread_ok=no
7854 ac_ext=c
7855 ac_cpp='$CPP $CPPFLAGS'
7856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7862 ac_ext=c
7863 ac_cpp='$CPP $CPPFLAGS'
7864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7869 # Check whether --enable-dev-mode was given.
7870 if test "${enable_dev_mode+set}" = set; then
7871 enableval=$enable_dev_mode; case "${enableval}" in
7872 y|ye|yes) AST_DEVMODE=yes ;;
7873 n|no) AST_DEVMODE=no ;;
7874 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7875 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7876 { (exit 1); exit 1; }; } ;;
7877 esac
7882 # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
7883 # various packages.
7884 # $1 is the prefix for the variables in makeopts and autoconfig.h
7885 # $2 is the short comment, $4 is the long comment
7886 # $3 is the name used in --with- or --without- flags for configure.
7888 # Package option names should be in alphabetical order
7889 # by the --with option name (the third field),
7890 # to make things easier for the users.
7893 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7894 ALSA_OPTION="asound"
7896 # Check whether --with-asound was given.
7897 if test "${with_asound+set}" = set; then
7898 withval=$with_asound;
7899 case ${withval} in
7900 n|no)
7901 USE_ALSA=no
7903 y|ye|yes)
7904 ac_mandatory_list="${ac_mandatory_list} ALSA"
7907 ALSA_DIR="${withval}"
7908 ac_mandatory_list="${ac_mandatory_list} ALSA"
7910 esac
7914 PBX_ALSA=0
7921 # BKTR is used for backtrace support on platforms that do not
7922 # have it natively.
7924 BKTR_DESCRIP="Stack Backtrace support"
7925 BKTR_OPTION="execinfo"
7927 # Check whether --with-execinfo was given.
7928 if test "${with_execinfo+set}" = set; then
7929 withval=$with_execinfo;
7930 case ${withval} in
7931 n|no)
7932 USE_BKTR=no
7934 y|ye|yes)
7935 ac_mandatory_list="${ac_mandatory_list} BKTR"
7938 BKTR_DIR="${withval}"
7939 ac_mandatory_list="${ac_mandatory_list} BKTR"
7941 esac
7945 PBX_BKTR=0
7952 CAP_DESCRIP="POSIX 1.e capabilities"
7953 CAP_OPTION="cap"
7955 # Check whether --with-cap was given.
7956 if test "${with_cap+set}" = set; then
7957 withval=$with_cap;
7958 case ${withval} in
7959 n|no)
7960 USE_CAP=no
7962 y|ye|yes)
7963 ac_mandatory_list="${ac_mandatory_list} CAP"
7966 CAP_DIR="${withval}"
7967 ac_mandatory_list="${ac_mandatory_list} CAP"
7969 esac
7973 PBX_CAP=0
7980 CURL_DESCRIP="cURL"
7981 CURL_OPTION="curl"
7983 # Check whether --with-curl was given.
7984 if test "${with_curl+set}" = set; then
7985 withval=$with_curl;
7986 case ${withval} in
7987 n|no)
7988 USE_CURL=no
7990 y|ye|yes)
7991 ac_mandatory_list="${ac_mandatory_list} CURL"
7994 CURL_DIR="${withval}"
7995 ac_mandatory_list="${ac_mandatory_list} CURL"
7997 esac
8001 PBX_CURL=0
8008 CURSES_DESCRIP="curses"
8009 CURSES_OPTION="curses"
8011 # Check whether --with-curses was given.
8012 if test "${with_curses+set}" = set; then
8013 withval=$with_curses;
8014 case ${withval} in
8015 n|no)
8016 USE_CURSES=no
8018 y|ye|yes)
8019 ac_mandatory_list="${ac_mandatory_list} CURSES"
8022 CURSES_DIR="${withval}"
8023 ac_mandatory_list="${ac_mandatory_list} CURSES"
8025 esac
8029 PBX_CURSES=0
8036 CRYPTO_DESCRIP="OpenSSL Cryptography support"
8037 CRYPTO_OPTION="crypto"
8039 # Check whether --with-crypto was given.
8040 if test "${with_crypto+set}" = set; then
8041 withval=$with_crypto;
8042 case ${withval} in
8043 n|no)
8044 USE_CRYPTO=no
8046 y|ye|yes)
8047 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8050 CRYPTO_DIR="${withval}"
8051 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8053 esac
8057 PBX_CRYPTO=0
8064 DAHDI_DESCRIP="DAHDI"
8065 DAHDI_OPTION="dahdi"
8067 # Check whether --with-dahdi was given.
8068 if test "${with_dahdi+set}" = set; then
8069 withval=$with_dahdi;
8070 case ${withval} in
8071 n|no)
8072 USE_DAHDI=no
8074 y|ye|yes)
8075 ac_mandatory_list="${ac_mandatory_list} DAHDI"
8078 DAHDI_DIR="${withval}"
8079 ac_mandatory_list="${ac_mandatory_list} DAHDI"
8081 esac
8085 PBX_DAHDI=0
8092 FFMPEG_DESCRIP="Ffmpeg and avcodec library"
8093 FFMPEG_OPTION="avcodec"
8095 # Check whether --with-avcodec was given.
8096 if test "${with_avcodec+set}" = set; then
8097 withval=$with_avcodec;
8098 case ${withval} in
8099 n|no)
8100 USE_FFMPEG=no
8102 y|ye|yes)
8103 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8106 FFMPEG_DIR="${withval}"
8107 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8109 esac
8113 PBX_FFMPEG=0
8120 GSM_DESCRIP="External GSM library"
8121 GSM_OPTION="gsm"
8123 # Check whether --with-gsm was given.
8124 if test "${with_gsm+set}" = set; then
8125 withval=$with_gsm;
8126 case ${withval} in
8127 n|no)
8128 USE_GSM=no
8130 y|ye|yes)
8131 ac_mandatory_list="${ac_mandatory_list} GSM"
8134 GSM_DIR="${withval}"
8135 ac_mandatory_list="${ac_mandatory_list} GSM"
8137 esac
8141 PBX_GSM=0
8148 GTK_DESCRIP="gtk libraries"
8149 GTK_OPTION="gtk"
8151 # Check whether --with-gtk was given.
8152 if test "${with_gtk+set}" = set; then
8153 withval=$with_gtk;
8154 case ${withval} in
8155 n|no)
8156 USE_GTK=no
8158 y|ye|yes)
8159 ac_mandatory_list="${ac_mandatory_list} GTK"
8162 GTK_DIR="${withval}"
8163 ac_mandatory_list="${ac_mandatory_list} GTK"
8165 esac
8169 PBX_GTK=0
8176 GTK2_DESCRIP="gtk2 libraries"
8177 GTK2_OPTION="gtk2"
8179 # Check whether --with-gtk2 was given.
8180 if test "${with_gtk2+set}" = set; then
8181 withval=$with_gtk2;
8182 case ${withval} in
8183 n|no)
8184 USE_GTK2=no
8186 y|ye|yes)
8187 ac_mandatory_list="${ac_mandatory_list} GTK2"
8190 GTK2_DIR="${withval}"
8191 ac_mandatory_list="${ac_mandatory_list} GTK2"
8193 esac
8197 PBX_GTK2=0
8204 GMIME_DESCRIP="GMime library"
8205 GMIME_OPTION="gmime"
8207 # Check whether --with-gmime was given.
8208 if test "${with_gmime+set}" = set; then
8209 withval=$with_gmime;
8210 case ${withval} in
8211 n|no)
8212 USE_GMIME=no
8214 y|ye|yes)
8215 ac_mandatory_list="${ac_mandatory_list} GMIME"
8218 GMIME_DIR="${withval}"
8219 ac_mandatory_list="${ac_mandatory_list} GMIME"
8221 esac
8225 PBX_GMIME=0
8232 ICONV_DESCRIP="Iconv Library"
8233 ICONV_OPTION="iconv"
8235 # Check whether --with-iconv was given.
8236 if test "${with_iconv+set}" = set; then
8237 withval=$with_iconv;
8238 case ${withval} in
8239 n|no)
8240 USE_ICONV=no
8242 y|ye|yes)
8243 ac_mandatory_list="${ac_mandatory_list} ICONV"
8246 ICONV_DIR="${withval}"
8247 ac_mandatory_list="${ac_mandatory_list} ICONV"
8249 esac
8253 PBX_ICONV=0
8260 IKSEMEL_DESCRIP="Iksemel Jabber Library"
8261 IKSEMEL_OPTION="iksemel"
8263 # Check whether --with-iksemel was given.
8264 if test "${with_iksemel+set}" = set; then
8265 withval=$with_iksemel;
8266 case ${withval} in
8267 n|no)
8268 USE_IKSEMEL=no
8270 y|ye|yes)
8271 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8274 IKSEMEL_DIR="${withval}"
8275 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8277 esac
8281 PBX_IKSEMEL=0
8288 IMAP_TK_DESCRIP="UW IMAP Toolkit"
8289 IMAP_TK_OPTION="imap"
8291 # Check whether --with-imap was given.
8292 if test "${with_imap+set}" = set; then
8293 withval=$with_imap;
8294 case ${withval} in
8295 n|no)
8296 USE_IMAP_TK=no
8298 y|ye|yes)
8299 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8302 IMAP_TK_DIR="${withval}"
8303 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8305 esac
8309 PBX_IMAP_TK=0
8316 ISDNNET_DESCRIP="ISDN4Linux Library"
8317 ISDNNET_OPTION="isdnnet"
8319 # Check whether --with-isdnnet was given.
8320 if test "${with_isdnnet+set}" = set; then
8321 withval=$with_isdnnet;
8322 case ${withval} in
8323 n|no)
8324 USE_ISDNNET=no
8326 y|ye|yes)
8327 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8330 ISDNNET_DIR="${withval}"
8331 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8333 esac
8337 PBX_ISDNNET=0
8344 JACK_DESCRIP="Jack Audio Connection Kit"
8345 JACK_OPTION="jack"
8347 # Check whether --with-jack was given.
8348 if test "${with_jack+set}" = set; then
8349 withval=$with_jack;
8350 case ${withval} in
8351 n|no)
8352 USE_JACK=no
8354 y|ye|yes)
8355 ac_mandatory_list="${ac_mandatory_list} JACK"
8358 JACK_DIR="${withval}"
8359 ac_mandatory_list="${ac_mandatory_list} JACK"
8361 esac
8365 PBX_JACK=0
8372 LDAP_DESCRIP="OpenLDAP"
8373 LDAP_OPTION="ldap"
8375 # Check whether --with-ldap was given.
8376 if test "${with_ldap+set}" = set; then
8377 withval=$with_ldap;
8378 case ${withval} in
8379 n|no)
8380 USE_LDAP=no
8382 y|ye|yes)
8383 ac_mandatory_list="${ac_mandatory_list} LDAP"
8386 LDAP_DIR="${withval}"
8387 ac_mandatory_list="${ac_mandatory_list} LDAP"
8389 esac
8393 PBX_LDAP=0
8400 LTDL_DESCRIP="libtool"
8401 LTDL_OPTION="ltdl"
8403 # Check whether --with-ltdl was given.
8404 if test "${with_ltdl+set}" = set; then
8405 withval=$with_ltdl;
8406 case ${withval} in
8407 n|no)
8408 USE_LTDL=no
8410 y|ye|yes)
8411 ac_mandatory_list="${ac_mandatory_list} LTDL"
8414 LTDL_DIR="${withval}"
8415 ac_mandatory_list="${ac_mandatory_list} LTDL"
8417 esac
8421 PBX_LTDL=0
8428 LUA_DESCRIP="Lua"
8429 LUA_OPTION="lua"
8431 # Check whether --with-lua was given.
8432 if test "${with_lua+set}" = set; then
8433 withval=$with_lua;
8434 case ${withval} in
8435 n|no)
8436 USE_LUA=no
8438 y|ye|yes)
8439 ac_mandatory_list="${ac_mandatory_list} LUA"
8442 LUA_DIR="${withval}"
8443 ac_mandatory_list="${ac_mandatory_list} LUA"
8445 esac
8449 PBX_LUA=0
8456 MISDN_DESCRIP="mISDN User Library"
8457 MISDN_OPTION="misdn"
8459 # Check whether --with-misdn was given.
8460 if test "${with_misdn+set}" = set; then
8461 withval=$with_misdn;
8462 case ${withval} in
8463 n|no)
8464 USE_MISDN=no
8466 y|ye|yes)
8467 ac_mandatory_list="${ac_mandatory_list} MISDN"
8470 MISDN_DIR="${withval}"
8471 ac_mandatory_list="${ac_mandatory_list} MISDN"
8473 esac
8477 PBX_MISDN=0
8484 NBS_DESCRIP="Network Broadcast Sound"
8485 NBS_OPTION="nbs"
8487 # Check whether --with-nbs was given.
8488 if test "${with_nbs+set}" = set; then
8489 withval=$with_nbs;
8490 case ${withval} in
8491 n|no)
8492 USE_NBS=no
8494 y|ye|yes)
8495 ac_mandatory_list="${ac_mandatory_list} NBS"
8498 NBS_DIR="${withval}"
8499 ac_mandatory_list="${ac_mandatory_list} NBS"
8501 esac
8505 PBX_NBS=0
8512 NCURSES_DESCRIP="ncurses"
8513 NCURSES_OPTION="ncurses"
8515 # Check whether --with-ncurses was given.
8516 if test "${with_ncurses+set}" = set; then
8517 withval=$with_ncurses;
8518 case ${withval} in
8519 n|no)
8520 USE_NCURSES=no
8522 y|ye|yes)
8523 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8526 NCURSES_DIR="${withval}"
8527 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8529 esac
8533 PBX_NCURSES=0
8540 NETSNMP_DESCRIP="Net-SNMP"
8541 NETSNMP_OPTION="netsnmp"
8543 # Check whether --with-netsnmp was given.
8544 if test "${with_netsnmp+set}" = set; then
8545 withval=$with_netsnmp;
8546 case ${withval} in
8547 n|no)
8548 USE_NETSNMP=no
8550 y|ye|yes)
8551 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8554 NETSNMP_DIR="${withval}"
8555 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8557 esac
8561 PBX_NETSNMP=0
8568 NEWT_DESCRIP="newt"
8569 NEWT_OPTION="newt"
8571 # Check whether --with-newt was given.
8572 if test "${with_newt+set}" = set; then
8573 withval=$with_newt;
8574 case ${withval} in
8575 n|no)
8576 USE_NEWT=no
8578 y|ye|yes)
8579 ac_mandatory_list="${ac_mandatory_list} NEWT"
8582 NEWT_DIR="${withval}"
8583 ac_mandatory_list="${ac_mandatory_list} NEWT"
8585 esac
8589 PBX_NEWT=0
8596 UNIXODBC_DESCRIP="unixODBC"
8597 UNIXODBC_OPTION="odbc"
8599 # Check whether --with-odbc was given.
8600 if test "${with_odbc+set}" = set; then
8601 withval=$with_odbc;
8602 case ${withval} in
8603 n|no)
8604 USE_UNIXODBC=no
8606 y|ye|yes)
8607 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8610 UNIXODBC_DIR="${withval}"
8611 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8613 esac
8617 PBX_UNIXODBC=0
8624 OGG_DESCRIP="OGG"
8625 OGG_OPTION="ogg"
8627 # Check whether --with-ogg was given.
8628 if test "${with_ogg+set}" = set; then
8629 withval=$with_ogg;
8630 case ${withval} in
8631 n|no)
8632 USE_OGG=no
8634 y|ye|yes)
8635 ac_mandatory_list="${ac_mandatory_list} OGG"
8638 OGG_DIR="${withval}"
8639 ac_mandatory_list="${ac_mandatory_list} OGG"
8641 esac
8645 PBX_OGG=0
8652 OSPTK_DESCRIP="OSP Toolkit"
8653 OSPTK_OPTION="osptk"
8655 # Check whether --with-osptk was given.
8656 if test "${with_osptk+set}" = set; then
8657 withval=$with_osptk;
8658 case ${withval} in
8659 n|no)
8660 USE_OSPTK=no
8662 y|ye|yes)
8663 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8666 OSPTK_DIR="${withval}"
8667 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8669 esac
8673 PBX_OSPTK=0
8680 OSS_DESCRIP="Open Sound System"
8681 OSS_OPTION="oss"
8683 # Check whether --with-oss was given.
8684 if test "${with_oss+set}" = set; then
8685 withval=$with_oss;
8686 case ${withval} in
8687 n|no)
8688 USE_OSS=no
8690 y|ye|yes)
8691 ac_mandatory_list="${ac_mandatory_list} OSS"
8694 OSS_DIR="${withval}"
8695 ac_mandatory_list="${ac_mandatory_list} OSS"
8697 esac
8701 PBX_OSS=0
8708 PGSQL_DESCRIP="PostgreSQL"
8709 PGSQL_OPTION="postgres"
8711 # Check whether --with-postgres was given.
8712 if test "${with_postgres+set}" = set; then
8713 withval=$with_postgres;
8714 case ${withval} in
8715 n|no)
8716 USE_PGSQL=no
8718 y|ye|yes)
8719 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8722 PGSQL_DIR="${withval}"
8723 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8725 esac
8729 PBX_PGSQL=0
8736 POPT_DESCRIP="popt"
8737 POPT_OPTION="popt"
8739 # Check whether --with-popt was given.
8740 if test "${with_popt+set}" = set; then
8741 withval=$with_popt;
8742 case ${withval} in
8743 n|no)
8744 USE_POPT=no
8746 y|ye|yes)
8747 ac_mandatory_list="${ac_mandatory_list} POPT"
8750 POPT_DIR="${withval}"
8751 ac_mandatory_list="${ac_mandatory_list} POPT"
8753 esac
8757 PBX_POPT=0
8764 PORTAUDIO_DESCRIP="PortAudio"
8765 PORTAUDIO_OPTION="portaudio"
8767 # Check whether --with-portaudio was given.
8768 if test "${with_portaudio+set}" = set; then
8769 withval=$with_portaudio;
8770 case ${withval} in
8771 n|no)
8772 USE_PORTAUDIO=no
8774 y|ye|yes)
8775 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8778 PORTAUDIO_DIR="${withval}"
8779 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8781 esac
8785 PBX_PORTAUDIO=0
8792 PRI_DESCRIP="ISDN PRI"
8793 PRI_OPTION="pri"
8795 # Check whether --with-pri was given.
8796 if test "${with_pri+set}" = set; then
8797 withval=$with_pri;
8798 case ${withval} in
8799 n|no)
8800 USE_PRI=no
8802 y|ye|yes)
8803 ac_mandatory_list="${ac_mandatory_list} PRI"
8806 PRI_DIR="${withval}"
8807 ac_mandatory_list="${ac_mandatory_list} PRI"
8809 esac
8813 PBX_PRI=0
8820 SPANDSP_DESCRIP="SPANDSP"
8821 SPANDSP_OPTION="spandsp"
8823 # Check whether --with-spandsp was given.
8824 if test "${with_spandsp+set}" = set; then
8825 withval=$with_spandsp;
8826 case ${withval} in
8827 n|no)
8828 USE_SPANDSP=no
8830 y|ye|yes)
8831 ac_mandatory_list="${ac_mandatory_list} SPANDSP"
8834 SPANDSP_DIR="${withval}"
8835 ac_mandatory_list="${ac_mandatory_list} SPANDSP"
8837 esac
8841 PBX_SPANDSP=0
8848 SS7_DESCRIP="ISDN SS7"
8849 SS7_OPTION="ss7"
8851 # Check whether --with-ss7 was given.
8852 if test "${with_ss7+set}" = set; then
8853 withval=$with_ss7;
8854 case ${withval} in
8855 n|no)
8856 USE_SS7=no
8858 y|ye|yes)
8859 ac_mandatory_list="${ac_mandatory_list} SS7"
8862 SS7_DIR="${withval}"
8863 ac_mandatory_list="${ac_mandatory_list} SS7"
8865 esac
8869 PBX_SS7=0
8876 PWLIB_DESCRIP="PWlib"
8877 PWLIB_OPTION="pwlib"
8879 # Check whether --with-pwlib was given.
8880 if test "${with_pwlib+set}" = set; then
8881 withval=$with_pwlib;
8882 case ${withval} in
8883 n|no)
8884 USE_PWLIB=no
8886 y|ye|yes)
8887 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8890 PWLIB_DIR="${withval}"
8891 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8893 esac
8897 PBX_PWLIB=0
8904 OPENH323_DESCRIP="OpenH323"
8905 OPENH323_OPTION="h323"
8907 # Check whether --with-h323 was given.
8908 if test "${with_h323+set}" = set; then
8909 withval=$with_h323;
8910 case ${withval} in
8911 n|no)
8912 USE_OPENH323=no
8914 y|ye|yes)
8915 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8918 OPENH323_DIR="${withval}"
8919 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8921 esac
8925 PBX_OPENH323=0
8932 RADIUS_DESCRIP="Radius Client"
8933 RADIUS_OPTION="radius"
8935 # Check whether --with-radius was given.
8936 if test "${with_radius+set}" = set; then
8937 withval=$with_radius;
8938 case ${withval} in
8939 n|no)
8940 USE_RADIUS=no
8942 y|ye|yes)
8943 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8946 RADIUS_DIR="${withval}"
8947 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8949 esac
8953 PBX_RADIUS=0
8960 SDL_DESCRIP="Sdl"
8961 SDL_OPTION="sdl"
8963 # Check whether --with-sdl was given.
8964 if test "${with_sdl+set}" = set; then
8965 withval=$with_sdl;
8966 case ${withval} in
8967 n|no)
8968 USE_SDL=no
8970 y|ye|yes)
8971 ac_mandatory_list="${ac_mandatory_list} SDL"
8974 SDL_DIR="${withval}"
8975 ac_mandatory_list="${ac_mandatory_list} SDL"
8977 esac
8981 PBX_SDL=0
8988 SDL_IMAGE_DESCRIP="Sdl Image library"
8989 SDL_IMAGE_OPTION="SDL_image"
8991 # Check whether --with-SDL_image was given.
8992 if test "${with_SDL_image+set}" = set; then
8993 withval=$with_SDL_image;
8994 case ${withval} in
8995 n|no)
8996 USE_SDL_IMAGE=no
8998 y|ye|yes)
8999 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
9002 SDL_IMAGE_DIR="${withval}"
9003 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
9005 esac
9009 PBX_SDL_IMAGE=0
9016 OPENAIS_DESCRIP="OpenAIS"
9017 OPENAIS_OPTION="openais"
9019 # Check whether --with-openais was given.
9020 if test "${with_openais+set}" = set; then
9021 withval=$with_openais;
9022 case ${withval} in
9023 n|no)
9024 USE_OPENAIS=no
9026 y|ye|yes)
9027 ac_mandatory_list="${ac_mandatory_list} OPENAIS"
9030 OPENAIS_DIR="${withval}"
9031 ac_mandatory_list="${ac_mandatory_list} OPENAIS"
9033 esac
9037 PBX_OPENAIS=0
9044 SPEEX_DESCRIP="Speex"
9045 SPEEX_OPTION="speex"
9047 # Check whether --with-speex was given.
9048 if test "${with_speex+set}" = set; then
9049 withval=$with_speex;
9050 case ${withval} in
9051 n|no)
9052 USE_SPEEX=no
9054 y|ye|yes)
9055 ac_mandatory_list="${ac_mandatory_list} SPEEX"
9058 SPEEX_DIR="${withval}"
9059 ac_mandatory_list="${ac_mandatory_list} SPEEX"
9061 esac
9065 PBX_SPEEX=0
9072 SPEEXDSP_DESCRIP="Speexdsp"
9073 SPEEXDSP_OPTION="speexdsp"
9075 # Check whether --with-speexdsp was given.
9076 if test "${with_speexdsp+set}" = set; then
9077 withval=$with_speexdsp;
9078 case ${withval} in
9079 n|no)
9080 USE_SPEEXDSP=no
9082 y|ye|yes)
9083 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9086 SPEEXDSP_DIR="${withval}"
9087 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9089 esac
9093 PBX_SPEEXDSP=0
9100 SQLITE_DESCRIP="SQLite"
9101 SQLITE_OPTION="sqlite"
9103 # Check whether --with-sqlite was given.
9104 if test "${with_sqlite+set}" = set; then
9105 withval=$with_sqlite;
9106 case ${withval} in
9107 n|no)
9108 USE_SQLITE=no
9110 y|ye|yes)
9111 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9114 SQLITE_DIR="${withval}"
9115 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9117 esac
9121 PBX_SQLITE=0
9128 SQLITE3_DESCRIP="SQLite"
9129 SQLITE3_OPTION="sqlite3"
9131 # Check whether --with-sqlite3 was given.
9132 if test "${with_sqlite3+set}" = set; then
9133 withval=$with_sqlite3;
9134 case ${withval} in
9135 n|no)
9136 USE_SQLITE3=no
9138 y|ye|yes)
9139 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9142 SQLITE3_DIR="${withval}"
9143 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9145 esac
9149 PBX_SQLITE3=0
9156 SUPPSERV_DESCRIP="mISDN Supplemental Services"
9157 SUPPSERV_OPTION="suppserv"
9159 # Check whether --with-suppserv was given.
9160 if test "${with_suppserv+set}" = set; then
9161 withval=$with_suppserv;
9162 case ${withval} in
9163 n|no)
9164 USE_SUPPSERV=no
9166 y|ye|yes)
9167 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9170 SUPPSERV_DIR="${withval}"
9171 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9173 esac
9177 PBX_SUPPSERV=0
9184 OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer support"
9185 OPENSSL_OPTION="ssl"
9187 # Check whether --with-ssl was given.
9188 if test "${with_ssl+set}" = set; then
9189 withval=$with_ssl;
9190 case ${withval} in
9191 n|no)
9192 USE_OPENSSL=no
9194 y|ye|yes)
9195 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9198 OPENSSL_DIR="${withval}"
9199 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9201 esac
9205 PBX_OPENSSL=0
9212 FREETDS_DESCRIP="FreeTDS"
9213 FREETDS_OPTION="tds"
9215 # Check whether --with-tds was given.
9216 if test "${with_tds+set}" = set; then
9217 withval=$with_tds;
9218 case ${withval} in
9219 n|no)
9220 USE_FREETDS=no
9222 y|ye|yes)
9223 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9226 FREETDS_DIR="${withval}"
9227 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9229 esac
9233 PBX_FREETDS=0
9240 TERMCAP_DESCRIP="Termcap"
9241 TERMCAP_OPTION="termcap"
9243 # Check whether --with-termcap was given.
9244 if test "${with_termcap+set}" = set; then
9245 withval=$with_termcap;
9246 case ${withval} in
9247 n|no)
9248 USE_TERMCAP=no
9250 y|ye|yes)
9251 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9254 TERMCAP_DIR="${withval}"
9255 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9257 esac
9261 PBX_TERMCAP=0
9268 TINFO_DESCRIP="Term Info"
9269 TINFO_OPTION="tinfo"
9271 # Check whether --with-tinfo was given.
9272 if test "${with_tinfo+set}" = set; then
9273 withval=$with_tinfo;
9274 case ${withval} in
9275 n|no)
9276 USE_TINFO=no
9278 y|ye|yes)
9279 ac_mandatory_list="${ac_mandatory_list} TINFO"
9282 TINFO_DIR="${withval}"
9283 ac_mandatory_list="${ac_mandatory_list} TINFO"
9285 esac
9289 PBX_TINFO=0
9296 TONEZONE_DESCRIP="tonezone"
9297 TONEZONE_OPTION="tonezone"
9299 # Check whether --with-tonezone was given.
9300 if test "${with_tonezone+set}" = set; then
9301 withval=$with_tonezone;
9302 case ${withval} in
9303 n|no)
9304 USE_TONEZONE=no
9306 y|ye|yes)
9307 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9310 TONEZONE_DIR="${withval}"
9311 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9313 esac
9317 PBX_TONEZONE=0
9324 USB_DESCRIP="usb"
9325 USB_OPTION="usb"
9327 # Check whether --with-usb was given.
9328 if test "${with_usb+set}" = set; then
9329 withval=$with_usb;
9330 case ${withval} in
9331 n|no)
9332 USE_USB=no
9334 y|ye|yes)
9335 ac_mandatory_list="${ac_mandatory_list} USB"
9338 USB_DIR="${withval}"
9339 ac_mandatory_list="${ac_mandatory_list} USB"
9341 esac
9345 PBX_USB=0
9352 VORBIS_DESCRIP="Vorbis"
9353 VORBIS_OPTION="vorbis"
9355 # Check whether --with-vorbis was given.
9356 if test "${with_vorbis+set}" = set; then
9357 withval=$with_vorbis;
9358 case ${withval} in
9359 n|no)
9360 USE_VORBIS=no
9362 y|ye|yes)
9363 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9366 VORBIS_DIR="${withval}"
9367 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9369 esac
9373 PBX_VORBIS=0
9380 VPB_DESCRIP="Voicetronix API"
9381 VPB_OPTION="vpb"
9383 # Check whether --with-vpb was given.
9384 if test "${with_vpb+set}" = set; then
9385 withval=$with_vpb;
9386 case ${withval} in
9387 n|no)
9388 USE_VPB=no
9390 y|ye|yes)
9391 ac_mandatory_list="${ac_mandatory_list} VPB"
9394 VPB_DIR="${withval}"
9395 ac_mandatory_list="${ac_mandatory_list} VPB"
9397 esac
9401 PBX_VPB=0
9408 X11_DESCRIP="X11 support"
9409 X11_OPTION="x11"
9411 # Check whether --with-x11 was given.
9412 if test "${with_x11+set}" = set; then
9413 withval=$with_x11;
9414 case ${withval} in
9415 n|no)
9416 USE_X11=no
9418 y|ye|yes)
9419 ac_mandatory_list="${ac_mandatory_list} X11"
9422 X11_DIR="${withval}"
9423 ac_mandatory_list="${ac_mandatory_list} X11"
9425 esac
9429 PBX_X11=0
9436 ZLIB_DESCRIP="zlib"
9437 ZLIB_OPTION="z"
9439 # Check whether --with-z was given.
9440 if test "${with_z+set}" = set; then
9441 withval=$with_z;
9442 case ${withval} in
9443 n|no)
9444 USE_ZLIB=no
9446 y|ye|yes)
9447 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9450 ZLIB_DIR="${withval}"
9451 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9453 esac
9457 PBX_ZLIB=0
9464 # check for basic system features and functionality before
9465 # checking for package libraries
9467 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9468 # for constant arguments. Useless!
9469 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9470 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9471 if test "${ac_cv_working_alloca_h+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474 cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h. */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 #include <alloca.h>
9482 main ()
9484 char *p = (char *) alloca (2 * sizeof (int));
9485 if (p) return 0;
9487 return 0;
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9492 case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9495 esac
9496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497 (eval "$ac_link") 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } && {
9504 test -z "$ac_c_werror_flag" ||
9505 test ! -s conftest.err
9506 } && test -s conftest$ac_exeext &&
9507 $as_test_x conftest$ac_exeext; then
9508 ac_cv_working_alloca_h=yes
9509 else
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 ac_cv_working_alloca_h=no
9516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9517 conftest$ac_exeext conftest.$ac_ext
9519 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9520 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9521 if test $ac_cv_working_alloca_h = yes; then
9523 cat >>confdefs.h <<\_ACEOF
9524 #define HAVE_ALLOCA_H 1
9525 _ACEOF
9529 { echo "$as_me:$LINENO: checking for alloca" >&5
9530 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9531 if test "${ac_cv_func_alloca_works+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534 cat >conftest.$ac_ext <<_ACEOF
9535 /* confdefs.h. */
9536 _ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 #ifdef __GNUC__
9541 # define alloca __builtin_alloca
9542 #else
9543 # ifdef _MSC_VER
9544 # include <malloc.h>
9545 # define alloca _alloca
9546 # else
9547 # ifdef HAVE_ALLOCA_H
9548 # include <alloca.h>
9549 # else
9550 # ifdef _AIX
9551 #pragma alloca
9552 # else
9553 # ifndef alloca /* predefined by HP cc +Olibcalls */
9554 char *alloca ();
9555 # endif
9556 # endif
9557 # endif
9558 # endif
9559 #endif
9562 main ()
9564 char *p = (char *) alloca (1);
9565 if (p) return 0;
9567 return 0;
9569 _ACEOF
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (ac_try="$ac_link"
9572 case "(($ac_try" in
9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9575 esac
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_link") 2>conftest.er1
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest$ac_exeext &&
9587 $as_test_x conftest$ac_exeext; then
9588 ac_cv_func_alloca_works=yes
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 ac_cv_func_alloca_works=no
9596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9597 conftest$ac_exeext conftest.$ac_ext
9599 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9600 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9602 if test $ac_cv_func_alloca_works = yes; then
9604 cat >>confdefs.h <<\_ACEOF
9605 #define HAVE_ALLOCA 1
9606 _ACEOF
9608 else
9609 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9610 # that cause trouble. Some versions do not even contain alloca or
9611 # contain a buggy version. If you still want to use their alloca,
9612 # use ar to extract alloca.o from them instead of compiling alloca.c.
9614 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9616 cat >>confdefs.h <<\_ACEOF
9617 #define C_ALLOCA 1
9618 _ACEOF
9621 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9622 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9623 if test "${ac_cv_os_cray+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626 cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h. */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9632 #if defined CRAY && ! defined CRAY2
9633 webecray
9634 #else
9635 wenotbecray
9636 #endif
9638 _ACEOF
9639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9640 $EGREP "webecray" >/dev/null 2>&1; then
9641 ac_cv_os_cray=yes
9642 else
9643 ac_cv_os_cray=no
9645 rm -f conftest*
9648 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9649 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9650 if test $ac_cv_os_cray = yes; then
9651 for ac_func in _getb67 GETB67 getb67; do
9652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h. */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9666 #define $ac_func innocuous_$ac_func
9668 /* System header to define __stub macros and hopefully few prototypes,
9669 which can conflict with char $ac_func (); below.
9670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9671 <limits.h> exists even on freestanding compilers. */
9673 #ifdef __STDC__
9674 # include <limits.h>
9675 #else
9676 # include <assert.h>
9677 #endif
9679 #undef $ac_func
9681 /* Override any GCC internal prototype to avoid an error.
9682 Use char because int might match the return type of a GCC
9683 builtin and then its argument prototype would still apply. */
9684 #ifdef __cplusplus
9685 extern "C"
9686 #endif
9687 char $ac_func ();
9688 /* The GNU C library defines this for functions which it implements
9689 to always fail with ENOSYS. Some functions are actually named
9690 something starting with __ and the normal name is an alias. */
9691 #if defined __stub_$ac_func || defined __stub___$ac_func
9692 choke me
9693 #endif
9696 main ()
9698 return $ac_func ();
9700 return 0;
9702 _ACEOF
9703 rm -f conftest.$ac_objext conftest$ac_exeext
9704 if { (ac_try="$ac_link"
9705 case "(($ac_try" in
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9708 esac
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_link") 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } && {
9717 test -z "$ac_c_werror_flag" ||
9718 test ! -s conftest.err
9719 } && test -s conftest$ac_exeext &&
9720 $as_test_x conftest$ac_exeext; then
9721 eval "$as_ac_var=yes"
9722 else
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 eval "$as_ac_var=no"
9729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9730 conftest$ac_exeext conftest.$ac_ext
9732 ac_res=`eval echo '${'$as_ac_var'}'`
9733 { echo "$as_me:$LINENO: result: $ac_res" >&5
9734 echo "${ECHO_T}$ac_res" >&6; }
9735 if test `eval echo '${'$as_ac_var'}'` = yes; then
9737 cat >>confdefs.h <<_ACEOF
9738 #define CRAY_STACKSEG_END $ac_func
9739 _ACEOF
9741 break
9744 done
9747 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9748 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9749 if test "${ac_cv_c_stack_direction+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752 if test "$cross_compiling" = yes; then
9753 ac_cv_c_stack_direction=0
9754 else
9755 cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h. */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 $ac_includes_default
9763 find_stack_direction ()
9765 static char *addr = 0;
9766 auto char dummy;
9767 if (addr == 0)
9769 addr = &dummy;
9770 return find_stack_direction ();
9772 else
9773 return (&dummy > addr) ? 1 : -1;
9777 main ()
9779 return find_stack_direction () < 0;
9781 _ACEOF
9782 rm -f conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9784 case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9793 { (case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_try") 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 ac_cv_c_stack_direction=1
9803 else
9804 echo "$as_me: program exited with status $ac_status" >&5
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ( exit $ac_status )
9809 ac_cv_c_stack_direction=-1
9811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9816 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9817 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9819 cat >>confdefs.h <<_ACEOF
9820 #define STACK_DIRECTION $ac_cv_c_stack_direction
9821 _ACEOF
9831 ac_header_dirent=no
9832 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9833 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9834 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9835 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h. */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 #include <sys/types.h>
9846 #include <$ac_hdr>
9849 main ()
9851 if ((DIR *) 0)
9852 return 0;
9854 return 0;
9856 _ACEOF
9857 rm -f conftest.$ac_objext
9858 if { (ac_try="$ac_compile"
9859 case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_compile") 2>conftest.er1
9865 ac_status=$?
9866 grep -v '^ *+' conftest.er1 >conftest.err
9867 rm -f conftest.er1
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } && {
9871 test -z "$ac_c_werror_flag" ||
9872 test ! -s conftest.err
9873 } && test -s conftest.$ac_objext; then
9874 eval "$as_ac_Header=yes"
9875 else
9876 echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9879 eval "$as_ac_Header=no"
9882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884 ac_res=`eval echo '${'$as_ac_Header'}'`
9885 { echo "$as_me:$LINENO: result: $ac_res" >&5
9886 echo "${ECHO_T}$ac_res" >&6; }
9887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9888 cat >>confdefs.h <<_ACEOF
9889 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9890 _ACEOF
9892 ac_header_dirent=$ac_hdr; break
9895 done
9896 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9897 if test $ac_header_dirent = dirent.h; then
9898 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9899 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9900 if test "${ac_cv_search_opendir+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903 ac_func_search_save_LIBS=$LIBS
9904 cat >conftest.$ac_ext <<_ACEOF
9905 /* confdefs.h. */
9906 _ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9911 /* Override any GCC internal prototype to avoid an error.
9912 Use char because int might match the return type of a GCC
9913 builtin and then its argument prototype would still apply. */
9914 #ifdef __cplusplus
9915 extern "C"
9916 #endif
9917 char opendir ();
9919 main ()
9921 return opendir ();
9923 return 0;
9925 _ACEOF
9926 for ac_lib in '' dir; do
9927 if test -z "$ac_lib"; then
9928 ac_res="none required"
9929 else
9930 ac_res=-l$ac_lib
9931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9933 rm -f conftest.$ac_objext conftest$ac_exeext
9934 if { (ac_try="$ac_link"
9935 case "(($ac_try" in
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9938 esac
9939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940 (eval "$ac_link") 2>conftest.er1
9941 ac_status=$?
9942 grep -v '^ *+' conftest.er1 >conftest.err
9943 rm -f conftest.er1
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } && {
9947 test -z "$ac_c_werror_flag" ||
9948 test ! -s conftest.err
9949 } && test -s conftest$ac_exeext &&
9950 $as_test_x conftest$ac_exeext; then
9951 ac_cv_search_opendir=$ac_res
9952 else
9953 echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.$ac_ext >&5
9959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9960 conftest$ac_exeext
9961 if test "${ac_cv_search_opendir+set}" = set; then
9962 break
9964 done
9965 if test "${ac_cv_search_opendir+set}" = set; then
9967 else
9968 ac_cv_search_opendir=no
9970 rm conftest.$ac_ext
9971 LIBS=$ac_func_search_save_LIBS
9973 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9974 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9975 ac_res=$ac_cv_search_opendir
9976 if test "$ac_res" != no; then
9977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9981 else
9982 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9983 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9984 if test "${ac_cv_search_opendir+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 else
9987 ac_func_search_save_LIBS=$LIBS
9988 cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h. */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9995 /* Override any GCC internal prototype to avoid an error.
9996 Use char because int might match the return type of a GCC
9997 builtin and then its argument prototype would still apply. */
9998 #ifdef __cplusplus
9999 extern "C"
10000 #endif
10001 char opendir ();
10003 main ()
10005 return opendir ();
10007 return 0;
10009 _ACEOF
10010 for ac_lib in '' x; do
10011 if test -z "$ac_lib"; then
10012 ac_res="none required"
10013 else
10014 ac_res=-l$ac_lib
10015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (ac_try="$ac_link"
10019 case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10022 esac
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024 (eval "$ac_link") 2>conftest.er1
10025 ac_status=$?
10026 grep -v '^ *+' conftest.er1 >conftest.err
10027 rm -f conftest.er1
10028 cat conftest.err >&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } && {
10031 test -z "$ac_c_werror_flag" ||
10032 test ! -s conftest.err
10033 } && test -s conftest$ac_exeext &&
10034 $as_test_x conftest$ac_exeext; then
10035 ac_cv_search_opendir=$ac_res
10036 else
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10044 conftest$ac_exeext
10045 if test "${ac_cv_search_opendir+set}" = set; then
10046 break
10048 done
10049 if test "${ac_cv_search_opendir+set}" = set; then
10051 else
10052 ac_cv_search_opendir=no
10054 rm conftest.$ac_ext
10055 LIBS=$ac_func_search_save_LIBS
10057 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10058 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10059 ac_res=$ac_cv_search_opendir
10060 if test "$ac_res" != no; then
10061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10067 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10068 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10069 if test "${ac_cv_header_stdc+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
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>
10079 #include <stdarg.h>
10080 #include <string.h>
10081 #include <float.h>
10084 main ()
10088 return 0;
10090 _ACEOF
10091 rm -f conftest.$ac_objext
10092 if { (ac_try="$ac_compile"
10093 case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10096 esac
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_compile") 2>conftest.er1
10099 ac_status=$?
10100 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } && {
10105 test -z "$ac_c_werror_flag" ||
10106 test ! -s conftest.err
10107 } && test -s conftest.$ac_objext; then
10108 ac_cv_header_stdc=yes
10109 else
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_cv_header_stdc=no
10116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 if test $ac_cv_header_stdc = yes; then
10119 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 #include <string.h>
10128 _ACEOF
10129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10130 $EGREP "memchr" >/dev/null 2>&1; then
10132 else
10133 ac_cv_header_stdc=no
10135 rm -f conftest*
10139 if test $ac_cv_header_stdc = yes; then
10140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10141 cat >conftest.$ac_ext <<_ACEOF
10142 /* confdefs.h. */
10143 _ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10147 #include <stdlib.h>
10149 _ACEOF
10150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10151 $EGREP "free" >/dev/null 2>&1; then
10153 else
10154 ac_cv_header_stdc=no
10156 rm -f conftest*
10160 if test $ac_cv_header_stdc = yes; then
10161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10162 if test "$cross_compiling" = yes; then
10164 else
10165 cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h. */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10171 #include <ctype.h>
10172 #include <stdlib.h>
10173 #if ((' ' & 0x0FF) == 0x020)
10174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10176 #else
10177 # define ISLOWER(c) \
10178 (('a' <= (c) && (c) <= 'i') \
10179 || ('j' <= (c) && (c) <= 'r') \
10180 || ('s' <= (c) && (c) <= 'z'))
10181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10182 #endif
10184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10186 main ()
10188 int i;
10189 for (i = 0; i < 256; i++)
10190 if (XOR (islower (i), ISLOWER (i))
10191 || toupper (i) != TOUPPER (i))
10192 return 2;
10193 return 0;
10195 _ACEOF
10196 rm -f conftest$ac_exeext
10197 if { (ac_try="$ac_link"
10198 case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10201 esac
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_link") 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10207 { (case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210 esac
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_try") 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; }; then
10217 else
10218 echo "$as_me: program exited with status $ac_status" >&5
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10222 ( exit $ac_status )
10223 ac_cv_header_stdc=no
10225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10231 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10232 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10233 if test $ac_cv_header_stdc = yes; then
10235 cat >>confdefs.h <<\_ACEOF
10236 #define STDC_HEADERS 1
10237 _ACEOF
10241 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10242 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10243 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h. */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <sys/types.h>
10253 #include <sys/wait.h>
10254 #ifndef WEXITSTATUS
10255 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10256 #endif
10257 #ifndef WIFEXITED
10258 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10259 #endif
10262 main ()
10264 int s;
10265 wait (&s);
10266 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10268 return 0;
10270 _ACEOF
10271 rm -f conftest.$ac_objext
10272 if { (ac_try="$ac_compile"
10273 case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_compile") 2>conftest.er1
10279 ac_status=$?
10280 grep -v '^ *+' conftest.er1 >conftest.err
10281 rm -f conftest.er1
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } && {
10285 test -z "$ac_c_werror_flag" ||
10286 test ! -s conftest.err
10287 } && test -s conftest.$ac_objext; then
10288 ac_cv_header_sys_wait_h=yes
10289 else
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 ac_cv_header_sys_wait_h=no
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10299 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10300 if test $ac_cv_header_sys_wait_h = yes; then
10302 cat >>confdefs.h <<\_ACEOF
10303 #define HAVE_SYS_WAIT_H 1
10304 _ACEOF
10332 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
10334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 ac_res=`eval echo '${'$as_ac_Header'}'`
10342 { echo "$as_me:$LINENO: result: $ac_res" >&5
10343 echo "${ECHO_T}$ac_res" >&6; }
10344 else
10345 # Is the header compilable?
10346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h. */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10354 $ac_includes_default
10355 #include <$ac_header>
10356 _ACEOF
10357 rm -f conftest.$ac_objext
10358 if { (ac_try="$ac_compile"
10359 case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10362 esac
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_compile") 2>conftest.er1
10365 ac_status=$?
10366 grep -v '^ *+' conftest.er1 >conftest.err
10367 rm -f conftest.er1
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && {
10371 test -z "$ac_c_werror_flag" ||
10372 test ! -s conftest.err
10373 } && test -s conftest.$ac_objext; then
10374 ac_header_compiler=yes
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 ac_header_compiler=no
10382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10384 echo "${ECHO_T}$ac_header_compiler" >&6; }
10386 # Is the header present?
10387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h. */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 #include <$ac_header>
10396 _ACEOF
10397 if { (ac_try="$ac_cpp conftest.$ac_ext"
10398 case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10401 esac
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10404 ac_status=$?
10405 grep -v '^ *+' conftest.er1 >conftest.err
10406 rm -f conftest.er1
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } >/dev/null && {
10410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 }; then
10413 ac_header_preproc=yes
10414 else
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ac_header_preproc=no
10421 rm -f conftest.err conftest.$ac_ext
10422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10423 echo "${ECHO_T}$ac_header_preproc" >&6; }
10425 # So? What about this header?
10426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10427 yes:no: )
10428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10432 ac_header_preproc=yes
10434 no:yes:* )
10435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10447 ( cat <<\_ASBOX
10448 ## ------------------------------- ##
10449 ## Report this to www.asterisk.org ##
10450 ## ------------------------------- ##
10451 _ASBOX
10452 ) | sed "s/^/$as_me: WARNING: /" >&2
10454 esac
10455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459 else
10460 eval "$as_ac_Header=\$ac_header_preproc"
10462 ac_res=`eval echo '${'$as_ac_Header'}'`
10463 { echo "$as_me:$LINENO: result: $ac_res" >&5
10464 echo "${ECHO_T}$ac_res" >&6; }
10467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10468 cat >>confdefs.h <<_ACEOF
10469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10470 _ACEOF
10474 done
10479 for ac_header in winsock.h winsock2.h
10481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 ac_res=`eval echo '${'$as_ac_Header'}'`
10489 { echo "$as_me:$LINENO: result: $ac_res" >&5
10490 echo "${ECHO_T}$ac_res" >&6; }
10491 else
10492 # Is the header compilable?
10493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10495 cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h. */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 $ac_includes_default
10502 #include <$ac_header>
10503 _ACEOF
10504 rm -f conftest.$ac_objext
10505 if { (ac_try="$ac_compile"
10506 case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_compile") 2>conftest.er1
10512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } && {
10518 test -z "$ac_c_werror_flag" ||
10519 test ! -s conftest.err
10520 } && test -s conftest.$ac_objext; then
10521 ac_header_compiler=yes
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 ac_header_compiler=no
10529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10531 echo "${ECHO_T}$ac_header_compiler" >&6; }
10533 # Is the header present?
10534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10536 cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h. */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 #include <$ac_header>
10543 _ACEOF
10544 if { (ac_try="$ac_cpp conftest.$ac_ext"
10545 case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548 esac
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } >/dev/null && {
10557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10558 test ! -s conftest.err
10559 }; then
10560 ac_header_preproc=yes
10561 else
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 ac_header_preproc=no
10568 rm -f conftest.err conftest.$ac_ext
10569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10570 echo "${ECHO_T}$ac_header_preproc" >&6; }
10572 # So? What about this header?
10573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10574 yes:no: )
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10579 ac_header_preproc=yes
10581 no:yes:* )
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10594 ( cat <<\_ASBOX
10595 ## ------------------------------- ##
10596 ## Report this to www.asterisk.org ##
10597 ## ------------------------------- ##
10598 _ASBOX
10599 ) | sed "s/^/$as_me: WARNING: /" >&2
10601 esac
10602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607 eval "$as_ac_Header=\$ac_header_preproc"
10609 ac_res=`eval echo '${'$as_ac_Header'}'`
10610 { echo "$as_me:$LINENO: result: $ac_res" >&5
10611 echo "${ECHO_T}$ac_res" >&6; }
10614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10615 cat >>confdefs.h <<_ACEOF
10616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10617 _ACEOF
10621 done
10624 # Check whether --enable-largefile was given.
10625 if test "${enable_largefile+set}" = set; then
10626 enableval=$enable_largefile;
10629 if test "$enable_largefile" != no; then
10631 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10632 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10633 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636 ac_cv_sys_largefile_CC=no
10637 if test "$GCC" != yes; then
10638 ac_save_CC=$CC
10639 while :; do
10640 # IRIX 6.2 and later do not support large files by default,
10641 # so use the C compiler's -n32 option if that helps.
10642 cat >conftest.$ac_ext <<_ACEOF
10643 /* confdefs.h. */
10644 _ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10648 #include <sys/types.h>
10649 /* Check that off_t can represent 2**63 - 1 correctly.
10650 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10651 since some C++ compilers masquerading as C compilers
10652 incorrectly reject 9223372036854775807. */
10653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10655 && LARGE_OFF_T % 2147483647 == 1)
10656 ? 1 : -1];
10658 main ()
10662 return 0;
10664 _ACEOF
10665 rm -f conftest.$ac_objext
10666 if { (ac_try="$ac_compile"
10667 case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670 esac
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_compile") 2>conftest.er1
10673 ac_status=$?
10674 grep -v '^ *+' conftest.er1 >conftest.err
10675 rm -f conftest.er1
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } && {
10679 test -z "$ac_c_werror_flag" ||
10680 test ! -s conftest.err
10681 } && test -s conftest.$ac_objext; then
10682 break
10683 else
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10690 rm -f core conftest.err conftest.$ac_objext
10691 CC="$CC -n32"
10692 rm -f conftest.$ac_objext
10693 if { (ac_try="$ac_compile"
10694 case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_compile") 2>conftest.er1
10700 ac_status=$?
10701 grep -v '^ *+' conftest.er1 >conftest.err
10702 rm -f conftest.er1
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest.$ac_objext; then
10709 ac_cv_sys_largefile_CC=' -n32'; break
10710 else
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10717 rm -f core conftest.err conftest.$ac_objext
10718 break
10719 done
10720 CC=$ac_save_CC
10721 rm -f conftest.$ac_ext
10724 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10725 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10726 if test "$ac_cv_sys_largefile_CC" != no; then
10727 CC=$CC$ac_cv_sys_largefile_CC
10730 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10731 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10732 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735 while :; do
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h. */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 #include <sys/types.h>
10743 /* Check that off_t can represent 2**63 - 1 correctly.
10744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10745 since some C++ compilers masquerading as C compilers
10746 incorrectly reject 9223372036854775807. */
10747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10749 && LARGE_OFF_T % 2147483647 == 1)
10750 ? 1 : -1];
10752 main ()
10756 return 0;
10758 _ACEOF
10759 rm -f conftest.$ac_objext
10760 if { (ac_try="$ac_compile"
10761 case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10764 esac
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_compile") 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } && {
10773 test -z "$ac_c_werror_flag" ||
10774 test ! -s conftest.err
10775 } && test -s conftest.$ac_objext; then
10776 ac_cv_sys_file_offset_bits=no; break
10777 else
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10785 cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h. */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 #define _FILE_OFFSET_BITS 64
10792 #include <sys/types.h>
10793 /* Check that off_t can represent 2**63 - 1 correctly.
10794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10795 since some C++ compilers masquerading as C compilers
10796 incorrectly reject 9223372036854775807. */
10797 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10799 && LARGE_OFF_T % 2147483647 == 1)
10800 ? 1 : -1];
10802 main ()
10806 return 0;
10808 _ACEOF
10809 rm -f conftest.$ac_objext
10810 if { (ac_try="$ac_compile"
10811 case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_compile") 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } && {
10823 test -z "$ac_c_werror_flag" ||
10824 test ! -s conftest.err
10825 } && test -s conftest.$ac_objext; then
10826 ac_cv_sys_file_offset_bits=64; break
10827 else
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835 ac_cv_sys_file_offset_bits=unknown
10836 break
10837 done
10839 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10840 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10841 case $ac_cv_sys_file_offset_bits in #(
10842 no | unknown) ;;
10844 cat >>confdefs.h <<_ACEOF
10845 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10846 _ACEOF
10848 esac
10849 rm -f conftest*
10850 if test $ac_cv_sys_file_offset_bits = unknown; then
10851 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10852 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10853 if test "${ac_cv_sys_large_files+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856 while :; do
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h. */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 #include <sys/types.h>
10864 /* Check that off_t can represent 2**63 - 1 correctly.
10865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10866 since some C++ compilers masquerading as C compilers
10867 incorrectly reject 9223372036854775807. */
10868 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10870 && LARGE_OFF_T % 2147483647 == 1)
10871 ? 1 : -1];
10873 main ()
10877 return 0;
10879 _ACEOF
10880 rm -f conftest.$ac_objext
10881 if { (ac_try="$ac_compile"
10882 case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10885 esac
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_compile") 2>conftest.er1
10888 ac_status=$?
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } && {
10894 test -z "$ac_c_werror_flag" ||
10895 test ! -s conftest.err
10896 } && test -s conftest.$ac_objext; then
10897 ac_cv_sys_large_files=no; break
10898 else
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h. */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 #define _LARGE_FILES 1
10913 #include <sys/types.h>
10914 /* Check that off_t can represent 2**63 - 1 correctly.
10915 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10916 since some C++ compilers masquerading as C compilers
10917 incorrectly reject 9223372036854775807. */
10918 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10920 && LARGE_OFF_T % 2147483647 == 1)
10921 ? 1 : -1];
10923 main ()
10927 return 0;
10929 _ACEOF
10930 rm -f conftest.$ac_objext
10931 if { (ac_try="$ac_compile"
10932 case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10935 esac
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_compile") 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } && {
10944 test -z "$ac_c_werror_flag" ||
10945 test ! -s conftest.err
10946 } && test -s conftest.$ac_objext; then
10947 ac_cv_sys_large_files=1; break
10948 else
10949 echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10956 ac_cv_sys_large_files=unknown
10957 break
10958 done
10960 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10961 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10962 case $ac_cv_sys_large_files in #(
10963 no | unknown) ;;
10965 cat >>confdefs.h <<_ACEOF
10966 #define _LARGE_FILES $ac_cv_sys_large_files
10967 _ACEOF
10969 esac
10970 rm -f conftest*
10975 # Checks for typedefs, structures, and compiler characteristics.
10976 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10977 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10978 if test "${ac_cv_header_stdbool_h+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 else
10981 cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h. */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10988 #include <stdbool.h>
10989 #ifndef bool
10990 "error: bool is not defined"
10991 #endif
10992 #ifndef false
10993 "error: false is not defined"
10994 #endif
10995 #if false
10996 "error: false is not 0"
10997 #endif
10998 #ifndef true
10999 "error: true is not defined"
11000 #endif
11001 #if true != 1
11002 "error: true is not 1"
11003 #endif
11004 #ifndef __bool_true_false_are_defined
11005 "error: __bool_true_false_are_defined is not defined"
11006 #endif
11008 struct s { _Bool s: 1; _Bool t; } s;
11010 char a[true == 1 ? 1 : -1];
11011 char b[false == 0 ? 1 : -1];
11012 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11013 char d[(bool) 0.5 == true ? 1 : -1];
11014 bool e = &s;
11015 char f[(_Bool) 0.0 == false ? 1 : -1];
11016 char g[true];
11017 char h[sizeof (_Bool)];
11018 char i[sizeof s.t];
11019 enum { j = false, k = true, l = false * true, m = true * 256 };
11020 _Bool n[m];
11021 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11022 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11023 # if defined __xlc__ || defined __GNUC__
11024 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11025 reported by James Lemley on 2005-10-05; see
11026 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11027 This test is not quite right, since xlc is allowed to
11028 reject this program, as the initializer for xlcbug is
11029 not one of the forms that C requires support for.
11030 However, doing the test right would require a runtime
11031 test, and that would make cross-compilation harder.
11032 Let us hope that IBM fixes the xlc bug, and also adds
11033 support for this kind of constant expression. In the
11034 meantime, this test will reject xlc, which is OK, since
11035 our stdbool.h substitute should suffice. We also test
11036 this with GCC, where it should work, to detect more
11037 quickly whether someone messes up the test in the
11038 future. */
11039 char digs[] = "0123456789";
11040 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11041 # endif
11042 /* Catch a bug in an HP-UX C compiler. See
11043 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11044 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11046 _Bool q = true;
11047 _Bool *pq = &q;
11050 main ()
11053 *pq |= q;
11054 *pq |= ! q;
11055 /* Refer to every declared value, to avoid compiler optimizations. */
11056 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11057 + !m + !n + !o + !p + !q + !pq);
11060 return 0;
11062 _ACEOF
11063 rm -f conftest.$ac_objext
11064 if { (ac_try="$ac_compile"
11065 case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11068 esac
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_compile") 2>conftest.er1
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } && {
11077 test -z "$ac_c_werror_flag" ||
11078 test ! -s conftest.err
11079 } && test -s conftest.$ac_objext; then
11080 ac_cv_header_stdbool_h=yes
11081 else
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ac_cv_header_stdbool_h=no
11088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11090 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11091 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11092 { echo "$as_me:$LINENO: checking for _Bool" >&5
11093 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11094 if test "${ac_cv_type__Bool+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 else
11097 cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h. */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11103 $ac_includes_default
11104 typedef _Bool ac__type_new_;
11106 main ()
11108 if ((ac__type_new_ *) 0)
11109 return 0;
11110 if (sizeof (ac__type_new_))
11111 return 0;
11113 return 0;
11115 _ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_compile") 2>conftest.er1
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && {
11130 test -z "$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 } && test -s conftest.$ac_objext; then
11133 ac_cv_type__Bool=yes
11134 else
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 ac_cv_type__Bool=no
11141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11144 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11145 if test $ac_cv_type__Bool = yes; then
11147 cat >>confdefs.h <<_ACEOF
11148 #define HAVE__BOOL 1
11149 _ACEOF
11154 if test $ac_cv_header_stdbool_h = yes; then
11156 cat >>confdefs.h <<\_ACEOF
11157 #define HAVE_STDBOOL_H 1
11158 _ACEOF
11162 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11163 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11164 if test "${ac_cv_c_const+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167 cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h. */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11175 main ()
11177 /* FIXME: Include the comments suggested by Paul. */
11178 #ifndef __cplusplus
11179 /* Ultrix mips cc rejects this. */
11180 typedef int charset[2];
11181 const charset cs;
11182 /* SunOS 4.1.1 cc rejects this. */
11183 char const *const *pcpcc;
11184 char **ppc;
11185 /* NEC SVR4.0.2 mips cc rejects this. */
11186 struct point {int x, y;};
11187 static struct point const zero = {0,0};
11188 /* AIX XL C 1.02.0.0 rejects this.
11189 It does not let you subtract one const X* pointer from another in
11190 an arm of an if-expression whose if-part is not a constant
11191 expression */
11192 const char *g = "string";
11193 pcpcc = &g + (g ? g-g : 0);
11194 /* HPUX 7.0 cc rejects these. */
11195 ++pcpcc;
11196 ppc = (char**) pcpcc;
11197 pcpcc = (char const *const *) ppc;
11198 { /* SCO 3.2v4 cc rejects this. */
11199 char *t;
11200 char const *s = 0 ? (char *) 0 : (char const *) 0;
11202 *t++ = 0;
11203 if (s) return 0;
11205 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11206 int x[] = {25, 17};
11207 const int *foo = &x[0];
11208 ++foo;
11210 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11211 typedef const int *iptr;
11212 iptr p = 0;
11213 ++p;
11215 { /* AIX XL C 1.02.0.0 rejects this saying
11216 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11217 struct s { int j; const int *ap[3]; };
11218 struct s *b; b->j = 5;
11220 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11221 const int foo = 10;
11222 if (!foo) return 0;
11224 return !cs[0] && !zero.x;
11225 #endif
11228 return 0;
11230 _ACEOF
11231 rm -f conftest.$ac_objext
11232 if { (ac_try="$ac_compile"
11233 case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236 esac
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_compile") 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest.$ac_objext; then
11248 ac_cv_c_const=yes
11249 else
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11253 ac_cv_c_const=no
11256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11259 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11260 if test $ac_cv_c_const = no; then
11262 cat >>confdefs.h <<\_ACEOF
11263 #define const
11264 _ACEOF
11268 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11269 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11270 if test "${ac_cv_type_uid_t+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273 cat >conftest.$ac_ext <<_ACEOF
11274 /* confdefs.h. */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 #include <sys/types.h>
11281 _ACEOF
11282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11283 $EGREP "uid_t" >/dev/null 2>&1; then
11284 ac_cv_type_uid_t=yes
11285 else
11286 ac_cv_type_uid_t=no
11288 rm -f conftest*
11291 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11292 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11293 if test $ac_cv_type_uid_t = no; then
11295 cat >>confdefs.h <<\_ACEOF
11296 #define uid_t int
11297 _ACEOF
11300 cat >>confdefs.h <<\_ACEOF
11301 #define gid_t int
11302 _ACEOF
11306 { echo "$as_me:$LINENO: checking for inline" >&5
11307 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11308 if test "${ac_cv_c_inline+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311 ac_cv_c_inline=no
11312 for ac_kw in inline __inline__ __inline; do
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h. */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 #ifndef __cplusplus
11320 typedef int foo_t;
11321 static $ac_kw foo_t static_foo () {return 0; }
11322 $ac_kw foo_t foo () {return 0; }
11323 #endif
11325 _ACEOF
11326 rm -f conftest.$ac_objext
11327 if { (ac_try="$ac_compile"
11328 case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11331 esac
11332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333 (eval "$ac_compile") 2>conftest.er1
11334 ac_status=$?
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } && {
11340 test -z "$ac_c_werror_flag" ||
11341 test ! -s conftest.err
11342 } && test -s conftest.$ac_objext; then
11343 ac_cv_c_inline=$ac_kw
11344 else
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11352 test "$ac_cv_c_inline" != no && break
11353 done
11356 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11357 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11360 case $ac_cv_c_inline in
11361 inline | yes) ;;
11363 case $ac_cv_c_inline in
11364 no) ac_val=;;
11365 *) ac_val=$ac_cv_c_inline;;
11366 esac
11367 cat >>confdefs.h <<_ACEOF
11368 #ifndef __cplusplus
11369 #define inline $ac_val
11370 #endif
11371 _ACEOF
11373 esac
11375 { echo "$as_me:$LINENO: checking for mode_t" >&5
11376 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11377 if test "${ac_cv_type_mode_t+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h. */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11386 $ac_includes_default
11387 typedef mode_t ac__type_new_;
11389 main ()
11391 if ((ac__type_new_ *) 0)
11392 return 0;
11393 if (sizeof (ac__type_new_))
11394 return 0;
11396 return 0;
11398 _ACEOF
11399 rm -f conftest.$ac_objext
11400 if { (ac_try="$ac_compile"
11401 case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11404 esac
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406 (eval "$ac_compile") 2>conftest.er1
11407 ac_status=$?
11408 grep -v '^ *+' conftest.er1 >conftest.err
11409 rm -f conftest.er1
11410 cat conftest.err >&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } && {
11413 test -z "$ac_c_werror_flag" ||
11414 test ! -s conftest.err
11415 } && test -s conftest.$ac_objext; then
11416 ac_cv_type_mode_t=yes
11417 else
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 ac_cv_type_mode_t=no
11424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11427 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11428 if test $ac_cv_type_mode_t = yes; then
11430 else
11432 cat >>confdefs.h <<_ACEOF
11433 #define mode_t int
11434 _ACEOF
11438 { echo "$as_me:$LINENO: checking for off_t" >&5
11439 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11440 if test "${ac_cv_type_off_t+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443 cat >conftest.$ac_ext <<_ACEOF
11444 /* confdefs.h. */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11449 $ac_includes_default
11450 typedef off_t ac__type_new_;
11452 main ()
11454 if ((ac__type_new_ *) 0)
11455 return 0;
11456 if (sizeof (ac__type_new_))
11457 return 0;
11459 return 0;
11461 _ACEOF
11462 rm -f conftest.$ac_objext
11463 if { (ac_try="$ac_compile"
11464 case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11467 esac
11468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469 (eval "$ac_compile") 2>conftest.er1
11470 ac_status=$?
11471 grep -v '^ *+' conftest.er1 >conftest.err
11472 rm -f conftest.er1
11473 cat conftest.err >&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } && {
11476 test -z "$ac_c_werror_flag" ||
11477 test ! -s conftest.err
11478 } && test -s conftest.$ac_objext; then
11479 ac_cv_type_off_t=yes
11480 else
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 ac_cv_type_off_t=no
11487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11490 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11491 if test $ac_cv_type_off_t = yes; then
11493 else
11495 cat >>confdefs.h <<_ACEOF
11496 #define off_t long int
11497 _ACEOF
11501 { echo "$as_me:$LINENO: checking for pid_t" >&5
11502 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11503 if test "${ac_cv_type_pid_t+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 else
11506 cat >conftest.$ac_ext <<_ACEOF
11507 /* confdefs.h. */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512 $ac_includes_default
11513 typedef pid_t ac__type_new_;
11515 main ()
11517 if ((ac__type_new_ *) 0)
11518 return 0;
11519 if (sizeof (ac__type_new_))
11520 return 0;
11522 return 0;
11524 _ACEOF
11525 rm -f conftest.$ac_objext
11526 if { (ac_try="$ac_compile"
11527 case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11530 esac
11531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532 (eval "$ac_compile") 2>conftest.er1
11533 ac_status=$?
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } && {
11539 test -z "$ac_c_werror_flag" ||
11540 test ! -s conftest.err
11541 } && test -s conftest.$ac_objext; then
11542 ac_cv_type_pid_t=yes
11543 else
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 ac_cv_type_pid_t=no
11550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11552 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11553 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11554 if test $ac_cv_type_pid_t = yes; then
11556 else
11558 cat >>confdefs.h <<_ACEOF
11559 #define pid_t int
11560 _ACEOF
11564 { echo "$as_me:$LINENO: checking for size_t" >&5
11565 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11566 if test "${ac_cv_type_size_t+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h. */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 $ac_includes_default
11576 typedef size_t ac__type_new_;
11578 main ()
11580 if ((ac__type_new_ *) 0)
11581 return 0;
11582 if (sizeof (ac__type_new_))
11583 return 0;
11585 return 0;
11587 _ACEOF
11588 rm -f conftest.$ac_objext
11589 if { (ac_try="$ac_compile"
11590 case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11593 esac
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_compile") 2>conftest.er1
11596 ac_status=$?
11597 grep -v '^ *+' conftest.er1 >conftest.err
11598 rm -f conftest.er1
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } && {
11602 test -z "$ac_c_werror_flag" ||
11603 test ! -s conftest.err
11604 } && test -s conftest.$ac_objext; then
11605 ac_cv_type_size_t=yes
11606 else
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 ac_cv_type_size_t=no
11613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11615 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11616 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11617 if test $ac_cv_type_size_t = yes; then
11619 else
11621 cat >>confdefs.h <<_ACEOF
11622 #define size_t unsigned int
11623 _ACEOF
11627 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11628 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
11629 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632 cat >conftest.$ac_ext <<_ACEOF
11633 /* confdefs.h. */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11638 $ac_includes_default
11640 main ()
11642 static struct stat ac_aggr;
11643 if (ac_aggr.st_blksize)
11644 return 0;
11646 return 0;
11648 _ACEOF
11649 rm -f conftest.$ac_objext
11650 if { (ac_try="$ac_compile"
11651 case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654 esac
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_compile") 2>conftest.er1
11657 ac_status=$?
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } && {
11663 test -z "$ac_c_werror_flag" ||
11664 test ! -s conftest.err
11665 } && test -s conftest.$ac_objext; then
11666 ac_cv_member_struct_stat_st_blksize=yes
11667 else
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 cat >conftest.$ac_ext <<_ACEOF
11672 /* confdefs.h. */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h. */
11677 $ac_includes_default
11679 main ()
11681 static struct stat ac_aggr;
11682 if (sizeof ac_aggr.st_blksize)
11683 return 0;
11685 return 0;
11687 _ACEOF
11688 rm -f conftest.$ac_objext
11689 if { (ac_try="$ac_compile"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693 esac
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_compile") 2>conftest.er1
11696 ac_status=$?
11697 grep -v '^ *+' conftest.er1 >conftest.err
11698 rm -f conftest.er1
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } && {
11702 test -z "$ac_c_werror_flag" ||
11703 test ! -s conftest.err
11704 } && test -s conftest.$ac_objext; then
11705 ac_cv_member_struct_stat_st_blksize=yes
11706 else
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 ac_cv_member_struct_stat_st_blksize=no
11713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11718 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11719 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11720 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11722 cat >>confdefs.h <<_ACEOF
11723 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11724 _ACEOF
11729 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11730 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11731 if test "${ac_cv_header_time+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734 cat >conftest.$ac_ext <<_ACEOF
11735 /* confdefs.h. */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 #include <sys/types.h>
11741 #include <sys/time.h>
11742 #include <time.h>
11745 main ()
11747 if ((struct tm *) 0)
11748 return 0;
11750 return 0;
11752 _ACEOF
11753 rm -f conftest.$ac_objext
11754 if { (ac_try="$ac_compile"
11755 case "(($ac_try" in
11756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757 *) ac_try_echo=$ac_try;;
11758 esac
11759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760 (eval "$ac_compile") 2>conftest.er1
11761 ac_status=$?
11762 grep -v '^ *+' conftest.er1 >conftest.err
11763 rm -f conftest.er1
11764 cat conftest.err >&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } && {
11767 test -z "$ac_c_werror_flag" ||
11768 test ! -s conftest.err
11769 } && test -s conftest.$ac_objext; then
11770 ac_cv_header_time=yes
11771 else
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11775 ac_cv_header_time=no
11778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11780 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11781 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11782 if test $ac_cv_header_time = yes; then
11784 cat >>confdefs.h <<\_ACEOF
11785 #define TIME_WITH_SYS_TIME 1
11786 _ACEOF
11790 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11791 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11792 if test "${ac_cv_struct_tm+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795 cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h. */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 #include <sys/types.h>
11802 #include <time.h>
11805 main ()
11807 struct tm tm;
11808 int *p = &tm.tm_sec;
11809 return !p;
11811 return 0;
11813 _ACEOF
11814 rm -f conftest.$ac_objext
11815 if { (ac_try="$ac_compile"
11816 case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_compile") 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } && {
11828 test -z "$ac_c_werror_flag" ||
11829 test ! -s conftest.err
11830 } && test -s conftest.$ac_objext; then
11831 ac_cv_struct_tm=time.h
11832 else
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 ac_cv_struct_tm=sys/time.h
11839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11842 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11843 if test $ac_cv_struct_tm = sys/time.h; then
11845 cat >>confdefs.h <<\_ACEOF
11846 #define TM_IN_SYS_TIME 1
11847 _ACEOF
11851 { echo "$as_me:$LINENO: checking for working volatile" >&5
11852 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11853 if test "${ac_cv_c_volatile+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856 cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h. */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11864 main ()
11867 volatile int x;
11868 int * volatile y = (int *) 0;
11869 return !x && !y;
11871 return 0;
11873 _ACEOF
11874 rm -f conftest.$ac_objext
11875 if { (ac_try="$ac_compile"
11876 case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11879 esac
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_compile") 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } && {
11888 test -z "$ac_c_werror_flag" ||
11889 test ! -s conftest.err
11890 } && test -s conftest.$ac_objext; then
11891 ac_cv_c_volatile=yes
11892 else
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11896 ac_cv_c_volatile=no
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11902 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11903 if test $ac_cv_c_volatile = no; then
11905 cat >>confdefs.h <<\_ACEOF
11906 #define volatile
11907 _ACEOF
11911 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11912 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11913 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 else
11916 cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h. */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922 $ac_includes_default
11923 typedef ptrdiff_t ac__type_new_;
11925 main ()
11927 if ((ac__type_new_ *) 0)
11928 return 0;
11929 if (sizeof (ac__type_new_))
11930 return 0;
11932 return 0;
11934 _ACEOF
11935 rm -f conftest.$ac_objext
11936 if { (ac_try="$ac_compile"
11937 case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940 esac
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_compile") 2>conftest.er1
11943 ac_status=$?
11944 grep -v '^ *+' conftest.er1 >conftest.err
11945 rm -f conftest.er1
11946 cat conftest.err >&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } && {
11949 test -z "$ac_c_werror_flag" ||
11950 test ! -s conftest.err
11951 } && test -s conftest.$ac_objext; then
11952 ac_cv_type_ptrdiff_t=yes
11953 else
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_cv_type_ptrdiff_t=no
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11962 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11963 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11964 if test $ac_cv_type_ptrdiff_t = yes; then
11966 cat >>confdefs.h <<_ACEOF
11967 #define HAVE_PTRDIFF_T 1
11968 _ACEOF
11974 # Checks for library functions.
11976 for ac_header in unistd.h
11978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 ac_res=`eval echo '${'$as_ac_Header'}'`
11986 { echo "$as_me:$LINENO: result: $ac_res" >&5
11987 echo "${ECHO_T}$ac_res" >&6; }
11988 else
11989 # Is the header compilable?
11990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11992 cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h. */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 $ac_includes_default
11999 #include <$ac_header>
12000 _ACEOF
12001 rm -f conftest.$ac_objext
12002 if { (ac_try="$ac_compile"
12003 case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12006 esac
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_compile") 2>conftest.er1
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } && {
12015 test -z "$ac_c_werror_flag" ||
12016 test ! -s conftest.err
12017 } && test -s conftest.$ac_objext; then
12018 ac_header_compiler=yes
12019 else
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12023 ac_header_compiler=no
12026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12028 echo "${ECHO_T}$ac_header_compiler" >&6; }
12030 # Is the header present?
12031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12033 cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h. */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 #include <$ac_header>
12040 _ACEOF
12041 if { (ac_try="$ac_cpp conftest.$ac_ext"
12042 case "(($ac_try" in
12043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12045 esac
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12048 ac_status=$?
12049 grep -v '^ *+' conftest.er1 >conftest.err
12050 rm -f conftest.er1
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } >/dev/null && {
12054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12055 test ! -s conftest.err
12056 }; then
12057 ac_header_preproc=yes
12058 else
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062 ac_header_preproc=no
12065 rm -f conftest.err conftest.$ac_ext
12066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12067 echo "${ECHO_T}$ac_header_preproc" >&6; }
12069 # So? What about this header?
12070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12071 yes:no: )
12072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12076 ac_header_preproc=yes
12078 no:yes:* )
12079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12091 ( cat <<\_ASBOX
12092 ## ------------------------------- ##
12093 ## Report this to www.asterisk.org ##
12094 ## ------------------------------- ##
12095 _ASBOX
12096 ) | sed "s/^/$as_me: WARNING: /" >&2
12098 esac
12099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104 eval "$as_ac_Header=\$ac_header_preproc"
12106 ac_res=`eval echo '${'$as_ac_Header'}'`
12107 { echo "$as_me:$LINENO: result: $ac_res" >&5
12108 echo "${ECHO_T}$ac_res" >&6; }
12111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12112 cat >>confdefs.h <<_ACEOF
12113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12114 _ACEOF
12118 done
12120 { echo "$as_me:$LINENO: checking for working chown" >&5
12121 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
12122 if test "${ac_cv_func_chown_works+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125 if test "$cross_compiling" = yes; then
12126 ac_cv_func_chown_works=no
12127 else
12128 cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h. */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 $ac_includes_default
12135 #include <fcntl.h>
12138 main ()
12140 char *f = "conftest.chown";
12141 struct stat before, after;
12143 if (creat (f, 0600) < 0)
12144 return 1;
12145 if (stat (f, &before) < 0)
12146 return 1;
12147 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12148 return 1;
12149 if (stat (f, &after) < 0)
12150 return 1;
12151 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12154 return 0;
12156 _ACEOF
12157 rm -f conftest$ac_exeext
12158 if { (ac_try="$ac_link"
12159 case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12162 esac
12163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164 (eval "$ac_link") 2>&5
12165 ac_status=$?
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12168 { (case "(($ac_try" in
12169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12171 esac
12172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173 (eval "$ac_try") 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12177 ac_cv_func_chown_works=yes
12178 else
12179 echo "$as_me: program exited with status $ac_status" >&5
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12183 ( exit $ac_status )
12184 ac_cv_func_chown_works=no
12186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12190 rm -f conftest.chown
12193 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
12194 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
12195 if test $ac_cv_func_chown_works = yes; then
12197 cat >>confdefs.h <<\_ACEOF
12198 #define HAVE_CHOWN 1
12199 _ACEOF
12203 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12204 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
12205 if test "${ac_cv_func_closedir_void+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 else
12208 if test "$cross_compiling" = yes; then
12209 ac_cv_func_closedir_void=yes
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 $ac_includes_default
12218 #include <$ac_header_dirent>
12219 #ifndef __cplusplus
12220 int closedir ();
12221 #endif
12224 main ()
12226 return closedir (opendir (".")) != 0;
12228 return 0;
12230 _ACEOF
12231 rm -f conftest$ac_exeext
12232 if { (ac_try="$ac_link"
12233 case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12236 esac
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_link") 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12242 { (case "(($ac_try" in
12243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244 *) ac_try_echo=$ac_try;;
12245 esac
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_try") 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 ac_cv_func_closedir_void=no
12252 else
12253 echo "$as_me: program exited with status $ac_status" >&5
12254 echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12257 ( exit $ac_status )
12258 ac_cv_func_closedir_void=yes
12260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12265 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12266 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12267 if test $ac_cv_func_closedir_void = yes; then
12269 cat >>confdefs.h <<\_ACEOF
12270 #define CLOSEDIR_VOID 1
12271 _ACEOF
12275 { echo "$as_me:$LINENO: checking for error_at_line" >&5
12276 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
12277 if test "${ac_cv_lib_error_at_line+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 else
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h. */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 #include <error.h>
12288 main ()
12290 error_at_line (0, 0, "", 0, "an error occurred");
12292 return 0;
12294 _ACEOF
12295 rm -f conftest.$ac_objext conftest$ac_exeext
12296 if { (ac_try="$ac_link"
12297 case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12300 esac
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_link") 2>conftest.er1
12303 ac_status=$?
12304 grep -v '^ *+' conftest.er1 >conftest.err
12305 rm -f conftest.er1
12306 cat conftest.err >&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } && {
12309 test -z "$ac_c_werror_flag" ||
12310 test ! -s conftest.err
12311 } && test -s conftest$ac_exeext &&
12312 $as_test_x conftest$ac_exeext; then
12313 ac_cv_lib_error_at_line=yes
12314 else
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12318 ac_cv_lib_error_at_line=no
12321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12322 conftest$ac_exeext conftest.$ac_ext
12324 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
12325 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
12326 if test $ac_cv_lib_error_at_line = no; then
12327 case " $LIBOBJS " in
12328 *" error.$ac_objext "* ) ;;
12329 *) LIBOBJS="$LIBOBJS error.$ac_objext"
12331 esac
12336 for ac_header in vfork.h
12338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 ac_res=`eval echo '${'$as_ac_Header'}'`
12346 { echo "$as_me:$LINENO: result: $ac_res" >&5
12347 echo "${ECHO_T}$ac_res" >&6; }
12348 else
12349 # Is the header compilable?
12350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12352 cat >conftest.$ac_ext <<_ACEOF
12353 /* confdefs.h. */
12354 _ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12358 $ac_includes_default
12359 #include <$ac_header>
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (ac_try="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366 esac
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_compile") 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } && {
12375 test -z "$ac_c_werror_flag" ||
12376 test ! -s conftest.err
12377 } && test -s conftest.$ac_objext; then
12378 ac_header_compiler=yes
12379 else
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_header_compiler=no
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12388 echo "${ECHO_T}$ac_header_compiler" >&6; }
12390 # Is the header present?
12391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 #include <$ac_header>
12400 _ACEOF
12401 if { (ac_try="$ac_cpp conftest.$ac_ext"
12402 case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12405 esac
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } >/dev/null && {
12414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12415 test ! -s conftest.err
12416 }; then
12417 ac_header_preproc=yes
12418 else
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 ac_header_preproc=no
12425 rm -f conftest.err conftest.$ac_ext
12426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12427 echo "${ECHO_T}$ac_header_preproc" >&6; }
12429 # So? What about this header?
12430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12431 yes:no: )
12432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12436 ac_header_preproc=yes
12438 no:yes:* )
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12451 ( cat <<\_ASBOX
12452 ## ------------------------------- ##
12453 ## Report this to www.asterisk.org ##
12454 ## ------------------------------- ##
12455 _ASBOX
12456 ) | sed "s/^/$as_me: WARNING: /" >&2
12458 esac
12459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464 eval "$as_ac_Header=\$ac_header_preproc"
12466 ac_res=`eval echo '${'$as_ac_Header'}'`
12467 { echo "$as_me:$LINENO: result: $ac_res" >&5
12468 echo "${ECHO_T}$ac_res" >&6; }
12471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12472 cat >>confdefs.h <<_ACEOF
12473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12474 _ACEOF
12478 done
12482 for ac_func in fork vfork
12484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 else
12490 cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h. */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12498 #define $ac_func innocuous_$ac_func
12500 /* System header to define __stub macros and hopefully few prototypes,
12501 which can conflict with char $ac_func (); below.
12502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12503 <limits.h> exists even on freestanding compilers. */
12505 #ifdef __STDC__
12506 # include <limits.h>
12507 #else
12508 # include <assert.h>
12509 #endif
12511 #undef $ac_func
12513 /* Override any GCC internal prototype to avoid an error.
12514 Use char because int might match the return type of a GCC
12515 builtin and then its argument prototype would still apply. */
12516 #ifdef __cplusplus
12517 extern "C"
12518 #endif
12519 char $ac_func ();
12520 /* The GNU C library defines this for functions which it implements
12521 to always fail with ENOSYS. Some functions are actually named
12522 something starting with __ and the normal name is an alias. */
12523 #if defined __stub_$ac_func || defined __stub___$ac_func
12524 choke me
12525 #endif
12528 main ()
12530 return $ac_func ();
12532 return 0;
12534 _ACEOF
12535 rm -f conftest.$ac_objext conftest$ac_exeext
12536 if { (ac_try="$ac_link"
12537 case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_link") 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } && {
12549 test -z "$ac_c_werror_flag" ||
12550 test ! -s conftest.err
12551 } && test -s conftest$ac_exeext &&
12552 $as_test_x conftest$ac_exeext; then
12553 eval "$as_ac_var=yes"
12554 else
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12558 eval "$as_ac_var=no"
12561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12562 conftest$ac_exeext conftest.$ac_ext
12564 ac_res=`eval echo '${'$as_ac_var'}'`
12565 { echo "$as_me:$LINENO: result: $ac_res" >&5
12566 echo "${ECHO_T}$ac_res" >&6; }
12567 if test `eval echo '${'$as_ac_var'}'` = yes; then
12568 cat >>confdefs.h <<_ACEOF
12569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12570 _ACEOF
12573 done
12575 if test "x$ac_cv_func_fork" = xyes; then
12576 { echo "$as_me:$LINENO: checking for working fork" >&5
12577 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
12578 if test "${ac_cv_func_fork_works+set}" = set; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 else
12581 if test "$cross_compiling" = yes; then
12582 ac_cv_func_fork_works=cross
12583 else
12584 cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h. */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590 $ac_includes_default
12592 main ()
12595 /* By Ruediger Kuhlmann. */
12596 return fork () < 0;
12599 return 0;
12601 _ACEOF
12602 rm -f conftest$ac_exeext
12603 if { (ac_try="$ac_link"
12604 case "(($ac_try" in
12605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606 *) ac_try_echo=$ac_try;;
12607 esac
12608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609 (eval "$ac_link") 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616 esac
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_try") 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 ac_cv_func_fork_works=yes
12623 else
12624 echo "$as_me: program exited with status $ac_status" >&5
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 ( exit $ac_status )
12629 ac_cv_func_fork_works=no
12631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12636 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12637 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12639 else
12640 ac_cv_func_fork_works=$ac_cv_func_fork
12642 if test "x$ac_cv_func_fork_works" = xcross; then
12643 case $host in
12644 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
12645 # Override, as these systems have only a dummy fork() stub
12646 ac_cv_func_fork_works=no
12649 ac_cv_func_fork_works=yes
12651 esac
12652 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12653 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12655 ac_cv_func_vfork_works=$ac_cv_func_vfork
12656 if test "x$ac_cv_func_vfork" = xyes; then
12657 { echo "$as_me:$LINENO: checking for working vfork" >&5
12658 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
12659 if test "${ac_cv_func_vfork_works+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662 if test "$cross_compiling" = yes; then
12663 ac_cv_func_vfork_works=cross
12664 else
12665 cat >conftest.$ac_ext <<_ACEOF
12666 /* confdefs.h. */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12671 /* Thanks to Paul Eggert for this test. */
12672 $ac_includes_default
12673 #include <sys/wait.h>
12674 #ifdef HAVE_VFORK_H
12675 # include <vfork.h>
12676 #endif
12677 /* On some sparc systems, changes by the child to local and incoming
12678 argument registers are propagated back to the parent. The compiler
12679 is told about this with #include <vfork.h>, but some compilers
12680 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12681 static variable whose address is put into a register that is
12682 clobbered by the vfork. */
12683 static void
12684 #ifdef __cplusplus
12685 sparc_address_test (int arg)
12686 # else
12687 sparc_address_test (arg) int arg;
12688 #endif
12690 static pid_t child;
12691 if (!child) {
12692 child = vfork ();
12693 if (child < 0) {
12694 perror ("vfork");
12695 _exit(2);
12697 if (!child) {
12698 arg = getpid();
12699 write(-1, "", 0);
12700 _exit (arg);
12706 main ()
12708 pid_t parent = getpid ();
12709 pid_t child;
12711 sparc_address_test (0);
12713 child = vfork ();
12715 if (child == 0) {
12716 /* Here is another test for sparc vfork register problems. This
12717 test uses lots of local variables, at least as many local
12718 variables as main has allocated so far including compiler
12719 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12720 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12721 reuse the register of parent for one of the local variables,
12722 since it will think that parent can't possibly be used any more
12723 in this routine. Assigning to the local variable will thus
12724 munge parent in the parent process. */
12725 pid_t
12726 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12727 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12728 /* Convince the compiler that p..p7 are live; otherwise, it might
12729 use the same hardware register for all 8 local variables. */
12730 if (p != p1 || p != p2 || p != p3 || p != p4
12731 || p != p5 || p != p6 || p != p7)
12732 _exit(1);
12734 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12735 from child file descriptors. If the child closes a descriptor
12736 before it execs or exits, this munges the parent's descriptor
12737 as well. Test for this by closing stdout in the child. */
12738 _exit(close(fileno(stdout)) != 0);
12739 } else {
12740 int status;
12741 struct stat st;
12743 while (wait(&status) != child)
12745 return (
12746 /* Was there some problem with vforking? */
12747 child < 0
12749 /* Did the child fail? (This shouldn't happen.) */
12750 || status
12752 /* Did the vfork/compiler bug occur? */
12753 || parent != getpid()
12755 /* Did the file descriptor bug occur? */
12756 || fstat(fileno(stdout), &st) != 0
12760 _ACEOF
12761 rm -f conftest$ac_exeext
12762 if { (ac_try="$ac_link"
12763 case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766 esac
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_link") 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12772 { (case "(($ac_try" in
12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774 *) ac_try_echo=$ac_try;;
12775 esac
12776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777 (eval "$ac_try") 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; }; then
12781 ac_cv_func_vfork_works=yes
12782 else
12783 echo "$as_me: program exited with status $ac_status" >&5
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12787 ( exit $ac_status )
12788 ac_cv_func_vfork_works=no
12790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12795 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12796 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12799 if test "x$ac_cv_func_fork_works" = xcross; then
12800 ac_cv_func_vfork_works=$ac_cv_func_vfork
12801 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12802 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12805 if test "x$ac_cv_func_vfork_works" = xyes; then
12807 cat >>confdefs.h <<\_ACEOF
12808 #define HAVE_WORKING_VFORK 1
12809 _ACEOF
12811 else
12813 cat >>confdefs.h <<\_ACEOF
12814 #define vfork fork
12815 _ACEOF
12818 if test "x$ac_cv_func_fork_works" = xyes; then
12820 cat >>confdefs.h <<\_ACEOF
12821 #define HAVE_WORKING_FORK 1
12822 _ACEOF
12826 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12827 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12828 if test "${ac_cv_sys_largefile_source+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 else
12831 while :; do
12832 cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h. */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12838 #include <sys/types.h> /* for off_t */
12839 #include <stdio.h>
12841 main ()
12843 int (*fp) (FILE *, off_t, int) = fseeko;
12844 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12846 return 0;
12848 _ACEOF
12849 rm -f conftest.$ac_objext conftest$ac_exeext
12850 if { (ac_try="$ac_link"
12851 case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12854 esac
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_link") 2>conftest.er1
12857 ac_status=$?
12858 grep -v '^ *+' conftest.er1 >conftest.err
12859 rm -f conftest.er1
12860 cat conftest.err >&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } && {
12863 test -z "$ac_c_werror_flag" ||
12864 test ! -s conftest.err
12865 } && test -s conftest$ac_exeext &&
12866 $as_test_x conftest$ac_exeext; then
12867 ac_cv_sys_largefile_source=no; break
12868 else
12869 echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12876 conftest$ac_exeext conftest.$ac_ext
12877 cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h. */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12883 #define _LARGEFILE_SOURCE 1
12884 #include <sys/types.h> /* for off_t */
12885 #include <stdio.h>
12887 main ()
12889 int (*fp) (FILE *, off_t, int) = fseeko;
12890 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12892 return 0;
12894 _ACEOF
12895 rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (ac_try="$ac_link"
12897 case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_link") 2>conftest.er1
12903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } && {
12909 test -z "$ac_c_werror_flag" ||
12910 test ! -s conftest.err
12911 } && test -s conftest$ac_exeext &&
12912 $as_test_x conftest$ac_exeext; then
12913 ac_cv_sys_largefile_source=1; break
12914 else
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12922 conftest$ac_exeext conftest.$ac_ext
12923 ac_cv_sys_largefile_source=unknown
12924 break
12925 done
12927 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12928 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12929 case $ac_cv_sys_largefile_source in #(
12930 no | unknown) ;;
12932 cat >>confdefs.h <<_ACEOF
12933 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12934 _ACEOF
12936 esac
12937 rm -f conftest*
12939 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12940 # in glibc 2.1.3, but that breaks too many other things.
12941 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12942 if test $ac_cv_sys_largefile_source != unknown; then
12944 cat >>confdefs.h <<\_ACEOF
12945 #define HAVE_FSEEKO 1
12946 _ACEOF
12950 if test $ac_cv_c_compiler_gnu = yes; then
12951 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12952 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12953 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956 ac_pattern="Autoconf.*'x'"
12957 cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h. */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 #include <sgtty.h>
12964 Autoconf TIOCGETP
12965 _ACEOF
12966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12967 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12968 ac_cv_prog_gcc_traditional=yes
12969 else
12970 ac_cv_prog_gcc_traditional=no
12972 rm -f conftest*
12975 if test $ac_cv_prog_gcc_traditional = no; then
12976 cat >conftest.$ac_ext <<_ACEOF
12977 /* confdefs.h. */
12978 _ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12982 #include <termio.h>
12983 Autoconf TCGETA
12984 _ACEOF
12985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12986 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12987 ac_cv_prog_gcc_traditional=yes
12989 rm -f conftest*
12993 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12994 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12995 if test $ac_cv_prog_gcc_traditional = yes; then
12996 CC="$CC -traditional"
13000 # XXX: these are commented out until we determine whether it matters if our malloc()
13001 # acts exactly like glibc's or not
13002 # AC_FUNC_MALLOC
13003 # AC_FUNC_REALLOC
13004 { echo "$as_me:$LINENO: checking for working memcmp" >&5
13005 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
13006 if test "${ac_cv_func_memcmp_working+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 else
13009 if test "$cross_compiling" = yes; then
13010 ac_cv_func_memcmp_working=no
13011 else
13012 cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h. */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 $ac_includes_default
13020 main ()
13023 /* Some versions of memcmp are not 8-bit clean. */
13024 char c0 = '\100', c1 = '\200', c2 = '\201';
13025 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13026 return 1;
13028 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13029 or more and with at least one buffer not starting on a 4-byte boundary.
13030 William Lewis provided this test program. */
13032 char foo[21];
13033 char bar[21];
13034 int i;
13035 for (i = 0; i < 4; i++)
13037 char *a = foo + i;
13038 char *b = bar + i;
13039 strcpy (a, "--------01111111");
13040 strcpy (b, "--------10000000");
13041 if (memcmp (a, b, 16) >= 0)
13042 return 1;
13044 return 0;
13048 return 0;
13050 _ACEOF
13051 rm -f conftest$ac_exeext
13052 if { (ac_try="$ac_link"
13053 case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13056 esac
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_link") 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13062 { (case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13065 esac
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_try") 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_cv_func_memcmp_working=yes
13072 else
13073 echo "$as_me: program exited with status $ac_status" >&5
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13077 ( exit $ac_status )
13078 ac_cv_func_memcmp_working=no
13080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13085 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
13086 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
13087 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13088 *" memcmp.$ac_objext "* ) ;;
13089 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13091 esac
13096 for ac_header in stdlib.h unistd.h
13098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 ac_res=`eval echo '${'$as_ac_Header'}'`
13106 { echo "$as_me:$LINENO: result: $ac_res" >&5
13107 echo "${ECHO_T}$ac_res" >&6; }
13108 else
13109 # Is the header compilable?
13110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h. */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 $ac_includes_default
13119 #include <$ac_header>
13120 _ACEOF
13121 rm -f conftest.$ac_objext
13122 if { (ac_try="$ac_compile"
13123 case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13126 esac
13127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13128 (eval "$ac_compile") 2>conftest.er1
13129 ac_status=$?
13130 grep -v '^ *+' conftest.er1 >conftest.err
13131 rm -f conftest.er1
13132 cat conftest.err >&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } && {
13135 test -z "$ac_c_werror_flag" ||
13136 test ! -s conftest.err
13137 } && test -s conftest.$ac_objext; then
13138 ac_header_compiler=yes
13139 else
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13143 ac_header_compiler=no
13146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13148 echo "${ECHO_T}$ac_header_compiler" >&6; }
13150 # Is the header present?
13151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 #include <$ac_header>
13160 _ACEOF
13161 if { (ac_try="$ac_cpp conftest.$ac_ext"
13162 case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13165 esac
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13168 ac_status=$?
13169 grep -v '^ *+' conftest.er1 >conftest.err
13170 rm -f conftest.er1
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } >/dev/null && {
13174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13175 test ! -s conftest.err
13176 }; then
13177 ac_header_preproc=yes
13178 else
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 ac_header_preproc=no
13185 rm -f conftest.err conftest.$ac_ext
13186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13187 echo "${ECHO_T}$ac_header_preproc" >&6; }
13189 # So? What about this header?
13190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13191 yes:no: )
13192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13196 ac_header_preproc=yes
13198 no:yes:* )
13199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13211 ( cat <<\_ASBOX
13212 ## ------------------------------- ##
13213 ## Report this to www.asterisk.org ##
13214 ## ------------------------------- ##
13215 _ASBOX
13216 ) | sed "s/^/$as_me: WARNING: /" >&2
13218 esac
13219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224 eval "$as_ac_Header=\$ac_header_preproc"
13226 ac_res=`eval echo '${'$as_ac_Header'}'`
13227 { echo "$as_me:$LINENO: result: $ac_res" >&5
13228 echo "${ECHO_T}$ac_res" >&6; }
13231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13232 cat >>confdefs.h <<_ACEOF
13233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13234 _ACEOF
13238 done
13241 for ac_func in getpagesize
13243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13248 else
13249 cat >conftest.$ac_ext <<_ACEOF
13250 /* confdefs.h. */
13251 _ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h. */
13255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13257 #define $ac_func innocuous_$ac_func
13259 /* System header to define __stub macros and hopefully few prototypes,
13260 which can conflict with char $ac_func (); below.
13261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13262 <limits.h> exists even on freestanding compilers. */
13264 #ifdef __STDC__
13265 # include <limits.h>
13266 #else
13267 # include <assert.h>
13268 #endif
13270 #undef $ac_func
13272 /* Override any GCC internal prototype to avoid an error.
13273 Use char because int might match the return type of a GCC
13274 builtin and then its argument prototype would still apply. */
13275 #ifdef __cplusplus
13276 extern "C"
13277 #endif
13278 char $ac_func ();
13279 /* The GNU C library defines this for functions which it implements
13280 to always fail with ENOSYS. Some functions are actually named
13281 something starting with __ and the normal name is an alias. */
13282 #if defined __stub_$ac_func || defined __stub___$ac_func
13283 choke me
13284 #endif
13287 main ()
13289 return $ac_func ();
13291 return 0;
13293 _ACEOF
13294 rm -f conftest.$ac_objext conftest$ac_exeext
13295 if { (ac_try="$ac_link"
13296 case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13299 esac
13300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_link") 2>conftest.er1
13302 ac_status=$?
13303 grep -v '^ *+' conftest.er1 >conftest.err
13304 rm -f conftest.er1
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } && {
13308 test -z "$ac_c_werror_flag" ||
13309 test ! -s conftest.err
13310 } && test -s conftest$ac_exeext &&
13311 $as_test_x conftest$ac_exeext; then
13312 eval "$as_ac_var=yes"
13313 else
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 eval "$as_ac_var=no"
13320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13321 conftest$ac_exeext conftest.$ac_ext
13323 ac_res=`eval echo '${'$as_ac_var'}'`
13324 { echo "$as_me:$LINENO: result: $ac_res" >&5
13325 echo "${ECHO_T}$ac_res" >&6; }
13326 if test `eval echo '${'$as_ac_var'}'` = yes; then
13327 cat >>confdefs.h <<_ACEOF
13328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13329 _ACEOF
13332 done
13334 { echo "$as_me:$LINENO: checking for working mmap" >&5
13335 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
13336 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339 if test "$cross_compiling" = yes; then
13340 ac_cv_func_mmap_fixed_mapped=no
13341 else
13342 cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h. */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13348 $ac_includes_default
13349 /* malloc might have been renamed as rpl_malloc. */
13350 #undef malloc
13352 /* Thanks to Mike Haertel and Jim Avera for this test.
13353 Here is a matrix of mmap possibilities:
13354 mmap private not fixed
13355 mmap private fixed at somewhere currently unmapped
13356 mmap private fixed at somewhere already mapped
13357 mmap shared not fixed
13358 mmap shared fixed at somewhere currently unmapped
13359 mmap shared fixed at somewhere already mapped
13360 For private mappings, we should verify that changes cannot be read()
13361 back from the file, nor mmap's back from the file at a different
13362 address. (There have been systems where private was not correctly
13363 implemented like the infamous i386 svr4.0, and systems where the
13364 VM page cache was not coherent with the file system buffer cache
13365 like early versions of FreeBSD and possibly contemporary NetBSD.)
13366 For shared mappings, we should conversely verify that changes get
13367 propagated back to all the places they're supposed to be.
13369 Grep wants private fixed already mapped.
13370 The main things grep needs to know about mmap are:
13371 * does it exist and is it safe to write into the mmap'd area
13372 * how to use it (BSD variants) */
13374 #include <fcntl.h>
13375 #include <sys/mman.h>
13377 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13378 char *malloc ();
13379 #endif
13381 /* This mess was copied from the GNU getpagesize.h. */
13382 #ifndef HAVE_GETPAGESIZE
13383 /* Assume that all systems that can run configure have sys/param.h. */
13384 # ifndef HAVE_SYS_PARAM_H
13385 # define HAVE_SYS_PARAM_H 1
13386 # endif
13388 # ifdef _SC_PAGESIZE
13389 # define getpagesize() sysconf(_SC_PAGESIZE)
13390 # else /* no _SC_PAGESIZE */
13391 # ifdef HAVE_SYS_PARAM_H
13392 # include <sys/param.h>
13393 # ifdef EXEC_PAGESIZE
13394 # define getpagesize() EXEC_PAGESIZE
13395 # else /* no EXEC_PAGESIZE */
13396 # ifdef NBPG
13397 # define getpagesize() NBPG * CLSIZE
13398 # ifndef CLSIZE
13399 # define CLSIZE 1
13400 # endif /* no CLSIZE */
13401 # else /* no NBPG */
13402 # ifdef NBPC
13403 # define getpagesize() NBPC
13404 # else /* no NBPC */
13405 # ifdef PAGESIZE
13406 # define getpagesize() PAGESIZE
13407 # endif /* PAGESIZE */
13408 # endif /* no NBPC */
13409 # endif /* no NBPG */
13410 # endif /* no EXEC_PAGESIZE */
13411 # else /* no HAVE_SYS_PARAM_H */
13412 # define getpagesize() 8192 /* punt totally */
13413 # endif /* no HAVE_SYS_PARAM_H */
13414 # endif /* no _SC_PAGESIZE */
13416 #endif /* no HAVE_GETPAGESIZE */
13419 main ()
13421 char *data, *data2, *data3;
13422 int i, pagesize;
13423 int fd;
13425 pagesize = getpagesize ();
13427 /* First, make a file with some known garbage in it. */
13428 data = (char *) malloc (pagesize);
13429 if (!data)
13430 return 1;
13431 for (i = 0; i < pagesize; ++i)
13432 *(data + i) = rand ();
13433 umask (0);
13434 fd = creat ("conftest.mmap", 0600);
13435 if (fd < 0)
13436 return 1;
13437 if (write (fd, data, pagesize) != pagesize)
13438 return 1;
13439 close (fd);
13441 /* Next, try to mmap the file at a fixed address which already has
13442 something else allocated at it. If we can, also make sure that
13443 we see the same garbage. */
13444 fd = open ("conftest.mmap", O_RDWR);
13445 if (fd < 0)
13446 return 1;
13447 data2 = (char *) malloc (2 * pagesize);
13448 if (!data2)
13449 return 1;
13450 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13451 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13452 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13453 return 1;
13454 for (i = 0; i < pagesize; ++i)
13455 if (*(data + i) != *(data2 + i))
13456 return 1;
13458 /* Finally, make sure that changes to the mapped area do not
13459 percolate back to the file as seen by read(). (This is a bug on
13460 some variants of i386 svr4.0.) */
13461 for (i = 0; i < pagesize; ++i)
13462 *(data2 + i) = *(data2 + i) + 1;
13463 data3 = (char *) malloc (pagesize);
13464 if (!data3)
13465 return 1;
13466 if (read (fd, data3, pagesize) != pagesize)
13467 return 1;
13468 for (i = 0; i < pagesize; ++i)
13469 if (*(data + i) != *(data3 + i))
13470 return 1;
13471 close (fd);
13472 return 0;
13474 _ACEOF
13475 rm -f conftest$ac_exeext
13476 if { (ac_try="$ac_link"
13477 case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_link") 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13486 { (case "(($ac_try" in
13487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488 *) ac_try_echo=$ac_try;;
13489 esac
13490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491 (eval "$ac_try") 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
13495 ac_cv_func_mmap_fixed_mapped=yes
13496 else
13497 echo "$as_me: program exited with status $ac_status" >&5
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13501 ( exit $ac_status )
13502 ac_cv_func_mmap_fixed_mapped=no
13504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13509 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13510 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13511 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13513 cat >>confdefs.h <<\_ACEOF
13514 #define HAVE_MMAP 1
13515 _ACEOF
13518 rm -f conftest.mmap
13522 for ac_header in sys/select.h sys/socket.h
13524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 ac_res=`eval echo '${'$as_ac_Header'}'`
13532 { echo "$as_me:$LINENO: result: $ac_res" >&5
13533 echo "${ECHO_T}$ac_res" >&6; }
13534 else
13535 # Is the header compilable?
13536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13538 cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h. */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13544 $ac_includes_default
13545 #include <$ac_header>
13546 _ACEOF
13547 rm -f conftest.$ac_objext
13548 if { (ac_try="$ac_compile"
13549 case "(($ac_try" in
13550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551 *) ac_try_echo=$ac_try;;
13552 esac
13553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13554 (eval "$ac_compile") 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } && {
13561 test -z "$ac_c_werror_flag" ||
13562 test ! -s conftest.err
13563 } && test -s conftest.$ac_objext; then
13564 ac_header_compiler=yes
13565 else
13566 echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13569 ac_header_compiler=no
13572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13574 echo "${ECHO_T}$ac_header_compiler" >&6; }
13576 # Is the header present?
13577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13579 cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h. */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 #include <$ac_header>
13586 _ACEOF
13587 if { (ac_try="$ac_cpp conftest.$ac_ext"
13588 case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591 esac
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13594 ac_status=$?
13595 grep -v '^ *+' conftest.er1 >conftest.err
13596 rm -f conftest.er1
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } >/dev/null && {
13600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13601 test ! -s conftest.err
13602 }; then
13603 ac_header_preproc=yes
13604 else
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13608 ac_header_preproc=no
13611 rm -f conftest.err conftest.$ac_ext
13612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13613 echo "${ECHO_T}$ac_header_preproc" >&6; }
13615 # So? What about this header?
13616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13617 yes:no: )
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13622 ac_header_preproc=yes
13624 no:yes:* )
13625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13637 ( cat <<\_ASBOX
13638 ## ------------------------------- ##
13639 ## Report this to www.asterisk.org ##
13640 ## ------------------------------- ##
13641 _ASBOX
13642 ) | sed "s/^/$as_me: WARNING: /" >&2
13644 esac
13645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650 eval "$as_ac_Header=\$ac_header_preproc"
13652 ac_res=`eval echo '${'$as_ac_Header'}'`
13653 { echo "$as_me:$LINENO: result: $ac_res" >&5
13654 echo "${ECHO_T}$ac_res" >&6; }
13657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13658 cat >>confdefs.h <<_ACEOF
13659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13660 _ACEOF
13664 done
13666 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13667 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13668 if test "${ac_cv_func_select_args+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 else
13671 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13672 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13673 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13674 cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h. */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 $ac_includes_default
13681 #ifdef HAVE_SYS_SELECT_H
13682 # include <sys/select.h>
13683 #endif
13684 #ifdef HAVE_SYS_SOCKET_H
13685 # include <sys/socket.h>
13686 #endif
13689 main ()
13691 extern int select ($ac_arg1,
13692 $ac_arg234, $ac_arg234, $ac_arg234,
13693 $ac_arg5);
13695 return 0;
13697 _ACEOF
13698 rm -f conftest.$ac_objext
13699 if { (ac_try="$ac_compile"
13700 case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703 esac
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_compile") 2>conftest.er1
13706 ac_status=$?
13707 grep -v '^ *+' conftest.er1 >conftest.err
13708 rm -f conftest.er1
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } && {
13712 test -z "$ac_c_werror_flag" ||
13713 test ! -s conftest.err
13714 } && test -s conftest.$ac_objext; then
13715 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13716 else
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724 done
13725 done
13726 done
13727 # Provide a safe default value.
13728 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13731 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13732 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13733 ac_save_IFS=$IFS; IFS=','
13734 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13735 IFS=$ac_save_IFS
13736 shift
13738 cat >>confdefs.h <<_ACEOF
13739 #define SELECT_TYPE_ARG1 $1
13740 _ACEOF
13743 cat >>confdefs.h <<_ACEOF
13744 #define SELECT_TYPE_ARG234 ($2)
13745 _ACEOF
13748 cat >>confdefs.h <<_ACEOF
13749 #define SELECT_TYPE_ARG5 ($3)
13750 _ACEOF
13752 rm -f conftest*
13754 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13755 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13756 if test "$ac_cv_prog_cc_c89" != no; then
13757 { echo "$as_me:$LINENO: result: yes" >&5
13758 echo "${ECHO_T}yes" >&6; }
13760 cat >>confdefs.h <<\_ACEOF
13761 #define PROTOTYPES 1
13762 _ACEOF
13765 cat >>confdefs.h <<\_ACEOF
13766 #define __PROTOTYPES 1
13767 _ACEOF
13769 else
13770 { echo "$as_me:$LINENO: result: no" >&5
13771 echo "${ECHO_T}no" >&6; }
13774 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13775 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13776 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13778 else
13779 ac_cv_func_setvbuf_reversed=no
13780 cat >conftest.$ac_ext <<_ACEOF
13781 /* confdefs.h. */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 #include <stdio.h>
13787 # ifdef PROTOTYPES
13788 int (setvbuf) (FILE *, int, char *, size_t);
13789 # endif
13791 main ()
13793 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13795 return 0;
13797 _ACEOF
13798 rm -f conftest.$ac_objext conftest$ac_exeext
13799 if { (ac_try="$ac_link"
13800 case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13803 esac
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_link") 2>conftest.er1
13806 ac_status=$?
13807 grep -v '^ *+' conftest.er1 >conftest.err
13808 rm -f conftest.er1
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } && {
13812 test -z "$ac_c_werror_flag" ||
13813 test ! -s conftest.err
13814 } && test -s conftest$ac_exeext &&
13815 $as_test_x conftest$ac_exeext; then
13816 cat >conftest.$ac_ext <<_ACEOF
13817 /* confdefs.h. */
13818 _ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13822 #include <stdio.h>
13823 # ifdef PROTOTYPES
13824 int (setvbuf) (FILE *, int, char *, size_t);
13825 # endif
13827 main ()
13829 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13831 return 0;
13833 _ACEOF
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (ac_try="$ac_link"
13836 case "(($ac_try" in
13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13839 esac
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_link") 2>conftest.er1
13842 ac_status=$?
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } && {
13848 test -z "$ac_c_werror_flag" ||
13849 test ! -s conftest.err
13850 } && test -s conftest$ac_exeext &&
13851 $as_test_x conftest$ac_exeext; then
13852 # It compiles and links either way, so it must not be declared
13853 # with a prototype and most likely this is a K&R C compiler.
13854 # Try running it.
13855 if test "$cross_compiling" = yes; then
13856 : # Assume setvbuf is not reversed when cross-compiling.
13857 else
13858 cat >conftest.$ac_ext <<_ACEOF
13859 /* confdefs.h. */
13860 _ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13864 $ac_includes_default
13866 main ()
13868 /* This call has the arguments reversed.
13869 A reversed system may check and see that the address of buf
13870 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13871 char buf;
13872 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13873 return 1;
13874 putchar ('\r');
13875 return 0; /* Non-reversed systems SEGV here. */
13877 return 0;
13879 _ACEOF
13880 rm -f conftest$ac_exeext
13881 if { (ac_try="$ac_link"
13882 case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13885 esac
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_link") 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13891 { (case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13894 esac
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_try") 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_cv_func_setvbuf_reversed=yes
13901 else
13902 echo "$as_me: program exited with status $ac_status" >&5
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13911 ac_cv_func_setvbuf_reversed=yes
13912 else
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13920 conftest$ac_exeext conftest.$ac_ext
13921 else
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13929 conftest$ac_exeext conftest.$ac_ext
13931 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13932 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13933 if test $ac_cv_func_setvbuf_reversed = yes; then
13935 cat >>confdefs.h <<\_ACEOF
13936 #define SETVBUF_REVERSED 1
13937 _ACEOF
13941 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13942 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13943 if test "${ac_cv_type_signal+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 else
13946 cat >conftest.$ac_ext <<_ACEOF
13947 /* confdefs.h. */
13948 _ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13952 #include <sys/types.h>
13953 #include <signal.h>
13956 main ()
13958 return *(signal (0, 0)) (0) == 1;
13960 return 0;
13962 _ACEOF
13963 rm -f conftest.$ac_objext
13964 if { (ac_try="$ac_compile"
13965 case "(($ac_try" in
13966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13968 esac
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_compile") 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } && {
13977 test -z "$ac_c_werror_flag" ||
13978 test ! -s conftest.err
13979 } && test -s conftest.$ac_objext; then
13980 ac_cv_type_signal=int
13981 else
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13985 ac_cv_type_signal=void
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13990 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13991 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13993 cat >>confdefs.h <<_ACEOF
13994 #define RETSIGTYPE $ac_cv_type_signal
13995 _ACEOF
13998 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13999 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
14000 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003 rm -f conftest.sym conftest.file
14004 echo >conftest.file
14005 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14006 if test "$cross_compiling" = yes; then
14007 ac_cv_func_lstat_dereferences_slashed_symlink=no
14008 else
14009 cat >conftest.$ac_ext <<_ACEOF
14010 /* confdefs.h. */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 $ac_includes_default
14017 main ()
14019 struct stat sbuf;
14020 /* Linux will dereference the symlink and fail.
14021 That is better in the sense that it means we will not
14022 have to compile and use the lstat wrapper. */
14023 return lstat ("conftest.sym/", &sbuf) == 0;
14025 return 0;
14027 _ACEOF
14028 rm -f conftest$ac_exeext
14029 if { (ac_try="$ac_link"
14030 case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14033 esac
14034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035 (eval "$ac_link") 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14039 { (case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14042 esac
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_try") 2>&5
14045 ac_status=$?
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; }; then
14048 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14049 else
14050 echo "$as_me: program exited with status $ac_status" >&5
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 ( exit $ac_status )
14055 ac_cv_func_lstat_dereferences_slashed_symlink=no
14057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14061 else
14062 # If the `ln -s' command failed, then we probably don't even
14063 # have an lstat function.
14064 ac_cv_func_lstat_dereferences_slashed_symlink=no
14066 rm -f conftest.sym conftest.file
14069 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14070 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14072 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14074 cat >>confdefs.h <<_ACEOF
14075 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14076 _ACEOF
14079 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14080 case " $LIBOBJS " in
14081 *" lstat.$ac_objext "* ) ;;
14082 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14084 esac
14088 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
14089 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
14090 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14092 else
14093 if test "$cross_compiling" = yes; then
14094 ac_cv_func_stat_empty_string_bug=yes
14095 else
14096 cat >conftest.$ac_ext <<_ACEOF
14097 /* confdefs.h. */
14098 _ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h. */
14102 $ac_includes_default
14104 main ()
14106 struct stat sbuf;
14107 return stat ("", &sbuf) == 0;
14109 return 0;
14111 _ACEOF
14112 rm -f conftest$ac_exeext
14113 if { (ac_try="$ac_link"
14114 case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14117 esac
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_link") 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14123 { (case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14126 esac
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_try") 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14132 ac_cv_func_stat_empty_string_bug=no
14133 else
14134 echo "$as_me: program exited with status $ac_status" >&5
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14138 ( exit $ac_status )
14139 ac_cv_func_stat_empty_string_bug=yes
14141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14146 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
14147 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
14148 if test $ac_cv_func_stat_empty_string_bug = yes; then
14149 case " $LIBOBJS " in
14150 *" stat.$ac_objext "* ) ;;
14151 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14153 esac
14156 cat >>confdefs.h <<_ACEOF
14157 #define HAVE_STAT_EMPTY_STRING_BUG 1
14158 _ACEOF
14162 { echo "$as_me:$LINENO: checking for working strcoll" >&5
14163 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
14164 if test "${ac_cv_func_strcoll_works+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167 if test "$cross_compiling" = yes; then
14168 ac_cv_func_strcoll_works=no
14169 else
14170 cat >conftest.$ac_ext <<_ACEOF
14171 /* confdefs.h. */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14176 $ac_includes_default
14178 main ()
14180 return (strcoll ("abc", "def") >= 0 ||
14181 strcoll ("ABC", "DEF") >= 0 ||
14182 strcoll ("123", "456") >= 0)
14184 return 0;
14186 _ACEOF
14187 rm -f conftest$ac_exeext
14188 if { (ac_try="$ac_link"
14189 case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_link") 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14198 { (case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14201 esac
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_try") 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
14207 ac_cv_func_strcoll_works=yes
14208 else
14209 echo "$as_me: program exited with status $ac_status" >&5
14210 echo "$as_me: failed program was:" >&5
14211 sed 's/^/| /' conftest.$ac_ext >&5
14213 ( exit $ac_status )
14214 ac_cv_func_strcoll_works=no
14216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14221 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
14222 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
14223 if test $ac_cv_func_strcoll_works = yes; then
14225 cat >>confdefs.h <<\_ACEOF
14226 #define HAVE_STRCOLL 1
14227 _ACEOF
14232 for ac_func in strftime
14234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240 cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h. */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14248 #define $ac_func innocuous_$ac_func
14250 /* System header to define __stub macros and hopefully few prototypes,
14251 which can conflict with char $ac_func (); below.
14252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14253 <limits.h> exists even on freestanding compilers. */
14255 #ifdef __STDC__
14256 # include <limits.h>
14257 #else
14258 # include <assert.h>
14259 #endif
14261 #undef $ac_func
14263 /* Override any GCC internal prototype to avoid an error.
14264 Use char because int might match the return type of a GCC
14265 builtin and then its argument prototype would still apply. */
14266 #ifdef __cplusplus
14267 extern "C"
14268 #endif
14269 char $ac_func ();
14270 /* The GNU C library defines this for functions which it implements
14271 to always fail with ENOSYS. Some functions are actually named
14272 something starting with __ and the normal name is an alias. */
14273 #if defined __stub_$ac_func || defined __stub___$ac_func
14274 choke me
14275 #endif
14278 main ()
14280 return $ac_func ();
14282 return 0;
14284 _ACEOF
14285 rm -f conftest.$ac_objext conftest$ac_exeext
14286 if { (ac_try="$ac_link"
14287 case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14290 esac
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_link") 2>conftest.er1
14293 ac_status=$?
14294 grep -v '^ *+' conftest.er1 >conftest.err
14295 rm -f conftest.er1
14296 cat conftest.err >&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } && {
14299 test -z "$ac_c_werror_flag" ||
14300 test ! -s conftest.err
14301 } && test -s conftest$ac_exeext &&
14302 $as_test_x conftest$ac_exeext; then
14303 eval "$as_ac_var=yes"
14304 else
14305 echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14308 eval "$as_ac_var=no"
14311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14312 conftest$ac_exeext conftest.$ac_ext
14314 ac_res=`eval echo '${'$as_ac_var'}'`
14315 { echo "$as_me:$LINENO: result: $ac_res" >&5
14316 echo "${ECHO_T}$ac_res" >&6; }
14317 if test `eval echo '${'$as_ac_var'}'` = yes; then
14318 cat >>confdefs.h <<_ACEOF
14319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14320 _ACEOF
14322 else
14323 # strftime is in -lintl on SCO UNIX.
14324 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14325 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14326 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14328 else
14329 ac_check_lib_save_LIBS=$LIBS
14330 LIBS="-lintl $LIBS"
14331 cat >conftest.$ac_ext <<_ACEOF
14332 /* confdefs.h. */
14333 _ACEOF
14334 cat confdefs.h >>conftest.$ac_ext
14335 cat >>conftest.$ac_ext <<_ACEOF
14336 /* end confdefs.h. */
14338 /* Override any GCC internal prototype to avoid an error.
14339 Use char because int might match the return type of a GCC
14340 builtin and then its argument prototype would still apply. */
14341 #ifdef __cplusplus
14342 extern "C"
14343 #endif
14344 char strftime ();
14346 main ()
14348 return strftime ();
14350 return 0;
14352 _ACEOF
14353 rm -f conftest.$ac_objext conftest$ac_exeext
14354 if { (ac_try="$ac_link"
14355 case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14358 esac
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_link") 2>conftest.er1
14361 ac_status=$?
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } && {
14367 test -z "$ac_c_werror_flag" ||
14368 test ! -s conftest.err
14369 } && test -s conftest$ac_exeext &&
14370 $as_test_x conftest$ac_exeext; then
14371 ac_cv_lib_intl_strftime=yes
14372 else
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ac_cv_lib_intl_strftime=no
14379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14380 conftest$ac_exeext conftest.$ac_ext
14381 LIBS=$ac_check_lib_save_LIBS
14383 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14384 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14385 if test $ac_cv_lib_intl_strftime = yes; then
14386 cat >>confdefs.h <<\_ACEOF
14387 #define HAVE_STRFTIME 1
14388 _ACEOF
14390 LIBS="-lintl $LIBS"
14394 done
14396 { echo "$as_me:$LINENO: checking for working strnlen" >&5
14397 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
14398 if test "${ac_cv_func_strnlen_working+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401 if test "$cross_compiling" = yes; then
14402 ac_cv_func_strnlen_working=no
14403 else
14404 cat >conftest.$ac_ext <<_ACEOF
14405 /* confdefs.h. */
14406 _ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14410 $ac_includes_default
14412 main ()
14415 #define S "foobar"
14416 #define S_LEN (sizeof S - 1)
14418 /* At least one implementation is buggy: that of AIX 4.3 would
14419 give strnlen (S, 1) == 3. */
14421 int i;
14422 for (i = 0; i < S_LEN + 1; ++i)
14424 int expected = i <= S_LEN ? i : S_LEN;
14425 if (strnlen (S, i) != expected)
14426 return 1;
14428 return 0;
14431 return 0;
14433 _ACEOF
14434 rm -f conftest$ac_exeext
14435 if { (ac_try="$ac_link"
14436 case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14439 esac
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_link") 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14448 esac
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_func_strnlen_working=yes
14455 else
14456 echo "$as_me: program exited with status $ac_status" >&5
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14460 ( exit $ac_status )
14461 ac_cv_func_strnlen_working=no
14463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14468 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
14469 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
14470 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
14471 *" strnlen.$ac_objext "* ) ;;
14472 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
14474 esac
14477 { echo "$as_me:$LINENO: checking for working strtod" >&5
14478 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
14479 if test "${ac_cv_func_strtod+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 else
14482 if test "$cross_compiling" = yes; then
14483 ac_cv_func_strtod=no
14484 else
14485 cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h. */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14492 $ac_includes_default
14493 #ifndef strtod
14494 double strtod ();
14495 #endif
14497 main()
14500 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14501 char *string = " +69";
14502 char *term;
14503 double value;
14504 value = strtod (string, &term);
14505 if (value != 69 || term != (string + 4))
14506 return 1;
14510 /* Under Solaris 2.4, strtod returns the wrong value for the
14511 terminating character under some conditions. */
14512 char *string = "NaN";
14513 char *term;
14514 strtod (string, &term);
14515 if (term != string && *(term - 1) == 0)
14516 return 1;
14518 return 0;
14521 _ACEOF
14522 rm -f conftest$ac_exeext
14523 if { (ac_try="$ac_link"
14524 case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14527 esac
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_link") 2>&5
14530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14533 { (case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536 esac
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_try") 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 ac_cv_func_strtod=yes
14543 else
14544 echo "$as_me: program exited with status $ac_status" >&5
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14548 ( exit $ac_status )
14549 ac_cv_func_strtod=no
14551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14556 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14557 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14558 if test $ac_cv_func_strtod = no; then
14559 case " $LIBOBJS " in
14560 *" strtod.$ac_objext "* ) ;;
14561 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14563 esac
14565 { echo "$as_me:$LINENO: checking for pow" >&5
14566 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14567 if test "${ac_cv_func_pow+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570 cat >conftest.$ac_ext <<_ACEOF
14571 /* confdefs.h. */
14572 _ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14576 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14578 #define pow innocuous_pow
14580 /* System header to define __stub macros and hopefully few prototypes,
14581 which can conflict with char pow (); below.
14582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14583 <limits.h> exists even on freestanding compilers. */
14585 #ifdef __STDC__
14586 # include <limits.h>
14587 #else
14588 # include <assert.h>
14589 #endif
14591 #undef pow
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 ();
14600 /* The GNU C library defines this for functions which it implements
14601 to always fail with ENOSYS. Some functions are actually named
14602 something starting with __ and the normal name is an alias. */
14603 #if defined __stub_pow || defined __stub___pow
14604 choke me
14605 #endif
14608 main ()
14610 return pow ();
14612 return 0;
14614 _ACEOF
14615 rm -f conftest.$ac_objext conftest$ac_exeext
14616 if { (ac_try="$ac_link"
14617 case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_link") 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } && {
14629 test -z "$ac_c_werror_flag" ||
14630 test ! -s conftest.err
14631 } && test -s conftest$ac_exeext &&
14632 $as_test_x conftest$ac_exeext; then
14633 ac_cv_func_pow=yes
14634 else
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14638 ac_cv_func_pow=no
14641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14642 conftest$ac_exeext conftest.$ac_ext
14644 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14645 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14647 if test $ac_cv_func_pow = no; then
14648 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14649 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14650 if test "${ac_cv_lib_m_pow+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 else
14653 ac_check_lib_save_LIBS=$LIBS
14654 LIBS="-lm $LIBS"
14655 cat >conftest.$ac_ext <<_ACEOF
14656 /* confdefs.h. */
14657 _ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14662 /* Override any GCC internal prototype to avoid an error.
14663 Use char because int might match the return type of a GCC
14664 builtin and then its argument prototype would still apply. */
14665 #ifdef __cplusplus
14666 extern "C"
14667 #endif
14668 char pow ();
14670 main ()
14672 return pow ();
14674 return 0;
14676 _ACEOF
14677 rm -f conftest.$ac_objext conftest$ac_exeext
14678 if { (ac_try="$ac_link"
14679 case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14682 esac
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_link") 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } && {
14691 test -z "$ac_c_werror_flag" ||
14692 test ! -s conftest.err
14693 } && test -s conftest$ac_exeext &&
14694 $as_test_x conftest$ac_exeext; then
14695 ac_cv_lib_m_pow=yes
14696 else
14697 echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14700 ac_cv_lib_m_pow=no
14703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14704 conftest$ac_exeext conftest.$ac_ext
14705 LIBS=$ac_check_lib_save_LIBS
14707 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14708 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14709 if test $ac_cv_lib_m_pow = yes; then
14710 POW_LIB=-lm
14711 else
14712 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14713 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14724 for ac_header in $ac_header_list
14726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14731 echo $ECHO_N "(cached) $ECHO_C" >&6
14733 ac_res=`eval echo '${'$as_ac_Header'}'`
14734 { echo "$as_me:$LINENO: result: $ac_res" >&5
14735 echo "${ECHO_T}$ac_res" >&6; }
14736 else
14737 # Is the header compilable?
14738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14740 cat >conftest.$ac_ext <<_ACEOF
14741 /* confdefs.h. */
14742 _ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14746 $ac_includes_default
14747 #include <$ac_header>
14748 _ACEOF
14749 rm -f conftest.$ac_objext
14750 if { (ac_try="$ac_compile"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_compile") 2>conftest.er1
14757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest.$ac_objext; then
14766 ac_header_compiler=yes
14767 else
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771 ac_header_compiler=no
14774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14776 echo "${ECHO_T}$ac_header_compiler" >&6; }
14778 # Is the header present?
14779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14781 cat >conftest.$ac_ext <<_ACEOF
14782 /* confdefs.h. */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 #include <$ac_header>
14788 _ACEOF
14789 if { (ac_try="$ac_cpp conftest.$ac_ext"
14790 case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14793 esac
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14796 ac_status=$?
14797 grep -v '^ *+' conftest.er1 >conftest.err
14798 rm -f conftest.er1
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } >/dev/null && {
14802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14803 test ! -s conftest.err
14804 }; then
14805 ac_header_preproc=yes
14806 else
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14810 ac_header_preproc=no
14813 rm -f conftest.err conftest.$ac_ext
14814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14815 echo "${ECHO_T}$ac_header_preproc" >&6; }
14817 # So? What about this header?
14818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14819 yes:no: )
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14824 ac_header_preproc=yes
14826 no:yes:* )
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14839 ( cat <<\_ASBOX
14840 ## ------------------------------- ##
14841 ## Report this to www.asterisk.org ##
14842 ## ------------------------------- ##
14843 _ASBOX
14844 ) | sed "s/^/$as_me: WARNING: /" >&2
14846 esac
14847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852 eval "$as_ac_Header=\$ac_header_preproc"
14854 ac_res=`eval echo '${'$as_ac_Header'}'`
14855 { echo "$as_me:$LINENO: result: $ac_res" >&5
14856 echo "${ECHO_T}$ac_res" >&6; }
14859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14860 cat >>confdefs.h <<_ACEOF
14861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14862 _ACEOF
14866 done
14876 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14877 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14878 if test "${ac_cv_func_utime_null+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881 rm -f conftest.data; >conftest.data
14882 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14883 if test "$cross_compiling" = yes; then
14884 ac_cv_func_utime_null=no
14885 else
14886 cat >conftest.$ac_ext <<_ACEOF
14887 /* confdefs.h. */
14888 _ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h. */
14892 $ac_includes_default
14893 #ifdef HAVE_UTIME_H
14894 # include <utime.h>
14895 #endif
14897 main ()
14899 struct stat s, t;
14900 return ! (stat ("conftest.data", &s) == 0
14901 && utime ("conftest.data", 0) == 0
14902 && stat ("conftest.data", &t) == 0
14903 && t.st_mtime >= s.st_mtime
14904 && t.st_mtime - s.st_mtime < 120);
14906 return 0;
14908 _ACEOF
14909 rm -f conftest$ac_exeext
14910 if { (ac_try="$ac_link"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914 esac
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_link") 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14920 { (case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14923 esac
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925 (eval "$ac_try") 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; }; then
14929 ac_cv_func_utime_null=yes
14930 else
14931 echo "$as_me: program exited with status $ac_status" >&5
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 ( exit $ac_status )
14936 ac_cv_func_utime_null=no
14938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14943 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14944 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14945 if test $ac_cv_func_utime_null = yes; then
14947 cat >>confdefs.h <<\_ACEOF
14948 #define HAVE_UTIME_NULL 1
14949 _ACEOF
14952 rm -f conftest.data
14955 for ac_func in vprintf
14957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14961 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 else
14963 cat >conftest.$ac_ext <<_ACEOF
14964 /* confdefs.h. */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14971 #define $ac_func innocuous_$ac_func
14973 /* System header to define __stub macros and hopefully few prototypes,
14974 which can conflict with char $ac_func (); below.
14975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14976 <limits.h> exists even on freestanding compilers. */
14978 #ifdef __STDC__
14979 # include <limits.h>
14980 #else
14981 # include <assert.h>
14982 #endif
14984 #undef $ac_func
14986 /* Override any GCC internal prototype to avoid an error.
14987 Use char because int might match the return type of a GCC
14988 builtin and then its argument prototype would still apply. */
14989 #ifdef __cplusplus
14990 extern "C"
14991 #endif
14992 char $ac_func ();
14993 /* The GNU C library defines this for functions which it implements
14994 to always fail with ENOSYS. Some functions are actually named
14995 something starting with __ and the normal name is an alias. */
14996 #if defined __stub_$ac_func || defined __stub___$ac_func
14997 choke me
14998 #endif
15001 main ()
15003 return $ac_func ();
15005 return 0;
15007 _ACEOF
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009 if { (ac_try="$ac_link"
15010 case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15013 esac
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_link") 2>conftest.er1
15016 ac_status=$?
15017 grep -v '^ *+' conftest.er1 >conftest.err
15018 rm -f conftest.er1
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } && {
15022 test -z "$ac_c_werror_flag" ||
15023 test ! -s conftest.err
15024 } && test -s conftest$ac_exeext &&
15025 $as_test_x conftest$ac_exeext; then
15026 eval "$as_ac_var=yes"
15027 else
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 eval "$as_ac_var=no"
15034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15035 conftest$ac_exeext conftest.$ac_ext
15037 ac_res=`eval echo '${'$as_ac_var'}'`
15038 { echo "$as_me:$LINENO: result: $ac_res" >&5
15039 echo "${ECHO_T}$ac_res" >&6; }
15040 if test `eval echo '${'$as_ac_var'}'` = yes; then
15041 cat >>confdefs.h <<_ACEOF
15042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15043 _ACEOF
15045 { echo "$as_me:$LINENO: checking for _doprnt" >&5
15046 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
15047 if test "${ac_cv_func__doprnt+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15049 else
15050 cat >conftest.$ac_ext <<_ACEOF
15051 /* confdefs.h. */
15052 _ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15056 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
15057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15058 #define _doprnt innocuous__doprnt
15060 /* System header to define __stub macros and hopefully few prototypes,
15061 which can conflict with char _doprnt (); below.
15062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15063 <limits.h> exists even on freestanding compilers. */
15065 #ifdef __STDC__
15066 # include <limits.h>
15067 #else
15068 # include <assert.h>
15069 #endif
15071 #undef _doprnt
15073 /* Override any GCC internal prototype to avoid an error.
15074 Use char because int might match the return type of a GCC
15075 builtin and then its argument prototype would still apply. */
15076 #ifdef __cplusplus
15077 extern "C"
15078 #endif
15079 char _doprnt ();
15080 /* The GNU C library defines this for functions which it implements
15081 to always fail with ENOSYS. Some functions are actually named
15082 something starting with __ and the normal name is an alias. */
15083 #if defined __stub__doprnt || defined __stub____doprnt
15084 choke me
15085 #endif
15088 main ()
15090 return _doprnt ();
15092 return 0;
15094 _ACEOF
15095 rm -f conftest.$ac_objext conftest$ac_exeext
15096 if { (ac_try="$ac_link"
15097 case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100 esac
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_link") 2>conftest.er1
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } && {
15109 test -z "$ac_c_werror_flag" ||
15110 test ! -s conftest.err
15111 } && test -s conftest$ac_exeext &&
15112 $as_test_x conftest$ac_exeext; then
15113 ac_cv_func__doprnt=yes
15114 else
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15118 ac_cv_func__doprnt=no
15121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15122 conftest$ac_exeext conftest.$ac_ext
15124 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15125 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
15126 if test $ac_cv_func__doprnt = yes; then
15128 cat >>confdefs.h <<\_ACEOF
15129 #define HAVE_DOPRNT 1
15130 _ACEOF
15135 done
15183 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
15185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 else
15191 cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h. */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15199 #define $ac_func innocuous_$ac_func
15201 /* System header to define __stub macros and hopefully few prototypes,
15202 which can conflict with char $ac_func (); below.
15203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15204 <limits.h> exists even on freestanding compilers. */
15206 #ifdef __STDC__
15207 # include <limits.h>
15208 #else
15209 # include <assert.h>
15210 #endif
15212 #undef $ac_func
15214 /* Override any GCC internal prototype to avoid an error.
15215 Use char because int might match the return type of a GCC
15216 builtin and then its argument prototype would still apply. */
15217 #ifdef __cplusplus
15218 extern "C"
15219 #endif
15220 char $ac_func ();
15221 /* The GNU C library defines this for functions which it implements
15222 to always fail with ENOSYS. Some functions are actually named
15223 something starting with __ and the normal name is an alias. */
15224 #if defined __stub_$ac_func || defined __stub___$ac_func
15225 choke me
15226 #endif
15229 main ()
15231 return $ac_func ();
15233 return 0;
15235 _ACEOF
15236 rm -f conftest.$ac_objext conftest$ac_exeext
15237 if { (ac_try="$ac_link"
15238 case "(($ac_try" in
15239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240 *) ac_try_echo=$ac_try;;
15241 esac
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243 (eval "$ac_link") 2>conftest.er1
15244 ac_status=$?
15245 grep -v '^ *+' conftest.er1 >conftest.err
15246 rm -f conftest.er1
15247 cat conftest.err >&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } && {
15250 test -z "$ac_c_werror_flag" ||
15251 test ! -s conftest.err
15252 } && test -s conftest$ac_exeext &&
15253 $as_test_x conftest$ac_exeext; then
15254 eval "$as_ac_var=yes"
15255 else
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15259 eval "$as_ac_var=no"
15262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15263 conftest$ac_exeext conftest.$ac_ext
15265 ac_res=`eval echo '${'$as_ac_var'}'`
15266 { echo "$as_me:$LINENO: result: $ac_res" >&5
15267 echo "${ECHO_T}$ac_res" >&6; }
15268 if test `eval echo '${'$as_ac_var'}'` = yes; then
15269 cat >>confdefs.h <<_ACEOF
15270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15271 _ACEOF
15274 done
15278 for ac_func in glob
15280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15281 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h. */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15294 #define $ac_func innocuous_$ac_func
15296 /* System header to define __stub macros and hopefully few prototypes,
15297 which can conflict with char $ac_func (); below.
15298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15299 <limits.h> exists even on freestanding compilers. */
15301 #ifdef __STDC__
15302 # include <limits.h>
15303 #else
15304 # include <assert.h>
15305 #endif
15307 #undef $ac_func
15309 /* Override any GCC internal prototype to avoid an error.
15310 Use char because int might match the return type of a GCC
15311 builtin and then its argument prototype would still apply. */
15312 #ifdef __cplusplus
15313 extern "C"
15314 #endif
15315 char $ac_func ();
15316 /* The GNU C library defines this for functions which it implements
15317 to always fail with ENOSYS. Some functions are actually named
15318 something starting with __ and the normal name is an alias. */
15319 #if defined __stub_$ac_func || defined __stub___$ac_func
15320 choke me
15321 #endif
15324 main ()
15326 return $ac_func ();
15328 return 0;
15330 _ACEOF
15331 rm -f conftest.$ac_objext conftest$ac_exeext
15332 if { (ac_try="$ac_link"
15333 case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_link") 2>conftest.er1
15339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } && {
15345 test -z "$ac_c_werror_flag" ||
15346 test ! -s conftest.err
15347 } && test -s conftest$ac_exeext &&
15348 $as_test_x conftest$ac_exeext; then
15349 eval "$as_ac_var=yes"
15350 else
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15354 eval "$as_ac_var=no"
15357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15358 conftest$ac_exeext conftest.$ac_ext
15360 ac_res=`eval echo '${'$as_ac_var'}'`
15361 { echo "$as_me:$LINENO: result: $ac_res" >&5
15362 echo "${ECHO_T}$ac_res" >&6; }
15363 if test `eval echo '${'$as_ac_var'}'` = yes; then
15364 cat >>confdefs.h <<_ACEOF
15365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15366 _ACEOF
15369 done
15372 { echo "$as_me:$LINENO: checking for timersub in time.h" >&5
15373 echo $ECHO_N "checking for timersub in time.h... $ECHO_C" >&6; }
15374 cat >conftest.$ac_ext <<_ACEOF
15375 /* confdefs.h. */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15380 #include <sys/time.h>
15382 main ()
15384 struct timeval *a; timersub(a, a, a);
15386 return 0;
15388 _ACEOF
15389 rm -f conftest.$ac_objext conftest$ac_exeext
15390 if { (ac_try="$ac_link"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394 esac
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_link") 2>conftest.er1
15397 ac_status=$?
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } && {
15403 test -z "$ac_c_werror_flag" ||
15404 test ! -s conftest.err
15405 } && test -s conftest$ac_exeext &&
15406 $as_test_x conftest$ac_exeext; then
15407 { echo "$as_me:$LINENO: result: yes" >&5
15408 echo "${ECHO_T}yes" >&6; }
15410 cat >>confdefs.h <<\_ACEOF
15411 #define HAVE_TIMERSUB 1
15412 _ACEOF
15414 else
15415 echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 { echo "$as_me:$LINENO: result: no" >&5
15419 echo "${ECHO_T}no" >&6; }
15423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15424 conftest$ac_exeext conftest.$ac_ext
15426 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15427 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15428 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15429 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15433 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15434 else
15435 # Is the header compilable?
15436 { echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
15437 echo $ECHO_N "checking sys/poll.h usability... $ECHO_C" >&6; }
15438 cat >conftest.$ac_ext <<_ACEOF
15439 /* confdefs.h. */
15440 _ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15444 $ac_includes_default
15445 #include <sys/poll.h>
15446 _ACEOF
15447 rm -f conftest.$ac_objext
15448 if { (ac_try="$ac_compile"
15449 case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15452 esac
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_compile") 2>conftest.er1
15455 ac_status=$?
15456 grep -v '^ *+' conftest.er1 >conftest.err
15457 rm -f conftest.er1
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } && {
15461 test -z "$ac_c_werror_flag" ||
15462 test ! -s conftest.err
15463 } && test -s conftest.$ac_objext; then
15464 ac_header_compiler=yes
15465 else
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15469 ac_header_compiler=no
15472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15474 echo "${ECHO_T}$ac_header_compiler" >&6; }
15476 # Is the header present?
15477 { echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
15478 echo $ECHO_N "checking sys/poll.h presence... $ECHO_C" >&6; }
15479 cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h. */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15485 #include <sys/poll.h>
15486 _ACEOF
15487 if { (ac_try="$ac_cpp conftest.$ac_ext"
15488 case "(($ac_try" in
15489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490 *) ac_try_echo=$ac_try;;
15491 esac
15492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } >/dev/null && {
15500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15501 test ! -s conftest.err
15502 }; then
15503 ac_header_preproc=yes
15504 else
15505 echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.$ac_ext >&5
15508 ac_header_preproc=no
15511 rm -f conftest.err conftest.$ac_ext
15512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15513 echo "${ECHO_T}$ac_header_preproc" >&6; }
15515 # So? What about this header?
15516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15517 yes:no: )
15518 { echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
15519 echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
15521 echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
15522 ac_header_preproc=yes
15524 no:yes:* )
15525 { echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
15526 echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
15528 echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
15530 echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
15531 { echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
15532 echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
15533 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
15534 echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
15536 echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
15537 ( cat <<\_ASBOX
15538 ## ------------------------------- ##
15539 ## Report this to www.asterisk.org ##
15540 ## ------------------------------- ##
15541 _ASBOX
15542 ) | sed "s/^/$as_me: WARNING: /" >&2
15544 esac
15545 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15546 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15547 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15549 else
15550 ac_cv_header_sys_poll_h=$ac_header_preproc
15552 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15553 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15556 if test $ac_cv_header_sys_poll_h = yes; then
15557 HAS_POLL=1
15559 cat >>confdefs.h <<\_ACEOF
15560 #define HAVE_SYS_POLL_H 1
15561 _ACEOF
15568 # https support (in main/http.c) uses funopen on BSD systems,
15569 # fopencookie on linux
15572 for ac_func in funopen fopencookie
15574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15578 echo $ECHO_N "(cached) $ECHO_C" >&6
15579 else
15580 cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h. */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15588 #define $ac_func innocuous_$ac_func
15590 /* System header to define __stub macros and hopefully few prototypes,
15591 which can conflict with char $ac_func (); below.
15592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15593 <limits.h> exists even on freestanding compilers. */
15595 #ifdef __STDC__
15596 # include <limits.h>
15597 #else
15598 # include <assert.h>
15599 #endif
15601 #undef $ac_func
15603 /* Override any GCC internal prototype to avoid an error.
15604 Use char because int might match the return type of a GCC
15605 builtin and then its argument prototype would still apply. */
15606 #ifdef __cplusplus
15607 extern "C"
15608 #endif
15609 char $ac_func ();
15610 /* The GNU C library defines this for functions which it implements
15611 to always fail with ENOSYS. Some functions are actually named
15612 something starting with __ and the normal name is an alias. */
15613 #if defined __stub_$ac_func || defined __stub___$ac_func
15614 choke me
15615 #endif
15618 main ()
15620 return $ac_func ();
15622 return 0;
15624 _ACEOF
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (ac_try="$ac_link"
15627 case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630 esac
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_link") 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } && {
15639 test -z "$ac_c_werror_flag" ||
15640 test ! -s conftest.err
15641 } && test -s conftest$ac_exeext &&
15642 $as_test_x conftest$ac_exeext; then
15643 eval "$as_ac_var=yes"
15644 else
15645 echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.$ac_ext >&5
15648 eval "$as_ac_var=no"
15651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15652 conftest$ac_exeext conftest.$ac_ext
15654 ac_res=`eval echo '${'$as_ac_var'}'`
15655 { echo "$as_me:$LINENO: result: $ac_res" >&5
15656 echo "${ECHO_T}$ac_res" >&6; }
15657 if test `eval echo '${'$as_ac_var'}'` = yes; then
15658 cat >>confdefs.h <<_ACEOF
15659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15660 _ACEOF
15663 done
15667 for ac_func in inet_aton
15669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 else
15675 cat >conftest.$ac_ext <<_ACEOF
15676 /* confdefs.h. */
15677 _ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15683 #define $ac_func innocuous_$ac_func
15685 /* System header to define __stub macros and hopefully few prototypes,
15686 which can conflict with char $ac_func (); below.
15687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15688 <limits.h> exists even on freestanding compilers. */
15690 #ifdef __STDC__
15691 # include <limits.h>
15692 #else
15693 # include <assert.h>
15694 #endif
15696 #undef $ac_func
15698 /* Override any GCC internal prototype to avoid an error.
15699 Use char because int might match the return type of a GCC
15700 builtin and then its argument prototype would still apply. */
15701 #ifdef __cplusplus
15702 extern "C"
15703 #endif
15704 char $ac_func ();
15705 /* The GNU C library defines this for functions which it implements
15706 to always fail with ENOSYS. Some functions are actually named
15707 something starting with __ and the normal name is an alias. */
15708 #if defined __stub_$ac_func || defined __stub___$ac_func
15709 choke me
15710 #endif
15713 main ()
15715 return $ac_func ();
15717 return 0;
15719 _ACEOF
15720 rm -f conftest.$ac_objext conftest$ac_exeext
15721 if { (ac_try="$ac_link"
15722 case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15725 esac
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_link") 2>conftest.er1
15728 ac_status=$?
15729 grep -v '^ *+' conftest.er1 >conftest.err
15730 rm -f conftest.er1
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } && {
15734 test -z "$ac_c_werror_flag" ||
15735 test ! -s conftest.err
15736 } && test -s conftest$ac_exeext &&
15737 $as_test_x conftest$ac_exeext; then
15738 eval "$as_ac_var=yes"
15739 else
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15743 eval "$as_ac_var=no"
15746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15747 conftest$ac_exeext conftest.$ac_ext
15749 ac_res=`eval echo '${'$as_ac_var'}'`
15750 { echo "$as_me:$LINENO: result: $ac_res" >&5
15751 echo "${ECHO_T}$ac_res" >&6; }
15752 if test `eval echo '${'$as_ac_var'}'` = yes; then
15753 cat >>confdefs.h <<_ACEOF
15754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15755 _ACEOF
15758 done
15761 # check if we have IP_PKTINFO constant defined
15762 { echo "$as_me:$LINENO: checking for IP_PKTINFO" >&5
15763 echo $ECHO_N "checking for IP_PKTINFO... $ECHO_C" >&6; }
15764 cat >conftest.$ac_ext <<_ACEOF
15765 /* confdefs.h. */
15766 _ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h. */
15770 #include <netinet/in.h>
15772 main ()
15774 int pi = IP_PKTINFO;
15776 return 0;
15778 _ACEOF
15779 rm -f conftest.$ac_objext conftest$ac_exeext
15780 if { (ac_try="$ac_link"
15781 case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_link") 2>conftest.er1
15787 ac_status=$?
15788 grep -v '^ *+' conftest.er1 >conftest.err
15789 rm -f conftest.er1
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } && {
15793 test -z "$ac_c_werror_flag" ||
15794 test ! -s conftest.err
15795 } && test -s conftest$ac_exeext &&
15796 $as_test_x conftest$ac_exeext; then
15797 { echo "$as_me:$LINENO: result: yes" >&5
15798 echo "${ECHO_T}yes" >&6; }
15800 cat >>confdefs.h <<\_ACEOF
15801 #define HAVE_PKTINFO 1
15802 _ACEOF
15804 else
15805 echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15808 { echo "$as_me:$LINENO: result: no" >&5
15809 echo "${ECHO_T}no" >&6; }
15813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15814 conftest$ac_exeext conftest.$ac_ext
15816 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
15817 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
15818 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
15819 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 else
15822 ac_func_search_save_LIBS=$LIBS
15823 cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h. */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15830 /* Override any GCC internal prototype to avoid an error.
15831 Use char because int might match the return type of a GCC
15832 builtin and then its argument prototype would still apply. */
15833 #ifdef __cplusplus
15834 extern "C"
15835 #endif
15836 char gethostbyname_r ();
15838 main ()
15840 return gethostbyname_r ();
15842 return 0;
15844 _ACEOF
15845 for ac_lib in '' socket nsl; do
15846 if test -z "$ac_lib"; then
15847 ac_res="none required"
15848 else
15849 ac_res=-l$ac_lib
15850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15852 rm -f conftest.$ac_objext conftest$ac_exeext
15853 if { (ac_try="$ac_link"
15854 case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15857 esac
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_link") 2>conftest.er1
15860 ac_status=$?
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } && {
15866 test -z "$ac_c_werror_flag" ||
15867 test ! -s conftest.err
15868 } && test -s conftest$ac_exeext &&
15869 $as_test_x conftest$ac_exeext; then
15870 ac_cv_search_gethostbyname_r=$ac_res
15871 else
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15879 conftest$ac_exeext
15880 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15881 break
15883 done
15884 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15886 else
15887 ac_cv_search_gethostbyname_r=no
15889 rm conftest.$ac_ext
15890 LIBS=$ac_func_search_save_LIBS
15892 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
15893 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
15894 ac_res=$ac_cv_search_gethostbyname_r
15895 if test "$ac_res" != no; then
15896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15901 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
15902 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
15903 cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h. */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 #include <stdlib.h>
15910 #include <netdb.h>
15912 main ()
15914 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
15916 return 0;
15918 _ACEOF
15919 rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (ac_try="$ac_link"
15921 case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15924 esac
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_link") 2>conftest.er1
15927 ac_status=$?
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest$ac_exeext &&
15936 $as_test_x conftest$ac_exeext; then
15937 { echo "$as_me:$LINENO: result: yes" >&5
15938 echo "${ECHO_T}yes" >&6; }
15940 cat >>confdefs.h <<\_ACEOF
15941 #define HAVE_GETHOSTBYNAME_R_6 1
15942 _ACEOF
15944 else
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 { echo "$as_me:$LINENO: result: no" >&5
15949 echo "${ECHO_T}no" >&6; }
15953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15954 conftest$ac_exeext conftest.$ac_ext
15956 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
15957 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
15958 cat >conftest.$ac_ext <<_ACEOF
15959 /* confdefs.h. */
15960 _ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h. */
15964 #include <stdlib.h>
15965 #include <netdb.h>
15967 main ()
15969 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
15971 return 0;
15973 _ACEOF
15974 rm -f conftest.$ac_objext conftest$ac_exeext
15975 if { (ac_try="$ac_link"
15976 case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15979 esac
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_link") 2>conftest.er1
15982 ac_status=$?
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } && {
15988 test -z "$ac_c_werror_flag" ||
15989 test ! -s conftest.err
15990 } && test -s conftest$ac_exeext &&
15991 $as_test_x conftest$ac_exeext; then
15992 { echo "$as_me:$LINENO: result: yes" >&5
15993 echo "${ECHO_T}yes" >&6; }
15995 cat >>confdefs.h <<\_ACEOF
15996 #define HAVE_GETHOSTBYNAME_R_5 1
15997 _ACEOF
15999 else
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 { echo "$as_me:$LINENO: result: no" >&5
16004 echo "${ECHO_T}no" >&6; }
16008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16009 conftest$ac_exeext conftest.$ac_ext
16011 if test "${ac_cv_header_byteswap_h+set}" = set; then
16012 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16013 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16014 if test "${ac_cv_header_byteswap_h+set}" = set; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16018 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16019 else
16020 # Is the header compilable?
16021 { echo "$as_me:$LINENO: checking byteswap.h usability" >&5
16022 echo $ECHO_N "checking byteswap.h usability... $ECHO_C" >&6; }
16023 cat >conftest.$ac_ext <<_ACEOF
16024 /* confdefs.h. */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16029 $ac_includes_default
16030 #include <byteswap.h>
16031 _ACEOF
16032 rm -f conftest.$ac_objext
16033 if { (ac_try="$ac_compile"
16034 case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16037 esac
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_compile") 2>conftest.er1
16040 ac_status=$?
16041 grep -v '^ *+' conftest.er1 >conftest.err
16042 rm -f conftest.er1
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } && {
16046 test -z "$ac_c_werror_flag" ||
16047 test ! -s conftest.err
16048 } && test -s conftest.$ac_objext; then
16049 ac_header_compiler=yes
16050 else
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 ac_header_compiler=no
16057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16059 echo "${ECHO_T}$ac_header_compiler" >&6; }
16061 # Is the header present?
16062 { echo "$as_me:$LINENO: checking byteswap.h presence" >&5
16063 echo $ECHO_N "checking byteswap.h presence... $ECHO_C" >&6; }
16064 cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h. */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 #include <byteswap.h>
16071 _ACEOF
16072 if { (ac_try="$ac_cpp conftest.$ac_ext"
16073 case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16076 esac
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16079 ac_status=$?
16080 grep -v '^ *+' conftest.er1 >conftest.err
16081 rm -f conftest.er1
16082 cat conftest.err >&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } >/dev/null && {
16085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16086 test ! -s conftest.err
16087 }; then
16088 ac_header_preproc=yes
16089 else
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 ac_header_preproc=no
16096 rm -f conftest.err conftest.$ac_ext
16097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16098 echo "${ECHO_T}$ac_header_preproc" >&6; }
16100 # So? What about this header?
16101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16102 yes:no: )
16103 { echo "$as_me:$LINENO: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&5
16104 echo "$as_me: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the compiler's result" >&5
16106 echo "$as_me: WARNING: byteswap.h: proceeding with the compiler's result" >&2;}
16107 ac_header_preproc=yes
16109 no:yes:* )
16110 { echo "$as_me:$LINENO: WARNING: byteswap.h: present but cannot be compiled" >&5
16111 echo "$as_me: WARNING: byteswap.h: present but cannot be compiled" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: byteswap.h: check for missing prerequisite headers?" >&5
16113 echo "$as_me: WARNING: byteswap.h: check for missing prerequisite headers?" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: byteswap.h: see the Autoconf documentation" >&5
16115 echo "$as_me: WARNING: byteswap.h: see the Autoconf documentation" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&5
16117 echo "$as_me: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the preprocessor's result" >&5
16119 echo "$as_me: WARNING: byteswap.h: proceeding with the preprocessor's result" >&2;}
16120 { echo "$as_me:$LINENO: WARNING: byteswap.h: in the future, the compiler will take precedence" >&5
16121 echo "$as_me: WARNING: byteswap.h: in the future, the compiler will take precedence" >&2;}
16122 ( cat <<\_ASBOX
16123 ## ------------------------------- ##
16124 ## Report this to www.asterisk.org ##
16125 ## ------------------------------- ##
16126 _ASBOX
16127 ) | sed "s/^/$as_me: WARNING: /" >&2
16129 esac
16130 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16131 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16132 if test "${ac_cv_header_byteswap_h+set}" = set; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16135 ac_cv_header_byteswap_h=$ac_header_preproc
16137 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16138 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16141 if test $ac_cv_header_byteswap_h = yes; then
16143 cat >>confdefs.h <<_ACEOF
16144 #define HAVE_BYTESWAP_H 1
16145 _ACEOF
16151 { echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
16152 echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16153 cat >conftest.$ac_ext <<_ACEOF
16154 /* confdefs.h. */
16155 _ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16159 #include <sys/endian.h>
16161 main ()
16163 int a = 1; int b = __swap16(a);
16165 return 0;
16167 _ACEOF
16168 rm -f conftest.$ac_objext conftest$ac_exeext
16169 if { (ac_try="$ac_link"
16170 case "(($ac_try" in
16171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172 *) ac_try_echo=$ac_try;;
16173 esac
16174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175 (eval "$ac_link") 2>conftest.er1
16176 ac_status=$?
16177 grep -v '^ *+' conftest.er1 >conftest.err
16178 rm -f conftest.er1
16179 cat conftest.err >&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } && {
16182 test -z "$ac_c_werror_flag" ||
16183 test ! -s conftest.err
16184 } && test -s conftest$ac_exeext &&
16185 $as_test_x conftest$ac_exeext; then
16186 { echo "$as_me:$LINENO: result: yes" >&5
16187 echo "${ECHO_T}yes" >&6; }
16189 cat >>confdefs.h <<\_ACEOF
16190 #define HAVE_SYS_ENDIAN_SWAP16 1
16191 _ACEOF
16193 else
16194 echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16197 { echo "$as_me:$LINENO: result: no" >&5
16198 echo "${ECHO_T}no" >&6; }
16202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16203 conftest$ac_exeext conftest.$ac_ext
16205 { echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
16206 echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16207 cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h. */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16213 #include <sys/endian.h>
16215 main ()
16217 int a = 1; int b = bswap16(a);
16219 return 0;
16221 _ACEOF
16222 rm -f conftest.$ac_objext conftest$ac_exeext
16223 if { (ac_try="$ac_link"
16224 case "(($ac_try" in
16225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226 *) ac_try_echo=$ac_try;;
16227 esac
16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229 (eval "$ac_link") 2>conftest.er1
16230 ac_status=$?
16231 grep -v '^ *+' conftest.er1 >conftest.err
16232 rm -f conftest.er1
16233 cat conftest.err >&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } && {
16236 test -z "$ac_c_werror_flag" ||
16237 test ! -s conftest.err
16238 } && test -s conftest$ac_exeext &&
16239 $as_test_x conftest$ac_exeext; then
16240 { echo "$as_me:$LINENO: result: yes" >&5
16241 echo "${ECHO_T}yes" >&6; }
16243 cat >>confdefs.h <<\_ACEOF
16244 #define HAVE_SYS_ENDIAN_BSWAP16 1
16245 _ACEOF
16247 else
16248 echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16251 { echo "$as_me:$LINENO: result: no" >&5
16252 echo "${ECHO_T}no" >&6; }
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257 conftest$ac_exeext conftest.$ac_ext
16259 if test "${cross_compiling}" = "no";
16260 then
16261 { echo "$as_me:$LINENO: checking for /dev/urandom" >&5
16262 echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6; }
16263 if test "${ac_cv_file__dev_urandom+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16265 else
16266 test "$cross_compiling" = yes &&
16267 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16268 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16269 { (exit 1); exit 1; }; }
16270 if test -r "/dev/urandom"; then
16271 ac_cv_file__dev_urandom=yes
16272 else
16273 ac_cv_file__dev_urandom=no
16276 { echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
16277 echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6; }
16278 if test $ac_cv_file__dev_urandom = yes; then
16280 cat >>confdefs.h <<\_ACEOF
16281 #define HAVE_DEV_URANDOM 1
16282 _ACEOF
16289 if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
16290 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
16291 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... $ECHO_C" >&6; }
16292 saved_cppflags="${CPPFLAGS}"
16293 if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
16294 PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
16296 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
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 #if defined(PTHREAD_RWLOCK_INITIALIZER)
16309 int foo = 0;
16310 #else
16311 int foo = bar;
16312 #endif
16316 return 0;
16318 _ACEOF
16319 rm -f conftest.$ac_objext
16320 if { (ac_try="$ac_compile"
16321 case "(($ac_try" in
16322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323 *) ac_try_echo=$ac_try;;
16324 esac
16325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326 (eval "$ac_compile") 2>conftest.er1
16327 ac_status=$?
16328 grep -v '^ *+' conftest.er1 >conftest.err
16329 rm -f conftest.er1
16330 cat conftest.err >&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } && {
16333 test -z "$ac_c_werror_flag" ||
16334 test ! -s conftest.err
16335 } && test -s conftest.$ac_objext; then
16336 { echo "$as_me:$LINENO: result: yes" >&5
16337 echo "${ECHO_T}yes" >&6; }
16338 PBX_PTHREAD_RWLOCK_INITIALIZER=1
16340 cat >>confdefs.h <<\_ACEOF
16341 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
16342 _ACEOF
16345 cat >>confdefs.h <<\_ACEOF
16346 #define HAVE_PTHREAD_RWLOCK_INITIALIZER_VERSION
16347 _ACEOF
16350 else
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16354 { echo "$as_me:$LINENO: result: no" >&5
16355 echo "${ECHO_T}no" >&6; }
16359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360 CPPFLAGS="${saved_cppflags}"
16365 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
16366 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... $ECHO_C" >&6; }
16367 cat >conftest.$ac_ext <<_ACEOF
16368 /* confdefs.h. */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 #include <pthread.h>
16375 main ()
16377 int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
16379 return 0;
16381 _ACEOF
16382 rm -f conftest.$ac_objext conftest$ac_exeext
16383 if { (ac_try="$ac_link"
16384 case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16387 esac
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_link") 2>conftest.er1
16390 ac_status=$?
16391 grep -v '^ *+' conftest.er1 >conftest.err
16392 rm -f conftest.er1
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } && {
16396 test -z "$ac_c_werror_flag" ||
16397 test ! -s conftest.err
16398 } && test -s conftest$ac_exeext &&
16399 $as_test_x conftest$ac_exeext; then
16400 { echo "$as_me:$LINENO: result: yes" >&5
16401 echo "${ECHO_T}yes" >&6; }
16403 cat >>confdefs.h <<\_ACEOF
16404 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
16405 _ACEOF
16407 else
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 { echo "$as_me:$LINENO: result: no" >&5
16412 echo "${ECHO_T}no" >&6; }
16416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16417 conftest$ac_exeext conftest.$ac_ext
16419 { echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
16420 echo $ECHO_N "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... $ECHO_C" >&6; }
16421 cat >conftest.$ac_ext <<_ACEOF
16422 /* confdefs.h. */
16423 _ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h. */
16427 #include <pthread.h>
16429 main ()
16431 int a = PTHREAD_MUTEX_RECURSIVE_NP;
16433 return 0;
16435 _ACEOF
16436 rm -f conftest.$ac_objext conftest$ac_exeext
16437 if { (ac_try="$ac_link"
16438 case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16441 esac
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_link") 2>conftest.er1
16444 ac_status=$?
16445 grep -v '^ *+' conftest.er1 >conftest.err
16446 rm -f conftest.er1
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } && {
16450 test -z "$ac_c_werror_flag" ||
16451 test ! -s conftest.err
16452 } && test -s conftest$ac_exeext &&
16453 $as_test_x conftest$ac_exeext; then
16454 { echo "$as_me:$LINENO: result: yes" >&5
16455 echo "${ECHO_T}yes" >&6; }
16457 cat >>confdefs.h <<\_ACEOF
16458 #define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1
16459 _ACEOF
16461 else
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16465 { echo "$as_me:$LINENO: result: no" >&5
16466 echo "${ECHO_T}no" >&6; }
16470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16471 conftest$ac_exeext conftest.$ac_ext
16474 if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
16475 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
16476 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... $ECHO_C" >&6; }
16477 saved_cppflags="${CPPFLAGS}"
16478 if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
16479 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
16481 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
16483 cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h. */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 #include <pthread.h>
16491 main ()
16493 #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
16494 int foo = 0;
16495 #else
16496 int foo = bar;
16497 #endif
16501 return 0;
16503 _ACEOF
16504 rm -f conftest.$ac_objext
16505 if { (ac_try="$ac_compile"
16506 case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16509 esac
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_compile") 2>conftest.er1
16512 ac_status=$?
16513 grep -v '^ *+' conftest.er1 >conftest.err
16514 rm -f conftest.er1
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } && {
16518 test -z "$ac_c_werror_flag" ||
16519 test ! -s conftest.err
16520 } && test -s conftest.$ac_objext; then
16521 { echo "$as_me:$LINENO: result: yes" >&5
16522 echo "${ECHO_T}yes" >&6; }
16523 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
16525 cat >>confdefs.h <<\_ACEOF
16526 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1
16527 _ACEOF
16530 cat >>confdefs.h <<\_ACEOF
16531 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_VERSION
16532 _ACEOF
16535 else
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 { echo "$as_me:$LINENO: result: no" >&5
16540 echo "${ECHO_T}no" >&6; }
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545 CPPFLAGS="${saved_cppflags}"
16550 #if test "${cross_compiling}" = "no";
16551 #then
16552 #AC_MSG_CHECKING(for working epoll support)
16553 #AC_LINK_IFELSE(
16554 #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
16555 # if (res < 0)
16556 # return 1;
16557 # close (res);
16558 # return 0;]),
16559 #AC_MSG_RESULT(yes)
16560 #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
16561 #AC_MSG_RESULT(no)
16565 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
16566 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
16567 cat >conftest.$ac_ext <<_ACEOF
16568 /* confdefs.h. */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16575 main ()
16577 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
16579 return 0;
16581 _ACEOF
16582 rm -f conftest.$ac_objext conftest$ac_exeext
16583 if { (ac_try="$ac_link"
16584 case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16587 esac
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_link") 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && {
16596 test -z "$ac_c_werror_flag" ||
16597 test ! -s conftest.err
16598 } && test -s conftest$ac_exeext &&
16599 $as_test_x conftest$ac_exeext; then
16600 { echo "$as_me:$LINENO: result: yes" >&5
16601 echo "${ECHO_T}yes" >&6; }
16603 cat >>confdefs.h <<\_ACEOF
16604 #define HAVE_GCC_ATOMICS 1
16605 _ACEOF
16607 else
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16611 { echo "$as_me:$LINENO: result: no" >&5
16612 echo "${ECHO_T}no" >&6; }
16616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16617 conftest$ac_exeext conftest.$ac_ext
16620 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
16621 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
16622 saved_CFLAGS="$CFLAGS"
16623 CFLAGS="$CFLAGS -Werror"
16624 cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h. */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 static void __attribute__((pure)) *test(void *muffin, ...) {}
16632 main ()
16636 return 0;
16638 _ACEOF
16639 rm -f conftest.$ac_objext
16640 if { (ac_try="$ac_compile"
16641 case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16644 esac
16645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646 (eval "$ac_compile") 2>conftest.er1
16647 ac_status=$?
16648 grep -v '^ *+' conftest.er1 >conftest.err
16649 rm -f conftest.er1
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } && {
16653 test -z "$ac_c_werror_flag" ||
16654 test ! -s conftest.err
16655 } && test -s conftest.$ac_objext; then
16656 { echo "$as_me:$LINENO: result: yes" >&5
16657 echo "${ECHO_T}yes" >&6; }
16659 cat >>confdefs.h <<_ACEOF
16660 #define HAVE_ATTRIBUTE_pure 1
16661 _ACEOF
16663 else
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 { echo "$as_me:$LINENO: result: no" >&5
16668 echo "${ECHO_T}no" >&6; }
16671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16673 CFLAGS="$saved_CFLAGS"
16676 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
16677 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
16678 saved_CFLAGS="$CFLAGS"
16679 CFLAGS="$CFLAGS -Werror"
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h. */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 static void __attribute__((malloc)) *test(void *muffin, ...) {}
16688 main ()
16692 return 0;
16694 _ACEOF
16695 rm -f conftest.$ac_objext
16696 if { (ac_try="$ac_compile"
16697 case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_compile") 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } && {
16709 test -z "$ac_c_werror_flag" ||
16710 test ! -s conftest.err
16711 } && test -s conftest.$ac_objext; then
16712 { echo "$as_me:$LINENO: result: yes" >&5
16713 echo "${ECHO_T}yes" >&6; }
16715 cat >>confdefs.h <<_ACEOF
16716 #define HAVE_ATTRIBUTE_malloc 1
16717 _ACEOF
16719 else
16720 echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16723 { echo "$as_me:$LINENO: result: no" >&5
16724 echo "${ECHO_T}no" >&6; }
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 CFLAGS="$saved_CFLAGS"
16732 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
16733 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
16734 saved_CFLAGS="$CFLAGS"
16735 CFLAGS="$CFLAGS -Werror"
16736 cat >conftest.$ac_ext <<_ACEOF
16737 /* confdefs.h. */
16738 _ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16742 static void __attribute__((const)) *test(void *muffin, ...) {}
16744 main ()
16748 return 0;
16750 _ACEOF
16751 rm -f conftest.$ac_objext
16752 if { (ac_try="$ac_compile"
16753 case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756 esac
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_compile") 2>conftest.er1
16759 ac_status=$?
16760 grep -v '^ *+' conftest.er1 >conftest.err
16761 rm -f conftest.er1
16762 cat conftest.err >&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } && {
16765 test -z "$ac_c_werror_flag" ||
16766 test ! -s conftest.err
16767 } && test -s conftest.$ac_objext; then
16768 { echo "$as_me:$LINENO: result: yes" >&5
16769 echo "${ECHO_T}yes" >&6; }
16771 cat >>confdefs.h <<_ACEOF
16772 #define HAVE_ATTRIBUTE_const 1
16773 _ACEOF
16775 else
16776 echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16779 { echo "$as_me:$LINENO: result: no" >&5
16780 echo "${ECHO_T}no" >&6; }
16783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16785 CFLAGS="$saved_CFLAGS"
16788 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
16789 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
16790 saved_CFLAGS="$CFLAGS"
16791 CFLAGS="$CFLAGS -Werror"
16792 cat >conftest.$ac_ext <<_ACEOF
16793 /* confdefs.h. */
16794 _ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798 static void __attribute__((unused)) *test(void *muffin, ...) {}
16800 main ()
16804 return 0;
16806 _ACEOF
16807 rm -f conftest.$ac_objext
16808 if { (ac_try="$ac_compile"
16809 case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16812 esac
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_compile") 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } && {
16821 test -z "$ac_c_werror_flag" ||
16822 test ! -s conftest.err
16823 } && test -s conftest.$ac_objext; then
16824 { echo "$as_me:$LINENO: result: yes" >&5
16825 echo "${ECHO_T}yes" >&6; }
16827 cat >>confdefs.h <<_ACEOF
16828 #define HAVE_ATTRIBUTE_unused 1
16829 _ACEOF
16831 else
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16835 { echo "$as_me:$LINENO: result: no" >&5
16836 echo "${ECHO_T}no" >&6; }
16839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841 CFLAGS="$saved_CFLAGS"
16844 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
16845 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
16846 saved_CFLAGS="$CFLAGS"
16847 CFLAGS="$CFLAGS -Werror"
16848 cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h. */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
16856 main ()
16860 return 0;
16862 _ACEOF
16863 rm -f conftest.$ac_objext
16864 if { (ac_try="$ac_compile"
16865 case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16868 esac
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_compile") 2>conftest.er1
16871 ac_status=$?
16872 grep -v '^ *+' conftest.er1 >conftest.err
16873 rm -f conftest.er1
16874 cat conftest.err >&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } && {
16877 test -z "$ac_c_werror_flag" ||
16878 test ! -s conftest.err
16879 } && test -s conftest.$ac_objext; then
16880 { echo "$as_me:$LINENO: result: yes" >&5
16881 echo "${ECHO_T}yes" >&6; }
16883 cat >>confdefs.h <<_ACEOF
16884 #define HAVE_ATTRIBUTE_always_inline 1
16885 _ACEOF
16887 else
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16891 { echo "$as_me:$LINENO: result: no" >&5
16892 echo "${ECHO_T}no" >&6; }
16895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897 CFLAGS="$saved_CFLAGS"
16900 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
16901 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
16902 saved_CFLAGS="$CFLAGS"
16903 CFLAGS="$CFLAGS -Werror"
16904 cat >conftest.$ac_ext <<_ACEOF
16905 /* confdefs.h. */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
16912 main ()
16916 return 0;
16918 _ACEOF
16919 rm -f conftest.$ac_objext
16920 if { (ac_try="$ac_compile"
16921 case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924 esac
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_compile") 2>conftest.er1
16927 ac_status=$?
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } && {
16933 test -z "$ac_c_werror_flag" ||
16934 test ! -s conftest.err
16935 } && test -s conftest.$ac_objext; then
16936 { echo "$as_me:$LINENO: result: yes" >&5
16937 echo "${ECHO_T}yes" >&6; }
16939 cat >>confdefs.h <<_ACEOF
16940 #define HAVE_ATTRIBUTE_deprecated 1
16941 _ACEOF
16943 else
16944 echo "$as_me: failed program was:" >&5
16945 sed 's/^/| /' conftest.$ac_ext >&5
16947 { echo "$as_me:$LINENO: result: no" >&5
16948 echo "${ECHO_T}no" >&6; }
16951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953 CFLAGS="$saved_CFLAGS"
16956 { echo "$as_me:$LINENO: checking for compiler 'attribute sentinel' support" >&5
16957 echo $ECHO_N "checking for compiler 'attribute sentinel' support... $ECHO_C" >&6; }
16958 saved_CFLAGS="$CFLAGS"
16959 CFLAGS="$CFLAGS -Werror"
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h. */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16966 static void __attribute__((sentinel)) *test(void *muffin, ...) {}
16968 main ()
16972 return 0;
16974 _ACEOF
16975 rm -f conftest.$ac_objext
16976 if { (ac_try="$ac_compile"
16977 case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16980 esac
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_compile") 2>conftest.er1
16983 ac_status=$?
16984 grep -v '^ *+' conftest.er1 >conftest.err
16985 rm -f conftest.er1
16986 cat conftest.err >&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } && {
16989 test -z "$ac_c_werror_flag" ||
16990 test ! -s conftest.err
16991 } && test -s conftest.$ac_objext; then
16992 { echo "$as_me:$LINENO: result: yes" >&5
16993 echo "${ECHO_T}yes" >&6; }
16995 cat >>confdefs.h <<_ACEOF
16996 #define HAVE_ATTRIBUTE_sentinel 1
16997 _ACEOF
16999 else
17000 echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17003 { echo "$as_me:$LINENO: result: no" >&5
17004 echo "${ECHO_T}no" >&6; }
17007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17009 CFLAGS="$saved_CFLAGS"
17012 { echo "$as_me:$LINENO: checking for compiler 'attribute warn_unused_result' support" >&5
17013 echo $ECHO_N "checking for compiler 'attribute warn_unused_result' support... $ECHO_C" >&6; }
17014 saved_CFLAGS="$CFLAGS"
17015 CFLAGS="$CFLAGS -Werror"
17016 cat >conftest.$ac_ext <<_ACEOF
17017 /* confdefs.h. */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17022 static void __attribute__((warn_unused_result)) *test(void *muffin, ...) {}
17024 main ()
17028 return 0;
17030 _ACEOF
17031 rm -f conftest.$ac_objext
17032 if { (ac_try="$ac_compile"
17033 case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17036 esac
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_compile") 2>conftest.er1
17039 ac_status=$?
17040 grep -v '^ *+' conftest.er1 >conftest.err
17041 rm -f conftest.er1
17042 cat conftest.err >&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } && {
17045 test -z "$ac_c_werror_flag" ||
17046 test ! -s conftest.err
17047 } && test -s conftest.$ac_objext; then
17048 { echo "$as_me:$LINENO: result: yes" >&5
17049 echo "${ECHO_T}yes" >&6; }
17051 cat >>confdefs.h <<_ACEOF
17052 #define HAVE_ATTRIBUTE_warn_unused_result 1
17053 _ACEOF
17055 else
17056 echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17059 { echo "$as_me:$LINENO: result: no" >&5
17060 echo "${ECHO_T}no" >&6; }
17063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065 CFLAGS="$saved_CFLAGS"
17068 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
17069 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
17070 saved_CFLAGS="${CFLAGS}"
17071 CFLAGS="${CFLAGS} -ffunction-sections"
17072 cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h. */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17080 main ()
17082 int x = 1;
17084 return 0;
17086 _ACEOF
17087 rm -f conftest.$ac_objext
17088 if { (ac_try="$ac_compile"
17089 case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092 esac
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_compile") 2>conftest.er1
17095 ac_status=$?
17096 grep -v '^ *+' conftest.er1 >conftest.err
17097 rm -f conftest.er1
17098 cat conftest.err >&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } && {
17101 test -z "$ac_c_werror_flag" ||
17102 test ! -s conftest.err
17103 } && test -s conftest.$ac_objext; then
17104 { echo "$as_me:$LINENO: result: yes" >&5
17105 echo "${ECHO_T}yes" >&6; }
17106 saved_LDFLAGS="${LDFLAGS}"
17107 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
17108 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
17109 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
17110 cat >conftest.$ac_ext <<_ACEOF
17111 /* confdefs.h. */
17112 _ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17118 main ()
17120 int x = 1;
17122 return 0;
17124 _ACEOF
17125 rm -f conftest.$ac_objext conftest$ac_exeext
17126 if { (ac_try="$ac_link"
17127 case "(($ac_try" in
17128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17130 esac
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_link") 2>conftest.er1
17133 ac_status=$?
17134 grep -v '^ *+' conftest.er1 >conftest.err
17135 rm -f conftest.er1
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } && {
17139 test -z "$ac_c_werror_flag" ||
17140 test ! -s conftest.err
17141 } && test -s conftest$ac_exeext &&
17142 $as_test_x conftest$ac_exeext; then
17143 { echo "$as_me:$LINENO: result: yes" >&5
17144 echo "${ECHO_T}yes" >&6; }
17145 GC_CFLAGS="-ffunction-sections"
17146 GC_LDFLAGS="-Wl,--gc-sections"
17147 else
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 { echo "$as_me:$LINENO: result: no" >&5
17152 echo "${ECHO_T}no" >&6; }
17156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17157 conftest$ac_exeext conftest.$ac_ext
17158 LDFLAGS="${saved_LDFLAGS}"
17159 else
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17163 { echo "$as_me:$LINENO: result: no" >&5
17164 echo "${ECHO_T}no" >&6; }
17168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17169 CFLAGS="${saved_CFLAGS}"
17173 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
17174 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
17175 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17176 { echo "$as_me:$LINENO: result: yes" >&5
17177 echo "${ECHO_T}yes" >&6; }
17178 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
17179 else
17180 { echo "$as_me:$LINENO: result: no" >&5
17181 echo "${ECHO_T}no" >&6; }
17182 AST_DECLARATION_AFTER_STATEMENT=
17186 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
17187 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
17188 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17189 { echo "$as_me:$LINENO: result: yes" >&5
17190 echo "${ECHO_T}yes" >&6; }
17191 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
17192 else
17193 { echo "$as_me:$LINENO: result: no" >&5
17194 echo "${ECHO_T}no" >&6; }
17195 AST_NO_STRICT_OVERFLOW=
17199 { echo "$as_me:$LINENO: checking for sysinfo" >&5
17200 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
17201 cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h. */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17207 #include <sys/sysinfo.h>
17209 main ()
17211 struct sysinfo sys_info; int uptime = sys_info.uptime
17213 return 0;
17215 _ACEOF
17216 rm -f conftest.$ac_objext conftest$ac_exeext
17217 if { (ac_try="$ac_link"
17218 case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17221 esac
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_link") 2>conftest.er1
17224 ac_status=$?
17225 grep -v '^ *+' conftest.er1 >conftest.err
17226 rm -f conftest.er1
17227 cat conftest.err >&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); } && {
17230 test -z "$ac_c_werror_flag" ||
17231 test ! -s conftest.err
17232 } && test -s conftest$ac_exeext &&
17233 $as_test_x conftest$ac_exeext; then
17234 { echo "$as_me:$LINENO: result: yes" >&5
17235 echo "${ECHO_T}yes" >&6; }
17237 cat >>confdefs.h <<\_ACEOF
17238 #define HAVE_SYSINFO 1
17239 _ACEOF
17241 else
17242 echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.$ac_ext >&5
17245 { echo "$as_me:$LINENO: result: no" >&5
17246 echo "${ECHO_T}no" >&6; }
17250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17251 conftest$ac_exeext conftest.$ac_ext
17253 { echo "$as_me:$LINENO: checking for library containing res_9_ninit" >&5
17254 echo $ECHO_N "checking for library containing res_9_ninit... $ECHO_C" >&6; }
17255 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17257 else
17258 ac_func_search_save_LIBS=$LIBS
17259 cat >conftest.$ac_ext <<_ACEOF
17260 /* confdefs.h. */
17261 _ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h. */
17266 /* Override any GCC internal prototype to avoid an error.
17267 Use char because int might match the return type of a GCC
17268 builtin and then its argument prototype would still apply. */
17269 #ifdef __cplusplus
17270 extern "C"
17271 #endif
17272 char res_9_ninit ();
17274 main ()
17276 return res_9_ninit ();
17278 return 0;
17280 _ACEOF
17281 for ac_lib in '' resolv; do
17282 if test -z "$ac_lib"; then
17283 ac_res="none required"
17284 else
17285 ac_res=-l$ac_lib
17286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (ac_try="$ac_link"
17290 case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17293 esac
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_link") 2>conftest.er1
17296 ac_status=$?
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && {
17302 test -z "$ac_c_werror_flag" ||
17303 test ! -s conftest.err
17304 } && test -s conftest$ac_exeext &&
17305 $as_test_x conftest$ac_exeext; then
17306 ac_cv_search_res_9_ninit=$ac_res
17307 else
17308 echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17315 conftest$ac_exeext
17316 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17317 break
17319 done
17320 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17322 else
17323 ac_cv_search_res_9_ninit=no
17325 rm conftest.$ac_ext
17326 LIBS=$ac_func_search_save_LIBS
17328 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ninit" >&5
17329 echo "${ECHO_T}$ac_cv_search_res_9_ninit" >&6; }
17330 ac_res=$ac_cv_search_res_9_ninit
17331 if test "$ac_res" != no; then
17332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17336 { echo "$as_me:$LINENO: checking for res_ninit" >&5
17337 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
17338 cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h. */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17345 #ifdef HAVE_SYS_SOCKET_H
17346 #include <sys/socket.h>
17347 #endif
17348 #ifdef HAVE_NETINET_IN_H
17349 #include <netinet/in.h>
17350 #endif
17351 #ifdef HAVE_ARPA_NAMESER_H
17352 #include <arpa/nameser.h>
17353 #endif
17354 #include <resolv.h>
17356 main ()
17358 int foo = res_ninit(NULL);
17360 return 0;
17362 _ACEOF
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (ac_try="$ac_link"
17365 case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_link") 2>conftest.er1
17371 ac_status=$?
17372 grep -v '^ *+' conftest.er1 >conftest.err
17373 rm -f conftest.er1
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } && {
17377 test -z "$ac_c_werror_flag" ||
17378 test ! -s conftest.err
17379 } && test -s conftest$ac_exeext &&
17380 $as_test_x conftest$ac_exeext; then
17381 { echo "$as_me:$LINENO: result: yes" >&5
17382 echo "${ECHO_T}yes" >&6; }
17384 cat >>confdefs.h <<\_ACEOF
17385 #define HAVE_RES_NINIT 1
17386 _ACEOF
17388 { echo "$as_me:$LINENO: checking for library containing res_9_ndestroy" >&5
17389 echo $ECHO_N "checking for library containing res_9_ndestroy... $ECHO_C" >&6; }
17390 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17391 echo $ECHO_N "(cached) $ECHO_C" >&6
17392 else
17393 ac_func_search_save_LIBS=$LIBS
17394 cat >conftest.$ac_ext <<_ACEOF
17395 /* confdefs.h. */
17396 _ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17401 /* Override any GCC internal prototype to avoid an error.
17402 Use char because int might match the return type of a GCC
17403 builtin and then its argument prototype would still apply. */
17404 #ifdef __cplusplus
17405 extern "C"
17406 #endif
17407 char res_9_ndestroy ();
17409 main ()
17411 return res_9_ndestroy ();
17413 return 0;
17415 _ACEOF
17416 for ac_lib in '' resolv; do
17417 if test -z "$ac_lib"; then
17418 ac_res="none required"
17419 else
17420 ac_res=-l$ac_lib
17421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (ac_try="$ac_link"
17425 case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17428 esac
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_link") 2>conftest.er1
17431 ac_status=$?
17432 grep -v '^ *+' conftest.er1 >conftest.err
17433 rm -f conftest.er1
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } && {
17437 test -z "$ac_c_werror_flag" ||
17438 test ! -s conftest.err
17439 } && test -s conftest$ac_exeext &&
17440 $as_test_x conftest$ac_exeext; then
17441 ac_cv_search_res_9_ndestroy=$ac_res
17442 else
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17450 conftest$ac_exeext
17451 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17452 break
17454 done
17455 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17457 else
17458 ac_cv_search_res_9_ndestroy=no
17460 rm conftest.$ac_ext
17461 LIBS=$ac_func_search_save_LIBS
17463 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ndestroy" >&5
17464 echo "${ECHO_T}$ac_cv_search_res_9_ndestroy" >&6; }
17465 ac_res=$ac_cv_search_res_9_ndestroy
17466 if test "$ac_res" != no; then
17467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17471 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
17472 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
17473 cat >conftest.$ac_ext <<_ACEOF
17474 /* confdefs.h. */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17480 #ifdef HAVE_SYS_SOCKET_H
17481 #include <sys/socket.h>
17482 #endif
17483 #ifdef HAVE_NETINET_IN_H
17484 #include <netinet/in.h>
17485 #endif
17486 #ifdef HAVE_ARPA_NAMESER_H
17487 #include <arpa/nameser.h>
17488 #endif
17489 #include <resolv.h>
17491 main ()
17493 res_ndestroy(NULL);
17495 return 0;
17497 _ACEOF
17498 rm -f conftest.$ac_objext conftest$ac_exeext
17499 if { (ac_try="$ac_link"
17500 case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17503 esac
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_link") 2>conftest.er1
17506 ac_status=$?
17507 grep -v '^ *+' conftest.er1 >conftest.err
17508 rm -f conftest.er1
17509 cat conftest.err >&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } && {
17512 test -z "$ac_c_werror_flag" ||
17513 test ! -s conftest.err
17514 } && test -s conftest$ac_exeext &&
17515 $as_test_x conftest$ac_exeext; then
17516 { echo "$as_me:$LINENO: result: yes" >&5
17517 echo "${ECHO_T}yes" >&6; }
17519 cat >>confdefs.h <<\_ACEOF
17520 #define HAVE_RES_NDESTROY 1
17521 _ACEOF
17523 else
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 { echo "$as_me:$LINENO: result: no" >&5
17528 echo "${ECHO_T}no" >&6; }
17532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17533 conftest$ac_exeext conftest.$ac_ext
17534 else
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17538 { echo "$as_me:$LINENO: result: no" >&5
17539 echo "${ECHO_T}no" >&6; }
17543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544 conftest$ac_exeext conftest.$ac_ext
17547 if test "x${PBX_RTLD_NOLOAD}" != "x1"; then
17548 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD in dlfcn.h" >&5
17549 echo $ECHO_N "checking for RTLD_NOLOAD in dlfcn.h... $ECHO_C" >&6; }
17550 saved_cppflags="${CPPFLAGS}"
17551 if test "x${RTLD_NOLOAD_DIR}" != "x"; then
17552 RTLD_NOLOAD_INCLUDE="-I${RTLD_NOLOAD_DIR}/include"
17554 CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
17556 cat >conftest.$ac_ext <<_ACEOF
17557 /* confdefs.h. */
17558 _ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h. */
17562 #include <dlfcn.h>
17564 main ()
17566 #if defined(RTLD_NOLOAD)
17567 int foo = 0;
17568 #else
17569 int foo = bar;
17570 #endif
17574 return 0;
17576 _ACEOF
17577 rm -f conftest.$ac_objext
17578 if { (ac_try="$ac_compile"
17579 case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_compile") 2>conftest.er1
17585 ac_status=$?
17586 grep -v '^ *+' conftest.er1 >conftest.err
17587 rm -f conftest.er1
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } && {
17591 test -z "$ac_c_werror_flag" ||
17592 test ! -s conftest.err
17593 } && test -s conftest.$ac_objext; then
17594 { echo "$as_me:$LINENO: result: yes" >&5
17595 echo "${ECHO_T}yes" >&6; }
17596 PBX_RTLD_NOLOAD=1
17598 cat >>confdefs.h <<\_ACEOF
17599 #define HAVE_RTLD_NOLOAD 1
17600 _ACEOF
17603 cat >>confdefs.h <<\_ACEOF
17604 #define HAVE_RTLD_NOLOAD_VERSION
17605 _ACEOF
17608 else
17609 echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17612 { echo "$as_me:$LINENO: result: no" >&5
17613 echo "${ECHO_T}no" >&6; }
17617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17618 CPPFLAGS="${saved_cppflags}"
17624 if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
17625 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
17626 echo $ECHO_N "checking for IP_MTU_DISCOVER in netinet/in.h... $ECHO_C" >&6; }
17627 saved_cppflags="${CPPFLAGS}"
17628 if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
17629 IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
17631 CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
17633 cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h. */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17639 #include <netinet/in.h>
17641 main ()
17643 #if defined(IP_MTU_DISCOVER)
17644 int foo = 0;
17645 #else
17646 int foo = bar;
17647 #endif
17651 return 0;
17653 _ACEOF
17654 rm -f conftest.$ac_objext
17655 if { (ac_try="$ac_compile"
17656 case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659 esac
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_compile") 2>conftest.er1
17662 ac_status=$?
17663 grep -v '^ *+' conftest.er1 >conftest.err
17664 rm -f conftest.er1
17665 cat conftest.err >&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } && {
17668 test -z "$ac_c_werror_flag" ||
17669 test ! -s conftest.err
17670 } && test -s conftest.$ac_objext; then
17671 { echo "$as_me:$LINENO: result: yes" >&5
17672 echo "${ECHO_T}yes" >&6; }
17673 PBX_IP_MTU_DISCOVER=1
17675 cat >>confdefs.h <<\_ACEOF
17676 #define HAVE_IP_MTU_DISCOVER 1
17677 _ACEOF
17680 cat >>confdefs.h <<\_ACEOF
17681 #define HAVE_IP_MTU_DISCOVER_VERSION
17682 _ACEOF
17685 else
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 { echo "$as_me:$LINENO: result: no" >&5
17690 echo "${ECHO_T}no" >&6; }
17694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17695 CPPFLAGS="${saved_cppflags}"
17700 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17701 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17702 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17703 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17707 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17708 else
17709 # Is the header compilable?
17710 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
17711 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
17712 cat >conftest.$ac_ext <<_ACEOF
17713 /* confdefs.h. */
17714 _ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h. */
17718 $ac_includes_default
17719 #include <libkern/OSAtomic.h>
17720 _ACEOF
17721 rm -f conftest.$ac_objext
17722 if { (ac_try="$ac_compile"
17723 case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17726 esac
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_compile") 2>conftest.er1
17729 ac_status=$?
17730 grep -v '^ *+' conftest.er1 >conftest.err
17731 rm -f conftest.er1
17732 cat conftest.err >&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); } && {
17735 test -z "$ac_c_werror_flag" ||
17736 test ! -s conftest.err
17737 } && test -s conftest.$ac_objext; then
17738 ac_header_compiler=yes
17739 else
17740 echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17743 ac_header_compiler=no
17746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17748 echo "${ECHO_T}$ac_header_compiler" >&6; }
17750 # Is the header present?
17751 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
17752 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
17753 cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h. */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17759 #include <libkern/OSAtomic.h>
17760 _ACEOF
17761 if { (ac_try="$ac_cpp conftest.$ac_ext"
17762 case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17765 esac
17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17768 ac_status=$?
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } >/dev/null && {
17774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17775 test ! -s conftest.err
17776 }; then
17777 ac_header_preproc=yes
17778 else
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17782 ac_header_preproc=no
17785 rm -f conftest.err conftest.$ac_ext
17786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17787 echo "${ECHO_T}$ac_header_preproc" >&6; }
17789 # So? What about this header?
17790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17791 yes:no: )
17792 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
17793 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17794 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
17795 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
17796 ac_header_preproc=yes
17798 no:yes:* )
17799 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
17800 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
17801 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
17802 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
17803 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
17804 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
17805 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
17806 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
17807 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
17808 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
17809 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
17810 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
17811 ( cat <<\_ASBOX
17812 ## ------------------------------- ##
17813 ## Report this to www.asterisk.org ##
17814 ## ------------------------------- ##
17815 _ASBOX
17816 ) | sed "s/^/$as_me: WARNING: /" >&2
17818 esac
17819 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17820 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17821 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17822 echo $ECHO_N "(cached) $ECHO_C" >&6
17823 else
17824 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
17826 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17827 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17830 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
17832 cat >>confdefs.h <<_ACEOF
17833 #define HAVE_OSX_ATOMICS 1
17834 _ACEOF
17840 { echo "$as_me:$LINENO: checking for int" >&5
17841 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
17842 if test "${ac_cv_type_int+set}" = set; then
17843 echo $ECHO_N "(cached) $ECHO_C" >&6
17844 else
17845 cat >conftest.$ac_ext <<_ACEOF
17846 /* confdefs.h. */
17847 _ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17851 $ac_includes_default
17852 typedef int ac__type_new_;
17854 main ()
17856 if ((ac__type_new_ *) 0)
17857 return 0;
17858 if (sizeof (ac__type_new_))
17859 return 0;
17861 return 0;
17863 _ACEOF
17864 rm -f conftest.$ac_objext
17865 if { (ac_try="$ac_compile"
17866 case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17869 esac
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_compile") 2>conftest.er1
17872 ac_status=$?
17873 grep -v '^ *+' conftest.er1 >conftest.err
17874 rm -f conftest.er1
17875 cat conftest.err >&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } && {
17878 test -z "$ac_c_werror_flag" ||
17879 test ! -s conftest.err
17880 } && test -s conftest.$ac_objext; then
17881 ac_cv_type_int=yes
17882 else
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17886 ac_cv_type_int=no
17889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17891 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17892 echo "${ECHO_T}$ac_cv_type_int" >&6; }
17894 # The cast to long int works around a bug in the HP C Compiler
17895 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17896 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17897 # This bug is HP SR number 8606223364.
17898 { echo "$as_me:$LINENO: checking size of int" >&5
17899 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
17900 if test "${ac_cv_sizeof_int+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903 if test "$cross_compiling" = yes; then
17904 # Depending upon the size, compute the lo and hi bounds.
17905 cat >conftest.$ac_ext <<_ACEOF
17906 /* confdefs.h. */
17907 _ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17911 $ac_includes_default
17912 typedef int ac__type_sizeof_;
17914 main ()
17916 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17917 test_array [0] = 0
17920 return 0;
17922 _ACEOF
17923 rm -f conftest.$ac_objext
17924 if { (ac_try="$ac_compile"
17925 case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17928 esac
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_compile") 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } && {
17937 test -z "$ac_c_werror_flag" ||
17938 test ! -s conftest.err
17939 } && test -s conftest.$ac_objext; then
17940 ac_lo=0 ac_mid=0
17941 while :; do
17942 cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h. */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17948 $ac_includes_default
17949 typedef int ac__type_sizeof_;
17951 main ()
17953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17954 test_array [0] = 0
17957 return 0;
17959 _ACEOF
17960 rm -f conftest.$ac_objext
17961 if { (ac_try="$ac_compile"
17962 case "(($ac_try" in
17963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964 *) ac_try_echo=$ac_try;;
17965 esac
17966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967 (eval "$ac_compile") 2>conftest.er1
17968 ac_status=$?
17969 grep -v '^ *+' conftest.er1 >conftest.err
17970 rm -f conftest.er1
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } && {
17974 test -z "$ac_c_werror_flag" ||
17975 test ! -s conftest.err
17976 } && test -s conftest.$ac_objext; then
17977 ac_hi=$ac_mid; break
17978 else
17979 echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17982 ac_lo=`expr $ac_mid + 1`
17983 if test $ac_lo -le $ac_mid; then
17984 ac_lo= ac_hi=
17985 break
17987 ac_mid=`expr 2 '*' $ac_mid + 1`
17990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17991 done
17992 else
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 cat >conftest.$ac_ext <<_ACEOF
17997 /* confdefs.h. */
17998 _ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18002 $ac_includes_default
18003 typedef int ac__type_sizeof_;
18005 main ()
18007 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18008 test_array [0] = 0
18011 return 0;
18013 _ACEOF
18014 rm -f conftest.$ac_objext
18015 if { (ac_try="$ac_compile"
18016 case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18019 esac
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_compile") 2>conftest.er1
18022 ac_status=$?
18023 grep -v '^ *+' conftest.er1 >conftest.err
18024 rm -f conftest.er1
18025 cat conftest.err >&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); } && {
18028 test -z "$ac_c_werror_flag" ||
18029 test ! -s conftest.err
18030 } && test -s conftest.$ac_objext; then
18031 ac_hi=-1 ac_mid=-1
18032 while :; do
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h. */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 $ac_includes_default
18040 typedef int ac__type_sizeof_;
18042 main ()
18044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18045 test_array [0] = 0
18048 return 0;
18050 _ACEOF
18051 rm -f conftest.$ac_objext
18052 if { (ac_try="$ac_compile"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_compile") 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } && {
18065 test -z "$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 } && test -s conftest.$ac_objext; then
18068 ac_lo=$ac_mid; break
18069 else
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 ac_hi=`expr '(' $ac_mid ')' - 1`
18074 if test $ac_mid -le $ac_hi; then
18075 ac_lo= ac_hi=
18076 break
18078 ac_mid=`expr 2 '*' $ac_mid`
18081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18082 done
18083 else
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 ac_lo= ac_hi=
18090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18094 # Binary search between lo and hi bounds.
18095 while test "x$ac_lo" != "x$ac_hi"; do
18096 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18097 cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h. */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h. */
18103 $ac_includes_default
18104 typedef int ac__type_sizeof_;
18106 main ()
18108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18109 test_array [0] = 0
18112 return 0;
18114 _ACEOF
18115 rm -f conftest.$ac_objext
18116 if { (ac_try="$ac_compile"
18117 case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_compile") 2>conftest.er1
18123 ac_status=$?
18124 grep -v '^ *+' conftest.er1 >conftest.err
18125 rm -f conftest.er1
18126 cat conftest.err >&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } && {
18129 test -z "$ac_c_werror_flag" ||
18130 test ! -s conftest.err
18131 } && test -s conftest.$ac_objext; then
18132 ac_hi=$ac_mid
18133 else
18134 echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18137 ac_lo=`expr '(' $ac_mid ')' + 1`
18140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18141 done
18142 case $ac_lo in
18143 ?*) ac_cv_sizeof_int=$ac_lo;;
18144 '') if test "$ac_cv_type_int" = yes; then
18145 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18146 See \`config.log' for more details." >&5
18147 echo "$as_me: error: cannot compute sizeof (int)
18148 See \`config.log' for more details." >&2;}
18149 { (exit 77); exit 77; }; }
18150 else
18151 ac_cv_sizeof_int=0
18152 fi ;;
18153 esac
18154 else
18155 cat >conftest.$ac_ext <<_ACEOF
18156 /* confdefs.h. */
18157 _ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h. */
18161 $ac_includes_default
18162 typedef int ac__type_sizeof_;
18163 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18164 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18165 #include <stdio.h>
18166 #include <stdlib.h>
18168 main ()
18171 FILE *f = fopen ("conftest.val", "w");
18172 if (! f)
18173 return 1;
18174 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18176 long int i = longval ();
18177 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18178 return 1;
18179 fprintf (f, "%ld\n", i);
18181 else
18183 unsigned long int i = ulongval ();
18184 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18185 return 1;
18186 fprintf (f, "%lu\n", i);
18188 return ferror (f) || fclose (f) != 0;
18191 return 0;
18193 _ACEOF
18194 rm -f conftest$ac_exeext
18195 if { (ac_try="$ac_link"
18196 case "(($ac_try" in
18197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198 *) ac_try_echo=$ac_try;;
18199 esac
18200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201 (eval "$ac_link") 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18205 { (case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208 esac
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_try") 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; }; then
18214 ac_cv_sizeof_int=`cat conftest.val`
18215 else
18216 echo "$as_me: program exited with status $ac_status" >&5
18217 echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18220 ( exit $ac_status )
18221 if test "$ac_cv_type_int" = yes; then
18222 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18223 See \`config.log' for more details." >&5
18224 echo "$as_me: error: cannot compute sizeof (int)
18225 See \`config.log' for more details." >&2;}
18226 { (exit 77); exit 77; }; }
18227 else
18228 ac_cv_sizeof_int=0
18231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18233 rm -f conftest.val
18235 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18236 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
18240 cat >>confdefs.h <<_ACEOF
18241 #define SIZEOF_INT $ac_cv_sizeof_int
18242 _ACEOF
18246 # do the package library checks now
18249 if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
18250 pbxlibdir=""
18251 # if --with-ALSA=DIR has been specified, use it.
18252 if test "x${ALSA_DIR}" != "x"; then
18253 if test -d ${ALSA_DIR}/lib; then
18254 pbxlibdir="-L${ALSA_DIR}/lib"
18255 else
18256 pbxlibdir="-L${ALSA_DIR}"
18259 pbxfuncname="snd_spcm_init"
18260 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18261 AST_ALSA_FOUND=yes
18262 else
18263 as_ac_Lib=`echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
18264 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lasound" >&5
18265 echo $ECHO_N "checking for ${pbxfuncname} in -lasound... $ECHO_C" >&6; }
18266 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18268 else
18269 ac_check_lib_save_LIBS=$LIBS
18270 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
18271 cat >conftest.$ac_ext <<_ACEOF
18272 /* confdefs.h. */
18273 _ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18278 /* Override any GCC internal prototype to avoid an error.
18279 Use char because int might match the return type of a GCC
18280 builtin and then its argument prototype would still apply. */
18281 #ifdef __cplusplus
18282 extern "C"
18283 #endif
18284 char ${pbxfuncname} ();
18286 main ()
18288 return ${pbxfuncname} ();
18290 return 0;
18292 _ACEOF
18293 rm -f conftest.$ac_objext conftest$ac_exeext
18294 if { (ac_try="$ac_link"
18295 case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18298 esac
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_link") 2>conftest.er1
18301 ac_status=$?
18302 grep -v '^ *+' conftest.er1 >conftest.err
18303 rm -f conftest.er1
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } && {
18307 test -z "$ac_c_werror_flag" ||
18308 test ! -s conftest.err
18309 } && test -s conftest$ac_exeext &&
18310 $as_test_x conftest$ac_exeext; then
18311 eval "$as_ac_Lib=yes"
18312 else
18313 echo "$as_me: failed program was:" >&5
18314 sed 's/^/| /' conftest.$ac_ext >&5
18316 eval "$as_ac_Lib=no"
18319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18320 conftest$ac_exeext conftest.$ac_ext
18321 LIBS=$ac_check_lib_save_LIBS
18323 ac_res=`eval echo '${'$as_ac_Lib'}'`
18324 { echo "$as_me:$LINENO: result: $ac_res" >&5
18325 echo "${ECHO_T}$ac_res" >&6; }
18326 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18327 AST_ALSA_FOUND=yes
18328 else
18329 AST_ALSA_FOUND=no
18334 # now check for the header.
18335 if test "${AST_ALSA_FOUND}" = "yes"; then
18336 ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
18337 # if --with-ALSA=DIR has been specified, use it.
18338 if test "x${ALSA_DIR}" != "x"; then
18339 ALSA_INCLUDE="-I${ALSA_DIR}/include"
18341 ALSA_INCLUDE="${ALSA_INCLUDE} "
18342 if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
18343 ALSA_HEADER_FOUND="1"
18344 else # check for the header
18345 saved_cppflags="${CPPFLAGS}"
18346 CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}"
18347 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18348 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18349 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18350 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18354 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18355 else
18356 # Is the header compilable?
18357 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
18358 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
18359 cat >conftest.$ac_ext <<_ACEOF
18360 /* confdefs.h. */
18361 _ACEOF
18362 cat confdefs.h >>conftest.$ac_ext
18363 cat >>conftest.$ac_ext <<_ACEOF
18364 /* end confdefs.h. */
18365 $ac_includes_default
18366 #include <alsa/asoundlib.h>
18367 _ACEOF
18368 rm -f conftest.$ac_objext
18369 if { (ac_try="$ac_compile"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_compile") 2>conftest.er1
18376 ac_status=$?
18377 grep -v '^ *+' conftest.er1 >conftest.err
18378 rm -f conftest.er1
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } && {
18382 test -z "$ac_c_werror_flag" ||
18383 test ! -s conftest.err
18384 } && test -s conftest.$ac_objext; then
18385 ac_header_compiler=yes
18386 else
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 ac_header_compiler=no
18393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18395 echo "${ECHO_T}$ac_header_compiler" >&6; }
18397 # Is the header present?
18398 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
18399 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
18400 cat >conftest.$ac_ext <<_ACEOF
18401 /* confdefs.h. */
18402 _ACEOF
18403 cat confdefs.h >>conftest.$ac_ext
18404 cat >>conftest.$ac_ext <<_ACEOF
18405 /* end confdefs.h. */
18406 #include <alsa/asoundlib.h>
18407 _ACEOF
18408 if { (ac_try="$ac_cpp conftest.$ac_ext"
18409 case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18412 esac
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18415 ac_status=$?
18416 grep -v '^ *+' conftest.er1 >conftest.err
18417 rm -f conftest.er1
18418 cat conftest.err >&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } >/dev/null && {
18421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18422 test ! -s conftest.err
18423 }; then
18424 ac_header_preproc=yes
18425 else
18426 echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ac_header_preproc=no
18432 rm -f conftest.err conftest.$ac_ext
18433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18434 echo "${ECHO_T}$ac_header_preproc" >&6; }
18436 # So? What about this header?
18437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18438 yes:no: )
18439 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18440 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18441 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
18442 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18443 ac_header_preproc=yes
18445 no:yes:* )
18446 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
18447 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18449 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18450 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
18451 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18452 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18453 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18454 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18455 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18456 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18457 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18458 ( cat <<\_ASBOX
18459 ## ------------------------------- ##
18460 ## Report this to www.asterisk.org ##
18461 ## ------------------------------- ##
18462 _ASBOX
18463 ) | sed "s/^/$as_me: WARNING: /" >&2
18465 esac
18466 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18467 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18468 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18469 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 else
18471 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
18473 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18474 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18477 if test $ac_cv_header_alsa_asoundlib_h = yes; then
18478 ALSA_HEADER_FOUND=1
18479 else
18480 ALSA_HEADER_FOUND=0
18484 CPPFLAGS="${saved_cppflags}"
18486 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
18487 ALSA_LIB=""
18488 ALSA_INCLUDE=""
18489 else
18490 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18491 ALSA_LIB=""
18493 PBX_ALSA=1
18494 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18496 cat >>confdefs.h <<_ACEOF
18497 #define HAVE_ALSA 1
18498 _ACEOF
18501 cat >>confdefs.h <<_ACEOF
18502 #define HAVE_ALSA_VERSION
18503 _ACEOF
18511 if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
18512 pbxlibdir=""
18513 # if --with-CURSES=DIR has been specified, use it.
18514 if test "x${CURSES_DIR}" != "x"; then
18515 if test -d ${CURSES_DIR}/lib; then
18516 pbxlibdir="-L${CURSES_DIR}/lib"
18517 else
18518 pbxlibdir="-L${CURSES_DIR}"
18521 pbxfuncname="initscr"
18522 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18523 AST_CURSES_FOUND=yes
18524 else
18525 as_ac_Lib=`echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
18526 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcurses" >&5
18527 echo $ECHO_N "checking for ${pbxfuncname} in -lcurses... $ECHO_C" >&6; }
18528 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18530 else
18531 ac_check_lib_save_LIBS=$LIBS
18532 LIBS="-lcurses ${pbxlibdir} $LIBS"
18533 cat >conftest.$ac_ext <<_ACEOF
18534 /* confdefs.h. */
18535 _ACEOF
18536 cat confdefs.h >>conftest.$ac_ext
18537 cat >>conftest.$ac_ext <<_ACEOF
18538 /* end confdefs.h. */
18540 /* Override any GCC internal prototype to avoid an error.
18541 Use char because int might match the return type of a GCC
18542 builtin and then its argument prototype would still apply. */
18543 #ifdef __cplusplus
18544 extern "C"
18545 #endif
18546 char ${pbxfuncname} ();
18548 main ()
18550 return ${pbxfuncname} ();
18552 return 0;
18554 _ACEOF
18555 rm -f conftest.$ac_objext conftest$ac_exeext
18556 if { (ac_try="$ac_link"
18557 case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18560 esac
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_link") 2>conftest.er1
18563 ac_status=$?
18564 grep -v '^ *+' conftest.er1 >conftest.err
18565 rm -f conftest.er1
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } && {
18569 test -z "$ac_c_werror_flag" ||
18570 test ! -s conftest.err
18571 } && test -s conftest$ac_exeext &&
18572 $as_test_x conftest$ac_exeext; then
18573 eval "$as_ac_Lib=yes"
18574 else
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18578 eval "$as_ac_Lib=no"
18581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18582 conftest$ac_exeext conftest.$ac_ext
18583 LIBS=$ac_check_lib_save_LIBS
18585 ac_res=`eval echo '${'$as_ac_Lib'}'`
18586 { echo "$as_me:$LINENO: result: $ac_res" >&5
18587 echo "${ECHO_T}$ac_res" >&6; }
18588 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18589 AST_CURSES_FOUND=yes
18590 else
18591 AST_CURSES_FOUND=no
18596 # now check for the header.
18597 if test "${AST_CURSES_FOUND}" = "yes"; then
18598 CURSES_LIB="${pbxlibdir} -lcurses "
18599 # if --with-CURSES=DIR has been specified, use it.
18600 if test "x${CURSES_DIR}" != "x"; then
18601 CURSES_INCLUDE="-I${CURSES_DIR}/include"
18603 CURSES_INCLUDE="${CURSES_INCLUDE} "
18604 if test "xcurses.h" = "x" ; then # no header, assume found
18605 CURSES_HEADER_FOUND="1"
18606 else # check for the header
18607 saved_cppflags="${CPPFLAGS}"
18608 CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
18609 if test "${ac_cv_header_curses_h+set}" = set; then
18610 { echo "$as_me:$LINENO: checking for curses.h" >&5
18611 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18612 if test "${ac_cv_header_curses_h+set}" = set; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18615 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18616 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18617 else
18618 # Is the header compilable?
18619 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18620 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18621 cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h. */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 $ac_includes_default
18628 #include <curses.h>
18629 _ACEOF
18630 rm -f conftest.$ac_objext
18631 if { (ac_try="$ac_compile"
18632 case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18635 esac
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_compile") 2>conftest.er1
18638 ac_status=$?
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } && {
18644 test -z "$ac_c_werror_flag" ||
18645 test ! -s conftest.err
18646 } && test -s conftest.$ac_objext; then
18647 ac_header_compiler=yes
18648 else
18649 echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18652 ac_header_compiler=no
18655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18657 echo "${ECHO_T}$ac_header_compiler" >&6; }
18659 # Is the header present?
18660 { echo "$as_me:$LINENO: checking curses.h presence" >&5
18661 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
18662 cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h. */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 #include <curses.h>
18669 _ACEOF
18670 if { (ac_try="$ac_cpp conftest.$ac_ext"
18671 case "(($ac_try" in
18672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673 *) ac_try_echo=$ac_try;;
18674 esac
18675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18677 ac_status=$?
18678 grep -v '^ *+' conftest.er1 >conftest.err
18679 rm -f conftest.er1
18680 cat conftest.err >&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } >/dev/null && {
18683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18684 test ! -s conftest.err
18685 }; then
18686 ac_header_preproc=yes
18687 else
18688 echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18691 ac_header_preproc=no
18694 rm -f conftest.err conftest.$ac_ext
18695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18696 echo "${ECHO_T}$ac_header_preproc" >&6; }
18698 # So? What about this header?
18699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18700 yes:no: )
18701 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18702 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18703 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
18704 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
18705 ac_header_preproc=yes
18707 no:yes:* )
18708 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
18709 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
18710 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
18711 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
18712 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
18713 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
18714 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
18715 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18716 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
18717 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
18718 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
18719 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
18720 ( cat <<\_ASBOX
18721 ## ------------------------------- ##
18722 ## Report this to www.asterisk.org ##
18723 ## ------------------------------- ##
18724 _ASBOX
18725 ) | sed "s/^/$as_me: WARNING: /" >&2
18727 esac
18728 { echo "$as_me:$LINENO: checking for curses.h" >&5
18729 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18730 if test "${ac_cv_header_curses_h+set}" = set; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18732 else
18733 ac_cv_header_curses_h=$ac_header_preproc
18735 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18736 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18739 if test $ac_cv_header_curses_h = yes; then
18740 CURSES_HEADER_FOUND=1
18741 else
18742 CURSES_HEADER_FOUND=0
18746 CPPFLAGS="${saved_cppflags}"
18748 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
18749 CURSES_LIB=""
18750 CURSES_INCLUDE=""
18751 else
18752 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18753 CURSES_LIB=""
18755 PBX_CURSES=1
18756 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18758 cat >>confdefs.h <<_ACEOF
18759 #define HAVE_CURSES 1
18760 _ACEOF
18763 cat >>confdefs.h <<_ACEOF
18764 #define HAVE_CURSES_VERSION
18765 _ACEOF
18772 if test "x${host_os}" = "xlinux-gnu" ; then
18774 if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
18775 pbxlibdir=""
18776 # if --with-CAP=DIR has been specified, use it.
18777 if test "x${CAP_DIR}" != "x"; then
18778 if test -d ${CAP_DIR}/lib; then
18779 pbxlibdir="-L${CAP_DIR}/lib"
18780 else
18781 pbxlibdir="-L${CAP_DIR}"
18784 pbxfuncname="cap_from_text"
18785 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18786 AST_CAP_FOUND=yes
18787 else
18788 as_ac_Lib=`echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
18789 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcap" >&5
18790 echo $ECHO_N "checking for ${pbxfuncname} in -lcap... $ECHO_C" >&6; }
18791 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 else
18794 ac_check_lib_save_LIBS=$LIBS
18795 LIBS="-lcap ${pbxlibdir} $LIBS"
18796 cat >conftest.$ac_ext <<_ACEOF
18797 /* confdefs.h. */
18798 _ACEOF
18799 cat confdefs.h >>conftest.$ac_ext
18800 cat >>conftest.$ac_ext <<_ACEOF
18801 /* end confdefs.h. */
18803 /* Override any GCC internal prototype to avoid an error.
18804 Use char because int might match the return type of a GCC
18805 builtin and then its argument prototype would still apply. */
18806 #ifdef __cplusplus
18807 extern "C"
18808 #endif
18809 char ${pbxfuncname} ();
18811 main ()
18813 return ${pbxfuncname} ();
18815 return 0;
18817 _ACEOF
18818 rm -f conftest.$ac_objext conftest$ac_exeext
18819 if { (ac_try="$ac_link"
18820 case "(($ac_try" in
18821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822 *) ac_try_echo=$ac_try;;
18823 esac
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825 (eval "$ac_link") 2>conftest.er1
18826 ac_status=$?
18827 grep -v '^ *+' conftest.er1 >conftest.err
18828 rm -f conftest.er1
18829 cat conftest.err >&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } && {
18832 test -z "$ac_c_werror_flag" ||
18833 test ! -s conftest.err
18834 } && test -s conftest$ac_exeext &&
18835 $as_test_x conftest$ac_exeext; then
18836 eval "$as_ac_Lib=yes"
18837 else
18838 echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18841 eval "$as_ac_Lib=no"
18844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18845 conftest$ac_exeext conftest.$ac_ext
18846 LIBS=$ac_check_lib_save_LIBS
18848 ac_res=`eval echo '${'$as_ac_Lib'}'`
18849 { echo "$as_me:$LINENO: result: $ac_res" >&5
18850 echo "${ECHO_T}$ac_res" >&6; }
18851 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18852 AST_CAP_FOUND=yes
18853 else
18854 AST_CAP_FOUND=no
18859 # now check for the header.
18860 if test "${AST_CAP_FOUND}" = "yes"; then
18861 CAP_LIB="${pbxlibdir} -lcap "
18862 # if --with-CAP=DIR has been specified, use it.
18863 if test "x${CAP_DIR}" != "x"; then
18864 CAP_INCLUDE="-I${CAP_DIR}/include"
18866 CAP_INCLUDE="${CAP_INCLUDE} "
18867 if test "xsys/capability.h" = "x" ; then # no header, assume found
18868 CAP_HEADER_FOUND="1"
18869 else # check for the header
18870 saved_cppflags="${CPPFLAGS}"
18871 CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
18872 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18873 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18874 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18875 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18878 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18879 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18880 else
18881 # Is the header compilable?
18882 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
18883 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
18884 cat >conftest.$ac_ext <<_ACEOF
18885 /* confdefs.h. */
18886 _ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18890 $ac_includes_default
18891 #include <sys/capability.h>
18892 _ACEOF
18893 rm -f conftest.$ac_objext
18894 if { (ac_try="$ac_compile"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_compile") 2>conftest.er1
18901 ac_status=$?
18902 grep -v '^ *+' conftest.er1 >conftest.err
18903 rm -f conftest.er1
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest.$ac_objext; then
18910 ac_header_compiler=yes
18911 else
18912 echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18915 ac_header_compiler=no
18918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18920 echo "${ECHO_T}$ac_header_compiler" >&6; }
18922 # Is the header present?
18923 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
18924 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
18925 cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h. */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18931 #include <sys/capability.h>
18932 _ACEOF
18933 if { (ac_try="$ac_cpp conftest.$ac_ext"
18934 case "(($ac_try" in
18935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936 *) ac_try_echo=$ac_try;;
18937 esac
18938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18940 ac_status=$?
18941 grep -v '^ *+' conftest.er1 >conftest.err
18942 rm -f conftest.er1
18943 cat conftest.err >&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); } >/dev/null && {
18946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18947 test ! -s conftest.err
18948 }; then
18949 ac_header_preproc=yes
18950 else
18951 echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.$ac_ext >&5
18954 ac_header_preproc=no
18957 rm -f conftest.err conftest.$ac_ext
18958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18959 echo "${ECHO_T}$ac_header_preproc" >&6; }
18961 # So? What about this header?
18962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18963 yes:no: )
18964 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
18965 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18966 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
18967 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
18968 ac_header_preproc=yes
18970 no:yes:* )
18971 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
18972 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
18973 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
18974 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
18975 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
18976 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
18977 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
18978 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
18979 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
18980 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
18981 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
18982 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
18983 ( cat <<\_ASBOX
18984 ## ------------------------------- ##
18985 ## Report this to www.asterisk.org ##
18986 ## ------------------------------- ##
18987 _ASBOX
18988 ) | sed "s/^/$as_me: WARNING: /" >&2
18990 esac
18991 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18992 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18993 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 else
18996 ac_cv_header_sys_capability_h=$ac_header_preproc
18998 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18999 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
19002 if test $ac_cv_header_sys_capability_h = yes; then
19003 CAP_HEADER_FOUND=1
19004 else
19005 CAP_HEADER_FOUND=0
19009 CPPFLAGS="${saved_cppflags}"
19011 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
19012 CAP_LIB=""
19013 CAP_INCLUDE=""
19014 else
19015 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19016 CAP_LIB=""
19018 PBX_CAP=1
19019 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19021 cat >>confdefs.h <<_ACEOF
19022 #define HAVE_CAP 1
19023 _ACEOF
19026 cat >>confdefs.h <<_ACEOF
19027 #define HAVE_CAP_VERSION
19028 _ACEOF
19037 if test "x${PBX_DAHDI}" != "x1"; then
19038 { echo "$as_me:$LINENO: checking for DAHDI_CODE in dahdi/user.h" >&5
19039 echo $ECHO_N "checking for DAHDI_CODE in dahdi/user.h... $ECHO_C" >&6; }
19040 saved_cppflags="${CPPFLAGS}"
19041 if test "x${DAHDI_DIR}" != "x"; then
19042 DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
19044 CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
19046 cat >conftest.$ac_ext <<_ACEOF
19047 /* confdefs.h. */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19052 #include <dahdi/user.h>
19054 main ()
19056 #if defined(DAHDI_CODE)
19057 int foo = 0;
19058 #else
19059 int foo = bar;
19060 #endif
19064 return 0;
19066 _ACEOF
19067 rm -f conftest.$ac_objext
19068 if { (ac_try="$ac_compile"
19069 case "(($ac_try" in
19070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071 *) ac_try_echo=$ac_try;;
19072 esac
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_compile") 2>conftest.er1
19075 ac_status=$?
19076 grep -v '^ *+' conftest.er1 >conftest.err
19077 rm -f conftest.er1
19078 cat conftest.err >&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } && {
19081 test -z "$ac_c_werror_flag" ||
19082 test ! -s conftest.err
19083 } && test -s conftest.$ac_objext; then
19084 { echo "$as_me:$LINENO: result: yes" >&5
19085 echo "${ECHO_T}yes" >&6; }
19086 PBX_DAHDI=1
19088 cat >>confdefs.h <<\_ACEOF
19089 #define HAVE_DAHDI 1
19090 _ACEOF
19093 cat >>confdefs.h <<\_ACEOF
19094 #define HAVE_DAHDI_VERSION
19095 _ACEOF
19098 else
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19102 { echo "$as_me:$LINENO: result: no" >&5
19103 echo "${ECHO_T}no" >&6; }
19107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19108 CPPFLAGS="${saved_cppflags}"
19113 # BSD might not have exp2, and/or log2
19115 if test "x${PBX_EXP2L}" != "x1" -a "${USE_EXP2L}" != "no"; then
19116 pbxlibdir=""
19117 # if --with-EXP2L=DIR has been specified, use it.
19118 if test "x${EXP2L_DIR}" != "x"; then
19119 if test -d ${EXP2L_DIR}/lib; then
19120 pbxlibdir="-L${EXP2L_DIR}/lib"
19121 else
19122 pbxlibdir="-L${EXP2L_DIR}"
19125 pbxfuncname="exp2l"
19126 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19127 AST_EXP2L_FOUND=yes
19128 else
19129 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19130 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19131 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19132 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135 ac_check_lib_save_LIBS=$LIBS
19136 LIBS="-lm ${pbxlibdir} $LIBS"
19137 cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h. */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19144 /* Override any GCC internal prototype to avoid an error.
19145 Use char because int might match the return type of a GCC
19146 builtin and then its argument prototype would still apply. */
19147 #ifdef __cplusplus
19148 extern "C"
19149 #endif
19150 char ${pbxfuncname} ();
19152 main ()
19154 return ${pbxfuncname} ();
19156 return 0;
19158 _ACEOF
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (ac_try="$ac_link"
19161 case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19164 esac
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_link") 2>conftest.er1
19167 ac_status=$?
19168 grep -v '^ *+' conftest.er1 >conftest.err
19169 rm -f conftest.er1
19170 cat conftest.err >&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } && {
19173 test -z "$ac_c_werror_flag" ||
19174 test ! -s conftest.err
19175 } && test -s conftest$ac_exeext &&
19176 $as_test_x conftest$ac_exeext; then
19177 eval "$as_ac_Lib=yes"
19178 else
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19182 eval "$as_ac_Lib=no"
19185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19186 conftest$ac_exeext conftest.$ac_ext
19187 LIBS=$ac_check_lib_save_LIBS
19189 ac_res=`eval echo '${'$as_ac_Lib'}'`
19190 { echo "$as_me:$LINENO: result: $ac_res" >&5
19191 echo "${ECHO_T}$ac_res" >&6; }
19192 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19193 AST_EXP2L_FOUND=yes
19194 else
19195 AST_EXP2L_FOUND=no
19200 # now check for the header.
19201 if test "${AST_EXP2L_FOUND}" = "yes"; then
19202 EXP2L_LIB="${pbxlibdir} -lm "
19203 # if --with-EXP2L=DIR has been specified, use it.
19204 if test "x${EXP2L_DIR}" != "x"; then
19205 EXP2L_INCLUDE="-I${EXP2L_DIR}/include"
19207 EXP2L_INCLUDE="${EXP2L_INCLUDE} "
19208 if test "x" = "x" ; then # no header, assume found
19209 EXP2L_HEADER_FOUND="1"
19210 else # check for the header
19211 saved_cppflags="${CPPFLAGS}"
19212 CPPFLAGS="${CPPFLAGS} ${EXP2L_INCLUDE}"
19213 if test "${ac_cv_header_+set}" = set; then
19214 { echo "$as_me:$LINENO: checking for " >&5
19215 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19216 if test "${ac_cv_header_+set}" = set; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19220 echo "${ECHO_T}$ac_cv_header_" >&6; }
19221 else
19222 # Is the header compilable?
19223 { echo "$as_me:$LINENO: checking usability" >&5
19224 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19225 cat >conftest.$ac_ext <<_ACEOF
19226 /* confdefs.h. */
19227 _ACEOF
19228 cat confdefs.h >>conftest.$ac_ext
19229 cat >>conftest.$ac_ext <<_ACEOF
19230 /* end confdefs.h. */
19231 $ac_includes_default
19232 #include <>
19233 _ACEOF
19234 rm -f conftest.$ac_objext
19235 if { (ac_try="$ac_compile"
19236 case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19239 esac
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_compile") 2>conftest.er1
19242 ac_status=$?
19243 grep -v '^ *+' conftest.er1 >conftest.err
19244 rm -f conftest.er1
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } && {
19248 test -z "$ac_c_werror_flag" ||
19249 test ! -s conftest.err
19250 } && test -s conftest.$ac_objext; then
19251 ac_header_compiler=yes
19252 else
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19256 ac_header_compiler=no
19259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19261 echo "${ECHO_T}$ac_header_compiler" >&6; }
19263 # Is the header present?
19264 { echo "$as_me:$LINENO: checking presence" >&5
19265 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19266 cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h. */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 #include <>
19273 _ACEOF
19274 if { (ac_try="$ac_cpp conftest.$ac_ext"
19275 case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19278 esac
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19281 ac_status=$?
19282 grep -v '^ *+' conftest.er1 >conftest.err
19283 rm -f conftest.er1
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } >/dev/null && {
19287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19288 test ! -s conftest.err
19289 }; then
19290 ac_header_preproc=yes
19291 else
19292 echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19295 ac_header_preproc=no
19298 rm -f conftest.err conftest.$ac_ext
19299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19300 echo "${ECHO_T}$ac_header_preproc" >&6; }
19302 # So? What about this header?
19303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19304 yes:no: )
19305 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19306 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19307 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19308 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19309 ac_header_preproc=yes
19311 no:yes:* )
19312 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19313 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19314 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19315 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19316 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19317 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19318 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19319 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19320 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19321 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19322 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19323 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19324 ( cat <<\_ASBOX
19325 ## ------------------------------- ##
19326 ## Report this to www.asterisk.org ##
19327 ## ------------------------------- ##
19328 _ASBOX
19329 ) | sed "s/^/$as_me: WARNING: /" >&2
19331 esac
19332 { echo "$as_me:$LINENO: checking for " >&5
19333 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19334 if test "${ac_cv_header_+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337 ac_cv_header_=$ac_header_preproc
19339 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19340 echo "${ECHO_T}$ac_cv_header_" >&6; }
19343 if test $ac_cv_header_ = yes; then
19344 EXP2L_HEADER_FOUND=1
19345 else
19346 EXP2L_HEADER_FOUND=0
19350 CPPFLAGS="${saved_cppflags}"
19352 if test "x${EXP2L_HEADER_FOUND}" = "x0" ; then
19353 EXP2L_LIB=""
19354 EXP2L_INCLUDE=""
19355 else
19356 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19357 EXP2L_LIB=""
19359 PBX_EXP2L=1
19360 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19362 cat >>confdefs.h <<_ACEOF
19363 #define HAVE_EXP2L 1
19364 _ACEOF
19367 cat >>confdefs.h <<_ACEOF
19368 #define HAVE_EXP2L_VERSION
19369 _ACEOF
19376 if test "x${PBX_LOG2L}" != "x1" -a "${USE_LOG2L}" != "no"; then
19377 pbxlibdir=""
19378 # if --with-LOG2L=DIR has been specified, use it.
19379 if test "x${LOG2L_DIR}" != "x"; then
19380 if test -d ${LOG2L_DIR}/lib; then
19381 pbxlibdir="-L${LOG2L_DIR}/lib"
19382 else
19383 pbxlibdir="-L${LOG2L_DIR}"
19386 pbxfuncname="log2l"
19387 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19388 AST_LOG2L_FOUND=yes
19389 else
19390 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19391 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19392 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19393 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19395 else
19396 ac_check_lib_save_LIBS=$LIBS
19397 LIBS="-lm ${pbxlibdir} $LIBS"
19398 cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h. */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19405 /* Override any GCC internal prototype to avoid an error.
19406 Use char because int might match the return type of a GCC
19407 builtin and then its argument prototype would still apply. */
19408 #ifdef __cplusplus
19409 extern "C"
19410 #endif
19411 char ${pbxfuncname} ();
19413 main ()
19415 return ${pbxfuncname} ();
19417 return 0;
19419 _ACEOF
19420 rm -f conftest.$ac_objext conftest$ac_exeext
19421 if { (ac_try="$ac_link"
19422 case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19425 esac
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_link") 2>conftest.er1
19428 ac_status=$?
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } && {
19434 test -z "$ac_c_werror_flag" ||
19435 test ! -s conftest.err
19436 } && test -s conftest$ac_exeext &&
19437 $as_test_x conftest$ac_exeext; then
19438 eval "$as_ac_Lib=yes"
19439 else
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 eval "$as_ac_Lib=no"
19446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19447 conftest$ac_exeext conftest.$ac_ext
19448 LIBS=$ac_check_lib_save_LIBS
19450 ac_res=`eval echo '${'$as_ac_Lib'}'`
19451 { echo "$as_me:$LINENO: result: $ac_res" >&5
19452 echo "${ECHO_T}$ac_res" >&6; }
19453 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19454 AST_LOG2L_FOUND=yes
19455 else
19456 AST_LOG2L_FOUND=no
19461 # now check for the header.
19462 if test "${AST_LOG2L_FOUND}" = "yes"; then
19463 LOG2L_LIB="${pbxlibdir} -lm "
19464 # if --with-LOG2L=DIR has been specified, use it.
19465 if test "x${LOG2L_DIR}" != "x"; then
19466 LOG2L_INCLUDE="-I${LOG2L_DIR}/include"
19468 LOG2L_INCLUDE="${LOG2L_INCLUDE} "
19469 if test "x" = "x" ; then # no header, assume found
19470 LOG2L_HEADER_FOUND="1"
19471 else # check for the header
19472 saved_cppflags="${CPPFLAGS}"
19473 CPPFLAGS="${CPPFLAGS} ${LOG2L_INCLUDE}"
19474 if test "${ac_cv_header_+set}" = set; then
19475 { echo "$as_me:$LINENO: checking for " >&5
19476 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19477 if test "${ac_cv_header_+set}" = set; then
19478 echo $ECHO_N "(cached) $ECHO_C" >&6
19480 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19481 echo "${ECHO_T}$ac_cv_header_" >&6; }
19482 else
19483 # Is the header compilable?
19484 { echo "$as_me:$LINENO: checking usability" >&5
19485 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19486 cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h. */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19492 $ac_includes_default
19493 #include <>
19494 _ACEOF
19495 rm -f conftest.$ac_objext
19496 if { (ac_try="$ac_compile"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19500 esac
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_compile") 2>conftest.er1
19503 ac_status=$?
19504 grep -v '^ *+' conftest.er1 >conftest.err
19505 rm -f conftest.er1
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } && {
19509 test -z "$ac_c_werror_flag" ||
19510 test ! -s conftest.err
19511 } && test -s conftest.$ac_objext; then
19512 ac_header_compiler=yes
19513 else
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19517 ac_header_compiler=no
19520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19522 echo "${ECHO_T}$ac_header_compiler" >&6; }
19524 # Is the header present?
19525 { echo "$as_me:$LINENO: checking presence" >&5
19526 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19527 cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h. */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 #include <>
19534 _ACEOF
19535 if { (ac_try="$ac_cpp conftest.$ac_ext"
19536 case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19539 esac
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19542 ac_status=$?
19543 grep -v '^ *+' conftest.er1 >conftest.err
19544 rm -f conftest.er1
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } >/dev/null && {
19548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19549 test ! -s conftest.err
19550 }; then
19551 ac_header_preproc=yes
19552 else
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19556 ac_header_preproc=no
19559 rm -f conftest.err conftest.$ac_ext
19560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19561 echo "${ECHO_T}$ac_header_preproc" >&6; }
19563 # So? What about this header?
19564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19565 yes:no: )
19566 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19567 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19568 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19569 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19570 ac_header_preproc=yes
19572 no:yes:* )
19573 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19574 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19575 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19576 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19577 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19578 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19579 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19580 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19581 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19582 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19583 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19584 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19585 ( cat <<\_ASBOX
19586 ## ------------------------------- ##
19587 ## Report this to www.asterisk.org ##
19588 ## ------------------------------- ##
19589 _ASBOX
19590 ) | sed "s/^/$as_me: WARNING: /" >&2
19592 esac
19593 { echo "$as_me:$LINENO: checking for " >&5
19594 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19595 if test "${ac_cv_header_+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598 ac_cv_header_=$ac_header_preproc
19600 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19601 echo "${ECHO_T}$ac_cv_header_" >&6; }
19604 if test $ac_cv_header_ = yes; then
19605 LOG2L_HEADER_FOUND=1
19606 else
19607 LOG2L_HEADER_FOUND=0
19611 CPPFLAGS="${saved_cppflags}"
19613 if test "x${LOG2L_HEADER_FOUND}" = "x0" ; then
19614 LOG2L_LIB=""
19615 LOG2L_INCLUDE=""
19616 else
19617 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19618 LOG2L_LIB=""
19620 PBX_LOG2L=1
19621 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19623 cat >>confdefs.h <<_ACEOF
19624 #define HAVE_LOG2L 1
19625 _ACEOF
19628 cat >>confdefs.h <<_ACEOF
19629 #define HAVE_LOG2L_VERSION
19630 _ACEOF
19637 if test "x${PBX_EXP10L}" != "x1" -a "${USE_EXP10L}" != "no"; then
19638 pbxlibdir=""
19639 # if --with-EXP10L=DIR has been specified, use it.
19640 if test "x${EXP10L_DIR}" != "x"; then
19641 if test -d ${EXP10L_DIR}/lib; then
19642 pbxlibdir="-L${EXP10L_DIR}/lib"
19643 else
19644 pbxlibdir="-L${EXP10L_DIR}"
19647 pbxfuncname="exp10l"
19648 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19649 AST_EXP10L_FOUND=yes
19650 else
19651 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19652 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19653 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19654 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657 ac_check_lib_save_LIBS=$LIBS
19658 LIBS="-lm ${pbxlibdir} $LIBS"
19659 cat >conftest.$ac_ext <<_ACEOF
19660 /* confdefs.h. */
19661 _ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h. */
19666 /* Override any GCC internal prototype to avoid an error.
19667 Use char because int might match the return type of a GCC
19668 builtin and then its argument prototype would still apply. */
19669 #ifdef __cplusplus
19670 extern "C"
19671 #endif
19672 char ${pbxfuncname} ();
19674 main ()
19676 return ${pbxfuncname} ();
19678 return 0;
19680 _ACEOF
19681 rm -f conftest.$ac_objext conftest$ac_exeext
19682 if { (ac_try="$ac_link"
19683 case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19686 esac
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_link") 2>conftest.er1
19689 ac_status=$?
19690 grep -v '^ *+' conftest.er1 >conftest.err
19691 rm -f conftest.er1
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } && {
19695 test -z "$ac_c_werror_flag" ||
19696 test ! -s conftest.err
19697 } && test -s conftest$ac_exeext &&
19698 $as_test_x conftest$ac_exeext; then
19699 eval "$as_ac_Lib=yes"
19700 else
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19704 eval "$as_ac_Lib=no"
19707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19708 conftest$ac_exeext conftest.$ac_ext
19709 LIBS=$ac_check_lib_save_LIBS
19711 ac_res=`eval echo '${'$as_ac_Lib'}'`
19712 { echo "$as_me:$LINENO: result: $ac_res" >&5
19713 echo "${ECHO_T}$ac_res" >&6; }
19714 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19715 AST_EXP10L_FOUND=yes
19716 else
19717 AST_EXP10L_FOUND=no
19722 # now check for the header.
19723 if test "${AST_EXP10L_FOUND}" = "yes"; then
19724 EXP10L_LIB="${pbxlibdir} -lm "
19725 # if --with-EXP10L=DIR has been specified, use it.
19726 if test "x${EXP10L_DIR}" != "x"; then
19727 EXP10L_INCLUDE="-I${EXP10L_DIR}/include"
19729 EXP10L_INCLUDE="${EXP10L_INCLUDE} "
19730 if test "x" = "x" ; then # no header, assume found
19731 EXP10L_HEADER_FOUND="1"
19732 else # check for the header
19733 saved_cppflags="${CPPFLAGS}"
19734 CPPFLAGS="${CPPFLAGS} ${EXP10L_INCLUDE}"
19735 if test "${ac_cv_header_+set}" = set; then
19736 { echo "$as_me:$LINENO: checking for " >&5
19737 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19738 if test "${ac_cv_header_+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19742 echo "${ECHO_T}$ac_cv_header_" >&6; }
19743 else
19744 # Is the header compilable?
19745 { echo "$as_me:$LINENO: checking usability" >&5
19746 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19747 cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h. */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19753 $ac_includes_default
19754 #include <>
19755 _ACEOF
19756 rm -f conftest.$ac_objext
19757 if { (ac_try="$ac_compile"
19758 case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19761 esac
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_compile") 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } && {
19770 test -z "$ac_c_werror_flag" ||
19771 test ! -s conftest.err
19772 } && test -s conftest.$ac_objext; then
19773 ac_header_compiler=yes
19774 else
19775 echo "$as_me: failed program was:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19778 ac_header_compiler=no
19781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19783 echo "${ECHO_T}$ac_header_compiler" >&6; }
19785 # Is the header present?
19786 { echo "$as_me:$LINENO: checking presence" >&5
19787 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19788 cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h. */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794 #include <>
19795 _ACEOF
19796 if { (ac_try="$ac_cpp conftest.$ac_ext"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } >/dev/null && {
19809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19810 test ! -s conftest.err
19811 }; then
19812 ac_header_preproc=yes
19813 else
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ac_header_preproc=no
19820 rm -f conftest.err conftest.$ac_ext
19821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19822 echo "${ECHO_T}$ac_header_preproc" >&6; }
19824 # So? What about this header?
19825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19826 yes:no: )
19827 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19828 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19829 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19830 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19831 ac_header_preproc=yes
19833 no:yes:* )
19834 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19835 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19836 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19837 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19838 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19839 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19840 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19841 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19842 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19843 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19844 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19845 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19846 ( cat <<\_ASBOX
19847 ## ------------------------------- ##
19848 ## Report this to www.asterisk.org ##
19849 ## ------------------------------- ##
19850 _ASBOX
19851 ) | sed "s/^/$as_me: WARNING: /" >&2
19853 esac
19854 { echo "$as_me:$LINENO: checking for " >&5
19855 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19856 if test "${ac_cv_header_+set}" = set; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 else
19859 ac_cv_header_=$ac_header_preproc
19861 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19862 echo "${ECHO_T}$ac_cv_header_" >&6; }
19865 if test $ac_cv_header_ = yes; then
19866 EXP10L_HEADER_FOUND=1
19867 else
19868 EXP10L_HEADER_FOUND=0
19872 CPPFLAGS="${saved_cppflags}"
19874 if test "x${EXP10L_HEADER_FOUND}" = "x0" ; then
19875 EXP10L_LIB=""
19876 EXP10L_INCLUDE=""
19877 else
19878 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19879 EXP10L_LIB=""
19881 PBX_EXP10L=1
19882 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19884 cat >>confdefs.h <<_ACEOF
19885 #define HAVE_EXP10L 1
19886 _ACEOF
19889 cat >>confdefs.h <<_ACEOF
19890 #define HAVE_EXP10L_VERSION
19891 _ACEOF
19898 if test "x${PBX_LOG10L}" != "x1" -a "${USE_LOG10L}" != "no"; then
19899 pbxlibdir=""
19900 # if --with-LOG10L=DIR has been specified, use it.
19901 if test "x${LOG10L_DIR}" != "x"; then
19902 if test -d ${LOG10L_DIR}/lib; then
19903 pbxlibdir="-L${LOG10L_DIR}/lib"
19904 else
19905 pbxlibdir="-L${LOG10L_DIR}"
19908 pbxfuncname="log10l"
19909 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19910 AST_LOG10L_FOUND=yes
19911 else
19912 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19913 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19914 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19915 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19918 ac_check_lib_save_LIBS=$LIBS
19919 LIBS="-lm ${pbxlibdir} $LIBS"
19920 cat >conftest.$ac_ext <<_ACEOF
19921 /* confdefs.h. */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19927 /* Override any GCC internal prototype to avoid an error.
19928 Use char because int might match the return type of a GCC
19929 builtin and then its argument prototype would still apply. */
19930 #ifdef __cplusplus
19931 extern "C"
19932 #endif
19933 char ${pbxfuncname} ();
19935 main ()
19937 return ${pbxfuncname} ();
19939 return 0;
19941 _ACEOF
19942 rm -f conftest.$ac_objext conftest$ac_exeext
19943 if { (ac_try="$ac_link"
19944 case "(($ac_try" in
19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946 *) ac_try_echo=$ac_try;;
19947 esac
19948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949 (eval "$ac_link") 2>conftest.er1
19950 ac_status=$?
19951 grep -v '^ *+' conftest.er1 >conftest.err
19952 rm -f conftest.er1
19953 cat conftest.err >&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } && {
19956 test -z "$ac_c_werror_flag" ||
19957 test ! -s conftest.err
19958 } && test -s conftest$ac_exeext &&
19959 $as_test_x conftest$ac_exeext; then
19960 eval "$as_ac_Lib=yes"
19961 else
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 eval "$as_ac_Lib=no"
19968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19969 conftest$ac_exeext conftest.$ac_ext
19970 LIBS=$ac_check_lib_save_LIBS
19972 ac_res=`eval echo '${'$as_ac_Lib'}'`
19973 { echo "$as_me:$LINENO: result: $ac_res" >&5
19974 echo "${ECHO_T}$ac_res" >&6; }
19975 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19976 AST_LOG10L_FOUND=yes
19977 else
19978 AST_LOG10L_FOUND=no
19983 # now check for the header.
19984 if test "${AST_LOG10L_FOUND}" = "yes"; then
19985 LOG10L_LIB="${pbxlibdir} -lm "
19986 # if --with-LOG10L=DIR has been specified, use it.
19987 if test "x${LOG10L_DIR}" != "x"; then
19988 LOG10L_INCLUDE="-I${LOG10L_DIR}/include"
19990 LOG10L_INCLUDE="${LOG10L_INCLUDE} "
19991 if test "x" = "x" ; then # no header, assume found
19992 LOG10L_HEADER_FOUND="1"
19993 else # check for the header
19994 saved_cppflags="${CPPFLAGS}"
19995 CPPFLAGS="${CPPFLAGS} ${LOG10L_INCLUDE}"
19996 if test "${ac_cv_header_+set}" = set; then
19997 { echo "$as_me:$LINENO: checking for " >&5
19998 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19999 if test "${ac_cv_header_+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20002 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20003 echo "${ECHO_T}$ac_cv_header_" >&6; }
20004 else
20005 # Is the header compilable?
20006 { echo "$as_me:$LINENO: checking usability" >&5
20007 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20008 cat >conftest.$ac_ext <<_ACEOF
20009 /* confdefs.h. */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014 $ac_includes_default
20015 #include <>
20016 _ACEOF
20017 rm -f conftest.$ac_objext
20018 if { (ac_try="$ac_compile"
20019 case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20022 esac
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_compile") 2>conftest.er1
20025 ac_status=$?
20026 grep -v '^ *+' conftest.er1 >conftest.err
20027 rm -f conftest.er1
20028 cat conftest.err >&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } && {
20031 test -z "$ac_c_werror_flag" ||
20032 test ! -s conftest.err
20033 } && test -s conftest.$ac_objext; then
20034 ac_header_compiler=yes
20035 else
20036 echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20039 ac_header_compiler=no
20042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20044 echo "${ECHO_T}$ac_header_compiler" >&6; }
20046 # Is the header present?
20047 { echo "$as_me:$LINENO: checking presence" >&5
20048 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20049 cat >conftest.$ac_ext <<_ACEOF
20050 /* confdefs.h. */
20051 _ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h. */
20055 #include <>
20056 _ACEOF
20057 if { (ac_try="$ac_cpp conftest.$ac_ext"
20058 case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20061 esac
20062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20064 ac_status=$?
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } >/dev/null && {
20070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20071 test ! -s conftest.err
20072 }; then
20073 ac_header_preproc=yes
20074 else
20075 echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20078 ac_header_preproc=no
20081 rm -f conftest.err conftest.$ac_ext
20082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20083 echo "${ECHO_T}$ac_header_preproc" >&6; }
20085 # So? What about this header?
20086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20087 yes:no: )
20088 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20089 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20090 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20091 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20092 ac_header_preproc=yes
20094 no:yes:* )
20095 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20096 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20098 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20100 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20102 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20103 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20104 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20105 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20106 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20107 ( cat <<\_ASBOX
20108 ## ------------------------------- ##
20109 ## Report this to www.asterisk.org ##
20110 ## ------------------------------- ##
20111 _ASBOX
20112 ) | sed "s/^/$as_me: WARNING: /" >&2
20114 esac
20115 { echo "$as_me:$LINENO: checking for " >&5
20116 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20117 if test "${ac_cv_header_+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 else
20120 ac_cv_header_=$ac_header_preproc
20122 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20123 echo "${ECHO_T}$ac_cv_header_" >&6; }
20126 if test $ac_cv_header_ = yes; then
20127 LOG10L_HEADER_FOUND=1
20128 else
20129 LOG10L_HEADER_FOUND=0
20133 CPPFLAGS="${saved_cppflags}"
20135 if test "x${LOG10L_HEADER_FOUND}" = "x0" ; then
20136 LOG10L_LIB=""
20137 LOG10L_INCLUDE=""
20138 else
20139 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20140 LOG10L_LIB=""
20142 PBX_LOG10L=1
20143 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20145 cat >>confdefs.h <<_ACEOF
20146 #define HAVE_LOG10L 1
20147 _ACEOF
20150 cat >>confdefs.h <<_ACEOF
20151 #define HAVE_LOG10L_VERSION
20152 _ACEOF
20159 if test "x${PBX_SINL}" != "x1" -a "${USE_SINL}" != "no"; then
20160 pbxlibdir=""
20161 # if --with-SINL=DIR has been specified, use it.
20162 if test "x${SINL_DIR}" != "x"; then
20163 if test -d ${SINL_DIR}/lib; then
20164 pbxlibdir="-L${SINL_DIR}/lib"
20165 else
20166 pbxlibdir="-L${SINL_DIR}"
20169 pbxfuncname="sinl"
20170 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20171 AST_SINL_FOUND=yes
20172 else
20173 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20174 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20175 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20176 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20178 else
20179 ac_check_lib_save_LIBS=$LIBS
20180 LIBS="-lm ${pbxlibdir} $LIBS"
20181 cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h. */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20188 /* Override any GCC internal prototype to avoid an error.
20189 Use char because int might match the return type of a GCC
20190 builtin and then its argument prototype would still apply. */
20191 #ifdef __cplusplus
20192 extern "C"
20193 #endif
20194 char ${pbxfuncname} ();
20196 main ()
20198 return ${pbxfuncname} ();
20200 return 0;
20202 _ACEOF
20203 rm -f conftest.$ac_objext conftest$ac_exeext
20204 if { (ac_try="$ac_link"
20205 case "(($ac_try" in
20206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207 *) ac_try_echo=$ac_try;;
20208 esac
20209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210 (eval "$ac_link") 2>conftest.er1
20211 ac_status=$?
20212 grep -v '^ *+' conftest.er1 >conftest.err
20213 rm -f conftest.er1
20214 cat conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } && {
20217 test -z "$ac_c_werror_flag" ||
20218 test ! -s conftest.err
20219 } && test -s conftest$ac_exeext &&
20220 $as_test_x conftest$ac_exeext; then
20221 eval "$as_ac_Lib=yes"
20222 else
20223 echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20226 eval "$as_ac_Lib=no"
20229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20230 conftest$ac_exeext conftest.$ac_ext
20231 LIBS=$ac_check_lib_save_LIBS
20233 ac_res=`eval echo '${'$as_ac_Lib'}'`
20234 { echo "$as_me:$LINENO: result: $ac_res" >&5
20235 echo "${ECHO_T}$ac_res" >&6; }
20236 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20237 AST_SINL_FOUND=yes
20238 else
20239 AST_SINL_FOUND=no
20244 # now check for the header.
20245 if test "${AST_SINL_FOUND}" = "yes"; then
20246 SINL_LIB="${pbxlibdir} -lm "
20247 # if --with-SINL=DIR has been specified, use it.
20248 if test "x${SINL_DIR}" != "x"; then
20249 SINL_INCLUDE="-I${SINL_DIR}/include"
20251 SINL_INCLUDE="${SINL_INCLUDE} "
20252 if test "x" = "x" ; then # no header, assume found
20253 SINL_HEADER_FOUND="1"
20254 else # check for the header
20255 saved_cppflags="${CPPFLAGS}"
20256 CPPFLAGS="${CPPFLAGS} ${SINL_INCLUDE}"
20257 if test "${ac_cv_header_+set}" = set; then
20258 { echo "$as_me:$LINENO: checking for " >&5
20259 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20260 if test "${ac_cv_header_+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20264 echo "${ECHO_T}$ac_cv_header_" >&6; }
20265 else
20266 # Is the header compilable?
20267 { echo "$as_me:$LINENO: checking usability" >&5
20268 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20269 cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h. */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275 $ac_includes_default
20276 #include <>
20277 _ACEOF
20278 rm -f conftest.$ac_objext
20279 if { (ac_try="$ac_compile"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_compile") 2>conftest.er1
20286 ac_status=$?
20287 grep -v '^ *+' conftest.er1 >conftest.err
20288 rm -f conftest.er1
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } && {
20292 test -z "$ac_c_werror_flag" ||
20293 test ! -s conftest.err
20294 } && test -s conftest.$ac_objext; then
20295 ac_header_compiler=yes
20296 else
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ac_header_compiler=no
20303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20305 echo "${ECHO_T}$ac_header_compiler" >&6; }
20307 # Is the header present?
20308 { echo "$as_me:$LINENO: checking presence" >&5
20309 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20310 cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h. */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 #include <>
20317 _ACEOF
20318 if { (ac_try="$ac_cpp conftest.$ac_ext"
20319 case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20322 esac
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20325 ac_status=$?
20326 grep -v '^ *+' conftest.er1 >conftest.err
20327 rm -f conftest.er1
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } >/dev/null && {
20331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20332 test ! -s conftest.err
20333 }; then
20334 ac_header_preproc=yes
20335 else
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20339 ac_header_preproc=no
20342 rm -f conftest.err conftest.$ac_ext
20343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20344 echo "${ECHO_T}$ac_header_preproc" >&6; }
20346 # So? What about this header?
20347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20348 yes:no: )
20349 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20350 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20352 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20353 ac_header_preproc=yes
20355 no:yes:* )
20356 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20357 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20359 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20361 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20363 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20365 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20366 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20367 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20368 ( cat <<\_ASBOX
20369 ## ------------------------------- ##
20370 ## Report this to www.asterisk.org ##
20371 ## ------------------------------- ##
20372 _ASBOX
20373 ) | sed "s/^/$as_me: WARNING: /" >&2
20375 esac
20376 { echo "$as_me:$LINENO: checking for " >&5
20377 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20378 if test "${ac_cv_header_+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20381 ac_cv_header_=$ac_header_preproc
20383 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20384 echo "${ECHO_T}$ac_cv_header_" >&6; }
20387 if test $ac_cv_header_ = yes; then
20388 SINL_HEADER_FOUND=1
20389 else
20390 SINL_HEADER_FOUND=0
20394 CPPFLAGS="${saved_cppflags}"
20396 if test "x${SINL_HEADER_FOUND}" = "x0" ; then
20397 SINL_LIB=""
20398 SINL_INCLUDE=""
20399 else
20400 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20401 SINL_LIB=""
20403 PBX_SINL=1
20404 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20406 cat >>confdefs.h <<_ACEOF
20407 #define HAVE_SINL 1
20408 _ACEOF
20411 cat >>confdefs.h <<_ACEOF
20412 #define HAVE_SINL_VERSION
20413 _ACEOF
20420 if test "x${PBX_COSL}" != "x1" -a "${USE_COSL}" != "no"; then
20421 pbxlibdir=""
20422 # if --with-COSL=DIR has been specified, use it.
20423 if test "x${COSL_DIR}" != "x"; then
20424 if test -d ${COSL_DIR}/lib; then
20425 pbxlibdir="-L${COSL_DIR}/lib"
20426 else
20427 pbxlibdir="-L${COSL_DIR}"
20430 pbxfuncname="cosl"
20431 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20432 AST_COSL_FOUND=yes
20433 else
20434 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20435 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20436 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20437 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20439 else
20440 ac_check_lib_save_LIBS=$LIBS
20441 LIBS="-lm ${pbxlibdir} $LIBS"
20442 cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h. */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20449 /* Override any GCC internal prototype to avoid an error.
20450 Use char because int might match the return type of a GCC
20451 builtin and then its argument prototype would still apply. */
20452 #ifdef __cplusplus
20453 extern "C"
20454 #endif
20455 char ${pbxfuncname} ();
20457 main ()
20459 return ${pbxfuncname} ();
20461 return 0;
20463 _ACEOF
20464 rm -f conftest.$ac_objext conftest$ac_exeext
20465 if { (ac_try="$ac_link"
20466 case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20469 esac
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_link") 2>conftest.er1
20472 ac_status=$?
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } && {
20478 test -z "$ac_c_werror_flag" ||
20479 test ! -s conftest.err
20480 } && test -s conftest$ac_exeext &&
20481 $as_test_x conftest$ac_exeext; then
20482 eval "$as_ac_Lib=yes"
20483 else
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20487 eval "$as_ac_Lib=no"
20490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20491 conftest$ac_exeext conftest.$ac_ext
20492 LIBS=$ac_check_lib_save_LIBS
20494 ac_res=`eval echo '${'$as_ac_Lib'}'`
20495 { echo "$as_me:$LINENO: result: $ac_res" >&5
20496 echo "${ECHO_T}$ac_res" >&6; }
20497 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20498 AST_COSL_FOUND=yes
20499 else
20500 AST_COSL_FOUND=no
20505 # now check for the header.
20506 if test "${AST_COSL_FOUND}" = "yes"; then
20507 COSL_LIB="${pbxlibdir} -lm "
20508 # if --with-COSL=DIR has been specified, use it.
20509 if test "x${COSL_DIR}" != "x"; then
20510 COSL_INCLUDE="-I${COSL_DIR}/include"
20512 COSL_INCLUDE="${COSL_INCLUDE} "
20513 if test "x" = "x" ; then # no header, assume found
20514 COSL_HEADER_FOUND="1"
20515 else # check for the header
20516 saved_cppflags="${CPPFLAGS}"
20517 CPPFLAGS="${CPPFLAGS} ${COSL_INCLUDE}"
20518 if test "${ac_cv_header_+set}" = set; then
20519 { echo "$as_me:$LINENO: checking for " >&5
20520 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20521 if test "${ac_cv_header_+set}" = set; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20524 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20525 echo "${ECHO_T}$ac_cv_header_" >&6; }
20526 else
20527 # Is the header compilable?
20528 { echo "$as_me:$LINENO: checking usability" >&5
20529 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h. */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 $ac_includes_default
20537 #include <>
20538 _ACEOF
20539 rm -f conftest.$ac_objext
20540 if { (ac_try="$ac_compile"
20541 case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20544 esac
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_compile") 2>conftest.er1
20547 ac_status=$?
20548 grep -v '^ *+' conftest.er1 >conftest.err
20549 rm -f conftest.er1
20550 cat conftest.err >&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } && {
20553 test -z "$ac_c_werror_flag" ||
20554 test ! -s conftest.err
20555 } && test -s conftest.$ac_objext; then
20556 ac_header_compiler=yes
20557 else
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20561 ac_header_compiler=no
20564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20566 echo "${ECHO_T}$ac_header_compiler" >&6; }
20568 # Is the header present?
20569 { echo "$as_me:$LINENO: checking presence" >&5
20570 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20571 cat >conftest.$ac_ext <<_ACEOF
20572 /* confdefs.h. */
20573 _ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h. */
20577 #include <>
20578 _ACEOF
20579 if { (ac_try="$ac_cpp conftest.$ac_ext"
20580 case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20586 ac_status=$?
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } >/dev/null && {
20592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20593 test ! -s conftest.err
20594 }; then
20595 ac_header_preproc=yes
20596 else
20597 echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20600 ac_header_preproc=no
20603 rm -f conftest.err conftest.$ac_ext
20604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20605 echo "${ECHO_T}$ac_header_preproc" >&6; }
20607 # So? What about this header?
20608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20609 yes:no: )
20610 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20611 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20612 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20613 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20614 ac_header_preproc=yes
20616 no:yes:* )
20617 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20618 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20619 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20620 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20621 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20622 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20623 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20624 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20626 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20627 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20628 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20629 ( cat <<\_ASBOX
20630 ## ------------------------------- ##
20631 ## Report this to www.asterisk.org ##
20632 ## ------------------------------- ##
20633 _ASBOX
20634 ) | sed "s/^/$as_me: WARNING: /" >&2
20636 esac
20637 { echo "$as_me:$LINENO: checking for " >&5
20638 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20639 if test "${ac_cv_header_+set}" = set; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20641 else
20642 ac_cv_header_=$ac_header_preproc
20644 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20645 echo "${ECHO_T}$ac_cv_header_" >&6; }
20648 if test $ac_cv_header_ = yes; then
20649 COSL_HEADER_FOUND=1
20650 else
20651 COSL_HEADER_FOUND=0
20655 CPPFLAGS="${saved_cppflags}"
20657 if test "x${COSL_HEADER_FOUND}" = "x0" ; then
20658 COSL_LIB=""
20659 COSL_INCLUDE=""
20660 else
20661 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20662 COSL_LIB=""
20664 PBX_COSL=1
20665 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20667 cat >>confdefs.h <<_ACEOF
20668 #define HAVE_COSL 1
20669 _ACEOF
20672 cat >>confdefs.h <<_ACEOF
20673 #define HAVE_COSL_VERSION
20674 _ACEOF
20681 if test "x${PBX_TANL}" != "x1" -a "${USE_TANL}" != "no"; then
20682 pbxlibdir=""
20683 # if --with-TANL=DIR has been specified, use it.
20684 if test "x${TANL_DIR}" != "x"; then
20685 if test -d ${TANL_DIR}/lib; then
20686 pbxlibdir="-L${TANL_DIR}/lib"
20687 else
20688 pbxlibdir="-L${TANL_DIR}"
20691 pbxfuncname="tanl"
20692 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20693 AST_TANL_FOUND=yes
20694 else
20695 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20696 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20697 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20698 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20700 else
20701 ac_check_lib_save_LIBS=$LIBS
20702 LIBS="-lm ${pbxlibdir} $LIBS"
20703 cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h. */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20710 /* Override any GCC internal prototype to avoid an error.
20711 Use char because int might match the return type of a GCC
20712 builtin and then its argument prototype would still apply. */
20713 #ifdef __cplusplus
20714 extern "C"
20715 #endif
20716 char ${pbxfuncname} ();
20718 main ()
20720 return ${pbxfuncname} ();
20722 return 0;
20724 _ACEOF
20725 rm -f conftest.$ac_objext conftest$ac_exeext
20726 if { (ac_try="$ac_link"
20727 case "(($ac_try" in
20728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729 *) ac_try_echo=$ac_try;;
20730 esac
20731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20732 (eval "$ac_link") 2>conftest.er1
20733 ac_status=$?
20734 grep -v '^ *+' conftest.er1 >conftest.err
20735 rm -f conftest.er1
20736 cat conftest.err >&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } && {
20739 test -z "$ac_c_werror_flag" ||
20740 test ! -s conftest.err
20741 } && test -s conftest$ac_exeext &&
20742 $as_test_x conftest$ac_exeext; then
20743 eval "$as_ac_Lib=yes"
20744 else
20745 echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20748 eval "$as_ac_Lib=no"
20751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20752 conftest$ac_exeext conftest.$ac_ext
20753 LIBS=$ac_check_lib_save_LIBS
20755 ac_res=`eval echo '${'$as_ac_Lib'}'`
20756 { echo "$as_me:$LINENO: result: $ac_res" >&5
20757 echo "${ECHO_T}$ac_res" >&6; }
20758 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20759 AST_TANL_FOUND=yes
20760 else
20761 AST_TANL_FOUND=no
20766 # now check for the header.
20767 if test "${AST_TANL_FOUND}" = "yes"; then
20768 TANL_LIB="${pbxlibdir} -lm "
20769 # if --with-TANL=DIR has been specified, use it.
20770 if test "x${TANL_DIR}" != "x"; then
20771 TANL_INCLUDE="-I${TANL_DIR}/include"
20773 TANL_INCLUDE="${TANL_INCLUDE} "
20774 if test "x" = "x" ; then # no header, assume found
20775 TANL_HEADER_FOUND="1"
20776 else # check for the header
20777 saved_cppflags="${CPPFLAGS}"
20778 CPPFLAGS="${CPPFLAGS} ${TANL_INCLUDE}"
20779 if test "${ac_cv_header_+set}" = set; then
20780 { echo "$as_me:$LINENO: checking for " >&5
20781 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20782 if test "${ac_cv_header_+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20785 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20786 echo "${ECHO_T}$ac_cv_header_" >&6; }
20787 else
20788 # Is the header compilable?
20789 { echo "$as_me:$LINENO: checking usability" >&5
20790 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20791 cat >conftest.$ac_ext <<_ACEOF
20792 /* confdefs.h. */
20793 _ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h. */
20797 $ac_includes_default
20798 #include <>
20799 _ACEOF
20800 rm -f conftest.$ac_objext
20801 if { (ac_try="$ac_compile"
20802 case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20805 esac
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_compile") 2>conftest.er1
20808 ac_status=$?
20809 grep -v '^ *+' conftest.er1 >conftest.err
20810 rm -f conftest.er1
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } && {
20814 test -z "$ac_c_werror_flag" ||
20815 test ! -s conftest.err
20816 } && test -s conftest.$ac_objext; then
20817 ac_header_compiler=yes
20818 else
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20822 ac_header_compiler=no
20825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20827 echo "${ECHO_T}$ac_header_compiler" >&6; }
20829 # Is the header present?
20830 { echo "$as_me:$LINENO: checking presence" >&5
20831 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20832 cat >conftest.$ac_ext <<_ACEOF
20833 /* confdefs.h. */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20838 #include <>
20839 _ACEOF
20840 if { (ac_try="$ac_cpp conftest.$ac_ext"
20841 case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20847 ac_status=$?
20848 grep -v '^ *+' conftest.er1 >conftest.err
20849 rm -f conftest.er1
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } >/dev/null && {
20853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20854 test ! -s conftest.err
20855 }; then
20856 ac_header_preproc=yes
20857 else
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20861 ac_header_preproc=no
20864 rm -f conftest.err conftest.$ac_ext
20865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20866 echo "${ECHO_T}$ac_header_preproc" >&6; }
20868 # So? What about this header?
20869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20870 yes:no: )
20871 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20872 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20873 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20874 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20875 ac_header_preproc=yes
20877 no:yes:* )
20878 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20879 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20880 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20881 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20882 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20883 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20884 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20885 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20886 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20887 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20888 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20889 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20890 ( cat <<\_ASBOX
20891 ## ------------------------------- ##
20892 ## Report this to www.asterisk.org ##
20893 ## ------------------------------- ##
20894 _ASBOX
20895 ) | sed "s/^/$as_me: WARNING: /" >&2
20897 esac
20898 { echo "$as_me:$LINENO: checking for " >&5
20899 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20900 if test "${ac_cv_header_+set}" = set; then
20901 echo $ECHO_N "(cached) $ECHO_C" >&6
20902 else
20903 ac_cv_header_=$ac_header_preproc
20905 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20906 echo "${ECHO_T}$ac_cv_header_" >&6; }
20909 if test $ac_cv_header_ = yes; then
20910 TANL_HEADER_FOUND=1
20911 else
20912 TANL_HEADER_FOUND=0
20916 CPPFLAGS="${saved_cppflags}"
20918 if test "x${TANL_HEADER_FOUND}" = "x0" ; then
20919 TANL_LIB=""
20920 TANL_INCLUDE=""
20921 else
20922 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20923 TANL_LIB=""
20925 PBX_TANL=1
20926 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20928 cat >>confdefs.h <<_ACEOF
20929 #define HAVE_TANL 1
20930 _ACEOF
20933 cat >>confdefs.h <<_ACEOF
20934 #define HAVE_TANL_VERSION
20935 _ACEOF
20942 if test "x${PBX_ASINL}" != "x1" -a "${USE_ASINL}" != "no"; then
20943 pbxlibdir=""
20944 # if --with-ASINL=DIR has been specified, use it.
20945 if test "x${ASINL_DIR}" != "x"; then
20946 if test -d ${ASINL_DIR}/lib; then
20947 pbxlibdir="-L${ASINL_DIR}/lib"
20948 else
20949 pbxlibdir="-L${ASINL_DIR}"
20952 pbxfuncname="asinl"
20953 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20954 AST_ASINL_FOUND=yes
20955 else
20956 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20957 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20958 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20959 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20961 else
20962 ac_check_lib_save_LIBS=$LIBS
20963 LIBS="-lm ${pbxlibdir} $LIBS"
20964 cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h. */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20971 /* Override any GCC internal prototype to avoid an error.
20972 Use char because int might match the return type of a GCC
20973 builtin and then its argument prototype would still apply. */
20974 #ifdef __cplusplus
20975 extern "C"
20976 #endif
20977 char ${pbxfuncname} ();
20979 main ()
20981 return ${pbxfuncname} ();
20983 return 0;
20985 _ACEOF
20986 rm -f conftest.$ac_objext conftest$ac_exeext
20987 if { (ac_try="$ac_link"
20988 case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>conftest.er1
20994 ac_status=$?
20995 grep -v '^ *+' conftest.er1 >conftest.err
20996 rm -f conftest.er1
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && {
21000 test -z "$ac_c_werror_flag" ||
21001 test ! -s conftest.err
21002 } && test -s conftest$ac_exeext &&
21003 $as_test_x conftest$ac_exeext; then
21004 eval "$as_ac_Lib=yes"
21005 else
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21009 eval "$as_ac_Lib=no"
21012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21013 conftest$ac_exeext conftest.$ac_ext
21014 LIBS=$ac_check_lib_save_LIBS
21016 ac_res=`eval echo '${'$as_ac_Lib'}'`
21017 { echo "$as_me:$LINENO: result: $ac_res" >&5
21018 echo "${ECHO_T}$ac_res" >&6; }
21019 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21020 AST_ASINL_FOUND=yes
21021 else
21022 AST_ASINL_FOUND=no
21027 # now check for the header.
21028 if test "${AST_ASINL_FOUND}" = "yes"; then
21029 ASINL_LIB="${pbxlibdir} -lm "
21030 # if --with-ASINL=DIR has been specified, use it.
21031 if test "x${ASINL_DIR}" != "x"; then
21032 ASINL_INCLUDE="-I${ASINL_DIR}/include"
21034 ASINL_INCLUDE="${ASINL_INCLUDE} "
21035 if test "x" = "x" ; then # no header, assume found
21036 ASINL_HEADER_FOUND="1"
21037 else # check for the header
21038 saved_cppflags="${CPPFLAGS}"
21039 CPPFLAGS="${CPPFLAGS} ${ASINL_INCLUDE}"
21040 if test "${ac_cv_header_+set}" = set; then
21041 { echo "$as_me:$LINENO: checking for " >&5
21042 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21043 if test "${ac_cv_header_+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21046 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21047 echo "${ECHO_T}$ac_cv_header_" >&6; }
21048 else
21049 # Is the header compilable?
21050 { echo "$as_me:$LINENO: checking usability" >&5
21051 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21052 cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h. */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058 $ac_includes_default
21059 #include <>
21060 _ACEOF
21061 rm -f conftest.$ac_objext
21062 if { (ac_try="$ac_compile"
21063 case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21066 esac
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_compile") 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } && {
21075 test -z "$ac_c_werror_flag" ||
21076 test ! -s conftest.err
21077 } && test -s conftest.$ac_objext; then
21078 ac_header_compiler=yes
21079 else
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21083 ac_header_compiler=no
21086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21088 echo "${ECHO_T}$ac_header_compiler" >&6; }
21090 # Is the header present?
21091 { echo "$as_me:$LINENO: checking presence" >&5
21092 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21093 cat >conftest.$ac_ext <<_ACEOF
21094 /* confdefs.h. */
21095 _ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21099 #include <>
21100 _ACEOF
21101 if { (ac_try="$ac_cpp conftest.$ac_ext"
21102 case "(($ac_try" in
21103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104 *) ac_try_echo=$ac_try;;
21105 esac
21106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21108 ac_status=$?
21109 grep -v '^ *+' conftest.er1 >conftest.err
21110 rm -f conftest.er1
21111 cat conftest.err >&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } >/dev/null && {
21114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21115 test ! -s conftest.err
21116 }; then
21117 ac_header_preproc=yes
21118 else
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 ac_header_preproc=no
21125 rm -f conftest.err conftest.$ac_ext
21126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21127 echo "${ECHO_T}$ac_header_preproc" >&6; }
21129 # So? What about this header?
21130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21131 yes:no: )
21132 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21133 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21134 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21135 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21136 ac_header_preproc=yes
21138 no:yes:* )
21139 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21140 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21141 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21142 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21143 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21144 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21146 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21147 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21148 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21150 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21151 ( cat <<\_ASBOX
21152 ## ------------------------------- ##
21153 ## Report this to www.asterisk.org ##
21154 ## ------------------------------- ##
21155 _ASBOX
21156 ) | sed "s/^/$as_me: WARNING: /" >&2
21158 esac
21159 { echo "$as_me:$LINENO: checking for " >&5
21160 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21161 if test "${ac_cv_header_+set}" = set; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21163 else
21164 ac_cv_header_=$ac_header_preproc
21166 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21167 echo "${ECHO_T}$ac_cv_header_" >&6; }
21170 if test $ac_cv_header_ = yes; then
21171 ASINL_HEADER_FOUND=1
21172 else
21173 ASINL_HEADER_FOUND=0
21177 CPPFLAGS="${saved_cppflags}"
21179 if test "x${ASINL_HEADER_FOUND}" = "x0" ; then
21180 ASINL_LIB=""
21181 ASINL_INCLUDE=""
21182 else
21183 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21184 ASINL_LIB=""
21186 PBX_ASINL=1
21187 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21189 cat >>confdefs.h <<_ACEOF
21190 #define HAVE_ASINL 1
21191 _ACEOF
21194 cat >>confdefs.h <<_ACEOF
21195 #define HAVE_ASINL_VERSION
21196 _ACEOF
21203 if test "x${PBX_ACOSL}" != "x1" -a "${USE_ACOSL}" != "no"; then
21204 pbxlibdir=""
21205 # if --with-ACOSL=DIR has been specified, use it.
21206 if test "x${ACOSL_DIR}" != "x"; then
21207 if test -d ${ACOSL_DIR}/lib; then
21208 pbxlibdir="-L${ACOSL_DIR}/lib"
21209 else
21210 pbxlibdir="-L${ACOSL_DIR}"
21213 pbxfuncname="acosl"
21214 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21215 AST_ACOSL_FOUND=yes
21216 else
21217 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21218 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21219 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21220 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 else
21223 ac_check_lib_save_LIBS=$LIBS
21224 LIBS="-lm ${pbxlibdir} $LIBS"
21225 cat >conftest.$ac_ext <<_ACEOF
21226 /* confdefs.h. */
21227 _ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h. */
21232 /* Override any GCC internal prototype to avoid an error.
21233 Use char because int might match the return type of a GCC
21234 builtin and then its argument prototype would still apply. */
21235 #ifdef __cplusplus
21236 extern "C"
21237 #endif
21238 char ${pbxfuncname} ();
21240 main ()
21242 return ${pbxfuncname} ();
21244 return 0;
21246 _ACEOF
21247 rm -f conftest.$ac_objext conftest$ac_exeext
21248 if { (ac_try="$ac_link"
21249 case "(($ac_try" in
21250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251 *) ac_try_echo=$ac_try;;
21252 esac
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254 (eval "$ac_link") 2>conftest.er1
21255 ac_status=$?
21256 grep -v '^ *+' conftest.er1 >conftest.err
21257 rm -f conftest.er1
21258 cat conftest.err >&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } && {
21261 test -z "$ac_c_werror_flag" ||
21262 test ! -s conftest.err
21263 } && test -s conftest$ac_exeext &&
21264 $as_test_x conftest$ac_exeext; then
21265 eval "$as_ac_Lib=yes"
21266 else
21267 echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21270 eval "$as_ac_Lib=no"
21273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21274 conftest$ac_exeext conftest.$ac_ext
21275 LIBS=$ac_check_lib_save_LIBS
21277 ac_res=`eval echo '${'$as_ac_Lib'}'`
21278 { echo "$as_me:$LINENO: result: $ac_res" >&5
21279 echo "${ECHO_T}$ac_res" >&6; }
21280 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21281 AST_ACOSL_FOUND=yes
21282 else
21283 AST_ACOSL_FOUND=no
21288 # now check for the header.
21289 if test "${AST_ACOSL_FOUND}" = "yes"; then
21290 ACOSL_LIB="${pbxlibdir} -lm "
21291 # if --with-ACOSL=DIR has been specified, use it.
21292 if test "x${ACOSL_DIR}" != "x"; then
21293 ACOSL_INCLUDE="-I${ACOSL_DIR}/include"
21295 ACOSL_INCLUDE="${ACOSL_INCLUDE} "
21296 if test "x" = "x" ; then # no header, assume found
21297 ACOSL_HEADER_FOUND="1"
21298 else # check for the header
21299 saved_cppflags="${CPPFLAGS}"
21300 CPPFLAGS="${CPPFLAGS} ${ACOSL_INCLUDE}"
21301 if test "${ac_cv_header_+set}" = set; then
21302 { echo "$as_me:$LINENO: checking for " >&5
21303 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21304 if test "${ac_cv_header_+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21307 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21308 echo "${ECHO_T}$ac_cv_header_" >&6; }
21309 else
21310 # Is the header compilable?
21311 { echo "$as_me:$LINENO: checking usability" >&5
21312 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21313 cat >conftest.$ac_ext <<_ACEOF
21314 /* confdefs.h. */
21315 _ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 $ac_includes_default
21320 #include <>
21321 _ACEOF
21322 rm -f conftest.$ac_objext
21323 if { (ac_try="$ac_compile"
21324 case "(($ac_try" in
21325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21326 *) ac_try_echo=$ac_try;;
21327 esac
21328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21329 (eval "$ac_compile") 2>conftest.er1
21330 ac_status=$?
21331 grep -v '^ *+' conftest.er1 >conftest.err
21332 rm -f conftest.er1
21333 cat conftest.err >&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); } && {
21336 test -z "$ac_c_werror_flag" ||
21337 test ! -s conftest.err
21338 } && test -s conftest.$ac_objext; then
21339 ac_header_compiler=yes
21340 else
21341 echo "$as_me: failed program was:" >&5
21342 sed 's/^/| /' conftest.$ac_ext >&5
21344 ac_header_compiler=no
21347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21349 echo "${ECHO_T}$ac_header_compiler" >&6; }
21351 # Is the header present?
21352 { echo "$as_me:$LINENO: checking presence" >&5
21353 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21354 cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h. */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21360 #include <>
21361 _ACEOF
21362 if { (ac_try="$ac_cpp conftest.$ac_ext"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21366 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21369 ac_status=$?
21370 grep -v '^ *+' conftest.er1 >conftest.err
21371 rm -f conftest.er1
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } >/dev/null && {
21375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21377 }; then
21378 ac_header_preproc=yes
21379 else
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21383 ac_header_preproc=no
21386 rm -f conftest.err conftest.$ac_ext
21387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21388 echo "${ECHO_T}$ac_header_preproc" >&6; }
21390 # So? What about this header?
21391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21392 yes:no: )
21393 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21394 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21395 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21396 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21397 ac_header_preproc=yes
21399 no:yes:* )
21400 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21401 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21402 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21403 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21404 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21405 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21406 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21407 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21408 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21409 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21410 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21411 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21412 ( cat <<\_ASBOX
21413 ## ------------------------------- ##
21414 ## Report this to www.asterisk.org ##
21415 ## ------------------------------- ##
21416 _ASBOX
21417 ) | sed "s/^/$as_me: WARNING: /" >&2
21419 esac
21420 { echo "$as_me:$LINENO: checking for " >&5
21421 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21422 if test "${ac_cv_header_+set}" = set; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21424 else
21425 ac_cv_header_=$ac_header_preproc
21427 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21428 echo "${ECHO_T}$ac_cv_header_" >&6; }
21431 if test $ac_cv_header_ = yes; then
21432 ACOSL_HEADER_FOUND=1
21433 else
21434 ACOSL_HEADER_FOUND=0
21438 CPPFLAGS="${saved_cppflags}"
21440 if test "x${ACOSL_HEADER_FOUND}" = "x0" ; then
21441 ACOSL_LIB=""
21442 ACOSL_INCLUDE=""
21443 else
21444 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21445 ACOSL_LIB=""
21447 PBX_ACOSL=1
21448 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21450 cat >>confdefs.h <<_ACEOF
21451 #define HAVE_ACOSL 1
21452 _ACEOF
21455 cat >>confdefs.h <<_ACEOF
21456 #define HAVE_ACOSL_VERSION
21457 _ACEOF
21464 if test "x${PBX_ATANL}" != "x1" -a "${USE_ATANL}" != "no"; then
21465 pbxlibdir=""
21466 # if --with-ATANL=DIR has been specified, use it.
21467 if test "x${ATANL_DIR}" != "x"; then
21468 if test -d ${ATANL_DIR}/lib; then
21469 pbxlibdir="-L${ATANL_DIR}/lib"
21470 else
21471 pbxlibdir="-L${ATANL_DIR}"
21474 pbxfuncname="atanl"
21475 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21476 AST_ATANL_FOUND=yes
21477 else
21478 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21479 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21480 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21481 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21483 else
21484 ac_check_lib_save_LIBS=$LIBS
21485 LIBS="-lm ${pbxlibdir} $LIBS"
21486 cat >conftest.$ac_ext <<_ACEOF
21487 /* confdefs.h. */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21493 /* Override any GCC internal prototype to avoid an error.
21494 Use char because int might match the return type of a GCC
21495 builtin and then its argument prototype would still apply. */
21496 #ifdef __cplusplus
21497 extern "C"
21498 #endif
21499 char ${pbxfuncname} ();
21501 main ()
21503 return ${pbxfuncname} ();
21505 return 0;
21507 _ACEOF
21508 rm -f conftest.$ac_objext conftest$ac_exeext
21509 if { (ac_try="$ac_link"
21510 case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21513 esac
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_link") 2>conftest.er1
21516 ac_status=$?
21517 grep -v '^ *+' conftest.er1 >conftest.err
21518 rm -f conftest.er1
21519 cat conftest.err >&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } && {
21522 test -z "$ac_c_werror_flag" ||
21523 test ! -s conftest.err
21524 } && test -s conftest$ac_exeext &&
21525 $as_test_x conftest$ac_exeext; then
21526 eval "$as_ac_Lib=yes"
21527 else
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 eval "$as_ac_Lib=no"
21534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21535 conftest$ac_exeext conftest.$ac_ext
21536 LIBS=$ac_check_lib_save_LIBS
21538 ac_res=`eval echo '${'$as_ac_Lib'}'`
21539 { echo "$as_me:$LINENO: result: $ac_res" >&5
21540 echo "${ECHO_T}$ac_res" >&6; }
21541 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21542 AST_ATANL_FOUND=yes
21543 else
21544 AST_ATANL_FOUND=no
21549 # now check for the header.
21550 if test "${AST_ATANL_FOUND}" = "yes"; then
21551 ATANL_LIB="${pbxlibdir} -lm "
21552 # if --with-ATANL=DIR has been specified, use it.
21553 if test "x${ATANL_DIR}" != "x"; then
21554 ATANL_INCLUDE="-I${ATANL_DIR}/include"
21556 ATANL_INCLUDE="${ATANL_INCLUDE} "
21557 if test "x" = "x" ; then # no header, assume found
21558 ATANL_HEADER_FOUND="1"
21559 else # check for the header
21560 saved_cppflags="${CPPFLAGS}"
21561 CPPFLAGS="${CPPFLAGS} ${ATANL_INCLUDE}"
21562 if test "${ac_cv_header_+set}" = set; then
21563 { echo "$as_me:$LINENO: checking for " >&5
21564 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21565 if test "${ac_cv_header_+set}" = set; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21568 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21569 echo "${ECHO_T}$ac_cv_header_" >&6; }
21570 else
21571 # Is the header compilable?
21572 { echo "$as_me:$LINENO: checking usability" >&5
21573 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h. */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 $ac_includes_default
21581 #include <>
21582 _ACEOF
21583 rm -f conftest.$ac_objext
21584 if { (ac_try="$ac_compile"
21585 case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21588 esac
21589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_compile") 2>conftest.er1
21591 ac_status=$?
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } && {
21597 test -z "$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21599 } && test -s conftest.$ac_objext; then
21600 ac_header_compiler=yes
21601 else
21602 echo "$as_me: failed program was:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21605 ac_header_compiler=no
21608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21610 echo "${ECHO_T}$ac_header_compiler" >&6; }
21612 # Is the header present?
21613 { echo "$as_me:$LINENO: checking presence" >&5
21614 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21615 cat >conftest.$ac_ext <<_ACEOF
21616 /* confdefs.h. */
21617 _ACEOF
21618 cat confdefs.h >>conftest.$ac_ext
21619 cat >>conftest.$ac_ext <<_ACEOF
21620 /* end confdefs.h. */
21621 #include <>
21622 _ACEOF
21623 if { (ac_try="$ac_cpp conftest.$ac_ext"
21624 case "(($ac_try" in
21625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21626 *) ac_try_echo=$ac_try;;
21627 esac
21628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21630 ac_status=$?
21631 grep -v '^ *+' conftest.er1 >conftest.err
21632 rm -f conftest.er1
21633 cat conftest.err >&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } >/dev/null && {
21636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21637 test ! -s conftest.err
21638 }; then
21639 ac_header_preproc=yes
21640 else
21641 echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21644 ac_header_preproc=no
21647 rm -f conftest.err conftest.$ac_ext
21648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21649 echo "${ECHO_T}$ac_header_preproc" >&6; }
21651 # So? What about this header?
21652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21653 yes:no: )
21654 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21655 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21656 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21657 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21658 ac_header_preproc=yes
21660 no:yes:* )
21661 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21662 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21664 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21666 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21667 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21668 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21669 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21670 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21671 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21672 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21673 ( cat <<\_ASBOX
21674 ## ------------------------------- ##
21675 ## Report this to www.asterisk.org ##
21676 ## ------------------------------- ##
21677 _ASBOX
21678 ) | sed "s/^/$as_me: WARNING: /" >&2
21680 esac
21681 { echo "$as_me:$LINENO: checking for " >&5
21682 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21683 if test "${ac_cv_header_+set}" = set; then
21684 echo $ECHO_N "(cached) $ECHO_C" >&6
21685 else
21686 ac_cv_header_=$ac_header_preproc
21688 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21689 echo "${ECHO_T}$ac_cv_header_" >&6; }
21692 if test $ac_cv_header_ = yes; then
21693 ATANL_HEADER_FOUND=1
21694 else
21695 ATANL_HEADER_FOUND=0
21699 CPPFLAGS="${saved_cppflags}"
21701 if test "x${ATANL_HEADER_FOUND}" = "x0" ; then
21702 ATANL_LIB=""
21703 ATANL_INCLUDE=""
21704 else
21705 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21706 ATANL_LIB=""
21708 PBX_ATANL=1
21709 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21711 cat >>confdefs.h <<_ACEOF
21712 #define HAVE_ATANL 1
21713 _ACEOF
21716 cat >>confdefs.h <<_ACEOF
21717 #define HAVE_ATANL_VERSION
21718 _ACEOF
21725 if test "x${PBX_ATAN2L}" != "x1" -a "${USE_ATAN2L}" != "no"; then
21726 pbxlibdir=""
21727 # if --with-ATAN2L=DIR has been specified, use it.
21728 if test "x${ATAN2L_DIR}" != "x"; then
21729 if test -d ${ATAN2L_DIR}/lib; then
21730 pbxlibdir="-L${ATAN2L_DIR}/lib"
21731 else
21732 pbxlibdir="-L${ATAN2L_DIR}"
21735 pbxfuncname="atan2l"
21736 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21737 AST_ATAN2L_FOUND=yes
21738 else
21739 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21740 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21741 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21742 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21744 else
21745 ac_check_lib_save_LIBS=$LIBS
21746 LIBS="-lm ${pbxlibdir} $LIBS"
21747 cat >conftest.$ac_ext <<_ACEOF
21748 /* confdefs.h. */
21749 _ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h. */
21754 /* Override any GCC internal prototype to avoid an error.
21755 Use char because int might match the return type of a GCC
21756 builtin and then its argument prototype would still apply. */
21757 #ifdef __cplusplus
21758 extern "C"
21759 #endif
21760 char ${pbxfuncname} ();
21762 main ()
21764 return ${pbxfuncname} ();
21766 return 0;
21768 _ACEOF
21769 rm -f conftest.$ac_objext conftest$ac_exeext
21770 if { (ac_try="$ac_link"
21771 case "(($ac_try" in
21772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21773 *) ac_try_echo=$ac_try;;
21774 esac
21775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21776 (eval "$ac_link") 2>conftest.er1
21777 ac_status=$?
21778 grep -v '^ *+' conftest.er1 >conftest.err
21779 rm -f conftest.er1
21780 cat conftest.err >&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); } && {
21783 test -z "$ac_c_werror_flag" ||
21784 test ! -s conftest.err
21785 } && test -s conftest$ac_exeext &&
21786 $as_test_x conftest$ac_exeext; then
21787 eval "$as_ac_Lib=yes"
21788 else
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21792 eval "$as_ac_Lib=no"
21795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21796 conftest$ac_exeext conftest.$ac_ext
21797 LIBS=$ac_check_lib_save_LIBS
21799 ac_res=`eval echo '${'$as_ac_Lib'}'`
21800 { echo "$as_me:$LINENO: result: $ac_res" >&5
21801 echo "${ECHO_T}$ac_res" >&6; }
21802 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21803 AST_ATAN2L_FOUND=yes
21804 else
21805 AST_ATAN2L_FOUND=no
21810 # now check for the header.
21811 if test "${AST_ATAN2L_FOUND}" = "yes"; then
21812 ATAN2L_LIB="${pbxlibdir} -lm "
21813 # if --with-ATAN2L=DIR has been specified, use it.
21814 if test "x${ATAN2L_DIR}" != "x"; then
21815 ATAN2L_INCLUDE="-I${ATAN2L_DIR}/include"
21817 ATAN2L_INCLUDE="${ATAN2L_INCLUDE} "
21818 if test "x" = "x" ; then # no header, assume found
21819 ATAN2L_HEADER_FOUND="1"
21820 else # check for the header
21821 saved_cppflags="${CPPFLAGS}"
21822 CPPFLAGS="${CPPFLAGS} ${ATAN2L_INCLUDE}"
21823 if test "${ac_cv_header_+set}" = set; then
21824 { echo "$as_me:$LINENO: checking for " >&5
21825 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21826 if test "${ac_cv_header_+set}" = set; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21829 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21830 echo "${ECHO_T}$ac_cv_header_" >&6; }
21831 else
21832 # Is the header compilable?
21833 { echo "$as_me:$LINENO: checking usability" >&5
21834 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21835 cat >conftest.$ac_ext <<_ACEOF
21836 /* confdefs.h. */
21837 _ACEOF
21838 cat confdefs.h >>conftest.$ac_ext
21839 cat >>conftest.$ac_ext <<_ACEOF
21840 /* end confdefs.h. */
21841 $ac_includes_default
21842 #include <>
21843 _ACEOF
21844 rm -f conftest.$ac_objext
21845 if { (ac_try="$ac_compile"
21846 case "(($ac_try" in
21847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848 *) ac_try_echo=$ac_try;;
21849 esac
21850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851 (eval "$ac_compile") 2>conftest.er1
21852 ac_status=$?
21853 grep -v '^ *+' conftest.er1 >conftest.err
21854 rm -f conftest.er1
21855 cat conftest.err >&5
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } && {
21858 test -z "$ac_c_werror_flag" ||
21859 test ! -s conftest.err
21860 } && test -s conftest.$ac_objext; then
21861 ac_header_compiler=yes
21862 else
21863 echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21866 ac_header_compiler=no
21869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21871 echo "${ECHO_T}$ac_header_compiler" >&6; }
21873 # Is the header present?
21874 { echo "$as_me:$LINENO: checking presence" >&5
21875 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21876 cat >conftest.$ac_ext <<_ACEOF
21877 /* confdefs.h. */
21878 _ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h. */
21882 #include <>
21883 _ACEOF
21884 if { (ac_try="$ac_cpp conftest.$ac_ext"
21885 case "(($ac_try" in
21886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887 *) ac_try_echo=$ac_try;;
21888 esac
21889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21891 ac_status=$?
21892 grep -v '^ *+' conftest.er1 >conftest.err
21893 rm -f conftest.er1
21894 cat conftest.err >&5
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); } >/dev/null && {
21897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21898 test ! -s conftest.err
21899 }; then
21900 ac_header_preproc=yes
21901 else
21902 echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21905 ac_header_preproc=no
21908 rm -f conftest.err conftest.$ac_ext
21909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21910 echo "${ECHO_T}$ac_header_preproc" >&6; }
21912 # So? What about this header?
21913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21914 yes:no: )
21915 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21916 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21917 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21918 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21919 ac_header_preproc=yes
21921 no:yes:* )
21922 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21923 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21924 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21925 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21926 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21927 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21928 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21929 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21930 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21931 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21932 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21933 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21934 ( cat <<\_ASBOX
21935 ## ------------------------------- ##
21936 ## Report this to www.asterisk.org ##
21937 ## ------------------------------- ##
21938 _ASBOX
21939 ) | sed "s/^/$as_me: WARNING: /" >&2
21941 esac
21942 { echo "$as_me:$LINENO: checking for " >&5
21943 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21944 if test "${ac_cv_header_+set}" = set; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21946 else
21947 ac_cv_header_=$ac_header_preproc
21949 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21950 echo "${ECHO_T}$ac_cv_header_" >&6; }
21953 if test $ac_cv_header_ = yes; then
21954 ATAN2L_HEADER_FOUND=1
21955 else
21956 ATAN2L_HEADER_FOUND=0
21960 CPPFLAGS="${saved_cppflags}"
21962 if test "x${ATAN2L_HEADER_FOUND}" = "x0" ; then
21963 ATAN2L_LIB=""
21964 ATAN2L_INCLUDE=""
21965 else
21966 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21967 ATAN2L_LIB=""
21969 PBX_ATAN2L=1
21970 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21972 cat >>confdefs.h <<_ACEOF
21973 #define HAVE_ATAN2L 1
21974 _ACEOF
21977 cat >>confdefs.h <<_ACEOF
21978 #define HAVE_ATAN2L_VERSION
21979 _ACEOF
21986 if test "x${PBX_POWL}" != "x1" -a "${USE_POWL}" != "no"; then
21987 pbxlibdir=""
21988 # if --with-POWL=DIR has been specified, use it.
21989 if test "x${POWL_DIR}" != "x"; then
21990 if test -d ${POWL_DIR}/lib; then
21991 pbxlibdir="-L${POWL_DIR}/lib"
21992 else
21993 pbxlibdir="-L${POWL_DIR}"
21996 pbxfuncname="powl"
21997 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21998 AST_POWL_FOUND=yes
21999 else
22000 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22001 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22002 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22003 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22004 echo $ECHO_N "(cached) $ECHO_C" >&6
22005 else
22006 ac_check_lib_save_LIBS=$LIBS
22007 LIBS="-lm ${pbxlibdir} $LIBS"
22008 cat >conftest.$ac_ext <<_ACEOF
22009 /* confdefs.h. */
22010 _ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h. */
22015 /* Override any GCC internal prototype to avoid an error.
22016 Use char because int might match the return type of a GCC
22017 builtin and then its argument prototype would still apply. */
22018 #ifdef __cplusplus
22019 extern "C"
22020 #endif
22021 char ${pbxfuncname} ();
22023 main ()
22025 return ${pbxfuncname} ();
22027 return 0;
22029 _ACEOF
22030 rm -f conftest.$ac_objext conftest$ac_exeext
22031 if { (ac_try="$ac_link"
22032 case "(($ac_try" in
22033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22035 esac
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037 (eval "$ac_link") 2>conftest.er1
22038 ac_status=$?
22039 grep -v '^ *+' conftest.er1 >conftest.err
22040 rm -f conftest.er1
22041 cat conftest.err >&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } && {
22044 test -z "$ac_c_werror_flag" ||
22045 test ! -s conftest.err
22046 } && test -s conftest$ac_exeext &&
22047 $as_test_x conftest$ac_exeext; then
22048 eval "$as_ac_Lib=yes"
22049 else
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22053 eval "$as_ac_Lib=no"
22056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22057 conftest$ac_exeext conftest.$ac_ext
22058 LIBS=$ac_check_lib_save_LIBS
22060 ac_res=`eval echo '${'$as_ac_Lib'}'`
22061 { echo "$as_me:$LINENO: result: $ac_res" >&5
22062 echo "${ECHO_T}$ac_res" >&6; }
22063 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22064 AST_POWL_FOUND=yes
22065 else
22066 AST_POWL_FOUND=no
22071 # now check for the header.
22072 if test "${AST_POWL_FOUND}" = "yes"; then
22073 POWL_LIB="${pbxlibdir} -lm "
22074 # if --with-POWL=DIR has been specified, use it.
22075 if test "x${POWL_DIR}" != "x"; then
22076 POWL_INCLUDE="-I${POWL_DIR}/include"
22078 POWL_INCLUDE="${POWL_INCLUDE} "
22079 if test "x" = "x" ; then # no header, assume found
22080 POWL_HEADER_FOUND="1"
22081 else # check for the header
22082 saved_cppflags="${CPPFLAGS}"
22083 CPPFLAGS="${CPPFLAGS} ${POWL_INCLUDE}"
22084 if test "${ac_cv_header_+set}" = set; then
22085 { echo "$as_me:$LINENO: checking for " >&5
22086 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22087 if test "${ac_cv_header_+set}" = set; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22090 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22091 echo "${ECHO_T}$ac_cv_header_" >&6; }
22092 else
22093 # Is the header compilable?
22094 { echo "$as_me:$LINENO: checking usability" >&5
22095 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22096 cat >conftest.$ac_ext <<_ACEOF
22097 /* confdefs.h. */
22098 _ACEOF
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22102 $ac_includes_default
22103 #include <>
22104 _ACEOF
22105 rm -f conftest.$ac_objext
22106 if { (ac_try="$ac_compile"
22107 case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22110 esac
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112 (eval "$ac_compile") 2>conftest.er1
22113 ac_status=$?
22114 grep -v '^ *+' conftest.er1 >conftest.err
22115 rm -f conftest.er1
22116 cat conftest.err >&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } && {
22119 test -z "$ac_c_werror_flag" ||
22120 test ! -s conftest.err
22121 } && test -s conftest.$ac_objext; then
22122 ac_header_compiler=yes
22123 else
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22127 ac_header_compiler=no
22130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22132 echo "${ECHO_T}$ac_header_compiler" >&6; }
22134 # Is the header present?
22135 { echo "$as_me:$LINENO: checking presence" >&5
22136 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22137 cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h. */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 #include <>
22144 _ACEOF
22145 if { (ac_try="$ac_cpp conftest.$ac_ext"
22146 case "(($ac_try" in
22147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22149 esac
22150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22152 ac_status=$?
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } >/dev/null && {
22158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22160 }; then
22161 ac_header_preproc=yes
22162 else
22163 echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22166 ac_header_preproc=no
22169 rm -f conftest.err conftest.$ac_ext
22170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22171 echo "${ECHO_T}$ac_header_preproc" >&6; }
22173 # So? What about this header?
22174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22175 yes:no: )
22176 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22177 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22178 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22179 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22180 ac_header_preproc=yes
22182 no:yes:* )
22183 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22184 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22186 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22188 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22189 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22190 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22191 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22192 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22193 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22194 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22195 ( cat <<\_ASBOX
22196 ## ------------------------------- ##
22197 ## Report this to www.asterisk.org ##
22198 ## ------------------------------- ##
22199 _ASBOX
22200 ) | sed "s/^/$as_me: WARNING: /" >&2
22202 esac
22203 { echo "$as_me:$LINENO: checking for " >&5
22204 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22205 if test "${ac_cv_header_+set}" = set; then
22206 echo $ECHO_N "(cached) $ECHO_C" >&6
22207 else
22208 ac_cv_header_=$ac_header_preproc
22210 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22211 echo "${ECHO_T}$ac_cv_header_" >&6; }
22214 if test $ac_cv_header_ = yes; then
22215 POWL_HEADER_FOUND=1
22216 else
22217 POWL_HEADER_FOUND=0
22221 CPPFLAGS="${saved_cppflags}"
22223 if test "x${POWL_HEADER_FOUND}" = "x0" ; then
22224 POWL_LIB=""
22225 POWL_INCLUDE=""
22226 else
22227 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22228 POWL_LIB=""
22230 PBX_POWL=1
22231 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22233 cat >>confdefs.h <<_ACEOF
22234 #define HAVE_POWL 1
22235 _ACEOF
22238 cat >>confdefs.h <<_ACEOF
22239 #define HAVE_POWL_VERSION
22240 _ACEOF
22247 if test "x${PBX_SQRTL}" != "x1" -a "${USE_SQRTL}" != "no"; then
22248 pbxlibdir=""
22249 # if --with-SQRTL=DIR has been specified, use it.
22250 if test "x${SQRTL_DIR}" != "x"; then
22251 if test -d ${SQRTL_DIR}/lib; then
22252 pbxlibdir="-L${SQRTL_DIR}/lib"
22253 else
22254 pbxlibdir="-L${SQRTL_DIR}"
22257 pbxfuncname="sqrtl"
22258 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22259 AST_SQRTL_FOUND=yes
22260 else
22261 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22262 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22263 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22264 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 else
22267 ac_check_lib_save_LIBS=$LIBS
22268 LIBS="-lm ${pbxlibdir} $LIBS"
22269 cat >conftest.$ac_ext <<_ACEOF
22270 /* confdefs.h. */
22271 _ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h. */
22276 /* Override any GCC internal prototype to avoid an error.
22277 Use char because int might match the return type of a GCC
22278 builtin and then its argument prototype would still apply. */
22279 #ifdef __cplusplus
22280 extern "C"
22281 #endif
22282 char ${pbxfuncname} ();
22284 main ()
22286 return ${pbxfuncname} ();
22288 return 0;
22290 _ACEOF
22291 rm -f conftest.$ac_objext conftest$ac_exeext
22292 if { (ac_try="$ac_link"
22293 case "(($ac_try" in
22294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22295 *) ac_try_echo=$ac_try;;
22296 esac
22297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22298 (eval "$ac_link") 2>conftest.er1
22299 ac_status=$?
22300 grep -v '^ *+' conftest.er1 >conftest.err
22301 rm -f conftest.er1
22302 cat conftest.err >&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } && {
22305 test -z "$ac_c_werror_flag" ||
22306 test ! -s conftest.err
22307 } && test -s conftest$ac_exeext &&
22308 $as_test_x conftest$ac_exeext; then
22309 eval "$as_ac_Lib=yes"
22310 else
22311 echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22314 eval "$as_ac_Lib=no"
22317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22318 conftest$ac_exeext conftest.$ac_ext
22319 LIBS=$ac_check_lib_save_LIBS
22321 ac_res=`eval echo '${'$as_ac_Lib'}'`
22322 { echo "$as_me:$LINENO: result: $ac_res" >&5
22323 echo "${ECHO_T}$ac_res" >&6; }
22324 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22325 AST_SQRTL_FOUND=yes
22326 else
22327 AST_SQRTL_FOUND=no
22332 # now check for the header.
22333 if test "${AST_SQRTL_FOUND}" = "yes"; then
22334 SQRTL_LIB="${pbxlibdir} -lm "
22335 # if --with-SQRTL=DIR has been specified, use it.
22336 if test "x${SQRTL_DIR}" != "x"; then
22337 SQRTL_INCLUDE="-I${SQRTL_DIR}/include"
22339 SQRTL_INCLUDE="${SQRTL_INCLUDE} "
22340 if test "x" = "x" ; then # no header, assume found
22341 SQRTL_HEADER_FOUND="1"
22342 else # check for the header
22343 saved_cppflags="${CPPFLAGS}"
22344 CPPFLAGS="${CPPFLAGS} ${SQRTL_INCLUDE}"
22345 if test "${ac_cv_header_+set}" = set; then
22346 { echo "$as_me:$LINENO: checking for " >&5
22347 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22348 if test "${ac_cv_header_+set}" = set; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22352 echo "${ECHO_T}$ac_cv_header_" >&6; }
22353 else
22354 # Is the header compilable?
22355 { echo "$as_me:$LINENO: checking usability" >&5
22356 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22357 cat >conftest.$ac_ext <<_ACEOF
22358 /* confdefs.h. */
22359 _ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h. */
22363 $ac_includes_default
22364 #include <>
22365 _ACEOF
22366 rm -f conftest.$ac_objext
22367 if { (ac_try="$ac_compile"
22368 case "(($ac_try" in
22369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370 *) ac_try_echo=$ac_try;;
22371 esac
22372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22373 (eval "$ac_compile") 2>conftest.er1
22374 ac_status=$?
22375 grep -v '^ *+' conftest.er1 >conftest.err
22376 rm -f conftest.er1
22377 cat conftest.err >&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } && {
22380 test -z "$ac_c_werror_flag" ||
22381 test ! -s conftest.err
22382 } && test -s conftest.$ac_objext; then
22383 ac_header_compiler=yes
22384 else
22385 echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22388 ac_header_compiler=no
22391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22393 echo "${ECHO_T}$ac_header_compiler" >&6; }
22395 # Is the header present?
22396 { echo "$as_me:$LINENO: checking presence" >&5
22397 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22398 cat >conftest.$ac_ext <<_ACEOF
22399 /* confdefs.h. */
22400 _ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22404 #include <>
22405 _ACEOF
22406 if { (ac_try="$ac_cpp conftest.$ac_ext"
22407 case "(($ac_try" in
22408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22409 *) ac_try_echo=$ac_try;;
22410 esac
22411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22413 ac_status=$?
22414 grep -v '^ *+' conftest.er1 >conftest.err
22415 rm -f conftest.er1
22416 cat conftest.err >&5
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); } >/dev/null && {
22419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22420 test ! -s conftest.err
22421 }; then
22422 ac_header_preproc=yes
22423 else
22424 echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22427 ac_header_preproc=no
22430 rm -f conftest.err conftest.$ac_ext
22431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22432 echo "${ECHO_T}$ac_header_preproc" >&6; }
22434 # So? What about this header?
22435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22436 yes:no: )
22437 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22438 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22439 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22440 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22441 ac_header_preproc=yes
22443 no:yes:* )
22444 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22445 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22446 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22447 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22448 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22449 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22450 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22451 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22452 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22453 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22454 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22455 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22456 ( cat <<\_ASBOX
22457 ## ------------------------------- ##
22458 ## Report this to www.asterisk.org ##
22459 ## ------------------------------- ##
22460 _ASBOX
22461 ) | sed "s/^/$as_me: WARNING: /" >&2
22463 esac
22464 { echo "$as_me:$LINENO: checking for " >&5
22465 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22466 if test "${ac_cv_header_+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22468 else
22469 ac_cv_header_=$ac_header_preproc
22471 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22472 echo "${ECHO_T}$ac_cv_header_" >&6; }
22475 if test $ac_cv_header_ = yes; then
22476 SQRTL_HEADER_FOUND=1
22477 else
22478 SQRTL_HEADER_FOUND=0
22482 CPPFLAGS="${saved_cppflags}"
22484 if test "x${SQRTL_HEADER_FOUND}" = "x0" ; then
22485 SQRTL_LIB=""
22486 SQRTL_INCLUDE=""
22487 else
22488 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22489 SQRTL_LIB=""
22491 PBX_SQRTL=1
22492 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22494 cat >>confdefs.h <<_ACEOF
22495 #define HAVE_SQRTL 1
22496 _ACEOF
22499 cat >>confdefs.h <<_ACEOF
22500 #define HAVE_SQRTL_VERSION
22501 _ACEOF
22508 if test "x${PBX_RINTL}" != "x1" -a "${USE_RINTL}" != "no"; then
22509 pbxlibdir=""
22510 # if --with-RINTL=DIR has been specified, use it.
22511 if test "x${RINTL_DIR}" != "x"; then
22512 if test -d ${RINTL_DIR}/lib; then
22513 pbxlibdir="-L${RINTL_DIR}/lib"
22514 else
22515 pbxlibdir="-L${RINTL_DIR}"
22518 pbxfuncname="rintl"
22519 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22520 AST_RINTL_FOUND=yes
22521 else
22522 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22523 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22524 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22525 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22526 echo $ECHO_N "(cached) $ECHO_C" >&6
22527 else
22528 ac_check_lib_save_LIBS=$LIBS
22529 LIBS="-lm ${pbxlibdir} $LIBS"
22530 cat >conftest.$ac_ext <<_ACEOF
22531 /* confdefs.h. */
22532 _ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
22535 /* end confdefs.h. */
22537 /* Override any GCC internal prototype to avoid an error.
22538 Use char because int might match the return type of a GCC
22539 builtin and then its argument prototype would still apply. */
22540 #ifdef __cplusplus
22541 extern "C"
22542 #endif
22543 char ${pbxfuncname} ();
22545 main ()
22547 return ${pbxfuncname} ();
22549 return 0;
22551 _ACEOF
22552 rm -f conftest.$ac_objext conftest$ac_exeext
22553 if { (ac_try="$ac_link"
22554 case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22557 esac
22558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22559 (eval "$ac_link") 2>conftest.er1
22560 ac_status=$?
22561 grep -v '^ *+' conftest.er1 >conftest.err
22562 rm -f conftest.er1
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } && {
22566 test -z "$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22568 } && test -s conftest$ac_exeext &&
22569 $as_test_x conftest$ac_exeext; then
22570 eval "$as_ac_Lib=yes"
22571 else
22572 echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22575 eval "$as_ac_Lib=no"
22578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22579 conftest$ac_exeext conftest.$ac_ext
22580 LIBS=$ac_check_lib_save_LIBS
22582 ac_res=`eval echo '${'$as_ac_Lib'}'`
22583 { echo "$as_me:$LINENO: result: $ac_res" >&5
22584 echo "${ECHO_T}$ac_res" >&6; }
22585 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22586 AST_RINTL_FOUND=yes
22587 else
22588 AST_RINTL_FOUND=no
22593 # now check for the header.
22594 if test "${AST_RINTL_FOUND}" = "yes"; then
22595 RINTL_LIB="${pbxlibdir} -lm "
22596 # if --with-RINTL=DIR has been specified, use it.
22597 if test "x${RINTL_DIR}" != "x"; then
22598 RINTL_INCLUDE="-I${RINTL_DIR}/include"
22600 RINTL_INCLUDE="${RINTL_INCLUDE} "
22601 if test "x" = "x" ; then # no header, assume found
22602 RINTL_HEADER_FOUND="1"
22603 else # check for the header
22604 saved_cppflags="${CPPFLAGS}"
22605 CPPFLAGS="${CPPFLAGS} ${RINTL_INCLUDE}"
22606 if test "${ac_cv_header_+set}" = set; then
22607 { echo "$as_me:$LINENO: checking for " >&5
22608 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22609 if test "${ac_cv_header_+set}" = set; then
22610 echo $ECHO_N "(cached) $ECHO_C" >&6
22612 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22613 echo "${ECHO_T}$ac_cv_header_" >&6; }
22614 else
22615 # Is the header compilable?
22616 { echo "$as_me:$LINENO: checking usability" >&5
22617 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22618 cat >conftest.$ac_ext <<_ACEOF
22619 /* confdefs.h. */
22620 _ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22624 $ac_includes_default
22625 #include <>
22626 _ACEOF
22627 rm -f conftest.$ac_objext
22628 if { (ac_try="$ac_compile"
22629 case "(($ac_try" in
22630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631 *) ac_try_echo=$ac_try;;
22632 esac
22633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22634 (eval "$ac_compile") 2>conftest.er1
22635 ac_status=$?
22636 grep -v '^ *+' conftest.er1 >conftest.err
22637 rm -f conftest.er1
22638 cat conftest.err >&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); } && {
22641 test -z "$ac_c_werror_flag" ||
22642 test ! -s conftest.err
22643 } && test -s conftest.$ac_objext; then
22644 ac_header_compiler=yes
22645 else
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22649 ac_header_compiler=no
22652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22654 echo "${ECHO_T}$ac_header_compiler" >&6; }
22656 # Is the header present?
22657 { echo "$as_me:$LINENO: checking presence" >&5
22658 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22659 cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h. */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22665 #include <>
22666 _ACEOF
22667 if { (ac_try="$ac_cpp conftest.$ac_ext"
22668 case "(($ac_try" in
22669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22670 *) ac_try_echo=$ac_try;;
22671 esac
22672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22674 ac_status=$?
22675 grep -v '^ *+' conftest.er1 >conftest.err
22676 rm -f conftest.er1
22677 cat conftest.err >&5
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); } >/dev/null && {
22680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22681 test ! -s conftest.err
22682 }; then
22683 ac_header_preproc=yes
22684 else
22685 echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22688 ac_header_preproc=no
22691 rm -f conftest.err conftest.$ac_ext
22692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22693 echo "${ECHO_T}$ac_header_preproc" >&6; }
22695 # So? What about this header?
22696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22697 yes:no: )
22698 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22699 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22700 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22701 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22702 ac_header_preproc=yes
22704 no:yes:* )
22705 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22706 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22707 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22708 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22709 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22710 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22711 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22712 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22713 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22714 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22715 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22716 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22717 ( cat <<\_ASBOX
22718 ## ------------------------------- ##
22719 ## Report this to www.asterisk.org ##
22720 ## ------------------------------- ##
22721 _ASBOX
22722 ) | sed "s/^/$as_me: WARNING: /" >&2
22724 esac
22725 { echo "$as_me:$LINENO: checking for " >&5
22726 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22727 if test "${ac_cv_header_+set}" = set; then
22728 echo $ECHO_N "(cached) $ECHO_C" >&6
22729 else
22730 ac_cv_header_=$ac_header_preproc
22732 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22733 echo "${ECHO_T}$ac_cv_header_" >&6; }
22736 if test $ac_cv_header_ = yes; then
22737 RINTL_HEADER_FOUND=1
22738 else
22739 RINTL_HEADER_FOUND=0
22743 CPPFLAGS="${saved_cppflags}"
22745 if test "x${RINTL_HEADER_FOUND}" = "x0" ; then
22746 RINTL_LIB=""
22747 RINTL_INCLUDE=""
22748 else
22749 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22750 RINTL_LIB=""
22752 PBX_RINTL=1
22753 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22755 cat >>confdefs.h <<_ACEOF
22756 #define HAVE_RINTL 1
22757 _ACEOF
22760 cat >>confdefs.h <<_ACEOF
22761 #define HAVE_RINTL_VERSION
22762 _ACEOF
22769 if test "x${PBX_EXPL}" != "x1" -a "${USE_EXPL}" != "no"; then
22770 pbxlibdir=""
22771 # if --with-EXPL=DIR has been specified, use it.
22772 if test "x${EXPL_DIR}" != "x"; then
22773 if test -d ${EXPL_DIR}/lib; then
22774 pbxlibdir="-L${EXPL_DIR}/lib"
22775 else
22776 pbxlibdir="-L${EXPL_DIR}"
22779 pbxfuncname="expl"
22780 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22781 AST_EXPL_FOUND=yes
22782 else
22783 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22784 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22785 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22786 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22789 ac_check_lib_save_LIBS=$LIBS
22790 LIBS="-lm ${pbxlibdir} $LIBS"
22791 cat >conftest.$ac_ext <<_ACEOF
22792 /* confdefs.h. */
22793 _ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h. */
22798 /* Override any GCC internal prototype to avoid an error.
22799 Use char because int might match the return type of a GCC
22800 builtin and then its argument prototype would still apply. */
22801 #ifdef __cplusplus
22802 extern "C"
22803 #endif
22804 char ${pbxfuncname} ();
22806 main ()
22808 return ${pbxfuncname} ();
22810 return 0;
22812 _ACEOF
22813 rm -f conftest.$ac_objext conftest$ac_exeext
22814 if { (ac_try="$ac_link"
22815 case "(($ac_try" in
22816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22817 *) ac_try_echo=$ac_try;;
22818 esac
22819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22820 (eval "$ac_link") 2>conftest.er1
22821 ac_status=$?
22822 grep -v '^ *+' conftest.er1 >conftest.err
22823 rm -f conftest.er1
22824 cat conftest.err >&5
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); } && {
22827 test -z "$ac_c_werror_flag" ||
22828 test ! -s conftest.err
22829 } && test -s conftest$ac_exeext &&
22830 $as_test_x conftest$ac_exeext; then
22831 eval "$as_ac_Lib=yes"
22832 else
22833 echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22836 eval "$as_ac_Lib=no"
22839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22840 conftest$ac_exeext conftest.$ac_ext
22841 LIBS=$ac_check_lib_save_LIBS
22843 ac_res=`eval echo '${'$as_ac_Lib'}'`
22844 { echo "$as_me:$LINENO: result: $ac_res" >&5
22845 echo "${ECHO_T}$ac_res" >&6; }
22846 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22847 AST_EXPL_FOUND=yes
22848 else
22849 AST_EXPL_FOUND=no
22854 # now check for the header.
22855 if test "${AST_EXPL_FOUND}" = "yes"; then
22856 EXPL_LIB="${pbxlibdir} -lm "
22857 # if --with-EXPL=DIR has been specified, use it.
22858 if test "x${EXPL_DIR}" != "x"; then
22859 EXPL_INCLUDE="-I${EXPL_DIR}/include"
22861 EXPL_INCLUDE="${EXPL_INCLUDE} "
22862 if test "x" = "x" ; then # no header, assume found
22863 EXPL_HEADER_FOUND="1"
22864 else # check for the header
22865 saved_cppflags="${CPPFLAGS}"
22866 CPPFLAGS="${CPPFLAGS} ${EXPL_INCLUDE}"
22867 if test "${ac_cv_header_+set}" = set; then
22868 { echo "$as_me:$LINENO: checking for " >&5
22869 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22870 if test "${ac_cv_header_+set}" = set; then
22871 echo $ECHO_N "(cached) $ECHO_C" >&6
22873 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22874 echo "${ECHO_T}$ac_cv_header_" >&6; }
22875 else
22876 # Is the header compilable?
22877 { echo "$as_me:$LINENO: checking usability" >&5
22878 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22879 cat >conftest.$ac_ext <<_ACEOF
22880 /* confdefs.h. */
22881 _ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h. */
22885 $ac_includes_default
22886 #include <>
22887 _ACEOF
22888 rm -f conftest.$ac_objext
22889 if { (ac_try="$ac_compile"
22890 case "(($ac_try" in
22891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22892 *) ac_try_echo=$ac_try;;
22893 esac
22894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22895 (eval "$ac_compile") 2>conftest.er1
22896 ac_status=$?
22897 grep -v '^ *+' conftest.er1 >conftest.err
22898 rm -f conftest.er1
22899 cat conftest.err >&5
22900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); } && {
22902 test -z "$ac_c_werror_flag" ||
22903 test ! -s conftest.err
22904 } && test -s conftest.$ac_objext; then
22905 ac_header_compiler=yes
22906 else
22907 echo "$as_me: failed program was:" >&5
22908 sed 's/^/| /' conftest.$ac_ext >&5
22910 ac_header_compiler=no
22913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22915 echo "${ECHO_T}$ac_header_compiler" >&6; }
22917 # Is the header present?
22918 { echo "$as_me:$LINENO: checking presence" >&5
22919 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22920 cat >conftest.$ac_ext <<_ACEOF
22921 /* confdefs.h. */
22922 _ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h. */
22926 #include <>
22927 _ACEOF
22928 if { (ac_try="$ac_cpp conftest.$ac_ext"
22929 case "(($ac_try" in
22930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22931 *) ac_try_echo=$ac_try;;
22932 esac
22933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22935 ac_status=$?
22936 grep -v '^ *+' conftest.er1 >conftest.err
22937 rm -f conftest.er1
22938 cat conftest.err >&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } >/dev/null && {
22941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22942 test ! -s conftest.err
22943 }; then
22944 ac_header_preproc=yes
22945 else
22946 echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22949 ac_header_preproc=no
22952 rm -f conftest.err conftest.$ac_ext
22953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22954 echo "${ECHO_T}$ac_header_preproc" >&6; }
22956 # So? What about this header?
22957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22958 yes:no: )
22959 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22960 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22961 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22962 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22963 ac_header_preproc=yes
22965 no:yes:* )
22966 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22967 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22968 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22969 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22970 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22971 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22972 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22973 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22974 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22975 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22976 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22977 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22978 ( cat <<\_ASBOX
22979 ## ------------------------------- ##
22980 ## Report this to www.asterisk.org ##
22981 ## ------------------------------- ##
22982 _ASBOX
22983 ) | sed "s/^/$as_me: WARNING: /" >&2
22985 esac
22986 { echo "$as_me:$LINENO: checking for " >&5
22987 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22988 if test "${ac_cv_header_+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22990 else
22991 ac_cv_header_=$ac_header_preproc
22993 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22994 echo "${ECHO_T}$ac_cv_header_" >&6; }
22997 if test $ac_cv_header_ = yes; then
22998 EXPL_HEADER_FOUND=1
22999 else
23000 EXPL_HEADER_FOUND=0
23004 CPPFLAGS="${saved_cppflags}"
23006 if test "x${EXPL_HEADER_FOUND}" = "x0" ; then
23007 EXPL_LIB=""
23008 EXPL_INCLUDE=""
23009 else
23010 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23011 EXPL_LIB=""
23013 PBX_EXPL=1
23014 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23016 cat >>confdefs.h <<_ACEOF
23017 #define HAVE_EXPL 1
23018 _ACEOF
23021 cat >>confdefs.h <<_ACEOF
23022 #define HAVE_EXPL_VERSION
23023 _ACEOF
23030 if test "x${PBX_LOGL}" != "x1" -a "${USE_LOGL}" != "no"; then
23031 pbxlibdir=""
23032 # if --with-LOGL=DIR has been specified, use it.
23033 if test "x${LOGL_DIR}" != "x"; then
23034 if test -d ${LOGL_DIR}/lib; then
23035 pbxlibdir="-L${LOGL_DIR}/lib"
23036 else
23037 pbxlibdir="-L${LOGL_DIR}"
23040 pbxfuncname="logl"
23041 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23042 AST_LOGL_FOUND=yes
23043 else
23044 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23045 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23046 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23047 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23048 echo $ECHO_N "(cached) $ECHO_C" >&6
23049 else
23050 ac_check_lib_save_LIBS=$LIBS
23051 LIBS="-lm ${pbxlibdir} $LIBS"
23052 cat >conftest.$ac_ext <<_ACEOF
23053 /* confdefs.h. */
23054 _ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23059 /* Override any GCC internal prototype to avoid an error.
23060 Use char because int might match the return type of a GCC
23061 builtin and then its argument prototype would still apply. */
23062 #ifdef __cplusplus
23063 extern "C"
23064 #endif
23065 char ${pbxfuncname} ();
23067 main ()
23069 return ${pbxfuncname} ();
23071 return 0;
23073 _ACEOF
23074 rm -f conftest.$ac_objext conftest$ac_exeext
23075 if { (ac_try="$ac_link"
23076 case "(($ac_try" in
23077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078 *) ac_try_echo=$ac_try;;
23079 esac
23080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081 (eval "$ac_link") 2>conftest.er1
23082 ac_status=$?
23083 grep -v '^ *+' conftest.er1 >conftest.err
23084 rm -f conftest.er1
23085 cat conftest.err >&5
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); } && {
23088 test -z "$ac_c_werror_flag" ||
23089 test ! -s conftest.err
23090 } && test -s conftest$ac_exeext &&
23091 $as_test_x conftest$ac_exeext; then
23092 eval "$as_ac_Lib=yes"
23093 else
23094 echo "$as_me: failed program was:" >&5
23095 sed 's/^/| /' conftest.$ac_ext >&5
23097 eval "$as_ac_Lib=no"
23100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23101 conftest$ac_exeext conftest.$ac_ext
23102 LIBS=$ac_check_lib_save_LIBS
23104 ac_res=`eval echo '${'$as_ac_Lib'}'`
23105 { echo "$as_me:$LINENO: result: $ac_res" >&5
23106 echo "${ECHO_T}$ac_res" >&6; }
23107 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23108 AST_LOGL_FOUND=yes
23109 else
23110 AST_LOGL_FOUND=no
23115 # now check for the header.
23116 if test "${AST_LOGL_FOUND}" = "yes"; then
23117 LOGL_LIB="${pbxlibdir} -lm "
23118 # if --with-LOGL=DIR has been specified, use it.
23119 if test "x${LOGL_DIR}" != "x"; then
23120 LOGL_INCLUDE="-I${LOGL_DIR}/include"
23122 LOGL_INCLUDE="${LOGL_INCLUDE} "
23123 if test "x" = "x" ; then # no header, assume found
23124 LOGL_HEADER_FOUND="1"
23125 else # check for the header
23126 saved_cppflags="${CPPFLAGS}"
23127 CPPFLAGS="${CPPFLAGS} ${LOGL_INCLUDE}"
23128 if test "${ac_cv_header_+set}" = set; then
23129 { echo "$as_me:$LINENO: checking for " >&5
23130 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23131 if test "${ac_cv_header_+set}" = set; then
23132 echo $ECHO_N "(cached) $ECHO_C" >&6
23134 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23135 echo "${ECHO_T}$ac_cv_header_" >&6; }
23136 else
23137 # Is the header compilable?
23138 { echo "$as_me:$LINENO: checking usability" >&5
23139 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23140 cat >conftest.$ac_ext <<_ACEOF
23141 /* confdefs.h. */
23142 _ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h. */
23146 $ac_includes_default
23147 #include <>
23148 _ACEOF
23149 rm -f conftest.$ac_objext
23150 if { (ac_try="$ac_compile"
23151 case "(($ac_try" in
23152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23153 *) ac_try_echo=$ac_try;;
23154 esac
23155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23156 (eval "$ac_compile") 2>conftest.er1
23157 ac_status=$?
23158 grep -v '^ *+' conftest.er1 >conftest.err
23159 rm -f conftest.er1
23160 cat conftest.err >&5
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); } && {
23163 test -z "$ac_c_werror_flag" ||
23164 test ! -s conftest.err
23165 } && test -s conftest.$ac_objext; then
23166 ac_header_compiler=yes
23167 else
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 ac_header_compiler=no
23174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23176 echo "${ECHO_T}$ac_header_compiler" >&6; }
23178 # Is the header present?
23179 { echo "$as_me:$LINENO: checking presence" >&5
23180 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23181 cat >conftest.$ac_ext <<_ACEOF
23182 /* confdefs.h. */
23183 _ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h. */
23187 #include <>
23188 _ACEOF
23189 if { (ac_try="$ac_cpp conftest.$ac_ext"
23190 case "(($ac_try" in
23191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23192 *) ac_try_echo=$ac_try;;
23193 esac
23194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23196 ac_status=$?
23197 grep -v '^ *+' conftest.er1 >conftest.err
23198 rm -f conftest.er1
23199 cat conftest.err >&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } >/dev/null && {
23202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23203 test ! -s conftest.err
23204 }; then
23205 ac_header_preproc=yes
23206 else
23207 echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23210 ac_header_preproc=no
23213 rm -f conftest.err conftest.$ac_ext
23214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23215 echo "${ECHO_T}$ac_header_preproc" >&6; }
23217 # So? What about this header?
23218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23219 yes:no: )
23220 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23221 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23222 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23223 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23224 ac_header_preproc=yes
23226 no:yes:* )
23227 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23228 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23229 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23230 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23231 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23232 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23233 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23234 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23235 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23236 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23237 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23238 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23239 ( cat <<\_ASBOX
23240 ## ------------------------------- ##
23241 ## Report this to www.asterisk.org ##
23242 ## ------------------------------- ##
23243 _ASBOX
23244 ) | sed "s/^/$as_me: WARNING: /" >&2
23246 esac
23247 { echo "$as_me:$LINENO: checking for " >&5
23248 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23249 if test "${ac_cv_header_+set}" = set; then
23250 echo $ECHO_N "(cached) $ECHO_C" >&6
23251 else
23252 ac_cv_header_=$ac_header_preproc
23254 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23255 echo "${ECHO_T}$ac_cv_header_" >&6; }
23258 if test $ac_cv_header_ = yes; then
23259 LOGL_HEADER_FOUND=1
23260 else
23261 LOGL_HEADER_FOUND=0
23265 CPPFLAGS="${saved_cppflags}"
23267 if test "x${LOGL_HEADER_FOUND}" = "x0" ; then
23268 LOGL_LIB=""
23269 LOGL_INCLUDE=""
23270 else
23271 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23272 LOGL_LIB=""
23274 PBX_LOGL=1
23275 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23277 cat >>confdefs.h <<_ACEOF
23278 #define HAVE_LOGL 1
23279 _ACEOF
23282 cat >>confdefs.h <<_ACEOF
23283 #define HAVE_LOGL_VERSION
23284 _ACEOF
23291 if test "x${PBX_REMAINDERL}" != "x1" -a "${USE_REMAINDERL}" != "no"; then
23292 pbxlibdir=""
23293 # if --with-REMAINDERL=DIR has been specified, use it.
23294 if test "x${REMAINDERL_DIR}" != "x"; then
23295 if test -d ${REMAINDERL_DIR}/lib; then
23296 pbxlibdir="-L${REMAINDERL_DIR}/lib"
23297 else
23298 pbxlibdir="-L${REMAINDERL_DIR}"
23301 pbxfuncname="remainderl"
23302 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23303 AST_REMAINDERL_FOUND=yes
23304 else
23305 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23306 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23307 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23308 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23309 echo $ECHO_N "(cached) $ECHO_C" >&6
23310 else
23311 ac_check_lib_save_LIBS=$LIBS
23312 LIBS="-lm ${pbxlibdir} $LIBS"
23313 cat >conftest.$ac_ext <<_ACEOF
23314 /* confdefs.h. */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23320 /* Override any GCC internal prototype to avoid an error.
23321 Use char because int might match the return type of a GCC
23322 builtin and then its argument prototype would still apply. */
23323 #ifdef __cplusplus
23324 extern "C"
23325 #endif
23326 char ${pbxfuncname} ();
23328 main ()
23330 return ${pbxfuncname} ();
23332 return 0;
23334 _ACEOF
23335 rm -f conftest.$ac_objext conftest$ac_exeext
23336 if { (ac_try="$ac_link"
23337 case "(($ac_try" in
23338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339 *) ac_try_echo=$ac_try;;
23340 esac
23341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23342 (eval "$ac_link") 2>conftest.er1
23343 ac_status=$?
23344 grep -v '^ *+' conftest.er1 >conftest.err
23345 rm -f conftest.er1
23346 cat conftest.err >&5
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); } && {
23349 test -z "$ac_c_werror_flag" ||
23350 test ! -s conftest.err
23351 } && test -s conftest$ac_exeext &&
23352 $as_test_x conftest$ac_exeext; then
23353 eval "$as_ac_Lib=yes"
23354 else
23355 echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23358 eval "$as_ac_Lib=no"
23361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23362 conftest$ac_exeext conftest.$ac_ext
23363 LIBS=$ac_check_lib_save_LIBS
23365 ac_res=`eval echo '${'$as_ac_Lib'}'`
23366 { echo "$as_me:$LINENO: result: $ac_res" >&5
23367 echo "${ECHO_T}$ac_res" >&6; }
23368 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23369 AST_REMAINDERL_FOUND=yes
23370 else
23371 AST_REMAINDERL_FOUND=no
23376 # now check for the header.
23377 if test "${AST_REMAINDERL_FOUND}" = "yes"; then
23378 REMAINDERL_LIB="${pbxlibdir} -lm "
23379 # if --with-REMAINDERL=DIR has been specified, use it.
23380 if test "x${REMAINDERL_DIR}" != "x"; then
23381 REMAINDERL_INCLUDE="-I${REMAINDERL_DIR}/include"
23383 REMAINDERL_INCLUDE="${REMAINDERL_INCLUDE} "
23384 if test "x" = "x" ; then # no header, assume found
23385 REMAINDERL_HEADER_FOUND="1"
23386 else # check for the header
23387 saved_cppflags="${CPPFLAGS}"
23388 CPPFLAGS="${CPPFLAGS} ${REMAINDERL_INCLUDE}"
23389 if test "${ac_cv_header_+set}" = set; then
23390 { echo "$as_me:$LINENO: checking for " >&5
23391 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23392 if test "${ac_cv_header_+set}" = set; then
23393 echo $ECHO_N "(cached) $ECHO_C" >&6
23395 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23396 echo "${ECHO_T}$ac_cv_header_" >&6; }
23397 else
23398 # Is the header compilable?
23399 { echo "$as_me:$LINENO: checking usability" >&5
23400 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23401 cat >conftest.$ac_ext <<_ACEOF
23402 /* confdefs.h. */
23403 _ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h. */
23407 $ac_includes_default
23408 #include <>
23409 _ACEOF
23410 rm -f conftest.$ac_objext
23411 if { (ac_try="$ac_compile"
23412 case "(($ac_try" in
23413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414 *) ac_try_echo=$ac_try;;
23415 esac
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417 (eval "$ac_compile") 2>conftest.er1
23418 ac_status=$?
23419 grep -v '^ *+' conftest.er1 >conftest.err
23420 rm -f conftest.er1
23421 cat conftest.err >&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } && {
23424 test -z "$ac_c_werror_flag" ||
23425 test ! -s conftest.err
23426 } && test -s conftest.$ac_objext; then
23427 ac_header_compiler=yes
23428 else
23429 echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 ac_header_compiler=no
23435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23437 echo "${ECHO_T}$ac_header_compiler" >&6; }
23439 # Is the header present?
23440 { echo "$as_me:$LINENO: checking presence" >&5
23441 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23442 cat >conftest.$ac_ext <<_ACEOF
23443 /* confdefs.h. */
23444 _ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23448 #include <>
23449 _ACEOF
23450 if { (ac_try="$ac_cpp conftest.$ac_ext"
23451 case "(($ac_try" in
23452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23453 *) ac_try_echo=$ac_try;;
23454 esac
23455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23457 ac_status=$?
23458 grep -v '^ *+' conftest.er1 >conftest.err
23459 rm -f conftest.er1
23460 cat conftest.err >&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } >/dev/null && {
23463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23464 test ! -s conftest.err
23465 }; then
23466 ac_header_preproc=yes
23467 else
23468 echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23471 ac_header_preproc=no
23474 rm -f conftest.err conftest.$ac_ext
23475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23476 echo "${ECHO_T}$ac_header_preproc" >&6; }
23478 # So? What about this header?
23479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23480 yes:no: )
23481 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23482 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23483 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23484 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23485 ac_header_preproc=yes
23487 no:yes:* )
23488 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23489 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23490 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23491 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23492 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23493 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23494 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23495 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23496 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23497 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23498 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23499 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23500 ( cat <<\_ASBOX
23501 ## ------------------------------- ##
23502 ## Report this to www.asterisk.org ##
23503 ## ------------------------------- ##
23504 _ASBOX
23505 ) | sed "s/^/$as_me: WARNING: /" >&2
23507 esac
23508 { echo "$as_me:$LINENO: checking for " >&5
23509 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23510 if test "${ac_cv_header_+set}" = set; then
23511 echo $ECHO_N "(cached) $ECHO_C" >&6
23512 else
23513 ac_cv_header_=$ac_header_preproc
23515 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23516 echo "${ECHO_T}$ac_cv_header_" >&6; }
23519 if test $ac_cv_header_ = yes; then
23520 REMAINDERL_HEADER_FOUND=1
23521 else
23522 REMAINDERL_HEADER_FOUND=0
23526 CPPFLAGS="${saved_cppflags}"
23528 if test "x${REMAINDERL_HEADER_FOUND}" = "x0" ; then
23529 REMAINDERL_LIB=""
23530 REMAINDERL_INCLUDE=""
23531 else
23532 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23533 REMAINDERL_LIB=""
23535 PBX_REMAINDERL=1
23536 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23538 cat >>confdefs.h <<_ACEOF
23539 #define HAVE_REMAINDERL 1
23540 _ACEOF
23543 cat >>confdefs.h <<_ACEOF
23544 #define HAVE_REMAINDERL_VERSION
23545 _ACEOF
23552 if test "x${PBX_FMODL}" != "x1" -a "${USE_FMODL}" != "no"; then
23553 pbxlibdir=""
23554 # if --with-FMODL=DIR has been specified, use it.
23555 if test "x${FMODL_DIR}" != "x"; then
23556 if test -d ${FMODL_DIR}/lib; then
23557 pbxlibdir="-L${FMODL_DIR}/lib"
23558 else
23559 pbxlibdir="-L${FMODL_DIR}"
23562 pbxfuncname="fmodl"
23563 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23564 AST_FMODL_FOUND=yes
23565 else
23566 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23567 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23568 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23569 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23570 echo $ECHO_N "(cached) $ECHO_C" >&6
23571 else
23572 ac_check_lib_save_LIBS=$LIBS
23573 LIBS="-lm ${pbxlibdir} $LIBS"
23574 cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h. */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23581 /* Override any GCC internal prototype to avoid an error.
23582 Use char because int might match the return type of a GCC
23583 builtin and then its argument prototype would still apply. */
23584 #ifdef __cplusplus
23585 extern "C"
23586 #endif
23587 char ${pbxfuncname} ();
23589 main ()
23591 return ${pbxfuncname} ();
23593 return 0;
23595 _ACEOF
23596 rm -f conftest.$ac_objext conftest$ac_exeext
23597 if { (ac_try="$ac_link"
23598 case "(($ac_try" in
23599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600 *) ac_try_echo=$ac_try;;
23601 esac
23602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23603 (eval "$ac_link") 2>conftest.er1
23604 ac_status=$?
23605 grep -v '^ *+' conftest.er1 >conftest.err
23606 rm -f conftest.er1
23607 cat conftest.err >&5
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); } && {
23610 test -z "$ac_c_werror_flag" ||
23611 test ! -s conftest.err
23612 } && test -s conftest$ac_exeext &&
23613 $as_test_x conftest$ac_exeext; then
23614 eval "$as_ac_Lib=yes"
23615 else
23616 echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23619 eval "$as_ac_Lib=no"
23622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23623 conftest$ac_exeext conftest.$ac_ext
23624 LIBS=$ac_check_lib_save_LIBS
23626 ac_res=`eval echo '${'$as_ac_Lib'}'`
23627 { echo "$as_me:$LINENO: result: $ac_res" >&5
23628 echo "${ECHO_T}$ac_res" >&6; }
23629 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23630 AST_FMODL_FOUND=yes
23631 else
23632 AST_FMODL_FOUND=no
23637 # now check for the header.
23638 if test "${AST_FMODL_FOUND}" = "yes"; then
23639 FMODL_LIB="${pbxlibdir} -lm "
23640 # if --with-FMODL=DIR has been specified, use it.
23641 if test "x${FMODL_DIR}" != "x"; then
23642 FMODL_INCLUDE="-I${FMODL_DIR}/include"
23644 FMODL_INCLUDE="${FMODL_INCLUDE} "
23645 if test "x" = "x" ; then # no header, assume found
23646 FMODL_HEADER_FOUND="1"
23647 else # check for the header
23648 saved_cppflags="${CPPFLAGS}"
23649 CPPFLAGS="${CPPFLAGS} ${FMODL_INCLUDE}"
23650 if test "${ac_cv_header_+set}" = set; then
23651 { echo "$as_me:$LINENO: checking for " >&5
23652 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23653 if test "${ac_cv_header_+set}" = set; then
23654 echo $ECHO_N "(cached) $ECHO_C" >&6
23656 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23657 echo "${ECHO_T}$ac_cv_header_" >&6; }
23658 else
23659 # Is the header compilable?
23660 { echo "$as_me:$LINENO: checking usability" >&5
23661 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23662 cat >conftest.$ac_ext <<_ACEOF
23663 /* confdefs.h. */
23664 _ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h. */
23668 $ac_includes_default
23669 #include <>
23670 _ACEOF
23671 rm -f conftest.$ac_objext
23672 if { (ac_try="$ac_compile"
23673 case "(($ac_try" in
23674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23675 *) ac_try_echo=$ac_try;;
23676 esac
23677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23678 (eval "$ac_compile") 2>conftest.er1
23679 ac_status=$?
23680 grep -v '^ *+' conftest.er1 >conftest.err
23681 rm -f conftest.er1
23682 cat conftest.err >&5
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); } && {
23685 test -z "$ac_c_werror_flag" ||
23686 test ! -s conftest.err
23687 } && test -s conftest.$ac_objext; then
23688 ac_header_compiler=yes
23689 else
23690 echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23693 ac_header_compiler=no
23696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23698 echo "${ECHO_T}$ac_header_compiler" >&6; }
23700 # Is the header present?
23701 { echo "$as_me:$LINENO: checking presence" >&5
23702 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23703 cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h. */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23709 #include <>
23710 _ACEOF
23711 if { (ac_try="$ac_cpp conftest.$ac_ext"
23712 case "(($ac_try" in
23713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714 *) ac_try_echo=$ac_try;;
23715 esac
23716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23718 ac_status=$?
23719 grep -v '^ *+' conftest.er1 >conftest.err
23720 rm -f conftest.er1
23721 cat conftest.err >&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } >/dev/null && {
23724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23725 test ! -s conftest.err
23726 }; then
23727 ac_header_preproc=yes
23728 else
23729 echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23732 ac_header_preproc=no
23735 rm -f conftest.err conftest.$ac_ext
23736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23737 echo "${ECHO_T}$ac_header_preproc" >&6; }
23739 # So? What about this header?
23740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23741 yes:no: )
23742 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23743 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23744 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23745 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23746 ac_header_preproc=yes
23748 no:yes:* )
23749 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23750 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23751 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23752 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23753 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23754 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23755 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23756 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23757 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23758 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23759 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23760 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23761 ( cat <<\_ASBOX
23762 ## ------------------------------- ##
23763 ## Report this to www.asterisk.org ##
23764 ## ------------------------------- ##
23765 _ASBOX
23766 ) | sed "s/^/$as_me: WARNING: /" >&2
23768 esac
23769 { echo "$as_me:$LINENO: checking for " >&5
23770 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23771 if test "${ac_cv_header_+set}" = set; then
23772 echo $ECHO_N "(cached) $ECHO_C" >&6
23773 else
23774 ac_cv_header_=$ac_header_preproc
23776 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23777 echo "${ECHO_T}$ac_cv_header_" >&6; }
23780 if test $ac_cv_header_ = yes; then
23781 FMODL_HEADER_FOUND=1
23782 else
23783 FMODL_HEADER_FOUND=0
23787 CPPFLAGS="${saved_cppflags}"
23789 if test "x${FMODL_HEADER_FOUND}" = "x0" ; then
23790 FMODL_LIB=""
23791 FMODL_INCLUDE=""
23792 else
23793 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23794 FMODL_LIB=""
23796 PBX_FMODL=1
23797 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23799 cat >>confdefs.h <<_ACEOF
23800 #define HAVE_FMODL 1
23801 _ACEOF
23804 cat >>confdefs.h <<_ACEOF
23805 #define HAVE_FMODL_VERSION
23806 _ACEOF
23813 if test "x${PBX_ROUNDL}" != "x1" -a "${USE_ROUNDL}" != "no"; then
23814 pbxlibdir=""
23815 # if --with-ROUNDL=DIR has been specified, use it.
23816 if test "x${ROUNDL_DIR}" != "x"; then
23817 if test -d ${ROUNDL_DIR}/lib; then
23818 pbxlibdir="-L${ROUNDL_DIR}/lib"
23819 else
23820 pbxlibdir="-L${ROUNDL_DIR}"
23823 pbxfuncname="roundl"
23824 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23825 AST_ROUNDL_FOUND=yes
23826 else
23827 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23828 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23829 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23830 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23831 echo $ECHO_N "(cached) $ECHO_C" >&6
23832 else
23833 ac_check_lib_save_LIBS=$LIBS
23834 LIBS="-lm ${pbxlibdir} $LIBS"
23835 cat >conftest.$ac_ext <<_ACEOF
23836 /* confdefs.h. */
23837 _ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h. */
23842 /* Override any GCC internal prototype to avoid an error.
23843 Use char because int might match the return type of a GCC
23844 builtin and then its argument prototype would still apply. */
23845 #ifdef __cplusplus
23846 extern "C"
23847 #endif
23848 char ${pbxfuncname} ();
23850 main ()
23852 return ${pbxfuncname} ();
23854 return 0;
23856 _ACEOF
23857 rm -f conftest.$ac_objext conftest$ac_exeext
23858 if { (ac_try="$ac_link"
23859 case "(($ac_try" in
23860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23861 *) ac_try_echo=$ac_try;;
23862 esac
23863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23864 (eval "$ac_link") 2>conftest.er1
23865 ac_status=$?
23866 grep -v '^ *+' conftest.er1 >conftest.err
23867 rm -f conftest.er1
23868 cat conftest.err >&5
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); } && {
23871 test -z "$ac_c_werror_flag" ||
23872 test ! -s conftest.err
23873 } && test -s conftest$ac_exeext &&
23874 $as_test_x conftest$ac_exeext; then
23875 eval "$as_ac_Lib=yes"
23876 else
23877 echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23880 eval "$as_ac_Lib=no"
23883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23884 conftest$ac_exeext conftest.$ac_ext
23885 LIBS=$ac_check_lib_save_LIBS
23887 ac_res=`eval echo '${'$as_ac_Lib'}'`
23888 { echo "$as_me:$LINENO: result: $ac_res" >&5
23889 echo "${ECHO_T}$ac_res" >&6; }
23890 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23891 AST_ROUNDL_FOUND=yes
23892 else
23893 AST_ROUNDL_FOUND=no
23898 # now check for the header.
23899 if test "${AST_ROUNDL_FOUND}" = "yes"; then
23900 ROUNDL_LIB="${pbxlibdir} -lm "
23901 # if --with-ROUNDL=DIR has been specified, use it.
23902 if test "x${ROUNDL_DIR}" != "x"; then
23903 ROUNDL_INCLUDE="-I${ROUNDL_DIR}/include"
23905 ROUNDL_INCLUDE="${ROUNDL_INCLUDE} "
23906 if test "x" = "x" ; then # no header, assume found
23907 ROUNDL_HEADER_FOUND="1"
23908 else # check for the header
23909 saved_cppflags="${CPPFLAGS}"
23910 CPPFLAGS="${CPPFLAGS} ${ROUNDL_INCLUDE}"
23911 if test "${ac_cv_header_+set}" = set; then
23912 { echo "$as_me:$LINENO: checking for " >&5
23913 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23914 if test "${ac_cv_header_+set}" = set; then
23915 echo $ECHO_N "(cached) $ECHO_C" >&6
23917 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23918 echo "${ECHO_T}$ac_cv_header_" >&6; }
23919 else
23920 # Is the header compilable?
23921 { echo "$as_me:$LINENO: checking usability" >&5
23922 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23923 cat >conftest.$ac_ext <<_ACEOF
23924 /* confdefs.h. */
23925 _ACEOF
23926 cat confdefs.h >>conftest.$ac_ext
23927 cat >>conftest.$ac_ext <<_ACEOF
23928 /* end confdefs.h. */
23929 $ac_includes_default
23930 #include <>
23931 _ACEOF
23932 rm -f conftest.$ac_objext
23933 if { (ac_try="$ac_compile"
23934 case "(($ac_try" in
23935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23936 *) ac_try_echo=$ac_try;;
23937 esac
23938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23939 (eval "$ac_compile") 2>conftest.er1
23940 ac_status=$?
23941 grep -v '^ *+' conftest.er1 >conftest.err
23942 rm -f conftest.er1
23943 cat conftest.err >&5
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); } && {
23946 test -z "$ac_c_werror_flag" ||
23947 test ! -s conftest.err
23948 } && test -s conftest.$ac_objext; then
23949 ac_header_compiler=yes
23950 else
23951 echo "$as_me: failed program was:" >&5
23952 sed 's/^/| /' conftest.$ac_ext >&5
23954 ac_header_compiler=no
23957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23959 echo "${ECHO_T}$ac_header_compiler" >&6; }
23961 # Is the header present?
23962 { echo "$as_me:$LINENO: checking presence" >&5
23963 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23964 cat >conftest.$ac_ext <<_ACEOF
23965 /* confdefs.h. */
23966 _ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h. */
23970 #include <>
23971 _ACEOF
23972 if { (ac_try="$ac_cpp conftest.$ac_ext"
23973 case "(($ac_try" in
23974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975 *) ac_try_echo=$ac_try;;
23976 esac
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23979 ac_status=$?
23980 grep -v '^ *+' conftest.er1 >conftest.err
23981 rm -f conftest.er1
23982 cat conftest.err >&5
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } >/dev/null && {
23985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23986 test ! -s conftest.err
23987 }; then
23988 ac_header_preproc=yes
23989 else
23990 echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23993 ac_header_preproc=no
23996 rm -f conftest.err conftest.$ac_ext
23997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23998 echo "${ECHO_T}$ac_header_preproc" >&6; }
24000 # So? What about this header?
24001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24002 yes:no: )
24003 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24004 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24005 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24006 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24007 ac_header_preproc=yes
24009 no:yes:* )
24010 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24011 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24012 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24013 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24014 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24015 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24016 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24017 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24018 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24019 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24020 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24021 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24022 ( cat <<\_ASBOX
24023 ## ------------------------------- ##
24024 ## Report this to www.asterisk.org ##
24025 ## ------------------------------- ##
24026 _ASBOX
24027 ) | sed "s/^/$as_me: WARNING: /" >&2
24029 esac
24030 { echo "$as_me:$LINENO: checking for " >&5
24031 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24032 if test "${ac_cv_header_+set}" = set; then
24033 echo $ECHO_N "(cached) $ECHO_C" >&6
24034 else
24035 ac_cv_header_=$ac_header_preproc
24037 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24038 echo "${ECHO_T}$ac_cv_header_" >&6; }
24041 if test $ac_cv_header_ = yes; then
24042 ROUNDL_HEADER_FOUND=1
24043 else
24044 ROUNDL_HEADER_FOUND=0
24048 CPPFLAGS="${saved_cppflags}"
24050 if test "x${ROUNDL_HEADER_FOUND}" = "x0" ; then
24051 ROUNDL_LIB=""
24052 ROUNDL_INCLUDE=""
24053 else
24054 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24055 ROUNDL_LIB=""
24057 PBX_ROUNDL=1
24058 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24060 cat >>confdefs.h <<_ACEOF
24061 #define HAVE_ROUNDL 1
24062 _ACEOF
24065 cat >>confdefs.h <<_ACEOF
24066 #define HAVE_ROUNDL_VERSION
24067 _ACEOF
24074 if test "x${PBX_TRUNCL}" != "x1" -a "${USE_TRUNCL}" != "no"; then
24075 pbxlibdir=""
24076 # if --with-TRUNCL=DIR has been specified, use it.
24077 if test "x${TRUNCL_DIR}" != "x"; then
24078 if test -d ${TRUNCL_DIR}/lib; then
24079 pbxlibdir="-L${TRUNCL_DIR}/lib"
24080 else
24081 pbxlibdir="-L${TRUNCL_DIR}"
24084 pbxfuncname="truncl"
24085 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24086 AST_TRUNCL_FOUND=yes
24087 else
24088 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24089 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24090 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24091 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24092 echo $ECHO_N "(cached) $ECHO_C" >&6
24093 else
24094 ac_check_lib_save_LIBS=$LIBS
24095 LIBS="-lm ${pbxlibdir} $LIBS"
24096 cat >conftest.$ac_ext <<_ACEOF
24097 /* confdefs.h. */
24098 _ACEOF
24099 cat confdefs.h >>conftest.$ac_ext
24100 cat >>conftest.$ac_ext <<_ACEOF
24101 /* end confdefs.h. */
24103 /* Override any GCC internal prototype to avoid an error.
24104 Use char because int might match the return type of a GCC
24105 builtin and then its argument prototype would still apply. */
24106 #ifdef __cplusplus
24107 extern "C"
24108 #endif
24109 char ${pbxfuncname} ();
24111 main ()
24113 return ${pbxfuncname} ();
24115 return 0;
24117 _ACEOF
24118 rm -f conftest.$ac_objext conftest$ac_exeext
24119 if { (ac_try="$ac_link"
24120 case "(($ac_try" in
24121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24122 *) ac_try_echo=$ac_try;;
24123 esac
24124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24125 (eval "$ac_link") 2>conftest.er1
24126 ac_status=$?
24127 grep -v '^ *+' conftest.er1 >conftest.err
24128 rm -f conftest.er1
24129 cat conftest.err >&5
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); } && {
24132 test -z "$ac_c_werror_flag" ||
24133 test ! -s conftest.err
24134 } && test -s conftest$ac_exeext &&
24135 $as_test_x conftest$ac_exeext; then
24136 eval "$as_ac_Lib=yes"
24137 else
24138 echo "$as_me: failed program was:" >&5
24139 sed 's/^/| /' conftest.$ac_ext >&5
24141 eval "$as_ac_Lib=no"
24144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24145 conftest$ac_exeext conftest.$ac_ext
24146 LIBS=$ac_check_lib_save_LIBS
24148 ac_res=`eval echo '${'$as_ac_Lib'}'`
24149 { echo "$as_me:$LINENO: result: $ac_res" >&5
24150 echo "${ECHO_T}$ac_res" >&6; }
24151 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24152 AST_TRUNCL_FOUND=yes
24153 else
24154 AST_TRUNCL_FOUND=no
24159 # now check for the header.
24160 if test "${AST_TRUNCL_FOUND}" = "yes"; then
24161 TRUNCL_LIB="${pbxlibdir} -lm "
24162 # if --with-TRUNCL=DIR has been specified, use it.
24163 if test "x${TRUNCL_DIR}" != "x"; then
24164 TRUNCL_INCLUDE="-I${TRUNCL_DIR}/include"
24166 TRUNCL_INCLUDE="${TRUNCL_INCLUDE} "
24167 if test "x" = "x" ; then # no header, assume found
24168 TRUNCL_HEADER_FOUND="1"
24169 else # check for the header
24170 saved_cppflags="${CPPFLAGS}"
24171 CPPFLAGS="${CPPFLAGS} ${TRUNCL_INCLUDE}"
24172 if test "${ac_cv_header_+set}" = set; then
24173 { echo "$as_me:$LINENO: checking for " >&5
24174 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24175 if test "${ac_cv_header_+set}" = set; then
24176 echo $ECHO_N "(cached) $ECHO_C" >&6
24178 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24179 echo "${ECHO_T}$ac_cv_header_" >&6; }
24180 else
24181 # Is the header compilable?
24182 { echo "$as_me:$LINENO: checking usability" >&5
24183 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24184 cat >conftest.$ac_ext <<_ACEOF
24185 /* confdefs.h. */
24186 _ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h. */
24190 $ac_includes_default
24191 #include <>
24192 _ACEOF
24193 rm -f conftest.$ac_objext
24194 if { (ac_try="$ac_compile"
24195 case "(($ac_try" in
24196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24197 *) ac_try_echo=$ac_try;;
24198 esac
24199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24200 (eval "$ac_compile") 2>conftest.er1
24201 ac_status=$?
24202 grep -v '^ *+' conftest.er1 >conftest.err
24203 rm -f conftest.er1
24204 cat conftest.err >&5
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); } && {
24207 test -z "$ac_c_werror_flag" ||
24208 test ! -s conftest.err
24209 } && test -s conftest.$ac_objext; then
24210 ac_header_compiler=yes
24211 else
24212 echo "$as_me: failed program was:" >&5
24213 sed 's/^/| /' conftest.$ac_ext >&5
24215 ac_header_compiler=no
24218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24220 echo "${ECHO_T}$ac_header_compiler" >&6; }
24222 # Is the header present?
24223 { echo "$as_me:$LINENO: checking presence" >&5
24224 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24225 cat >conftest.$ac_ext <<_ACEOF
24226 /* confdefs.h. */
24227 _ACEOF
24228 cat confdefs.h >>conftest.$ac_ext
24229 cat >>conftest.$ac_ext <<_ACEOF
24230 /* end confdefs.h. */
24231 #include <>
24232 _ACEOF
24233 if { (ac_try="$ac_cpp conftest.$ac_ext"
24234 case "(($ac_try" in
24235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24236 *) ac_try_echo=$ac_try;;
24237 esac
24238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24240 ac_status=$?
24241 grep -v '^ *+' conftest.er1 >conftest.err
24242 rm -f conftest.er1
24243 cat conftest.err >&5
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); } >/dev/null && {
24246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24247 test ! -s conftest.err
24248 }; then
24249 ac_header_preproc=yes
24250 else
24251 echo "$as_me: failed program was:" >&5
24252 sed 's/^/| /' conftest.$ac_ext >&5
24254 ac_header_preproc=no
24257 rm -f conftest.err conftest.$ac_ext
24258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24259 echo "${ECHO_T}$ac_header_preproc" >&6; }
24261 # So? What about this header?
24262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24263 yes:no: )
24264 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24265 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24266 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24267 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24268 ac_header_preproc=yes
24270 no:yes:* )
24271 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24272 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24273 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24274 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24275 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24276 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24277 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24278 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24279 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24280 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24281 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24282 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24283 ( cat <<\_ASBOX
24284 ## ------------------------------- ##
24285 ## Report this to www.asterisk.org ##
24286 ## ------------------------------- ##
24287 _ASBOX
24288 ) | sed "s/^/$as_me: WARNING: /" >&2
24290 esac
24291 { echo "$as_me:$LINENO: checking for " >&5
24292 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24293 if test "${ac_cv_header_+set}" = set; then
24294 echo $ECHO_N "(cached) $ECHO_C" >&6
24295 else
24296 ac_cv_header_=$ac_header_preproc
24298 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24299 echo "${ECHO_T}$ac_cv_header_" >&6; }
24302 if test $ac_cv_header_ = yes; then
24303 TRUNCL_HEADER_FOUND=1
24304 else
24305 TRUNCL_HEADER_FOUND=0
24309 CPPFLAGS="${saved_cppflags}"
24311 if test "x${TRUNCL_HEADER_FOUND}" = "x0" ; then
24312 TRUNCL_LIB=""
24313 TRUNCL_INCLUDE=""
24314 else
24315 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24316 TRUNCL_LIB=""
24318 PBX_TRUNCL=1
24319 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24321 cat >>confdefs.h <<_ACEOF
24322 #define HAVE_TRUNCL 1
24323 _ACEOF
24326 cat >>confdefs.h <<_ACEOF
24327 #define HAVE_TRUNCL_VERSION
24328 _ACEOF
24335 if test "x${PBX_STRTOLD}" != "x1" -a "${USE_STRTOLD}" != "no"; then
24336 pbxlibdir=""
24337 # if --with-STRTOLD=DIR has been specified, use it.
24338 if test "x${STRTOLD_DIR}" != "x"; then
24339 if test -d ${STRTOLD_DIR}/lib; then
24340 pbxlibdir="-L${STRTOLD_DIR}/lib"
24341 else
24342 pbxlibdir="-L${STRTOLD_DIR}"
24345 pbxfuncname="strtold"
24346 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24347 AST_STRTOLD_FOUND=yes
24348 else
24349 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
24350 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
24351 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
24352 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24353 echo $ECHO_N "(cached) $ECHO_C" >&6
24354 else
24355 ac_check_lib_save_LIBS=$LIBS
24356 LIBS="-lc ${pbxlibdir} $LIBS"
24357 cat >conftest.$ac_ext <<_ACEOF
24358 /* confdefs.h. */
24359 _ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h. */
24364 /* Override any GCC internal prototype to avoid an error.
24365 Use char because int might match the return type of a GCC
24366 builtin and then its argument prototype would still apply. */
24367 #ifdef __cplusplus
24368 extern "C"
24369 #endif
24370 char ${pbxfuncname} ();
24372 main ()
24374 return ${pbxfuncname} ();
24376 return 0;
24378 _ACEOF
24379 rm -f conftest.$ac_objext conftest$ac_exeext
24380 if { (ac_try="$ac_link"
24381 case "(($ac_try" in
24382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24383 *) ac_try_echo=$ac_try;;
24384 esac
24385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24386 (eval "$ac_link") 2>conftest.er1
24387 ac_status=$?
24388 grep -v '^ *+' conftest.er1 >conftest.err
24389 rm -f conftest.er1
24390 cat conftest.err >&5
24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); } && {
24393 test -z "$ac_c_werror_flag" ||
24394 test ! -s conftest.err
24395 } && test -s conftest$ac_exeext &&
24396 $as_test_x conftest$ac_exeext; then
24397 eval "$as_ac_Lib=yes"
24398 else
24399 echo "$as_me: failed program was:" >&5
24400 sed 's/^/| /' conftest.$ac_ext >&5
24402 eval "$as_ac_Lib=no"
24405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24406 conftest$ac_exeext conftest.$ac_ext
24407 LIBS=$ac_check_lib_save_LIBS
24409 ac_res=`eval echo '${'$as_ac_Lib'}'`
24410 { echo "$as_me:$LINENO: result: $ac_res" >&5
24411 echo "${ECHO_T}$ac_res" >&6; }
24412 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24413 AST_STRTOLD_FOUND=yes
24414 else
24415 AST_STRTOLD_FOUND=no
24420 # now check for the header.
24421 if test "${AST_STRTOLD_FOUND}" = "yes"; then
24422 STRTOLD_LIB="${pbxlibdir} -lc "
24423 # if --with-STRTOLD=DIR has been specified, use it.
24424 if test "x${STRTOLD_DIR}" != "x"; then
24425 STRTOLD_INCLUDE="-I${STRTOLD_DIR}/include"
24427 STRTOLD_INCLUDE="${STRTOLD_INCLUDE} "
24428 if test "xstdlib.h" = "x" ; then # no header, assume found
24429 STRTOLD_HEADER_FOUND="1"
24430 else # check for the header
24431 saved_cppflags="${CPPFLAGS}"
24432 CPPFLAGS="${CPPFLAGS} ${STRTOLD_INCLUDE}"
24433 if test "${ac_cv_header_stdlib_h+set}" = set; then
24434 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24435 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24436 if test "${ac_cv_header_stdlib_h+set}" = set; then
24437 echo $ECHO_N "(cached) $ECHO_C" >&6
24439 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24440 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24441 else
24442 # Is the header compilable?
24443 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
24444 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
24445 cat >conftest.$ac_ext <<_ACEOF
24446 /* confdefs.h. */
24447 _ACEOF
24448 cat confdefs.h >>conftest.$ac_ext
24449 cat >>conftest.$ac_ext <<_ACEOF
24450 /* end confdefs.h. */
24451 $ac_includes_default
24452 #include <stdlib.h>
24453 _ACEOF
24454 rm -f conftest.$ac_objext
24455 if { (ac_try="$ac_compile"
24456 case "(($ac_try" in
24457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458 *) ac_try_echo=$ac_try;;
24459 esac
24460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24461 (eval "$ac_compile") 2>conftest.er1
24462 ac_status=$?
24463 grep -v '^ *+' conftest.er1 >conftest.err
24464 rm -f conftest.er1
24465 cat conftest.err >&5
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); } && {
24468 test -z "$ac_c_werror_flag" ||
24469 test ! -s conftest.err
24470 } && test -s conftest.$ac_objext; then
24471 ac_header_compiler=yes
24472 else
24473 echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24476 ac_header_compiler=no
24479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24481 echo "${ECHO_T}$ac_header_compiler" >&6; }
24483 # Is the header present?
24484 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
24485 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
24486 cat >conftest.$ac_ext <<_ACEOF
24487 /* confdefs.h. */
24488 _ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h. */
24492 #include <stdlib.h>
24493 _ACEOF
24494 if { (ac_try="$ac_cpp conftest.$ac_ext"
24495 case "(($ac_try" in
24496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497 *) ac_try_echo=$ac_try;;
24498 esac
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24501 ac_status=$?
24502 grep -v '^ *+' conftest.er1 >conftest.err
24503 rm -f conftest.er1
24504 cat conftest.err >&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } >/dev/null && {
24507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24508 test ! -s conftest.err
24509 }; then
24510 ac_header_preproc=yes
24511 else
24512 echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24515 ac_header_preproc=no
24518 rm -f conftest.err conftest.$ac_ext
24519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24520 echo "${ECHO_T}$ac_header_preproc" >&6; }
24522 # So? What about this header?
24523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24524 yes:no: )
24525 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24526 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24527 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
24528 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
24529 ac_header_preproc=yes
24531 no:yes:* )
24532 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
24533 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
24534 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
24535 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
24536 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
24537 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
24538 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
24539 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24540 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
24541 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
24542 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
24543 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
24544 ( cat <<\_ASBOX
24545 ## ------------------------------- ##
24546 ## Report this to www.asterisk.org ##
24547 ## ------------------------------- ##
24548 _ASBOX
24549 ) | sed "s/^/$as_me: WARNING: /" >&2
24551 esac
24552 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24553 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24554 if test "${ac_cv_header_stdlib_h+set}" = set; then
24555 echo $ECHO_N "(cached) $ECHO_C" >&6
24556 else
24557 ac_cv_header_stdlib_h=$ac_header_preproc
24559 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24560 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24563 if test $ac_cv_header_stdlib_h = yes; then
24564 STRTOLD_HEADER_FOUND=1
24565 else
24566 STRTOLD_HEADER_FOUND=0
24570 CPPFLAGS="${saved_cppflags}"
24572 if test "x${STRTOLD_HEADER_FOUND}" = "x0" ; then
24573 STRTOLD_LIB=""
24574 STRTOLD_INCLUDE=""
24575 else
24576 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24577 STRTOLD_LIB=""
24579 PBX_STRTOLD=1
24580 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24582 cat >>confdefs.h <<_ACEOF
24583 #define HAVE_STRTOLD 1
24584 _ACEOF
24587 cat >>confdefs.h <<_ACEOF
24588 #define HAVE_STRTOLD_VERSION
24589 _ACEOF
24596 if test "x${PBX_FLOORL}" != "x1" -a "${USE_FLOORL}" != "no"; then
24597 pbxlibdir=""
24598 # if --with-FLOORL=DIR has been specified, use it.
24599 if test "x${FLOORL_DIR}" != "x"; then
24600 if test -d ${FLOORL_DIR}/lib; then
24601 pbxlibdir="-L${FLOORL_DIR}/lib"
24602 else
24603 pbxlibdir="-L${FLOORL_DIR}"
24606 pbxfuncname="floorl"
24607 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24608 AST_FLOORL_FOUND=yes
24609 else
24610 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24611 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24612 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24613 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24614 echo $ECHO_N "(cached) $ECHO_C" >&6
24615 else
24616 ac_check_lib_save_LIBS=$LIBS
24617 LIBS="-lm ${pbxlibdir} $LIBS"
24618 cat >conftest.$ac_ext <<_ACEOF
24619 /* confdefs.h. */
24620 _ACEOF
24621 cat confdefs.h >>conftest.$ac_ext
24622 cat >>conftest.$ac_ext <<_ACEOF
24623 /* end confdefs.h. */
24625 /* Override any GCC internal prototype to avoid an error.
24626 Use char because int might match the return type of a GCC
24627 builtin and then its argument prototype would still apply. */
24628 #ifdef __cplusplus
24629 extern "C"
24630 #endif
24631 char ${pbxfuncname} ();
24633 main ()
24635 return ${pbxfuncname} ();
24637 return 0;
24639 _ACEOF
24640 rm -f conftest.$ac_objext conftest$ac_exeext
24641 if { (ac_try="$ac_link"
24642 case "(($ac_try" in
24643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644 *) ac_try_echo=$ac_try;;
24645 esac
24646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24647 (eval "$ac_link") 2>conftest.er1
24648 ac_status=$?
24649 grep -v '^ *+' conftest.er1 >conftest.err
24650 rm -f conftest.er1
24651 cat conftest.err >&5
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } && {
24654 test -z "$ac_c_werror_flag" ||
24655 test ! -s conftest.err
24656 } && test -s conftest$ac_exeext &&
24657 $as_test_x conftest$ac_exeext; then
24658 eval "$as_ac_Lib=yes"
24659 else
24660 echo "$as_me: failed program was:" >&5
24661 sed 's/^/| /' conftest.$ac_ext >&5
24663 eval "$as_ac_Lib=no"
24666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24667 conftest$ac_exeext conftest.$ac_ext
24668 LIBS=$ac_check_lib_save_LIBS
24670 ac_res=`eval echo '${'$as_ac_Lib'}'`
24671 { echo "$as_me:$LINENO: result: $ac_res" >&5
24672 echo "${ECHO_T}$ac_res" >&6; }
24673 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24674 AST_FLOORL_FOUND=yes
24675 else
24676 AST_FLOORL_FOUND=no
24681 # now check for the header.
24682 if test "${AST_FLOORL_FOUND}" = "yes"; then
24683 FLOORL_LIB="${pbxlibdir} -lm "
24684 # if --with-FLOORL=DIR has been specified, use it.
24685 if test "x${FLOORL_DIR}" != "x"; then
24686 FLOORL_INCLUDE="-I${FLOORL_DIR}/include"
24688 FLOORL_INCLUDE="${FLOORL_INCLUDE} "
24689 if test "x" = "x" ; then # no header, assume found
24690 FLOORL_HEADER_FOUND="1"
24691 else # check for the header
24692 saved_cppflags="${CPPFLAGS}"
24693 CPPFLAGS="${CPPFLAGS} ${FLOORL_INCLUDE}"
24694 if test "${ac_cv_header_+set}" = set; then
24695 { echo "$as_me:$LINENO: checking for " >&5
24696 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24697 if test "${ac_cv_header_+set}" = set; then
24698 echo $ECHO_N "(cached) $ECHO_C" >&6
24700 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24701 echo "${ECHO_T}$ac_cv_header_" >&6; }
24702 else
24703 # Is the header compilable?
24704 { echo "$as_me:$LINENO: checking usability" >&5
24705 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24706 cat >conftest.$ac_ext <<_ACEOF
24707 /* confdefs.h. */
24708 _ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24712 $ac_includes_default
24713 #include <>
24714 _ACEOF
24715 rm -f conftest.$ac_objext
24716 if { (ac_try="$ac_compile"
24717 case "(($ac_try" in
24718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719 *) ac_try_echo=$ac_try;;
24720 esac
24721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722 (eval "$ac_compile") 2>conftest.er1
24723 ac_status=$?
24724 grep -v '^ *+' conftest.er1 >conftest.err
24725 rm -f conftest.er1
24726 cat conftest.err >&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); } && {
24729 test -z "$ac_c_werror_flag" ||
24730 test ! -s conftest.err
24731 } && test -s conftest.$ac_objext; then
24732 ac_header_compiler=yes
24733 else
24734 echo "$as_me: failed program was:" >&5
24735 sed 's/^/| /' conftest.$ac_ext >&5
24737 ac_header_compiler=no
24740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24742 echo "${ECHO_T}$ac_header_compiler" >&6; }
24744 # Is the header present?
24745 { echo "$as_me:$LINENO: checking presence" >&5
24746 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24747 cat >conftest.$ac_ext <<_ACEOF
24748 /* confdefs.h. */
24749 _ACEOF
24750 cat confdefs.h >>conftest.$ac_ext
24751 cat >>conftest.$ac_ext <<_ACEOF
24752 /* end confdefs.h. */
24753 #include <>
24754 _ACEOF
24755 if { (ac_try="$ac_cpp conftest.$ac_ext"
24756 case "(($ac_try" in
24757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24758 *) ac_try_echo=$ac_try;;
24759 esac
24760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24762 ac_status=$?
24763 grep -v '^ *+' conftest.er1 >conftest.err
24764 rm -f conftest.er1
24765 cat conftest.err >&5
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } >/dev/null && {
24768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24769 test ! -s conftest.err
24770 }; then
24771 ac_header_preproc=yes
24772 else
24773 echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24776 ac_header_preproc=no
24779 rm -f conftest.err conftest.$ac_ext
24780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24781 echo "${ECHO_T}$ac_header_preproc" >&6; }
24783 # So? What about this header?
24784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24785 yes:no: )
24786 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24787 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24788 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24789 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24790 ac_header_preproc=yes
24792 no:yes:* )
24793 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24794 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24795 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24796 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24797 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24798 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24799 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24800 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24801 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24802 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24803 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24804 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24805 ( cat <<\_ASBOX
24806 ## ------------------------------- ##
24807 ## Report this to www.asterisk.org ##
24808 ## ------------------------------- ##
24809 _ASBOX
24810 ) | sed "s/^/$as_me: WARNING: /" >&2
24812 esac
24813 { echo "$as_me:$LINENO: checking for " >&5
24814 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24815 if test "${ac_cv_header_+set}" = set; then
24816 echo $ECHO_N "(cached) $ECHO_C" >&6
24817 else
24818 ac_cv_header_=$ac_header_preproc
24820 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24821 echo "${ECHO_T}$ac_cv_header_" >&6; }
24824 if test $ac_cv_header_ = yes; then
24825 FLOORL_HEADER_FOUND=1
24826 else
24827 FLOORL_HEADER_FOUND=0
24831 CPPFLAGS="${saved_cppflags}"
24833 if test "x${FLOORL_HEADER_FOUND}" = "x0" ; then
24834 FLOORL_LIB=""
24835 FLOORL_INCLUDE=""
24836 else
24837 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24838 FLOORL_LIB=""
24840 PBX_FLOORL=1
24841 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24843 cat >>confdefs.h <<_ACEOF
24844 #define HAVE_FLOORL 1
24845 _ACEOF
24848 cat >>confdefs.h <<_ACEOF
24849 #define HAVE_FLOORL_VERSION
24850 _ACEOF
24857 if test "x${PBX_CEILL}" != "x1" -a "${USE_CEILL}" != "no"; then
24858 pbxlibdir=""
24859 # if --with-CEILL=DIR has been specified, use it.
24860 if test "x${CEILL_DIR}" != "x"; then
24861 if test -d ${CEILL_DIR}/lib; then
24862 pbxlibdir="-L${CEILL_DIR}/lib"
24863 else
24864 pbxlibdir="-L${CEILL_DIR}"
24867 pbxfuncname="ceill"
24868 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24869 AST_CEILL_FOUND=yes
24870 else
24871 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24872 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24873 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24874 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24875 echo $ECHO_N "(cached) $ECHO_C" >&6
24876 else
24877 ac_check_lib_save_LIBS=$LIBS
24878 LIBS="-lm ${pbxlibdir} $LIBS"
24879 cat >conftest.$ac_ext <<_ACEOF
24880 /* confdefs.h. */
24881 _ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h. */
24886 /* Override any GCC internal prototype to avoid an error.
24887 Use char because int might match the return type of a GCC
24888 builtin and then its argument prototype would still apply. */
24889 #ifdef __cplusplus
24890 extern "C"
24891 #endif
24892 char ${pbxfuncname} ();
24894 main ()
24896 return ${pbxfuncname} ();
24898 return 0;
24900 _ACEOF
24901 rm -f conftest.$ac_objext conftest$ac_exeext
24902 if { (ac_try="$ac_link"
24903 case "(($ac_try" in
24904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24905 *) ac_try_echo=$ac_try;;
24906 esac
24907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24908 (eval "$ac_link") 2>conftest.er1
24909 ac_status=$?
24910 grep -v '^ *+' conftest.er1 >conftest.err
24911 rm -f conftest.er1
24912 cat conftest.err >&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); } && {
24915 test -z "$ac_c_werror_flag" ||
24916 test ! -s conftest.err
24917 } && test -s conftest$ac_exeext &&
24918 $as_test_x conftest$ac_exeext; then
24919 eval "$as_ac_Lib=yes"
24920 else
24921 echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24924 eval "$as_ac_Lib=no"
24927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24928 conftest$ac_exeext conftest.$ac_ext
24929 LIBS=$ac_check_lib_save_LIBS
24931 ac_res=`eval echo '${'$as_ac_Lib'}'`
24932 { echo "$as_me:$LINENO: result: $ac_res" >&5
24933 echo "${ECHO_T}$ac_res" >&6; }
24934 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24935 AST_CEILL_FOUND=yes
24936 else
24937 AST_CEILL_FOUND=no
24942 # now check for the header.
24943 if test "${AST_CEILL_FOUND}" = "yes"; then
24944 CEILL_LIB="${pbxlibdir} -lm "
24945 # if --with-CEILL=DIR has been specified, use it.
24946 if test "x${CEILL_DIR}" != "x"; then
24947 CEILL_INCLUDE="-I${CEILL_DIR}/include"
24949 CEILL_INCLUDE="${CEILL_INCLUDE} "
24950 if test "x" = "x" ; then # no header, assume found
24951 CEILL_HEADER_FOUND="1"
24952 else # check for the header
24953 saved_cppflags="${CPPFLAGS}"
24954 CPPFLAGS="${CPPFLAGS} ${CEILL_INCLUDE}"
24955 if test "${ac_cv_header_+set}" = set; then
24956 { echo "$as_me:$LINENO: checking for " >&5
24957 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24958 if test "${ac_cv_header_+set}" = set; then
24959 echo $ECHO_N "(cached) $ECHO_C" >&6
24961 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24962 echo "${ECHO_T}$ac_cv_header_" >&6; }
24963 else
24964 # Is the header compilable?
24965 { echo "$as_me:$LINENO: checking usability" >&5
24966 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24967 cat >conftest.$ac_ext <<_ACEOF
24968 /* confdefs.h. */
24969 _ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h. */
24973 $ac_includes_default
24974 #include <>
24975 _ACEOF
24976 rm -f conftest.$ac_objext
24977 if { (ac_try="$ac_compile"
24978 case "(($ac_try" in
24979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24980 *) ac_try_echo=$ac_try;;
24981 esac
24982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24983 (eval "$ac_compile") 2>conftest.er1
24984 ac_status=$?
24985 grep -v '^ *+' conftest.er1 >conftest.err
24986 rm -f conftest.er1
24987 cat conftest.err >&5
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); } && {
24990 test -z "$ac_c_werror_flag" ||
24991 test ! -s conftest.err
24992 } && test -s conftest.$ac_objext; then
24993 ac_header_compiler=yes
24994 else
24995 echo "$as_me: failed program was:" >&5
24996 sed 's/^/| /' conftest.$ac_ext >&5
24998 ac_header_compiler=no
25001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25003 echo "${ECHO_T}$ac_header_compiler" >&6; }
25005 # Is the header present?
25006 { echo "$as_me:$LINENO: checking presence" >&5
25007 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25008 cat >conftest.$ac_ext <<_ACEOF
25009 /* confdefs.h. */
25010 _ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h. */
25014 #include <>
25015 _ACEOF
25016 if { (ac_try="$ac_cpp conftest.$ac_ext"
25017 case "(($ac_try" in
25018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25019 *) ac_try_echo=$ac_try;;
25020 esac
25021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25023 ac_status=$?
25024 grep -v '^ *+' conftest.er1 >conftest.err
25025 rm -f conftest.er1
25026 cat conftest.err >&5
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); } >/dev/null && {
25029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25030 test ! -s conftest.err
25031 }; then
25032 ac_header_preproc=yes
25033 else
25034 echo "$as_me: failed program was:" >&5
25035 sed 's/^/| /' conftest.$ac_ext >&5
25037 ac_header_preproc=no
25040 rm -f conftest.err conftest.$ac_ext
25041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25042 echo "${ECHO_T}$ac_header_preproc" >&6; }
25044 # So? What about this header?
25045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25046 yes:no: )
25047 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25048 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25049 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25050 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25051 ac_header_preproc=yes
25053 no:yes:* )
25054 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25055 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25056 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25057 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25058 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25059 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25060 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25061 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25062 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25063 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25064 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25065 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25066 ( cat <<\_ASBOX
25067 ## ------------------------------- ##
25068 ## Report this to www.asterisk.org ##
25069 ## ------------------------------- ##
25070 _ASBOX
25071 ) | sed "s/^/$as_me: WARNING: /" >&2
25073 esac
25074 { echo "$as_me:$LINENO: checking for " >&5
25075 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25076 if test "${ac_cv_header_+set}" = set; then
25077 echo $ECHO_N "(cached) $ECHO_C" >&6
25078 else
25079 ac_cv_header_=$ac_header_preproc
25081 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25082 echo "${ECHO_T}$ac_cv_header_" >&6; }
25085 if test $ac_cv_header_ = yes; then
25086 CEILL_HEADER_FOUND=1
25087 else
25088 CEILL_HEADER_FOUND=0
25092 CPPFLAGS="${saved_cppflags}"
25094 if test "x${CEILL_HEADER_FOUND}" = "x0" ; then
25095 CEILL_LIB=""
25096 CEILL_INCLUDE=""
25097 else
25098 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25099 CEILL_LIB=""
25101 PBX_CEILL=1
25102 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25104 cat >>confdefs.h <<_ACEOF
25105 #define HAVE_CEILL 1
25106 _ACEOF
25109 cat >>confdefs.h <<_ACEOF
25110 #define HAVE_CEILL_VERSION
25111 _ACEOF
25118 if test "x${PBX_EXP2}" != "x1" -a "${USE_EXP2}" != "no"; then
25119 pbxlibdir=""
25120 # if --with-EXP2=DIR has been specified, use it.
25121 if test "x${EXP2_DIR}" != "x"; then
25122 if test -d ${EXP2_DIR}/lib; then
25123 pbxlibdir="-L${EXP2_DIR}/lib"
25124 else
25125 pbxlibdir="-L${EXP2_DIR}"
25128 pbxfuncname="exp2"
25129 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25130 AST_EXP2_FOUND=yes
25131 else
25132 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25133 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25134 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25135 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25136 echo $ECHO_N "(cached) $ECHO_C" >&6
25137 else
25138 ac_check_lib_save_LIBS=$LIBS
25139 LIBS="-lm ${pbxlibdir} $LIBS"
25140 cat >conftest.$ac_ext <<_ACEOF
25141 /* confdefs.h. */
25142 _ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h. */
25147 /* Override any GCC internal prototype to avoid an error.
25148 Use char because int might match the return type of a GCC
25149 builtin and then its argument prototype would still apply. */
25150 #ifdef __cplusplus
25151 extern "C"
25152 #endif
25153 char ${pbxfuncname} ();
25155 main ()
25157 return ${pbxfuncname} ();
25159 return 0;
25161 _ACEOF
25162 rm -f conftest.$ac_objext conftest$ac_exeext
25163 if { (ac_try="$ac_link"
25164 case "(($ac_try" in
25165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25166 *) ac_try_echo=$ac_try;;
25167 esac
25168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25169 (eval "$ac_link") 2>conftest.er1
25170 ac_status=$?
25171 grep -v '^ *+' conftest.er1 >conftest.err
25172 rm -f conftest.er1
25173 cat conftest.err >&5
25174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175 (exit $ac_status); } && {
25176 test -z "$ac_c_werror_flag" ||
25177 test ! -s conftest.err
25178 } && test -s conftest$ac_exeext &&
25179 $as_test_x conftest$ac_exeext; then
25180 eval "$as_ac_Lib=yes"
25181 else
25182 echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.$ac_ext >&5
25185 eval "$as_ac_Lib=no"
25188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25189 conftest$ac_exeext conftest.$ac_ext
25190 LIBS=$ac_check_lib_save_LIBS
25192 ac_res=`eval echo '${'$as_ac_Lib'}'`
25193 { echo "$as_me:$LINENO: result: $ac_res" >&5
25194 echo "${ECHO_T}$ac_res" >&6; }
25195 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25196 AST_EXP2_FOUND=yes
25197 else
25198 AST_EXP2_FOUND=no
25203 # now check for the header.
25204 if test "${AST_EXP2_FOUND}" = "yes"; then
25205 EXP2_LIB="${pbxlibdir} -lm "
25206 # if --with-EXP2=DIR has been specified, use it.
25207 if test "x${EXP2_DIR}" != "x"; then
25208 EXP2_INCLUDE="-I${EXP2_DIR}/include"
25210 EXP2_INCLUDE="${EXP2_INCLUDE} "
25211 if test "x" = "x" ; then # no header, assume found
25212 EXP2_HEADER_FOUND="1"
25213 else # check for the header
25214 saved_cppflags="${CPPFLAGS}"
25215 CPPFLAGS="${CPPFLAGS} ${EXP2_INCLUDE}"
25216 if test "${ac_cv_header_+set}" = set; then
25217 { echo "$as_me:$LINENO: checking for " >&5
25218 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25219 if test "${ac_cv_header_+set}" = set; then
25220 echo $ECHO_N "(cached) $ECHO_C" >&6
25222 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25223 echo "${ECHO_T}$ac_cv_header_" >&6; }
25224 else
25225 # Is the header compilable?
25226 { echo "$as_me:$LINENO: checking usability" >&5
25227 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25228 cat >conftest.$ac_ext <<_ACEOF
25229 /* confdefs.h. */
25230 _ACEOF
25231 cat confdefs.h >>conftest.$ac_ext
25232 cat >>conftest.$ac_ext <<_ACEOF
25233 /* end confdefs.h. */
25234 $ac_includes_default
25235 #include <>
25236 _ACEOF
25237 rm -f conftest.$ac_objext
25238 if { (ac_try="$ac_compile"
25239 case "(($ac_try" in
25240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25241 *) ac_try_echo=$ac_try;;
25242 esac
25243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25244 (eval "$ac_compile") 2>conftest.er1
25245 ac_status=$?
25246 grep -v '^ *+' conftest.er1 >conftest.err
25247 rm -f conftest.er1
25248 cat conftest.err >&5
25249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250 (exit $ac_status); } && {
25251 test -z "$ac_c_werror_flag" ||
25252 test ! -s conftest.err
25253 } && test -s conftest.$ac_objext; then
25254 ac_header_compiler=yes
25255 else
25256 echo "$as_me: failed program was:" >&5
25257 sed 's/^/| /' conftest.$ac_ext >&5
25259 ac_header_compiler=no
25262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25264 echo "${ECHO_T}$ac_header_compiler" >&6; }
25266 # Is the header present?
25267 { echo "$as_me:$LINENO: checking presence" >&5
25268 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25269 cat >conftest.$ac_ext <<_ACEOF
25270 /* confdefs.h. */
25271 _ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h. */
25275 #include <>
25276 _ACEOF
25277 if { (ac_try="$ac_cpp conftest.$ac_ext"
25278 case "(($ac_try" in
25279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280 *) ac_try_echo=$ac_try;;
25281 esac
25282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25284 ac_status=$?
25285 grep -v '^ *+' conftest.er1 >conftest.err
25286 rm -f conftest.er1
25287 cat conftest.err >&5
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); } >/dev/null && {
25290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25291 test ! -s conftest.err
25292 }; then
25293 ac_header_preproc=yes
25294 else
25295 echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25298 ac_header_preproc=no
25301 rm -f conftest.err conftest.$ac_ext
25302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25303 echo "${ECHO_T}$ac_header_preproc" >&6; }
25305 # So? What about this header?
25306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25307 yes:no: )
25308 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25309 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25310 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25311 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25312 ac_header_preproc=yes
25314 no:yes:* )
25315 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25316 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25317 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25318 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25319 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25320 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25321 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25322 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25323 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25324 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25325 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25326 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25327 ( cat <<\_ASBOX
25328 ## ------------------------------- ##
25329 ## Report this to www.asterisk.org ##
25330 ## ------------------------------- ##
25331 _ASBOX
25332 ) | sed "s/^/$as_me: WARNING: /" >&2
25334 esac
25335 { echo "$as_me:$LINENO: checking for " >&5
25336 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25337 if test "${ac_cv_header_+set}" = set; then
25338 echo $ECHO_N "(cached) $ECHO_C" >&6
25339 else
25340 ac_cv_header_=$ac_header_preproc
25342 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25343 echo "${ECHO_T}$ac_cv_header_" >&6; }
25346 if test $ac_cv_header_ = yes; then
25347 EXP2_HEADER_FOUND=1
25348 else
25349 EXP2_HEADER_FOUND=0
25353 CPPFLAGS="${saved_cppflags}"
25355 if test "x${EXP2_HEADER_FOUND}" = "x0" ; then
25356 EXP2_LIB=""
25357 EXP2_INCLUDE=""
25358 else
25359 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25360 EXP2_LIB=""
25362 PBX_EXP2=1
25363 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25365 cat >>confdefs.h <<_ACEOF
25366 #define HAVE_EXP2 1
25367 _ACEOF
25370 cat >>confdefs.h <<_ACEOF
25371 #define HAVE_EXP2_VERSION
25372 _ACEOF
25379 if test "x${PBX_LOG2}" != "x1" -a "${USE_LOG2}" != "no"; then
25380 pbxlibdir=""
25381 # if --with-LOG2=DIR has been specified, use it.
25382 if test "x${LOG2_DIR}" != "x"; then
25383 if test -d ${LOG2_DIR}/lib; then
25384 pbxlibdir="-L${LOG2_DIR}/lib"
25385 else
25386 pbxlibdir="-L${LOG2_DIR}"
25389 pbxfuncname="log2"
25390 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25391 AST_LOG2_FOUND=yes
25392 else
25393 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25394 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25395 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25396 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25397 echo $ECHO_N "(cached) $ECHO_C" >&6
25398 else
25399 ac_check_lib_save_LIBS=$LIBS
25400 LIBS="-lm ${pbxlibdir} $LIBS"
25401 cat >conftest.$ac_ext <<_ACEOF
25402 /* confdefs.h. */
25403 _ACEOF
25404 cat confdefs.h >>conftest.$ac_ext
25405 cat >>conftest.$ac_ext <<_ACEOF
25406 /* end confdefs.h. */
25408 /* Override any GCC internal prototype to avoid an error.
25409 Use char because int might match the return type of a GCC
25410 builtin and then its argument prototype would still apply. */
25411 #ifdef __cplusplus
25412 extern "C"
25413 #endif
25414 char ${pbxfuncname} ();
25416 main ()
25418 return ${pbxfuncname} ();
25420 return 0;
25422 _ACEOF
25423 rm -f conftest.$ac_objext conftest$ac_exeext
25424 if { (ac_try="$ac_link"
25425 case "(($ac_try" in
25426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25427 *) ac_try_echo=$ac_try;;
25428 esac
25429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25430 (eval "$ac_link") 2>conftest.er1
25431 ac_status=$?
25432 grep -v '^ *+' conftest.er1 >conftest.err
25433 rm -f conftest.er1
25434 cat conftest.err >&5
25435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } && {
25437 test -z "$ac_c_werror_flag" ||
25438 test ! -s conftest.err
25439 } && test -s conftest$ac_exeext &&
25440 $as_test_x conftest$ac_exeext; then
25441 eval "$as_ac_Lib=yes"
25442 else
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25446 eval "$as_ac_Lib=no"
25449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25450 conftest$ac_exeext conftest.$ac_ext
25451 LIBS=$ac_check_lib_save_LIBS
25453 ac_res=`eval echo '${'$as_ac_Lib'}'`
25454 { echo "$as_me:$LINENO: result: $ac_res" >&5
25455 echo "${ECHO_T}$ac_res" >&6; }
25456 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25457 AST_LOG2_FOUND=yes
25458 else
25459 AST_LOG2_FOUND=no
25464 # now check for the header.
25465 if test "${AST_LOG2_FOUND}" = "yes"; then
25466 LOG2_LIB="${pbxlibdir} -lm "
25467 # if --with-LOG2=DIR has been specified, use it.
25468 if test "x${LOG2_DIR}" != "x"; then
25469 LOG2_INCLUDE="-I${LOG2_DIR}/include"
25471 LOG2_INCLUDE="${LOG2_INCLUDE} "
25472 if test "x" = "x" ; then # no header, assume found
25473 LOG2_HEADER_FOUND="1"
25474 else # check for the header
25475 saved_cppflags="${CPPFLAGS}"
25476 CPPFLAGS="${CPPFLAGS} ${LOG2_INCLUDE}"
25477 if test "${ac_cv_header_+set}" = set; then
25478 { echo "$as_me:$LINENO: checking for " >&5
25479 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25480 if test "${ac_cv_header_+set}" = set; then
25481 echo $ECHO_N "(cached) $ECHO_C" >&6
25483 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25484 echo "${ECHO_T}$ac_cv_header_" >&6; }
25485 else
25486 # Is the header compilable?
25487 { echo "$as_me:$LINENO: checking usability" >&5
25488 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25489 cat >conftest.$ac_ext <<_ACEOF
25490 /* confdefs.h. */
25491 _ACEOF
25492 cat confdefs.h >>conftest.$ac_ext
25493 cat >>conftest.$ac_ext <<_ACEOF
25494 /* end confdefs.h. */
25495 $ac_includes_default
25496 #include <>
25497 _ACEOF
25498 rm -f conftest.$ac_objext
25499 if { (ac_try="$ac_compile"
25500 case "(($ac_try" in
25501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25502 *) ac_try_echo=$ac_try;;
25503 esac
25504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25505 (eval "$ac_compile") 2>conftest.er1
25506 ac_status=$?
25507 grep -v '^ *+' conftest.er1 >conftest.err
25508 rm -f conftest.er1
25509 cat conftest.err >&5
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); } && {
25512 test -z "$ac_c_werror_flag" ||
25513 test ! -s conftest.err
25514 } && test -s conftest.$ac_objext; then
25515 ac_header_compiler=yes
25516 else
25517 echo "$as_me: failed program was:" >&5
25518 sed 's/^/| /' conftest.$ac_ext >&5
25520 ac_header_compiler=no
25523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25525 echo "${ECHO_T}$ac_header_compiler" >&6; }
25527 # Is the header present?
25528 { echo "$as_me:$LINENO: checking presence" >&5
25529 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25530 cat >conftest.$ac_ext <<_ACEOF
25531 /* confdefs.h. */
25532 _ACEOF
25533 cat confdefs.h >>conftest.$ac_ext
25534 cat >>conftest.$ac_ext <<_ACEOF
25535 /* end confdefs.h. */
25536 #include <>
25537 _ACEOF
25538 if { (ac_try="$ac_cpp conftest.$ac_ext"
25539 case "(($ac_try" in
25540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25541 *) ac_try_echo=$ac_try;;
25542 esac
25543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25545 ac_status=$?
25546 grep -v '^ *+' conftest.er1 >conftest.err
25547 rm -f conftest.er1
25548 cat conftest.err >&5
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); } >/dev/null && {
25551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25552 test ! -s conftest.err
25553 }; then
25554 ac_header_preproc=yes
25555 else
25556 echo "$as_me: failed program was:" >&5
25557 sed 's/^/| /' conftest.$ac_ext >&5
25559 ac_header_preproc=no
25562 rm -f conftest.err conftest.$ac_ext
25563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25564 echo "${ECHO_T}$ac_header_preproc" >&6; }
25566 # So? What about this header?
25567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25568 yes:no: )
25569 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25570 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25571 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25572 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25573 ac_header_preproc=yes
25575 no:yes:* )
25576 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25577 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25578 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25579 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25580 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25581 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25582 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25583 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25584 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25585 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25586 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25587 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25588 ( cat <<\_ASBOX
25589 ## ------------------------------- ##
25590 ## Report this to www.asterisk.org ##
25591 ## ------------------------------- ##
25592 _ASBOX
25593 ) | sed "s/^/$as_me: WARNING: /" >&2
25595 esac
25596 { echo "$as_me:$LINENO: checking for " >&5
25597 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25598 if test "${ac_cv_header_+set}" = set; then
25599 echo $ECHO_N "(cached) $ECHO_C" >&6
25600 else
25601 ac_cv_header_=$ac_header_preproc
25603 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25604 echo "${ECHO_T}$ac_cv_header_" >&6; }
25607 if test $ac_cv_header_ = yes; then
25608 LOG2_HEADER_FOUND=1
25609 else
25610 LOG2_HEADER_FOUND=0
25614 CPPFLAGS="${saved_cppflags}"
25616 if test "x${LOG2_HEADER_FOUND}" = "x0" ; then
25617 LOG2_LIB=""
25618 LOG2_INCLUDE=""
25619 else
25620 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25621 LOG2_LIB=""
25623 PBX_LOG2=1
25624 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25626 cat >>confdefs.h <<_ACEOF
25627 #define HAVE_LOG2 1
25628 _ACEOF
25631 cat >>confdefs.h <<_ACEOF
25632 #define HAVE_LOG2_VERSION
25633 _ACEOF
25640 if test "x${PBX_EXP10}" != "x1" -a "${USE_EXP10}" != "no"; then
25641 pbxlibdir=""
25642 # if --with-EXP10=DIR has been specified, use it.
25643 if test "x${EXP10_DIR}" != "x"; then
25644 if test -d ${EXP10_DIR}/lib; then
25645 pbxlibdir="-L${EXP10_DIR}/lib"
25646 else
25647 pbxlibdir="-L${EXP10_DIR}"
25650 pbxfuncname="exp10"
25651 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25652 AST_EXP10_FOUND=yes
25653 else
25654 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25655 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25656 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25657 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25658 echo $ECHO_N "(cached) $ECHO_C" >&6
25659 else
25660 ac_check_lib_save_LIBS=$LIBS
25661 LIBS="-lm ${pbxlibdir} $LIBS"
25662 cat >conftest.$ac_ext <<_ACEOF
25663 /* confdefs.h. */
25664 _ACEOF
25665 cat confdefs.h >>conftest.$ac_ext
25666 cat >>conftest.$ac_ext <<_ACEOF
25667 /* end confdefs.h. */
25669 /* Override any GCC internal prototype to avoid an error.
25670 Use char because int might match the return type of a GCC
25671 builtin and then its argument prototype would still apply. */
25672 #ifdef __cplusplus
25673 extern "C"
25674 #endif
25675 char ${pbxfuncname} ();
25677 main ()
25679 return ${pbxfuncname} ();
25681 return 0;
25683 _ACEOF
25684 rm -f conftest.$ac_objext conftest$ac_exeext
25685 if { (ac_try="$ac_link"
25686 case "(($ac_try" in
25687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25688 *) ac_try_echo=$ac_try;;
25689 esac
25690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25691 (eval "$ac_link") 2>conftest.er1
25692 ac_status=$?
25693 grep -v '^ *+' conftest.er1 >conftest.err
25694 rm -f conftest.er1
25695 cat conftest.err >&5
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); } && {
25698 test -z "$ac_c_werror_flag" ||
25699 test ! -s conftest.err
25700 } && test -s conftest$ac_exeext &&
25701 $as_test_x conftest$ac_exeext; then
25702 eval "$as_ac_Lib=yes"
25703 else
25704 echo "$as_me: failed program was:" >&5
25705 sed 's/^/| /' conftest.$ac_ext >&5
25707 eval "$as_ac_Lib=no"
25710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25711 conftest$ac_exeext conftest.$ac_ext
25712 LIBS=$ac_check_lib_save_LIBS
25714 ac_res=`eval echo '${'$as_ac_Lib'}'`
25715 { echo "$as_me:$LINENO: result: $ac_res" >&5
25716 echo "${ECHO_T}$ac_res" >&6; }
25717 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25718 AST_EXP10_FOUND=yes
25719 else
25720 AST_EXP10_FOUND=no
25725 # now check for the header.
25726 if test "${AST_EXP10_FOUND}" = "yes"; then
25727 EXP10_LIB="${pbxlibdir} -lm "
25728 # if --with-EXP10=DIR has been specified, use it.
25729 if test "x${EXP10_DIR}" != "x"; then
25730 EXP10_INCLUDE="-I${EXP10_DIR}/include"
25732 EXP10_INCLUDE="${EXP10_INCLUDE} "
25733 if test "x" = "x" ; then # no header, assume found
25734 EXP10_HEADER_FOUND="1"
25735 else # check for the header
25736 saved_cppflags="${CPPFLAGS}"
25737 CPPFLAGS="${CPPFLAGS} ${EXP10_INCLUDE}"
25738 if test "${ac_cv_header_+set}" = set; then
25739 { echo "$as_me:$LINENO: checking for " >&5
25740 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25741 if test "${ac_cv_header_+set}" = set; then
25742 echo $ECHO_N "(cached) $ECHO_C" >&6
25744 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25745 echo "${ECHO_T}$ac_cv_header_" >&6; }
25746 else
25747 # Is the header compilable?
25748 { echo "$as_me:$LINENO: checking usability" >&5
25749 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25750 cat >conftest.$ac_ext <<_ACEOF
25751 /* confdefs.h. */
25752 _ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h. */
25756 $ac_includes_default
25757 #include <>
25758 _ACEOF
25759 rm -f conftest.$ac_objext
25760 if { (ac_try="$ac_compile"
25761 case "(($ac_try" in
25762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25763 *) ac_try_echo=$ac_try;;
25764 esac
25765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25766 (eval "$ac_compile") 2>conftest.er1
25767 ac_status=$?
25768 grep -v '^ *+' conftest.er1 >conftest.err
25769 rm -f conftest.er1
25770 cat conftest.err >&5
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); } && {
25773 test -z "$ac_c_werror_flag" ||
25774 test ! -s conftest.err
25775 } && test -s conftest.$ac_objext; then
25776 ac_header_compiler=yes
25777 else
25778 echo "$as_me: failed program was:" >&5
25779 sed 's/^/| /' conftest.$ac_ext >&5
25781 ac_header_compiler=no
25784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25786 echo "${ECHO_T}$ac_header_compiler" >&6; }
25788 # Is the header present?
25789 { echo "$as_me:$LINENO: checking presence" >&5
25790 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25791 cat >conftest.$ac_ext <<_ACEOF
25792 /* confdefs.h. */
25793 _ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h. */
25797 #include <>
25798 _ACEOF
25799 if { (ac_try="$ac_cpp conftest.$ac_ext"
25800 case "(($ac_try" in
25801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802 *) ac_try_echo=$ac_try;;
25803 esac
25804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25806 ac_status=$?
25807 grep -v '^ *+' conftest.er1 >conftest.err
25808 rm -f conftest.er1
25809 cat conftest.err >&5
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); } >/dev/null && {
25812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25813 test ! -s conftest.err
25814 }; then
25815 ac_header_preproc=yes
25816 else
25817 echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25820 ac_header_preproc=no
25823 rm -f conftest.err conftest.$ac_ext
25824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25825 echo "${ECHO_T}$ac_header_preproc" >&6; }
25827 # So? What about this header?
25828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25829 yes:no: )
25830 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25831 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25832 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25833 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25834 ac_header_preproc=yes
25836 no:yes:* )
25837 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25838 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25839 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25840 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25841 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25842 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25843 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25844 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25845 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25846 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25847 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25848 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25849 ( cat <<\_ASBOX
25850 ## ------------------------------- ##
25851 ## Report this to www.asterisk.org ##
25852 ## ------------------------------- ##
25853 _ASBOX
25854 ) | sed "s/^/$as_me: WARNING: /" >&2
25856 esac
25857 { echo "$as_me:$LINENO: checking for " >&5
25858 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25859 if test "${ac_cv_header_+set}" = set; then
25860 echo $ECHO_N "(cached) $ECHO_C" >&6
25861 else
25862 ac_cv_header_=$ac_header_preproc
25864 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25865 echo "${ECHO_T}$ac_cv_header_" >&6; }
25868 if test $ac_cv_header_ = yes; then
25869 EXP10_HEADER_FOUND=1
25870 else
25871 EXP10_HEADER_FOUND=0
25875 CPPFLAGS="${saved_cppflags}"
25877 if test "x${EXP10_HEADER_FOUND}" = "x0" ; then
25878 EXP10_LIB=""
25879 EXP10_INCLUDE=""
25880 else
25881 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25882 EXP10_LIB=""
25884 PBX_EXP10=1
25885 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25887 cat >>confdefs.h <<_ACEOF
25888 #define HAVE_EXP10 1
25889 _ACEOF
25892 cat >>confdefs.h <<_ACEOF
25893 #define HAVE_EXP10_VERSION
25894 _ACEOF
25901 if test "x${PBX_LOG10}" != "x1" -a "${USE_LOG10}" != "no"; then
25902 pbxlibdir=""
25903 # if --with-LOG10=DIR has been specified, use it.
25904 if test "x${LOG10_DIR}" != "x"; then
25905 if test -d ${LOG10_DIR}/lib; then
25906 pbxlibdir="-L${LOG10_DIR}/lib"
25907 else
25908 pbxlibdir="-L${LOG10_DIR}"
25911 pbxfuncname="log10"
25912 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25913 AST_LOG10_FOUND=yes
25914 else
25915 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25916 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25917 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25918 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25919 echo $ECHO_N "(cached) $ECHO_C" >&6
25920 else
25921 ac_check_lib_save_LIBS=$LIBS
25922 LIBS="-lm ${pbxlibdir} $LIBS"
25923 cat >conftest.$ac_ext <<_ACEOF
25924 /* confdefs.h. */
25925 _ACEOF
25926 cat confdefs.h >>conftest.$ac_ext
25927 cat >>conftest.$ac_ext <<_ACEOF
25928 /* end confdefs.h. */
25930 /* Override any GCC internal prototype to avoid an error.
25931 Use char because int might match the return type of a GCC
25932 builtin and then its argument prototype would still apply. */
25933 #ifdef __cplusplus
25934 extern "C"
25935 #endif
25936 char ${pbxfuncname} ();
25938 main ()
25940 return ${pbxfuncname} ();
25942 return 0;
25944 _ACEOF
25945 rm -f conftest.$ac_objext conftest$ac_exeext
25946 if { (ac_try="$ac_link"
25947 case "(($ac_try" in
25948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25949 *) ac_try_echo=$ac_try;;
25950 esac
25951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25952 (eval "$ac_link") 2>conftest.er1
25953 ac_status=$?
25954 grep -v '^ *+' conftest.er1 >conftest.err
25955 rm -f conftest.er1
25956 cat conftest.err >&5
25957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); } && {
25959 test -z "$ac_c_werror_flag" ||
25960 test ! -s conftest.err
25961 } && test -s conftest$ac_exeext &&
25962 $as_test_x conftest$ac_exeext; then
25963 eval "$as_ac_Lib=yes"
25964 else
25965 echo "$as_me: failed program was:" >&5
25966 sed 's/^/| /' conftest.$ac_ext >&5
25968 eval "$as_ac_Lib=no"
25971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25972 conftest$ac_exeext conftest.$ac_ext
25973 LIBS=$ac_check_lib_save_LIBS
25975 ac_res=`eval echo '${'$as_ac_Lib'}'`
25976 { echo "$as_me:$LINENO: result: $ac_res" >&5
25977 echo "${ECHO_T}$ac_res" >&6; }
25978 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25979 AST_LOG10_FOUND=yes
25980 else
25981 AST_LOG10_FOUND=no
25986 # now check for the header.
25987 if test "${AST_LOG10_FOUND}" = "yes"; then
25988 LOG10_LIB="${pbxlibdir} -lm "
25989 # if --with-LOG10=DIR has been specified, use it.
25990 if test "x${LOG10_DIR}" != "x"; then
25991 LOG10_INCLUDE="-I${LOG10_DIR}/include"
25993 LOG10_INCLUDE="${LOG10_INCLUDE} "
25994 if test "x" = "x" ; then # no header, assume found
25995 LOG10_HEADER_FOUND="1"
25996 else # check for the header
25997 saved_cppflags="${CPPFLAGS}"
25998 CPPFLAGS="${CPPFLAGS} ${LOG10_INCLUDE}"
25999 if test "${ac_cv_header_+set}" = set; then
26000 { echo "$as_me:$LINENO: checking for " >&5
26001 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26002 if test "${ac_cv_header_+set}" = set; then
26003 echo $ECHO_N "(cached) $ECHO_C" >&6
26005 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26006 echo "${ECHO_T}$ac_cv_header_" >&6; }
26007 else
26008 # Is the header compilable?
26009 { echo "$as_me:$LINENO: checking usability" >&5
26010 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26011 cat >conftest.$ac_ext <<_ACEOF
26012 /* confdefs.h. */
26013 _ACEOF
26014 cat confdefs.h >>conftest.$ac_ext
26015 cat >>conftest.$ac_ext <<_ACEOF
26016 /* end confdefs.h. */
26017 $ac_includes_default
26018 #include <>
26019 _ACEOF
26020 rm -f conftest.$ac_objext
26021 if { (ac_try="$ac_compile"
26022 case "(($ac_try" in
26023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024 *) ac_try_echo=$ac_try;;
26025 esac
26026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027 (eval "$ac_compile") 2>conftest.er1
26028 ac_status=$?
26029 grep -v '^ *+' conftest.er1 >conftest.err
26030 rm -f conftest.er1
26031 cat conftest.err >&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } && {
26034 test -z "$ac_c_werror_flag" ||
26035 test ! -s conftest.err
26036 } && test -s conftest.$ac_objext; then
26037 ac_header_compiler=yes
26038 else
26039 echo "$as_me: failed program was:" >&5
26040 sed 's/^/| /' conftest.$ac_ext >&5
26042 ac_header_compiler=no
26045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26047 echo "${ECHO_T}$ac_header_compiler" >&6; }
26049 # Is the header present?
26050 { echo "$as_me:$LINENO: checking presence" >&5
26051 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26052 cat >conftest.$ac_ext <<_ACEOF
26053 /* confdefs.h. */
26054 _ACEOF
26055 cat confdefs.h >>conftest.$ac_ext
26056 cat >>conftest.$ac_ext <<_ACEOF
26057 /* end confdefs.h. */
26058 #include <>
26059 _ACEOF
26060 if { (ac_try="$ac_cpp conftest.$ac_ext"
26061 case "(($ac_try" in
26062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26063 *) ac_try_echo=$ac_try;;
26064 esac
26065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26067 ac_status=$?
26068 grep -v '^ *+' conftest.er1 >conftest.err
26069 rm -f conftest.er1
26070 cat conftest.err >&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); } >/dev/null && {
26073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26074 test ! -s conftest.err
26075 }; then
26076 ac_header_preproc=yes
26077 else
26078 echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26081 ac_header_preproc=no
26084 rm -f conftest.err conftest.$ac_ext
26085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26086 echo "${ECHO_T}$ac_header_preproc" >&6; }
26088 # So? What about this header?
26089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26090 yes:no: )
26091 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26092 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26093 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26094 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26095 ac_header_preproc=yes
26097 no:yes:* )
26098 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26099 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26100 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26101 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26102 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26103 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26104 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26105 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26106 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26107 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26108 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26109 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26110 ( cat <<\_ASBOX
26111 ## ------------------------------- ##
26112 ## Report this to www.asterisk.org ##
26113 ## ------------------------------- ##
26114 _ASBOX
26115 ) | sed "s/^/$as_me: WARNING: /" >&2
26117 esac
26118 { echo "$as_me:$LINENO: checking for " >&5
26119 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26120 if test "${ac_cv_header_+set}" = set; then
26121 echo $ECHO_N "(cached) $ECHO_C" >&6
26122 else
26123 ac_cv_header_=$ac_header_preproc
26125 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26126 echo "${ECHO_T}$ac_cv_header_" >&6; }
26129 if test $ac_cv_header_ = yes; then
26130 LOG10_HEADER_FOUND=1
26131 else
26132 LOG10_HEADER_FOUND=0
26136 CPPFLAGS="${saved_cppflags}"
26138 if test "x${LOG10_HEADER_FOUND}" = "x0" ; then
26139 LOG10_LIB=""
26140 LOG10_INCLUDE=""
26141 else
26142 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26143 LOG10_LIB=""
26145 PBX_LOG10=1
26146 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26148 cat >>confdefs.h <<_ACEOF
26149 #define HAVE_LOG10 1
26150 _ACEOF
26153 cat >>confdefs.h <<_ACEOF
26154 #define HAVE_LOG10_VERSION
26155 _ACEOF
26162 if test "x${PBX_SIN}" != "x1" -a "${USE_SIN}" != "no"; then
26163 pbxlibdir=""
26164 # if --with-SIN=DIR has been specified, use it.
26165 if test "x${SIN_DIR}" != "x"; then
26166 if test -d ${SIN_DIR}/lib; then
26167 pbxlibdir="-L${SIN_DIR}/lib"
26168 else
26169 pbxlibdir="-L${SIN_DIR}"
26172 pbxfuncname="sin"
26173 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26174 AST_SIN_FOUND=yes
26175 else
26176 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26177 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26178 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26179 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26180 echo $ECHO_N "(cached) $ECHO_C" >&6
26181 else
26182 ac_check_lib_save_LIBS=$LIBS
26183 LIBS="-lm ${pbxlibdir} $LIBS"
26184 cat >conftest.$ac_ext <<_ACEOF
26185 /* confdefs.h. */
26186 _ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h. */
26191 /* Override any GCC internal prototype to avoid an error.
26192 Use char because int might match the return type of a GCC
26193 builtin and then its argument prototype would still apply. */
26194 #ifdef __cplusplus
26195 extern "C"
26196 #endif
26197 char ${pbxfuncname} ();
26199 main ()
26201 return ${pbxfuncname} ();
26203 return 0;
26205 _ACEOF
26206 rm -f conftest.$ac_objext conftest$ac_exeext
26207 if { (ac_try="$ac_link"
26208 case "(($ac_try" in
26209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26210 *) ac_try_echo=$ac_try;;
26211 esac
26212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26213 (eval "$ac_link") 2>conftest.er1
26214 ac_status=$?
26215 grep -v '^ *+' conftest.er1 >conftest.err
26216 rm -f conftest.er1
26217 cat conftest.err >&5
26218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219 (exit $ac_status); } && {
26220 test -z "$ac_c_werror_flag" ||
26221 test ! -s conftest.err
26222 } && test -s conftest$ac_exeext &&
26223 $as_test_x conftest$ac_exeext; then
26224 eval "$as_ac_Lib=yes"
26225 else
26226 echo "$as_me: failed program was:" >&5
26227 sed 's/^/| /' conftest.$ac_ext >&5
26229 eval "$as_ac_Lib=no"
26232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26233 conftest$ac_exeext conftest.$ac_ext
26234 LIBS=$ac_check_lib_save_LIBS
26236 ac_res=`eval echo '${'$as_ac_Lib'}'`
26237 { echo "$as_me:$LINENO: result: $ac_res" >&5
26238 echo "${ECHO_T}$ac_res" >&6; }
26239 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26240 AST_SIN_FOUND=yes
26241 else
26242 AST_SIN_FOUND=no
26247 # now check for the header.
26248 if test "${AST_SIN_FOUND}" = "yes"; then
26249 SIN_LIB="${pbxlibdir} -lm "
26250 # if --with-SIN=DIR has been specified, use it.
26251 if test "x${SIN_DIR}" != "x"; then
26252 SIN_INCLUDE="-I${SIN_DIR}/include"
26254 SIN_INCLUDE="${SIN_INCLUDE} "
26255 if test "x" = "x" ; then # no header, assume found
26256 SIN_HEADER_FOUND="1"
26257 else # check for the header
26258 saved_cppflags="${CPPFLAGS}"
26259 CPPFLAGS="${CPPFLAGS} ${SIN_INCLUDE}"
26260 if test "${ac_cv_header_+set}" = set; then
26261 { echo "$as_me:$LINENO: checking for " >&5
26262 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26263 if test "${ac_cv_header_+set}" = set; then
26264 echo $ECHO_N "(cached) $ECHO_C" >&6
26266 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26267 echo "${ECHO_T}$ac_cv_header_" >&6; }
26268 else
26269 # Is the header compilable?
26270 { echo "$as_me:$LINENO: checking usability" >&5
26271 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26272 cat >conftest.$ac_ext <<_ACEOF
26273 /* confdefs.h. */
26274 _ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h. */
26278 $ac_includes_default
26279 #include <>
26280 _ACEOF
26281 rm -f conftest.$ac_objext
26282 if { (ac_try="$ac_compile"
26283 case "(($ac_try" in
26284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26285 *) ac_try_echo=$ac_try;;
26286 esac
26287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26288 (eval "$ac_compile") 2>conftest.er1
26289 ac_status=$?
26290 grep -v '^ *+' conftest.er1 >conftest.err
26291 rm -f conftest.er1
26292 cat conftest.err >&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); } && {
26295 test -z "$ac_c_werror_flag" ||
26296 test ! -s conftest.err
26297 } && test -s conftest.$ac_objext; then
26298 ac_header_compiler=yes
26299 else
26300 echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26303 ac_header_compiler=no
26306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26308 echo "${ECHO_T}$ac_header_compiler" >&6; }
26310 # Is the header present?
26311 { echo "$as_me:$LINENO: checking presence" >&5
26312 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26313 cat >conftest.$ac_ext <<_ACEOF
26314 /* confdefs.h. */
26315 _ACEOF
26316 cat confdefs.h >>conftest.$ac_ext
26317 cat >>conftest.$ac_ext <<_ACEOF
26318 /* end confdefs.h. */
26319 #include <>
26320 _ACEOF
26321 if { (ac_try="$ac_cpp conftest.$ac_ext"
26322 case "(($ac_try" in
26323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26324 *) ac_try_echo=$ac_try;;
26325 esac
26326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26328 ac_status=$?
26329 grep -v '^ *+' conftest.er1 >conftest.err
26330 rm -f conftest.er1
26331 cat conftest.err >&5
26332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333 (exit $ac_status); } >/dev/null && {
26334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26335 test ! -s conftest.err
26336 }; then
26337 ac_header_preproc=yes
26338 else
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26342 ac_header_preproc=no
26345 rm -f conftest.err conftest.$ac_ext
26346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26347 echo "${ECHO_T}$ac_header_preproc" >&6; }
26349 # So? What about this header?
26350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26351 yes:no: )
26352 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26353 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26354 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26355 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26356 ac_header_preproc=yes
26358 no:yes:* )
26359 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26360 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26361 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26362 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26363 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26364 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26365 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26366 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26367 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26368 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26369 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26370 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26371 ( cat <<\_ASBOX
26372 ## ------------------------------- ##
26373 ## Report this to www.asterisk.org ##
26374 ## ------------------------------- ##
26375 _ASBOX
26376 ) | sed "s/^/$as_me: WARNING: /" >&2
26378 esac
26379 { echo "$as_me:$LINENO: checking for " >&5
26380 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26381 if test "${ac_cv_header_+set}" = set; then
26382 echo $ECHO_N "(cached) $ECHO_C" >&6
26383 else
26384 ac_cv_header_=$ac_header_preproc
26386 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26387 echo "${ECHO_T}$ac_cv_header_" >&6; }
26390 if test $ac_cv_header_ = yes; then
26391 SIN_HEADER_FOUND=1
26392 else
26393 SIN_HEADER_FOUND=0
26397 CPPFLAGS="${saved_cppflags}"
26399 if test "x${SIN_HEADER_FOUND}" = "x0" ; then
26400 SIN_LIB=""
26401 SIN_INCLUDE=""
26402 else
26403 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26404 SIN_LIB=""
26406 PBX_SIN=1
26407 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26409 cat >>confdefs.h <<_ACEOF
26410 #define HAVE_SIN 1
26411 _ACEOF
26414 cat >>confdefs.h <<_ACEOF
26415 #define HAVE_SIN_VERSION
26416 _ACEOF
26423 if test "x${PBX_COS}" != "x1" -a "${USE_COS}" != "no"; then
26424 pbxlibdir=""
26425 # if --with-COS=DIR has been specified, use it.
26426 if test "x${COS_DIR}" != "x"; then
26427 if test -d ${COS_DIR}/lib; then
26428 pbxlibdir="-L${COS_DIR}/lib"
26429 else
26430 pbxlibdir="-L${COS_DIR}"
26433 pbxfuncname="cos"
26434 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26435 AST_COS_FOUND=yes
26436 else
26437 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26438 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26439 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26440 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26442 else
26443 ac_check_lib_save_LIBS=$LIBS
26444 LIBS="-lm ${pbxlibdir} $LIBS"
26445 cat >conftest.$ac_ext <<_ACEOF
26446 /* confdefs.h. */
26447 _ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h. */
26452 /* Override any GCC internal prototype to avoid an error.
26453 Use char because int might match the return type of a GCC
26454 builtin and then its argument prototype would still apply. */
26455 #ifdef __cplusplus
26456 extern "C"
26457 #endif
26458 char ${pbxfuncname} ();
26460 main ()
26462 return ${pbxfuncname} ();
26464 return 0;
26466 _ACEOF
26467 rm -f conftest.$ac_objext conftest$ac_exeext
26468 if { (ac_try="$ac_link"
26469 case "(($ac_try" in
26470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26471 *) ac_try_echo=$ac_try;;
26472 esac
26473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26474 (eval "$ac_link") 2>conftest.er1
26475 ac_status=$?
26476 grep -v '^ *+' conftest.er1 >conftest.err
26477 rm -f conftest.er1
26478 cat conftest.err >&5
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); } && {
26481 test -z "$ac_c_werror_flag" ||
26482 test ! -s conftest.err
26483 } && test -s conftest$ac_exeext &&
26484 $as_test_x conftest$ac_exeext; then
26485 eval "$as_ac_Lib=yes"
26486 else
26487 echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26490 eval "$as_ac_Lib=no"
26493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26494 conftest$ac_exeext conftest.$ac_ext
26495 LIBS=$ac_check_lib_save_LIBS
26497 ac_res=`eval echo '${'$as_ac_Lib'}'`
26498 { echo "$as_me:$LINENO: result: $ac_res" >&5
26499 echo "${ECHO_T}$ac_res" >&6; }
26500 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26501 AST_COS_FOUND=yes
26502 else
26503 AST_COS_FOUND=no
26508 # now check for the header.
26509 if test "${AST_COS_FOUND}" = "yes"; then
26510 COS_LIB="${pbxlibdir} -lm "
26511 # if --with-COS=DIR has been specified, use it.
26512 if test "x${COS_DIR}" != "x"; then
26513 COS_INCLUDE="-I${COS_DIR}/include"
26515 COS_INCLUDE="${COS_INCLUDE} "
26516 if test "x" = "x" ; then # no header, assume found
26517 COS_HEADER_FOUND="1"
26518 else # check for the header
26519 saved_cppflags="${CPPFLAGS}"
26520 CPPFLAGS="${CPPFLAGS} ${COS_INCLUDE}"
26521 if test "${ac_cv_header_+set}" = set; then
26522 { echo "$as_me:$LINENO: checking for " >&5
26523 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26524 if test "${ac_cv_header_+set}" = set; then
26525 echo $ECHO_N "(cached) $ECHO_C" >&6
26527 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26528 echo "${ECHO_T}$ac_cv_header_" >&6; }
26529 else
26530 # Is the header compilable?
26531 { echo "$as_me:$LINENO: checking usability" >&5
26532 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26533 cat >conftest.$ac_ext <<_ACEOF
26534 /* confdefs.h. */
26535 _ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h. */
26539 $ac_includes_default
26540 #include <>
26541 _ACEOF
26542 rm -f conftest.$ac_objext
26543 if { (ac_try="$ac_compile"
26544 case "(($ac_try" in
26545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26546 *) ac_try_echo=$ac_try;;
26547 esac
26548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26549 (eval "$ac_compile") 2>conftest.er1
26550 ac_status=$?
26551 grep -v '^ *+' conftest.er1 >conftest.err
26552 rm -f conftest.er1
26553 cat conftest.err >&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); } && {
26556 test -z "$ac_c_werror_flag" ||
26557 test ! -s conftest.err
26558 } && test -s conftest.$ac_objext; then
26559 ac_header_compiler=yes
26560 else
26561 echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26564 ac_header_compiler=no
26567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26569 echo "${ECHO_T}$ac_header_compiler" >&6; }
26571 # Is the header present?
26572 { echo "$as_me:$LINENO: checking presence" >&5
26573 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26574 cat >conftest.$ac_ext <<_ACEOF
26575 /* confdefs.h. */
26576 _ACEOF
26577 cat confdefs.h >>conftest.$ac_ext
26578 cat >>conftest.$ac_ext <<_ACEOF
26579 /* end confdefs.h. */
26580 #include <>
26581 _ACEOF
26582 if { (ac_try="$ac_cpp conftest.$ac_ext"
26583 case "(($ac_try" in
26584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26585 *) ac_try_echo=$ac_try;;
26586 esac
26587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26589 ac_status=$?
26590 grep -v '^ *+' conftest.er1 >conftest.err
26591 rm -f conftest.er1
26592 cat conftest.err >&5
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); } >/dev/null && {
26595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26596 test ! -s conftest.err
26597 }; then
26598 ac_header_preproc=yes
26599 else
26600 echo "$as_me: failed program was:" >&5
26601 sed 's/^/| /' conftest.$ac_ext >&5
26603 ac_header_preproc=no
26606 rm -f conftest.err conftest.$ac_ext
26607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26608 echo "${ECHO_T}$ac_header_preproc" >&6; }
26610 # So? What about this header?
26611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26612 yes:no: )
26613 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26614 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26615 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26616 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26617 ac_header_preproc=yes
26619 no:yes:* )
26620 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26621 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26622 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26623 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26624 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26625 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26626 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26627 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26628 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26629 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26630 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26631 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26632 ( cat <<\_ASBOX
26633 ## ------------------------------- ##
26634 ## Report this to www.asterisk.org ##
26635 ## ------------------------------- ##
26636 _ASBOX
26637 ) | sed "s/^/$as_me: WARNING: /" >&2
26639 esac
26640 { echo "$as_me:$LINENO: checking for " >&5
26641 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26642 if test "${ac_cv_header_+set}" = set; then
26643 echo $ECHO_N "(cached) $ECHO_C" >&6
26644 else
26645 ac_cv_header_=$ac_header_preproc
26647 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26648 echo "${ECHO_T}$ac_cv_header_" >&6; }
26651 if test $ac_cv_header_ = yes; then
26652 COS_HEADER_FOUND=1
26653 else
26654 COS_HEADER_FOUND=0
26658 CPPFLAGS="${saved_cppflags}"
26660 if test "x${COS_HEADER_FOUND}" = "x0" ; then
26661 COS_LIB=""
26662 COS_INCLUDE=""
26663 else
26664 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26665 COS_LIB=""
26667 PBX_COS=1
26668 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26670 cat >>confdefs.h <<_ACEOF
26671 #define HAVE_COS 1
26672 _ACEOF
26675 cat >>confdefs.h <<_ACEOF
26676 #define HAVE_COS_VERSION
26677 _ACEOF
26684 if test "x${PBX_TAN}" != "x1" -a "${USE_TAN}" != "no"; then
26685 pbxlibdir=""
26686 # if --with-TAN=DIR has been specified, use it.
26687 if test "x${TAN_DIR}" != "x"; then
26688 if test -d ${TAN_DIR}/lib; then
26689 pbxlibdir="-L${TAN_DIR}/lib"
26690 else
26691 pbxlibdir="-L${TAN_DIR}"
26694 pbxfuncname="tan"
26695 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26696 AST_TAN_FOUND=yes
26697 else
26698 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26699 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26700 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26701 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26702 echo $ECHO_N "(cached) $ECHO_C" >&6
26703 else
26704 ac_check_lib_save_LIBS=$LIBS
26705 LIBS="-lm ${pbxlibdir} $LIBS"
26706 cat >conftest.$ac_ext <<_ACEOF
26707 /* confdefs.h. */
26708 _ACEOF
26709 cat confdefs.h >>conftest.$ac_ext
26710 cat >>conftest.$ac_ext <<_ACEOF
26711 /* end confdefs.h. */
26713 /* Override any GCC internal prototype to avoid an error.
26714 Use char because int might match the return type of a GCC
26715 builtin and then its argument prototype would still apply. */
26716 #ifdef __cplusplus
26717 extern "C"
26718 #endif
26719 char ${pbxfuncname} ();
26721 main ()
26723 return ${pbxfuncname} ();
26725 return 0;
26727 _ACEOF
26728 rm -f conftest.$ac_objext conftest$ac_exeext
26729 if { (ac_try="$ac_link"
26730 case "(($ac_try" in
26731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26732 *) ac_try_echo=$ac_try;;
26733 esac
26734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26735 (eval "$ac_link") 2>conftest.er1
26736 ac_status=$?
26737 grep -v '^ *+' conftest.er1 >conftest.err
26738 rm -f conftest.er1
26739 cat conftest.err >&5
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); } && {
26742 test -z "$ac_c_werror_flag" ||
26743 test ! -s conftest.err
26744 } && test -s conftest$ac_exeext &&
26745 $as_test_x conftest$ac_exeext; then
26746 eval "$as_ac_Lib=yes"
26747 else
26748 echo "$as_me: failed program was:" >&5
26749 sed 's/^/| /' conftest.$ac_ext >&5
26751 eval "$as_ac_Lib=no"
26754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26755 conftest$ac_exeext conftest.$ac_ext
26756 LIBS=$ac_check_lib_save_LIBS
26758 ac_res=`eval echo '${'$as_ac_Lib'}'`
26759 { echo "$as_me:$LINENO: result: $ac_res" >&5
26760 echo "${ECHO_T}$ac_res" >&6; }
26761 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26762 AST_TAN_FOUND=yes
26763 else
26764 AST_TAN_FOUND=no
26769 # now check for the header.
26770 if test "${AST_TAN_FOUND}" = "yes"; then
26771 TAN_LIB="${pbxlibdir} -lm "
26772 # if --with-TAN=DIR has been specified, use it.
26773 if test "x${TAN_DIR}" != "x"; then
26774 TAN_INCLUDE="-I${TAN_DIR}/include"
26776 TAN_INCLUDE="${TAN_INCLUDE} "
26777 if test "x" = "x" ; then # no header, assume found
26778 TAN_HEADER_FOUND="1"
26779 else # check for the header
26780 saved_cppflags="${CPPFLAGS}"
26781 CPPFLAGS="${CPPFLAGS} ${TAN_INCLUDE}"
26782 if test "${ac_cv_header_+set}" = set; then
26783 { echo "$as_me:$LINENO: checking for " >&5
26784 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26785 if test "${ac_cv_header_+set}" = set; then
26786 echo $ECHO_N "(cached) $ECHO_C" >&6
26788 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26789 echo "${ECHO_T}$ac_cv_header_" >&6; }
26790 else
26791 # Is the header compilable?
26792 { echo "$as_me:$LINENO: checking usability" >&5
26793 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26794 cat >conftest.$ac_ext <<_ACEOF
26795 /* confdefs.h. */
26796 _ACEOF
26797 cat confdefs.h >>conftest.$ac_ext
26798 cat >>conftest.$ac_ext <<_ACEOF
26799 /* end confdefs.h. */
26800 $ac_includes_default
26801 #include <>
26802 _ACEOF
26803 rm -f conftest.$ac_objext
26804 if { (ac_try="$ac_compile"
26805 case "(($ac_try" in
26806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26807 *) ac_try_echo=$ac_try;;
26808 esac
26809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26810 (eval "$ac_compile") 2>conftest.er1
26811 ac_status=$?
26812 grep -v '^ *+' conftest.er1 >conftest.err
26813 rm -f conftest.er1
26814 cat conftest.err >&5
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); } && {
26817 test -z "$ac_c_werror_flag" ||
26818 test ! -s conftest.err
26819 } && test -s conftest.$ac_objext; then
26820 ac_header_compiler=yes
26821 else
26822 echo "$as_me: failed program was:" >&5
26823 sed 's/^/| /' conftest.$ac_ext >&5
26825 ac_header_compiler=no
26828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26830 echo "${ECHO_T}$ac_header_compiler" >&6; }
26832 # Is the header present?
26833 { echo "$as_me:$LINENO: checking presence" >&5
26834 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26835 cat >conftest.$ac_ext <<_ACEOF
26836 /* confdefs.h. */
26837 _ACEOF
26838 cat confdefs.h >>conftest.$ac_ext
26839 cat >>conftest.$ac_ext <<_ACEOF
26840 /* end confdefs.h. */
26841 #include <>
26842 _ACEOF
26843 if { (ac_try="$ac_cpp conftest.$ac_ext"
26844 case "(($ac_try" in
26845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846 *) ac_try_echo=$ac_try;;
26847 esac
26848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26850 ac_status=$?
26851 grep -v '^ *+' conftest.er1 >conftest.err
26852 rm -f conftest.er1
26853 cat conftest.err >&5
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); } >/dev/null && {
26856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26857 test ! -s conftest.err
26858 }; then
26859 ac_header_preproc=yes
26860 else
26861 echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26864 ac_header_preproc=no
26867 rm -f conftest.err conftest.$ac_ext
26868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26869 echo "${ECHO_T}$ac_header_preproc" >&6; }
26871 # So? What about this header?
26872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26873 yes:no: )
26874 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26875 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26876 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26877 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26878 ac_header_preproc=yes
26880 no:yes:* )
26881 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26882 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26883 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26884 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26885 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26886 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26887 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26888 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26889 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26890 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26891 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26892 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26893 ( cat <<\_ASBOX
26894 ## ------------------------------- ##
26895 ## Report this to www.asterisk.org ##
26896 ## ------------------------------- ##
26897 _ASBOX
26898 ) | sed "s/^/$as_me: WARNING: /" >&2
26900 esac
26901 { echo "$as_me:$LINENO: checking for " >&5
26902 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26903 if test "${ac_cv_header_+set}" = set; then
26904 echo $ECHO_N "(cached) $ECHO_C" >&6
26905 else
26906 ac_cv_header_=$ac_header_preproc
26908 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26909 echo "${ECHO_T}$ac_cv_header_" >&6; }
26912 if test $ac_cv_header_ = yes; then
26913 TAN_HEADER_FOUND=1
26914 else
26915 TAN_HEADER_FOUND=0
26919 CPPFLAGS="${saved_cppflags}"
26921 if test "x${TAN_HEADER_FOUND}" = "x0" ; then
26922 TAN_LIB=""
26923 TAN_INCLUDE=""
26924 else
26925 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26926 TAN_LIB=""
26928 PBX_TAN=1
26929 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26931 cat >>confdefs.h <<_ACEOF
26932 #define HAVE_TAN 1
26933 _ACEOF
26936 cat >>confdefs.h <<_ACEOF
26937 #define HAVE_TAN_VERSION
26938 _ACEOF
26945 if test "x${PBX_ASIN}" != "x1" -a "${USE_ASIN}" != "no"; then
26946 pbxlibdir=""
26947 # if --with-ASIN=DIR has been specified, use it.
26948 if test "x${ASIN_DIR}" != "x"; then
26949 if test -d ${ASIN_DIR}/lib; then
26950 pbxlibdir="-L${ASIN_DIR}/lib"
26951 else
26952 pbxlibdir="-L${ASIN_DIR}"
26955 pbxfuncname="asin"
26956 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26957 AST_ASIN_FOUND=yes
26958 else
26959 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26960 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26961 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26962 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26963 echo $ECHO_N "(cached) $ECHO_C" >&6
26964 else
26965 ac_check_lib_save_LIBS=$LIBS
26966 LIBS="-lm ${pbxlibdir} $LIBS"
26967 cat >conftest.$ac_ext <<_ACEOF
26968 /* confdefs.h. */
26969 _ACEOF
26970 cat confdefs.h >>conftest.$ac_ext
26971 cat >>conftest.$ac_ext <<_ACEOF
26972 /* end confdefs.h. */
26974 /* Override any GCC internal prototype to avoid an error.
26975 Use char because int might match the return type of a GCC
26976 builtin and then its argument prototype would still apply. */
26977 #ifdef __cplusplus
26978 extern "C"
26979 #endif
26980 char ${pbxfuncname} ();
26982 main ()
26984 return ${pbxfuncname} ();
26986 return 0;
26988 _ACEOF
26989 rm -f conftest.$ac_objext conftest$ac_exeext
26990 if { (ac_try="$ac_link"
26991 case "(($ac_try" in
26992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993 *) ac_try_echo=$ac_try;;
26994 esac
26995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996 (eval "$ac_link") 2>conftest.er1
26997 ac_status=$?
26998 grep -v '^ *+' conftest.er1 >conftest.err
26999 rm -f conftest.er1
27000 cat conftest.err >&5
27001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); } && {
27003 test -z "$ac_c_werror_flag" ||
27004 test ! -s conftest.err
27005 } && test -s conftest$ac_exeext &&
27006 $as_test_x conftest$ac_exeext; then
27007 eval "$as_ac_Lib=yes"
27008 else
27009 echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.$ac_ext >&5
27012 eval "$as_ac_Lib=no"
27015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27016 conftest$ac_exeext conftest.$ac_ext
27017 LIBS=$ac_check_lib_save_LIBS
27019 ac_res=`eval echo '${'$as_ac_Lib'}'`
27020 { echo "$as_me:$LINENO: result: $ac_res" >&5
27021 echo "${ECHO_T}$ac_res" >&6; }
27022 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27023 AST_ASIN_FOUND=yes
27024 else
27025 AST_ASIN_FOUND=no
27030 # now check for the header.
27031 if test "${AST_ASIN_FOUND}" = "yes"; then
27032 ASIN_LIB="${pbxlibdir} -lm "
27033 # if --with-ASIN=DIR has been specified, use it.
27034 if test "x${ASIN_DIR}" != "x"; then
27035 ASIN_INCLUDE="-I${ASIN_DIR}/include"
27037 ASIN_INCLUDE="${ASIN_INCLUDE} "
27038 if test "x" = "x" ; then # no header, assume found
27039 ASIN_HEADER_FOUND="1"
27040 else # check for the header
27041 saved_cppflags="${CPPFLAGS}"
27042 CPPFLAGS="${CPPFLAGS} ${ASIN_INCLUDE}"
27043 if test "${ac_cv_header_+set}" = set; then
27044 { echo "$as_me:$LINENO: checking for " >&5
27045 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27046 if test "${ac_cv_header_+set}" = set; then
27047 echo $ECHO_N "(cached) $ECHO_C" >&6
27049 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27050 echo "${ECHO_T}$ac_cv_header_" >&6; }
27051 else
27052 # Is the header compilable?
27053 { echo "$as_me:$LINENO: checking usability" >&5
27054 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27055 cat >conftest.$ac_ext <<_ACEOF
27056 /* confdefs.h. */
27057 _ACEOF
27058 cat confdefs.h >>conftest.$ac_ext
27059 cat >>conftest.$ac_ext <<_ACEOF
27060 /* end confdefs.h. */
27061 $ac_includes_default
27062 #include <>
27063 _ACEOF
27064 rm -f conftest.$ac_objext
27065 if { (ac_try="$ac_compile"
27066 case "(($ac_try" in
27067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27068 *) ac_try_echo=$ac_try;;
27069 esac
27070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27071 (eval "$ac_compile") 2>conftest.er1
27072 ac_status=$?
27073 grep -v '^ *+' conftest.er1 >conftest.err
27074 rm -f conftest.er1
27075 cat conftest.err >&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } && {
27078 test -z "$ac_c_werror_flag" ||
27079 test ! -s conftest.err
27080 } && test -s conftest.$ac_objext; then
27081 ac_header_compiler=yes
27082 else
27083 echo "$as_me: failed program was:" >&5
27084 sed 's/^/| /' conftest.$ac_ext >&5
27086 ac_header_compiler=no
27089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27091 echo "${ECHO_T}$ac_header_compiler" >&6; }
27093 # Is the header present?
27094 { echo "$as_me:$LINENO: checking presence" >&5
27095 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27096 cat >conftest.$ac_ext <<_ACEOF
27097 /* confdefs.h. */
27098 _ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h. */
27102 #include <>
27103 _ACEOF
27104 if { (ac_try="$ac_cpp conftest.$ac_ext"
27105 case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27108 esac
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27111 ac_status=$?
27112 grep -v '^ *+' conftest.er1 >conftest.err
27113 rm -f conftest.er1
27114 cat conftest.err >&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); } >/dev/null && {
27117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27118 test ! -s conftest.err
27119 }; then
27120 ac_header_preproc=yes
27121 else
27122 echo "$as_me: failed program was:" >&5
27123 sed 's/^/| /' conftest.$ac_ext >&5
27125 ac_header_preproc=no
27128 rm -f conftest.err conftest.$ac_ext
27129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27130 echo "${ECHO_T}$ac_header_preproc" >&6; }
27132 # So? What about this header?
27133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27134 yes:no: )
27135 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27136 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27137 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27138 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27139 ac_header_preproc=yes
27141 no:yes:* )
27142 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27143 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27144 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27145 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27146 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27147 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27148 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27149 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27150 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27151 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27152 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27153 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27154 ( cat <<\_ASBOX
27155 ## ------------------------------- ##
27156 ## Report this to www.asterisk.org ##
27157 ## ------------------------------- ##
27158 _ASBOX
27159 ) | sed "s/^/$as_me: WARNING: /" >&2
27161 esac
27162 { echo "$as_me:$LINENO: checking for " >&5
27163 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27164 if test "${ac_cv_header_+set}" = set; then
27165 echo $ECHO_N "(cached) $ECHO_C" >&6
27166 else
27167 ac_cv_header_=$ac_header_preproc
27169 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27170 echo "${ECHO_T}$ac_cv_header_" >&6; }
27173 if test $ac_cv_header_ = yes; then
27174 ASIN_HEADER_FOUND=1
27175 else
27176 ASIN_HEADER_FOUND=0
27180 CPPFLAGS="${saved_cppflags}"
27182 if test "x${ASIN_HEADER_FOUND}" = "x0" ; then
27183 ASIN_LIB=""
27184 ASIN_INCLUDE=""
27185 else
27186 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27187 ASIN_LIB=""
27189 PBX_ASIN=1
27190 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27192 cat >>confdefs.h <<_ACEOF
27193 #define HAVE_ASIN 1
27194 _ACEOF
27197 cat >>confdefs.h <<_ACEOF
27198 #define HAVE_ASIN_VERSION
27199 _ACEOF
27206 if test "x${PBX_ACOS}" != "x1" -a "${USE_ACOS}" != "no"; then
27207 pbxlibdir=""
27208 # if --with-ACOS=DIR has been specified, use it.
27209 if test "x${ACOS_DIR}" != "x"; then
27210 if test -d ${ACOS_DIR}/lib; then
27211 pbxlibdir="-L${ACOS_DIR}/lib"
27212 else
27213 pbxlibdir="-L${ACOS_DIR}"
27216 pbxfuncname="acos"
27217 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27218 AST_ACOS_FOUND=yes
27219 else
27220 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27221 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27222 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27223 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27224 echo $ECHO_N "(cached) $ECHO_C" >&6
27225 else
27226 ac_check_lib_save_LIBS=$LIBS
27227 LIBS="-lm ${pbxlibdir} $LIBS"
27228 cat >conftest.$ac_ext <<_ACEOF
27229 /* confdefs.h. */
27230 _ACEOF
27231 cat confdefs.h >>conftest.$ac_ext
27232 cat >>conftest.$ac_ext <<_ACEOF
27233 /* end confdefs.h. */
27235 /* Override any GCC internal prototype to avoid an error.
27236 Use char because int might match the return type of a GCC
27237 builtin and then its argument prototype would still apply. */
27238 #ifdef __cplusplus
27239 extern "C"
27240 #endif
27241 char ${pbxfuncname} ();
27243 main ()
27245 return ${pbxfuncname} ();
27247 return 0;
27249 _ACEOF
27250 rm -f conftest.$ac_objext conftest$ac_exeext
27251 if { (ac_try="$ac_link"
27252 case "(($ac_try" in
27253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27254 *) ac_try_echo=$ac_try;;
27255 esac
27256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27257 (eval "$ac_link") 2>conftest.er1
27258 ac_status=$?
27259 grep -v '^ *+' conftest.er1 >conftest.err
27260 rm -f conftest.er1
27261 cat conftest.err >&5
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); } && {
27264 test -z "$ac_c_werror_flag" ||
27265 test ! -s conftest.err
27266 } && test -s conftest$ac_exeext &&
27267 $as_test_x conftest$ac_exeext; then
27268 eval "$as_ac_Lib=yes"
27269 else
27270 echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27273 eval "$as_ac_Lib=no"
27276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27277 conftest$ac_exeext conftest.$ac_ext
27278 LIBS=$ac_check_lib_save_LIBS
27280 ac_res=`eval echo '${'$as_ac_Lib'}'`
27281 { echo "$as_me:$LINENO: result: $ac_res" >&5
27282 echo "${ECHO_T}$ac_res" >&6; }
27283 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27284 AST_ACOS_FOUND=yes
27285 else
27286 AST_ACOS_FOUND=no
27291 # now check for the header.
27292 if test "${AST_ACOS_FOUND}" = "yes"; then
27293 ACOS_LIB="${pbxlibdir} -lm "
27294 # if --with-ACOS=DIR has been specified, use it.
27295 if test "x${ACOS_DIR}" != "x"; then
27296 ACOS_INCLUDE="-I${ACOS_DIR}/include"
27298 ACOS_INCLUDE="${ACOS_INCLUDE} "
27299 if test "x" = "x" ; then # no header, assume found
27300 ACOS_HEADER_FOUND="1"
27301 else # check for the header
27302 saved_cppflags="${CPPFLAGS}"
27303 CPPFLAGS="${CPPFLAGS} ${ACOS_INCLUDE}"
27304 if test "${ac_cv_header_+set}" = set; then
27305 { echo "$as_me:$LINENO: checking for " >&5
27306 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27307 if test "${ac_cv_header_+set}" = set; then
27308 echo $ECHO_N "(cached) $ECHO_C" >&6
27310 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27311 echo "${ECHO_T}$ac_cv_header_" >&6; }
27312 else
27313 # Is the header compilable?
27314 { echo "$as_me:$LINENO: checking usability" >&5
27315 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27316 cat >conftest.$ac_ext <<_ACEOF
27317 /* confdefs.h. */
27318 _ACEOF
27319 cat confdefs.h >>conftest.$ac_ext
27320 cat >>conftest.$ac_ext <<_ACEOF
27321 /* end confdefs.h. */
27322 $ac_includes_default
27323 #include <>
27324 _ACEOF
27325 rm -f conftest.$ac_objext
27326 if { (ac_try="$ac_compile"
27327 case "(($ac_try" in
27328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27329 *) ac_try_echo=$ac_try;;
27330 esac
27331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27332 (eval "$ac_compile") 2>conftest.er1
27333 ac_status=$?
27334 grep -v '^ *+' conftest.er1 >conftest.err
27335 rm -f conftest.er1
27336 cat conftest.err >&5
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); } && {
27339 test -z "$ac_c_werror_flag" ||
27340 test ! -s conftest.err
27341 } && test -s conftest.$ac_objext; then
27342 ac_header_compiler=yes
27343 else
27344 echo "$as_me: failed program was:" >&5
27345 sed 's/^/| /' conftest.$ac_ext >&5
27347 ac_header_compiler=no
27350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27352 echo "${ECHO_T}$ac_header_compiler" >&6; }
27354 # Is the header present?
27355 { echo "$as_me:$LINENO: checking presence" >&5
27356 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27357 cat >conftest.$ac_ext <<_ACEOF
27358 /* confdefs.h. */
27359 _ACEOF
27360 cat confdefs.h >>conftest.$ac_ext
27361 cat >>conftest.$ac_ext <<_ACEOF
27362 /* end confdefs.h. */
27363 #include <>
27364 _ACEOF
27365 if { (ac_try="$ac_cpp conftest.$ac_ext"
27366 case "(($ac_try" in
27367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368 *) ac_try_echo=$ac_try;;
27369 esac
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27372 ac_status=$?
27373 grep -v '^ *+' conftest.er1 >conftest.err
27374 rm -f conftest.er1
27375 cat conftest.err >&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); } >/dev/null && {
27378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27379 test ! -s conftest.err
27380 }; then
27381 ac_header_preproc=yes
27382 else
27383 echo "$as_me: failed program was:" >&5
27384 sed 's/^/| /' conftest.$ac_ext >&5
27386 ac_header_preproc=no
27389 rm -f conftest.err conftest.$ac_ext
27390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27391 echo "${ECHO_T}$ac_header_preproc" >&6; }
27393 # So? What about this header?
27394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27395 yes:no: )
27396 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27397 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27398 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27399 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27400 ac_header_preproc=yes
27402 no:yes:* )
27403 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27404 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27405 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27406 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27407 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27408 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27409 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27410 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27411 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27412 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27413 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27414 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27415 ( cat <<\_ASBOX
27416 ## ------------------------------- ##
27417 ## Report this to www.asterisk.org ##
27418 ## ------------------------------- ##
27419 _ASBOX
27420 ) | sed "s/^/$as_me: WARNING: /" >&2
27422 esac
27423 { echo "$as_me:$LINENO: checking for " >&5
27424 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27425 if test "${ac_cv_header_+set}" = set; then
27426 echo $ECHO_N "(cached) $ECHO_C" >&6
27427 else
27428 ac_cv_header_=$ac_header_preproc
27430 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27431 echo "${ECHO_T}$ac_cv_header_" >&6; }
27434 if test $ac_cv_header_ = yes; then
27435 ACOS_HEADER_FOUND=1
27436 else
27437 ACOS_HEADER_FOUND=0
27441 CPPFLAGS="${saved_cppflags}"
27443 if test "x${ACOS_HEADER_FOUND}" = "x0" ; then
27444 ACOS_LIB=""
27445 ACOS_INCLUDE=""
27446 else
27447 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27448 ACOS_LIB=""
27450 PBX_ACOS=1
27451 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27453 cat >>confdefs.h <<_ACEOF
27454 #define HAVE_ACOS 1
27455 _ACEOF
27458 cat >>confdefs.h <<_ACEOF
27459 #define HAVE_ACOS_VERSION
27460 _ACEOF
27467 if test "x${PBX_ATAN}" != "x1" -a "${USE_ATAN}" != "no"; then
27468 pbxlibdir=""
27469 # if --with-ATAN=DIR has been specified, use it.
27470 if test "x${ATAN_DIR}" != "x"; then
27471 if test -d ${ATAN_DIR}/lib; then
27472 pbxlibdir="-L${ATAN_DIR}/lib"
27473 else
27474 pbxlibdir="-L${ATAN_DIR}"
27477 pbxfuncname="atan"
27478 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27479 AST_ATAN_FOUND=yes
27480 else
27481 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27482 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27483 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27484 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27485 echo $ECHO_N "(cached) $ECHO_C" >&6
27486 else
27487 ac_check_lib_save_LIBS=$LIBS
27488 LIBS="-lm ${pbxlibdir} $LIBS"
27489 cat >conftest.$ac_ext <<_ACEOF
27490 /* confdefs.h. */
27491 _ACEOF
27492 cat confdefs.h >>conftest.$ac_ext
27493 cat >>conftest.$ac_ext <<_ACEOF
27494 /* end confdefs.h. */
27496 /* Override any GCC internal prototype to avoid an error.
27497 Use char because int might match the return type of a GCC
27498 builtin and then its argument prototype would still apply. */
27499 #ifdef __cplusplus
27500 extern "C"
27501 #endif
27502 char ${pbxfuncname} ();
27504 main ()
27506 return ${pbxfuncname} ();
27508 return 0;
27510 _ACEOF
27511 rm -f conftest.$ac_objext conftest$ac_exeext
27512 if { (ac_try="$ac_link"
27513 case "(($ac_try" in
27514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515 *) ac_try_echo=$ac_try;;
27516 esac
27517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518 (eval "$ac_link") 2>conftest.er1
27519 ac_status=$?
27520 grep -v '^ *+' conftest.er1 >conftest.err
27521 rm -f conftest.er1
27522 cat conftest.err >&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); } && {
27525 test -z "$ac_c_werror_flag" ||
27526 test ! -s conftest.err
27527 } && test -s conftest$ac_exeext &&
27528 $as_test_x conftest$ac_exeext; then
27529 eval "$as_ac_Lib=yes"
27530 else
27531 echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27534 eval "$as_ac_Lib=no"
27537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27538 conftest$ac_exeext conftest.$ac_ext
27539 LIBS=$ac_check_lib_save_LIBS
27541 ac_res=`eval echo '${'$as_ac_Lib'}'`
27542 { echo "$as_me:$LINENO: result: $ac_res" >&5
27543 echo "${ECHO_T}$ac_res" >&6; }
27544 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27545 AST_ATAN_FOUND=yes
27546 else
27547 AST_ATAN_FOUND=no
27552 # now check for the header.
27553 if test "${AST_ATAN_FOUND}" = "yes"; then
27554 ATAN_LIB="${pbxlibdir} -lm "
27555 # if --with-ATAN=DIR has been specified, use it.
27556 if test "x${ATAN_DIR}" != "x"; then
27557 ATAN_INCLUDE="-I${ATAN_DIR}/include"
27559 ATAN_INCLUDE="${ATAN_INCLUDE} "
27560 if test "x" = "x" ; then # no header, assume found
27561 ATAN_HEADER_FOUND="1"
27562 else # check for the header
27563 saved_cppflags="${CPPFLAGS}"
27564 CPPFLAGS="${CPPFLAGS} ${ATAN_INCLUDE}"
27565 if test "${ac_cv_header_+set}" = set; then
27566 { echo "$as_me:$LINENO: checking for " >&5
27567 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27568 if test "${ac_cv_header_+set}" = set; then
27569 echo $ECHO_N "(cached) $ECHO_C" >&6
27571 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27572 echo "${ECHO_T}$ac_cv_header_" >&6; }
27573 else
27574 # Is the header compilable?
27575 { echo "$as_me:$LINENO: checking usability" >&5
27576 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27577 cat >conftest.$ac_ext <<_ACEOF
27578 /* confdefs.h. */
27579 _ACEOF
27580 cat confdefs.h >>conftest.$ac_ext
27581 cat >>conftest.$ac_ext <<_ACEOF
27582 /* end confdefs.h. */
27583 $ac_includes_default
27584 #include <>
27585 _ACEOF
27586 rm -f conftest.$ac_objext
27587 if { (ac_try="$ac_compile"
27588 case "(($ac_try" in
27589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27590 *) ac_try_echo=$ac_try;;
27591 esac
27592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27593 (eval "$ac_compile") 2>conftest.er1
27594 ac_status=$?
27595 grep -v '^ *+' conftest.er1 >conftest.err
27596 rm -f conftest.er1
27597 cat conftest.err >&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); } && {
27600 test -z "$ac_c_werror_flag" ||
27601 test ! -s conftest.err
27602 } && test -s conftest.$ac_objext; then
27603 ac_header_compiler=yes
27604 else
27605 echo "$as_me: failed program was:" >&5
27606 sed 's/^/| /' conftest.$ac_ext >&5
27608 ac_header_compiler=no
27611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27613 echo "${ECHO_T}$ac_header_compiler" >&6; }
27615 # Is the header present?
27616 { echo "$as_me:$LINENO: checking presence" >&5
27617 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27618 cat >conftest.$ac_ext <<_ACEOF
27619 /* confdefs.h. */
27620 _ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h. */
27624 #include <>
27625 _ACEOF
27626 if { (ac_try="$ac_cpp conftest.$ac_ext"
27627 case "(($ac_try" in
27628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27629 *) ac_try_echo=$ac_try;;
27630 esac
27631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27633 ac_status=$?
27634 grep -v '^ *+' conftest.er1 >conftest.err
27635 rm -f conftest.er1
27636 cat conftest.err >&5
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); } >/dev/null && {
27639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27640 test ! -s conftest.err
27641 }; then
27642 ac_header_preproc=yes
27643 else
27644 echo "$as_me: failed program was:" >&5
27645 sed 's/^/| /' conftest.$ac_ext >&5
27647 ac_header_preproc=no
27650 rm -f conftest.err conftest.$ac_ext
27651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27652 echo "${ECHO_T}$ac_header_preproc" >&6; }
27654 # So? What about this header?
27655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27656 yes:no: )
27657 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27658 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27659 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27660 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27661 ac_header_preproc=yes
27663 no:yes:* )
27664 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27665 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27666 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27667 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27668 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27669 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27670 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27671 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27672 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27673 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27674 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27675 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27676 ( cat <<\_ASBOX
27677 ## ------------------------------- ##
27678 ## Report this to www.asterisk.org ##
27679 ## ------------------------------- ##
27680 _ASBOX
27681 ) | sed "s/^/$as_me: WARNING: /" >&2
27683 esac
27684 { echo "$as_me:$LINENO: checking for " >&5
27685 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27686 if test "${ac_cv_header_+set}" = set; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27688 else
27689 ac_cv_header_=$ac_header_preproc
27691 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27692 echo "${ECHO_T}$ac_cv_header_" >&6; }
27695 if test $ac_cv_header_ = yes; then
27696 ATAN_HEADER_FOUND=1
27697 else
27698 ATAN_HEADER_FOUND=0
27702 CPPFLAGS="${saved_cppflags}"
27704 if test "x${ATAN_HEADER_FOUND}" = "x0" ; then
27705 ATAN_LIB=""
27706 ATAN_INCLUDE=""
27707 else
27708 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27709 ATAN_LIB=""
27711 PBX_ATAN=1
27712 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27714 cat >>confdefs.h <<_ACEOF
27715 #define HAVE_ATAN 1
27716 _ACEOF
27719 cat >>confdefs.h <<_ACEOF
27720 #define HAVE_ATAN_VERSION
27721 _ACEOF
27728 if test "x${PBX_ATAN2}" != "x1" -a "${USE_ATAN2}" != "no"; then
27729 pbxlibdir=""
27730 # if --with-ATAN2=DIR has been specified, use it.
27731 if test "x${ATAN2_DIR}" != "x"; then
27732 if test -d ${ATAN2_DIR}/lib; then
27733 pbxlibdir="-L${ATAN2_DIR}/lib"
27734 else
27735 pbxlibdir="-L${ATAN2_DIR}"
27738 pbxfuncname="atan2"
27739 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27740 AST_ATAN2_FOUND=yes
27741 else
27742 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27743 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27744 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27745 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27746 echo $ECHO_N "(cached) $ECHO_C" >&6
27747 else
27748 ac_check_lib_save_LIBS=$LIBS
27749 LIBS="-lm ${pbxlibdir} $LIBS"
27750 cat >conftest.$ac_ext <<_ACEOF
27751 /* confdefs.h. */
27752 _ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h. */
27757 /* Override any GCC internal prototype to avoid an error.
27758 Use char because int might match the return type of a GCC
27759 builtin and then its argument prototype would still apply. */
27760 #ifdef __cplusplus
27761 extern "C"
27762 #endif
27763 char ${pbxfuncname} ();
27765 main ()
27767 return ${pbxfuncname} ();
27769 return 0;
27771 _ACEOF
27772 rm -f conftest.$ac_objext conftest$ac_exeext
27773 if { (ac_try="$ac_link"
27774 case "(($ac_try" in
27775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27776 *) ac_try_echo=$ac_try;;
27777 esac
27778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27779 (eval "$ac_link") 2>conftest.er1
27780 ac_status=$?
27781 grep -v '^ *+' conftest.er1 >conftest.err
27782 rm -f conftest.er1
27783 cat conftest.err >&5
27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); } && {
27786 test -z "$ac_c_werror_flag" ||
27787 test ! -s conftest.err
27788 } && test -s conftest$ac_exeext &&
27789 $as_test_x conftest$ac_exeext; then
27790 eval "$as_ac_Lib=yes"
27791 else
27792 echo "$as_me: failed program was:" >&5
27793 sed 's/^/| /' conftest.$ac_ext >&5
27795 eval "$as_ac_Lib=no"
27798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27799 conftest$ac_exeext conftest.$ac_ext
27800 LIBS=$ac_check_lib_save_LIBS
27802 ac_res=`eval echo '${'$as_ac_Lib'}'`
27803 { echo "$as_me:$LINENO: result: $ac_res" >&5
27804 echo "${ECHO_T}$ac_res" >&6; }
27805 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27806 AST_ATAN2_FOUND=yes
27807 else
27808 AST_ATAN2_FOUND=no
27813 # now check for the header.
27814 if test "${AST_ATAN2_FOUND}" = "yes"; then
27815 ATAN2_LIB="${pbxlibdir} -lm "
27816 # if --with-ATAN2=DIR has been specified, use it.
27817 if test "x${ATAN2_DIR}" != "x"; then
27818 ATAN2_INCLUDE="-I${ATAN2_DIR}/include"
27820 ATAN2_INCLUDE="${ATAN2_INCLUDE} "
27821 if test "x" = "x" ; then # no header, assume found
27822 ATAN2_HEADER_FOUND="1"
27823 else # check for the header
27824 saved_cppflags="${CPPFLAGS}"
27825 CPPFLAGS="${CPPFLAGS} ${ATAN2_INCLUDE}"
27826 if test "${ac_cv_header_+set}" = set; then
27827 { echo "$as_me:$LINENO: checking for " >&5
27828 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27829 if test "${ac_cv_header_+set}" = set; then
27830 echo $ECHO_N "(cached) $ECHO_C" >&6
27832 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27833 echo "${ECHO_T}$ac_cv_header_" >&6; }
27834 else
27835 # Is the header compilable?
27836 { echo "$as_me:$LINENO: checking usability" >&5
27837 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27838 cat >conftest.$ac_ext <<_ACEOF
27839 /* confdefs.h. */
27840 _ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h. */
27844 $ac_includes_default
27845 #include <>
27846 _ACEOF
27847 rm -f conftest.$ac_objext
27848 if { (ac_try="$ac_compile"
27849 case "(($ac_try" in
27850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27851 *) ac_try_echo=$ac_try;;
27852 esac
27853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27854 (eval "$ac_compile") 2>conftest.er1
27855 ac_status=$?
27856 grep -v '^ *+' conftest.er1 >conftest.err
27857 rm -f conftest.er1
27858 cat conftest.err >&5
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); } && {
27861 test -z "$ac_c_werror_flag" ||
27862 test ! -s conftest.err
27863 } && test -s conftest.$ac_objext; then
27864 ac_header_compiler=yes
27865 else
27866 echo "$as_me: failed program was:" >&5
27867 sed 's/^/| /' conftest.$ac_ext >&5
27869 ac_header_compiler=no
27872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27874 echo "${ECHO_T}$ac_header_compiler" >&6; }
27876 # Is the header present?
27877 { echo "$as_me:$LINENO: checking presence" >&5
27878 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27879 cat >conftest.$ac_ext <<_ACEOF
27880 /* confdefs.h. */
27881 _ACEOF
27882 cat confdefs.h >>conftest.$ac_ext
27883 cat >>conftest.$ac_ext <<_ACEOF
27884 /* end confdefs.h. */
27885 #include <>
27886 _ACEOF
27887 if { (ac_try="$ac_cpp conftest.$ac_ext"
27888 case "(($ac_try" in
27889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890 *) ac_try_echo=$ac_try;;
27891 esac
27892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27894 ac_status=$?
27895 grep -v '^ *+' conftest.er1 >conftest.err
27896 rm -f conftest.er1
27897 cat conftest.err >&5
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); } >/dev/null && {
27900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27901 test ! -s conftest.err
27902 }; then
27903 ac_header_preproc=yes
27904 else
27905 echo "$as_me: failed program was:" >&5
27906 sed 's/^/| /' conftest.$ac_ext >&5
27908 ac_header_preproc=no
27911 rm -f conftest.err conftest.$ac_ext
27912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27913 echo "${ECHO_T}$ac_header_preproc" >&6; }
27915 # So? What about this header?
27916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27917 yes:no: )
27918 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27919 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27920 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27921 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27922 ac_header_preproc=yes
27924 no:yes:* )
27925 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27926 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27927 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27928 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27929 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27930 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27931 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27932 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27933 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27934 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27935 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27936 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27937 ( cat <<\_ASBOX
27938 ## ------------------------------- ##
27939 ## Report this to www.asterisk.org ##
27940 ## ------------------------------- ##
27941 _ASBOX
27942 ) | sed "s/^/$as_me: WARNING: /" >&2
27944 esac
27945 { echo "$as_me:$LINENO: checking for " >&5
27946 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27947 if test "${ac_cv_header_+set}" = set; then
27948 echo $ECHO_N "(cached) $ECHO_C" >&6
27949 else
27950 ac_cv_header_=$ac_header_preproc
27952 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27953 echo "${ECHO_T}$ac_cv_header_" >&6; }
27956 if test $ac_cv_header_ = yes; then
27957 ATAN2_HEADER_FOUND=1
27958 else
27959 ATAN2_HEADER_FOUND=0
27963 CPPFLAGS="${saved_cppflags}"
27965 if test "x${ATAN2_HEADER_FOUND}" = "x0" ; then
27966 ATAN2_LIB=""
27967 ATAN2_INCLUDE=""
27968 else
27969 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27970 ATAN2_LIB=""
27972 PBX_ATAN2=1
27973 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27975 cat >>confdefs.h <<_ACEOF
27976 #define HAVE_ATAN2 1
27977 _ACEOF
27980 cat >>confdefs.h <<_ACEOF
27981 #define HAVE_ATAN2_VERSION
27982 _ACEOF
27989 if test "x${PBX_POW}" != "x1" -a "${USE_POW}" != "no"; then
27990 pbxlibdir=""
27991 # if --with-POW=DIR has been specified, use it.
27992 if test "x${POW_DIR}" != "x"; then
27993 if test -d ${POW_DIR}/lib; then
27994 pbxlibdir="-L${POW_DIR}/lib"
27995 else
27996 pbxlibdir="-L${POW_DIR}"
27999 pbxfuncname="pow"
28000 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28001 AST_POW_FOUND=yes
28002 else
28003 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28004 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28005 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28006 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28007 echo $ECHO_N "(cached) $ECHO_C" >&6
28008 else
28009 ac_check_lib_save_LIBS=$LIBS
28010 LIBS="-lm ${pbxlibdir} $LIBS"
28011 cat >conftest.$ac_ext <<_ACEOF
28012 /* confdefs.h. */
28013 _ACEOF
28014 cat confdefs.h >>conftest.$ac_ext
28015 cat >>conftest.$ac_ext <<_ACEOF
28016 /* end confdefs.h. */
28018 /* Override any GCC internal prototype to avoid an error.
28019 Use char because int might match the return type of a GCC
28020 builtin and then its argument prototype would still apply. */
28021 #ifdef __cplusplus
28022 extern "C"
28023 #endif
28024 char ${pbxfuncname} ();
28026 main ()
28028 return ${pbxfuncname} ();
28030 return 0;
28032 _ACEOF
28033 rm -f conftest.$ac_objext conftest$ac_exeext
28034 if { (ac_try="$ac_link"
28035 case "(($ac_try" in
28036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037 *) ac_try_echo=$ac_try;;
28038 esac
28039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040 (eval "$ac_link") 2>conftest.er1
28041 ac_status=$?
28042 grep -v '^ *+' conftest.er1 >conftest.err
28043 rm -f conftest.er1
28044 cat conftest.err >&5
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); } && {
28047 test -z "$ac_c_werror_flag" ||
28048 test ! -s conftest.err
28049 } && test -s conftest$ac_exeext &&
28050 $as_test_x conftest$ac_exeext; then
28051 eval "$as_ac_Lib=yes"
28052 else
28053 echo "$as_me: failed program was:" >&5
28054 sed 's/^/| /' conftest.$ac_ext >&5
28056 eval "$as_ac_Lib=no"
28059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28060 conftest$ac_exeext conftest.$ac_ext
28061 LIBS=$ac_check_lib_save_LIBS
28063 ac_res=`eval echo '${'$as_ac_Lib'}'`
28064 { echo "$as_me:$LINENO: result: $ac_res" >&5
28065 echo "${ECHO_T}$ac_res" >&6; }
28066 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28067 AST_POW_FOUND=yes
28068 else
28069 AST_POW_FOUND=no
28074 # now check for the header.
28075 if test "${AST_POW_FOUND}" = "yes"; then
28076 POW_LIB="${pbxlibdir} -lm "
28077 # if --with-POW=DIR has been specified, use it.
28078 if test "x${POW_DIR}" != "x"; then
28079 POW_INCLUDE="-I${POW_DIR}/include"
28081 POW_INCLUDE="${POW_INCLUDE} "
28082 if test "x" = "x" ; then # no header, assume found
28083 POW_HEADER_FOUND="1"
28084 else # check for the header
28085 saved_cppflags="${CPPFLAGS}"
28086 CPPFLAGS="${CPPFLAGS} ${POW_INCLUDE}"
28087 if test "${ac_cv_header_+set}" = set; then
28088 { echo "$as_me:$LINENO: checking for " >&5
28089 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28090 if test "${ac_cv_header_+set}" = set; then
28091 echo $ECHO_N "(cached) $ECHO_C" >&6
28093 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28094 echo "${ECHO_T}$ac_cv_header_" >&6; }
28095 else
28096 # Is the header compilable?
28097 { echo "$as_me:$LINENO: checking usability" >&5
28098 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28099 cat >conftest.$ac_ext <<_ACEOF
28100 /* confdefs.h. */
28101 _ACEOF
28102 cat confdefs.h >>conftest.$ac_ext
28103 cat >>conftest.$ac_ext <<_ACEOF
28104 /* end confdefs.h. */
28105 $ac_includes_default
28106 #include <>
28107 _ACEOF
28108 rm -f conftest.$ac_objext
28109 if { (ac_try="$ac_compile"
28110 case "(($ac_try" in
28111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28112 *) ac_try_echo=$ac_try;;
28113 esac
28114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28115 (eval "$ac_compile") 2>conftest.er1
28116 ac_status=$?
28117 grep -v '^ *+' conftest.er1 >conftest.err
28118 rm -f conftest.er1
28119 cat conftest.err >&5
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); } && {
28122 test -z "$ac_c_werror_flag" ||
28123 test ! -s conftest.err
28124 } && test -s conftest.$ac_objext; then
28125 ac_header_compiler=yes
28126 else
28127 echo "$as_me: failed program was:" >&5
28128 sed 's/^/| /' conftest.$ac_ext >&5
28130 ac_header_compiler=no
28133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28135 echo "${ECHO_T}$ac_header_compiler" >&6; }
28137 # Is the header present?
28138 { echo "$as_me:$LINENO: checking presence" >&5
28139 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28140 cat >conftest.$ac_ext <<_ACEOF
28141 /* confdefs.h. */
28142 _ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h. */
28146 #include <>
28147 _ACEOF
28148 if { (ac_try="$ac_cpp conftest.$ac_ext"
28149 case "(($ac_try" in
28150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28151 *) ac_try_echo=$ac_try;;
28152 esac
28153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28155 ac_status=$?
28156 grep -v '^ *+' conftest.er1 >conftest.err
28157 rm -f conftest.er1
28158 cat conftest.err >&5
28159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 (exit $ac_status); } >/dev/null && {
28161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28162 test ! -s conftest.err
28163 }; then
28164 ac_header_preproc=yes
28165 else
28166 echo "$as_me: failed program was:" >&5
28167 sed 's/^/| /' conftest.$ac_ext >&5
28169 ac_header_preproc=no
28172 rm -f conftest.err conftest.$ac_ext
28173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28174 echo "${ECHO_T}$ac_header_preproc" >&6; }
28176 # So? What about this header?
28177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28178 yes:no: )
28179 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28180 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28181 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28182 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28183 ac_header_preproc=yes
28185 no:yes:* )
28186 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28187 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28188 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28189 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28190 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28191 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28192 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28193 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28194 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28195 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28196 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28197 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28198 ( cat <<\_ASBOX
28199 ## ------------------------------- ##
28200 ## Report this to www.asterisk.org ##
28201 ## ------------------------------- ##
28202 _ASBOX
28203 ) | sed "s/^/$as_me: WARNING: /" >&2
28205 esac
28206 { echo "$as_me:$LINENO: checking for " >&5
28207 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28208 if test "${ac_cv_header_+set}" = set; then
28209 echo $ECHO_N "(cached) $ECHO_C" >&6
28210 else
28211 ac_cv_header_=$ac_header_preproc
28213 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28214 echo "${ECHO_T}$ac_cv_header_" >&6; }
28217 if test $ac_cv_header_ = yes; then
28218 POW_HEADER_FOUND=1
28219 else
28220 POW_HEADER_FOUND=0
28224 CPPFLAGS="${saved_cppflags}"
28226 if test "x${POW_HEADER_FOUND}" = "x0" ; then
28227 POW_LIB=""
28228 POW_INCLUDE=""
28229 else
28230 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28231 POW_LIB=""
28233 PBX_POW=1
28234 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28236 cat >>confdefs.h <<_ACEOF
28237 #define HAVE_POW 1
28238 _ACEOF
28241 cat >>confdefs.h <<_ACEOF
28242 #define HAVE_POW_VERSION
28243 _ACEOF
28250 if test "x${PBX_SQRT}" != "x1" -a "${USE_SQRT}" != "no"; then
28251 pbxlibdir=""
28252 # if --with-SQRT=DIR has been specified, use it.
28253 if test "x${SQRT_DIR}" != "x"; then
28254 if test -d ${SQRT_DIR}/lib; then
28255 pbxlibdir="-L${SQRT_DIR}/lib"
28256 else
28257 pbxlibdir="-L${SQRT_DIR}"
28260 pbxfuncname="sqrt"
28261 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28262 AST_SQRT_FOUND=yes
28263 else
28264 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28265 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28266 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28267 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28268 echo $ECHO_N "(cached) $ECHO_C" >&6
28269 else
28270 ac_check_lib_save_LIBS=$LIBS
28271 LIBS="-lm ${pbxlibdir} $LIBS"
28272 cat >conftest.$ac_ext <<_ACEOF
28273 /* confdefs.h. */
28274 _ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h. */
28279 /* Override any GCC internal prototype to avoid an error.
28280 Use char because int might match the return type of a GCC
28281 builtin and then its argument prototype would still apply. */
28282 #ifdef __cplusplus
28283 extern "C"
28284 #endif
28285 char ${pbxfuncname} ();
28287 main ()
28289 return ${pbxfuncname} ();
28291 return 0;
28293 _ACEOF
28294 rm -f conftest.$ac_objext conftest$ac_exeext
28295 if { (ac_try="$ac_link"
28296 case "(($ac_try" in
28297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28298 *) ac_try_echo=$ac_try;;
28299 esac
28300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28301 (eval "$ac_link") 2>conftest.er1
28302 ac_status=$?
28303 grep -v '^ *+' conftest.er1 >conftest.err
28304 rm -f conftest.er1
28305 cat conftest.err >&5
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); } && {
28308 test -z "$ac_c_werror_flag" ||
28309 test ! -s conftest.err
28310 } && test -s conftest$ac_exeext &&
28311 $as_test_x conftest$ac_exeext; then
28312 eval "$as_ac_Lib=yes"
28313 else
28314 echo "$as_me: failed program was:" >&5
28315 sed 's/^/| /' conftest.$ac_ext >&5
28317 eval "$as_ac_Lib=no"
28320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28321 conftest$ac_exeext conftest.$ac_ext
28322 LIBS=$ac_check_lib_save_LIBS
28324 ac_res=`eval echo '${'$as_ac_Lib'}'`
28325 { echo "$as_me:$LINENO: result: $ac_res" >&5
28326 echo "${ECHO_T}$ac_res" >&6; }
28327 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28328 AST_SQRT_FOUND=yes
28329 else
28330 AST_SQRT_FOUND=no
28335 # now check for the header.
28336 if test "${AST_SQRT_FOUND}" = "yes"; then
28337 SQRT_LIB="${pbxlibdir} -lm "
28338 # if --with-SQRT=DIR has been specified, use it.
28339 if test "x${SQRT_DIR}" != "x"; then
28340 SQRT_INCLUDE="-I${SQRT_DIR}/include"
28342 SQRT_INCLUDE="${SQRT_INCLUDE} "
28343 if test "x" = "x" ; then # no header, assume found
28344 SQRT_HEADER_FOUND="1"
28345 else # check for the header
28346 saved_cppflags="${CPPFLAGS}"
28347 CPPFLAGS="${CPPFLAGS} ${SQRT_INCLUDE}"
28348 if test "${ac_cv_header_+set}" = set; then
28349 { echo "$as_me:$LINENO: checking for " >&5
28350 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28351 if test "${ac_cv_header_+set}" = set; then
28352 echo $ECHO_N "(cached) $ECHO_C" >&6
28354 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28355 echo "${ECHO_T}$ac_cv_header_" >&6; }
28356 else
28357 # Is the header compilable?
28358 { echo "$as_me:$LINENO: checking usability" >&5
28359 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28360 cat >conftest.$ac_ext <<_ACEOF
28361 /* confdefs.h. */
28362 _ACEOF
28363 cat confdefs.h >>conftest.$ac_ext
28364 cat >>conftest.$ac_ext <<_ACEOF
28365 /* end confdefs.h. */
28366 $ac_includes_default
28367 #include <>
28368 _ACEOF
28369 rm -f conftest.$ac_objext
28370 if { (ac_try="$ac_compile"
28371 case "(($ac_try" in
28372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373 *) ac_try_echo=$ac_try;;
28374 esac
28375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28376 (eval "$ac_compile") 2>conftest.er1
28377 ac_status=$?
28378 grep -v '^ *+' conftest.er1 >conftest.err
28379 rm -f conftest.er1
28380 cat conftest.err >&5
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); } && {
28383 test -z "$ac_c_werror_flag" ||
28384 test ! -s conftest.err
28385 } && test -s conftest.$ac_objext; then
28386 ac_header_compiler=yes
28387 else
28388 echo "$as_me: failed program was:" >&5
28389 sed 's/^/| /' conftest.$ac_ext >&5
28391 ac_header_compiler=no
28394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28396 echo "${ECHO_T}$ac_header_compiler" >&6; }
28398 # Is the header present?
28399 { echo "$as_me:$LINENO: checking presence" >&5
28400 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28401 cat >conftest.$ac_ext <<_ACEOF
28402 /* confdefs.h. */
28403 _ACEOF
28404 cat confdefs.h >>conftest.$ac_ext
28405 cat >>conftest.$ac_ext <<_ACEOF
28406 /* end confdefs.h. */
28407 #include <>
28408 _ACEOF
28409 if { (ac_try="$ac_cpp conftest.$ac_ext"
28410 case "(($ac_try" in
28411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412 *) ac_try_echo=$ac_try;;
28413 esac
28414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28416 ac_status=$?
28417 grep -v '^ *+' conftest.er1 >conftest.err
28418 rm -f conftest.er1
28419 cat conftest.err >&5
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); } >/dev/null && {
28422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28423 test ! -s conftest.err
28424 }; then
28425 ac_header_preproc=yes
28426 else
28427 echo "$as_me: failed program was:" >&5
28428 sed 's/^/| /' conftest.$ac_ext >&5
28430 ac_header_preproc=no
28433 rm -f conftest.err conftest.$ac_ext
28434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28435 echo "${ECHO_T}$ac_header_preproc" >&6; }
28437 # So? What about this header?
28438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28439 yes:no: )
28440 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28441 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28442 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28443 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28444 ac_header_preproc=yes
28446 no:yes:* )
28447 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28448 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28449 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28450 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28451 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28452 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28453 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28454 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28455 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28456 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28457 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28458 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28459 ( cat <<\_ASBOX
28460 ## ------------------------------- ##
28461 ## Report this to www.asterisk.org ##
28462 ## ------------------------------- ##
28463 _ASBOX
28464 ) | sed "s/^/$as_me: WARNING: /" >&2
28466 esac
28467 { echo "$as_me:$LINENO: checking for " >&5
28468 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28469 if test "${ac_cv_header_+set}" = set; then
28470 echo $ECHO_N "(cached) $ECHO_C" >&6
28471 else
28472 ac_cv_header_=$ac_header_preproc
28474 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28475 echo "${ECHO_T}$ac_cv_header_" >&6; }
28478 if test $ac_cv_header_ = yes; then
28479 SQRT_HEADER_FOUND=1
28480 else
28481 SQRT_HEADER_FOUND=0
28485 CPPFLAGS="${saved_cppflags}"
28487 if test "x${SQRT_HEADER_FOUND}" = "x0" ; then
28488 SQRT_LIB=""
28489 SQRT_INCLUDE=""
28490 else
28491 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28492 SQRT_LIB=""
28494 PBX_SQRT=1
28495 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28497 cat >>confdefs.h <<_ACEOF
28498 #define HAVE_SQRT 1
28499 _ACEOF
28502 cat >>confdefs.h <<_ACEOF
28503 #define HAVE_SQRT_VERSION
28504 _ACEOF
28511 if test "x${PBX_RINT}" != "x1" -a "${USE_RINT}" != "no"; then
28512 pbxlibdir=""
28513 # if --with-RINT=DIR has been specified, use it.
28514 if test "x${RINT_DIR}" != "x"; then
28515 if test -d ${RINT_DIR}/lib; then
28516 pbxlibdir="-L${RINT_DIR}/lib"
28517 else
28518 pbxlibdir="-L${RINT_DIR}"
28521 pbxfuncname="rint"
28522 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28523 AST_RINT_FOUND=yes
28524 else
28525 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28526 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28527 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28528 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28529 echo $ECHO_N "(cached) $ECHO_C" >&6
28530 else
28531 ac_check_lib_save_LIBS=$LIBS
28532 LIBS="-lm ${pbxlibdir} $LIBS"
28533 cat >conftest.$ac_ext <<_ACEOF
28534 /* confdefs.h. */
28535 _ACEOF
28536 cat confdefs.h >>conftest.$ac_ext
28537 cat >>conftest.$ac_ext <<_ACEOF
28538 /* end confdefs.h. */
28540 /* Override any GCC internal prototype to avoid an error.
28541 Use char because int might match the return type of a GCC
28542 builtin and then its argument prototype would still apply. */
28543 #ifdef __cplusplus
28544 extern "C"
28545 #endif
28546 char ${pbxfuncname} ();
28548 main ()
28550 return ${pbxfuncname} ();
28552 return 0;
28554 _ACEOF
28555 rm -f conftest.$ac_objext conftest$ac_exeext
28556 if { (ac_try="$ac_link"
28557 case "(($ac_try" in
28558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28559 *) ac_try_echo=$ac_try;;
28560 esac
28561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28562 (eval "$ac_link") 2>conftest.er1
28563 ac_status=$?
28564 grep -v '^ *+' conftest.er1 >conftest.err
28565 rm -f conftest.er1
28566 cat conftest.err >&5
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); } && {
28569 test -z "$ac_c_werror_flag" ||
28570 test ! -s conftest.err
28571 } && test -s conftest$ac_exeext &&
28572 $as_test_x conftest$ac_exeext; then
28573 eval "$as_ac_Lib=yes"
28574 else
28575 echo "$as_me: failed program was:" >&5
28576 sed 's/^/| /' conftest.$ac_ext >&5
28578 eval "$as_ac_Lib=no"
28581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28582 conftest$ac_exeext conftest.$ac_ext
28583 LIBS=$ac_check_lib_save_LIBS
28585 ac_res=`eval echo '${'$as_ac_Lib'}'`
28586 { echo "$as_me:$LINENO: result: $ac_res" >&5
28587 echo "${ECHO_T}$ac_res" >&6; }
28588 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28589 AST_RINT_FOUND=yes
28590 else
28591 AST_RINT_FOUND=no
28596 # now check for the header.
28597 if test "${AST_RINT_FOUND}" = "yes"; then
28598 RINT_LIB="${pbxlibdir} -lm "
28599 # if --with-RINT=DIR has been specified, use it.
28600 if test "x${RINT_DIR}" != "x"; then
28601 RINT_INCLUDE="-I${RINT_DIR}/include"
28603 RINT_INCLUDE="${RINT_INCLUDE} "
28604 if test "x" = "x" ; then # no header, assume found
28605 RINT_HEADER_FOUND="1"
28606 else # check for the header
28607 saved_cppflags="${CPPFLAGS}"
28608 CPPFLAGS="${CPPFLAGS} ${RINT_INCLUDE}"
28609 if test "${ac_cv_header_+set}" = set; then
28610 { echo "$as_me:$LINENO: checking for " >&5
28611 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28612 if test "${ac_cv_header_+set}" = set; then
28613 echo $ECHO_N "(cached) $ECHO_C" >&6
28615 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28616 echo "${ECHO_T}$ac_cv_header_" >&6; }
28617 else
28618 # Is the header compilable?
28619 { echo "$as_me:$LINENO: checking usability" >&5
28620 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28621 cat >conftest.$ac_ext <<_ACEOF
28622 /* confdefs.h. */
28623 _ACEOF
28624 cat confdefs.h >>conftest.$ac_ext
28625 cat >>conftest.$ac_ext <<_ACEOF
28626 /* end confdefs.h. */
28627 $ac_includes_default
28628 #include <>
28629 _ACEOF
28630 rm -f conftest.$ac_objext
28631 if { (ac_try="$ac_compile"
28632 case "(($ac_try" in
28633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634 *) ac_try_echo=$ac_try;;
28635 esac
28636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28637 (eval "$ac_compile") 2>conftest.er1
28638 ac_status=$?
28639 grep -v '^ *+' conftest.er1 >conftest.err
28640 rm -f conftest.er1
28641 cat conftest.err >&5
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); } && {
28644 test -z "$ac_c_werror_flag" ||
28645 test ! -s conftest.err
28646 } && test -s conftest.$ac_objext; then
28647 ac_header_compiler=yes
28648 else
28649 echo "$as_me: failed program was:" >&5
28650 sed 's/^/| /' conftest.$ac_ext >&5
28652 ac_header_compiler=no
28655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28657 echo "${ECHO_T}$ac_header_compiler" >&6; }
28659 # Is the header present?
28660 { echo "$as_me:$LINENO: checking presence" >&5
28661 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28662 cat >conftest.$ac_ext <<_ACEOF
28663 /* confdefs.h. */
28664 _ACEOF
28665 cat confdefs.h >>conftest.$ac_ext
28666 cat >>conftest.$ac_ext <<_ACEOF
28667 /* end confdefs.h. */
28668 #include <>
28669 _ACEOF
28670 if { (ac_try="$ac_cpp conftest.$ac_ext"
28671 case "(($ac_try" in
28672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28673 *) ac_try_echo=$ac_try;;
28674 esac
28675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28677 ac_status=$?
28678 grep -v '^ *+' conftest.er1 >conftest.err
28679 rm -f conftest.er1
28680 cat conftest.err >&5
28681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682 (exit $ac_status); } >/dev/null && {
28683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28684 test ! -s conftest.err
28685 }; then
28686 ac_header_preproc=yes
28687 else
28688 echo "$as_me: failed program was:" >&5
28689 sed 's/^/| /' conftest.$ac_ext >&5
28691 ac_header_preproc=no
28694 rm -f conftest.err conftest.$ac_ext
28695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28696 echo "${ECHO_T}$ac_header_preproc" >&6; }
28698 # So? What about this header?
28699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28700 yes:no: )
28701 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28702 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28703 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28704 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28705 ac_header_preproc=yes
28707 no:yes:* )
28708 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28709 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28710 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28711 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28712 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28713 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28714 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28715 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28716 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28717 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28718 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28719 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28720 ( cat <<\_ASBOX
28721 ## ------------------------------- ##
28722 ## Report this to www.asterisk.org ##
28723 ## ------------------------------- ##
28724 _ASBOX
28725 ) | sed "s/^/$as_me: WARNING: /" >&2
28727 esac
28728 { echo "$as_me:$LINENO: checking for " >&5
28729 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28730 if test "${ac_cv_header_+set}" = set; then
28731 echo $ECHO_N "(cached) $ECHO_C" >&6
28732 else
28733 ac_cv_header_=$ac_header_preproc
28735 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28736 echo "${ECHO_T}$ac_cv_header_" >&6; }
28739 if test $ac_cv_header_ = yes; then
28740 RINT_HEADER_FOUND=1
28741 else
28742 RINT_HEADER_FOUND=0
28746 CPPFLAGS="${saved_cppflags}"
28748 if test "x${RINT_HEADER_FOUND}" = "x0" ; then
28749 RINT_LIB=""
28750 RINT_INCLUDE=""
28751 else
28752 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28753 RINT_LIB=""
28755 PBX_RINT=1
28756 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28758 cat >>confdefs.h <<_ACEOF
28759 #define HAVE_RINT 1
28760 _ACEOF
28763 cat >>confdefs.h <<_ACEOF
28764 #define HAVE_RINT_VERSION
28765 _ACEOF
28772 if test "x${PBX_EXP}" != "x1" -a "${USE_EXP}" != "no"; then
28773 pbxlibdir=""
28774 # if --with-EXP=DIR has been specified, use it.
28775 if test "x${EXP_DIR}" != "x"; then
28776 if test -d ${EXP_DIR}/lib; then
28777 pbxlibdir="-L${EXP_DIR}/lib"
28778 else
28779 pbxlibdir="-L${EXP_DIR}"
28782 pbxfuncname="exp"
28783 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28784 AST_EXP_FOUND=yes
28785 else
28786 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28787 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28788 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28789 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28790 echo $ECHO_N "(cached) $ECHO_C" >&6
28791 else
28792 ac_check_lib_save_LIBS=$LIBS
28793 LIBS="-lm ${pbxlibdir} $LIBS"
28794 cat >conftest.$ac_ext <<_ACEOF
28795 /* confdefs.h. */
28796 _ACEOF
28797 cat confdefs.h >>conftest.$ac_ext
28798 cat >>conftest.$ac_ext <<_ACEOF
28799 /* end confdefs.h. */
28801 /* Override any GCC internal prototype to avoid an error.
28802 Use char because int might match the return type of a GCC
28803 builtin and then its argument prototype would still apply. */
28804 #ifdef __cplusplus
28805 extern "C"
28806 #endif
28807 char ${pbxfuncname} ();
28809 main ()
28811 return ${pbxfuncname} ();
28813 return 0;
28815 _ACEOF
28816 rm -f conftest.$ac_objext conftest$ac_exeext
28817 if { (ac_try="$ac_link"
28818 case "(($ac_try" in
28819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28820 *) ac_try_echo=$ac_try;;
28821 esac
28822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28823 (eval "$ac_link") 2>conftest.er1
28824 ac_status=$?
28825 grep -v '^ *+' conftest.er1 >conftest.err
28826 rm -f conftest.er1
28827 cat conftest.err >&5
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } && {
28830 test -z "$ac_c_werror_flag" ||
28831 test ! -s conftest.err
28832 } && test -s conftest$ac_exeext &&
28833 $as_test_x conftest$ac_exeext; then
28834 eval "$as_ac_Lib=yes"
28835 else
28836 echo "$as_me: failed program was:" >&5
28837 sed 's/^/| /' conftest.$ac_ext >&5
28839 eval "$as_ac_Lib=no"
28842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28843 conftest$ac_exeext conftest.$ac_ext
28844 LIBS=$ac_check_lib_save_LIBS
28846 ac_res=`eval echo '${'$as_ac_Lib'}'`
28847 { echo "$as_me:$LINENO: result: $ac_res" >&5
28848 echo "${ECHO_T}$ac_res" >&6; }
28849 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28850 AST_EXP_FOUND=yes
28851 else
28852 AST_EXP_FOUND=no
28857 # now check for the header.
28858 if test "${AST_EXP_FOUND}" = "yes"; then
28859 EXP_LIB="${pbxlibdir} -lm "
28860 # if --with-EXP=DIR has been specified, use it.
28861 if test "x${EXP_DIR}" != "x"; then
28862 EXP_INCLUDE="-I${EXP_DIR}/include"
28864 EXP_INCLUDE="${EXP_INCLUDE} "
28865 if test "x" = "x" ; then # no header, assume found
28866 EXP_HEADER_FOUND="1"
28867 else # check for the header
28868 saved_cppflags="${CPPFLAGS}"
28869 CPPFLAGS="${CPPFLAGS} ${EXP_INCLUDE}"
28870 if test "${ac_cv_header_+set}" = set; then
28871 { echo "$as_me:$LINENO: checking for " >&5
28872 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28873 if test "${ac_cv_header_+set}" = set; then
28874 echo $ECHO_N "(cached) $ECHO_C" >&6
28876 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28877 echo "${ECHO_T}$ac_cv_header_" >&6; }
28878 else
28879 # Is the header compilable?
28880 { echo "$as_me:$LINENO: checking usability" >&5
28881 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28882 cat >conftest.$ac_ext <<_ACEOF
28883 /* confdefs.h. */
28884 _ACEOF
28885 cat confdefs.h >>conftest.$ac_ext
28886 cat >>conftest.$ac_ext <<_ACEOF
28887 /* end confdefs.h. */
28888 $ac_includes_default
28889 #include <>
28890 _ACEOF
28891 rm -f conftest.$ac_objext
28892 if { (ac_try="$ac_compile"
28893 case "(($ac_try" in
28894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895 *) ac_try_echo=$ac_try;;
28896 esac
28897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28898 (eval "$ac_compile") 2>conftest.er1
28899 ac_status=$?
28900 grep -v '^ *+' conftest.er1 >conftest.err
28901 rm -f conftest.er1
28902 cat conftest.err >&5
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); } && {
28905 test -z "$ac_c_werror_flag" ||
28906 test ! -s conftest.err
28907 } && test -s conftest.$ac_objext; then
28908 ac_header_compiler=yes
28909 else
28910 echo "$as_me: failed program was:" >&5
28911 sed 's/^/| /' conftest.$ac_ext >&5
28913 ac_header_compiler=no
28916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28918 echo "${ECHO_T}$ac_header_compiler" >&6; }
28920 # Is the header present?
28921 { echo "$as_me:$LINENO: checking presence" >&5
28922 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28923 cat >conftest.$ac_ext <<_ACEOF
28924 /* confdefs.h. */
28925 _ACEOF
28926 cat confdefs.h >>conftest.$ac_ext
28927 cat >>conftest.$ac_ext <<_ACEOF
28928 /* end confdefs.h. */
28929 #include <>
28930 _ACEOF
28931 if { (ac_try="$ac_cpp conftest.$ac_ext"
28932 case "(($ac_try" in
28933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934 *) ac_try_echo=$ac_try;;
28935 esac
28936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28938 ac_status=$?
28939 grep -v '^ *+' conftest.er1 >conftest.err
28940 rm -f conftest.er1
28941 cat conftest.err >&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); } >/dev/null && {
28944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28945 test ! -s conftest.err
28946 }; then
28947 ac_header_preproc=yes
28948 else
28949 echo "$as_me: failed program was:" >&5
28950 sed 's/^/| /' conftest.$ac_ext >&5
28952 ac_header_preproc=no
28955 rm -f conftest.err conftest.$ac_ext
28956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28957 echo "${ECHO_T}$ac_header_preproc" >&6; }
28959 # So? What about this header?
28960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28961 yes:no: )
28962 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28963 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28964 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28965 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28966 ac_header_preproc=yes
28968 no:yes:* )
28969 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28970 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28971 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28972 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28973 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28974 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28975 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28976 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28977 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28978 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28979 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28980 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28981 ( cat <<\_ASBOX
28982 ## ------------------------------- ##
28983 ## Report this to www.asterisk.org ##
28984 ## ------------------------------- ##
28985 _ASBOX
28986 ) | sed "s/^/$as_me: WARNING: /" >&2
28988 esac
28989 { echo "$as_me:$LINENO: checking for " >&5
28990 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28991 if test "${ac_cv_header_+set}" = set; then
28992 echo $ECHO_N "(cached) $ECHO_C" >&6
28993 else
28994 ac_cv_header_=$ac_header_preproc
28996 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28997 echo "${ECHO_T}$ac_cv_header_" >&6; }
29000 if test $ac_cv_header_ = yes; then
29001 EXP_HEADER_FOUND=1
29002 else
29003 EXP_HEADER_FOUND=0
29007 CPPFLAGS="${saved_cppflags}"
29009 if test "x${EXP_HEADER_FOUND}" = "x0" ; then
29010 EXP_LIB=""
29011 EXP_INCLUDE=""
29012 else
29013 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29014 EXP_LIB=""
29016 PBX_EXP=1
29017 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29019 cat >>confdefs.h <<_ACEOF
29020 #define HAVE_EXP 1
29021 _ACEOF
29024 cat >>confdefs.h <<_ACEOF
29025 #define HAVE_EXP_VERSION
29026 _ACEOF
29033 if test "x${PBX_LOG}" != "x1" -a "${USE_LOG}" != "no"; then
29034 pbxlibdir=""
29035 # if --with-LOG=DIR has been specified, use it.
29036 if test "x${LOG_DIR}" != "x"; then
29037 if test -d ${LOG_DIR}/lib; then
29038 pbxlibdir="-L${LOG_DIR}/lib"
29039 else
29040 pbxlibdir="-L${LOG_DIR}"
29043 pbxfuncname="log"
29044 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29045 AST_LOG_FOUND=yes
29046 else
29047 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29048 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29049 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29050 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29052 else
29053 ac_check_lib_save_LIBS=$LIBS
29054 LIBS="-lm ${pbxlibdir} $LIBS"
29055 cat >conftest.$ac_ext <<_ACEOF
29056 /* confdefs.h. */
29057 _ACEOF
29058 cat confdefs.h >>conftest.$ac_ext
29059 cat >>conftest.$ac_ext <<_ACEOF
29060 /* end confdefs.h. */
29062 /* Override any GCC internal prototype to avoid an error.
29063 Use char because int might match the return type of a GCC
29064 builtin and then its argument prototype would still apply. */
29065 #ifdef __cplusplus
29066 extern "C"
29067 #endif
29068 char ${pbxfuncname} ();
29070 main ()
29072 return ${pbxfuncname} ();
29074 return 0;
29076 _ACEOF
29077 rm -f conftest.$ac_objext conftest$ac_exeext
29078 if { (ac_try="$ac_link"
29079 case "(($ac_try" in
29080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29081 *) ac_try_echo=$ac_try;;
29082 esac
29083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29084 (eval "$ac_link") 2>conftest.er1
29085 ac_status=$?
29086 grep -v '^ *+' conftest.er1 >conftest.err
29087 rm -f conftest.er1
29088 cat conftest.err >&5
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); } && {
29091 test -z "$ac_c_werror_flag" ||
29092 test ! -s conftest.err
29093 } && test -s conftest$ac_exeext &&
29094 $as_test_x conftest$ac_exeext; then
29095 eval "$as_ac_Lib=yes"
29096 else
29097 echo "$as_me: failed program was:" >&5
29098 sed 's/^/| /' conftest.$ac_ext >&5
29100 eval "$as_ac_Lib=no"
29103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29104 conftest$ac_exeext conftest.$ac_ext
29105 LIBS=$ac_check_lib_save_LIBS
29107 ac_res=`eval echo '${'$as_ac_Lib'}'`
29108 { echo "$as_me:$LINENO: result: $ac_res" >&5
29109 echo "${ECHO_T}$ac_res" >&6; }
29110 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29111 AST_LOG_FOUND=yes
29112 else
29113 AST_LOG_FOUND=no
29118 # now check for the header.
29119 if test "${AST_LOG_FOUND}" = "yes"; then
29120 LOG_LIB="${pbxlibdir} -lm "
29121 # if --with-LOG=DIR has been specified, use it.
29122 if test "x${LOG_DIR}" != "x"; then
29123 LOG_INCLUDE="-I${LOG_DIR}/include"
29125 LOG_INCLUDE="${LOG_INCLUDE} "
29126 if test "x" = "x" ; then # no header, assume found
29127 LOG_HEADER_FOUND="1"
29128 else # check for the header
29129 saved_cppflags="${CPPFLAGS}"
29130 CPPFLAGS="${CPPFLAGS} ${LOG_INCLUDE}"
29131 if test "${ac_cv_header_+set}" = set; then
29132 { echo "$as_me:$LINENO: checking for " >&5
29133 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29134 if test "${ac_cv_header_+set}" = set; then
29135 echo $ECHO_N "(cached) $ECHO_C" >&6
29137 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29138 echo "${ECHO_T}$ac_cv_header_" >&6; }
29139 else
29140 # Is the header compilable?
29141 { echo "$as_me:$LINENO: checking usability" >&5
29142 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29143 cat >conftest.$ac_ext <<_ACEOF
29144 /* confdefs.h. */
29145 _ACEOF
29146 cat confdefs.h >>conftest.$ac_ext
29147 cat >>conftest.$ac_ext <<_ACEOF
29148 /* end confdefs.h. */
29149 $ac_includes_default
29150 #include <>
29151 _ACEOF
29152 rm -f conftest.$ac_objext
29153 if { (ac_try="$ac_compile"
29154 case "(($ac_try" in
29155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29156 *) ac_try_echo=$ac_try;;
29157 esac
29158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29159 (eval "$ac_compile") 2>conftest.er1
29160 ac_status=$?
29161 grep -v '^ *+' conftest.er1 >conftest.err
29162 rm -f conftest.er1
29163 cat conftest.err >&5
29164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165 (exit $ac_status); } && {
29166 test -z "$ac_c_werror_flag" ||
29167 test ! -s conftest.err
29168 } && test -s conftest.$ac_objext; then
29169 ac_header_compiler=yes
29170 else
29171 echo "$as_me: failed program was:" >&5
29172 sed 's/^/| /' conftest.$ac_ext >&5
29174 ac_header_compiler=no
29177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29179 echo "${ECHO_T}$ac_header_compiler" >&6; }
29181 # Is the header present?
29182 { echo "$as_me:$LINENO: checking presence" >&5
29183 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29184 cat >conftest.$ac_ext <<_ACEOF
29185 /* confdefs.h. */
29186 _ACEOF
29187 cat confdefs.h >>conftest.$ac_ext
29188 cat >>conftest.$ac_ext <<_ACEOF
29189 /* end confdefs.h. */
29190 #include <>
29191 _ACEOF
29192 if { (ac_try="$ac_cpp conftest.$ac_ext"
29193 case "(($ac_try" in
29194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29195 *) ac_try_echo=$ac_try;;
29196 esac
29197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29199 ac_status=$?
29200 grep -v '^ *+' conftest.er1 >conftest.err
29201 rm -f conftest.er1
29202 cat conftest.err >&5
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); } >/dev/null && {
29205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29206 test ! -s conftest.err
29207 }; then
29208 ac_header_preproc=yes
29209 else
29210 echo "$as_me: failed program was:" >&5
29211 sed 's/^/| /' conftest.$ac_ext >&5
29213 ac_header_preproc=no
29216 rm -f conftest.err conftest.$ac_ext
29217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29218 echo "${ECHO_T}$ac_header_preproc" >&6; }
29220 # So? What about this header?
29221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29222 yes:no: )
29223 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29224 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29225 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29226 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29227 ac_header_preproc=yes
29229 no:yes:* )
29230 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29231 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29232 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29233 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29234 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29235 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29236 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29237 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29238 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29239 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29240 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29241 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29242 ( cat <<\_ASBOX
29243 ## ------------------------------- ##
29244 ## Report this to www.asterisk.org ##
29245 ## ------------------------------- ##
29246 _ASBOX
29247 ) | sed "s/^/$as_me: WARNING: /" >&2
29249 esac
29250 { echo "$as_me:$LINENO: checking for " >&5
29251 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29252 if test "${ac_cv_header_+set}" = set; then
29253 echo $ECHO_N "(cached) $ECHO_C" >&6
29254 else
29255 ac_cv_header_=$ac_header_preproc
29257 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29258 echo "${ECHO_T}$ac_cv_header_" >&6; }
29261 if test $ac_cv_header_ = yes; then
29262 LOG_HEADER_FOUND=1
29263 else
29264 LOG_HEADER_FOUND=0
29268 CPPFLAGS="${saved_cppflags}"
29270 if test "x${LOG_HEADER_FOUND}" = "x0" ; then
29271 LOG_LIB=""
29272 LOG_INCLUDE=""
29273 else
29274 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29275 LOG_LIB=""
29277 PBX_LOG=1
29278 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29280 cat >>confdefs.h <<_ACEOF
29281 #define HAVE_LOG 1
29282 _ACEOF
29285 cat >>confdefs.h <<_ACEOF
29286 #define HAVE_LOG_VERSION
29287 _ACEOF
29294 if test "x${PBX_REMAINDER}" != "x1" -a "${USE_REMAINDER}" != "no"; then
29295 pbxlibdir=""
29296 # if --with-REMAINDER=DIR has been specified, use it.
29297 if test "x${REMAINDER_DIR}" != "x"; then
29298 if test -d ${REMAINDER_DIR}/lib; then
29299 pbxlibdir="-L${REMAINDER_DIR}/lib"
29300 else
29301 pbxlibdir="-L${REMAINDER_DIR}"
29304 pbxfuncname="remainder"
29305 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29306 AST_REMAINDER_FOUND=yes
29307 else
29308 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29309 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29310 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29311 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29312 echo $ECHO_N "(cached) $ECHO_C" >&6
29313 else
29314 ac_check_lib_save_LIBS=$LIBS
29315 LIBS="-lm ${pbxlibdir} $LIBS"
29316 cat >conftest.$ac_ext <<_ACEOF
29317 /* confdefs.h. */
29318 _ACEOF
29319 cat confdefs.h >>conftest.$ac_ext
29320 cat >>conftest.$ac_ext <<_ACEOF
29321 /* end confdefs.h. */
29323 /* Override any GCC internal prototype to avoid an error.
29324 Use char because int might match the return type of a GCC
29325 builtin and then its argument prototype would still apply. */
29326 #ifdef __cplusplus
29327 extern "C"
29328 #endif
29329 char ${pbxfuncname} ();
29331 main ()
29333 return ${pbxfuncname} ();
29335 return 0;
29337 _ACEOF
29338 rm -f conftest.$ac_objext conftest$ac_exeext
29339 if { (ac_try="$ac_link"
29340 case "(($ac_try" in
29341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29342 *) ac_try_echo=$ac_try;;
29343 esac
29344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29345 (eval "$ac_link") 2>conftest.er1
29346 ac_status=$?
29347 grep -v '^ *+' conftest.er1 >conftest.err
29348 rm -f conftest.er1
29349 cat conftest.err >&5
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); } && {
29352 test -z "$ac_c_werror_flag" ||
29353 test ! -s conftest.err
29354 } && test -s conftest$ac_exeext &&
29355 $as_test_x conftest$ac_exeext; then
29356 eval "$as_ac_Lib=yes"
29357 else
29358 echo "$as_me: failed program was:" >&5
29359 sed 's/^/| /' conftest.$ac_ext >&5
29361 eval "$as_ac_Lib=no"
29364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29365 conftest$ac_exeext conftest.$ac_ext
29366 LIBS=$ac_check_lib_save_LIBS
29368 ac_res=`eval echo '${'$as_ac_Lib'}'`
29369 { echo "$as_me:$LINENO: result: $ac_res" >&5
29370 echo "${ECHO_T}$ac_res" >&6; }
29371 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29372 AST_REMAINDER_FOUND=yes
29373 else
29374 AST_REMAINDER_FOUND=no
29379 # now check for the header.
29380 if test "${AST_REMAINDER_FOUND}" = "yes"; then
29381 REMAINDER_LIB="${pbxlibdir} -lm "
29382 # if --with-REMAINDER=DIR has been specified, use it.
29383 if test "x${REMAINDER_DIR}" != "x"; then
29384 REMAINDER_INCLUDE="-I${REMAINDER_DIR}/include"
29386 REMAINDER_INCLUDE="${REMAINDER_INCLUDE} "
29387 if test "x" = "x" ; then # no header, assume found
29388 REMAINDER_HEADER_FOUND="1"
29389 else # check for the header
29390 saved_cppflags="${CPPFLAGS}"
29391 CPPFLAGS="${CPPFLAGS} ${REMAINDER_INCLUDE}"
29392 if test "${ac_cv_header_+set}" = set; then
29393 { echo "$as_me:$LINENO: checking for " >&5
29394 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29395 if test "${ac_cv_header_+set}" = set; then
29396 echo $ECHO_N "(cached) $ECHO_C" >&6
29398 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29399 echo "${ECHO_T}$ac_cv_header_" >&6; }
29400 else
29401 # Is the header compilable?
29402 { echo "$as_me:$LINENO: checking usability" >&5
29403 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29404 cat >conftest.$ac_ext <<_ACEOF
29405 /* confdefs.h. */
29406 _ACEOF
29407 cat confdefs.h >>conftest.$ac_ext
29408 cat >>conftest.$ac_ext <<_ACEOF
29409 /* end confdefs.h. */
29410 $ac_includes_default
29411 #include <>
29412 _ACEOF
29413 rm -f conftest.$ac_objext
29414 if { (ac_try="$ac_compile"
29415 case "(($ac_try" in
29416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417 *) ac_try_echo=$ac_try;;
29418 esac
29419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29420 (eval "$ac_compile") 2>conftest.er1
29421 ac_status=$?
29422 grep -v '^ *+' conftest.er1 >conftest.err
29423 rm -f conftest.er1
29424 cat conftest.err >&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } && {
29427 test -z "$ac_c_werror_flag" ||
29428 test ! -s conftest.err
29429 } && test -s conftest.$ac_objext; then
29430 ac_header_compiler=yes
29431 else
29432 echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29435 ac_header_compiler=no
29438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29440 echo "${ECHO_T}$ac_header_compiler" >&6; }
29442 # Is the header present?
29443 { echo "$as_me:$LINENO: checking presence" >&5
29444 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29445 cat >conftest.$ac_ext <<_ACEOF
29446 /* confdefs.h. */
29447 _ACEOF
29448 cat confdefs.h >>conftest.$ac_ext
29449 cat >>conftest.$ac_ext <<_ACEOF
29450 /* end confdefs.h. */
29451 #include <>
29452 _ACEOF
29453 if { (ac_try="$ac_cpp conftest.$ac_ext"
29454 case "(($ac_try" in
29455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29456 *) ac_try_echo=$ac_try;;
29457 esac
29458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29460 ac_status=$?
29461 grep -v '^ *+' conftest.er1 >conftest.err
29462 rm -f conftest.er1
29463 cat conftest.err >&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); } >/dev/null && {
29466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29467 test ! -s conftest.err
29468 }; then
29469 ac_header_preproc=yes
29470 else
29471 echo "$as_me: failed program was:" >&5
29472 sed 's/^/| /' conftest.$ac_ext >&5
29474 ac_header_preproc=no
29477 rm -f conftest.err conftest.$ac_ext
29478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29479 echo "${ECHO_T}$ac_header_preproc" >&6; }
29481 # So? What about this header?
29482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29483 yes:no: )
29484 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29485 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29486 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29487 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29488 ac_header_preproc=yes
29490 no:yes:* )
29491 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29492 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29493 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29494 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29495 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29496 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29497 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29498 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29499 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29500 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29501 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29502 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29503 ( cat <<\_ASBOX
29504 ## ------------------------------- ##
29505 ## Report this to www.asterisk.org ##
29506 ## ------------------------------- ##
29507 _ASBOX
29508 ) | sed "s/^/$as_me: WARNING: /" >&2
29510 esac
29511 { echo "$as_me:$LINENO: checking for " >&5
29512 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29513 if test "${ac_cv_header_+set}" = set; then
29514 echo $ECHO_N "(cached) $ECHO_C" >&6
29515 else
29516 ac_cv_header_=$ac_header_preproc
29518 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29519 echo "${ECHO_T}$ac_cv_header_" >&6; }
29522 if test $ac_cv_header_ = yes; then
29523 REMAINDER_HEADER_FOUND=1
29524 else
29525 REMAINDER_HEADER_FOUND=0
29529 CPPFLAGS="${saved_cppflags}"
29531 if test "x${REMAINDER_HEADER_FOUND}" = "x0" ; then
29532 REMAINDER_LIB=""
29533 REMAINDER_INCLUDE=""
29534 else
29535 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29536 REMAINDER_LIB=""
29538 PBX_REMAINDER=1
29539 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29541 cat >>confdefs.h <<_ACEOF
29542 #define HAVE_REMAINDER 1
29543 _ACEOF
29546 cat >>confdefs.h <<_ACEOF
29547 #define HAVE_REMAINDER_VERSION
29548 _ACEOF
29555 if test "x${PBX_FMOD}" != "x1" -a "${USE_FMOD}" != "no"; then
29556 pbxlibdir=""
29557 # if --with-FMOD=DIR has been specified, use it.
29558 if test "x${FMOD_DIR}" != "x"; then
29559 if test -d ${FMOD_DIR}/lib; then
29560 pbxlibdir="-L${FMOD_DIR}/lib"
29561 else
29562 pbxlibdir="-L${FMOD_DIR}"
29565 pbxfuncname="fmod"
29566 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29567 AST_FMOD_FOUND=yes
29568 else
29569 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29570 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29571 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29572 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29573 echo $ECHO_N "(cached) $ECHO_C" >&6
29574 else
29575 ac_check_lib_save_LIBS=$LIBS
29576 LIBS="-lm ${pbxlibdir} $LIBS"
29577 cat >conftest.$ac_ext <<_ACEOF
29578 /* confdefs.h. */
29579 _ACEOF
29580 cat confdefs.h >>conftest.$ac_ext
29581 cat >>conftest.$ac_ext <<_ACEOF
29582 /* end confdefs.h. */
29584 /* Override any GCC internal prototype to avoid an error.
29585 Use char because int might match the return type of a GCC
29586 builtin and then its argument prototype would still apply. */
29587 #ifdef __cplusplus
29588 extern "C"
29589 #endif
29590 char ${pbxfuncname} ();
29592 main ()
29594 return ${pbxfuncname} ();
29596 return 0;
29598 _ACEOF
29599 rm -f conftest.$ac_objext conftest$ac_exeext
29600 if { (ac_try="$ac_link"
29601 case "(($ac_try" in
29602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603 *) ac_try_echo=$ac_try;;
29604 esac
29605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29606 (eval "$ac_link") 2>conftest.er1
29607 ac_status=$?
29608 grep -v '^ *+' conftest.er1 >conftest.err
29609 rm -f conftest.er1
29610 cat conftest.err >&5
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); } && {
29613 test -z "$ac_c_werror_flag" ||
29614 test ! -s conftest.err
29615 } && test -s conftest$ac_exeext &&
29616 $as_test_x conftest$ac_exeext; then
29617 eval "$as_ac_Lib=yes"
29618 else
29619 echo "$as_me: failed program was:" >&5
29620 sed 's/^/| /' conftest.$ac_ext >&5
29622 eval "$as_ac_Lib=no"
29625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29626 conftest$ac_exeext conftest.$ac_ext
29627 LIBS=$ac_check_lib_save_LIBS
29629 ac_res=`eval echo '${'$as_ac_Lib'}'`
29630 { echo "$as_me:$LINENO: result: $ac_res" >&5
29631 echo "${ECHO_T}$ac_res" >&6; }
29632 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29633 AST_FMOD_FOUND=yes
29634 else
29635 AST_FMOD_FOUND=no
29640 # now check for the header.
29641 if test "${AST_FMOD_FOUND}" = "yes"; then
29642 FMOD_LIB="${pbxlibdir} -lm "
29643 # if --with-FMOD=DIR has been specified, use it.
29644 if test "x${FMOD_DIR}" != "x"; then
29645 FMOD_INCLUDE="-I${FMOD_DIR}/include"
29647 FMOD_INCLUDE="${FMOD_INCLUDE} "
29648 if test "x" = "x" ; then # no header, assume found
29649 FMOD_HEADER_FOUND="1"
29650 else # check for the header
29651 saved_cppflags="${CPPFLAGS}"
29652 CPPFLAGS="${CPPFLAGS} ${FMOD_INCLUDE}"
29653 if test "${ac_cv_header_+set}" = set; then
29654 { echo "$as_me:$LINENO: checking for " >&5
29655 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29656 if test "${ac_cv_header_+set}" = set; then
29657 echo $ECHO_N "(cached) $ECHO_C" >&6
29659 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29660 echo "${ECHO_T}$ac_cv_header_" >&6; }
29661 else
29662 # Is the header compilable?
29663 { echo "$as_me:$LINENO: checking usability" >&5
29664 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29665 cat >conftest.$ac_ext <<_ACEOF
29666 /* confdefs.h. */
29667 _ACEOF
29668 cat confdefs.h >>conftest.$ac_ext
29669 cat >>conftest.$ac_ext <<_ACEOF
29670 /* end confdefs.h. */
29671 $ac_includes_default
29672 #include <>
29673 _ACEOF
29674 rm -f conftest.$ac_objext
29675 if { (ac_try="$ac_compile"
29676 case "(($ac_try" in
29677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29678 *) ac_try_echo=$ac_try;;
29679 esac
29680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29681 (eval "$ac_compile") 2>conftest.er1
29682 ac_status=$?
29683 grep -v '^ *+' conftest.er1 >conftest.err
29684 rm -f conftest.er1
29685 cat conftest.err >&5
29686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687 (exit $ac_status); } && {
29688 test -z "$ac_c_werror_flag" ||
29689 test ! -s conftest.err
29690 } && test -s conftest.$ac_objext; then
29691 ac_header_compiler=yes
29692 else
29693 echo "$as_me: failed program was:" >&5
29694 sed 's/^/| /' conftest.$ac_ext >&5
29696 ac_header_compiler=no
29699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29701 echo "${ECHO_T}$ac_header_compiler" >&6; }
29703 # Is the header present?
29704 { echo "$as_me:$LINENO: checking presence" >&5
29705 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29706 cat >conftest.$ac_ext <<_ACEOF
29707 /* confdefs.h. */
29708 _ACEOF
29709 cat confdefs.h >>conftest.$ac_ext
29710 cat >>conftest.$ac_ext <<_ACEOF
29711 /* end confdefs.h. */
29712 #include <>
29713 _ACEOF
29714 if { (ac_try="$ac_cpp conftest.$ac_ext"
29715 case "(($ac_try" in
29716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29717 *) ac_try_echo=$ac_try;;
29718 esac
29719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29721 ac_status=$?
29722 grep -v '^ *+' conftest.er1 >conftest.err
29723 rm -f conftest.er1
29724 cat conftest.err >&5
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); } >/dev/null && {
29727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29728 test ! -s conftest.err
29729 }; then
29730 ac_header_preproc=yes
29731 else
29732 echo "$as_me: failed program was:" >&5
29733 sed 's/^/| /' conftest.$ac_ext >&5
29735 ac_header_preproc=no
29738 rm -f conftest.err conftest.$ac_ext
29739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29740 echo "${ECHO_T}$ac_header_preproc" >&6; }
29742 # So? What about this header?
29743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29744 yes:no: )
29745 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29746 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29747 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29748 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29749 ac_header_preproc=yes
29751 no:yes:* )
29752 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29753 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29754 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29755 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29756 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29757 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29758 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29759 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29760 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29761 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29762 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29763 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29764 ( cat <<\_ASBOX
29765 ## ------------------------------- ##
29766 ## Report this to www.asterisk.org ##
29767 ## ------------------------------- ##
29768 _ASBOX
29769 ) | sed "s/^/$as_me: WARNING: /" >&2
29771 esac
29772 { echo "$as_me:$LINENO: checking for " >&5
29773 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29774 if test "${ac_cv_header_+set}" = set; then
29775 echo $ECHO_N "(cached) $ECHO_C" >&6
29776 else
29777 ac_cv_header_=$ac_header_preproc
29779 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29780 echo "${ECHO_T}$ac_cv_header_" >&6; }
29783 if test $ac_cv_header_ = yes; then
29784 FMOD_HEADER_FOUND=1
29785 else
29786 FMOD_HEADER_FOUND=0
29790 CPPFLAGS="${saved_cppflags}"
29792 if test "x${FMOD_HEADER_FOUND}" = "x0" ; then
29793 FMOD_LIB=""
29794 FMOD_INCLUDE=""
29795 else
29796 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29797 FMOD_LIB=""
29799 PBX_FMOD=1
29800 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29802 cat >>confdefs.h <<_ACEOF
29803 #define HAVE_FMOD 1
29804 _ACEOF
29807 cat >>confdefs.h <<_ACEOF
29808 #define HAVE_FMOD_VERSION
29809 _ACEOF
29816 if test "x${PBX_ROUND}" != "x1" -a "${USE_ROUND}" != "no"; then
29817 pbxlibdir=""
29818 # if --with-ROUND=DIR has been specified, use it.
29819 if test "x${ROUND_DIR}" != "x"; then
29820 if test -d ${ROUND_DIR}/lib; then
29821 pbxlibdir="-L${ROUND_DIR}/lib"
29822 else
29823 pbxlibdir="-L${ROUND_DIR}"
29826 pbxfuncname="round"
29827 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29828 AST_ROUND_FOUND=yes
29829 else
29830 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29831 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29832 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29833 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29834 echo $ECHO_N "(cached) $ECHO_C" >&6
29835 else
29836 ac_check_lib_save_LIBS=$LIBS
29837 LIBS="-lm ${pbxlibdir} $LIBS"
29838 cat >conftest.$ac_ext <<_ACEOF
29839 /* confdefs.h. */
29840 _ACEOF
29841 cat confdefs.h >>conftest.$ac_ext
29842 cat >>conftest.$ac_ext <<_ACEOF
29843 /* end confdefs.h. */
29845 /* Override any GCC internal prototype to avoid an error.
29846 Use char because int might match the return type of a GCC
29847 builtin and then its argument prototype would still apply. */
29848 #ifdef __cplusplus
29849 extern "C"
29850 #endif
29851 char ${pbxfuncname} ();
29853 main ()
29855 return ${pbxfuncname} ();
29857 return 0;
29859 _ACEOF
29860 rm -f conftest.$ac_objext conftest$ac_exeext
29861 if { (ac_try="$ac_link"
29862 case "(($ac_try" in
29863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29864 *) ac_try_echo=$ac_try;;
29865 esac
29866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29867 (eval "$ac_link") 2>conftest.er1
29868 ac_status=$?
29869 grep -v '^ *+' conftest.er1 >conftest.err
29870 rm -f conftest.er1
29871 cat conftest.err >&5
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); } && {
29874 test -z "$ac_c_werror_flag" ||
29875 test ! -s conftest.err
29876 } && test -s conftest$ac_exeext &&
29877 $as_test_x conftest$ac_exeext; then
29878 eval "$as_ac_Lib=yes"
29879 else
29880 echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29883 eval "$as_ac_Lib=no"
29886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29887 conftest$ac_exeext conftest.$ac_ext
29888 LIBS=$ac_check_lib_save_LIBS
29890 ac_res=`eval echo '${'$as_ac_Lib'}'`
29891 { echo "$as_me:$LINENO: result: $ac_res" >&5
29892 echo "${ECHO_T}$ac_res" >&6; }
29893 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29894 AST_ROUND_FOUND=yes
29895 else
29896 AST_ROUND_FOUND=no
29901 # now check for the header.
29902 if test "${AST_ROUND_FOUND}" = "yes"; then
29903 ROUND_LIB="${pbxlibdir} -lm "
29904 # if --with-ROUND=DIR has been specified, use it.
29905 if test "x${ROUND_DIR}" != "x"; then
29906 ROUND_INCLUDE="-I${ROUND_DIR}/include"
29908 ROUND_INCLUDE="${ROUND_INCLUDE} "
29909 if test "x" = "x" ; then # no header, assume found
29910 ROUND_HEADER_FOUND="1"
29911 else # check for the header
29912 saved_cppflags="${CPPFLAGS}"
29913 CPPFLAGS="${CPPFLAGS} ${ROUND_INCLUDE}"
29914 if test "${ac_cv_header_+set}" = set; then
29915 { echo "$as_me:$LINENO: checking for " >&5
29916 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29917 if test "${ac_cv_header_+set}" = set; then
29918 echo $ECHO_N "(cached) $ECHO_C" >&6
29920 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29921 echo "${ECHO_T}$ac_cv_header_" >&6; }
29922 else
29923 # Is the header compilable?
29924 { echo "$as_me:$LINENO: checking usability" >&5
29925 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29926 cat >conftest.$ac_ext <<_ACEOF
29927 /* confdefs.h. */
29928 _ACEOF
29929 cat confdefs.h >>conftest.$ac_ext
29930 cat >>conftest.$ac_ext <<_ACEOF
29931 /* end confdefs.h. */
29932 $ac_includes_default
29933 #include <>
29934 _ACEOF
29935 rm -f conftest.$ac_objext
29936 if { (ac_try="$ac_compile"
29937 case "(($ac_try" in
29938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29939 *) ac_try_echo=$ac_try;;
29940 esac
29941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29942 (eval "$ac_compile") 2>conftest.er1
29943 ac_status=$?
29944 grep -v '^ *+' conftest.er1 >conftest.err
29945 rm -f conftest.er1
29946 cat conftest.err >&5
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); } && {
29949 test -z "$ac_c_werror_flag" ||
29950 test ! -s conftest.err
29951 } && test -s conftest.$ac_objext; then
29952 ac_header_compiler=yes
29953 else
29954 echo "$as_me: failed program was:" >&5
29955 sed 's/^/| /' conftest.$ac_ext >&5
29957 ac_header_compiler=no
29960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29962 echo "${ECHO_T}$ac_header_compiler" >&6; }
29964 # Is the header present?
29965 { echo "$as_me:$LINENO: checking presence" >&5
29966 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29967 cat >conftest.$ac_ext <<_ACEOF
29968 /* confdefs.h. */
29969 _ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h. */
29973 #include <>
29974 _ACEOF
29975 if { (ac_try="$ac_cpp conftest.$ac_ext"
29976 case "(($ac_try" in
29977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29978 *) ac_try_echo=$ac_try;;
29979 esac
29980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29982 ac_status=$?
29983 grep -v '^ *+' conftest.er1 >conftest.err
29984 rm -f conftest.er1
29985 cat conftest.err >&5
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); } >/dev/null && {
29988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29989 test ! -s conftest.err
29990 }; then
29991 ac_header_preproc=yes
29992 else
29993 echo "$as_me: failed program was:" >&5
29994 sed 's/^/| /' conftest.$ac_ext >&5
29996 ac_header_preproc=no
29999 rm -f conftest.err conftest.$ac_ext
30000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30001 echo "${ECHO_T}$ac_header_preproc" >&6; }
30003 # So? What about this header?
30004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30005 yes:no: )
30006 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30007 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30008 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30009 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30010 ac_header_preproc=yes
30012 no:yes:* )
30013 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30014 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30015 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30016 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30017 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30018 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30019 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30020 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30021 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30022 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30023 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30024 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30025 ( cat <<\_ASBOX
30026 ## ------------------------------- ##
30027 ## Report this to www.asterisk.org ##
30028 ## ------------------------------- ##
30029 _ASBOX
30030 ) | sed "s/^/$as_me: WARNING: /" >&2
30032 esac
30033 { echo "$as_me:$LINENO: checking for " >&5
30034 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30035 if test "${ac_cv_header_+set}" = set; then
30036 echo $ECHO_N "(cached) $ECHO_C" >&6
30037 else
30038 ac_cv_header_=$ac_header_preproc
30040 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30041 echo "${ECHO_T}$ac_cv_header_" >&6; }
30044 if test $ac_cv_header_ = yes; then
30045 ROUND_HEADER_FOUND=1
30046 else
30047 ROUND_HEADER_FOUND=0
30051 CPPFLAGS="${saved_cppflags}"
30053 if test "x${ROUND_HEADER_FOUND}" = "x0" ; then
30054 ROUND_LIB=""
30055 ROUND_INCLUDE=""
30056 else
30057 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30058 ROUND_LIB=""
30060 PBX_ROUND=1
30061 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30063 cat >>confdefs.h <<_ACEOF
30064 #define HAVE_ROUND 1
30065 _ACEOF
30068 cat >>confdefs.h <<_ACEOF
30069 #define HAVE_ROUND_VERSION
30070 _ACEOF
30077 if test "x${PBX_TRUNC}" != "x1" -a "${USE_TRUNC}" != "no"; then
30078 pbxlibdir=""
30079 # if --with-TRUNC=DIR has been specified, use it.
30080 if test "x${TRUNC_DIR}" != "x"; then
30081 if test -d ${TRUNC_DIR}/lib; then
30082 pbxlibdir="-L${TRUNC_DIR}/lib"
30083 else
30084 pbxlibdir="-L${TRUNC_DIR}"
30087 pbxfuncname="trunc"
30088 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30089 AST_TRUNC_FOUND=yes
30090 else
30091 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30092 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30093 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30094 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30095 echo $ECHO_N "(cached) $ECHO_C" >&6
30096 else
30097 ac_check_lib_save_LIBS=$LIBS
30098 LIBS="-lm ${pbxlibdir} $LIBS"
30099 cat >conftest.$ac_ext <<_ACEOF
30100 /* confdefs.h. */
30101 _ACEOF
30102 cat confdefs.h >>conftest.$ac_ext
30103 cat >>conftest.$ac_ext <<_ACEOF
30104 /* end confdefs.h. */
30106 /* Override any GCC internal prototype to avoid an error.
30107 Use char because int might match the return type of a GCC
30108 builtin and then its argument prototype would still apply. */
30109 #ifdef __cplusplus
30110 extern "C"
30111 #endif
30112 char ${pbxfuncname} ();
30114 main ()
30116 return ${pbxfuncname} ();
30118 return 0;
30120 _ACEOF
30121 rm -f conftest.$ac_objext conftest$ac_exeext
30122 if { (ac_try="$ac_link"
30123 case "(($ac_try" in
30124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30125 *) ac_try_echo=$ac_try;;
30126 esac
30127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30128 (eval "$ac_link") 2>conftest.er1
30129 ac_status=$?
30130 grep -v '^ *+' conftest.er1 >conftest.err
30131 rm -f conftest.er1
30132 cat conftest.err >&5
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); } && {
30135 test -z "$ac_c_werror_flag" ||
30136 test ! -s conftest.err
30137 } && test -s conftest$ac_exeext &&
30138 $as_test_x conftest$ac_exeext; then
30139 eval "$as_ac_Lib=yes"
30140 else
30141 echo "$as_me: failed program was:" >&5
30142 sed 's/^/| /' conftest.$ac_ext >&5
30144 eval "$as_ac_Lib=no"
30147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30148 conftest$ac_exeext conftest.$ac_ext
30149 LIBS=$ac_check_lib_save_LIBS
30151 ac_res=`eval echo '${'$as_ac_Lib'}'`
30152 { echo "$as_me:$LINENO: result: $ac_res" >&5
30153 echo "${ECHO_T}$ac_res" >&6; }
30154 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30155 AST_TRUNC_FOUND=yes
30156 else
30157 AST_TRUNC_FOUND=no
30162 # now check for the header.
30163 if test "${AST_TRUNC_FOUND}" = "yes"; then
30164 TRUNC_LIB="${pbxlibdir} -lm "
30165 # if --with-TRUNC=DIR has been specified, use it.
30166 if test "x${TRUNC_DIR}" != "x"; then
30167 TRUNC_INCLUDE="-I${TRUNC_DIR}/include"
30169 TRUNC_INCLUDE="${TRUNC_INCLUDE} "
30170 if test "x" = "x" ; then # no header, assume found
30171 TRUNC_HEADER_FOUND="1"
30172 else # check for the header
30173 saved_cppflags="${CPPFLAGS}"
30174 CPPFLAGS="${CPPFLAGS} ${TRUNC_INCLUDE}"
30175 if test "${ac_cv_header_+set}" = set; then
30176 { echo "$as_me:$LINENO: checking for " >&5
30177 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30178 if test "${ac_cv_header_+set}" = set; then
30179 echo $ECHO_N "(cached) $ECHO_C" >&6
30181 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30182 echo "${ECHO_T}$ac_cv_header_" >&6; }
30183 else
30184 # Is the header compilable?
30185 { echo "$as_me:$LINENO: checking usability" >&5
30186 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30187 cat >conftest.$ac_ext <<_ACEOF
30188 /* confdefs.h. */
30189 _ACEOF
30190 cat confdefs.h >>conftest.$ac_ext
30191 cat >>conftest.$ac_ext <<_ACEOF
30192 /* end confdefs.h. */
30193 $ac_includes_default
30194 #include <>
30195 _ACEOF
30196 rm -f conftest.$ac_objext
30197 if { (ac_try="$ac_compile"
30198 case "(($ac_try" in
30199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200 *) ac_try_echo=$ac_try;;
30201 esac
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203 (eval "$ac_compile") 2>conftest.er1
30204 ac_status=$?
30205 grep -v '^ *+' conftest.er1 >conftest.err
30206 rm -f conftest.er1
30207 cat conftest.err >&5
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); } && {
30210 test -z "$ac_c_werror_flag" ||
30211 test ! -s conftest.err
30212 } && test -s conftest.$ac_objext; then
30213 ac_header_compiler=yes
30214 else
30215 echo "$as_me: failed program was:" >&5
30216 sed 's/^/| /' conftest.$ac_ext >&5
30218 ac_header_compiler=no
30221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30223 echo "${ECHO_T}$ac_header_compiler" >&6; }
30225 # Is the header present?
30226 { echo "$as_me:$LINENO: checking presence" >&5
30227 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30228 cat >conftest.$ac_ext <<_ACEOF
30229 /* confdefs.h. */
30230 _ACEOF
30231 cat confdefs.h >>conftest.$ac_ext
30232 cat >>conftest.$ac_ext <<_ACEOF
30233 /* end confdefs.h. */
30234 #include <>
30235 _ACEOF
30236 if { (ac_try="$ac_cpp conftest.$ac_ext"
30237 case "(($ac_try" in
30238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30239 *) ac_try_echo=$ac_try;;
30240 esac
30241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30243 ac_status=$?
30244 grep -v '^ *+' conftest.er1 >conftest.err
30245 rm -f conftest.er1
30246 cat conftest.err >&5
30247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30248 (exit $ac_status); } >/dev/null && {
30249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30250 test ! -s conftest.err
30251 }; then
30252 ac_header_preproc=yes
30253 else
30254 echo "$as_me: failed program was:" >&5
30255 sed 's/^/| /' conftest.$ac_ext >&5
30257 ac_header_preproc=no
30260 rm -f conftest.err conftest.$ac_ext
30261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30262 echo "${ECHO_T}$ac_header_preproc" >&6; }
30264 # So? What about this header?
30265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30266 yes:no: )
30267 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30268 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30269 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30270 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30271 ac_header_preproc=yes
30273 no:yes:* )
30274 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30275 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30276 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30277 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30278 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30279 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30280 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30281 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30282 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30283 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30284 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30285 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30286 ( cat <<\_ASBOX
30287 ## ------------------------------- ##
30288 ## Report this to www.asterisk.org ##
30289 ## ------------------------------- ##
30290 _ASBOX
30291 ) | sed "s/^/$as_me: WARNING: /" >&2
30293 esac
30294 { echo "$as_me:$LINENO: checking for " >&5
30295 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30296 if test "${ac_cv_header_+set}" = set; then
30297 echo $ECHO_N "(cached) $ECHO_C" >&6
30298 else
30299 ac_cv_header_=$ac_header_preproc
30301 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30302 echo "${ECHO_T}$ac_cv_header_" >&6; }
30305 if test $ac_cv_header_ = yes; then
30306 TRUNC_HEADER_FOUND=1
30307 else
30308 TRUNC_HEADER_FOUND=0
30312 CPPFLAGS="${saved_cppflags}"
30314 if test "x${TRUNC_HEADER_FOUND}" = "x0" ; then
30315 TRUNC_LIB=""
30316 TRUNC_INCLUDE=""
30317 else
30318 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30319 TRUNC_LIB=""
30321 PBX_TRUNC=1
30322 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30324 cat >>confdefs.h <<_ACEOF
30325 #define HAVE_TRUNC 1
30326 _ACEOF
30329 cat >>confdefs.h <<_ACEOF
30330 #define HAVE_TRUNC_VERSION
30331 _ACEOF
30338 if test "x${PBX_STRTOD}" != "x1" -a "${USE_STRTOD}" != "no"; then
30339 pbxlibdir=""
30340 # if --with-STRTOD=DIR has been specified, use it.
30341 if test "x${STRTOD_DIR}" != "x"; then
30342 if test -d ${STRTOD_DIR}/lib; then
30343 pbxlibdir="-L${STRTOD_DIR}/lib"
30344 else
30345 pbxlibdir="-L${STRTOD_DIR}"
30348 pbxfuncname="strtod"
30349 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30350 AST_STRTOD_FOUND=yes
30351 else
30352 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
30353 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
30354 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
30355 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30356 echo $ECHO_N "(cached) $ECHO_C" >&6
30357 else
30358 ac_check_lib_save_LIBS=$LIBS
30359 LIBS="-lc ${pbxlibdir} $LIBS"
30360 cat >conftest.$ac_ext <<_ACEOF
30361 /* confdefs.h. */
30362 _ACEOF
30363 cat confdefs.h >>conftest.$ac_ext
30364 cat >>conftest.$ac_ext <<_ACEOF
30365 /* end confdefs.h. */
30367 /* Override any GCC internal prototype to avoid an error.
30368 Use char because int might match the return type of a GCC
30369 builtin and then its argument prototype would still apply. */
30370 #ifdef __cplusplus
30371 extern "C"
30372 #endif
30373 char ${pbxfuncname} ();
30375 main ()
30377 return ${pbxfuncname} ();
30379 return 0;
30381 _ACEOF
30382 rm -f conftest.$ac_objext conftest$ac_exeext
30383 if { (ac_try="$ac_link"
30384 case "(($ac_try" in
30385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30386 *) ac_try_echo=$ac_try;;
30387 esac
30388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30389 (eval "$ac_link") 2>conftest.er1
30390 ac_status=$?
30391 grep -v '^ *+' conftest.er1 >conftest.err
30392 rm -f conftest.er1
30393 cat conftest.err >&5
30394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395 (exit $ac_status); } && {
30396 test -z "$ac_c_werror_flag" ||
30397 test ! -s conftest.err
30398 } && test -s conftest$ac_exeext &&
30399 $as_test_x conftest$ac_exeext; then
30400 eval "$as_ac_Lib=yes"
30401 else
30402 echo "$as_me: failed program was:" >&5
30403 sed 's/^/| /' conftest.$ac_ext >&5
30405 eval "$as_ac_Lib=no"
30408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30409 conftest$ac_exeext conftest.$ac_ext
30410 LIBS=$ac_check_lib_save_LIBS
30412 ac_res=`eval echo '${'$as_ac_Lib'}'`
30413 { echo "$as_me:$LINENO: result: $ac_res" >&5
30414 echo "${ECHO_T}$ac_res" >&6; }
30415 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30416 AST_STRTOD_FOUND=yes
30417 else
30418 AST_STRTOD_FOUND=no
30423 # now check for the header.
30424 if test "${AST_STRTOD_FOUND}" = "yes"; then
30425 STRTOD_LIB="${pbxlibdir} -lc "
30426 # if --with-STRTOD=DIR has been specified, use it.
30427 if test "x${STRTOD_DIR}" != "x"; then
30428 STRTOD_INCLUDE="-I${STRTOD_DIR}/include"
30430 STRTOD_INCLUDE="${STRTOD_INCLUDE} "
30431 if test "xstdlib.h" = "x" ; then # no header, assume found
30432 STRTOD_HEADER_FOUND="1"
30433 else # check for the header
30434 saved_cppflags="${CPPFLAGS}"
30435 CPPFLAGS="${CPPFLAGS} ${STRTOD_INCLUDE}"
30436 if test "${ac_cv_header_stdlib_h+set}" = set; then
30437 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30438 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30439 if test "${ac_cv_header_stdlib_h+set}" = set; then
30440 echo $ECHO_N "(cached) $ECHO_C" >&6
30442 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30443 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30444 else
30445 # Is the header compilable?
30446 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
30447 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
30448 cat >conftest.$ac_ext <<_ACEOF
30449 /* confdefs.h. */
30450 _ACEOF
30451 cat confdefs.h >>conftest.$ac_ext
30452 cat >>conftest.$ac_ext <<_ACEOF
30453 /* end confdefs.h. */
30454 $ac_includes_default
30455 #include <stdlib.h>
30456 _ACEOF
30457 rm -f conftest.$ac_objext
30458 if { (ac_try="$ac_compile"
30459 case "(($ac_try" in
30460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30461 *) ac_try_echo=$ac_try;;
30462 esac
30463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30464 (eval "$ac_compile") 2>conftest.er1
30465 ac_status=$?
30466 grep -v '^ *+' conftest.er1 >conftest.err
30467 rm -f conftest.er1
30468 cat conftest.err >&5
30469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470 (exit $ac_status); } && {
30471 test -z "$ac_c_werror_flag" ||
30472 test ! -s conftest.err
30473 } && test -s conftest.$ac_objext; then
30474 ac_header_compiler=yes
30475 else
30476 echo "$as_me: failed program was:" >&5
30477 sed 's/^/| /' conftest.$ac_ext >&5
30479 ac_header_compiler=no
30482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30484 echo "${ECHO_T}$ac_header_compiler" >&6; }
30486 # Is the header present?
30487 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
30488 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
30489 cat >conftest.$ac_ext <<_ACEOF
30490 /* confdefs.h. */
30491 _ACEOF
30492 cat confdefs.h >>conftest.$ac_ext
30493 cat >>conftest.$ac_ext <<_ACEOF
30494 /* end confdefs.h. */
30495 #include <stdlib.h>
30496 _ACEOF
30497 if { (ac_try="$ac_cpp conftest.$ac_ext"
30498 case "(($ac_try" in
30499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500 *) ac_try_echo=$ac_try;;
30501 esac
30502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30504 ac_status=$?
30505 grep -v '^ *+' conftest.er1 >conftest.err
30506 rm -f conftest.er1
30507 cat conftest.err >&5
30508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509 (exit $ac_status); } >/dev/null && {
30510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30511 test ! -s conftest.err
30512 }; then
30513 ac_header_preproc=yes
30514 else
30515 echo "$as_me: failed program was:" >&5
30516 sed 's/^/| /' conftest.$ac_ext >&5
30518 ac_header_preproc=no
30521 rm -f conftest.err conftest.$ac_ext
30522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30523 echo "${ECHO_T}$ac_header_preproc" >&6; }
30525 # So? What about this header?
30526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30527 yes:no: )
30528 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30529 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30530 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
30531 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
30532 ac_header_preproc=yes
30534 no:yes:* )
30535 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
30536 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
30537 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
30538 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
30539 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
30540 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
30541 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
30542 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30543 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
30544 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
30545 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
30546 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
30547 ( cat <<\_ASBOX
30548 ## ------------------------------- ##
30549 ## Report this to www.asterisk.org ##
30550 ## ------------------------------- ##
30551 _ASBOX
30552 ) | sed "s/^/$as_me: WARNING: /" >&2
30554 esac
30555 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30556 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30557 if test "${ac_cv_header_stdlib_h+set}" = set; then
30558 echo $ECHO_N "(cached) $ECHO_C" >&6
30559 else
30560 ac_cv_header_stdlib_h=$ac_header_preproc
30562 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30563 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30566 if test $ac_cv_header_stdlib_h = yes; then
30567 STRTOD_HEADER_FOUND=1
30568 else
30569 STRTOD_HEADER_FOUND=0
30573 CPPFLAGS="${saved_cppflags}"
30575 if test "x${STRTOD_HEADER_FOUND}" = "x0" ; then
30576 STRTOD_LIB=""
30577 STRTOD_INCLUDE=""
30578 else
30579 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30580 STRTOD_LIB=""
30582 PBX_STRTOD=1
30583 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30585 cat >>confdefs.h <<_ACEOF
30586 #define HAVE_STRTOD 1
30587 _ACEOF
30590 cat >>confdefs.h <<_ACEOF
30591 #define HAVE_STRTOD_VERSION
30592 _ACEOF
30599 if test "x${PBX_FLOOR}" != "x1" -a "${USE_FLOOR}" != "no"; then
30600 pbxlibdir=""
30601 # if --with-FLOOR=DIR has been specified, use it.
30602 if test "x${FLOOR_DIR}" != "x"; then
30603 if test -d ${FLOOR_DIR}/lib; then
30604 pbxlibdir="-L${FLOOR_DIR}/lib"
30605 else
30606 pbxlibdir="-L${FLOOR_DIR}"
30609 pbxfuncname="floor"
30610 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30611 AST_FLOOR_FOUND=yes
30612 else
30613 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30614 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30615 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30616 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30617 echo $ECHO_N "(cached) $ECHO_C" >&6
30618 else
30619 ac_check_lib_save_LIBS=$LIBS
30620 LIBS="-lm ${pbxlibdir} $LIBS"
30621 cat >conftest.$ac_ext <<_ACEOF
30622 /* confdefs.h. */
30623 _ACEOF
30624 cat confdefs.h >>conftest.$ac_ext
30625 cat >>conftest.$ac_ext <<_ACEOF
30626 /* end confdefs.h. */
30628 /* Override any GCC internal prototype to avoid an error.
30629 Use char because int might match the return type of a GCC
30630 builtin and then its argument prototype would still apply. */
30631 #ifdef __cplusplus
30632 extern "C"
30633 #endif
30634 char ${pbxfuncname} ();
30636 main ()
30638 return ${pbxfuncname} ();
30640 return 0;
30642 _ACEOF
30643 rm -f conftest.$ac_objext conftest$ac_exeext
30644 if { (ac_try="$ac_link"
30645 case "(($ac_try" in
30646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30647 *) ac_try_echo=$ac_try;;
30648 esac
30649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30650 (eval "$ac_link") 2>conftest.er1
30651 ac_status=$?
30652 grep -v '^ *+' conftest.er1 >conftest.err
30653 rm -f conftest.er1
30654 cat conftest.err >&5
30655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30656 (exit $ac_status); } && {
30657 test -z "$ac_c_werror_flag" ||
30658 test ! -s conftest.err
30659 } && test -s conftest$ac_exeext &&
30660 $as_test_x conftest$ac_exeext; then
30661 eval "$as_ac_Lib=yes"
30662 else
30663 echo "$as_me: failed program was:" >&5
30664 sed 's/^/| /' conftest.$ac_ext >&5
30666 eval "$as_ac_Lib=no"
30669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30670 conftest$ac_exeext conftest.$ac_ext
30671 LIBS=$ac_check_lib_save_LIBS
30673 ac_res=`eval echo '${'$as_ac_Lib'}'`
30674 { echo "$as_me:$LINENO: result: $ac_res" >&5
30675 echo "${ECHO_T}$ac_res" >&6; }
30676 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30677 AST_FLOOR_FOUND=yes
30678 else
30679 AST_FLOOR_FOUND=no
30684 # now check for the header.
30685 if test "${AST_FLOOR_FOUND}" = "yes"; then
30686 FLOOR_LIB="${pbxlibdir} -lm "
30687 # if --with-FLOOR=DIR has been specified, use it.
30688 if test "x${FLOOR_DIR}" != "x"; then
30689 FLOOR_INCLUDE="-I${FLOOR_DIR}/include"
30691 FLOOR_INCLUDE="${FLOOR_INCLUDE} "
30692 if test "x" = "x" ; then # no header, assume found
30693 FLOOR_HEADER_FOUND="1"
30694 else # check for the header
30695 saved_cppflags="${CPPFLAGS}"
30696 CPPFLAGS="${CPPFLAGS} ${FLOOR_INCLUDE}"
30697 if test "${ac_cv_header_+set}" = set; then
30698 { echo "$as_me:$LINENO: checking for " >&5
30699 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30700 if test "${ac_cv_header_+set}" = set; then
30701 echo $ECHO_N "(cached) $ECHO_C" >&6
30703 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30704 echo "${ECHO_T}$ac_cv_header_" >&6; }
30705 else
30706 # Is the header compilable?
30707 { echo "$as_me:$LINENO: checking usability" >&5
30708 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30709 cat >conftest.$ac_ext <<_ACEOF
30710 /* confdefs.h. */
30711 _ACEOF
30712 cat confdefs.h >>conftest.$ac_ext
30713 cat >>conftest.$ac_ext <<_ACEOF
30714 /* end confdefs.h. */
30715 $ac_includes_default
30716 #include <>
30717 _ACEOF
30718 rm -f conftest.$ac_objext
30719 if { (ac_try="$ac_compile"
30720 case "(($ac_try" in
30721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30722 *) ac_try_echo=$ac_try;;
30723 esac
30724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30725 (eval "$ac_compile") 2>conftest.er1
30726 ac_status=$?
30727 grep -v '^ *+' conftest.er1 >conftest.err
30728 rm -f conftest.er1
30729 cat conftest.err >&5
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); } && {
30732 test -z "$ac_c_werror_flag" ||
30733 test ! -s conftest.err
30734 } && test -s conftest.$ac_objext; then
30735 ac_header_compiler=yes
30736 else
30737 echo "$as_me: failed program was:" >&5
30738 sed 's/^/| /' conftest.$ac_ext >&5
30740 ac_header_compiler=no
30743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30745 echo "${ECHO_T}$ac_header_compiler" >&6; }
30747 # Is the header present?
30748 { echo "$as_me:$LINENO: checking presence" >&5
30749 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30750 cat >conftest.$ac_ext <<_ACEOF
30751 /* confdefs.h. */
30752 _ACEOF
30753 cat confdefs.h >>conftest.$ac_ext
30754 cat >>conftest.$ac_ext <<_ACEOF
30755 /* end confdefs.h. */
30756 #include <>
30757 _ACEOF
30758 if { (ac_try="$ac_cpp conftest.$ac_ext"
30759 case "(($ac_try" in
30760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30761 *) ac_try_echo=$ac_try;;
30762 esac
30763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30765 ac_status=$?
30766 grep -v '^ *+' conftest.er1 >conftest.err
30767 rm -f conftest.er1
30768 cat conftest.err >&5
30769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770 (exit $ac_status); } >/dev/null && {
30771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30772 test ! -s conftest.err
30773 }; then
30774 ac_header_preproc=yes
30775 else
30776 echo "$as_me: failed program was:" >&5
30777 sed 's/^/| /' conftest.$ac_ext >&5
30779 ac_header_preproc=no
30782 rm -f conftest.err conftest.$ac_ext
30783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30784 echo "${ECHO_T}$ac_header_preproc" >&6; }
30786 # So? What about this header?
30787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30788 yes:no: )
30789 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30790 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30791 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30792 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30793 ac_header_preproc=yes
30795 no:yes:* )
30796 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30797 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30798 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30799 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30800 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30801 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30802 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30803 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30804 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30805 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30806 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30807 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30808 ( cat <<\_ASBOX
30809 ## ------------------------------- ##
30810 ## Report this to www.asterisk.org ##
30811 ## ------------------------------- ##
30812 _ASBOX
30813 ) | sed "s/^/$as_me: WARNING: /" >&2
30815 esac
30816 { echo "$as_me:$LINENO: checking for " >&5
30817 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30818 if test "${ac_cv_header_+set}" = set; then
30819 echo $ECHO_N "(cached) $ECHO_C" >&6
30820 else
30821 ac_cv_header_=$ac_header_preproc
30823 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30824 echo "${ECHO_T}$ac_cv_header_" >&6; }
30827 if test $ac_cv_header_ = yes; then
30828 FLOOR_HEADER_FOUND=1
30829 else
30830 FLOOR_HEADER_FOUND=0
30834 CPPFLAGS="${saved_cppflags}"
30836 if test "x${FLOOR_HEADER_FOUND}" = "x0" ; then
30837 FLOOR_LIB=""
30838 FLOOR_INCLUDE=""
30839 else
30840 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30841 FLOOR_LIB=""
30843 PBX_FLOOR=1
30844 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30846 cat >>confdefs.h <<_ACEOF
30847 #define HAVE_FLOOR 1
30848 _ACEOF
30851 cat >>confdefs.h <<_ACEOF
30852 #define HAVE_FLOOR_VERSION
30853 _ACEOF
30860 if test "x${PBX_CEIL}" != "x1" -a "${USE_CEIL}" != "no"; then
30861 pbxlibdir=""
30862 # if --with-CEIL=DIR has been specified, use it.
30863 if test "x${CEIL_DIR}" != "x"; then
30864 if test -d ${CEIL_DIR}/lib; then
30865 pbxlibdir="-L${CEIL_DIR}/lib"
30866 else
30867 pbxlibdir="-L${CEIL_DIR}"
30870 pbxfuncname="ceil"
30871 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30872 AST_CEIL_FOUND=yes
30873 else
30874 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30875 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30876 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30877 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30878 echo $ECHO_N "(cached) $ECHO_C" >&6
30879 else
30880 ac_check_lib_save_LIBS=$LIBS
30881 LIBS="-lm ${pbxlibdir} $LIBS"
30882 cat >conftest.$ac_ext <<_ACEOF
30883 /* confdefs.h. */
30884 _ACEOF
30885 cat confdefs.h >>conftest.$ac_ext
30886 cat >>conftest.$ac_ext <<_ACEOF
30887 /* end confdefs.h. */
30889 /* Override any GCC internal prototype to avoid an error.
30890 Use char because int might match the return type of a GCC
30891 builtin and then its argument prototype would still apply. */
30892 #ifdef __cplusplus
30893 extern "C"
30894 #endif
30895 char ${pbxfuncname} ();
30897 main ()
30899 return ${pbxfuncname} ();
30901 return 0;
30903 _ACEOF
30904 rm -f conftest.$ac_objext conftest$ac_exeext
30905 if { (ac_try="$ac_link"
30906 case "(($ac_try" in
30907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30908 *) ac_try_echo=$ac_try;;
30909 esac
30910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30911 (eval "$ac_link") 2>conftest.er1
30912 ac_status=$?
30913 grep -v '^ *+' conftest.er1 >conftest.err
30914 rm -f conftest.er1
30915 cat conftest.err >&5
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); } && {
30918 test -z "$ac_c_werror_flag" ||
30919 test ! -s conftest.err
30920 } && test -s conftest$ac_exeext &&
30921 $as_test_x conftest$ac_exeext; then
30922 eval "$as_ac_Lib=yes"
30923 else
30924 echo "$as_me: failed program was:" >&5
30925 sed 's/^/| /' conftest.$ac_ext >&5
30927 eval "$as_ac_Lib=no"
30930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30931 conftest$ac_exeext conftest.$ac_ext
30932 LIBS=$ac_check_lib_save_LIBS
30934 ac_res=`eval echo '${'$as_ac_Lib'}'`
30935 { echo "$as_me:$LINENO: result: $ac_res" >&5
30936 echo "${ECHO_T}$ac_res" >&6; }
30937 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30938 AST_CEIL_FOUND=yes
30939 else
30940 AST_CEIL_FOUND=no
30945 # now check for the header.
30946 if test "${AST_CEIL_FOUND}" = "yes"; then
30947 CEIL_LIB="${pbxlibdir} -lm "
30948 # if --with-CEIL=DIR has been specified, use it.
30949 if test "x${CEIL_DIR}" != "x"; then
30950 CEIL_INCLUDE="-I${CEIL_DIR}/include"
30952 CEIL_INCLUDE="${CEIL_INCLUDE} "
30953 if test "x" = "x" ; then # no header, assume found
30954 CEIL_HEADER_FOUND="1"
30955 else # check for the header
30956 saved_cppflags="${CPPFLAGS}"
30957 CPPFLAGS="${CPPFLAGS} ${CEIL_INCLUDE}"
30958 if test "${ac_cv_header_+set}" = set; then
30959 { echo "$as_me:$LINENO: checking for " >&5
30960 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30961 if test "${ac_cv_header_+set}" = set; then
30962 echo $ECHO_N "(cached) $ECHO_C" >&6
30964 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30965 echo "${ECHO_T}$ac_cv_header_" >&6; }
30966 else
30967 # Is the header compilable?
30968 { echo "$as_me:$LINENO: checking usability" >&5
30969 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30970 cat >conftest.$ac_ext <<_ACEOF
30971 /* confdefs.h. */
30972 _ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h. */
30976 $ac_includes_default
30977 #include <>
30978 _ACEOF
30979 rm -f conftest.$ac_objext
30980 if { (ac_try="$ac_compile"
30981 case "(($ac_try" in
30982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30983 *) ac_try_echo=$ac_try;;
30984 esac
30985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30986 (eval "$ac_compile") 2>conftest.er1
30987 ac_status=$?
30988 grep -v '^ *+' conftest.er1 >conftest.err
30989 rm -f conftest.er1
30990 cat conftest.err >&5
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); } && {
30993 test -z "$ac_c_werror_flag" ||
30994 test ! -s conftest.err
30995 } && test -s conftest.$ac_objext; then
30996 ac_header_compiler=yes
30997 else
30998 echo "$as_me: failed program was:" >&5
30999 sed 's/^/| /' conftest.$ac_ext >&5
31001 ac_header_compiler=no
31004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31006 echo "${ECHO_T}$ac_header_compiler" >&6; }
31008 # Is the header present?
31009 { echo "$as_me:$LINENO: checking presence" >&5
31010 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
31011 cat >conftest.$ac_ext <<_ACEOF
31012 /* confdefs.h. */
31013 _ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31017 #include <>
31018 _ACEOF
31019 if { (ac_try="$ac_cpp conftest.$ac_ext"
31020 case "(($ac_try" in
31021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022 *) ac_try_echo=$ac_try;;
31023 esac
31024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31026 ac_status=$?
31027 grep -v '^ *+' conftest.er1 >conftest.err
31028 rm -f conftest.er1
31029 cat conftest.err >&5
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); } >/dev/null && {
31032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31033 test ! -s conftest.err
31034 }; then
31035 ac_header_preproc=yes
31036 else
31037 echo "$as_me: failed program was:" >&5
31038 sed 's/^/| /' conftest.$ac_ext >&5
31040 ac_header_preproc=no
31043 rm -f conftest.err conftest.$ac_ext
31044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31045 echo "${ECHO_T}$ac_header_preproc" >&6; }
31047 # So? What about this header?
31048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31049 yes:no: )
31050 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
31051 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
31052 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
31053 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
31054 ac_header_preproc=yes
31056 no:yes:* )
31057 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
31058 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
31059 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
31060 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
31061 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
31062 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
31063 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
31064 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
31065 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
31066 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
31067 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
31068 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
31069 ( cat <<\_ASBOX
31070 ## ------------------------------- ##
31071 ## Report this to www.asterisk.org ##
31072 ## ------------------------------- ##
31073 _ASBOX
31074 ) | sed "s/^/$as_me: WARNING: /" >&2
31076 esac
31077 { echo "$as_me:$LINENO: checking for " >&5
31078 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31079 if test "${ac_cv_header_+set}" = set; then
31080 echo $ECHO_N "(cached) $ECHO_C" >&6
31081 else
31082 ac_cv_header_=$ac_header_preproc
31084 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31085 echo "${ECHO_T}$ac_cv_header_" >&6; }
31088 if test $ac_cv_header_ = yes; then
31089 CEIL_HEADER_FOUND=1
31090 else
31091 CEIL_HEADER_FOUND=0
31095 CPPFLAGS="${saved_cppflags}"
31097 if test "x${CEIL_HEADER_FOUND}" = "x0" ; then
31098 CEIL_LIB=""
31099 CEIL_INCLUDE=""
31100 else
31101 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
31102 CEIL_LIB=""
31104 PBX_CEIL=1
31105 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
31107 cat >>confdefs.h <<_ACEOF
31108 #define HAVE_CEIL 1
31109 _ACEOF
31112 cat >>confdefs.h <<_ACEOF
31113 #define HAVE_CEIL_VERSION
31114 _ACEOF
31122 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
31123 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
31124 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
31125 saved_cppflags="${CPPFLAGS}"
31126 if test "x${GETIFADDRS_DIR}" != "x"; then
31127 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
31129 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
31131 cat >conftest.$ac_ext <<_ACEOF
31132 /* confdefs.h. */
31133 _ACEOF
31134 cat confdefs.h >>conftest.$ac_ext
31135 cat >>conftest.$ac_ext <<_ACEOF
31136 /* end confdefs.h. */
31137 #include <ifaddrs.h>
31139 main ()
31141 struct ifaddrs *p; getifaddrs(&p);
31144 return 0;
31146 _ACEOF
31147 rm -f conftest.$ac_objext
31148 if { (ac_try="$ac_compile"
31149 case "(($ac_try" in
31150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31151 *) ac_try_echo=$ac_try;;
31152 esac
31153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31154 (eval "$ac_compile") 2>conftest.er1
31155 ac_status=$?
31156 grep -v '^ *+' conftest.er1 >conftest.err
31157 rm -f conftest.er1
31158 cat conftest.err >&5
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); } && {
31161 test -z "$ac_c_werror_flag" ||
31162 test ! -s conftest.err
31163 } && test -s conftest.$ac_objext; then
31164 { echo "$as_me:$LINENO: result: yes" >&5
31165 echo "${ECHO_T}yes" >&6; }
31166 PBX_GETIFADDRS=1
31168 cat >>confdefs.h <<\_ACEOF
31169 #define HAVE_GETIFADDRS 1
31170 _ACEOF
31173 cat >>confdefs.h <<\_ACEOF
31174 #define HAVE_GETIFADDRS_VERSION
31175 _ACEOF
31178 else
31179 echo "$as_me: failed program was:" >&5
31180 sed 's/^/| /' conftest.$ac_ext >&5
31182 { echo "$as_me:$LINENO: result: no" >&5
31183 echo "${ECHO_T}no" >&6; }
31187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31188 CPPFLAGS="${saved_cppflags}"
31192 GSM_INTERNAL="yes"
31194 GSM_SYSTEM="yes"
31195 if test "${USE_GSM}" != "no"; then
31196 if test "${GSM_DIR}" = "internal"; then
31197 GSM_SYSTEM="no"
31198 elif test "${GSM_DIR}" != ""; then
31199 GSM_INTERNAL="no"
31201 if test "${GSM_SYSTEM}" = "yes"; then
31202 gsmlibdir=""
31203 if test "x${GSM_DIR}" != "x"; then
31204 if test -d ${GSM_DIR}/lib; then
31205 gsmlibdir="-L${GSM_DIR}/lib"
31206 else
31207 gsmlibdir="-L${GSM_DIR}"
31210 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
31211 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
31212 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
31213 echo $ECHO_N "(cached) $ECHO_C" >&6
31214 else
31215 ac_check_lib_save_LIBS=$LIBS
31216 LIBS="-lgsm ${gsmlibdir} $LIBS"
31217 cat >conftest.$ac_ext <<_ACEOF
31218 /* confdefs.h. */
31219 _ACEOF
31220 cat confdefs.h >>conftest.$ac_ext
31221 cat >>conftest.$ac_ext <<_ACEOF
31222 /* end confdefs.h. */
31224 /* Override any GCC internal prototype to avoid an error.
31225 Use char because int might match the return type of a GCC
31226 builtin and then its argument prototype would still apply. */
31227 #ifdef __cplusplus
31228 extern "C"
31229 #endif
31230 char gsm_create ();
31232 main ()
31234 return gsm_create ();
31236 return 0;
31238 _ACEOF
31239 rm -f conftest.$ac_objext conftest$ac_exeext
31240 if { (ac_try="$ac_link"
31241 case "(($ac_try" in
31242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31243 *) ac_try_echo=$ac_try;;
31244 esac
31245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31246 (eval "$ac_link") 2>conftest.er1
31247 ac_status=$?
31248 grep -v '^ *+' conftest.er1 >conftest.err
31249 rm -f conftest.er1
31250 cat conftest.err >&5
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); } && {
31253 test -z "$ac_c_werror_flag" ||
31254 test ! -s conftest.err
31255 } && test -s conftest$ac_exeext &&
31256 $as_test_x conftest$ac_exeext; then
31257 ac_cv_lib_gsm_gsm_create=yes
31258 else
31259 echo "$as_me: failed program was:" >&5
31260 sed 's/^/| /' conftest.$ac_ext >&5
31262 ac_cv_lib_gsm_gsm_create=no
31265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31266 conftest$ac_exeext conftest.$ac_ext
31267 LIBS=$ac_check_lib_save_LIBS
31269 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
31270 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
31271 if test $ac_cv_lib_gsm_gsm_create = yes; then
31273 cat >>confdefs.h <<_ACEOF
31274 #define HAVE_GSM 1
31275 _ACEOF
31279 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
31280 if test "x${GSM_DIR}" != "x" ; then
31281 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
31282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31283 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31284 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31286 echo $ECHO_N "(cached) $ECHO_C" >&6
31288 ac_res=`eval echo '${'$as_ac_Header'}'`
31289 { echo "$as_me:$LINENO: result: $ac_res" >&5
31290 echo "${ECHO_T}$ac_res" >&6; }
31291 else
31292 # Is the header compilable?
31293 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
31294 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
31295 cat >conftest.$ac_ext <<_ACEOF
31296 /* confdefs.h. */
31297 _ACEOF
31298 cat confdefs.h >>conftest.$ac_ext
31299 cat >>conftest.$ac_ext <<_ACEOF
31300 /* end confdefs.h. */
31301 $ac_includes_default
31302 #include <${GSM_DIR}/include/gsm.h>
31303 _ACEOF
31304 rm -f conftest.$ac_objext
31305 if { (ac_try="$ac_compile"
31306 case "(($ac_try" in
31307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31308 *) ac_try_echo=$ac_try;;
31309 esac
31310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31311 (eval "$ac_compile") 2>conftest.er1
31312 ac_status=$?
31313 grep -v '^ *+' conftest.er1 >conftest.err
31314 rm -f conftest.er1
31315 cat conftest.err >&5
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); } && {
31318 test -z "$ac_c_werror_flag" ||
31319 test ! -s conftest.err
31320 } && test -s conftest.$ac_objext; then
31321 ac_header_compiler=yes
31322 else
31323 echo "$as_me: failed program was:" >&5
31324 sed 's/^/| /' conftest.$ac_ext >&5
31326 ac_header_compiler=no
31329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31331 echo "${ECHO_T}$ac_header_compiler" >&6; }
31333 # Is the header present?
31334 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
31335 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
31336 cat >conftest.$ac_ext <<_ACEOF
31337 /* confdefs.h. */
31338 _ACEOF
31339 cat confdefs.h >>conftest.$ac_ext
31340 cat >>conftest.$ac_ext <<_ACEOF
31341 /* end confdefs.h. */
31342 #include <${GSM_DIR}/include/gsm.h>
31343 _ACEOF
31344 if { (ac_try="$ac_cpp conftest.$ac_ext"
31345 case "(($ac_try" in
31346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31347 *) ac_try_echo=$ac_try;;
31348 esac
31349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31351 ac_status=$?
31352 grep -v '^ *+' conftest.er1 >conftest.err
31353 rm -f conftest.er1
31354 cat conftest.err >&5
31355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356 (exit $ac_status); } >/dev/null && {
31357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31358 test ! -s conftest.err
31359 }; then
31360 ac_header_preproc=yes
31361 else
31362 echo "$as_me: failed program was:" >&5
31363 sed 's/^/| /' conftest.$ac_ext >&5
31365 ac_header_preproc=no
31368 rm -f conftest.err conftest.$ac_ext
31369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31370 echo "${ECHO_T}$ac_header_preproc" >&6; }
31372 # So? What about this header?
31373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31374 yes:no: )
31375 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31376 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31377 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
31378 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
31379 ac_header_preproc=yes
31381 no:yes:* )
31382 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
31383 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
31384 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
31385 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
31386 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
31387 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
31388 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31389 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31390 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
31391 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
31392 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
31393 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
31394 ( cat <<\_ASBOX
31395 ## ------------------------------- ##
31396 ## Report this to www.asterisk.org ##
31397 ## ------------------------------- ##
31398 _ASBOX
31399 ) | sed "s/^/$as_me: WARNING: /" >&2
31401 esac
31402 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31403 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31405 echo $ECHO_N "(cached) $ECHO_C" >&6
31406 else
31407 eval "$as_ac_Header=\$ac_header_preproc"
31409 ac_res=`eval echo '${'$as_ac_Header'}'`
31410 { echo "$as_me:$LINENO: result: $ac_res" >&5
31411 echo "${ECHO_T}$ac_res" >&6; }
31414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31415 GSM_HEADER_FOUND=1
31416 else
31417 GSM_HEADER_FOUND=0
31421 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
31422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31423 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31424 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31426 echo $ECHO_N "(cached) $ECHO_C" >&6
31428 ac_res=`eval echo '${'$as_ac_Header'}'`
31429 { echo "$as_me:$LINENO: result: $ac_res" >&5
31430 echo "${ECHO_T}$ac_res" >&6; }
31431 else
31432 # Is the header compilable?
31433 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
31434 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
31435 cat >conftest.$ac_ext <<_ACEOF
31436 /* confdefs.h. */
31437 _ACEOF
31438 cat confdefs.h >>conftest.$ac_ext
31439 cat >>conftest.$ac_ext <<_ACEOF
31440 /* end confdefs.h. */
31441 $ac_includes_default
31442 #include <${GSM_DIR}/include/gsm/gsm.h>
31443 _ACEOF
31444 rm -f conftest.$ac_objext
31445 if { (ac_try="$ac_compile"
31446 case "(($ac_try" in
31447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31448 *) ac_try_echo=$ac_try;;
31449 esac
31450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31451 (eval "$ac_compile") 2>conftest.er1
31452 ac_status=$?
31453 grep -v '^ *+' conftest.er1 >conftest.err
31454 rm -f conftest.er1
31455 cat conftest.err >&5
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); } && {
31458 test -z "$ac_c_werror_flag" ||
31459 test ! -s conftest.err
31460 } && test -s conftest.$ac_objext; then
31461 ac_header_compiler=yes
31462 else
31463 echo "$as_me: failed program was:" >&5
31464 sed 's/^/| /' conftest.$ac_ext >&5
31466 ac_header_compiler=no
31469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31471 echo "${ECHO_T}$ac_header_compiler" >&6; }
31473 # Is the header present?
31474 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
31475 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
31476 cat >conftest.$ac_ext <<_ACEOF
31477 /* confdefs.h. */
31478 _ACEOF
31479 cat confdefs.h >>conftest.$ac_ext
31480 cat >>conftest.$ac_ext <<_ACEOF
31481 /* end confdefs.h. */
31482 #include <${GSM_DIR}/include/gsm/gsm.h>
31483 _ACEOF
31484 if { (ac_try="$ac_cpp conftest.$ac_ext"
31485 case "(($ac_try" in
31486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31487 *) ac_try_echo=$ac_try;;
31488 esac
31489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31491 ac_status=$?
31492 grep -v '^ *+' conftest.er1 >conftest.err
31493 rm -f conftest.er1
31494 cat conftest.err >&5
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); } >/dev/null && {
31497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31498 test ! -s conftest.err
31499 }; then
31500 ac_header_preproc=yes
31501 else
31502 echo "$as_me: failed program was:" >&5
31503 sed 's/^/| /' conftest.$ac_ext >&5
31505 ac_header_preproc=no
31508 rm -f conftest.err conftest.$ac_ext
31509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31510 echo "${ECHO_T}$ac_header_preproc" >&6; }
31512 # So? What about this header?
31513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31514 yes:no: )
31515 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31516 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31517 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
31518 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
31519 ac_header_preproc=yes
31521 no:yes:* )
31522 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
31523 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
31524 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
31525 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31526 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
31527 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
31528 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31529 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31530 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
31531 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31532 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
31533 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31534 ( cat <<\_ASBOX
31535 ## ------------------------------- ##
31536 ## Report this to www.asterisk.org ##
31537 ## ------------------------------- ##
31538 _ASBOX
31539 ) | sed "s/^/$as_me: WARNING: /" >&2
31541 esac
31542 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31543 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31545 echo $ECHO_N "(cached) $ECHO_C" >&6
31546 else
31547 eval "$as_ac_Header=\$ac_header_preproc"
31549 ac_res=`eval echo '${'$as_ac_Header'}'`
31550 { echo "$as_me:$LINENO: result: $ac_res" >&5
31551 echo "${ECHO_T}$ac_res" >&6; }
31554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31555 GSM_GSM_HEADER_FOUND=1
31556 else
31557 GSM_GSM_HEADER_FOUND=0
31561 else
31562 if test "${ac_cv_header_gsm_h+set}" = set; then
31563 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31564 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31565 if test "${ac_cv_header_gsm_h+set}" = set; then
31566 echo $ECHO_N "(cached) $ECHO_C" >&6
31568 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31569 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31570 else
31571 # Is the header compilable?
31572 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
31573 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
31574 cat >conftest.$ac_ext <<_ACEOF
31575 /* confdefs.h. */
31576 _ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h. */
31580 $ac_includes_default
31581 #include <gsm.h>
31582 _ACEOF
31583 rm -f conftest.$ac_objext
31584 if { (ac_try="$ac_compile"
31585 case "(($ac_try" in
31586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31587 *) ac_try_echo=$ac_try;;
31588 esac
31589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31590 (eval "$ac_compile") 2>conftest.er1
31591 ac_status=$?
31592 grep -v '^ *+' conftest.er1 >conftest.err
31593 rm -f conftest.er1
31594 cat conftest.err >&5
31595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596 (exit $ac_status); } && {
31597 test -z "$ac_c_werror_flag" ||
31598 test ! -s conftest.err
31599 } && test -s conftest.$ac_objext; then
31600 ac_header_compiler=yes
31601 else
31602 echo "$as_me: failed program was:" >&5
31603 sed 's/^/| /' conftest.$ac_ext >&5
31605 ac_header_compiler=no
31608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31610 echo "${ECHO_T}$ac_header_compiler" >&6; }
31612 # Is the header present?
31613 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
31614 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
31615 cat >conftest.$ac_ext <<_ACEOF
31616 /* confdefs.h. */
31617 _ACEOF
31618 cat confdefs.h >>conftest.$ac_ext
31619 cat >>conftest.$ac_ext <<_ACEOF
31620 /* end confdefs.h. */
31621 #include <gsm.h>
31622 _ACEOF
31623 if { (ac_try="$ac_cpp conftest.$ac_ext"
31624 case "(($ac_try" in
31625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31626 *) ac_try_echo=$ac_try;;
31627 esac
31628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31630 ac_status=$?
31631 grep -v '^ *+' conftest.er1 >conftest.err
31632 rm -f conftest.er1
31633 cat conftest.err >&5
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); } >/dev/null && {
31636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31637 test ! -s conftest.err
31638 }; then
31639 ac_header_preproc=yes
31640 else
31641 echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31644 ac_header_preproc=no
31647 rm -f conftest.err conftest.$ac_ext
31648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31649 echo "${ECHO_T}$ac_header_preproc" >&6; }
31651 # So? What about this header?
31652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31653 yes:no: )
31654 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31655 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31656 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
31657 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
31658 ac_header_preproc=yes
31660 no:yes:* )
31661 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
31662 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
31663 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
31664 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
31665 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
31666 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
31667 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31668 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31669 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
31670 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
31671 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
31672 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
31673 ( cat <<\_ASBOX
31674 ## ------------------------------- ##
31675 ## Report this to www.asterisk.org ##
31676 ## ------------------------------- ##
31677 _ASBOX
31678 ) | sed "s/^/$as_me: WARNING: /" >&2
31680 esac
31681 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31682 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31683 if test "${ac_cv_header_gsm_h+set}" = set; then
31684 echo $ECHO_N "(cached) $ECHO_C" >&6
31685 else
31686 ac_cv_header_gsm_h=$ac_header_preproc
31688 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31689 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31692 if test $ac_cv_header_gsm_h = yes; then
31693 GSM_HEADER_FOUND=1
31694 else
31695 GSM_HEADER_FOUND=0
31699 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31700 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31701 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31702 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31703 echo $ECHO_N "(cached) $ECHO_C" >&6
31705 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31706 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31707 else
31708 # Is the header compilable?
31709 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
31710 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
31711 cat >conftest.$ac_ext <<_ACEOF
31712 /* confdefs.h. */
31713 _ACEOF
31714 cat confdefs.h >>conftest.$ac_ext
31715 cat >>conftest.$ac_ext <<_ACEOF
31716 /* end confdefs.h. */
31717 $ac_includes_default
31718 #include <gsm/gsm.h>
31719 _ACEOF
31720 rm -f conftest.$ac_objext
31721 if { (ac_try="$ac_compile"
31722 case "(($ac_try" in
31723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31724 *) ac_try_echo=$ac_try;;
31725 esac
31726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31727 (eval "$ac_compile") 2>conftest.er1
31728 ac_status=$?
31729 grep -v '^ *+' conftest.er1 >conftest.err
31730 rm -f conftest.er1
31731 cat conftest.err >&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } && {
31734 test -z "$ac_c_werror_flag" ||
31735 test ! -s conftest.err
31736 } && test -s conftest.$ac_objext; then
31737 ac_header_compiler=yes
31738 else
31739 echo "$as_me: failed program was:" >&5
31740 sed 's/^/| /' conftest.$ac_ext >&5
31742 ac_header_compiler=no
31745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31747 echo "${ECHO_T}$ac_header_compiler" >&6; }
31749 # Is the header present?
31750 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
31751 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
31752 cat >conftest.$ac_ext <<_ACEOF
31753 /* confdefs.h. */
31754 _ACEOF
31755 cat confdefs.h >>conftest.$ac_ext
31756 cat >>conftest.$ac_ext <<_ACEOF
31757 /* end confdefs.h. */
31758 #include <gsm/gsm.h>
31759 _ACEOF
31760 if { (ac_try="$ac_cpp conftest.$ac_ext"
31761 case "(($ac_try" in
31762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31763 *) ac_try_echo=$ac_try;;
31764 esac
31765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31767 ac_status=$?
31768 grep -v '^ *+' conftest.er1 >conftest.err
31769 rm -f conftest.er1
31770 cat conftest.err >&5
31771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31772 (exit $ac_status); } >/dev/null && {
31773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31774 test ! -s conftest.err
31775 }; then
31776 ac_header_preproc=yes
31777 else
31778 echo "$as_me: failed program was:" >&5
31779 sed 's/^/| /' conftest.$ac_ext >&5
31781 ac_header_preproc=no
31784 rm -f conftest.err conftest.$ac_ext
31785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31786 echo "${ECHO_T}$ac_header_preproc" >&6; }
31788 # So? What about this header?
31789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31790 yes:no: )
31791 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31792 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31793 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
31794 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
31795 ac_header_preproc=yes
31797 no:yes:* )
31798 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
31799 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
31800 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
31801 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31802 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
31803 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
31804 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31805 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31806 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
31807 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31808 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
31809 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31810 ( cat <<\_ASBOX
31811 ## ------------------------------- ##
31812 ## Report this to www.asterisk.org ##
31813 ## ------------------------------- ##
31814 _ASBOX
31815 ) | sed "s/^/$as_me: WARNING: /" >&2
31817 esac
31818 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31819 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31820 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31821 echo $ECHO_N "(cached) $ECHO_C" >&6
31822 else
31823 ac_cv_header_gsm_gsm_h=$ac_header_preproc
31825 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31826 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31829 if test $ac_cv_header_gsm_gsm_h = yes; then
31830 GSM_GSM_HEADER_FOUND=1
31831 else
31832 GSM_GSM_HEADER_FOUND=0
31837 if test "${GSM_HEADER_FOUND}" = "0" ; then
31838 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
31839 if test "x${GSM_MANDATORY}" = "xyes" ; then
31840 { echo "$as_me:$LINENO: ***" >&5
31841 echo "$as_me: ***" >&6;}
31842 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
31843 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
31844 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
31845 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
31846 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
31847 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
31848 exit 1
31852 GSM_OK=0
31853 if test "${GSM_HEADER_FOUND}" = "1" ; then
31855 cat >>confdefs.h <<_ACEOF
31856 #define HAVE_GSM_HEADER 1
31857 _ACEOF
31859 GSM_OK=1
31860 else
31861 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
31863 cat >>confdefs.h <<_ACEOF
31864 #define HAVE_GSM_GSM_HEADER 1
31865 _ACEOF
31867 GSM_OK=1
31870 if test "${GSM_OK}" = "1" ; then
31871 GSM_LIB="-lgsm"
31872 if test "x${GSM_DIR}" != "x"; then
31873 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
31874 GSM_INCLUDE="-I${GSM_DIR}/include"
31876 PBX_GSM=1
31877 GSM_INTERNAL="no"
31881 if test "${GSM_INTERNAL}" = "yes"; then
31882 PBX_GSM=1
31884 cat >>confdefs.h <<_ACEOF
31885 #define HAVE_GSM_HEADER 1
31886 _ACEOF
31891 if test "${host_os}" != "linux-gnu" ; then
31893 if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
31894 pbxlibdir=""
31895 # if --with-ICONV=DIR has been specified, use it.
31896 if test "x${ICONV_DIR}" != "x"; then
31897 if test -d ${ICONV_DIR}/lib; then
31898 pbxlibdir="-L${ICONV_DIR}/lib"
31899 else
31900 pbxlibdir="-L${ICONV_DIR}"
31903 pbxfuncname="iconv_open"
31904 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
31905 AST_ICONV_FOUND=yes
31906 else
31907 as_ac_Lib=`echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
31908 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liconv" >&5
31909 echo $ECHO_N "checking for ${pbxfuncname} in -liconv... $ECHO_C" >&6; }
31910 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31911 echo $ECHO_N "(cached) $ECHO_C" >&6
31912 else
31913 ac_check_lib_save_LIBS=$LIBS
31914 LIBS="-liconv ${pbxlibdir} $LIBS"
31915 cat >conftest.$ac_ext <<_ACEOF
31916 /* confdefs.h. */
31917 _ACEOF
31918 cat confdefs.h >>conftest.$ac_ext
31919 cat >>conftest.$ac_ext <<_ACEOF
31920 /* end confdefs.h. */
31922 /* Override any GCC internal prototype to avoid an error.
31923 Use char because int might match the return type of a GCC
31924 builtin and then its argument prototype would still apply. */
31925 #ifdef __cplusplus
31926 extern "C"
31927 #endif
31928 char ${pbxfuncname} ();
31930 main ()
31932 return ${pbxfuncname} ();
31934 return 0;
31936 _ACEOF
31937 rm -f conftest.$ac_objext conftest$ac_exeext
31938 if { (ac_try="$ac_link"
31939 case "(($ac_try" in
31940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31941 *) ac_try_echo=$ac_try;;
31942 esac
31943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31944 (eval "$ac_link") 2>conftest.er1
31945 ac_status=$?
31946 grep -v '^ *+' conftest.er1 >conftest.err
31947 rm -f conftest.er1
31948 cat conftest.err >&5
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); } && {
31951 test -z "$ac_c_werror_flag" ||
31952 test ! -s conftest.err
31953 } && test -s conftest$ac_exeext &&
31954 $as_test_x conftest$ac_exeext; then
31955 eval "$as_ac_Lib=yes"
31956 else
31957 echo "$as_me: failed program was:" >&5
31958 sed 's/^/| /' conftest.$ac_ext >&5
31960 eval "$as_ac_Lib=no"
31963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31964 conftest$ac_exeext conftest.$ac_ext
31965 LIBS=$ac_check_lib_save_LIBS
31967 ac_res=`eval echo '${'$as_ac_Lib'}'`
31968 { echo "$as_me:$LINENO: result: $ac_res" >&5
31969 echo "${ECHO_T}$ac_res" >&6; }
31970 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31971 AST_ICONV_FOUND=yes
31972 else
31973 AST_ICONV_FOUND=no
31978 # now check for the header.
31979 if test "${AST_ICONV_FOUND}" = "yes"; then
31980 ICONV_LIB="${pbxlibdir} -liconv "
31981 # if --with-ICONV=DIR has been specified, use it.
31982 if test "x${ICONV_DIR}" != "x"; then
31983 ICONV_INCLUDE="-I${ICONV_DIR}/include"
31985 ICONV_INCLUDE="${ICONV_INCLUDE} "
31986 if test "xiconv.h" = "x" ; then # no header, assume found
31987 ICONV_HEADER_FOUND="1"
31988 else # check for the header
31989 saved_cppflags="${CPPFLAGS}"
31990 CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
31991 if test "${ac_cv_header_iconv_h+set}" = set; then
31992 { echo "$as_me:$LINENO: checking for iconv.h" >&5
31993 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
31994 if test "${ac_cv_header_iconv_h+set}" = set; then
31995 echo $ECHO_N "(cached) $ECHO_C" >&6
31997 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
31998 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
31999 else
32000 # Is the header compilable?
32001 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
32002 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
32003 cat >conftest.$ac_ext <<_ACEOF
32004 /* confdefs.h. */
32005 _ACEOF
32006 cat confdefs.h >>conftest.$ac_ext
32007 cat >>conftest.$ac_ext <<_ACEOF
32008 /* end confdefs.h. */
32009 $ac_includes_default
32010 #include <iconv.h>
32011 _ACEOF
32012 rm -f conftest.$ac_objext
32013 if { (ac_try="$ac_compile"
32014 case "(($ac_try" in
32015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32016 *) ac_try_echo=$ac_try;;
32017 esac
32018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32019 (eval "$ac_compile") 2>conftest.er1
32020 ac_status=$?
32021 grep -v '^ *+' conftest.er1 >conftest.err
32022 rm -f conftest.er1
32023 cat conftest.err >&5
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); } && {
32026 test -z "$ac_c_werror_flag" ||
32027 test ! -s conftest.err
32028 } && test -s conftest.$ac_objext; then
32029 ac_header_compiler=yes
32030 else
32031 echo "$as_me: failed program was:" >&5
32032 sed 's/^/| /' conftest.$ac_ext >&5
32034 ac_header_compiler=no
32037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32039 echo "${ECHO_T}$ac_header_compiler" >&6; }
32041 # Is the header present?
32042 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
32043 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
32044 cat >conftest.$ac_ext <<_ACEOF
32045 /* confdefs.h. */
32046 _ACEOF
32047 cat confdefs.h >>conftest.$ac_ext
32048 cat >>conftest.$ac_ext <<_ACEOF
32049 /* end confdefs.h. */
32050 #include <iconv.h>
32051 _ACEOF
32052 if { (ac_try="$ac_cpp conftest.$ac_ext"
32053 case "(($ac_try" in
32054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32055 *) ac_try_echo=$ac_try;;
32056 esac
32057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32059 ac_status=$?
32060 grep -v '^ *+' conftest.er1 >conftest.err
32061 rm -f conftest.er1
32062 cat conftest.err >&5
32063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32064 (exit $ac_status); } >/dev/null && {
32065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32066 test ! -s conftest.err
32067 }; then
32068 ac_header_preproc=yes
32069 else
32070 echo "$as_me: failed program was:" >&5
32071 sed 's/^/| /' conftest.$ac_ext >&5
32073 ac_header_preproc=no
32076 rm -f conftest.err conftest.$ac_ext
32077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32078 echo "${ECHO_T}$ac_header_preproc" >&6; }
32080 # So? What about this header?
32081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32082 yes:no: )
32083 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
32084 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32085 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
32086 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
32087 ac_header_preproc=yes
32089 no:yes:* )
32090 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
32091 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
32092 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
32093 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
32094 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
32095 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
32096 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
32097 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
32098 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
32099 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
32100 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
32101 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
32102 ( cat <<\_ASBOX
32103 ## ------------------------------- ##
32104 ## Report this to www.asterisk.org ##
32105 ## ------------------------------- ##
32106 _ASBOX
32107 ) | sed "s/^/$as_me: WARNING: /" >&2
32109 esac
32110 { echo "$as_me:$LINENO: checking for iconv.h" >&5
32111 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
32112 if test "${ac_cv_header_iconv_h+set}" = set; then
32113 echo $ECHO_N "(cached) $ECHO_C" >&6
32114 else
32115 ac_cv_header_iconv_h=$ac_header_preproc
32117 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
32118 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
32121 if test $ac_cv_header_iconv_h = yes; then
32122 ICONV_HEADER_FOUND=1
32123 else
32124 ICONV_HEADER_FOUND=0
32128 CPPFLAGS="${saved_cppflags}"
32130 if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
32131 ICONV_LIB=""
32132 ICONV_INCLUDE=""
32133 else
32134 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32135 ICONV_LIB=""
32137 PBX_ICONV=1
32138 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32140 cat >>confdefs.h <<_ACEOF
32141 #define HAVE_ICONV 1
32142 _ACEOF
32145 cat >>confdefs.h <<_ACEOF
32146 #define HAVE_ICONV_VERSION
32147 _ACEOF
32153 else
32154 PBX_ICONV=1
32158 if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
32159 pbxlibdir=""
32160 # if --with-IKSEMEL=DIR has been specified, use it.
32161 if test "x${IKSEMEL_DIR}" != "x"; then
32162 if test -d ${IKSEMEL_DIR}/lib; then
32163 pbxlibdir="-L${IKSEMEL_DIR}/lib"
32164 else
32165 pbxlibdir="-L${IKSEMEL_DIR}"
32168 pbxfuncname="iks_start_sasl"
32169 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
32170 AST_IKSEMEL_FOUND=yes
32171 else
32172 as_ac_Lib=`echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
32173 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liksemel" >&5
32174 echo $ECHO_N "checking for ${pbxfuncname} in -liksemel... $ECHO_C" >&6; }
32175 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32176 echo $ECHO_N "(cached) $ECHO_C" >&6
32177 else
32178 ac_check_lib_save_LIBS=$LIBS
32179 LIBS="-liksemel ${pbxlibdir} $LIBS"
32180 cat >conftest.$ac_ext <<_ACEOF
32181 /* confdefs.h. */
32182 _ACEOF
32183 cat confdefs.h >>conftest.$ac_ext
32184 cat >>conftest.$ac_ext <<_ACEOF
32185 /* end confdefs.h. */
32187 /* Override any GCC internal prototype to avoid an error.
32188 Use char because int might match the return type of a GCC
32189 builtin and then its argument prototype would still apply. */
32190 #ifdef __cplusplus
32191 extern "C"
32192 #endif
32193 char ${pbxfuncname} ();
32195 main ()
32197 return ${pbxfuncname} ();
32199 return 0;
32201 _ACEOF
32202 rm -f conftest.$ac_objext conftest$ac_exeext
32203 if { (ac_try="$ac_link"
32204 case "(($ac_try" in
32205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32206 *) ac_try_echo=$ac_try;;
32207 esac
32208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32209 (eval "$ac_link") 2>conftest.er1
32210 ac_status=$?
32211 grep -v '^ *+' conftest.er1 >conftest.err
32212 rm -f conftest.er1
32213 cat conftest.err >&5
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); } && {
32216 test -z "$ac_c_werror_flag" ||
32217 test ! -s conftest.err
32218 } && test -s conftest$ac_exeext &&
32219 $as_test_x conftest$ac_exeext; then
32220 eval "$as_ac_Lib=yes"
32221 else
32222 echo "$as_me: failed program was:" >&5
32223 sed 's/^/| /' conftest.$ac_ext >&5
32225 eval "$as_ac_Lib=no"
32228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32229 conftest$ac_exeext conftest.$ac_ext
32230 LIBS=$ac_check_lib_save_LIBS
32232 ac_res=`eval echo '${'$as_ac_Lib'}'`
32233 { echo "$as_me:$LINENO: result: $ac_res" >&5
32234 echo "${ECHO_T}$ac_res" >&6; }
32235 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32236 AST_IKSEMEL_FOUND=yes
32237 else
32238 AST_IKSEMEL_FOUND=no
32243 # now check for the header.
32244 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
32245 IKSEMEL_LIB="${pbxlibdir} -liksemel "
32246 # if --with-IKSEMEL=DIR has been specified, use it.
32247 if test "x${IKSEMEL_DIR}" != "x"; then
32248 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
32250 IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
32251 if test "xiksemel.h" = "x" ; then # no header, assume found
32252 IKSEMEL_HEADER_FOUND="1"
32253 else # check for the header
32254 saved_cppflags="${CPPFLAGS}"
32255 CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
32256 if test "${ac_cv_header_iksemel_h+set}" = set; then
32257 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32258 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32259 if test "${ac_cv_header_iksemel_h+set}" = set; then
32260 echo $ECHO_N "(cached) $ECHO_C" >&6
32262 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32263 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32264 else
32265 # Is the header compilable?
32266 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
32267 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
32268 cat >conftest.$ac_ext <<_ACEOF
32269 /* confdefs.h. */
32270 _ACEOF
32271 cat confdefs.h >>conftest.$ac_ext
32272 cat >>conftest.$ac_ext <<_ACEOF
32273 /* end confdefs.h. */
32274 $ac_includes_default
32275 #include <iksemel.h>
32276 _ACEOF
32277 rm -f conftest.$ac_objext
32278 if { (ac_try="$ac_compile"
32279 case "(($ac_try" in
32280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32281 *) ac_try_echo=$ac_try;;
32282 esac
32283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32284 (eval "$ac_compile") 2>conftest.er1
32285 ac_status=$?
32286 grep -v '^ *+' conftest.er1 >conftest.err
32287 rm -f conftest.er1
32288 cat conftest.err >&5
32289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290 (exit $ac_status); } && {
32291 test -z "$ac_c_werror_flag" ||
32292 test ! -s conftest.err
32293 } && test -s conftest.$ac_objext; then
32294 ac_header_compiler=yes
32295 else
32296 echo "$as_me: failed program was:" >&5
32297 sed 's/^/| /' conftest.$ac_ext >&5
32299 ac_header_compiler=no
32302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32304 echo "${ECHO_T}$ac_header_compiler" >&6; }
32306 # Is the header present?
32307 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
32308 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
32309 cat >conftest.$ac_ext <<_ACEOF
32310 /* confdefs.h. */
32311 _ACEOF
32312 cat confdefs.h >>conftest.$ac_ext
32313 cat >>conftest.$ac_ext <<_ACEOF
32314 /* end confdefs.h. */
32315 #include <iksemel.h>
32316 _ACEOF
32317 if { (ac_try="$ac_cpp conftest.$ac_ext"
32318 case "(($ac_try" in
32319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32320 *) ac_try_echo=$ac_try;;
32321 esac
32322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32324 ac_status=$?
32325 grep -v '^ *+' conftest.er1 >conftest.err
32326 rm -f conftest.er1
32327 cat conftest.err >&5
32328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); } >/dev/null && {
32330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32331 test ! -s conftest.err
32332 }; then
32333 ac_header_preproc=yes
32334 else
32335 echo "$as_me: failed program was:" >&5
32336 sed 's/^/| /' conftest.$ac_ext >&5
32338 ac_header_preproc=no
32341 rm -f conftest.err conftest.$ac_ext
32342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32343 echo "${ECHO_T}$ac_header_preproc" >&6; }
32345 # So? What about this header?
32346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32347 yes:no: )
32348 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
32349 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32350 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
32351 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
32352 ac_header_preproc=yes
32354 no:yes:* )
32355 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
32356 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
32357 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
32358 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
32359 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
32360 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
32361 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
32362 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
32363 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
32364 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
32365 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
32366 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
32367 ( cat <<\_ASBOX
32368 ## ------------------------------- ##
32369 ## Report this to www.asterisk.org ##
32370 ## ------------------------------- ##
32371 _ASBOX
32372 ) | sed "s/^/$as_me: WARNING: /" >&2
32374 esac
32375 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32376 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32377 if test "${ac_cv_header_iksemel_h+set}" = set; then
32378 echo $ECHO_N "(cached) $ECHO_C" >&6
32379 else
32380 ac_cv_header_iksemel_h=$ac_header_preproc
32382 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32383 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32386 if test $ac_cv_header_iksemel_h = yes; then
32387 IKSEMEL_HEADER_FOUND=1
32388 else
32389 IKSEMEL_HEADER_FOUND=0
32393 CPPFLAGS="${saved_cppflags}"
32395 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
32396 IKSEMEL_LIB=""
32397 IKSEMEL_INCLUDE=""
32398 else
32399 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32400 IKSEMEL_LIB=""
32402 PBX_IKSEMEL=1
32403 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32405 cat >>confdefs.h <<_ACEOF
32406 #define HAVE_IKSEMEL 1
32407 _ACEOF
32410 cat >>confdefs.h <<_ACEOF
32411 #define HAVE_IKSEMEL_VERSION
32412 _ACEOF
32419 if test "${USE_IMAP_TK}" != "no"; then
32420 saved_cppflags="${CPPFLAGS}"
32421 saved_libs="${LIBS}"
32422 switch_to_system_on_failure="no"
32423 if test "${IMAP_TK_DIR}" = ""; then
32424 IMAP_TK_DIR=`pwd`"/../imap-2004g"
32425 switch_to_system_on_failure="yes"
32427 if test "${IMAP_TK_DIR}" != "system"; then
32428 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
32429 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
32430 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
32431 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
32433 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
32434 imap_include="-I${IMAP_TK_DIR}/c-client"
32435 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32436 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32437 cat >conftest.$ac_ext <<_ACEOF
32438 /* confdefs.h. */
32439 _ACEOF
32440 cat confdefs.h >>conftest.$ac_ext
32441 cat >>conftest.$ac_ext <<_ACEOF
32442 /* end confdefs.h. */
32443 #include "c-client.h"
32444 void mm_searched (MAILSTREAM *stream,unsigned long number)
32447 void mm_exists (MAILSTREAM *stream,unsigned long number)
32450 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32453 void mm_flags (MAILSTREAM *stream,unsigned long number)
32456 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32459 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32462 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32465 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32468 void mm_log (char *string,long errflg)
32471 void mm_dlog (char *string)
32474 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32477 void mm_critical (MAILSTREAM *stream)
32480 void mm_nocritical (MAILSTREAM *stream)
32483 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32486 void mm_fatal (char *string)
32490 main ()
32493 MAILSTREAM *foo = mail_open(NULL, "", 0);
32497 return 0;
32499 _ACEOF
32500 rm -f conftest.$ac_objext conftest$ac_exeext
32501 if { (ac_try="$ac_link"
32502 case "(($ac_try" in
32503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504 *) ac_try_echo=$ac_try;;
32505 esac
32506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507 (eval "$ac_link") 2>conftest.er1
32508 ac_status=$?
32509 grep -v '^ *+' conftest.er1 >conftest.err
32510 rm -f conftest.er1
32511 cat conftest.err >&5
32512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513 (exit $ac_status); } && {
32514 test -z "$ac_c_werror_flag" ||
32515 test ! -s conftest.err
32516 } && test -s conftest$ac_exeext &&
32517 $as_test_x conftest$ac_exeext; then
32518 ac_cv_imap_tk="yes"
32519 else
32520 echo "$as_me: failed program was:" >&5
32521 sed 's/^/| /' conftest.$ac_ext >&5
32523 ac_cv_imap_tk="no"
32527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32528 conftest$ac_exeext conftest.$ac_ext
32529 if test "${ac_cv_imap_tk}" = "yes"; then
32530 cat >conftest.$ac_ext <<_ACEOF
32531 /* confdefs.h. */
32532 _ACEOF
32533 cat confdefs.h >>conftest.$ac_ext
32534 cat >>conftest.$ac_ext <<_ACEOF
32535 /* end confdefs.h. */
32536 #include "c-client.h"
32537 void mm_searched (MAILSTREAM *stream,unsigned long number)
32540 void mm_exists (MAILSTREAM *stream,unsigned long number)
32543 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32546 void mm_flags (MAILSTREAM *stream,unsigned long number)
32549 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32552 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32555 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32558 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32561 void mm_log (char *string,long errflg)
32564 void mm_dlog (char *string)
32567 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32570 void mm_critical (MAILSTREAM *stream)
32573 void mm_nocritical (MAILSTREAM *stream)
32576 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32579 void mm_fatal (char *string)
32583 main ()
32586 long check = mail_expunge_full(NULL, "", 0);
32590 return 0;
32592 _ACEOF
32593 rm -f conftest.$ac_objext conftest$ac_exeext
32594 if { (ac_try="$ac_link"
32595 case "(($ac_try" in
32596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32597 *) ac_try_echo=$ac_try;;
32598 esac
32599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32600 (eval "$ac_link") 2>conftest.er1
32601 ac_status=$?
32602 grep -v '^ *+' conftest.er1 >conftest.err
32603 rm -f conftest.er1
32604 cat conftest.err >&5
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); } && {
32607 test -z "$ac_c_werror_flag" ||
32608 test ! -s conftest.err
32609 } && test -s conftest$ac_exeext &&
32610 $as_test_x conftest$ac_exeext; then
32611 ac_cv_imap_tk2006="yes"
32612 else
32613 echo "$as_me: failed program was:" >&5
32614 sed 's/^/| /' conftest.$ac_ext >&5
32616 ac_cv_imap_tk2006="no"
32620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32621 conftest$ac_exeext conftest.$ac_ext
32623 CPPFLAGS="${saved_cppflags}"
32624 LIBS="${saved_libs}"
32625 if test "${ac_cv_imap_tk}" = "no"; then
32626 { echo "$as_me:$LINENO: result: no" >&5
32627 echo "${ECHO_T}no" >&6; }
32628 if test "${switch_to_system_on_failure}" = "yes"; then
32629 IMAP_TK_DIR="system"
32630 else #This means they specified a directory. Search for a package installation there too
32631 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32632 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32633 CPPFLAGS="${saved_cppflags}"
32634 LIBS="${saved_libs}"
32635 imap_include="-I${IMAP_TK_DIR}/include"
32636 imap_ldflags="-L${IMAP_TK_DIR}/lib"
32637 imap_libs="-lc-client"
32638 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32639 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
32640 cat >conftest.$ac_ext <<_ACEOF
32641 /* confdefs.h. */
32642 _ACEOF
32643 cat confdefs.h >>conftest.$ac_ext
32644 cat >>conftest.$ac_ext <<_ACEOF
32645 /* end confdefs.h. */
32646 #include "c-client.h"
32647 void mm_searched (MAILSTREAM *stream,unsigned long number)
32650 void mm_exists (MAILSTREAM *stream,unsigned long number)
32653 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32656 void mm_flags (MAILSTREAM *stream,unsigned long number)
32659 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32662 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32665 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32668 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32671 void mm_log (char *string,long errflg)
32674 void mm_dlog (char *string)
32677 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32680 void mm_critical (MAILSTREAM *stream)
32683 void mm_nocritical (MAILSTREAM *stream)
32686 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32689 void mm_fatal (char *string)
32693 main ()
32696 MAILSTREAM *foo = mail_open(NULL, "", 0);
32700 return 0;
32702 _ACEOF
32703 rm -f conftest.$ac_objext conftest$ac_exeext
32704 if { (ac_try="$ac_link"
32705 case "(($ac_try" in
32706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707 *) ac_try_echo=$ac_try;;
32708 esac
32709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32710 (eval "$ac_link") 2>conftest.er1
32711 ac_status=$?
32712 grep -v '^ *+' conftest.er1 >conftest.err
32713 rm -f conftest.er1
32714 cat conftest.err >&5
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); } && {
32717 test -z "$ac_c_werror_flag" ||
32718 test ! -s conftest.err
32719 } && test -s conftest$ac_exeext &&
32720 $as_test_x conftest$ac_exeext; then
32721 ac_cv_imap_tk="yes"
32722 else
32723 echo "$as_me: failed program was:" >&5
32724 sed 's/^/| /' conftest.$ac_ext >&5
32726 ac_cv_imap_tk="no"
32730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32731 conftest$ac_exeext conftest.$ac_ext
32732 if test "${ac_cv_imap_tk}" = "yes"; then
32733 cat >conftest.$ac_ext <<_ACEOF
32734 /* confdefs.h. */
32735 _ACEOF
32736 cat confdefs.h >>conftest.$ac_ext
32737 cat >>conftest.$ac_ext <<_ACEOF
32738 /* end confdefs.h. */
32739 #include "c-client.h"
32740 void mm_searched (MAILSTREAM *stream,unsigned long number)
32743 void mm_exists (MAILSTREAM *stream,unsigned long number)
32746 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32749 void mm_flags (MAILSTREAM *stream,unsigned long number)
32752 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32755 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32758 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32761 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32764 void mm_log (char *string,long errflg)
32767 void mm_dlog (char *string)
32770 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32773 void mm_critical (MAILSTREAM *stream)
32776 void mm_nocritical (MAILSTREAM *stream)
32779 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32782 void mm_fatal (char *string)
32786 main ()
32789 long check = mail_expunge_full(NULL, "", 0);
32793 return 0;
32795 _ACEOF
32796 rm -f conftest.$ac_objext conftest$ac_exeext
32797 if { (ac_try="$ac_link"
32798 case "(($ac_try" in
32799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32800 *) ac_try_echo=$ac_try;;
32801 esac
32802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32803 (eval "$ac_link") 2>conftest.er1
32804 ac_status=$?
32805 grep -v '^ *+' conftest.er1 >conftest.err
32806 rm -f conftest.er1
32807 cat conftest.err >&5
32808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); } && {
32810 test -z "$ac_c_werror_flag" ||
32811 test ! -s conftest.err
32812 } && test -s conftest$ac_exeext &&
32813 $as_test_x conftest$ac_exeext; then
32814 ac_cv_imap_tk2006="yes"
32815 else
32816 echo "$as_me: failed program was:" >&5
32817 sed 's/^/| /' conftest.$ac_ext >&5
32819 ac_cv_imap_tk2006="no"
32823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32824 conftest$ac_exeext conftest.$ac_ext
32829 if test "${IMAP_TK_DIR}" = "system"; then
32830 #We will enter here if user specified "system" or if any of above checks failed
32831 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32832 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32833 CPPFLAGS="${saved_cppflags}"
32834 LIBS="${saved_libs}"
32835 imap_ldflags=""
32836 imap_libs="-lc-client"
32837 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
32838 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32839 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32840 cat >conftest.$ac_ext <<_ACEOF
32841 /* confdefs.h. */
32842 _ACEOF
32843 cat confdefs.h >>conftest.$ac_ext
32844 cat >>conftest.$ac_ext <<_ACEOF
32845 /* end confdefs.h. */
32846 #include <stdio.h>
32847 #include <imap/c-client.h>
32848 void mm_searched (MAILSTREAM *stream,unsigned long number)
32851 void mm_exists (MAILSTREAM *stream,unsigned long number)
32854 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32857 void mm_flags (MAILSTREAM *stream,unsigned long number)
32860 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32863 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32866 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32869 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32872 void mm_log (char *string,long errflg)
32875 void mm_dlog (char *string)
32878 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32881 void mm_critical (MAILSTREAM *stream)
32884 void mm_nocritical (MAILSTREAM *stream)
32887 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32890 void mm_fatal (char *string)
32894 main ()
32897 MAILSTREAM *foo = mail_open(NULL, "", 0);
32901 return 0;
32903 _ACEOF
32904 rm -f conftest.$ac_objext conftest$ac_exeext
32905 if { (ac_try="$ac_link"
32906 case "(($ac_try" in
32907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908 *) ac_try_echo=$ac_try;;
32909 esac
32910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32911 (eval "$ac_link") 2>conftest.er1
32912 ac_status=$?
32913 grep -v '^ *+' conftest.er1 >conftest.err
32914 rm -f conftest.er1
32915 cat conftest.err >&5
32916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917 (exit $ac_status); } && {
32918 test -z "$ac_c_werror_flag" ||
32919 test ! -s conftest.err
32920 } && test -s conftest$ac_exeext &&
32921 $as_test_x conftest$ac_exeext; then
32922 ac_cv_imap_tk="yes"
32923 else
32924 echo "$as_me: failed program was:" >&5
32925 sed 's/^/| /' conftest.$ac_ext >&5
32927 ac_cv_imap_tk="no"
32931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32932 conftest$ac_exeext conftest.$ac_ext
32933 if test "${ac_cv_imap_tk}" = "yes"; then
32934 cat >conftest.$ac_ext <<_ACEOF
32935 /* confdefs.h. */
32936 _ACEOF
32937 cat confdefs.h >>conftest.$ac_ext
32938 cat >>conftest.$ac_ext <<_ACEOF
32939 /* end confdefs.h. */
32940 #include <stdio.h>
32941 #include <imap/c-client.h>
32942 void mm_searched (MAILSTREAM *stream,unsigned long number)
32945 void mm_exists (MAILSTREAM *stream,unsigned long number)
32948 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32951 void mm_flags (MAILSTREAM *stream,unsigned long number)
32954 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32957 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32960 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32963 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32966 void mm_log (char *string,long errflg)
32969 void mm_dlog (char *string)
32972 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32975 void mm_critical (MAILSTREAM *stream)
32978 void mm_nocritical (MAILSTREAM *stream)
32981 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32984 void mm_fatal (char *string)
32988 main ()
32991 long check = mail_expunge_full(NULL, "", 0);
32995 return 0;
32997 _ACEOF
32998 rm -f conftest.$ac_objext conftest$ac_exeext
32999 if { (ac_try="$ac_link"
33000 case "(($ac_try" in
33001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33002 *) ac_try_echo=$ac_try;;
33003 esac
33004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33005 (eval "$ac_link") 2>conftest.er1
33006 ac_status=$?
33007 grep -v '^ *+' conftest.er1 >conftest.err
33008 rm -f conftest.er1
33009 cat conftest.err >&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } && {
33012 test -z "$ac_c_werror_flag" ||
33013 test ! -s conftest.err
33014 } && test -s conftest$ac_exeext &&
33015 $as_test_x conftest$ac_exeext; then
33016 ac_cv_imap_tk2006="yes"
33017 else
33018 echo "$as_me: failed program was:" >&5
33019 sed 's/^/| /' conftest.$ac_ext >&5
33021 ac_cv_imap_tk2006="no"
33025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33026 conftest$ac_exeext conftest.$ac_ext
33027 else #looking in imap directory didn't work, try c-client
33028 imap_ldflags=""
33029 imap_libs="-lc-client"
33030 imap_include="-DUSE_SYSTEM_CCLIENT"
33031 CPPFLAGS="${saved_cppflags}"
33032 LIBS="${saved_libs}"
33033 CPPFLAGS="${CPPFLAGS} ${imap_include}"
33034 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
33035 cat >conftest.$ac_ext <<_ACEOF
33036 /* confdefs.h. */
33037 _ACEOF
33038 cat confdefs.h >>conftest.$ac_ext
33039 cat >>conftest.$ac_ext <<_ACEOF
33040 /* end confdefs.h. */
33041 #include <stdio.h>
33042 #include <c-client/c-client.h>
33043 void mm_searched (MAILSTREAM *stream,unsigned long number)
33046 void mm_exists (MAILSTREAM *stream,unsigned long number)
33049 void mm_expunged (MAILSTREAM *stream,unsigned long number)
33052 void mm_flags (MAILSTREAM *stream,unsigned long number)
33055 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
33058 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33061 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33064 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
33067 void mm_log (char *string,long errflg)
33070 void mm_dlog (char *string)
33073 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33076 void mm_critical (MAILSTREAM *stream)
33079 void mm_nocritical (MAILSTREAM *stream)
33082 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33085 void mm_fatal (char *string)
33089 main ()
33092 MAILSTREAM *foo = mail_open(NULL, "", 0);
33096 return 0;
33098 _ACEOF
33099 rm -f conftest.$ac_objext conftest$ac_exeext
33100 if { (ac_try="$ac_link"
33101 case "(($ac_try" in
33102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103 *) ac_try_echo=$ac_try;;
33104 esac
33105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106 (eval "$ac_link") 2>conftest.er1
33107 ac_status=$?
33108 grep -v '^ *+' conftest.er1 >conftest.err
33109 rm -f conftest.er1
33110 cat conftest.err >&5
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); } && {
33113 test -z "$ac_c_werror_flag" ||
33114 test ! -s conftest.err
33115 } && test -s conftest$ac_exeext &&
33116 $as_test_x conftest$ac_exeext; then
33117 ac_cv_imap_tk="yes"
33118 else
33119 echo "$as_me: failed program was:" >&5
33120 sed 's/^/| /' conftest.$ac_ext >&5
33122 ac_cv_imap_tk="no"
33126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33127 conftest$ac_exeext conftest.$ac_ext
33128 if test "${ac_cv_imap_tk}" = "yes"; then
33129 cat >conftest.$ac_ext <<_ACEOF
33130 /* confdefs.h. */
33131 _ACEOF
33132 cat confdefs.h >>conftest.$ac_ext
33133 cat >>conftest.$ac_ext <<_ACEOF
33134 /* end confdefs.h. */
33135 #include <stdio.h>
33136 #include <c-client/c-client.h>
33137 void mm_searched (MAILSTREAM *stream,unsigned long number)
33140 void mm_exists (MAILSTREAM *stream,unsigned long number)
33143 void mm_expunged (MAILSTREAM *stream,unsigned long number)
33146 void mm_flags (MAILSTREAM *stream,unsigned long number)
33149 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
33152 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33155 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33158 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
33161 void mm_log (char *string,long errflg)
33164 void mm_dlog (char *string)
33167 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33170 void mm_critical (MAILSTREAM *stream)
33173 void mm_nocritical (MAILSTREAM *stream)
33176 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33179 void mm_fatal (char *string)
33183 main ()
33186 long check = mail_expunge_full(NULL, "", 0);
33190 return 0;
33192 _ACEOF
33193 rm -f conftest.$ac_objext conftest$ac_exeext
33194 if { (ac_try="$ac_link"
33195 case "(($ac_try" in
33196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33197 *) ac_try_echo=$ac_try;;
33198 esac
33199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33200 (eval "$ac_link") 2>conftest.er1
33201 ac_status=$?
33202 grep -v '^ *+' conftest.er1 >conftest.err
33203 rm -f conftest.er1
33204 cat conftest.err >&5
33205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33206 (exit $ac_status); } && {
33207 test -z "$ac_c_werror_flag" ||
33208 test ! -s conftest.err
33209 } && test -s conftest$ac_exeext &&
33210 $as_test_x conftest$ac_exeext; then
33211 ac_cv_imap_tk2006="yes"
33212 else
33213 echo "$as_me: failed program was:" >&5
33214 sed 's/^/| /' conftest.$ac_ext >&5
33216 ac_cv_imap_tk2006="no"
33220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33221 conftest$ac_exeext conftest.$ac_ext
33225 if test "${ac_cv_imap_tk}" = "yes"; then
33226 { echo "$as_me:$LINENO: result: yes" >&5
33227 echo "${ECHO_T}yes" >&6; }
33228 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
33229 IMAP_TK_INCLUDE="${imap_include}"
33230 PBX_IMAP_TK=1
33232 cat >>confdefs.h <<\_ACEOF
33233 #define HAVE_IMAP_TK 1
33234 _ACEOF
33236 if test "${ac_cv_imap_tk2006}" = "yes"; then
33238 cat >>confdefs.h <<\_ACEOF
33239 #define HAVE_IMAP_TK2006 1
33240 _ACEOF
33243 else
33244 { echo "$as_me:$LINENO: result: no" >&5
33245 echo "${ECHO_T}no" >&6; }
33247 CPPFLAGS="${saved_cppflags}"
33248 LIBS="${saved_libs}"
33252 if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
33253 pbxlibdir=""
33254 # if --with-JACK=DIR has been specified, use it.
33255 if test "x${JACK_DIR}" != "x"; then
33256 if test -d ${JACK_DIR}/lib; then
33257 pbxlibdir="-L${JACK_DIR}/lib"
33258 else
33259 pbxlibdir="-L${JACK_DIR}"
33262 pbxfuncname="jack_activate"
33263 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33264 AST_JACK_FOUND=yes
33265 else
33266 as_ac_Lib=`echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
33267 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ljack" >&5
33268 echo $ECHO_N "checking for ${pbxfuncname} in -ljack... $ECHO_C" >&6; }
33269 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33270 echo $ECHO_N "(cached) $ECHO_C" >&6
33271 else
33272 ac_check_lib_save_LIBS=$LIBS
33273 LIBS="-ljack ${pbxlibdir} $LIBS"
33274 cat >conftest.$ac_ext <<_ACEOF
33275 /* confdefs.h. */
33276 _ACEOF
33277 cat confdefs.h >>conftest.$ac_ext
33278 cat >>conftest.$ac_ext <<_ACEOF
33279 /* end confdefs.h. */
33281 /* Override any GCC internal prototype to avoid an error.
33282 Use char because int might match the return type of a GCC
33283 builtin and then its argument prototype would still apply. */
33284 #ifdef __cplusplus
33285 extern "C"
33286 #endif
33287 char ${pbxfuncname} ();
33289 main ()
33291 return ${pbxfuncname} ();
33293 return 0;
33295 _ACEOF
33296 rm -f conftest.$ac_objext conftest$ac_exeext
33297 if { (ac_try="$ac_link"
33298 case "(($ac_try" in
33299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300 *) ac_try_echo=$ac_try;;
33301 esac
33302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303 (eval "$ac_link") 2>conftest.er1
33304 ac_status=$?
33305 grep -v '^ *+' conftest.er1 >conftest.err
33306 rm -f conftest.er1
33307 cat conftest.err >&5
33308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309 (exit $ac_status); } && {
33310 test -z "$ac_c_werror_flag" ||
33311 test ! -s conftest.err
33312 } && test -s conftest$ac_exeext &&
33313 $as_test_x conftest$ac_exeext; then
33314 eval "$as_ac_Lib=yes"
33315 else
33316 echo "$as_me: failed program was:" >&5
33317 sed 's/^/| /' conftest.$ac_ext >&5
33319 eval "$as_ac_Lib=no"
33322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33323 conftest$ac_exeext conftest.$ac_ext
33324 LIBS=$ac_check_lib_save_LIBS
33326 ac_res=`eval echo '${'$as_ac_Lib'}'`
33327 { echo "$as_me:$LINENO: result: $ac_res" >&5
33328 echo "${ECHO_T}$ac_res" >&6; }
33329 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33330 AST_JACK_FOUND=yes
33331 else
33332 AST_JACK_FOUND=no
33337 # now check for the header.
33338 if test "${AST_JACK_FOUND}" = "yes"; then
33339 JACK_LIB="${pbxlibdir} -ljack "
33340 # if --with-JACK=DIR has been specified, use it.
33341 if test "x${JACK_DIR}" != "x"; then
33342 JACK_INCLUDE="-I${JACK_DIR}/include"
33344 JACK_INCLUDE="${JACK_INCLUDE} "
33345 if test "xjack/jack.h" = "x" ; then # no header, assume found
33346 JACK_HEADER_FOUND="1"
33347 else # check for the header
33348 saved_cppflags="${CPPFLAGS}"
33349 CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE}"
33350 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33351 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33352 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33353 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33354 echo $ECHO_N "(cached) $ECHO_C" >&6
33356 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33357 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33358 else
33359 # Is the header compilable?
33360 { echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
33361 echo $ECHO_N "checking jack/jack.h usability... $ECHO_C" >&6; }
33362 cat >conftest.$ac_ext <<_ACEOF
33363 /* confdefs.h. */
33364 _ACEOF
33365 cat confdefs.h >>conftest.$ac_ext
33366 cat >>conftest.$ac_ext <<_ACEOF
33367 /* end confdefs.h. */
33368 $ac_includes_default
33369 #include <jack/jack.h>
33370 _ACEOF
33371 rm -f conftest.$ac_objext
33372 if { (ac_try="$ac_compile"
33373 case "(($ac_try" in
33374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375 *) ac_try_echo=$ac_try;;
33376 esac
33377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378 (eval "$ac_compile") 2>conftest.er1
33379 ac_status=$?
33380 grep -v '^ *+' conftest.er1 >conftest.err
33381 rm -f conftest.er1
33382 cat conftest.err >&5
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); } && {
33385 test -z "$ac_c_werror_flag" ||
33386 test ! -s conftest.err
33387 } && test -s conftest.$ac_objext; then
33388 ac_header_compiler=yes
33389 else
33390 echo "$as_me: failed program was:" >&5
33391 sed 's/^/| /' conftest.$ac_ext >&5
33393 ac_header_compiler=no
33396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33398 echo "${ECHO_T}$ac_header_compiler" >&6; }
33400 # Is the header present?
33401 { echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
33402 echo $ECHO_N "checking jack/jack.h presence... $ECHO_C" >&6; }
33403 cat >conftest.$ac_ext <<_ACEOF
33404 /* confdefs.h. */
33405 _ACEOF
33406 cat confdefs.h >>conftest.$ac_ext
33407 cat >>conftest.$ac_ext <<_ACEOF
33408 /* end confdefs.h. */
33409 #include <jack/jack.h>
33410 _ACEOF
33411 if { (ac_try="$ac_cpp conftest.$ac_ext"
33412 case "(($ac_try" in
33413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33414 *) ac_try_echo=$ac_try;;
33415 esac
33416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33418 ac_status=$?
33419 grep -v '^ *+' conftest.er1 >conftest.err
33420 rm -f conftest.er1
33421 cat conftest.err >&5
33422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423 (exit $ac_status); } >/dev/null && {
33424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33425 test ! -s conftest.err
33426 }; then
33427 ac_header_preproc=yes
33428 else
33429 echo "$as_me: failed program was:" >&5
33430 sed 's/^/| /' conftest.$ac_ext >&5
33432 ac_header_preproc=no
33435 rm -f conftest.err conftest.$ac_ext
33436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33437 echo "${ECHO_T}$ac_header_preproc" >&6; }
33439 # So? What about this header?
33440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33441 yes:no: )
33442 { echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
33443 echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33444 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
33445 echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
33446 ac_header_preproc=yes
33448 no:yes:* )
33449 { echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
33450 echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
33451 { echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5
33452 echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;}
33453 { echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
33454 echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
33455 { echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5
33456 echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;}
33457 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
33458 echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
33459 { echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
33460 echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
33461 ( cat <<\_ASBOX
33462 ## ------------------------------- ##
33463 ## Report this to www.asterisk.org ##
33464 ## ------------------------------- ##
33465 _ASBOX
33466 ) | sed "s/^/$as_me: WARNING: /" >&2
33468 esac
33469 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33470 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33471 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33472 echo $ECHO_N "(cached) $ECHO_C" >&6
33473 else
33474 ac_cv_header_jack_jack_h=$ac_header_preproc
33476 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33477 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33480 if test $ac_cv_header_jack_jack_h = yes; then
33481 JACK_HEADER_FOUND=1
33482 else
33483 JACK_HEADER_FOUND=0
33487 CPPFLAGS="${saved_cppflags}"
33489 if test "x${JACK_HEADER_FOUND}" = "x0" ; then
33490 JACK_LIB=""
33491 JACK_INCLUDE=""
33492 else
33493 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33494 JACK_LIB=""
33496 PBX_JACK=1
33497 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33499 cat >>confdefs.h <<_ACEOF
33500 #define HAVE_JACK 1
33501 _ACEOF
33504 cat >>confdefs.h <<_ACEOF
33505 #define HAVE_JACK_VERSION
33506 _ACEOF
33513 # Needed by unixodbc
33515 if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
33516 pbxlibdir=""
33517 # if --with-LTDL=DIR has been specified, use it.
33518 if test "x${LTDL_DIR}" != "x"; then
33519 if test -d ${LTDL_DIR}/lib; then
33520 pbxlibdir="-L${LTDL_DIR}/lib"
33521 else
33522 pbxlibdir="-L${LTDL_DIR}"
33525 pbxfuncname="lt_dlinit"
33526 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33527 AST_LTDL_FOUND=yes
33528 else
33529 as_ac_Lib=`echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
33530 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lltdl" >&5
33531 echo $ECHO_N "checking for ${pbxfuncname} in -lltdl... $ECHO_C" >&6; }
33532 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33533 echo $ECHO_N "(cached) $ECHO_C" >&6
33534 else
33535 ac_check_lib_save_LIBS=$LIBS
33536 LIBS="-lltdl ${pbxlibdir} $LIBS"
33537 cat >conftest.$ac_ext <<_ACEOF
33538 /* confdefs.h. */
33539 _ACEOF
33540 cat confdefs.h >>conftest.$ac_ext
33541 cat >>conftest.$ac_ext <<_ACEOF
33542 /* end confdefs.h. */
33544 /* Override any GCC internal prototype to avoid an error.
33545 Use char because int might match the return type of a GCC
33546 builtin and then its argument prototype would still apply. */
33547 #ifdef __cplusplus
33548 extern "C"
33549 #endif
33550 char ${pbxfuncname} ();
33552 main ()
33554 return ${pbxfuncname} ();
33556 return 0;
33558 _ACEOF
33559 rm -f conftest.$ac_objext conftest$ac_exeext
33560 if { (ac_try="$ac_link"
33561 case "(($ac_try" in
33562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33563 *) ac_try_echo=$ac_try;;
33564 esac
33565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33566 (eval "$ac_link") 2>conftest.er1
33567 ac_status=$?
33568 grep -v '^ *+' conftest.er1 >conftest.err
33569 rm -f conftest.er1
33570 cat conftest.err >&5
33571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572 (exit $ac_status); } && {
33573 test -z "$ac_c_werror_flag" ||
33574 test ! -s conftest.err
33575 } && test -s conftest$ac_exeext &&
33576 $as_test_x conftest$ac_exeext; then
33577 eval "$as_ac_Lib=yes"
33578 else
33579 echo "$as_me: failed program was:" >&5
33580 sed 's/^/| /' conftest.$ac_ext >&5
33582 eval "$as_ac_Lib=no"
33585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33586 conftest$ac_exeext conftest.$ac_ext
33587 LIBS=$ac_check_lib_save_LIBS
33589 ac_res=`eval echo '${'$as_ac_Lib'}'`
33590 { echo "$as_me:$LINENO: result: $ac_res" >&5
33591 echo "${ECHO_T}$ac_res" >&6; }
33592 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33593 AST_LTDL_FOUND=yes
33594 else
33595 AST_LTDL_FOUND=no
33600 # now check for the header.
33601 if test "${AST_LTDL_FOUND}" = "yes"; then
33602 LTDL_LIB="${pbxlibdir} -lltdl "
33603 # if --with-LTDL=DIR has been specified, use it.
33604 if test "x${LTDL_DIR}" != "x"; then
33605 LTDL_INCLUDE="-I${LTDL_DIR}/include"
33607 LTDL_INCLUDE="${LTDL_INCLUDE} "
33608 if test "xltdl.h" = "x" ; then # no header, assume found
33609 LTDL_HEADER_FOUND="1"
33610 else # check for the header
33611 saved_cppflags="${CPPFLAGS}"
33612 CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}"
33613 if test "${ac_cv_header_ltdl_h+set}" = set; then
33614 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33615 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33616 if test "${ac_cv_header_ltdl_h+set}" = set; then
33617 echo $ECHO_N "(cached) $ECHO_C" >&6
33619 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33620 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33621 else
33622 # Is the header compilable?
33623 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
33624 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
33625 cat >conftest.$ac_ext <<_ACEOF
33626 /* confdefs.h. */
33627 _ACEOF
33628 cat confdefs.h >>conftest.$ac_ext
33629 cat >>conftest.$ac_ext <<_ACEOF
33630 /* end confdefs.h. */
33631 $ac_includes_default
33632 #include <ltdl.h>
33633 _ACEOF
33634 rm -f conftest.$ac_objext
33635 if { (ac_try="$ac_compile"
33636 case "(($ac_try" in
33637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33638 *) ac_try_echo=$ac_try;;
33639 esac
33640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33641 (eval "$ac_compile") 2>conftest.er1
33642 ac_status=$?
33643 grep -v '^ *+' conftest.er1 >conftest.err
33644 rm -f conftest.er1
33645 cat conftest.err >&5
33646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647 (exit $ac_status); } && {
33648 test -z "$ac_c_werror_flag" ||
33649 test ! -s conftest.err
33650 } && test -s conftest.$ac_objext; then
33651 ac_header_compiler=yes
33652 else
33653 echo "$as_me: failed program was:" >&5
33654 sed 's/^/| /' conftest.$ac_ext >&5
33656 ac_header_compiler=no
33659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33661 echo "${ECHO_T}$ac_header_compiler" >&6; }
33663 # Is the header present?
33664 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
33665 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
33666 cat >conftest.$ac_ext <<_ACEOF
33667 /* confdefs.h. */
33668 _ACEOF
33669 cat confdefs.h >>conftest.$ac_ext
33670 cat >>conftest.$ac_ext <<_ACEOF
33671 /* end confdefs.h. */
33672 #include <ltdl.h>
33673 _ACEOF
33674 if { (ac_try="$ac_cpp conftest.$ac_ext"
33675 case "(($ac_try" in
33676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33677 *) ac_try_echo=$ac_try;;
33678 esac
33679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33681 ac_status=$?
33682 grep -v '^ *+' conftest.er1 >conftest.err
33683 rm -f conftest.er1
33684 cat conftest.err >&5
33685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33686 (exit $ac_status); } >/dev/null && {
33687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33688 test ! -s conftest.err
33689 }; then
33690 ac_header_preproc=yes
33691 else
33692 echo "$as_me: failed program was:" >&5
33693 sed 's/^/| /' conftest.$ac_ext >&5
33695 ac_header_preproc=no
33698 rm -f conftest.err conftest.$ac_ext
33699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33700 echo "${ECHO_T}$ac_header_preproc" >&6; }
33702 # So? What about this header?
33703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33704 yes:no: )
33705 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33706 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33707 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
33708 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
33709 ac_header_preproc=yes
33711 no:yes:* )
33712 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
33713 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
33714 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
33715 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
33716 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
33717 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
33718 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
33719 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33720 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
33721 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
33722 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
33723 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
33724 ( cat <<\_ASBOX
33725 ## ------------------------------- ##
33726 ## Report this to www.asterisk.org ##
33727 ## ------------------------------- ##
33728 _ASBOX
33729 ) | sed "s/^/$as_me: WARNING: /" >&2
33731 esac
33732 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33733 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33734 if test "${ac_cv_header_ltdl_h+set}" = set; then
33735 echo $ECHO_N "(cached) $ECHO_C" >&6
33736 else
33737 ac_cv_header_ltdl_h=$ac_header_preproc
33739 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33740 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33743 if test $ac_cv_header_ltdl_h = yes; then
33744 LTDL_HEADER_FOUND=1
33745 else
33746 LTDL_HEADER_FOUND=0
33750 CPPFLAGS="${saved_cppflags}"
33752 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
33753 LTDL_LIB=""
33754 LTDL_INCLUDE=""
33755 else
33756 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33757 LTDL_LIB=""
33759 PBX_LTDL=1
33760 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33762 cat >>confdefs.h <<_ACEOF
33763 #define HAVE_LTDL 1
33764 _ACEOF
33767 cat >>confdefs.h <<_ACEOF
33768 #define HAVE_LTDL_VERSION
33769 _ACEOF
33777 if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
33778 pbxlibdir=""
33779 # if --with-LDAP=DIR has been specified, use it.
33780 if test "x${LDAP_DIR}" != "x"; then
33781 if test -d ${LDAP_DIR}/lib; then
33782 pbxlibdir="-L${LDAP_DIR}/lib"
33783 else
33784 pbxlibdir="-L${LDAP_DIR}"
33787 pbxfuncname="ldap_initialize"
33788 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33789 AST_LDAP_FOUND=yes
33790 else
33791 as_ac_Lib=`echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
33792 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lldap" >&5
33793 echo $ECHO_N "checking for ${pbxfuncname} in -lldap... $ECHO_C" >&6; }
33794 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33795 echo $ECHO_N "(cached) $ECHO_C" >&6
33796 else
33797 ac_check_lib_save_LIBS=$LIBS
33798 LIBS="-lldap ${pbxlibdir} $LIBS"
33799 cat >conftest.$ac_ext <<_ACEOF
33800 /* confdefs.h. */
33801 _ACEOF
33802 cat confdefs.h >>conftest.$ac_ext
33803 cat >>conftest.$ac_ext <<_ACEOF
33804 /* end confdefs.h. */
33806 /* Override any GCC internal prototype to avoid an error.
33807 Use char because int might match the return type of a GCC
33808 builtin and then its argument prototype would still apply. */
33809 #ifdef __cplusplus
33810 extern "C"
33811 #endif
33812 char ${pbxfuncname} ();
33814 main ()
33816 return ${pbxfuncname} ();
33818 return 0;
33820 _ACEOF
33821 rm -f conftest.$ac_objext conftest$ac_exeext
33822 if { (ac_try="$ac_link"
33823 case "(($ac_try" in
33824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33825 *) ac_try_echo=$ac_try;;
33826 esac
33827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33828 (eval "$ac_link") 2>conftest.er1
33829 ac_status=$?
33830 grep -v '^ *+' conftest.er1 >conftest.err
33831 rm -f conftest.er1
33832 cat conftest.err >&5
33833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834 (exit $ac_status); } && {
33835 test -z "$ac_c_werror_flag" ||
33836 test ! -s conftest.err
33837 } && test -s conftest$ac_exeext &&
33838 $as_test_x conftest$ac_exeext; then
33839 eval "$as_ac_Lib=yes"
33840 else
33841 echo "$as_me: failed program was:" >&5
33842 sed 's/^/| /' conftest.$ac_ext >&5
33844 eval "$as_ac_Lib=no"
33847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33848 conftest$ac_exeext conftest.$ac_ext
33849 LIBS=$ac_check_lib_save_LIBS
33851 ac_res=`eval echo '${'$as_ac_Lib'}'`
33852 { echo "$as_me:$LINENO: result: $ac_res" >&5
33853 echo "${ECHO_T}$ac_res" >&6; }
33854 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33855 AST_LDAP_FOUND=yes
33856 else
33857 AST_LDAP_FOUND=no
33862 # now check for the header.
33863 if test "${AST_LDAP_FOUND}" = "yes"; then
33864 LDAP_LIB="${pbxlibdir} -lldap "
33865 # if --with-LDAP=DIR has been specified, use it.
33866 if test "x${LDAP_DIR}" != "x"; then
33867 LDAP_INCLUDE="-I${LDAP_DIR}/include"
33869 LDAP_INCLUDE="${LDAP_INCLUDE} "
33870 if test "xldap.h" = "x" ; then # no header, assume found
33871 LDAP_HEADER_FOUND="1"
33872 else # check for the header
33873 saved_cppflags="${CPPFLAGS}"
33874 CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE}"
33875 if test "${ac_cv_header_ldap_h+set}" = set; then
33876 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33877 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33878 if test "${ac_cv_header_ldap_h+set}" = set; then
33879 echo $ECHO_N "(cached) $ECHO_C" >&6
33881 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33882 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33883 else
33884 # Is the header compilable?
33885 { echo "$as_me:$LINENO: checking ldap.h usability" >&5
33886 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6; }
33887 cat >conftest.$ac_ext <<_ACEOF
33888 /* confdefs.h. */
33889 _ACEOF
33890 cat confdefs.h >>conftest.$ac_ext
33891 cat >>conftest.$ac_ext <<_ACEOF
33892 /* end confdefs.h. */
33893 $ac_includes_default
33894 #include <ldap.h>
33895 _ACEOF
33896 rm -f conftest.$ac_objext
33897 if { (ac_try="$ac_compile"
33898 case "(($ac_try" in
33899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33900 *) ac_try_echo=$ac_try;;
33901 esac
33902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33903 (eval "$ac_compile") 2>conftest.er1
33904 ac_status=$?
33905 grep -v '^ *+' conftest.er1 >conftest.err
33906 rm -f conftest.er1
33907 cat conftest.err >&5
33908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909 (exit $ac_status); } && {
33910 test -z "$ac_c_werror_flag" ||
33911 test ! -s conftest.err
33912 } && test -s conftest.$ac_objext; then
33913 ac_header_compiler=yes
33914 else
33915 echo "$as_me: failed program was:" >&5
33916 sed 's/^/| /' conftest.$ac_ext >&5
33918 ac_header_compiler=no
33921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33923 echo "${ECHO_T}$ac_header_compiler" >&6; }
33925 # Is the header present?
33926 { echo "$as_me:$LINENO: checking ldap.h presence" >&5
33927 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6; }
33928 cat >conftest.$ac_ext <<_ACEOF
33929 /* confdefs.h. */
33930 _ACEOF
33931 cat confdefs.h >>conftest.$ac_ext
33932 cat >>conftest.$ac_ext <<_ACEOF
33933 /* end confdefs.h. */
33934 #include <ldap.h>
33935 _ACEOF
33936 if { (ac_try="$ac_cpp conftest.$ac_ext"
33937 case "(($ac_try" in
33938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33939 *) ac_try_echo=$ac_try;;
33940 esac
33941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33943 ac_status=$?
33944 grep -v '^ *+' conftest.er1 >conftest.err
33945 rm -f conftest.er1
33946 cat conftest.err >&5
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); } >/dev/null && {
33949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33950 test ! -s conftest.err
33951 }; then
33952 ac_header_preproc=yes
33953 else
33954 echo "$as_me: failed program was:" >&5
33955 sed 's/^/| /' conftest.$ac_ext >&5
33957 ac_header_preproc=no
33960 rm -f conftest.err conftest.$ac_ext
33961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33962 echo "${ECHO_T}$ac_header_preproc" >&6; }
33964 # So? What about this header?
33965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33966 yes:no: )
33967 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
33968 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33969 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
33970 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
33971 ac_header_preproc=yes
33973 no:yes:* )
33974 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
33975 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
33976 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
33977 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
33978 { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
33979 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
33980 { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
33981 echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
33982 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
33983 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
33984 { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
33985 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
33986 ( cat <<\_ASBOX
33987 ## ------------------------------- ##
33988 ## Report this to www.asterisk.org ##
33989 ## ------------------------------- ##
33990 _ASBOX
33991 ) | sed "s/^/$as_me: WARNING: /" >&2
33993 esac
33994 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33995 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33996 if test "${ac_cv_header_ldap_h+set}" = set; then
33997 echo $ECHO_N "(cached) $ECHO_C" >&6
33998 else
33999 ac_cv_header_ldap_h=$ac_header_preproc
34001 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
34002 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
34005 if test $ac_cv_header_ldap_h = yes; then
34006 LDAP_HEADER_FOUND=1
34007 else
34008 LDAP_HEADER_FOUND=0
34012 CPPFLAGS="${saved_cppflags}"
34014 if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
34015 LDAP_LIB=""
34016 LDAP_INCLUDE=""
34017 else
34018 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34019 LDAP_LIB=""
34021 PBX_LDAP=1
34022 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34024 cat >>confdefs.h <<_ACEOF
34025 #define HAVE_LDAP 1
34026 _ACEOF
34029 cat >>confdefs.h <<_ACEOF
34030 #define HAVE_LDAP_VERSION
34031 _ACEOF
34039 if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
34040 pbxlibdir=""
34041 # if --with-MISDN=DIR has been specified, use it.
34042 if test "x${MISDN_DIR}" != "x"; then
34043 if test -d ${MISDN_DIR}/lib; then
34044 pbxlibdir="-L${MISDN_DIR}/lib"
34045 else
34046 pbxlibdir="-L${MISDN_DIR}"
34049 pbxfuncname="mISDN_open"
34050 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34051 AST_MISDN_FOUND=yes
34052 else
34053 as_ac_Lib=`echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
34054 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lmISDN" >&5
34055 echo $ECHO_N "checking for ${pbxfuncname} in -lmISDN... $ECHO_C" >&6; }
34056 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34057 echo $ECHO_N "(cached) $ECHO_C" >&6
34058 else
34059 ac_check_lib_save_LIBS=$LIBS
34060 LIBS="-lmISDN ${pbxlibdir} $LIBS"
34061 cat >conftest.$ac_ext <<_ACEOF
34062 /* confdefs.h. */
34063 _ACEOF
34064 cat confdefs.h >>conftest.$ac_ext
34065 cat >>conftest.$ac_ext <<_ACEOF
34066 /* end confdefs.h. */
34068 /* Override any GCC internal prototype to avoid an error.
34069 Use char because int might match the return type of a GCC
34070 builtin and then its argument prototype would still apply. */
34071 #ifdef __cplusplus
34072 extern "C"
34073 #endif
34074 char ${pbxfuncname} ();
34076 main ()
34078 return ${pbxfuncname} ();
34080 return 0;
34082 _ACEOF
34083 rm -f conftest.$ac_objext conftest$ac_exeext
34084 if { (ac_try="$ac_link"
34085 case "(($ac_try" in
34086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087 *) ac_try_echo=$ac_try;;
34088 esac
34089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090 (eval "$ac_link") 2>conftest.er1
34091 ac_status=$?
34092 grep -v '^ *+' conftest.er1 >conftest.err
34093 rm -f conftest.er1
34094 cat conftest.err >&5
34095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096 (exit $ac_status); } && {
34097 test -z "$ac_c_werror_flag" ||
34098 test ! -s conftest.err
34099 } && test -s conftest$ac_exeext &&
34100 $as_test_x conftest$ac_exeext; then
34101 eval "$as_ac_Lib=yes"
34102 else
34103 echo "$as_me: failed program was:" >&5
34104 sed 's/^/| /' conftest.$ac_ext >&5
34106 eval "$as_ac_Lib=no"
34109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34110 conftest$ac_exeext conftest.$ac_ext
34111 LIBS=$ac_check_lib_save_LIBS
34113 ac_res=`eval echo '${'$as_ac_Lib'}'`
34114 { echo "$as_me:$LINENO: result: $ac_res" >&5
34115 echo "${ECHO_T}$ac_res" >&6; }
34116 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34117 AST_MISDN_FOUND=yes
34118 else
34119 AST_MISDN_FOUND=no
34124 # now check for the header.
34125 if test "${AST_MISDN_FOUND}" = "yes"; then
34126 MISDN_LIB="${pbxlibdir} -lmISDN "
34127 # if --with-MISDN=DIR has been specified, use it.
34128 if test "x${MISDN_DIR}" != "x"; then
34129 MISDN_INCLUDE="-I${MISDN_DIR}/include"
34131 MISDN_INCLUDE="${MISDN_INCLUDE} "
34132 if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
34133 MISDN_HEADER_FOUND="1"
34134 else # check for the header
34135 saved_cppflags="${CPPFLAGS}"
34136 CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}"
34137 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34138 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
34139 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
34140 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34141 echo $ECHO_N "(cached) $ECHO_C" >&6
34143 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
34144 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
34145 else
34146 # Is the header compilable?
34147 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
34148 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
34149 cat >conftest.$ac_ext <<_ACEOF
34150 /* confdefs.h. */
34151 _ACEOF
34152 cat confdefs.h >>conftest.$ac_ext
34153 cat >>conftest.$ac_ext <<_ACEOF
34154 /* end confdefs.h. */
34155 $ac_includes_default
34156 #include <mISDNuser/mISDNlib.h>
34157 _ACEOF
34158 rm -f conftest.$ac_objext
34159 if { (ac_try="$ac_compile"
34160 case "(($ac_try" in
34161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34162 *) ac_try_echo=$ac_try;;
34163 esac
34164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34165 (eval "$ac_compile") 2>conftest.er1
34166 ac_status=$?
34167 grep -v '^ *+' conftest.er1 >conftest.err
34168 rm -f conftest.er1
34169 cat conftest.err >&5
34170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171 (exit $ac_status); } && {
34172 test -z "$ac_c_werror_flag" ||
34173 test ! -s conftest.err
34174 } && test -s conftest.$ac_objext; then
34175 ac_header_compiler=yes
34176 else
34177 echo "$as_me: failed program was:" >&5
34178 sed 's/^/| /' conftest.$ac_ext >&5
34180 ac_header_compiler=no
34183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34185 echo "${ECHO_T}$ac_header_compiler" >&6; }
34187 # Is the header present?
34188 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
34189 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
34190 cat >conftest.$ac_ext <<_ACEOF
34191 /* confdefs.h. */
34192 _ACEOF
34193 cat confdefs.h >>conftest.$ac_ext
34194 cat >>conftest.$ac_ext <<_ACEOF
34195 /* end confdefs.h. */
34196 #include <mISDNuser/mISDNlib.h>
34197 _ACEOF
34198 if { (ac_try="$ac_cpp conftest.$ac_ext"
34199 case "(($ac_try" in
34200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34201 *) ac_try_echo=$ac_try;;
34202 esac
34203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34205 ac_status=$?
34206 grep -v '^ *+' conftest.er1 >conftest.err
34207 rm -f conftest.er1
34208 cat conftest.err >&5
34209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210 (exit $ac_status); } >/dev/null && {
34211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34212 test ! -s conftest.err
34213 }; then
34214 ac_header_preproc=yes
34215 else
34216 echo "$as_me: failed program was:" >&5
34217 sed 's/^/| /' conftest.$ac_ext >&5
34219 ac_header_preproc=no
34222 rm -f conftest.err conftest.$ac_ext
34223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34224 echo "${ECHO_T}$ac_header_preproc" >&6; }
34226 # So? What about this header?
34227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34228 yes:no: )
34229 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34230 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34231 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
34232 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
34233 ac_header_preproc=yes
34235 no:yes:* )
34236 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
34237 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
34238 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
34239 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
34240 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
34241 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
34242 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
34243 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34244 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
34245 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
34246 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
34247 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
34248 ( cat <<\_ASBOX
34249 ## ------------------------------- ##
34250 ## Report this to www.asterisk.org ##
34251 ## ------------------------------- ##
34252 _ASBOX
34253 ) | sed "s/^/$as_me: WARNING: /" >&2
34255 esac
34256 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
34257 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
34258 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34259 echo $ECHO_N "(cached) $ECHO_C" >&6
34260 else
34261 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
34263 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
34264 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
34267 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
34268 MISDN_HEADER_FOUND=1
34269 else
34270 MISDN_HEADER_FOUND=0
34274 CPPFLAGS="${saved_cppflags}"
34276 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
34277 MISDN_LIB=""
34278 MISDN_INCLUDE=""
34279 else
34280 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34281 MISDN_LIB=""
34283 PBX_MISDN=1
34284 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34286 cat >>confdefs.h <<_ACEOF
34287 #define HAVE_MISDN 1
34288 _ACEOF
34291 cat >>confdefs.h <<_ACEOF
34292 #define HAVE_MISDN_VERSION
34293 _ACEOF
34300 if test "${PBX_MISDN}" = 1; then
34302 if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
34303 pbxlibdir=""
34304 # if --with-ISDNNET=DIR has been specified, use it.
34305 if test "x${ISDNNET_DIR}" != "x"; then
34306 if test -d ${ISDNNET_DIR}/lib; then
34307 pbxlibdir="-L${ISDNNET_DIR}/lib"
34308 else
34309 pbxlibdir="-L${ISDNNET_DIR}"
34312 pbxfuncname="init_manager"
34313 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34314 AST_ISDNNET_FOUND=yes
34315 else
34316 as_ac_Lib=`echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
34317 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lisdnnet" >&5
34318 echo $ECHO_N "checking for ${pbxfuncname} in -lisdnnet... $ECHO_C" >&6; }
34319 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34320 echo $ECHO_N "(cached) $ECHO_C" >&6
34321 else
34322 ac_check_lib_save_LIBS=$LIBS
34323 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
34324 cat >conftest.$ac_ext <<_ACEOF
34325 /* confdefs.h. */
34326 _ACEOF
34327 cat confdefs.h >>conftest.$ac_ext
34328 cat >>conftest.$ac_ext <<_ACEOF
34329 /* end confdefs.h. */
34331 /* Override any GCC internal prototype to avoid an error.
34332 Use char because int might match the return type of a GCC
34333 builtin and then its argument prototype would still apply. */
34334 #ifdef __cplusplus
34335 extern "C"
34336 #endif
34337 char ${pbxfuncname} ();
34339 main ()
34341 return ${pbxfuncname} ();
34343 return 0;
34345 _ACEOF
34346 rm -f conftest.$ac_objext conftest$ac_exeext
34347 if { (ac_try="$ac_link"
34348 case "(($ac_try" in
34349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34350 *) ac_try_echo=$ac_try;;
34351 esac
34352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34353 (eval "$ac_link") 2>conftest.er1
34354 ac_status=$?
34355 grep -v '^ *+' conftest.er1 >conftest.err
34356 rm -f conftest.er1
34357 cat conftest.err >&5
34358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359 (exit $ac_status); } && {
34360 test -z "$ac_c_werror_flag" ||
34361 test ! -s conftest.err
34362 } && test -s conftest$ac_exeext &&
34363 $as_test_x conftest$ac_exeext; then
34364 eval "$as_ac_Lib=yes"
34365 else
34366 echo "$as_me: failed program was:" >&5
34367 sed 's/^/| /' conftest.$ac_ext >&5
34369 eval "$as_ac_Lib=no"
34372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34373 conftest$ac_exeext conftest.$ac_ext
34374 LIBS=$ac_check_lib_save_LIBS
34376 ac_res=`eval echo '${'$as_ac_Lib'}'`
34377 { echo "$as_me:$LINENO: result: $ac_res" >&5
34378 echo "${ECHO_T}$ac_res" >&6; }
34379 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34380 AST_ISDNNET_FOUND=yes
34381 else
34382 AST_ISDNNET_FOUND=no
34387 # now check for the header.
34388 if test "${AST_ISDNNET_FOUND}" = "yes"; then
34389 ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
34390 # if --with-ISDNNET=DIR has been specified, use it.
34391 if test "x${ISDNNET_DIR}" != "x"; then
34392 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
34394 ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
34395 if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
34396 ISDNNET_HEADER_FOUND="1"
34397 else # check for the header
34398 saved_cppflags="${CPPFLAGS}"
34399 CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
34400 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34401 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34402 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34403 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34404 echo $ECHO_N "(cached) $ECHO_C" >&6
34406 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34407 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34408 else
34409 # Is the header compilable?
34410 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
34411 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
34412 cat >conftest.$ac_ext <<_ACEOF
34413 /* confdefs.h. */
34414 _ACEOF
34415 cat confdefs.h >>conftest.$ac_ext
34416 cat >>conftest.$ac_ext <<_ACEOF
34417 /* end confdefs.h. */
34418 $ac_includes_default
34419 #include <mISDNuser/isdn_net.h>
34420 _ACEOF
34421 rm -f conftest.$ac_objext
34422 if { (ac_try="$ac_compile"
34423 case "(($ac_try" in
34424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34425 *) ac_try_echo=$ac_try;;
34426 esac
34427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34428 (eval "$ac_compile") 2>conftest.er1
34429 ac_status=$?
34430 grep -v '^ *+' conftest.er1 >conftest.err
34431 rm -f conftest.er1
34432 cat conftest.err >&5
34433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34434 (exit $ac_status); } && {
34435 test -z "$ac_c_werror_flag" ||
34436 test ! -s conftest.err
34437 } && test -s conftest.$ac_objext; then
34438 ac_header_compiler=yes
34439 else
34440 echo "$as_me: failed program was:" >&5
34441 sed 's/^/| /' conftest.$ac_ext >&5
34443 ac_header_compiler=no
34446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34448 echo "${ECHO_T}$ac_header_compiler" >&6; }
34450 # Is the header present?
34451 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
34452 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
34453 cat >conftest.$ac_ext <<_ACEOF
34454 /* confdefs.h. */
34455 _ACEOF
34456 cat confdefs.h >>conftest.$ac_ext
34457 cat >>conftest.$ac_ext <<_ACEOF
34458 /* end confdefs.h. */
34459 #include <mISDNuser/isdn_net.h>
34460 _ACEOF
34461 if { (ac_try="$ac_cpp conftest.$ac_ext"
34462 case "(($ac_try" in
34463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34464 *) ac_try_echo=$ac_try;;
34465 esac
34466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34468 ac_status=$?
34469 grep -v '^ *+' conftest.er1 >conftest.err
34470 rm -f conftest.er1
34471 cat conftest.err >&5
34472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473 (exit $ac_status); } >/dev/null && {
34474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34475 test ! -s conftest.err
34476 }; then
34477 ac_header_preproc=yes
34478 else
34479 echo "$as_me: failed program was:" >&5
34480 sed 's/^/| /' conftest.$ac_ext >&5
34482 ac_header_preproc=no
34485 rm -f conftest.err conftest.$ac_ext
34486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34487 echo "${ECHO_T}$ac_header_preproc" >&6; }
34489 # So? What about this header?
34490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34491 yes:no: )
34492 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
34493 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34494 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
34495 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
34496 ac_header_preproc=yes
34498 no:yes:* )
34499 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
34500 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
34501 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
34502 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
34503 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
34504 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
34505 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
34506 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
34507 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
34508 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
34509 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
34510 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
34511 ( cat <<\_ASBOX
34512 ## ------------------------------- ##
34513 ## Report this to www.asterisk.org ##
34514 ## ------------------------------- ##
34515 _ASBOX
34516 ) | sed "s/^/$as_me: WARNING: /" >&2
34518 esac
34519 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34520 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34521 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34522 echo $ECHO_N "(cached) $ECHO_C" >&6
34523 else
34524 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
34526 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34527 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34530 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
34531 ISDNNET_HEADER_FOUND=1
34532 else
34533 ISDNNET_HEADER_FOUND=0
34537 CPPFLAGS="${saved_cppflags}"
34539 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
34540 ISDNNET_LIB=""
34541 ISDNNET_INCLUDE=""
34542 else
34543 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34544 ISDNNET_LIB=""
34546 PBX_ISDNNET=1
34547 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34549 cat >>confdefs.h <<_ACEOF
34550 #define HAVE_ISDNNET 1
34551 _ACEOF
34554 cat >>confdefs.h <<_ACEOF
34555 #define HAVE_ISDNNET_VERSION
34556 _ACEOF
34563 if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
34564 pbxlibdir=""
34565 # if --with-SUPPSERV=DIR has been specified, use it.
34566 if test "x${SUPPSERV_DIR}" != "x"; then
34567 if test -d ${SUPPSERV_DIR}/lib; then
34568 pbxlibdir="-L${SUPPSERV_DIR}/lib"
34569 else
34570 pbxlibdir="-L${SUPPSERV_DIR}"
34573 pbxfuncname="encodeFac"
34574 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34575 AST_SUPPSERV_FOUND=yes
34576 else
34577 as_ac_Lib=`echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
34578 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsuppserv" >&5
34579 echo $ECHO_N "checking for ${pbxfuncname} in -lsuppserv... $ECHO_C" >&6; }
34580 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34581 echo $ECHO_N "(cached) $ECHO_C" >&6
34582 else
34583 ac_check_lib_save_LIBS=$LIBS
34584 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
34585 cat >conftest.$ac_ext <<_ACEOF
34586 /* confdefs.h. */
34587 _ACEOF
34588 cat confdefs.h >>conftest.$ac_ext
34589 cat >>conftest.$ac_ext <<_ACEOF
34590 /* end confdefs.h. */
34592 /* Override any GCC internal prototype to avoid an error.
34593 Use char because int might match the return type of a GCC
34594 builtin and then its argument prototype would still apply. */
34595 #ifdef __cplusplus
34596 extern "C"
34597 #endif
34598 char ${pbxfuncname} ();
34600 main ()
34602 return ${pbxfuncname} ();
34604 return 0;
34606 _ACEOF
34607 rm -f conftest.$ac_objext conftest$ac_exeext
34608 if { (ac_try="$ac_link"
34609 case "(($ac_try" in
34610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34611 *) ac_try_echo=$ac_try;;
34612 esac
34613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34614 (eval "$ac_link") 2>conftest.er1
34615 ac_status=$?
34616 grep -v '^ *+' conftest.er1 >conftest.err
34617 rm -f conftest.er1
34618 cat conftest.err >&5
34619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620 (exit $ac_status); } && {
34621 test -z "$ac_c_werror_flag" ||
34622 test ! -s conftest.err
34623 } && test -s conftest$ac_exeext &&
34624 $as_test_x conftest$ac_exeext; then
34625 eval "$as_ac_Lib=yes"
34626 else
34627 echo "$as_me: failed program was:" >&5
34628 sed 's/^/| /' conftest.$ac_ext >&5
34630 eval "$as_ac_Lib=no"
34633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34634 conftest$ac_exeext conftest.$ac_ext
34635 LIBS=$ac_check_lib_save_LIBS
34637 ac_res=`eval echo '${'$as_ac_Lib'}'`
34638 { echo "$as_me:$LINENO: result: $ac_res" >&5
34639 echo "${ECHO_T}$ac_res" >&6; }
34640 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34641 AST_SUPPSERV_FOUND=yes
34642 else
34643 AST_SUPPSERV_FOUND=no
34648 # now check for the header.
34649 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
34650 SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
34651 # if --with-SUPPSERV=DIR has been specified, use it.
34652 if test "x${SUPPSERV_DIR}" != "x"; then
34653 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
34655 SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
34656 if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
34657 SUPPSERV_HEADER_FOUND="1"
34658 else # check for the header
34659 saved_cppflags="${CPPFLAGS}"
34660 CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
34661 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34662 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34663 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34664 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34665 echo $ECHO_N "(cached) $ECHO_C" >&6
34667 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34668 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34669 else
34670 # Is the header compilable?
34671 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
34672 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
34673 cat >conftest.$ac_ext <<_ACEOF
34674 /* confdefs.h. */
34675 _ACEOF
34676 cat confdefs.h >>conftest.$ac_ext
34677 cat >>conftest.$ac_ext <<_ACEOF
34678 /* end confdefs.h. */
34679 $ac_includes_default
34680 #include <mISDNuser/suppserv.h>
34681 _ACEOF
34682 rm -f conftest.$ac_objext
34683 if { (ac_try="$ac_compile"
34684 case "(($ac_try" in
34685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34686 *) ac_try_echo=$ac_try;;
34687 esac
34688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34689 (eval "$ac_compile") 2>conftest.er1
34690 ac_status=$?
34691 grep -v '^ *+' conftest.er1 >conftest.err
34692 rm -f conftest.er1
34693 cat conftest.err >&5
34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695 (exit $ac_status); } && {
34696 test -z "$ac_c_werror_flag" ||
34697 test ! -s conftest.err
34698 } && test -s conftest.$ac_objext; then
34699 ac_header_compiler=yes
34700 else
34701 echo "$as_me: failed program was:" >&5
34702 sed 's/^/| /' conftest.$ac_ext >&5
34704 ac_header_compiler=no
34707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34709 echo "${ECHO_T}$ac_header_compiler" >&6; }
34711 # Is the header present?
34712 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
34713 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
34714 cat >conftest.$ac_ext <<_ACEOF
34715 /* confdefs.h. */
34716 _ACEOF
34717 cat confdefs.h >>conftest.$ac_ext
34718 cat >>conftest.$ac_ext <<_ACEOF
34719 /* end confdefs.h. */
34720 #include <mISDNuser/suppserv.h>
34721 _ACEOF
34722 if { (ac_try="$ac_cpp conftest.$ac_ext"
34723 case "(($ac_try" in
34724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34725 *) ac_try_echo=$ac_try;;
34726 esac
34727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34729 ac_status=$?
34730 grep -v '^ *+' conftest.er1 >conftest.err
34731 rm -f conftest.er1
34732 cat conftest.err >&5
34733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34734 (exit $ac_status); } >/dev/null && {
34735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34736 test ! -s conftest.err
34737 }; then
34738 ac_header_preproc=yes
34739 else
34740 echo "$as_me: failed program was:" >&5
34741 sed 's/^/| /' conftest.$ac_ext >&5
34743 ac_header_preproc=no
34746 rm -f conftest.err conftest.$ac_ext
34747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34748 echo "${ECHO_T}$ac_header_preproc" >&6; }
34750 # So? What about this header?
34751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34752 yes:no: )
34753 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
34754 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34755 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
34756 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
34757 ac_header_preproc=yes
34759 no:yes:* )
34760 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
34761 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
34762 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
34763 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
34764 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
34765 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
34766 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
34767 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
34768 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
34769 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
34770 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
34771 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
34772 ( cat <<\_ASBOX
34773 ## ------------------------------- ##
34774 ## Report this to www.asterisk.org ##
34775 ## ------------------------------- ##
34776 _ASBOX
34777 ) | sed "s/^/$as_me: WARNING: /" >&2
34779 esac
34780 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34781 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34782 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34783 echo $ECHO_N "(cached) $ECHO_C" >&6
34784 else
34785 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
34787 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34788 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34791 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
34792 SUPPSERV_HEADER_FOUND=1
34793 else
34794 SUPPSERV_HEADER_FOUND=0
34798 CPPFLAGS="${saved_cppflags}"
34800 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
34801 SUPPSERV_LIB=""
34802 SUPPSERV_INCLUDE=""
34803 else
34804 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34805 SUPPSERV_LIB=""
34807 PBX_SUPPSERV=1
34808 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34810 cat >>confdefs.h <<_ACEOF
34811 #define HAVE_SUPPSERV 1
34812 _ACEOF
34815 cat >>confdefs.h <<_ACEOF
34816 #define HAVE_SUPPSERV_VERSION
34817 _ACEOF
34824 if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
34825 { echo "$as_me:$LINENO: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
34826 echo $ECHO_N "checking for Fac_RESULT in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34827 saved_cppflags="${CPPFLAGS}"
34828 if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
34829 MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
34831 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
34833 cat >conftest.$ac_ext <<_ACEOF
34834 /* confdefs.h. */
34835 _ACEOF
34836 cat confdefs.h >>conftest.$ac_ext
34837 cat >>conftest.$ac_ext <<_ACEOF
34838 /* end confdefs.h. */
34839 #include <mISDNuser/suppserv.h>
34841 main ()
34843 #if defined(Fac_RESULT)
34844 int foo = 0;
34845 #else
34846 int foo = bar;
34847 #endif
34851 return 0;
34853 _ACEOF
34854 rm -f conftest.$ac_objext
34855 if { (ac_try="$ac_compile"
34856 case "(($ac_try" in
34857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34858 *) ac_try_echo=$ac_try;;
34859 esac
34860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34861 (eval "$ac_compile") 2>conftest.er1
34862 ac_status=$?
34863 grep -v '^ *+' conftest.er1 >conftest.err
34864 rm -f conftest.er1
34865 cat conftest.err >&5
34866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867 (exit $ac_status); } && {
34868 test -z "$ac_c_werror_flag" ||
34869 test ! -s conftest.err
34870 } && test -s conftest.$ac_objext; then
34871 { echo "$as_me:$LINENO: result: yes" >&5
34872 echo "${ECHO_T}yes" >&6; }
34873 PBX_MISDN_FAC_RESULT=1
34875 cat >>confdefs.h <<\_ACEOF
34876 #define HAVE_MISDN_FAC_RESULT 1
34877 _ACEOF
34880 cat >>confdefs.h <<\_ACEOF
34881 #define HAVE_MISDN_FAC_RESULT_VERSION
34882 _ACEOF
34885 else
34886 echo "$as_me: failed program was:" >&5
34887 sed 's/^/| /' conftest.$ac_ext >&5
34889 { echo "$as_me:$LINENO: result: no" >&5
34890 echo "${ECHO_T}no" >&6; }
34894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34895 CPPFLAGS="${saved_cppflags}"
34900 if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
34901 { echo "$as_me:$LINENO: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
34902 echo $ECHO_N "checking for Fac_ERROR in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34903 saved_cppflags="${CPPFLAGS}"
34904 if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
34905 MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
34907 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
34909 cat >conftest.$ac_ext <<_ACEOF
34910 /* confdefs.h. */
34911 _ACEOF
34912 cat confdefs.h >>conftest.$ac_ext
34913 cat >>conftest.$ac_ext <<_ACEOF
34914 /* end confdefs.h. */
34915 #include <mISDNuser/suppserv.h>
34917 main ()
34919 #if defined(Fac_ERROR)
34920 int foo = 0;
34921 #else
34922 int foo = bar;
34923 #endif
34927 return 0;
34929 _ACEOF
34930 rm -f conftest.$ac_objext
34931 if { (ac_try="$ac_compile"
34932 case "(($ac_try" in
34933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34934 *) ac_try_echo=$ac_try;;
34935 esac
34936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34937 (eval "$ac_compile") 2>conftest.er1
34938 ac_status=$?
34939 grep -v '^ *+' conftest.er1 >conftest.err
34940 rm -f conftest.er1
34941 cat conftest.err >&5
34942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943 (exit $ac_status); } && {
34944 test -z "$ac_c_werror_flag" ||
34945 test ! -s conftest.err
34946 } && test -s conftest.$ac_objext; then
34947 { echo "$as_me:$LINENO: result: yes" >&5
34948 echo "${ECHO_T}yes" >&6; }
34949 PBX_MISDN_FAC_ERROR=1
34951 cat >>confdefs.h <<\_ACEOF
34952 #define HAVE_MISDN_FAC_ERROR 1
34953 _ACEOF
34956 cat >>confdefs.h <<\_ACEOF
34957 #define HAVE_MISDN_FAC_ERROR_VERSION
34958 _ACEOF
34961 else
34962 echo "$as_me: failed program was:" >&5
34963 sed 's/^/| /' conftest.$ac_ext >&5
34965 { echo "$as_me:$LINENO: result: no" >&5
34966 echo "${ECHO_T}no" >&6; }
34970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34971 CPPFLAGS="${saved_cppflags}"
34975 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34976 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
34977 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
34978 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34979 echo $ECHO_N "(cached) $ECHO_C" >&6
34981 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
34982 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
34983 else
34984 # Is the header compilable?
34985 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
34986 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
34987 cat >conftest.$ac_ext <<_ACEOF
34988 /* confdefs.h. */
34989 _ACEOF
34990 cat confdefs.h >>conftest.$ac_ext
34991 cat >>conftest.$ac_ext <<_ACEOF
34992 /* end confdefs.h. */
34993 $ac_includes_default
34994 #include <linux/mISDNdsp.h>
34995 _ACEOF
34996 rm -f conftest.$ac_objext
34997 if { (ac_try="$ac_compile"
34998 case "(($ac_try" in
34999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35000 *) ac_try_echo=$ac_try;;
35001 esac
35002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35003 (eval "$ac_compile") 2>conftest.er1
35004 ac_status=$?
35005 grep -v '^ *+' conftest.er1 >conftest.err
35006 rm -f conftest.er1
35007 cat conftest.err >&5
35008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009 (exit $ac_status); } && {
35010 test -z "$ac_c_werror_flag" ||
35011 test ! -s conftest.err
35012 } && test -s conftest.$ac_objext; then
35013 ac_header_compiler=yes
35014 else
35015 echo "$as_me: failed program was:" >&5
35016 sed 's/^/| /' conftest.$ac_ext >&5
35018 ac_header_compiler=no
35021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35023 echo "${ECHO_T}$ac_header_compiler" >&6; }
35025 # Is the header present?
35026 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
35027 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
35028 cat >conftest.$ac_ext <<_ACEOF
35029 /* confdefs.h. */
35030 _ACEOF
35031 cat confdefs.h >>conftest.$ac_ext
35032 cat >>conftest.$ac_ext <<_ACEOF
35033 /* end confdefs.h. */
35034 #include <linux/mISDNdsp.h>
35035 _ACEOF
35036 if { (ac_try="$ac_cpp conftest.$ac_ext"
35037 case "(($ac_try" in
35038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35039 *) ac_try_echo=$ac_try;;
35040 esac
35041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35043 ac_status=$?
35044 grep -v '^ *+' conftest.er1 >conftest.err
35045 rm -f conftest.er1
35046 cat conftest.err >&5
35047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048 (exit $ac_status); } >/dev/null && {
35049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35050 test ! -s conftest.err
35051 }; then
35052 ac_header_preproc=yes
35053 else
35054 echo "$as_me: failed program was:" >&5
35055 sed 's/^/| /' conftest.$ac_ext >&5
35057 ac_header_preproc=no
35060 rm -f conftest.err conftest.$ac_ext
35061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35062 echo "${ECHO_T}$ac_header_preproc" >&6; }
35064 # So? What about this header?
35065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35066 yes:no: )
35067 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
35068 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35069 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
35070 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
35071 ac_header_preproc=yes
35073 no:yes:* )
35074 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
35075 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
35076 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
35077 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
35078 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
35079 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
35080 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
35081 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
35082 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
35083 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
35084 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
35085 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
35086 ( cat <<\_ASBOX
35087 ## ------------------------------- ##
35088 ## Report this to www.asterisk.org ##
35089 ## ------------------------------- ##
35090 _ASBOX
35091 ) | sed "s/^/$as_me: WARNING: /" >&2
35093 esac
35094 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
35095 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
35096 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
35097 echo $ECHO_N "(cached) $ECHO_C" >&6
35098 else
35099 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
35101 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
35102 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
35105 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
35107 cat >>confdefs.h <<_ACEOF
35108 #define MISDN_1_2 1
35109 _ACEOF
35117 if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
35118 pbxlibdir=""
35119 # if --with-NBS=DIR has been specified, use it.
35120 if test "x${NBS_DIR}" != "x"; then
35121 if test -d ${NBS_DIR}/lib; then
35122 pbxlibdir="-L${NBS_DIR}/lib"
35123 else
35124 pbxlibdir="-L${NBS_DIR}"
35127 pbxfuncname="nbs_connect"
35128 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35129 AST_NBS_FOUND=yes
35130 else
35131 as_ac_Lib=`echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
35132 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnbs" >&5
35133 echo $ECHO_N "checking for ${pbxfuncname} in -lnbs... $ECHO_C" >&6; }
35134 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35135 echo $ECHO_N "(cached) $ECHO_C" >&6
35136 else
35137 ac_check_lib_save_LIBS=$LIBS
35138 LIBS="-lnbs ${pbxlibdir} $LIBS"
35139 cat >conftest.$ac_ext <<_ACEOF
35140 /* confdefs.h. */
35141 _ACEOF
35142 cat confdefs.h >>conftest.$ac_ext
35143 cat >>conftest.$ac_ext <<_ACEOF
35144 /* end confdefs.h. */
35146 /* Override any GCC internal prototype to avoid an error.
35147 Use char because int might match the return type of a GCC
35148 builtin and then its argument prototype would still apply. */
35149 #ifdef __cplusplus
35150 extern "C"
35151 #endif
35152 char ${pbxfuncname} ();
35154 main ()
35156 return ${pbxfuncname} ();
35158 return 0;
35160 _ACEOF
35161 rm -f conftest.$ac_objext conftest$ac_exeext
35162 if { (ac_try="$ac_link"
35163 case "(($ac_try" in
35164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35165 *) ac_try_echo=$ac_try;;
35166 esac
35167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35168 (eval "$ac_link") 2>conftest.er1
35169 ac_status=$?
35170 grep -v '^ *+' conftest.er1 >conftest.err
35171 rm -f conftest.er1
35172 cat conftest.err >&5
35173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174 (exit $ac_status); } && {
35175 test -z "$ac_c_werror_flag" ||
35176 test ! -s conftest.err
35177 } && test -s conftest$ac_exeext &&
35178 $as_test_x conftest$ac_exeext; then
35179 eval "$as_ac_Lib=yes"
35180 else
35181 echo "$as_me: failed program was:" >&5
35182 sed 's/^/| /' conftest.$ac_ext >&5
35184 eval "$as_ac_Lib=no"
35187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35188 conftest$ac_exeext conftest.$ac_ext
35189 LIBS=$ac_check_lib_save_LIBS
35191 ac_res=`eval echo '${'$as_ac_Lib'}'`
35192 { echo "$as_me:$LINENO: result: $ac_res" >&5
35193 echo "${ECHO_T}$ac_res" >&6; }
35194 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35195 AST_NBS_FOUND=yes
35196 else
35197 AST_NBS_FOUND=no
35202 # now check for the header.
35203 if test "${AST_NBS_FOUND}" = "yes"; then
35204 NBS_LIB="${pbxlibdir} -lnbs "
35205 # if --with-NBS=DIR has been specified, use it.
35206 if test "x${NBS_DIR}" != "x"; then
35207 NBS_INCLUDE="-I${NBS_DIR}/include"
35209 NBS_INCLUDE="${NBS_INCLUDE} "
35210 if test "xnbs.h" = "x" ; then # no header, assume found
35211 NBS_HEADER_FOUND="1"
35212 else # check for the header
35213 saved_cppflags="${CPPFLAGS}"
35214 CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
35215 if test "${ac_cv_header_nbs_h+set}" = set; then
35216 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35217 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35218 if test "${ac_cv_header_nbs_h+set}" = set; then
35219 echo $ECHO_N "(cached) $ECHO_C" >&6
35221 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35222 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35223 else
35224 # Is the header compilable?
35225 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
35226 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
35227 cat >conftest.$ac_ext <<_ACEOF
35228 /* confdefs.h. */
35229 _ACEOF
35230 cat confdefs.h >>conftest.$ac_ext
35231 cat >>conftest.$ac_ext <<_ACEOF
35232 /* end confdefs.h. */
35233 $ac_includes_default
35234 #include <nbs.h>
35235 _ACEOF
35236 rm -f conftest.$ac_objext
35237 if { (ac_try="$ac_compile"
35238 case "(($ac_try" in
35239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35240 *) ac_try_echo=$ac_try;;
35241 esac
35242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35243 (eval "$ac_compile") 2>conftest.er1
35244 ac_status=$?
35245 grep -v '^ *+' conftest.er1 >conftest.err
35246 rm -f conftest.er1
35247 cat conftest.err >&5
35248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249 (exit $ac_status); } && {
35250 test -z "$ac_c_werror_flag" ||
35251 test ! -s conftest.err
35252 } && test -s conftest.$ac_objext; then
35253 ac_header_compiler=yes
35254 else
35255 echo "$as_me: failed program was:" >&5
35256 sed 's/^/| /' conftest.$ac_ext >&5
35258 ac_header_compiler=no
35261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35263 echo "${ECHO_T}$ac_header_compiler" >&6; }
35265 # Is the header present?
35266 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
35267 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
35268 cat >conftest.$ac_ext <<_ACEOF
35269 /* confdefs.h. */
35270 _ACEOF
35271 cat confdefs.h >>conftest.$ac_ext
35272 cat >>conftest.$ac_ext <<_ACEOF
35273 /* end confdefs.h. */
35274 #include <nbs.h>
35275 _ACEOF
35276 if { (ac_try="$ac_cpp conftest.$ac_ext"
35277 case "(($ac_try" in
35278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35279 *) ac_try_echo=$ac_try;;
35280 esac
35281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35283 ac_status=$?
35284 grep -v '^ *+' conftest.er1 >conftest.err
35285 rm -f conftest.er1
35286 cat conftest.err >&5
35287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288 (exit $ac_status); } >/dev/null && {
35289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35290 test ! -s conftest.err
35291 }; then
35292 ac_header_preproc=yes
35293 else
35294 echo "$as_me: failed program was:" >&5
35295 sed 's/^/| /' conftest.$ac_ext >&5
35297 ac_header_preproc=no
35300 rm -f conftest.err conftest.$ac_ext
35301 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35302 echo "${ECHO_T}$ac_header_preproc" >&6; }
35304 # So? What about this header?
35305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35306 yes:no: )
35307 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
35308 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35309 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
35310 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
35311 ac_header_preproc=yes
35313 no:yes:* )
35314 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
35315 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
35316 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
35317 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
35318 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
35319 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
35320 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
35321 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
35322 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
35323 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
35324 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
35325 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
35326 ( cat <<\_ASBOX
35327 ## ------------------------------- ##
35328 ## Report this to www.asterisk.org ##
35329 ## ------------------------------- ##
35330 _ASBOX
35331 ) | sed "s/^/$as_me: WARNING: /" >&2
35333 esac
35334 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35335 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35336 if test "${ac_cv_header_nbs_h+set}" = set; then
35337 echo $ECHO_N "(cached) $ECHO_C" >&6
35338 else
35339 ac_cv_header_nbs_h=$ac_header_preproc
35341 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35342 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35345 if test $ac_cv_header_nbs_h = yes; then
35346 NBS_HEADER_FOUND=1
35347 else
35348 NBS_HEADER_FOUND=0
35352 CPPFLAGS="${saved_cppflags}"
35354 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
35355 NBS_LIB=""
35356 NBS_INCLUDE=""
35357 else
35358 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35359 NBS_LIB=""
35361 PBX_NBS=1
35362 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35364 cat >>confdefs.h <<_ACEOF
35365 #define HAVE_NBS 1
35366 _ACEOF
35369 cat >>confdefs.h <<_ACEOF
35370 #define HAVE_NBS_VERSION
35371 _ACEOF
35379 if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
35380 pbxlibdir=""
35381 # if --with-NCURSES=DIR has been specified, use it.
35382 if test "x${NCURSES_DIR}" != "x"; then
35383 if test -d ${NCURSES_DIR}/lib; then
35384 pbxlibdir="-L${NCURSES_DIR}/lib"
35385 else
35386 pbxlibdir="-L${NCURSES_DIR}"
35389 pbxfuncname="initscr"
35390 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35391 AST_NCURSES_FOUND=yes
35392 else
35393 as_ac_Lib=`echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
35394 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lncurses" >&5
35395 echo $ECHO_N "checking for ${pbxfuncname} in -lncurses... $ECHO_C" >&6; }
35396 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35397 echo $ECHO_N "(cached) $ECHO_C" >&6
35398 else
35399 ac_check_lib_save_LIBS=$LIBS
35400 LIBS="-lncurses ${pbxlibdir} $LIBS"
35401 cat >conftest.$ac_ext <<_ACEOF
35402 /* confdefs.h. */
35403 _ACEOF
35404 cat confdefs.h >>conftest.$ac_ext
35405 cat >>conftest.$ac_ext <<_ACEOF
35406 /* end confdefs.h. */
35408 /* Override any GCC internal prototype to avoid an error.
35409 Use char because int might match the return type of a GCC
35410 builtin and then its argument prototype would still apply. */
35411 #ifdef __cplusplus
35412 extern "C"
35413 #endif
35414 char ${pbxfuncname} ();
35416 main ()
35418 return ${pbxfuncname} ();
35420 return 0;
35422 _ACEOF
35423 rm -f conftest.$ac_objext conftest$ac_exeext
35424 if { (ac_try="$ac_link"
35425 case "(($ac_try" in
35426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35427 *) ac_try_echo=$ac_try;;
35428 esac
35429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35430 (eval "$ac_link") 2>conftest.er1
35431 ac_status=$?
35432 grep -v '^ *+' conftest.er1 >conftest.err
35433 rm -f conftest.er1
35434 cat conftest.err >&5
35435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436 (exit $ac_status); } && {
35437 test -z "$ac_c_werror_flag" ||
35438 test ! -s conftest.err
35439 } && test -s conftest$ac_exeext &&
35440 $as_test_x conftest$ac_exeext; then
35441 eval "$as_ac_Lib=yes"
35442 else
35443 echo "$as_me: failed program was:" >&5
35444 sed 's/^/| /' conftest.$ac_ext >&5
35446 eval "$as_ac_Lib=no"
35449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35450 conftest$ac_exeext conftest.$ac_ext
35451 LIBS=$ac_check_lib_save_LIBS
35453 ac_res=`eval echo '${'$as_ac_Lib'}'`
35454 { echo "$as_me:$LINENO: result: $ac_res" >&5
35455 echo "${ECHO_T}$ac_res" >&6; }
35456 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35457 AST_NCURSES_FOUND=yes
35458 else
35459 AST_NCURSES_FOUND=no
35464 # now check for the header.
35465 if test "${AST_NCURSES_FOUND}" = "yes"; then
35466 NCURSES_LIB="${pbxlibdir} -lncurses "
35467 # if --with-NCURSES=DIR has been specified, use it.
35468 if test "x${NCURSES_DIR}" != "x"; then
35469 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
35471 NCURSES_INCLUDE="${NCURSES_INCLUDE} "
35472 if test "xcurses.h" = "x" ; then # no header, assume found
35473 NCURSES_HEADER_FOUND="1"
35474 else # check for the header
35475 saved_cppflags="${CPPFLAGS}"
35476 CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
35477 if test "${ac_cv_header_curses_h+set}" = set; then
35478 { echo "$as_me:$LINENO: checking for curses.h" >&5
35479 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35480 if test "${ac_cv_header_curses_h+set}" = set; then
35481 echo $ECHO_N "(cached) $ECHO_C" >&6
35483 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35484 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35485 else
35486 # Is the header compilable?
35487 { echo "$as_me:$LINENO: checking curses.h usability" >&5
35488 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
35489 cat >conftest.$ac_ext <<_ACEOF
35490 /* confdefs.h. */
35491 _ACEOF
35492 cat confdefs.h >>conftest.$ac_ext
35493 cat >>conftest.$ac_ext <<_ACEOF
35494 /* end confdefs.h. */
35495 $ac_includes_default
35496 #include <curses.h>
35497 _ACEOF
35498 rm -f conftest.$ac_objext
35499 if { (ac_try="$ac_compile"
35500 case "(($ac_try" in
35501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35502 *) ac_try_echo=$ac_try;;
35503 esac
35504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35505 (eval "$ac_compile") 2>conftest.er1
35506 ac_status=$?
35507 grep -v '^ *+' conftest.er1 >conftest.err
35508 rm -f conftest.er1
35509 cat conftest.err >&5
35510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511 (exit $ac_status); } && {
35512 test -z "$ac_c_werror_flag" ||
35513 test ! -s conftest.err
35514 } && test -s conftest.$ac_objext; then
35515 ac_header_compiler=yes
35516 else
35517 echo "$as_me: failed program was:" >&5
35518 sed 's/^/| /' conftest.$ac_ext >&5
35520 ac_header_compiler=no
35523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35525 echo "${ECHO_T}$ac_header_compiler" >&6; }
35527 # Is the header present?
35528 { echo "$as_me:$LINENO: checking curses.h presence" >&5
35529 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
35530 cat >conftest.$ac_ext <<_ACEOF
35531 /* confdefs.h. */
35532 _ACEOF
35533 cat confdefs.h >>conftest.$ac_ext
35534 cat >>conftest.$ac_ext <<_ACEOF
35535 /* end confdefs.h. */
35536 #include <curses.h>
35537 _ACEOF
35538 if { (ac_try="$ac_cpp conftest.$ac_ext"
35539 case "(($ac_try" in
35540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35541 *) ac_try_echo=$ac_try;;
35542 esac
35543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35545 ac_status=$?
35546 grep -v '^ *+' conftest.er1 >conftest.err
35547 rm -f conftest.er1
35548 cat conftest.err >&5
35549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550 (exit $ac_status); } >/dev/null && {
35551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35552 test ! -s conftest.err
35553 }; then
35554 ac_header_preproc=yes
35555 else
35556 echo "$as_me: failed program was:" >&5
35557 sed 's/^/| /' conftest.$ac_ext >&5
35559 ac_header_preproc=no
35562 rm -f conftest.err conftest.$ac_ext
35563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35564 echo "${ECHO_T}$ac_header_preproc" >&6; }
35566 # So? What about this header?
35567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35568 yes:no: )
35569 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
35570 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35571 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
35572 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
35573 ac_header_preproc=yes
35575 no:yes:* )
35576 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
35577 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
35578 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
35579 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
35580 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
35581 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
35582 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
35583 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
35584 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
35585 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
35586 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
35587 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
35588 ( cat <<\_ASBOX
35589 ## ------------------------------- ##
35590 ## Report this to www.asterisk.org ##
35591 ## ------------------------------- ##
35592 _ASBOX
35593 ) | sed "s/^/$as_me: WARNING: /" >&2
35595 esac
35596 { echo "$as_me:$LINENO: checking for curses.h" >&5
35597 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35598 if test "${ac_cv_header_curses_h+set}" = set; then
35599 echo $ECHO_N "(cached) $ECHO_C" >&6
35600 else
35601 ac_cv_header_curses_h=$ac_header_preproc
35603 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35604 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35607 if test $ac_cv_header_curses_h = yes; then
35608 NCURSES_HEADER_FOUND=1
35609 else
35610 NCURSES_HEADER_FOUND=0
35614 CPPFLAGS="${saved_cppflags}"
35616 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
35617 NCURSES_LIB=""
35618 NCURSES_INCLUDE=""
35619 else
35620 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35621 NCURSES_LIB=""
35623 PBX_NCURSES=1
35624 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35626 cat >>confdefs.h <<_ACEOF
35627 #define HAVE_NCURSES 1
35628 _ACEOF
35631 cat >>confdefs.h <<_ACEOF
35632 #define HAVE_NCURSES_VERSION
35633 _ACEOF
35641 if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
35642 PBX_NETSNMP=0
35643 if test -n "$ac_tool_prefix"; then
35644 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
35645 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
35646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35648 if test "${ac_cv_prog_CONFIG_NETSNMP+set}" = set; then
35649 echo $ECHO_N "(cached) $ECHO_C" >&6
35650 else
35651 if test -n "$CONFIG_NETSNMP"; then
35652 ac_cv_prog_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test.
35653 else
35654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35655 for as_dir in $PATH
35657 IFS=$as_save_IFS
35658 test -z "$as_dir" && as_dir=.
35659 for ac_exec_ext in '' $ac_executable_extensions; do
35660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35661 ac_cv_prog_CONFIG_NETSNMP="${ac_tool_prefix}net-snmp-config"
35662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35663 break 2
35665 done
35666 done
35667 IFS=$as_save_IFS
35671 CONFIG_NETSNMP=$ac_cv_prog_CONFIG_NETSNMP
35672 if test -n "$CONFIG_NETSNMP"; then
35673 { echo "$as_me:$LINENO: result: $CONFIG_NETSNMP" >&5
35674 echo "${ECHO_T}$CONFIG_NETSNMP" >&6; }
35675 else
35676 { echo "$as_me:$LINENO: result: no" >&5
35677 echo "${ECHO_T}no" >&6; }
35682 if test -z "$ac_cv_prog_CONFIG_NETSNMP"; then
35683 ac_ct_CONFIG_NETSNMP=$CONFIG_NETSNMP
35684 # Extract the first word of "net-snmp-config", so it can be a program name with args.
35685 set dummy net-snmp-config; ac_word=$2
35686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35688 if test "${ac_cv_prog_ac_ct_CONFIG_NETSNMP+set}" = set; then
35689 echo $ECHO_N "(cached) $ECHO_C" >&6
35690 else
35691 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35692 ac_cv_prog_ac_ct_CONFIG_NETSNMP="$ac_ct_CONFIG_NETSNMP" # Let the user override the test.
35693 else
35694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35695 for as_dir in $PATH
35697 IFS=$as_save_IFS
35698 test -z "$as_dir" && as_dir=.
35699 for ac_exec_ext in '' $ac_executable_extensions; do
35700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35701 ac_cv_prog_ac_ct_CONFIG_NETSNMP="net-snmp-config"
35702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35703 break 2
35705 done
35706 done
35707 IFS=$as_save_IFS
35711 ac_ct_CONFIG_NETSNMP=$ac_cv_prog_ac_ct_CONFIG_NETSNMP
35712 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35713 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_NETSNMP" >&5
35714 echo "${ECHO_T}$ac_ct_CONFIG_NETSNMP" >&6; }
35715 else
35716 { echo "$as_me:$LINENO: result: no" >&5
35717 echo "${ECHO_T}no" >&6; }
35720 if test "x$ac_ct_CONFIG_NETSNMP" = x; then
35721 CONFIG_NETSNMP="No"
35722 else
35723 case $cross_compiling:$ac_tool_warned in
35724 yes:)
35725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35726 whose name does not start with the host triplet. If you think this
35727 configuration is useful to you, please write to autoconf@gnu.org." >&5
35728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35729 whose name does not start with the host triplet. If you think this
35730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35731 ac_tool_warned=yes ;;
35732 esac
35733 CONFIG_NETSNMP=$ac_ct_CONFIG_NETSNMP
35735 else
35736 CONFIG_NETSNMP="$ac_cv_prog_CONFIG_NETSNMP"
35739 if test ! "x${CONFIG_NETSNMP}" = xNo; then
35740 if test x"" = x ; then A=--cflags ; else A="" ; fi
35741 NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
35742 if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
35743 NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
35744 if test x"#include <net-snmp/net-snmp-config.h>
35745 #include <net-snmp/net-snmp-includes.h>
35746 #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
35747 saved_cppflags="${CPPFLAGS}"
35748 if test "x${NETSNMP_DIR}" != "x"; then
35749 NETSNMP_INCLUDE="-I${NETSNMP_DIR}/include"
35751 CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
35753 saved_ldflags="${LDFLAGS}"
35754 LDFLAGS="${NETSNMP_LIB}"
35756 cat >conftest.$ac_ext <<_ACEOF
35757 /* confdefs.h. */
35758 _ACEOF
35759 cat confdefs.h >>conftest.$ac_ext
35760 cat >>conftest.$ac_ext <<_ACEOF
35761 /* end confdefs.h. */
35762 #include <net-snmp/net-snmp-config.h>
35763 #include <net-snmp/net-snmp-includes.h>
35764 #include <net-snmp/agent/net-snmp-agent-includes.h>
35766 main ()
35768 int callback = snmp_register_callback(0, 0, NULL, NULL);
35771 return 0;
35773 _ACEOF
35774 rm -f conftest.$ac_objext conftest$ac_exeext
35775 if { (ac_try="$ac_link"
35776 case "(($ac_try" in
35777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35778 *) ac_try_echo=$ac_try;;
35779 esac
35780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35781 (eval "$ac_link") 2>conftest.er1
35782 ac_status=$?
35783 grep -v '^ *+' conftest.er1 >conftest.err
35784 rm -f conftest.er1
35785 cat conftest.err >&5
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); } && {
35788 test -z "$ac_c_werror_flag" ||
35789 test ! -s conftest.err
35790 } && test -s conftest$ac_exeext &&
35791 $as_test_x conftest$ac_exeext; then
35792 PBX_NETSNMP=1
35794 cat >>confdefs.h <<\_ACEOF
35795 #define HAVE_NETSNMP 1
35796 _ACEOF
35799 else
35800 echo "$as_me: failed program was:" >&5
35801 sed 's/^/| /' conftest.$ac_ext >&5
35807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35808 conftest$ac_exeext conftest.$ac_ext
35809 CPPFLAGS="${saved_cppflags}"
35810 LDFLAGS="${saved_ldflags}"
35811 else
35812 PBX_NETSNMP=1
35814 cat >>confdefs.h <<\_ACEOF
35815 #define HAVE_NETSNMP 1
35816 _ACEOF
35824 if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
35825 pbxlibdir=""
35826 # if --with-NEWT=DIR has been specified, use it.
35827 if test "x${NEWT_DIR}" != "x"; then
35828 if test -d ${NEWT_DIR}/lib; then
35829 pbxlibdir="-L${NEWT_DIR}/lib"
35830 else
35831 pbxlibdir="-L${NEWT_DIR}"
35834 pbxfuncname="newtBell"
35835 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35836 AST_NEWT_FOUND=yes
35837 else
35838 as_ac_Lib=`echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
35839 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnewt" >&5
35840 echo $ECHO_N "checking for ${pbxfuncname} in -lnewt... $ECHO_C" >&6; }
35841 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35842 echo $ECHO_N "(cached) $ECHO_C" >&6
35843 else
35844 ac_check_lib_save_LIBS=$LIBS
35845 LIBS="-lnewt ${pbxlibdir} $LIBS"
35846 cat >conftest.$ac_ext <<_ACEOF
35847 /* confdefs.h. */
35848 _ACEOF
35849 cat confdefs.h >>conftest.$ac_ext
35850 cat >>conftest.$ac_ext <<_ACEOF
35851 /* end confdefs.h. */
35853 /* Override any GCC internal prototype to avoid an error.
35854 Use char because int might match the return type of a GCC
35855 builtin and then its argument prototype would still apply. */
35856 #ifdef __cplusplus
35857 extern "C"
35858 #endif
35859 char ${pbxfuncname} ();
35861 main ()
35863 return ${pbxfuncname} ();
35865 return 0;
35867 _ACEOF
35868 rm -f conftest.$ac_objext conftest$ac_exeext
35869 if { (ac_try="$ac_link"
35870 case "(($ac_try" in
35871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35872 *) ac_try_echo=$ac_try;;
35873 esac
35874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35875 (eval "$ac_link") 2>conftest.er1
35876 ac_status=$?
35877 grep -v '^ *+' conftest.er1 >conftest.err
35878 rm -f conftest.er1
35879 cat conftest.err >&5
35880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35881 (exit $ac_status); } && {
35882 test -z "$ac_c_werror_flag" ||
35883 test ! -s conftest.err
35884 } && test -s conftest$ac_exeext &&
35885 $as_test_x conftest$ac_exeext; then
35886 eval "$as_ac_Lib=yes"
35887 else
35888 echo "$as_me: failed program was:" >&5
35889 sed 's/^/| /' conftest.$ac_ext >&5
35891 eval "$as_ac_Lib=no"
35894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35895 conftest$ac_exeext conftest.$ac_ext
35896 LIBS=$ac_check_lib_save_LIBS
35898 ac_res=`eval echo '${'$as_ac_Lib'}'`
35899 { echo "$as_me:$LINENO: result: $ac_res" >&5
35900 echo "${ECHO_T}$ac_res" >&6; }
35901 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35902 AST_NEWT_FOUND=yes
35903 else
35904 AST_NEWT_FOUND=no
35909 # now check for the header.
35910 if test "${AST_NEWT_FOUND}" = "yes"; then
35911 NEWT_LIB="${pbxlibdir} -lnewt "
35912 # if --with-NEWT=DIR has been specified, use it.
35913 if test "x${NEWT_DIR}" != "x"; then
35914 NEWT_INCLUDE="-I${NEWT_DIR}/include"
35916 NEWT_INCLUDE="${NEWT_INCLUDE} "
35917 if test "xnewt.h" = "x" ; then # no header, assume found
35918 NEWT_HEADER_FOUND="1"
35919 else # check for the header
35920 saved_cppflags="${CPPFLAGS}"
35921 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
35922 if test "${ac_cv_header_newt_h+set}" = set; then
35923 { echo "$as_me:$LINENO: checking for newt.h" >&5
35924 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
35925 if test "${ac_cv_header_newt_h+set}" = set; then
35926 echo $ECHO_N "(cached) $ECHO_C" >&6
35928 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
35929 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
35930 else
35931 # Is the header compilable?
35932 { echo "$as_me:$LINENO: checking newt.h usability" >&5
35933 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
35934 cat >conftest.$ac_ext <<_ACEOF
35935 /* confdefs.h. */
35936 _ACEOF
35937 cat confdefs.h >>conftest.$ac_ext
35938 cat >>conftest.$ac_ext <<_ACEOF
35939 /* end confdefs.h. */
35940 $ac_includes_default
35941 #include <newt.h>
35942 _ACEOF
35943 rm -f conftest.$ac_objext
35944 if { (ac_try="$ac_compile"
35945 case "(($ac_try" in
35946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35947 *) ac_try_echo=$ac_try;;
35948 esac
35949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35950 (eval "$ac_compile") 2>conftest.er1
35951 ac_status=$?
35952 grep -v '^ *+' conftest.er1 >conftest.err
35953 rm -f conftest.er1
35954 cat conftest.err >&5
35955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956 (exit $ac_status); } && {
35957 test -z "$ac_c_werror_flag" ||
35958 test ! -s conftest.err
35959 } && test -s conftest.$ac_objext; then
35960 ac_header_compiler=yes
35961 else
35962 echo "$as_me: failed program was:" >&5
35963 sed 's/^/| /' conftest.$ac_ext >&5
35965 ac_header_compiler=no
35968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35970 echo "${ECHO_T}$ac_header_compiler" >&6; }
35972 # Is the header present?
35973 { echo "$as_me:$LINENO: checking newt.h presence" >&5
35974 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
35975 cat >conftest.$ac_ext <<_ACEOF
35976 /* confdefs.h. */
35977 _ACEOF
35978 cat confdefs.h >>conftest.$ac_ext
35979 cat >>conftest.$ac_ext <<_ACEOF
35980 /* end confdefs.h. */
35981 #include <newt.h>
35982 _ACEOF
35983 if { (ac_try="$ac_cpp conftest.$ac_ext"
35984 case "(($ac_try" in
35985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35986 *) ac_try_echo=$ac_try;;
35987 esac
35988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35990 ac_status=$?
35991 grep -v '^ *+' conftest.er1 >conftest.err
35992 rm -f conftest.er1
35993 cat conftest.err >&5
35994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35995 (exit $ac_status); } >/dev/null && {
35996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35997 test ! -s conftest.err
35998 }; then
35999 ac_header_preproc=yes
36000 else
36001 echo "$as_me: failed program was:" >&5
36002 sed 's/^/| /' conftest.$ac_ext >&5
36004 ac_header_preproc=no
36007 rm -f conftest.err conftest.$ac_ext
36008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36009 echo "${ECHO_T}$ac_header_preproc" >&6; }
36011 # So? What about this header?
36012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36013 yes:no: )
36014 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
36015 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36016 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
36017 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
36018 ac_header_preproc=yes
36020 no:yes:* )
36021 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
36022 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
36023 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
36024 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
36025 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
36026 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
36027 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
36028 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
36029 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
36030 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
36031 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
36032 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
36033 ( cat <<\_ASBOX
36034 ## ------------------------------- ##
36035 ## Report this to www.asterisk.org ##
36036 ## ------------------------------- ##
36037 _ASBOX
36038 ) | sed "s/^/$as_me: WARNING: /" >&2
36040 esac
36041 { echo "$as_me:$LINENO: checking for newt.h" >&5
36042 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
36043 if test "${ac_cv_header_newt_h+set}" = set; then
36044 echo $ECHO_N "(cached) $ECHO_C" >&6
36045 else
36046 ac_cv_header_newt_h=$ac_header_preproc
36048 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
36049 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
36052 if test $ac_cv_header_newt_h = yes; then
36053 NEWT_HEADER_FOUND=1
36054 else
36055 NEWT_HEADER_FOUND=0
36059 CPPFLAGS="${saved_cppflags}"
36061 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
36062 NEWT_LIB=""
36063 NEWT_INCLUDE=""
36064 else
36065 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36066 NEWT_LIB=""
36068 PBX_NEWT=1
36069 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36071 cat >>confdefs.h <<_ACEOF
36072 #define HAVE_NEWT 1
36073 _ACEOF
36076 cat >>confdefs.h <<_ACEOF
36077 #define HAVE_NEWT_VERSION
36078 _ACEOF
36086 if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
36087 pbxlibdir=""
36088 # if --with-UNIXODBC=DIR has been specified, use it.
36089 if test "x${UNIXODBC_DIR}" != "x"; then
36090 if test -d ${UNIXODBC_DIR}/lib; then
36091 pbxlibdir="-L${UNIXODBC_DIR}/lib"
36092 else
36093 pbxlibdir="-L${UNIXODBC_DIR}"
36096 pbxfuncname="SQLConnect"
36097 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36098 AST_UNIXODBC_FOUND=yes
36099 else
36100 as_ac_Lib=`echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
36101 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lodbc" >&5
36102 echo $ECHO_N "checking for ${pbxfuncname} in -lodbc... $ECHO_C" >&6; }
36103 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36104 echo $ECHO_N "(cached) $ECHO_C" >&6
36105 else
36106 ac_check_lib_save_LIBS=$LIBS
36107 LIBS="-lodbc ${pbxlibdir} $LIBS"
36108 cat >conftest.$ac_ext <<_ACEOF
36109 /* confdefs.h. */
36110 _ACEOF
36111 cat confdefs.h >>conftest.$ac_ext
36112 cat >>conftest.$ac_ext <<_ACEOF
36113 /* end confdefs.h. */
36115 /* Override any GCC internal prototype to avoid an error.
36116 Use char because int might match the return type of a GCC
36117 builtin and then its argument prototype would still apply. */
36118 #ifdef __cplusplus
36119 extern "C"
36120 #endif
36121 char ${pbxfuncname} ();
36123 main ()
36125 return ${pbxfuncname} ();
36127 return 0;
36129 _ACEOF
36130 rm -f conftest.$ac_objext conftest$ac_exeext
36131 if { (ac_try="$ac_link"
36132 case "(($ac_try" in
36133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36134 *) ac_try_echo=$ac_try;;
36135 esac
36136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36137 (eval "$ac_link") 2>conftest.er1
36138 ac_status=$?
36139 grep -v '^ *+' conftest.er1 >conftest.err
36140 rm -f conftest.er1
36141 cat conftest.err >&5
36142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36143 (exit $ac_status); } && {
36144 test -z "$ac_c_werror_flag" ||
36145 test ! -s conftest.err
36146 } && test -s conftest$ac_exeext &&
36147 $as_test_x conftest$ac_exeext; then
36148 eval "$as_ac_Lib=yes"
36149 else
36150 echo "$as_me: failed program was:" >&5
36151 sed 's/^/| /' conftest.$ac_ext >&5
36153 eval "$as_ac_Lib=no"
36156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36157 conftest$ac_exeext conftest.$ac_ext
36158 LIBS=$ac_check_lib_save_LIBS
36160 ac_res=`eval echo '${'$as_ac_Lib'}'`
36161 { echo "$as_me:$LINENO: result: $ac_res" >&5
36162 echo "${ECHO_T}$ac_res" >&6; }
36163 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36164 AST_UNIXODBC_FOUND=yes
36165 else
36166 AST_UNIXODBC_FOUND=no
36171 # now check for the header.
36172 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
36173 UNIXODBC_LIB="${pbxlibdir} -lodbc "
36174 # if --with-UNIXODBC=DIR has been specified, use it.
36175 if test "x${UNIXODBC_DIR}" != "x"; then
36176 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
36178 UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
36179 if test "xsql.h" = "x" ; then # no header, assume found
36180 UNIXODBC_HEADER_FOUND="1"
36181 else # check for the header
36182 saved_cppflags="${CPPFLAGS}"
36183 CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
36184 if test "${ac_cv_header_sql_h+set}" = set; then
36185 { echo "$as_me:$LINENO: checking for sql.h" >&5
36186 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36187 if test "${ac_cv_header_sql_h+set}" = set; then
36188 echo $ECHO_N "(cached) $ECHO_C" >&6
36190 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36191 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36192 else
36193 # Is the header compilable?
36194 { echo "$as_me:$LINENO: checking sql.h usability" >&5
36195 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
36196 cat >conftest.$ac_ext <<_ACEOF
36197 /* confdefs.h. */
36198 _ACEOF
36199 cat confdefs.h >>conftest.$ac_ext
36200 cat >>conftest.$ac_ext <<_ACEOF
36201 /* end confdefs.h. */
36202 $ac_includes_default
36203 #include <sql.h>
36204 _ACEOF
36205 rm -f conftest.$ac_objext
36206 if { (ac_try="$ac_compile"
36207 case "(($ac_try" in
36208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36209 *) ac_try_echo=$ac_try;;
36210 esac
36211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36212 (eval "$ac_compile") 2>conftest.er1
36213 ac_status=$?
36214 grep -v '^ *+' conftest.er1 >conftest.err
36215 rm -f conftest.er1
36216 cat conftest.err >&5
36217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218 (exit $ac_status); } && {
36219 test -z "$ac_c_werror_flag" ||
36220 test ! -s conftest.err
36221 } && test -s conftest.$ac_objext; then
36222 ac_header_compiler=yes
36223 else
36224 echo "$as_me: failed program was:" >&5
36225 sed 's/^/| /' conftest.$ac_ext >&5
36227 ac_header_compiler=no
36230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36232 echo "${ECHO_T}$ac_header_compiler" >&6; }
36234 # Is the header present?
36235 { echo "$as_me:$LINENO: checking sql.h presence" >&5
36236 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
36237 cat >conftest.$ac_ext <<_ACEOF
36238 /* confdefs.h. */
36239 _ACEOF
36240 cat confdefs.h >>conftest.$ac_ext
36241 cat >>conftest.$ac_ext <<_ACEOF
36242 /* end confdefs.h. */
36243 #include <sql.h>
36244 _ACEOF
36245 if { (ac_try="$ac_cpp conftest.$ac_ext"
36246 case "(($ac_try" in
36247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36248 *) ac_try_echo=$ac_try;;
36249 esac
36250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36252 ac_status=$?
36253 grep -v '^ *+' conftest.er1 >conftest.err
36254 rm -f conftest.er1
36255 cat conftest.err >&5
36256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36257 (exit $ac_status); } >/dev/null && {
36258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36259 test ! -s conftest.err
36260 }; then
36261 ac_header_preproc=yes
36262 else
36263 echo "$as_me: failed program was:" >&5
36264 sed 's/^/| /' conftest.$ac_ext >&5
36266 ac_header_preproc=no
36269 rm -f conftest.err conftest.$ac_ext
36270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36271 echo "${ECHO_T}$ac_header_preproc" >&6; }
36273 # So? What about this header?
36274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36275 yes:no: )
36276 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
36277 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36278 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
36279 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
36280 ac_header_preproc=yes
36282 no:yes:* )
36283 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
36284 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
36285 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
36286 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
36287 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
36288 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
36289 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
36290 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
36291 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
36292 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
36293 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
36294 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
36295 ( cat <<\_ASBOX
36296 ## ------------------------------- ##
36297 ## Report this to www.asterisk.org ##
36298 ## ------------------------------- ##
36299 _ASBOX
36300 ) | sed "s/^/$as_me: WARNING: /" >&2
36302 esac
36303 { echo "$as_me:$LINENO: checking for sql.h" >&5
36304 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36305 if test "${ac_cv_header_sql_h+set}" = set; then
36306 echo $ECHO_N "(cached) $ECHO_C" >&6
36307 else
36308 ac_cv_header_sql_h=$ac_header_preproc
36310 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36311 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36314 if test $ac_cv_header_sql_h = yes; then
36315 UNIXODBC_HEADER_FOUND=1
36316 else
36317 UNIXODBC_HEADER_FOUND=0
36321 CPPFLAGS="${saved_cppflags}"
36323 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
36324 UNIXODBC_LIB=""
36325 UNIXODBC_INCLUDE=""
36326 else
36327 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36328 UNIXODBC_LIB=""
36330 PBX_UNIXODBC=1
36331 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36333 cat >>confdefs.h <<_ACEOF
36334 #define HAVE_UNIXODBC 1
36335 _ACEOF
36338 cat >>confdefs.h <<_ACEOF
36339 #define HAVE_UNIXODBC_VERSION
36340 _ACEOF
36348 if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
36349 pbxlibdir=""
36350 # if --with-OGG=DIR has been specified, use it.
36351 if test "x${OGG_DIR}" != "x"; then
36352 if test -d ${OGG_DIR}/lib; then
36353 pbxlibdir="-L${OGG_DIR}/lib"
36354 else
36355 pbxlibdir="-L${OGG_DIR}"
36358 pbxfuncname="ogg_sync_init"
36359 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36360 AST_OGG_FOUND=yes
36361 else
36362 as_ac_Lib=`echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
36363 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -logg" >&5
36364 echo $ECHO_N "checking for ${pbxfuncname} in -logg... $ECHO_C" >&6; }
36365 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36366 echo $ECHO_N "(cached) $ECHO_C" >&6
36367 else
36368 ac_check_lib_save_LIBS=$LIBS
36369 LIBS="-logg ${pbxlibdir} $LIBS"
36370 cat >conftest.$ac_ext <<_ACEOF
36371 /* confdefs.h. */
36372 _ACEOF
36373 cat confdefs.h >>conftest.$ac_ext
36374 cat >>conftest.$ac_ext <<_ACEOF
36375 /* end confdefs.h. */
36377 /* Override any GCC internal prototype to avoid an error.
36378 Use char because int might match the return type of a GCC
36379 builtin and then its argument prototype would still apply. */
36380 #ifdef __cplusplus
36381 extern "C"
36382 #endif
36383 char ${pbxfuncname} ();
36385 main ()
36387 return ${pbxfuncname} ();
36389 return 0;
36391 _ACEOF
36392 rm -f conftest.$ac_objext conftest$ac_exeext
36393 if { (ac_try="$ac_link"
36394 case "(($ac_try" in
36395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36396 *) ac_try_echo=$ac_try;;
36397 esac
36398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36399 (eval "$ac_link") 2>conftest.er1
36400 ac_status=$?
36401 grep -v '^ *+' conftest.er1 >conftest.err
36402 rm -f conftest.er1
36403 cat conftest.err >&5
36404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405 (exit $ac_status); } && {
36406 test -z "$ac_c_werror_flag" ||
36407 test ! -s conftest.err
36408 } && test -s conftest$ac_exeext &&
36409 $as_test_x conftest$ac_exeext; then
36410 eval "$as_ac_Lib=yes"
36411 else
36412 echo "$as_me: failed program was:" >&5
36413 sed 's/^/| /' conftest.$ac_ext >&5
36415 eval "$as_ac_Lib=no"
36418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36419 conftest$ac_exeext conftest.$ac_ext
36420 LIBS=$ac_check_lib_save_LIBS
36422 ac_res=`eval echo '${'$as_ac_Lib'}'`
36423 { echo "$as_me:$LINENO: result: $ac_res" >&5
36424 echo "${ECHO_T}$ac_res" >&6; }
36425 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36426 AST_OGG_FOUND=yes
36427 else
36428 AST_OGG_FOUND=no
36433 # now check for the header.
36434 if test "${AST_OGG_FOUND}" = "yes"; then
36435 OGG_LIB="${pbxlibdir} -logg "
36436 # if --with-OGG=DIR has been specified, use it.
36437 if test "x${OGG_DIR}" != "x"; then
36438 OGG_INCLUDE="-I${OGG_DIR}/include"
36440 OGG_INCLUDE="${OGG_INCLUDE} "
36441 if test "x" = "x" ; then # no header, assume found
36442 OGG_HEADER_FOUND="1"
36443 else # check for the header
36444 saved_cppflags="${CPPFLAGS}"
36445 CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
36446 if test "${ac_cv_header_+set}" = set; then
36447 { echo "$as_me:$LINENO: checking for " >&5
36448 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36449 if test "${ac_cv_header_+set}" = set; then
36450 echo $ECHO_N "(cached) $ECHO_C" >&6
36452 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36453 echo "${ECHO_T}$ac_cv_header_" >&6; }
36454 else
36455 # Is the header compilable?
36456 { echo "$as_me:$LINENO: checking usability" >&5
36457 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
36458 cat >conftest.$ac_ext <<_ACEOF
36459 /* confdefs.h. */
36460 _ACEOF
36461 cat confdefs.h >>conftest.$ac_ext
36462 cat >>conftest.$ac_ext <<_ACEOF
36463 /* end confdefs.h. */
36464 $ac_includes_default
36465 #include <>
36466 _ACEOF
36467 rm -f conftest.$ac_objext
36468 if { (ac_try="$ac_compile"
36469 case "(($ac_try" in
36470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36471 *) ac_try_echo=$ac_try;;
36472 esac
36473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36474 (eval "$ac_compile") 2>conftest.er1
36475 ac_status=$?
36476 grep -v '^ *+' conftest.er1 >conftest.err
36477 rm -f conftest.er1
36478 cat conftest.err >&5
36479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480 (exit $ac_status); } && {
36481 test -z "$ac_c_werror_flag" ||
36482 test ! -s conftest.err
36483 } && test -s conftest.$ac_objext; then
36484 ac_header_compiler=yes
36485 else
36486 echo "$as_me: failed program was:" >&5
36487 sed 's/^/| /' conftest.$ac_ext >&5
36489 ac_header_compiler=no
36492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36494 echo "${ECHO_T}$ac_header_compiler" >&6; }
36496 # Is the header present?
36497 { echo "$as_me:$LINENO: checking presence" >&5
36498 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
36499 cat >conftest.$ac_ext <<_ACEOF
36500 /* confdefs.h. */
36501 _ACEOF
36502 cat confdefs.h >>conftest.$ac_ext
36503 cat >>conftest.$ac_ext <<_ACEOF
36504 /* end confdefs.h. */
36505 #include <>
36506 _ACEOF
36507 if { (ac_try="$ac_cpp conftest.$ac_ext"
36508 case "(($ac_try" in
36509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36510 *) ac_try_echo=$ac_try;;
36511 esac
36512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36514 ac_status=$?
36515 grep -v '^ *+' conftest.er1 >conftest.err
36516 rm -f conftest.er1
36517 cat conftest.err >&5
36518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519 (exit $ac_status); } >/dev/null && {
36520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36521 test ! -s conftest.err
36522 }; then
36523 ac_header_preproc=yes
36524 else
36525 echo "$as_me: failed program was:" >&5
36526 sed 's/^/| /' conftest.$ac_ext >&5
36528 ac_header_preproc=no
36531 rm -f conftest.err conftest.$ac_ext
36532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36533 echo "${ECHO_T}$ac_header_preproc" >&6; }
36535 # So? What about this header?
36536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36537 yes:no: )
36538 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
36539 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
36540 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
36541 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
36542 ac_header_preproc=yes
36544 no:yes:* )
36545 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
36546 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
36547 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
36548 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
36549 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
36550 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
36551 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
36552 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
36553 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
36554 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
36555 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
36556 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
36557 ( cat <<\_ASBOX
36558 ## ------------------------------- ##
36559 ## Report this to www.asterisk.org ##
36560 ## ------------------------------- ##
36561 _ASBOX
36562 ) | sed "s/^/$as_me: WARNING: /" >&2
36564 esac
36565 { echo "$as_me:$LINENO: checking for " >&5
36566 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36567 if test "${ac_cv_header_+set}" = set; then
36568 echo $ECHO_N "(cached) $ECHO_C" >&6
36569 else
36570 ac_cv_header_=$ac_header_preproc
36572 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36573 echo "${ECHO_T}$ac_cv_header_" >&6; }
36576 if test $ac_cv_header_ = yes; then
36577 OGG_HEADER_FOUND=1
36578 else
36579 OGG_HEADER_FOUND=0
36583 CPPFLAGS="${saved_cppflags}"
36585 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
36586 OGG_LIB=""
36587 OGG_INCLUDE=""
36588 else
36589 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36590 OGG_LIB=""
36592 PBX_OGG=1
36593 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36595 cat >>confdefs.h <<_ACEOF
36596 #define HAVE_OGG 1
36597 _ACEOF
36600 cat >>confdefs.h <<_ACEOF
36601 #define HAVE_OGG_VERSION
36602 _ACEOF
36609 # Non-glibc platforms require libexecinfo for backtrace support
36611 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36612 pbxlibdir=""
36613 # if --with-BKTR=DIR has been specified, use it.
36614 if test "x${BKTR_DIR}" != "x"; then
36615 if test -d ${BKTR_DIR}/lib; then
36616 pbxlibdir="-L${BKTR_DIR}/lib"
36617 else
36618 pbxlibdir="-L${BKTR_DIR}"
36621 pbxfuncname="backtrace"
36622 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36623 AST_BKTR_FOUND=yes
36624 else
36625 as_ac_Lib=`echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
36626 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lexecinfo" >&5
36627 echo $ECHO_N "checking for ${pbxfuncname} in -lexecinfo... $ECHO_C" >&6; }
36628 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36629 echo $ECHO_N "(cached) $ECHO_C" >&6
36630 else
36631 ac_check_lib_save_LIBS=$LIBS
36632 LIBS="-lexecinfo ${pbxlibdir} $LIBS"
36633 cat >conftest.$ac_ext <<_ACEOF
36634 /* confdefs.h. */
36635 _ACEOF
36636 cat confdefs.h >>conftest.$ac_ext
36637 cat >>conftest.$ac_ext <<_ACEOF
36638 /* end confdefs.h. */
36640 /* Override any GCC internal prototype to avoid an error.
36641 Use char because int might match the return type of a GCC
36642 builtin and then its argument prototype would still apply. */
36643 #ifdef __cplusplus
36644 extern "C"
36645 #endif
36646 char ${pbxfuncname} ();
36648 main ()
36650 return ${pbxfuncname} ();
36652 return 0;
36654 _ACEOF
36655 rm -f conftest.$ac_objext conftest$ac_exeext
36656 if { (ac_try="$ac_link"
36657 case "(($ac_try" in
36658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36659 *) ac_try_echo=$ac_try;;
36660 esac
36661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36662 (eval "$ac_link") 2>conftest.er1
36663 ac_status=$?
36664 grep -v '^ *+' conftest.er1 >conftest.err
36665 rm -f conftest.er1
36666 cat conftest.err >&5
36667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668 (exit $ac_status); } && {
36669 test -z "$ac_c_werror_flag" ||
36670 test ! -s conftest.err
36671 } && test -s conftest$ac_exeext &&
36672 $as_test_x conftest$ac_exeext; then
36673 eval "$as_ac_Lib=yes"
36674 else
36675 echo "$as_me: failed program was:" >&5
36676 sed 's/^/| /' conftest.$ac_ext >&5
36678 eval "$as_ac_Lib=no"
36681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36682 conftest$ac_exeext conftest.$ac_ext
36683 LIBS=$ac_check_lib_save_LIBS
36685 ac_res=`eval echo '${'$as_ac_Lib'}'`
36686 { echo "$as_me:$LINENO: result: $ac_res" >&5
36687 echo "${ECHO_T}$ac_res" >&6; }
36688 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36689 AST_BKTR_FOUND=yes
36690 else
36691 AST_BKTR_FOUND=no
36696 # now check for the header.
36697 if test "${AST_BKTR_FOUND}" = "yes"; then
36698 BKTR_LIB="${pbxlibdir} -lexecinfo "
36699 # if --with-BKTR=DIR has been specified, use it.
36700 if test "x${BKTR_DIR}" != "x"; then
36701 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36703 BKTR_INCLUDE="${BKTR_INCLUDE} "
36704 if test "xexecinfo.h" = "x" ; then # no header, assume found
36705 BKTR_HEADER_FOUND="1"
36706 else # check for the header
36707 saved_cppflags="${CPPFLAGS}"
36708 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
36709 if test "${ac_cv_header_execinfo_h+set}" = set; then
36710 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36711 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36712 if test "${ac_cv_header_execinfo_h+set}" = set; then
36713 echo $ECHO_N "(cached) $ECHO_C" >&6
36715 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36716 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36717 else
36718 # Is the header compilable?
36719 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36720 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36721 cat >conftest.$ac_ext <<_ACEOF
36722 /* confdefs.h. */
36723 _ACEOF
36724 cat confdefs.h >>conftest.$ac_ext
36725 cat >>conftest.$ac_ext <<_ACEOF
36726 /* end confdefs.h. */
36727 $ac_includes_default
36728 #include <execinfo.h>
36729 _ACEOF
36730 rm -f conftest.$ac_objext
36731 if { (ac_try="$ac_compile"
36732 case "(($ac_try" in
36733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36734 *) ac_try_echo=$ac_try;;
36735 esac
36736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36737 (eval "$ac_compile") 2>conftest.er1
36738 ac_status=$?
36739 grep -v '^ *+' conftest.er1 >conftest.err
36740 rm -f conftest.er1
36741 cat conftest.err >&5
36742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36743 (exit $ac_status); } && {
36744 test -z "$ac_c_werror_flag" ||
36745 test ! -s conftest.err
36746 } && test -s conftest.$ac_objext; then
36747 ac_header_compiler=yes
36748 else
36749 echo "$as_me: failed program was:" >&5
36750 sed 's/^/| /' conftest.$ac_ext >&5
36752 ac_header_compiler=no
36755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36757 echo "${ECHO_T}$ac_header_compiler" >&6; }
36759 # Is the header present?
36760 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36761 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36762 cat >conftest.$ac_ext <<_ACEOF
36763 /* confdefs.h. */
36764 _ACEOF
36765 cat confdefs.h >>conftest.$ac_ext
36766 cat >>conftest.$ac_ext <<_ACEOF
36767 /* end confdefs.h. */
36768 #include <execinfo.h>
36769 _ACEOF
36770 if { (ac_try="$ac_cpp conftest.$ac_ext"
36771 case "(($ac_try" in
36772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36773 *) ac_try_echo=$ac_try;;
36774 esac
36775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36777 ac_status=$?
36778 grep -v '^ *+' conftest.er1 >conftest.err
36779 rm -f conftest.er1
36780 cat conftest.err >&5
36781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36782 (exit $ac_status); } >/dev/null && {
36783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36784 test ! -s conftest.err
36785 }; then
36786 ac_header_preproc=yes
36787 else
36788 echo "$as_me: failed program was:" >&5
36789 sed 's/^/| /' conftest.$ac_ext >&5
36791 ac_header_preproc=no
36794 rm -f conftest.err conftest.$ac_ext
36795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36796 echo "${ECHO_T}$ac_header_preproc" >&6; }
36798 # So? What about this header?
36799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36800 yes:no: )
36801 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36802 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36803 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36804 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36805 ac_header_preproc=yes
36807 no:yes:* )
36808 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36809 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36810 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36811 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36812 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36813 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36814 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36815 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36816 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36817 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36818 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36819 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36820 ( cat <<\_ASBOX
36821 ## ------------------------------- ##
36822 ## Report this to www.asterisk.org ##
36823 ## ------------------------------- ##
36824 _ASBOX
36825 ) | sed "s/^/$as_me: WARNING: /" >&2
36827 esac
36828 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36829 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36830 if test "${ac_cv_header_execinfo_h+set}" = set; then
36831 echo $ECHO_N "(cached) $ECHO_C" >&6
36832 else
36833 ac_cv_header_execinfo_h=$ac_header_preproc
36835 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36836 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36839 if test $ac_cv_header_execinfo_h = yes; then
36840 BKTR_HEADER_FOUND=1
36841 else
36842 BKTR_HEADER_FOUND=0
36846 CPPFLAGS="${saved_cppflags}"
36848 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
36849 BKTR_LIB=""
36850 BKTR_INCLUDE=""
36851 else
36852 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36853 BKTR_LIB=""
36855 PBX_BKTR=1
36856 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36858 cat >>confdefs.h <<_ACEOF
36859 #define HAVE_BKTR 1
36860 _ACEOF
36863 cat >>confdefs.h <<_ACEOF
36864 #define HAVE_BKTR_VERSION
36865 _ACEOF
36871 # Linux, however, has backtrace directly in glibc
36873 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36874 pbxlibdir=""
36875 # if --with-BKTR=DIR has been specified, use it.
36876 if test "x${BKTR_DIR}" != "x"; then
36877 if test -d ${BKTR_DIR}/lib; then
36878 pbxlibdir="-L${BKTR_DIR}/lib"
36879 else
36880 pbxlibdir="-L${BKTR_DIR}"
36883 pbxfuncname="backtrace"
36884 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36885 AST_BKTR_FOUND=yes
36886 else
36887 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
36888 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
36889 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
36890 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36891 echo $ECHO_N "(cached) $ECHO_C" >&6
36892 else
36893 ac_check_lib_save_LIBS=$LIBS
36894 LIBS="-lc ${pbxlibdir} $LIBS"
36895 cat >conftest.$ac_ext <<_ACEOF
36896 /* confdefs.h. */
36897 _ACEOF
36898 cat confdefs.h >>conftest.$ac_ext
36899 cat >>conftest.$ac_ext <<_ACEOF
36900 /* end confdefs.h. */
36902 /* Override any GCC internal prototype to avoid an error.
36903 Use char because int might match the return type of a GCC
36904 builtin and then its argument prototype would still apply. */
36905 #ifdef __cplusplus
36906 extern "C"
36907 #endif
36908 char ${pbxfuncname} ();
36910 main ()
36912 return ${pbxfuncname} ();
36914 return 0;
36916 _ACEOF
36917 rm -f conftest.$ac_objext conftest$ac_exeext
36918 if { (ac_try="$ac_link"
36919 case "(($ac_try" in
36920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36921 *) ac_try_echo=$ac_try;;
36922 esac
36923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36924 (eval "$ac_link") 2>conftest.er1
36925 ac_status=$?
36926 grep -v '^ *+' conftest.er1 >conftest.err
36927 rm -f conftest.er1
36928 cat conftest.err >&5
36929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36930 (exit $ac_status); } && {
36931 test -z "$ac_c_werror_flag" ||
36932 test ! -s conftest.err
36933 } && test -s conftest$ac_exeext &&
36934 $as_test_x conftest$ac_exeext; then
36935 eval "$as_ac_Lib=yes"
36936 else
36937 echo "$as_me: failed program was:" >&5
36938 sed 's/^/| /' conftest.$ac_ext >&5
36940 eval "$as_ac_Lib=no"
36943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36944 conftest$ac_exeext conftest.$ac_ext
36945 LIBS=$ac_check_lib_save_LIBS
36947 ac_res=`eval echo '${'$as_ac_Lib'}'`
36948 { echo "$as_me:$LINENO: result: $ac_res" >&5
36949 echo "${ECHO_T}$ac_res" >&6; }
36950 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36951 AST_BKTR_FOUND=yes
36952 else
36953 AST_BKTR_FOUND=no
36958 # now check for the header.
36959 if test "${AST_BKTR_FOUND}" = "yes"; then
36960 BKTR_LIB="${pbxlibdir} -lc "
36961 # if --with-BKTR=DIR has been specified, use it.
36962 if test "x${BKTR_DIR}" != "x"; then
36963 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36965 BKTR_INCLUDE="${BKTR_INCLUDE} "
36966 if test "xexecinfo.h" = "x" ; then # no header, assume found
36967 BKTR_HEADER_FOUND="1"
36968 else # check for the header
36969 saved_cppflags="${CPPFLAGS}"
36970 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
36971 if test "${ac_cv_header_execinfo_h+set}" = set; then
36972 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36973 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36974 if test "${ac_cv_header_execinfo_h+set}" = set; then
36975 echo $ECHO_N "(cached) $ECHO_C" >&6
36977 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36978 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36979 else
36980 # Is the header compilable?
36981 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36982 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36983 cat >conftest.$ac_ext <<_ACEOF
36984 /* confdefs.h. */
36985 _ACEOF
36986 cat confdefs.h >>conftest.$ac_ext
36987 cat >>conftest.$ac_ext <<_ACEOF
36988 /* end confdefs.h. */
36989 $ac_includes_default
36990 #include <execinfo.h>
36991 _ACEOF
36992 rm -f conftest.$ac_objext
36993 if { (ac_try="$ac_compile"
36994 case "(($ac_try" in
36995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36996 *) ac_try_echo=$ac_try;;
36997 esac
36998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36999 (eval "$ac_compile") 2>conftest.er1
37000 ac_status=$?
37001 grep -v '^ *+' conftest.er1 >conftest.err
37002 rm -f conftest.er1
37003 cat conftest.err >&5
37004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005 (exit $ac_status); } && {
37006 test -z "$ac_c_werror_flag" ||
37007 test ! -s conftest.err
37008 } && test -s conftest.$ac_objext; then
37009 ac_header_compiler=yes
37010 else
37011 echo "$as_me: failed program was:" >&5
37012 sed 's/^/| /' conftest.$ac_ext >&5
37014 ac_header_compiler=no
37017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37019 echo "${ECHO_T}$ac_header_compiler" >&6; }
37021 # Is the header present?
37022 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
37023 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
37024 cat >conftest.$ac_ext <<_ACEOF
37025 /* confdefs.h. */
37026 _ACEOF
37027 cat confdefs.h >>conftest.$ac_ext
37028 cat >>conftest.$ac_ext <<_ACEOF
37029 /* end confdefs.h. */
37030 #include <execinfo.h>
37031 _ACEOF
37032 if { (ac_try="$ac_cpp conftest.$ac_ext"
37033 case "(($ac_try" in
37034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37035 *) ac_try_echo=$ac_try;;
37036 esac
37037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37039 ac_status=$?
37040 grep -v '^ *+' conftest.er1 >conftest.err
37041 rm -f conftest.er1
37042 cat conftest.err >&5
37043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044 (exit $ac_status); } >/dev/null && {
37045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37046 test ! -s conftest.err
37047 }; then
37048 ac_header_preproc=yes
37049 else
37050 echo "$as_me: failed program was:" >&5
37051 sed 's/^/| /' conftest.$ac_ext >&5
37053 ac_header_preproc=no
37056 rm -f conftest.err conftest.$ac_ext
37057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37058 echo "${ECHO_T}$ac_header_preproc" >&6; }
37060 # So? What about this header?
37061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37062 yes:no: )
37063 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
37064 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37065 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
37066 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
37067 ac_header_preproc=yes
37069 no:yes:* )
37070 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
37071 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
37072 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
37073 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
37074 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
37075 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
37076 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
37077 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
37078 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
37079 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
37080 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
37081 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
37082 ( cat <<\_ASBOX
37083 ## ------------------------------- ##
37084 ## Report this to www.asterisk.org ##
37085 ## ------------------------------- ##
37086 _ASBOX
37087 ) | sed "s/^/$as_me: WARNING: /" >&2
37089 esac
37090 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
37091 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
37092 if test "${ac_cv_header_execinfo_h+set}" = set; then
37093 echo $ECHO_N "(cached) $ECHO_C" >&6
37094 else
37095 ac_cv_header_execinfo_h=$ac_header_preproc
37097 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
37098 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
37101 if test $ac_cv_header_execinfo_h = yes; then
37102 BKTR_HEADER_FOUND=1
37103 else
37104 BKTR_HEADER_FOUND=0
37108 CPPFLAGS="${saved_cppflags}"
37110 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
37111 BKTR_LIB=""
37112 BKTR_INCLUDE=""
37113 else
37114 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37115 BKTR_LIB=""
37117 PBX_BKTR=1
37118 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37120 cat >>confdefs.h <<_ACEOF
37121 #define HAVE_BKTR 1
37122 _ACEOF
37125 cat >>confdefs.h <<_ACEOF
37126 #define HAVE_BKTR_VERSION
37127 _ACEOF
37134 # possible places for oss definitions
37136 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37137 pbxlibdir=""
37138 # if --with-OSS=DIR has been specified, use it.
37139 if test "x${OSS_DIR}" != "x"; then
37140 if test -d ${OSS_DIR}/lib; then
37141 pbxlibdir="-L${OSS_DIR}/lib"
37142 else
37143 pbxlibdir="-L${OSS_DIR}"
37146 pbxfuncname=""
37147 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37148 AST_OSS_FOUND=yes
37149 else
37150 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37151 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37152 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37153 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37154 echo $ECHO_N "(cached) $ECHO_C" >&6
37155 else
37156 ac_check_lib_save_LIBS=$LIBS
37157 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37158 cat >conftest.$ac_ext <<_ACEOF
37159 /* confdefs.h. */
37160 _ACEOF
37161 cat confdefs.h >>conftest.$ac_ext
37162 cat >>conftest.$ac_ext <<_ACEOF
37163 /* end confdefs.h. */
37165 /* Override any GCC internal prototype to avoid an error.
37166 Use char because int might match the return type of a GCC
37167 builtin and then its argument prototype would still apply. */
37168 #ifdef __cplusplus
37169 extern "C"
37170 #endif
37171 char ${pbxfuncname} ();
37173 main ()
37175 return ${pbxfuncname} ();
37177 return 0;
37179 _ACEOF
37180 rm -f conftest.$ac_objext conftest$ac_exeext
37181 if { (ac_try="$ac_link"
37182 case "(($ac_try" in
37183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37184 *) ac_try_echo=$ac_try;;
37185 esac
37186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37187 (eval "$ac_link") 2>conftest.er1
37188 ac_status=$?
37189 grep -v '^ *+' conftest.er1 >conftest.err
37190 rm -f conftest.er1
37191 cat conftest.err >&5
37192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37193 (exit $ac_status); } && {
37194 test -z "$ac_c_werror_flag" ||
37195 test ! -s conftest.err
37196 } && test -s conftest$ac_exeext &&
37197 $as_test_x conftest$ac_exeext; then
37198 eval "$as_ac_Lib=yes"
37199 else
37200 echo "$as_me: failed program was:" >&5
37201 sed 's/^/| /' conftest.$ac_ext >&5
37203 eval "$as_ac_Lib=no"
37206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37207 conftest$ac_exeext conftest.$ac_ext
37208 LIBS=$ac_check_lib_save_LIBS
37210 ac_res=`eval echo '${'$as_ac_Lib'}'`
37211 { echo "$as_me:$LINENO: result: $ac_res" >&5
37212 echo "${ECHO_T}$ac_res" >&6; }
37213 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37214 AST_OSS_FOUND=yes
37215 else
37216 AST_OSS_FOUND=no
37221 # now check for the header.
37222 if test "${AST_OSS_FOUND}" = "yes"; then
37223 OSS_LIB="${pbxlibdir} -lossaudio "
37224 # if --with-OSS=DIR has been specified, use it.
37225 if test "x${OSS_DIR}" != "x"; then
37226 OSS_INCLUDE="-I${OSS_DIR}/include"
37228 OSS_INCLUDE="${OSS_INCLUDE} "
37229 if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
37230 OSS_HEADER_FOUND="1"
37231 else # check for the header
37232 saved_cppflags="${CPPFLAGS}"
37233 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
37234 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37235 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37236 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37237 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37238 echo $ECHO_N "(cached) $ECHO_C" >&6
37240 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37241 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37242 else
37243 # Is the header compilable?
37244 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
37245 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
37246 cat >conftest.$ac_ext <<_ACEOF
37247 /* confdefs.h. */
37248 _ACEOF
37249 cat confdefs.h >>conftest.$ac_ext
37250 cat >>conftest.$ac_ext <<_ACEOF
37251 /* end confdefs.h. */
37252 $ac_includes_default
37253 #include <linux/soundcard.h>
37254 _ACEOF
37255 rm -f conftest.$ac_objext
37256 if { (ac_try="$ac_compile"
37257 case "(($ac_try" in
37258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37259 *) ac_try_echo=$ac_try;;
37260 esac
37261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37262 (eval "$ac_compile") 2>conftest.er1
37263 ac_status=$?
37264 grep -v '^ *+' conftest.er1 >conftest.err
37265 rm -f conftest.er1
37266 cat conftest.err >&5
37267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268 (exit $ac_status); } && {
37269 test -z "$ac_c_werror_flag" ||
37270 test ! -s conftest.err
37271 } && test -s conftest.$ac_objext; then
37272 ac_header_compiler=yes
37273 else
37274 echo "$as_me: failed program was:" >&5
37275 sed 's/^/| /' conftest.$ac_ext >&5
37277 ac_header_compiler=no
37280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37282 echo "${ECHO_T}$ac_header_compiler" >&6; }
37284 # Is the header present?
37285 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
37286 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
37287 cat >conftest.$ac_ext <<_ACEOF
37288 /* confdefs.h. */
37289 _ACEOF
37290 cat confdefs.h >>conftest.$ac_ext
37291 cat >>conftest.$ac_ext <<_ACEOF
37292 /* end confdefs.h. */
37293 #include <linux/soundcard.h>
37294 _ACEOF
37295 if { (ac_try="$ac_cpp conftest.$ac_ext"
37296 case "(($ac_try" in
37297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37298 *) ac_try_echo=$ac_try;;
37299 esac
37300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37302 ac_status=$?
37303 grep -v '^ *+' conftest.er1 >conftest.err
37304 rm -f conftest.er1
37305 cat conftest.err >&5
37306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37307 (exit $ac_status); } >/dev/null && {
37308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37309 test ! -s conftest.err
37310 }; then
37311 ac_header_preproc=yes
37312 else
37313 echo "$as_me: failed program was:" >&5
37314 sed 's/^/| /' conftest.$ac_ext >&5
37316 ac_header_preproc=no
37319 rm -f conftest.err conftest.$ac_ext
37320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37321 echo "${ECHO_T}$ac_header_preproc" >&6; }
37323 # So? What about this header?
37324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37325 yes:no: )
37326 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37327 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37328 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
37329 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
37330 ac_header_preproc=yes
37332 no:yes:* )
37333 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
37334 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
37335 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
37336 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
37337 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
37338 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
37339 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37340 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37341 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
37342 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
37343 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
37344 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
37345 ( cat <<\_ASBOX
37346 ## ------------------------------- ##
37347 ## Report this to www.asterisk.org ##
37348 ## ------------------------------- ##
37349 _ASBOX
37350 ) | sed "s/^/$as_me: WARNING: /" >&2
37352 esac
37353 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37354 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37355 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37356 echo $ECHO_N "(cached) $ECHO_C" >&6
37357 else
37358 ac_cv_header_linux_soundcard_h=$ac_header_preproc
37360 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37361 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37364 if test $ac_cv_header_linux_soundcard_h = yes; then
37365 OSS_HEADER_FOUND=1
37366 else
37367 OSS_HEADER_FOUND=0
37371 CPPFLAGS="${saved_cppflags}"
37373 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37374 OSS_LIB=""
37375 OSS_INCLUDE=""
37376 else
37377 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37378 OSS_LIB=""
37380 PBX_OSS=1
37381 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37383 cat >>confdefs.h <<_ACEOF
37384 #define HAVE_OSS 1
37385 _ACEOF
37388 cat >>confdefs.h <<_ACEOF
37389 #define HAVE_OSS_VERSION
37390 _ACEOF
37397 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37398 pbxlibdir=""
37399 # if --with-OSS=DIR has been specified, use it.
37400 if test "x${OSS_DIR}" != "x"; then
37401 if test -d ${OSS_DIR}/lib; then
37402 pbxlibdir="-L${OSS_DIR}/lib"
37403 else
37404 pbxlibdir="-L${OSS_DIR}"
37407 pbxfuncname=""
37408 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37409 AST_OSS_FOUND=yes
37410 else
37411 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37412 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37413 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37414 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37415 echo $ECHO_N "(cached) $ECHO_C" >&6
37416 else
37417 ac_check_lib_save_LIBS=$LIBS
37418 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37419 cat >conftest.$ac_ext <<_ACEOF
37420 /* confdefs.h. */
37421 _ACEOF
37422 cat confdefs.h >>conftest.$ac_ext
37423 cat >>conftest.$ac_ext <<_ACEOF
37424 /* end confdefs.h. */
37426 /* Override any GCC internal prototype to avoid an error.
37427 Use char because int might match the return type of a GCC
37428 builtin and then its argument prototype would still apply. */
37429 #ifdef __cplusplus
37430 extern "C"
37431 #endif
37432 char ${pbxfuncname} ();
37434 main ()
37436 return ${pbxfuncname} ();
37438 return 0;
37440 _ACEOF
37441 rm -f conftest.$ac_objext conftest$ac_exeext
37442 if { (ac_try="$ac_link"
37443 case "(($ac_try" in
37444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37445 *) ac_try_echo=$ac_try;;
37446 esac
37447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37448 (eval "$ac_link") 2>conftest.er1
37449 ac_status=$?
37450 grep -v '^ *+' conftest.er1 >conftest.err
37451 rm -f conftest.er1
37452 cat conftest.err >&5
37453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454 (exit $ac_status); } && {
37455 test -z "$ac_c_werror_flag" ||
37456 test ! -s conftest.err
37457 } && test -s conftest$ac_exeext &&
37458 $as_test_x conftest$ac_exeext; then
37459 eval "$as_ac_Lib=yes"
37460 else
37461 echo "$as_me: failed program was:" >&5
37462 sed 's/^/| /' conftest.$ac_ext >&5
37464 eval "$as_ac_Lib=no"
37467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37468 conftest$ac_exeext conftest.$ac_ext
37469 LIBS=$ac_check_lib_save_LIBS
37471 ac_res=`eval echo '${'$as_ac_Lib'}'`
37472 { echo "$as_me:$LINENO: result: $ac_res" >&5
37473 echo "${ECHO_T}$ac_res" >&6; }
37474 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37475 AST_OSS_FOUND=yes
37476 else
37477 AST_OSS_FOUND=no
37482 # now check for the header.
37483 if test "${AST_OSS_FOUND}" = "yes"; then
37484 OSS_LIB="${pbxlibdir} -lossaudio "
37485 # if --with-OSS=DIR has been specified, use it.
37486 if test "x${OSS_DIR}" != "x"; then
37487 OSS_INCLUDE="-I${OSS_DIR}/include"
37489 OSS_INCLUDE="${OSS_INCLUDE} "
37490 if test "xsys/soundcard.h" = "x" ; then # no header, assume found
37491 OSS_HEADER_FOUND="1"
37492 else # check for the header
37493 saved_cppflags="${CPPFLAGS}"
37494 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
37495 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37496 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37497 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37498 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37499 echo $ECHO_N "(cached) $ECHO_C" >&6
37501 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37502 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37503 else
37504 # Is the header compilable?
37505 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
37506 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
37507 cat >conftest.$ac_ext <<_ACEOF
37508 /* confdefs.h. */
37509 _ACEOF
37510 cat confdefs.h >>conftest.$ac_ext
37511 cat >>conftest.$ac_ext <<_ACEOF
37512 /* end confdefs.h. */
37513 $ac_includes_default
37514 #include <sys/soundcard.h>
37515 _ACEOF
37516 rm -f conftest.$ac_objext
37517 if { (ac_try="$ac_compile"
37518 case "(($ac_try" in
37519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37520 *) ac_try_echo=$ac_try;;
37521 esac
37522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37523 (eval "$ac_compile") 2>conftest.er1
37524 ac_status=$?
37525 grep -v '^ *+' conftest.er1 >conftest.err
37526 rm -f conftest.er1
37527 cat conftest.err >&5
37528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37529 (exit $ac_status); } && {
37530 test -z "$ac_c_werror_flag" ||
37531 test ! -s conftest.err
37532 } && test -s conftest.$ac_objext; then
37533 ac_header_compiler=yes
37534 else
37535 echo "$as_me: failed program was:" >&5
37536 sed 's/^/| /' conftest.$ac_ext >&5
37538 ac_header_compiler=no
37541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37543 echo "${ECHO_T}$ac_header_compiler" >&6; }
37545 # Is the header present?
37546 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
37547 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
37548 cat >conftest.$ac_ext <<_ACEOF
37549 /* confdefs.h. */
37550 _ACEOF
37551 cat confdefs.h >>conftest.$ac_ext
37552 cat >>conftest.$ac_ext <<_ACEOF
37553 /* end confdefs.h. */
37554 #include <sys/soundcard.h>
37555 _ACEOF
37556 if { (ac_try="$ac_cpp conftest.$ac_ext"
37557 case "(($ac_try" in
37558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37559 *) ac_try_echo=$ac_try;;
37560 esac
37561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37563 ac_status=$?
37564 grep -v '^ *+' conftest.er1 >conftest.err
37565 rm -f conftest.er1
37566 cat conftest.err >&5
37567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37568 (exit $ac_status); } >/dev/null && {
37569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37570 test ! -s conftest.err
37571 }; then
37572 ac_header_preproc=yes
37573 else
37574 echo "$as_me: failed program was:" >&5
37575 sed 's/^/| /' conftest.$ac_ext >&5
37577 ac_header_preproc=no
37580 rm -f conftest.err conftest.$ac_ext
37581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37582 echo "${ECHO_T}$ac_header_preproc" >&6; }
37584 # So? What about this header?
37585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37586 yes:no: )
37587 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37588 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37589 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
37590 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
37591 ac_header_preproc=yes
37593 no:yes:* )
37594 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
37595 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
37596 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
37597 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
37598 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
37599 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
37600 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37601 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37602 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
37603 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
37604 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
37605 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
37606 ( cat <<\_ASBOX
37607 ## ------------------------------- ##
37608 ## Report this to www.asterisk.org ##
37609 ## ------------------------------- ##
37610 _ASBOX
37611 ) | sed "s/^/$as_me: WARNING: /" >&2
37613 esac
37614 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37615 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37616 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37617 echo $ECHO_N "(cached) $ECHO_C" >&6
37618 else
37619 ac_cv_header_sys_soundcard_h=$ac_header_preproc
37621 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37622 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37625 if test $ac_cv_header_sys_soundcard_h = yes; then
37626 OSS_HEADER_FOUND=1
37627 else
37628 OSS_HEADER_FOUND=0
37632 CPPFLAGS="${saved_cppflags}"
37634 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37635 OSS_LIB=""
37636 OSS_INCLUDE=""
37637 else
37638 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37639 OSS_LIB=""
37641 PBX_OSS=1
37642 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37644 cat >>confdefs.h <<_ACEOF
37645 #define HAVE_OSS 1
37646 _ACEOF
37649 cat >>confdefs.h <<_ACEOF
37650 #define HAVE_OSS_VERSION
37651 _ACEOF
37658 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37659 pbxlibdir=""
37660 # if --with-OSS=DIR has been specified, use it.
37661 if test "x${OSS_DIR}" != "x"; then
37662 if test -d ${OSS_DIR}/lib; then
37663 pbxlibdir="-L${OSS_DIR}/lib"
37664 else
37665 pbxlibdir="-L${OSS_DIR}"
37668 pbxfuncname="oss_ioctl_mixer"
37669 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37670 AST_OSS_FOUND=yes
37671 else
37672 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37673 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37674 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37675 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37676 echo $ECHO_N "(cached) $ECHO_C" >&6
37677 else
37678 ac_check_lib_save_LIBS=$LIBS
37679 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37680 cat >conftest.$ac_ext <<_ACEOF
37681 /* confdefs.h. */
37682 _ACEOF
37683 cat confdefs.h >>conftest.$ac_ext
37684 cat >>conftest.$ac_ext <<_ACEOF
37685 /* end confdefs.h. */
37687 /* Override any GCC internal prototype to avoid an error.
37688 Use char because int might match the return type of a GCC
37689 builtin and then its argument prototype would still apply. */
37690 #ifdef __cplusplus
37691 extern "C"
37692 #endif
37693 char ${pbxfuncname} ();
37695 main ()
37697 return ${pbxfuncname} ();
37699 return 0;
37701 _ACEOF
37702 rm -f conftest.$ac_objext conftest$ac_exeext
37703 if { (ac_try="$ac_link"
37704 case "(($ac_try" in
37705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37706 *) ac_try_echo=$ac_try;;
37707 esac
37708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37709 (eval "$ac_link") 2>conftest.er1
37710 ac_status=$?
37711 grep -v '^ *+' conftest.er1 >conftest.err
37712 rm -f conftest.er1
37713 cat conftest.err >&5
37714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37715 (exit $ac_status); } && {
37716 test -z "$ac_c_werror_flag" ||
37717 test ! -s conftest.err
37718 } && test -s conftest$ac_exeext &&
37719 $as_test_x conftest$ac_exeext; then
37720 eval "$as_ac_Lib=yes"
37721 else
37722 echo "$as_me: failed program was:" >&5
37723 sed 's/^/| /' conftest.$ac_ext >&5
37725 eval "$as_ac_Lib=no"
37728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37729 conftest$ac_exeext conftest.$ac_ext
37730 LIBS=$ac_check_lib_save_LIBS
37732 ac_res=`eval echo '${'$as_ac_Lib'}'`
37733 { echo "$as_me:$LINENO: result: $ac_res" >&5
37734 echo "${ECHO_T}$ac_res" >&6; }
37735 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37736 AST_OSS_FOUND=yes
37737 else
37738 AST_OSS_FOUND=no
37743 # now check for the header.
37744 if test "${AST_OSS_FOUND}" = "yes"; then
37745 OSS_LIB="${pbxlibdir} -lossaudio "
37746 # if --with-OSS=DIR has been specified, use it.
37747 if test "x${OSS_DIR}" != "x"; then
37748 OSS_INCLUDE="-I${OSS_DIR}/include"
37750 OSS_INCLUDE="${OSS_INCLUDE} "
37751 if test "xsoundcard.h" = "x" ; then # no header, assume found
37752 OSS_HEADER_FOUND="1"
37753 else # check for the header
37754 saved_cppflags="${CPPFLAGS}"
37755 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
37756 if test "${ac_cv_header_soundcard_h+set}" = set; then
37757 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37758 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37759 if test "${ac_cv_header_soundcard_h+set}" = set; then
37760 echo $ECHO_N "(cached) $ECHO_C" >&6
37762 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37763 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37764 else
37765 # Is the header compilable?
37766 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
37767 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
37768 cat >conftest.$ac_ext <<_ACEOF
37769 /* confdefs.h. */
37770 _ACEOF
37771 cat confdefs.h >>conftest.$ac_ext
37772 cat >>conftest.$ac_ext <<_ACEOF
37773 /* end confdefs.h. */
37774 $ac_includes_default
37775 #include <soundcard.h>
37776 _ACEOF
37777 rm -f conftest.$ac_objext
37778 if { (ac_try="$ac_compile"
37779 case "(($ac_try" in
37780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37781 *) ac_try_echo=$ac_try;;
37782 esac
37783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37784 (eval "$ac_compile") 2>conftest.er1
37785 ac_status=$?
37786 grep -v '^ *+' conftest.er1 >conftest.err
37787 rm -f conftest.er1
37788 cat conftest.err >&5
37789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37790 (exit $ac_status); } && {
37791 test -z "$ac_c_werror_flag" ||
37792 test ! -s conftest.err
37793 } && test -s conftest.$ac_objext; then
37794 ac_header_compiler=yes
37795 else
37796 echo "$as_me: failed program was:" >&5
37797 sed 's/^/| /' conftest.$ac_ext >&5
37799 ac_header_compiler=no
37802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37804 echo "${ECHO_T}$ac_header_compiler" >&6; }
37806 # Is the header present?
37807 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
37808 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
37809 cat >conftest.$ac_ext <<_ACEOF
37810 /* confdefs.h. */
37811 _ACEOF
37812 cat confdefs.h >>conftest.$ac_ext
37813 cat >>conftest.$ac_ext <<_ACEOF
37814 /* end confdefs.h. */
37815 #include <soundcard.h>
37816 _ACEOF
37817 if { (ac_try="$ac_cpp conftest.$ac_ext"
37818 case "(($ac_try" in
37819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37820 *) ac_try_echo=$ac_try;;
37821 esac
37822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37824 ac_status=$?
37825 grep -v '^ *+' conftest.er1 >conftest.err
37826 rm -f conftest.er1
37827 cat conftest.err >&5
37828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); } >/dev/null && {
37830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37831 test ! -s conftest.err
37832 }; then
37833 ac_header_preproc=yes
37834 else
37835 echo "$as_me: failed program was:" >&5
37836 sed 's/^/| /' conftest.$ac_ext >&5
37838 ac_header_preproc=no
37841 rm -f conftest.err conftest.$ac_ext
37842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37843 echo "${ECHO_T}$ac_header_preproc" >&6; }
37845 # So? What about this header?
37846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37847 yes:no: )
37848 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37849 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37850 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
37851 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
37852 ac_header_preproc=yes
37854 no:yes:* )
37855 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
37856 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
37857 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
37858 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
37859 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
37860 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
37861 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37862 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37863 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
37864 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
37865 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
37866 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
37867 ( cat <<\_ASBOX
37868 ## ------------------------------- ##
37869 ## Report this to www.asterisk.org ##
37870 ## ------------------------------- ##
37871 _ASBOX
37872 ) | sed "s/^/$as_me: WARNING: /" >&2
37874 esac
37875 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37876 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37877 if test "${ac_cv_header_soundcard_h+set}" = set; then
37878 echo $ECHO_N "(cached) $ECHO_C" >&6
37879 else
37880 ac_cv_header_soundcard_h=$ac_header_preproc
37882 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37883 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37886 if test $ac_cv_header_soundcard_h = yes; then
37887 OSS_HEADER_FOUND=1
37888 else
37889 OSS_HEADER_FOUND=0
37893 CPPFLAGS="${saved_cppflags}"
37895 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37896 OSS_LIB=""
37897 OSS_INCLUDE=""
37898 else
37899 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37900 OSS_LIB=""
37902 PBX_OSS=1
37903 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37905 cat >>confdefs.h <<_ACEOF
37906 #define HAVE_OSS 1
37907 _ACEOF
37910 cat >>confdefs.h <<_ACEOF
37911 #define HAVE_OSS_VERSION
37912 _ACEOF
37919 PG_CONFIG=No
37920 if test "${USE_PGSQL}" != "no"; then
37921 if test "x${PGSQL_DIR}" != "x"; then
37922 if test -n "$ac_tool_prefix"; then
37923 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
37924 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
37925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37927 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
37928 echo $ECHO_N "(cached) $ECHO_C" >&6
37929 else
37930 case $PG_CONFIG in
37931 [\\/]* | ?:[\\/]*)
37932 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
37935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37936 for as_dir in ${PGSQL_DIR}/bin
37938 IFS=$as_save_IFS
37939 test -z "$as_dir" && as_dir=.
37940 for ac_exec_ext in '' $ac_executable_extensions; do
37941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37942 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37944 break 2
37946 done
37947 done
37948 IFS=$as_save_IFS
37951 esac
37953 PG_CONFIG=$ac_cv_path_PG_CONFIG
37954 if test -n "$PG_CONFIG"; then
37955 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
37956 echo "${ECHO_T}$PG_CONFIG" >&6; }
37957 else
37958 { echo "$as_me:$LINENO: result: no" >&5
37959 echo "${ECHO_T}no" >&6; }
37964 if test -z "$ac_cv_path_PG_CONFIG"; then
37965 ac_pt_PG_CONFIG=$PG_CONFIG
37966 # Extract the first word of "pg_config", so it can be a program name with args.
37967 set dummy pg_config; ac_word=$2
37968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37970 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
37971 echo $ECHO_N "(cached) $ECHO_C" >&6
37972 else
37973 case $ac_pt_PG_CONFIG in
37974 [\\/]* | ?:[\\/]*)
37975 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
37978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37979 for as_dir in ${PGSQL_DIR}/bin
37981 IFS=$as_save_IFS
37982 test -z "$as_dir" && as_dir=.
37983 for ac_exec_ext in '' $ac_executable_extensions; do
37984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37985 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37987 break 2
37989 done
37990 done
37991 IFS=$as_save_IFS
37994 esac
37996 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
37997 if test -n "$ac_pt_PG_CONFIG"; then
37998 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
37999 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
38000 else
38001 { echo "$as_me:$LINENO: result: no" >&5
38002 echo "${ECHO_T}no" >&6; }
38005 if test "x$ac_pt_PG_CONFIG" = x; then
38006 PG_CONFIG="No"
38007 else
38008 case $cross_compiling:$ac_tool_warned in
38009 yes:)
38010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38011 whose name does not start with the host triplet. If you think this
38012 configuration is useful to you, please write to autoconf@gnu.org." >&5
38013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38014 whose name does not start with the host triplet. If you think this
38015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38016 ac_tool_warned=yes ;;
38017 esac
38018 PG_CONFIG=$ac_pt_PG_CONFIG
38020 else
38021 PG_CONFIG="$ac_cv_path_PG_CONFIG"
38024 if test x"${PG_CONFIG}" = xNo; then
38025 { echo "$as_me:$LINENO: ***" >&5
38026 echo "$as_me: ***" >&6;}
38027 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
38028 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
38029 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
38030 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
38031 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38032 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38033 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38034 echo "$as_me: *** including --without-postgres" >&6;}
38035 exit 1
38037 else
38038 if test -n "$ac_tool_prefix"; then
38039 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
38040 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
38041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38043 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
38044 echo $ECHO_N "(cached) $ECHO_C" >&6
38045 else
38046 case $PG_CONFIG in
38047 [\\/]* | ?:[\\/]*)
38048 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
38051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38052 for as_dir in $PATH
38054 IFS=$as_save_IFS
38055 test -z "$as_dir" && as_dir=.
38056 for ac_exec_ext in '' $ac_executable_extensions; do
38057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38058 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38060 break 2
38062 done
38063 done
38064 IFS=$as_save_IFS
38067 esac
38069 PG_CONFIG=$ac_cv_path_PG_CONFIG
38070 if test -n "$PG_CONFIG"; then
38071 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
38072 echo "${ECHO_T}$PG_CONFIG" >&6; }
38073 else
38074 { echo "$as_me:$LINENO: result: no" >&5
38075 echo "${ECHO_T}no" >&6; }
38080 if test -z "$ac_cv_path_PG_CONFIG"; then
38081 ac_pt_PG_CONFIG=$PG_CONFIG
38082 # Extract the first word of "pg_config", so it can be a program name with args.
38083 set dummy pg_config; ac_word=$2
38084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38086 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
38087 echo $ECHO_N "(cached) $ECHO_C" >&6
38088 else
38089 case $ac_pt_PG_CONFIG in
38090 [\\/]* | ?:[\\/]*)
38091 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
38094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38095 for as_dir in $PATH
38097 IFS=$as_save_IFS
38098 test -z "$as_dir" && as_dir=.
38099 for ac_exec_ext in '' $ac_executable_extensions; do
38100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38101 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38103 break 2
38105 done
38106 done
38107 IFS=$as_save_IFS
38110 esac
38112 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
38113 if test -n "$ac_pt_PG_CONFIG"; then
38114 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
38115 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
38116 else
38117 { echo "$as_me:$LINENO: result: no" >&5
38118 echo "${ECHO_T}no" >&6; }
38121 if test "x$ac_pt_PG_CONFIG" = x; then
38122 PG_CONFIG="No"
38123 else
38124 case $cross_compiling:$ac_tool_warned in
38125 yes:)
38126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38127 whose name does not start with the host triplet. If you think this
38128 configuration is useful to you, please write to autoconf@gnu.org." >&5
38129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38130 whose name does not start with the host triplet. If you think this
38131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38132 ac_tool_warned=yes ;;
38133 esac
38134 PG_CONFIG=$ac_pt_PG_CONFIG
38136 else
38137 PG_CONFIG="$ac_cv_path_PG_CONFIG"
38142 if test "${PG_CONFIG}" != No; then
38143 PGSQL_libdir=`${PG_CONFIG} --libdir`
38144 PGSQL_includedir=`${PG_CONFIG} --includedir`
38145 if test "x$?" != "x0" ; then
38146 if test -n "${PGSQL_MANDATORY}" ; then
38147 { echo "$as_me:$LINENO: ***" >&5
38148 echo "$as_me: ***" >&6;}
38149 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
38150 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
38151 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38152 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38153 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38154 echo "$as_me: *** including --without-postgres" >&6;}
38155 exit 1
38157 else
38158 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
38159 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
38160 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
38161 echo $ECHO_N "(cached) $ECHO_C" >&6
38162 else
38163 ac_check_lib_save_LIBS=$LIBS
38164 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
38165 cat >conftest.$ac_ext <<_ACEOF
38166 /* confdefs.h. */
38167 _ACEOF
38168 cat confdefs.h >>conftest.$ac_ext
38169 cat >>conftest.$ac_ext <<_ACEOF
38170 /* end confdefs.h. */
38172 /* Override any GCC internal prototype to avoid an error.
38173 Use char because int might match the return type of a GCC
38174 builtin and then its argument prototype would still apply. */
38175 #ifdef __cplusplus
38176 extern "C"
38177 #endif
38178 char PQescapeStringConn ();
38180 main ()
38182 return PQescapeStringConn ();
38184 return 0;
38186 _ACEOF
38187 rm -f conftest.$ac_objext conftest$ac_exeext
38188 if { (ac_try="$ac_link"
38189 case "(($ac_try" in
38190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38191 *) ac_try_echo=$ac_try;;
38192 esac
38193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38194 (eval "$ac_link") 2>conftest.er1
38195 ac_status=$?
38196 grep -v '^ *+' conftest.er1 >conftest.err
38197 rm -f conftest.er1
38198 cat conftest.err >&5
38199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200 (exit $ac_status); } && {
38201 test -z "$ac_c_werror_flag" ||
38202 test ! -s conftest.err
38203 } && test -s conftest$ac_exeext &&
38204 $as_test_x conftest$ac_exeext; then
38205 ac_cv_lib_pq_PQescapeStringConn=yes
38206 else
38207 echo "$as_me: failed program was:" >&5
38208 sed 's/^/| /' conftest.$ac_ext >&5
38210 ac_cv_lib_pq_PQescapeStringConn=no
38213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38214 conftest$ac_exeext conftest.$ac_ext
38215 LIBS=$ac_check_lib_save_LIBS
38217 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
38218 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
38219 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
38221 cat >>confdefs.h <<_ACEOF
38222 #define HAVE_PGSQL 1
38223 _ACEOF
38228 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
38229 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
38230 PGSQL_INCLUDE="-I${PGSQL_includedir}"
38231 PBX_PGSQL=1
38232 elif test -n "${PGSQL_MANDATORY}";
38233 then
38234 { echo "$as_me:$LINENO: ***" >&5
38235 echo "$as_me: ***" >&6;}
38236 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
38237 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
38238 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38239 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38240 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38241 echo "$as_me: *** including --without-postgres" >&6;}
38242 exit 1
38248 if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
38249 pbxlibdir=""
38250 # if --with-POPT=DIR has been specified, use it.
38251 if test "x${POPT_DIR}" != "x"; then
38252 if test -d ${POPT_DIR}/lib; then
38253 pbxlibdir="-L${POPT_DIR}/lib"
38254 else
38255 pbxlibdir="-L${POPT_DIR}"
38258 pbxfuncname="poptStrerror"
38259 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38260 AST_POPT_FOUND=yes
38261 else
38262 as_ac_Lib=`echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
38263 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpopt" >&5
38264 echo $ECHO_N "checking for ${pbxfuncname} in -lpopt... $ECHO_C" >&6; }
38265 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38266 echo $ECHO_N "(cached) $ECHO_C" >&6
38267 else
38268 ac_check_lib_save_LIBS=$LIBS
38269 LIBS="-lpopt ${pbxlibdir} $LIBS"
38270 cat >conftest.$ac_ext <<_ACEOF
38271 /* confdefs.h. */
38272 _ACEOF
38273 cat confdefs.h >>conftest.$ac_ext
38274 cat >>conftest.$ac_ext <<_ACEOF
38275 /* end confdefs.h. */
38277 /* Override any GCC internal prototype to avoid an error.
38278 Use char because int might match the return type of a GCC
38279 builtin and then its argument prototype would still apply. */
38280 #ifdef __cplusplus
38281 extern "C"
38282 #endif
38283 char ${pbxfuncname} ();
38285 main ()
38287 return ${pbxfuncname} ();
38289 return 0;
38291 _ACEOF
38292 rm -f conftest.$ac_objext conftest$ac_exeext
38293 if { (ac_try="$ac_link"
38294 case "(($ac_try" in
38295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38296 *) ac_try_echo=$ac_try;;
38297 esac
38298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38299 (eval "$ac_link") 2>conftest.er1
38300 ac_status=$?
38301 grep -v '^ *+' conftest.er1 >conftest.err
38302 rm -f conftest.er1
38303 cat conftest.err >&5
38304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305 (exit $ac_status); } && {
38306 test -z "$ac_c_werror_flag" ||
38307 test ! -s conftest.err
38308 } && test -s conftest$ac_exeext &&
38309 $as_test_x conftest$ac_exeext; then
38310 eval "$as_ac_Lib=yes"
38311 else
38312 echo "$as_me: failed program was:" >&5
38313 sed 's/^/| /' conftest.$ac_ext >&5
38315 eval "$as_ac_Lib=no"
38318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38319 conftest$ac_exeext conftest.$ac_ext
38320 LIBS=$ac_check_lib_save_LIBS
38322 ac_res=`eval echo '${'$as_ac_Lib'}'`
38323 { echo "$as_me:$LINENO: result: $ac_res" >&5
38324 echo "${ECHO_T}$ac_res" >&6; }
38325 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38326 AST_POPT_FOUND=yes
38327 else
38328 AST_POPT_FOUND=no
38333 # now check for the header.
38334 if test "${AST_POPT_FOUND}" = "yes"; then
38335 POPT_LIB="${pbxlibdir} -lpopt "
38336 # if --with-POPT=DIR has been specified, use it.
38337 if test "x${POPT_DIR}" != "x"; then
38338 POPT_INCLUDE="-I${POPT_DIR}/include"
38340 POPT_INCLUDE="${POPT_INCLUDE} "
38341 if test "xpopt.h" = "x" ; then # no header, assume found
38342 POPT_HEADER_FOUND="1"
38343 else # check for the header
38344 saved_cppflags="${CPPFLAGS}"
38345 CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
38346 if test "${ac_cv_header_popt_h+set}" = set; then
38347 { echo "$as_me:$LINENO: checking for popt.h" >&5
38348 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38349 if test "${ac_cv_header_popt_h+set}" = set; then
38350 echo $ECHO_N "(cached) $ECHO_C" >&6
38352 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38353 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38354 else
38355 # Is the header compilable?
38356 { echo "$as_me:$LINENO: checking popt.h usability" >&5
38357 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
38358 cat >conftest.$ac_ext <<_ACEOF
38359 /* confdefs.h. */
38360 _ACEOF
38361 cat confdefs.h >>conftest.$ac_ext
38362 cat >>conftest.$ac_ext <<_ACEOF
38363 /* end confdefs.h. */
38364 $ac_includes_default
38365 #include <popt.h>
38366 _ACEOF
38367 rm -f conftest.$ac_objext
38368 if { (ac_try="$ac_compile"
38369 case "(($ac_try" in
38370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38371 *) ac_try_echo=$ac_try;;
38372 esac
38373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38374 (eval "$ac_compile") 2>conftest.er1
38375 ac_status=$?
38376 grep -v '^ *+' conftest.er1 >conftest.err
38377 rm -f conftest.er1
38378 cat conftest.err >&5
38379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); } && {
38381 test -z "$ac_c_werror_flag" ||
38382 test ! -s conftest.err
38383 } && test -s conftest.$ac_objext; then
38384 ac_header_compiler=yes
38385 else
38386 echo "$as_me: failed program was:" >&5
38387 sed 's/^/| /' conftest.$ac_ext >&5
38389 ac_header_compiler=no
38392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38394 echo "${ECHO_T}$ac_header_compiler" >&6; }
38396 # Is the header present?
38397 { echo "$as_me:$LINENO: checking popt.h presence" >&5
38398 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
38399 cat >conftest.$ac_ext <<_ACEOF
38400 /* confdefs.h. */
38401 _ACEOF
38402 cat confdefs.h >>conftest.$ac_ext
38403 cat >>conftest.$ac_ext <<_ACEOF
38404 /* end confdefs.h. */
38405 #include <popt.h>
38406 _ACEOF
38407 if { (ac_try="$ac_cpp conftest.$ac_ext"
38408 case "(($ac_try" in
38409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38410 *) ac_try_echo=$ac_try;;
38411 esac
38412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38414 ac_status=$?
38415 grep -v '^ *+' conftest.er1 >conftest.err
38416 rm -f conftest.er1
38417 cat conftest.err >&5
38418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419 (exit $ac_status); } >/dev/null && {
38420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38421 test ! -s conftest.err
38422 }; then
38423 ac_header_preproc=yes
38424 else
38425 echo "$as_me: failed program was:" >&5
38426 sed 's/^/| /' conftest.$ac_ext >&5
38428 ac_header_preproc=no
38431 rm -f conftest.err conftest.$ac_ext
38432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38433 echo "${ECHO_T}$ac_header_preproc" >&6; }
38435 # So? What about this header?
38436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38437 yes:no: )
38438 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
38439 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38440 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
38441 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
38442 ac_header_preproc=yes
38444 no:yes:* )
38445 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
38446 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
38447 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
38448 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
38449 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
38450 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
38451 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
38452 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
38453 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
38454 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
38455 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
38456 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
38457 ( cat <<\_ASBOX
38458 ## ------------------------------- ##
38459 ## Report this to www.asterisk.org ##
38460 ## ------------------------------- ##
38461 _ASBOX
38462 ) | sed "s/^/$as_me: WARNING: /" >&2
38464 esac
38465 { echo "$as_me:$LINENO: checking for popt.h" >&5
38466 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38467 if test "${ac_cv_header_popt_h+set}" = set; then
38468 echo $ECHO_N "(cached) $ECHO_C" >&6
38469 else
38470 ac_cv_header_popt_h=$ac_header_preproc
38472 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38473 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38476 if test $ac_cv_header_popt_h = yes; then
38477 POPT_HEADER_FOUND=1
38478 else
38479 POPT_HEADER_FOUND=0
38483 CPPFLAGS="${saved_cppflags}"
38485 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
38486 POPT_LIB=""
38487 POPT_INCLUDE=""
38488 else
38489 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38490 POPT_LIB=""
38492 PBX_POPT=1
38493 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38495 cat >>confdefs.h <<_ACEOF
38496 #define HAVE_POPT 1
38497 _ACEOF
38500 cat >>confdefs.h <<_ACEOF
38501 #define HAVE_POPT_VERSION
38502 _ACEOF
38510 if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
38511 pbxlibdir=""
38512 # if --with-PORTAUDIO=DIR has been specified, use it.
38513 if test "x${PORTAUDIO_DIR}" != "x"; then
38514 if test -d ${PORTAUDIO_DIR}/lib; then
38515 pbxlibdir="-L${PORTAUDIO_DIR}/lib"
38516 else
38517 pbxlibdir="-L${PORTAUDIO_DIR}"
38520 pbxfuncname="Pa_GetDeviceCount"
38521 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38522 AST_PORTAUDIO_FOUND=yes
38523 else
38524 as_ac_Lib=`echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
38525 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lportaudio" >&5
38526 echo $ECHO_N "checking for ${pbxfuncname} in -lportaudio... $ECHO_C" >&6; }
38527 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38528 echo $ECHO_N "(cached) $ECHO_C" >&6
38529 else
38530 ac_check_lib_save_LIBS=$LIBS
38531 LIBS="-lportaudio ${pbxlibdir} $LIBS"
38532 cat >conftest.$ac_ext <<_ACEOF
38533 /* confdefs.h. */
38534 _ACEOF
38535 cat confdefs.h >>conftest.$ac_ext
38536 cat >>conftest.$ac_ext <<_ACEOF
38537 /* end confdefs.h. */
38539 /* Override any GCC internal prototype to avoid an error.
38540 Use char because int might match the return type of a GCC
38541 builtin and then its argument prototype would still apply. */
38542 #ifdef __cplusplus
38543 extern "C"
38544 #endif
38545 char ${pbxfuncname} ();
38547 main ()
38549 return ${pbxfuncname} ();
38551 return 0;
38553 _ACEOF
38554 rm -f conftest.$ac_objext conftest$ac_exeext
38555 if { (ac_try="$ac_link"
38556 case "(($ac_try" in
38557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38558 *) ac_try_echo=$ac_try;;
38559 esac
38560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38561 (eval "$ac_link") 2>conftest.er1
38562 ac_status=$?
38563 grep -v '^ *+' conftest.er1 >conftest.err
38564 rm -f conftest.er1
38565 cat conftest.err >&5
38566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38567 (exit $ac_status); } && {
38568 test -z "$ac_c_werror_flag" ||
38569 test ! -s conftest.err
38570 } && test -s conftest$ac_exeext &&
38571 $as_test_x conftest$ac_exeext; then
38572 eval "$as_ac_Lib=yes"
38573 else
38574 echo "$as_me: failed program was:" >&5
38575 sed 's/^/| /' conftest.$ac_ext >&5
38577 eval "$as_ac_Lib=no"
38580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38581 conftest$ac_exeext conftest.$ac_ext
38582 LIBS=$ac_check_lib_save_LIBS
38584 ac_res=`eval echo '${'$as_ac_Lib'}'`
38585 { echo "$as_me:$LINENO: result: $ac_res" >&5
38586 echo "${ECHO_T}$ac_res" >&6; }
38587 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38588 AST_PORTAUDIO_FOUND=yes
38589 else
38590 AST_PORTAUDIO_FOUND=no
38595 # now check for the header.
38596 if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
38597 PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
38598 # if --with-PORTAUDIO=DIR has been specified, use it.
38599 if test "x${PORTAUDIO_DIR}" != "x"; then
38600 PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
38602 PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
38603 if test "xportaudio.h" = "x" ; then # no header, assume found
38604 PORTAUDIO_HEADER_FOUND="1"
38605 else # check for the header
38606 saved_cppflags="${CPPFLAGS}"
38607 CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE}"
38608 if test "${ac_cv_header_portaudio_h+set}" = set; then
38609 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38610 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38611 if test "${ac_cv_header_portaudio_h+set}" = set; then
38612 echo $ECHO_N "(cached) $ECHO_C" >&6
38614 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38615 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38616 else
38617 # Is the header compilable?
38618 { echo "$as_me:$LINENO: checking portaudio.h usability" >&5
38619 echo $ECHO_N "checking portaudio.h usability... $ECHO_C" >&6; }
38620 cat >conftest.$ac_ext <<_ACEOF
38621 /* confdefs.h. */
38622 _ACEOF
38623 cat confdefs.h >>conftest.$ac_ext
38624 cat >>conftest.$ac_ext <<_ACEOF
38625 /* end confdefs.h. */
38626 $ac_includes_default
38627 #include <portaudio.h>
38628 _ACEOF
38629 rm -f conftest.$ac_objext
38630 if { (ac_try="$ac_compile"
38631 case "(($ac_try" in
38632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38633 *) ac_try_echo=$ac_try;;
38634 esac
38635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38636 (eval "$ac_compile") 2>conftest.er1
38637 ac_status=$?
38638 grep -v '^ *+' conftest.er1 >conftest.err
38639 rm -f conftest.er1
38640 cat conftest.err >&5
38641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38642 (exit $ac_status); } && {
38643 test -z "$ac_c_werror_flag" ||
38644 test ! -s conftest.err
38645 } && test -s conftest.$ac_objext; then
38646 ac_header_compiler=yes
38647 else
38648 echo "$as_me: failed program was:" >&5
38649 sed 's/^/| /' conftest.$ac_ext >&5
38651 ac_header_compiler=no
38654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38656 echo "${ECHO_T}$ac_header_compiler" >&6; }
38658 # Is the header present?
38659 { echo "$as_me:$LINENO: checking portaudio.h presence" >&5
38660 echo $ECHO_N "checking portaudio.h presence... $ECHO_C" >&6; }
38661 cat >conftest.$ac_ext <<_ACEOF
38662 /* confdefs.h. */
38663 _ACEOF
38664 cat confdefs.h >>conftest.$ac_ext
38665 cat >>conftest.$ac_ext <<_ACEOF
38666 /* end confdefs.h. */
38667 #include <portaudio.h>
38668 _ACEOF
38669 if { (ac_try="$ac_cpp conftest.$ac_ext"
38670 case "(($ac_try" in
38671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38672 *) ac_try_echo=$ac_try;;
38673 esac
38674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38676 ac_status=$?
38677 grep -v '^ *+' conftest.er1 >conftest.err
38678 rm -f conftest.er1
38679 cat conftest.err >&5
38680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38681 (exit $ac_status); } >/dev/null && {
38682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38683 test ! -s conftest.err
38684 }; then
38685 ac_header_preproc=yes
38686 else
38687 echo "$as_me: failed program was:" >&5
38688 sed 's/^/| /' conftest.$ac_ext >&5
38690 ac_header_preproc=no
38693 rm -f conftest.err conftest.$ac_ext
38694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38695 echo "${ECHO_T}$ac_header_preproc" >&6; }
38697 # So? What about this header?
38698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38699 yes:no: )
38700 { echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
38701 echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38702 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
38703 echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
38704 ac_header_preproc=yes
38706 no:yes:* )
38707 { echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
38708 echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
38709 { echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
38710 echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
38711 { echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
38712 echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
38713 { echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
38714 echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
38715 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
38716 echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
38717 { echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
38718 echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
38719 ( cat <<\_ASBOX
38720 ## ------------------------------- ##
38721 ## Report this to www.asterisk.org ##
38722 ## ------------------------------- ##
38723 _ASBOX
38724 ) | sed "s/^/$as_me: WARNING: /" >&2
38726 esac
38727 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38728 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38729 if test "${ac_cv_header_portaudio_h+set}" = set; then
38730 echo $ECHO_N "(cached) $ECHO_C" >&6
38731 else
38732 ac_cv_header_portaudio_h=$ac_header_preproc
38734 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38735 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38738 if test $ac_cv_header_portaudio_h = yes; then
38739 PORTAUDIO_HEADER_FOUND=1
38740 else
38741 PORTAUDIO_HEADER_FOUND=0
38745 CPPFLAGS="${saved_cppflags}"
38747 if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
38748 PORTAUDIO_LIB=""
38749 PORTAUDIO_INCLUDE=""
38750 else
38751 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38752 PORTAUDIO_LIB=""
38754 PBX_PORTAUDIO=1
38755 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38757 cat >>confdefs.h <<_ACEOF
38758 #define HAVE_PORTAUDIO 1
38759 _ACEOF
38762 cat >>confdefs.h <<_ACEOF
38763 #define HAVE_PORTAUDIO_VERSION
38764 _ACEOF
38772 if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
38773 pbxlibdir=""
38774 # if --with-PRI=DIR has been specified, use it.
38775 if test "x${PRI_DIR}" != "x"; then
38776 if test -d ${PRI_DIR}/lib; then
38777 pbxlibdir="-L${PRI_DIR}/lib"
38778 else
38779 pbxlibdir="-L${PRI_DIR}"
38782 pbxfuncname="pri_get_version"
38783 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38784 AST_PRI_FOUND=yes
38785 else
38786 as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
38787 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
38788 echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
38789 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38790 echo $ECHO_N "(cached) $ECHO_C" >&6
38791 else
38792 ac_check_lib_save_LIBS=$LIBS
38793 LIBS="-lpri ${pbxlibdir} $LIBS"
38794 cat >conftest.$ac_ext <<_ACEOF
38795 /* confdefs.h. */
38796 _ACEOF
38797 cat confdefs.h >>conftest.$ac_ext
38798 cat >>conftest.$ac_ext <<_ACEOF
38799 /* end confdefs.h. */
38801 /* Override any GCC internal prototype to avoid an error.
38802 Use char because int might match the return type of a GCC
38803 builtin and then its argument prototype would still apply. */
38804 #ifdef __cplusplus
38805 extern "C"
38806 #endif
38807 char ${pbxfuncname} ();
38809 main ()
38811 return ${pbxfuncname} ();
38813 return 0;
38815 _ACEOF
38816 rm -f conftest.$ac_objext conftest$ac_exeext
38817 if { (ac_try="$ac_link"
38818 case "(($ac_try" in
38819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38820 *) ac_try_echo=$ac_try;;
38821 esac
38822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38823 (eval "$ac_link") 2>conftest.er1
38824 ac_status=$?
38825 grep -v '^ *+' conftest.er1 >conftest.err
38826 rm -f conftest.er1
38827 cat conftest.err >&5
38828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829 (exit $ac_status); } && {
38830 test -z "$ac_c_werror_flag" ||
38831 test ! -s conftest.err
38832 } && test -s conftest$ac_exeext &&
38833 $as_test_x conftest$ac_exeext; then
38834 eval "$as_ac_Lib=yes"
38835 else
38836 echo "$as_me: failed program was:" >&5
38837 sed 's/^/| /' conftest.$ac_ext >&5
38839 eval "$as_ac_Lib=no"
38842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38843 conftest$ac_exeext conftest.$ac_ext
38844 LIBS=$ac_check_lib_save_LIBS
38846 ac_res=`eval echo '${'$as_ac_Lib'}'`
38847 { echo "$as_me:$LINENO: result: $ac_res" >&5
38848 echo "${ECHO_T}$ac_res" >&6; }
38849 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38850 AST_PRI_FOUND=yes
38851 else
38852 AST_PRI_FOUND=no
38857 # now check for the header.
38858 if test "${AST_PRI_FOUND}" = "yes"; then
38859 PRI_LIB="${pbxlibdir} -lpri "
38860 # if --with-PRI=DIR has been specified, use it.
38861 if test "x${PRI_DIR}" != "x"; then
38862 PRI_INCLUDE="-I${PRI_DIR}/include"
38864 PRI_INCLUDE="${PRI_INCLUDE} "
38865 if test "xlibpri.h" = "x" ; then # no header, assume found
38866 PRI_HEADER_FOUND="1"
38867 else # check for the header
38868 saved_cppflags="${CPPFLAGS}"
38869 CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
38870 if test "${ac_cv_header_libpri_h+set}" = set; then
38871 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38872 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38873 if test "${ac_cv_header_libpri_h+set}" = set; then
38874 echo $ECHO_N "(cached) $ECHO_C" >&6
38876 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38877 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38878 else
38879 # Is the header compilable?
38880 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
38881 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
38882 cat >conftest.$ac_ext <<_ACEOF
38883 /* confdefs.h. */
38884 _ACEOF
38885 cat confdefs.h >>conftest.$ac_ext
38886 cat >>conftest.$ac_ext <<_ACEOF
38887 /* end confdefs.h. */
38888 $ac_includes_default
38889 #include <libpri.h>
38890 _ACEOF
38891 rm -f conftest.$ac_objext
38892 if { (ac_try="$ac_compile"
38893 case "(($ac_try" in
38894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38895 *) ac_try_echo=$ac_try;;
38896 esac
38897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38898 (eval "$ac_compile") 2>conftest.er1
38899 ac_status=$?
38900 grep -v '^ *+' conftest.er1 >conftest.err
38901 rm -f conftest.er1
38902 cat conftest.err >&5
38903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38904 (exit $ac_status); } && {
38905 test -z "$ac_c_werror_flag" ||
38906 test ! -s conftest.err
38907 } && test -s conftest.$ac_objext; then
38908 ac_header_compiler=yes
38909 else
38910 echo "$as_me: failed program was:" >&5
38911 sed 's/^/| /' conftest.$ac_ext >&5
38913 ac_header_compiler=no
38916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38918 echo "${ECHO_T}$ac_header_compiler" >&6; }
38920 # Is the header present?
38921 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
38922 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
38923 cat >conftest.$ac_ext <<_ACEOF
38924 /* confdefs.h. */
38925 _ACEOF
38926 cat confdefs.h >>conftest.$ac_ext
38927 cat >>conftest.$ac_ext <<_ACEOF
38928 /* end confdefs.h. */
38929 #include <libpri.h>
38930 _ACEOF
38931 if { (ac_try="$ac_cpp conftest.$ac_ext"
38932 case "(($ac_try" in
38933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38934 *) ac_try_echo=$ac_try;;
38935 esac
38936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38938 ac_status=$?
38939 grep -v '^ *+' conftest.er1 >conftest.err
38940 rm -f conftest.er1
38941 cat conftest.err >&5
38942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38943 (exit $ac_status); } >/dev/null && {
38944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38945 test ! -s conftest.err
38946 }; then
38947 ac_header_preproc=yes
38948 else
38949 echo "$as_me: failed program was:" >&5
38950 sed 's/^/| /' conftest.$ac_ext >&5
38952 ac_header_preproc=no
38955 rm -f conftest.err conftest.$ac_ext
38956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38957 echo "${ECHO_T}$ac_header_preproc" >&6; }
38959 # So? What about this header?
38960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38961 yes:no: )
38962 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
38963 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38964 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
38965 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
38966 ac_header_preproc=yes
38968 no:yes:* )
38969 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
38970 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
38971 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
38972 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
38973 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
38974 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
38975 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
38976 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
38977 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
38978 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
38979 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
38980 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
38981 ( cat <<\_ASBOX
38982 ## ------------------------------- ##
38983 ## Report this to www.asterisk.org ##
38984 ## ------------------------------- ##
38985 _ASBOX
38986 ) | sed "s/^/$as_me: WARNING: /" >&2
38988 esac
38989 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38990 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38991 if test "${ac_cv_header_libpri_h+set}" = set; then
38992 echo $ECHO_N "(cached) $ECHO_C" >&6
38993 else
38994 ac_cv_header_libpri_h=$ac_header_preproc
38996 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38997 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
39000 if test $ac_cv_header_libpri_h = yes; then
39001 PRI_HEADER_FOUND=1
39002 else
39003 PRI_HEADER_FOUND=0
39007 CPPFLAGS="${saved_cppflags}"
39009 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
39010 PRI_LIB=""
39011 PRI_INCLUDE=""
39012 else
39013 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39014 PRI_LIB=""
39016 PBX_PRI=1
39017 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39019 cat >>confdefs.h <<_ACEOF
39020 #define HAVE_PRI 1
39021 _ACEOF
39024 cat >>confdefs.h <<_ACEOF
39025 #define HAVE_PRI_VERSION
39026 _ACEOF
39034 if test "x${PBX_PRI_INBANDRELEASE}" != "x1" -a "${USE_PRI_INBANDRELEASE}" != "no"; then
39035 pbxlibdir=""
39036 # if --with-PRI_INBANDRELEASE=DIR has been specified, use it.
39037 if test "x${PRI_INBANDRELEASE_DIR}" != "x"; then
39038 if test -d ${PRI_INBANDRELEASE_DIR}/lib; then
39039 pbxlibdir="-L${PRI_INBANDRELEASE_DIR}/lib"
39040 else
39041 pbxlibdir="-L${PRI_INBANDRELEASE_DIR}"
39044 pbxfuncname="pri_set_inbandrelease"
39045 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39046 AST_PRI_INBANDRELEASE_FOUND=yes
39047 else
39048 as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
39049 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
39050 echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
39051 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39052 echo $ECHO_N "(cached) $ECHO_C" >&6
39053 else
39054 ac_check_lib_save_LIBS=$LIBS
39055 LIBS="-lpri ${pbxlibdir} $LIBS"
39056 cat >conftest.$ac_ext <<_ACEOF
39057 /* confdefs.h. */
39058 _ACEOF
39059 cat confdefs.h >>conftest.$ac_ext
39060 cat >>conftest.$ac_ext <<_ACEOF
39061 /* end confdefs.h. */
39063 /* Override any GCC internal prototype to avoid an error.
39064 Use char because int might match the return type of a GCC
39065 builtin and then its argument prototype would still apply. */
39066 #ifdef __cplusplus
39067 extern "C"
39068 #endif
39069 char ${pbxfuncname} ();
39071 main ()
39073 return ${pbxfuncname} ();
39075 return 0;
39077 _ACEOF
39078 rm -f conftest.$ac_objext conftest$ac_exeext
39079 if { (ac_try="$ac_link"
39080 case "(($ac_try" in
39081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39082 *) ac_try_echo=$ac_try;;
39083 esac
39084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39085 (eval "$ac_link") 2>conftest.er1
39086 ac_status=$?
39087 grep -v '^ *+' conftest.er1 >conftest.err
39088 rm -f conftest.er1
39089 cat conftest.err >&5
39090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39091 (exit $ac_status); } && {
39092 test -z "$ac_c_werror_flag" ||
39093 test ! -s conftest.err
39094 } && test -s conftest$ac_exeext &&
39095 $as_test_x conftest$ac_exeext; then
39096 eval "$as_ac_Lib=yes"
39097 else
39098 echo "$as_me: failed program was:" >&5
39099 sed 's/^/| /' conftest.$ac_ext >&5
39101 eval "$as_ac_Lib=no"
39104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39105 conftest$ac_exeext conftest.$ac_ext
39106 LIBS=$ac_check_lib_save_LIBS
39108 ac_res=`eval echo '${'$as_ac_Lib'}'`
39109 { echo "$as_me:$LINENO: result: $ac_res" >&5
39110 echo "${ECHO_T}$ac_res" >&6; }
39111 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39112 AST_PRI_INBANDRELEASE_FOUND=yes
39113 else
39114 AST_PRI_INBANDRELEASE_FOUND=no
39119 # now check for the header.
39120 if test "${AST_PRI_INBANDRELEASE_FOUND}" = "yes"; then
39121 PRI_INBANDRELEASE_LIB="${pbxlibdir} -lpri "
39122 # if --with-PRI_INBANDRELEASE=DIR has been specified, use it.
39123 if test "x${PRI_INBANDRELEASE_DIR}" != "x"; then
39124 PRI_INBANDRELEASE_INCLUDE="-I${PRI_INBANDRELEASE_DIR}/include"
39126 PRI_INBANDRELEASE_INCLUDE="${PRI_INBANDRELEASE_INCLUDE} "
39127 if test "xlibpri.h" = "x" ; then # no header, assume found
39128 PRI_INBANDRELEASE_HEADER_FOUND="1"
39129 else # check for the header
39130 saved_cppflags="${CPPFLAGS}"
39131 CPPFLAGS="${CPPFLAGS} ${PRI_INBANDRELEASE_INCLUDE}"
39132 if test "${ac_cv_header_libpri_h+set}" = set; then
39133 { echo "$as_me:$LINENO: checking for libpri.h" >&5
39134 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
39135 if test "${ac_cv_header_libpri_h+set}" = set; then
39136 echo $ECHO_N "(cached) $ECHO_C" >&6
39138 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
39139 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
39140 else
39141 # Is the header compilable?
39142 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
39143 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
39144 cat >conftest.$ac_ext <<_ACEOF
39145 /* confdefs.h. */
39146 _ACEOF
39147 cat confdefs.h >>conftest.$ac_ext
39148 cat >>conftest.$ac_ext <<_ACEOF
39149 /* end confdefs.h. */
39150 $ac_includes_default
39151 #include <libpri.h>
39152 _ACEOF
39153 rm -f conftest.$ac_objext
39154 if { (ac_try="$ac_compile"
39155 case "(($ac_try" in
39156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39157 *) ac_try_echo=$ac_try;;
39158 esac
39159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39160 (eval "$ac_compile") 2>conftest.er1
39161 ac_status=$?
39162 grep -v '^ *+' conftest.er1 >conftest.err
39163 rm -f conftest.er1
39164 cat conftest.err >&5
39165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39166 (exit $ac_status); } && {
39167 test -z "$ac_c_werror_flag" ||
39168 test ! -s conftest.err
39169 } && test -s conftest.$ac_objext; then
39170 ac_header_compiler=yes
39171 else
39172 echo "$as_me: failed program was:" >&5
39173 sed 's/^/| /' conftest.$ac_ext >&5
39175 ac_header_compiler=no
39178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39180 echo "${ECHO_T}$ac_header_compiler" >&6; }
39182 # Is the header present?
39183 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
39184 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
39185 cat >conftest.$ac_ext <<_ACEOF
39186 /* confdefs.h. */
39187 _ACEOF
39188 cat confdefs.h >>conftest.$ac_ext
39189 cat >>conftest.$ac_ext <<_ACEOF
39190 /* end confdefs.h. */
39191 #include <libpri.h>
39192 _ACEOF
39193 if { (ac_try="$ac_cpp conftest.$ac_ext"
39194 case "(($ac_try" in
39195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39196 *) ac_try_echo=$ac_try;;
39197 esac
39198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39200 ac_status=$?
39201 grep -v '^ *+' conftest.er1 >conftest.err
39202 rm -f conftest.er1
39203 cat conftest.err >&5
39204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39205 (exit $ac_status); } >/dev/null && {
39206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39207 test ! -s conftest.err
39208 }; then
39209 ac_header_preproc=yes
39210 else
39211 echo "$as_me: failed program was:" >&5
39212 sed 's/^/| /' conftest.$ac_ext >&5
39214 ac_header_preproc=no
39217 rm -f conftest.err conftest.$ac_ext
39218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39219 echo "${ECHO_T}$ac_header_preproc" >&6; }
39221 # So? What about this header?
39222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39223 yes:no: )
39224 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
39225 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39226 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
39227 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
39228 ac_header_preproc=yes
39230 no:yes:* )
39231 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
39232 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
39233 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
39234 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
39235 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
39236 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
39237 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
39238 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
39239 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
39240 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
39241 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
39242 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
39243 ( cat <<\_ASBOX
39244 ## ------------------------------- ##
39245 ## Report this to www.asterisk.org ##
39246 ## ------------------------------- ##
39247 _ASBOX
39248 ) | sed "s/^/$as_me: WARNING: /" >&2
39250 esac
39251 { echo "$as_me:$LINENO: checking for libpri.h" >&5
39252 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
39253 if test "${ac_cv_header_libpri_h+set}" = set; then
39254 echo $ECHO_N "(cached) $ECHO_C" >&6
39255 else
39256 ac_cv_header_libpri_h=$ac_header_preproc
39258 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
39259 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
39262 if test $ac_cv_header_libpri_h = yes; then
39263 PRI_INBANDRELEASE_HEADER_FOUND=1
39264 else
39265 PRI_INBANDRELEASE_HEADER_FOUND=0
39269 CPPFLAGS="${saved_cppflags}"
39271 if test "x${PRI_INBANDRELEASE_HEADER_FOUND}" = "x0" ; then
39272 PRI_INBANDRELEASE_LIB=""
39273 PRI_INBANDRELEASE_INCLUDE=""
39274 else
39275 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39276 PRI_INBANDRELEASE_LIB=""
39278 PBX_PRI_INBANDRELEASE=1
39279 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39281 cat >>confdefs.h <<_ACEOF
39282 #define HAVE_PRI_INBANDRELEASE 1
39283 _ACEOF
39286 cat >>confdefs.h <<_ACEOF
39287 #define HAVE_PRI_INBANDRELEASE_VERSION
39288 _ACEOF
39296 if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
39297 { echo "$as_me:$LINENO: checking if \"
39298 #if SPANDSP_RELEASE_DATE < 20080516
39299 #error \"spandsp 0.0.5 or greater is required\"
39300 #endif
39301 \" compiles using spandsp/version.h" >&5
39302 echo $ECHO_N "checking if \"
39303 #if SPANDSP_RELEASE_DATE < 20080516
39304 #error \"spandsp 0.0.5 or greater is required\"
39305 #endif
39306 \" compiles using spandsp/version.h... $ECHO_C" >&6; }
39307 saved_cppflags="${CPPFLAGS}"
39308 if test "x${SPANDSP_DIR}" != "x"; then
39309 SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
39311 CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
39313 cat >conftest.$ac_ext <<_ACEOF
39314 /* confdefs.h. */
39315 _ACEOF
39316 cat confdefs.h >>conftest.$ac_ext
39317 cat >>conftest.$ac_ext <<_ACEOF
39318 /* end confdefs.h. */
39319 #include <spandsp/version.h>
39321 main ()
39324 #if SPANDSP_RELEASE_DATE < 20080516
39325 #error "spandsp 0.0.5 or greater is required"
39326 #endif
39330 return 0;
39332 _ACEOF
39333 rm -f conftest.$ac_objext
39334 if { (ac_try="$ac_compile"
39335 case "(($ac_try" in
39336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39337 *) ac_try_echo=$ac_try;;
39338 esac
39339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39340 (eval "$ac_compile") 2>conftest.er1
39341 ac_status=$?
39342 grep -v '^ *+' conftest.er1 >conftest.err
39343 rm -f conftest.er1
39344 cat conftest.err >&5
39345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39346 (exit $ac_status); } && {
39347 test -z "$ac_c_werror_flag" ||
39348 test ! -s conftest.err
39349 } && test -s conftest.$ac_objext; then
39350 { echo "$as_me:$LINENO: result: yes" >&5
39351 echo "${ECHO_T}yes" >&6; }
39352 PBX_SPANDSP=1
39354 cat >>confdefs.h <<\_ACEOF
39355 #define HAVE_SPANDSP 1
39356 _ACEOF
39359 cat >>confdefs.h <<\_ACEOF
39360 #define HAVE_SPANDSP_VERSION
39361 _ACEOF
39364 else
39365 echo "$as_me: failed program was:" >&5
39366 sed 's/^/| /' conftest.$ac_ext >&5
39368 { echo "$as_me:$LINENO: result: no" >&5
39369 echo "${ECHO_T}no" >&6; }
39373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39374 CPPFLAGS="${saved_cppflags}"
39378 if test "x${PBX_SPANDSP}" = "x1" ; then
39379 # We found the correct version in the header, now let's make sure it links
39380 # properly, and that libtiff is available
39381 PBX_SPANDSP=0
39383 if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
39384 pbxlibdir=""
39385 # if --with-SPANDSP=DIR has been specified, use it.
39386 if test "x${SPANDSP_DIR}" != "x"; then
39387 if test -d ${SPANDSP_DIR}/lib; then
39388 pbxlibdir="-L${SPANDSP_DIR}/lib"
39389 else
39390 pbxlibdir="-L${SPANDSP_DIR}"
39393 pbxfuncname="span_set_message_handler"
39394 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39395 AST_SPANDSP_FOUND=yes
39396 else
39397 as_ac_Lib=`echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
39398 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspandsp" >&5
39399 echo $ECHO_N "checking for ${pbxfuncname} in -lspandsp... $ECHO_C" >&6; }
39400 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39401 echo $ECHO_N "(cached) $ECHO_C" >&6
39402 else
39403 ac_check_lib_save_LIBS=$LIBS
39404 LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
39405 cat >conftest.$ac_ext <<_ACEOF
39406 /* confdefs.h. */
39407 _ACEOF
39408 cat confdefs.h >>conftest.$ac_ext
39409 cat >>conftest.$ac_ext <<_ACEOF
39410 /* end confdefs.h. */
39412 /* Override any GCC internal prototype to avoid an error.
39413 Use char because int might match the return type of a GCC
39414 builtin and then its argument prototype would still apply. */
39415 #ifdef __cplusplus
39416 extern "C"
39417 #endif
39418 char ${pbxfuncname} ();
39420 main ()
39422 return ${pbxfuncname} ();
39424 return 0;
39426 _ACEOF
39427 rm -f conftest.$ac_objext conftest$ac_exeext
39428 if { (ac_try="$ac_link"
39429 case "(($ac_try" in
39430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39431 *) ac_try_echo=$ac_try;;
39432 esac
39433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39434 (eval "$ac_link") 2>conftest.er1
39435 ac_status=$?
39436 grep -v '^ *+' conftest.er1 >conftest.err
39437 rm -f conftest.er1
39438 cat conftest.err >&5
39439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440 (exit $ac_status); } && {
39441 test -z "$ac_c_werror_flag" ||
39442 test ! -s conftest.err
39443 } && test -s conftest$ac_exeext &&
39444 $as_test_x conftest$ac_exeext; then
39445 eval "$as_ac_Lib=yes"
39446 else
39447 echo "$as_me: failed program was:" >&5
39448 sed 's/^/| /' conftest.$ac_ext >&5
39450 eval "$as_ac_Lib=no"
39453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39454 conftest$ac_exeext conftest.$ac_ext
39455 LIBS=$ac_check_lib_save_LIBS
39457 ac_res=`eval echo '${'$as_ac_Lib'}'`
39458 { echo "$as_me:$LINENO: result: $ac_res" >&5
39459 echo "${ECHO_T}$ac_res" >&6; }
39460 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39461 AST_SPANDSP_FOUND=yes
39462 else
39463 AST_SPANDSP_FOUND=no
39468 # now check for the header.
39469 if test "${AST_SPANDSP_FOUND}" = "yes"; then
39470 SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
39471 # if --with-SPANDSP=DIR has been specified, use it.
39472 if test "x${SPANDSP_DIR}" != "x"; then
39473 SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
39475 SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
39476 if test "xspandsp.h" = "x" ; then # no header, assume found
39477 SPANDSP_HEADER_FOUND="1"
39478 else # check for the header
39479 saved_cppflags="${CPPFLAGS}"
39480 CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
39481 if test "${ac_cv_header_spandsp_h+set}" = set; then
39482 { echo "$as_me:$LINENO: checking for spandsp.h" >&5
39483 echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
39484 if test "${ac_cv_header_spandsp_h+set}" = set; then
39485 echo $ECHO_N "(cached) $ECHO_C" >&6
39487 { echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
39488 echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
39489 else
39490 # Is the header compilable?
39491 { echo "$as_me:$LINENO: checking spandsp.h usability" >&5
39492 echo $ECHO_N "checking spandsp.h usability... $ECHO_C" >&6; }
39493 cat >conftest.$ac_ext <<_ACEOF
39494 /* confdefs.h. */
39495 _ACEOF
39496 cat confdefs.h >>conftest.$ac_ext
39497 cat >>conftest.$ac_ext <<_ACEOF
39498 /* end confdefs.h. */
39499 $ac_includes_default
39500 #include <spandsp.h>
39501 _ACEOF
39502 rm -f conftest.$ac_objext
39503 if { (ac_try="$ac_compile"
39504 case "(($ac_try" in
39505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39506 *) ac_try_echo=$ac_try;;
39507 esac
39508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39509 (eval "$ac_compile") 2>conftest.er1
39510 ac_status=$?
39511 grep -v '^ *+' conftest.er1 >conftest.err
39512 rm -f conftest.er1
39513 cat conftest.err >&5
39514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39515 (exit $ac_status); } && {
39516 test -z "$ac_c_werror_flag" ||
39517 test ! -s conftest.err
39518 } && test -s conftest.$ac_objext; then
39519 ac_header_compiler=yes
39520 else
39521 echo "$as_me: failed program was:" >&5
39522 sed 's/^/| /' conftest.$ac_ext >&5
39524 ac_header_compiler=no
39527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39529 echo "${ECHO_T}$ac_header_compiler" >&6; }
39531 # Is the header present?
39532 { echo "$as_me:$LINENO: checking spandsp.h presence" >&5
39533 echo $ECHO_N "checking spandsp.h presence... $ECHO_C" >&6; }
39534 cat >conftest.$ac_ext <<_ACEOF
39535 /* confdefs.h. */
39536 _ACEOF
39537 cat confdefs.h >>conftest.$ac_ext
39538 cat >>conftest.$ac_ext <<_ACEOF
39539 /* end confdefs.h. */
39540 #include <spandsp.h>
39541 _ACEOF
39542 if { (ac_try="$ac_cpp conftest.$ac_ext"
39543 case "(($ac_try" in
39544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39545 *) ac_try_echo=$ac_try;;
39546 esac
39547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39549 ac_status=$?
39550 grep -v '^ *+' conftest.er1 >conftest.err
39551 rm -f conftest.er1
39552 cat conftest.err >&5
39553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39554 (exit $ac_status); } >/dev/null && {
39555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39556 test ! -s conftest.err
39557 }; then
39558 ac_header_preproc=yes
39559 else
39560 echo "$as_me: failed program was:" >&5
39561 sed 's/^/| /' conftest.$ac_ext >&5
39563 ac_header_preproc=no
39566 rm -f conftest.err conftest.$ac_ext
39567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39568 echo "${ECHO_T}$ac_header_preproc" >&6; }
39570 # So? What about this header?
39571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39572 yes:no: )
39573 { echo "$as_me:$LINENO: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
39574 echo "$as_me: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39575 { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the compiler's result" >&5
39576 echo "$as_me: WARNING: spandsp.h: proceeding with the compiler's result" >&2;}
39577 ac_header_preproc=yes
39579 no:yes:* )
39580 { echo "$as_me:$LINENO: WARNING: spandsp.h: present but cannot be compiled" >&5
39581 echo "$as_me: WARNING: spandsp.h: present but cannot be compiled" >&2;}
39582 { echo "$as_me:$LINENO: WARNING: spandsp.h: check for missing prerequisite headers?" >&5
39583 echo "$as_me: WARNING: spandsp.h: check for missing prerequisite headers?" >&2;}
39584 { echo "$as_me:$LINENO: WARNING: spandsp.h: see the Autoconf documentation" >&5
39585 echo "$as_me: WARNING: spandsp.h: see the Autoconf documentation" >&2;}
39586 { echo "$as_me:$LINENO: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&5
39587 echo "$as_me: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
39588 { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the preprocessor's result" >&5
39589 echo "$as_me: WARNING: spandsp.h: proceeding with the preprocessor's result" >&2;}
39590 { echo "$as_me:$LINENO: WARNING: spandsp.h: in the future, the compiler will take precedence" >&5
39591 echo "$as_me: WARNING: spandsp.h: in the future, the compiler will take precedence" >&2;}
39592 ( cat <<\_ASBOX
39593 ## ------------------------------- ##
39594 ## Report this to www.asterisk.org ##
39595 ## ------------------------------- ##
39596 _ASBOX
39597 ) | sed "s/^/$as_me: WARNING: /" >&2
39599 esac
39600 { echo "$as_me:$LINENO: checking for spandsp.h" >&5
39601 echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
39602 if test "${ac_cv_header_spandsp_h+set}" = set; then
39603 echo $ECHO_N "(cached) $ECHO_C" >&6
39604 else
39605 ac_cv_header_spandsp_h=$ac_header_preproc
39607 { echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
39608 echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
39611 if test $ac_cv_header_spandsp_h = yes; then
39612 SPANDSP_HEADER_FOUND=1
39613 else
39614 SPANDSP_HEADER_FOUND=0
39618 CPPFLAGS="${saved_cppflags}"
39620 if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
39621 SPANDSP_LIB=""
39622 SPANDSP_INCLUDE=""
39623 else
39624 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39625 SPANDSP_LIB=""
39627 PBX_SPANDSP=1
39628 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39630 cat >>confdefs.h <<_ACEOF
39631 #define HAVE_SPANDSP 1
39632 _ACEOF
39635 cat >>confdefs.h <<_ACEOF
39636 #define HAVE_SPANDSP_VERSION
39637 _ACEOF
39646 if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
39647 pbxlibdir=""
39648 # if --with-SS7=DIR has been specified, use it.
39649 if test "x${SS7_DIR}" != "x"; then
39650 if test -d ${SS7_DIR}/lib; then
39651 pbxlibdir="-L${SS7_DIR}/lib"
39652 else
39653 pbxlibdir="-L${SS7_DIR}"
39656 pbxfuncname="ss7_pollflags"
39657 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39658 AST_SS7_FOUND=yes
39659 else
39660 as_ac_Lib=`echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
39661 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lss7" >&5
39662 echo $ECHO_N "checking for ${pbxfuncname} in -lss7... $ECHO_C" >&6; }
39663 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39664 echo $ECHO_N "(cached) $ECHO_C" >&6
39665 else
39666 ac_check_lib_save_LIBS=$LIBS
39667 LIBS="-lss7 ${pbxlibdir} $LIBS"
39668 cat >conftest.$ac_ext <<_ACEOF
39669 /* confdefs.h. */
39670 _ACEOF
39671 cat confdefs.h >>conftest.$ac_ext
39672 cat >>conftest.$ac_ext <<_ACEOF
39673 /* end confdefs.h. */
39675 /* Override any GCC internal prototype to avoid an error.
39676 Use char because int might match the return type of a GCC
39677 builtin and then its argument prototype would still apply. */
39678 #ifdef __cplusplus
39679 extern "C"
39680 #endif
39681 char ${pbxfuncname} ();
39683 main ()
39685 return ${pbxfuncname} ();
39687 return 0;
39689 _ACEOF
39690 rm -f conftest.$ac_objext conftest$ac_exeext
39691 if { (ac_try="$ac_link"
39692 case "(($ac_try" in
39693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39694 *) ac_try_echo=$ac_try;;
39695 esac
39696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39697 (eval "$ac_link") 2>conftest.er1
39698 ac_status=$?
39699 grep -v '^ *+' conftest.er1 >conftest.err
39700 rm -f conftest.er1
39701 cat conftest.err >&5
39702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703 (exit $ac_status); } && {
39704 test -z "$ac_c_werror_flag" ||
39705 test ! -s conftest.err
39706 } && test -s conftest$ac_exeext &&
39707 $as_test_x conftest$ac_exeext; then
39708 eval "$as_ac_Lib=yes"
39709 else
39710 echo "$as_me: failed program was:" >&5
39711 sed 's/^/| /' conftest.$ac_ext >&5
39713 eval "$as_ac_Lib=no"
39716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39717 conftest$ac_exeext conftest.$ac_ext
39718 LIBS=$ac_check_lib_save_LIBS
39720 ac_res=`eval echo '${'$as_ac_Lib'}'`
39721 { echo "$as_me:$LINENO: result: $ac_res" >&5
39722 echo "${ECHO_T}$ac_res" >&6; }
39723 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39724 AST_SS7_FOUND=yes
39725 else
39726 AST_SS7_FOUND=no
39731 # now check for the header.
39732 if test "${AST_SS7_FOUND}" = "yes"; then
39733 SS7_LIB="${pbxlibdir} -lss7 "
39734 # if --with-SS7=DIR has been specified, use it.
39735 if test "x${SS7_DIR}" != "x"; then
39736 SS7_INCLUDE="-I${SS7_DIR}/include"
39738 SS7_INCLUDE="${SS7_INCLUDE} "
39739 if test "xlibss7.h" = "x" ; then # no header, assume found
39740 SS7_HEADER_FOUND="1"
39741 else # check for the header
39742 saved_cppflags="${CPPFLAGS}"
39743 CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE}"
39744 if test "${ac_cv_header_libss7_h+set}" = set; then
39745 { echo "$as_me:$LINENO: checking for libss7.h" >&5
39746 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
39747 if test "${ac_cv_header_libss7_h+set}" = set; then
39748 echo $ECHO_N "(cached) $ECHO_C" >&6
39750 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
39751 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
39752 else
39753 # Is the header compilable?
39754 { echo "$as_me:$LINENO: checking libss7.h usability" >&5
39755 echo $ECHO_N "checking libss7.h usability... $ECHO_C" >&6; }
39756 cat >conftest.$ac_ext <<_ACEOF
39757 /* confdefs.h. */
39758 _ACEOF
39759 cat confdefs.h >>conftest.$ac_ext
39760 cat >>conftest.$ac_ext <<_ACEOF
39761 /* end confdefs.h. */
39762 $ac_includes_default
39763 #include <libss7.h>
39764 _ACEOF
39765 rm -f conftest.$ac_objext
39766 if { (ac_try="$ac_compile"
39767 case "(($ac_try" in
39768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39769 *) ac_try_echo=$ac_try;;
39770 esac
39771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39772 (eval "$ac_compile") 2>conftest.er1
39773 ac_status=$?
39774 grep -v '^ *+' conftest.er1 >conftest.err
39775 rm -f conftest.er1
39776 cat conftest.err >&5
39777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39778 (exit $ac_status); } && {
39779 test -z "$ac_c_werror_flag" ||
39780 test ! -s conftest.err
39781 } && test -s conftest.$ac_objext; then
39782 ac_header_compiler=yes
39783 else
39784 echo "$as_me: failed program was:" >&5
39785 sed 's/^/| /' conftest.$ac_ext >&5
39787 ac_header_compiler=no
39790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39792 echo "${ECHO_T}$ac_header_compiler" >&6; }
39794 # Is the header present?
39795 { echo "$as_me:$LINENO: checking libss7.h presence" >&5
39796 echo $ECHO_N "checking libss7.h presence... $ECHO_C" >&6; }
39797 cat >conftest.$ac_ext <<_ACEOF
39798 /* confdefs.h. */
39799 _ACEOF
39800 cat confdefs.h >>conftest.$ac_ext
39801 cat >>conftest.$ac_ext <<_ACEOF
39802 /* end confdefs.h. */
39803 #include <libss7.h>
39804 _ACEOF
39805 if { (ac_try="$ac_cpp conftest.$ac_ext"
39806 case "(($ac_try" in
39807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39808 *) ac_try_echo=$ac_try;;
39809 esac
39810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39812 ac_status=$?
39813 grep -v '^ *+' conftest.er1 >conftest.err
39814 rm -f conftest.er1
39815 cat conftest.err >&5
39816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817 (exit $ac_status); } >/dev/null && {
39818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39819 test ! -s conftest.err
39820 }; then
39821 ac_header_preproc=yes
39822 else
39823 echo "$as_me: failed program was:" >&5
39824 sed 's/^/| /' conftest.$ac_ext >&5
39826 ac_header_preproc=no
39829 rm -f conftest.err conftest.$ac_ext
39830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39831 echo "${ECHO_T}$ac_header_preproc" >&6; }
39833 # So? What about this header?
39834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39835 yes:no: )
39836 { echo "$as_me:$LINENO: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&5
39837 echo "$as_me: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39838 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the compiler's result" >&5
39839 echo "$as_me: WARNING: libss7.h: proceeding with the compiler's result" >&2;}
39840 ac_header_preproc=yes
39842 no:yes:* )
39843 { echo "$as_me:$LINENO: WARNING: libss7.h: present but cannot be compiled" >&5
39844 echo "$as_me: WARNING: libss7.h: present but cannot be compiled" >&2;}
39845 { echo "$as_me:$LINENO: WARNING: libss7.h: check for missing prerequisite headers?" >&5
39846 echo "$as_me: WARNING: libss7.h: check for missing prerequisite headers?" >&2;}
39847 { echo "$as_me:$LINENO: WARNING: libss7.h: see the Autoconf documentation" >&5
39848 echo "$as_me: WARNING: libss7.h: see the Autoconf documentation" >&2;}
39849 { echo "$as_me:$LINENO: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&5
39850 echo "$as_me: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&2;}
39851 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the preprocessor's result" >&5
39852 echo "$as_me: WARNING: libss7.h: proceeding with the preprocessor's result" >&2;}
39853 { echo "$as_me:$LINENO: WARNING: libss7.h: in the future, the compiler will take precedence" >&5
39854 echo "$as_me: WARNING: libss7.h: in the future, the compiler will take precedence" >&2;}
39855 ( cat <<\_ASBOX
39856 ## ------------------------------- ##
39857 ## Report this to www.asterisk.org ##
39858 ## ------------------------------- ##
39859 _ASBOX
39860 ) | sed "s/^/$as_me: WARNING: /" >&2
39862 esac
39863 { echo "$as_me:$LINENO: checking for libss7.h" >&5
39864 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
39865 if test "${ac_cv_header_libss7_h+set}" = set; then
39866 echo $ECHO_N "(cached) $ECHO_C" >&6
39867 else
39868 ac_cv_header_libss7_h=$ac_header_preproc
39870 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
39871 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
39874 if test $ac_cv_header_libss7_h = yes; then
39875 SS7_HEADER_FOUND=1
39876 else
39877 SS7_HEADER_FOUND=0
39881 CPPFLAGS="${saved_cppflags}"
39883 if test "x${SS7_HEADER_FOUND}" = "x0" ; then
39884 SS7_LIB=""
39885 SS7_INCLUDE=""
39886 else
39887 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39888 SS7_LIB=""
39890 PBX_SS7=1
39891 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39893 cat >>confdefs.h <<_ACEOF
39894 #define HAVE_SS7 1
39895 _ACEOF
39898 cat >>confdefs.h <<_ACEOF
39899 #define HAVE_SS7_VERSION
39900 _ACEOF
39907 if test "${USE_PWLIB}" != "no"; then
39908 if test -n "${PWLIB_DIR}"; then
39909 PWLIBDIR="${PWLIB_DIR}"
39914 PWLIB_INCDIR=
39915 PWLIB_LIBDIR=
39916 ac_ext=cpp
39917 ac_cpp='$CXXCPP $CPPFLAGS'
39918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39922 if test "${PWLIBDIR:-unset}" != "unset" ; then
39923 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
39924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39925 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
39926 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
39927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39928 echo $ECHO_N "(cached) $ECHO_C" >&6
39930 ac_res=`eval echo '${'$as_ac_Header'}'`
39931 { echo "$as_me:$LINENO: result: $ac_res" >&5
39932 echo "${ECHO_T}$ac_res" >&6; }
39933 else
39934 # Is the header compilable?
39935 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
39936 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
39937 cat >conftest.$ac_ext <<_ACEOF
39938 /* confdefs.h. */
39939 _ACEOF
39940 cat confdefs.h >>conftest.$ac_ext
39941 cat >>conftest.$ac_ext <<_ACEOF
39942 /* end confdefs.h. */
39943 $ac_includes_default
39944 #include <${PWLIBDIR}/version.h>
39945 _ACEOF
39946 rm -f conftest.$ac_objext
39947 if { (ac_try="$ac_compile"
39948 case "(($ac_try" in
39949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39950 *) ac_try_echo=$ac_try;;
39951 esac
39952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39953 (eval "$ac_compile") 2>conftest.er1
39954 ac_status=$?
39955 grep -v '^ *+' conftest.er1 >conftest.err
39956 rm -f conftest.er1
39957 cat conftest.err >&5
39958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959 (exit $ac_status); } && {
39960 test -z "$ac_cxx_werror_flag" ||
39961 test ! -s conftest.err
39962 } && test -s conftest.$ac_objext; then
39963 ac_header_compiler=yes
39964 else
39965 echo "$as_me: failed program was:" >&5
39966 sed 's/^/| /' conftest.$ac_ext >&5
39968 ac_header_compiler=no
39971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39973 echo "${ECHO_T}$ac_header_compiler" >&6; }
39975 # Is the header present?
39976 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
39977 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
39978 cat >conftest.$ac_ext <<_ACEOF
39979 /* confdefs.h. */
39980 _ACEOF
39981 cat confdefs.h >>conftest.$ac_ext
39982 cat >>conftest.$ac_ext <<_ACEOF
39983 /* end confdefs.h. */
39984 #include <${PWLIBDIR}/version.h>
39985 _ACEOF
39986 if { (ac_try="$ac_cpp conftest.$ac_ext"
39987 case "(($ac_try" in
39988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39989 *) ac_try_echo=$ac_try;;
39990 esac
39991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39993 ac_status=$?
39994 grep -v '^ *+' conftest.er1 >conftest.err
39995 rm -f conftest.er1
39996 cat conftest.err >&5
39997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998 (exit $ac_status); } >/dev/null && {
39999 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40000 test ! -s conftest.err
40001 }; then
40002 ac_header_preproc=yes
40003 else
40004 echo "$as_me: failed program was:" >&5
40005 sed 's/^/| /' conftest.$ac_ext >&5
40007 ac_header_preproc=no
40010 rm -f conftest.err conftest.$ac_ext
40011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40012 echo "${ECHO_T}$ac_header_preproc" >&6; }
40014 # So? What about this header?
40015 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40016 yes:no: )
40017 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40018 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40019 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
40020 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
40021 ac_header_preproc=yes
40023 no:yes:* )
40024 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
40025 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
40026 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
40027 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
40028 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
40029 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
40030 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
40031 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40032 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
40033 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
40034 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
40035 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
40036 ( cat <<\_ASBOX
40037 ## ------------------------------- ##
40038 ## Report this to www.asterisk.org ##
40039 ## ------------------------------- ##
40040 _ASBOX
40041 ) | sed "s/^/$as_me: WARNING: /" >&2
40043 esac
40044 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
40045 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
40046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40047 echo $ECHO_N "(cached) $ECHO_C" >&6
40048 else
40049 eval "$as_ac_Header=\$ac_header_preproc"
40051 ac_res=`eval echo '${'$as_ac_Header'}'`
40052 { echo "$as_me:$LINENO: result: $ac_res" >&5
40053 echo "${ECHO_T}$ac_res" >&6; }
40056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40057 HAS_PWLIB=1
40062 if test "${HAS_PWLIB:-unset}" = "unset" ; then
40063 if test "${OPENH323DIR:-unset}" != "unset"; then
40064 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
40065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40066 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
40067 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
40068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40069 echo $ECHO_N "(cached) $ECHO_C" >&6
40071 ac_res=`eval echo '${'$as_ac_Header'}'`
40072 { echo "$as_me:$LINENO: result: $ac_res" >&5
40073 echo "${ECHO_T}$ac_res" >&6; }
40074 else
40075 # Is the header compilable?
40076 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
40077 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
40078 cat >conftest.$ac_ext <<_ACEOF
40079 /* confdefs.h. */
40080 _ACEOF
40081 cat confdefs.h >>conftest.$ac_ext
40082 cat >>conftest.$ac_ext <<_ACEOF
40083 /* end confdefs.h. */
40084 $ac_includes_default
40085 #include <${OPENH323DIR}/../pwlib/version.h>
40086 _ACEOF
40087 rm -f conftest.$ac_objext
40088 if { (ac_try="$ac_compile"
40089 case "(($ac_try" in
40090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40091 *) ac_try_echo=$ac_try;;
40092 esac
40093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40094 (eval "$ac_compile") 2>conftest.er1
40095 ac_status=$?
40096 grep -v '^ *+' conftest.er1 >conftest.err
40097 rm -f conftest.er1
40098 cat conftest.err >&5
40099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40100 (exit $ac_status); } && {
40101 test -z "$ac_cxx_werror_flag" ||
40102 test ! -s conftest.err
40103 } && test -s conftest.$ac_objext; then
40104 ac_header_compiler=yes
40105 else
40106 echo "$as_me: failed program was:" >&5
40107 sed 's/^/| /' conftest.$ac_ext >&5
40109 ac_header_compiler=no
40112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40114 echo "${ECHO_T}$ac_header_compiler" >&6; }
40116 # Is the header present?
40117 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
40118 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
40119 cat >conftest.$ac_ext <<_ACEOF
40120 /* confdefs.h. */
40121 _ACEOF
40122 cat confdefs.h >>conftest.$ac_ext
40123 cat >>conftest.$ac_ext <<_ACEOF
40124 /* end confdefs.h. */
40125 #include <${OPENH323DIR}/../pwlib/version.h>
40126 _ACEOF
40127 if { (ac_try="$ac_cpp conftest.$ac_ext"
40128 case "(($ac_try" in
40129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40130 *) ac_try_echo=$ac_try;;
40131 esac
40132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40134 ac_status=$?
40135 grep -v '^ *+' conftest.er1 >conftest.err
40136 rm -f conftest.er1
40137 cat conftest.err >&5
40138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40139 (exit $ac_status); } >/dev/null && {
40140 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40141 test ! -s conftest.err
40142 }; then
40143 ac_header_preproc=yes
40144 else
40145 echo "$as_me: failed program was:" >&5
40146 sed 's/^/| /' conftest.$ac_ext >&5
40148 ac_header_preproc=no
40151 rm -f conftest.err conftest.$ac_ext
40152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40153 echo "${ECHO_T}$ac_header_preproc" >&6; }
40155 # So? What about this header?
40156 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40157 yes:no: )
40158 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40159 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40160 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
40161 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
40162 ac_header_preproc=yes
40164 no:yes:* )
40165 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
40166 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
40167 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
40168 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
40169 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
40170 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
40171 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
40172 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40173 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
40174 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
40175 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
40176 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
40177 ( cat <<\_ASBOX
40178 ## ------------------------------- ##
40179 ## Report this to www.asterisk.org ##
40180 ## ------------------------------- ##
40181 _ASBOX
40182 ) | sed "s/^/$as_me: WARNING: /" >&2
40184 esac
40185 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
40186 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
40187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40188 echo $ECHO_N "(cached) $ECHO_C" >&6
40189 else
40190 eval "$as_ac_Header=\$ac_header_preproc"
40192 ac_res=`eval echo '${'$as_ac_Header'}'`
40193 { echo "$as_me:$LINENO: result: $ac_res" >&5
40194 echo "${ECHO_T}$ac_res" >&6; }
40197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40198 HAS_PWLIB=1
40203 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40204 PWLIBDIR="${OPENH323DIR}/../pwlib"
40205 else
40206 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
40207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40208 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
40209 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
40210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40211 echo $ECHO_N "(cached) $ECHO_C" >&6
40213 ac_res=`eval echo '${'$as_ac_Header'}'`
40214 { echo "$as_me:$LINENO: result: $ac_res" >&5
40215 echo "${ECHO_T}$ac_res" >&6; }
40216 else
40217 # Is the header compilable?
40218 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
40219 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
40220 cat >conftest.$ac_ext <<_ACEOF
40221 /* confdefs.h. */
40222 _ACEOF
40223 cat confdefs.h >>conftest.$ac_ext
40224 cat >>conftest.$ac_ext <<_ACEOF
40225 /* end confdefs.h. */
40226 $ac_includes_default
40227 #include <${HOME}/pwlib/include/ptlib.h>
40228 _ACEOF
40229 rm -f conftest.$ac_objext
40230 if { (ac_try="$ac_compile"
40231 case "(($ac_try" in
40232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40233 *) ac_try_echo=$ac_try;;
40234 esac
40235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40236 (eval "$ac_compile") 2>conftest.er1
40237 ac_status=$?
40238 grep -v '^ *+' conftest.er1 >conftest.err
40239 rm -f conftest.er1
40240 cat conftest.err >&5
40241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40242 (exit $ac_status); } && {
40243 test -z "$ac_cxx_werror_flag" ||
40244 test ! -s conftest.err
40245 } && test -s conftest.$ac_objext; then
40246 ac_header_compiler=yes
40247 else
40248 echo "$as_me: failed program was:" >&5
40249 sed 's/^/| /' conftest.$ac_ext >&5
40251 ac_header_compiler=no
40254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40256 echo "${ECHO_T}$ac_header_compiler" >&6; }
40258 # Is the header present?
40259 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
40260 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
40261 cat >conftest.$ac_ext <<_ACEOF
40262 /* confdefs.h. */
40263 _ACEOF
40264 cat confdefs.h >>conftest.$ac_ext
40265 cat >>conftest.$ac_ext <<_ACEOF
40266 /* end confdefs.h. */
40267 #include <${HOME}/pwlib/include/ptlib.h>
40268 _ACEOF
40269 if { (ac_try="$ac_cpp conftest.$ac_ext"
40270 case "(($ac_try" in
40271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40272 *) ac_try_echo=$ac_try;;
40273 esac
40274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40276 ac_status=$?
40277 grep -v '^ *+' conftest.er1 >conftest.err
40278 rm -f conftest.er1
40279 cat conftest.err >&5
40280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40281 (exit $ac_status); } >/dev/null && {
40282 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40283 test ! -s conftest.err
40284 }; then
40285 ac_header_preproc=yes
40286 else
40287 echo "$as_me: failed program was:" >&5
40288 sed 's/^/| /' conftest.$ac_ext >&5
40290 ac_header_preproc=no
40293 rm -f conftest.err conftest.$ac_ext
40294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40295 echo "${ECHO_T}$ac_header_preproc" >&6; }
40297 # So? What about this header?
40298 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40299 yes:no: )
40300 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40301 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40302 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
40303 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
40304 ac_header_preproc=yes
40306 no:yes:* )
40307 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
40308 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
40309 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
40310 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40311 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
40312 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
40313 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40314 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40315 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
40316 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40317 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
40318 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40319 ( cat <<\_ASBOX
40320 ## ------------------------------- ##
40321 ## Report this to www.asterisk.org ##
40322 ## ------------------------------- ##
40323 _ASBOX
40324 ) | sed "s/^/$as_me: WARNING: /" >&2
40326 esac
40327 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
40328 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
40329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40330 echo $ECHO_N "(cached) $ECHO_C" >&6
40331 else
40332 eval "$as_ac_Header=\$ac_header_preproc"
40334 ac_res=`eval echo '${'$as_ac_Header'}'`
40335 { echo "$as_me:$LINENO: result: $ac_res" >&5
40336 echo "${ECHO_T}$ac_res" >&6; }
40339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40340 HAS_PWLIB=1
40344 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40345 PWLIBDIR="${HOME}/pwlib"
40346 else
40347 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40348 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
40349 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
40350 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40351 echo $ECHO_N "(cached) $ECHO_C" >&6
40353 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
40354 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
40355 else
40356 # Is the header compilable?
40357 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
40358 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
40359 cat >conftest.$ac_ext <<_ACEOF
40360 /* confdefs.h. */
40361 _ACEOF
40362 cat confdefs.h >>conftest.$ac_ext
40363 cat >>conftest.$ac_ext <<_ACEOF
40364 /* end confdefs.h. */
40365 $ac_includes_default
40366 #include </usr/local/include/ptlib.h>
40367 _ACEOF
40368 rm -f conftest.$ac_objext
40369 if { (ac_try="$ac_compile"
40370 case "(($ac_try" in
40371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40372 *) ac_try_echo=$ac_try;;
40373 esac
40374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40375 (eval "$ac_compile") 2>conftest.er1
40376 ac_status=$?
40377 grep -v '^ *+' conftest.er1 >conftest.err
40378 rm -f conftest.er1
40379 cat conftest.err >&5
40380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40381 (exit $ac_status); } && {
40382 test -z "$ac_cxx_werror_flag" ||
40383 test ! -s conftest.err
40384 } && test -s conftest.$ac_objext; then
40385 ac_header_compiler=yes
40386 else
40387 echo "$as_me: failed program was:" >&5
40388 sed 's/^/| /' conftest.$ac_ext >&5
40390 ac_header_compiler=no
40393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40395 echo "${ECHO_T}$ac_header_compiler" >&6; }
40397 # Is the header present?
40398 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
40399 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
40400 cat >conftest.$ac_ext <<_ACEOF
40401 /* confdefs.h. */
40402 _ACEOF
40403 cat confdefs.h >>conftest.$ac_ext
40404 cat >>conftest.$ac_ext <<_ACEOF
40405 /* end confdefs.h. */
40406 #include </usr/local/include/ptlib.h>
40407 _ACEOF
40408 if { (ac_try="$ac_cpp conftest.$ac_ext"
40409 case "(($ac_try" in
40410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40411 *) ac_try_echo=$ac_try;;
40412 esac
40413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40415 ac_status=$?
40416 grep -v '^ *+' conftest.er1 >conftest.err
40417 rm -f conftest.er1
40418 cat conftest.err >&5
40419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420 (exit $ac_status); } >/dev/null && {
40421 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40422 test ! -s conftest.err
40423 }; then
40424 ac_header_preproc=yes
40425 else
40426 echo "$as_me: failed program was:" >&5
40427 sed 's/^/| /' conftest.$ac_ext >&5
40429 ac_header_preproc=no
40432 rm -f conftest.err conftest.$ac_ext
40433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40434 echo "${ECHO_T}$ac_header_preproc" >&6; }
40436 # So? What about this header?
40437 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40438 yes:no: )
40439 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40440 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40441 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
40442 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
40443 ac_header_preproc=yes
40445 no:yes:* )
40446 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
40447 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
40448 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
40449 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40450 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
40451 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
40452 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40453 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40454 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
40455 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40456 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
40457 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40458 ( cat <<\_ASBOX
40459 ## ------------------------------- ##
40460 ## Report this to www.asterisk.org ##
40461 ## ------------------------------- ##
40462 _ASBOX
40463 ) | sed "s/^/$as_me: WARNING: /" >&2
40465 esac
40466 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
40467 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
40468 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40469 echo $ECHO_N "(cached) $ECHO_C" >&6
40470 else
40471 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
40473 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
40474 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
40477 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
40478 HAS_PWLIB=1
40482 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40483 # Extract the first word of "ptlib-config", so it can be a program name with args.
40484 set dummy ptlib-config; ac_word=$2
40485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40487 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40488 echo $ECHO_N "(cached) $ECHO_C" >&6
40489 else
40490 case $PTLIB_CONFIG in
40491 [\\/]* | ?:[\\/]*)
40492 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40496 for as_dir in /usr/local/bin
40498 IFS=$as_save_IFS
40499 test -z "$as_dir" && as_dir=.
40500 for ac_exec_ext in '' $ac_executable_extensions; do
40501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40502 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40504 break 2
40506 done
40507 done
40508 IFS=$as_save_IFS
40511 esac
40513 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40514 if test -n "$PTLIB_CONFIG"; then
40515 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40516 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40517 else
40518 { echo "$as_me:$LINENO: result: no" >&5
40519 echo "${ECHO_T}no" >&6; }
40523 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
40524 # Extract the first word of "ptlib-config", so it can be a program name with args.
40525 set dummy ptlib-config; ac_word=$2
40526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40528 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40529 echo $ECHO_N "(cached) $ECHO_C" >&6
40530 else
40531 case $PTLIB_CONFIG in
40532 [\\/]* | ?:[\\/]*)
40533 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40537 for as_dir in /usr/local/share/pwlib/make
40539 IFS=$as_save_IFS
40540 test -z "$as_dir" && as_dir=.
40541 for ac_exec_ext in '' $ac_executable_extensions; do
40542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40543 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40545 break 2
40547 done
40548 done
40549 IFS=$as_save_IFS
40552 esac
40554 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40555 if test -n "$PTLIB_CONFIG"; then
40556 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40557 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40558 else
40559 { echo "$as_me:$LINENO: result: no" >&5
40560 echo "${ECHO_T}no" >&6; }
40565 PWLIB_INCDIR="/usr/local/include"
40566 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
40567 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40568 if test "x$LIB64" != "x"; then
40569 PWLIB_LIBDIR="/usr/local/lib64"
40570 else
40571 PWLIB_LIBDIR="/usr/local/lib"
40574 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
40575 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
40576 else
40577 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40578 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
40579 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
40580 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40581 echo $ECHO_N "(cached) $ECHO_C" >&6
40583 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
40584 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
40585 else
40586 # Is the header compilable?
40587 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
40588 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
40589 cat >conftest.$ac_ext <<_ACEOF
40590 /* confdefs.h. */
40591 _ACEOF
40592 cat confdefs.h >>conftest.$ac_ext
40593 cat >>conftest.$ac_ext <<_ACEOF
40594 /* end confdefs.h. */
40595 $ac_includes_default
40596 #include </usr/include/ptlib.h>
40597 _ACEOF
40598 rm -f conftest.$ac_objext
40599 if { (ac_try="$ac_compile"
40600 case "(($ac_try" in
40601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40602 *) ac_try_echo=$ac_try;;
40603 esac
40604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40605 (eval "$ac_compile") 2>conftest.er1
40606 ac_status=$?
40607 grep -v '^ *+' conftest.er1 >conftest.err
40608 rm -f conftest.er1
40609 cat conftest.err >&5
40610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40611 (exit $ac_status); } && {
40612 test -z "$ac_cxx_werror_flag" ||
40613 test ! -s conftest.err
40614 } && test -s conftest.$ac_objext; then
40615 ac_header_compiler=yes
40616 else
40617 echo "$as_me: failed program was:" >&5
40618 sed 's/^/| /' conftest.$ac_ext >&5
40620 ac_header_compiler=no
40623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40625 echo "${ECHO_T}$ac_header_compiler" >&6; }
40627 # Is the header present?
40628 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
40629 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
40630 cat >conftest.$ac_ext <<_ACEOF
40631 /* confdefs.h. */
40632 _ACEOF
40633 cat confdefs.h >>conftest.$ac_ext
40634 cat >>conftest.$ac_ext <<_ACEOF
40635 /* end confdefs.h. */
40636 #include </usr/include/ptlib.h>
40637 _ACEOF
40638 if { (ac_try="$ac_cpp conftest.$ac_ext"
40639 case "(($ac_try" in
40640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40641 *) ac_try_echo=$ac_try;;
40642 esac
40643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40645 ac_status=$?
40646 grep -v '^ *+' conftest.er1 >conftest.err
40647 rm -f conftest.er1
40648 cat conftest.err >&5
40649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40650 (exit $ac_status); } >/dev/null && {
40651 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40652 test ! -s conftest.err
40653 }; then
40654 ac_header_preproc=yes
40655 else
40656 echo "$as_me: failed program was:" >&5
40657 sed 's/^/| /' conftest.$ac_ext >&5
40659 ac_header_preproc=no
40662 rm -f conftest.err conftest.$ac_ext
40663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40664 echo "${ECHO_T}$ac_header_preproc" >&6; }
40666 # So? What about this header?
40667 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40668 yes:no: )
40669 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40670 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40671 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
40672 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
40673 ac_header_preproc=yes
40675 no:yes:* )
40676 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
40677 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
40678 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
40679 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40680 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
40681 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
40682 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40683 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40684 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
40685 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40686 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
40687 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40688 ( cat <<\_ASBOX
40689 ## ------------------------------- ##
40690 ## Report this to www.asterisk.org ##
40691 ## ------------------------------- ##
40692 _ASBOX
40693 ) | sed "s/^/$as_me: WARNING: /" >&2
40695 esac
40696 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
40697 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
40698 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40699 echo $ECHO_N "(cached) $ECHO_C" >&6
40700 else
40701 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
40703 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
40704 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
40707 if test $ac_cv_header__usr_include_ptlib_h = yes; then
40708 HAS_PWLIB=1
40712 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40713 # Extract the first word of "ptlib-config", so it can be a program name with args.
40714 set dummy ptlib-config; ac_word=$2
40715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40717 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40718 echo $ECHO_N "(cached) $ECHO_C" >&6
40719 else
40720 case $PTLIB_CONFIG in
40721 [\\/]* | ?:[\\/]*)
40722 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40726 for as_dir in /usr/share/pwlib/make
40728 IFS=$as_save_IFS
40729 test -z "$as_dir" && as_dir=.
40730 for ac_exec_ext in '' $ac_executable_extensions; do
40731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40732 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40734 break 2
40736 done
40737 done
40738 IFS=$as_save_IFS
40741 esac
40743 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40744 if test -n "$PTLIB_CONFIG"; then
40745 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40746 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40747 else
40748 { echo "$as_me:$LINENO: result: no" >&5
40749 echo "${ECHO_T}no" >&6; }
40753 PWLIB_INCDIR="/usr/include"
40754 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
40755 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40756 if test "x$LIB64" != "x"; then
40757 PWLIB_LIBDIR="/usr/lib64"
40758 else
40759 PWLIB_LIBDIR="/usr/lib"
40762 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
40763 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
40770 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
40771 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
40772 # exit
40775 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40776 if test "${PWLIBDIR:-unset}" = "unset" ; then
40777 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
40778 PWLIBDIR=`$PTLIB_CONFIG --prefix`
40779 else
40780 echo "Cannot find ptlib-config - please install and try again"
40781 exit
40785 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
40786 PWLIBDIR="/usr/share/pwlib"
40787 PWLIB_INCDIR="/usr/include"
40788 if test "x$LIB64" != "x"; then
40789 PWLIB_LIBDIR="/usr/lib64"
40790 else
40791 PWLIB_LIBDIR="/usr/lib"
40794 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
40795 PWLIBDIR="/usr/local/share/pwlib"
40796 PWLIB_INCDIR="/usr/local/include"
40797 if test "x$LIB64" != "x"; then
40798 PWLIB_LIBDIR="/usr/local/lib64"
40799 else
40800 PWLIB_LIBDIR="/usr/local/lib"
40804 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
40805 PWLIB_INCDIR="${PWLIBDIR}/include"
40807 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40808 PWLIB_LIBDIR="${PWLIBDIR}/lib"
40815 ac_ext=c
40816 ac_cpp='$CPP $CPPFLAGS'
40817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40823 if test "${HAS_PWLIB:-unset}" != "unset"; then
40824 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
40825 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
40826 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
40827 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
40828 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
40829 let PWLIB_REQ=1*10000+9*100+2
40831 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
40832 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
40833 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
40834 { echo "$as_me:$LINENO: result: no" >&5
40835 echo "${ECHO_T}no" >&6; }
40836 unset HAS_PWLIB
40837 else
40838 { echo "$as_me:$LINENO: result: yes" >&5
40839 echo "${ECHO_T}yes" >&6; }
40844 if test "${HAS_PWLIB:-unset}" != "unset"; then
40846 PWLIB_OSTYPE=
40847 case "$host_os" in
40848 linux*) PWLIB_OSTYPE=linux ;
40850 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
40852 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
40853 ENDLDLIBS="-lossaudio" ;
40855 netbsd* ) PWLIB_OSTYPE=NetBSD ;
40856 ENDLDLIBS="-lossaudio" ;
40858 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
40860 darwin* ) PWLIB_OSTYPE=Darwin ;
40862 beos*) PWLIB_OSTYPE=beos ;
40863 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
40865 cygwin*) PWLIB_OSTYPE=cygwin ;
40867 mingw*) PWLIB_OSTYPE=mingw ;
40868 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
40869 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
40871 * ) PWLIB_OSTYPE="$host_os" ;
40872 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
40873 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
40875 esac
40877 PWLIB_MACHTYPE=
40878 case "$host_cpu" in
40879 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
40882 x86_64) PWLIB_MACHTYPE=x86_64 ;
40883 P_64BIT=1 ;
40884 LIB64=1 ;
40887 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
40888 P_64BIT=1 ;
40891 sparc ) PWLIB_MACHTYPE=sparc ;
40894 powerpc ) PWLIB_MACHTYPE=ppc ;
40897 ppc ) PWLIB_MACHTYPE=ppc ;
40900 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
40901 P_64BIT=1 ;
40902 LIB64=1 ;
40905 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
40906 P_64BIT=1 ;
40907 LIB64=1 ;
40910 ia64) PWLIB_MACHTYPE=ia64 ;
40911 P_64BIT=1 ;
40914 s390x) PWLIB_MACHTYPE=s390x ;
40915 P_64BIT=1 ;
40916 LIB64=1 ;
40919 s390) PWLIB_MACHTYPE=s390 ;
40922 * ) PWLIB_MACHTYPE="$host_cpu";
40923 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
40924 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
40925 esac
40927 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
40932 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
40935 if test "${HAS_PWLIB:-unset}" != "unset"; then
40936 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
40937 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
40939 saved_cppflags="${CPPFLAGS}"
40940 saved_libs="${LIBS}"
40941 if test "${PWLIB_LIB:-unset}" != "unset"; then
40942 LIBS="${LIBS} ${PWLIB_LIB} "
40943 else
40944 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
40946 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
40948 ac_ext=cpp
40949 ac_cpp='$CXXCPP $CPPFLAGS'
40950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40955 cat >conftest.$ac_ext <<_ACEOF
40956 /* confdefs.h. */
40957 _ACEOF
40958 cat confdefs.h >>conftest.$ac_ext
40959 cat >>conftest.$ac_ext <<_ACEOF
40960 /* end confdefs.h. */
40961 #include "ptlib.h"
40963 main ()
40965 BOOL q = PTime::IsDaylightSavings();
40967 return 0;
40969 _ACEOF
40970 rm -f conftest.$ac_objext conftest$ac_exeext
40971 if { (ac_try="$ac_link"
40972 case "(($ac_try" in
40973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40974 *) ac_try_echo=$ac_try;;
40975 esac
40976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40977 (eval "$ac_link") 2>conftest.er1
40978 ac_status=$?
40979 grep -v '^ *+' conftest.er1 >conftest.err
40980 rm -f conftest.er1
40981 cat conftest.err >&5
40982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40983 (exit $ac_status); } && {
40984 test -z "$ac_cxx_werror_flag" ||
40985 test ! -s conftest.err
40986 } && test -s conftest$ac_exeext &&
40987 $as_test_x conftest$ac_exeext; then
40988 { echo "$as_me:$LINENO: result: yes" >&5
40989 echo "${ECHO_T}yes" >&6; }
40990 ac_cv_lib_PWLIB="yes"
40992 else
40993 echo "$as_me: failed program was:" >&5
40994 sed 's/^/| /' conftest.$ac_ext >&5
40996 { echo "$as_me:$LINENO: result: no" >&5
40997 echo "${ECHO_T}no" >&6; }
40998 ac_cv_lib_PWLIB="no"
41003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41004 conftest$ac_exeext conftest.$ac_ext
41006 ac_ext=c
41007 ac_cpp='$CPP $CPPFLAGS'
41008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41013 LIBS="${saved_libs}"
41014 CPPFLAGS="${saved_cppflags}"
41016 if test "${ac_cv_lib_PWLIB}" = "yes"; then
41017 if test "${PWLIB_LIB:-undef}" = "undef"; then
41018 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
41019 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
41020 else
41021 PWLIB_LIB="-l${PLATFORM_PWLIB}"
41024 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
41025 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
41027 PBX_PWLIB=1
41029 cat >>confdefs.h <<\_ACEOF
41030 #define HAVE_PWLIB 1
41031 _ACEOF
41039 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
41040 if test -n "${OPENH323_DIR}"; then
41041 OPENH323DIR="${OPENH323_DIR}"
41044 OPENH323_INCDIR=
41045 OPENH323_LIBDIR=
41046 ac_ext=cpp
41047 ac_cpp='$CXXCPP $CPPFLAGS'
41048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41052 if test "${OPENH323DIR:-unset}" != "unset" ; then
41053 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
41054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41055 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
41056 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
41057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41058 echo $ECHO_N "(cached) $ECHO_C" >&6
41060 ac_res=`eval echo '${'$as_ac_Header'}'`
41061 { echo "$as_me:$LINENO: result: $ac_res" >&5
41062 echo "${ECHO_T}$ac_res" >&6; }
41063 else
41064 # Is the header compilable?
41065 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
41066 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
41067 cat >conftest.$ac_ext <<_ACEOF
41068 /* confdefs.h. */
41069 _ACEOF
41070 cat confdefs.h >>conftest.$ac_ext
41071 cat >>conftest.$ac_ext <<_ACEOF
41072 /* end confdefs.h. */
41073 $ac_includes_default
41074 #include <${OPENH323DIR}/version.h>
41075 _ACEOF
41076 rm -f conftest.$ac_objext
41077 if { (ac_try="$ac_compile"
41078 case "(($ac_try" in
41079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41080 *) ac_try_echo=$ac_try;;
41081 esac
41082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41083 (eval "$ac_compile") 2>conftest.er1
41084 ac_status=$?
41085 grep -v '^ *+' conftest.er1 >conftest.err
41086 rm -f conftest.er1
41087 cat conftest.err >&5
41088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41089 (exit $ac_status); } && {
41090 test -z "$ac_cxx_werror_flag" ||
41091 test ! -s conftest.err
41092 } && test -s conftest.$ac_objext; then
41093 ac_header_compiler=yes
41094 else
41095 echo "$as_me: failed program was:" >&5
41096 sed 's/^/| /' conftest.$ac_ext >&5
41098 ac_header_compiler=no
41101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41103 echo "${ECHO_T}$ac_header_compiler" >&6; }
41105 # Is the header present?
41106 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
41107 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
41108 cat >conftest.$ac_ext <<_ACEOF
41109 /* confdefs.h. */
41110 _ACEOF
41111 cat confdefs.h >>conftest.$ac_ext
41112 cat >>conftest.$ac_ext <<_ACEOF
41113 /* end confdefs.h. */
41114 #include <${OPENH323DIR}/version.h>
41115 _ACEOF
41116 if { (ac_try="$ac_cpp conftest.$ac_ext"
41117 case "(($ac_try" in
41118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41119 *) ac_try_echo=$ac_try;;
41120 esac
41121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41123 ac_status=$?
41124 grep -v '^ *+' conftest.er1 >conftest.err
41125 rm -f conftest.er1
41126 cat conftest.err >&5
41127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41128 (exit $ac_status); } >/dev/null && {
41129 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41130 test ! -s conftest.err
41131 }; then
41132 ac_header_preproc=yes
41133 else
41134 echo "$as_me: failed program was:" >&5
41135 sed 's/^/| /' conftest.$ac_ext >&5
41137 ac_header_preproc=no
41140 rm -f conftest.err conftest.$ac_ext
41141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41142 echo "${ECHO_T}$ac_header_preproc" >&6; }
41144 # So? What about this header?
41145 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41146 yes:no: )
41147 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
41148 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41149 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
41150 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
41151 ac_header_preproc=yes
41153 no:yes:* )
41154 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
41155 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
41156 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
41157 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
41158 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
41159 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
41160 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
41161 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
41162 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
41163 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
41164 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
41165 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
41166 ( cat <<\_ASBOX
41167 ## ------------------------------- ##
41168 ## Report this to www.asterisk.org ##
41169 ## ------------------------------- ##
41170 _ASBOX
41171 ) | sed "s/^/$as_me: WARNING: /" >&2
41173 esac
41174 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
41175 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
41176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41177 echo $ECHO_N "(cached) $ECHO_C" >&6
41178 else
41179 eval "$as_ac_Header=\$ac_header_preproc"
41181 ac_res=`eval echo '${'$as_ac_Header'}'`
41182 { echo "$as_me:$LINENO: result: $ac_res" >&5
41183 echo "${ECHO_T}$ac_res" >&6; }
41186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41187 HAS_OPENH323=1
41192 if test "${HAS_OPENH323:-unset}" = "unset" ; then
41193 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
41194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41195 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
41196 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
41197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41198 echo $ECHO_N "(cached) $ECHO_C" >&6
41200 ac_res=`eval echo '${'$as_ac_Header'}'`
41201 { echo "$as_me:$LINENO: result: $ac_res" >&5
41202 echo "${ECHO_T}$ac_res" >&6; }
41203 else
41204 # Is the header compilable?
41205 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
41206 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
41207 cat >conftest.$ac_ext <<_ACEOF
41208 /* confdefs.h. */
41209 _ACEOF
41210 cat confdefs.h >>conftest.$ac_ext
41211 cat >>conftest.$ac_ext <<_ACEOF
41212 /* end confdefs.h. */
41213 $ac_includes_default
41214 #include <${PWLIBDIR}/../openh323/version.h>
41215 _ACEOF
41216 rm -f conftest.$ac_objext
41217 if { (ac_try="$ac_compile"
41218 case "(($ac_try" in
41219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41220 *) ac_try_echo=$ac_try;;
41221 esac
41222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41223 (eval "$ac_compile") 2>conftest.er1
41224 ac_status=$?
41225 grep -v '^ *+' conftest.er1 >conftest.err
41226 rm -f conftest.er1
41227 cat conftest.err >&5
41228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41229 (exit $ac_status); } && {
41230 test -z "$ac_cxx_werror_flag" ||
41231 test ! -s conftest.err
41232 } && test -s conftest.$ac_objext; then
41233 ac_header_compiler=yes
41234 else
41235 echo "$as_me: failed program was:" >&5
41236 sed 's/^/| /' conftest.$ac_ext >&5
41238 ac_header_compiler=no
41241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41243 echo "${ECHO_T}$ac_header_compiler" >&6; }
41245 # Is the header present?
41246 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
41247 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
41248 cat >conftest.$ac_ext <<_ACEOF
41249 /* confdefs.h. */
41250 _ACEOF
41251 cat confdefs.h >>conftest.$ac_ext
41252 cat >>conftest.$ac_ext <<_ACEOF
41253 /* end confdefs.h. */
41254 #include <${PWLIBDIR}/../openh323/version.h>
41255 _ACEOF
41256 if { (ac_try="$ac_cpp conftest.$ac_ext"
41257 case "(($ac_try" in
41258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41259 *) ac_try_echo=$ac_try;;
41260 esac
41261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41263 ac_status=$?
41264 grep -v '^ *+' conftest.er1 >conftest.err
41265 rm -f conftest.er1
41266 cat conftest.err >&5
41267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268 (exit $ac_status); } >/dev/null && {
41269 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41270 test ! -s conftest.err
41271 }; then
41272 ac_header_preproc=yes
41273 else
41274 echo "$as_me: failed program was:" >&5
41275 sed 's/^/| /' conftest.$ac_ext >&5
41277 ac_header_preproc=no
41280 rm -f conftest.err conftest.$ac_ext
41281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41282 echo "${ECHO_T}$ac_header_preproc" >&6; }
41284 # So? What about this header?
41285 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41286 yes:no: )
41287 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
41288 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41289 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
41290 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
41291 ac_header_preproc=yes
41293 no:yes:* )
41294 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
41295 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
41296 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
41297 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
41298 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
41299 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
41300 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
41301 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
41302 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
41303 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
41304 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
41305 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
41306 ( cat <<\_ASBOX
41307 ## ------------------------------- ##
41308 ## Report this to www.asterisk.org ##
41309 ## ------------------------------- ##
41310 _ASBOX
41311 ) | sed "s/^/$as_me: WARNING: /" >&2
41313 esac
41314 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
41315 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
41316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41317 echo $ECHO_N "(cached) $ECHO_C" >&6
41318 else
41319 eval "$as_ac_Header=\$ac_header_preproc"
41321 ac_res=`eval echo '${'$as_ac_Header'}'`
41322 { echo "$as_me:$LINENO: result: $ac_res" >&5
41323 echo "${ECHO_T}$ac_res" >&6; }
41326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41327 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
41331 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41332 OPENH323DIR="${PWLIBDIR}/../openh323"
41333 saved_cppflags="${CPPFLAGS}"
41334 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
41335 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
41336 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
41337 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
41338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41339 echo $ECHO_N "(cached) $ECHO_C" >&6
41340 else
41341 cat >conftest.$ac_ext <<_ACEOF
41342 /* confdefs.h. */
41343 _ACEOF
41344 cat confdefs.h >>conftest.$ac_ext
41345 cat >>conftest.$ac_ext <<_ACEOF
41346 /* end confdefs.h. */
41347 #include <ptlib.h>
41349 #include <${OPENH323DIR}/include/h323.h>
41350 _ACEOF
41351 rm -f conftest.$ac_objext
41352 if { (ac_try="$ac_compile"
41353 case "(($ac_try" in
41354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41355 *) ac_try_echo=$ac_try;;
41356 esac
41357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41358 (eval "$ac_compile") 2>conftest.er1
41359 ac_status=$?
41360 grep -v '^ *+' conftest.er1 >conftest.err
41361 rm -f conftest.er1
41362 cat conftest.err >&5
41363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41364 (exit $ac_status); } && {
41365 test -z "$ac_cxx_werror_flag" ||
41366 test ! -s conftest.err
41367 } && test -s conftest.$ac_objext; then
41368 eval "$as_ac_Header=yes"
41369 else
41370 echo "$as_me: failed program was:" >&5
41371 sed 's/^/| /' conftest.$ac_ext >&5
41373 eval "$as_ac_Header=no"
41376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41378 ac_res=`eval echo '${'$as_ac_Header'}'`
41379 { echo "$as_me:$LINENO: result: $ac_res" >&5
41380 echo "${ECHO_T}$ac_res" >&6; }
41381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41383 else
41384 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
41388 CPPFLAGS="${saved_cppflags}"
41389 else
41390 saved_cppflags="${CPPFLAGS}"
41391 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
41392 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
41393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41394 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
41395 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
41396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41397 echo $ECHO_N "(cached) $ECHO_C" >&6
41399 ac_res=`eval echo '${'$as_ac_Header'}'`
41400 { echo "$as_me:$LINENO: result: $ac_res" >&5
41401 echo "${ECHO_T}$ac_res" >&6; }
41402 else
41403 # Is the header compilable?
41404 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
41405 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
41406 cat >conftest.$ac_ext <<_ACEOF
41407 /* confdefs.h. */
41408 _ACEOF
41409 cat confdefs.h >>conftest.$ac_ext
41410 cat >>conftest.$ac_ext <<_ACEOF
41411 /* end confdefs.h. */
41412 $ac_includes_default
41413 #include <${HOME}/openh323/include/h323.h>
41414 _ACEOF
41415 rm -f conftest.$ac_objext
41416 if { (ac_try="$ac_compile"
41417 case "(($ac_try" in
41418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41419 *) ac_try_echo=$ac_try;;
41420 esac
41421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41422 (eval "$ac_compile") 2>conftest.er1
41423 ac_status=$?
41424 grep -v '^ *+' conftest.er1 >conftest.err
41425 rm -f conftest.er1
41426 cat conftest.err >&5
41427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41428 (exit $ac_status); } && {
41429 test -z "$ac_cxx_werror_flag" ||
41430 test ! -s conftest.err
41431 } && test -s conftest.$ac_objext; then
41432 ac_header_compiler=yes
41433 else
41434 echo "$as_me: failed program was:" >&5
41435 sed 's/^/| /' conftest.$ac_ext >&5
41437 ac_header_compiler=no
41440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41442 echo "${ECHO_T}$ac_header_compiler" >&6; }
41444 # Is the header present?
41445 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
41446 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
41447 cat >conftest.$ac_ext <<_ACEOF
41448 /* confdefs.h. */
41449 _ACEOF
41450 cat confdefs.h >>conftest.$ac_ext
41451 cat >>conftest.$ac_ext <<_ACEOF
41452 /* end confdefs.h. */
41453 #include <${HOME}/openh323/include/h323.h>
41454 _ACEOF
41455 if { (ac_try="$ac_cpp conftest.$ac_ext"
41456 case "(($ac_try" in
41457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41458 *) ac_try_echo=$ac_try;;
41459 esac
41460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41462 ac_status=$?
41463 grep -v '^ *+' conftest.er1 >conftest.err
41464 rm -f conftest.er1
41465 cat conftest.err >&5
41466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41467 (exit $ac_status); } >/dev/null && {
41468 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41469 test ! -s conftest.err
41470 }; then
41471 ac_header_preproc=yes
41472 else
41473 echo "$as_me: failed program was:" >&5
41474 sed 's/^/| /' conftest.$ac_ext >&5
41476 ac_header_preproc=no
41479 rm -f conftest.err conftest.$ac_ext
41480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41481 echo "${ECHO_T}$ac_header_preproc" >&6; }
41483 # So? What about this header?
41484 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41485 yes:no: )
41486 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
41487 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41488 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
41489 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
41490 ac_header_preproc=yes
41492 no:yes:* )
41493 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
41494 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
41495 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
41496 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
41497 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
41498 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
41499 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
41500 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
41501 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
41502 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
41503 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
41504 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
41505 ( cat <<\_ASBOX
41506 ## ------------------------------- ##
41507 ## Report this to www.asterisk.org ##
41508 ## ------------------------------- ##
41509 _ASBOX
41510 ) | sed "s/^/$as_me: WARNING: /" >&2
41512 esac
41513 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
41514 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
41515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41516 echo $ECHO_N "(cached) $ECHO_C" >&6
41517 else
41518 eval "$as_ac_Header=\$ac_header_preproc"
41520 ac_res=`eval echo '${'$as_ac_Header'}'`
41521 { echo "$as_me:$LINENO: result: $ac_res" >&5
41522 echo "${ECHO_T}$ac_res" >&6; }
41525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41526 HAS_OPENH323=1
41530 CPPFLAGS="${saved_cppflags}"
41531 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41532 OPENH323DIR="${HOME}/openh323"
41533 else
41534 saved_cppflags="${CPPFLAGS}"
41535 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
41536 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41537 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
41538 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
41539 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41540 echo $ECHO_N "(cached) $ECHO_C" >&6
41542 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
41543 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
41544 else
41545 # Is the header compilable?
41546 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
41547 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
41548 cat >conftest.$ac_ext <<_ACEOF
41549 /* confdefs.h. */
41550 _ACEOF
41551 cat confdefs.h >>conftest.$ac_ext
41552 cat >>conftest.$ac_ext <<_ACEOF
41553 /* end confdefs.h. */
41554 $ac_includes_default
41555 #include </usr/local/include/openh323/h323.h>
41556 _ACEOF
41557 rm -f conftest.$ac_objext
41558 if { (ac_try="$ac_compile"
41559 case "(($ac_try" in
41560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41561 *) ac_try_echo=$ac_try;;
41562 esac
41563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41564 (eval "$ac_compile") 2>conftest.er1
41565 ac_status=$?
41566 grep -v '^ *+' conftest.er1 >conftest.err
41567 rm -f conftest.er1
41568 cat conftest.err >&5
41569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41570 (exit $ac_status); } && {
41571 test -z "$ac_cxx_werror_flag" ||
41572 test ! -s conftest.err
41573 } && test -s conftest.$ac_objext; then
41574 ac_header_compiler=yes
41575 else
41576 echo "$as_me: failed program was:" >&5
41577 sed 's/^/| /' conftest.$ac_ext >&5
41579 ac_header_compiler=no
41582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41584 echo "${ECHO_T}$ac_header_compiler" >&6; }
41586 # Is the header present?
41587 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
41588 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
41589 cat >conftest.$ac_ext <<_ACEOF
41590 /* confdefs.h. */
41591 _ACEOF
41592 cat confdefs.h >>conftest.$ac_ext
41593 cat >>conftest.$ac_ext <<_ACEOF
41594 /* end confdefs.h. */
41595 #include </usr/local/include/openh323/h323.h>
41596 _ACEOF
41597 if { (ac_try="$ac_cpp conftest.$ac_ext"
41598 case "(($ac_try" in
41599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41600 *) ac_try_echo=$ac_try;;
41601 esac
41602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41604 ac_status=$?
41605 grep -v '^ *+' conftest.er1 >conftest.err
41606 rm -f conftest.er1
41607 cat conftest.err >&5
41608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41609 (exit $ac_status); } >/dev/null && {
41610 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41611 test ! -s conftest.err
41612 }; then
41613 ac_header_preproc=yes
41614 else
41615 echo "$as_me: failed program was:" >&5
41616 sed 's/^/| /' conftest.$ac_ext >&5
41618 ac_header_preproc=no
41621 rm -f conftest.err conftest.$ac_ext
41622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41623 echo "${ECHO_T}$ac_header_preproc" >&6; }
41625 # So? What about this header?
41626 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41627 yes:no: )
41628 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
41629 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41630 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
41631 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
41632 ac_header_preproc=yes
41634 no:yes:* )
41635 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
41636 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
41637 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
41638 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
41639 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
41640 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
41641 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
41642 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
41643 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
41644 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
41645 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
41646 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
41647 ( cat <<\_ASBOX
41648 ## ------------------------------- ##
41649 ## Report this to www.asterisk.org ##
41650 ## ------------------------------- ##
41651 _ASBOX
41652 ) | sed "s/^/$as_me: WARNING: /" >&2
41654 esac
41655 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
41656 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
41657 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41658 echo $ECHO_N "(cached) $ECHO_C" >&6
41659 else
41660 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
41662 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
41663 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
41666 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
41667 HAS_OPENH323=1
41671 CPPFLAGS="${saved_cppflags}"
41672 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41673 OPENH323DIR="/usr/local/share/openh323"
41674 OPENH323_INCDIR="/usr/local/include/openh323"
41675 if test "x$LIB64" != "x"; then
41676 OPENH323_LIBDIR="/usr/local/lib64"
41677 else
41678 OPENH323_LIBDIR="/usr/local/lib"
41680 else
41681 saved_cppflags="${CPPFLAGS}"
41682 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
41683 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
41684 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
41685 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
41686 echo $ECHO_N "(cached) $ECHO_C" >&6
41687 else
41688 cat >conftest.$ac_ext <<_ACEOF
41689 /* confdefs.h. */
41690 _ACEOF
41691 cat confdefs.h >>conftest.$ac_ext
41692 cat >>conftest.$ac_ext <<_ACEOF
41693 /* end confdefs.h. */
41694 #include <ptlib.h>
41696 #include </usr/include/openh323/h323.h>
41697 _ACEOF
41698 rm -f conftest.$ac_objext
41699 if { (ac_try="$ac_compile"
41700 case "(($ac_try" in
41701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41702 *) ac_try_echo=$ac_try;;
41703 esac
41704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41705 (eval "$ac_compile") 2>conftest.er1
41706 ac_status=$?
41707 grep -v '^ *+' conftest.er1 >conftest.err
41708 rm -f conftest.er1
41709 cat conftest.err >&5
41710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41711 (exit $ac_status); } && {
41712 test -z "$ac_cxx_werror_flag" ||
41713 test ! -s conftest.err
41714 } && test -s conftest.$ac_objext; then
41715 ac_cv_header__usr_include_openh323_h323_h=yes
41716 else
41717 echo "$as_me: failed program was:" >&5
41718 sed 's/^/| /' conftest.$ac_ext >&5
41720 ac_cv_header__usr_include_openh323_h323_h=no
41723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41725 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
41726 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
41727 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
41728 HAS_OPENH323=1
41732 CPPFLAGS="${saved_cppflags}"
41733 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41734 OPENH323DIR="/usr/share/openh323"
41735 OPENH323_INCDIR="/usr/include/openh323"
41736 if test "x$LIB64" != "x"; then
41737 OPENH323_LIBDIR="/usr/lib64"
41738 else
41739 OPENH323_LIBDIR="/usr/lib"
41747 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41748 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
41749 OPENH323_INCDIR="${OPENH323DIR}/include"
41751 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
41752 OPENH323_LIBDIR="${OPENH323DIR}/lib"
41755 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
41756 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
41757 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
41763 ac_ext=c
41764 ac_cpp='$CPP $CPPFLAGS'
41765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41771 if test "${HAS_OPENH323:-unset}" != "unset"; then
41772 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
41773 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
41774 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
41775 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
41776 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
41777 let OPENH323_REQ=1*10000+17*100+3
41779 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
41780 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
41781 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
41782 { echo "$as_me:$LINENO: result: no" >&5
41783 echo "${ECHO_T}no" >&6; }
41784 unset HAS_OPENH323
41785 else
41786 { echo "$as_me:$LINENO: result: yes" >&5
41787 echo "${ECHO_T}yes" >&6; }
41792 if test "${HAS_OPENH323:-unset}" != "unset"; then
41793 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
41794 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
41795 OPENH323_SUFFIX=
41796 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
41797 for pfx in $prefixes; do
41798 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
41799 libfile=
41800 if test -n "$files"; then
41801 for f in $files; do
41802 if test -f $f -a ! -L $f; then
41803 libfile=`basename $f`
41804 break;
41806 done
41808 if test -n "$libfile"; then
41809 OPENH323_PREFIX=$pfx
41810 break;
41812 done
41813 if test "${libfile:-unset}" != "unset"; then
41814 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
41816 case "${OPENH323_SUFFIX}" in
41818 OPENH323_BUILD="notrace";;
41820 OPENH323_BUILD="opt";;
41822 OPENH323_BUILD="debug";;
41824 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
41825 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
41826 if test "x$notrace" = "x"; then
41827 notrace="0"
41829 if test "$notrace" -ne 0; then
41830 OPENH323_BUILD="notrace"
41831 else
41832 OPENH323_BUILD="opt"
41834 OPENH323_LIB="-l${OPENH323_PREFIX}"
41835 else
41836 OPENH323_BUILD="notrace"
41839 esac
41840 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
41841 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
41847 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
41849 if test "${HAS_OPENH323:-unset}" != "unset"; then
41850 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
41851 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
41853 saved_cppflags="${CPPFLAGS}"
41854 saved_libs="${LIBS}"
41855 if test "${OPENH323_LIB:-unset}" != "unset"; then
41856 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
41857 else
41858 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
41860 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
41862 ac_ext=cpp
41863 ac_cpp='$CXXCPP $CPPFLAGS'
41864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41869 cat >conftest.$ac_ext <<_ACEOF
41870 /* confdefs.h. */
41871 _ACEOF
41872 cat confdefs.h >>conftest.$ac_ext
41873 cat >>conftest.$ac_ext <<_ACEOF
41874 /* end confdefs.h. */
41875 #include "ptlib.h"
41876 #include "h323.h"
41877 #include "h323ep.h"
41879 main ()
41881 H323EndPoint ep = H323EndPoint();
41883 return 0;
41885 _ACEOF
41886 rm -f conftest.$ac_objext conftest$ac_exeext
41887 if { (ac_try="$ac_link"
41888 case "(($ac_try" in
41889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41890 *) ac_try_echo=$ac_try;;
41891 esac
41892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41893 (eval "$ac_link") 2>conftest.er1
41894 ac_status=$?
41895 grep -v '^ *+' conftest.er1 >conftest.err
41896 rm -f conftest.er1
41897 cat conftest.err >&5
41898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41899 (exit $ac_status); } && {
41900 test -z "$ac_cxx_werror_flag" ||
41901 test ! -s conftest.err
41902 } && test -s conftest$ac_exeext &&
41903 $as_test_x conftest$ac_exeext; then
41904 { echo "$as_me:$LINENO: result: yes" >&5
41905 echo "${ECHO_T}yes" >&6; }
41906 ac_cv_lib_OPENH323="yes"
41908 else
41909 echo "$as_me: failed program was:" >&5
41910 sed 's/^/| /' conftest.$ac_ext >&5
41912 { echo "$as_me:$LINENO: result: no" >&5
41913 echo "${ECHO_T}no" >&6; }
41914 ac_cv_lib_OPENH323="no"
41919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41920 conftest$ac_exeext conftest.$ac_ext
41922 ac_ext=c
41923 ac_cpp='$CPP $CPPFLAGS'
41924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41929 LIBS="${saved_libs}"
41930 CPPFLAGS="${saved_cppflags}"
41932 if test "${ac_cv_lib_OPENH323}" = "yes"; then
41933 if test "${OPENH323_LIB:-undef}" = "undef"; then
41934 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
41935 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
41936 else
41937 OPENH323_LIB="-l${PLATFORM_OPENH323}"
41940 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
41941 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
41943 PBX_OPENH323=1
41945 cat >>confdefs.h <<\_ACEOF
41946 #define HAVE_OPENH323 1
41947 _ACEOF
41955 if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
41956 pbxlibdir=""
41957 # if --with-LUA=DIR has been specified, use it.
41958 if test "x${LUA_DIR}" != "x"; then
41959 if test -d ${LUA_DIR}/lib; then
41960 pbxlibdir="-L${LUA_DIR}/lib"
41961 else
41962 pbxlibdir="-L${LUA_DIR}"
41965 pbxfuncname="luaL_newstate"
41966 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41967 AST_LUA_FOUND=yes
41968 else
41969 as_ac_Lib=`echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
41970 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua5.1" >&5
41971 echo $ECHO_N "checking for ${pbxfuncname} in -llua5.1... $ECHO_C" >&6; }
41972 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41973 echo $ECHO_N "(cached) $ECHO_C" >&6
41974 else
41975 ac_check_lib_save_LIBS=$LIBS
41976 LIBS="-llua5.1 ${pbxlibdir} $LIBS"
41977 cat >conftest.$ac_ext <<_ACEOF
41978 /* confdefs.h. */
41979 _ACEOF
41980 cat confdefs.h >>conftest.$ac_ext
41981 cat >>conftest.$ac_ext <<_ACEOF
41982 /* end confdefs.h. */
41984 /* Override any GCC internal prototype to avoid an error.
41985 Use char because int might match the return type of a GCC
41986 builtin and then its argument prototype would still apply. */
41987 #ifdef __cplusplus
41988 extern "C"
41989 #endif
41990 char ${pbxfuncname} ();
41992 main ()
41994 return ${pbxfuncname} ();
41996 return 0;
41998 _ACEOF
41999 rm -f conftest.$ac_objext conftest$ac_exeext
42000 if { (ac_try="$ac_link"
42001 case "(($ac_try" in
42002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42003 *) ac_try_echo=$ac_try;;
42004 esac
42005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42006 (eval "$ac_link") 2>conftest.er1
42007 ac_status=$?
42008 grep -v '^ *+' conftest.er1 >conftest.err
42009 rm -f conftest.er1
42010 cat conftest.err >&5
42011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42012 (exit $ac_status); } && {
42013 test -z "$ac_c_werror_flag" ||
42014 test ! -s conftest.err
42015 } && test -s conftest$ac_exeext &&
42016 $as_test_x conftest$ac_exeext; then
42017 eval "$as_ac_Lib=yes"
42018 else
42019 echo "$as_me: failed program was:" >&5
42020 sed 's/^/| /' conftest.$ac_ext >&5
42022 eval "$as_ac_Lib=no"
42025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42026 conftest$ac_exeext conftest.$ac_ext
42027 LIBS=$ac_check_lib_save_LIBS
42029 ac_res=`eval echo '${'$as_ac_Lib'}'`
42030 { echo "$as_me:$LINENO: result: $ac_res" >&5
42031 echo "${ECHO_T}$ac_res" >&6; }
42032 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42033 AST_LUA_FOUND=yes
42034 else
42035 AST_LUA_FOUND=no
42040 # now check for the header.
42041 if test "${AST_LUA_FOUND}" = "yes"; then
42042 LUA_LIB="${pbxlibdir} -llua5.1 "
42043 # if --with-LUA=DIR has been specified, use it.
42044 if test "x${LUA_DIR}" != "x"; then
42045 LUA_INCLUDE="-I${LUA_DIR}/include"
42047 LUA_INCLUDE="${LUA_INCLUDE} "
42048 if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
42049 LUA_HEADER_FOUND="1"
42050 else # check for the header
42051 saved_cppflags="${CPPFLAGS}"
42052 CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
42053 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
42054 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
42055 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
42056 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
42057 echo $ECHO_N "(cached) $ECHO_C" >&6
42059 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
42060 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
42061 else
42062 # Is the header compilable?
42063 { echo "$as_me:$LINENO: checking lua5.1/lua.h usability" >&5
42064 echo $ECHO_N "checking lua5.1/lua.h usability... $ECHO_C" >&6; }
42065 cat >conftest.$ac_ext <<_ACEOF
42066 /* confdefs.h. */
42067 _ACEOF
42068 cat confdefs.h >>conftest.$ac_ext
42069 cat >>conftest.$ac_ext <<_ACEOF
42070 /* end confdefs.h. */
42071 $ac_includes_default
42072 #include <lua5.1/lua.h>
42073 _ACEOF
42074 rm -f conftest.$ac_objext
42075 if { (ac_try="$ac_compile"
42076 case "(($ac_try" in
42077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42078 *) ac_try_echo=$ac_try;;
42079 esac
42080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42081 (eval "$ac_compile") 2>conftest.er1
42082 ac_status=$?
42083 grep -v '^ *+' conftest.er1 >conftest.err
42084 rm -f conftest.er1
42085 cat conftest.err >&5
42086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42087 (exit $ac_status); } && {
42088 test -z "$ac_c_werror_flag" ||
42089 test ! -s conftest.err
42090 } && test -s conftest.$ac_objext; then
42091 ac_header_compiler=yes
42092 else
42093 echo "$as_me: failed program was:" >&5
42094 sed 's/^/| /' conftest.$ac_ext >&5
42096 ac_header_compiler=no
42099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42101 echo "${ECHO_T}$ac_header_compiler" >&6; }
42103 # Is the header present?
42104 { echo "$as_me:$LINENO: checking lua5.1/lua.h presence" >&5
42105 echo $ECHO_N "checking lua5.1/lua.h presence... $ECHO_C" >&6; }
42106 cat >conftest.$ac_ext <<_ACEOF
42107 /* confdefs.h. */
42108 _ACEOF
42109 cat confdefs.h >>conftest.$ac_ext
42110 cat >>conftest.$ac_ext <<_ACEOF
42111 /* end confdefs.h. */
42112 #include <lua5.1/lua.h>
42113 _ACEOF
42114 if { (ac_try="$ac_cpp conftest.$ac_ext"
42115 case "(($ac_try" in
42116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42117 *) ac_try_echo=$ac_try;;
42118 esac
42119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42121 ac_status=$?
42122 grep -v '^ *+' conftest.er1 >conftest.err
42123 rm -f conftest.er1
42124 cat conftest.err >&5
42125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42126 (exit $ac_status); } >/dev/null && {
42127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42128 test ! -s conftest.err
42129 }; then
42130 ac_header_preproc=yes
42131 else
42132 echo "$as_me: failed program was:" >&5
42133 sed 's/^/| /' conftest.$ac_ext >&5
42135 ac_header_preproc=no
42138 rm -f conftest.err conftest.$ac_ext
42139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42140 echo "${ECHO_T}$ac_header_preproc" >&6; }
42142 # So? What about this header?
42143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42144 yes:no: )
42145 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
42146 echo "$as_me: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42147 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&5
42148 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&2;}
42149 ac_header_preproc=yes
42151 no:yes:* )
42152 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: present but cannot be compiled" >&5
42153 echo "$as_me: WARNING: lua5.1/lua.h: present but cannot be compiled" >&2;}
42154 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&5
42155 echo "$as_me: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&2;}
42156 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&5
42157 echo "$as_me: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&2;}
42158 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&5
42159 echo "$as_me: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
42160 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&5
42161 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&2;}
42162 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&5
42163 echo "$as_me: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&2;}
42164 ( cat <<\_ASBOX
42165 ## ------------------------------- ##
42166 ## Report this to www.asterisk.org ##
42167 ## ------------------------------- ##
42168 _ASBOX
42169 ) | sed "s/^/$as_me: WARNING: /" >&2
42171 esac
42172 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
42173 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
42174 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
42175 echo $ECHO_N "(cached) $ECHO_C" >&6
42176 else
42177 ac_cv_header_lua5_1_lua_h=$ac_header_preproc
42179 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
42180 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
42183 if test $ac_cv_header_lua5_1_lua_h = yes; then
42184 LUA_HEADER_FOUND=1
42185 else
42186 LUA_HEADER_FOUND=0
42190 CPPFLAGS="${saved_cppflags}"
42192 if test "x${LUA_HEADER_FOUND}" = "x0" ; then
42193 LUA_LIB=""
42194 LUA_INCLUDE=""
42195 else
42196 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42197 LUA_LIB=""
42199 PBX_LUA=1
42200 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42202 cat >>confdefs.h <<_ACEOF
42203 #define HAVE_LUA 1
42204 _ACEOF
42207 cat >>confdefs.h <<_ACEOF
42208 #define HAVE_LUA_VERSION
42209 _ACEOF
42217 if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
42218 pbxlibdir=""
42219 # if --with-RADIUS=DIR has been specified, use it.
42220 if test "x${RADIUS_DIR}" != "x"; then
42221 if test -d ${RADIUS_DIR}/lib; then
42222 pbxlibdir="-L${RADIUS_DIR}/lib"
42223 else
42224 pbxlibdir="-L${RADIUS_DIR}"
42227 pbxfuncname="rc_read_config"
42228 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42229 AST_RADIUS_FOUND=yes
42230 else
42231 as_ac_Lib=`echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
42232 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
42233 echo $ECHO_N "checking for ${pbxfuncname} in -lradiusclient-ng... $ECHO_C" >&6; }
42234 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42235 echo $ECHO_N "(cached) $ECHO_C" >&6
42236 else
42237 ac_check_lib_save_LIBS=$LIBS
42238 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
42239 cat >conftest.$ac_ext <<_ACEOF
42240 /* confdefs.h. */
42241 _ACEOF
42242 cat confdefs.h >>conftest.$ac_ext
42243 cat >>conftest.$ac_ext <<_ACEOF
42244 /* end confdefs.h. */
42246 /* Override any GCC internal prototype to avoid an error.
42247 Use char because int might match the return type of a GCC
42248 builtin and then its argument prototype would still apply. */
42249 #ifdef __cplusplus
42250 extern "C"
42251 #endif
42252 char ${pbxfuncname} ();
42254 main ()
42256 return ${pbxfuncname} ();
42258 return 0;
42260 _ACEOF
42261 rm -f conftest.$ac_objext conftest$ac_exeext
42262 if { (ac_try="$ac_link"
42263 case "(($ac_try" in
42264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42265 *) ac_try_echo=$ac_try;;
42266 esac
42267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42268 (eval "$ac_link") 2>conftest.er1
42269 ac_status=$?
42270 grep -v '^ *+' conftest.er1 >conftest.err
42271 rm -f conftest.er1
42272 cat conftest.err >&5
42273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42274 (exit $ac_status); } && {
42275 test -z "$ac_c_werror_flag" ||
42276 test ! -s conftest.err
42277 } && test -s conftest$ac_exeext &&
42278 $as_test_x conftest$ac_exeext; then
42279 eval "$as_ac_Lib=yes"
42280 else
42281 echo "$as_me: failed program was:" >&5
42282 sed 's/^/| /' conftest.$ac_ext >&5
42284 eval "$as_ac_Lib=no"
42287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42288 conftest$ac_exeext conftest.$ac_ext
42289 LIBS=$ac_check_lib_save_LIBS
42291 ac_res=`eval echo '${'$as_ac_Lib'}'`
42292 { echo "$as_me:$LINENO: result: $ac_res" >&5
42293 echo "${ECHO_T}$ac_res" >&6; }
42294 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42295 AST_RADIUS_FOUND=yes
42296 else
42297 AST_RADIUS_FOUND=no
42302 # now check for the header.
42303 if test "${AST_RADIUS_FOUND}" = "yes"; then
42304 RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
42305 # if --with-RADIUS=DIR has been specified, use it.
42306 if test "x${RADIUS_DIR}" != "x"; then
42307 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
42309 RADIUS_INCLUDE="${RADIUS_INCLUDE} "
42310 if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
42311 RADIUS_HEADER_FOUND="1"
42312 else # check for the header
42313 saved_cppflags="${CPPFLAGS}"
42314 CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
42315 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42316 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
42317 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
42318 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42319 echo $ECHO_N "(cached) $ECHO_C" >&6
42321 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
42322 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
42323 else
42324 # Is the header compilable?
42325 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
42326 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
42327 cat >conftest.$ac_ext <<_ACEOF
42328 /* confdefs.h. */
42329 _ACEOF
42330 cat confdefs.h >>conftest.$ac_ext
42331 cat >>conftest.$ac_ext <<_ACEOF
42332 /* end confdefs.h. */
42333 $ac_includes_default
42334 #include <radiusclient-ng.h>
42335 _ACEOF
42336 rm -f conftest.$ac_objext
42337 if { (ac_try="$ac_compile"
42338 case "(($ac_try" in
42339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42340 *) ac_try_echo=$ac_try;;
42341 esac
42342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42343 (eval "$ac_compile") 2>conftest.er1
42344 ac_status=$?
42345 grep -v '^ *+' conftest.er1 >conftest.err
42346 rm -f conftest.er1
42347 cat conftest.err >&5
42348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42349 (exit $ac_status); } && {
42350 test -z "$ac_c_werror_flag" ||
42351 test ! -s conftest.err
42352 } && test -s conftest.$ac_objext; then
42353 ac_header_compiler=yes
42354 else
42355 echo "$as_me: failed program was:" >&5
42356 sed 's/^/| /' conftest.$ac_ext >&5
42358 ac_header_compiler=no
42361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42363 echo "${ECHO_T}$ac_header_compiler" >&6; }
42365 # Is the header present?
42366 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
42367 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
42368 cat >conftest.$ac_ext <<_ACEOF
42369 /* confdefs.h. */
42370 _ACEOF
42371 cat confdefs.h >>conftest.$ac_ext
42372 cat >>conftest.$ac_ext <<_ACEOF
42373 /* end confdefs.h. */
42374 #include <radiusclient-ng.h>
42375 _ACEOF
42376 if { (ac_try="$ac_cpp conftest.$ac_ext"
42377 case "(($ac_try" in
42378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42379 *) ac_try_echo=$ac_try;;
42380 esac
42381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42383 ac_status=$?
42384 grep -v '^ *+' conftest.er1 >conftest.err
42385 rm -f conftest.er1
42386 cat conftest.err >&5
42387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42388 (exit $ac_status); } >/dev/null && {
42389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42390 test ! -s conftest.err
42391 }; then
42392 ac_header_preproc=yes
42393 else
42394 echo "$as_me: failed program was:" >&5
42395 sed 's/^/| /' conftest.$ac_ext >&5
42397 ac_header_preproc=no
42400 rm -f conftest.err conftest.$ac_ext
42401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42402 echo "${ECHO_T}$ac_header_preproc" >&6; }
42404 # So? What about this header?
42405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42406 yes:no: )
42407 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
42408 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42409 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
42410 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
42411 ac_header_preproc=yes
42413 no:yes:* )
42414 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
42415 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
42416 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
42417 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
42418 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
42419 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
42420 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
42421 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
42422 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
42423 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
42424 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
42425 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
42426 ( cat <<\_ASBOX
42427 ## ------------------------------- ##
42428 ## Report this to www.asterisk.org ##
42429 ## ------------------------------- ##
42430 _ASBOX
42431 ) | sed "s/^/$as_me: WARNING: /" >&2
42433 esac
42434 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
42435 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
42436 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42437 echo $ECHO_N "(cached) $ECHO_C" >&6
42438 else
42439 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
42441 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
42442 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
42445 if test $ac_cv_header_radiusclient_ng_h = yes; then
42446 RADIUS_HEADER_FOUND=1
42447 else
42448 RADIUS_HEADER_FOUND=0
42452 CPPFLAGS="${saved_cppflags}"
42454 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
42455 RADIUS_LIB=""
42456 RADIUS_INCLUDE=""
42457 else
42458 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42459 RADIUS_LIB=""
42461 PBX_RADIUS=1
42462 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42464 cat >>confdefs.h <<_ACEOF
42465 #define HAVE_RADIUS 1
42466 _ACEOF
42469 cat >>confdefs.h <<_ACEOF
42470 #define HAVE_RADIUS_VERSION
42471 _ACEOF
42478 # This is a bit complex... in reality, Asterisk's AIS support is dependent on finding
42479 # *any* implementation of AIS, not just OpenAIS. However, the configure script needs
42480 # to know the specifics of each possible implementation, and then represent the one
42481 # that was found as 'AIS'.
42483 PBX_AIS=0
42485 # OpenAIS installs its libraries into /usr/lib/openais by default, so check there
42488 if test "x${PBX_OPENAIS}" != "x1" -a "${USE_OPENAIS}" != "no"; then
42489 pbxlibdir=""
42490 # if --with-OPENAIS=DIR has been specified, use it.
42491 if test "x${OPENAIS_DIR}" != "x"; then
42492 if test -d ${OPENAIS_DIR}/lib; then
42493 pbxlibdir="-L${OPENAIS_DIR}/lib"
42494 else
42495 pbxlibdir="-L${OPENAIS_DIR}"
42498 pbxfuncname="saClmInitialize"
42499 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42500 AST_OPENAIS_FOUND=yes
42501 else
42502 as_ac_Lib=`echo "ac_cv_lib_SaClm_${pbxfuncname}" | $as_tr_sh`
42503 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSaClm" >&5
42504 echo $ECHO_N "checking for ${pbxfuncname} in -lSaClm... $ECHO_C" >&6; }
42505 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42506 echo $ECHO_N "(cached) $ECHO_C" >&6
42507 else
42508 ac_check_lib_save_LIBS=$LIBS
42509 LIBS="-lSaClm ${pbxlibdir} -L/usr/lib/openais $LIBS"
42510 cat >conftest.$ac_ext <<_ACEOF
42511 /* confdefs.h. */
42512 _ACEOF
42513 cat confdefs.h >>conftest.$ac_ext
42514 cat >>conftest.$ac_ext <<_ACEOF
42515 /* end confdefs.h. */
42517 /* Override any GCC internal prototype to avoid an error.
42518 Use char because int might match the return type of a GCC
42519 builtin and then its argument prototype would still apply. */
42520 #ifdef __cplusplus
42521 extern "C"
42522 #endif
42523 char ${pbxfuncname} ();
42525 main ()
42527 return ${pbxfuncname} ();
42529 return 0;
42531 _ACEOF
42532 rm -f conftest.$ac_objext conftest$ac_exeext
42533 if { (ac_try="$ac_link"
42534 case "(($ac_try" in
42535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42536 *) ac_try_echo=$ac_try;;
42537 esac
42538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42539 (eval "$ac_link") 2>conftest.er1
42540 ac_status=$?
42541 grep -v '^ *+' conftest.er1 >conftest.err
42542 rm -f conftest.er1
42543 cat conftest.err >&5
42544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42545 (exit $ac_status); } && {
42546 test -z "$ac_c_werror_flag" ||
42547 test ! -s conftest.err
42548 } && test -s conftest$ac_exeext &&
42549 $as_test_x conftest$ac_exeext; then
42550 eval "$as_ac_Lib=yes"
42551 else
42552 echo "$as_me: failed program was:" >&5
42553 sed 's/^/| /' conftest.$ac_ext >&5
42555 eval "$as_ac_Lib=no"
42558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42559 conftest$ac_exeext conftest.$ac_ext
42560 LIBS=$ac_check_lib_save_LIBS
42562 ac_res=`eval echo '${'$as_ac_Lib'}'`
42563 { echo "$as_me:$LINENO: result: $ac_res" >&5
42564 echo "${ECHO_T}$ac_res" >&6; }
42565 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42566 AST_OPENAIS_FOUND=yes
42567 else
42568 AST_OPENAIS_FOUND=no
42573 # now check for the header.
42574 if test "${AST_OPENAIS_FOUND}" = "yes"; then
42575 OPENAIS_LIB="${pbxlibdir} -lSaClm -L/usr/lib/openais"
42576 # if --with-OPENAIS=DIR has been specified, use it.
42577 if test "x${OPENAIS_DIR}" != "x"; then
42578 OPENAIS_INCLUDE="-I${OPENAIS_DIR}/include"
42580 OPENAIS_INCLUDE="${OPENAIS_INCLUDE} "
42581 if test "xopenais/saClm.h" = "x" ; then # no header, assume found
42582 OPENAIS_HEADER_FOUND="1"
42583 else # check for the header
42584 saved_cppflags="${CPPFLAGS}"
42585 CPPFLAGS="${CPPFLAGS} ${OPENAIS_INCLUDE}"
42586 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
42587 { echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
42588 echo $ECHO_N "checking for openais/saClm.h... $ECHO_C" >&6; }
42589 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
42590 echo $ECHO_N "(cached) $ECHO_C" >&6
42592 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
42593 echo "${ECHO_T}$ac_cv_header_openais_saClm_h" >&6; }
42594 else
42595 # Is the header compilable?
42596 { echo "$as_me:$LINENO: checking openais/saClm.h usability" >&5
42597 echo $ECHO_N "checking openais/saClm.h usability... $ECHO_C" >&6; }
42598 cat >conftest.$ac_ext <<_ACEOF
42599 /* confdefs.h. */
42600 _ACEOF
42601 cat confdefs.h >>conftest.$ac_ext
42602 cat >>conftest.$ac_ext <<_ACEOF
42603 /* end confdefs.h. */
42604 $ac_includes_default
42605 #include <openais/saClm.h>
42606 _ACEOF
42607 rm -f conftest.$ac_objext
42608 if { (ac_try="$ac_compile"
42609 case "(($ac_try" in
42610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42611 *) ac_try_echo=$ac_try;;
42612 esac
42613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42614 (eval "$ac_compile") 2>conftest.er1
42615 ac_status=$?
42616 grep -v '^ *+' conftest.er1 >conftest.err
42617 rm -f conftest.er1
42618 cat conftest.err >&5
42619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42620 (exit $ac_status); } && {
42621 test -z "$ac_c_werror_flag" ||
42622 test ! -s conftest.err
42623 } && test -s conftest.$ac_objext; then
42624 ac_header_compiler=yes
42625 else
42626 echo "$as_me: failed program was:" >&5
42627 sed 's/^/| /' conftest.$ac_ext >&5
42629 ac_header_compiler=no
42632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42634 echo "${ECHO_T}$ac_header_compiler" >&6; }
42636 # Is the header present?
42637 { echo "$as_me:$LINENO: checking openais/saClm.h presence" >&5
42638 echo $ECHO_N "checking openais/saClm.h presence... $ECHO_C" >&6; }
42639 cat >conftest.$ac_ext <<_ACEOF
42640 /* confdefs.h. */
42641 _ACEOF
42642 cat confdefs.h >>conftest.$ac_ext
42643 cat >>conftest.$ac_ext <<_ACEOF
42644 /* end confdefs.h. */
42645 #include <openais/saClm.h>
42646 _ACEOF
42647 if { (ac_try="$ac_cpp conftest.$ac_ext"
42648 case "(($ac_try" in
42649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42650 *) ac_try_echo=$ac_try;;
42651 esac
42652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42654 ac_status=$?
42655 grep -v '^ *+' conftest.er1 >conftest.err
42656 rm -f conftest.er1
42657 cat conftest.err >&5
42658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42659 (exit $ac_status); } >/dev/null && {
42660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42661 test ! -s conftest.err
42662 }; then
42663 ac_header_preproc=yes
42664 else
42665 echo "$as_me: failed program was:" >&5
42666 sed 's/^/| /' conftest.$ac_ext >&5
42668 ac_header_preproc=no
42671 rm -f conftest.err conftest.$ac_ext
42672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42673 echo "${ECHO_T}$ac_header_preproc" >&6; }
42675 # So? What about this header?
42676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42677 yes:no: )
42678 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&5
42679 echo "$as_me: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42680 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the compiler's result" >&5
42681 echo "$as_me: WARNING: openais/saClm.h: proceeding with the compiler's result" >&2;}
42682 ac_header_preproc=yes
42684 no:yes:* )
42685 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: present but cannot be compiled" >&5
42686 echo "$as_me: WARNING: openais/saClm.h: present but cannot be compiled" >&2;}
42687 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&5
42688 echo "$as_me: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&2;}
42689 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: see the Autoconf documentation" >&5
42690 echo "$as_me: WARNING: openais/saClm.h: see the Autoconf documentation" >&2;}
42691 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&5
42692 echo "$as_me: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&2;}
42693 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&5
42694 echo "$as_me: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&2;}
42695 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&5
42696 echo "$as_me: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&2;}
42697 ( cat <<\_ASBOX
42698 ## ------------------------------- ##
42699 ## Report this to www.asterisk.org ##
42700 ## ------------------------------- ##
42701 _ASBOX
42702 ) | sed "s/^/$as_me: WARNING: /" >&2
42704 esac
42705 { echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
42706 echo $ECHO_N "checking for openais/saClm.h... $ECHO_C" >&6; }
42707 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
42708 echo $ECHO_N "(cached) $ECHO_C" >&6
42709 else
42710 ac_cv_header_openais_saClm_h=$ac_header_preproc
42712 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
42713 echo "${ECHO_T}$ac_cv_header_openais_saClm_h" >&6; }
42716 if test $ac_cv_header_openais_saClm_h = yes; then
42717 OPENAIS_HEADER_FOUND=1
42718 else
42719 OPENAIS_HEADER_FOUND=0
42723 CPPFLAGS="${saved_cppflags}"
42725 if test "x${OPENAIS_HEADER_FOUND}" = "x0" ; then
42726 OPENAIS_LIB=""
42727 OPENAIS_INCLUDE=""
42728 else
42729 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42730 OPENAIS_LIB=""
42732 PBX_OPENAIS=1
42733 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42735 cat >>confdefs.h <<_ACEOF
42736 #define HAVE_OPENAIS 1
42737 _ACEOF
42740 cat >>confdefs.h <<_ACEOF
42741 #define HAVE_OPENAIS_VERSION
42742 _ACEOF
42749 if test "${PBX_OPENAIS}" = 1; then
42750 PBX_AIS=1
42751 if test -n "${OPENAIS_DIR}"; then
42752 AIS_INCLUDE="${OPENAIS_INCLUDE}/openais"
42753 AIS_LIB="-lSaEvt ${OPENAIS_LIB}"
42754 else
42755 AIS_INCLUDE="-I/usr/include/openais"
42756 AIS_LIB="-lSaClm -lSaEvt -L/usr/lib/openais"
42765 if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
42766 pbxlibdir=""
42767 # if --with-SPEEX=DIR has been specified, use it.
42768 if test "x${SPEEX_DIR}" != "x"; then
42769 if test -d ${SPEEX_DIR}/lib; then
42770 pbxlibdir="-L${SPEEX_DIR}/lib"
42771 else
42772 pbxlibdir="-L${SPEEX_DIR}"
42775 pbxfuncname="speex_encode"
42776 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42777 AST_SPEEX_FOUND=yes
42778 else
42779 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
42780 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
42781 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
42782 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42783 echo $ECHO_N "(cached) $ECHO_C" >&6
42784 else
42785 ac_check_lib_save_LIBS=$LIBS
42786 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
42787 cat >conftest.$ac_ext <<_ACEOF
42788 /* confdefs.h. */
42789 _ACEOF
42790 cat confdefs.h >>conftest.$ac_ext
42791 cat >>conftest.$ac_ext <<_ACEOF
42792 /* end confdefs.h. */
42794 /* Override any GCC internal prototype to avoid an error.
42795 Use char because int might match the return type of a GCC
42796 builtin and then its argument prototype would still apply. */
42797 #ifdef __cplusplus
42798 extern "C"
42799 #endif
42800 char ${pbxfuncname} ();
42802 main ()
42804 return ${pbxfuncname} ();
42806 return 0;
42808 _ACEOF
42809 rm -f conftest.$ac_objext conftest$ac_exeext
42810 if { (ac_try="$ac_link"
42811 case "(($ac_try" in
42812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42813 *) ac_try_echo=$ac_try;;
42814 esac
42815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42816 (eval "$ac_link") 2>conftest.er1
42817 ac_status=$?
42818 grep -v '^ *+' conftest.er1 >conftest.err
42819 rm -f conftest.er1
42820 cat conftest.err >&5
42821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42822 (exit $ac_status); } && {
42823 test -z "$ac_c_werror_flag" ||
42824 test ! -s conftest.err
42825 } && test -s conftest$ac_exeext &&
42826 $as_test_x conftest$ac_exeext; then
42827 eval "$as_ac_Lib=yes"
42828 else
42829 echo "$as_me: failed program was:" >&5
42830 sed 's/^/| /' conftest.$ac_ext >&5
42832 eval "$as_ac_Lib=no"
42835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42836 conftest$ac_exeext conftest.$ac_ext
42837 LIBS=$ac_check_lib_save_LIBS
42839 ac_res=`eval echo '${'$as_ac_Lib'}'`
42840 { echo "$as_me:$LINENO: result: $ac_res" >&5
42841 echo "${ECHO_T}$ac_res" >&6; }
42842 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42843 AST_SPEEX_FOUND=yes
42844 else
42845 AST_SPEEX_FOUND=no
42850 # now check for the header.
42851 if test "${AST_SPEEX_FOUND}" = "yes"; then
42852 SPEEX_LIB="${pbxlibdir} -lspeex -lm"
42853 # if --with-SPEEX=DIR has been specified, use it.
42854 if test "x${SPEEX_DIR}" != "x"; then
42855 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
42857 SPEEX_INCLUDE="${SPEEX_INCLUDE} "
42858 if test "xspeex/speex.h" = "x" ; then # no header, assume found
42859 SPEEX_HEADER_FOUND="1"
42860 else # check for the header
42861 saved_cppflags="${CPPFLAGS}"
42862 CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
42863 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42864 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42865 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42866 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42867 echo $ECHO_N "(cached) $ECHO_C" >&6
42869 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42870 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42871 else
42872 # Is the header compilable?
42873 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
42874 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
42875 cat >conftest.$ac_ext <<_ACEOF
42876 /* confdefs.h. */
42877 _ACEOF
42878 cat confdefs.h >>conftest.$ac_ext
42879 cat >>conftest.$ac_ext <<_ACEOF
42880 /* end confdefs.h. */
42881 $ac_includes_default
42882 #include <speex/speex.h>
42883 _ACEOF
42884 rm -f conftest.$ac_objext
42885 if { (ac_try="$ac_compile"
42886 case "(($ac_try" in
42887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42888 *) ac_try_echo=$ac_try;;
42889 esac
42890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42891 (eval "$ac_compile") 2>conftest.er1
42892 ac_status=$?
42893 grep -v '^ *+' conftest.er1 >conftest.err
42894 rm -f conftest.er1
42895 cat conftest.err >&5
42896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42897 (exit $ac_status); } && {
42898 test -z "$ac_c_werror_flag" ||
42899 test ! -s conftest.err
42900 } && test -s conftest.$ac_objext; then
42901 ac_header_compiler=yes
42902 else
42903 echo "$as_me: failed program was:" >&5
42904 sed 's/^/| /' conftest.$ac_ext >&5
42906 ac_header_compiler=no
42909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42911 echo "${ECHO_T}$ac_header_compiler" >&6; }
42913 # Is the header present?
42914 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
42915 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
42916 cat >conftest.$ac_ext <<_ACEOF
42917 /* confdefs.h. */
42918 _ACEOF
42919 cat confdefs.h >>conftest.$ac_ext
42920 cat >>conftest.$ac_ext <<_ACEOF
42921 /* end confdefs.h. */
42922 #include <speex/speex.h>
42923 _ACEOF
42924 if { (ac_try="$ac_cpp conftest.$ac_ext"
42925 case "(($ac_try" in
42926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42927 *) ac_try_echo=$ac_try;;
42928 esac
42929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42931 ac_status=$?
42932 grep -v '^ *+' conftest.er1 >conftest.err
42933 rm -f conftest.er1
42934 cat conftest.err >&5
42935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42936 (exit $ac_status); } >/dev/null && {
42937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42938 test ! -s conftest.err
42939 }; then
42940 ac_header_preproc=yes
42941 else
42942 echo "$as_me: failed program was:" >&5
42943 sed 's/^/| /' conftest.$ac_ext >&5
42945 ac_header_preproc=no
42948 rm -f conftest.err conftest.$ac_ext
42949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42950 echo "${ECHO_T}$ac_header_preproc" >&6; }
42952 # So? What about this header?
42953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42954 yes:no: )
42955 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
42956 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42957 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
42958 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
42959 ac_header_preproc=yes
42961 no:yes:* )
42962 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
42963 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
42964 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
42965 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
42966 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
42967 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
42968 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
42969 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
42970 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
42971 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
42972 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
42973 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
42974 ( cat <<\_ASBOX
42975 ## ------------------------------- ##
42976 ## Report this to www.asterisk.org ##
42977 ## ------------------------------- ##
42978 _ASBOX
42979 ) | sed "s/^/$as_me: WARNING: /" >&2
42981 esac
42982 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42983 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42984 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42985 echo $ECHO_N "(cached) $ECHO_C" >&6
42986 else
42987 ac_cv_header_speex_speex_h=$ac_header_preproc
42989 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42990 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42993 if test $ac_cv_header_speex_speex_h = yes; then
42994 SPEEX_HEADER_FOUND=1
42995 else
42996 SPEEX_HEADER_FOUND=0
43000 CPPFLAGS="${saved_cppflags}"
43002 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
43003 SPEEX_LIB=""
43004 SPEEX_INCLUDE=""
43005 else
43006 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43007 SPEEX_LIB=""
43009 PBX_SPEEX=1
43010 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43012 cat >>confdefs.h <<_ACEOF
43013 #define HAVE_SPEEX 1
43014 _ACEOF
43017 cat >>confdefs.h <<_ACEOF
43018 #define HAVE_SPEEX_VERSION
43019 _ACEOF
43026 # See if the main speex library contains the preprocess functions
43028 if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
43029 pbxlibdir=""
43030 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
43031 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
43032 if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
43033 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
43034 else
43035 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
43038 pbxfuncname="speex_preprocess_ctl"
43039 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43040 AST_SPEEX_PREPROCESS_FOUND=yes
43041 else
43042 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
43043 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
43044 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
43045 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43046 echo $ECHO_N "(cached) $ECHO_C" >&6
43047 else
43048 ac_check_lib_save_LIBS=$LIBS
43049 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
43050 cat >conftest.$ac_ext <<_ACEOF
43051 /* confdefs.h. */
43052 _ACEOF
43053 cat confdefs.h >>conftest.$ac_ext
43054 cat >>conftest.$ac_ext <<_ACEOF
43055 /* end confdefs.h. */
43057 /* Override any GCC internal prototype to avoid an error.
43058 Use char because int might match the return type of a GCC
43059 builtin and then its argument prototype would still apply. */
43060 #ifdef __cplusplus
43061 extern "C"
43062 #endif
43063 char ${pbxfuncname} ();
43065 main ()
43067 return ${pbxfuncname} ();
43069 return 0;
43071 _ACEOF
43072 rm -f conftest.$ac_objext conftest$ac_exeext
43073 if { (ac_try="$ac_link"
43074 case "(($ac_try" in
43075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43076 *) ac_try_echo=$ac_try;;
43077 esac
43078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43079 (eval "$ac_link") 2>conftest.er1
43080 ac_status=$?
43081 grep -v '^ *+' conftest.er1 >conftest.err
43082 rm -f conftest.er1
43083 cat conftest.err >&5
43084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43085 (exit $ac_status); } && {
43086 test -z "$ac_c_werror_flag" ||
43087 test ! -s conftest.err
43088 } && test -s conftest$ac_exeext &&
43089 $as_test_x conftest$ac_exeext; then
43090 eval "$as_ac_Lib=yes"
43091 else
43092 echo "$as_me: failed program was:" >&5
43093 sed 's/^/| /' conftest.$ac_ext >&5
43095 eval "$as_ac_Lib=no"
43098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43099 conftest$ac_exeext conftest.$ac_ext
43100 LIBS=$ac_check_lib_save_LIBS
43102 ac_res=`eval echo '${'$as_ac_Lib'}'`
43103 { echo "$as_me:$LINENO: result: $ac_res" >&5
43104 echo "${ECHO_T}$ac_res" >&6; }
43105 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43106 AST_SPEEX_PREPROCESS_FOUND=yes
43107 else
43108 AST_SPEEX_PREPROCESS_FOUND=no
43113 # now check for the header.
43114 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
43115 SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
43116 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
43117 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
43118 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
43120 SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
43121 if test "xspeex/speex.h" = "x" ; then # no header, assume found
43122 SPEEX_PREPROCESS_HEADER_FOUND="1"
43123 else # check for the header
43124 saved_cppflags="${CPPFLAGS}"
43125 CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
43126 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43127 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43128 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43129 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43130 echo $ECHO_N "(cached) $ECHO_C" >&6
43132 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43133 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43134 else
43135 # Is the header compilable?
43136 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
43137 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
43138 cat >conftest.$ac_ext <<_ACEOF
43139 /* confdefs.h. */
43140 _ACEOF
43141 cat confdefs.h >>conftest.$ac_ext
43142 cat >>conftest.$ac_ext <<_ACEOF
43143 /* end confdefs.h. */
43144 $ac_includes_default
43145 #include <speex/speex.h>
43146 _ACEOF
43147 rm -f conftest.$ac_objext
43148 if { (ac_try="$ac_compile"
43149 case "(($ac_try" in
43150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43151 *) ac_try_echo=$ac_try;;
43152 esac
43153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43154 (eval "$ac_compile") 2>conftest.er1
43155 ac_status=$?
43156 grep -v '^ *+' conftest.er1 >conftest.err
43157 rm -f conftest.er1
43158 cat conftest.err >&5
43159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43160 (exit $ac_status); } && {
43161 test -z "$ac_c_werror_flag" ||
43162 test ! -s conftest.err
43163 } && test -s conftest.$ac_objext; then
43164 ac_header_compiler=yes
43165 else
43166 echo "$as_me: failed program was:" >&5
43167 sed 's/^/| /' conftest.$ac_ext >&5
43169 ac_header_compiler=no
43172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43174 echo "${ECHO_T}$ac_header_compiler" >&6; }
43176 # Is the header present?
43177 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
43178 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
43179 cat >conftest.$ac_ext <<_ACEOF
43180 /* confdefs.h. */
43181 _ACEOF
43182 cat confdefs.h >>conftest.$ac_ext
43183 cat >>conftest.$ac_ext <<_ACEOF
43184 /* end confdefs.h. */
43185 #include <speex/speex.h>
43186 _ACEOF
43187 if { (ac_try="$ac_cpp conftest.$ac_ext"
43188 case "(($ac_try" in
43189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43190 *) ac_try_echo=$ac_try;;
43191 esac
43192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43194 ac_status=$?
43195 grep -v '^ *+' conftest.er1 >conftest.err
43196 rm -f conftest.er1
43197 cat conftest.err >&5
43198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43199 (exit $ac_status); } >/dev/null && {
43200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43201 test ! -s conftest.err
43202 }; then
43203 ac_header_preproc=yes
43204 else
43205 echo "$as_me: failed program was:" >&5
43206 sed 's/^/| /' conftest.$ac_ext >&5
43208 ac_header_preproc=no
43211 rm -f conftest.err conftest.$ac_ext
43212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43213 echo "${ECHO_T}$ac_header_preproc" >&6; }
43215 # So? What about this header?
43216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43217 yes:no: )
43218 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
43219 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43220 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
43221 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
43222 ac_header_preproc=yes
43224 no:yes:* )
43225 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
43226 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
43227 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
43228 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
43229 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
43230 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
43231 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
43232 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
43233 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
43234 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
43235 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
43236 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
43237 ( cat <<\_ASBOX
43238 ## ------------------------------- ##
43239 ## Report this to www.asterisk.org ##
43240 ## ------------------------------- ##
43241 _ASBOX
43242 ) | sed "s/^/$as_me: WARNING: /" >&2
43244 esac
43245 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43246 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43247 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43248 echo $ECHO_N "(cached) $ECHO_C" >&6
43249 else
43250 ac_cv_header_speex_speex_h=$ac_header_preproc
43252 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43253 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43256 if test $ac_cv_header_speex_speex_h = yes; then
43257 SPEEX_PREPROCESS_HEADER_FOUND=1
43258 else
43259 SPEEX_PREPROCESS_HEADER_FOUND=0
43263 CPPFLAGS="${saved_cppflags}"
43265 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
43266 SPEEX_PREPROCESS_LIB=""
43267 SPEEX_PREPROCESS_INCLUDE=""
43268 else
43269 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43270 SPEEX_PREPROCESS_LIB=""
43272 PBX_SPEEX_PREPROCESS=1
43273 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43275 cat >>confdefs.h <<_ACEOF
43276 #define HAVE_SPEEX_PREPROCESS 1
43277 _ACEOF
43280 cat >>confdefs.h <<_ACEOF
43281 #define HAVE_SPEEX_PREPROCESS_VERSION
43282 _ACEOF
43288 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
43289 PBX_SPEEX_PREPROCESS=1
43293 if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
43294 pbxlibdir=""
43295 # if --with-SPEEXDSP=DIR has been specified, use it.
43296 if test "x${SPEEXDSP_DIR}" != "x"; then
43297 if test -d ${SPEEXDSP_DIR}/lib; then
43298 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
43299 else
43300 pbxlibdir="-L${SPEEXDSP_DIR}"
43303 pbxfuncname="speex_preprocess_ctl"
43304 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43305 AST_SPEEXDSP_FOUND=yes
43306 else
43307 as_ac_Lib=`echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
43308 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeexdsp" >&5
43309 echo $ECHO_N "checking for ${pbxfuncname} in -lspeexdsp... $ECHO_C" >&6; }
43310 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43311 echo $ECHO_N "(cached) $ECHO_C" >&6
43312 else
43313 ac_check_lib_save_LIBS=$LIBS
43314 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
43315 cat >conftest.$ac_ext <<_ACEOF
43316 /* confdefs.h. */
43317 _ACEOF
43318 cat confdefs.h >>conftest.$ac_ext
43319 cat >>conftest.$ac_ext <<_ACEOF
43320 /* end confdefs.h. */
43322 /* Override any GCC internal prototype to avoid an error.
43323 Use char because int might match the return type of a GCC
43324 builtin and then its argument prototype would still apply. */
43325 #ifdef __cplusplus
43326 extern "C"
43327 #endif
43328 char ${pbxfuncname} ();
43330 main ()
43332 return ${pbxfuncname} ();
43334 return 0;
43336 _ACEOF
43337 rm -f conftest.$ac_objext conftest$ac_exeext
43338 if { (ac_try="$ac_link"
43339 case "(($ac_try" in
43340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43341 *) ac_try_echo=$ac_try;;
43342 esac
43343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43344 (eval "$ac_link") 2>conftest.er1
43345 ac_status=$?
43346 grep -v '^ *+' conftest.er1 >conftest.err
43347 rm -f conftest.er1
43348 cat conftest.err >&5
43349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43350 (exit $ac_status); } && {
43351 test -z "$ac_c_werror_flag" ||
43352 test ! -s conftest.err
43353 } && test -s conftest$ac_exeext &&
43354 $as_test_x conftest$ac_exeext; then
43355 eval "$as_ac_Lib=yes"
43356 else
43357 echo "$as_me: failed program was:" >&5
43358 sed 's/^/| /' conftest.$ac_ext >&5
43360 eval "$as_ac_Lib=no"
43363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43364 conftest$ac_exeext conftest.$ac_ext
43365 LIBS=$ac_check_lib_save_LIBS
43367 ac_res=`eval echo '${'$as_ac_Lib'}'`
43368 { echo "$as_me:$LINENO: result: $ac_res" >&5
43369 echo "${ECHO_T}$ac_res" >&6; }
43370 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43371 AST_SPEEXDSP_FOUND=yes
43372 else
43373 AST_SPEEXDSP_FOUND=no
43378 # now check for the header.
43379 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
43380 SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
43381 # if --with-SPEEXDSP=DIR has been specified, use it.
43382 if test "x${SPEEXDSP_DIR}" != "x"; then
43383 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
43385 SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
43386 if test "xspeex/speex.h" = "x" ; then # no header, assume found
43387 SPEEXDSP_HEADER_FOUND="1"
43388 else # check for the header
43389 saved_cppflags="${CPPFLAGS}"
43390 CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
43391 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43392 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43393 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43394 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43395 echo $ECHO_N "(cached) $ECHO_C" >&6
43397 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43398 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43399 else
43400 # Is the header compilable?
43401 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
43402 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
43403 cat >conftest.$ac_ext <<_ACEOF
43404 /* confdefs.h. */
43405 _ACEOF
43406 cat confdefs.h >>conftest.$ac_ext
43407 cat >>conftest.$ac_ext <<_ACEOF
43408 /* end confdefs.h. */
43409 $ac_includes_default
43410 #include <speex/speex.h>
43411 _ACEOF
43412 rm -f conftest.$ac_objext
43413 if { (ac_try="$ac_compile"
43414 case "(($ac_try" in
43415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43416 *) ac_try_echo=$ac_try;;
43417 esac
43418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43419 (eval "$ac_compile") 2>conftest.er1
43420 ac_status=$?
43421 grep -v '^ *+' conftest.er1 >conftest.err
43422 rm -f conftest.er1
43423 cat conftest.err >&5
43424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43425 (exit $ac_status); } && {
43426 test -z "$ac_c_werror_flag" ||
43427 test ! -s conftest.err
43428 } && test -s conftest.$ac_objext; then
43429 ac_header_compiler=yes
43430 else
43431 echo "$as_me: failed program was:" >&5
43432 sed 's/^/| /' conftest.$ac_ext >&5
43434 ac_header_compiler=no
43437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43439 echo "${ECHO_T}$ac_header_compiler" >&6; }
43441 # Is the header present?
43442 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
43443 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
43444 cat >conftest.$ac_ext <<_ACEOF
43445 /* confdefs.h. */
43446 _ACEOF
43447 cat confdefs.h >>conftest.$ac_ext
43448 cat >>conftest.$ac_ext <<_ACEOF
43449 /* end confdefs.h. */
43450 #include <speex/speex.h>
43451 _ACEOF
43452 if { (ac_try="$ac_cpp conftest.$ac_ext"
43453 case "(($ac_try" in
43454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43455 *) ac_try_echo=$ac_try;;
43456 esac
43457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43459 ac_status=$?
43460 grep -v '^ *+' conftest.er1 >conftest.err
43461 rm -f conftest.er1
43462 cat conftest.err >&5
43463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43464 (exit $ac_status); } >/dev/null && {
43465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43466 test ! -s conftest.err
43467 }; then
43468 ac_header_preproc=yes
43469 else
43470 echo "$as_me: failed program was:" >&5
43471 sed 's/^/| /' conftest.$ac_ext >&5
43473 ac_header_preproc=no
43476 rm -f conftest.err conftest.$ac_ext
43477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43478 echo "${ECHO_T}$ac_header_preproc" >&6; }
43480 # So? What about this header?
43481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43482 yes:no: )
43483 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
43484 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43485 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
43486 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
43487 ac_header_preproc=yes
43489 no:yes:* )
43490 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
43491 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
43492 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
43493 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
43494 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
43495 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
43496 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
43497 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
43498 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
43499 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
43500 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
43501 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
43502 ( cat <<\_ASBOX
43503 ## ------------------------------- ##
43504 ## Report this to www.asterisk.org ##
43505 ## ------------------------------- ##
43506 _ASBOX
43507 ) | sed "s/^/$as_me: WARNING: /" >&2
43509 esac
43510 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43511 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43512 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43513 echo $ECHO_N "(cached) $ECHO_C" >&6
43514 else
43515 ac_cv_header_speex_speex_h=$ac_header_preproc
43517 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43518 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43521 if test $ac_cv_header_speex_speex_h = yes; then
43522 SPEEXDSP_HEADER_FOUND=1
43523 else
43524 SPEEXDSP_HEADER_FOUND=0
43528 CPPFLAGS="${saved_cppflags}"
43530 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
43531 SPEEXDSP_LIB=""
43532 SPEEXDSP_INCLUDE=""
43533 else
43534 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43535 SPEEXDSP_LIB=""
43537 PBX_SPEEXDSP=1
43538 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43540 cat >>confdefs.h <<_ACEOF
43541 #define HAVE_SPEEXDSP 1
43542 _ACEOF
43545 cat >>confdefs.h <<_ACEOF
43546 #define HAVE_SPEEXDSP_VERSION
43547 _ACEOF
43553 if test "${PBX_SPEEXDSP}" = 1; then
43554 PBX_SPEEX_PREPROCESS=1
43560 if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
43561 pbxlibdir=""
43562 # if --with-SQLITE=DIR has been specified, use it.
43563 if test "x${SQLITE_DIR}" != "x"; then
43564 if test -d ${SQLITE_DIR}/lib; then
43565 pbxlibdir="-L${SQLITE_DIR}/lib"
43566 else
43567 pbxlibdir="-L${SQLITE_DIR}"
43570 pbxfuncname="sqlite_exec"
43571 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43572 AST_SQLITE_FOUND=yes
43573 else
43574 as_ac_Lib=`echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
43575 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite" >&5
43576 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite... $ECHO_C" >&6; }
43577 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43578 echo $ECHO_N "(cached) $ECHO_C" >&6
43579 else
43580 ac_check_lib_save_LIBS=$LIBS
43581 LIBS="-lsqlite ${pbxlibdir} $LIBS"
43582 cat >conftest.$ac_ext <<_ACEOF
43583 /* confdefs.h. */
43584 _ACEOF
43585 cat confdefs.h >>conftest.$ac_ext
43586 cat >>conftest.$ac_ext <<_ACEOF
43587 /* end confdefs.h. */
43589 /* Override any GCC internal prototype to avoid an error.
43590 Use char because int might match the return type of a GCC
43591 builtin and then its argument prototype would still apply. */
43592 #ifdef __cplusplus
43593 extern "C"
43594 #endif
43595 char ${pbxfuncname} ();
43597 main ()
43599 return ${pbxfuncname} ();
43601 return 0;
43603 _ACEOF
43604 rm -f conftest.$ac_objext conftest$ac_exeext
43605 if { (ac_try="$ac_link"
43606 case "(($ac_try" in
43607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43608 *) ac_try_echo=$ac_try;;
43609 esac
43610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43611 (eval "$ac_link") 2>conftest.er1
43612 ac_status=$?
43613 grep -v '^ *+' conftest.er1 >conftest.err
43614 rm -f conftest.er1
43615 cat conftest.err >&5
43616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43617 (exit $ac_status); } && {
43618 test -z "$ac_c_werror_flag" ||
43619 test ! -s conftest.err
43620 } && test -s conftest$ac_exeext &&
43621 $as_test_x conftest$ac_exeext; then
43622 eval "$as_ac_Lib=yes"
43623 else
43624 echo "$as_me: failed program was:" >&5
43625 sed 's/^/| /' conftest.$ac_ext >&5
43627 eval "$as_ac_Lib=no"
43630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43631 conftest$ac_exeext conftest.$ac_ext
43632 LIBS=$ac_check_lib_save_LIBS
43634 ac_res=`eval echo '${'$as_ac_Lib'}'`
43635 { echo "$as_me:$LINENO: result: $ac_res" >&5
43636 echo "${ECHO_T}$ac_res" >&6; }
43637 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43638 AST_SQLITE_FOUND=yes
43639 else
43640 AST_SQLITE_FOUND=no
43645 # now check for the header.
43646 if test "${AST_SQLITE_FOUND}" = "yes"; then
43647 SQLITE_LIB="${pbxlibdir} -lsqlite "
43648 # if --with-SQLITE=DIR has been specified, use it.
43649 if test "x${SQLITE_DIR}" != "x"; then
43650 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
43652 SQLITE_INCLUDE="${SQLITE_INCLUDE} "
43653 if test "xsqlite.h" = "x" ; then # no header, assume found
43654 SQLITE_HEADER_FOUND="1"
43655 else # check for the header
43656 saved_cppflags="${CPPFLAGS}"
43657 CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
43658 if test "${ac_cv_header_sqlite_h+set}" = set; then
43659 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
43660 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
43661 if test "${ac_cv_header_sqlite_h+set}" = set; then
43662 echo $ECHO_N "(cached) $ECHO_C" >&6
43664 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
43665 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
43666 else
43667 # Is the header compilable?
43668 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
43669 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
43670 cat >conftest.$ac_ext <<_ACEOF
43671 /* confdefs.h. */
43672 _ACEOF
43673 cat confdefs.h >>conftest.$ac_ext
43674 cat >>conftest.$ac_ext <<_ACEOF
43675 /* end confdefs.h. */
43676 $ac_includes_default
43677 #include <sqlite.h>
43678 _ACEOF
43679 rm -f conftest.$ac_objext
43680 if { (ac_try="$ac_compile"
43681 case "(($ac_try" in
43682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43683 *) ac_try_echo=$ac_try;;
43684 esac
43685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43686 (eval "$ac_compile") 2>conftest.er1
43687 ac_status=$?
43688 grep -v '^ *+' conftest.er1 >conftest.err
43689 rm -f conftest.er1
43690 cat conftest.err >&5
43691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43692 (exit $ac_status); } && {
43693 test -z "$ac_c_werror_flag" ||
43694 test ! -s conftest.err
43695 } && test -s conftest.$ac_objext; then
43696 ac_header_compiler=yes
43697 else
43698 echo "$as_me: failed program was:" >&5
43699 sed 's/^/| /' conftest.$ac_ext >&5
43701 ac_header_compiler=no
43704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43706 echo "${ECHO_T}$ac_header_compiler" >&6; }
43708 # Is the header present?
43709 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
43710 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
43711 cat >conftest.$ac_ext <<_ACEOF
43712 /* confdefs.h. */
43713 _ACEOF
43714 cat confdefs.h >>conftest.$ac_ext
43715 cat >>conftest.$ac_ext <<_ACEOF
43716 /* end confdefs.h. */
43717 #include <sqlite.h>
43718 _ACEOF
43719 if { (ac_try="$ac_cpp conftest.$ac_ext"
43720 case "(($ac_try" in
43721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43722 *) ac_try_echo=$ac_try;;
43723 esac
43724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43726 ac_status=$?
43727 grep -v '^ *+' conftest.er1 >conftest.err
43728 rm -f conftest.er1
43729 cat conftest.err >&5
43730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43731 (exit $ac_status); } >/dev/null && {
43732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43733 test ! -s conftest.err
43734 }; then
43735 ac_header_preproc=yes
43736 else
43737 echo "$as_me: failed program was:" >&5
43738 sed 's/^/| /' conftest.$ac_ext >&5
43740 ac_header_preproc=no
43743 rm -f conftest.err conftest.$ac_ext
43744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43745 echo "${ECHO_T}$ac_header_preproc" >&6; }
43747 # So? What about this header?
43748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43749 yes:no: )
43750 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
43751 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43752 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
43753 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
43754 ac_header_preproc=yes
43756 no:yes:* )
43757 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
43758 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
43759 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
43760 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
43761 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
43762 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
43763 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
43764 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
43765 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
43766 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
43767 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
43768 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
43769 ( cat <<\_ASBOX
43770 ## ------------------------------- ##
43771 ## Report this to www.asterisk.org ##
43772 ## ------------------------------- ##
43773 _ASBOX
43774 ) | sed "s/^/$as_me: WARNING: /" >&2
43776 esac
43777 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
43778 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
43779 if test "${ac_cv_header_sqlite_h+set}" = set; then
43780 echo $ECHO_N "(cached) $ECHO_C" >&6
43781 else
43782 ac_cv_header_sqlite_h=$ac_header_preproc
43784 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
43785 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
43788 if test $ac_cv_header_sqlite_h = yes; then
43789 SQLITE_HEADER_FOUND=1
43790 else
43791 SQLITE_HEADER_FOUND=0
43795 CPPFLAGS="${saved_cppflags}"
43797 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
43798 SQLITE_LIB=""
43799 SQLITE_INCLUDE=""
43800 else
43801 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43802 SQLITE_LIB=""
43804 PBX_SQLITE=1
43805 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43807 cat >>confdefs.h <<_ACEOF
43808 #define HAVE_SQLITE 1
43809 _ACEOF
43812 cat >>confdefs.h <<_ACEOF
43813 #define HAVE_SQLITE_VERSION
43814 _ACEOF
43822 if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
43823 pbxlibdir=""
43824 # if --with-SQLITE3=DIR has been specified, use it.
43825 if test "x${SQLITE3_DIR}" != "x"; then
43826 if test -d ${SQLITE3_DIR}/lib; then
43827 pbxlibdir="-L${SQLITE3_DIR}/lib"
43828 else
43829 pbxlibdir="-L${SQLITE3_DIR}"
43832 pbxfuncname="sqlite3_open"
43833 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43834 AST_SQLITE3_FOUND=yes
43835 else
43836 as_ac_Lib=`echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
43837 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite3" >&5
43838 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite3... $ECHO_C" >&6; }
43839 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43840 echo $ECHO_N "(cached) $ECHO_C" >&6
43841 else
43842 ac_check_lib_save_LIBS=$LIBS
43843 LIBS="-lsqlite3 ${pbxlibdir} $LIBS"
43844 cat >conftest.$ac_ext <<_ACEOF
43845 /* confdefs.h. */
43846 _ACEOF
43847 cat confdefs.h >>conftest.$ac_ext
43848 cat >>conftest.$ac_ext <<_ACEOF
43849 /* end confdefs.h. */
43851 /* Override any GCC internal prototype to avoid an error.
43852 Use char because int might match the return type of a GCC
43853 builtin and then its argument prototype would still apply. */
43854 #ifdef __cplusplus
43855 extern "C"
43856 #endif
43857 char ${pbxfuncname} ();
43859 main ()
43861 return ${pbxfuncname} ();
43863 return 0;
43865 _ACEOF
43866 rm -f conftest.$ac_objext conftest$ac_exeext
43867 if { (ac_try="$ac_link"
43868 case "(($ac_try" in
43869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43870 *) ac_try_echo=$ac_try;;
43871 esac
43872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43873 (eval "$ac_link") 2>conftest.er1
43874 ac_status=$?
43875 grep -v '^ *+' conftest.er1 >conftest.err
43876 rm -f conftest.er1
43877 cat conftest.err >&5
43878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43879 (exit $ac_status); } && {
43880 test -z "$ac_c_werror_flag" ||
43881 test ! -s conftest.err
43882 } && test -s conftest$ac_exeext &&
43883 $as_test_x conftest$ac_exeext; then
43884 eval "$as_ac_Lib=yes"
43885 else
43886 echo "$as_me: failed program was:" >&5
43887 sed 's/^/| /' conftest.$ac_ext >&5
43889 eval "$as_ac_Lib=no"
43892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43893 conftest$ac_exeext conftest.$ac_ext
43894 LIBS=$ac_check_lib_save_LIBS
43896 ac_res=`eval echo '${'$as_ac_Lib'}'`
43897 { echo "$as_me:$LINENO: result: $ac_res" >&5
43898 echo "${ECHO_T}$ac_res" >&6; }
43899 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43900 AST_SQLITE3_FOUND=yes
43901 else
43902 AST_SQLITE3_FOUND=no
43907 # now check for the header.
43908 if test "${AST_SQLITE3_FOUND}" = "yes"; then
43909 SQLITE3_LIB="${pbxlibdir} -lsqlite3 "
43910 # if --with-SQLITE3=DIR has been specified, use it.
43911 if test "x${SQLITE3_DIR}" != "x"; then
43912 SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
43914 SQLITE3_INCLUDE="${SQLITE3_INCLUDE} "
43915 if test "xsqlite3.h" = "x" ; then # no header, assume found
43916 SQLITE3_HEADER_FOUND="1"
43917 else # check for the header
43918 saved_cppflags="${CPPFLAGS}"
43919 CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE}"
43920 if test "${ac_cv_header_sqlite3_h+set}" = set; then
43921 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
43922 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
43923 if test "${ac_cv_header_sqlite3_h+set}" = set; then
43924 echo $ECHO_N "(cached) $ECHO_C" >&6
43926 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
43927 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
43928 else
43929 # Is the header compilable?
43930 { echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
43931 echo $ECHO_N "checking sqlite3.h usability... $ECHO_C" >&6; }
43932 cat >conftest.$ac_ext <<_ACEOF
43933 /* confdefs.h. */
43934 _ACEOF
43935 cat confdefs.h >>conftest.$ac_ext
43936 cat >>conftest.$ac_ext <<_ACEOF
43937 /* end confdefs.h. */
43938 $ac_includes_default
43939 #include <sqlite3.h>
43940 _ACEOF
43941 rm -f conftest.$ac_objext
43942 if { (ac_try="$ac_compile"
43943 case "(($ac_try" in
43944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43945 *) ac_try_echo=$ac_try;;
43946 esac
43947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43948 (eval "$ac_compile") 2>conftest.er1
43949 ac_status=$?
43950 grep -v '^ *+' conftest.er1 >conftest.err
43951 rm -f conftest.er1
43952 cat conftest.err >&5
43953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43954 (exit $ac_status); } && {
43955 test -z "$ac_c_werror_flag" ||
43956 test ! -s conftest.err
43957 } && test -s conftest.$ac_objext; then
43958 ac_header_compiler=yes
43959 else
43960 echo "$as_me: failed program was:" >&5
43961 sed 's/^/| /' conftest.$ac_ext >&5
43963 ac_header_compiler=no
43966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43968 echo "${ECHO_T}$ac_header_compiler" >&6; }
43970 # Is the header present?
43971 { echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
43972 echo $ECHO_N "checking sqlite3.h presence... $ECHO_C" >&6; }
43973 cat >conftest.$ac_ext <<_ACEOF
43974 /* confdefs.h. */
43975 _ACEOF
43976 cat confdefs.h >>conftest.$ac_ext
43977 cat >>conftest.$ac_ext <<_ACEOF
43978 /* end confdefs.h. */
43979 #include <sqlite3.h>
43980 _ACEOF
43981 if { (ac_try="$ac_cpp conftest.$ac_ext"
43982 case "(($ac_try" in
43983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43984 *) ac_try_echo=$ac_try;;
43985 esac
43986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43988 ac_status=$?
43989 grep -v '^ *+' conftest.er1 >conftest.err
43990 rm -f conftest.er1
43991 cat conftest.err >&5
43992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43993 (exit $ac_status); } >/dev/null && {
43994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43995 test ! -s conftest.err
43996 }; then
43997 ac_header_preproc=yes
43998 else
43999 echo "$as_me: failed program was:" >&5
44000 sed 's/^/| /' conftest.$ac_ext >&5
44002 ac_header_preproc=no
44005 rm -f conftest.err conftest.$ac_ext
44006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44007 echo "${ECHO_T}$ac_header_preproc" >&6; }
44009 # So? What about this header?
44010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44011 yes:no: )
44012 { echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
44013 echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44014 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
44015 echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
44016 ac_header_preproc=yes
44018 no:yes:* )
44019 { echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
44020 echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
44021 { echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
44022 echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
44023 { echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
44024 echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
44025 { echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
44026 echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
44027 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
44028 echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
44029 { echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
44030 echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
44031 ( cat <<\_ASBOX
44032 ## ------------------------------- ##
44033 ## Report this to www.asterisk.org ##
44034 ## ------------------------------- ##
44035 _ASBOX
44036 ) | sed "s/^/$as_me: WARNING: /" >&2
44038 esac
44039 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
44040 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
44041 if test "${ac_cv_header_sqlite3_h+set}" = set; then
44042 echo $ECHO_N "(cached) $ECHO_C" >&6
44043 else
44044 ac_cv_header_sqlite3_h=$ac_header_preproc
44046 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
44047 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
44050 if test $ac_cv_header_sqlite3_h = yes; then
44051 SQLITE3_HEADER_FOUND=1
44052 else
44053 SQLITE3_HEADER_FOUND=0
44057 CPPFLAGS="${saved_cppflags}"
44059 if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
44060 SQLITE3_LIB=""
44061 SQLITE3_INCLUDE=""
44062 else
44063 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44064 SQLITE3_LIB=""
44066 PBX_SQLITE3=1
44067 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44069 cat >>confdefs.h <<_ACEOF
44070 #define HAVE_SQLITE3 1
44071 _ACEOF
44074 cat >>confdefs.h <<_ACEOF
44075 #define HAVE_SQLITE3_VERSION
44076 _ACEOF
44084 if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
44085 pbxlibdir=""
44086 # if --with-CRYPTO=DIR has been specified, use it.
44087 if test "x${CRYPTO_DIR}" != "x"; then
44088 if test -d ${CRYPTO_DIR}/lib; then
44089 pbxlibdir="-L${CRYPTO_DIR}/lib"
44090 else
44091 pbxlibdir="-L${CRYPTO_DIR}"
44094 pbxfuncname="AES_encrypt"
44095 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44096 AST_CRYPTO_FOUND=yes
44097 else
44098 as_ac_Lib=`echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
44099 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcrypto" >&5
44100 echo $ECHO_N "checking for ${pbxfuncname} in -lcrypto... $ECHO_C" >&6; }
44101 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44102 echo $ECHO_N "(cached) $ECHO_C" >&6
44103 else
44104 ac_check_lib_save_LIBS=$LIBS
44105 LIBS="-lcrypto ${pbxlibdir} $LIBS"
44106 cat >conftest.$ac_ext <<_ACEOF
44107 /* confdefs.h. */
44108 _ACEOF
44109 cat confdefs.h >>conftest.$ac_ext
44110 cat >>conftest.$ac_ext <<_ACEOF
44111 /* end confdefs.h. */
44113 /* Override any GCC internal prototype to avoid an error.
44114 Use char because int might match the return type of a GCC
44115 builtin and then its argument prototype would still apply. */
44116 #ifdef __cplusplus
44117 extern "C"
44118 #endif
44119 char ${pbxfuncname} ();
44121 main ()
44123 return ${pbxfuncname} ();
44125 return 0;
44127 _ACEOF
44128 rm -f conftest.$ac_objext conftest$ac_exeext
44129 if { (ac_try="$ac_link"
44130 case "(($ac_try" in
44131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44132 *) ac_try_echo=$ac_try;;
44133 esac
44134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44135 (eval "$ac_link") 2>conftest.er1
44136 ac_status=$?
44137 grep -v '^ *+' conftest.er1 >conftest.err
44138 rm -f conftest.er1
44139 cat conftest.err >&5
44140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44141 (exit $ac_status); } && {
44142 test -z "$ac_c_werror_flag" ||
44143 test ! -s conftest.err
44144 } && test -s conftest$ac_exeext &&
44145 $as_test_x conftest$ac_exeext; then
44146 eval "$as_ac_Lib=yes"
44147 else
44148 echo "$as_me: failed program was:" >&5
44149 sed 's/^/| /' conftest.$ac_ext >&5
44151 eval "$as_ac_Lib=no"
44154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44155 conftest$ac_exeext conftest.$ac_ext
44156 LIBS=$ac_check_lib_save_LIBS
44158 ac_res=`eval echo '${'$as_ac_Lib'}'`
44159 { echo "$as_me:$LINENO: result: $ac_res" >&5
44160 echo "${ECHO_T}$ac_res" >&6; }
44161 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44162 AST_CRYPTO_FOUND=yes
44163 else
44164 AST_CRYPTO_FOUND=no
44169 # now check for the header.
44170 if test "${AST_CRYPTO_FOUND}" = "yes"; then
44171 CRYPTO_LIB="${pbxlibdir} -lcrypto "
44172 # if --with-CRYPTO=DIR has been specified, use it.
44173 if test "x${CRYPTO_DIR}" != "x"; then
44174 CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
44176 CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
44177 if test "xopenssl/aes.h" = "x" ; then # no header, assume found
44178 CRYPTO_HEADER_FOUND="1"
44179 else # check for the header
44180 saved_cppflags="${CPPFLAGS}"
44181 CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"
44182 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44183 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
44184 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
44185 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44186 echo $ECHO_N "(cached) $ECHO_C" >&6
44188 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
44189 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
44190 else
44191 # Is the header compilable?
44192 { echo "$as_me:$LINENO: checking openssl/aes.h usability" >&5
44193 echo $ECHO_N "checking openssl/aes.h usability... $ECHO_C" >&6; }
44194 cat >conftest.$ac_ext <<_ACEOF
44195 /* confdefs.h. */
44196 _ACEOF
44197 cat confdefs.h >>conftest.$ac_ext
44198 cat >>conftest.$ac_ext <<_ACEOF
44199 /* end confdefs.h. */
44200 $ac_includes_default
44201 #include <openssl/aes.h>
44202 _ACEOF
44203 rm -f conftest.$ac_objext
44204 if { (ac_try="$ac_compile"
44205 case "(($ac_try" in
44206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44207 *) ac_try_echo=$ac_try;;
44208 esac
44209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44210 (eval "$ac_compile") 2>conftest.er1
44211 ac_status=$?
44212 grep -v '^ *+' conftest.er1 >conftest.err
44213 rm -f conftest.er1
44214 cat conftest.err >&5
44215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44216 (exit $ac_status); } && {
44217 test -z "$ac_c_werror_flag" ||
44218 test ! -s conftest.err
44219 } && test -s conftest.$ac_objext; then
44220 ac_header_compiler=yes
44221 else
44222 echo "$as_me: failed program was:" >&5
44223 sed 's/^/| /' conftest.$ac_ext >&5
44225 ac_header_compiler=no
44228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44230 echo "${ECHO_T}$ac_header_compiler" >&6; }
44232 # Is the header present?
44233 { echo "$as_me:$LINENO: checking openssl/aes.h presence" >&5
44234 echo $ECHO_N "checking openssl/aes.h presence... $ECHO_C" >&6; }
44235 cat >conftest.$ac_ext <<_ACEOF
44236 /* confdefs.h. */
44237 _ACEOF
44238 cat confdefs.h >>conftest.$ac_ext
44239 cat >>conftest.$ac_ext <<_ACEOF
44240 /* end confdefs.h. */
44241 #include <openssl/aes.h>
44242 _ACEOF
44243 if { (ac_try="$ac_cpp conftest.$ac_ext"
44244 case "(($ac_try" in
44245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44246 *) ac_try_echo=$ac_try;;
44247 esac
44248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44250 ac_status=$?
44251 grep -v '^ *+' conftest.er1 >conftest.err
44252 rm -f conftest.er1
44253 cat conftest.err >&5
44254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44255 (exit $ac_status); } >/dev/null && {
44256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44257 test ! -s conftest.err
44258 }; then
44259 ac_header_preproc=yes
44260 else
44261 echo "$as_me: failed program was:" >&5
44262 sed 's/^/| /' conftest.$ac_ext >&5
44264 ac_header_preproc=no
44267 rm -f conftest.err conftest.$ac_ext
44268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44269 echo "${ECHO_T}$ac_header_preproc" >&6; }
44271 # So? What about this header?
44272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44273 yes:no: )
44274 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&5
44275 echo "$as_me: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44276 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the compiler's result" >&5
44277 echo "$as_me: WARNING: openssl/aes.h: proceeding with the compiler's result" >&2;}
44278 ac_header_preproc=yes
44280 no:yes:* )
44281 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: present but cannot be compiled" >&5
44282 echo "$as_me: WARNING: openssl/aes.h: present but cannot be compiled" >&2;}
44283 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&5
44284 echo "$as_me: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&2;}
44285 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: see the Autoconf documentation" >&5
44286 echo "$as_me: WARNING: openssl/aes.h: see the Autoconf documentation" >&2;}
44287 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&5
44288 echo "$as_me: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&2;}
44289 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&5
44290 echo "$as_me: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&2;}
44291 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&5
44292 echo "$as_me: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&2;}
44293 ( cat <<\_ASBOX
44294 ## ------------------------------- ##
44295 ## Report this to www.asterisk.org ##
44296 ## ------------------------------- ##
44297 _ASBOX
44298 ) | sed "s/^/$as_me: WARNING: /" >&2
44300 esac
44301 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
44302 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
44303 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44304 echo $ECHO_N "(cached) $ECHO_C" >&6
44305 else
44306 ac_cv_header_openssl_aes_h=$ac_header_preproc
44308 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
44309 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
44312 if test $ac_cv_header_openssl_aes_h = yes; then
44313 CRYPTO_HEADER_FOUND=1
44314 else
44315 CRYPTO_HEADER_FOUND=0
44319 CPPFLAGS="${saved_cppflags}"
44321 if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
44322 CRYPTO_LIB=""
44323 CRYPTO_INCLUDE=""
44324 else
44325 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44326 CRYPTO_LIB=""
44328 PBX_CRYPTO=1
44329 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44331 cat >>confdefs.h <<_ACEOF
44332 #define HAVE_CRYPTO 1
44333 _ACEOF
44336 cat >>confdefs.h <<_ACEOF
44337 #define HAVE_CRYPTO_VERSION
44338 _ACEOF
44345 if test "$PBX_CRYPTO" = "1";
44346 then
44348 if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
44349 pbxlibdir=""
44350 # if --with-OPENSSL=DIR has been specified, use it.
44351 if test "x${OPENSSL_DIR}" != "x"; then
44352 if test -d ${OPENSSL_DIR}/lib; then
44353 pbxlibdir="-L${OPENSSL_DIR}/lib"
44354 else
44355 pbxlibdir="-L${OPENSSL_DIR}"
44358 pbxfuncname="ssl2_connect"
44359 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44360 AST_OPENSSL_FOUND=yes
44361 else
44362 as_ac_Lib=`echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
44363 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lssl" >&5
44364 echo $ECHO_N "checking for ${pbxfuncname} in -lssl... $ECHO_C" >&6; }
44365 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44366 echo $ECHO_N "(cached) $ECHO_C" >&6
44367 else
44368 ac_check_lib_save_LIBS=$LIBS
44369 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
44370 cat >conftest.$ac_ext <<_ACEOF
44371 /* confdefs.h. */
44372 _ACEOF
44373 cat confdefs.h >>conftest.$ac_ext
44374 cat >>conftest.$ac_ext <<_ACEOF
44375 /* end confdefs.h. */
44377 /* Override any GCC internal prototype to avoid an error.
44378 Use char because int might match the return type of a GCC
44379 builtin and then its argument prototype would still apply. */
44380 #ifdef __cplusplus
44381 extern "C"
44382 #endif
44383 char ${pbxfuncname} ();
44385 main ()
44387 return ${pbxfuncname} ();
44389 return 0;
44391 _ACEOF
44392 rm -f conftest.$ac_objext conftest$ac_exeext
44393 if { (ac_try="$ac_link"
44394 case "(($ac_try" in
44395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44396 *) ac_try_echo=$ac_try;;
44397 esac
44398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44399 (eval "$ac_link") 2>conftest.er1
44400 ac_status=$?
44401 grep -v '^ *+' conftest.er1 >conftest.err
44402 rm -f conftest.er1
44403 cat conftest.err >&5
44404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44405 (exit $ac_status); } && {
44406 test -z "$ac_c_werror_flag" ||
44407 test ! -s conftest.err
44408 } && test -s conftest$ac_exeext &&
44409 $as_test_x conftest$ac_exeext; then
44410 eval "$as_ac_Lib=yes"
44411 else
44412 echo "$as_me: failed program was:" >&5
44413 sed 's/^/| /' conftest.$ac_ext >&5
44415 eval "$as_ac_Lib=no"
44418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44419 conftest$ac_exeext conftest.$ac_ext
44420 LIBS=$ac_check_lib_save_LIBS
44422 ac_res=`eval echo '${'$as_ac_Lib'}'`
44423 { echo "$as_me:$LINENO: result: $ac_res" >&5
44424 echo "${ECHO_T}$ac_res" >&6; }
44425 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44426 AST_OPENSSL_FOUND=yes
44427 else
44428 AST_OPENSSL_FOUND=no
44433 # now check for the header.
44434 if test "${AST_OPENSSL_FOUND}" = "yes"; then
44435 OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
44436 # if --with-OPENSSL=DIR has been specified, use it.
44437 if test "x${OPENSSL_DIR}" != "x"; then
44438 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
44440 OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
44441 if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
44442 OPENSSL_HEADER_FOUND="1"
44443 else # check for the header
44444 saved_cppflags="${CPPFLAGS}"
44445 CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
44446 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44447 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
44448 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
44449 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44450 echo $ECHO_N "(cached) $ECHO_C" >&6
44452 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
44453 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
44454 else
44455 # Is the header compilable?
44456 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
44457 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
44458 cat >conftest.$ac_ext <<_ACEOF
44459 /* confdefs.h. */
44460 _ACEOF
44461 cat confdefs.h >>conftest.$ac_ext
44462 cat >>conftest.$ac_ext <<_ACEOF
44463 /* end confdefs.h. */
44464 $ac_includes_default
44465 #include <openssl/ssl.h>
44466 _ACEOF
44467 rm -f conftest.$ac_objext
44468 if { (ac_try="$ac_compile"
44469 case "(($ac_try" in
44470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44471 *) ac_try_echo=$ac_try;;
44472 esac
44473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44474 (eval "$ac_compile") 2>conftest.er1
44475 ac_status=$?
44476 grep -v '^ *+' conftest.er1 >conftest.err
44477 rm -f conftest.er1
44478 cat conftest.err >&5
44479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44480 (exit $ac_status); } && {
44481 test -z "$ac_c_werror_flag" ||
44482 test ! -s conftest.err
44483 } && test -s conftest.$ac_objext; then
44484 ac_header_compiler=yes
44485 else
44486 echo "$as_me: failed program was:" >&5
44487 sed 's/^/| /' conftest.$ac_ext >&5
44489 ac_header_compiler=no
44492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44494 echo "${ECHO_T}$ac_header_compiler" >&6; }
44496 # Is the header present?
44497 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
44498 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
44499 cat >conftest.$ac_ext <<_ACEOF
44500 /* confdefs.h. */
44501 _ACEOF
44502 cat confdefs.h >>conftest.$ac_ext
44503 cat >>conftest.$ac_ext <<_ACEOF
44504 /* end confdefs.h. */
44505 #include <openssl/ssl.h>
44506 _ACEOF
44507 if { (ac_try="$ac_cpp conftest.$ac_ext"
44508 case "(($ac_try" in
44509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44510 *) ac_try_echo=$ac_try;;
44511 esac
44512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44514 ac_status=$?
44515 grep -v '^ *+' conftest.er1 >conftest.err
44516 rm -f conftest.er1
44517 cat conftest.err >&5
44518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44519 (exit $ac_status); } >/dev/null && {
44520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44521 test ! -s conftest.err
44522 }; then
44523 ac_header_preproc=yes
44524 else
44525 echo "$as_me: failed program was:" >&5
44526 sed 's/^/| /' conftest.$ac_ext >&5
44528 ac_header_preproc=no
44531 rm -f conftest.err conftest.$ac_ext
44532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44533 echo "${ECHO_T}$ac_header_preproc" >&6; }
44535 # So? What about this header?
44536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44537 yes:no: )
44538 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
44539 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44540 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
44541 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
44542 ac_header_preproc=yes
44544 no:yes:* )
44545 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
44546 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
44547 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
44548 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
44549 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
44550 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
44551 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
44552 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
44553 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
44554 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
44555 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
44556 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
44557 ( cat <<\_ASBOX
44558 ## ------------------------------- ##
44559 ## Report this to www.asterisk.org ##
44560 ## ------------------------------- ##
44561 _ASBOX
44562 ) | sed "s/^/$as_me: WARNING: /" >&2
44564 esac
44565 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
44566 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
44567 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44568 echo $ECHO_N "(cached) $ECHO_C" >&6
44569 else
44570 ac_cv_header_openssl_ssl_h=$ac_header_preproc
44572 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
44573 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
44576 if test $ac_cv_header_openssl_ssl_h = yes; then
44577 OPENSSL_HEADER_FOUND=1
44578 else
44579 OPENSSL_HEADER_FOUND=0
44583 CPPFLAGS="${saved_cppflags}"
44585 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
44586 OPENSSL_LIB=""
44587 OPENSSL_INCLUDE=""
44588 else
44589 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44590 OPENSSL_LIB=""
44592 PBX_OPENSSL=1
44593 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44595 cat >>confdefs.h <<_ACEOF
44596 #define HAVE_OPENSSL 1
44597 _ACEOF
44600 cat >>confdefs.h <<_ACEOF
44601 #define HAVE_OPENSSL_VERSION
44602 _ACEOF
44610 if test "$PBX_OPENSSL" = "1";
44611 then
44613 if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
44614 pbxlibdir=""
44615 # if --with-OSPTK=DIR has been specified, use it.
44616 if test "x${OSPTK_DIR}" != "x"; then
44617 if test -d ${OSPTK_DIR}/lib; then
44618 pbxlibdir="-L${OSPTK_DIR}/lib"
44619 else
44620 pbxlibdir="-L${OSPTK_DIR}"
44623 pbxfuncname="OSPPCryptoDecrypt"
44624 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44625 AST_OSPTK_FOUND=yes
44626 else
44627 as_ac_Lib=`echo "ac_cv_lib_osptk_${pbxfuncname}" | $as_tr_sh`
44628 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -losptk" >&5
44629 echo $ECHO_N "checking for ${pbxfuncname} in -losptk... $ECHO_C" >&6; }
44630 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44631 echo $ECHO_N "(cached) $ECHO_C" >&6
44632 else
44633 ac_check_lib_save_LIBS=$LIBS
44634 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
44635 cat >conftest.$ac_ext <<_ACEOF
44636 /* confdefs.h. */
44637 _ACEOF
44638 cat confdefs.h >>conftest.$ac_ext
44639 cat >>conftest.$ac_ext <<_ACEOF
44640 /* end confdefs.h. */
44642 /* Override any GCC internal prototype to avoid an error.
44643 Use char because int might match the return type of a GCC
44644 builtin and then its argument prototype would still apply. */
44645 #ifdef __cplusplus
44646 extern "C"
44647 #endif
44648 char ${pbxfuncname} ();
44650 main ()
44652 return ${pbxfuncname} ();
44654 return 0;
44656 _ACEOF
44657 rm -f conftest.$ac_objext conftest$ac_exeext
44658 if { (ac_try="$ac_link"
44659 case "(($ac_try" in
44660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44661 *) ac_try_echo=$ac_try;;
44662 esac
44663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44664 (eval "$ac_link") 2>conftest.er1
44665 ac_status=$?
44666 grep -v '^ *+' conftest.er1 >conftest.err
44667 rm -f conftest.er1
44668 cat conftest.err >&5
44669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44670 (exit $ac_status); } && {
44671 test -z "$ac_c_werror_flag" ||
44672 test ! -s conftest.err
44673 } && test -s conftest$ac_exeext &&
44674 $as_test_x conftest$ac_exeext; then
44675 eval "$as_ac_Lib=yes"
44676 else
44677 echo "$as_me: failed program was:" >&5
44678 sed 's/^/| /' conftest.$ac_ext >&5
44680 eval "$as_ac_Lib=no"
44683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44684 conftest$ac_exeext conftest.$ac_ext
44685 LIBS=$ac_check_lib_save_LIBS
44687 ac_res=`eval echo '${'$as_ac_Lib'}'`
44688 { echo "$as_me:$LINENO: result: $ac_res" >&5
44689 echo "${ECHO_T}$ac_res" >&6; }
44690 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44691 AST_OSPTK_FOUND=yes
44692 else
44693 AST_OSPTK_FOUND=no
44698 # now check for the header.
44699 if test "${AST_OSPTK_FOUND}" = "yes"; then
44700 OSPTK_LIB="${pbxlibdir} -losptk -lcrypto -lssl"
44701 # if --with-OSPTK=DIR has been specified, use it.
44702 if test "x${OSPTK_DIR}" != "x"; then
44703 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
44705 OSPTK_INCLUDE="${OSPTK_INCLUDE} "
44706 if test "xosp/osp.h" = "x" ; then # no header, assume found
44707 OSPTK_HEADER_FOUND="1"
44708 else # check for the header
44709 saved_cppflags="${CPPFLAGS}"
44710 CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE}"
44711 if test "${ac_cv_header_osp_osp_h+set}" = set; then
44712 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
44713 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
44714 if test "${ac_cv_header_osp_osp_h+set}" = set; then
44715 echo $ECHO_N "(cached) $ECHO_C" >&6
44717 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
44718 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
44719 else
44720 # Is the header compilable?
44721 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
44722 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
44723 cat >conftest.$ac_ext <<_ACEOF
44724 /* confdefs.h. */
44725 _ACEOF
44726 cat confdefs.h >>conftest.$ac_ext
44727 cat >>conftest.$ac_ext <<_ACEOF
44728 /* end confdefs.h. */
44729 $ac_includes_default
44730 #include <osp/osp.h>
44731 _ACEOF
44732 rm -f conftest.$ac_objext
44733 if { (ac_try="$ac_compile"
44734 case "(($ac_try" in
44735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44736 *) ac_try_echo=$ac_try;;
44737 esac
44738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44739 (eval "$ac_compile") 2>conftest.er1
44740 ac_status=$?
44741 grep -v '^ *+' conftest.er1 >conftest.err
44742 rm -f conftest.er1
44743 cat conftest.err >&5
44744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44745 (exit $ac_status); } && {
44746 test -z "$ac_c_werror_flag" ||
44747 test ! -s conftest.err
44748 } && test -s conftest.$ac_objext; then
44749 ac_header_compiler=yes
44750 else
44751 echo "$as_me: failed program was:" >&5
44752 sed 's/^/| /' conftest.$ac_ext >&5
44754 ac_header_compiler=no
44757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44759 echo "${ECHO_T}$ac_header_compiler" >&6; }
44761 # Is the header present?
44762 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
44763 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
44764 cat >conftest.$ac_ext <<_ACEOF
44765 /* confdefs.h. */
44766 _ACEOF
44767 cat confdefs.h >>conftest.$ac_ext
44768 cat >>conftest.$ac_ext <<_ACEOF
44769 /* end confdefs.h. */
44770 #include <osp/osp.h>
44771 _ACEOF
44772 if { (ac_try="$ac_cpp conftest.$ac_ext"
44773 case "(($ac_try" in
44774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44775 *) ac_try_echo=$ac_try;;
44776 esac
44777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44779 ac_status=$?
44780 grep -v '^ *+' conftest.er1 >conftest.err
44781 rm -f conftest.er1
44782 cat conftest.err >&5
44783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44784 (exit $ac_status); } >/dev/null && {
44785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44786 test ! -s conftest.err
44787 }; then
44788 ac_header_preproc=yes
44789 else
44790 echo "$as_me: failed program was:" >&5
44791 sed 's/^/| /' conftest.$ac_ext >&5
44793 ac_header_preproc=no
44796 rm -f conftest.err conftest.$ac_ext
44797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44798 echo "${ECHO_T}$ac_header_preproc" >&6; }
44800 # So? What about this header?
44801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44802 yes:no: )
44803 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
44804 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44805 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
44806 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
44807 ac_header_preproc=yes
44809 no:yes:* )
44810 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
44811 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
44812 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
44813 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
44814 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
44815 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
44816 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
44817 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
44818 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
44819 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
44820 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
44821 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
44822 ( cat <<\_ASBOX
44823 ## ------------------------------- ##
44824 ## Report this to www.asterisk.org ##
44825 ## ------------------------------- ##
44826 _ASBOX
44827 ) | sed "s/^/$as_me: WARNING: /" >&2
44829 esac
44830 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
44831 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
44832 if test "${ac_cv_header_osp_osp_h+set}" = set; then
44833 echo $ECHO_N "(cached) $ECHO_C" >&6
44834 else
44835 ac_cv_header_osp_osp_h=$ac_header_preproc
44837 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
44838 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
44841 if test $ac_cv_header_osp_osp_h = yes; then
44842 OSPTK_HEADER_FOUND=1
44843 else
44844 OSPTK_HEADER_FOUND=0
44848 CPPFLAGS="${saved_cppflags}"
44850 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
44851 OSPTK_LIB=""
44852 OSPTK_INCLUDE=""
44853 else
44854 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44855 OSPTK_LIB=""
44857 PBX_OSPTK=1
44858 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44860 cat >>confdefs.h <<_ACEOF
44861 #define HAVE_OSPTK 1
44862 _ACEOF
44865 cat >>confdefs.h <<_ACEOF
44866 #define HAVE_OSPTK_VERSION
44867 _ACEOF
44876 if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
44877 PBX_GMIME=0
44878 if test -n "$ac_tool_prefix"; then
44879 # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args.
44880 set dummy ${ac_tool_prefix}gmime-config; ac_word=$2
44881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44883 if test "${ac_cv_prog_CONFIG_GMIME+set}" = set; then
44884 echo $ECHO_N "(cached) $ECHO_C" >&6
44885 else
44886 if test -n "$CONFIG_GMIME"; then
44887 ac_cv_prog_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test.
44888 else
44889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44890 for as_dir in $PATH
44892 IFS=$as_save_IFS
44893 test -z "$as_dir" && as_dir=.
44894 for ac_exec_ext in '' $ac_executable_extensions; do
44895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44896 ac_cv_prog_CONFIG_GMIME="${ac_tool_prefix}gmime-config"
44897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44898 break 2
44900 done
44901 done
44902 IFS=$as_save_IFS
44906 CONFIG_GMIME=$ac_cv_prog_CONFIG_GMIME
44907 if test -n "$CONFIG_GMIME"; then
44908 { echo "$as_me:$LINENO: result: $CONFIG_GMIME" >&5
44909 echo "${ECHO_T}$CONFIG_GMIME" >&6; }
44910 else
44911 { echo "$as_me:$LINENO: result: no" >&5
44912 echo "${ECHO_T}no" >&6; }
44917 if test -z "$ac_cv_prog_CONFIG_GMIME"; then
44918 ac_ct_CONFIG_GMIME=$CONFIG_GMIME
44919 # Extract the first word of "gmime-config", so it can be a program name with args.
44920 set dummy gmime-config; ac_word=$2
44921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44923 if test "${ac_cv_prog_ac_ct_CONFIG_GMIME+set}" = set; then
44924 echo $ECHO_N "(cached) $ECHO_C" >&6
44925 else
44926 if test -n "$ac_ct_CONFIG_GMIME"; then
44927 ac_cv_prog_ac_ct_CONFIG_GMIME="$ac_ct_CONFIG_GMIME" # Let the user override the test.
44928 else
44929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44930 for as_dir in $PATH
44932 IFS=$as_save_IFS
44933 test -z "$as_dir" && as_dir=.
44934 for ac_exec_ext in '' $ac_executable_extensions; do
44935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44936 ac_cv_prog_ac_ct_CONFIG_GMIME="gmime-config"
44937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44938 break 2
44940 done
44941 done
44942 IFS=$as_save_IFS
44946 ac_ct_CONFIG_GMIME=$ac_cv_prog_ac_ct_CONFIG_GMIME
44947 if test -n "$ac_ct_CONFIG_GMIME"; then
44948 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GMIME" >&5
44949 echo "${ECHO_T}$ac_ct_CONFIG_GMIME" >&6; }
44950 else
44951 { echo "$as_me:$LINENO: result: no" >&5
44952 echo "${ECHO_T}no" >&6; }
44955 if test "x$ac_ct_CONFIG_GMIME" = x; then
44956 CONFIG_GMIME="No"
44957 else
44958 case $cross_compiling:$ac_tool_warned in
44959 yes:)
44960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44961 whose name does not start with the host triplet. If you think this
44962 configuration is useful to you, please write to autoconf@gnu.org." >&5
44963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44964 whose name does not start with the host triplet. If you think this
44965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44966 ac_tool_warned=yes ;;
44967 esac
44968 CONFIG_GMIME=$ac_ct_CONFIG_GMIME
44970 else
44971 CONFIG_GMIME="$ac_cv_prog_CONFIG_GMIME"
44974 if test ! "x${CONFIG_GMIME}" = xNo; then
44975 if test x"" = x ; then A=--cflags ; else A="" ; fi
44976 GMIME_INCLUDE=$(${CONFIG_GMIME} $A)
44977 if test x"" = x ; then A=--libs ; else A="" ; fi
44978 GMIME_LIB=$(${CONFIG_GMIME} $A)
44979 if test x"" != x ; then
44980 saved_cppflags="${CPPFLAGS}"
44981 if test "x${GMIME_DIR}" != "x"; then
44982 GMIME_INCLUDE="-I${GMIME_DIR}/include"
44984 CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}"
44986 saved_ldflags="${LDFLAGS}"
44987 LDFLAGS="${GMIME_LIB}"
44989 cat >conftest.$ac_ext <<_ACEOF
44990 /* confdefs.h. */
44991 _ACEOF
44992 cat confdefs.h >>conftest.$ac_ext
44993 cat >>conftest.$ac_ext <<_ACEOF
44994 /* end confdefs.h. */
44997 main ()
45002 return 0;
45004 _ACEOF
45005 rm -f conftest.$ac_objext conftest$ac_exeext
45006 if { (ac_try="$ac_link"
45007 case "(($ac_try" in
45008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45009 *) ac_try_echo=$ac_try;;
45010 esac
45011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45012 (eval "$ac_link") 2>conftest.er1
45013 ac_status=$?
45014 grep -v '^ *+' conftest.er1 >conftest.err
45015 rm -f conftest.er1
45016 cat conftest.err >&5
45017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45018 (exit $ac_status); } && {
45019 test -z "$ac_c_werror_flag" ||
45020 test ! -s conftest.err
45021 } && test -s conftest$ac_exeext &&
45022 $as_test_x conftest$ac_exeext; then
45023 PBX_GMIME=1
45025 cat >>confdefs.h <<\_ACEOF
45026 #define HAVE_GMIME 1
45027 _ACEOF
45030 else
45031 echo "$as_me: failed program was:" >&5
45032 sed 's/^/| /' conftest.$ac_ext >&5
45038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45039 conftest$ac_exeext conftest.$ac_ext
45040 CPPFLAGS="${saved_cppflags}"
45041 LDFLAGS="${saved_ldflags}"
45042 else
45043 PBX_GMIME=1
45045 cat >>confdefs.h <<\_ACEOF
45046 #define HAVE_GMIME 1
45047 _ACEOF
45055 if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
45056 pbxlibdir=""
45057 # if --with-FREETDS=DIR has been specified, use it.
45058 if test "x${FREETDS_DIR}" != "x"; then
45059 if test -d ${FREETDS_DIR}/lib; then
45060 pbxlibdir="-L${FREETDS_DIR}/lib"
45061 else
45062 pbxlibdir="-L${FREETDS_DIR}"
45065 pbxfuncname="dbinit"
45066 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45067 AST_FREETDS_FOUND=yes
45068 else
45069 as_ac_Lib=`echo "ac_cv_lib_sybdb_${pbxfuncname}" | $as_tr_sh`
45070 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsybdb" >&5
45071 echo $ECHO_N "checking for ${pbxfuncname} in -lsybdb... $ECHO_C" >&6; }
45072 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45073 echo $ECHO_N "(cached) $ECHO_C" >&6
45074 else
45075 ac_check_lib_save_LIBS=$LIBS
45076 LIBS="-lsybdb ${pbxlibdir} $LIBS"
45077 cat >conftest.$ac_ext <<_ACEOF
45078 /* confdefs.h. */
45079 _ACEOF
45080 cat confdefs.h >>conftest.$ac_ext
45081 cat >>conftest.$ac_ext <<_ACEOF
45082 /* end confdefs.h. */
45084 /* Override any GCC internal prototype to avoid an error.
45085 Use char because int might match the return type of a GCC
45086 builtin and then its argument prototype would still apply. */
45087 #ifdef __cplusplus
45088 extern "C"
45089 #endif
45090 char ${pbxfuncname} ();
45092 main ()
45094 return ${pbxfuncname} ();
45096 return 0;
45098 _ACEOF
45099 rm -f conftest.$ac_objext conftest$ac_exeext
45100 if { (ac_try="$ac_link"
45101 case "(($ac_try" in
45102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45103 *) ac_try_echo=$ac_try;;
45104 esac
45105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45106 (eval "$ac_link") 2>conftest.er1
45107 ac_status=$?
45108 grep -v '^ *+' conftest.er1 >conftest.err
45109 rm -f conftest.er1
45110 cat conftest.err >&5
45111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45112 (exit $ac_status); } && {
45113 test -z "$ac_c_werror_flag" ||
45114 test ! -s conftest.err
45115 } && test -s conftest$ac_exeext &&
45116 $as_test_x conftest$ac_exeext; then
45117 eval "$as_ac_Lib=yes"
45118 else
45119 echo "$as_me: failed program was:" >&5
45120 sed 's/^/| /' conftest.$ac_ext >&5
45122 eval "$as_ac_Lib=no"
45125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45126 conftest$ac_exeext conftest.$ac_ext
45127 LIBS=$ac_check_lib_save_LIBS
45129 ac_res=`eval echo '${'$as_ac_Lib'}'`
45130 { echo "$as_me:$LINENO: result: $ac_res" >&5
45131 echo "${ECHO_T}$ac_res" >&6; }
45132 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45133 AST_FREETDS_FOUND=yes
45134 else
45135 AST_FREETDS_FOUND=no
45140 # now check for the header.
45141 if test "${AST_FREETDS_FOUND}" = "yes"; then
45142 FREETDS_LIB="${pbxlibdir} -lsybdb "
45143 # if --with-FREETDS=DIR has been specified, use it.
45144 if test "x${FREETDS_DIR}" != "x"; then
45145 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
45147 FREETDS_INCLUDE="${FREETDS_INCLUDE} "
45148 if test "xsybdb.h" = "x" ; then # no header, assume found
45149 FREETDS_HEADER_FOUND="1"
45150 else # check for the header
45151 saved_cppflags="${CPPFLAGS}"
45152 CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
45153 if test "${ac_cv_header_sybdb_h+set}" = set; then
45154 { echo "$as_me:$LINENO: checking for sybdb.h" >&5
45155 echo $ECHO_N "checking for sybdb.h... $ECHO_C" >&6; }
45156 if test "${ac_cv_header_sybdb_h+set}" = set; then
45157 echo $ECHO_N "(cached) $ECHO_C" >&6
45159 { echo "$as_me:$LINENO: result: $ac_cv_header_sybdb_h" >&5
45160 echo "${ECHO_T}$ac_cv_header_sybdb_h" >&6; }
45161 else
45162 # Is the header compilable?
45163 { echo "$as_me:$LINENO: checking sybdb.h usability" >&5
45164 echo $ECHO_N "checking sybdb.h usability... $ECHO_C" >&6; }
45165 cat >conftest.$ac_ext <<_ACEOF
45166 /* confdefs.h. */
45167 _ACEOF
45168 cat confdefs.h >>conftest.$ac_ext
45169 cat >>conftest.$ac_ext <<_ACEOF
45170 /* end confdefs.h. */
45171 $ac_includes_default
45172 #include <sybdb.h>
45173 _ACEOF
45174 rm -f conftest.$ac_objext
45175 if { (ac_try="$ac_compile"
45176 case "(($ac_try" in
45177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45178 *) ac_try_echo=$ac_try;;
45179 esac
45180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45181 (eval "$ac_compile") 2>conftest.er1
45182 ac_status=$?
45183 grep -v '^ *+' conftest.er1 >conftest.err
45184 rm -f conftest.er1
45185 cat conftest.err >&5
45186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45187 (exit $ac_status); } && {
45188 test -z "$ac_c_werror_flag" ||
45189 test ! -s conftest.err
45190 } && test -s conftest.$ac_objext; then
45191 ac_header_compiler=yes
45192 else
45193 echo "$as_me: failed program was:" >&5
45194 sed 's/^/| /' conftest.$ac_ext >&5
45196 ac_header_compiler=no
45199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45201 echo "${ECHO_T}$ac_header_compiler" >&6; }
45203 # Is the header present?
45204 { echo "$as_me:$LINENO: checking sybdb.h presence" >&5
45205 echo $ECHO_N "checking sybdb.h presence... $ECHO_C" >&6; }
45206 cat >conftest.$ac_ext <<_ACEOF
45207 /* confdefs.h. */
45208 _ACEOF
45209 cat confdefs.h >>conftest.$ac_ext
45210 cat >>conftest.$ac_ext <<_ACEOF
45211 /* end confdefs.h. */
45212 #include <sybdb.h>
45213 _ACEOF
45214 if { (ac_try="$ac_cpp conftest.$ac_ext"
45215 case "(($ac_try" in
45216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45217 *) ac_try_echo=$ac_try;;
45218 esac
45219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45221 ac_status=$?
45222 grep -v '^ *+' conftest.er1 >conftest.err
45223 rm -f conftest.er1
45224 cat conftest.err >&5
45225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45226 (exit $ac_status); } >/dev/null && {
45227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45228 test ! -s conftest.err
45229 }; then
45230 ac_header_preproc=yes
45231 else
45232 echo "$as_me: failed program was:" >&5
45233 sed 's/^/| /' conftest.$ac_ext >&5
45235 ac_header_preproc=no
45238 rm -f conftest.err conftest.$ac_ext
45239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45240 echo "${ECHO_T}$ac_header_preproc" >&6; }
45242 # So? What about this header?
45243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45244 yes:no: )
45245 { echo "$as_me:$LINENO: WARNING: sybdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
45246 echo "$as_me: WARNING: sybdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45247 { echo "$as_me:$LINENO: WARNING: sybdb.h: proceeding with the compiler's result" >&5
45248 echo "$as_me: WARNING: sybdb.h: proceeding with the compiler's result" >&2;}
45249 ac_header_preproc=yes
45251 no:yes:* )
45252 { echo "$as_me:$LINENO: WARNING: sybdb.h: present but cannot be compiled" >&5
45253 echo "$as_me: WARNING: sybdb.h: present but cannot be compiled" >&2;}
45254 { echo "$as_me:$LINENO: WARNING: sybdb.h: check for missing prerequisite headers?" >&5
45255 echo "$as_me: WARNING: sybdb.h: check for missing prerequisite headers?" >&2;}
45256 { echo "$as_me:$LINENO: WARNING: sybdb.h: see the Autoconf documentation" >&5
45257 echo "$as_me: WARNING: sybdb.h: see the Autoconf documentation" >&2;}
45258 { echo "$as_me:$LINENO: WARNING: sybdb.h: section \"Present But Cannot Be Compiled\"" >&5
45259 echo "$as_me: WARNING: sybdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
45260 { echo "$as_me:$LINENO: WARNING: sybdb.h: proceeding with the preprocessor's result" >&5
45261 echo "$as_me: WARNING: sybdb.h: proceeding with the preprocessor's result" >&2;}
45262 { echo "$as_me:$LINENO: WARNING: sybdb.h: in the future, the compiler will take precedence" >&5
45263 echo "$as_me: WARNING: sybdb.h: in the future, the compiler will take precedence" >&2;}
45264 ( cat <<\_ASBOX
45265 ## ------------------------------- ##
45266 ## Report this to www.asterisk.org ##
45267 ## ------------------------------- ##
45268 _ASBOX
45269 ) | sed "s/^/$as_me: WARNING: /" >&2
45271 esac
45272 { echo "$as_me:$LINENO: checking for sybdb.h" >&5
45273 echo $ECHO_N "checking for sybdb.h... $ECHO_C" >&6; }
45274 if test "${ac_cv_header_sybdb_h+set}" = set; then
45275 echo $ECHO_N "(cached) $ECHO_C" >&6
45276 else
45277 ac_cv_header_sybdb_h=$ac_header_preproc
45279 { echo "$as_me:$LINENO: result: $ac_cv_header_sybdb_h" >&5
45280 echo "${ECHO_T}$ac_cv_header_sybdb_h" >&6; }
45283 if test $ac_cv_header_sybdb_h = yes; then
45284 FREETDS_HEADER_FOUND=1
45285 else
45286 FREETDS_HEADER_FOUND=0
45290 CPPFLAGS="${saved_cppflags}"
45292 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
45293 FREETDS_LIB=""
45294 FREETDS_INCLUDE=""
45295 else
45296 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45297 FREETDS_LIB=""
45299 PBX_FREETDS=1
45300 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45302 cat >>confdefs.h <<_ACEOF
45303 #define HAVE_FREETDS 1
45304 _ACEOF
45307 cat >>confdefs.h <<_ACEOF
45308 #define HAVE_FREETDS_VERSION
45309 _ACEOF
45317 if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
45318 pbxlibdir=""
45319 # if --with-TERMCAP=DIR has been specified, use it.
45320 if test "x${TERMCAP_DIR}" != "x"; then
45321 if test -d ${TERMCAP_DIR}/lib; then
45322 pbxlibdir="-L${TERMCAP_DIR}/lib"
45323 else
45324 pbxlibdir="-L${TERMCAP_DIR}"
45327 pbxfuncname="tgetent"
45328 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45329 AST_TERMCAP_FOUND=yes
45330 else
45331 as_ac_Lib=`echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
45332 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltermcap" >&5
45333 echo $ECHO_N "checking for ${pbxfuncname} in -ltermcap... $ECHO_C" >&6; }
45334 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45335 echo $ECHO_N "(cached) $ECHO_C" >&6
45336 else
45337 ac_check_lib_save_LIBS=$LIBS
45338 LIBS="-ltermcap ${pbxlibdir} $LIBS"
45339 cat >conftest.$ac_ext <<_ACEOF
45340 /* confdefs.h. */
45341 _ACEOF
45342 cat confdefs.h >>conftest.$ac_ext
45343 cat >>conftest.$ac_ext <<_ACEOF
45344 /* end confdefs.h. */
45346 /* Override any GCC internal prototype to avoid an error.
45347 Use char because int might match the return type of a GCC
45348 builtin and then its argument prototype would still apply. */
45349 #ifdef __cplusplus
45350 extern "C"
45351 #endif
45352 char ${pbxfuncname} ();
45354 main ()
45356 return ${pbxfuncname} ();
45358 return 0;
45360 _ACEOF
45361 rm -f conftest.$ac_objext conftest$ac_exeext
45362 if { (ac_try="$ac_link"
45363 case "(($ac_try" in
45364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45365 *) ac_try_echo=$ac_try;;
45366 esac
45367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45368 (eval "$ac_link") 2>conftest.er1
45369 ac_status=$?
45370 grep -v '^ *+' conftest.er1 >conftest.err
45371 rm -f conftest.er1
45372 cat conftest.err >&5
45373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45374 (exit $ac_status); } && {
45375 test -z "$ac_c_werror_flag" ||
45376 test ! -s conftest.err
45377 } && test -s conftest$ac_exeext &&
45378 $as_test_x conftest$ac_exeext; then
45379 eval "$as_ac_Lib=yes"
45380 else
45381 echo "$as_me: failed program was:" >&5
45382 sed 's/^/| /' conftest.$ac_ext >&5
45384 eval "$as_ac_Lib=no"
45387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45388 conftest$ac_exeext conftest.$ac_ext
45389 LIBS=$ac_check_lib_save_LIBS
45391 ac_res=`eval echo '${'$as_ac_Lib'}'`
45392 { echo "$as_me:$LINENO: result: $ac_res" >&5
45393 echo "${ECHO_T}$ac_res" >&6; }
45394 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45395 AST_TERMCAP_FOUND=yes
45396 else
45397 AST_TERMCAP_FOUND=no
45402 # now check for the header.
45403 if test "${AST_TERMCAP_FOUND}" = "yes"; then
45404 TERMCAP_LIB="${pbxlibdir} -ltermcap "
45405 # if --with-TERMCAP=DIR has been specified, use it.
45406 if test "x${TERMCAP_DIR}" != "x"; then
45407 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
45409 TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
45410 if test "x" = "x" ; then # no header, assume found
45411 TERMCAP_HEADER_FOUND="1"
45412 else # check for the header
45413 saved_cppflags="${CPPFLAGS}"
45414 CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
45415 if test "${ac_cv_header_+set}" = set; then
45416 { echo "$as_me:$LINENO: checking for " >&5
45417 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45418 if test "${ac_cv_header_+set}" = set; then
45419 echo $ECHO_N "(cached) $ECHO_C" >&6
45421 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45422 echo "${ECHO_T}$ac_cv_header_" >&6; }
45423 else
45424 # Is the header compilable?
45425 { echo "$as_me:$LINENO: checking usability" >&5
45426 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
45427 cat >conftest.$ac_ext <<_ACEOF
45428 /* confdefs.h. */
45429 _ACEOF
45430 cat confdefs.h >>conftest.$ac_ext
45431 cat >>conftest.$ac_ext <<_ACEOF
45432 /* end confdefs.h. */
45433 $ac_includes_default
45434 #include <>
45435 _ACEOF
45436 rm -f conftest.$ac_objext
45437 if { (ac_try="$ac_compile"
45438 case "(($ac_try" in
45439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45440 *) ac_try_echo=$ac_try;;
45441 esac
45442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45443 (eval "$ac_compile") 2>conftest.er1
45444 ac_status=$?
45445 grep -v '^ *+' conftest.er1 >conftest.err
45446 rm -f conftest.er1
45447 cat conftest.err >&5
45448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45449 (exit $ac_status); } && {
45450 test -z "$ac_c_werror_flag" ||
45451 test ! -s conftest.err
45452 } && test -s conftest.$ac_objext; then
45453 ac_header_compiler=yes
45454 else
45455 echo "$as_me: failed program was:" >&5
45456 sed 's/^/| /' conftest.$ac_ext >&5
45458 ac_header_compiler=no
45461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45463 echo "${ECHO_T}$ac_header_compiler" >&6; }
45465 # Is the header present?
45466 { echo "$as_me:$LINENO: checking presence" >&5
45467 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
45468 cat >conftest.$ac_ext <<_ACEOF
45469 /* confdefs.h. */
45470 _ACEOF
45471 cat confdefs.h >>conftest.$ac_ext
45472 cat >>conftest.$ac_ext <<_ACEOF
45473 /* end confdefs.h. */
45474 #include <>
45475 _ACEOF
45476 if { (ac_try="$ac_cpp conftest.$ac_ext"
45477 case "(($ac_try" in
45478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45479 *) ac_try_echo=$ac_try;;
45480 esac
45481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45483 ac_status=$?
45484 grep -v '^ *+' conftest.er1 >conftest.err
45485 rm -f conftest.er1
45486 cat conftest.err >&5
45487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45488 (exit $ac_status); } >/dev/null && {
45489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45490 test ! -s conftest.err
45491 }; then
45492 ac_header_preproc=yes
45493 else
45494 echo "$as_me: failed program was:" >&5
45495 sed 's/^/| /' conftest.$ac_ext >&5
45497 ac_header_preproc=no
45500 rm -f conftest.err conftest.$ac_ext
45501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45502 echo "${ECHO_T}$ac_header_preproc" >&6; }
45504 # So? What about this header?
45505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45506 yes:no: )
45507 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
45508 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
45509 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
45510 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
45511 ac_header_preproc=yes
45513 no:yes:* )
45514 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
45515 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
45516 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
45517 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
45518 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
45519 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
45520 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
45521 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
45522 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
45523 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
45524 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
45525 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
45526 ( cat <<\_ASBOX
45527 ## ------------------------------- ##
45528 ## Report this to www.asterisk.org ##
45529 ## ------------------------------- ##
45530 _ASBOX
45531 ) | sed "s/^/$as_me: WARNING: /" >&2
45533 esac
45534 { echo "$as_me:$LINENO: checking for " >&5
45535 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45536 if test "${ac_cv_header_+set}" = set; then
45537 echo $ECHO_N "(cached) $ECHO_C" >&6
45538 else
45539 ac_cv_header_=$ac_header_preproc
45541 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45542 echo "${ECHO_T}$ac_cv_header_" >&6; }
45545 if test $ac_cv_header_ = yes; then
45546 TERMCAP_HEADER_FOUND=1
45547 else
45548 TERMCAP_HEADER_FOUND=0
45552 CPPFLAGS="${saved_cppflags}"
45554 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
45555 TERMCAP_LIB=""
45556 TERMCAP_INCLUDE=""
45557 else
45558 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45559 TERMCAP_LIB=""
45561 PBX_TERMCAP=1
45562 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45564 cat >>confdefs.h <<_ACEOF
45565 #define HAVE_TERMCAP 1
45566 _ACEOF
45569 cat >>confdefs.h <<_ACEOF
45570 #define HAVE_TERMCAP_VERSION
45571 _ACEOF
45579 if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
45580 pbxlibdir=""
45581 # if --with-TINFO=DIR has been specified, use it.
45582 if test "x${TINFO_DIR}" != "x"; then
45583 if test -d ${TINFO_DIR}/lib; then
45584 pbxlibdir="-L${TINFO_DIR}/lib"
45585 else
45586 pbxlibdir="-L${TINFO_DIR}"
45589 pbxfuncname="tgetent"
45590 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45591 AST_TINFO_FOUND=yes
45592 else
45593 as_ac_Lib=`echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
45594 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltinfo" >&5
45595 echo $ECHO_N "checking for ${pbxfuncname} in -ltinfo... $ECHO_C" >&6; }
45596 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45597 echo $ECHO_N "(cached) $ECHO_C" >&6
45598 else
45599 ac_check_lib_save_LIBS=$LIBS
45600 LIBS="-ltinfo ${pbxlibdir} $LIBS"
45601 cat >conftest.$ac_ext <<_ACEOF
45602 /* confdefs.h. */
45603 _ACEOF
45604 cat confdefs.h >>conftest.$ac_ext
45605 cat >>conftest.$ac_ext <<_ACEOF
45606 /* end confdefs.h. */
45608 /* Override any GCC internal prototype to avoid an error.
45609 Use char because int might match the return type of a GCC
45610 builtin and then its argument prototype would still apply. */
45611 #ifdef __cplusplus
45612 extern "C"
45613 #endif
45614 char ${pbxfuncname} ();
45616 main ()
45618 return ${pbxfuncname} ();
45620 return 0;
45622 _ACEOF
45623 rm -f conftest.$ac_objext conftest$ac_exeext
45624 if { (ac_try="$ac_link"
45625 case "(($ac_try" in
45626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45627 *) ac_try_echo=$ac_try;;
45628 esac
45629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45630 (eval "$ac_link") 2>conftest.er1
45631 ac_status=$?
45632 grep -v '^ *+' conftest.er1 >conftest.err
45633 rm -f conftest.er1
45634 cat conftest.err >&5
45635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45636 (exit $ac_status); } && {
45637 test -z "$ac_c_werror_flag" ||
45638 test ! -s conftest.err
45639 } && test -s conftest$ac_exeext &&
45640 $as_test_x conftest$ac_exeext; then
45641 eval "$as_ac_Lib=yes"
45642 else
45643 echo "$as_me: failed program was:" >&5
45644 sed 's/^/| /' conftest.$ac_ext >&5
45646 eval "$as_ac_Lib=no"
45649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45650 conftest$ac_exeext conftest.$ac_ext
45651 LIBS=$ac_check_lib_save_LIBS
45653 ac_res=`eval echo '${'$as_ac_Lib'}'`
45654 { echo "$as_me:$LINENO: result: $ac_res" >&5
45655 echo "${ECHO_T}$ac_res" >&6; }
45656 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45657 AST_TINFO_FOUND=yes
45658 else
45659 AST_TINFO_FOUND=no
45664 # now check for the header.
45665 if test "${AST_TINFO_FOUND}" = "yes"; then
45666 TINFO_LIB="${pbxlibdir} -ltinfo "
45667 # if --with-TINFO=DIR has been specified, use it.
45668 if test "x${TINFO_DIR}" != "x"; then
45669 TINFO_INCLUDE="-I${TINFO_DIR}/include"
45671 TINFO_INCLUDE="${TINFO_INCLUDE} "
45672 if test "x" = "x" ; then # no header, assume found
45673 TINFO_HEADER_FOUND="1"
45674 else # check for the header
45675 saved_cppflags="${CPPFLAGS}"
45676 CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}"
45677 if test "${ac_cv_header_+set}" = set; then
45678 { echo "$as_me:$LINENO: checking for " >&5
45679 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45680 if test "${ac_cv_header_+set}" = set; then
45681 echo $ECHO_N "(cached) $ECHO_C" >&6
45683 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45684 echo "${ECHO_T}$ac_cv_header_" >&6; }
45685 else
45686 # Is the header compilable?
45687 { echo "$as_me:$LINENO: checking usability" >&5
45688 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
45689 cat >conftest.$ac_ext <<_ACEOF
45690 /* confdefs.h. */
45691 _ACEOF
45692 cat confdefs.h >>conftest.$ac_ext
45693 cat >>conftest.$ac_ext <<_ACEOF
45694 /* end confdefs.h. */
45695 $ac_includes_default
45696 #include <>
45697 _ACEOF
45698 rm -f conftest.$ac_objext
45699 if { (ac_try="$ac_compile"
45700 case "(($ac_try" in
45701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45702 *) ac_try_echo=$ac_try;;
45703 esac
45704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45705 (eval "$ac_compile") 2>conftest.er1
45706 ac_status=$?
45707 grep -v '^ *+' conftest.er1 >conftest.err
45708 rm -f conftest.er1
45709 cat conftest.err >&5
45710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45711 (exit $ac_status); } && {
45712 test -z "$ac_c_werror_flag" ||
45713 test ! -s conftest.err
45714 } && test -s conftest.$ac_objext; then
45715 ac_header_compiler=yes
45716 else
45717 echo "$as_me: failed program was:" >&5
45718 sed 's/^/| /' conftest.$ac_ext >&5
45720 ac_header_compiler=no
45723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45725 echo "${ECHO_T}$ac_header_compiler" >&6; }
45727 # Is the header present?
45728 { echo "$as_me:$LINENO: checking presence" >&5
45729 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
45730 cat >conftest.$ac_ext <<_ACEOF
45731 /* confdefs.h. */
45732 _ACEOF
45733 cat confdefs.h >>conftest.$ac_ext
45734 cat >>conftest.$ac_ext <<_ACEOF
45735 /* end confdefs.h. */
45736 #include <>
45737 _ACEOF
45738 if { (ac_try="$ac_cpp conftest.$ac_ext"
45739 case "(($ac_try" in
45740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45741 *) ac_try_echo=$ac_try;;
45742 esac
45743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45745 ac_status=$?
45746 grep -v '^ *+' conftest.er1 >conftest.err
45747 rm -f conftest.er1
45748 cat conftest.err >&5
45749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45750 (exit $ac_status); } >/dev/null && {
45751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45752 test ! -s conftest.err
45753 }; then
45754 ac_header_preproc=yes
45755 else
45756 echo "$as_me: failed program was:" >&5
45757 sed 's/^/| /' conftest.$ac_ext >&5
45759 ac_header_preproc=no
45762 rm -f conftest.err conftest.$ac_ext
45763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45764 echo "${ECHO_T}$ac_header_preproc" >&6; }
45766 # So? What about this header?
45767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45768 yes:no: )
45769 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
45770 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
45771 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
45772 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
45773 ac_header_preproc=yes
45775 no:yes:* )
45776 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
45777 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
45778 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
45779 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
45780 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
45781 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
45782 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
45783 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
45784 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
45785 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
45786 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
45787 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
45788 ( cat <<\_ASBOX
45789 ## ------------------------------- ##
45790 ## Report this to www.asterisk.org ##
45791 ## ------------------------------- ##
45792 _ASBOX
45793 ) | sed "s/^/$as_me: WARNING: /" >&2
45795 esac
45796 { echo "$as_me:$LINENO: checking for " >&5
45797 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45798 if test "${ac_cv_header_+set}" = set; then
45799 echo $ECHO_N "(cached) $ECHO_C" >&6
45800 else
45801 ac_cv_header_=$ac_header_preproc
45803 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45804 echo "${ECHO_T}$ac_cv_header_" >&6; }
45807 if test $ac_cv_header_ = yes; then
45808 TINFO_HEADER_FOUND=1
45809 else
45810 TINFO_HEADER_FOUND=0
45814 CPPFLAGS="${saved_cppflags}"
45816 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
45817 TINFO_LIB=""
45818 TINFO_INCLUDE=""
45819 else
45820 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45821 TINFO_LIB=""
45823 PBX_TINFO=1
45824 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45826 cat >>confdefs.h <<_ACEOF
45827 #define HAVE_TINFO 1
45828 _ACEOF
45831 cat >>confdefs.h <<_ACEOF
45832 #define HAVE_TINFO_VERSION
45833 _ACEOF
45840 if test "${host_os}" != "linux-gnu" ; then
45841 tonezone_extra="-lm"
45845 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
45846 pbxlibdir=""
45847 # if --with-TONEZONE=DIR has been specified, use it.
45848 if test "x${TONEZONE_DIR}" != "x"; then
45849 if test -d ${TONEZONE_DIR}/lib; then
45850 pbxlibdir="-L${TONEZONE_DIR}/lib"
45851 else
45852 pbxlibdir="-L${TONEZONE_DIR}"
45855 pbxfuncname="tone_zone_find"
45856 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45857 AST_TONEZONE_FOUND=yes
45858 else
45859 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
45860 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
45861 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
45862 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45863 echo $ECHO_N "(cached) $ECHO_C" >&6
45864 else
45865 ac_check_lib_save_LIBS=$LIBS
45866 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} ${DAHDI_INCLUDE} $LIBS"
45867 cat >conftest.$ac_ext <<_ACEOF
45868 /* confdefs.h. */
45869 _ACEOF
45870 cat confdefs.h >>conftest.$ac_ext
45871 cat >>conftest.$ac_ext <<_ACEOF
45872 /* end confdefs.h. */
45874 /* Override any GCC internal prototype to avoid an error.
45875 Use char because int might match the return type of a GCC
45876 builtin and then its argument prototype would still apply. */
45877 #ifdef __cplusplus
45878 extern "C"
45879 #endif
45880 char ${pbxfuncname} ();
45882 main ()
45884 return ${pbxfuncname} ();
45886 return 0;
45888 _ACEOF
45889 rm -f conftest.$ac_objext conftest$ac_exeext
45890 if { (ac_try="$ac_link"
45891 case "(($ac_try" in
45892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45893 *) ac_try_echo=$ac_try;;
45894 esac
45895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45896 (eval "$ac_link") 2>conftest.er1
45897 ac_status=$?
45898 grep -v '^ *+' conftest.er1 >conftest.err
45899 rm -f conftest.er1
45900 cat conftest.err >&5
45901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45902 (exit $ac_status); } && {
45903 test -z "$ac_c_werror_flag" ||
45904 test ! -s conftest.err
45905 } && test -s conftest$ac_exeext &&
45906 $as_test_x conftest$ac_exeext; then
45907 eval "$as_ac_Lib=yes"
45908 else
45909 echo "$as_me: failed program was:" >&5
45910 sed 's/^/| /' conftest.$ac_ext >&5
45912 eval "$as_ac_Lib=no"
45915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45916 conftest$ac_exeext conftest.$ac_ext
45917 LIBS=$ac_check_lib_save_LIBS
45919 ac_res=`eval echo '${'$as_ac_Lib'}'`
45920 { echo "$as_me:$LINENO: result: $ac_res" >&5
45921 echo "${ECHO_T}$ac_res" >&6; }
45922 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45923 AST_TONEZONE_FOUND=yes
45924 else
45925 AST_TONEZONE_FOUND=no
45930 # now check for the header.
45931 if test "${AST_TONEZONE_FOUND}" = "yes"; then
45932 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra} ${DAHDI_INCLUDE}"
45933 # if --with-TONEZONE=DIR has been specified, use it.
45934 if test "x${TONEZONE_DIR}" != "x"; then
45935 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
45937 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
45938 if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found
45939 TONEZONE_HEADER_FOUND="1"
45940 else # check for the header
45941 saved_cppflags="${CPPFLAGS}"
45942 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
45943 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
45944 { echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
45945 echo $ECHO_N "checking for dahdi/tonezone.h... $ECHO_C" >&6; }
45946 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
45947 echo $ECHO_N "(cached) $ECHO_C" >&6
45949 { echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
45950 echo "${ECHO_T}$ac_cv_header_dahdi_tonezone_h" >&6; }
45951 else
45952 # Is the header compilable?
45953 { echo "$as_me:$LINENO: checking dahdi/tonezone.h usability" >&5
45954 echo $ECHO_N "checking dahdi/tonezone.h usability... $ECHO_C" >&6; }
45955 cat >conftest.$ac_ext <<_ACEOF
45956 /* confdefs.h. */
45957 _ACEOF
45958 cat confdefs.h >>conftest.$ac_ext
45959 cat >>conftest.$ac_ext <<_ACEOF
45960 /* end confdefs.h. */
45961 $ac_includes_default
45962 #include <dahdi/tonezone.h>
45963 _ACEOF
45964 rm -f conftest.$ac_objext
45965 if { (ac_try="$ac_compile"
45966 case "(($ac_try" in
45967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45968 *) ac_try_echo=$ac_try;;
45969 esac
45970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45971 (eval "$ac_compile") 2>conftest.er1
45972 ac_status=$?
45973 grep -v '^ *+' conftest.er1 >conftest.err
45974 rm -f conftest.er1
45975 cat conftest.err >&5
45976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45977 (exit $ac_status); } && {
45978 test -z "$ac_c_werror_flag" ||
45979 test ! -s conftest.err
45980 } && test -s conftest.$ac_objext; then
45981 ac_header_compiler=yes
45982 else
45983 echo "$as_me: failed program was:" >&5
45984 sed 's/^/| /' conftest.$ac_ext >&5
45986 ac_header_compiler=no
45989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45991 echo "${ECHO_T}$ac_header_compiler" >&6; }
45993 # Is the header present?
45994 { echo "$as_me:$LINENO: checking dahdi/tonezone.h presence" >&5
45995 echo $ECHO_N "checking dahdi/tonezone.h presence... $ECHO_C" >&6; }
45996 cat >conftest.$ac_ext <<_ACEOF
45997 /* confdefs.h. */
45998 _ACEOF
45999 cat confdefs.h >>conftest.$ac_ext
46000 cat >>conftest.$ac_ext <<_ACEOF
46001 /* end confdefs.h. */
46002 #include <dahdi/tonezone.h>
46003 _ACEOF
46004 if { (ac_try="$ac_cpp conftest.$ac_ext"
46005 case "(($ac_try" in
46006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46007 *) ac_try_echo=$ac_try;;
46008 esac
46009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46011 ac_status=$?
46012 grep -v '^ *+' conftest.er1 >conftest.err
46013 rm -f conftest.er1
46014 cat conftest.err >&5
46015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46016 (exit $ac_status); } >/dev/null && {
46017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46018 test ! -s conftest.err
46019 }; then
46020 ac_header_preproc=yes
46021 else
46022 echo "$as_me: failed program was:" >&5
46023 sed 's/^/| /' conftest.$ac_ext >&5
46025 ac_header_preproc=no
46028 rm -f conftest.err conftest.$ac_ext
46029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46030 echo "${ECHO_T}$ac_header_preproc" >&6; }
46032 # So? What about this header?
46033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46034 yes:no: )
46035 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
46036 echo "$as_me: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46037 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&5
46038 echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&2;}
46039 ac_header_preproc=yes
46041 no:yes:* )
46042 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&5
46043 echo "$as_me: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&2;}
46044 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&5
46045 echo "$as_me: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&2;}
46046 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&5
46047 echo "$as_me: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&2;}
46048 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
46049 echo "$as_me: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
46050 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&5
46051 echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&2;}
46052 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&5
46053 echo "$as_me: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&2;}
46054 ( cat <<\_ASBOX
46055 ## ------------------------------- ##
46056 ## Report this to www.asterisk.org ##
46057 ## ------------------------------- ##
46058 _ASBOX
46059 ) | sed "s/^/$as_me: WARNING: /" >&2
46061 esac
46062 { echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
46063 echo $ECHO_N "checking for dahdi/tonezone.h... $ECHO_C" >&6; }
46064 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
46065 echo $ECHO_N "(cached) $ECHO_C" >&6
46066 else
46067 ac_cv_header_dahdi_tonezone_h=$ac_header_preproc
46069 { echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
46070 echo "${ECHO_T}$ac_cv_header_dahdi_tonezone_h" >&6; }
46073 if test $ac_cv_header_dahdi_tonezone_h = yes; then
46074 TONEZONE_HEADER_FOUND=1
46075 else
46076 TONEZONE_HEADER_FOUND=0
46080 CPPFLAGS="${saved_cppflags}"
46082 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
46083 TONEZONE_LIB=""
46084 TONEZONE_INCLUDE=""
46085 else
46086 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46087 TONEZONE_LIB=""
46089 PBX_TONEZONE=1
46090 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46092 cat >>confdefs.h <<_ACEOF
46093 #define HAVE_TONEZONE 1
46094 _ACEOF
46097 cat >>confdefs.h <<_ACEOF
46098 #define HAVE_TONEZONE_VERSION
46099 _ACEOF
46107 if test "x${PBX_USB}" != "x1" -a "${USE_USB}" != "no"; then
46108 pbxlibdir=""
46109 # if --with-USB=DIR has been specified, use it.
46110 if test "x${USB_DIR}" != "x"; then
46111 if test -d ${USB_DIR}/lib; then
46112 pbxlibdir="-L${USB_DIR}/lib"
46113 else
46114 pbxlibdir="-L${USB_DIR}"
46117 pbxfuncname="usb_init"
46118 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46119 AST_USB_FOUND=yes
46120 else
46121 as_ac_Lib=`echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh`
46122 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lusb" >&5
46123 echo $ECHO_N "checking for ${pbxfuncname} in -lusb... $ECHO_C" >&6; }
46124 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46125 echo $ECHO_N "(cached) $ECHO_C" >&6
46126 else
46127 ac_check_lib_save_LIBS=$LIBS
46128 LIBS="-lusb ${pbxlibdir} $LIBS"
46129 cat >conftest.$ac_ext <<_ACEOF
46130 /* confdefs.h. */
46131 _ACEOF
46132 cat confdefs.h >>conftest.$ac_ext
46133 cat >>conftest.$ac_ext <<_ACEOF
46134 /* end confdefs.h. */
46136 /* Override any GCC internal prototype to avoid an error.
46137 Use char because int might match the return type of a GCC
46138 builtin and then its argument prototype would still apply. */
46139 #ifdef __cplusplus
46140 extern "C"
46141 #endif
46142 char ${pbxfuncname} ();
46144 main ()
46146 return ${pbxfuncname} ();
46148 return 0;
46150 _ACEOF
46151 rm -f conftest.$ac_objext conftest$ac_exeext
46152 if { (ac_try="$ac_link"
46153 case "(($ac_try" in
46154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46155 *) ac_try_echo=$ac_try;;
46156 esac
46157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46158 (eval "$ac_link") 2>conftest.er1
46159 ac_status=$?
46160 grep -v '^ *+' conftest.er1 >conftest.err
46161 rm -f conftest.er1
46162 cat conftest.err >&5
46163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46164 (exit $ac_status); } && {
46165 test -z "$ac_c_werror_flag" ||
46166 test ! -s conftest.err
46167 } && test -s conftest$ac_exeext &&
46168 $as_test_x conftest$ac_exeext; then
46169 eval "$as_ac_Lib=yes"
46170 else
46171 echo "$as_me: failed program was:" >&5
46172 sed 's/^/| /' conftest.$ac_ext >&5
46174 eval "$as_ac_Lib=no"
46177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46178 conftest$ac_exeext conftest.$ac_ext
46179 LIBS=$ac_check_lib_save_LIBS
46181 ac_res=`eval echo '${'$as_ac_Lib'}'`
46182 { echo "$as_me:$LINENO: result: $ac_res" >&5
46183 echo "${ECHO_T}$ac_res" >&6; }
46184 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46185 AST_USB_FOUND=yes
46186 else
46187 AST_USB_FOUND=no
46192 # now check for the header.
46193 if test "${AST_USB_FOUND}" = "yes"; then
46194 USB_LIB="${pbxlibdir} -lusb "
46195 # if --with-USB=DIR has been specified, use it.
46196 if test "x${USB_DIR}" != "x"; then
46197 USB_INCLUDE="-I${USB_DIR}/include"
46199 USB_INCLUDE="${USB_INCLUDE} "
46200 if test "xusb.h" = "x" ; then # no header, assume found
46201 USB_HEADER_FOUND="1"
46202 else # check for the header
46203 saved_cppflags="${CPPFLAGS}"
46204 CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE}"
46205 if test "${ac_cv_header_usb_h+set}" = set; then
46206 { echo "$as_me:$LINENO: checking for usb.h" >&5
46207 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
46208 if test "${ac_cv_header_usb_h+set}" = set; then
46209 echo $ECHO_N "(cached) $ECHO_C" >&6
46211 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
46212 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
46213 else
46214 # Is the header compilable?
46215 { echo "$as_me:$LINENO: checking usb.h usability" >&5
46216 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
46217 cat >conftest.$ac_ext <<_ACEOF
46218 /* confdefs.h. */
46219 _ACEOF
46220 cat confdefs.h >>conftest.$ac_ext
46221 cat >>conftest.$ac_ext <<_ACEOF
46222 /* end confdefs.h. */
46223 $ac_includes_default
46224 #include <usb.h>
46225 _ACEOF
46226 rm -f conftest.$ac_objext
46227 if { (ac_try="$ac_compile"
46228 case "(($ac_try" in
46229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46230 *) ac_try_echo=$ac_try;;
46231 esac
46232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46233 (eval "$ac_compile") 2>conftest.er1
46234 ac_status=$?
46235 grep -v '^ *+' conftest.er1 >conftest.err
46236 rm -f conftest.er1
46237 cat conftest.err >&5
46238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46239 (exit $ac_status); } && {
46240 test -z "$ac_c_werror_flag" ||
46241 test ! -s conftest.err
46242 } && test -s conftest.$ac_objext; then
46243 ac_header_compiler=yes
46244 else
46245 echo "$as_me: failed program was:" >&5
46246 sed 's/^/| /' conftest.$ac_ext >&5
46248 ac_header_compiler=no
46251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46253 echo "${ECHO_T}$ac_header_compiler" >&6; }
46255 # Is the header present?
46256 { echo "$as_me:$LINENO: checking usb.h presence" >&5
46257 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
46258 cat >conftest.$ac_ext <<_ACEOF
46259 /* confdefs.h. */
46260 _ACEOF
46261 cat confdefs.h >>conftest.$ac_ext
46262 cat >>conftest.$ac_ext <<_ACEOF
46263 /* end confdefs.h. */
46264 #include <usb.h>
46265 _ACEOF
46266 if { (ac_try="$ac_cpp conftest.$ac_ext"
46267 case "(($ac_try" in
46268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46269 *) ac_try_echo=$ac_try;;
46270 esac
46271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46273 ac_status=$?
46274 grep -v '^ *+' conftest.er1 >conftest.err
46275 rm -f conftest.er1
46276 cat conftest.err >&5
46277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46278 (exit $ac_status); } >/dev/null && {
46279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46280 test ! -s conftest.err
46281 }; then
46282 ac_header_preproc=yes
46283 else
46284 echo "$as_me: failed program was:" >&5
46285 sed 's/^/| /' conftest.$ac_ext >&5
46287 ac_header_preproc=no
46290 rm -f conftest.err conftest.$ac_ext
46291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46292 echo "${ECHO_T}$ac_header_preproc" >&6; }
46294 # So? What about this header?
46295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46296 yes:no: )
46297 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
46298 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46299 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
46300 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
46301 ac_header_preproc=yes
46303 no:yes:* )
46304 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
46305 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
46306 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
46307 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
46308 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
46309 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
46310 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
46311 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
46312 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
46313 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
46314 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
46315 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
46316 ( cat <<\_ASBOX
46317 ## ------------------------------- ##
46318 ## Report this to www.asterisk.org ##
46319 ## ------------------------------- ##
46320 _ASBOX
46321 ) | sed "s/^/$as_me: WARNING: /" >&2
46323 esac
46324 { echo "$as_me:$LINENO: checking for usb.h" >&5
46325 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
46326 if test "${ac_cv_header_usb_h+set}" = set; then
46327 echo $ECHO_N "(cached) $ECHO_C" >&6
46328 else
46329 ac_cv_header_usb_h=$ac_header_preproc
46331 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
46332 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
46335 if test $ac_cv_header_usb_h = yes; then
46336 USB_HEADER_FOUND=1
46337 else
46338 USB_HEADER_FOUND=0
46342 CPPFLAGS="${saved_cppflags}"
46344 if test "x${USB_HEADER_FOUND}" = "x0" ; then
46345 USB_LIB=""
46346 USB_INCLUDE=""
46347 else
46348 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46349 USB_LIB=""
46351 PBX_USB=1
46352 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46354 cat >>confdefs.h <<_ACEOF
46355 #define HAVE_USB 1
46356 _ACEOF
46359 cat >>confdefs.h <<_ACEOF
46360 #define HAVE_USB_VERSION
46361 _ACEOF
46369 if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
46370 pbxlibdir=""
46371 # if --with-VORBIS=DIR has been specified, use it.
46372 if test "x${VORBIS_DIR}" != "x"; then
46373 if test -d ${VORBIS_DIR}/lib; then
46374 pbxlibdir="-L${VORBIS_DIR}/lib"
46375 else
46376 pbxlibdir="-L${VORBIS_DIR}"
46379 pbxfuncname="vorbis_info_init"
46380 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46381 AST_VORBIS_FOUND=yes
46382 else
46383 as_ac_Lib=`echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
46384 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
46385 echo $ECHO_N "checking for ${pbxfuncname} in -lvorbis... $ECHO_C" >&6; }
46386 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46387 echo $ECHO_N "(cached) $ECHO_C" >&6
46388 else
46389 ac_check_lib_save_LIBS=$LIBS
46390 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
46391 cat >conftest.$ac_ext <<_ACEOF
46392 /* confdefs.h. */
46393 _ACEOF
46394 cat confdefs.h >>conftest.$ac_ext
46395 cat >>conftest.$ac_ext <<_ACEOF
46396 /* end confdefs.h. */
46398 /* Override any GCC internal prototype to avoid an error.
46399 Use char because int might match the return type of a GCC
46400 builtin and then its argument prototype would still apply. */
46401 #ifdef __cplusplus
46402 extern "C"
46403 #endif
46404 char ${pbxfuncname} ();
46406 main ()
46408 return ${pbxfuncname} ();
46410 return 0;
46412 _ACEOF
46413 rm -f conftest.$ac_objext conftest$ac_exeext
46414 if { (ac_try="$ac_link"
46415 case "(($ac_try" in
46416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46417 *) ac_try_echo=$ac_try;;
46418 esac
46419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46420 (eval "$ac_link") 2>conftest.er1
46421 ac_status=$?
46422 grep -v '^ *+' conftest.er1 >conftest.err
46423 rm -f conftest.er1
46424 cat conftest.err >&5
46425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46426 (exit $ac_status); } && {
46427 test -z "$ac_c_werror_flag" ||
46428 test ! -s conftest.err
46429 } && test -s conftest$ac_exeext &&
46430 $as_test_x conftest$ac_exeext; then
46431 eval "$as_ac_Lib=yes"
46432 else
46433 echo "$as_me: failed program was:" >&5
46434 sed 's/^/| /' conftest.$ac_ext >&5
46436 eval "$as_ac_Lib=no"
46439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46440 conftest$ac_exeext conftest.$ac_ext
46441 LIBS=$ac_check_lib_save_LIBS
46443 ac_res=`eval echo '${'$as_ac_Lib'}'`
46444 { echo "$as_me:$LINENO: result: $ac_res" >&5
46445 echo "${ECHO_T}$ac_res" >&6; }
46446 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46447 AST_VORBIS_FOUND=yes
46448 else
46449 AST_VORBIS_FOUND=no
46454 # now check for the header.
46455 if test "${AST_VORBIS_FOUND}" = "yes"; then
46456 VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc"
46457 # if --with-VORBIS=DIR has been specified, use it.
46458 if test "x${VORBIS_DIR}" != "x"; then
46459 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
46461 VORBIS_INCLUDE="${VORBIS_INCLUDE} "
46462 if test "xvorbis/codec.h" = "x" ; then # no header, assume found
46463 VORBIS_HEADER_FOUND="1"
46464 else # check for the header
46465 saved_cppflags="${CPPFLAGS}"
46466 CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
46467 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46468 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
46469 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
46470 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46471 echo $ECHO_N "(cached) $ECHO_C" >&6
46473 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
46474 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
46475 else
46476 # Is the header compilable?
46477 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
46478 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
46479 cat >conftest.$ac_ext <<_ACEOF
46480 /* confdefs.h. */
46481 _ACEOF
46482 cat confdefs.h >>conftest.$ac_ext
46483 cat >>conftest.$ac_ext <<_ACEOF
46484 /* end confdefs.h. */
46485 $ac_includes_default
46486 #include <vorbis/codec.h>
46487 _ACEOF
46488 rm -f conftest.$ac_objext
46489 if { (ac_try="$ac_compile"
46490 case "(($ac_try" in
46491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46492 *) ac_try_echo=$ac_try;;
46493 esac
46494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46495 (eval "$ac_compile") 2>conftest.er1
46496 ac_status=$?
46497 grep -v '^ *+' conftest.er1 >conftest.err
46498 rm -f conftest.er1
46499 cat conftest.err >&5
46500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46501 (exit $ac_status); } && {
46502 test -z "$ac_c_werror_flag" ||
46503 test ! -s conftest.err
46504 } && test -s conftest.$ac_objext; then
46505 ac_header_compiler=yes
46506 else
46507 echo "$as_me: failed program was:" >&5
46508 sed 's/^/| /' conftest.$ac_ext >&5
46510 ac_header_compiler=no
46513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46515 echo "${ECHO_T}$ac_header_compiler" >&6; }
46517 # Is the header present?
46518 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
46519 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
46520 cat >conftest.$ac_ext <<_ACEOF
46521 /* confdefs.h. */
46522 _ACEOF
46523 cat confdefs.h >>conftest.$ac_ext
46524 cat >>conftest.$ac_ext <<_ACEOF
46525 /* end confdefs.h. */
46526 #include <vorbis/codec.h>
46527 _ACEOF
46528 if { (ac_try="$ac_cpp conftest.$ac_ext"
46529 case "(($ac_try" in
46530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46531 *) ac_try_echo=$ac_try;;
46532 esac
46533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46535 ac_status=$?
46536 grep -v '^ *+' conftest.er1 >conftest.err
46537 rm -f conftest.er1
46538 cat conftest.err >&5
46539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46540 (exit $ac_status); } >/dev/null && {
46541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46542 test ! -s conftest.err
46543 }; then
46544 ac_header_preproc=yes
46545 else
46546 echo "$as_me: failed program was:" >&5
46547 sed 's/^/| /' conftest.$ac_ext >&5
46549 ac_header_preproc=no
46552 rm -f conftest.err conftest.$ac_ext
46553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46554 echo "${ECHO_T}$ac_header_preproc" >&6; }
46556 # So? What about this header?
46557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46558 yes:no: )
46559 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
46560 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46561 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
46562 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
46563 ac_header_preproc=yes
46565 no:yes:* )
46566 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
46567 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
46568 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
46569 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
46570 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
46571 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
46572 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
46573 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
46574 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
46575 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
46576 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
46577 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
46578 ( cat <<\_ASBOX
46579 ## ------------------------------- ##
46580 ## Report this to www.asterisk.org ##
46581 ## ------------------------------- ##
46582 _ASBOX
46583 ) | sed "s/^/$as_me: WARNING: /" >&2
46585 esac
46586 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
46587 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
46588 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46589 echo $ECHO_N "(cached) $ECHO_C" >&6
46590 else
46591 ac_cv_header_vorbis_codec_h=$ac_header_preproc
46593 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
46594 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
46597 if test $ac_cv_header_vorbis_codec_h = yes; then
46598 VORBIS_HEADER_FOUND=1
46599 else
46600 VORBIS_HEADER_FOUND=0
46604 CPPFLAGS="${saved_cppflags}"
46606 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
46607 VORBIS_LIB=""
46608 VORBIS_INCLUDE=""
46609 else
46610 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46611 VORBIS_LIB=""
46613 PBX_VORBIS=1
46614 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46616 cat >>confdefs.h <<_ACEOF
46617 #define HAVE_VORBIS 1
46618 _ACEOF
46621 cat >>confdefs.h <<_ACEOF
46622 #define HAVE_VORBIS_VERSION
46623 _ACEOF
46630 ac_ext=cpp
46631 ac_cpp='$CXXCPP $CPPFLAGS'
46632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46637 if test "${USE_VPB}" != "no"; then
46638 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
46639 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
46640 saved_libs="${LIBS}"
46641 saved_cppflags="${CPPFLAGS}"
46642 if test "x${VPB_DIR}" != "x"; then
46643 if test -d ${VPB_DIR}/lib; then
46644 vpblibdir=${VPB_DIR}/lib
46645 else
46646 vpblibdir=${VPB_DIR}
46648 LIBS="${LIBS} -L${vpblibdir}"
46649 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
46651 LIBS="${LIBS} -lvpb -lpthread"
46652 cat >conftest.$ac_ext <<_ACEOF
46654 /* confdefs.h. */
46655 _ACEOF
46656 cat confdefs.h >>conftest.$ac_ext
46657 cat >>conftest.$ac_ext <<_ACEOF
46658 /* end confdefs.h. */
46659 #include <vpbapi.h>
46661 main ()
46663 int q = vpb_open(0,0);
46665 return 0;
46668 _ACEOF
46669 rm -f conftest.$ac_objext conftest$ac_exeext
46670 if { (ac_try="$ac_link"
46671 case "(($ac_try" in
46672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46673 *) ac_try_echo=$ac_try;;
46674 esac
46675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46676 (eval "$ac_link") 2>conftest.er1
46677 ac_status=$?
46678 grep -v '^ *+' conftest.er1 >conftest.err
46679 rm -f conftest.er1
46680 cat conftest.err >&5
46681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46682 (exit $ac_status); } && {
46683 test -z "$ac_cxx_werror_flag" ||
46684 test ! -s conftest.err
46685 } && test -s conftest$ac_exeext &&
46686 $as_test_x conftest$ac_exeext; then
46687 { echo "$as_me:$LINENO: result: yes" >&5
46688 echo "${ECHO_T}yes" >&6; }
46689 ac_cv_lib_vpb_vpb_open="yes"
46691 else
46692 echo "$as_me: failed program was:" >&5
46693 sed 's/^/| /' conftest.$ac_ext >&5
46695 { echo "$as_me:$LINENO: result: no" >&5
46696 echo "${ECHO_T}no" >&6; }
46697 ac_cv_lib_vpb_vpb_open="no"
46702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46703 conftest$ac_exeext conftest.$ac_ext
46704 LIBS="${saved_libs}"
46705 CPPFLAGS="${saved_cppflags}"
46706 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
46707 VPB_LIB="-lvpb"
46708 if test "${VPB_DIR}" != ""; then
46709 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
46710 VPB_INCLUDE="-I${VPB_DIR}/include"
46712 PBX_VPB=1
46714 cat >>confdefs.h <<\_ACEOF
46715 #define HAVE_VPB 1
46716 _ACEOF
46721 ac_ext=c
46722 ac_cpp='$CPP $CPPFLAGS'
46723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46729 if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
46730 pbxlibdir=""
46731 # if --with-ZLIB=DIR has been specified, use it.
46732 if test "x${ZLIB_DIR}" != "x"; then
46733 if test -d ${ZLIB_DIR}/lib; then
46734 pbxlibdir="-L${ZLIB_DIR}/lib"
46735 else
46736 pbxlibdir="-L${ZLIB_DIR}"
46739 pbxfuncname="compress"
46740 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46741 AST_ZLIB_FOUND=yes
46742 else
46743 as_ac_Lib=`echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
46744 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lz" >&5
46745 echo $ECHO_N "checking for ${pbxfuncname} in -lz... $ECHO_C" >&6; }
46746 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46747 echo $ECHO_N "(cached) $ECHO_C" >&6
46748 else
46749 ac_check_lib_save_LIBS=$LIBS
46750 LIBS="-lz ${pbxlibdir} $LIBS"
46751 cat >conftest.$ac_ext <<_ACEOF
46752 /* confdefs.h. */
46753 _ACEOF
46754 cat confdefs.h >>conftest.$ac_ext
46755 cat >>conftest.$ac_ext <<_ACEOF
46756 /* end confdefs.h. */
46758 /* Override any GCC internal prototype to avoid an error.
46759 Use char because int might match the return type of a GCC
46760 builtin and then its argument prototype would still apply. */
46761 #ifdef __cplusplus
46762 extern "C"
46763 #endif
46764 char ${pbxfuncname} ();
46766 main ()
46768 return ${pbxfuncname} ();
46770 return 0;
46772 _ACEOF
46773 rm -f conftest.$ac_objext conftest$ac_exeext
46774 if { (ac_try="$ac_link"
46775 case "(($ac_try" in
46776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46777 *) ac_try_echo=$ac_try;;
46778 esac
46779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46780 (eval "$ac_link") 2>conftest.er1
46781 ac_status=$?
46782 grep -v '^ *+' conftest.er1 >conftest.err
46783 rm -f conftest.er1
46784 cat conftest.err >&5
46785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46786 (exit $ac_status); } && {
46787 test -z "$ac_c_werror_flag" ||
46788 test ! -s conftest.err
46789 } && test -s conftest$ac_exeext &&
46790 $as_test_x conftest$ac_exeext; then
46791 eval "$as_ac_Lib=yes"
46792 else
46793 echo "$as_me: failed program was:" >&5
46794 sed 's/^/| /' conftest.$ac_ext >&5
46796 eval "$as_ac_Lib=no"
46799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46800 conftest$ac_exeext conftest.$ac_ext
46801 LIBS=$ac_check_lib_save_LIBS
46803 ac_res=`eval echo '${'$as_ac_Lib'}'`
46804 { echo "$as_me:$LINENO: result: $ac_res" >&5
46805 echo "${ECHO_T}$ac_res" >&6; }
46806 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46807 AST_ZLIB_FOUND=yes
46808 else
46809 AST_ZLIB_FOUND=no
46814 # now check for the header.
46815 if test "${AST_ZLIB_FOUND}" = "yes"; then
46816 ZLIB_LIB="${pbxlibdir} -lz "
46817 # if --with-ZLIB=DIR has been specified, use it.
46818 if test "x${ZLIB_DIR}" != "x"; then
46819 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
46821 ZLIB_INCLUDE="${ZLIB_INCLUDE} "
46822 if test "xzlib.h" = "x" ; then # no header, assume found
46823 ZLIB_HEADER_FOUND="1"
46824 else # check for the header
46825 saved_cppflags="${CPPFLAGS}"
46826 CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
46827 if test "${ac_cv_header_zlib_h+set}" = set; then
46828 { echo "$as_me:$LINENO: checking for zlib.h" >&5
46829 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
46830 if test "${ac_cv_header_zlib_h+set}" = set; then
46831 echo $ECHO_N "(cached) $ECHO_C" >&6
46833 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
46834 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
46835 else
46836 # Is the header compilable?
46837 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
46838 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
46839 cat >conftest.$ac_ext <<_ACEOF
46840 /* confdefs.h. */
46841 _ACEOF
46842 cat confdefs.h >>conftest.$ac_ext
46843 cat >>conftest.$ac_ext <<_ACEOF
46844 /* end confdefs.h. */
46845 $ac_includes_default
46846 #include <zlib.h>
46847 _ACEOF
46848 rm -f conftest.$ac_objext
46849 if { (ac_try="$ac_compile"
46850 case "(($ac_try" in
46851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46852 *) ac_try_echo=$ac_try;;
46853 esac
46854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46855 (eval "$ac_compile") 2>conftest.er1
46856 ac_status=$?
46857 grep -v '^ *+' conftest.er1 >conftest.err
46858 rm -f conftest.er1
46859 cat conftest.err >&5
46860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46861 (exit $ac_status); } && {
46862 test -z "$ac_c_werror_flag" ||
46863 test ! -s conftest.err
46864 } && test -s conftest.$ac_objext; then
46865 ac_header_compiler=yes
46866 else
46867 echo "$as_me: failed program was:" >&5
46868 sed 's/^/| /' conftest.$ac_ext >&5
46870 ac_header_compiler=no
46873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46875 echo "${ECHO_T}$ac_header_compiler" >&6; }
46877 # Is the header present?
46878 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
46879 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
46880 cat >conftest.$ac_ext <<_ACEOF
46881 /* confdefs.h. */
46882 _ACEOF
46883 cat confdefs.h >>conftest.$ac_ext
46884 cat >>conftest.$ac_ext <<_ACEOF
46885 /* end confdefs.h. */
46886 #include <zlib.h>
46887 _ACEOF
46888 if { (ac_try="$ac_cpp conftest.$ac_ext"
46889 case "(($ac_try" in
46890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46891 *) ac_try_echo=$ac_try;;
46892 esac
46893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46895 ac_status=$?
46896 grep -v '^ *+' conftest.er1 >conftest.err
46897 rm -f conftest.er1
46898 cat conftest.err >&5
46899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46900 (exit $ac_status); } >/dev/null && {
46901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46902 test ! -s conftest.err
46903 }; then
46904 ac_header_preproc=yes
46905 else
46906 echo "$as_me: failed program was:" >&5
46907 sed 's/^/| /' conftest.$ac_ext >&5
46909 ac_header_preproc=no
46912 rm -f conftest.err conftest.$ac_ext
46913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46914 echo "${ECHO_T}$ac_header_preproc" >&6; }
46916 # So? What about this header?
46917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46918 yes:no: )
46919 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
46920 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46921 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
46922 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
46923 ac_header_preproc=yes
46925 no:yes:* )
46926 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
46927 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
46928 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
46929 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
46930 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
46931 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
46932 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
46933 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
46934 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
46935 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
46936 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
46937 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
46938 ( cat <<\_ASBOX
46939 ## ------------------------------- ##
46940 ## Report this to www.asterisk.org ##
46941 ## ------------------------------- ##
46942 _ASBOX
46943 ) | sed "s/^/$as_me: WARNING: /" >&2
46945 esac
46946 { echo "$as_me:$LINENO: checking for zlib.h" >&5
46947 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
46948 if test "${ac_cv_header_zlib_h+set}" = set; then
46949 echo $ECHO_N "(cached) $ECHO_C" >&6
46950 else
46951 ac_cv_header_zlib_h=$ac_header_preproc
46953 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
46954 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
46957 if test $ac_cv_header_zlib_h = yes; then
46958 ZLIB_HEADER_FOUND=1
46959 else
46960 ZLIB_HEADER_FOUND=0
46964 CPPFLAGS="${saved_cppflags}"
46966 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
46967 ZLIB_LIB=""
46968 ZLIB_INCLUDE=""
46969 else
46970 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46971 ZLIB_LIB=""
46973 PBX_ZLIB=1
46974 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46976 cat >>confdefs.h <<_ACEOF
46977 #define HAVE_ZLIB 1
46978 _ACEOF
46981 cat >>confdefs.h <<_ACEOF
46982 #define HAVE_ZLIB_VERSION
46983 _ACEOF
46990 EDITLINE_LIB=""
46991 if test "x$TERMCAP_LIB" != "x" ; then
46992 EDITLINE_LIB="$TERMCAP_LIB"
46993 elif test "x$TINFO_LIB" != "x" ; then
46994 EDITLINE_LIB="$TINFO_LIB"
46995 elif test "x$CURSES_LIB" != "x" ; then
46996 EDITLINE_LIB="$CURSES_LIB"
46997 elif test "x$NCURSES_LIB" != "x" ; then
46998 EDITLINE_LIB="$NCURSES_LIB"
46999 else
47000 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
47001 echo "$as_me: error: *** termcap support not found" >&2;}
47002 { (exit 1); exit 1; }; }
47006 if test "${ac_cv_header_h323_h+set}" = set; then
47007 { echo "$as_me:$LINENO: checking for h323.h" >&5
47008 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
47009 if test "${ac_cv_header_h323_h+set}" = set; then
47010 echo $ECHO_N "(cached) $ECHO_C" >&6
47012 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
47013 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
47014 else
47015 # Is the header compilable?
47016 { echo "$as_me:$LINENO: checking h323.h usability" >&5
47017 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
47018 cat >conftest.$ac_ext <<_ACEOF
47019 /* confdefs.h. */
47020 _ACEOF
47021 cat confdefs.h >>conftest.$ac_ext
47022 cat >>conftest.$ac_ext <<_ACEOF
47023 /* end confdefs.h. */
47024 $ac_includes_default
47025 #include <h323.h>
47026 _ACEOF
47027 rm -f conftest.$ac_objext
47028 if { (ac_try="$ac_compile"
47029 case "(($ac_try" in
47030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47031 *) ac_try_echo=$ac_try;;
47032 esac
47033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47034 (eval "$ac_compile") 2>conftest.er1
47035 ac_status=$?
47036 grep -v '^ *+' conftest.er1 >conftest.err
47037 rm -f conftest.er1
47038 cat conftest.err >&5
47039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47040 (exit $ac_status); } && {
47041 test -z "$ac_c_werror_flag" ||
47042 test ! -s conftest.err
47043 } && test -s conftest.$ac_objext; then
47044 ac_header_compiler=yes
47045 else
47046 echo "$as_me: failed program was:" >&5
47047 sed 's/^/| /' conftest.$ac_ext >&5
47049 ac_header_compiler=no
47052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47054 echo "${ECHO_T}$ac_header_compiler" >&6; }
47056 # Is the header present?
47057 { echo "$as_me:$LINENO: checking h323.h presence" >&5
47058 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
47059 cat >conftest.$ac_ext <<_ACEOF
47060 /* confdefs.h. */
47061 _ACEOF
47062 cat confdefs.h >>conftest.$ac_ext
47063 cat >>conftest.$ac_ext <<_ACEOF
47064 /* end confdefs.h. */
47065 #include <h323.h>
47066 _ACEOF
47067 if { (ac_try="$ac_cpp conftest.$ac_ext"
47068 case "(($ac_try" in
47069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47070 *) ac_try_echo=$ac_try;;
47071 esac
47072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47074 ac_status=$?
47075 grep -v '^ *+' conftest.er1 >conftest.err
47076 rm -f conftest.er1
47077 cat conftest.err >&5
47078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47079 (exit $ac_status); } >/dev/null && {
47080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47081 test ! -s conftest.err
47082 }; then
47083 ac_header_preproc=yes
47084 else
47085 echo "$as_me: failed program was:" >&5
47086 sed 's/^/| /' conftest.$ac_ext >&5
47088 ac_header_preproc=no
47091 rm -f conftest.err conftest.$ac_ext
47092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47093 echo "${ECHO_T}$ac_header_preproc" >&6; }
47095 # So? What about this header?
47096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47097 yes:no: )
47098 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
47099 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47100 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
47101 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
47102 ac_header_preproc=yes
47104 no:yes:* )
47105 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
47106 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
47107 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
47108 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
47109 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
47110 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
47111 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
47112 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
47113 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
47114 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
47115 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
47116 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
47117 ( cat <<\_ASBOX
47118 ## ------------------------------- ##
47119 ## Report this to www.asterisk.org ##
47120 ## ------------------------------- ##
47121 _ASBOX
47122 ) | sed "s/^/$as_me: WARNING: /" >&2
47124 esac
47125 { echo "$as_me:$LINENO: checking for h323.h" >&5
47126 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
47127 if test "${ac_cv_header_h323_h+set}" = set; then
47128 echo $ECHO_N "(cached) $ECHO_C" >&6
47129 else
47130 ac_cv_header_h323_h=$ac_header_preproc
47132 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
47133 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
47136 if test $ac_cv_header_h323_h = yes; then
47137 PBX_H323=1
47138 else
47139 PBX_H323=0
47145 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47146 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
47147 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
47148 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47149 echo $ECHO_N "(cached) $ECHO_C" >&6
47151 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
47152 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
47153 else
47154 # Is the header compilable?
47155 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
47156 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
47157 cat >conftest.$ac_ext <<_ACEOF
47158 /* confdefs.h. */
47159 _ACEOF
47160 cat confdefs.h >>conftest.$ac_ext
47161 cat >>conftest.$ac_ext <<_ACEOF
47162 /* end confdefs.h. */
47163 $ac_includes_default
47164 #include <linux/compiler.h>
47165 _ACEOF
47166 rm -f conftest.$ac_objext
47167 if { (ac_try="$ac_compile"
47168 case "(($ac_try" in
47169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47170 *) ac_try_echo=$ac_try;;
47171 esac
47172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47173 (eval "$ac_compile") 2>conftest.er1
47174 ac_status=$?
47175 grep -v '^ *+' conftest.er1 >conftest.err
47176 rm -f conftest.er1
47177 cat conftest.err >&5
47178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47179 (exit $ac_status); } && {
47180 test -z "$ac_c_werror_flag" ||
47181 test ! -s conftest.err
47182 } && test -s conftest.$ac_objext; then
47183 ac_header_compiler=yes
47184 else
47185 echo "$as_me: failed program was:" >&5
47186 sed 's/^/| /' conftest.$ac_ext >&5
47188 ac_header_compiler=no
47191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47193 echo "${ECHO_T}$ac_header_compiler" >&6; }
47195 # Is the header present?
47196 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
47197 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
47198 cat >conftest.$ac_ext <<_ACEOF
47199 /* confdefs.h. */
47200 _ACEOF
47201 cat confdefs.h >>conftest.$ac_ext
47202 cat >>conftest.$ac_ext <<_ACEOF
47203 /* end confdefs.h. */
47204 #include <linux/compiler.h>
47205 _ACEOF
47206 if { (ac_try="$ac_cpp conftest.$ac_ext"
47207 case "(($ac_try" in
47208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47209 *) ac_try_echo=$ac_try;;
47210 esac
47211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47213 ac_status=$?
47214 grep -v '^ *+' conftest.er1 >conftest.err
47215 rm -f conftest.er1
47216 cat conftest.err >&5
47217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47218 (exit $ac_status); } >/dev/null && {
47219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47220 test ! -s conftest.err
47221 }; then
47222 ac_header_preproc=yes
47223 else
47224 echo "$as_me: failed program was:" >&5
47225 sed 's/^/| /' conftest.$ac_ext >&5
47227 ac_header_preproc=no
47230 rm -f conftest.err conftest.$ac_ext
47231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47232 echo "${ECHO_T}$ac_header_preproc" >&6; }
47234 # So? What about this header?
47235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47236 yes:no: )
47237 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
47238 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47239 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
47240 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
47241 ac_header_preproc=yes
47243 no:yes:* )
47244 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
47245 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
47246 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
47247 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
47248 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
47249 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
47250 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
47251 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
47252 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
47253 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
47254 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
47255 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
47256 ( cat <<\_ASBOX
47257 ## ------------------------------- ##
47258 ## Report this to www.asterisk.org ##
47259 ## ------------------------------- ##
47260 _ASBOX
47261 ) | sed "s/^/$as_me: WARNING: /" >&2
47263 esac
47264 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
47265 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
47266 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47267 echo $ECHO_N "(cached) $ECHO_C" >&6
47268 else
47269 ac_cv_header_linux_compiler_h=$ac_header_preproc
47271 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
47272 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
47275 if test $ac_cv_header_linux_compiler_h = yes; then
47277 cat >>confdefs.h <<_ACEOF
47278 #define HAVE_LINUX_COMPILER_H 1
47279 _ACEOF
47285 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
47286 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
47287 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
47288 echo $ECHO_N "(cached) $ECHO_C" >&6
47289 else
47290 cat >conftest.$ac_ext <<_ACEOF
47291 /* confdefs.h. */
47292 _ACEOF
47293 cat confdefs.h >>conftest.$ac_ext
47294 cat >>conftest.$ac_ext <<_ACEOF
47295 /* end confdefs.h. */
47297 #include <linux/version.h>
47298 #ifdef HAVE_LINUX_COMPILER_H
47299 #include <linux/compiler.h>
47300 #endif
47303 #include <linux/ixjuser.h>
47304 _ACEOF
47305 rm -f conftest.$ac_objext
47306 if { (ac_try="$ac_compile"
47307 case "(($ac_try" in
47308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47309 *) ac_try_echo=$ac_try;;
47310 esac
47311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47312 (eval "$ac_compile") 2>conftest.er1
47313 ac_status=$?
47314 grep -v '^ *+' conftest.er1 >conftest.err
47315 rm -f conftest.er1
47316 cat conftest.err >&5
47317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47318 (exit $ac_status); } && {
47319 test -z "$ac_c_werror_flag" ||
47320 test ! -s conftest.err
47321 } && test -s conftest.$ac_objext; then
47322 ac_cv_header_linux_ixjuser_h=yes
47323 else
47324 echo "$as_me: failed program was:" >&5
47325 sed 's/^/| /' conftest.$ac_ext >&5
47327 ac_cv_header_linux_ixjuser_h=no
47330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47332 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
47333 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
47334 if test $ac_cv_header_linux_ixjuser_h = yes; then
47335 PBX_IXJUSER=1
47336 else
47337 PBX_IXJUSER=0
47344 if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
47345 PBX_SDL=0
47346 if test -n "$ac_tool_prefix"; then
47347 # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
47348 set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
47349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47351 if test "${ac_cv_prog_CONFIG_SDL+set}" = set; then
47352 echo $ECHO_N "(cached) $ECHO_C" >&6
47353 else
47354 if test -n "$CONFIG_SDL"; then
47355 ac_cv_prog_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test.
47356 else
47357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47358 for as_dir in $PATH
47360 IFS=$as_save_IFS
47361 test -z "$as_dir" && as_dir=.
47362 for ac_exec_ext in '' $ac_executable_extensions; do
47363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47364 ac_cv_prog_CONFIG_SDL="${ac_tool_prefix}sdl-config"
47365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47366 break 2
47368 done
47369 done
47370 IFS=$as_save_IFS
47374 CONFIG_SDL=$ac_cv_prog_CONFIG_SDL
47375 if test -n "$CONFIG_SDL"; then
47376 { echo "$as_me:$LINENO: result: $CONFIG_SDL" >&5
47377 echo "${ECHO_T}$CONFIG_SDL" >&6; }
47378 else
47379 { echo "$as_me:$LINENO: result: no" >&5
47380 echo "${ECHO_T}no" >&6; }
47385 if test -z "$ac_cv_prog_CONFIG_SDL"; then
47386 ac_ct_CONFIG_SDL=$CONFIG_SDL
47387 # Extract the first word of "sdl-config", so it can be a program name with args.
47388 set dummy sdl-config; ac_word=$2
47389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47391 if test "${ac_cv_prog_ac_ct_CONFIG_SDL+set}" = set; then
47392 echo $ECHO_N "(cached) $ECHO_C" >&6
47393 else
47394 if test -n "$ac_ct_CONFIG_SDL"; then
47395 ac_cv_prog_ac_ct_CONFIG_SDL="$ac_ct_CONFIG_SDL" # Let the user override the test.
47396 else
47397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47398 for as_dir in $PATH
47400 IFS=$as_save_IFS
47401 test -z "$as_dir" && as_dir=.
47402 for ac_exec_ext in '' $ac_executable_extensions; do
47403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47404 ac_cv_prog_ac_ct_CONFIG_SDL="sdl-config"
47405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47406 break 2
47408 done
47409 done
47410 IFS=$as_save_IFS
47414 ac_ct_CONFIG_SDL=$ac_cv_prog_ac_ct_CONFIG_SDL
47415 if test -n "$ac_ct_CONFIG_SDL"; then
47416 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_SDL" >&5
47417 echo "${ECHO_T}$ac_ct_CONFIG_SDL" >&6; }
47418 else
47419 { echo "$as_me:$LINENO: result: no" >&5
47420 echo "${ECHO_T}no" >&6; }
47423 if test "x$ac_ct_CONFIG_SDL" = x; then
47424 CONFIG_SDL="No"
47425 else
47426 case $cross_compiling:$ac_tool_warned in
47427 yes:)
47428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47429 whose name does not start with the host triplet. If you think this
47430 configuration is useful to you, please write to autoconf@gnu.org." >&5
47431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47432 whose name does not start with the host triplet. If you think this
47433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47434 ac_tool_warned=yes ;;
47435 esac
47436 CONFIG_SDL=$ac_ct_CONFIG_SDL
47438 else
47439 CONFIG_SDL="$ac_cv_prog_CONFIG_SDL"
47442 if test ! "x${CONFIG_SDL}" = xNo; then
47443 if test x"" = x ; then A=--cflags ; else A="" ; fi
47444 SDL_INCLUDE=$(${CONFIG_SDL} $A)
47445 if test x"" = x ; then A=--libs ; else A="" ; fi
47446 SDL_LIB=$(${CONFIG_SDL} $A)
47447 if test x"" != x ; then
47448 saved_cppflags="${CPPFLAGS}"
47449 if test "x${SDL_DIR}" != "x"; then
47450 SDL_INCLUDE="-I${SDL_DIR}/include"
47452 CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
47454 saved_ldflags="${LDFLAGS}"
47455 LDFLAGS="${SDL_LIB}"
47457 cat >conftest.$ac_ext <<_ACEOF
47458 /* confdefs.h. */
47459 _ACEOF
47460 cat confdefs.h >>conftest.$ac_ext
47461 cat >>conftest.$ac_ext <<_ACEOF
47462 /* end confdefs.h. */
47465 main ()
47470 return 0;
47472 _ACEOF
47473 rm -f conftest.$ac_objext conftest$ac_exeext
47474 if { (ac_try="$ac_link"
47475 case "(($ac_try" in
47476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47477 *) ac_try_echo=$ac_try;;
47478 esac
47479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47480 (eval "$ac_link") 2>conftest.er1
47481 ac_status=$?
47482 grep -v '^ *+' conftest.er1 >conftest.err
47483 rm -f conftest.er1
47484 cat conftest.err >&5
47485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47486 (exit $ac_status); } && {
47487 test -z "$ac_c_werror_flag" ||
47488 test ! -s conftest.err
47489 } && test -s conftest$ac_exeext &&
47490 $as_test_x conftest$ac_exeext; then
47491 PBX_SDL=1
47493 cat >>confdefs.h <<\_ACEOF
47494 #define HAVE_SDL 1
47495 _ACEOF
47498 else
47499 echo "$as_me: failed program was:" >&5
47500 sed 's/^/| /' conftest.$ac_ext >&5
47506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47507 conftest$ac_exeext conftest.$ac_ext
47508 CPPFLAGS="${saved_cppflags}"
47509 LDFLAGS="${saved_ldflags}"
47510 else
47511 PBX_SDL=1
47513 cat >>confdefs.h <<\_ACEOF
47514 #define HAVE_SDL 1
47515 _ACEOF
47522 if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
47523 pbxlibdir=""
47524 # if --with-SDL_IMAGE=DIR has been specified, use it.
47525 if test "x${SDL_IMAGE_DIR}" != "x"; then
47526 if test -d ${SDL_IMAGE_DIR}/lib; then
47527 pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
47528 else
47529 pbxlibdir="-L${SDL_IMAGE_DIR}"
47532 pbxfuncname="IMG_Load"
47533 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47534 AST_SDL_IMAGE_FOUND=yes
47535 else
47536 as_ac_Lib=`echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
47537 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSDL_image" >&5
47538 echo $ECHO_N "checking for ${pbxfuncname} in -lSDL_image... $ECHO_C" >&6; }
47539 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47540 echo $ECHO_N "(cached) $ECHO_C" >&6
47541 else
47542 ac_check_lib_save_LIBS=$LIBS
47543 LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
47544 cat >conftest.$ac_ext <<_ACEOF
47545 /* confdefs.h. */
47546 _ACEOF
47547 cat confdefs.h >>conftest.$ac_ext
47548 cat >>conftest.$ac_ext <<_ACEOF
47549 /* end confdefs.h. */
47551 /* Override any GCC internal prototype to avoid an error.
47552 Use char because int might match the return type of a GCC
47553 builtin and then its argument prototype would still apply. */
47554 #ifdef __cplusplus
47555 extern "C"
47556 #endif
47557 char ${pbxfuncname} ();
47559 main ()
47561 return ${pbxfuncname} ();
47563 return 0;
47565 _ACEOF
47566 rm -f conftest.$ac_objext conftest$ac_exeext
47567 if { (ac_try="$ac_link"
47568 case "(($ac_try" in
47569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47570 *) ac_try_echo=$ac_try;;
47571 esac
47572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47573 (eval "$ac_link") 2>conftest.er1
47574 ac_status=$?
47575 grep -v '^ *+' conftest.er1 >conftest.err
47576 rm -f conftest.er1
47577 cat conftest.err >&5
47578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47579 (exit $ac_status); } && {
47580 test -z "$ac_c_werror_flag" ||
47581 test ! -s conftest.err
47582 } && test -s conftest$ac_exeext &&
47583 $as_test_x conftest$ac_exeext; then
47584 eval "$as_ac_Lib=yes"
47585 else
47586 echo "$as_me: failed program was:" >&5
47587 sed 's/^/| /' conftest.$ac_ext >&5
47589 eval "$as_ac_Lib=no"
47592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47593 conftest$ac_exeext conftest.$ac_ext
47594 LIBS=$ac_check_lib_save_LIBS
47596 ac_res=`eval echo '${'$as_ac_Lib'}'`
47597 { echo "$as_me:$LINENO: result: $ac_res" >&5
47598 echo "${ECHO_T}$ac_res" >&6; }
47599 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47600 AST_SDL_IMAGE_FOUND=yes
47601 else
47602 AST_SDL_IMAGE_FOUND=no
47607 # now check for the header.
47608 if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
47609 SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
47610 # if --with-SDL_IMAGE=DIR has been specified, use it.
47611 if test "x${SDL_IMAGE_DIR}" != "x"; then
47612 SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
47614 SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
47615 if test "xSDL_image.h" = "x" ; then # no header, assume found
47616 SDL_IMAGE_HEADER_FOUND="1"
47617 else # check for the header
47618 saved_cppflags="${CPPFLAGS}"
47619 CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE}"
47620 if test "${ac_cv_header_SDL_image_h+set}" = set; then
47621 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
47622 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
47623 if test "${ac_cv_header_SDL_image_h+set}" = set; then
47624 echo $ECHO_N "(cached) $ECHO_C" >&6
47626 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
47627 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
47628 else
47629 # Is the header compilable?
47630 { echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
47631 echo $ECHO_N "checking SDL_image.h usability... $ECHO_C" >&6; }
47632 cat >conftest.$ac_ext <<_ACEOF
47633 /* confdefs.h. */
47634 _ACEOF
47635 cat confdefs.h >>conftest.$ac_ext
47636 cat >>conftest.$ac_ext <<_ACEOF
47637 /* end confdefs.h. */
47638 $ac_includes_default
47639 #include <SDL_image.h>
47640 _ACEOF
47641 rm -f conftest.$ac_objext
47642 if { (ac_try="$ac_compile"
47643 case "(($ac_try" in
47644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47645 *) ac_try_echo=$ac_try;;
47646 esac
47647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47648 (eval "$ac_compile") 2>conftest.er1
47649 ac_status=$?
47650 grep -v '^ *+' conftest.er1 >conftest.err
47651 rm -f conftest.er1
47652 cat conftest.err >&5
47653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47654 (exit $ac_status); } && {
47655 test -z "$ac_c_werror_flag" ||
47656 test ! -s conftest.err
47657 } && test -s conftest.$ac_objext; then
47658 ac_header_compiler=yes
47659 else
47660 echo "$as_me: failed program was:" >&5
47661 sed 's/^/| /' conftest.$ac_ext >&5
47663 ac_header_compiler=no
47666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47668 echo "${ECHO_T}$ac_header_compiler" >&6; }
47670 # Is the header present?
47671 { echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
47672 echo $ECHO_N "checking SDL_image.h presence... $ECHO_C" >&6; }
47673 cat >conftest.$ac_ext <<_ACEOF
47674 /* confdefs.h. */
47675 _ACEOF
47676 cat confdefs.h >>conftest.$ac_ext
47677 cat >>conftest.$ac_ext <<_ACEOF
47678 /* end confdefs.h. */
47679 #include <SDL_image.h>
47680 _ACEOF
47681 if { (ac_try="$ac_cpp conftest.$ac_ext"
47682 case "(($ac_try" in
47683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47684 *) ac_try_echo=$ac_try;;
47685 esac
47686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47688 ac_status=$?
47689 grep -v '^ *+' conftest.er1 >conftest.err
47690 rm -f conftest.er1
47691 cat conftest.err >&5
47692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47693 (exit $ac_status); } >/dev/null && {
47694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47695 test ! -s conftest.err
47696 }; then
47697 ac_header_preproc=yes
47698 else
47699 echo "$as_me: failed program was:" >&5
47700 sed 's/^/| /' conftest.$ac_ext >&5
47702 ac_header_preproc=no
47705 rm -f conftest.err conftest.$ac_ext
47706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47707 echo "${ECHO_T}$ac_header_preproc" >&6; }
47709 # So? What about this header?
47710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47711 yes:no: )
47712 { echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
47713 echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47714 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
47715 echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
47716 ac_header_preproc=yes
47718 no:yes:* )
47719 { echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
47720 echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
47721 { echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
47722 echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
47723 { echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
47724 echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
47725 { echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
47726 echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
47727 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
47728 echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
47729 { echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
47730 echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
47731 ( cat <<\_ASBOX
47732 ## ------------------------------- ##
47733 ## Report this to www.asterisk.org ##
47734 ## ------------------------------- ##
47735 _ASBOX
47736 ) | sed "s/^/$as_me: WARNING: /" >&2
47738 esac
47739 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
47740 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
47741 if test "${ac_cv_header_SDL_image_h+set}" = set; then
47742 echo $ECHO_N "(cached) $ECHO_C" >&6
47743 else
47744 ac_cv_header_SDL_image_h=$ac_header_preproc
47746 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
47747 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
47750 if test $ac_cv_header_SDL_image_h = yes; then
47751 SDL_IMAGE_HEADER_FOUND=1
47752 else
47753 SDL_IMAGE_HEADER_FOUND=0
47757 CPPFLAGS="${saved_cppflags}"
47759 if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
47760 SDL_IMAGE_LIB=""
47761 SDL_IMAGE_INCLUDE=""
47762 else
47763 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47764 SDL_IMAGE_LIB=""
47766 PBX_SDL_IMAGE=1
47767 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47769 cat >>confdefs.h <<_ACEOF
47770 #define HAVE_SDL_IMAGE 1
47771 _ACEOF
47774 cat >>confdefs.h <<_ACEOF
47775 #define HAVE_SDL_IMAGE_VERSION
47776 _ACEOF
47783 if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
47784 pbxlibdir=""
47785 # if --with-FFMPEG=DIR has been specified, use it.
47786 if test "x${FFMPEG_DIR}" != "x"; then
47787 if test -d ${FFMPEG_DIR}/lib; then
47788 pbxlibdir="-L${FFMPEG_DIR}/lib"
47789 else
47790 pbxlibdir="-L${FFMPEG_DIR}"
47793 pbxfuncname="sws_getContext"
47794 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47795 AST_FFMPEG_FOUND=yes
47796 else
47797 as_ac_Lib=`echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
47798 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lavcodec" >&5
47799 echo $ECHO_N "checking for ${pbxfuncname} in -lavcodec... $ECHO_C" >&6; }
47800 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47801 echo $ECHO_N "(cached) $ECHO_C" >&6
47802 else
47803 ac_check_lib_save_LIBS=$LIBS
47804 LIBS="-lavcodec ${pbxlibdir} -lpthread -lz -lm $LIBS"
47805 cat >conftest.$ac_ext <<_ACEOF
47806 /* confdefs.h. */
47807 _ACEOF
47808 cat confdefs.h >>conftest.$ac_ext
47809 cat >>conftest.$ac_ext <<_ACEOF
47810 /* end confdefs.h. */
47812 /* Override any GCC internal prototype to avoid an error.
47813 Use char because int might match the return type of a GCC
47814 builtin and then its argument prototype would still apply. */
47815 #ifdef __cplusplus
47816 extern "C"
47817 #endif
47818 char ${pbxfuncname} ();
47820 main ()
47822 return ${pbxfuncname} ();
47824 return 0;
47826 _ACEOF
47827 rm -f conftest.$ac_objext conftest$ac_exeext
47828 if { (ac_try="$ac_link"
47829 case "(($ac_try" in
47830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47831 *) ac_try_echo=$ac_try;;
47832 esac
47833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47834 (eval "$ac_link") 2>conftest.er1
47835 ac_status=$?
47836 grep -v '^ *+' conftest.er1 >conftest.err
47837 rm -f conftest.er1
47838 cat conftest.err >&5
47839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47840 (exit $ac_status); } && {
47841 test -z "$ac_c_werror_flag" ||
47842 test ! -s conftest.err
47843 } && test -s conftest$ac_exeext &&
47844 $as_test_x conftest$ac_exeext; then
47845 eval "$as_ac_Lib=yes"
47846 else
47847 echo "$as_me: failed program was:" >&5
47848 sed 's/^/| /' conftest.$ac_ext >&5
47850 eval "$as_ac_Lib=no"
47853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47854 conftest$ac_exeext conftest.$ac_ext
47855 LIBS=$ac_check_lib_save_LIBS
47857 ac_res=`eval echo '${'$as_ac_Lib'}'`
47858 { echo "$as_me:$LINENO: result: $ac_res" >&5
47859 echo "${ECHO_T}$ac_res" >&6; }
47860 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47861 AST_FFMPEG_FOUND=yes
47862 else
47863 AST_FFMPEG_FOUND=no
47868 # now check for the header.
47869 if test "${AST_FFMPEG_FOUND}" = "yes"; then
47870 FFMPEG_LIB="${pbxlibdir} -lavcodec -lpthread -lz -lm"
47871 # if --with-FFMPEG=DIR has been specified, use it.
47872 if test "x${FFMPEG_DIR}" != "x"; then
47873 FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
47875 FFMPEG_INCLUDE="${FFMPEG_INCLUDE} "
47876 if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
47877 FFMPEG_HEADER_FOUND="1"
47878 else # check for the header
47879 saved_cppflags="${CPPFLAGS}"
47880 CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE}"
47881 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
47882 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
47883 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
47884 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
47885 echo $ECHO_N "(cached) $ECHO_C" >&6
47887 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
47888 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
47889 else
47890 # Is the header compilable?
47891 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
47892 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
47893 cat >conftest.$ac_ext <<_ACEOF
47894 /* confdefs.h. */
47895 _ACEOF
47896 cat confdefs.h >>conftest.$ac_ext
47897 cat >>conftest.$ac_ext <<_ACEOF
47898 /* end confdefs.h. */
47899 $ac_includes_default
47900 #include <ffmpeg/avcodec.h>
47901 _ACEOF
47902 rm -f conftest.$ac_objext
47903 if { (ac_try="$ac_compile"
47904 case "(($ac_try" in
47905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47906 *) ac_try_echo=$ac_try;;
47907 esac
47908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47909 (eval "$ac_compile") 2>conftest.er1
47910 ac_status=$?
47911 grep -v '^ *+' conftest.er1 >conftest.err
47912 rm -f conftest.er1
47913 cat conftest.err >&5
47914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47915 (exit $ac_status); } && {
47916 test -z "$ac_c_werror_flag" ||
47917 test ! -s conftest.err
47918 } && test -s conftest.$ac_objext; then
47919 ac_header_compiler=yes
47920 else
47921 echo "$as_me: failed program was:" >&5
47922 sed 's/^/| /' conftest.$ac_ext >&5
47924 ac_header_compiler=no
47927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47929 echo "${ECHO_T}$ac_header_compiler" >&6; }
47931 # Is the header present?
47932 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
47933 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
47934 cat >conftest.$ac_ext <<_ACEOF
47935 /* confdefs.h. */
47936 _ACEOF
47937 cat confdefs.h >>conftest.$ac_ext
47938 cat >>conftest.$ac_ext <<_ACEOF
47939 /* end confdefs.h. */
47940 #include <ffmpeg/avcodec.h>
47941 _ACEOF
47942 if { (ac_try="$ac_cpp conftest.$ac_ext"
47943 case "(($ac_try" in
47944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47945 *) ac_try_echo=$ac_try;;
47946 esac
47947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47949 ac_status=$?
47950 grep -v '^ *+' conftest.er1 >conftest.err
47951 rm -f conftest.er1
47952 cat conftest.err >&5
47953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47954 (exit $ac_status); } >/dev/null && {
47955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47956 test ! -s conftest.err
47957 }; then
47958 ac_header_preproc=yes
47959 else
47960 echo "$as_me: failed program was:" >&5
47961 sed 's/^/| /' conftest.$ac_ext >&5
47963 ac_header_preproc=no
47966 rm -f conftest.err conftest.$ac_ext
47967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47968 echo "${ECHO_T}$ac_header_preproc" >&6; }
47970 # So? What about this header?
47971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47972 yes:no: )
47973 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
47974 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47975 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
47976 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
47977 ac_header_preproc=yes
47979 no:yes:* )
47980 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
47981 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
47982 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5
47983 echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;}
47984 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
47985 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
47986 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
47987 echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
47988 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
47989 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
47990 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
47991 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
47992 ( cat <<\_ASBOX
47993 ## ------------------------------- ##
47994 ## Report this to www.asterisk.org ##
47995 ## ------------------------------- ##
47996 _ASBOX
47997 ) | sed "s/^/$as_me: WARNING: /" >&2
47999 esac
48000 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
48001 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
48002 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48003 echo $ECHO_N "(cached) $ECHO_C" >&6
48004 else
48005 ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
48007 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
48008 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
48011 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
48012 FFMPEG_HEADER_FOUND=1
48013 else
48014 FFMPEG_HEADER_FOUND=0
48018 CPPFLAGS="${saved_cppflags}"
48020 if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
48021 FFMPEG_LIB=""
48022 FFMPEG_INCLUDE=""
48023 else
48024 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48025 FFMPEG_LIB=""
48027 PBX_FFMPEG=1
48028 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48030 cat >>confdefs.h <<_ACEOF
48031 #define HAVE_FFMPEG 1
48032 _ACEOF
48035 cat >>confdefs.h <<_ACEOF
48036 #define HAVE_FFMPEG_VERSION
48037 _ACEOF
48044 # possible places for video4linux version 1
48045 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48046 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
48047 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
48048 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48049 echo $ECHO_N "(cached) $ECHO_C" >&6
48051 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
48052 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
48053 else
48054 # Is the header compilable?
48055 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
48056 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
48057 cat >conftest.$ac_ext <<_ACEOF
48058 /* confdefs.h. */
48059 _ACEOF
48060 cat confdefs.h >>conftest.$ac_ext
48061 cat >>conftest.$ac_ext <<_ACEOF
48062 /* end confdefs.h. */
48063 $ac_includes_default
48064 #include <linux/videodev.h>
48065 _ACEOF
48066 rm -f conftest.$ac_objext
48067 if { (ac_try="$ac_compile"
48068 case "(($ac_try" in
48069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48070 *) ac_try_echo=$ac_try;;
48071 esac
48072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48073 (eval "$ac_compile") 2>conftest.er1
48074 ac_status=$?
48075 grep -v '^ *+' conftest.er1 >conftest.err
48076 rm -f conftest.er1
48077 cat conftest.err >&5
48078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48079 (exit $ac_status); } && {
48080 test -z "$ac_c_werror_flag" ||
48081 test ! -s conftest.err
48082 } && test -s conftest.$ac_objext; then
48083 ac_header_compiler=yes
48084 else
48085 echo "$as_me: failed program was:" >&5
48086 sed 's/^/| /' conftest.$ac_ext >&5
48088 ac_header_compiler=no
48091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48093 echo "${ECHO_T}$ac_header_compiler" >&6; }
48095 # Is the header present?
48096 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
48097 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
48098 cat >conftest.$ac_ext <<_ACEOF
48099 /* confdefs.h. */
48100 _ACEOF
48101 cat confdefs.h >>conftest.$ac_ext
48102 cat >>conftest.$ac_ext <<_ACEOF
48103 /* end confdefs.h. */
48104 #include <linux/videodev.h>
48105 _ACEOF
48106 if { (ac_try="$ac_cpp conftest.$ac_ext"
48107 case "(($ac_try" in
48108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48109 *) ac_try_echo=$ac_try;;
48110 esac
48111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48113 ac_status=$?
48114 grep -v '^ *+' conftest.er1 >conftest.err
48115 rm -f conftest.er1
48116 cat conftest.err >&5
48117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48118 (exit $ac_status); } >/dev/null && {
48119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48120 test ! -s conftest.err
48121 }; then
48122 ac_header_preproc=yes
48123 else
48124 echo "$as_me: failed program was:" >&5
48125 sed 's/^/| /' conftest.$ac_ext >&5
48127 ac_header_preproc=no
48130 rm -f conftest.err conftest.$ac_ext
48131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48132 echo "${ECHO_T}$ac_header_preproc" >&6; }
48134 # So? What about this header?
48135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48136 yes:no: )
48137 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
48138 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48139 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
48140 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
48141 ac_header_preproc=yes
48143 no:yes:* )
48144 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
48145 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
48146 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
48147 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
48148 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
48149 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
48150 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
48151 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
48152 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
48153 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
48154 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
48155 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
48156 ( cat <<\_ASBOX
48157 ## ------------------------------- ##
48158 ## Report this to www.asterisk.org ##
48159 ## ------------------------------- ##
48160 _ASBOX
48161 ) | sed "s/^/$as_me: WARNING: /" >&2
48163 esac
48164 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
48165 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
48166 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48167 echo $ECHO_N "(cached) $ECHO_C" >&6
48168 else
48169 ac_cv_header_linux_videodev_h=$ac_header_preproc
48171 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
48172 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
48175 if test $ac_cv_header_linux_videodev_h = yes; then
48177 cat >>confdefs.h <<_ACEOF
48178 #define HAVE_VIDEODEV_H 1
48179 _ACEOF
48185 # possible places for X11
48187 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
48188 pbxlibdir=""
48189 # if --with-X11=DIR has been specified, use it.
48190 if test "x${X11_DIR}" != "x"; then
48191 if test -d ${X11_DIR}/lib; then
48192 pbxlibdir="-L${X11_DIR}/lib"
48193 else
48194 pbxlibdir="-L${X11_DIR}"
48197 pbxfuncname="XOpenDisplay"
48198 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48199 AST_X11_FOUND=yes
48200 else
48201 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
48202 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
48203 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
48204 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48205 echo $ECHO_N "(cached) $ECHO_C" >&6
48206 else
48207 ac_check_lib_save_LIBS=$LIBS
48208 LIBS="-lX11 ${pbxlibdir} $LIBS"
48209 cat >conftest.$ac_ext <<_ACEOF
48210 /* confdefs.h. */
48211 _ACEOF
48212 cat confdefs.h >>conftest.$ac_ext
48213 cat >>conftest.$ac_ext <<_ACEOF
48214 /* end confdefs.h. */
48216 /* Override any GCC internal prototype to avoid an error.
48217 Use char because int might match the return type of a GCC
48218 builtin and then its argument prototype would still apply. */
48219 #ifdef __cplusplus
48220 extern "C"
48221 #endif
48222 char ${pbxfuncname} ();
48224 main ()
48226 return ${pbxfuncname} ();
48228 return 0;
48230 _ACEOF
48231 rm -f conftest.$ac_objext conftest$ac_exeext
48232 if { (ac_try="$ac_link"
48233 case "(($ac_try" in
48234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48235 *) ac_try_echo=$ac_try;;
48236 esac
48237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48238 (eval "$ac_link") 2>conftest.er1
48239 ac_status=$?
48240 grep -v '^ *+' conftest.er1 >conftest.err
48241 rm -f conftest.er1
48242 cat conftest.err >&5
48243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48244 (exit $ac_status); } && {
48245 test -z "$ac_c_werror_flag" ||
48246 test ! -s conftest.err
48247 } && test -s conftest$ac_exeext &&
48248 $as_test_x conftest$ac_exeext; then
48249 eval "$as_ac_Lib=yes"
48250 else
48251 echo "$as_me: failed program was:" >&5
48252 sed 's/^/| /' conftest.$ac_ext >&5
48254 eval "$as_ac_Lib=no"
48257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48258 conftest$ac_exeext conftest.$ac_ext
48259 LIBS=$ac_check_lib_save_LIBS
48261 ac_res=`eval echo '${'$as_ac_Lib'}'`
48262 { echo "$as_me:$LINENO: result: $ac_res" >&5
48263 echo "${ECHO_T}$ac_res" >&6; }
48264 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48265 AST_X11_FOUND=yes
48266 else
48267 AST_X11_FOUND=no
48272 # now check for the header.
48273 if test "${AST_X11_FOUND}" = "yes"; then
48274 X11_LIB="${pbxlibdir} -lX11 "
48275 # if --with-X11=DIR has been specified, use it.
48276 if test "x${X11_DIR}" != "x"; then
48277 X11_INCLUDE="-I${X11_DIR}/include"
48279 X11_INCLUDE="${X11_INCLUDE} "
48280 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
48281 X11_HEADER_FOUND="1"
48282 else # check for the header
48283 saved_cppflags="${CPPFLAGS}"
48284 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
48285 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48286 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48287 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48288 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48289 echo $ECHO_N "(cached) $ECHO_C" >&6
48291 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48292 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48293 else
48294 # Is the header compilable?
48295 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
48296 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
48297 cat >conftest.$ac_ext <<_ACEOF
48298 /* confdefs.h. */
48299 _ACEOF
48300 cat confdefs.h >>conftest.$ac_ext
48301 cat >>conftest.$ac_ext <<_ACEOF
48302 /* end confdefs.h. */
48303 $ac_includes_default
48304 #include <X11/Xlib.h>
48305 _ACEOF
48306 rm -f conftest.$ac_objext
48307 if { (ac_try="$ac_compile"
48308 case "(($ac_try" in
48309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48310 *) ac_try_echo=$ac_try;;
48311 esac
48312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48313 (eval "$ac_compile") 2>conftest.er1
48314 ac_status=$?
48315 grep -v '^ *+' conftest.er1 >conftest.err
48316 rm -f conftest.er1
48317 cat conftest.err >&5
48318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48319 (exit $ac_status); } && {
48320 test -z "$ac_c_werror_flag" ||
48321 test ! -s conftest.err
48322 } && test -s conftest.$ac_objext; then
48323 ac_header_compiler=yes
48324 else
48325 echo "$as_me: failed program was:" >&5
48326 sed 's/^/| /' conftest.$ac_ext >&5
48328 ac_header_compiler=no
48331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48333 echo "${ECHO_T}$ac_header_compiler" >&6; }
48335 # Is the header present?
48336 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
48337 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
48338 cat >conftest.$ac_ext <<_ACEOF
48339 /* confdefs.h. */
48340 _ACEOF
48341 cat confdefs.h >>conftest.$ac_ext
48342 cat >>conftest.$ac_ext <<_ACEOF
48343 /* end confdefs.h. */
48344 #include <X11/Xlib.h>
48345 _ACEOF
48346 if { (ac_try="$ac_cpp conftest.$ac_ext"
48347 case "(($ac_try" in
48348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48349 *) ac_try_echo=$ac_try;;
48350 esac
48351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48353 ac_status=$?
48354 grep -v '^ *+' conftest.er1 >conftest.err
48355 rm -f conftest.er1
48356 cat conftest.err >&5
48357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48358 (exit $ac_status); } >/dev/null && {
48359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48360 test ! -s conftest.err
48361 }; then
48362 ac_header_preproc=yes
48363 else
48364 echo "$as_me: failed program was:" >&5
48365 sed 's/^/| /' conftest.$ac_ext >&5
48367 ac_header_preproc=no
48370 rm -f conftest.err conftest.$ac_ext
48371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48372 echo "${ECHO_T}$ac_header_preproc" >&6; }
48374 # So? What about this header?
48375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48376 yes:no: )
48377 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
48378 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48379 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
48380 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
48381 ac_header_preproc=yes
48383 no:yes:* )
48384 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
48385 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
48386 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
48387 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
48388 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
48389 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
48390 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
48391 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
48392 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
48393 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
48394 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
48395 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
48396 ( cat <<\_ASBOX
48397 ## ------------------------------- ##
48398 ## Report this to www.asterisk.org ##
48399 ## ------------------------------- ##
48400 _ASBOX
48401 ) | sed "s/^/$as_me: WARNING: /" >&2
48403 esac
48404 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48405 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48406 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48407 echo $ECHO_N "(cached) $ECHO_C" >&6
48408 else
48409 ac_cv_header_X11_Xlib_h=$ac_header_preproc
48411 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48412 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48415 if test $ac_cv_header_X11_Xlib_h = yes; then
48416 X11_HEADER_FOUND=1
48417 else
48418 X11_HEADER_FOUND=0
48422 CPPFLAGS="${saved_cppflags}"
48424 if test "x${X11_HEADER_FOUND}" = "x0" ; then
48425 X11_LIB=""
48426 X11_INCLUDE=""
48427 else
48428 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48429 X11_LIB=""
48431 PBX_X11=1
48432 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48434 cat >>confdefs.h <<_ACEOF
48435 #define HAVE_X11 1
48436 _ACEOF
48439 cat >>confdefs.h <<_ACEOF
48440 #define HAVE_X11_VERSION standard_path
48441 _ACEOF
48448 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
48449 pbxlibdir=""
48450 # if --with-X11=DIR has been specified, use it.
48451 if test "x${X11_DIR}" != "x"; then
48452 if test -d ${X11_DIR}/lib; then
48453 pbxlibdir="-L${X11_DIR}/lib"
48454 else
48455 pbxlibdir="-L${X11_DIR}"
48458 pbxfuncname="XOpenDisplay"
48459 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48460 AST_X11_FOUND=yes
48461 else
48462 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
48463 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
48464 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
48465 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48466 echo $ECHO_N "(cached) $ECHO_C" >&6
48467 else
48468 ac_check_lib_save_LIBS=$LIBS
48469 LIBS="-lX11 ${pbxlibdir} $LIBS"
48470 cat >conftest.$ac_ext <<_ACEOF
48471 /* confdefs.h. */
48472 _ACEOF
48473 cat confdefs.h >>conftest.$ac_ext
48474 cat >>conftest.$ac_ext <<_ACEOF
48475 /* end confdefs.h. */
48477 /* Override any GCC internal prototype to avoid an error.
48478 Use char because int might match the return type of a GCC
48479 builtin and then its argument prototype would still apply. */
48480 #ifdef __cplusplus
48481 extern "C"
48482 #endif
48483 char ${pbxfuncname} ();
48485 main ()
48487 return ${pbxfuncname} ();
48489 return 0;
48491 _ACEOF
48492 rm -f conftest.$ac_objext conftest$ac_exeext
48493 if { (ac_try="$ac_link"
48494 case "(($ac_try" in
48495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48496 *) ac_try_echo=$ac_try;;
48497 esac
48498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48499 (eval "$ac_link") 2>conftest.er1
48500 ac_status=$?
48501 grep -v '^ *+' conftest.er1 >conftest.err
48502 rm -f conftest.er1
48503 cat conftest.err >&5
48504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48505 (exit $ac_status); } && {
48506 test -z "$ac_c_werror_flag" ||
48507 test ! -s conftest.err
48508 } && test -s conftest$ac_exeext &&
48509 $as_test_x conftest$ac_exeext; then
48510 eval "$as_ac_Lib=yes"
48511 else
48512 echo "$as_me: failed program was:" >&5
48513 sed 's/^/| /' conftest.$ac_ext >&5
48515 eval "$as_ac_Lib=no"
48518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48519 conftest$ac_exeext conftest.$ac_ext
48520 LIBS=$ac_check_lib_save_LIBS
48522 ac_res=`eval echo '${'$as_ac_Lib'}'`
48523 { echo "$as_me:$LINENO: result: $ac_res" >&5
48524 echo "${ECHO_T}$ac_res" >&6; }
48525 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48526 AST_X11_FOUND=yes
48527 else
48528 AST_X11_FOUND=no
48533 # now check for the header.
48534 if test "${AST_X11_FOUND}" = "yes"; then
48535 X11_LIB="${pbxlibdir} -lX11 "
48536 # if --with-X11=DIR has been specified, use it.
48537 if test "x${X11_DIR}" != "x"; then
48538 X11_INCLUDE="-I${X11_DIR}/include"
48540 X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
48541 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
48542 X11_HEADER_FOUND="1"
48543 else # check for the header
48544 saved_cppflags="${CPPFLAGS}"
48545 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
48546 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48547 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48548 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48549 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48550 echo $ECHO_N "(cached) $ECHO_C" >&6
48552 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48553 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48554 else
48555 # Is the header compilable?
48556 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
48557 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
48558 cat >conftest.$ac_ext <<_ACEOF
48559 /* confdefs.h. */
48560 _ACEOF
48561 cat confdefs.h >>conftest.$ac_ext
48562 cat >>conftest.$ac_ext <<_ACEOF
48563 /* end confdefs.h. */
48564 $ac_includes_default
48565 #include <X11/Xlib.h>
48566 _ACEOF
48567 rm -f conftest.$ac_objext
48568 if { (ac_try="$ac_compile"
48569 case "(($ac_try" in
48570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48571 *) ac_try_echo=$ac_try;;
48572 esac
48573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48574 (eval "$ac_compile") 2>conftest.er1
48575 ac_status=$?
48576 grep -v '^ *+' conftest.er1 >conftest.err
48577 rm -f conftest.er1
48578 cat conftest.err >&5
48579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48580 (exit $ac_status); } && {
48581 test -z "$ac_c_werror_flag" ||
48582 test ! -s conftest.err
48583 } && test -s conftest.$ac_objext; then
48584 ac_header_compiler=yes
48585 else
48586 echo "$as_me: failed program was:" >&5
48587 sed 's/^/| /' conftest.$ac_ext >&5
48589 ac_header_compiler=no
48592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48594 echo "${ECHO_T}$ac_header_compiler" >&6; }
48596 # Is the header present?
48597 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
48598 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
48599 cat >conftest.$ac_ext <<_ACEOF
48600 /* confdefs.h. */
48601 _ACEOF
48602 cat confdefs.h >>conftest.$ac_ext
48603 cat >>conftest.$ac_ext <<_ACEOF
48604 /* end confdefs.h. */
48605 #include <X11/Xlib.h>
48606 _ACEOF
48607 if { (ac_try="$ac_cpp conftest.$ac_ext"
48608 case "(($ac_try" in
48609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48610 *) ac_try_echo=$ac_try;;
48611 esac
48612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48614 ac_status=$?
48615 grep -v '^ *+' conftest.er1 >conftest.err
48616 rm -f conftest.er1
48617 cat conftest.err >&5
48618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48619 (exit $ac_status); } >/dev/null && {
48620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48621 test ! -s conftest.err
48622 }; then
48623 ac_header_preproc=yes
48624 else
48625 echo "$as_me: failed program was:" >&5
48626 sed 's/^/| /' conftest.$ac_ext >&5
48628 ac_header_preproc=no
48631 rm -f conftest.err conftest.$ac_ext
48632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48633 echo "${ECHO_T}$ac_header_preproc" >&6; }
48635 # So? What about this header?
48636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48637 yes:no: )
48638 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
48639 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48640 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
48641 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
48642 ac_header_preproc=yes
48644 no:yes:* )
48645 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
48646 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
48647 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
48648 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
48649 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
48650 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
48651 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
48652 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
48653 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
48654 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
48655 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
48656 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
48657 ( cat <<\_ASBOX
48658 ## ------------------------------- ##
48659 ## Report this to www.asterisk.org ##
48660 ## ------------------------------- ##
48661 _ASBOX
48662 ) | sed "s/^/$as_me: WARNING: /" >&2
48664 esac
48665 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48666 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48667 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48668 echo $ECHO_N "(cached) $ECHO_C" >&6
48669 else
48670 ac_cv_header_X11_Xlib_h=$ac_header_preproc
48672 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48673 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48676 if test $ac_cv_header_X11_Xlib_h = yes; then
48677 X11_HEADER_FOUND=1
48678 else
48679 X11_HEADER_FOUND=0
48683 CPPFLAGS="${saved_cppflags}"
48685 if test "x${X11_HEADER_FOUND}" = "x0" ; then
48686 X11_LIB=""
48687 X11_INCLUDE=""
48688 else
48689 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48690 X11_LIB=""
48692 PBX_X11=1
48693 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48695 cat >>confdefs.h <<_ACEOF
48696 #define HAVE_X11 1
48697 _ACEOF
48700 cat >>confdefs.h <<_ACEOF
48701 #define HAVE_X11_VERSION X11R6
48702 _ACEOF
48709 if test "${cross_compiling}" = "no";
48710 then
48711 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
48712 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
48713 if test "${ac_cv_file__sbin_launchd+set}" = set; then
48714 echo $ECHO_N "(cached) $ECHO_C" >&6
48715 else
48716 test "$cross_compiling" = yes &&
48717 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
48718 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
48719 { (exit 1); exit 1; }; }
48720 if test -r "/sbin/launchd"; then
48721 ac_cv_file__sbin_launchd=yes
48722 else
48723 ac_cv_file__sbin_launchd=no
48726 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
48727 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
48728 if test $ac_cv_file__sbin_launchd = yes; then
48730 cat >>confdefs.h <<\_ACEOF
48731 #define HAVE_SBIN_LAUNCHD 1
48732 _ACEOF
48738 PBX_GTK=0
48740 if test "x${PBX_GTK}" != "x1" -a "${USE_GTK}" != "no"; then
48741 PBX_GTK=0
48742 if test -n "$ac_tool_prefix"; then
48743 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
48744 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
48745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48747 if test "${ac_cv_prog_CONFIG_GTK+set}" = set; then
48748 echo $ECHO_N "(cached) $ECHO_C" >&6
48749 else
48750 if test -n "$CONFIG_GTK"; then
48751 ac_cv_prog_CONFIG_GTK="$CONFIG_GTK" # Let the user override the test.
48752 else
48753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48754 for as_dir in $PATH
48756 IFS=$as_save_IFS
48757 test -z "$as_dir" && as_dir=.
48758 for ac_exec_ext in '' $ac_executable_extensions; do
48759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48760 ac_cv_prog_CONFIG_GTK="${ac_tool_prefix}gtk-config"
48761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48762 break 2
48764 done
48765 done
48766 IFS=$as_save_IFS
48770 CONFIG_GTK=$ac_cv_prog_CONFIG_GTK
48771 if test -n "$CONFIG_GTK"; then
48772 { echo "$as_me:$LINENO: result: $CONFIG_GTK" >&5
48773 echo "${ECHO_T}$CONFIG_GTK" >&6; }
48774 else
48775 { echo "$as_me:$LINENO: result: no" >&5
48776 echo "${ECHO_T}no" >&6; }
48781 if test -z "$ac_cv_prog_CONFIG_GTK"; then
48782 ac_ct_CONFIG_GTK=$CONFIG_GTK
48783 # Extract the first word of "gtk-config", so it can be a program name with args.
48784 set dummy gtk-config; ac_word=$2
48785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48787 if test "${ac_cv_prog_ac_ct_CONFIG_GTK+set}" = set; then
48788 echo $ECHO_N "(cached) $ECHO_C" >&6
48789 else
48790 if test -n "$ac_ct_CONFIG_GTK"; then
48791 ac_cv_prog_ac_ct_CONFIG_GTK="$ac_ct_CONFIG_GTK" # Let the user override the test.
48792 else
48793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48794 for as_dir in $PATH
48796 IFS=$as_save_IFS
48797 test -z "$as_dir" && as_dir=.
48798 for ac_exec_ext in '' $ac_executable_extensions; do
48799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48800 ac_cv_prog_ac_ct_CONFIG_GTK="gtk-config"
48801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48802 break 2
48804 done
48805 done
48806 IFS=$as_save_IFS
48810 ac_ct_CONFIG_GTK=$ac_cv_prog_ac_ct_CONFIG_GTK
48811 if test -n "$ac_ct_CONFIG_GTK"; then
48812 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GTK" >&5
48813 echo "${ECHO_T}$ac_ct_CONFIG_GTK" >&6; }
48814 else
48815 { echo "$as_me:$LINENO: result: no" >&5
48816 echo "${ECHO_T}no" >&6; }
48819 if test "x$ac_ct_CONFIG_GTK" = x; then
48820 CONFIG_GTK="No"
48821 else
48822 case $cross_compiling:$ac_tool_warned in
48823 yes:)
48824 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48825 whose name does not start with the host triplet. If you think this
48826 configuration is useful to you, please write to autoconf@gnu.org." >&5
48827 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48828 whose name does not start with the host triplet. If you think this
48829 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48830 ac_tool_warned=yes ;;
48831 esac
48832 CONFIG_GTK=$ac_ct_CONFIG_GTK
48834 else
48835 CONFIG_GTK="$ac_cv_prog_CONFIG_GTK"
48838 if test ! "x${CONFIG_GTK}" = xNo; then
48839 if test x"--cflags gthread" = x ; then A=--cflags ; else A="--cflags gthread" ; fi
48840 GTK_INCLUDE=$(${CONFIG_GTK} $A)
48841 if test x"--libs gthread" = x ; then A=--libs ; else A="--libs gthread" ; fi
48842 GTK_LIB=$(${CONFIG_GTK} $A)
48843 if test x"" != x ; then
48844 saved_cppflags="${CPPFLAGS}"
48845 if test "x${GTK_DIR}" != "x"; then
48846 GTK_INCLUDE="-I${GTK_DIR}/include"
48848 CPPFLAGS="${CPPFLAGS} ${GTK_INCLUDE}"
48850 saved_ldflags="${LDFLAGS}"
48851 LDFLAGS="${GTK_LIB}"
48853 cat >conftest.$ac_ext <<_ACEOF
48854 /* confdefs.h. */
48855 _ACEOF
48856 cat confdefs.h >>conftest.$ac_ext
48857 cat >>conftest.$ac_ext <<_ACEOF
48858 /* end confdefs.h. */
48861 main ()
48866 return 0;
48868 _ACEOF
48869 rm -f conftest.$ac_objext conftest$ac_exeext
48870 if { (ac_try="$ac_link"
48871 case "(($ac_try" in
48872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48873 *) ac_try_echo=$ac_try;;
48874 esac
48875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48876 (eval "$ac_link") 2>conftest.er1
48877 ac_status=$?
48878 grep -v '^ *+' conftest.er1 >conftest.err
48879 rm -f conftest.er1
48880 cat conftest.err >&5
48881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48882 (exit $ac_status); } && {
48883 test -z "$ac_c_werror_flag" ||
48884 test ! -s conftest.err
48885 } && test -s conftest$ac_exeext &&
48886 $as_test_x conftest$ac_exeext; then
48887 PBX_GTK=1
48889 cat >>confdefs.h <<\_ACEOF
48890 #define HAVE_GTK 1
48891 _ACEOF
48894 else
48895 echo "$as_me: failed program was:" >&5
48896 sed 's/^/| /' conftest.$ac_ext >&5
48902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48903 conftest$ac_exeext conftest.$ac_ext
48904 CPPFLAGS="${saved_cppflags}"
48905 LDFLAGS="${saved_ldflags}"
48906 else
48907 PBX_GTK=1
48909 cat >>confdefs.h <<\_ACEOF
48910 #define HAVE_GTK 1
48911 _ACEOF
48918 PBX_GTK2=0
48919 if test -n "$ac_tool_prefix"; then
48920 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
48921 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
48922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48924 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
48925 echo $ECHO_N "(cached) $ECHO_C" >&6
48926 else
48927 if test -n "$PKGCONFIG"; then
48928 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
48929 else
48930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48931 for as_dir in $PATH
48933 IFS=$as_save_IFS
48934 test -z "$as_dir" && as_dir=.
48935 for ac_exec_ext in '' $ac_executable_extensions; do
48936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48937 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
48938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48939 break 2
48941 done
48942 done
48943 IFS=$as_save_IFS
48947 PKGCONFIG=$ac_cv_prog_PKGCONFIG
48948 if test -n "$PKGCONFIG"; then
48949 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
48950 echo "${ECHO_T}$PKGCONFIG" >&6; }
48951 else
48952 { echo "$as_me:$LINENO: result: no" >&5
48953 echo "${ECHO_T}no" >&6; }
48958 if test -z "$ac_cv_prog_PKGCONFIG"; then
48959 ac_ct_PKGCONFIG=$PKGCONFIG
48960 # Extract the first word of "pkg-config", so it can be a program name with args.
48961 set dummy pkg-config; ac_word=$2
48962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48964 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
48965 echo $ECHO_N "(cached) $ECHO_C" >&6
48966 else
48967 if test -n "$ac_ct_PKGCONFIG"; then
48968 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
48969 else
48970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48971 for as_dir in $PATH
48973 IFS=$as_save_IFS
48974 test -z "$as_dir" && as_dir=.
48975 for ac_exec_ext in '' $ac_executable_extensions; do
48976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48977 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
48978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48979 break 2
48981 done
48982 done
48983 IFS=$as_save_IFS
48987 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
48988 if test -n "$ac_ct_PKGCONFIG"; then
48989 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
48990 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
48991 else
48992 { echo "$as_me:$LINENO: result: no" >&5
48993 echo "${ECHO_T}no" >&6; }
48996 if test "x$ac_ct_PKGCONFIG" = x; then
48997 PKGCONFIG="No"
48998 else
48999 case $cross_compiling:$ac_tool_warned in
49000 yes:)
49001 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49002 whose name does not start with the host triplet. If you think this
49003 configuration is useful to you, please write to autoconf@gnu.org." >&5
49004 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49005 whose name does not start with the host triplet. If you think this
49006 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49007 ac_tool_warned=yes ;;
49008 esac
49009 PKGCONFIG=$ac_ct_PKGCONFIG
49011 else
49012 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
49015 if test ! "x${PKGCONFIG}" = xNo; then
49016 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
49017 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
49018 PBX_GTK2=1
49020 cat >>confdefs.h <<\_ACEOF
49021 #define HAVE_GTK2 1
49022 _ACEOF
49029 if test "${USE_CURL}" != "no"; then
49030 if test -n "$ac_tool_prefix"; then
49031 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
49032 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
49033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49035 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
49036 echo $ECHO_N "(cached) $ECHO_C" >&6
49037 else
49038 case $CURL_CONFIG in
49039 [\\/]* | ?:[\\/]*)
49040 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
49043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49044 for as_dir in $PATH
49046 IFS=$as_save_IFS
49047 test -z "$as_dir" && as_dir=.
49048 for ac_exec_ext in '' $ac_executable_extensions; do
49049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49050 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49052 break 2
49054 done
49055 done
49056 IFS=$as_save_IFS
49059 esac
49061 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
49062 if test -n "$CURL_CONFIG"; then
49063 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
49064 echo "${ECHO_T}$CURL_CONFIG" >&6; }
49065 else
49066 { echo "$as_me:$LINENO: result: no" >&5
49067 echo "${ECHO_T}no" >&6; }
49072 if test -z "$ac_cv_path_CURL_CONFIG"; then
49073 ac_pt_CURL_CONFIG=$CURL_CONFIG
49074 # Extract the first word of "curl-config", so it can be a program name with args.
49075 set dummy curl-config; ac_word=$2
49076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49078 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
49079 echo $ECHO_N "(cached) $ECHO_C" >&6
49080 else
49081 case $ac_pt_CURL_CONFIG in
49082 [\\/]* | ?:[\\/]*)
49083 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
49086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49087 for as_dir in $PATH
49089 IFS=$as_save_IFS
49090 test -z "$as_dir" && as_dir=.
49091 for ac_exec_ext in '' $ac_executable_extensions; do
49092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49093 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49095 break 2
49097 done
49098 done
49099 IFS=$as_save_IFS
49102 esac
49104 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
49105 if test -n "$ac_pt_CURL_CONFIG"; then
49106 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
49107 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
49108 else
49109 { echo "$as_me:$LINENO: result: no" >&5
49110 echo "${ECHO_T}no" >&6; }
49113 if test "x$ac_pt_CURL_CONFIG" = x; then
49114 CURL_CONFIG="No"
49115 else
49116 case $cross_compiling:$ac_tool_warned in
49117 yes:)
49118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49119 whose name does not start with the host triplet. If you think this
49120 configuration is useful to you, please write to autoconf@gnu.org." >&5
49121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49122 whose name does not start with the host triplet. If you think this
49123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49124 ac_tool_warned=yes ;;
49125 esac
49126 CURL_CONFIG=$ac_pt_CURL_CONFIG
49128 else
49129 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
49132 if test ! x"${CURL_CONFIG}" = xNo; then
49133 # check for version
49134 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
49135 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
49136 CURL_LIB=$(${CURL_CONFIG} --libs)
49138 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
49139 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
49140 saved_cppflags="${CPPFLAGS}"
49141 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
49142 cat >conftest.$ac_ext <<_ACEOF
49143 /* confdefs.h. */
49144 _ACEOF
49145 cat confdefs.h >>conftest.$ac_ext
49146 cat >>conftest.$ac_ext <<_ACEOF
49147 /* end confdefs.h. */
49148 #include <curl/curl.h>
49150 main ()
49152 curl_version();
49154 return 0;
49157 _ACEOF
49158 rm -f conftest.$ac_objext
49159 if { (ac_try="$ac_compile"
49160 case "(($ac_try" in
49161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49162 *) ac_try_echo=$ac_try;;
49163 esac
49164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49165 (eval "$ac_compile") 2>conftest.er1
49166 ac_status=$?
49167 grep -v '^ *+' conftest.er1 >conftest.err
49168 rm -f conftest.er1
49169 cat conftest.err >&5
49170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49171 (exit $ac_status); } && {
49172 test -z "$ac_c_werror_flag" ||
49173 test ! -s conftest.err
49174 } && test -s conftest.$ac_objext; then
49176 { echo "$as_me:$LINENO: result: yes" >&5
49177 echo "${ECHO_T}yes" >&6; }
49178 ac_cv_curl_h="yes"
49180 else
49181 echo "$as_me: failed program was:" >&5
49182 sed 's/^/| /' conftest.$ac_ext >&5
49185 { echo "$as_me:$LINENO: result: no" >&5
49186 echo "${ECHO_T}no" >&6; }
49187 ac_cv_curl_h="no"
49192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49193 CPPFLAGS="${saved_cppflags}"
49194 if test "${ac_cv_curl_h}" = "yes"; then
49195 PBX_CURL=1
49197 cat >>confdefs.h <<\_ACEOF
49198 #define HAVE_CURL 1
49199 _ACEOF
49206 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
49209 { echo "$as_me:$LINENO: checking for mandatory modules: ${ac_mandatory_list}" >&5
49210 echo $ECHO_N "checking for mandatory modules: ${ac_mandatory_list}... $ECHO_C" >&6; }
49211 err=0;
49212 for i in ${ac_mandatory_list}; do
49213 eval "a=\${PBX_$i}"
49214 if test "x${a}" = "x1" ; then continue; fi
49215 if test ${err} = "0" ; then { echo "$as_me:$LINENO: result: fail" >&5
49216 echo "${ECHO_T}fail" >&6; } ; fi
49217 { echo "$as_me:$LINENO: result: " >&5
49218 echo "${ECHO_T}" >&6; }
49219 eval "a=\${${i}_OPTION}"
49220 { echo "$as_me:$LINENO: ***" >&5
49221 echo "$as_me: ***" >&6;}
49222 { echo "$as_me:$LINENO: *** The $i installation appears to be missing or broken." >&5
49223 echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
49224 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
49225 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
49226 { echo "$as_me:$LINENO: *** including --without-${a}." >&5
49227 echo "$as_me: *** including --without-${a}." >&6;}
49228 err=1
49229 done
49230 if test $err = 1 ; then exit 1; fi
49231 { echo "$as_me:$LINENO: result: ok" >&5
49232 echo "${ECHO_T}ok" >&6; }
49235 cat >confcache <<\_ACEOF
49236 # This file is a shell script that caches the results of configure
49237 # tests run on this system so they can be shared between configure
49238 # scripts and configure runs, see configure's option --config-cache.
49239 # It is not useful on other systems. If it contains results you don't
49240 # want to keep, you may remove or edit it.
49242 # config.status only pays attention to the cache file if you give it
49243 # the --recheck option to rerun configure.
49245 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49246 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49247 # following values.
49249 _ACEOF
49251 # The following way of writing the cache mishandles newlines in values,
49252 # but we know of no workaround that is simple, portable, and efficient.
49253 # So, we kill variables containing newlines.
49254 # Ultrix sh set writes to stderr and can't be redirected directly,
49255 # and sets the high bit in the cache file unless we assign to the vars.
49257 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
49258 eval ac_val=\$$ac_var
49259 case $ac_val in #(
49260 *${as_nl}*)
49261 case $ac_var in #(
49262 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
49263 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
49264 esac
49265 case $ac_var in #(
49266 _ | IFS | as_nl) ;; #(
49267 *) $as_unset $ac_var ;;
49268 esac ;;
49269 esac
49270 done
49272 (set) 2>&1 |
49273 case $as_nl`(ac_space=' '; set) 2>&1` in #(
49274 *${as_nl}ac_space=\ *)
49275 # `set' does not quote correctly, so add quotes (double-quote
49276 # substitution turns \\\\ into \\, and sed turns \\ into \).
49277 sed -n \
49278 "s/'/'\\\\''/g;
49279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49280 ;; #(
49282 # `set' quotes correctly as required by POSIX, so do not add quotes.
49283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
49285 esac |
49286 sort
49288 sed '
49289 /^ac_cv_env_/b end
49290 t clear
49291 :clear
49292 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49293 t end
49294 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49295 :end' >>confcache
49296 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49297 if test -w "$cache_file"; then
49298 test "x$cache_file" != "x/dev/null" &&
49299 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
49300 echo "$as_me: updating cache $cache_file" >&6;}
49301 cat confcache >$cache_file
49302 else
49303 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
49304 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
49307 rm -f confcache
49309 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49310 # Let make expand exec_prefix.
49311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49313 DEFS=-DHAVE_CONFIG_H
49315 ac_libobjs=
49316 ac_ltlibobjs=
49317 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49318 # 1. Remove the extension, and $U if already installed.
49319 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
49320 ac_i=`echo "$ac_i" | sed "$ac_script"`
49321 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
49322 # will be set to the directory where LIBOBJS objects are built.
49323 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
49324 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
49325 done
49326 LIBOBJS=$ac_libobjs
49328 LTLIBOBJS=$ac_ltlibobjs
49332 : ${CONFIG_STATUS=./config.status}
49333 ac_clean_files_save=$ac_clean_files
49334 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49335 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49336 echo "$as_me: creating $CONFIG_STATUS" >&6;}
49337 cat >$CONFIG_STATUS <<_ACEOF
49338 #! $SHELL
49339 # Generated by $as_me.
49340 # Run this file to recreate the current configuration.
49341 # Compiler output produced by configure, useful for debugging
49342 # configure, is in config.log if it exists.
49344 debug=false
49345 ac_cs_recheck=false
49346 ac_cs_silent=false
49347 SHELL=\${CONFIG_SHELL-$SHELL}
49348 _ACEOF
49350 cat >>$CONFIG_STATUS <<\_ACEOF
49351 ## --------------------- ##
49352 ## M4sh Initialization. ##
49353 ## --------------------- ##
49355 # Be more Bourne compatible
49356 DUALCASE=1; export DUALCASE # for MKS sh
49357 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49358 emulate sh
49359 NULLCMD=:
49360 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49361 # is contrary to our usage. Disable this feature.
49362 alias -g '${1+"$@"}'='"$@"'
49363 setopt NO_GLOB_SUBST
49364 else
49365 case `(set -o) 2>/dev/null` in
49366 *posix*) set -o posix ;;
49367 esac
49374 # PATH needs CR
49375 # Avoid depending upon Character Ranges.
49376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49379 as_cr_digits='0123456789'
49380 as_cr_alnum=$as_cr_Letters$as_cr_digits
49382 # The user is always right.
49383 if test "${PATH_SEPARATOR+set}" != set; then
49384 echo "#! /bin/sh" >conf$$.sh
49385 echo "exit 0" >>conf$$.sh
49386 chmod +x conf$$.sh
49387 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49388 PATH_SEPARATOR=';'
49389 else
49390 PATH_SEPARATOR=:
49392 rm -f conf$$.sh
49395 # Support unset when possible.
49396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49397 as_unset=unset
49398 else
49399 as_unset=false
49403 # IFS
49404 # We need space, tab and new line, in precisely that order. Quoting is
49405 # there to prevent editors from complaining about space-tab.
49406 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
49407 # splitting by setting IFS to empty value.)
49408 as_nl='
49410 IFS=" "" $as_nl"
49412 # Find who we are. Look in the path if we contain no directory separator.
49413 case $0 in
49414 *[\\/]* ) as_myself=$0 ;;
49415 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49416 for as_dir in $PATH
49418 IFS=$as_save_IFS
49419 test -z "$as_dir" && as_dir=.
49420 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49421 done
49422 IFS=$as_save_IFS
49425 esac
49426 # We did not find ourselves, most probably we were run as `sh COMMAND'
49427 # in which case we are not to be found in the path.
49428 if test "x$as_myself" = x; then
49429 as_myself=$0
49431 if test ! -f "$as_myself"; then
49432 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
49433 { (exit 1); exit 1; }
49436 # Work around bugs in pre-3.0 UWIN ksh.
49437 for as_var in ENV MAIL MAILPATH
49438 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
49439 done
49440 PS1='$ '
49441 PS2='> '
49442 PS4='+ '
49444 # NLS nuisances.
49445 for as_var in \
49446 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49447 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49448 LC_TELEPHONE LC_TIME
49450 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49451 eval $as_var=C; export $as_var
49452 else
49453 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
49455 done
49457 # Required to use basename.
49458 if expr a : '\(a\)' >/dev/null 2>&1 &&
49459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
49460 as_expr=expr
49461 else
49462 as_expr=false
49465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
49466 as_basename=basename
49467 else
49468 as_basename=false
49472 # Name of the executable.
49473 as_me=`$as_basename -- "$0" ||
49474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49475 X"$0" : 'X\(//\)$' \| \
49476 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
49477 echo X/"$0" |
49478 sed '/^.*\/\([^/][^/]*\)\/*$/{
49479 s//\1/
49482 /^X\/\(\/\/\)$/{
49483 s//\1/
49486 /^X\/\(\/\).*/{
49487 s//\1/
49490 s/.*/./; q'`
49492 # CDPATH.
49493 $as_unset CDPATH
49497 as_lineno_1=$LINENO
49498 as_lineno_2=$LINENO
49499 test "x$as_lineno_1" != "x$as_lineno_2" &&
49500 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
49502 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49503 # uniformly replaced by the line number. The first 'sed' inserts a
49504 # line-number line after each line using $LINENO; the second 'sed'
49505 # does the real work. The second script uses 'N' to pair each
49506 # line-number line with the line containing $LINENO, and appends
49507 # trailing '-' during substitution so that $LINENO is not a special
49508 # case at line end.
49509 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49510 # scripts with optimization help from Paolo Bonzini. Blame Lee
49511 # E. McMahon (1931-1989) for sed's syntax. :-)
49512 sed -n '
49514 /[$]LINENO/=
49515 ' <$as_myself |
49516 sed '
49517 s/[$]LINENO.*/&-/
49518 t lineno
49520 :lineno
49522 :loop
49523 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
49524 t loop
49525 s/-\n.*//
49526 ' >$as_me.lineno &&
49527 chmod +x "$as_me.lineno" ||
49528 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
49529 { (exit 1); exit 1; }; }
49531 # Don't try to exec as it changes $[0], causing all sort of problems
49532 # (the dirname of $[0] is not the place where we might find the
49533 # original and so on. Autoconf is especially sensitive to this).
49534 . "./$as_me.lineno"
49535 # Exit status is that of the last command.
49536 exit
49540 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
49541 as_dirname=dirname
49542 else
49543 as_dirname=false
49546 ECHO_C= ECHO_N= ECHO_T=
49547 case `echo -n x` in
49548 -n*)
49549 case `echo 'x\c'` in
49550 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
49551 *) ECHO_C='\c';;
49552 esac;;
49554 ECHO_N='-n';;
49555 esac
49557 if expr a : '\(a\)' >/dev/null 2>&1 &&
49558 test "X`expr 00001 : '.*\(...\)'`" = X001; then
49559 as_expr=expr
49560 else
49561 as_expr=false
49564 rm -f conf$$ conf$$.exe conf$$.file
49565 if test -d conf$$.dir; then
49566 rm -f conf$$.dir/conf$$.file
49567 else
49568 rm -f conf$$.dir
49569 mkdir conf$$.dir
49571 echo >conf$$.file
49572 if ln -s conf$$.file conf$$ 2>/dev/null; then
49573 as_ln_s='ln -s'
49574 # ... but there are two gotchas:
49575 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
49576 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49577 # In both cases, we have to default to `cp -p'.
49578 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
49579 as_ln_s='cp -p'
49580 elif ln conf$$.file conf$$ 2>/dev/null; then
49581 as_ln_s=ln
49582 else
49583 as_ln_s='cp -p'
49585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
49586 rmdir conf$$.dir 2>/dev/null
49588 if mkdir -p . 2>/dev/null; then
49589 as_mkdir_p=:
49590 else
49591 test -d ./-p && rmdir ./-p
49592 as_mkdir_p=false
49595 if test -x / >/dev/null 2>&1; then
49596 as_test_x='test -x'
49597 else
49598 if ls -dL / >/dev/null 2>&1; then
49599 as_ls_L_option=L
49600 else
49601 as_ls_L_option=
49603 as_test_x='
49604 eval sh -c '\''
49605 if test -d "$1"; then
49606 test -d "$1/.";
49607 else
49608 case $1 in
49609 -*)set "./$1";;
49610 esac;
49611 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
49612 ???[sx]*):;;*)false;;esac;fi
49613 '\'' sh
49616 as_executable_p=$as_test_x
49618 # Sed expression to map a string onto a valid CPP name.
49619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49621 # Sed expression to map a string onto a valid variable name.
49622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49625 exec 6>&1
49627 # Save the log message, to keep $[0] and so on meaningful, and to
49628 # report actual input values of CONFIG_FILES etc. instead of their
49629 # values after options handling.
49630 ac_log="
49631 This file was extended by asterisk $as_me 1.6, which was
49632 generated by GNU Autoconf 2.61. Invocation command line was
49634 CONFIG_FILES = $CONFIG_FILES
49635 CONFIG_HEADERS = $CONFIG_HEADERS
49636 CONFIG_LINKS = $CONFIG_LINKS
49637 CONFIG_COMMANDS = $CONFIG_COMMANDS
49638 $ $0 $@
49640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
49643 _ACEOF
49645 cat >>$CONFIG_STATUS <<_ACEOF
49646 # Files that config.status was made for.
49647 config_files="$ac_config_files"
49648 config_headers="$ac_config_headers"
49650 _ACEOF
49652 cat >>$CONFIG_STATUS <<\_ACEOF
49653 ac_cs_usage="\
49654 \`$as_me' instantiates files from templates according to the
49655 current configuration.
49657 Usage: $0 [OPTIONS] [FILE]...
49659 -h, --help print this help, then exit
49660 -V, --version print version number and configuration settings, then exit
49661 -q, --quiet do not print progress messages
49662 -d, --debug don't remove temporary files
49663 --recheck update $as_me by reconfiguring in the same conditions
49664 --file=FILE[:TEMPLATE]
49665 instantiate the configuration file FILE
49666 --header=FILE[:TEMPLATE]
49667 instantiate the configuration header FILE
49669 Configuration files:
49670 $config_files
49672 Configuration headers:
49673 $config_headers
49675 Report bugs to <bug-autoconf@gnu.org>."
49677 _ACEOF
49678 cat >>$CONFIG_STATUS <<_ACEOF
49679 ac_cs_version="\\
49680 asterisk config.status 1.6
49681 configured by $0, generated by GNU Autoconf 2.61,
49682 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
49684 Copyright (C) 2006 Free Software Foundation, Inc.
49685 This config.status script is free software; the Free Software Foundation
49686 gives unlimited permission to copy, distribute and modify it."
49688 ac_pwd='$ac_pwd'
49689 srcdir='$srcdir'
49690 INSTALL='$INSTALL'
49691 _ACEOF
49693 cat >>$CONFIG_STATUS <<\_ACEOF
49694 # If no file are specified by the user, then we need to provide default
49695 # value. By we need to know if files were specified by the user.
49696 ac_need_defaults=:
49697 while test $# != 0
49699 case $1 in
49700 --*=*)
49701 ac_option=`expr "X$1" : 'X\([^=]*\)='`
49702 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
49703 ac_shift=:
49706 ac_option=$1
49707 ac_optarg=$2
49708 ac_shift=shift
49710 esac
49712 case $ac_option in
49713 # Handling of the options.
49714 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49715 ac_cs_recheck=: ;;
49716 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
49717 echo "$ac_cs_version"; exit ;;
49718 --debug | --debu | --deb | --de | --d | -d )
49719 debug=: ;;
49720 --file | --fil | --fi | --f )
49721 $ac_shift
49722 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49723 ac_need_defaults=false;;
49724 --header | --heade | --head | --hea )
49725 $ac_shift
49726 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49727 ac_need_defaults=false;;
49728 --he | --h)
49729 # Conflict between --help and --header
49730 { echo "$as_me: error: ambiguous option: $1
49731 Try \`$0 --help' for more information." >&2
49732 { (exit 1); exit 1; }; };;
49733 --help | --hel | -h )
49734 echo "$ac_cs_usage"; exit ;;
49735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49736 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49737 ac_cs_silent=: ;;
49739 # This is an error.
49740 -*) { echo "$as_me: error: unrecognized option: $1
49741 Try \`$0 --help' for more information." >&2
49742 { (exit 1); exit 1; }; } ;;
49744 *) ac_config_targets="$ac_config_targets $1"
49745 ac_need_defaults=false ;;
49747 esac
49748 shift
49749 done
49751 ac_configure_extra_args=
49753 if $ac_cs_silent; then
49754 exec 6>/dev/null
49755 ac_configure_extra_args="$ac_configure_extra_args --silent"
49758 _ACEOF
49759 cat >>$CONFIG_STATUS <<_ACEOF
49760 if \$ac_cs_recheck; then
49761 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49762 CONFIG_SHELL=$SHELL
49763 export CONFIG_SHELL
49764 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49767 _ACEOF
49768 cat >>$CONFIG_STATUS <<\_ACEOF
49769 exec 5>>config.log
49771 echo
49772 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49773 ## Running $as_me. ##
49774 _ASBOX
49775 echo "$ac_log"
49776 } >&5
49778 _ACEOF
49779 cat >>$CONFIG_STATUS <<_ACEOF
49780 _ACEOF
49782 cat >>$CONFIG_STATUS <<\_ACEOF
49784 # Handling of arguments.
49785 for ac_config_target in $ac_config_targets
49787 case $ac_config_target in
49788 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
49789 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
49790 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
49791 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
49793 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49794 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49795 { (exit 1); exit 1; }; };;
49796 esac
49797 done
49800 # If the user did not use the arguments to specify the items to instantiate,
49801 # then the envvar interface is used. Set only those that are not.
49802 # We use the long form for the default assignment because of an extremely
49803 # bizarre bug on SunOS 4.1.3.
49804 if $ac_need_defaults; then
49805 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49806 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49809 # Have a temporary directory for convenience. Make it in the build tree
49810 # simply because there is no reason against having it here, and in addition,
49811 # creating and moving files from /tmp can sometimes cause problems.
49812 # Hook for its removal unless debugging.
49813 # Note that there is a small window in which the directory will not be cleaned:
49814 # after its creation but before its name has been assigned to `$tmp'.
49815 $debug ||
49817 tmp=
49818 trap 'exit_status=$?
49819 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
49821 trap '{ (exit 1); exit 1; }' 1 2 13 15
49823 # Create a (secure) tmp directory for tmp files.
49826 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
49827 test -n "$tmp" && test -d "$tmp"
49828 } ||
49830 tmp=./conf$$-$RANDOM
49831 (umask 077 && mkdir "$tmp")
49832 } ||
49834 echo "$me: cannot create a temporary directory in ." >&2
49835 { (exit 1); exit 1; }
49839 # Set up the sed scripts for CONFIG_FILES section.
49842 # No need to generate the scripts if there are no CONFIG_FILES.
49843 # This happens for instance when ./config.status config.h
49844 if test -n "$CONFIG_FILES"; then
49846 _ACEOF
49850 ac_delim='%!_!# '
49851 for ac_last_try in false false false false false :; do
49852 cat >conf$$subs.sed <<_ACEOF
49853 SHELL!$SHELL$ac_delim
49854 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
49855 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
49856 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
49857 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
49858 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
49859 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
49860 exec_prefix!$exec_prefix$ac_delim
49861 prefix!$prefix$ac_delim
49862 program_transform_name!$program_transform_name$ac_delim
49863 bindir!$bindir$ac_delim
49864 sbindir!$sbindir$ac_delim
49865 libexecdir!$libexecdir$ac_delim
49866 datarootdir!$datarootdir$ac_delim
49867 datadir!$datadir$ac_delim
49868 sysconfdir!$sysconfdir$ac_delim
49869 sharedstatedir!$sharedstatedir$ac_delim
49870 localstatedir!$localstatedir$ac_delim
49871 includedir!$includedir$ac_delim
49872 oldincludedir!$oldincludedir$ac_delim
49873 docdir!$docdir$ac_delim
49874 infodir!$infodir$ac_delim
49875 htmldir!$htmldir$ac_delim
49876 dvidir!$dvidir$ac_delim
49877 pdfdir!$pdfdir$ac_delim
49878 psdir!$psdir$ac_delim
49879 libdir!$libdir$ac_delim
49880 localedir!$localedir$ac_delim
49881 mandir!$mandir$ac_delim
49882 DEFS!$DEFS$ac_delim
49883 ECHO_C!$ECHO_C$ac_delim
49884 ECHO_N!$ECHO_N$ac_delim
49885 ECHO_T!$ECHO_T$ac_delim
49886 LIBS!$LIBS$ac_delim
49887 build_alias!$build_alias$ac_delim
49888 host_alias!$host_alias$ac_delim
49889 target_alias!$target_alias$ac_delim
49890 build!$build$ac_delim
49891 build_cpu!$build_cpu$ac_delim
49892 build_vendor!$build_vendor$ac_delim
49893 build_os!$build_os$ac_delim
49894 host!$host$ac_delim
49895 host_cpu!$host_cpu$ac_delim
49896 host_vendor!$host_vendor$ac_delim
49897 host_os!$host_os$ac_delim
49898 CC!$CC$ac_delim
49899 CFLAGS!$CFLAGS$ac_delim
49900 LDFLAGS!$LDFLAGS$ac_delim
49901 CPPFLAGS!$CPPFLAGS$ac_delim
49902 ac_ct_CC!$ac_ct_CC$ac_delim
49903 EXEEXT!$EXEEXT$ac_delim
49904 OBJEXT!$OBJEXT$ac_delim
49905 CPP!$CPP$ac_delim
49906 GREP!$GREP$ac_delim
49907 EGREP!$EGREP$ac_delim
49908 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
49909 BUILD_CPU!$BUILD_CPU$ac_delim
49910 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
49911 BUILD_OS!$BUILD_OS$ac_delim
49912 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
49913 HOST_CPU!$HOST_CPU$ac_delim
49914 HOST_VENDOR!$HOST_VENDOR$ac_delim
49915 HOST_OS!$HOST_OS$ac_delim
49916 OSARCH!$OSARCH$ac_delim
49917 WINARCH!$WINARCH$ac_delim
49918 UNAME!$UNAME$ac_delim
49919 PBX_OSREV!$PBX_OSREV$ac_delim
49920 CXX!$CXX$ac_delim
49921 LD!$LD$ac_delim
49922 RANLIB!$RANLIB$ac_delim
49923 CXXFLAGS!$CXXFLAGS$ac_delim
49924 ac_ct_CXX!$ac_ct_CXX$ac_delim
49925 CXXCPP!$CXXCPP$ac_delim
49926 SED!$SED$ac_delim
49927 AWK!$AWK$ac_delim
49928 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
49929 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
49930 INSTALL_DATA!$INSTALL_DATA$ac_delim
49931 LN_S!$LN_S$ac_delim
49932 GNU_MAKE!$GNU_MAKE$ac_delim
49933 STRIP!$STRIP$ac_delim
49934 AR!$AR$ac_delim
49935 GNU_LD!$GNU_LD$ac_delim
49936 FIND!$FIND$ac_delim
49937 COMPRESS!$COMPRESS$ac_delim
49938 BASENAME!$BASENAME$ac_delim
49939 ID!$ID$ac_delim
49940 DIRNAME!$DIRNAME$ac_delim
49941 LN!$LN$ac_delim
49942 DOT!$DOT$ac_delim
49943 WGET!$WGET$ac_delim
49944 RUBBER!$RUBBER$ac_delim
49945 KPATHSEA!$KPATHSEA$ac_delim
49946 FETCH!$FETCH$ac_delim
49947 DOWNLOAD!$DOWNLOAD$ac_delim
49948 SOXMIX!$SOXMIX$ac_delim
49949 acx_pthread_config!$acx_pthread_config$ac_delim
49950 _ACEOF
49952 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
49953 break
49954 elif $ac_last_try; then
49955 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49956 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49957 { (exit 1); exit 1; }; }
49958 else
49959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49961 done
49963 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
49964 if test -n "$ac_eof"; then
49965 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
49966 ac_eof=`expr $ac_eof + 1`
49969 cat >>$CONFIG_STATUS <<_ACEOF
49970 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
49971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49972 _ACEOF
49973 sed '
49974 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
49975 s/^/s,@/; s/!/@,|#_!!_#|/
49978 s/'"$ac_delim"'$/,g/; t
49979 s/$/\\/; p
49980 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
49981 ' >>$CONFIG_STATUS <conf$$subs.sed
49982 rm -f conf$$subs.sed
49983 cat >>$CONFIG_STATUS <<_ACEOF
49984 CEOF$ac_eof
49985 _ACEOF
49988 ac_delim='%!_!# '
49989 for ac_last_try in false false false false false :; do
49990 cat >conf$$subs.sed <<_ACEOF
49991 PTHREAD_CC!$PTHREAD_CC$ac_delim
49992 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
49993 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
49994 AST_DEVMODE!$AST_DEVMODE$ac_delim
49995 ALSA_LIB!$ALSA_LIB$ac_delim
49996 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
49997 ALSA_DIR!$ALSA_DIR$ac_delim
49998 PBX_ALSA!$PBX_ALSA$ac_delim
49999 BKTR_LIB!$BKTR_LIB$ac_delim
50000 BKTR_INCLUDE!$BKTR_INCLUDE$ac_delim
50001 BKTR_DIR!$BKTR_DIR$ac_delim
50002 PBX_BKTR!$PBX_BKTR$ac_delim
50003 CAP_LIB!$CAP_LIB$ac_delim
50004 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
50005 CAP_DIR!$CAP_DIR$ac_delim
50006 PBX_CAP!$PBX_CAP$ac_delim
50007 CURL_LIB!$CURL_LIB$ac_delim
50008 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
50009 CURL_DIR!$CURL_DIR$ac_delim
50010 PBX_CURL!$PBX_CURL$ac_delim
50011 CURSES_LIB!$CURSES_LIB$ac_delim
50012 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
50013 CURSES_DIR!$CURSES_DIR$ac_delim
50014 PBX_CURSES!$PBX_CURSES$ac_delim
50015 CRYPTO_LIB!$CRYPTO_LIB$ac_delim
50016 CRYPTO_INCLUDE!$CRYPTO_INCLUDE$ac_delim
50017 CRYPTO_DIR!$CRYPTO_DIR$ac_delim
50018 PBX_CRYPTO!$PBX_CRYPTO$ac_delim
50019 DAHDI_LIB!$DAHDI_LIB$ac_delim
50020 DAHDI_INCLUDE!$DAHDI_INCLUDE$ac_delim
50021 DAHDI_DIR!$DAHDI_DIR$ac_delim
50022 PBX_DAHDI!$PBX_DAHDI$ac_delim
50023 FFMPEG_LIB!$FFMPEG_LIB$ac_delim
50024 FFMPEG_INCLUDE!$FFMPEG_INCLUDE$ac_delim
50025 FFMPEG_DIR!$FFMPEG_DIR$ac_delim
50026 PBX_FFMPEG!$PBX_FFMPEG$ac_delim
50027 GSM_LIB!$GSM_LIB$ac_delim
50028 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
50029 GSM_DIR!$GSM_DIR$ac_delim
50030 PBX_GSM!$PBX_GSM$ac_delim
50031 GTK_LIB!$GTK_LIB$ac_delim
50032 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
50033 GTK_DIR!$GTK_DIR$ac_delim
50034 PBX_GTK!$PBX_GTK$ac_delim
50035 GTK2_LIB!$GTK2_LIB$ac_delim
50036 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
50037 GTK2_DIR!$GTK2_DIR$ac_delim
50038 PBX_GTK2!$PBX_GTK2$ac_delim
50039 GMIME_LIB!$GMIME_LIB$ac_delim
50040 GMIME_INCLUDE!$GMIME_INCLUDE$ac_delim
50041 GMIME_DIR!$GMIME_DIR$ac_delim
50042 PBX_GMIME!$PBX_GMIME$ac_delim
50043 ICONV_LIB!$ICONV_LIB$ac_delim
50044 ICONV_INCLUDE!$ICONV_INCLUDE$ac_delim
50045 ICONV_DIR!$ICONV_DIR$ac_delim
50046 PBX_ICONV!$PBX_ICONV$ac_delim
50047 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
50048 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
50049 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
50050 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
50051 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
50052 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
50053 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
50054 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
50055 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
50056 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
50057 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
50058 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
50059 JACK_LIB!$JACK_LIB$ac_delim
50060 JACK_INCLUDE!$JACK_INCLUDE$ac_delim
50061 JACK_DIR!$JACK_DIR$ac_delim
50062 PBX_JACK!$PBX_JACK$ac_delim
50063 LDAP_LIB!$LDAP_LIB$ac_delim
50064 LDAP_INCLUDE!$LDAP_INCLUDE$ac_delim
50065 LDAP_DIR!$LDAP_DIR$ac_delim
50066 PBX_LDAP!$PBX_LDAP$ac_delim
50067 LTDL_LIB!$LTDL_LIB$ac_delim
50068 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
50069 LTDL_DIR!$LTDL_DIR$ac_delim
50070 PBX_LTDL!$PBX_LTDL$ac_delim
50071 LUA_LIB!$LUA_LIB$ac_delim
50072 LUA_INCLUDE!$LUA_INCLUDE$ac_delim
50073 LUA_DIR!$LUA_DIR$ac_delim
50074 PBX_LUA!$PBX_LUA$ac_delim
50075 MISDN_LIB!$MISDN_LIB$ac_delim
50076 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
50077 MISDN_DIR!$MISDN_DIR$ac_delim
50078 PBX_MISDN!$PBX_MISDN$ac_delim
50079 NBS_LIB!$NBS_LIB$ac_delim
50080 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
50081 NBS_DIR!$NBS_DIR$ac_delim
50082 PBX_NBS!$PBX_NBS$ac_delim
50083 NCURSES_LIB!$NCURSES_LIB$ac_delim
50084 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
50085 NCURSES_DIR!$NCURSES_DIR$ac_delim
50086 PBX_NCURSES!$PBX_NCURSES$ac_delim
50087 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
50088 _ACEOF
50090 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50091 break
50092 elif $ac_last_try; then
50093 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50094 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50095 { (exit 1); exit 1; }; }
50096 else
50097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50099 done
50101 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50102 if test -n "$ac_eof"; then
50103 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50104 ac_eof=`expr $ac_eof + 1`
50107 cat >>$CONFIG_STATUS <<_ACEOF
50108 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
50109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50110 _ACEOF
50111 sed '
50112 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50113 s/^/s,@/; s/!/@,|#_!!_#|/
50116 s/'"$ac_delim"'$/,g/; t
50117 s/$/\\/; p
50118 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50119 ' >>$CONFIG_STATUS <conf$$subs.sed
50120 rm -f conf$$subs.sed
50121 cat >>$CONFIG_STATUS <<_ACEOF
50122 CEOF$ac_eof
50123 _ACEOF
50126 ac_delim='%!_!# '
50127 for ac_last_try in false false false false false :; do
50128 cat >conf$$subs.sed <<_ACEOF
50129 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
50130 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
50131 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
50132 NEWT_LIB!$NEWT_LIB$ac_delim
50133 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
50134 NEWT_DIR!$NEWT_DIR$ac_delim
50135 PBX_NEWT!$PBX_NEWT$ac_delim
50136 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
50137 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
50138 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
50139 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
50140 OGG_LIB!$OGG_LIB$ac_delim
50141 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
50142 OGG_DIR!$OGG_DIR$ac_delim
50143 PBX_OGG!$PBX_OGG$ac_delim
50144 OSPTK_LIB!$OSPTK_LIB$ac_delim
50145 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
50146 OSPTK_DIR!$OSPTK_DIR$ac_delim
50147 PBX_OSPTK!$PBX_OSPTK$ac_delim
50148 OSS_LIB!$OSS_LIB$ac_delim
50149 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
50150 OSS_DIR!$OSS_DIR$ac_delim
50151 PBX_OSS!$PBX_OSS$ac_delim
50152 PGSQL_LIB!$PGSQL_LIB$ac_delim
50153 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
50154 PGSQL_DIR!$PGSQL_DIR$ac_delim
50155 PBX_PGSQL!$PBX_PGSQL$ac_delim
50156 POPT_LIB!$POPT_LIB$ac_delim
50157 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
50158 POPT_DIR!$POPT_DIR$ac_delim
50159 PBX_POPT!$PBX_POPT$ac_delim
50160 PORTAUDIO_LIB!$PORTAUDIO_LIB$ac_delim
50161 PORTAUDIO_INCLUDE!$PORTAUDIO_INCLUDE$ac_delim
50162 PORTAUDIO_DIR!$PORTAUDIO_DIR$ac_delim
50163 PBX_PORTAUDIO!$PBX_PORTAUDIO$ac_delim
50164 PRI_LIB!$PRI_LIB$ac_delim
50165 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
50166 PRI_DIR!$PRI_DIR$ac_delim
50167 PBX_PRI!$PBX_PRI$ac_delim
50168 SPANDSP_LIB!$SPANDSP_LIB$ac_delim
50169 SPANDSP_INCLUDE!$SPANDSP_INCLUDE$ac_delim
50170 SPANDSP_DIR!$SPANDSP_DIR$ac_delim
50171 PBX_SPANDSP!$PBX_SPANDSP$ac_delim
50172 SS7_LIB!$SS7_LIB$ac_delim
50173 SS7_INCLUDE!$SS7_INCLUDE$ac_delim
50174 SS7_DIR!$SS7_DIR$ac_delim
50175 PBX_SS7!$PBX_SS7$ac_delim
50176 PWLIB_LIB!$PWLIB_LIB$ac_delim
50177 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
50178 PWLIB_DIR!$PWLIB_DIR$ac_delim
50179 PBX_PWLIB!$PBX_PWLIB$ac_delim
50180 OPENH323_LIB!$OPENH323_LIB$ac_delim
50181 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
50182 OPENH323_DIR!$OPENH323_DIR$ac_delim
50183 PBX_OPENH323!$PBX_OPENH323$ac_delim
50184 RADIUS_LIB!$RADIUS_LIB$ac_delim
50185 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
50186 RADIUS_DIR!$RADIUS_DIR$ac_delim
50187 PBX_RADIUS!$PBX_RADIUS$ac_delim
50188 SDL_LIB!$SDL_LIB$ac_delim
50189 SDL_INCLUDE!$SDL_INCLUDE$ac_delim
50190 SDL_DIR!$SDL_DIR$ac_delim
50191 PBX_SDL!$PBX_SDL$ac_delim
50192 SDL_IMAGE_LIB!$SDL_IMAGE_LIB$ac_delim
50193 SDL_IMAGE_INCLUDE!$SDL_IMAGE_INCLUDE$ac_delim
50194 SDL_IMAGE_DIR!$SDL_IMAGE_DIR$ac_delim
50195 PBX_SDL_IMAGE!$PBX_SDL_IMAGE$ac_delim
50196 OPENAIS_LIB!$OPENAIS_LIB$ac_delim
50197 OPENAIS_INCLUDE!$OPENAIS_INCLUDE$ac_delim
50198 OPENAIS_DIR!$OPENAIS_DIR$ac_delim
50199 PBX_OPENAIS!$PBX_OPENAIS$ac_delim
50200 SPEEX_LIB!$SPEEX_LIB$ac_delim
50201 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
50202 SPEEX_DIR!$SPEEX_DIR$ac_delim
50203 PBX_SPEEX!$PBX_SPEEX$ac_delim
50204 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
50205 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
50206 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
50207 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
50208 SQLITE_LIB!$SQLITE_LIB$ac_delim
50209 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
50210 SQLITE_DIR!$SQLITE_DIR$ac_delim
50211 PBX_SQLITE!$PBX_SQLITE$ac_delim
50212 SQLITE3_LIB!$SQLITE3_LIB$ac_delim
50213 SQLITE3_INCLUDE!$SQLITE3_INCLUDE$ac_delim
50214 SQLITE3_DIR!$SQLITE3_DIR$ac_delim
50215 PBX_SQLITE3!$PBX_SQLITE3$ac_delim
50216 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
50217 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
50218 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
50219 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
50220 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
50221 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
50222 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
50223 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
50224 FREETDS_LIB!$FREETDS_LIB$ac_delim
50225 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
50226 _ACEOF
50228 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50229 break
50230 elif $ac_last_try; then
50231 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50232 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50233 { (exit 1); exit 1; }; }
50234 else
50235 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50237 done
50239 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50240 if test -n "$ac_eof"; then
50241 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50242 ac_eof=`expr $ac_eof + 1`
50245 cat >>$CONFIG_STATUS <<_ACEOF
50246 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
50247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50248 _ACEOF
50249 sed '
50250 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50251 s/^/s,@/; s/!/@,|#_!!_#|/
50254 s/'"$ac_delim"'$/,g/; t
50255 s/$/\\/; p
50256 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50257 ' >>$CONFIG_STATUS <conf$$subs.sed
50258 rm -f conf$$subs.sed
50259 cat >>$CONFIG_STATUS <<_ACEOF
50260 CEOF$ac_eof
50261 _ACEOF
50264 ac_delim='%!_!# '
50265 for ac_last_try in false false false false false :; do
50266 cat >conf$$subs.sed <<_ACEOF
50267 FREETDS_DIR!$FREETDS_DIR$ac_delim
50268 PBX_FREETDS!$PBX_FREETDS$ac_delim
50269 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
50270 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
50271 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
50272 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
50273 TINFO_LIB!$TINFO_LIB$ac_delim
50274 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
50275 TINFO_DIR!$TINFO_DIR$ac_delim
50276 PBX_TINFO!$PBX_TINFO$ac_delim
50277 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
50278 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
50279 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
50280 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
50281 USB_LIB!$USB_LIB$ac_delim
50282 USB_INCLUDE!$USB_INCLUDE$ac_delim
50283 USB_DIR!$USB_DIR$ac_delim
50284 PBX_USB!$PBX_USB$ac_delim
50285 VORBIS_LIB!$VORBIS_LIB$ac_delim
50286 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
50287 VORBIS_DIR!$VORBIS_DIR$ac_delim
50288 PBX_VORBIS!$PBX_VORBIS$ac_delim
50289 VPB_LIB!$VPB_LIB$ac_delim
50290 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
50291 VPB_DIR!$VPB_DIR$ac_delim
50292 PBX_VPB!$PBX_VPB$ac_delim
50293 X11_LIB!$X11_LIB$ac_delim
50294 X11_INCLUDE!$X11_INCLUDE$ac_delim
50295 X11_DIR!$X11_DIR$ac_delim
50296 PBX_X11!$PBX_X11$ac_delim
50297 ZLIB_LIB!$ZLIB_LIB$ac_delim
50298 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
50299 ZLIB_DIR!$ZLIB_DIR$ac_delim
50300 PBX_ZLIB!$PBX_ZLIB$ac_delim
50301 ALLOCA!$ALLOCA$ac_delim
50302 LIBOBJS!$LIBOBJS$ac_delim
50303 POW_LIB!$POW_LIB$ac_delim
50304 HAS_POLL!$HAS_POLL$ac_delim
50305 PBX_PTHREAD_RWLOCK_INITIALIZER!$PBX_PTHREAD_RWLOCK_INITIALIZER$ac_delim
50306 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP!$PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP$ac_delim
50307 GC_CFLAGS!$GC_CFLAGS$ac_delim
50308 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
50309 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
50310 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
50311 PBX_RTLD_NOLOAD!$PBX_RTLD_NOLOAD$ac_delim
50312 PBX_IP_MTU_DISCOVER!$PBX_IP_MTU_DISCOVER$ac_delim
50313 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
50314 PBX_MISDN_FAC_RESULT!$PBX_MISDN_FAC_RESULT$ac_delim
50315 PBX_MISDN_FAC_ERROR!$PBX_MISDN_FAC_ERROR$ac_delim
50316 CONFIG_NETSNMP!$CONFIG_NETSNMP$ac_delim
50317 PG_CONFIG!$PG_CONFIG$ac_delim
50318 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
50319 PWLIBDIR!$PWLIBDIR$ac_delim
50320 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
50321 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
50322 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
50323 OPENH323DIR!$OPENH323DIR$ac_delim
50324 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
50325 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
50326 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
50327 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
50328 PBX_AIS!$PBX_AIS$ac_delim
50329 AIS_INCLUDE!$AIS_INCLUDE$ac_delim
50330 AIS_LIB!$AIS_LIB$ac_delim
50331 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
50332 CONFIG_GMIME!$CONFIG_GMIME$ac_delim
50333 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
50334 PBX_H323!$PBX_H323$ac_delim
50335 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
50336 CONFIG_SDL!$CONFIG_SDL$ac_delim
50337 CONFIG_GTK!$CONFIG_GTK$ac_delim
50338 PKGCONFIG!$PKGCONFIG$ac_delim
50339 CURL_CONFIG!$CURL_CONFIG$ac_delim
50340 LTLIBOBJS!$LTLIBOBJS$ac_delim
50341 _ACEOF
50343 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
50344 break
50345 elif $ac_last_try; then
50346 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50347 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50348 { (exit 1); exit 1; }; }
50349 else
50350 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50352 done
50354 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50355 if test -n "$ac_eof"; then
50356 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50357 ac_eof=`expr $ac_eof + 1`
50360 cat >>$CONFIG_STATUS <<_ACEOF
50361 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
50362 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
50363 _ACEOF
50364 sed '
50365 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50366 s/^/s,@/; s/!/@,|#_!!_#|/
50369 s/'"$ac_delim"'$/,g/; t
50370 s/$/\\/; p
50371 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50372 ' >>$CONFIG_STATUS <conf$$subs.sed
50373 rm -f conf$$subs.sed
50374 cat >>$CONFIG_STATUS <<_ACEOF
50375 :end
50376 s/|#_!!_#|//g
50377 CEOF$ac_eof
50378 _ACEOF
50381 # VPATH may cause trouble with some makes, so we remove $(srcdir),
50382 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50383 # trailing colons and then remove the whole line if VPATH becomes empty
50384 # (actually we leave an empty line to preserve line numbers).
50385 if test "x$srcdir" = x.; then
50386 ac_vpsub='/^[ ]*VPATH[ ]*=/{
50387 s/:*\$(srcdir):*/:/
50388 s/:*\${srcdir}:*/:/
50389 s/:*@srcdir@:*/:/
50390 s/^\([^=]*=[ ]*\):*/\1/
50391 s/:*$//
50392 s/^[^=]*=[ ]*$//
50396 cat >>$CONFIG_STATUS <<\_ACEOF
50397 fi # test -n "$CONFIG_FILES"
50400 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
50402 case $ac_tag in
50403 :[FHLC]) ac_mode=$ac_tag; continue;;
50404 esac
50405 case $ac_mode$ac_tag in
50406 :[FHL]*:*);;
50407 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
50408 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
50409 { (exit 1); exit 1; }; };;
50410 :[FH]-) ac_tag=-:-;;
50411 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
50412 esac
50413 ac_save_IFS=$IFS
50414 IFS=:
50415 set x $ac_tag
50416 IFS=$ac_save_IFS
50417 shift
50418 ac_file=$1
50419 shift
50421 case $ac_mode in
50422 :L) ac_source=$1;;
50423 :[FH])
50424 ac_file_inputs=
50425 for ac_f
50427 case $ac_f in
50428 -) ac_f="$tmp/stdin";;
50429 *) # Look for the file first in the build tree, then in the source tree
50430 # (if the path is not absolute). The absolute path cannot be DOS-style,
50431 # because $ac_f cannot contain `:'.
50432 test -f "$ac_f" ||
50433 case $ac_f in
50434 [\\/$]*) false;;
50435 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
50436 esac ||
50437 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
50438 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
50439 { (exit 1); exit 1; }; };;
50440 esac
50441 ac_file_inputs="$ac_file_inputs $ac_f"
50442 done
50444 # Let's still pretend it is `configure' which instantiates (i.e., don't
50445 # use $as_me), people would be surprised to read:
50446 # /* config.h. Generated by config.status. */
50447 configure_input="Generated from "`IFS=:
50448 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
50449 if test x"$ac_file" != x-; then
50450 configure_input="$ac_file. $configure_input"
50451 { echo "$as_me:$LINENO: creating $ac_file" >&5
50452 echo "$as_me: creating $ac_file" >&6;}
50455 case $ac_tag in
50456 *:-:* | *:-) cat >"$tmp/stdin";;
50457 esac
50459 esac
50461 ac_dir=`$as_dirname -- "$ac_file" ||
50462 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50463 X"$ac_file" : 'X\(//\)[^/]' \| \
50464 X"$ac_file" : 'X\(//\)$' \| \
50465 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
50466 echo X"$ac_file" |
50467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50468 s//\1/
50471 /^X\(\/\/\)[^/].*/{
50472 s//\1/
50475 /^X\(\/\/\)$/{
50476 s//\1/
50479 /^X\(\/\).*/{
50480 s//\1/
50483 s/.*/./; q'`
50484 { as_dir="$ac_dir"
50485 case $as_dir in #(
50486 -*) as_dir=./$as_dir;;
50487 esac
50488 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
50489 as_dirs=
50490 while :; do
50491 case $as_dir in #(
50492 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
50493 *) as_qdir=$as_dir;;
50494 esac
50495 as_dirs="'$as_qdir' $as_dirs"
50496 as_dir=`$as_dirname -- "$as_dir" ||
50497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50498 X"$as_dir" : 'X\(//\)[^/]' \| \
50499 X"$as_dir" : 'X\(//\)$' \| \
50500 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50501 echo X"$as_dir" |
50502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50503 s//\1/
50506 /^X\(\/\/\)[^/].*/{
50507 s//\1/
50510 /^X\(\/\/\)$/{
50511 s//\1/
50514 /^X\(\/\).*/{
50515 s//\1/
50518 s/.*/./; q'`
50519 test -d "$as_dir" && break
50520 done
50521 test -z "$as_dirs" || eval "mkdir $as_dirs"
50522 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
50523 echo "$as_me: error: cannot create directory $as_dir" >&2;}
50524 { (exit 1); exit 1; }; }; }
50525 ac_builddir=.
50527 case "$ac_dir" in
50528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
50530 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50531 # A ".." for each directory in $ac_dir_suffix.
50532 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
50533 case $ac_top_builddir_sub in
50534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
50535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
50536 esac ;;
50537 esac
50538 ac_abs_top_builddir=$ac_pwd
50539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
50540 # for backward compatibility:
50541 ac_top_builddir=$ac_top_build_prefix
50543 case $srcdir in
50544 .) # We are building in place.
50545 ac_srcdir=.
50546 ac_top_srcdir=$ac_top_builddir_sub
50547 ac_abs_top_srcdir=$ac_pwd ;;
50548 [\\/]* | ?:[\\/]* ) # Absolute name.
50549 ac_srcdir=$srcdir$ac_dir_suffix;
50550 ac_top_srcdir=$srcdir
50551 ac_abs_top_srcdir=$srcdir ;;
50552 *) # Relative name.
50553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
50554 ac_top_srcdir=$ac_top_build_prefix$srcdir
50555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
50556 esac
50557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
50560 case $ac_mode in
50563 # CONFIG_FILE
50566 case $INSTALL in
50567 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50568 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50569 esac
50570 _ACEOF
50572 cat >>$CONFIG_STATUS <<\_ACEOF
50573 # If the template does not know about datarootdir, expand it.
50574 # FIXME: This hack should be removed a few years after 2.60.
50575 ac_datarootdir_hack=; ac_datarootdir_seen=
50577 case `sed -n '/datarootdir/ {
50581 /@datadir@/p
50582 /@docdir@/p
50583 /@infodir@/p
50584 /@localedir@/p
50585 /@mandir@/p
50586 ' $ac_file_inputs` in
50587 *datarootdir*) ac_datarootdir_seen=yes;;
50588 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
50589 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
50590 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
50591 _ACEOF
50592 cat >>$CONFIG_STATUS <<_ACEOF
50593 ac_datarootdir_hack='
50594 s&@datadir@&$datadir&g
50595 s&@docdir@&$docdir&g
50596 s&@infodir@&$infodir&g
50597 s&@localedir@&$localedir&g
50598 s&@mandir@&$mandir&g
50599 s&\\\${datarootdir}&$datarootdir&g' ;;
50600 esac
50601 _ACEOF
50603 # Neutralize VPATH when `$srcdir' = `.'.
50604 # Shell code in configure.ac might set extrasub.
50605 # FIXME: do we really want to maintain this feature?
50606 cat >>$CONFIG_STATUS <<_ACEOF
50607 sed "$ac_vpsub
50608 $extrasub
50609 _ACEOF
50610 cat >>$CONFIG_STATUS <<\_ACEOF
50612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50613 s&@configure_input@&$configure_input&;t t
50614 s&@top_builddir@&$ac_top_builddir_sub&;t t
50615 s&@srcdir@&$ac_srcdir&;t t
50616 s&@abs_srcdir@&$ac_abs_srcdir&;t t
50617 s&@top_srcdir@&$ac_top_srcdir&;t t
50618 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
50619 s&@builddir@&$ac_builddir&;t t
50620 s&@abs_builddir@&$ac_abs_builddir&;t t
50621 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
50622 s&@INSTALL@&$ac_INSTALL&;t t
50623 $ac_datarootdir_hack
50624 " $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
50626 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
50627 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
50628 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
50629 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50630 which seems to be undefined. Please make sure it is defined." >&5
50631 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50632 which seems to be undefined. Please make sure it is defined." >&2;}
50634 rm -f "$tmp/stdin"
50635 case $ac_file in
50636 -) cat "$tmp/out"; rm -f "$tmp/out";;
50637 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
50638 esac
50642 # CONFIG_HEADER
50644 _ACEOF
50646 # Transform confdefs.h into a sed script `conftest.defines', that
50647 # substitutes the proper values into config.h.in to produce config.h.
50648 rm -f conftest.defines conftest.tail
50649 # First, append a space to every undef/define line, to ease matching.
50650 echo 's/$/ /' >conftest.defines
50651 # Then, protect against being on the right side of a sed subst, or in
50652 # an unquoted here document, in config.status. If some macros were
50653 # called several times there might be several #defines for the same
50654 # symbol, which is useless. But do not sort them, since the last
50655 # AC_DEFINE must be honored.
50656 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
50657 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
50658 # NAME is the cpp macro being defined, VALUE is the value it is being given.
50659 # PARAMS is the parameter list in the macro definition--in most cases, it's
50660 # just an empty string.
50661 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
50662 ac_dB='\\)[ (].*,\\1define\\2'
50663 ac_dC=' '
50664 ac_dD=' ,'
50666 uniq confdefs.h |
50667 sed -n '
50668 t rset
50669 :rset
50670 s/^[ ]*#[ ]*define[ ][ ]*//
50671 t ok
50674 s/[\\&,]/\\&/g
50675 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
50676 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
50677 ' >>conftest.defines
50679 # Remove the space that was appended to ease matching.
50680 # Then replace #undef with comments. This is necessary, for
50681 # example, in the case of _POSIX_SOURCE, which is predefined and required
50682 # on some systems where configure will not decide to define it.
50683 # (The regexp can be short, since the line contains either #define or #undef.)
50684 echo 's/ $//
50685 s,^[ #]*u.*,/* & */,' >>conftest.defines
50687 # Break up conftest.defines:
50688 ac_max_sed_lines=50
50690 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
50691 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
50692 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
50693 # et cetera.
50694 ac_in='$ac_file_inputs'
50695 ac_out='"$tmp/out1"'
50696 ac_nxt='"$tmp/out2"'
50698 while :
50700 # Write a here document:
50701 cat >>$CONFIG_STATUS <<_ACEOF
50702 # First, check the format of the line:
50703 cat >"\$tmp/defines.sed" <<\\CEOF
50704 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
50705 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
50707 :def
50708 _ACEOF
50709 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
50710 echo 'CEOF
50711 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
50712 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
50713 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
50714 grep . conftest.tail >/dev/null || break
50715 rm -f conftest.defines
50716 mv conftest.tail conftest.defines
50717 done
50718 rm -f conftest.defines conftest.tail
50720 echo "ac_result=$ac_in" >>$CONFIG_STATUS
50721 cat >>$CONFIG_STATUS <<\_ACEOF
50722 if test x"$ac_file" != x-; then
50723 echo "/* $configure_input */" >"$tmp/config.h"
50724 cat "$ac_result" >>"$tmp/config.h"
50725 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
50726 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50727 echo "$as_me: $ac_file is unchanged" >&6;}
50728 else
50729 rm -f $ac_file
50730 mv "$tmp/config.h" $ac_file
50732 else
50733 echo "/* $configure_input */"
50734 cat "$ac_result"
50736 rm -f "$tmp/out12"
50740 esac
50742 done # for ac_tag
50745 { (exit 0); exit 0; }
50746 _ACEOF
50747 chmod +x $CONFIG_STATUS
50748 ac_clean_files=$ac_clean_files_save
50751 # configure is writing to config.log, and then calls config.status.
50752 # config.status does its own redirection, appending to config.log.
50753 # Unfortunately, on DOS this fails, as config.log is still kept open
50754 # by configure, so config.status won't be able to write to it; its
50755 # output is simply discarded. So we exec the FD to /dev/null,
50756 # effectively closing config.log, so it can be properly (re)opened and
50757 # appended to by config.status. When coming back to configure, we
50758 # need to make the FD available again.
50759 if test "$no_create" != yes; then
50760 ac_cs_success=:
50761 ac_config_status_args=
50762 test "$silent" = yes &&
50763 ac_config_status_args="$ac_config_status_args --quiet"
50764 exec 5>/dev/null
50765 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50766 exec 5>>config.log
50767 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50768 # would make configure fail if this is the last instruction.
50769 $ac_cs_success || { (exit 1); exit 1; }
50773 if test "x${silent}" != "xyes" ; then
50774 echo
50775 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
50776 echo " .\$7\$7.. .7\$\$7:. "
50777 echo " .\$\$:. ,\$7.7 "
50778 echo " .\$7. 7\$\$\$\$ .\$\$77 "
50779 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
50780 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
50781 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
50782 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
50783 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
50784 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
50785 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
50786 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
50787 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
50788 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
50789 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
50790 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
50791 echo " \$\$\$\$\$ \$\$\$ "
50792 echo " \$\$\$\$7. \$\$ (TM) "
50793 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
50794 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
50795 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
50796 echo
50799 { echo "$as_me:$LINENO: Package configured for: " >&5
50800 echo "$as_me: Package configured for: " >&6;}
50801 { echo "$as_me:$LINENO: OS type : $host_os" >&5
50802 echo "$as_me: OS type : $host_os" >&6;}
50803 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
50804 echo "$as_me: Host CPU : $host_cpu" >&6;}
50805 { echo "$as_me:$LINENO: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
50806 echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
50807 { echo "$as_me:$LINENO: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
50808 echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
50809 if test "${cross_compiling}" = "yes"; then
50810 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
50811 echo "$as_me: Cross Compilation = YES" >&6;}