Fixed odd problem where need to allow for sign bit on an unsigned enum in a struct...
[opal.git] / configure
blob3edc1ef72ff44e6f8b77206c14511746fd8a0c41
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="include/opal/manager.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
654 CFLAGS
655 LDFLAGS
656 CPPFLAGS
657 ac_ct_CC
658 EXEEXT
659 OBJEXT
661 CXXFLAGS
662 ac_ct_CXX
663 OPALDIR
664 INSTALLPREFIX
665 LIBDIR
666 OPAL_VERSION
667 PTLIB_CONFIG
668 PWLIBDIR
669 GCC_HAS_CLZ
671 GREP
672 EGREP
673 SIZE16
674 SIZE32
675 OPAL_SYSTEM_SPEEX
676 OPAL_HAVE_SPEEX_SPEEX_H
677 OPAL_AUDIO
678 OPAL_VIDEO
679 OPAL_SIP
680 OPAL_H323
681 OPAL_IAX2
682 OPAL_H224
683 OPAL_T38FAX
684 OPAL_H450
685 OPAL_H460
686 OPAL_LID
687 OPAL_IVR
688 OPAL_RFC4175
689 OPAL_ZRTP
690 HAS_LIBZRTP
691 OPAL_SRTP
692 HAS_LIBSRTP
693 STDCCFLAGS
694 ENDLDLIBS
695 INSTALL_PROGRAM
696 INSTALL_SCRIPT
697 INSTALL_DATA
698 subdirs
699 LIBOBJS
700 LTLIBOBJS'
701 ac_subst_files=''
702 ac_precious_vars='build_alias
703 host_alias
704 target_alias
706 CFLAGS
707 LDFLAGS
708 LIBS
709 CPPFLAGS
711 CXXFLAGS
713 CPP'
714 ac_subdirs_all='plugins'
716 # Initialize some variables set by options.
717 ac_init_help=
718 ac_init_version=false
719 # The variables have the same names as the options, with
720 # dashes changed to underlines.
721 cache_file=/dev/null
722 exec_prefix=NONE
723 no_create=
724 no_recursion=
725 prefix=NONE
726 program_prefix=NONE
727 program_suffix=NONE
728 program_transform_name=s,x,x,
729 silent=
730 site=
731 srcdir=
732 verbose=
733 x_includes=NONE
734 x_libraries=NONE
736 # Installation directory options.
737 # These are left unexpanded so users can "make install exec_prefix=/foo"
738 # and all the variables that are supposed to be based on exec_prefix
739 # by default will actually change.
740 # Use braces instead of parens because sh, perl, etc. also accept them.
741 # (The list follows the same order as the GNU Coding Standards.)
742 bindir='${exec_prefix}/bin'
743 sbindir='${exec_prefix}/sbin'
744 libexecdir='${exec_prefix}/libexec'
745 datarootdir='${prefix}/share'
746 datadir='${datarootdir}'
747 sysconfdir='${prefix}/etc'
748 sharedstatedir='${prefix}/com'
749 localstatedir='${prefix}/var'
750 includedir='${prefix}/include'
751 oldincludedir='/usr/include'
752 docdir='${datarootdir}/doc/${PACKAGE}'
753 infodir='${datarootdir}/info'
754 htmldir='${docdir}'
755 dvidir='${docdir}'
756 pdfdir='${docdir}'
757 psdir='${docdir}'
758 libdir='${exec_prefix}/lib'
759 localedir='${datarootdir}/locale'
760 mandir='${datarootdir}/man'
762 ac_prev=
763 ac_dashdash=
764 for ac_option
766 # If the previous option needs an argument, assign it.
767 if test -n "$ac_prev"; then
768 eval $ac_prev=\$ac_option
769 ac_prev=
770 continue
773 case $ac_option in
774 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775 *) ac_optarg=yes ;;
776 esac
778 # Accept the important Cygnus configure options, so we can diagnose typos.
780 case $ac_dashdash$ac_option in
782 ac_dashdash=yes ;;
784 -bindir | --bindir | --bindi | --bind | --bin | --bi)
785 ac_prev=bindir ;;
786 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
787 bindir=$ac_optarg ;;
789 -build | --build | --buil | --bui | --bu)
790 ac_prev=build_alias ;;
791 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
792 build_alias=$ac_optarg ;;
794 -cache-file | --cache-file | --cache-fil | --cache-fi \
795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
796 ac_prev=cache_file ;;
797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
799 cache_file=$ac_optarg ;;
801 --config-cache | -C)
802 cache_file=config.cache ;;
804 -datadir | --datadir | --datadi | --datad)
805 ac_prev=datadir ;;
806 -datadir=* | --datadir=* | --datadi=* | --datad=*)
807 datadir=$ac_optarg ;;
809 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
810 | --dataroo | --dataro | --datar)
811 ac_prev=datarootdir ;;
812 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
813 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
814 datarootdir=$ac_optarg ;;
816 -disable-* | --disable-*)
817 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
818 # Reject names that are not valid shell variable names.
819 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
820 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
821 { (exit 1); exit 1; }; }
822 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
823 eval enable_$ac_feature=no ;;
825 -docdir | --docdir | --docdi | --doc | --do)
826 ac_prev=docdir ;;
827 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
828 docdir=$ac_optarg ;;
830 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
831 ac_prev=dvidir ;;
832 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
833 dvidir=$ac_optarg ;;
835 -enable-* | --enable-*)
836 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840 { (exit 1); exit 1; }; }
841 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842 eval enable_$ac_feature=\$ac_optarg ;;
844 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
845 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
846 | --exec | --exe | --ex)
847 ac_prev=exec_prefix ;;
848 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
849 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
850 | --exec=* | --exe=* | --ex=*)
851 exec_prefix=$ac_optarg ;;
853 -gas | --gas | --ga | --g)
854 # Obsolete; use --with-gas.
855 with_gas=yes ;;
857 -help | --help | --hel | --he | -h)
858 ac_init_help=long ;;
859 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
860 ac_init_help=recursive ;;
861 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
862 ac_init_help=short ;;
864 -host | --host | --hos | --ho)
865 ac_prev=host_alias ;;
866 -host=* | --host=* | --hos=* | --ho=*)
867 host_alias=$ac_optarg ;;
869 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
870 ac_prev=htmldir ;;
871 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
872 | --ht=*)
873 htmldir=$ac_optarg ;;
875 -includedir | --includedir | --includedi | --included | --include \
876 | --includ | --inclu | --incl | --inc)
877 ac_prev=includedir ;;
878 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
879 | --includ=* | --inclu=* | --incl=* | --inc=*)
880 includedir=$ac_optarg ;;
882 -infodir | --infodir | --infodi | --infod | --info | --inf)
883 ac_prev=infodir ;;
884 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
885 infodir=$ac_optarg ;;
887 -libdir | --libdir | --libdi | --libd)
888 ac_prev=libdir ;;
889 -libdir=* | --libdir=* | --libdi=* | --libd=*)
890 libdir=$ac_optarg ;;
892 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
893 | --libexe | --libex | --libe)
894 ac_prev=libexecdir ;;
895 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
896 | --libexe=* | --libex=* | --libe=*)
897 libexecdir=$ac_optarg ;;
899 -localedir | --localedir | --localedi | --localed | --locale)
900 ac_prev=localedir ;;
901 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
902 localedir=$ac_optarg ;;
904 -localstatedir | --localstatedir | --localstatedi | --localstated \
905 | --localstate | --localstat | --localsta | --localst | --locals)
906 ac_prev=localstatedir ;;
907 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
908 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
909 localstatedir=$ac_optarg ;;
911 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
912 ac_prev=mandir ;;
913 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914 mandir=$ac_optarg ;;
916 -nfp | --nfp | --nf)
917 # Obsolete; use --without-fp.
918 with_fp=no ;;
920 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
921 | --no-cr | --no-c | -n)
922 no_create=yes ;;
924 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
926 no_recursion=yes ;;
928 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
929 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
930 | --oldin | --oldi | --old | --ol | --o)
931 ac_prev=oldincludedir ;;
932 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
933 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
934 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
935 oldincludedir=$ac_optarg ;;
937 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
938 ac_prev=prefix ;;
939 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
940 prefix=$ac_optarg ;;
942 -program-prefix | --program-prefix | --program-prefi | --program-pref \
943 | --program-pre | --program-pr | --program-p)
944 ac_prev=program_prefix ;;
945 -program-prefix=* | --program-prefix=* | --program-prefi=* \
946 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
947 program_prefix=$ac_optarg ;;
949 -program-suffix | --program-suffix | --program-suffi | --program-suff \
950 | --program-suf | --program-su | --program-s)
951 ac_prev=program_suffix ;;
952 -program-suffix=* | --program-suffix=* | --program-suffi=* \
953 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
954 program_suffix=$ac_optarg ;;
956 -program-transform-name | --program-transform-name \
957 | --program-transform-nam | --program-transform-na \
958 | --program-transform-n | --program-transform- \
959 | --program-transform | --program-transfor \
960 | --program-transfo | --program-transf \
961 | --program-trans | --program-tran \
962 | --progr-tra | --program-tr | --program-t)
963 ac_prev=program_transform_name ;;
964 -program-transform-name=* | --program-transform-name=* \
965 | --program-transform-nam=* | --program-transform-na=* \
966 | --program-transform-n=* | --program-transform-=* \
967 | --program-transform=* | --program-transfor=* \
968 | --program-transfo=* | --program-transf=* \
969 | --program-trans=* | --program-tran=* \
970 | --progr-tra=* | --program-tr=* | --program-t=*)
971 program_transform_name=$ac_optarg ;;
973 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
974 ac_prev=pdfdir ;;
975 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
976 pdfdir=$ac_optarg ;;
978 -psdir | --psdir | --psdi | --psd | --ps)
979 ac_prev=psdir ;;
980 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
981 psdir=$ac_optarg ;;
983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
984 | -silent | --silent | --silen | --sile | --sil)
985 silent=yes ;;
987 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
988 ac_prev=sbindir ;;
989 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
990 | --sbi=* | --sb=*)
991 sbindir=$ac_optarg ;;
993 -sharedstatedir | --sharedstatedir | --sharedstatedi \
994 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
995 | --sharedst | --shareds | --shared | --share | --shar \
996 | --sha | --sh)
997 ac_prev=sharedstatedir ;;
998 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
999 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1000 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1001 | --sha=* | --sh=*)
1002 sharedstatedir=$ac_optarg ;;
1004 -site | --site | --sit)
1005 ac_prev=site ;;
1006 -site=* | --site=* | --sit=*)
1007 site=$ac_optarg ;;
1009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1010 ac_prev=srcdir ;;
1011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1012 srcdir=$ac_optarg ;;
1014 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1015 | --syscon | --sysco | --sysc | --sys | --sy)
1016 ac_prev=sysconfdir ;;
1017 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1018 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1019 sysconfdir=$ac_optarg ;;
1021 -target | --target | --targe | --targ | --tar | --ta | --t)
1022 ac_prev=target_alias ;;
1023 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1024 target_alias=$ac_optarg ;;
1026 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1027 verbose=yes ;;
1029 -version | --version | --versio | --versi | --vers | -V)
1030 ac_init_version=: ;;
1032 -with-* | --with-*)
1033 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid package name: $ac_package" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1039 eval with_$ac_package=\$ac_optarg ;;
1041 -without-* | --without-*)
1042 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 { echo "$as_me: error: invalid package name: $ac_package" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1048 eval with_$ac_package=no ;;
1050 --x)
1051 # Obsolete; use --with-x.
1052 with_x=yes ;;
1054 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1055 | --x-incl | --x-inc | --x-in | --x-i)
1056 ac_prev=x_includes ;;
1057 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1058 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1059 x_includes=$ac_optarg ;;
1061 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1062 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1063 ac_prev=x_libraries ;;
1064 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1065 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1066 x_libraries=$ac_optarg ;;
1068 -*) { echo "$as_me: error: unrecognized option: $ac_option
1069 Try \`$0 --help' for more information." >&2
1070 { (exit 1); exit 1; }; }
1073 *=*)
1074 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1078 { (exit 1); exit 1; }; }
1079 eval $ac_envvar=\$ac_optarg
1080 export $ac_envvar ;;
1083 # FIXME: should be removed in autoconf 3.0.
1084 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1085 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1087 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1090 esac
1091 done
1093 if test -n "$ac_prev"; then
1094 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1095 { echo "$as_me: error: missing argument to $ac_option" >&2
1096 { (exit 1); exit 1; }; }
1099 # Be sure to have absolute directory names.
1100 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1101 datadir sysconfdir sharedstatedir localstatedir includedir \
1102 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1103 libdir localedir mandir
1105 eval ac_val=\$$ac_var
1106 case $ac_val in
1107 [\\/$]* | ?:[\\/]* ) continue;;
1108 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1109 esac
1110 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1111 { (exit 1); exit 1; }; }
1112 done
1114 # There might be people who depend on the old broken behavior: `$host'
1115 # used to hold the argument of --host etc.
1116 # FIXME: To remove some day.
1117 build=$build_alias
1118 host=$host_alias
1119 target=$target_alias
1121 # FIXME: To remove some day.
1122 if test "x$host_alias" != x; then
1123 if test "x$build_alias" = x; then
1124 cross_compiling=maybe
1125 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1126 If a cross compiler is detected then cross compile mode will be used." >&2
1127 elif test "x$build_alias" != "x$host_alias"; then
1128 cross_compiling=yes
1132 ac_tool_prefix=
1133 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1135 test "$silent" = yes && exec 6>/dev/null
1138 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1139 ac_ls_di=`ls -di .` &&
1140 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1141 { echo "$as_me: error: Working directory cannot be determined" >&2
1142 { (exit 1); exit 1; }; }
1143 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1144 { echo "$as_me: error: pwd does not report name of working directory" >&2
1145 { (exit 1); exit 1; }; }
1148 # Find the source files, if location was not specified.
1149 if test -z "$srcdir"; then
1150 ac_srcdir_defaulted=yes
1151 # Try the directory containing this script, then the parent directory.
1152 ac_confdir=`$as_dirname -- "$0" ||
1153 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1154 X"$0" : 'X\(//\)[^/]' \| \
1155 X"$0" : 'X\(//\)$' \| \
1156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1157 echo X"$0" |
1158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1159 s//\1/
1162 /^X\(\/\/\)[^/].*/{
1163 s//\1/
1166 /^X\(\/\/\)$/{
1167 s//\1/
1170 /^X\(\/\).*/{
1171 s//\1/
1174 s/.*/./; q'`
1175 srcdir=$ac_confdir
1176 if test ! -r "$srcdir/$ac_unique_file"; then
1177 srcdir=..
1179 else
1180 ac_srcdir_defaulted=no
1182 if test ! -r "$srcdir/$ac_unique_file"; then
1183 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1184 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1185 { (exit 1); exit 1; }; }
1187 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1188 ac_abs_confdir=`(
1189 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1190 { (exit 1); exit 1; }; }
1191 pwd)`
1192 # When building in place, set srcdir=.
1193 if test "$ac_abs_confdir" = "$ac_pwd"; then
1194 srcdir=.
1196 # Remove unnecessary trailing slashes from srcdir.
1197 # Double slashes in file names in object file debugging info
1198 # mess up M-x gdb in Emacs.
1199 case $srcdir in
1200 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1201 esac
1202 for ac_var in $ac_precious_vars; do
1203 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1204 eval ac_env_${ac_var}_value=\$${ac_var}
1205 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1207 done
1210 # Report the --help message.
1212 if test "$ac_init_help" = "long"; then
1213 # Omit some internal or obsolete options to make the list less imposing.
1214 # This message is too long to be a string in the A/UX 3.1 sh.
1215 cat <<_ACEOF
1216 \`configure' configures this package to adapt to many kinds of systems.
1218 Usage: $0 [OPTION]... [VAR=VALUE]...
1220 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1221 VAR=VALUE. See below for descriptions of some of the useful variables.
1223 Defaults for the options are specified in brackets.
1225 Configuration:
1226 -h, --help display this help and exit
1227 --help=short display options specific to this package
1228 --help=recursive display the short help of all the included packages
1229 -V, --version display version information and exit
1230 -q, --quiet, --silent do not print \`checking...' messages
1231 --cache-file=FILE cache test results in FILE [disabled]
1232 -C, --config-cache alias for \`--cache-file=config.cache'
1233 -n, --no-create do not create output files
1234 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1236 Installation directories:
1237 --prefix=PREFIX install architecture-independent files in PREFIX
1238 [$ac_default_prefix]
1239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1240 [PREFIX]
1242 By default, \`make install' will install all the files in
1243 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1244 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1245 for instance \`--prefix=\$HOME'.
1247 For better control, use the options below.
1249 Fine tuning of the installation directories:
1250 --bindir=DIR user executables [EPREFIX/bin]
1251 --sbindir=DIR system admin executables [EPREFIX/sbin]
1252 --libexecdir=DIR program executables [EPREFIX/libexec]
1253 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1254 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1255 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1256 --libdir=DIR object code libraries [EPREFIX/lib]
1257 --includedir=DIR C header files [PREFIX/include]
1258 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1259 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1260 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1261 --infodir=DIR info documentation [DATAROOTDIR/info]
1262 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1263 --mandir=DIR man documentation [DATAROOTDIR/man]
1264 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1265 --htmldir=DIR html documentation [DOCDIR]
1266 --dvidir=DIR dvi documentation [DOCDIR]
1267 --pdfdir=DIR pdf documentation [DOCDIR]
1268 --psdir=DIR ps documentation [DOCDIR]
1269 _ACEOF
1271 cat <<\_ACEOF
1272 _ACEOF
1275 if test -n "$ac_init_help"; then
1277 cat <<\_ACEOF
1279 Optional Features:
1280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1282 --disable-versioncheck disable PWLib version check
1283 --enable-localspeex use local version of Speex library rather than system version
1284 --disable-audio disable audio codec support
1285 --disable-video disable video codec support
1286 --disable-sip disable SIP protocol support
1287 --disable-h323 disable H.323 protocol support
1288 --disable-iax disable IAX2 protocol support
1289 --disable-h224 disable H.224 protocol support
1290 --disable-t38 disable T.38 protocol support
1291 --disable-h450 disable H.450
1292 --disable-h460 disable H.460
1293 --disable-lid disable LID support
1294 --disable-ivr disable IVR support
1295 --disable-rfc4175 disable RFC4175 support
1297 Some influential environment variables:
1298 CC C compiler command
1299 CFLAGS C compiler flags
1300 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1301 nonstandard directory <lib dir>
1302 LIBS libraries to pass to the linker, e.g. -l<library>
1303 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1304 you have headers in a nonstandard directory <include dir>
1305 CXX C++ compiler command
1306 CXXFLAGS C++ compiler flags
1307 CPP C preprocessor
1309 Use these variables to override the choices made by `configure' or to help
1310 it to find libraries and programs with nonstandard names/locations.
1312 _ACEOF
1313 ac_status=$?
1316 if test "$ac_init_help" = "recursive"; then
1317 # If there are subdirs, report their specific --help.
1318 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1319 test -d "$ac_dir" || continue
1320 ac_builddir=.
1322 case "$ac_dir" in
1323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1325 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1326 # A ".." for each directory in $ac_dir_suffix.
1327 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1328 case $ac_top_builddir_sub in
1329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1331 esac ;;
1332 esac
1333 ac_abs_top_builddir=$ac_pwd
1334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1335 # for backward compatibility:
1336 ac_top_builddir=$ac_top_build_prefix
1338 case $srcdir in
1339 .) # We are building in place.
1340 ac_srcdir=.
1341 ac_top_srcdir=$ac_top_builddir_sub
1342 ac_abs_top_srcdir=$ac_pwd ;;
1343 [\\/]* | ?:[\\/]* ) # Absolute name.
1344 ac_srcdir=$srcdir$ac_dir_suffix;
1345 ac_top_srcdir=$srcdir
1346 ac_abs_top_srcdir=$srcdir ;;
1347 *) # Relative name.
1348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1349 ac_top_srcdir=$ac_top_build_prefix$srcdir
1350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1351 esac
1352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1354 cd "$ac_dir" || { ac_status=$?; continue; }
1355 # Check for guested configure.
1356 if test -f "$ac_srcdir/configure.gnu"; then
1357 echo &&
1358 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1359 elif test -f "$ac_srcdir/configure"; then
1360 echo &&
1361 $SHELL "$ac_srcdir/configure" --help=recursive
1362 else
1363 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1364 fi || ac_status=$?
1365 cd "$ac_pwd" || { ac_status=$?; break; }
1366 done
1369 test -n "$ac_init_help" && exit $ac_status
1370 if $ac_init_version; then
1371 cat <<\_ACEOF
1372 configure
1373 generated by GNU Autoconf 2.61
1375 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1376 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1377 This configure script is free software; the Free Software Foundation
1378 gives unlimited permission to copy, distribute and modify it.
1379 _ACEOF
1380 exit
1382 cat >config.log <<_ACEOF
1383 This file contains any messages produced by compilers while
1384 running configure, to aid debugging if configure makes a mistake.
1386 It was created by $as_me, which was
1387 generated by GNU Autoconf 2.61. Invocation command line was
1389 $ $0 $@
1391 _ACEOF
1392 exec 5>>config.log
1394 cat <<_ASUNAME
1395 ## --------- ##
1396 ## Platform. ##
1397 ## --------- ##
1399 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1400 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1401 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1402 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1403 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1405 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1406 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1408 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1409 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1410 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1411 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1412 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1413 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1414 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1416 _ASUNAME
1418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419 for as_dir in $PATH
1421 IFS=$as_save_IFS
1422 test -z "$as_dir" && as_dir=.
1423 echo "PATH: $as_dir"
1424 done
1425 IFS=$as_save_IFS
1427 } >&5
1429 cat >&5 <<_ACEOF
1432 ## ----------- ##
1433 ## Core tests. ##
1434 ## ----------- ##
1436 _ACEOF
1439 # Keep a trace of the command line.
1440 # Strip out --no-create and --no-recursion so they do not pile up.
1441 # Strip out --silent because we don't want to record it for future runs.
1442 # Also quote any args containing shell meta-characters.
1443 # Make two passes to allow for proper duplicate-argument suppression.
1444 ac_configure_args=
1445 ac_configure_args0=
1446 ac_configure_args1=
1447 ac_must_keep_next=false
1448 for ac_pass in 1 2
1450 for ac_arg
1452 case $ac_arg in
1453 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1455 | -silent | --silent | --silen | --sile | --sil)
1456 continue ;;
1457 *\'*)
1458 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1459 esac
1460 case $ac_pass in
1461 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1463 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1464 if test $ac_must_keep_next = true; then
1465 ac_must_keep_next=false # Got value, back to normal.
1466 else
1467 case $ac_arg in
1468 *=* | --config-cache | -C | -disable-* | --disable-* \
1469 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1470 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1471 | -with-* | --with-* | -without-* | --without-* | --x)
1472 case "$ac_configure_args0 " in
1473 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1474 esac
1476 -* ) ac_must_keep_next=true ;;
1477 esac
1479 ac_configure_args="$ac_configure_args '$ac_arg'"
1481 esac
1482 done
1483 done
1484 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1485 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1487 # When interrupted or exit'd, cleanup temporary files, and complete
1488 # config.log. We remove comments because anyway the quotes in there
1489 # would cause problems or look ugly.
1490 # WARNING: Use '\'' to represent an apostrophe within the trap.
1491 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1492 trap 'exit_status=$?
1493 # Save into config.log some information that might help in debugging.
1495 echo
1497 cat <<\_ASBOX
1498 ## ---------------- ##
1499 ## Cache variables. ##
1500 ## ---------------- ##
1501 _ASBOX
1502 echo
1503 # The following way of writing the cache mishandles newlines in values,
1505 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1506 eval ac_val=\$$ac_var
1507 case $ac_val in #(
1508 *${as_nl}*)
1509 case $ac_var in #(
1510 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1511 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1512 esac
1513 case $ac_var in #(
1514 _ | IFS | as_nl) ;; #(
1515 *) $as_unset $ac_var ;;
1516 esac ;;
1517 esac
1518 done
1519 (set) 2>&1 |
1520 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1521 *${as_nl}ac_space=\ *)
1522 sed -n \
1523 "s/'\''/'\''\\\\'\'''\''/g;
1524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1525 ;; #(
1527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1529 esac |
1530 sort
1532 echo
1534 cat <<\_ASBOX
1535 ## ----------------- ##
1536 ## Output variables. ##
1537 ## ----------------- ##
1538 _ASBOX
1539 echo
1540 for ac_var in $ac_subst_vars
1542 eval ac_val=\$$ac_var
1543 case $ac_val in
1544 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1545 esac
1546 echo "$ac_var='\''$ac_val'\''"
1547 done | sort
1548 echo
1550 if test -n "$ac_subst_files"; then
1551 cat <<\_ASBOX
1552 ## ------------------- ##
1553 ## File substitutions. ##
1554 ## ------------------- ##
1555 _ASBOX
1556 echo
1557 for ac_var in $ac_subst_files
1559 eval ac_val=\$$ac_var
1560 case $ac_val in
1561 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1562 esac
1563 echo "$ac_var='\''$ac_val'\''"
1564 done | sort
1565 echo
1568 if test -s confdefs.h; then
1569 cat <<\_ASBOX
1570 ## ----------- ##
1571 ## confdefs.h. ##
1572 ## ----------- ##
1573 _ASBOX
1574 echo
1575 cat confdefs.h
1576 echo
1578 test "$ac_signal" != 0 &&
1579 echo "$as_me: caught signal $ac_signal"
1580 echo "$as_me: exit $exit_status"
1581 } >&5
1582 rm -f core *.core core.conftest.* &&
1583 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1584 exit $exit_status
1586 for ac_signal in 1 2 13 15; do
1587 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1588 done
1589 ac_signal=0
1591 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1592 rm -f -r conftest* confdefs.h
1594 # Predefined preprocessor variables.
1596 cat >>confdefs.h <<_ACEOF
1597 #define PACKAGE_NAME "$PACKAGE_NAME"
1598 _ACEOF
1601 cat >>confdefs.h <<_ACEOF
1602 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1603 _ACEOF
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1608 _ACEOF
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_STRING "$PACKAGE_STRING"
1613 _ACEOF
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1618 _ACEOF
1621 # Let the site file select an alternate cache file if it wants to.
1622 # Prefer explicitly selected file to automatically selected ones.
1623 if test -n "$CONFIG_SITE"; then
1624 set x "$CONFIG_SITE"
1625 elif test "x$prefix" != xNONE; then
1626 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1627 else
1628 set x "$ac_default_prefix/share/config.site" \
1629 "$ac_default_prefix/etc/config.site"
1631 shift
1632 for ac_site_file
1634 if test -r "$ac_site_file"; then
1635 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1636 echo "$as_me: loading site script $ac_site_file" >&6;}
1637 sed 's/^/| /' "$ac_site_file" >&5
1638 . "$ac_site_file"
1640 done
1642 if test -r "$cache_file"; then
1643 # Some versions of bash will fail to source /dev/null (special
1644 # files actually), so we avoid doing that.
1645 if test -f "$cache_file"; then
1646 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1647 echo "$as_me: loading cache $cache_file" >&6;}
1648 case $cache_file in
1649 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1650 *) . "./$cache_file";;
1651 esac
1653 else
1654 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1655 echo "$as_me: creating cache $cache_file" >&6;}
1656 >$cache_file
1659 # Check that the precious variables saved in the cache have kept the same
1660 # value.
1661 ac_cache_corrupted=false
1662 for ac_var in $ac_precious_vars; do
1663 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1664 eval ac_new_set=\$ac_env_${ac_var}_set
1665 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1666 eval ac_new_val=\$ac_env_${ac_var}_value
1667 case $ac_old_set,$ac_new_set in
1668 set,)
1669 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1670 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1671 ac_cache_corrupted=: ;;
1672 ,set)
1673 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1674 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1675 ac_cache_corrupted=: ;;
1676 ,);;
1678 if test "x$ac_old_val" != "x$ac_new_val"; then
1679 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1680 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1681 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1682 echo "$as_me: former value: $ac_old_val" >&2;}
1683 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1684 echo "$as_me: current value: $ac_new_val" >&2;}
1685 ac_cache_corrupted=:
1686 fi;;
1687 esac
1688 # Pass precious variables to config.status.
1689 if test "$ac_new_set" = set; then
1690 case $ac_new_val in
1691 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1692 *) ac_arg=$ac_var=$ac_new_val ;;
1693 esac
1694 case " $ac_configure_args " in
1695 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1696 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1697 esac
1699 done
1700 if $ac_cache_corrupted; then
1701 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1702 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1703 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1704 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1705 { (exit 1); exit 1; }; }
1724 ac_ext=c
1725 ac_cpp='$CPP $CPPFLAGS'
1726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1732 ac_ext=c
1733 ac_cpp='$CPP $CPPFLAGS'
1734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1737 if test -n "$ac_tool_prefix"; then
1738 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1739 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1742 if test "${ac_cv_prog_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745 if test -n "$CC"; then
1746 ac_cv_prog_CC="$CC" # Let the user override the test.
1747 else
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 for ac_exec_ext in '' $ac_executable_extensions; do
1754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1755 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 break 2
1759 done
1760 done
1761 IFS=$as_save_IFS
1765 CC=$ac_cv_prog_CC
1766 if test -n "$CC"; then
1767 { echo "$as_me:$LINENO: result: $CC" >&5
1768 echo "${ECHO_T}$CC" >&6; }
1769 else
1770 { echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6; }
1776 if test -z "$ac_cv_prog_CC"; then
1777 ac_ct_CC=$CC
1778 # Extract the first word of "gcc", so it can be a program name with args.
1779 set dummy gcc; ac_word=$2
1780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785 if test -n "$ac_ct_CC"; then
1786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1787 else
1788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 for as_dir in $PATH
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 for ac_exec_ext in '' $ac_executable_extensions; do
1794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1795 ac_cv_prog_ac_ct_CC="gcc"
1796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 break 2
1799 done
1800 done
1801 IFS=$as_save_IFS
1805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1806 if test -n "$ac_ct_CC"; then
1807 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1808 echo "${ECHO_T}$ac_ct_CC" >&6; }
1809 else
1810 { echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6; }
1814 if test "x$ac_ct_CC" = x; then
1815 CC=""
1816 else
1817 case $cross_compiling:$ac_tool_warned in
1818 yes:)
1819 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1820 whose name does not start with the host triplet. If you think this
1821 configuration is useful to you, please write to autoconf@gnu.org." >&5
1822 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1823 whose name does not start with the host triplet. If you think this
1824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1825 ac_tool_warned=yes ;;
1826 esac
1827 CC=$ac_ct_CC
1829 else
1830 CC="$ac_cv_prog_CC"
1833 if test -z "$CC"; then
1834 if test -n "$ac_tool_prefix"; then
1835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1836 set dummy ${ac_tool_prefix}cc; ac_word=$2
1837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1839 if test "${ac_cv_prog_CC+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842 if test -n "$CC"; then
1843 ac_cv_prog_CC="$CC" # Let the user override the test.
1844 else
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1848 IFS=$as_save_IFS
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1852 ac_cv_prog_CC="${ac_tool_prefix}cc"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 break 2
1856 done
1857 done
1858 IFS=$as_save_IFS
1862 CC=$ac_cv_prog_CC
1863 if test -n "$CC"; then
1864 { echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6; }
1866 else
1867 { echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6; }
1874 if test -z "$CC"; then
1875 # Extract the first word of "cc", so it can be a program name with args.
1876 set dummy cc; ac_word=$2
1877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1879 if test "${ac_cv_prog_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882 if test -n "$CC"; then
1883 ac_cv_prog_CC="$CC" # Let the user override the test.
1884 else
1885 ac_prog_rejected=no
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1894 ac_prog_rejected=yes
1895 continue
1897 ac_cv_prog_CC="cc"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1901 done
1902 done
1903 IFS=$as_save_IFS
1905 if test $ac_prog_rejected = yes; then
1906 # We found a bogon in the path, so make sure we never use it.
1907 set dummy $ac_cv_prog_CC
1908 shift
1909 if test $# != 0; then
1910 # We chose a different compiler from the bogus one.
1911 # However, it has the same basename, so the bogon will be chosen
1912 # first if we set CC to just the basename; use the full file name.
1913 shift
1914 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1919 CC=$ac_cv_prog_CC
1920 if test -n "$CC"; then
1921 { echo "$as_me:$LINENO: result: $CC" >&5
1922 echo "${ECHO_T}$CC" >&6; }
1923 else
1924 { echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6; }
1930 if test -z "$CC"; then
1931 if test -n "$ac_tool_prefix"; then
1932 for ac_prog in cl.exe
1934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1938 if test "${ac_cv_prog_CC+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941 if test -n "$CC"; then
1942 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1951 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1955 done
1956 done
1957 IFS=$as_save_IFS
1961 CC=$ac_cv_prog_CC
1962 if test -n "$CC"; then
1963 { echo "$as_me:$LINENO: result: $CC" >&5
1964 echo "${ECHO_T}$CC" >&6; }
1965 else
1966 { echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6; }
1971 test -n "$CC" && break
1972 done
1974 if test -z "$CC"; then
1975 ac_ct_CC=$CC
1976 for ac_prog in cl.exe
1978 # Extract the first word of "$ac_prog", so it can be a program name with args.
1979 set dummy $ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985 if test -n "$ac_ct_CC"; then
1986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_ac_ct_CC="$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 break 2
1999 done
2000 done
2001 IFS=$as_save_IFS
2005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2006 if test -n "$ac_ct_CC"; then
2007 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2008 echo "${ECHO_T}$ac_ct_CC" >&6; }
2009 else
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2015 test -n "$ac_ct_CC" && break
2016 done
2018 if test "x$ac_ct_CC" = x; then
2019 CC=""
2020 else
2021 case $cross_compiling:$ac_tool_warned in
2022 yes:)
2023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2024 whose name does not start with the host triplet. If you think this
2025 configuration is useful to you, please write to autoconf@gnu.org." >&5
2026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2027 whose name does not start with the host triplet. If you think this
2028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2029 ac_tool_warned=yes ;;
2030 esac
2031 CC=$ac_ct_CC
2038 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2039 See \`config.log' for more details." >&5
2040 echo "$as_me: error: no acceptable C compiler found in \$PATH
2041 See \`config.log' for more details." >&2;}
2042 { (exit 1); exit 1; }; }
2044 # Provide some information about the compiler.
2045 echo "$as_me:$LINENO: checking for C compiler version" >&5
2046 ac_compiler=`set X $ac_compile; echo $2`
2047 { (ac_try="$ac_compiler --version >&5"
2048 case "(($ac_try" in
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2051 esac
2052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2053 (eval "$ac_compiler --version >&5") 2>&5
2054 ac_status=$?
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }
2057 { (ac_try="$ac_compiler -v >&5"
2058 case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061 esac
2062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2063 (eval "$ac_compiler -v >&5") 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }
2067 { (ac_try="$ac_compiler -V >&5"
2068 case "(($ac_try" in
2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070 *) ac_try_echo=$ac_try;;
2071 esac
2072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2073 (eval "$ac_compiler -V >&5") 2>&5
2074 ac_status=$?
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }
2078 cat >conftest.$ac_ext <<_ACEOF
2079 /* confdefs.h. */
2080 _ACEOF
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h. */
2086 main ()
2090 return 0;
2092 _ACEOF
2093 ac_clean_files_save=$ac_clean_files
2094 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2095 # Try to create an executable without -o first, disregard a.out.
2096 # It will help us diagnose broken compilers, and finding out an intuition
2097 # of exeext.
2098 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2099 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2100 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2102 # List of possible output files, starting from the most likely.
2103 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2104 # only as a last resort. b.out is created by i960 compilers.
2105 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2107 # The IRIX 6 linker writes into existing files which may not be
2108 # executable, retaining their permissions. Remove them first so a
2109 # subsequent execution test works.
2110 ac_rmfiles=
2111 for ac_file in $ac_files
2113 case $ac_file in
2114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2115 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2116 esac
2117 done
2118 rm -f $ac_rmfiles
2120 if { (ac_try="$ac_link_default"
2121 case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124 esac
2125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2126 (eval "$ac_link_default") 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }; then
2130 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2131 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2132 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2133 # so that the user can short-circuit this test for compilers unknown to
2134 # Autoconf.
2135 for ac_file in $ac_files ''
2137 test -f "$ac_file" || continue
2138 case $ac_file in
2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2141 [ab].out )
2142 # We found the default executable, but exeext='' is most
2143 # certainly right.
2144 break;;
2145 *.* )
2146 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2147 then :; else
2148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 # We set ac_cv_exeext here because the later test for it is not
2151 # safe: cross compilers may not add the suffix if given an `-o'
2152 # argument, so we may need to know it at that point already.
2153 # Even if this section looks crufty: it has the advantage of
2154 # actually working.
2155 break;;
2157 break;;
2158 esac
2159 done
2160 test "$ac_cv_exeext" = no && ac_cv_exeext=
2162 else
2163 ac_file=''
2166 { echo "$as_me:$LINENO: result: $ac_file" >&5
2167 echo "${ECHO_T}$ac_file" >&6; }
2168 if test -z "$ac_file"; then
2169 echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2172 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2173 See \`config.log' for more details." >&5
2174 echo "$as_me: error: C compiler cannot create executables
2175 See \`config.log' for more details." >&2;}
2176 { (exit 77); exit 77; }; }
2179 ac_exeext=$ac_cv_exeext
2181 # Check that the compiler produces executables we can run. If not, either
2182 # the compiler is broken, or we cross compile.
2183 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2185 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186 # If not cross compiling, check that we can run a simple program.
2187 if test "$cross_compiling" != yes; then
2188 if { ac_try='./$ac_file'
2189 { (case "(($ac_try" in
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2192 esac
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194 (eval "$ac_try") 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2198 cross_compiling=no
2199 else
2200 if test "$cross_compiling" = maybe; then
2201 cross_compiling=yes
2202 else
2203 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2204 If you meant to cross compile, use \`--host'.
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: cannot run C compiled programs.
2207 If you meant to cross compile, use \`--host'.
2208 See \`config.log' for more details." >&2;}
2209 { (exit 1); exit 1; }; }
2213 { echo "$as_me:$LINENO: result: yes" >&5
2214 echo "${ECHO_T}yes" >&6; }
2216 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2217 ac_clean_files=$ac_clean_files_save
2218 # Check that the compiler produces executables we can run. If not, either
2219 # the compiler is broken, or we cross compile.
2220 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2221 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2222 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2223 echo "${ECHO_T}$cross_compiling" >&6; }
2225 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2226 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2227 if { (ac_try="$ac_link"
2228 case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231 esac
2232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2233 (eval "$ac_link") 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; then
2237 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2238 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2239 # work properly (i.e., refer to `conftest.exe'), while it won't with
2240 # `rm'.
2241 for ac_file in conftest.exe conftest conftest.*; do
2242 test -f "$ac_file" || continue
2243 case $ac_file in
2244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2245 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2246 break;;
2247 * ) break;;
2248 esac
2249 done
2250 else
2251 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2254 See \`config.log' for more details." >&2;}
2255 { (exit 1); exit 1; }; }
2258 rm -f conftest$ac_cv_exeext
2259 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2260 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2262 rm -f conftest.$ac_ext
2263 EXEEXT=$ac_cv_exeext
2264 ac_exeext=$EXEEXT
2265 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2266 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2267 if test "${ac_cv_objext+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270 cat >conftest.$ac_ext <<_ACEOF
2271 /* confdefs.h. */
2272 _ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2278 main ()
2282 return 0;
2284 _ACEOF
2285 rm -f conftest.o conftest.obj
2286 if { (ac_try="$ac_compile"
2287 case "(($ac_try" in
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2290 esac
2291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2292 (eval "$ac_compile") 2>&5
2293 ac_status=$?
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; then
2296 for ac_file in conftest.o conftest.obj conftest.*; do
2297 test -f "$ac_file" || continue;
2298 case $ac_file in
2299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2300 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2301 break;;
2302 esac
2303 done
2304 else
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2308 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2311 See \`config.log' for more details." >&2;}
2312 { (exit 1); exit 1; }; }
2315 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2317 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2318 echo "${ECHO_T}$ac_cv_objext" >&6; }
2319 OBJEXT=$ac_cv_objext
2320 ac_objext=$OBJEXT
2321 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2322 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2323 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h. */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2334 main ()
2336 #ifndef __GNUC__
2337 choke me
2338 #endif
2341 return 0;
2343 _ACEOF
2344 rm -f conftest.$ac_objext
2345 if { (ac_try="$ac_compile"
2346 case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349 esac
2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351 (eval "$ac_compile") 2>conftest.er1
2352 ac_status=$?
2353 grep -v '^ *+' conftest.er1 >conftest.err
2354 rm -f conftest.er1
2355 cat conftest.err >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } && {
2358 test -z "$ac_c_werror_flag" ||
2359 test ! -s conftest.err
2360 } && test -s conftest.$ac_objext; then
2361 ac_compiler_gnu=yes
2362 else
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2366 ac_compiler_gnu=no
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2373 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2374 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2375 GCC=`test $ac_compiler_gnu = yes && echo yes`
2376 ac_test_CFLAGS=${CFLAGS+set}
2377 ac_save_CFLAGS=$CFLAGS
2378 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2379 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2380 if test "${ac_cv_prog_cc_g+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 ac_save_c_werror_flag=$ac_c_werror_flag
2384 ac_c_werror_flag=yes
2385 ac_cv_prog_cc_g=no
2386 CFLAGS="-g"
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h. */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2395 main ()
2399 return 0;
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (ac_try="$ac_compile"
2404 case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_compile") 2>conftest.er1
2410 ac_status=$?
2411 grep -v '^ *+' conftest.er1 >conftest.err
2412 rm -f conftest.er1
2413 cat conftest.err >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } && {
2416 test -z "$ac_c_werror_flag" ||
2417 test ! -s conftest.err
2418 } && test -s conftest.$ac_objext; then
2419 ac_cv_prog_cc_g=yes
2420 else
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2424 CFLAGS=""
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2433 main ()
2437 return 0;
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (ac_try="$ac_compile"
2442 case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445 esac
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_compile") 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } && {
2454 test -z "$ac_c_werror_flag" ||
2455 test ! -s conftest.err
2456 } && test -s conftest.$ac_objext; then
2458 else
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2462 ac_c_werror_flag=$ac_save_c_werror_flag
2463 CFLAGS="-g"
2464 cat >conftest.$ac_ext <<_ACEOF
2465 /* confdefs.h. */
2466 _ACEOF
2467 cat confdefs.h >>conftest.$ac_ext
2468 cat >>conftest.$ac_ext <<_ACEOF
2469 /* end confdefs.h. */
2472 main ()
2476 return 0;
2478 _ACEOF
2479 rm -f conftest.$ac_objext
2480 if { (ac_try="$ac_compile"
2481 case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484 esac
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_compile") 2>conftest.er1
2487 ac_status=$?
2488 grep -v '^ *+' conftest.er1 >conftest.err
2489 rm -f conftest.er1
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } && {
2493 test -z "$ac_c_werror_flag" ||
2494 test ! -s conftest.err
2495 } && test -s conftest.$ac_objext; then
2496 ac_cv_prog_cc_g=yes
2497 else
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511 ac_c_werror_flag=$ac_save_c_werror_flag
2513 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2514 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2515 if test "$ac_test_CFLAGS" = set; then
2516 CFLAGS=$ac_save_CFLAGS
2517 elif test $ac_cv_prog_cc_g = yes; then
2518 if test "$GCC" = yes; then
2519 CFLAGS="-g -O2"
2520 else
2521 CFLAGS="-g"
2523 else
2524 if test "$GCC" = yes; then
2525 CFLAGS="-O2"
2526 else
2527 CFLAGS=
2530 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2531 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_cc_c89+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 ac_cv_prog_cc_c89=no
2536 ac_save_CC=$CC
2537 cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h. */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2543 #include <stdarg.h>
2544 #include <stdio.h>
2545 #include <sys/types.h>
2546 #include <sys/stat.h>
2547 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2548 struct buf { int x; };
2549 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2550 static char *e (p, i)
2551 char **p;
2552 int i;
2554 return p[i];
2556 static char *f (char * (*g) (char **, int), char **p, ...)
2558 char *s;
2559 va_list v;
2560 va_start (v,p);
2561 s = g (p, va_arg (v,int));
2562 va_end (v);
2563 return s;
2566 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2567 function prototypes and stuff, but not '\xHH' hex character constants.
2568 These don't provoke an error unfortunately, instead are silently treated
2569 as 'x'. The following induces an error, until -std is added to get
2570 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2571 array size at least. It's necessary to write '\x00'==0 to get something
2572 that's true only with -std. */
2573 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2575 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2576 inside strings and character constants. */
2577 #define FOO(x) 'x'
2578 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2580 int test (int i, double x);
2581 struct s1 {int (*f) (int a);};
2582 struct s2 {int (*f) (double a);};
2583 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2584 int argc;
2585 char **argv;
2587 main ()
2589 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2591 return 0;
2593 _ACEOF
2594 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2595 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2597 CC="$ac_save_CC $ac_arg"
2598 rm -f conftest.$ac_objext
2599 if { (ac_try="$ac_compile"
2600 case "(($ac_try" in
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2603 esac
2604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605 (eval "$ac_compile") 2>conftest.er1
2606 ac_status=$?
2607 grep -v '^ *+' conftest.er1 >conftest.err
2608 rm -f conftest.er1
2609 cat conftest.err >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } && {
2612 test -z "$ac_c_werror_flag" ||
2613 test ! -s conftest.err
2614 } && test -s conftest.$ac_objext; then
2615 ac_cv_prog_cc_c89=$ac_arg
2616 else
2617 echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2623 rm -f core conftest.err conftest.$ac_objext
2624 test "x$ac_cv_prog_cc_c89" != "xno" && break
2625 done
2626 rm -f conftest.$ac_ext
2627 CC=$ac_save_CC
2630 # AC_CACHE_VAL
2631 case "x$ac_cv_prog_cc_c89" in
2633 { echo "$as_me:$LINENO: result: none needed" >&5
2634 echo "${ECHO_T}none needed" >&6; } ;;
2635 xno)
2636 { echo "$as_me:$LINENO: result: unsupported" >&5
2637 echo "${ECHO_T}unsupported" >&6; } ;;
2639 CC="$CC $ac_cv_prog_cc_c89"
2640 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2641 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2642 esac
2645 ac_ext=c
2646 ac_cpp='$CPP $CPPFLAGS'
2647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651 ac_ext=cpp
2652 ac_cpp='$CXXCPP $CPPFLAGS'
2653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2656 if test -z "$CXX"; then
2657 if test -n "$CCC"; then
2658 CXX=$CCC
2659 else
2660 if test -n "$ac_tool_prefix"; then
2661 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_CXX+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 if test -n "$CXX"; then
2671 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2684 done
2685 done
2686 IFS=$as_save_IFS
2690 CXX=$ac_cv_prog_CXX
2691 if test -n "$CXX"; then
2692 { echo "$as_me:$LINENO: result: $CXX" >&5
2693 echo "${ECHO_T}$CXX" >&6; }
2694 else
2695 { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2700 test -n "$CXX" && break
2701 done
2703 if test -z "$CXX"; then
2704 ac_ct_CXX=$CXX
2705 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2707 # Extract the first word of "$ac_prog", so it can be a program name with args.
2708 set dummy $ac_prog; ac_word=$2
2709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714 if test -n "$ac_ct_CXX"; then
2715 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_ac_ct_CXX="$ac_prog"
2725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2728 done
2729 done
2730 IFS=$as_save_IFS
2734 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2735 if test -n "$ac_ct_CXX"; then
2736 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2737 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2738 else
2739 { echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6; }
2744 test -n "$ac_ct_CXX" && break
2745 done
2747 if test "x$ac_ct_CXX" = x; then
2748 CXX="g++"
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751 yes:)
2752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2753 whose name does not start with the host triplet. If you think this
2754 configuration is useful to you, please write to autoconf@gnu.org." >&5
2755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2756 whose name does not start with the host triplet. If you think this
2757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2758 ac_tool_warned=yes ;;
2759 esac
2760 CXX=$ac_ct_CXX
2766 # Provide some information about the compiler.
2767 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2768 ac_compiler=`set X $ac_compile; echo $2`
2769 { (ac_try="$ac_compiler --version >&5"
2770 case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compiler --version >&5") 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
2779 { (ac_try="$ac_compiler -v >&5"
2780 case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_compiler -v >&5") 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }
2789 { (ac_try="$ac_compiler -V >&5"
2790 case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793 esac
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_compiler -V >&5") 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }
2800 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2801 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2802 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805 cat >conftest.$ac_ext <<_ACEOF
2806 /* confdefs.h. */
2807 _ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h. */
2813 main ()
2815 #ifndef __GNUC__
2816 choke me
2817 #endif
2820 return 0;
2822 _ACEOF
2823 rm -f conftest.$ac_objext
2824 if { (ac_try="$ac_compile"
2825 case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_compile") 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } && {
2837 test -z "$ac_cxx_werror_flag" ||
2838 test ! -s conftest.err
2839 } && test -s conftest.$ac_objext; then
2840 ac_compiler_gnu=yes
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 ac_compiler_gnu=no
2848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2852 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2853 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2854 GXX=`test $ac_compiler_gnu = yes && echo yes`
2855 ac_test_CXXFLAGS=${CXXFLAGS+set}
2856 ac_save_CXXFLAGS=$CXXFLAGS
2857 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2858 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_cxx_g+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2863 ac_cxx_werror_flag=yes
2864 ac_cv_prog_cxx_g=no
2865 CXXFLAGS="-g"
2866 cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h. */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2874 main ()
2878 return 0;
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (ac_try="$ac_compile"
2883 case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_cxx_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.$ac_objext; then
2898 ac_cv_prog_cxx_g=yes
2899 else
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2903 CXXFLAGS=""
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2912 main ()
2916 return 0;
2918 _ACEOF
2919 rm -f conftest.$ac_objext
2920 if { (ac_try="$ac_compile"
2921 case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compile") 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } && {
2933 test -z "$ac_cxx_werror_flag" ||
2934 test ! -s conftest.err
2935 } && test -s conftest.$ac_objext; then
2937 else
2938 echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2941 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2942 CXXFLAGS="-g"
2943 cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h. */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2951 main ()
2955 return 0;
2957 _ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (ac_try="$ac_compile"
2960 case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compile") 2>conftest.er1
2966 ac_status=$?
2967 grep -v '^ *+' conftest.er1 >conftest.err
2968 rm -f conftest.er1
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } && {
2972 test -z "$ac_cxx_werror_flag" ||
2973 test ! -s conftest.err
2974 } && test -s conftest.$ac_objext; then
2975 ac_cv_prog_cxx_g=yes
2976 else
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2992 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2993 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2994 if test "$ac_test_CXXFLAGS" = set; then
2995 CXXFLAGS=$ac_save_CXXFLAGS
2996 elif test $ac_cv_prog_cxx_g = yes; then
2997 if test "$GXX" = yes; then
2998 CXXFLAGS="-g -O2"
2999 else
3000 CXXFLAGS="-g"
3002 else
3003 if test "$GXX" = yes; then
3004 CXXFLAGS="-O2"
3005 else
3006 CXXFLAGS=
3009 ac_ext=c
3010 ac_cpp='$CPP $CPPFLAGS'
3011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 h323=yes
3017 t38=yes
3018 h224=yes
3019 h450=yes
3020 h460=yes
3021 sip=yes
3022 iax=yes
3023 audio=yes
3024 video=yes
3025 rfc4175=yes
3027 REQUIRED_PWLIB_MAJOR=1
3028 REQUIRED_PWLIB_MINOR=11
3029 REQUIRED_PWLIB_BUILD=0
3032 OPALDIR=`pwd`
3035 if test "x$prefix" = "xNONE"; then
3036 INSTALLPREFIX="/usr/local"
3037 else
3038 INSTALLPREFIX="${prefix}"
3043 LIBDIR="${libdir}"
3049 MAJOR_VERSION=`cat ${OPALDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
3050 MINOR_VERSION=`cat ${OPALDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
3051 BUILD_NUMBER=`cat ${OPALDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
3052 OPAL_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
3053 cat >>confdefs.h <<_ACEOF
3054 #define OPAL_MAJOR ${MAJOR_VERSION}
3055 _ACEOF
3057 cat >>confdefs.h <<_ACEOF
3058 #define OPAL_MINOR ${MINOR_VERSION}
3059 _ACEOF
3061 cat >>confdefs.h <<_ACEOF
3062 #define OPAL_BUILD ${BUILD_NUMBER}
3063 _ACEOF
3065 cat >>confdefs.h <<_ACEOF
3066 #define OPAL_VERSION "$OPAL_VERSION"
3067 _ACEOF
3070 { echo "$as_me:$LINENO: Opal version is ${OPAL_VERSION}" >&5
3071 echo "$as_me: Opal version is ${OPAL_VERSION}" >&6;};
3073 #use to set the version in opal.pc
3077 if test "${PWLIBDIR:-unset}" != "unset" ; then
3078 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
3079 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
3080 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
3081 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084 test "$cross_compiling" = yes &&
3085 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3086 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3087 { (exit 1); exit 1; }; }
3088 if test -r "${PWLIBDIR}/version.h"; then
3089 eval "$as_ac_File=yes"
3090 else
3091 eval "$as_ac_File=no"
3094 ac_res=`eval echo '${'$as_ac_File'}'`
3095 { echo "$as_me:$LINENO: result: $ac_res" >&5
3096 echo "${ECHO_T}$ac_res" >&6; }
3097 if test `eval echo '${'$as_ac_File'}'` = yes; then
3098 HAS_PTLIB=1
3102 if test "${HAS_PTLIB:-unset}" = "unset" ; then
3103 as_ac_File=`echo "ac_cv_file_${OPALDIR}/../pwlib/version.h" | $as_tr_sh`
3104 { echo "$as_me:$LINENO: checking for ${OPALDIR}/../pwlib/version.h" >&5
3105 echo $ECHO_N "checking for ${OPALDIR}/../pwlib/version.h... $ECHO_C" >&6; }
3106 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 test "$cross_compiling" = yes &&
3110 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3111 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3112 { (exit 1); exit 1; }; }
3113 if test -r "${OPALDIR}/../pwlib/version.h"; then
3114 eval "$as_ac_File=yes"
3115 else
3116 eval "$as_ac_File=no"
3119 ac_res=`eval echo '${'$as_ac_File'}'`
3120 { echo "$as_me:$LINENO: result: $ac_res" >&5
3121 echo "${ECHO_T}$ac_res" >&6; }
3122 if test `eval echo '${'$as_ac_File'}'` = yes; then
3123 HAS_PTLIB=1
3126 if test "${HAS_PTLIB:-unset}" != "unset" ; then
3127 PWLIBDIR="${OPALDIR}/../pwlib"
3128 else
3129 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
3130 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
3131 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
3132 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135 test "$cross_compiling" = yes &&
3136 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3137 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3138 { (exit 1); exit 1; }; }
3139 if test -r "${HOME}/pwlib/include/ptlib.h"; then
3140 eval "$as_ac_File=yes"
3141 else
3142 eval "$as_ac_File=no"
3145 ac_res=`eval echo '${'$as_ac_File'}'`
3146 { echo "$as_me:$LINENO: result: $ac_res" >&5
3147 echo "${ECHO_T}$ac_res" >&6; }
3148 if test `eval echo '${'$as_ac_File'}'` = yes; then
3149 HAS_PTLIB=1
3152 if test "${HAS_PTLIB:-unset}" != "unset" ; then
3153 PWLIBDIR="${HOME}/pwlib"
3154 else
3155 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
3156 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
3157 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 test "$cross_compiling" = yes &&
3161 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3162 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3163 { (exit 1); exit 1; }; }
3164 if test -r "/usr/local/include/ptlib.h"; then
3165 ac_cv_file__usr_local_include_ptlib_h=yes
3166 else
3167 ac_cv_file__usr_local_include_ptlib_h=no
3170 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
3171 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
3172 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
3173 HAS_PTLIB=1
3176 if test "${HAS_PTLIB:-unset}" != "unset" ; then
3177 # Extract the first word of "ptlib-config", so it can be a program name with args.
3178 set dummy ptlib-config; ac_word=$2
3179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3181 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 case $PTLIB_CONFIG in
3185 [\\/]* | ?:[\\/]*)
3186 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in /usr/local/bin
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3200 done
3201 done
3202 IFS=$as_save_IFS
3205 esac
3207 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
3208 if test -n "$PTLIB_CONFIG"; then
3209 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
3210 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
3211 else
3212 { echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6; }
3217 else
3218 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
3219 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
3220 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223 test "$cross_compiling" = yes &&
3224 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3225 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3226 { (exit 1); exit 1; }; }
3227 if test -r "/usr/include/ptlib.h"; then
3228 ac_cv_file__usr_include_ptlib_h=yes
3229 else
3230 ac_cv_file__usr_include_ptlib_h=no
3233 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
3234 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
3235 if test $ac_cv_file__usr_include_ptlib_h = yes; then
3236 HAS_PTLIB=1
3239 if test "${HAS_PTLIB:-unset}" != "unset" ; then
3240 # Extract the first word of "ptlib-config", so it can be a program name with args.
3241 set dummy ptlib-config; ac_word=$2
3242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3244 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 case $PTLIB_CONFIG in
3248 [\\/]* | ?:[\\/]*)
3249 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in /usr/share/pwlib/make/
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3263 done
3264 done
3265 IFS=$as_save_IFS
3268 esac
3270 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
3271 if test -n "$PTLIB_CONFIG"; then
3272 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
3273 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
3274 else
3275 { echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6; }
3280 else
3281 as_ac_File=`echo "ac_cv_file_${prefix}/include/ptlib.h" | $as_tr_sh`
3282 { echo "$as_me:$LINENO: checking for ${prefix}/include/ptlib.h" >&5
3283 echo $ECHO_N "checking for ${prefix}/include/ptlib.h... $ECHO_C" >&6; }
3284 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 test "$cross_compiling" = yes &&
3288 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3289 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3290 { (exit 1); exit 1; }; }
3291 if test -r "${prefix}/include/ptlib.h"; then
3292 eval "$as_ac_File=yes"
3293 else
3294 eval "$as_ac_File=no"
3297 ac_res=`eval echo '${'$as_ac_File'}'`
3298 { echo "$as_me:$LINENO: result: $ac_res" >&5
3299 echo "${ECHO_T}$ac_res" >&6; }
3300 if test `eval echo '${'$as_ac_File'}'` = yes; then
3301 HAS_PTLIB=1
3304 if test "${HAS_PTLIB:-unset}" != "unset" ; then
3305 # Extract the first word of "ptlib-config", so it can be a program name with args.
3306 set dummy ptlib-config; ac_word=$2
3307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3309 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 case $PTLIB_CONFIG in
3313 [\\/]* | ?:[\\/]*)
3314 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in ${prefix}/bin
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3328 done
3329 done
3330 IFS=$as_save_IFS
3333 esac
3335 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
3336 if test -n "$PTLIB_CONFIG"; then
3337 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
3338 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
3339 else
3340 { echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6; }
3352 if test "${HAS_PTLIB:-unset}" = "unset" ; then
3353 { { echo "$as_me:$LINENO: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&5
3354 echo "$as_me: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&2;}
3355 { (exit 1); exit 1; }; }
3358 if test "${PWLIBDIR:-unset}" = "unset" ; then
3359 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
3360 { { echo "$as_me:$LINENO: error: \"Cannot find ptlib-config - please install and try again\"" >&5
3361 echo "$as_me: error: \"Cannot find ptlib-config - please install and try again\"" >&2;}
3362 { (exit 1); exit 1; }; }
3364 PWLIBDIR=`$PTLIB_CONFIG --prefix`
3367 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
3368 PWLIBDIR="/usr/share/pwlib/"
3370 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
3371 PWLIBDIR="/usr/local/share/pwlib/"
3373 if test "x$PWLIBDIR" = "x${prefix}"; then
3374 PWLIBDIR="${prefix}/share/pwlib/"
3378 echo "PWLib prefix set to.... $PWLIBDIR"
3380 if test "${PWLIBDIR:-unset}" = "unset" ; then
3381 PWVERSION=`$PTLIB_CONFIG --version`
3382 PW_MAJOR_VERSION=`echo $PW_VERSION | cut -d'.' -f1`
3383 PW_MINOR_VERSION=`echo $PW_VERSION | cut -d'.' -f2`
3384 PW_BUILD_NUMBER=`echo $PW_VERSION | cut -d'.' -f3`
3386 else
3387 PW_MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
3388 PW_MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
3389 PW_BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
3390 PWVERSION="${PW_MAJOR_VERSION}.${PW_MINOR_VERSION}.${PW_BUILD_NUMBER}"
3393 # Check whether --enable-versioncheck was given.
3394 if test "${enable_versioncheck+set}" = set; then
3395 enableval=$enable_versioncheck; PWLIB_VERSION_CHECK=$enableval
3399 { echo "$as_me:$LINENO: checking Checking PWLib version ${PWVERSION}" >&5
3400 echo $ECHO_N "checking Checking PWLib version ${PWVERSION}... $ECHO_C" >&6; }
3401 if test "${PWLIB_VERSION_CHECK}x" = "nox" ; then
3402 { echo "$as_me:$LINENO: result: check disabled" >&5
3403 echo "${ECHO_T}check disabled" >&6; }
3404 else
3405 if test $PW_MAJOR_VERSION -lt $REQUIRED_PWLIB_MAJOR ; then
3406 { { echo "$as_me:$LINENO: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&5
3407 echo "$as_me: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&2;}
3408 { (exit 1); exit 1; }; }
3410 if test $PW_MINOR_VERSION -lt $REQUIRED_PWLIB_MINOR ; then
3411 { { echo "$as_me:$LINENO: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&5
3412 echo "$as_me: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&2;}
3413 { (exit 1); exit 1; }; }
3415 if test $PW_BUILD_NUMBER -lt $REQUIRED_PWLIB_BUILD ; then
3416 { { echo "$as_me:$LINENO: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&5
3417 echo "$as_me: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&2;}
3418 { (exit 1); exit 1; }; }
3420 { echo "$as_me:$LINENO: result: ok" >&5
3421 echo "${ECHO_T}ok" >&6; }
3427 if test x$GXX = xyes ; then
3428 USE_GCC=yes
3429 gcc_version=`$CXX -dumpversion`
3430 { echo "$as_me:$LINENO: gcc version is $gcc_version" >&5
3431 echo "$as_me: gcc version is $gcc_version" >&6;};
3432 GXX_MAJOR=`echo $gcc_version | sed 's/\..*$//'`
3433 GXX_MINOR=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.//' -e 's/\..*$//'`
3434 GXX_PATCH=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.//' -e 's/\..*$//'`
3436 { echo "$as_me:$LINENO: checking checking if gcc version is valid" >&5
3437 echo $ECHO_N "checking checking if gcc version is valid... $ECHO_C" >&6; }
3438 if test ${GXX_MAJOR} -lt 3 ; then
3439 { echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6; }
3441 { { echo "$as_me:$LINENO: error: OPAL requires gcc version 3 or later" >&5
3442 echo "$as_me: error: OPAL requires gcc version 3 or later" >&2;}
3443 { (exit 1); exit 1; }; }
3444 else
3445 { echo "$as_me:$LINENO: result: yes" >&5
3446 echo "${ECHO_T}yes" >&6; }
3451 { echo "$as_me:$LINENO: checking for working bit scan intrinsic" >&5
3452 echo $ECHO_N "checking for working bit scan intrinsic... $ECHO_C" >&6; }
3453 BSR_TEST_SRC="
3454 #include <stdlib.h>
3455 int main(int argc, char* argv) {
3456 #ifdef __GNUC__
3457 unsigned int val = 0x00000FF0;
3458 if (__builtin_clz(val) == 20)
3459 exit(0);
3460 #endif
3461 exit(1);
3464 if test "$cross_compiling" = yes; then
3465 GCC_HAS_CLZ=1
3466 else
3467 cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h. */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 $BSR_TEST_SRC
3474 _ACEOF
3475 rm -f conftest$ac_exeext
3476 if { (ac_try="$ac_link"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_link") 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3486 { (case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_try") 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 GCC_HAS_CLZ=1
3496 else
3497 echo "$as_me: program exited with status $ac_status" >&5
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 ( exit $ac_status )
3502 GCC_HAS_CLZ=0
3504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3508 if test "${GCC_HAS_CLZ}" = "1" ; then
3509 { echo "$as_me:$LINENO: result: yes" >&5
3510 echo "${ECHO_T}yes" >&6; }
3511 cat >>confdefs.h <<\_ACEOF
3512 #define GCC_HAS_CLZ 1
3513 _ACEOF
3515 GCC_HAS_CLZ=1
3516 else
3517 { echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6; }
3523 localspeex="xxx"
3524 # Check whether --enable-localspeex was given.
3525 if test "${enable_localspeex+set}" = set; then
3526 enableval=$enable_localspeex; localspeex=$enableval
3530 ac_ext=c
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3536 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3537 # On Suns, sometimes $CPP names a directory.
3538 if test -n "$CPP" && test -d "$CPP"; then
3539 CPP=
3541 if test -z "$CPP"; then
3542 if test "${ac_cv_prog_CPP+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 # Double quotes because CPP needs to be expanded
3546 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3548 ac_preproc_ok=false
3549 for ac_c_preproc_warn_flag in '' yes
3551 # Use a header file that comes with gcc, so configuring glibc
3552 # with a fresh cross-compiler works.
3553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3554 # <limits.h> exists even on freestanding compilers.
3555 # On the NeXT, cc -E runs the code through the compiler's parser,
3556 # not just through cpp. "Syntax error" is here to catch this case.
3557 cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h. */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3563 #ifdef __STDC__
3564 # include <limits.h>
3565 #else
3566 # include <assert.h>
3567 #endif
3568 Syntax error
3569 _ACEOF
3570 if { (ac_try="$ac_cpp conftest.$ac_ext"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } >/dev/null && {
3583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 }; then
3587 else
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 # Broken: fails on valid input.
3592 continue
3595 rm -f conftest.err conftest.$ac_ext
3597 # OK, works on sane cases. Now check whether nonexistent headers
3598 # can be detected and how.
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 #include <ac_nonexistent.h>
3606 _ACEOF
3607 if { (ac_try="$ac_cpp conftest.$ac_ext"
3608 case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611 esac
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3614 ac_status=$?
3615 grep -v '^ *+' conftest.er1 >conftest.err
3616 rm -f conftest.er1
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } >/dev/null && {
3620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3621 test ! -s conftest.err
3622 }; then
3623 # Broken: success on invalid input.
3624 continue
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 # Passes both tests.
3630 ac_preproc_ok=:
3631 break
3634 rm -f conftest.err conftest.$ac_ext
3636 done
3637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3638 rm -f conftest.err conftest.$ac_ext
3639 if $ac_preproc_ok; then
3640 break
3643 done
3644 ac_cv_prog_CPP=$CPP
3647 CPP=$ac_cv_prog_CPP
3648 else
3649 ac_cv_prog_CPP=$CPP
3651 { echo "$as_me:$LINENO: result: $CPP" >&5
3652 echo "${ECHO_T}$CPP" >&6; }
3653 ac_preproc_ok=false
3654 for ac_c_preproc_warn_flag in '' yes
3656 # Use a header file that comes with gcc, so configuring glibc
3657 # with a fresh cross-compiler works.
3658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3659 # <limits.h> exists even on freestanding compilers.
3660 # On the NeXT, cc -E runs the code through the compiler's parser,
3661 # not just through cpp. "Syntax error" is here to catch this case.
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668 #ifdef __STDC__
3669 # include <limits.h>
3670 #else
3671 # include <assert.h>
3672 #endif
3673 Syntax error
3674 _ACEOF
3675 if { (ac_try="$ac_cpp conftest.$ac_ext"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } >/dev/null && {
3688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 }; then
3692 else
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3696 # Broken: fails on valid input.
3697 continue
3700 rm -f conftest.err conftest.$ac_ext
3702 # OK, works on sane cases. Now check whether nonexistent headers
3703 # can be detected and how.
3704 cat >conftest.$ac_ext <<_ACEOF
3705 /* confdefs.h. */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 #include <ac_nonexistent.h>
3711 _ACEOF
3712 if { (ac_try="$ac_cpp conftest.$ac_ext"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } >/dev/null && {
3725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3726 test ! -s conftest.err
3727 }; then
3728 # Broken: success on invalid input.
3729 continue
3730 else
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 # Passes both tests.
3735 ac_preproc_ok=:
3736 break
3739 rm -f conftest.err conftest.$ac_ext
3741 done
3742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3743 rm -f conftest.err conftest.$ac_ext
3744 if $ac_preproc_ok; then
3746 else
3747 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3748 See \`config.log' for more details." >&5
3749 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3750 See \`config.log' for more details." >&2;}
3751 { (exit 1); exit 1; }; }
3754 ac_ext=c
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3762 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3763 if test "${ac_cv_path_GREP+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 # Extract the first word of "grep ggrep" to use in msg output
3767 if test -z "$GREP"; then
3768 set dummy grep ggrep; ac_prog_name=$2
3769 if test "${ac_cv_path_GREP+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 ac_path_GREP_found=false
3773 # Loop through the user's path and test for each of PROGNAME-LIST
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_prog in grep ggrep; do
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3782 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3783 # Check for GNU ac_path_GREP and select it if it is found.
3784 # Check for GNU $ac_path_GREP
3785 case `"$ac_path_GREP" --version 2>&1` in
3786 *GNU*)
3787 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3789 ac_count=0
3790 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3791 while :
3793 cat "conftest.in" "conftest.in" >"conftest.tmp"
3794 mv "conftest.tmp" "conftest.in"
3795 cp "conftest.in" "conftest.nl"
3796 echo 'GREP' >> "conftest.nl"
3797 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3799 ac_count=`expr $ac_count + 1`
3800 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3801 # Best one so far, save it but keep looking for a better one
3802 ac_cv_path_GREP="$ac_path_GREP"
3803 ac_path_GREP_max=$ac_count
3805 # 10*(2^10) chars as input seems more than enough
3806 test $ac_count -gt 10 && break
3807 done
3808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3809 esac
3812 $ac_path_GREP_found && break 3
3813 done
3814 done
3816 done
3817 IFS=$as_save_IFS
3822 GREP="$ac_cv_path_GREP"
3823 if test -z "$GREP"; then
3824 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3825 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3826 { (exit 1); exit 1; }; }
3829 else
3830 ac_cv_path_GREP=$GREP
3835 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3836 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3837 GREP="$ac_cv_path_GREP"
3840 { echo "$as_me:$LINENO: checking for egrep" >&5
3841 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3842 if test "${ac_cv_path_EGREP+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3846 then ac_cv_path_EGREP="$GREP -E"
3847 else
3848 # Extract the first word of "egrep" to use in msg output
3849 if test -z "$EGREP"; then
3850 set dummy egrep; ac_prog_name=$2
3851 if test "${ac_cv_path_EGREP+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854 ac_path_EGREP_found=false
3855 # Loop through the user's path and test for each of PROGNAME-LIST
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for ac_prog in egrep; do
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3864 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3865 # Check for GNU ac_path_EGREP and select it if it is found.
3866 # Check for GNU $ac_path_EGREP
3867 case `"$ac_path_EGREP" --version 2>&1` in
3868 *GNU*)
3869 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3871 ac_count=0
3872 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3873 while :
3875 cat "conftest.in" "conftest.in" >"conftest.tmp"
3876 mv "conftest.tmp" "conftest.in"
3877 cp "conftest.in" "conftest.nl"
3878 echo 'EGREP' >> "conftest.nl"
3879 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3881 ac_count=`expr $ac_count + 1`
3882 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3883 # Best one so far, save it but keep looking for a better one
3884 ac_cv_path_EGREP="$ac_path_EGREP"
3885 ac_path_EGREP_max=$ac_count
3887 # 10*(2^10) chars as input seems more than enough
3888 test $ac_count -gt 10 && break
3889 done
3890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3891 esac
3894 $ac_path_EGREP_found && break 3
3895 done
3896 done
3898 done
3899 IFS=$as_save_IFS
3904 EGREP="$ac_cv_path_EGREP"
3905 if test -z "$EGREP"; then
3906 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3907 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3908 { (exit 1); exit 1; }; }
3911 else
3912 ac_cv_path_EGREP=$EGREP
3918 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3919 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3920 EGREP="$ac_cv_path_EGREP"
3923 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3924 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3925 if test "${ac_cv_header_stdc+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 #include <stdlib.h>
3935 #include <stdarg.h>
3936 #include <string.h>
3937 #include <float.h>
3940 main ()
3944 return 0;
3946 _ACEOF
3947 rm -f conftest.$ac_objext
3948 if { (ac_try="$ac_compile"
3949 case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.$ac_objext; then
3964 ac_cv_header_stdc=yes
3965 else
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3969 ac_cv_header_stdc=no
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 if test $ac_cv_header_stdc = yes; then
3975 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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. */
3982 #include <string.h>
3984 _ACEOF
3985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3986 $EGREP "memchr" >/dev/null 2>&1; then
3988 else
3989 ac_cv_header_stdc=no
3991 rm -f conftest*
3995 if test $ac_cv_header_stdc = yes; then
3996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3997 cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h. */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003 #include <stdlib.h>
4005 _ACEOF
4006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4007 $EGREP "free" >/dev/null 2>&1; then
4009 else
4010 ac_cv_header_stdc=no
4012 rm -f conftest*
4016 if test $ac_cv_header_stdc = yes; then
4017 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4018 if test "$cross_compiling" = yes; then
4020 else
4021 cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h. */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4027 #include <ctype.h>
4028 #include <stdlib.h>
4029 #if ((' ' & 0x0FF) == 0x020)
4030 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4031 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4032 #else
4033 # define ISLOWER(c) \
4034 (('a' <= (c) && (c) <= 'i') \
4035 || ('j' <= (c) && (c) <= 'r') \
4036 || ('s' <= (c) && (c) <= 'z'))
4037 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4038 #endif
4040 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4042 main ()
4044 int i;
4045 for (i = 0; i < 256; i++)
4046 if (XOR (islower (i), ISLOWER (i))
4047 || toupper (i) != TOUPPER (i))
4048 return 2;
4049 return 0;
4051 _ACEOF
4052 rm -f conftest$ac_exeext
4053 if { (ac_try="$ac_link"
4054 case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_link") 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4063 { (case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066 esac
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_try") 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; }; then
4073 else
4074 echo "$as_me: program exited with status $ac_status" >&5
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4078 ( exit $ac_status )
4079 ac_cv_header_stdc=no
4081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4087 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4088 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4089 if test $ac_cv_header_stdc = yes; then
4091 cat >>confdefs.h <<\_ACEOF
4092 #define STDC_HEADERS 1
4093 _ACEOF
4097 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4107 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4108 inttypes.h stdint.h unistd.h
4110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 $ac_includes_default
4124 #include <$ac_header>
4125 _ACEOF
4126 rm -f conftest.$ac_objext
4127 if { (ac_try="$ac_compile"
4128 case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131 esac
4132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_compile") 2>conftest.er1
4134 ac_status=$?
4135 grep -v '^ *+' conftest.er1 >conftest.err
4136 rm -f conftest.er1
4137 cat conftest.err >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } && {
4140 test -z "$ac_c_werror_flag" ||
4141 test ! -s conftest.err
4142 } && test -s conftest.$ac_objext; then
4143 eval "$as_ac_Header=yes"
4144 else
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4148 eval "$as_ac_Header=no"
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_res=`eval echo '${'$as_ac_Header'}'`
4154 { echo "$as_me:$LINENO: result: $ac_res" >&5
4155 echo "${ECHO_T}$ac_res" >&6; }
4156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4157 cat >>confdefs.h <<_ACEOF
4158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4159 _ACEOF
4163 done
4166 { echo "$as_me:$LINENO: checking for short" >&5
4167 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4168 if test "${ac_cv_type_short+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h. */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 $ac_includes_default
4178 typedef short ac__type_new_;
4180 main ()
4182 if ((ac__type_new_ *) 0)
4183 return 0;
4184 if (sizeof (ac__type_new_))
4185 return 0;
4187 return 0;
4189 _ACEOF
4190 rm -f conftest.$ac_objext
4191 if { (ac_try="$ac_compile"
4192 case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_compile") 2>conftest.er1
4198 ac_status=$?
4199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } && {
4204 test -z "$ac_c_werror_flag" ||
4205 test ! -s conftest.err
4206 } && test -s conftest.$ac_objext; then
4207 ac_cv_type_short=yes
4208 else
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 ac_cv_type_short=no
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4218 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4220 # The cast to long int works around a bug in the HP C Compiler
4221 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4222 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4223 # This bug is HP SR number 8606223364.
4224 { echo "$as_me:$LINENO: checking size of short" >&5
4225 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4226 if test "${ac_cv_sizeof_short+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 if test "$cross_compiling" = yes; then
4230 # Depending upon the size, compute the lo and hi bounds.
4231 cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h. */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4237 $ac_includes_default
4238 typedef short ac__type_sizeof_;
4240 main ()
4242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4243 test_array [0] = 0
4246 return 0;
4248 _ACEOF
4249 rm -f conftest.$ac_objext
4250 if { (ac_try="$ac_compile"
4251 case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254 esac
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } && {
4263 test -z "$ac_c_werror_flag" ||
4264 test ! -s conftest.err
4265 } && test -s conftest.$ac_objext; then
4266 ac_lo=0 ac_mid=0
4267 while :; do
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h. */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 $ac_includes_default
4275 typedef short ac__type_sizeof_;
4277 main ()
4279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4280 test_array [0] = 0
4283 return 0;
4285 _ACEOF
4286 rm -f conftest.$ac_objext
4287 if { (ac_try="$ac_compile"
4288 case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_compile") 2>conftest.er1
4294 ac_status=$?
4295 grep -v '^ *+' conftest.er1 >conftest.err
4296 rm -f conftest.er1
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } && {
4300 test -z "$ac_c_werror_flag" ||
4301 test ! -s conftest.err
4302 } && test -s conftest.$ac_objext; then
4303 ac_hi=$ac_mid; break
4304 else
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4308 ac_lo=`expr $ac_mid + 1`
4309 if test $ac_lo -le $ac_mid; then
4310 ac_lo= ac_hi=
4311 break
4313 ac_mid=`expr 2 '*' $ac_mid + 1`
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 done
4318 else
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h. */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 $ac_includes_default
4329 typedef short ac__type_sizeof_;
4331 main ()
4333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4334 test_array [0] = 0
4337 return 0;
4339 _ACEOF
4340 rm -f conftest.$ac_objext
4341 if { (ac_try="$ac_compile"
4342 case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345 esac
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_compile") 2>conftest.er1
4348 ac_status=$?
4349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } && {
4354 test -z "$ac_c_werror_flag" ||
4355 test ! -s conftest.err
4356 } && test -s conftest.$ac_objext; then
4357 ac_hi=-1 ac_mid=-1
4358 while :; do
4359 cat >conftest.$ac_ext <<_ACEOF
4360 /* confdefs.h. */
4361 _ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4365 $ac_includes_default
4366 typedef short ac__type_sizeof_;
4368 main ()
4370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4371 test_array [0] = 0
4374 return 0;
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (ac_try="$ac_compile"
4379 case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382 esac
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_compile") 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } && {
4391 test -z "$ac_c_werror_flag" ||
4392 test ! -s conftest.err
4393 } && test -s conftest.$ac_objext; then
4394 ac_lo=$ac_mid; break
4395 else
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4399 ac_hi=`expr '(' $ac_mid ')' - 1`
4400 if test $ac_mid -le $ac_hi; then
4401 ac_lo= ac_hi=
4402 break
4404 ac_mid=`expr 2 '*' $ac_mid`
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 done
4409 else
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 ac_lo= ac_hi=
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420 # Binary search between lo and hi bounds.
4421 while test "x$ac_lo" != "x$ac_hi"; do
4422 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h. */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 $ac_includes_default
4430 typedef short ac__type_sizeof_;
4432 main ()
4434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4435 test_array [0] = 0
4438 return 0;
4440 _ACEOF
4441 rm -f conftest.$ac_objext
4442 if { (ac_try="$ac_compile"
4443 case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446 esac
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_compile") 2>conftest.er1
4449 ac_status=$?
4450 grep -v '^ *+' conftest.er1 >conftest.err
4451 rm -f conftest.er1
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } && {
4455 test -z "$ac_c_werror_flag" ||
4456 test ! -s conftest.err
4457 } && test -s conftest.$ac_objext; then
4458 ac_hi=$ac_mid
4459 else
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4463 ac_lo=`expr '(' $ac_mid ')' + 1`
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 done
4468 case $ac_lo in
4469 ?*) ac_cv_sizeof_short=$ac_lo;;
4470 '') if test "$ac_cv_type_short" = yes; then
4471 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
4472 See \`config.log' for more details." >&5
4473 echo "$as_me: error: cannot compute sizeof (short)
4474 See \`config.log' for more details." >&2;}
4475 { (exit 77); exit 77; }; }
4476 else
4477 ac_cv_sizeof_short=0
4478 fi ;;
4479 esac
4480 else
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h. */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 $ac_includes_default
4488 typedef short ac__type_sizeof_;
4489 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4490 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4491 #include <stdio.h>
4492 #include <stdlib.h>
4494 main ()
4497 FILE *f = fopen ("conftest.val", "w");
4498 if (! f)
4499 return 1;
4500 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4502 long int i = longval ();
4503 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4504 return 1;
4505 fprintf (f, "%ld\n", i);
4507 else
4509 unsigned long int i = ulongval ();
4510 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4511 return 1;
4512 fprintf (f, "%lu\n", i);
4514 return ferror (f) || fclose (f) != 0;
4517 return 0;
4519 _ACEOF
4520 rm -f conftest$ac_exeext
4521 if { (ac_try="$ac_link"
4522 case "(($ac_try" in
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4525 esac
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527 (eval "$ac_link") 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4531 { (case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534 esac
4535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536 (eval "$ac_try") 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_cv_sizeof_short=`cat conftest.val`
4541 else
4542 echo "$as_me: program exited with status $ac_status" >&5
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546 ( exit $ac_status )
4547 if test "$ac_cv_type_short" = yes; then
4548 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
4549 See \`config.log' for more details." >&5
4550 echo "$as_me: error: cannot compute sizeof (short)
4551 See \`config.log' for more details." >&2;}
4552 { (exit 77); exit 77; }; }
4553 else
4554 ac_cv_sizeof_short=0
4557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4559 rm -f conftest.val
4561 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4562 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
4566 cat >>confdefs.h <<_ACEOF
4567 #define SIZEOF_SHORT $ac_cv_sizeof_short
4568 _ACEOF
4571 { echo "$as_me:$LINENO: checking for int" >&5
4572 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
4573 if test "${ac_cv_type_int+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 $ac_includes_default
4583 typedef int ac__type_new_;
4585 main ()
4587 if ((ac__type_new_ *) 0)
4588 return 0;
4589 if (sizeof (ac__type_new_))
4590 return 0;
4592 return 0;
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (ac_try="$ac_compile"
4597 case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_compile") 2>conftest.er1
4603 ac_status=$?
4604 grep -v '^ *+' conftest.er1 >conftest.err
4605 rm -f conftest.er1
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && {
4609 test -z "$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4611 } && test -s conftest.$ac_objext; then
4612 ac_cv_type_int=yes
4613 else
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4617 ac_cv_type_int=no
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4623 echo "${ECHO_T}$ac_cv_type_int" >&6; }
4625 # The cast to long int works around a bug in the HP C Compiler
4626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4628 # This bug is HP SR number 8606223364.
4629 { echo "$as_me:$LINENO: checking size of int" >&5
4630 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
4631 if test "${ac_cv_sizeof_int+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634 if test "$cross_compiling" = yes; then
4635 # Depending upon the size, compute the lo and hi bounds.
4636 cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h. */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4642 $ac_includes_default
4643 typedef int ac__type_sizeof_;
4645 main ()
4647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4648 test_array [0] = 0
4651 return 0;
4653 _ACEOF
4654 rm -f conftest.$ac_objext
4655 if { (ac_try="$ac_compile"
4656 case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659 esac
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_compile") 2>conftest.er1
4662 ac_status=$?
4663 grep -v '^ *+' conftest.er1 >conftest.err
4664 rm -f conftest.er1
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } && {
4668 test -z "$ac_c_werror_flag" ||
4669 test ! -s conftest.err
4670 } && test -s conftest.$ac_objext; then
4671 ac_lo=0 ac_mid=0
4672 while :; do
4673 cat >conftest.$ac_ext <<_ACEOF
4674 /* confdefs.h. */
4675 _ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679 $ac_includes_default
4680 typedef int ac__type_sizeof_;
4682 main ()
4684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4685 test_array [0] = 0
4688 return 0;
4690 _ACEOF
4691 rm -f conftest.$ac_objext
4692 if { (ac_try="$ac_compile"
4693 case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696 esac
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_compile") 2>conftest.er1
4699 ac_status=$?
4700 grep -v '^ *+' conftest.er1 >conftest.err
4701 rm -f conftest.er1
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } && {
4705 test -z "$ac_c_werror_flag" ||
4706 test ! -s conftest.err
4707 } && test -s conftest.$ac_objext; then
4708 ac_hi=$ac_mid; break
4709 else
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4713 ac_lo=`expr $ac_mid + 1`
4714 if test $ac_lo -le $ac_mid; then
4715 ac_lo= ac_hi=
4716 break
4718 ac_mid=`expr 2 '*' $ac_mid + 1`
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 done
4723 else
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h. */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 $ac_includes_default
4734 typedef int ac__type_sizeof_;
4736 main ()
4738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4739 test_array [0] = 0
4742 return 0;
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (ac_try="$ac_compile"
4747 case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750 esac
4751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4752 (eval "$ac_compile") 2>conftest.er1
4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } && {
4759 test -z "$ac_c_werror_flag" ||
4760 test ! -s conftest.err
4761 } && test -s conftest.$ac_objext; then
4762 ac_hi=-1 ac_mid=-1
4763 while :; do
4764 cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h. */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770 $ac_includes_default
4771 typedef int ac__type_sizeof_;
4773 main ()
4775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4776 test_array [0] = 0
4779 return 0;
4781 _ACEOF
4782 rm -f conftest.$ac_objext
4783 if { (ac_try="$ac_compile"
4784 case "(($ac_try" in
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4787 esac
4788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4789 (eval "$ac_compile") 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } && {
4796 test -z "$ac_c_werror_flag" ||
4797 test ! -s conftest.err
4798 } && test -s conftest.$ac_objext; then
4799 ac_lo=$ac_mid; break
4800 else
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4804 ac_hi=`expr '(' $ac_mid ')' - 1`
4805 if test $ac_mid -le $ac_hi; then
4806 ac_lo= ac_hi=
4807 break
4809 ac_mid=`expr 2 '*' $ac_mid`
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 done
4814 else
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4818 ac_lo= ac_hi=
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 # Binary search between lo and hi bounds.
4826 while test "x$ac_lo" != "x$ac_hi"; do
4827 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 $ac_includes_default
4835 typedef int ac__type_sizeof_;
4837 main ()
4839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4840 test_array [0] = 0
4843 return 0;
4845 _ACEOF
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4848 case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851 esac
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_compile") 2>conftest.er1
4854 ac_status=$?
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } && {
4860 test -z "$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4862 } && test -s conftest.$ac_objext; then
4863 ac_hi=$ac_mid
4864 else
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 ac_lo=`expr '(' $ac_mid ')' + 1`
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872 done
4873 case $ac_lo in
4874 ?*) ac_cv_sizeof_int=$ac_lo;;
4875 '') if test "$ac_cv_type_int" = yes; then
4876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4877 See \`config.log' for more details." >&5
4878 echo "$as_me: error: cannot compute sizeof (int)
4879 See \`config.log' for more details." >&2;}
4880 { (exit 77); exit 77; }; }
4881 else
4882 ac_cv_sizeof_int=0
4883 fi ;;
4884 esac
4885 else
4886 cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h. */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4892 $ac_includes_default
4893 typedef int ac__type_sizeof_;
4894 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4895 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4896 #include <stdio.h>
4897 #include <stdlib.h>
4899 main ()
4902 FILE *f = fopen ("conftest.val", "w");
4903 if (! f)
4904 return 1;
4905 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4907 long int i = longval ();
4908 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4909 return 1;
4910 fprintf (f, "%ld\n", i);
4912 else
4914 unsigned long int i = ulongval ();
4915 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4916 return 1;
4917 fprintf (f, "%lu\n", i);
4919 return ferror (f) || fclose (f) != 0;
4922 return 0;
4924 _ACEOF
4925 rm -f conftest$ac_exeext
4926 if { (ac_try="$ac_link"
4927 case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930 esac
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_link") 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4936 { (case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_try") 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4945 ac_cv_sizeof_int=`cat conftest.val`
4946 else
4947 echo "$as_me: program exited with status $ac_status" >&5
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4951 ( exit $ac_status )
4952 if test "$ac_cv_type_int" = yes; then
4953 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4954 See \`config.log' for more details." >&5
4955 echo "$as_me: error: cannot compute sizeof (int)
4956 See \`config.log' for more details." >&2;}
4957 { (exit 77); exit 77; }; }
4958 else
4959 ac_cv_sizeof_int=0
4962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4964 rm -f conftest.val
4966 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4967 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
4971 cat >>confdefs.h <<_ACEOF
4972 #define SIZEOF_INT $ac_cv_sizeof_int
4973 _ACEOF
4976 { echo "$as_me:$LINENO: checking for long" >&5
4977 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4978 if test "${ac_cv_type_long+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 cat >conftest.$ac_ext <<_ACEOF
4982 /* confdefs.h. */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4987 $ac_includes_default
4988 typedef long ac__type_new_;
4990 main ()
4992 if ((ac__type_new_ *) 0)
4993 return 0;
4994 if (sizeof (ac__type_new_))
4995 return 0;
4997 return 0;
4999 _ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (ac_try="$ac_compile"
5002 case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005 esac
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_compile") 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } && {
5014 test -z "$ac_c_werror_flag" ||
5015 test ! -s conftest.err
5016 } && test -s conftest.$ac_objext; then
5017 ac_cv_type_long=yes
5018 else
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5022 ac_cv_type_long=no
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5028 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5030 # The cast to long int works around a bug in the HP C Compiler
5031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5033 # This bug is HP SR number 8606223364.
5034 { echo "$as_me:$LINENO: checking size of long" >&5
5035 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5036 if test "${ac_cv_sizeof_long+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039 if test "$cross_compiling" = yes; then
5040 # Depending upon the size, compute the lo and hi bounds.
5041 cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h. */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5047 $ac_includes_default
5048 typedef long ac__type_sizeof_;
5050 main ()
5052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5053 test_array [0] = 0
5056 return 0;
5058 _ACEOF
5059 rm -f conftest.$ac_objext
5060 if { (ac_try="$ac_compile"
5061 case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064 esac
5065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5066 (eval "$ac_compile") 2>conftest.er1
5067 ac_status=$?
5068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } && {
5073 test -z "$ac_c_werror_flag" ||
5074 test ! -s conftest.err
5075 } && test -s conftest.$ac_objext; then
5076 ac_lo=0 ac_mid=0
5077 while :; do
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 $ac_includes_default
5085 typedef long ac__type_sizeof_;
5087 main ()
5089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5090 test_array [0] = 0
5093 return 0;
5095 _ACEOF
5096 rm -f conftest.$ac_objext
5097 if { (ac_try="$ac_compile"
5098 case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101 esac
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_compile") 2>conftest.er1
5104 ac_status=$?
5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } && {
5110 test -z "$ac_c_werror_flag" ||
5111 test ! -s conftest.err
5112 } && test -s conftest.$ac_objext; then
5113 ac_hi=$ac_mid; break
5114 else
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5118 ac_lo=`expr $ac_mid + 1`
5119 if test $ac_lo -le $ac_mid; then
5120 ac_lo= ac_hi=
5121 break
5123 ac_mid=`expr 2 '*' $ac_mid + 1`
5126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5127 done
5128 else
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h. */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 $ac_includes_default
5139 typedef long ac__type_sizeof_;
5141 main ()
5143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5144 test_array [0] = 0
5147 return 0;
5149 _ACEOF
5150 rm -f conftest.$ac_objext
5151 if { (ac_try="$ac_compile"
5152 case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155 esac
5156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157 (eval "$ac_compile") 2>conftest.er1
5158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } && {
5164 test -z "$ac_c_werror_flag" ||
5165 test ! -s conftest.err
5166 } && test -s conftest.$ac_objext; then
5167 ac_hi=-1 ac_mid=-1
5168 while :; do
5169 cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h. */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5175 $ac_includes_default
5176 typedef long ac__type_sizeof_;
5178 main ()
5180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5181 test_array [0] = 0
5184 return 0;
5186 _ACEOF
5187 rm -f conftest.$ac_objext
5188 if { (ac_try="$ac_compile"
5189 case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192 esac
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_compile") 2>conftest.er1
5195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } && {
5201 test -z "$ac_c_werror_flag" ||
5202 test ! -s conftest.err
5203 } && test -s conftest.$ac_objext; then
5204 ac_lo=$ac_mid; break
5205 else
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5209 ac_hi=`expr '(' $ac_mid ')' - 1`
5210 if test $ac_mid -le $ac_hi; then
5211 ac_lo= ac_hi=
5212 break
5214 ac_mid=`expr 2 '*' $ac_mid`
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 done
5219 else
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 ac_lo= ac_hi=
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 # Binary search between lo and hi bounds.
5231 while test "x$ac_lo" != "x$ac_hi"; do
5232 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5233 cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h. */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 $ac_includes_default
5240 typedef long ac__type_sizeof_;
5242 main ()
5244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5245 test_array [0] = 0
5248 return 0;
5250 _ACEOF
5251 rm -f conftest.$ac_objext
5252 if { (ac_try="$ac_compile"
5253 case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_compile") 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } && {
5265 test -z "$ac_c_werror_flag" ||
5266 test ! -s conftest.err
5267 } && test -s conftest.$ac_objext; then
5268 ac_hi=$ac_mid
5269 else
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 ac_lo=`expr '(' $ac_mid ')' + 1`
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 done
5278 case $ac_lo in
5279 ?*) ac_cv_sizeof_long=$ac_lo;;
5280 '') if test "$ac_cv_type_long" = yes; then
5281 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5282 See \`config.log' for more details." >&5
5283 echo "$as_me: error: cannot compute sizeof (long)
5284 See \`config.log' for more details." >&2;}
5285 { (exit 77); exit 77; }; }
5286 else
5287 ac_cv_sizeof_long=0
5288 fi ;;
5289 esac
5290 else
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5298 typedef long ac__type_sizeof_;
5299 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5300 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5301 #include <stdio.h>
5302 #include <stdlib.h>
5304 main ()
5307 FILE *f = fopen ("conftest.val", "w");
5308 if (! f)
5309 return 1;
5310 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5312 long int i = longval ();
5313 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5314 return 1;
5315 fprintf (f, "%ld\n", i);
5317 else
5319 unsigned long int i = ulongval ();
5320 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5321 return 1;
5322 fprintf (f, "%lu\n", i);
5324 return ferror (f) || fclose (f) != 0;
5327 return 0;
5329 _ACEOF
5330 rm -f conftest$ac_exeext
5331 if { (ac_try="$ac_link"
5332 case "(($ac_try" in
5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334 *) ac_try_echo=$ac_try;;
5335 esac
5336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5337 (eval "$ac_link") 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5341 { (case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344 esac
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_try") 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 ac_cv_sizeof_long=`cat conftest.val`
5351 else
5352 echo "$as_me: program exited with status $ac_status" >&5
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 ( exit $ac_status )
5357 if test "$ac_cv_type_long" = yes; then
5358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5359 See \`config.log' for more details." >&5
5360 echo "$as_me: error: cannot compute sizeof (long)
5361 See \`config.log' for more details." >&2;}
5362 { (exit 77); exit 77; }; }
5363 else
5364 ac_cv_sizeof_long=0
5367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5369 rm -f conftest.val
5371 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5372 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5376 cat >>confdefs.h <<_ACEOF
5377 #define SIZEOF_LONG $ac_cv_sizeof_long
5378 _ACEOF
5381 { echo "$as_me:$LINENO: checking for long long" >&5
5382 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5383 if test "${ac_cv_type_long_long+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 $ac_includes_default
5393 typedef long long ac__type_new_;
5395 main ()
5397 if ((ac__type_new_ *) 0)
5398 return 0;
5399 if (sizeof (ac__type_new_))
5400 return 0;
5402 return 0;
5404 _ACEOF
5405 rm -f conftest.$ac_objext
5406 if { (ac_try="$ac_compile"
5407 case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compile") 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest.$ac_objext; then
5422 ac_cv_type_long_long=yes
5423 else
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5427 ac_cv_type_long_long=no
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5433 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5435 # The cast to long int works around a bug in the HP C Compiler
5436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5438 # This bug is HP SR number 8606223364.
5439 { echo "$as_me:$LINENO: checking size of long long" >&5
5440 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
5441 if test "${ac_cv_sizeof_long_long+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 if test "$cross_compiling" = yes; then
5445 # Depending upon the size, compute the lo and hi bounds.
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h. */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 $ac_includes_default
5453 typedef long long ac__type_sizeof_;
5455 main ()
5457 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5458 test_array [0] = 0
5461 return 0;
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5466 case "(($ac_try" in
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5469 esac
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_compile") 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_c_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
5481 ac_lo=0 ac_mid=0
5482 while :; do
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h. */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5490 typedef long long ac__type_sizeof_;
5492 main ()
5494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5495 test_array [0] = 0
5498 return 0;
5500 _ACEOF
5501 rm -f conftest.$ac_objext
5502 if { (ac_try="$ac_compile"
5503 case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5518 ac_hi=$ac_mid; break
5519 else
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 ac_lo=`expr $ac_mid + 1`
5524 if test $ac_lo -le $ac_mid; then
5525 ac_lo= ac_hi=
5526 break
5528 ac_mid=`expr 2 '*' $ac_mid + 1`
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532 done
5533 else
5534 echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5537 cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h. */
5539 _ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5543 $ac_includes_default
5544 typedef long long ac__type_sizeof_;
5546 main ()
5548 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5549 test_array [0] = 0
5552 return 0;
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (ac_try="$ac_compile"
5557 case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560 esac
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_compile") 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && {
5569 test -z "$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest.$ac_objext; then
5572 ac_hi=-1 ac_mid=-1
5573 while :; do
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 $ac_includes_default
5581 typedef long long ac__type_sizeof_;
5583 main ()
5585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5586 test_array [0] = 0
5589 return 0;
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5594 case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597 esac
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.$ac_objext; then
5609 ac_lo=$ac_mid; break
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5614 ac_hi=`expr '(' $ac_mid ')' - 1`
5615 if test $ac_mid -le $ac_hi; then
5616 ac_lo= ac_hi=
5617 break
5619 ac_mid=`expr 2 '*' $ac_mid`
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 done
5624 else
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5628 ac_lo= ac_hi=
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 # Binary search between lo and hi bounds.
5636 while test "x$ac_lo" != "x$ac_hi"; do
5637 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h. */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 $ac_includes_default
5645 typedef long long ac__type_sizeof_;
5647 main ()
5649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5650 test_array [0] = 0
5653 return 0;
5655 _ACEOF
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5658 case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest.$ac_objext; then
5673 ac_hi=$ac_mid
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 ac_lo=`expr '(' $ac_mid ')' + 1`
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 done
5683 case $ac_lo in
5684 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5685 '') if test "$ac_cv_type_long_long" = yes; then
5686 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
5687 See \`config.log' for more details." >&5
5688 echo "$as_me: error: cannot compute sizeof (long long)
5689 See \`config.log' for more details." >&2;}
5690 { (exit 77); exit 77; }; }
5691 else
5692 ac_cv_sizeof_long_long=0
5693 fi ;;
5694 esac
5695 else
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 $ac_includes_default
5703 typedef long long ac__type_sizeof_;
5704 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5705 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5706 #include <stdio.h>
5707 #include <stdlib.h>
5709 main ()
5712 FILE *f = fopen ("conftest.val", "w");
5713 if (! f)
5714 return 1;
5715 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5717 long int i = longval ();
5718 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5719 return 1;
5720 fprintf (f, "%ld\n", i);
5722 else
5724 unsigned long int i = ulongval ();
5725 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5726 return 1;
5727 fprintf (f, "%lu\n", i);
5729 return ferror (f) || fclose (f) != 0;
5732 return 0;
5734 _ACEOF
5735 rm -f conftest$ac_exeext
5736 if { (ac_try="$ac_link"
5737 case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740 esac
5741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_link") 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5746 { (case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_try") 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 ac_cv_sizeof_long_long=`cat conftest.val`
5756 else
5757 echo "$as_me: program exited with status $ac_status" >&5
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5761 ( exit $ac_status )
5762 if test "$ac_cv_type_long_long" = yes; then
5763 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
5764 See \`config.log' for more details." >&5
5765 echo "$as_me: error: cannot compute sizeof (long long)
5766 See \`config.log' for more details." >&2;}
5767 { (exit 77); exit 77; }; }
5768 else
5769 ac_cv_sizeof_long_long=0
5772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5774 rm -f conftest.val
5776 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5777 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
5781 cat >>confdefs.h <<_ACEOF
5782 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5783 _ACEOF
5787 case 2 in
5788 $ac_cv_sizeof_short) SIZE16="short";;
5789 $ac_cv_sizeof_int) SIZE16="int";;
5790 esac
5792 case 4 in
5793 $ac_cv_sizeof_int) SIZE32="int";;
5794 $ac_cv_sizeof_long) SIZE32="long";;
5795 $ac_cv_sizeof_short) SIZE32="short";;
5796 esac
5801 OPAL_HAVE_SPEEX_H=
5802 OPAL_HAVE_SPEEX_SPEEX_H=
5804 for ac_header in "speex.h"
5806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 ac_res=`eval echo '${'$as_ac_Header'}'`
5814 { echo "$as_me:$LINENO: result: $ac_res" >&5
5815 echo "${ECHO_T}$ac_res" >&6; }
5816 else
5817 # Is the header compilable?
5818 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 $ac_includes_default
5827 #include <$ac_header>
5828 _ACEOF
5829 rm -f conftest.$ac_objext
5830 if { (ac_try="$ac_compile"
5831 case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834 esac
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_compile") 2>conftest.er1
5837 ac_status=$?
5838 grep -v '^ *+' conftest.er1 >conftest.err
5839 rm -f conftest.er1
5840 cat conftest.err >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } && {
5843 test -z "$ac_c_werror_flag" ||
5844 test ! -s conftest.err
5845 } && test -s conftest.$ac_objext; then
5846 ac_header_compiler=yes
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 ac_header_compiler=no
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5856 echo "${ECHO_T}$ac_header_compiler" >&6; }
5858 # Is the header present?
5859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5861 cat >conftest.$ac_ext <<_ACEOF
5862 /* confdefs.h. */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 #include <$ac_header>
5868 _ACEOF
5869 if { (ac_try="$ac_cpp conftest.$ac_ext"
5870 case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } >/dev/null && {
5882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5884 }; then
5885 ac_header_preproc=yes
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 ac_header_preproc=no
5893 rm -f conftest.err conftest.$ac_ext
5894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5895 echo "${ECHO_T}$ac_header_preproc" >&6; }
5897 # So? What about this header?
5898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5899 yes:no: )
5900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5904 ac_header_preproc=yes
5906 no:yes:* )
5907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5921 esac
5922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 eval "$as_ac_Header=\$ac_header_preproc"
5929 ac_res=`eval echo '${'$as_ac_Header'}'`
5930 { echo "$as_me:$LINENO: result: $ac_res" >&5
5931 echo "${ECHO_T}$ac_res" >&6; }
5934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5935 cat >>confdefs.h <<_ACEOF
5936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5937 _ACEOF
5938 OPAL_HAVE_SPEEX_H=1
5941 done
5943 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5944 cat >>confdefs.h <<\_ACEOF
5945 #define OPAL_HAVE_SPEEX_H 1
5946 _ACEOF
5948 else
5950 for ac_header in "speex/speex.h"
5952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 ac_res=`eval echo '${'$as_ac_Header'}'`
5960 { echo "$as_me:$LINENO: result: $ac_res" >&5
5961 echo "${ECHO_T}$ac_res" >&6; }
5962 else
5963 # Is the header compilable?
5964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5973 #include <$ac_header>
5974 _ACEOF
5975 rm -f conftest.$ac_objext
5976 if { (ac_try="$ac_compile"
5977 case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest.$ac_objext; then
5992 ac_header_compiler=yes
5993 else
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_header_compiler=no
6000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6002 echo "${ECHO_T}$ac_header_compiler" >&6; }
6004 # Is the header present?
6005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6007 cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h. */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #include <$ac_header>
6014 _ACEOF
6015 if { (ac_try="$ac_cpp conftest.$ac_ext"
6016 case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019 esac
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } >/dev/null && {
6028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6029 test ! -s conftest.err
6030 }; then
6031 ac_header_preproc=yes
6032 else
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_header_preproc=no
6039 rm -f conftest.err conftest.$ac_ext
6040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6041 echo "${ECHO_T}$ac_header_preproc" >&6; }
6043 # So? What about this header?
6044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6045 yes:no: )
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6050 ac_header_preproc=yes
6052 no:yes:* )
6053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6067 esac
6068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073 eval "$as_ac_Header=\$ac_header_preproc"
6075 ac_res=`eval echo '${'$as_ac_Header'}'`
6076 { echo "$as_me:$LINENO: result: $ac_res" >&5
6077 echo "${ECHO_T}$ac_res" >&6; }
6080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6081 cat >>confdefs.h <<_ACEOF
6082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6083 _ACEOF
6084 OPAL_HAVE_SPEEX_SPEEX_H=1
6087 done
6089 if test "${OPAL_HAVE_SPEEX_SPEEX_H}x" != "x" ; then
6090 cat >>confdefs.h <<\_ACEOF
6091 #define OPAL_HAVE_SPEEX_SPEEX_H 1
6092 _ACEOF
6097 if test "${localspeex}" = "yes" ; then
6098 { echo "$as_me:$LINENO: Forcing use of OPAL Speex sources" >&5
6099 echo "$as_me: Forcing use of OPAL Speex sources" >&6;}
6100 elif test "${localspeex}" = "no" ; then
6101 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
6102 echo "$as_me: Forcing use of system Speex library" >&6;}
6103 cat >>confdefs.h <<\_ACEOF
6104 #define OPAL_SYSTEM_SPEEX 1
6105 _ACEOF
6107 OPAL_SYSTEM_SPEEX=1
6109 else
6110 { echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
6111 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6; }
6112 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115 ac_check_lib_save_LIBS=$LIBS
6116 LIBS="-lspeex $LIBS"
6117 cat >conftest.$ac_ext <<_ACEOF
6118 /* confdefs.h. */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6124 /* Override any GCC internal prototype to avoid an error.
6125 Use char because int might match the return type of a GCC
6126 builtin and then its argument prototype would still apply. */
6127 #ifdef __cplusplus
6128 extern "C"
6129 #endif
6130 char speex_encoder_destroy ();
6132 main ()
6134 return speex_encoder_destroy ();
6136 return 0;
6138 _ACEOF
6139 rm -f conftest.$ac_objext conftest$ac_exeext
6140 if { (ac_try="$ac_link"
6141 case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6144 esac
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_link") 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } && {
6153 test -z "$ac_c_werror_flag" ||
6154 test ! -s conftest.err
6155 } && test -s conftest$ac_exeext &&
6156 $as_test_x conftest$ac_exeext; then
6157 ac_cv_lib_speex_speex_encoder_destroy=yes
6158 else
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6162 ac_cv_lib_speex_speex_encoder_destroy=no
6165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6166 conftest$ac_exeext conftest.$ac_ext
6167 LIBS=$ac_check_lib_save_LIBS
6169 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
6170 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6; }
6171 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
6172 SPEEX=1
6175 if test "${SPEEX}x" != "x" ; then
6176 { echo "$as_me:$LINENO: checking for speex_encode_int in -lspeex" >&5
6177 echo $ECHO_N "checking for speex_encode_int in -lspeex... $ECHO_C" >&6; }
6178 if test "${ac_cv_lib_speex_speex_encode_int+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181 ac_check_lib_save_LIBS=$LIBS
6182 LIBS="-lspeex $LIBS"
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6190 /* Override any GCC internal prototype to avoid an error.
6191 Use char because int might match the return type of a GCC
6192 builtin and then its argument prototype would still apply. */
6193 #ifdef __cplusplus
6194 extern "C"
6195 #endif
6196 char speex_encode_int ();
6198 main ()
6200 return speex_encode_int ();
6202 return 0;
6204 _ACEOF
6205 rm -f conftest.$ac_objext conftest$ac_exeext
6206 if { (ac_try="$ac_link"
6207 case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6210 esac
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_link") 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest$ac_exeext &&
6222 $as_test_x conftest$ac_exeext; then
6223 ac_cv_lib_speex_speex_encode_int=yes
6224 else
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6228 ac_cv_lib_speex_speex_encode_int=no
6231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6232 conftest$ac_exeext conftest.$ac_ext
6233 LIBS=$ac_check_lib_save_LIBS
6235 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode_int" >&5
6236 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode_int" >&6; }
6237 if test $ac_cv_lib_speex_speex_encode_int = yes; then
6238 SPEEX=1
6239 else
6240 unset SPEEX
6244 if test "x$SPEEX" = "x" -o \( "${OPAL_HAVE_SPEEX_H}x" = "x" -a "${OPAL_HAVE_SPEEX_SPEEX_H}x" = "x" \); then
6245 { echo "$as_me:$LINENO: Forcing use of OPAL Speex library" >&5
6246 echo "$as_me: Forcing use of OPAL Speex library" >&6;}
6247 else
6248 { echo "$as_me:$LINENO: checking system Speex version" >&5
6249 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6; }
6250 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
6251 echo "#include <speex.h>" > t.c
6252 echo "#include <speex_header.h>" >> t.c
6253 else
6254 echo "#include <speex/speex.h>" > t.c
6255 echo "#include <speex/speex_header.h>" >> t.c
6257 cat >> t.c <<C_FILE
6258 #include <stdio.h>
6259 int main(int argc,char *argv)
6261 SpeexHeader header;
6262 speex_init_header(&header, 1, 1, &speex_nb_mode);
6263 printf("%s\n", header.speex_version);
6265 C_FILE
6266 cc -o t t.c -lspeex > /dev/null 2>&1
6267 if test \! -x t ; then
6268 { echo "$as_me:$LINENO: result: cannot determine - using OPAL version" >&5
6269 echo "${ECHO_T}cannot determine - using OPAL version" >&6; }
6270 else
6271 SYSVER=`./t`
6272 { echo "$as_me:$LINENO: result: $SYSVER" >&5
6273 echo "${ECHO_T}$SYSVER" >&6; }
6274 { echo "$as_me:$LINENO: checking OPAL Speex version" >&5
6275 echo $ECHO_N "checking OPAL Speex version... $ECHO_C" >&6; }
6276 LIBVER=`grep "#define SPEEX_VERSION" ./src/codec/speex/libspeex/misc.h | sed -e 's/^.*[Ss][Pp][Ee][Ee][Xx]\-//' -e 's/\"//' -e 's/\/.*//'`
6277 { echo "$as_me:$LINENO: result: $LIBVER" >&5
6278 echo "${ECHO_T}$LIBVER" >&6; }
6279 { echo "$as_me:$LINENO: checking Speex versions" >&5
6280 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6; }
6281 cat > t.pl <<P_FILE
6283 \$sysver = @ARGV[0];
6284 \$libver = @ARGV[1];
6285 @lib = split /\./, \$libver;
6286 while (@lib < 3) {
6287 @lib[0+@lib] = "0";
6289 @sys = split /\./, \$sysver;
6290 while (@sys < 3) {
6291 @sys[0+@sys] = "0";
6293 \$i = 0;
6294 while (\$i < 3) {
6295 if (@sys[\$i] < @lib[\$i]) {
6296 print "0";
6297 exit;
6299 \$i++;
6301 print "1";
6303 P_FILE
6304 SPEEX=`perl t.pl $SYSVER $LIBVER`
6305 rm t.pl
6306 if test "x$SPEEX" = "x0" ; then
6307 { echo "$as_me:$LINENO: result: OPAL version is more recent" >&5
6308 echo "${ECHO_T}OPAL version is more recent" >&6; }
6309 else
6310 { echo "$as_me:$LINENO: result: system version is more recent" >&5
6311 echo "${ECHO_T}system version is more recent" >&6; }
6312 cat >>confdefs.h <<\_ACEOF
6313 #define OPAL_SYSTEM_SPEEX 1
6314 _ACEOF
6316 OPAL_SYSTEM_SPEEX=1
6318 { echo "$as_me:$LINENO: checking Speex noise type" >&5
6319 echo $ECHO_N "checking Speex noise type... $ECHO_C" >&6; }
6320 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
6321 echo "#include <speex.h>" > t.c
6322 echo "#include <speex_preprocess.h>" >> t.c
6323 else
6324 echo "#include <speex/speex.h>" > t.c
6325 echo "#include <speex/speex_preprocess.h>" >> t.c
6327 cat >> t.c <<C_FILE
6328 #include <stdio.h>
6329 int main(int argc,char *argv)
6331 struct SpeexPreprocessState *st;
6332 spx_int16_t *x;
6333 float *echo;
6334 speex_preprocess(st, x, echo);
6336 C_FILE
6337 rm -f t
6338 cc -Werror -o t t.c -lspeex > /dev/null 2>&1
6339 if test \! -x t ; then
6340 { echo "$as_me:$LINENO: result: spx_int32_t" >&5
6341 echo "${ECHO_T}spx_int32_t" >&6; }
6342 else
6343 { echo "$as_me:$LINENO: result: float" >&5
6344 echo "${ECHO_T}float" >&6; }
6345 cat >>confdefs.h <<\_ACEOF
6346 #define OPAL_SPEEX_FLOAT_NOISE 1
6347 _ACEOF
6352 rm -f t t.c
6360 # Check whether --enable-audio was given.
6361 if test "${enable_audio+set}" = set; then
6362 enableval=$enable_audio; audio=$enableval
6365 { echo "$as_me:$LINENO: checking audio codec support" >&5
6366 echo $ECHO_N "checking audio codec support... $ECHO_C" >&6; }
6367 if test "$audio" = "yes" ; then
6368 OPAL_AUDIO=1
6370 cat >>confdefs.h <<\_ACEOF
6371 #define OPAL_AUDIO 1
6372 _ACEOF
6374 { echo "$as_me:$LINENO: result: enabled" >&5
6375 echo "${ECHO_T}enabled" >&6; }
6376 else
6377 { echo "$as_me:$LINENO: result: disabled" >&5
6378 echo "${ECHO_T}disabled" >&6; }
6384 # Check whether --enable-video was given.
6385 if test "${enable_video+set}" = set; then
6386 enableval=$enable_video; video=$enableval
6389 { echo "$as_me:$LINENO: checking video device support" >&5
6390 echo $ECHO_N "checking video device support... $ECHO_C" >&6; }
6391 if test "$video" = "yes" ; then
6392 OPAL_VIDEO=1
6394 cat >>confdefs.h <<\_ACEOF
6395 #define OPAL_VIDEO 1
6396 _ACEOF
6398 { echo "$as_me:$LINENO: result: enabled" >&5
6399 echo "${ECHO_T}enabled" >&6; }
6400 else
6401 { echo "$as_me:$LINENO: result: disabled" >&5
6402 echo "${ECHO_T}disabled" >&6; }
6403 rfc4175=no
6408 # Check whether --enable-sip was given.
6409 if test "${enable_sip+set}" = set; then
6410 enableval=$enable_sip; sip=$enableval
6413 { echo "$as_me:$LINENO: checking SIP protocol" >&5
6414 echo $ECHO_N "checking SIP protocol... $ECHO_C" >&6; }
6415 if test "$sip" = "yes" ; then
6416 OPAL_SIP=1
6418 cat >>confdefs.h <<\_ACEOF
6419 #define OPAL_SIP 1
6420 _ACEOF
6422 { echo "$as_me:$LINENO: result: enabled" >&5
6423 echo "${ECHO_T}enabled" >&6; }
6424 else
6425 { echo "$as_me:$LINENO: result: disabled" >&5
6426 echo "${ECHO_T}disabled" >&6; }
6431 # Check whether --enable-h323 was given.
6432 if test "${enable_h323+set}" = set; then
6433 enableval=$enable_h323; h323=$enableval
6436 { echo "$as_me:$LINENO: checking H.323 protocol" >&5
6437 echo $ECHO_N "checking H.323 protocol... $ECHO_C" >&6; }
6438 if test "$h323" = "yes" ; then
6439 OPAL_H323=1
6441 cat >>confdefs.h <<\_ACEOF
6442 #define OPAL_H323 1
6443 _ACEOF
6445 { echo "$as_me:$LINENO: result: enabled" >&5
6446 echo "${ECHO_T}enabled" >&6; }
6447 else
6448 OPAL_H323=0
6450 { echo "$as_me:$LINENO: result: disabled (T.38, H.224, H.460 also disabled)" >&5
6451 echo "${ECHO_T}disabled (T.38, H.224, H.460 also disabled)" >&6; }
6452 h224=no
6453 h460=no
6455 OPAL_H323=$OPAL_H323
6460 # Check whether --enable-iax was given.
6461 if test "${enable_iax+set}" = set; then
6462 enableval=$enable_iax; iax=$enableval
6465 { echo "$as_me:$LINENO: checking IAX2 protocol" >&5
6466 echo $ECHO_N "checking IAX2 protocol... $ECHO_C" >&6; }
6467 if test "$iax" = "yes" ; then
6468 OPAL_IAX2=1
6470 cat >>confdefs.h <<\_ACEOF
6471 #define OPAL_IAX2 1
6472 _ACEOF
6474 { echo "$as_me:$LINENO: result: enabled" >&5
6475 echo "${ECHO_T}enabled" >&6; }
6476 else
6477 { echo "$as_me:$LINENO: result: disabled" >&5
6478 echo "${ECHO_T}disabled" >&6; }
6483 # Check whether --enable-h224 was given.
6484 if test "${enable_h224+set}" = set; then
6485 enableval=$enable_h224; h224=$enableval
6488 { echo "$as_me:$LINENO: checking H224 protocol" >&5
6489 echo $ECHO_N "checking H224 protocol... $ECHO_C" >&6; }
6490 if test "$h224" = "yes" ; then
6491 OPAL_H224=1
6493 cat >>confdefs.h <<\_ACEOF
6494 #define OPAL_H224 1
6495 _ACEOF
6497 { echo "$as_me:$LINENO: result: enabled" >&5
6498 echo "${ECHO_T}enabled" >&6; }
6499 else
6500 { echo "$as_me:$LINENO: result: disabled" >&5
6501 echo "${ECHO_T}disabled" >&6; }
6506 if test "$t38" = "yes" ; then
6507 # Check whether --enable-t38 was given.
6508 if test "${enable_t38+set}" = set; then
6509 enableval=$enable_t38; t38=$enableval
6512 { echo "$as_me:$LINENO: checking T.38 protocol" >&5
6513 echo $ECHO_N "checking T.38 protocol... $ECHO_C" >&6; }
6514 if test "$t38" = "yes" ; then
6515 OPAL_T38FAX=1
6517 cat >>confdefs.h <<\_ACEOF
6518 #define OPAL_T38FAX 1
6519 _ACEOF
6521 { echo "$as_me:$LINENO: result: enabled" >&5
6522 echo "${ECHO_T}enabled" >&6; }
6523 else
6524 { echo "$as_me:$LINENO: result: disabled" >&5
6525 echo "${ECHO_T}disabled" >&6; }
6532 OPAL_450=
6533 if test "$h450" = "yes" ; then
6534 # Check whether --enable-h450 was given.
6535 if test "${enable_h450+set}" = set; then
6536 enableval=$enable_h450; h450=$enableval
6539 { echo "$as_me:$LINENO: checking H.450 support" >&5
6540 echo $ECHO_N "checking H.450 support... $ECHO_C" >&6; }
6541 if test "$h450" = "yes" ; then
6542 OPAL_H450=1
6544 cat >>confdefs.h <<\_ACEOF
6545 #define OPAL_H450 1
6546 _ACEOF
6548 { echo "$as_me:$LINENO: result: enabled" >&5
6549 echo "${ECHO_T}enabled" >&6; }
6550 else
6551 { echo "$as_me:$LINENO: result: disabled" >&5
6552 echo "${ECHO_T}disabled" >&6; }
6559 OPAL_460=
6560 if test "$h460" = "yes" ; then
6561 # Check whether --enable-h460 was given.
6562 if test "${enable_h460+set}" = set; then
6563 enableval=$enable_h460; h460=$enableval
6566 { echo "$as_me:$LINENO: checking H.460 support" >&5
6567 echo $ECHO_N "checking H.460 support... $ECHO_C" >&6; }
6568 if test "$h460" = "yes" ; then
6569 OPAL_H460=1
6571 cat >>confdefs.h <<\_ACEOF
6572 #define OPAL_H460 1
6573 _ACEOF
6575 { echo "$as_me:$LINENO: result: enabled" >&5
6576 echo "${ECHO_T}enabled" >&6; }
6577 else
6578 { echo "$as_me:$LINENO: result: disabled" >&5
6579 echo "${ECHO_T}disabled" >&6; }
6586 OPAL_LID=
6587 lid=yes
6588 if test "$lid" = "yes" ; then
6589 # Check whether --enable-lid was given.
6590 if test "${enable_lid+set}" = set; then
6591 enableval=$enable_lid; lid=$enableval
6594 { echo "$as_me:$LINENO: checking LID support" >&5
6595 echo $ECHO_N "checking LID support... $ECHO_C" >&6; }
6596 if test "$lid" = "yes" ; then
6597 cat >>confdefs.h <<\_ACEOF
6598 #define OPAL_LID 1
6599 _ACEOF
6601 OPAL_LID=1
6602 { echo "$as_me:$LINENO: result: enabled" >&5
6603 echo "${ECHO_T}enabled" >&6; }
6604 else
6605 { echo "$as_me:$LINENO: result: disabled" >&5
6606 echo "${ECHO_T}disabled" >&6; }
6613 ivr=yes
6614 if test "$ivr" = "yes" ; then
6615 # Check whether --enable-ivr was given.
6616 if test "${enable_ivr+set}" = set; then
6617 enableval=$enable_ivr; ivr=$enableval
6620 { echo "$as_me:$LINENO: checking IVR support" >&5
6621 echo $ECHO_N "checking IVR support... $ECHO_C" >&6; }
6622 if test "$ivr" = "yes" ; then
6623 cat >>confdefs.h <<\_ACEOF
6624 #define OPAL_IVR 1
6625 _ACEOF
6627 OPAL_IVR=1
6628 { echo "$as_me:$LINENO: result: enabled" >&5
6629 echo "${ECHO_T}enabled" >&6; }
6630 else
6631 { echo "$as_me:$LINENO: result: disabled" >&5
6632 echo "${ECHO_T}disabled" >&6; }
6640 if test "$rfc4175" = "yes" ; then
6641 # Check whether --enable-rfc4175 was given.
6642 if test "${enable_rfc4175+set}" = set; then
6643 enableval=$enable_rfc4175; rfc4175=$enableval
6646 { echo "$as_me:$LINENO: checking RFC4175 codec" >&5
6647 echo $ECHO_N "checking RFC4175 codec... $ECHO_C" >&6; }
6648 if test "$rfc4175" = "yes" ; then
6649 cat >>confdefs.h <<\_ACEOF
6650 #define OPAL_RFC4175 1
6651 _ACEOF
6653 OPAL_RFC4175=1
6654 { echo "$as_me:$LINENO: result: enabled" >&5
6655 echo "${ECHO_T}enabled" >&6; }
6656 else
6657 { echo "$as_me:$LINENO: result: disabled" >&5
6658 echo "${ECHO_T}disabled" >&6; }
6665 HAS_LIBZRTP=
6672 HAS_LIBSRTP=
6673 { echo "$as_me:$LINENO: checking for libSRTP" >&5
6674 echo $ECHO_N "checking for libSRTP... $ECHO_C" >&6; }
6675 cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h. */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 #include "srtp/srtp.h"
6683 main ()
6685 int main(int argc, char *argv[]) { crypto_policy_t p; p.cipher_key_len = SRTP_MASTER_KEY_LEN; return 0; }
6687 return 0;
6689 _ACEOF
6690 rm -f conftest.$ac_objext
6691 if { (ac_try="$ac_compile"
6692 case "(($ac_try" in
6693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694 *) ac_try_echo=$ac_try;;
6695 esac
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697 (eval "$ac_compile") 2>conftest.er1
6698 ac_status=$?
6699 grep -v '^ *+' conftest.er1 >conftest.err
6700 rm -f conftest.er1
6701 cat conftest.err >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } && {
6704 test -z "$ac_c_werror_flag" ||
6705 test ! -s conftest.err
6706 } && test -s conftest.$ac_objext; then
6707 HAS_LIBSRTP=1
6708 else
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 if test "${HAS_LIBSRTP}" = "1" ; then
6717 { echo "$as_me:$LINENO: result: yes" >&5
6718 echo "${ECHO_T}yes" >&6; }
6719 cat >>confdefs.h <<\_ACEOF
6720 #define HAS_LIBSRTP 1
6721 _ACEOF
6723 HAS_LIBSRTP=1
6724 OPAL_SRTP=1
6725 else
6726 { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6735 ac_aux_dir=
6736 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6737 if test -f "$ac_dir/install-sh"; then
6738 ac_aux_dir=$ac_dir
6739 ac_install_sh="$ac_aux_dir/install-sh -c"
6740 break
6741 elif test -f "$ac_dir/install.sh"; then
6742 ac_aux_dir=$ac_dir
6743 ac_install_sh="$ac_aux_dir/install.sh -c"
6744 break
6745 elif test -f "$ac_dir/shtool"; then
6746 ac_aux_dir=$ac_dir
6747 ac_install_sh="$ac_aux_dir/shtool install -c"
6748 break
6750 done
6751 if test -z "$ac_aux_dir"; then
6752 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
6753 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
6754 { (exit 1); exit 1; }; }
6757 # These three variables are undocumented and unsupported,
6758 # and are intended to be withdrawn in a future Autoconf release.
6759 # They can cause serious problems if a builder's source tree is in a directory
6760 # whose full name contains unusual characters.
6761 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6762 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6763 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6766 # Find a good install program. We prefer a C program (faster),
6767 # so one script is as good as another. But avoid the broken or
6768 # incompatible versions:
6769 # SysV /etc/install, /usr/sbin/install
6770 # SunOS /usr/etc/install
6771 # IRIX /sbin/install
6772 # AIX /bin/install
6773 # AmigaOS /C/install, which installs bootblocks on floppy discs
6774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6777 # OS/2's system install, which has a completely different semantic
6778 # ./install, which can be erroneously created by make from ./install.sh.
6779 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6780 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6781 if test -z "$INSTALL"; then
6782 if test "${ac_cv_path_install+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 # Account for people who put trailing slashes in PATH elements.
6791 case $as_dir/ in
6792 ./ | .// | /cC/* | \
6793 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6794 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6795 /usr/ucb/* ) ;;
6797 # OSF1 and SCO ODT 3.0 have their own names for install.
6798 # Don't use installbsd from OSF since it installs stuff as root
6799 # by default.
6800 for ac_prog in ginstall scoinst install; do
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6803 if test $ac_prog = install &&
6804 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6805 # AIX install. It has an incompatible calling convention.
6807 elif test $ac_prog = install &&
6808 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6809 # program-specific install script used by HP pwplus--don't use.
6811 else
6812 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6813 break 3
6816 done
6817 done
6819 esac
6820 done
6821 IFS=$as_save_IFS
6825 if test "${ac_cv_path_install+set}" = set; then
6826 INSTALL=$ac_cv_path_install
6827 else
6828 # As a last resort, use the slow shell script. Don't cache a
6829 # value for INSTALL within a source directory, because that will
6830 # break other packages using the cache if that directory is
6831 # removed, or if the value is a relative name.
6832 INSTALL=$ac_install_sh
6835 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6836 echo "${ECHO_T}$INSTALL" >&6; }
6838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6839 # It thinks the first close brace ends the variable substitution.
6840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6842 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6844 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6848 subdirs="$subdirs plugins"
6852 ac_config_files="$ac_config_files opal_inc.mak"
6854 ac_config_files="$ac_config_files Makefile"
6856 ac_config_headers="$ac_config_headers include/opal/buildopts.h"
6858 ac_config_files="$ac_config_files opal.pc"
6860 ac_config_files="$ac_config_files opal.spec"
6862 ac_config_files="$ac_config_files opal_cfg.dxy"
6865 ac_config_files="$ac_config_files src/codec/speex/libspeex/speex_config_types.h"
6867 cat >confcache <<\_ACEOF
6868 # This file is a shell script that caches the results of configure
6869 # tests run on this system so they can be shared between configure
6870 # scripts and configure runs, see configure's option --config-cache.
6871 # It is not useful on other systems. If it contains results you don't
6872 # want to keep, you may remove or edit it.
6874 # config.status only pays attention to the cache file if you give it
6875 # the --recheck option to rerun configure.
6877 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6878 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6879 # following values.
6881 _ACEOF
6883 # The following way of writing the cache mishandles newlines in values,
6884 # but we know of no workaround that is simple, portable, and efficient.
6885 # So, we kill variables containing newlines.
6886 # Ultrix sh set writes to stderr and can't be redirected directly,
6887 # and sets the high bit in the cache file unless we assign to the vars.
6889 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6890 eval ac_val=\$$ac_var
6891 case $ac_val in #(
6892 *${as_nl}*)
6893 case $ac_var in #(
6894 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6895 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6896 esac
6897 case $ac_var in #(
6898 _ | IFS | as_nl) ;; #(
6899 *) $as_unset $ac_var ;;
6900 esac ;;
6901 esac
6902 done
6904 (set) 2>&1 |
6905 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6906 *${as_nl}ac_space=\ *)
6907 # `set' does not quote correctly, so add quotes (double-quote
6908 # substitution turns \\\\ into \\, and sed turns \\ into \).
6909 sed -n \
6910 "s/'/'\\\\''/g;
6911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6912 ;; #(
6914 # `set' quotes correctly as required by POSIX, so do not add quotes.
6915 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6917 esac |
6918 sort
6920 sed '
6921 /^ac_cv_env_/b end
6922 t clear
6923 :clear
6924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6925 t end
6926 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6927 :end' >>confcache
6928 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6929 if test -w "$cache_file"; then
6930 test "x$cache_file" != "x/dev/null" &&
6931 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6932 echo "$as_me: updating cache $cache_file" >&6;}
6933 cat confcache >$cache_file
6934 else
6935 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6936 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6939 rm -f confcache
6941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6942 # Let make expand exec_prefix.
6943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6945 DEFS=-DHAVE_CONFIG_H
6947 ac_libobjs=
6948 ac_ltlibobjs=
6949 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6950 # 1. Remove the extension, and $U if already installed.
6951 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6952 ac_i=`echo "$ac_i" | sed "$ac_script"`
6953 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6954 # will be set to the directory where LIBOBJS objects are built.
6955 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6956 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6957 done
6958 LIBOBJS=$ac_libobjs
6960 LTLIBOBJS=$ac_ltlibobjs
6964 : ${CONFIG_STATUS=./config.status}
6965 ac_clean_files_save=$ac_clean_files
6966 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6967 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6968 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6969 cat >$CONFIG_STATUS <<_ACEOF
6970 #! $SHELL
6971 # Generated by $as_me.
6972 # Run this file to recreate the current configuration.
6973 # Compiler output produced by configure, useful for debugging
6974 # configure, is in config.log if it exists.
6976 debug=false
6977 ac_cs_recheck=false
6978 ac_cs_silent=false
6979 SHELL=\${CONFIG_SHELL-$SHELL}
6980 _ACEOF
6982 cat >>$CONFIG_STATUS <<\_ACEOF
6983 ## --------------------- ##
6984 ## M4sh Initialization. ##
6985 ## --------------------- ##
6987 # Be more Bourne compatible
6988 DUALCASE=1; export DUALCASE # for MKS sh
6989 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6990 emulate sh
6991 NULLCMD=:
6992 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6993 # is contrary to our usage. Disable this feature.
6994 alias -g '${1+"$@"}'='"$@"'
6995 setopt NO_GLOB_SUBST
6996 else
6997 case `(set -o) 2>/dev/null` in
6998 *posix*) set -o posix ;;
6999 esac
7006 # PATH needs CR
7007 # Avoid depending upon Character Ranges.
7008 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7009 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7010 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7011 as_cr_digits='0123456789'
7012 as_cr_alnum=$as_cr_Letters$as_cr_digits
7014 # The user is always right.
7015 if test "${PATH_SEPARATOR+set}" != set; then
7016 echo "#! /bin/sh" >conf$$.sh
7017 echo "exit 0" >>conf$$.sh
7018 chmod +x conf$$.sh
7019 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7020 PATH_SEPARATOR=';'
7021 else
7022 PATH_SEPARATOR=:
7024 rm -f conf$$.sh
7027 # Support unset when possible.
7028 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7029 as_unset=unset
7030 else
7031 as_unset=false
7035 # IFS
7036 # We need space, tab and new line, in precisely that order. Quoting is
7037 # there to prevent editors from complaining about space-tab.
7038 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7039 # splitting by setting IFS to empty value.)
7040 as_nl='
7042 IFS=" "" $as_nl"
7044 # Find who we are. Look in the path if we contain no directory separator.
7045 case $0 in
7046 *[\\/]* ) as_myself=$0 ;;
7047 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7053 done
7054 IFS=$as_save_IFS
7057 esac
7058 # We did not find ourselves, most probably we were run as `sh COMMAND'
7059 # in which case we are not to be found in the path.
7060 if test "x$as_myself" = x; then
7061 as_myself=$0
7063 if test ! -f "$as_myself"; then
7064 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7065 { (exit 1); exit 1; }
7068 # Work around bugs in pre-3.0 UWIN ksh.
7069 for as_var in ENV MAIL MAILPATH
7070 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7071 done
7072 PS1='$ '
7073 PS2='> '
7074 PS4='+ '
7076 # NLS nuisances.
7077 for as_var in \
7078 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7079 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7080 LC_TELEPHONE LC_TIME
7082 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7083 eval $as_var=C; export $as_var
7084 else
7085 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7087 done
7089 # Required to use basename.
7090 if expr a : '\(a\)' >/dev/null 2>&1 &&
7091 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7092 as_expr=expr
7093 else
7094 as_expr=false
7097 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7098 as_basename=basename
7099 else
7100 as_basename=false
7104 # Name of the executable.
7105 as_me=`$as_basename -- "$0" ||
7106 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7107 X"$0" : 'X\(//\)$' \| \
7108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7109 echo X/"$0" |
7110 sed '/^.*\/\([^/][^/]*\)\/*$/{
7111 s//\1/
7114 /^X\/\(\/\/\)$/{
7115 s//\1/
7118 /^X\/\(\/\).*/{
7119 s//\1/
7122 s/.*/./; q'`
7124 # CDPATH.
7125 $as_unset CDPATH
7129 as_lineno_1=$LINENO
7130 as_lineno_2=$LINENO
7131 test "x$as_lineno_1" != "x$as_lineno_2" &&
7132 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7134 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7135 # uniformly replaced by the line number. The first 'sed' inserts a
7136 # line-number line after each line using $LINENO; the second 'sed'
7137 # does the real work. The second script uses 'N' to pair each
7138 # line-number line with the line containing $LINENO, and appends
7139 # trailing '-' during substitution so that $LINENO is not a special
7140 # case at line end.
7141 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7142 # scripts with optimization help from Paolo Bonzini. Blame Lee
7143 # E. McMahon (1931-1989) for sed's syntax. :-)
7144 sed -n '
7146 /[$]LINENO/=
7147 ' <$as_myself |
7148 sed '
7149 s/[$]LINENO.*/&-/
7150 t lineno
7152 :lineno
7154 :loop
7155 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7156 t loop
7157 s/-\n.*//
7158 ' >$as_me.lineno &&
7159 chmod +x "$as_me.lineno" ||
7160 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7161 { (exit 1); exit 1; }; }
7163 # Don't try to exec as it changes $[0], causing all sort of problems
7164 # (the dirname of $[0] is not the place where we might find the
7165 # original and so on. Autoconf is especially sensitive to this).
7166 . "./$as_me.lineno"
7167 # Exit status is that of the last command.
7168 exit
7172 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7173 as_dirname=dirname
7174 else
7175 as_dirname=false
7178 ECHO_C= ECHO_N= ECHO_T=
7179 case `echo -n x` in
7180 -n*)
7181 case `echo 'x\c'` in
7182 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7183 *) ECHO_C='\c';;
7184 esac;;
7186 ECHO_N='-n';;
7187 esac
7189 if expr a : '\(a\)' >/dev/null 2>&1 &&
7190 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7191 as_expr=expr
7192 else
7193 as_expr=false
7196 rm -f conf$$ conf$$.exe conf$$.file
7197 if test -d conf$$.dir; then
7198 rm -f conf$$.dir/conf$$.file
7199 else
7200 rm -f conf$$.dir
7201 mkdir conf$$.dir
7203 echo >conf$$.file
7204 if ln -s conf$$.file conf$$ 2>/dev/null; then
7205 as_ln_s='ln -s'
7206 # ... but there are two gotchas:
7207 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7208 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7209 # In both cases, we have to default to `cp -p'.
7210 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7211 as_ln_s='cp -p'
7212 elif ln conf$$.file conf$$ 2>/dev/null; then
7213 as_ln_s=ln
7214 else
7215 as_ln_s='cp -p'
7217 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7218 rmdir conf$$.dir 2>/dev/null
7220 if mkdir -p . 2>/dev/null; then
7221 as_mkdir_p=:
7222 else
7223 test -d ./-p && rmdir ./-p
7224 as_mkdir_p=false
7227 if test -x / >/dev/null 2>&1; then
7228 as_test_x='test -x'
7229 else
7230 if ls -dL / >/dev/null 2>&1; then
7231 as_ls_L_option=L
7232 else
7233 as_ls_L_option=
7235 as_test_x='
7236 eval sh -c '\''
7237 if test -d "$1"; then
7238 test -d "$1/.";
7239 else
7240 case $1 in
7241 -*)set "./$1";;
7242 esac;
7243 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7244 ???[sx]*):;;*)false;;esac;fi
7245 '\'' sh
7248 as_executable_p=$as_test_x
7250 # Sed expression to map a string onto a valid CPP name.
7251 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7253 # Sed expression to map a string onto a valid variable name.
7254 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7257 exec 6>&1
7259 # Save the log message, to keep $[0] and so on meaningful, and to
7260 # report actual input values of CONFIG_FILES etc. instead of their
7261 # values after options handling.
7262 ac_log="
7263 This file was extended by $as_me, which was
7264 generated by GNU Autoconf 2.61. Invocation command line was
7266 CONFIG_FILES = $CONFIG_FILES
7267 CONFIG_HEADERS = $CONFIG_HEADERS
7268 CONFIG_LINKS = $CONFIG_LINKS
7269 CONFIG_COMMANDS = $CONFIG_COMMANDS
7270 $ $0 $@
7272 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7275 _ACEOF
7277 cat >>$CONFIG_STATUS <<_ACEOF
7278 # Files that config.status was made for.
7279 config_files="$ac_config_files"
7280 config_headers="$ac_config_headers"
7282 _ACEOF
7284 cat >>$CONFIG_STATUS <<\_ACEOF
7285 ac_cs_usage="\
7286 \`$as_me' instantiates files from templates according to the
7287 current configuration.
7289 Usage: $0 [OPTIONS] [FILE]...
7291 -h, --help print this help, then exit
7292 -V, --version print version number and configuration settings, then exit
7293 -q, --quiet do not print progress messages
7294 -d, --debug don't remove temporary files
7295 --recheck update $as_me by reconfiguring in the same conditions
7296 --file=FILE[:TEMPLATE]
7297 instantiate the configuration file FILE
7298 --header=FILE[:TEMPLATE]
7299 instantiate the configuration header FILE
7301 Configuration files:
7302 $config_files
7304 Configuration headers:
7305 $config_headers
7307 Report bugs to <bug-autoconf@gnu.org>."
7309 _ACEOF
7310 cat >>$CONFIG_STATUS <<_ACEOF
7311 ac_cs_version="\\
7312 config.status
7313 configured by $0, generated by GNU Autoconf 2.61,
7314 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7316 Copyright (C) 2006 Free Software Foundation, Inc.
7317 This config.status script is free software; the Free Software Foundation
7318 gives unlimited permission to copy, distribute and modify it."
7320 ac_pwd='$ac_pwd'
7321 srcdir='$srcdir'
7322 INSTALL='$INSTALL'
7323 _ACEOF
7325 cat >>$CONFIG_STATUS <<\_ACEOF
7326 # If no file are specified by the user, then we need to provide default
7327 # value. By we need to know if files were specified by the user.
7328 ac_need_defaults=:
7329 while test $# != 0
7331 case $1 in
7332 --*=*)
7333 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7334 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7335 ac_shift=:
7338 ac_option=$1
7339 ac_optarg=$2
7340 ac_shift=shift
7342 esac
7344 case $ac_option in
7345 # Handling of the options.
7346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7347 ac_cs_recheck=: ;;
7348 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7349 echo "$ac_cs_version"; exit ;;
7350 --debug | --debu | --deb | --de | --d | -d )
7351 debug=: ;;
7352 --file | --fil | --fi | --f )
7353 $ac_shift
7354 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7355 ac_need_defaults=false;;
7356 --header | --heade | --head | --hea )
7357 $ac_shift
7358 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7359 ac_need_defaults=false;;
7360 --he | --h)
7361 # Conflict between --help and --header
7362 { echo "$as_me: error: ambiguous option: $1
7363 Try \`$0 --help' for more information." >&2
7364 { (exit 1); exit 1; }; };;
7365 --help | --hel | -h )
7366 echo "$ac_cs_usage"; exit ;;
7367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7369 ac_cs_silent=: ;;
7371 # This is an error.
7372 -*) { echo "$as_me: error: unrecognized option: $1
7373 Try \`$0 --help' for more information." >&2
7374 { (exit 1); exit 1; }; } ;;
7376 *) ac_config_targets="$ac_config_targets $1"
7377 ac_need_defaults=false ;;
7379 esac
7380 shift
7381 done
7383 ac_configure_extra_args=
7385 if $ac_cs_silent; then
7386 exec 6>/dev/null
7387 ac_configure_extra_args="$ac_configure_extra_args --silent"
7390 _ACEOF
7391 cat >>$CONFIG_STATUS <<_ACEOF
7392 if \$ac_cs_recheck; then
7393 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7394 CONFIG_SHELL=$SHELL
7395 export CONFIG_SHELL
7396 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7399 _ACEOF
7400 cat >>$CONFIG_STATUS <<\_ACEOF
7401 exec 5>>config.log
7403 echo
7404 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7405 ## Running $as_me. ##
7406 _ASBOX
7407 echo "$ac_log"
7408 } >&5
7410 _ACEOF
7411 cat >>$CONFIG_STATUS <<_ACEOF
7412 _ACEOF
7414 cat >>$CONFIG_STATUS <<\_ACEOF
7416 # Handling of arguments.
7417 for ac_config_target in $ac_config_targets
7419 case $ac_config_target in
7420 "opal_inc.mak") CONFIG_FILES="$CONFIG_FILES opal_inc.mak" ;;
7421 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7422 "include/opal/buildopts.h") CONFIG_HEADERS="$CONFIG_HEADERS include/opal/buildopts.h" ;;
7423 "opal.pc") CONFIG_FILES="$CONFIG_FILES opal.pc" ;;
7424 "opal.spec") CONFIG_FILES="$CONFIG_FILES opal.spec" ;;
7425 "opal_cfg.dxy") CONFIG_FILES="$CONFIG_FILES opal_cfg.dxy" ;;
7426 "src/codec/speex/libspeex/speex_config_types.h") CONFIG_FILES="$CONFIG_FILES src/codec/speex/libspeex/speex_config_types.h" ;;
7428 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7429 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7430 { (exit 1); exit 1; }; };;
7431 esac
7432 done
7435 # If the user did not use the arguments to specify the items to instantiate,
7436 # then the envvar interface is used. Set only those that are not.
7437 # We use the long form for the default assignment because of an extremely
7438 # bizarre bug on SunOS 4.1.3.
7439 if $ac_need_defaults; then
7440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7444 # Have a temporary directory for convenience. Make it in the build tree
7445 # simply because there is no reason against having it here, and in addition,
7446 # creating and moving files from /tmp can sometimes cause problems.
7447 # Hook for its removal unless debugging.
7448 # Note that there is a small window in which the directory will not be cleaned:
7449 # after its creation but before its name has been assigned to `$tmp'.
7450 $debug ||
7452 tmp=
7453 trap 'exit_status=$?
7454 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7456 trap '{ (exit 1); exit 1; }' 1 2 13 15
7458 # Create a (secure) tmp directory for tmp files.
7461 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7462 test -n "$tmp" && test -d "$tmp"
7463 } ||
7465 tmp=./conf$$-$RANDOM
7466 (umask 077 && mkdir "$tmp")
7467 } ||
7469 echo "$me: cannot create a temporary directory in ." >&2
7470 { (exit 1); exit 1; }
7474 # Set up the sed scripts for CONFIG_FILES section.
7477 # No need to generate the scripts if there are no CONFIG_FILES.
7478 # This happens for instance when ./config.status config.h
7479 if test -n "$CONFIG_FILES"; then
7481 _ACEOF
7485 ac_delim='%!_!# '
7486 for ac_last_try in false false false false false :; do
7487 cat >conf$$subs.sed <<_ACEOF
7488 SHELL!$SHELL$ac_delim
7489 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7490 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7491 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7492 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7493 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7494 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7495 exec_prefix!$exec_prefix$ac_delim
7496 prefix!$prefix$ac_delim
7497 program_transform_name!$program_transform_name$ac_delim
7498 bindir!$bindir$ac_delim
7499 sbindir!$sbindir$ac_delim
7500 libexecdir!$libexecdir$ac_delim
7501 datarootdir!$datarootdir$ac_delim
7502 datadir!$datadir$ac_delim
7503 sysconfdir!$sysconfdir$ac_delim
7504 sharedstatedir!$sharedstatedir$ac_delim
7505 localstatedir!$localstatedir$ac_delim
7506 includedir!$includedir$ac_delim
7507 oldincludedir!$oldincludedir$ac_delim
7508 docdir!$docdir$ac_delim
7509 infodir!$infodir$ac_delim
7510 htmldir!$htmldir$ac_delim
7511 dvidir!$dvidir$ac_delim
7512 pdfdir!$pdfdir$ac_delim
7513 psdir!$psdir$ac_delim
7514 libdir!$libdir$ac_delim
7515 localedir!$localedir$ac_delim
7516 mandir!$mandir$ac_delim
7517 DEFS!$DEFS$ac_delim
7518 ECHO_C!$ECHO_C$ac_delim
7519 ECHO_N!$ECHO_N$ac_delim
7520 ECHO_T!$ECHO_T$ac_delim
7521 LIBS!$LIBS$ac_delim
7522 build_alias!$build_alias$ac_delim
7523 host_alias!$host_alias$ac_delim
7524 target_alias!$target_alias$ac_delim
7525 CC!$CC$ac_delim
7526 CFLAGS!$CFLAGS$ac_delim
7527 LDFLAGS!$LDFLAGS$ac_delim
7528 CPPFLAGS!$CPPFLAGS$ac_delim
7529 ac_ct_CC!$ac_ct_CC$ac_delim
7530 EXEEXT!$EXEEXT$ac_delim
7531 OBJEXT!$OBJEXT$ac_delim
7532 CXX!$CXX$ac_delim
7533 CXXFLAGS!$CXXFLAGS$ac_delim
7534 ac_ct_CXX!$ac_ct_CXX$ac_delim
7535 OPALDIR!$OPALDIR$ac_delim
7536 INSTALLPREFIX!$INSTALLPREFIX$ac_delim
7537 LIBDIR!$LIBDIR$ac_delim
7538 OPAL_VERSION!$OPAL_VERSION$ac_delim
7539 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
7540 PWLIBDIR!$PWLIBDIR$ac_delim
7541 GCC_HAS_CLZ!$GCC_HAS_CLZ$ac_delim
7542 CPP!$CPP$ac_delim
7543 GREP!$GREP$ac_delim
7544 EGREP!$EGREP$ac_delim
7545 SIZE16!$SIZE16$ac_delim
7546 SIZE32!$SIZE32$ac_delim
7547 OPAL_SYSTEM_SPEEX!$OPAL_SYSTEM_SPEEX$ac_delim
7548 OPAL_HAVE_SPEEX_SPEEX_H!$OPAL_HAVE_SPEEX_SPEEX_H$ac_delim
7549 OPAL_AUDIO!$OPAL_AUDIO$ac_delim
7550 OPAL_VIDEO!$OPAL_VIDEO$ac_delim
7551 OPAL_SIP!$OPAL_SIP$ac_delim
7552 OPAL_H323!$OPAL_H323$ac_delim
7553 OPAL_IAX2!$OPAL_IAX2$ac_delim
7554 OPAL_H224!$OPAL_H224$ac_delim
7555 OPAL_T38FAX!$OPAL_T38FAX$ac_delim
7556 OPAL_H450!$OPAL_H450$ac_delim
7557 OPAL_H460!$OPAL_H460$ac_delim
7558 OPAL_LID!$OPAL_LID$ac_delim
7559 OPAL_IVR!$OPAL_IVR$ac_delim
7560 OPAL_RFC4175!$OPAL_RFC4175$ac_delim
7561 OPAL_ZRTP!$OPAL_ZRTP$ac_delim
7562 HAS_LIBZRTP!$HAS_LIBZRTP$ac_delim
7563 OPAL_SRTP!$OPAL_SRTP$ac_delim
7564 HAS_LIBSRTP!$HAS_LIBSRTP$ac_delim
7565 STDCCFLAGS!$STDCCFLAGS$ac_delim
7566 ENDLDLIBS!$ENDLDLIBS$ac_delim
7567 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7568 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7569 INSTALL_DATA!$INSTALL_DATA$ac_delim
7570 subdirs!$subdirs$ac_delim
7571 LIBOBJS!$LIBOBJS$ac_delim
7572 LTLIBOBJS!$LTLIBOBJS$ac_delim
7573 _ACEOF
7575 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
7576 break
7577 elif $ac_last_try; then
7578 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7579 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7580 { (exit 1); exit 1; }; }
7581 else
7582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7584 done
7586 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7587 if test -n "$ac_eof"; then
7588 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7589 ac_eof=`expr $ac_eof + 1`
7592 cat >>$CONFIG_STATUS <<_ACEOF
7593 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7594 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7595 _ACEOF
7596 sed '
7597 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7598 s/^/s,@/; s/!/@,|#_!!_#|/
7601 s/'"$ac_delim"'$/,g/; t
7602 s/$/\\/; p
7603 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7604 ' >>$CONFIG_STATUS <conf$$subs.sed
7605 rm -f conf$$subs.sed
7606 cat >>$CONFIG_STATUS <<_ACEOF
7607 :end
7608 s/|#_!!_#|//g
7609 CEOF$ac_eof
7610 _ACEOF
7613 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7614 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7615 # trailing colons and then remove the whole line if VPATH becomes empty
7616 # (actually we leave an empty line to preserve line numbers).
7617 if test "x$srcdir" = x.; then
7618 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7619 s/:*\$(srcdir):*/:/
7620 s/:*\${srcdir}:*/:/
7621 s/:*@srcdir@:*/:/
7622 s/^\([^=]*=[ ]*\):*/\1/
7623 s/:*$//
7624 s/^[^=]*=[ ]*$//
7628 cat >>$CONFIG_STATUS <<\_ACEOF
7629 fi # test -n "$CONFIG_FILES"
7632 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7634 case $ac_tag in
7635 :[FHLC]) ac_mode=$ac_tag; continue;;
7636 esac
7637 case $ac_mode$ac_tag in
7638 :[FHL]*:*);;
7639 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7640 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7641 { (exit 1); exit 1; }; };;
7642 :[FH]-) ac_tag=-:-;;
7643 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7644 esac
7645 ac_save_IFS=$IFS
7646 IFS=:
7647 set x $ac_tag
7648 IFS=$ac_save_IFS
7649 shift
7650 ac_file=$1
7651 shift
7653 case $ac_mode in
7654 :L) ac_source=$1;;
7655 :[FH])
7656 ac_file_inputs=
7657 for ac_f
7659 case $ac_f in
7660 -) ac_f="$tmp/stdin";;
7661 *) # Look for the file first in the build tree, then in the source tree
7662 # (if the path is not absolute). The absolute path cannot be DOS-style,
7663 # because $ac_f cannot contain `:'.
7664 test -f "$ac_f" ||
7665 case $ac_f in
7666 [\\/$]*) false;;
7667 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7668 esac ||
7669 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7670 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7671 { (exit 1); exit 1; }; };;
7672 esac
7673 ac_file_inputs="$ac_file_inputs $ac_f"
7674 done
7676 # Let's still pretend it is `configure' which instantiates (i.e., don't
7677 # use $as_me), people would be surprised to read:
7678 # /* config.h. Generated by config.status. */
7679 configure_input="Generated from "`IFS=:
7680 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7681 if test x"$ac_file" != x-; then
7682 configure_input="$ac_file. $configure_input"
7683 { echo "$as_me:$LINENO: creating $ac_file" >&5
7684 echo "$as_me: creating $ac_file" >&6;}
7687 case $ac_tag in
7688 *:-:* | *:-) cat >"$tmp/stdin";;
7689 esac
7691 esac
7693 ac_dir=`$as_dirname -- "$ac_file" ||
7694 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7695 X"$ac_file" : 'X\(//\)[^/]' \| \
7696 X"$ac_file" : 'X\(//\)$' \| \
7697 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7698 echo X"$ac_file" |
7699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7700 s//\1/
7703 /^X\(\/\/\)[^/].*/{
7704 s//\1/
7707 /^X\(\/\/\)$/{
7708 s//\1/
7711 /^X\(\/\).*/{
7712 s//\1/
7715 s/.*/./; q'`
7716 { as_dir="$ac_dir"
7717 case $as_dir in #(
7718 -*) as_dir=./$as_dir;;
7719 esac
7720 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7721 as_dirs=
7722 while :; do
7723 case $as_dir in #(
7724 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7725 *) as_qdir=$as_dir;;
7726 esac
7727 as_dirs="'$as_qdir' $as_dirs"
7728 as_dir=`$as_dirname -- "$as_dir" ||
7729 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7730 X"$as_dir" : 'X\(//\)[^/]' \| \
7731 X"$as_dir" : 'X\(//\)$' \| \
7732 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7733 echo X"$as_dir" |
7734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7735 s//\1/
7738 /^X\(\/\/\)[^/].*/{
7739 s//\1/
7742 /^X\(\/\/\)$/{
7743 s//\1/
7746 /^X\(\/\).*/{
7747 s//\1/
7750 s/.*/./; q'`
7751 test -d "$as_dir" && break
7752 done
7753 test -z "$as_dirs" || eval "mkdir $as_dirs"
7754 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7755 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7756 { (exit 1); exit 1; }; }; }
7757 ac_builddir=.
7759 case "$ac_dir" in
7760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7762 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7763 # A ".." for each directory in $ac_dir_suffix.
7764 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7765 case $ac_top_builddir_sub in
7766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7768 esac ;;
7769 esac
7770 ac_abs_top_builddir=$ac_pwd
7771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7772 # for backward compatibility:
7773 ac_top_builddir=$ac_top_build_prefix
7775 case $srcdir in
7776 .) # We are building in place.
7777 ac_srcdir=.
7778 ac_top_srcdir=$ac_top_builddir_sub
7779 ac_abs_top_srcdir=$ac_pwd ;;
7780 [\\/]* | ?:[\\/]* ) # Absolute name.
7781 ac_srcdir=$srcdir$ac_dir_suffix;
7782 ac_top_srcdir=$srcdir
7783 ac_abs_top_srcdir=$srcdir ;;
7784 *) # Relative name.
7785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7786 ac_top_srcdir=$ac_top_build_prefix$srcdir
7787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7788 esac
7789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7792 case $ac_mode in
7795 # CONFIG_FILE
7798 case $INSTALL in
7799 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7800 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7801 esac
7802 _ACEOF
7804 cat >>$CONFIG_STATUS <<\_ACEOF
7805 # If the template does not know about datarootdir, expand it.
7806 # FIXME: This hack should be removed a few years after 2.60.
7807 ac_datarootdir_hack=; ac_datarootdir_seen=
7809 case `sed -n '/datarootdir/ {
7813 /@datadir@/p
7814 /@docdir@/p
7815 /@infodir@/p
7816 /@localedir@/p
7817 /@mandir@/p
7818 ' $ac_file_inputs` in
7819 *datarootdir*) ac_datarootdir_seen=yes;;
7820 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7821 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7822 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7823 _ACEOF
7824 cat >>$CONFIG_STATUS <<_ACEOF
7825 ac_datarootdir_hack='
7826 s&@datadir@&$datadir&g
7827 s&@docdir@&$docdir&g
7828 s&@infodir@&$infodir&g
7829 s&@localedir@&$localedir&g
7830 s&@mandir@&$mandir&g
7831 s&\\\${datarootdir}&$datarootdir&g' ;;
7832 esac
7833 _ACEOF
7835 # Neutralize VPATH when `$srcdir' = `.'.
7836 # Shell code in configure.ac might set extrasub.
7837 # FIXME: do we really want to maintain this feature?
7838 cat >>$CONFIG_STATUS <<_ACEOF
7839 sed "$ac_vpsub
7840 $extrasub
7841 _ACEOF
7842 cat >>$CONFIG_STATUS <<\_ACEOF
7844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7845 s&@configure_input@&$configure_input&;t t
7846 s&@top_builddir@&$ac_top_builddir_sub&;t t
7847 s&@srcdir@&$ac_srcdir&;t t
7848 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7849 s&@top_srcdir@&$ac_top_srcdir&;t t
7850 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7851 s&@builddir@&$ac_builddir&;t t
7852 s&@abs_builddir@&$ac_abs_builddir&;t t
7853 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7854 s&@INSTALL@&$ac_INSTALL&;t t
7855 $ac_datarootdir_hack
7856 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7858 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7859 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7860 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7861 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7862 which seems to be undefined. Please make sure it is defined." >&5
7863 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7864 which seems to be undefined. Please make sure it is defined." >&2;}
7866 rm -f "$tmp/stdin"
7867 case $ac_file in
7868 -) cat "$tmp/out"; rm -f "$tmp/out";;
7869 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7870 esac
7874 # CONFIG_HEADER
7876 _ACEOF
7878 # Transform confdefs.h into a sed script `conftest.defines', that
7879 # substitutes the proper values into config.h.in to produce config.h.
7880 rm -f conftest.defines conftest.tail
7881 # First, append a space to every undef/define line, to ease matching.
7882 echo 's/$/ /' >conftest.defines
7883 # Then, protect against being on the right side of a sed subst, or in
7884 # an unquoted here document, in config.status. If some macros were
7885 # called several times there might be several #defines for the same
7886 # symbol, which is useless. But do not sort them, since the last
7887 # AC_DEFINE must be honored.
7888 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7889 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7890 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7891 # PARAMS is the parameter list in the macro definition--in most cases, it's
7892 # just an empty string.
7893 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7894 ac_dB='\\)[ (].*,\\1define\\2'
7895 ac_dC=' '
7896 ac_dD=' ,'
7898 uniq confdefs.h |
7899 sed -n '
7900 t rset
7901 :rset
7902 s/^[ ]*#[ ]*define[ ][ ]*//
7903 t ok
7906 s/[\\&,]/\\&/g
7907 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7908 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7909 ' >>conftest.defines
7911 # Remove the space that was appended to ease matching.
7912 # Then replace #undef with comments. This is necessary, for
7913 # example, in the case of _POSIX_SOURCE, which is predefined and required
7914 # on some systems where configure will not decide to define it.
7915 # (The regexp can be short, since the line contains either #define or #undef.)
7916 echo 's/ $//
7917 s,^[ #]*u.*,/* & */,' >>conftest.defines
7919 # Break up conftest.defines:
7920 ac_max_sed_lines=50
7922 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7923 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7924 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7925 # et cetera.
7926 ac_in='$ac_file_inputs'
7927 ac_out='"$tmp/out1"'
7928 ac_nxt='"$tmp/out2"'
7930 while :
7932 # Write a here document:
7933 cat >>$CONFIG_STATUS <<_ACEOF
7934 # First, check the format of the line:
7935 cat >"\$tmp/defines.sed" <<\\CEOF
7936 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7937 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7939 :def
7940 _ACEOF
7941 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7942 echo 'CEOF
7943 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7944 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7945 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7946 grep . conftest.tail >/dev/null || break
7947 rm -f conftest.defines
7948 mv conftest.tail conftest.defines
7949 done
7950 rm -f conftest.defines conftest.tail
7952 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7953 cat >>$CONFIG_STATUS <<\_ACEOF
7954 if test x"$ac_file" != x-; then
7955 echo "/* $configure_input */" >"$tmp/config.h"
7956 cat "$ac_result" >>"$tmp/config.h"
7957 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7958 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7959 echo "$as_me: $ac_file is unchanged" >&6;}
7960 else
7961 rm -f $ac_file
7962 mv "$tmp/config.h" $ac_file
7964 else
7965 echo "/* $configure_input */"
7966 cat "$ac_result"
7968 rm -f "$tmp/out12"
7972 esac
7974 done # for ac_tag
7977 { (exit 0); exit 0; }
7978 _ACEOF
7979 chmod +x $CONFIG_STATUS
7980 ac_clean_files=$ac_clean_files_save
7983 # configure is writing to config.log, and then calls config.status.
7984 # config.status does its own redirection, appending to config.log.
7985 # Unfortunately, on DOS this fails, as config.log is still kept open
7986 # by configure, so config.status won't be able to write to it; its
7987 # output is simply discarded. So we exec the FD to /dev/null,
7988 # effectively closing config.log, so it can be properly (re)opened and
7989 # appended to by config.status. When coming back to configure, we
7990 # need to make the FD available again.
7991 if test "$no_create" != yes; then
7992 ac_cs_success=:
7993 ac_config_status_args=
7994 test "$silent" = yes &&
7995 ac_config_status_args="$ac_config_status_args --quiet"
7996 exec 5>/dev/null
7997 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7998 exec 5>>config.log
7999 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8000 # would make configure fail if this is the last instruction.
8001 $ac_cs_success || { (exit 1); exit 1; }
8005 # CONFIG_SUBDIRS section.
8007 if test "$no_recursion" != yes; then
8009 # Remove --cache-file and --srcdir arguments so they do not pile up.
8010 ac_sub_configure_args=
8011 ac_prev=
8012 eval "set x $ac_configure_args"
8013 shift
8014 for ac_arg
8016 if test -n "$ac_prev"; then
8017 ac_prev=
8018 continue
8020 case $ac_arg in
8021 -cache-file | --cache-file | --cache-fil | --cache-fi \
8022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8023 ac_prev=cache_file ;;
8024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8026 | --c=*)
8028 --config-cache | -C)
8030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8031 ac_prev=srcdir ;;
8032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8035 ac_prev=prefix ;;
8036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8039 case $ac_arg in
8040 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8041 esac
8042 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
8043 esac
8044 done
8046 # Always prepend --prefix to ensure using the same prefix
8047 # in subdir configurations.
8048 ac_arg="--prefix=$prefix"
8049 case $ac_arg in
8050 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8051 esac
8052 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8054 # Pass --silent
8055 if test "$silent" = yes; then
8056 ac_sub_configure_args="--silent $ac_sub_configure_args"
8059 ac_popdir=`pwd`
8060 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8062 # Do not complain, so a configure script can configure whichever
8063 # parts of a large source tree are present.
8064 test -d "$srcdir/$ac_dir" || continue
8066 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8067 echo "$as_me:$LINENO: $ac_msg" >&5
8068 echo "$ac_msg" >&6
8069 { as_dir="$ac_dir"
8070 case $as_dir in #(
8071 -*) as_dir=./$as_dir;;
8072 esac
8073 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8074 as_dirs=
8075 while :; do
8076 case $as_dir in #(
8077 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8078 *) as_qdir=$as_dir;;
8079 esac
8080 as_dirs="'$as_qdir' $as_dirs"
8081 as_dir=`$as_dirname -- "$as_dir" ||
8082 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8083 X"$as_dir" : 'X\(//\)[^/]' \| \
8084 X"$as_dir" : 'X\(//\)$' \| \
8085 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8086 echo X"$as_dir" |
8087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8088 s//\1/
8091 /^X\(\/\/\)[^/].*/{
8092 s//\1/
8095 /^X\(\/\/\)$/{
8096 s//\1/
8099 /^X\(\/\).*/{
8100 s//\1/
8103 s/.*/./; q'`
8104 test -d "$as_dir" && break
8105 done
8106 test -z "$as_dirs" || eval "mkdir $as_dirs"
8107 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8108 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8109 { (exit 1); exit 1; }; }; }
8110 ac_builddir=.
8112 case "$ac_dir" in
8113 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8116 # A ".." for each directory in $ac_dir_suffix.
8117 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8118 case $ac_top_builddir_sub in
8119 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8120 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8121 esac ;;
8122 esac
8123 ac_abs_top_builddir=$ac_pwd
8124 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8125 # for backward compatibility:
8126 ac_top_builddir=$ac_top_build_prefix
8128 case $srcdir in
8129 .) # We are building in place.
8130 ac_srcdir=.
8131 ac_top_srcdir=$ac_top_builddir_sub
8132 ac_abs_top_srcdir=$ac_pwd ;;
8133 [\\/]* | ?:[\\/]* ) # Absolute name.
8134 ac_srcdir=$srcdir$ac_dir_suffix;
8135 ac_top_srcdir=$srcdir
8136 ac_abs_top_srcdir=$srcdir ;;
8137 *) # Relative name.
8138 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8139 ac_top_srcdir=$ac_top_build_prefix$srcdir
8140 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8141 esac
8142 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8145 cd "$ac_dir"
8147 # Check for guested configure; otherwise get Cygnus style configure.
8148 if test -f "$ac_srcdir/configure.gnu"; then
8149 ac_sub_configure=$ac_srcdir/configure.gnu
8150 elif test -f "$ac_srcdir/configure"; then
8151 ac_sub_configure=$ac_srcdir/configure
8152 elif test -f "$ac_srcdir/configure.in"; then
8153 # This should be Cygnus configure.
8154 ac_sub_configure=$ac_aux_dir/configure
8155 else
8156 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8158 ac_sub_configure=
8161 # The recursion is here.
8162 if test -n "$ac_sub_configure"; then
8163 # Make the cache file name correct relative to the subdirectory.
8164 case $cache_file in
8165 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8166 *) # Relative name.
8167 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8168 esac
8170 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8171 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8172 # The eval makes quoting arguments work.
8173 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8174 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8175 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8176 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8177 { (exit 1); exit 1; }; }
8180 cd "$ac_popdir"
8181 done