2 # From configure.ac Revision: 26808 .
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"
279 # Factoring default headers for most tests.
280 ac_includes_default="\
283 # include <sys/types.h>
286 # include <sys/stat.h>
297 # if !STDC_HEADERS && HAVE_MEMORY_H
303 # include <strings.h>
306 # include <inttypes.h>
316 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'
319 # Initialize some variables set by options.
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
331 program_transform_name=s,x,x,
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369 # Accept the important Cygnus configure options, so we can diagnose typos.
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
391 cache_file=config.cache ;;
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 datadir=$ac_optarg ;;
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 eval "enable_$ac_feature='$ac_optarg'" ;;
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
434 -help | --help | --hel | --he | -h)
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
458 -libdir | --libdir | --libdi | --libd)
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
485 # Obsolete; use --without-fp.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 sbindir=$ac_optarg ;;
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 sharedstatedir=$ac_optarg ;;
562 -site | --site | --sit)
564 -site=* | --site=* | --sit=*)
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 -version | --version | --versio | --versi | --vers | -V)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 eval "with_$ac_package='$ac_optarg'" ;;
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
613 # Obsolete; use --with-x.
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
656 if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
665 eval ac_val=$`echo $ac_var`
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
677 eval ac_val=$`echo $ac_var`
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706 test "$silent" = yes && exec 6>/dev/null
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
726 if test ! -r $srcdir/$ac_unique_file; then
730 ac_srcdir_defaulted=no
732 if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CXX_set=${CXX+set}
774 ac_env_CXX_value=$CXX
775 ac_cv_env_CXX_set=${CXX+set}
776 ac_cv_env_CXX_value=$CXX
777 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_env_CXXFLAGS_value=$CXXFLAGS
779 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
780 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
781 ac_env_CPP_set=${CPP+set}
782 ac_env_CPP_value=$CPP
783 ac_cv_env_CPP_set=${CPP+set}
784 ac_cv_env_CPP_value=$CPP
785 ac_env_CXXCPP_set=${CXXCPP+set}
786 ac_env_CXXCPP_value=$CXXCPP
787 ac_cv_env_CXXCPP_set=${CXXCPP+set}
788 ac_cv_env_CXXCPP_value=$CXXCPP
791 # Report the --help message.
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
797 \`configure' configures this package to adapt to many kinds of systems.
799 Usage: $0 [OPTION]... [VAR=VALUE]...
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
804 Defaults for the options are specified in brackets.
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
831 For better control, use the options below.
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
851 --build=BUILD configure for building on BUILD [guessed]
852 --host=HOST cross-compile to build programs to run on HOST [BUILD]
853 --target=TARGET configure for building compilers for TARGET [HOST]
857 if test -n "$ac_init_help"; then
862 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
863 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
864 --enable-dev-mode Turn on developer mode
865 --disable-largefile omit support for large files
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
871 --with-curses=PATH use curses files in PATH
872 --with-nbs=PATH use Network Broadcast Sound files in PATH
873 --with-ncurses=PATH use ncurses files in PATH
874 --with-newt=PATH use newt files in PATH
875 --with-odbc=PATH use unixODBC files in PATH
876 --with-ogg=PATH use OGG files in PATH
877 --with-osptk=PATH use OSP Toolkit files in PATH
878 --with-popt=PATH use popt files in PATH
879 --with-pri=PATH use ISDN PRI files in PATH
880 --with-speex=PATH use Speex files in PATH
881 --with-sqlite=PATH use SQLite files in PATH
882 --with-ssl=PATH use OpenSSL files in PATH
883 --with-tds=PATH use FreeTDS files in PATH
884 --with-termcap=PATH use Termcap files in PATH
885 --with-tinfo=PATH use Term Info files in PATH
886 --with-vorbis=PATH use Vorbis files in PATH
887 --with-z=PATH use zlib files in PATH
888 --with-ossaudio=PATH use Open Sound System files in PATH
889 --with-tonezone=PATH use Zaptel files in PATH
890 --with-gsm=PATH use libgsm files in PATH, or 'internal'
891 --with-pq=PATH use PostgreSQL files in PATH
892 --with-vpb=PATH use vpb files in PATH
893 --with-qt=PATH use Qt files in PATH
894 --with-kde=PATH use KDE files in PATH
895 --with-pwlib=PATH use PWLib files in PATH
897 Some influential environment variables:
898 CC C compiler command
899 CFLAGS C compiler flags
900 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
901 nonstandard directory <lib dir>
902 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
903 headers in a nonstandard directory <include dir>
904 CXX C++ compiler command
905 CXXFLAGS C++ compiler flags
907 CXXCPP C++ preprocessor
909 Use these variables to override the choices made by `configure' or to help
910 it to find libraries and programs with nonstandard names/locations.
915 if test "$ac_init_help" = "recursive"; then
916 # If there are subdirs, report their specific --help.
918 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
919 test -d $ac_dir || continue
922 if test "$ac_dir" != .; then
923 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
924 # A "../" for each directory in $ac_dir_suffix.
925 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
927 ac_dir_suffix= ac_top_builddir=
931 .) # No --srcdir option. We are building in place.
933 if test -z "$ac_top_builddir"; then
936 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
938 [\\/]* | ?:[\\/]* ) # Absolute path.
939 ac_srcdir=$srcdir$ac_dir_suffix;
940 ac_top_srcdir=$srcdir ;;
942 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
943 ac_top_srcdir=$ac_top_builddir$srcdir ;;
946 # Do not use `cd foo && pwd` to compute absolute paths, because
947 # the directories may not exist.
949 .) ac_abs_builddir="$ac_dir";;
952 .) ac_abs_builddir=`pwd`;;
953 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
954 *) ac_abs_builddir=`pwd`/"$ac_dir";;
957 case $ac_abs_builddir in
958 .) ac_abs_top_builddir=${ac_top_builddir}.;;
960 case ${ac_top_builddir}. in
961 .) ac_abs_top_builddir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
963 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966 case $ac_abs_builddir in
967 .) ac_abs_srcdir=$ac_srcdir;;
970 .) ac_abs_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
972 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975 case $ac_abs_builddir in
976 .) ac_abs_top_srcdir=$ac_top_srcdir;;
978 case $ac_top_srcdir in
979 .) ac_abs_top_srcdir=$ac_abs_builddir;;
980 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
981 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
986 # Check for guested configure; otherwise get Cygnus style configure.
987 if test -f $ac_srcdir/configure.gnu; then
989 $SHELL $ac_srcdir/configure.gnu --help=recursive
990 elif test -f $ac_srcdir/configure; then
992 $SHELL $ac_srcdir/configure --help=recursive
993 elif test -f $ac_srcdir/configure.ac ||
994 test -f $ac_srcdir/configure.in; then
998 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1004 test -n "$ac_init_help" && exit 0
1005 if $ac_init_version; then
1008 Copyright (C) 2003 Free Software Foundation, Inc.
1009 This configure script is free software; the Free Software Foundation
1010 gives unlimited permission to copy, distribute and modify it.
1018 This file contains any messages produced by compilers while
1019 running configure, to aid debugging if configure makes a mistake.
1021 It was created by $as_me, which was
1022 generated by GNU Autoconf 2.59. Invocation command line was
1033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1040 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1042 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1043 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1045 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1046 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1047 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1048 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 test -z "$as_dir" && as_dir=.
1057 echo "PATH: $as_dir"
1072 # Keep a trace of the command line.
1073 # Strip out --no-create and --no-recursion so they do not pile up.
1074 # Strip out --silent because we don't want to record it for future runs.
1075 # Also quote any args containing shell meta-characters.
1076 # Make two passes to allow for proper duplicate-argument suppression.
1081 ac_must_keep_next=false
1087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1091 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1092 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1098 if test $ac_must_keep_next = true; then
1099 ac_must_keep_next=false # Got value, back to normal.
1102 *=* | --config-cache | -C | -disable-* | --disable-* \
1103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1105 | -with-* | --with-* | -without-* | --without-* | --x)
1106 case "$ac_configure_args0 " in
1107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110 -* ) ac_must_keep_next=true ;;
1113 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1114 # Get rid of the leading space.
1120 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1121 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123 # When interrupted or exit'd, cleanup temporary files, and complete
1124 # config.log. We remove comments because anyway the quotes in there
1125 # would cause problems or look ugly.
1126 # WARNING: Be sure not to use single quotes in there, as some shells,
1127 # such as our DU 5.0 friend, will then `close' the trap.
1128 trap 'exit_status=$?
1129 # Save into config.log some information that might help in debugging.
1134 ## ---------------- ##
1135 ## Cache variables. ##
1136 ## ---------------- ##
1139 # The following way of writing the cache mishandles newlines in values,
1142 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157 ## ----------------- ##
1158 ## Output variables. ##
1159 ## ----------------- ##
1162 for ac_var in $ac_subst_vars
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1169 if test -n "$ac_subst_files"; then
1176 for ac_var in $ac_subst_files
1178 eval ac_val=$`echo $ac_var`
1179 echo "$ac_var='"'"'$ac_val'"'"'"
1184 if test -s confdefs.h; then
1191 sed "/^$/d" confdefs.h | sort
1194 test "$ac_signal" != 0 &&
1195 echo "$as_me: caught signal $ac_signal"
1196 echo "$as_me: exit $exit_status"
1198 rm -f core *.core &&
1199 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202 for ac_signal in 1 2 13 15; do
1203 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1208 rm -rf conftest* confdefs.h
1209 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212 # Predefined preprocessor variables.
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_NAME "$PACKAGE_NAME"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_STRING "$PACKAGE_STRING"
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239 # Let the site file select an alternate cache file if it wants to.
1240 # Prefer explicitly selected file to automatically selected ones.
1241 if test -z "$CONFIG_SITE"; then
1242 if test "x$prefix" != xNONE; then
1243 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248 for ac_site_file in $CONFIG_SITE; do
1249 if test -r "$ac_site_file"; then
1250 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1251 echo "$as_me: loading site script $ac_site_file" >&6;}
1252 sed 's/^/| /' "$ac_site_file" >&5
1257 if test -r "$cache_file"; then
1258 # Some versions of bash will fail to source /dev/null (special
1259 # files actually), so we avoid doing that.
1260 if test -f "$cache_file"; then
1261 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1262 echo "$as_me: loading cache $cache_file" >&6;}
1264 [\\/]* | ?:[\\/]* ) . $cache_file;;
1265 *) . ./$cache_file;;
1269 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1270 echo "$as_me: creating cache $cache_file" >&6;}
1274 # Check that the precious variables saved in the cache have kept the same
1276 ac_cache_corrupted=false
1277 for ac_var in `(set) 2>&1 |
1278 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1279 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1280 eval ac_new_set=\$ac_env_${ac_var}_set
1281 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1282 eval ac_new_val="\$ac_env_${ac_var}_value"
1283 case $ac_old_set,$ac_new_set in
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1286 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1294 if test "x$ac_old_val" != "x$ac_new_val"; then
1295 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1296 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1297 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1298 echo "$as_me: former value: $ac_old_val" >&2;}
1299 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1300 echo "$as_me: current value: $ac_new_val" >&2;}
1301 ac_cache_corrupted=:
1304 # Pass precious variables to config.status.
1305 if test "$ac_new_set" = set; then
1307 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1309 *) ac_arg=$ac_var=$ac_new_val ;;
1311 case " $ac_configure_args " in
1312 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1313 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1317 if $ac_cache_corrupted; then
1318 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1319 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1320 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1321 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1322 { (exit 1); exit 1; }; }
1326 ac_cpp='$CPP $CPPFLAGS'
1327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1350 # cross-compile macros
1352 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1353 if test -f $ac_dir/install-sh; then
1355 ac_install_sh="$ac_aux_dir/install-sh -c"
1357 elif test -f $ac_dir/install.sh; then
1359 ac_install_sh="$ac_aux_dir/install.sh -c"
1361 elif test -f $ac_dir/shtool; then
1363 ac_install_sh="$ac_aux_dir/shtool install -c"
1367 if test -z "$ac_aux_dir"; then
1368 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1369 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1370 { (exit 1); exit 1; }; }
1372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1374 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1376 # Make sure we can run config.sub.
1377 $ac_config_sub sun4 >/dev/null 2>&1 ||
1378 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1379 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1380 { (exit 1); exit 1; }; }
1382 echo "$as_me:$LINENO: checking build system type" >&5
1383 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1384 if test "${ac_cv_build+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 ac_cv_build_alias=$build_alias
1388 test -z "$ac_cv_build_alias" &&
1389 ac_cv_build_alias=`$ac_config_guess`
1390 test -z "$ac_cv_build_alias" &&
1391 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1392 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1393 { (exit 1); exit 1; }; }
1394 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1400 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1401 echo "${ECHO_T}$ac_cv_build" >&6
1403 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1408 echo "$as_me:$LINENO: checking host system type" >&5
1409 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1410 if test "${ac_cv_host+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 ac_cv_host_alias=$host_alias
1414 test -z "$ac_cv_host_alias" &&
1415 ac_cv_host_alias=$ac_cv_build_alias
1416 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1423 echo "${ECHO_T}$ac_cv_host" >&6
1425 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430 echo "$as_me:$LINENO: checking target system type" >&5
1431 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1432 if test "${ac_cv_target+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 ac_cv_target_alias=$target_alias
1436 test "x$ac_cv_target_alias" = "x" &&
1437 ac_cv_target_alias=$ac_cv_host_alias
1438 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1444 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1445 echo "${ECHO_T}$ac_cv_target" >&6
1446 target=$ac_cv_target
1447 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452 # The aliases save the names the user supplied, while $host etc.
1453 # will get canonicalized.
1454 test -n "$target_alias" &&
1455 test "$program_prefix$program_suffix$program_transform_name" = \
1457 program_prefix=${target_alias}-
1459 # check existence of the package
1462 # specify output header file
1463 ac_config_headers="$ac_config_headers include/autoconfig.h"
1471 ac_default_prefix=/usr/local
1474 ac_default_prefix=/usr
1478 if test ${sysconfdir} = '${prefix}/etc'; then
1482 if test ${localstatedir} = '${prefix}/var'; then
1486 if test ${mandir} = '${prefix}/man'; then
1487 mandir=/usr/share/man
1492 cat >>confdefs.h <<_ACEOF
1493 #define PBX_PLATFORM "${host}"
1497 cat >>confdefs.h <<_ACEOF
1498 #define PBX_CPU "${host_cpu}"
1502 cat >>confdefs.h <<_ACEOF
1503 #define PBX_VENDOR "${host_vendor}"
1507 cat >>confdefs.h <<_ACEOF
1508 #define PBX_OS "${host_os}"
1512 # export some useful defines
1513 PBX_PLATFORM=${host}
1515 PBX_VENDOR=${host_vendor}
1523 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}uname; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_path_UNAME+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553 UNAME=$ac_cv_path_UNAME
1555 if test -n "$UNAME"; then
1556 echo "$as_me:$LINENO: result: $UNAME" >&5
1557 echo "${ECHO_T}$UNAME" >&6
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1564 if test -z "$ac_cv_path_UNAME"; then
1566 # Extract the first word of "uname", so it can be a program name with args.
1567 set dummy uname; ac_word=$2
1568 echo "$as_me:$LINENO: checking for $ac_word" >&5
1569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1570 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 case $ac_pt_UNAME in
1575 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 test -z "$ac_cv_path_ac_pt_UNAME" && ac_cv_path_ac_pt_UNAME="No"
1596 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
1598 if test -n "$ac_pt_UNAME"; then
1599 echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
1600 echo "${ECHO_T}$ac_pt_UNAME" >&6
1602 echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1608 UNAME="$ac_cv_path_UNAME"
1611 if test ! x"${UNAME}" = xNo; then
1612 PBX_OSREV=$(${UNAME} -r)
1618 cygwin*|mingw*|windows*|winnt)
1620 cat >>confdefs.h <<\_ACEOF
1625 # this is ugly - KPF
1631 cat >>confdefs.h <<\_ACEOF
1639 cat >>confdefs.h <<\_ACEOF
1647 cat >>confdefs.h <<\_ACEOF
1651 PBX_OSTYPE="FreeBSD"
1652 # XXX temporary hack to let FreeBSD use the default paths
1653 # for local stuff. We need a better solution.
1654 if test x"${CPPFLAGS}" = x; then
1655 CPPFLAGS="-I /usr/local/include"
1657 if test x"${LDFLAGS}" = x; then
1658 LDFLAGS="-L /usr/local/lib"
1663 cat >>confdefs.h <<\_ACEOF
1667 PBX_OSTYPE="OpenBSD"
1671 cat >>confdefs.h <<\_ACEOF
1679 cat >>confdefs.h <<\_ACEOF
1687 cat >>confdefs.h <<\_ACEOF
1696 # This needs to be before any macros that use the C compiler
1698 cat >>confdefs.h <<\_ACEOF
1699 #define _GNU_SOURCE 1
1707 # cross-compile checks
1708 if test x"${build}" != x"${host}";
1710 if test -n "$ac_tool_prefix"; then
1711 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1712 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_CC+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 if test -n "$CC"; then
1719 ac_cv_prog_CC="$CC" # Let the user override the test.
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 if test -n "$CC"; then
1739 echo "$as_me:$LINENO: result: $CC" >&5
1740 echo "${ECHO_T}$CC" >&6
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1747 if test -z "$ac_cv_prog_CC"; then
1749 # Extract the first word of "gcc", so it can be a program name with args.
1750 set dummy gcc; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 if test -n "$ac_ct_CC"; then
1757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 ac_cv_prog_ac_ct_CC="gcc"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 test -z "$ac_cv_prog_ac_ct_CC" && ac_cv_prog_ac_ct_CC=":"
1776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1777 if test -n "$ac_ct_CC"; then
1778 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1779 echo "${ECHO_T}$ac_ct_CC" >&6
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1790 if test -n "$ac_tool_prefix"; then
1791 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
1792 set dummy ${ac_tool_prefix}g++; ac_word=$2
1793 echo "$as_me:$LINENO: checking for $ac_word" >&5
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795 if test "${ac_cv_prog_CXX+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 if test -n "$CXX"; then
1799 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 test -z "$as_dir" && as_dir=.
1806 for ac_exec_ext in '' $ac_executable_extensions; do
1807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808 ac_cv_prog_CXX="${ac_tool_prefix}g++"
1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 if test -n "$CXX"; then
1819 echo "$as_me:$LINENO: result: $CXX" >&5
1820 echo "${ECHO_T}$CXX" >&6
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1827 if test -z "$ac_cv_prog_CXX"; then
1829 # Extract the first word of "g++", so it can be a program name with args.
1830 set dummy g++; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 if test -n "$ac_ct_CXX"; then
1837 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_ac_ct_CXX="g++"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 test -z "$ac_cv_prog_ac_ct_CXX" && ac_cv_prog_ac_ct_CXX=":"
1856 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1857 if test -n "$ac_ct_CXX"; then
1858 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1859 echo "${ECHO_T}$ac_ct_CXX" >&6
1861 echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1867 CXX="$ac_cv_prog_CXX"
1870 if test -n "$ac_tool_prefix"; then
1871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_RANLIB+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test -n "$RANLIB"; then
1879 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 RANLIB=$ac_cv_prog_RANLIB
1898 if test -n "$RANLIB"; then
1899 echo "$as_me:$LINENO: result: $RANLIB" >&5
1900 echo "${ECHO_T}$RANLIB" >&6
1902 echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1907 if test -z "$ac_cv_prog_RANLIB"; then
1908 ac_ct_RANLIB=$RANLIB
1909 # Extract the first word of "ranlib", so it can be a program name with args.
1910 set dummy ranlib; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 if test -n "$ac_ct_RANLIB"; then
1917 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_ac_ct_RANLIB="ranlib"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1936 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1937 if test -n "$ac_ct_RANLIB"; then
1938 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1939 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1945 RANLIB=$ac_ct_RANLIB
1947 RANLIB="$ac_cv_prog_RANLIB"
1950 if test -n "$ac_tool_prefix"; then
1951 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1952 set dummy ${ac_tool_prefix}ar; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_AR+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 if test -n "$AR"; then
1959 ac_cv_prog_AR="$AR" # Let the user override the test.
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968 ac_cv_prog_AR="${ac_tool_prefix}ar"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 if test -n "$AR"; then
1979 echo "$as_me:$LINENO: result: $AR" >&5
1980 echo "${ECHO_T}$AR" >&6
1982 echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1987 if test -z "$ac_cv_prog_AR"; then
1989 # Extract the first word of "ar", so it can be a program name with args.
1990 set dummy ar; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 if test -n "$ac_ct_AR"; then
1997 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_prog_ac_ct_AR="ar"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
2016 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2017 if test -n "$ac_ct_AR"; then
2018 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2019 echo "${ECHO_T}$ac_ct_AR" >&6
2021 echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6
2031 if test x"${PBX_OSTYPE}" = xWin32;
2033 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}nm; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_NM+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$NM"; then
2042 ac_cv_prog_NM="$NM" # Let the user override the test.
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_NM="${ac_tool_prefix}nm"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 if test -n "$NM"; then
2062 echo "$as_me:$LINENO: result: $NM" >&5
2063 echo "${ECHO_T}$NM" >&6
2065 echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2070 if test -z "$ac_cv_prog_NM"; then
2072 # Extract the first word of "nm", so it can be a program name with args.
2073 set dummy nm; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 if test -n "$ac_ct_NM"; then
2080 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089 ac_cv_prog_ac_ct_NM="nm"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
2099 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2100 if test -n "$ac_ct_NM"; then
2101 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2102 echo "${ECHO_T}$ac_ct_NM" >&6
2104 echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2113 if test -n "$ac_tool_prefix"; then
2114 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
2115 set dummy ${ac_tool_prefix}windres; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_WINDRES+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 if test -n "$WINDRES"; then
2122 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 WINDRES=$ac_cv_prog_WINDRES
2141 if test -n "$WINDRES"; then
2142 echo "$as_me:$LINENO: result: $WINDRES" >&5
2143 echo "${ECHO_T}$WINDRES" >&6
2145 echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2150 if test -z "$ac_cv_prog_WINDRES"; then
2151 ac_ct_WINDRES=$WINDRES
2152 # Extract the first word of "windres", so it can be a program name with args.
2153 set dummy windres; ac_word=$2
2154 echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 if test -n "$ac_ct_WINDRES"; then
2160 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169 ac_cv_prog_ac_ct_WINDRES="windres"
2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
2179 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
2180 if test -n "$ac_ct_WINDRES"; then
2181 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
2182 echo "${ECHO_T}$ac_ct_WINDRES" >&6
2184 echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6
2188 WINDRES=$ac_ct_WINDRES
2190 WINDRES="$ac_cv_prog_WINDRES"
2193 if test -n "$ac_tool_prefix"; then
2194 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
2195 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
2196 echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 if test -n "$DLLWRAP"; then
2202 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 DLLWRAP=$ac_cv_prog_DLLWRAP
2221 if test -n "$DLLWRAP"; then
2222 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
2223 echo "${ECHO_T}$DLLWRAP" >&6
2225 echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2230 if test -z "$ac_cv_prog_DLLWRAP"; then
2231 ac_ct_DLLWRAP=$DLLWRAP
2232 # Extract the first word of "dllwrap", so it can be a program name with args.
2233 set dummy dllwrap; ac_word=$2
2234 echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 if test -n "$ac_ct_DLLWRAP"; then
2240 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2249 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP=":"
2259 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
2260 if test -n "$ac_ct_DLLWRAP"; then
2261 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
2262 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
2264 echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6
2268 DLLWRAP=$ac_ct_DLLWRAP
2270 DLLWRAP="$ac_cv_prog_DLLWRAP"
2277 # Checks for programs.
2279 ac_cpp='$CPP $CPPFLAGS'
2280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283 if test -n "$ac_tool_prefix"; then
2284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2285 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2286 echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2288 if test "${ac_cv_prog_CC+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 if test -n "$CC"; then
2292 ac_cv_prog_CC="$CC" # Let the user override the test.
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2301 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 if test -n "$CC"; then
2312 echo "$as_me:$LINENO: result: $CC" >&5
2313 echo "${ECHO_T}$CC" >&6
2315 echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6
2320 if test -z "$ac_cv_prog_CC"; then
2322 # Extract the first word of "gcc", so it can be a program name with args.
2323 set dummy gcc; ac_word=$2
2324 echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2326 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 if test -n "$ac_ct_CC"; then
2330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2339 ac_cv_prog_ac_ct_CC="gcc"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2349 if test -n "$ac_ct_CC"; then
2350 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2351 echo "${ECHO_T}$ac_ct_CC" >&6
2353 echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6
2362 if test -z "$CC"; then
2363 if test -n "$ac_tool_prefix"; then
2364 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2365 set dummy ${ac_tool_prefix}cc; ac_word=$2
2366 echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2368 if test "${ac_cv_prog_CC+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 if test -n "$CC"; then
2372 ac_cv_prog_CC="$CC" # Let the user override the test.
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2381 ac_cv_prog_CC="${ac_tool_prefix}cc"
2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 if test -n "$CC"; then
2392 echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6
2395 echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6
2400 if test -z "$ac_cv_prog_CC"; then
2402 # Extract the first word of "cc", so it can be a program name with args.
2403 set dummy cc; ac_word=$2
2404 echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 if test -n "$ac_ct_CC"; then
2410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2419 ac_cv_prog_ac_ct_CC="cc"
2420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2429 if test -n "$ac_ct_CC"; then
2430 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2431 echo "${ECHO_T}$ac_ct_CC" >&6
2433 echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6
2443 if test -z "$CC"; then
2444 # Extract the first word of "cc", so it can be a program name with args.
2445 set dummy cc; ac_word=$2
2446 echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2448 if test "${ac_cv_prog_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC="$CC" # Let the user override the test.
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2463 ac_prog_rejected=yes
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 if test $ac_prog_rejected = yes; then
2474 # We found a bogon in the path, so make sure we never use it.
2475 set dummy $ac_cv_prog_CC
2477 if test $# != 0; then
2478 # We chose a different compiler from the bogus one.
2479 # However, it has the same basename, so the bogon will be chosen
2480 # first if we set CC to just the basename; use the full file name.
2482 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2488 if test -n "$CC"; then
2489 echo "$as_me:$LINENO: result: $CC" >&5
2490 echo "${ECHO_T}$CC" >&6
2492 echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2497 if test -z "$CC"; then
2498 if test -n "$ac_tool_prefix"; then
2501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2503 echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2505 if test "${ac_cv_prog_CC+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 if test -n "$CC"; then
2529 echo "$as_me:$LINENO: result: $CC" >&5
2530 echo "${ECHO_T}$CC" >&6
2532 echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6
2536 test -n "$CC" && break
2539 if test -z "$CC"; then
2543 # Extract the first word of "$ac_prog", so it can be a program name with args.
2544 set dummy $ac_prog; ac_word=$2
2545 echo "$as_me:$LINENO: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 if test -n "$ac_ct_CC"; then
2551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2560 ac_cv_prog_ac_ct_CC="$ac_prog"
2561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2570 if test -n "$ac_ct_CC"; then
2571 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2572 echo "${ECHO_T}$ac_ct_CC" >&6
2574 echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6
2578 test -n "$ac_ct_CC" && break
2587 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2588 See \`config.log' for more details." >&5
2589 echo "$as_me: error: no acceptable C compiler found in \$PATH
2590 See \`config.log' for more details." >&2;}
2591 { (exit 1); exit 1; }; }
2593 # Provide some information about the compiler.
2594 echo "$as_me:$LINENO:" \
2595 "checking for C compiler version" >&5
2596 ac_compiler=`set X $ac_compile; echo $2`
2597 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2598 (eval $ac_compiler --version </dev/null >&5) 2>&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }
2602 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2603 (eval $ac_compiler -v </dev/null >&5) 2>&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }
2607 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2608 (eval $ac_compiler -V </dev/null >&5) 2>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2613 cat >conftest.$ac_ext <<_ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2628 ac_clean_files_save=$ac_clean_files
2629 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2630 # Try to create an executable without -o first, disregard a.out.
2631 # It will help us diagnose broken compilers, and finding out an intuition
2633 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2634 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2635 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2636 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2637 (eval $ac_link_default) 2>&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; then
2641 # Find the output, starting from the most likely. This scheme is
2642 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2645 # Be careful to initialize this variable, since it used to be cached.
2646 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2648 # b.out is created by i960 compilers.
2649 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2651 test -f "$ac_file" || continue
2653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2656 # This is the source file.
2659 # We found the default executable, but exeext='' is most
2663 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2664 # FIXME: I believe we export ac_cv_exeext for Libtool,
2665 # but it would be cool to find out if it's true. Does anybody
2666 # maintain Libtool? --akim.
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2677 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2678 See \`config.log' for more details." >&5
2679 echo "$as_me: error: C compiler cannot create executables
2680 See \`config.log' for more details." >&2;}
2681 { (exit 77); exit 77; }; }
2684 ac_exeext=$ac_cv_exeext
2685 echo "$as_me:$LINENO: result: $ac_file" >&5
2686 echo "${ECHO_T}$ac_file" >&6
2688 # Check the compiler produces executables we can run. If not, either
2689 # the compiler is broken, or we cross compile.
2690 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2691 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2692 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2693 # If not cross compiling, check that we can run a simple program.
2694 if test "$cross_compiling" != yes; then
2695 if { ac_try='./$ac_file'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2703 if test "$cross_compiling" = maybe; then
2706 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2707 If you meant to cross compile, use \`--host'.
2708 See \`config.log' for more details." >&5
2709 echo "$as_me: error: cannot run C compiled programs.
2710 If you meant to cross compile, use \`--host'.
2711 See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }
2716 echo "$as_me:$LINENO: result: yes" >&5
2717 echo "${ECHO_T}yes" >&6
2719 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2720 ac_clean_files=$ac_clean_files_save
2721 # Check the compiler produces executables we can run. If not, either
2722 # the compiler is broken, or we cross compile.
2723 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2724 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2725 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2726 echo "${ECHO_T}$cross_compiling" >&6
2728 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2729 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2731 (eval $ac_link) 2>&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; then
2735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2737 # work properly (i.e., refer to `conftest.exe'), while it won't with
2739 for ac_file in conftest.exe conftest conftest.*; do
2740 test -f "$ac_file" || continue
2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2750 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2751 See \`config.log' for more details." >&5
2752 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2753 See \`config.log' for more details." >&2;}
2754 { (exit 1); exit 1; }; }
2757 rm -f conftest$ac_cv_exeext
2758 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2759 echo "${ECHO_T}$ac_cv_exeext" >&6
2761 rm -f conftest.$ac_ext
2762 EXEEXT=$ac_cv_exeext
2764 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2765 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2766 if test "${ac_cv_objext+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2784 rm -f conftest.o conftest.obj
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; then
2790 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2793 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2801 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2802 See \`config.log' for more details." >&5
2803 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2804 See \`config.log' for more details." >&2;}
2805 { (exit 1); exit 1; }; }
2808 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2810 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2811 echo "${ECHO_T}$ac_cv_objext" >&6
2812 OBJEXT=$ac_cv_objext
2814 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2815 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2816 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 cat >conftest.$ac_ext <<_ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839 (eval $ac_compile) 2>conftest.er1
2841 grep -v '^ *+' conftest.er1 >conftest.err
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; } &&
2852 { ac_try='test -s conftest.$ac_objext'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2869 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2870 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2871 GCC=`test $ac_compiler_gnu = yes && echo yes`
2872 ac_test_CFLAGS=${CFLAGS+set}
2873 ac_save_CFLAGS=$CFLAGS
2875 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2876 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2877 if test "${ac_cv_prog_cc_g+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 cat >conftest.$ac_ext <<_ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897 (eval $ac_compile) 2>conftest.er1
2899 grep -v '^ *+' conftest.er1 >conftest.err
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2925 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2926 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2927 if test "$ac_test_CFLAGS" = set; then
2928 CFLAGS=$ac_save_CFLAGS
2929 elif test $ac_cv_prog_cc_g = yes; then
2930 if test "$GCC" = yes; then
2936 if test "$GCC" = yes; then
2942 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2943 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2944 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 ac_cv_prog_cc_stdc=no
2949 cat >conftest.$ac_ext <<_ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2957 #include <sys/types.h>
2958 #include <sys/stat.h>
2959 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2960 struct buf { int x; };
2961 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2962 static char *e (p, i)
2968 static char *f (char * (*g) (char **, int), char **p, ...)
2973 s = g (p, va_arg (v,int));
2978 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2979 function prototypes and stuff, but not '\xHH' hex character constants.
2980 These don't provoke an error unfortunately, instead are silently treated
2981 as 'x'. The following induces an error, until -std1 is added to get
2982 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2983 array size at least. It's necessary to write '\x00'==0 to get something
2984 that's true only with -std1. */
2985 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2987 int test (int i, double x);
2988 struct s1 {int (*f) (int a);};
2989 struct s2 {int (*f) (double a);};
2990 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2996 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3001 # Don't try gcc -ansi; that turns off useful extensions and
3002 # breaks some systems' header files.
3003 # AIX -qlanglvl=ansi
3004 # Ultrix and OSF/1 -std1
3005 # HP-UX 10.20 and later -Ae
3006 # HP-UX older versions -Aa -D_HPUX_SOURCE
3007 # SVR4 -Xc -D__EXTENSIONS__
3008 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3010 CC="$ac_save_CC $ac_arg"
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3015 grep -v '^ *+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3032 ac_cv_prog_cc_stdc=$ac_arg
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3039 rm -f conftest.err conftest.$ac_objext
3041 rm -f conftest.$ac_ext conftest.$ac_objext
3046 case "x$ac_cv_prog_cc_stdc" in
3048 echo "$as_me:$LINENO: result: none needed" >&5
3049 echo "${ECHO_T}none needed" >&6 ;;
3051 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3052 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3053 CC="$CC $ac_cv_prog_cc_stdc" ;;
3056 # Some people use a C++ compiler to compile C. Since we use `exit',
3057 # in C++ we need to declare it. In case someone uses the same compiler
3058 # for both compiling C and C++ we need to have the C++ compiler decide
3059 # the declaration of exit, since it's the most demanding environment.
3060 cat >conftest.$ac_ext <<_ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067 (eval $ac_compile) 2>conftest.er1
3069 grep -v '^ *+' conftest.er1 >conftest.err
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; }; then
3086 for ac_declaration in \
3088 'extern "C" void std::exit (int) throw (); using std::exit;' \
3089 'extern "C" void std::exit (int); using std::exit;' \
3090 'extern "C" void exit (int) throw ();' \
3091 'extern "C" void exit (int);' \
3094 cat >conftest.$ac_ext <<_ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3110 rm -f conftest.$ac_objext
3111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3112 (eval $ac_compile) 2>conftest.er1
3114 grep -v '^ *+' conftest.er1 >conftest.err
3116 cat conftest.err >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } &&
3119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; }; then
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3154 rm -f conftest.$ac_objext
3155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3156 (eval $ac_compile) 2>conftest.er1
3158 grep -v '^ *+' conftest.er1 >conftest.err
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } &&
3163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3184 if test -n "$ac_declaration"; then
3185 echo '#ifdef __cplusplus' >>confdefs.h
3186 echo $ac_declaration >>confdefs.h
3187 echo '#endif' >>confdefs.h
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 ac_cpp='$CXXCPP $CPPFLAGS'
3204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3207 if test -n "$ac_tool_prefix"; then
3208 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3212 echo "$as_me:$LINENO: checking for $ac_word" >&5
3213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3214 if test "${ac_cv_prog_CXX+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 if test -n "$CXX"; then
3218 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 if test -n "$CXX"; then
3238 echo "$as_me:$LINENO: result: $CXX" >&5
3239 echo "${ECHO_T}$CXX" >&6
3241 echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6
3245 test -n "$CXX" && break
3248 if test -z "$CXX"; then
3250 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3252 # Extract the first word of "$ac_prog", so it can be a program name with args.
3253 set dummy $ac_prog; ac_word=$2
3254 echo "$as_me:$LINENO: checking for $ac_word" >&5
3255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3256 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 if test -n "$ac_ct_CXX"; then
3260 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_ac_ct_CXX="$ac_prog"
3270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3279 if test -n "$ac_ct_CXX"; then
3280 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3281 echo "${ECHO_T}$ac_ct_CXX" >&6
3283 echo "$as_me:$LINENO: result: no" >&5
3284 echo "${ECHO_T}no" >&6
3287 test -n "$ac_ct_CXX" && break
3289 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3295 # Provide some information about the compiler.
3296 echo "$as_me:$LINENO:" \
3297 "checking for C++ compiler version" >&5
3298 ac_compiler=`set X $ac_compile; echo $2`
3299 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3300 (eval $ac_compiler --version </dev/null >&5) 2>&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }
3304 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3305 (eval $ac_compiler -v </dev/null >&5) 2>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }
3309 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3310 (eval $ac_compiler -V </dev/null >&5) 2>&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }
3315 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3316 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3317 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 cat >conftest.$ac_ext <<_ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3338 rm -f conftest.$ac_objext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; } &&
3353 { ac_try='test -s conftest.$ac_objext'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3367 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3370 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3371 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3372 GXX=`test $ac_compiler_gnu = yes && echo yes`
3373 ac_test_CXXFLAGS=${CXXFLAGS+set}
3374 ac_save_CXXFLAGS=$CXXFLAGS
3376 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3377 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3378 if test "${ac_cv_prog_cxx_g+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3396 rm -f conftest.$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398 (eval $ac_compile) 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_cv_prog_cxx_g=yes
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3426 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3427 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3428 if test "$ac_test_CXXFLAGS" = set; then
3429 CXXFLAGS=$ac_save_CXXFLAGS
3430 elif test $ac_cv_prog_cxx_g = yes; then
3431 if test "$GXX" = yes; then
3437 if test "$GXX" = yes; then
3443 for ac_declaration in \
3445 'extern "C" void std::exit (int) throw (); using std::exit;' \
3446 'extern "C" void std::exit (int); using std::exit;' \
3447 'extern "C" void exit (int) throw ();' \
3448 'extern "C" void exit (int);' \
3451 cat >conftest.$ac_ext <<_ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3467 rm -f conftest.$ac_objext
3468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3469 (eval $ac_compile) 2>conftest.er1
3471 grep -v '^ *+' conftest.er1 >conftest.err
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } &&
3476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; } &&
3482 { ac_try='test -s conftest.$ac_objext'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3496 cat >conftest.$ac_ext <<_ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; } &&
3526 { ac_try='test -s conftest.$ac_objext'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; }; then
3534 echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3541 if test -n "$ac_declaration"; then
3542 echo '#ifdef __cplusplus' >>confdefs.h
3543 echo $ac_declaration >>confdefs.h
3544 echo '#endif' >>confdefs.h
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554 ac_cpp='$CPP $CPPFLAGS'
3555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3559 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3560 # On Suns, sometimes $CPP names a directory.
3561 if test -n "$CPP" && test -d "$CPP"; then
3564 if test -z "$CPP"; then
3565 if test "${ac_cv_prog_CPP+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 # Double quotes because CPP needs to be expanded
3569 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3572 for ac_c_preproc_warn_flag in '' yes
3574 # Use a header file that comes with gcc, so configuring glibc
3575 # with a fresh cross-compiler works.
3576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 # <limits.h> exists even on freestanding compilers.
3578 # On the NeXT, cc -E runs the code through the compiler's parser,
3579 # not just through cpp. "Syntax error" is here to catch this case.
3580 cat >conftest.$ac_ext <<_ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3587 # include <limits.h>
3589 # include <assert.h>
3593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev/null; then
3601 if test -s conftest.err; then
3602 ac_cpp_err=$ac_c_preproc_warn_flag
3603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3610 if test -z "$ac_cpp_err"; then
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 # Broken: fails on valid input.
3619 rm -f conftest.err conftest.$ac_ext
3621 # OK, works on sane cases. Now check whether non-existent headers
3622 # can be detected and how.
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 #include <ac_nonexistent.h>
3631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3634 grep -v '^ *+' conftest.er1 >conftest.err
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } >/dev/null; then
3639 if test -s conftest.err; then
3640 ac_cpp_err=$ac_c_preproc_warn_flag
3641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3648 if test -z "$ac_cpp_err"; then
3649 # Broken: success on invalid input.
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 # Passes both tests.
3659 rm -f conftest.err conftest.$ac_ext
3662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3663 rm -f conftest.err conftest.$ac_ext
3664 if $ac_preproc_ok; then
3676 echo "$as_me:$LINENO: result: $CPP" >&5
3677 echo "${ECHO_T}$CPP" >&6
3679 for ac_c_preproc_warn_flag in '' yes
3681 # Use a header file that comes with gcc, so configuring glibc
3682 # with a fresh cross-compiler works.
3683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3684 # <limits.h> exists even on freestanding compilers.
3685 # On the NeXT, cc -E runs the code through the compiler's parser,
3686 # not just through cpp. "Syntax error" is here to catch this case.
3687 cat >conftest.$ac_ext <<_ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3694 # include <limits.h>
3696 # include <assert.h>
3700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 grep -v '^ *+' conftest.er1 >conftest.err
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } >/dev/null; then
3708 if test -s conftest.err; then
3709 ac_cpp_err=$ac_c_preproc_warn_flag
3710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3717 if test -z "$ac_cpp_err"; then
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 # Broken: fails on valid input.
3726 rm -f conftest.err conftest.$ac_ext
3728 # OK, works on sane cases. Now check whether non-existent headers
3729 # can be detected and how.
3730 cat >conftest.$ac_ext <<_ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3736 #include <ac_nonexistent.h>
3738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3741 grep -v '^ *+' conftest.er1 >conftest.err
3743 cat conftest.err >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } >/dev/null; then
3746 if test -s conftest.err; then
3747 ac_cpp_err=$ac_c_preproc_warn_flag
3748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3755 if test -z "$ac_cpp_err"; then
3756 # Broken: success on invalid input.
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 # Passes both tests.
3766 rm -f conftest.err conftest.$ac_ext
3769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3770 rm -f conftest.err conftest.$ac_ext
3771 if $ac_preproc_ok; then
3774 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3775 See \`config.log' for more details." >&5
3776 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3777 See \`config.log' for more details." >&2;}
3778 { (exit 1); exit 1; }; }
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788 ac_cpp='$CXXCPP $CPPFLAGS'
3789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3792 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3793 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3794 if test -z "$CXXCPP"; then
3795 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 # Double quotes because CXXCPP needs to be expanded
3799 for CXXCPP in "$CXX -E" "/lib/cpp"
3802 for ac_cxx_preproc_warn_flag in '' yes
3804 # Use a header file that comes with gcc, so configuring glibc
3805 # with a fresh cross-compiler works.
3806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 # <limits.h> exists even on freestanding compilers.
3808 # On the NeXT, cc -E runs the code through the compiler's parser,
3809 # not just through cpp. "Syntax error" is here to catch this case.
3810 cat >conftest.$ac_ext <<_ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3817 # include <limits.h>
3819 # include <assert.h>
3823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev/null; then
3831 if test -s conftest.err; then
3832 ac_cpp_err=$ac_cxx_preproc_warn_flag
3833 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3840 if test -z "$ac_cpp_err"; then
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 # Broken: fails on valid input.
3849 rm -f conftest.err conftest.$ac_ext
3851 # OK, works on sane cases. Now check whether non-existent headers
3852 # can be detected and how.
3853 cat >conftest.$ac_ext <<_ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3859 #include <ac_nonexistent.h>
3861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3864 grep -v '^ *+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev/null; then
3869 if test -s conftest.err; then
3870 ac_cpp_err=$ac_cxx_preproc_warn_flag
3871 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3878 if test -z "$ac_cpp_err"; then
3879 # Broken: success on invalid input.
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 # Passes both tests.
3889 rm -f conftest.err conftest.$ac_ext
3892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3893 rm -f conftest.err conftest.$ac_ext
3894 if $ac_preproc_ok; then
3899 ac_cv_prog_CXXCPP=$CXXCPP
3902 CXXCPP=$ac_cv_prog_CXXCPP
3904 ac_cv_prog_CXXCPP=$CXXCPP
3906 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3907 echo "${ECHO_T}$CXXCPP" >&6
3909 for ac_cxx_preproc_warn_flag in '' yes
3911 # Use a header file that comes with gcc, so configuring glibc
3912 # with a fresh cross-compiler works.
3913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3914 # <limits.h> exists even on freestanding compilers.
3915 # On the NeXT, cc -E runs the code through the compiler's parser,
3916 # not just through cpp. "Syntax error" is here to catch this case.
3917 cat >conftest.$ac_ext <<_ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3924 # include <limits.h>
3926 # include <assert.h>
3930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3933 grep -v '^ *+' conftest.er1 >conftest.err
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } >/dev/null; then
3938 if test -s conftest.err; then
3939 ac_cpp_err=$ac_cxx_preproc_warn_flag
3940 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3947 if test -z "$ac_cpp_err"; then
3950 echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3953 # Broken: fails on valid input.
3956 rm -f conftest.err conftest.$ac_ext
3958 # OK, works on sane cases. Now check whether non-existent headers
3959 # can be detected and how.
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3966 #include <ac_nonexistent.h>
3968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3971 grep -v '^ *+' conftest.er1 >conftest.err
3973 cat conftest.err >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } >/dev/null; then
3976 if test -s conftest.err; then
3977 ac_cpp_err=$ac_cxx_preproc_warn_flag
3978 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3985 if test -z "$ac_cpp_err"; then
3986 # Broken: success on invalid input.
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 # Passes both tests.
3996 rm -f conftest.err conftest.$ac_ext
3999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4000 rm -f conftest.err conftest.$ac_ext
4001 if $ac_preproc_ok; then
4004 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4005 See \`config.log' for more details." >&5
4006 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4007 See \`config.log' for more details." >&2;}
4008 { (exit 1); exit 1; }; }
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017 for ac_prog in gawk mawk nawk awk
4019 # Extract the first word of "$ac_prog", so it can be a program name with args.
4020 set dummy $ac_prog; ac_word=$2
4021 echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_prog_AWK+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 if test -n "$AWK"; then
4027 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036 ac_cv_prog_AWK="$ac_prog"
4037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 if test -n "$AWK"; then
4047 echo "$as_me:$LINENO: result: $AWK" >&5
4048 echo "${ECHO_T}$AWK" >&6
4050 echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4054 test -n "$AWK" && break
4057 # Find a good install program. We prefer a C program (faster),
4058 # so one script is as good as another. But avoid the broken or
4059 # incompatible versions:
4060 # SysV /etc/install, /usr/sbin/install
4061 # SunOS /usr/etc/install
4062 # IRIX /sbin/install
4064 # AmigaOS /C/install, which installs bootblocks on floppy discs
4065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4068 # OS/2's system install, which has a completely different semantic
4069 # ./install, which can be erroneously created by make from ./install.sh.
4070 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4071 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4072 if test -z "$INSTALL"; then
4073 if test "${ac_cv_path_install+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir=.
4081 # Account for people who put trailing slashes in PATH elements.
4083 ./ | .// | /cC/* | \
4084 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4085 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4088 # OSF1 and SCO ODT 3.0 have their own names for install.
4089 # Don't use installbsd from OSF since it installs stuff as root
4091 for ac_prog in ginstall scoinst install; do
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4094 if test $ac_prog = install &&
4095 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4096 # AIX install. It has an incompatible calling convention.
4098 elif test $ac_prog = install &&
4099 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4100 # program-specific install script used by HP pwplus--don't use.
4103 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4115 if test "${ac_cv_path_install+set}" = set; then
4116 INSTALL=$ac_cv_path_install
4118 # As a last resort, use the slow shell script. We don't cache a
4119 # path for INSTALL within a source directory, because that will
4120 # break other packages using the cache if that directory is
4121 # removed, or if the path is relative.
4122 INSTALL=$ac_install_sh
4125 echo "$as_me:$LINENO: result: $INSTALL" >&5
4126 echo "${ECHO_T}$INSTALL" >&6
4128 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4129 # It thinks the first close brace ends the variable substitution.
4130 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4132 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4134 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4136 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4137 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4139 if test "$LN_S" = "ln -s"; then
4140 echo "$as_me:$LINENO: result: yes" >&5
4141 echo "${ECHO_T}yes" >&6
4143 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4144 echo "${ECHO_T}no, using $LN_S" >&6
4147 if test -n "$ac_tool_prefix"; then
4148 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4149 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4150 echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_prog_RANLIB+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 if test -n "$RANLIB"; then
4156 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4165 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 RANLIB=$ac_cv_prog_RANLIB
4175 if test -n "$RANLIB"; then
4176 echo "$as_me:$LINENO: result: $RANLIB" >&5
4177 echo "${ECHO_T}$RANLIB" >&6
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4184 if test -z "$ac_cv_prog_RANLIB"; then
4185 ac_ct_RANLIB=$RANLIB
4186 # Extract the first word of "ranlib", so it can be a program name with args.
4187 set dummy ranlib; ac_word=$2
4188 echo "$as_me:$LINENO: checking for $ac_word" >&5
4189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4190 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 if test -n "$ac_ct_RANLIB"; then
4194 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_ac_ct_RANLIB="ranlib"
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4213 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4214 if test -n "$ac_ct_RANLIB"; then
4215 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4216 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4218 echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6
4222 RANLIB=$ac_ct_RANLIB
4224 RANLIB="$ac_cv_prog_RANLIB"
4227 echo "$as_me:$LINENO: checking for GNU make" >&5
4228 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4229 if test "${GNU_MAKE+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 GNU_MAKE='Not Found' ;
4233 for a in make gmake gnumake ; do
4234 if test -z "$a" ; then continue ; fi ;
4235 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
4242 echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
4243 echo "${ECHO_T}$GNU_MAKE" >&6 ;
4244 if test "x$GNU_MAKE" = "xNot Found" ; then
4245 echo " *** Please install GNU make. It is required to build Asterisk!"
4251 # Extract the first word of "grep", so it can be a program name with args.
4252 set dummy grep; ac_word=$2
4253 echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4255 if test "${ac_cv_path_GREP+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 test -z "$as_dir" && as_dir=.
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
4281 GREP=$ac_cv_path_GREP
4283 if test -n "$GREP"; then
4284 echo "$as_me:$LINENO: result: $GREP" >&5
4285 echo "${ECHO_T}$GREP" >&6
4287 echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4291 # Extract the first word of "ar", so it can be a program name with args.
4292 set dummy ar; ac_word=$2
4293 echo "$as_me:$LINENO: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4295 if test "${ac_cv_path_AR+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
4323 if test -n "$AR"; then
4324 echo "$as_me:$LINENO: result: $AR" >&5
4325 echo "${ECHO_T}$AR" >&6
4327 echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4331 # Extract the first word of "find", so it can be a program name with args.
4332 set dummy find; ac_word=$2
4333 echo "$as_me:$LINENO: checking for $ac_word" >&5
4334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4335 if test "${ac_cv_path_FIND+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
4361 FIND=$ac_cv_path_FIND
4363 if test -n "$FIND"; then
4364 echo "$as_me:$LINENO: result: $FIND" >&5
4365 echo "${ECHO_T}$FIND" >&6
4367 echo "$as_me:$LINENO: result: no" >&5
4368 echo "${ECHO_T}no" >&6
4371 # Extract the first word of "compress", so it can be a program name with args.
4372 set dummy compress; ac_word=$2
4373 echo "$as_me:$LINENO: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4375 if test "${ac_cv_path_COMPRESS+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4390 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
4391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
4401 COMPRESS=$ac_cv_path_COMPRESS
4403 if test -n "$COMPRESS"; then
4404 echo "$as_me:$LINENO: result: $COMPRESS" >&5
4405 echo "${ECHO_T}$COMPRESS" >&6
4407 echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6
4411 # Extract the first word of "basename", so it can be a program name with args.
4412 set dummy basename; ac_word=$2
4413 echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415 if test "${ac_cv_path_BASENAME+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
4441 BASENAME=$ac_cv_path_BASENAME
4443 if test -n "$BASENAME"; then
4444 echo "$as_me:$LINENO: result: $BASENAME" >&5
4445 echo "${ECHO_T}$BASENAME" >&6
4447 echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6
4451 # Extract the first word of "dirname", so it can be a program name with args.
4452 set dummy dirname; ac_word=$2
4453 echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4455 if test "${ac_cv_path_DIRNAME+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4470 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
4481 DIRNAME=$ac_cv_path_DIRNAME
4483 if test -n "$DIRNAME"; then
4484 echo "$as_me:$LINENO: result: $DIRNAME" >&5
4485 echo "${ECHO_T}$DIRNAME" >&6
4487 echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6
4491 # Extract the first word of "sh", so it can be a program name with args.
4492 set dummy sh; ac_word=$2
4493 echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4495 if test "${ac_cv_path_SHELL+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
4521 SHELL=$ac_cv_path_SHELL
4523 if test -n "$SHELL"; then
4524 echo "$as_me:$LINENO: result: $SHELL" >&5
4525 echo "${ECHO_T}$SHELL" >&6
4527 echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4531 # Extract the first word of "ln", so it can be a program name with args.
4532 set dummy ln; ac_word=$2
4533 echo "$as_me:$LINENO: checking for $ac_word" >&5
4534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4535 if test "${ac_cv_path_LN+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
4563 if test -n "$LN"; then
4564 echo "$as_me:$LINENO: result: $LN" >&5
4565 echo "${ECHO_T}$LN" >&6
4567 echo "$as_me:$LINENO: result: no" >&5
4568 echo "${ECHO_T}no" >&6
4571 # Extract the first word of "dot", so it can be a program name with args.
4572 set dummy dot; ac_word=$2
4573 echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4575 if test "${ac_cv_path_DOT+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
4591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
4603 if test -n "$DOT"; then
4604 echo "$as_me:$LINENO: result: $DOT" >&5
4605 echo "${ECHO_T}$DOT" >&6
4607 echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619 # Check whether --enable-dev-mode or --disable-dev-mode was given.
4620 if test "${enable_dev_mode+set}" = set; then
4621 enableval="$enable_dev_mode"
4622 case "${enableval}" in
4623 y|ye|yes) AST_DEVMODE=yes ;;
4624 n|no) AST_DEVMODE=no ;;
4625 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
4626 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
4627 { (exit 1); exit 1; }; } ;;
4634 echo "$as_me:$LINENO: checking for egrep" >&5
4635 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4636 if test "${ac_cv_prog_egrep+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4640 then ac_cv_prog_egrep='grep -E'
4641 else ac_cv_prog_egrep='egrep'
4644 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4645 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4646 EGREP=$ac_cv_prog_egrep