2 # From configure.ac Revision: 26020 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 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.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
277 ac_unique_file="asterisk"
278 ac_unique_file="asterisk.c"
280 # Factoring default headers for most tests.
281 ac_includes_default="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os PBX_PLATFORM PBX_CPU PBX_VENDOR PBX_OS UNAME ac_pt_UNAME PBX_OSREV OSISWIN32 PBX_OSTYPE CC ac_ct_CC CXX ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR NM ac_ct_NM WINDRES ac_ct_WINDRES DLLWRAP ac_ct_DLLWRAP CFLAGS LDFLAGS CPPFLAGS EXEEXT OBJEXT CXXFLAGS CPP CXXCPP AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S GNU_MAKE GREP FIND COMPRESS BASENAME DIRNAME LN DOT AST_DEVMODE EGREP asound_LIB asound_INCLUDE PBX_LIBasound curses_LIB curses_INCLUDE PBX_LIBcurses nbs_LIB nbs_INCLUDE PBX_LIBnbs ncurses_LIB ncurses_INCLUDE PBX_LIBncurses newt_LIB newt_INCLUDE PBX_LIBnewt odbc_LIB odbc_INCLUDE PBX_LIBodbc ogg_LIB ogg_INCLUDE PBX_LIBogg osptk_LIB osptk_INCLUDE PBX_LIBosptk popt_LIB popt_INCLUDE PBX_LIBpopt pri_LIB pri_INCLUDE PBX_LIBpri speex_LIB speex_INCLUDE PBX_LIBspeex sqlite_LIB sqlite_INCLUDE PBX_LIBsqlite ssl_LIB ssl_INCLUDE PBX_LIBssl tds_LIB tds_INCLUDE PBX_LIBtds termcap_LIB termcap_INCLUDE PBX_LIBtermcap tinfo_LIB tinfo_INCLUDE PBX_LIBtinfo vorbis_LIB vorbis_INCLUDE PBX_LIBvorbis z_LIB z_INCLUDE PBX_LIBz EDITLINE_LIBS ossaudio_LIB ossaudio_INCLUDE PBX_LIBossaudio tonezone_LIB tonezone_INCLUDE PBX_LIBtonezone gsm_LIB gsm_INCLUDE PBX_LIBgsm PG_CONFIG ac_pt_PG_CONFIG pq_INCLUDE pq_LIB PBX_LIBpq PBX_H323 PBX_IXJUSER VPB_INCLUDE VPB_LIB PBX_LIBvpb QT_INCLUDE QT_LIB QTMOC ac_pt_QTMOC PBX_QT KDE_INCLUDE KDE_LIBS PBX_KDE KDEINIT ac_pt_KDEINIT KDEDIR GTKCONFIG ac_ct_GTKCONFIG PBX_GTK GTK_INCLUDE GTK_LIBS PWLIB_INCLUDE PWLIB_LIB PBX_LIBPWLIB CURL ac_pt_CURL PBX_CURL CURLLIBS ALLOCA LIBOBJS POW_LIB LTLIBOBJS'
320 # Initialize some variables set by options.
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name=s,x,x,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
392 cache_file=config.cache ;;
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 datadir=$ac_optarg ;;
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
435 -help | --help | --hel | --he | -h)
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
459 -libdir | --libdir | --libdi | --libd)
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 # Obsolete; use --without-fp.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 sbindir=$ac_optarg ;;
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 sharedstatedir=$ac_optarg ;;
563 -site | --site | --sit)
565 -site=* | --site=* | --sit=*)
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
588 -version | --version | --versio | --versi | --vers | -V)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val=$`echo $ac_var`
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CXX_set=${CXX+set}
775 ac_env_CXX_value=$CXX
776 ac_cv_env_CXX_set=${CXX+set}
777 ac_cv_env_CXX_value=$CXX
778 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
779 ac_env_CXXFLAGS_value=$CXXFLAGS
780 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
782 ac_env_CPP_set=${CPP+set}
783 ac_env_CPP_value=$CPP
784 ac_cv_env_CPP_set=${CPP+set}
785 ac_cv_env_CPP_value=$CPP
786 ac_env_CXXCPP_set=${CXXCPP+set}
787 ac_env_CXXCPP_value=$CXXCPP
788 ac_cv_env_CXXCPP_set=${CXXCPP+set}
789 ac_cv_env_CXXCPP_value=$CXXCPP
792 # Report the --help message.
794 if test "$ac_init_help" = "long"; then
795 # Omit some internal or obsolete options to make the list less imposing.
796 # This message is too long to be a string in the A/UX 3.1 sh.
798 \`configure' configures this package to adapt to many kinds of systems.
800 Usage: $0 [OPTION]... [VAR=VALUE]...
802 To assign environment variables (e.g., CC, CFLAGS...), specify them as
803 VAR=VALUE. See below for descriptions of some of the useful variables.
805 Defaults for the options are specified in brackets.
808 -h, --help display this help and exit
809 --help=short display options specific to this package
810 --help=recursive display the short help of all the included packages
811 -V, --version display version information and exit
812 -q, --quiet, --silent do not print \`checking...' messages
813 --cache-file=FILE cache test results in FILE [disabled]
814 -C, --config-cache alias for \`--cache-file=config.cache'
815 -n, --no-create do not create output files
816 --srcdir=DIR find the sources in DIR [configure dir or \`..']
821 Installation directories:
822 --prefix=PREFIX install architecture-independent files in PREFIX
824 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
827 By default, \`make install' will install all the files in
828 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
829 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
830 for instance \`--prefix=\$HOME'.
832 For better control, use the options below.
834 Fine tuning of the installation directories:
835 --bindir=DIR user executables [EPREFIX/bin]
836 --sbindir=DIR system admin executables [EPREFIX/sbin]
837 --libexecdir=DIR program executables [EPREFIX/libexec]
838 --datadir=DIR read-only architecture-independent data [PREFIX/share]
839 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
840 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
841 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
842 --libdir=DIR object code libraries [EPREFIX/lib]
843 --includedir=DIR C header files [PREFIX/include]
844 --oldincludedir=DIR C header files for non-gcc [/usr/include]
845 --infodir=DIR info documentation [PREFIX/info]
846 --mandir=DIR man documentation [PREFIX/man]
852 --build=BUILD configure for building on BUILD [guessed]
853 --host=HOST cross-compile to build programs to run on HOST [BUILD]
854 --target=TARGET configure for building compilers for TARGET [HOST]
858 if test -n "$ac_init_help"; then
863 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
864 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
865 --enable-dev-mode Turn on developer mode
866 --disable-largefile omit support for large files
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
872 --with-curses=PATH use curses files in PATH
873 --with-nbs=PATH use Network Broadcast Sound files in PATH
874 --with-ncurses=PATH use ncurses files in PATH
875 --with-newt=PATH use newt files in PATH
876 --with-odbc=PATH use unixODBC files in PATH
877 --with-ogg=PATH use OGG files in PATH
878 --with-osptk=PATH use OSP Toolkit files in PATH
879 --with-popt=PATH use popt files in PATH
880 --with-pri=PATH use ISDN PRI files in PATH
881 --with-speex=PATH use Speex files in PATH
882 --with-sqlite=PATH use SQLite files in PATH
883 --with-ssl=PATH use OpenSSL files in PATH
884 --with-tds=PATH use FreeTDS files in PATH
885 --with-termcap=PATH use Termcap files in PATH
886 --with-tinfo=PATH use Term Info files in PATH
887 --with-vorbis=PATH use Vorbis files in PATH
888 --with-z=PATH use zlib files in PATH
889 --with-ossaudio=PATH use Open Sound System files in PATH
890 --with-tonezone=PATH use Zaptel files in PATH
891 --with-gsm=PATH use libgsm files in PATH, or 'internal'
892 --with-pq=PATH use PostgreSQL files in PATH
893 --with-vpb=PATH use vpb files in PATH
894 --with-qt=PATH use Qt files in PATH
895 --with-kde=PATH use KDE files in PATH
896 --with-pwlib=PATH use PWLib files in PATH
898 Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
905 CXX C++ compiler command
906 CXXFLAGS C++ compiler flags
908 CXXCPP C++ preprocessor
910 Use these variables to override the choices made by `configure' or to help
911 it to find libraries and programs with nonstandard names/locations.
916 if test "$ac_init_help" = "recursive"; then
917 # If there are subdirs, report their specific --help.
919 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
920 test -d $ac_dir || continue
923 if test "$ac_dir" != .; then
924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
925 # A "../" for each directory in $ac_dir_suffix.
926 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928 ac_dir_suffix= ac_top_builddir=
932 .) # No --srcdir option. We are building in place.
934 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939 [\\/]* | ?:[\\/]* ) # Absolute path.
940 ac_srcdir=$srcdir$ac_dir_suffix;
941 ac_top_srcdir=$srcdir ;;
943 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
944 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 # Do not use `cd foo && pwd` to compute absolute paths, because
948 # the directories may not exist.
950 .) ac_abs_builddir="$ac_dir";;
953 .) ac_abs_builddir=`pwd`;;
954 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
955 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 case $ac_abs_builddir in
959 .) ac_abs_top_builddir=${ac_top_builddir}.;;
961 case ${ac_top_builddir}. in
962 .) ac_abs_top_builddir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
964 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 case $ac_abs_builddir in
968 .) ac_abs_srcdir=$ac_srcdir;;
971 .) ac_abs_srcdir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
973 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 case $ac_abs_builddir in
977 .) ac_abs_top_srcdir=$ac_top_srcdir;;
979 case $ac_top_srcdir in
980 .) ac_abs_top_srcdir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
982 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987 # Check for guested configure; otherwise get Cygnus style configure.
988 if test -f $ac_srcdir/configure.gnu; then
990 $SHELL $ac_srcdir/configure.gnu --help=recursive
991 elif test -f $ac_srcdir/configure; then
993 $SHELL $ac_srcdir/configure --help=recursive
994 elif test -f $ac_srcdir/configure.ac ||
995 test -f $ac_srcdir/configure.in; then
999 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005 test -n "$ac_init_help" && exit 0
1006 if $ac_init_version; then
1009 Copyright (C) 2003 Free Software Foundation, Inc.
1010 This configure script is free software; the Free Software Foundation
1011 gives unlimited permission to copy, distribute and modify it.
1019 This file contains any messages produced by compilers while
1020 running configure, to aid debugging if configure makes a mistake.
1022 It was created by $as_me, which was
1023 generated by GNU Autoconf 2.59. Invocation command line was
1034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1043 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1044 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1046 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1047 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1048 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1049 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057 test -z "$as_dir" && as_dir=.
1058 echo "PATH: $as_dir"
1073 # Keep a trace of the command line.
1074 # Strip out --no-create and --no-recursion so they do not pile up.
1075 # Strip out --silent because we don't want to record it for future runs.
1076 # Also quote any args containing shell meta-characters.
1077 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_must_keep_next=false
1088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099 if test $ac_must_keep_next = true; then
1100 ac_must_keep_next=false # Got value, back to normal.
1103 *=* | --config-cache | -C | -disable-* | --disable-* \
1104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106 | -with-* | --with-* | -without-* | --without-* | --x)
1107 case "$ac_configure_args0 " in
1108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111 -* ) ac_must_keep_next=true ;;
1114 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115 # Get rid of the leading space.
1121 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124 # When interrupted or exit'd, cleanup temporary files, and complete
1125 # config.log. We remove comments because anyway the quotes in there
1126 # would cause problems or look ugly.
1127 # WARNING: Be sure not to use single quotes in there, as some shells,
1128 # such as our DU 5.0 friend, will then `close' the trap.
1129 trap 'exit_status=$?
1130 # Save into config.log some information that might help in debugging.
1135 ## ---------------- ##
1136 ## Cache variables. ##
1137 ## ---------------- ##
1140 # The following way of writing the cache mishandles newlines in values,
1143 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1158 ## ----------------- ##
1159 ## Output variables. ##
1160 ## ----------------- ##
1163 for ac_var in $ac_subst_vars
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1170 if test -n "$ac_subst_files"; then
1177 for ac_var in $ac_subst_files
1179 eval ac_val=$`echo $ac_var`
1180 echo "$ac_var='"'"'$ac_val'"'"'"
1185 if test -s confdefs.h; then
1192 sed "/^$/d" confdefs.h | sort
1195 test "$ac_signal" != 0 &&
1196 echo "$as_me: caught signal $ac_signal"
1197 echo "$as_me: exit $exit_status"
1199 rm -f core *.core &&
1200 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203 for ac_signal in 1 2 13 15; do
1204 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1209 rm -rf conftest* confdefs.h
1210 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213 # Predefined preprocessor variables.
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_NAME "$PACKAGE_NAME"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_STRING "$PACKAGE_STRING"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240 # Let the site file select an alternate cache file if it wants to.
1241 # Prefer explicitly selected file to automatically selected ones.
1242 if test -z "$CONFIG_SITE"; then
1243 if test "x$prefix" != xNONE; then
1244 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249 for ac_site_file in $CONFIG_SITE; do
1250 if test -r "$ac_site_file"; then
1251 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252 echo "$as_me: loading site script $ac_site_file" >&6;}
1253 sed 's/^/| /' "$ac_site_file" >&5
1258 if test -r "$cache_file"; then
1259 # Some versions of bash will fail to source /dev/null (special
1260 # files actually), so we avoid doing that.
1261 if test -f "$cache_file"; then
1262 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263 echo "$as_me: loading cache $cache_file" >&6;}
1265 [\\/]* | ?:[\\/]* ) . $cache_file;;
1266 *) . ./$cache_file;;
1270 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271 echo "$as_me: creating cache $cache_file" >&6;}
1275 # Check that the precious variables saved in the cache have kept the same
1277 ac_cache_corrupted=false
1278 for ac_var in `(set) 2>&1 |
1279 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281 eval ac_new_set=\$ac_env_${ac_var}_set
1282 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283 eval ac_new_val="\$ac_env_${ac_var}_value"
1284 case $ac_old_set,$ac_new_set in
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1295 if test "x$ac_old_val" != "x$ac_new_val"; then
1296 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1297 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1298 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1299 echo "$as_me: former value: $ac_old_val" >&2;}
1300 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1301 echo "$as_me: current value: $ac_new_val" >&2;}
1302 ac_cache_corrupted=:
1305 # Pass precious variables to config.status.
1306 if test "$ac_new_set" = set; then
1308 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1310 *) ac_arg=$ac_var=$ac_new_val ;;
1312 case " $ac_configure_args " in
1313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1314 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1318 if $ac_cache_corrupted; then
1319 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1320 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1321 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1322 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1323 { (exit 1); exit 1; }; }
1327 ac_cpp='$CPP $CPPFLAGS'
1328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1351 # cross-compile macros
1353 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1354 if test -f $ac_dir/install-sh; then
1356 ac_install_sh="$ac_aux_dir/install-sh -c"
1358 elif test -f $ac_dir/install.sh; then
1360 ac_install_sh="$ac_aux_dir/install.sh -c"
1362 elif test -f $ac_dir/shtool; then
1364 ac_install_sh="$ac_aux_dir/shtool install -c"
1368 if test -z "$ac_aux_dir"; then
1369 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1370 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1371 { (exit 1); exit 1; }; }
1373 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1374 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1375 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1377 # Make sure we can run config.sub.
1378 $ac_config_sub sun4 >/dev/null 2>&1 ||
1379 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1380 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1381 { (exit 1); exit 1; }; }
1383 echo "$as_me:$LINENO: checking build system type" >&5
1384 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1385 if test "${ac_cv_build+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 ac_cv_build_alias=$build_alias
1389 test -z "$ac_cv_build_alias" &&
1390 ac_cv_build_alias=`$ac_config_guess`
1391 test -z "$ac_cv_build_alias" &&
1392 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1393 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1394 { (exit 1); exit 1; }; }
1395 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1396 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1397 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1398 { (exit 1); exit 1; }; }
1401 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1402 echo "${ECHO_T}$ac_cv_build" >&6
1404 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1409 echo "$as_me:$LINENO: checking host system type" >&5
1410 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1411 if test "${ac_cv_host+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 ac_cv_host_alias=$host_alias
1415 test -z "$ac_cv_host_alias" &&
1416 ac_cv_host_alias=$ac_cv_build_alias
1417 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1419 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1423 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1424 echo "${ECHO_T}$ac_cv_host" >&6
1426 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 echo "$as_me:$LINENO: checking target system type" >&5
1432 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1433 if test "${ac_cv_target+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 ac_cv_target_alias=$target_alias
1437 test "x$ac_cv_target_alias" = "x" &&
1438 ac_cv_target_alias=$ac_cv_host_alias
1439 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1446 echo "${ECHO_T}$ac_cv_target" >&6
1447 target=$ac_cv_target
1448 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453 # The aliases save the names the user supplied, while $host etc.
1454 # will get canonicalized.
1455 test -n "$target_alias" &&
1456 test "$program_prefix$program_suffix$program_transform_name" = \
1458 program_prefix=${target_alias}-
1460 # check existence of the package
1463 # specify output header file
1464 ac_config_headers="$ac_config_headers include/autoconfig.h"
1474 cat >>confdefs.h <<_ACEOF
1475 #define PBX_PLATFORM "${host}"
1479 cat >>confdefs.h <<_ACEOF
1480 #define PBX_CPU "${host_cpu}"
1484 cat >>confdefs.h <<_ACEOF
1485 #define PBX_VENDOR "${host_vendor}"
1489 cat >>confdefs.h <<_ACEOF
1490 #define PBX_OS "${host_os}"
1494 # export some useful defines
1495 PBX_PLATFORM=${host}
1497 PBX_VENDOR=${host_vendor}
1505 if test -n "$ac_tool_prefix"; then
1506 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
1507 set dummy ${ac_tool_prefix}uname; ac_word=$2
1508 echo "$as_me:$LINENO: checking for $ac_word" >&5
1509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510 if test "${ac_cv_path_UNAME+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 UNAME=$ac_cv_path_UNAME
1537 if test -n "$UNAME"; then
1538 echo "$as_me:$LINENO: result: $UNAME" >&5
1539 echo "${ECHO_T}$UNAME" >&6
1541 echo "$as_me:$LINENO: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1546 if test -z "$ac_cv_path_UNAME"; then
1548 # Extract the first word of "uname", so it can be a program name with args.
1549 set dummy uname; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 case $ac_pt_UNAME in
1557 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574 test -z "$ac_cv_path_ac_pt_UNAME" && ac_cv_path_ac_pt_UNAME="No"
1578 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
1580 if test -n "$ac_pt_UNAME"; then
1581 echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
1582 echo "${ECHO_T}$ac_pt_UNAME" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1590 UNAME="$ac_cv_path_UNAME"
1593 if test ! x"${UNAME}" = xNo; then
1594 PBX_OSREV=$(${UNAME} -r)
1600 cygwin*|mingw*|windows*|winnt)
1602 cat >>confdefs.h <<\_ACEOF
1607 # this is ugly - KPF
1613 cat >>confdefs.h <<\_ACEOF
1621 cat >>confdefs.h <<\_ACEOF
1629 cat >>confdefs.h <<\_ACEOF
1633 PBX_OSTYPE="FreeBSD"
1634 # XXX temporary hack to let FreeBSD use the default paths
1635 # for local stuff. We need a better solution.
1636 if test x"${CPPFLAGS}" = x; then
1637 CPPFLAGS="-I /usr/local/include"
1639 if test x"${LDFLAGS}" = x; then
1640 LDFLAGS="-L /usr/local/lib"
1645 cat >>confdefs.h <<\_ACEOF
1649 PBX_OSTYPE="OpenBSD"
1653 cat >>confdefs.h <<\_ACEOF
1661 cat >>confdefs.h <<\_ACEOF
1669 cat >>confdefs.h <<\_ACEOF
1678 # This needs to be before any macros that use the C compiler
1680 cat >>confdefs.h <<\_ACEOF
1681 #define _GNU_SOURCE 1
1689 # cross-compile checks
1690 if test x"${build}" != x"${host}";
1692 if test -n "$ac_tool_prefix"; then
1693 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1694 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 if test -n "$CC"; then
1701 ac_cv_prog_CC="$CC" # Let the user override the test.
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 if test -n "$CC"; then
1721 echo "$as_me:$LINENO: result: $CC" >&5
1722 echo "${ECHO_T}$CC" >&6
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1729 if test -z "$ac_cv_prog_CC"; then
1731 # Extract the first word of "gcc", so it can be a program name with args.
1732 set dummy gcc; ac_word=$2
1733 echo "$as_me:$LINENO: checking for $ac_word" >&5
1734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1738 if test -n "$ac_ct_CC"; then
1739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 test -z "$as_dir" && as_dir=.
1746 for ac_exec_ext in '' $ac_executable_extensions; do
1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748 ac_cv_prog_ac_ct_CC="gcc"
1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 test -z "$ac_cv_prog_ac_ct_CC" && ac_cv_prog_ac_ct_CC=":"
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1772 if test -n "$ac_tool_prefix"; then
1773 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
1774 set dummy ${ac_tool_prefix}g++; ac_word=$2
1775 echo "$as_me:$LINENO: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_CXX+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 if test -n "$CXX"; then
1781 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 test -z "$as_dir" && as_dir=.
1788 for ac_exec_ext in '' $ac_executable_extensions; do
1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790 ac_cv_prog_CXX="${ac_tool_prefix}g++"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 if test -n "$CXX"; then
1801 echo "$as_me:$LINENO: result: $CXX" >&5
1802 echo "${ECHO_T}$CXX" >&6
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1809 if test -z "$ac_cv_prog_CXX"; then
1811 # Extract the first word of "g++", so it can be a program name with args.
1812 set dummy g++; ac_word=$2
1813 echo "$as_me:$LINENO: checking for $ac_word" >&5
1814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 if test -n "$ac_ct_CXX"; then
1819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 ac_cv_prog_ac_ct_CXX="g++"
1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 test -z "$ac_cv_prog_ac_ct_CXX" && ac_cv_prog_ac_ct_CXX=":"
1838 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1839 if test -n "$ac_ct_CXX"; then
1840 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1841 echo "${ECHO_T}$ac_ct_CXX" >&6
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1849 CXX="$ac_cv_prog_CXX"
1852 if test -n "$ac_tool_prefix"; then
1853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1854 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_RANLIB+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 if test -n "$RANLIB"; then
1861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 RANLIB=$ac_cv_prog_RANLIB
1880 if test -n "$RANLIB"; then
1881 echo "$as_me:$LINENO: result: $RANLIB" >&5
1882 echo "${ECHO_T}$RANLIB" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1889 if test -z "$ac_cv_prog_RANLIB"; then
1890 ac_ct_RANLIB=$RANLIB
1891 # Extract the first word of "ranlib", so it can be a program name with args.
1892 set dummy ranlib; ac_word=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 if test -n "$ac_ct_RANLIB"; then
1899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 ac_cv_prog_ac_ct_RANLIB="ranlib"
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1919 if test -n "$ac_ct_RANLIB"; then
1920 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1921 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1927 RANLIB=$ac_ct_RANLIB
1929 RANLIB="$ac_cv_prog_RANLIB"
1932 if test -n "$ac_tool_prefix"; then
1933 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1934 set dummy ${ac_tool_prefix}ar; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_AR+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 if test -n "$AR"; then
1941 ac_cv_prog_AR="$AR" # Let the user override the test.
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_AR="${ac_tool_prefix}ar"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 if test -n "$AR"; then
1961 echo "$as_me:$LINENO: result: $AR" >&5
1962 echo "${ECHO_T}$AR" >&6
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1969 if test -z "$ac_cv_prog_AR"; then
1971 # Extract the first word of "ar", so it can be a program name with args.
1972 set dummy ar; ac_word=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test -n "$ac_ct_AR"; then
1979 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 ac_cv_prog_ac_ct_AR="ar"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
1998 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1999 if test -n "$ac_ct_AR"; then
2000 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2001 echo "${ECHO_T}$ac_ct_AR" >&6
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2013 if test x"${PBX_OSTYPE}" = xWin32;
2015 if test -n "$ac_tool_prefix"; then
2016 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2017 set dummy ${ac_tool_prefix}nm; ac_word=$2
2018 echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020 if test "${ac_cv_prog_NM+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 if test -n "$NM"; then
2024 ac_cv_prog_NM="$NM" # Let the user override the test.
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2033 ac_cv_prog_NM="${ac_tool_prefix}nm"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 if test -n "$NM"; then
2044 echo "$as_me:$LINENO: result: $NM" >&5
2045 echo "${ECHO_T}$NM" >&6
2047 echo "$as_me:$LINENO: result: no" >&5
2048 echo "${ECHO_T}no" >&6
2052 if test -z "$ac_cv_prog_NM"; then
2054 # Extract the first word of "nm", so it can be a program name with args.
2055 set dummy nm; ac_word=$2
2056 echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 if test -n "$ac_ct_NM"; then
2062 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071 ac_cv_prog_ac_ct_NM="nm"
2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
2081 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2082 if test -n "$ac_ct_NM"; then
2083 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2084 echo "${ECHO_T}$ac_ct_NM" >&6
2086 echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6
2095 if test -n "$ac_tool_prefix"; then
2096 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
2097 set dummy ${ac_tool_prefix}windres; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_WINDRES+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test -n "$WINDRES"; then
2104 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 WINDRES=$ac_cv_prog_WINDRES
2123 if test -n "$WINDRES"; then
2124 echo "$as_me:$LINENO: result: $WINDRES" >&5
2125 echo "${ECHO_T}$WINDRES" >&6
2127 echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2132 if test -z "$ac_cv_prog_WINDRES"; then
2133 ac_ct_WINDRES=$WINDRES
2134 # Extract the first word of "windres", so it can be a program name with args.
2135 set dummy windres; ac_word=$2
2136 echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 if test -n "$ac_ct_WINDRES"; then
2142 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151 ac_cv_prog_ac_ct_WINDRES="windres"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
2161 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
2162 if test -n "$ac_ct_WINDRES"; then
2163 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
2164 echo "${ECHO_T}$ac_ct_WINDRES" >&6
2166 echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6
2170 WINDRES=$ac_ct_WINDRES
2172 WINDRES="$ac_cv_prog_WINDRES"
2175 if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test -n "$DLLWRAP"; then
2184 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 DLLWRAP=$ac_cv_prog_DLLWRAP
2203 if test -n "$DLLWRAP"; then
2204 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
2205 echo "${ECHO_T}$DLLWRAP" >&6
2207 echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2212 if test -z "$ac_cv_prog_DLLWRAP"; then
2213 ac_ct_DLLWRAP=$DLLWRAP
2214 # Extract the first word of "dllwrap", so it can be a program name with args.
2215 set dummy dllwrap; ac_word=$2
2216 echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 if test -n "$ac_ct_DLLWRAP"; then
2222 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP=":"
2241 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
2242 if test -n "$ac_ct_DLLWRAP"; then
2243 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
2244 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
2246 echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6
2250 DLLWRAP=$ac_ct_DLLWRAP
2252 DLLWRAP="$ac_cv_prog_DLLWRAP"
2259 # Checks for programs.
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265 if test -n "$ac_tool_prefix"; then
2266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 if test -n "$CC"; then
2294 echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6
2297 echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2302 if test -z "$ac_cv_prog_CC"; then
2304 # Extract the first word of "gcc", so it can be a program name with args.
2305 set dummy gcc; ac_word=$2
2306 echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 if test -n "$ac_ct_CC"; then
2312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2321 ac_cv_prog_ac_ct_CC="gcc"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2331 if test -n "$ac_ct_CC"; then
2332 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2333 echo "${ECHO_T}$ac_ct_CC" >&6
2335 echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6
2344 if test -z "$CC"; then
2345 if test -n "$ac_tool_prefix"; then
2346 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2347 set dummy ${ac_tool_prefix}cc; ac_word=$2
2348 echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2350 if test "${ac_cv_prog_CC+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 if test -n "$CC"; then
2354 ac_cv_prog_CC="$CC" # Let the user override the test.
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2363 ac_cv_prog_CC="${ac_tool_prefix}cc"
2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 if test -n "$CC"; then
2374 echo "$as_me:$LINENO: result: $CC" >&5
2375 echo "${ECHO_T}$CC" >&6
2377 echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6
2382 if test -z "$ac_cv_prog_CC"; then
2384 # Extract the first word of "cc", so it can be a program name with args.
2385 set dummy cc; ac_word=$2
2386 echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 if test -n "$ac_ct_CC"; then
2392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401 ac_cv_prog_ac_ct_CC="cc"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2411 if test -n "$ac_ct_CC"; then
2412 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2413 echo "${ECHO_T}$ac_ct_CC" >&6
2415 echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2425 if test -z "$CC"; then
2426 # Extract the first word of "cc", so it can be a program name with args.
2427 set dummy cc; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2445 ac_prog_rejected=yes
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 if test $ac_prog_rejected = yes; then
2456 # We found a bogon in the path, so make sure we never use it.
2457 set dummy $ac_cv_prog_CC
2459 if test $# != 0; then
2460 # We chose a different compiler from the bogus one.
2461 # However, it has the same basename, so the bogon will be chosen
2462 # first if we set CC to just the basename; use the full file name.
2464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2470 if test -n "$CC"; then
2471 echo "$as_me:$LINENO: result: $CC" >&5
2472 echo "${ECHO_T}$CC" >&6
2474 echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6
2479 if test -z "$CC"; then
2480 if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2485 echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 if test -n "$CC"; then
2511 echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6
2514 echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2518 test -n "$CC" && break
2521 if test -z "$CC"; then
2525 # Extract the first word of "$ac_prog", so it can be a program name with args.
2526 set dummy $ac_prog; ac_word=$2
2527 echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 if test -n "$ac_ct_CC"; then
2533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542 ac_cv_prog_ac_ct_CC="$ac_prog"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2552 if test -n "$ac_ct_CC"; then
2553 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2554 echo "${ECHO_T}$ac_ct_CC" >&6
2556 echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6
2560 test -n "$ac_ct_CC" && break
2569 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: no acceptable C compiler found in \$PATH
2572 See \`config.log' for more details." >&2;}
2573 { (exit 1); exit 1; }; }
2575 # Provide some information about the compiler.
2576 echo "$as_me:$LINENO:" \
2577 "checking for C compiler version" >&5
2578 ac_compiler=`set X $ac_compile; echo $2`
2579 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2580 (eval $ac_compiler --version </dev/null >&5) 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }
2584 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2585 (eval $ac_compiler -v </dev/null >&5) 2>&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }
2589 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2590 (eval $ac_compiler -V </dev/null >&5) 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }
2595 cat >conftest.$ac_ext <<_ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2610 ac_clean_files_save=$ac_clean_files
2611 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2612 # Try to create an executable without -o first, disregard a.out.
2613 # It will help us diagnose broken compilers, and finding out an intuition
2615 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2616 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2617 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2618 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2619 (eval $ac_link_default) 2>&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; then
2623 # Find the output, starting from the most likely. This scheme is
2624 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2627 # Be careful to initialize this variable, since it used to be cached.
2628 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2630 # b.out is created by i960 compilers.
2631 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2633 test -f "$ac_file" || continue
2635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2638 # This is the source file.
2641 # We found the default executable, but exeext='' is most
2645 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646 # FIXME: I believe we export ac_cv_exeext for Libtool,
2647 # but it would be cool to find out if it's true. Does anybody
2648 # maintain Libtool? --akim.
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2659 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: C compiler cannot create executables
2662 See \`config.log' for more details." >&2;}
2663 { (exit 77); exit 77; }; }
2666 ac_exeext=$ac_cv_exeext
2667 echo "$as_me:$LINENO: result: $ac_file" >&5
2668 echo "${ECHO_T}$ac_file" >&6
2670 # Check the compiler produces executables we can run. If not, either
2671 # the compiler is broken, or we cross compile.
2672 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2673 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2674 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2675 # If not cross compiling, check that we can run a simple program.
2676 if test "$cross_compiling" != yes; then
2677 if { ac_try='./$ac_file'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2685 if test "$cross_compiling" = maybe; then
2688 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2689 If you meant to cross compile, use \`--host'.
2690 See \`config.log' for more details." >&5
2691 echo "$as_me: error: cannot run C compiled programs.
2692 If you meant to cross compile, use \`--host'.
2693 See \`config.log' for more details." >&2;}
2694 { (exit 1); exit 1; }; }
2698 echo "$as_me:$LINENO: result: yes" >&5
2699 echo "${ECHO_T}yes" >&6
2701 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2702 ac_clean_files=$ac_clean_files_save
2703 # Check the compiler produces executables we can run. If not, either
2704 # the compiler is broken, or we cross compile.
2705 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2706 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2707 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2708 echo "${ECHO_T}$cross_compiling" >&6
2710 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2711 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2713 (eval $ac_link) 2>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; then
2717 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2718 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2719 # work properly (i.e., refer to `conftest.exe'), while it won't with
2721 for ac_file in conftest.exe conftest conftest.*; do
2722 test -f "$ac_file" || continue
2724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2725 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2732 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2735 See \`config.log' for more details." >&2;}
2736 { (exit 1); exit 1; }; }
2739 rm -f conftest$ac_cv_exeext
2740 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2741 echo "${ECHO_T}$ac_cv_exeext" >&6
2743 rm -f conftest.$ac_ext
2744 EXEEXT=$ac_cv_exeext
2746 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2747 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2748 if test "${ac_cv_objext+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 cat >conftest.$ac_ext <<_ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2766 rm -f conftest.o conftest.obj
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; then
2772 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2775 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2783 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2784 See \`config.log' for more details." >&5
2785 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2786 See \`config.log' for more details." >&2;}
2787 { (exit 1); exit 1; }; }
2790 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2792 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2793 echo "${ECHO_T}$ac_cv_objext" >&6
2794 OBJEXT=$ac_cv_objext
2796 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2797 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2798 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 cat >conftest.$ac_ext <<_ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2823 grep -v '^ *+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -z "$ac_c_werror_flag"
2829 || test ! -s conftest.err'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; } &&
2835 { ac_try='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2849 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2852 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2853 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2854 GCC=`test $ac_compiler_gnu = yes && echo yes`
2855 ac_test_CFLAGS=${CFLAGS+set}
2856 ac_save_CFLAGS=$CFLAGS
2858 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2859 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2860 if test "${ac_cv_prog_cc_g+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 cat >conftest.$ac_ext <<_ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2882 grep -v '^ *+' conftest.er1 >conftest.err
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2909 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2910 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2911 if test "$ac_test_CFLAGS" = set; then
2912 CFLAGS=$ac_save_CFLAGS
2913 elif test $ac_cv_prog_cc_g = yes; then
2914 if test "$GCC" = yes; then
2920 if test "$GCC" = yes; then
2926 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2927 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2928 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 ac_cv_prog_cc_stdc=no
2933 cat >conftest.$ac_ext <<_ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2941 #include <sys/types.h>
2942 #include <sys/stat.h>
2943 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2944 struct buf { int x; };
2945 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2946 static char *e (p, i)
2952 static char *f (char * (*g) (char **, int), char **p, ...)
2957 s = g (p, va_arg (v,int));
2962 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2963 function prototypes and stuff, but not '\xHH' hex character constants.
2964 These don't provoke an error unfortunately, instead are silently treated
2965 as 'x'. The following induces an error, until -std1 is added to get
2966 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2967 array size at least. It's necessary to write '\x00'==0 to get something
2968 that's true only with -std1. */
2969 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2971 int test (int i, double x);
2972 struct s1 {int (*f) (int a);};
2973 struct s2 {int (*f) (double a);};
2974 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2980 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2985 # Don't try gcc -ansi; that turns off useful extensions and
2986 # breaks some systems' header files.
2987 # AIX -qlanglvl=ansi
2988 # Ultrix and OSF/1 -std1
2989 # HP-UX 10.20 and later -Ae
2990 # HP-UX older versions -Aa -D_HPUX_SOURCE
2991 # SVR4 -Xc -D__EXTENSIONS__
2992 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2994 CC="$ac_save_CC $ac_arg"
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997 (eval $ac_compile) 2>conftest.er1
2999 grep -v '^ *+' conftest.er1 >conftest.err
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -z "$ac_c_werror_flag"
3005 || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 ac_cv_prog_cc_stdc=$ac_arg
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3024 rm -f conftest.err conftest.$ac_objext
3026 rm -f conftest.$ac_ext conftest.$ac_objext
3031 case "x$ac_cv_prog_cc_stdc" in
3033 echo "$as_me:$LINENO: result: none needed" >&5
3034 echo "${ECHO_T}none needed" >&6 ;;
3036 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3037 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3038 CC="$CC $ac_cv_prog_cc_stdc" ;;
3041 # Some people use a C++ compiler to compile C. Since we use `exit',
3042 # in C++ we need to declare it. In case someone uses the same compiler
3043 # for both compiling C and C++ we need to have the C++ compiler decide
3044 # the declaration of exit, since it's the most demanding environment.
3045 cat >conftest.$ac_ext <<_ACEOF
3050 rm -f conftest.$ac_objext
3051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3052 (eval $ac_compile) 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -z "$ac_c_werror_flag"
3060 || test ! -s conftest.err'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 for ac_declaration in \
3074 'extern "C" void std::exit (int) throw (); using std::exit;' \
3075 'extern "C" void std::exit (int); using std::exit;' \
3076 'extern "C" void exit (int) throw ();' \
3077 'extern "C" void exit (int);' \
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3096 rm -f conftest.$ac_objext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>conftest.er1
3100 grep -v '^ *+' conftest.er1 >conftest.err
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -z "$ac_c_werror_flag"
3106 || test ! -s conftest.err'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; } &&
3112 { ac_try='test -s conftest.$ac_objext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3141 rm -f conftest.$ac_objext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143 (eval $ac_compile) 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_c_werror_flag"
3151 || test ! -s conftest.err'
3152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3172 if test -n "$ac_declaration"; then
3173 echo '#ifdef __cplusplus' >>confdefs.h
3174 echo $ac_declaration >>confdefs.h
3175 echo '#endif' >>confdefs.h
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 ac_cpp='$CXXCPP $CPPFLAGS'
3192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3195 if test -n "$ac_tool_prefix"; then
3196 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3200 echo "$as_me:$LINENO: checking for $ac_word" >&5
3201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202 if test "${ac_cv_prog_CXX+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 if test -n "$CXX"; then
3206 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 if test -n "$CXX"; then
3226 echo "$as_me:$LINENO: result: $CXX" >&5
3227 echo "${ECHO_T}$CXX" >&6
3229 echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3233 test -n "$CXX" && break
3236 if test -z "$CXX"; then
3238 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3240 # Extract the first word of "$ac_prog", so it can be a program name with args.
3241 set dummy $ac_prog; 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_prog_ac_ct_CXX+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 if test -n "$ac_ct_CXX"; then
3248 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_ac_ct_CXX="$ac_prog"
3258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3267 if test -n "$ac_ct_CXX"; then
3268 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3269 echo "${ECHO_T}$ac_ct_CXX" >&6
3271 echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3275 test -n "$ac_ct_CXX" && break
3277 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3283 # Provide some information about the compiler.
3284 echo "$as_me:$LINENO:" \
3285 "checking for C++ compiler version" >&5
3286 ac_compiler=`set X $ac_compile; echo $2`
3287 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3288 (eval $ac_compiler --version </dev/null >&5) 2>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }
3292 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3293 (eval $ac_compiler -v </dev/null >&5) 2>&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }
3297 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3298 (eval $ac_compiler -V </dev/null >&5) 2>&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }
3303 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3304 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3305 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3326 rm -f conftest.$ac_objext
3327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3328 (eval $ac_compile) 2>conftest.er1
3330 grep -v '^ *+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_cxx_werror_flag"
3336 || test ! -s conftest.err'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; } &&
3342 { ac_try='test -s conftest.$ac_objext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3359 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3360 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3361 GXX=`test $ac_compiler_gnu = yes && echo yes`
3362 ac_test_CXXFLAGS=${CXXFLAGS+set}
3363 ac_save_CXXFLAGS=$CXXFLAGS
3365 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3366 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3367 if test "${ac_cv_prog_cxx_g+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 cat >conftest.$ac_ext <<_ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3385 rm -f conftest.$ac_objext
3386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3387 (eval $ac_compile) 2>conftest.er1
3389 grep -v '^ *+' conftest.er1 >conftest.err
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } &&
3394 { ac_try='test -z "$ac_cxx_werror_flag"
3395 || test ! -s conftest.err'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; } &&
3401 { ac_try='test -s conftest.$ac_objext'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3407 ac_cv_prog_cxx_g=yes
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3416 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3417 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3418 if test "$ac_test_CXXFLAGS" = set; then
3419 CXXFLAGS=$ac_save_CXXFLAGS
3420 elif test $ac_cv_prog_cxx_g = yes; then
3421 if test "$GXX" = yes; then
3427 if test "$GXX" = yes; then
3433 for ac_declaration in \
3435 'extern "C" void std::exit (int) throw (); using std::exit;' \
3436 'extern "C" void std::exit (int); using std::exit;' \
3437 'extern "C" void exit (int) throw ();' \
3438 'extern "C" void exit (int);' \
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3457 rm -f conftest.$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>conftest.er1
3461 grep -v '^ *+' conftest.er1 >conftest.err
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try='test -z "$ac_cxx_werror_flag"
3467 || test ! -s conftest.err'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; } &&
3473 { ac_try='test -s conftest.$ac_objext'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3487 cat >conftest.$ac_ext <<_ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3502 rm -f conftest.$ac_objext
3503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3504 (eval $ac_compile) 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } &&
3511 { ac_try='test -z "$ac_cxx_werror_flag"
3512 || test ! -s conftest.err'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; } &&
3518 { ac_try='test -s conftest.$ac_objext'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; }; then
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3533 if test -n "$ac_declaration"; then
3534 echo '#ifdef __cplusplus' >>confdefs.h
3535 echo $ac_declaration >>confdefs.h
3536 echo '#endif' >>confdefs.h
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3551 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3552 # On Suns, sometimes $CPP names a directory.
3553 if test -n "$CPP" && test -d "$CPP"; then
3556 if test -z "$CPP"; then
3557 if test "${ac_cv_prog_CPP+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 # Double quotes because CPP needs to be expanded
3561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3564 for ac_c_preproc_warn_flag in '' yes
3566 # Use a header file that comes with gcc, so configuring glibc
3567 # with a fresh cross-compiler works.
3568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3569 # <limits.h> exists even on freestanding compilers.
3570 # On the NeXT, cc -E runs the code through the compiler's parser,
3571 # not just through cpp. "Syntax error" is here to catch this case.
3572 cat >conftest.$ac_ext <<_ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3579 # include <limits.h>
3581 # include <assert.h>
3585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3588 grep -v '^ *+' conftest.er1 >conftest.err
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } >/dev/null; then
3593 if test -s conftest.err; then
3594 ac_cpp_err=$ac_c_preproc_warn_flag
3595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3602 if test -z "$ac_cpp_err"; then
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 # Broken: fails on valid input.
3611 rm -f conftest.err conftest.$ac_ext
3613 # OK, works on sane cases. Now check whether non-existent headers
3614 # can be detected and how.
3615 cat >conftest.$ac_ext <<_ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3621 #include <ac_nonexistent.h>
3623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3626 grep -v '^ *+' conftest.er1 >conftest.err
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } >/dev/null; then
3631 if test -s conftest.err; then
3632 ac_cpp_err=$ac_c_preproc_warn_flag
3633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3640 if test -z "$ac_cpp_err"; then
3641 # Broken: success on invalid input.
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 # Passes both tests.
3651 rm -f conftest.err conftest.$ac_ext
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.err conftest.$ac_ext
3656 if $ac_preproc_ok; then
3668 echo "$as_me:$LINENO: result: $CPP" >&5
3669 echo "${ECHO_T}$CPP" >&6
3671 for ac_c_preproc_warn_flag in '' yes
3673 # Use a header file that comes with gcc, so configuring glibc
3674 # with a fresh cross-compiler works.
3675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676 # <limits.h> exists even on freestanding compilers.
3677 # On the NeXT, cc -E runs the code through the compiler's parser,
3678 # not just through cpp. "Syntax error" is here to catch this case.
3679 cat >conftest.$ac_ext <<_ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3686 # include <limits.h>
3688 # include <assert.h>
3692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3695 grep -v '^ *+' conftest.er1 >conftest.err
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } >/dev/null; then
3700 if test -s conftest.err; then
3701 ac_cpp_err=$ac_c_preproc_warn_flag
3702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3709 if test -z "$ac_cpp_err"; then
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3715 # Broken: fails on valid input.
3718 rm -f conftest.err conftest.$ac_ext
3720 # OK, works on sane cases. Now check whether non-existent headers
3721 # can be detected and how.
3722 cat >conftest.$ac_ext <<_ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3728 #include <ac_nonexistent.h>
3730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3733 grep -v '^ *+' conftest.er1 >conftest.err
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } >/dev/null; then
3738 if test -s conftest.err; then
3739 ac_cpp_err=$ac_c_preproc_warn_flag
3740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3747 if test -z "$ac_cpp_err"; then
3748 # Broken: success on invalid input.
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3754 # Passes both tests.
3758 rm -f conftest.err conftest.$ac_ext
3761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3762 rm -f conftest.err conftest.$ac_ext
3763 if $ac_preproc_ok; then
3766 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3767 See \`config.log' for more details." >&5
3768 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3769 See \`config.log' for more details." >&2;}
3770 { (exit 1); exit 1; }; }
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780 ac_cpp='$CXXCPP $CPPFLAGS'
3781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3784 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3785 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3786 if test -z "$CXXCPP"; then
3787 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 # Double quotes because CXXCPP needs to be expanded
3791 for CXXCPP in "$CXX -E" "/lib/cpp"
3794 for ac_cxx_preproc_warn_flag in '' yes
3796 # Use a header file that comes with gcc, so configuring glibc
3797 # with a fresh cross-compiler works.
3798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3799 # <limits.h> exists even on freestanding compilers.
3800 # On the NeXT, cc -E runs the code through the compiler's parser,
3801 # not just through cpp. "Syntax error" is here to catch this case.
3802 cat >conftest.$ac_ext <<_ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3809 # include <limits.h>
3811 # include <assert.h>
3815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3818 grep -v '^ *+' conftest.er1 >conftest.err
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } >/dev/null; then
3823 if test -s conftest.err; then
3824 ac_cpp_err=$ac_cxx_preproc_warn_flag
3825 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3832 if test -z "$ac_cpp_err"; then
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 # Broken: fails on valid input.
3841 rm -f conftest.err conftest.$ac_ext
3843 # OK, works on sane cases. Now check whether non-existent headers
3844 # can be detected and how.
3845 cat >conftest.$ac_ext <<_ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 #include <ac_nonexistent.h>
3853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3856 grep -v '^ *+' conftest.er1 >conftest.err
3858 cat conftest.err >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } >/dev/null; then
3861 if test -s conftest.err; then
3862 ac_cpp_err=$ac_cxx_preproc_warn_flag
3863 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3870 if test -z "$ac_cpp_err"; then
3871 # Broken: success on invalid input.
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 # Passes both tests.
3881 rm -f conftest.err conftest.$ac_ext
3884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3885 rm -f conftest.err conftest.$ac_ext
3886 if $ac_preproc_ok; then
3891 ac_cv_prog_CXXCPP=$CXXCPP
3894 CXXCPP=$ac_cv_prog_CXXCPP
3896 ac_cv_prog_CXXCPP=$CXXCPP
3898 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3899 echo "${ECHO_T}$CXXCPP" >&6
3901 for ac_cxx_preproc_warn_flag in '' yes
3903 # Use a header file that comes with gcc, so configuring glibc
3904 # with a fresh cross-compiler works.
3905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3906 # <limits.h> exists even on freestanding compilers.
3907 # On the NeXT, cc -E runs the code through the compiler's parser,
3908 # not just through cpp. "Syntax error" is here to catch this case.
3909 cat >conftest.$ac_ext <<_ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h. */
3916 # include <limits.h>
3918 # include <assert.h>
3922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3925 grep -v '^ *+' conftest.er1 >conftest.err
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } >/dev/null; then
3930 if test -s conftest.err; then
3931 ac_cpp_err=$ac_cxx_preproc_warn_flag
3932 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3939 if test -z "$ac_cpp_err"; then
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 # Broken: fails on valid input.
3948 rm -f conftest.err conftest.$ac_ext
3950 # OK, works on sane cases. Now check whether non-existent headers
3951 # can be detected and how.
3952 cat >conftest.$ac_ext <<_ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 #include <ac_nonexistent.h>
3960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3963 grep -v '^ *+' conftest.er1 >conftest.err
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } >/dev/null; then
3968 if test -s conftest.err; then
3969 ac_cpp_err=$ac_cxx_preproc_warn_flag
3970 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3977 if test -z "$ac_cpp_err"; then
3978 # Broken: success on invalid input.
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984 # Passes both tests.
3988 rm -f conftest.err conftest.$ac_ext
3991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3992 rm -f conftest.err conftest.$ac_ext
3993 if $ac_preproc_ok; then
3996 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3997 See \`config.log' for more details." >&5
3998 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3999 See \`config.log' for more details." >&2;}
4000 { (exit 1); exit 1; }; }
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009 for ac_prog in gawk mawk nawk awk
4011 # Extract the first word of "$ac_prog", so it can be a program name with args.
4012 set dummy $ac_prog; ac_word=$2
4013 echo "$as_me:$LINENO: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4015 if test "${ac_cv_prog_AWK+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 if test -n "$AWK"; then
4019 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028 ac_cv_prog_AWK="$ac_prog"
4029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 if test -n "$AWK"; then
4039 echo "$as_me:$LINENO: result: $AWK" >&5
4040 echo "${ECHO_T}$AWK" >&6
4042 echo "$as_me:$LINENO: result: no" >&5
4043 echo "${ECHO_T}no" >&6
4046 test -n "$AWK" && break
4049 # Find a good install program. We prefer a C program (faster),
4050 # so one script is as good as another. But avoid the broken or
4051 # incompatible versions:
4052 # SysV /etc/install, /usr/sbin/install
4053 # SunOS /usr/etc/install
4054 # IRIX /sbin/install
4056 # AmigaOS /C/install, which installs bootblocks on floppy discs
4057 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4058 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4059 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4060 # OS/2's system install, which has a completely different semantic
4061 # ./install, which can be erroneously created by make from ./install.sh.
4062 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4063 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4064 if test -z "$INSTALL"; then
4065 if test "${ac_cv_path_install+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir=.
4073 # Account for people who put trailing slashes in PATH elements.
4075 ./ | .// | /cC/* | \
4076 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4077 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4080 # OSF1 and SCO ODT 3.0 have their own names for install.
4081 # Don't use installbsd from OSF since it installs stuff as root
4083 for ac_prog in ginstall scoinst install; do
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4086 if test $ac_prog = install &&
4087 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4088 # AIX install. It has an incompatible calling convention.
4090 elif test $ac_prog = install &&
4091 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4092 # program-specific install script used by HP pwplus--don't use.
4095 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4107 if test "${ac_cv_path_install+set}" = set; then
4108 INSTALL=$ac_cv_path_install
4110 # As a last resort, use the slow shell script. We don't cache a
4111 # path for INSTALL within a source directory, because that will
4112 # break other packages using the cache if that directory is
4113 # removed, or if the path is relative.
4114 INSTALL=$ac_install_sh
4117 echo "$as_me:$LINENO: result: $INSTALL" >&5
4118 echo "${ECHO_T}$INSTALL" >&6
4120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4121 # It thinks the first close brace ends the variable substitution.
4122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4126 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4128 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4129 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4131 if test "$LN_S" = "ln -s"; then
4132 echo "$as_me:$LINENO: result: yes" >&5
4133 echo "${ECHO_T}yes" >&6
4135 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4136 echo "${ECHO_T}no, using $LN_S" >&6
4139 if test -n "$ac_tool_prefix"; then
4140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4142 echo "$as_me:$LINENO: checking for $ac_word" >&5
4143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4144 if test "${ac_cv_prog_RANLIB+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 if test -n "$RANLIB"; then
4148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 RANLIB=$ac_cv_prog_RANLIB
4167 if test -n "$RANLIB"; then
4168 echo "$as_me:$LINENO: result: $RANLIB" >&5
4169 echo "${ECHO_T}$RANLIB" >&6
4171 echo "$as_me:$LINENO: result: no" >&5
4172 echo "${ECHO_T}no" >&6
4176 if test -z "$ac_cv_prog_RANLIB"; then
4177 ac_ct_RANLIB=$RANLIB
4178 # Extract the first word of "ranlib", so it can be a program name with args.
4179 set dummy ranlib; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 if test -n "$ac_ct_RANLIB"; then
4186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_ac_ct_RANLIB="ranlib"
4196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4206 if test -n "$ac_ct_RANLIB"; then
4207 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4208 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4210 echo "$as_me:$LINENO: result: no" >&5
4211 echo "${ECHO_T}no" >&6
4214 RANLIB=$ac_ct_RANLIB
4216 RANLIB="$ac_cv_prog_RANLIB"
4219 echo "$as_me:$LINENO: checking for GNU make" >&5
4220 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4221 if test "${GNU_MAKE+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 GNU_MAKE='Not Found' ;
4225 for a in make gmake gnumake ; do
4226 if test -z "$a" ; then continue ; fi ;
4227 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
4234 echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
4235 echo "${ECHO_T}$GNU_MAKE" >&6 ;
4236 if test "x$GNU_MAKE" = "xNot Found" ; then
4237 echo " *** Please install GNU make. It is required to build Asterisk!"
4243 # Extract the first word of "grep", so it can be a program name with args.
4244 set dummy grep; ac_word=$2
4245 echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4247 if test "${ac_cv_path_GREP+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
4273 GREP=$ac_cv_path_GREP
4275 if test -n "$GREP"; then
4276 echo "$as_me:$LINENO: result: $GREP" >&5
4277 echo "${ECHO_T}$GREP" >&6
4279 echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6
4283 # Extract the first word of "ar", so it can be a program name with args.
4284 set dummy ar; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_path_AR+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
4315 if test -n "$AR"; then
4316 echo "$as_me:$LINENO: result: $AR" >&5
4317 echo "${ECHO_T}$AR" >&6
4319 echo "$as_me:$LINENO: result: no" >&5
4320 echo "${ECHO_T}no" >&6
4323 # Extract the first word of "find", so it can be a program name with args.
4324 set dummy find; ac_word=$2
4325 echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4327 if test "${ac_cv_path_FIND+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
4353 FIND=$ac_cv_path_FIND
4355 if test -n "$FIND"; then
4356 echo "$as_me:$LINENO: result: $FIND" >&5
4357 echo "${ECHO_T}$FIND" >&6
4359 echo "$as_me:$LINENO: result: no" >&5
4360 echo "${ECHO_T}no" >&6
4363 # Extract the first word of "compress", so it can be a program name with args.
4364 set dummy compress; ac_word=$2
4365 echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367 if test "${ac_cv_path_COMPRESS+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
4383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
4393 COMPRESS=$ac_cv_path_COMPRESS
4395 if test -n "$COMPRESS"; then
4396 echo "$as_me:$LINENO: result: $COMPRESS" >&5
4397 echo "${ECHO_T}$COMPRESS" >&6
4399 echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6
4403 # Extract the first word of "basename", so it can be a program name with args.
4404 set dummy basename; ac_word=$2
4405 echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4407 if test "${ac_cv_path_BASENAME+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4422 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
4433 BASENAME=$ac_cv_path_BASENAME
4435 if test -n "$BASENAME"; then
4436 echo "$as_me:$LINENO: result: $BASENAME" >&5
4437 echo "${ECHO_T}$BASENAME" >&6
4439 echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4443 # Extract the first word of "dirname", so it can be a program name with args.
4444 set dummy dirname; ac_word=$2
4445 echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4447 if test "${ac_cv_path_DIRNAME+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4462 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
4473 DIRNAME=$ac_cv_path_DIRNAME
4475 if test -n "$DIRNAME"; then
4476 echo "$as_me:$LINENO: result: $DIRNAME" >&5
4477 echo "${ECHO_T}$DIRNAME" >&6
4479 echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6
4483 # Extract the first word of "sh", so it can be a program name with args.
4484 set dummy sh; ac_word=$2
4485 echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4487 if test "${ac_cv_path_SHELL+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4502 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
4503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
4513 SHELL=$ac_cv_path_SHELL
4515 if test -n "$SHELL"; then
4516 echo "$as_me:$LINENO: result: $SHELL" >&5
4517 echo "${ECHO_T}$SHELL" >&6
4519 echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6
4523 # Extract the first word of "ln", so it can be a program name with args.
4524 set dummy ln; ac_word=$2
4525 echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4527 if test "${ac_cv_path_LN+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
4555 if test -n "$LN"; then
4556 echo "$as_me:$LINENO: result: $LN" >&5
4557 echo "${ECHO_T}$LN" >&6
4559 echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6
4563 # Extract the first word of "dot", so it can be a program name with args.
4564 set dummy dot; ac_word=$2
4565 echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4567 if test "${ac_cv_path_DOT+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
4595 if test -n "$DOT"; then
4596 echo "$as_me:$LINENO: result: $DOT" >&5
4597 echo "${ECHO_T}$DOT" >&6
4599 echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6
4605 ac_cpp='$CPP $CPPFLAGS'
4606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611 # Check whether --enable-dev-mode or --disable-dev-mode was given.
4612 if test "${enable_dev_mode+set}" = set; then
4613 enableval="$enable_dev_mode"
4614 case "${enableval}" in
4615 y|ye|yes) AST_DEVMODE=yes ;;
4616 n|no) AST_DEVMODE=no ;;
4617 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
4618 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
4619 { (exit 1); exit 1; }; } ;;
4626 echo "$as_me:$LINENO: checking for egrep" >&5
4627 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4628 if test "${ac_cv_prog_egrep+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4632 then ac_cv_prog_egrep='grep -E'
4633 else ac_cv_prog_egrep='egrep'
4636 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4637 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4638 EGREP=$ac_cv_prog_egrep
4641 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4642 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4643 if test "${ac_cv_header_stdc+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 cat >conftest.$ac_ext <<_ACEOF