2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for fmit 0.97.7.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
269 PACKAGE_TARNAME='fmit'
270 PACKAGE_VERSION='0.97.7'
271 PACKAGE_STRING='fmit 0.97.7'
274 ac_default_prefix=/usr/local/
275 ac_default_prefix=/usr/local
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar ac_prefix RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP EGREP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS QT_CXXFLAGS QT_DIR QT_LIBS QT_UIC QT_MOC GL_CFLAGS GL_LIBS ALSA_CFLAGS ALSA_LIBS LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774 ac_env_CXX_set=${CXX+set}
775 ac_env_CXX_value=$CXX
776 ac_cv_env_CXX_set=${CXX+set}
777 ac_cv_env_CXX_value=$CXX
778 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
779 ac_env_CXXFLAGS_value=$CXXFLAGS
780 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
782 ac_env_CXXCPP_set=${CXXCPP+set}
783 ac_env_CXXCPP_value=$CXXCPP
784 ac_cv_env_CXXCPP_set=${CXXCPP+set}
785 ac_cv_env_CXXCPP_value=$CXXCPP
788 # Report the --help message.
790 if test "$ac_init_help" = "long"; then
791 # Omit some internal or obsolete options to make the list less imposing.
792 # This message is too long to be a string in the A/UX 3.1 sh.
794 \`configure' configures fmit 0.97.7 to adapt to many kinds of systems.
796 Usage: $0 [OPTION]... [VAR=VALUE]...
798 To assign environment variables (e.g., CC, CFLAGS...), specify them as
799 VAR=VALUE. See below for descriptions of some of the useful variables.
801 Defaults for the options are specified in brackets.
804 -h, --help display this help and exit
805 --help=short display options specific to this package
806 --help=recursive display the short help of all the included packages
807 -V, --version display version information and exit
808 -q, --quiet, --silent do not print \`checking...' messages
809 --cache-file=FILE cache test results in FILE [disabled]
810 -C, --config-cache alias for \`--cache-file=config.cache'
811 -n, --no-create do not create output files
812 --srcdir=DIR find the sources in DIR [configure dir or \`..']
817 Installation directories:
818 --prefix=PREFIX install architecture-independent files in PREFIX
820 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 By default, \`make install' will install all the files in
824 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
825 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826 for instance \`--prefix=\$HOME'.
828 For better control, use the options below.
830 Fine tuning of the installation directories:
831 --bindir=DIR user executables [EPREFIX/bin]
832 --sbindir=DIR system admin executables [EPREFIX/sbin]
833 --libexecdir=DIR program executables [EPREFIX/libexec]
834 --datadir=DIR read-only architecture-independent data [PREFIX/share]
835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
837 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
838 --libdir=DIR object code libraries [EPREFIX/lib]
839 --includedir=DIR C header files [PREFIX/include]
840 --oldincludedir=DIR C header files for non-gcc [/usr/include]
841 --infodir=DIR info documentation [PREFIX/info]
842 --mandir=DIR man documentation [PREFIX/man]
848 --program-prefix=PREFIX prepend PREFIX to installed program names
849 --program-suffix=SUFFIX append SUFFIX to installed program names
850 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
853 --x-includes=DIR X include files are in DIR
854 --x-libraries=DIR X library files are in DIR
858 if test -n "$ac_init_help"; then
859 case $ac_init_help in
860 short | recursive ) echo "Configuration of fmit 0.97.7:";;
865 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
866 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
867 --enable-debug turn on debugging (default=no)
868 --disable-dependency-tracking speeds up one-time build
869 --enable-dependency-tracking do not reject slow dependency extractors
870 --enable-Mesa Prefer the Mesa library over a vendors native OpenGL
871 library (default=yes)
872 --enable-alsa turn on ALSA support (default=yes)
873 --disable-alsatest Do not try to compile and run a test Alsa program
874 --enable-oss turn on OSS support (default=yes)
875 --enable-jack turn on JACK support (default=yes)
876 --enable-portaudio turn on PortAudio support (default=no)
877 --enable-packager-string=NAME
878 add references of the packager in the about box
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
883 --with-x use the X Window System
884 --with-Qt-dir=DIR DIR is equal to $QTDIR if you have followed the
885 installation instructions of Trolltech. Header
886 files are in DIR/include, binary utilities are
887 in DIR/bin. The library is in DIR/lib, unless
888 --with-Qt-lib-dir is also set.
889 --with-Qt-include-dir=DIR
890 Qt header files are in DIR
891 --with-Qt-bin-dir=DIR Qt utilities such as moc and uic are in DIR
892 --with-Qt-lib-dir=DIR The Qt library is in DIR
893 --with-Qt-lib=LIB Use -lLIB to link with the Qt library
894 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
895 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
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>
905 CXX C++ compiler command
906 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
1007 fmit configure 0.97.7
1008 generated by GNU Autoconf 2.59
1010 Copyright (C) 2003 Free Software Foundation, Inc.
1011 This configure script is free software; the Free Software Foundation
1012 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 fmit $as_me 0.97.7, 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
1357 ac_config_headers="$ac_config_headers config.h"
1360 am__api_version="1.9"
1362 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1363 if test -f $ac_dir/install-sh; then
1365 ac_install_sh="$ac_aux_dir/install-sh -c"
1367 elif test -f $ac_dir/install.sh; then
1369 ac_install_sh="$ac_aux_dir/install.sh -c"
1371 elif test -f $ac_dir/shtool; then
1373 ac_install_sh="$ac_aux_dir/shtool install -c"
1377 if test -z "$ac_aux_dir"; then
1378 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1379 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1380 { (exit 1); exit 1; }; }
1382 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1383 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1384 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1386 # Find a good install program. We prefer a C program (faster),
1387 # so one script is as good as another. But avoid the broken or
1388 # incompatible versions:
1389 # SysV /etc/install, /usr/sbin/install
1390 # SunOS /usr/etc/install
1391 # IRIX /sbin/install
1393 # AmigaOS /C/install, which installs bootblocks on floppy discs
1394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1397 # OS/2's system install, which has a completely different semantic
1398 # ./install, which can be erroneously created by make from ./install.sh.
1399 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1400 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1401 if test -z "$INSTALL"; then
1402 if test "${ac_cv_path_install+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409 test -z "$as_dir" && as_dir=.
1410 # Account for people who put trailing slashes in PATH elements.
1412 ./ | .// | /cC/* | \
1413 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1414 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1417 # OSF1 and SCO ODT 3.0 have their own names for install.
1418 # Don't use installbsd from OSF since it installs stuff as root
1420 for ac_prog in ginstall scoinst install; do
1421 for ac_exec_ext in '' $ac_executable_extensions; do
1422 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1423 if test $ac_prog = install &&
1424 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1425 # AIX install. It has an incompatible calling convention.
1427 elif test $ac_prog = install &&
1428 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1429 # program-specific install script used by HP pwplus--don't use.
1432 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1444 if test "${ac_cv_path_install+set}" = set; then
1445 INSTALL=$ac_cv_path_install
1447 # As a last resort, use the slow shell script. We don't cache a
1448 # path for INSTALL within a source directory, because that will
1449 # break other packages using the cache if that directory is
1450 # removed, or if the path is relative.
1451 INSTALL=$ac_install_sh
1454 echo "$as_me:$LINENO: result: $INSTALL" >&5
1455 echo "${ECHO_T}$INSTALL" >&6
1457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1458 # It thinks the first close brace ends the variable substitution.
1459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1463 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1465 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1466 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1469 echo timestamp > conftest.file
1470 # Do `set' in a subshell so we don't clobber the current shell's
1471 # arguments. Must try -L first in case configure is actually a
1472 # symlink; some systems play weird games with the mod time of symlinks
1473 # (eg FreeBSD returns the mod time of the symlink's containing
1476 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1477 if test "$*" = "X"; then
1479 set X `ls -t $srcdir/configure conftest.file`
1482 if test "$*" != "X $srcdir/configure conftest.file" \
1483 && test "$*" != "X conftest.file $srcdir/configure"; then
1485 # If neither matched, then we have a broken ls. This can happen
1486 # if, for instance, CONFIG_SHELL is bash and it inherits a
1487 # broken ls alias from the environment. This has actually
1488 # happened. Such a system could not be considered "sane".
1489 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1490 alias in your environment" >&5
1491 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1492 alias in your environment" >&2;}
1493 { (exit 1); exit 1; }; }
1496 test "$2" = conftest.file
1502 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1503 Check your system clock" >&5
1504 echo "$as_me: error: newly created file is older than distributed files!
1505 Check your system clock" >&2;}
1506 { (exit 1); exit 1; }; }
1508 echo "$as_me:$LINENO: result: yes" >&5
1509 echo "${ECHO_T}yes" >&6
1510 test "$program_prefix" != NONE &&
1511 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1512 # Use a double $ so make ignores it.
1513 test "$program_suffix" != NONE &&
1514 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1515 # Double any \ or $. echo might interpret backslashes.
1516 # By default was `s,x,x', remove it if useless.
1517 cat <<\_ACEOF >conftest.sed
1518 s/[\\$]/&&/g;s/;s,x,x,$//
1520 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1523 # expand $ac_aux_dir to an absolute path
1524 am_aux_dir=`cd $ac_aux_dir && pwd`
1526 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1527 # Use eval to expand $SHELL
1528 if eval "$MISSING --run true"; then
1529 am_missing_run="$MISSING --run "
1532 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1533 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1536 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1537 # We used to keeping the `.' as first argument, in order to
1538 # allow $(mkdir_p) to be used without argument. As in
1539 # $(mkdir_p) $(somedir)
1540 # where $(somedir) is conditionally defined. However this is wrong
1542 # 1. if the package is installed by a user who cannot write `.'
1543 # make install will fail,
1544 # 2. the above comment should most certainly read
1545 # $(mkdir_p) $(DESTDIR)$(somedir)
1546 # so it does not work when $(somedir) is undefined and
1547 # $(DESTDIR) is not.
1548 # To support the latter case, we have to write
1549 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1550 # so the `.' trick is pointless.
1551 mkdir_p='mkdir -p --'
1553 # On NextStep and OpenStep, the `mkdir' command does not
1554 # recognize any option. It will interpret all options as
1555 # directories to create, and then abort because `.' already
1557 for d in ./-p ./--version;
1559 test -d $d && rmdir $d
1561 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1562 if test -f "$ac_aux_dir/mkinstalldirs"; then
1563 mkdir_p='$(mkinstalldirs)'
1565 mkdir_p='$(install_sh) -d'
1569 for ac_prog in gawk mawk nawk awk
1571 # Extract the first word of "$ac_prog", so it can be a program name with args.
1572 set dummy $ac_prog; ac_word=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_AWK+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 if test -n "$AWK"; then
1579 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir=.
1586 for ac_exec_ext in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_AWK="$ac_prog"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 if test -n "$AWK"; then
1599 echo "$as_me:$LINENO: result: $AWK" >&5
1600 echo "${ECHO_T}$AWK" >&6
1602 echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1606 test -n "$AWK" && break
1609 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1610 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1611 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1612 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 cat >conftest.make <<\_ACEOF
1617 @echo 'ac_maketemp="$(MAKE)"'
1619 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1620 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1621 if test -n "$ac_maketemp"; then
1622 eval ac_cv_prog_make_${ac_make}_set=yes
1624 eval ac_cv_prog_make_${ac_make}_set=no
1628 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1629 echo "$as_me:$LINENO: result: yes" >&5
1630 echo "${ECHO_T}yes" >&6
1633 echo "$as_me:$LINENO: result: no" >&5
1634 echo "${ECHO_T}no" >&6
1635 SET_MAKE="MAKE=${MAKE-make}"
1638 rm -rf .tst 2>/dev/null
1639 mkdir .tst 2>/dev/null
1640 if test -d .tst; then
1645 rmdir .tst 2>/dev/null
1647 # test to see if srcdir already configured
1648 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1649 test -f $srcdir/config.status; then
1650 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1651 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1652 { (exit 1); exit 1; }; }
1655 # test whether we have cygpath
1656 if test -z "$CYGPATH_W"; then
1657 if (cygpath --version) >/dev/null 2>/dev/null; then
1658 CYGPATH_W='cygpath -w'
1665 # Define the identity of the package.
1670 # Some tools Automake needs.
1672 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1675 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1678 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1681 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1684 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1686 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1688 # Installed binaries are usually stripped using `strip' when the user
1689 # run `make install-strip'. However `strip' might not be the right
1690 # tool to use in cross-compilation environments, therefore Automake
1691 # will honor the `STRIP' environment variable to overrule this program.
1692 if test "$cross_compiling" != no; then
1693 if test -n "$ac_tool_prefix"; then
1694 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1695 set dummy ${ac_tool_prefix}strip; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_STRIP+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$STRIP"; then
1702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 STRIP=$ac_cv_prog_STRIP
1721 if test -n "$STRIP"; then
1722 echo "$as_me:$LINENO: result: $STRIP" >&5
1723 echo "${ECHO_T}$STRIP" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1730 if test -z "$ac_cv_prog_STRIP"; then
1732 # Extract the first word of "strip", so it can be a program name with args.
1733 set dummy strip; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 if test -n "$ac_ct_STRIP"; then
1740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_STRIP="strip"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1760 if test -n "$ac_ct_STRIP"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1762 echo "${ECHO_T}$ac_ct_STRIP" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1770 STRIP="$ac_cv_prog_STRIP"
1774 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1776 # We need awk for the "check" target. The system "awk" is bad on
1778 # Always define AMTAR for backward compatibility.
1780 AMTAR=${AMTAR-"${am_missing_run}tar"}
1782 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1789 echo "$as_me:$LINENO: checking whether to enable debugging" >&5
1790 echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
1791 # Check whether --enable-debug or --disable-debug was given.
1792 if test "${enable_debug+set}" = set; then
1793 enableval="$enable_debug"
1796 if test "x$enable_debug" = "xyes"; then
1797 CXXFLAGS="$CPPFLAGS -g -DDEBUG"
1798 echo "$as_me:$LINENO: result: yes" >&5
1799 echo "${ECHO_T}yes" >&6
1801 CXXFLAGS="$CPPFLAGS -O3 -ffast-math"
1802 echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1806 # Set default installation prefix.
1809 if test "x$ac_prefix" = "xNONE"; then
1810 ac_prefix=$ac_default_prefix
1814 cat >>confdefs.h <<_ACEOF
1815 #define PREFIX "$ac_prefix"
1819 # Checks for programs.
1820 if test -n "$ac_tool_prefix"; then
1821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1822 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_RANLIB+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 if test -n "$RANLIB"; then
1829 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 RANLIB=$ac_cv_prog_RANLIB
1848 if test -n "$RANLIB"; then
1849 echo "$as_me:$LINENO: result: $RANLIB" >&5
1850 echo "${ECHO_T}$RANLIB" >&6
1852 echo "$as_me:$LINENO: result: no" >&5
1853 echo "${ECHO_T}no" >&6
1857 if test -z "$ac_cv_prog_RANLIB"; then
1858 ac_ct_RANLIB=$RANLIB
1859 # Extract the first word of "ranlib", so it can be a program name with args.
1860 set dummy ranlib; ac_word=$2
1861 echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 if test -n "$ac_ct_RANLIB"; then
1867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876 ac_cv_prog_ac_ct_RANLIB="ranlib"
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1886 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1887 if test -n "$ac_ct_RANLIB"; then
1888 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1889 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1891 echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1895 RANLIB=$ac_ct_RANLIB
1897 RANLIB="$ac_cv_prog_RANLIB"
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905 if test -n "$ac_tool_prefix"; then
1906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC="$CC" # Let the user override the test.
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 if test -n "$CC"; then
1934 echo "$as_me:$LINENO: result: $CC" >&5
1935 echo "${ECHO_T}$CC" >&6
1937 echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1942 if test -z "$ac_cv_prog_CC"; then
1944 # Extract the first word of "gcc", so it can be a program name with args.
1945 set dummy gcc; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 if test -n "$ac_ct_CC"; then
1952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 test -z "$as_dir" && as_dir=.
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_ac_ct_CC="gcc"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971 if test -n "$ac_ct_CC"; then
1972 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973 echo "${ECHO_T}$ac_ct_CC" >&6
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1984 if test -z "$CC"; then
1985 if test -n "$ac_tool_prefix"; then
1986 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1987 set dummy ${ac_tool_prefix}cc; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 ac_cv_prog_CC="${ac_tool_prefix}cc"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2017 echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2022 if test -z "$ac_cv_prog_CC"; then
2024 # Extract the first word of "cc", so it can be a program name with args.
2025 set dummy cc; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 if test -n "$ac_ct_CC"; then
2032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 ac_cv_prog_ac_ct_CC="cc"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2051 if test -n "$ac_ct_CC"; then
2052 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2053 echo "${ECHO_T}$ac_ct_CC" >&6
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2065 if test -z "$CC"; then
2066 # Extract the first word of "cc", so it can be a program name with args.
2067 set dummy cc; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2085 ac_prog_rejected=yes
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 if test $ac_prog_rejected = yes; then
2096 # We found a bogon in the path, so make sure we never use it.
2097 set dummy $ac_cv_prog_CC
2099 if test $# != 0; then
2100 # We chose a different compiler from the bogus one.
2101 # However, it has the same basename, so the bogon will be chosen
2102 # first if we set CC to just the basename; use the full file name.
2104 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2110 if test -n "$CC"; then
2111 echo "$as_me:$LINENO: result: $CC" >&5
2112 echo "${ECHO_T}$CC" >&6
2114 echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2119 if test -z "$CC"; then
2120 if test -n "$ac_tool_prefix"; then
2123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_CC+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 if test -n "$CC"; then
2131 ac_cv_prog_CC="$CC" # Let the user override the test.
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 test -z "$as_dir" && as_dir=.
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 if test -n "$CC"; then
2151 echo "$as_me:$LINENO: result: $CC" >&5
2152 echo "${ECHO_T}$CC" >&6
2154 echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2158 test -n "$CC" && break
2161 if test -z "$CC"; then
2165 # Extract the first word of "$ac_prog", so it can be a program name with args.
2166 set dummy $ac_prog; ac_word=$2
2167 echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 if test -n "$ac_ct_CC"; then
2173 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2182 ac_cv_prog_ac_ct_CC="$ac_prog"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2192 if test -n "$ac_ct_CC"; then
2193 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2194 echo "${ECHO_T}$ac_ct_CC" >&6
2196 echo "$as_me:$LINENO: result: no" >&5
2197 echo "${ECHO_T}no" >&6
2200 test -n "$ac_ct_CC" && break
2209 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: no acceptable C compiler found in \$PATH
2212 See \`config.log' for more details." >&2;}
2213 { (exit 1); exit 1; }; }
2215 # Provide some information about the compiler.
2216 echo "$as_me:$LINENO:" \
2217 "checking for C compiler version" >&5
2218 ac_compiler=`set X $ac_compile; echo $2`
2219 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2220 (eval $ac_compiler --version </dev/null >&5) 2>&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }
2224 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2225 (eval $ac_compiler -v </dev/null >&5) 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }
2229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2230 (eval $ac_compiler -V </dev/null >&5) 2>&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }
2235 cat >conftest.$ac_ext <<_ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h. */
2250 ac_clean_files_save=$ac_clean_files
2251 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2252 # Try to create an executable without -o first, disregard a.out.
2253 # It will help us diagnose broken compilers, and finding out an intuition
2255 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2256 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2257 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2258 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2259 (eval $ac_link_default) 2>&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; then
2263 # Find the output, starting from the most likely. This scheme is
2264 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2267 # Be careful to initialize this variable, since it used to be cached.
2268 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2270 # b.out is created by i960 compilers.
2271 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2273 test -f "$ac_file" || continue
2275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2278 # This is the source file.
2281 # We found the default executable, but exeext='' is most
2285 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286 # FIXME: I believe we export ac_cv_exeext for Libtool,
2287 # but it would be cool to find out if it's true. Does anybody
2288 # maintain Libtool? --akim.
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2299 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2300 See \`config.log' for more details." >&5
2301 echo "$as_me: error: C compiler cannot create executables
2302 See \`config.log' for more details." >&2;}
2303 { (exit 77); exit 77; }; }
2306 ac_exeext=$ac_cv_exeext
2307 echo "$as_me:$LINENO: result: $ac_file" >&5
2308 echo "${ECHO_T}$ac_file" >&6
2310 # Check the compiler produces executables we can run. If not, either
2311 # the compiler is broken, or we cross compile.
2312 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2313 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2314 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2315 # If not cross compiling, check that we can run a simple program.
2316 if test "$cross_compiling" != yes; then
2317 if { ac_try='./$ac_file'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 if test "$cross_compiling" = maybe; then
2328 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2329 If you meant to cross compile, use \`--host'.
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot run C compiled programs.
2332 If you meant to cross compile, use \`--host'.
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2338 echo "$as_me:$LINENO: result: yes" >&5
2339 echo "${ECHO_T}yes" >&6
2341 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2342 ac_clean_files=$ac_clean_files_save
2343 # Check the compiler produces executables we can run. If not, either
2344 # the compiler is broken, or we cross compile.
2345 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2346 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2347 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2348 echo "${ECHO_T}$cross_compiling" >&6
2350 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2351 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2353 (eval $ac_link) 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2358 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2359 # work properly (i.e., refer to `conftest.exe'), while it won't with
2361 for ac_file in conftest.exe conftest conftest.*; do
2362 test -f "$ac_file" || continue
2364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2372 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2375 See \`config.log' for more details." >&2;}
2376 { (exit 1); exit 1; }; }
2379 rm -f conftest$ac_cv_exeext
2380 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2381 echo "${ECHO_T}$ac_cv_exeext" >&6
2383 rm -f conftest.$ac_ext
2384 EXEEXT=$ac_cv_exeext
2386 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2387 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2388 if test "${ac_cv_objext+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 cat >conftest.$ac_ext <<_ACEOF
2394 cat confdefs.h >>conftest.$ac_ext
2395 cat >>conftest.$ac_ext <<_ACEOF
2396 /* end confdefs.h. */
2406 rm -f conftest.o conftest.obj
2407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408 (eval $ac_compile) 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; then
2412 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2415 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2423 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2424 See \`config.log' for more details." >&5
2425 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2426 See \`config.log' for more details." >&2;}
2427 { (exit 1); exit 1; }; }
2430 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2432 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2433 echo "${ECHO_T}$ac_cv_objext" >&6
2434 OBJEXT=$ac_cv_objext
2436 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2437 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2438 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 cat >conftest.$ac_ext <<_ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2459 rm -f conftest.$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461 (eval $ac_compile) 2>conftest.er1
2463 grep -v '^ *+' conftest.er1 >conftest.err
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -z "$ac_c_werror_flag"
2469 || test ! -s conftest.err'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try='test -s conftest.$ac_objext'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2492 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2493 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2494 GCC=`test $ac_compiler_gnu = yes && echo yes`
2495 ac_test_CFLAGS=${CFLAGS+set}
2496 ac_save_CFLAGS=$CFLAGS
2498 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2499 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2500 if test "${ac_cv_prog_cc_g+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 cat >conftest.$ac_ext <<_ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>conftest.er1
2522 grep -v '^ *+' conftest.er1 >conftest.err
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_c_werror_flag"
2528 || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2550 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2551 if test "$ac_test_CFLAGS" = set; then
2552 CFLAGS=$ac_save_CFLAGS
2553 elif test $ac_cv_prog_cc_g = yes; then
2554 if test "$GCC" = yes; then
2560 if test "$GCC" = yes; then
2566 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2567 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2568 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 ac_cv_prog_cc_stdc=no
2573 cat >conftest.$ac_ext <<_ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2581 #include <sys/types.h>
2582 #include <sys/stat.h>
2583 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2584 struct buf { int x; };
2585 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2586 static char *e (p, i)
2592 static char *f (char * (*g) (char **, int), char **p, ...)
2597 s = g (p, va_arg (v,int));
2602 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2603 function prototypes and stuff, but not '\xHH' hex character constants.
2604 These don't provoke an error unfortunately, instead are silently treated
2605 as 'x'. The following induces an error, until -std1 is added to get
2606 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2607 array size at least. It's necessary to write '\x00'==0 to get something
2608 that's true only with -std1. */
2609 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2611 int test (int i, double x);
2612 struct s1 {int (*f) (int a);};
2613 struct s2 {int (*f) (double a);};
2614 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2620 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2625 # Don't try gcc -ansi; that turns off useful extensions and
2626 # breaks some systems' header files.
2627 # AIX -qlanglvl=ansi
2628 # Ultrix and OSF/1 -std1
2629 # HP-UX 10.20 and later -Ae
2630 # HP-UX older versions -Aa -D_HPUX_SOURCE
2631 # SVR4 -Xc -D__EXTENSIONS__
2632 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2634 CC="$ac_save_CC $ac_arg"
2635 rm -f conftest.$ac_objext
2636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>conftest.er1
2639 grep -v '^ *+' conftest.er1 >conftest.err
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -z "$ac_c_werror_flag"
2645 || test ! -s conftest.err'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 ac_cv_prog_cc_stdc=$ac_arg
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2664 rm -f conftest.err conftest.$ac_objext
2666 rm -f conftest.$ac_ext conftest.$ac_objext
2671 case "x$ac_cv_prog_cc_stdc" in
2673 echo "$as_me:$LINENO: result: none needed" >&5
2674 echo "${ECHO_T}none needed" >&6 ;;
2676 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2677 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2678 CC="$CC $ac_cv_prog_cc_stdc" ;;
2681 # Some people use a C++ compiler to compile C. Since we use `exit',
2682 # in C++ we need to declare it. In case someone uses the same compiler
2683 # for both compiling C and C++ we need to have the C++ compiler decide
2684 # the declaration of exit, since it's the most demanding environment.
2685 cat >conftest.$ac_ext <<_ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag"
2700 || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 for ac_declaration in \
2714 'extern "C" void std::exit (int) throw (); using std::exit;' \
2715 'extern "C" void std::exit (int); using std::exit;' \
2716 'extern "C" void exit (int) throw ();' \
2717 'extern "C" void exit (int);' \
2720 cat >conftest.$ac_ext <<_ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2736 rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738 (eval $ac_compile) 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try='test -z "$ac_c_werror_flag"
2746 || test ! -s conftest.err'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; } &&
2752 { ac_try='test -s conftest.$ac_objext'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; }; then
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766 cat >conftest.$ac_ext <<_ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783 (eval $ac_compile) 2>conftest.er1
2785 grep -v '^ *+' conftest.er1 >conftest.err
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 { ac_try='test -z "$ac_c_werror_flag"
2791 || test ! -s conftest.err'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 if test -n "$ac_declaration"; then
2813 echo '#ifdef __cplusplus' >>confdefs.h
2814 echo $ac_declaration >>confdefs.h
2815 echo '#endif' >>confdefs.h
2819 echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829 DEPDIR="${am__leading_dot}deps"
2831 ac_config_commands="$ac_config_commands depfiles"
2834 am_make=${MAKE-make}
2835 cat > confinc << 'END'
2840 # If we don't find an include directive, just comment out the code.
2841 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2842 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2846 # First try GNU make style include.
2847 echo "include confinc" > confmf
2848 # We grep out `Entering directory' and `Leaving directory'
2849 # messages which can occur if `w' ends up in MAKEFLAGS.
2850 # In particular we don't look at `^make:' because GNU make might
2851 # be invoked under some other name (usually "gmake"), in which
2852 # case it prints its new name instead of `make'.
2853 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2858 # Now try BSD make style include.
2859 if test "$am__include" = "#"; then
2860 echo '.include "confinc"' > confmf
2861 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2862 am__include=.include
2869 echo "$as_me:$LINENO: result: $_am_result" >&5
2870 echo "${ECHO_T}$_am_result" >&6
2871 rm -f confinc confmf
2873 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2874 if test "${enable_dependency_tracking+set}" = set; then
2875 enableval="$enable_dependency_tracking"
2878 if test "x$enable_dependency_tracking" != xno; then
2879 am_depcomp="$ac_aux_dir/depcomp"
2884 if test "x$enable_dependency_tracking" != xno; then
2895 depcc="$CC" am_compiler_list=
2897 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2898 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2899 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2903 # We make a subdir and do the tests there. Otherwise we can end up
2904 # making bogus files that we don't know about and never remove. For
2905 # instance it was reported that on HP-UX the gcc test will end up
2906 # making a dummy file named `D' -- because `-MD' means `put the output
2909 # Copy depcomp to subdir because otherwise we won't find it if we're
2910 # using a relative directory.
2911 cp "$am_depcomp" conftest.dir
2913 # We will build objects and dependencies in a subdirectory because
2914 # it helps to detect inapplicable dependency modes. For instance
2915 # both Tru64's cc and ICC support -MD to output dependencies as a
2916 # side effect of compilation, but ICC will put the dependencies in
2917 # the current directory while Tru64 will put them in the object
2921 am_cv_CC_dependencies_compiler_type=none
2922 if test "$am_compiler_list" = ""; then
2923 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2925 for depmode in $am_compiler_list; do
2926 # Setup a source with many dependencies, because some compilers
2927 # like to wrap large dependency lists on column 80 (with \), and
2928 # we should not choose a depcomp mode which is confused by this.
2930 # We need to recreate these files for each test, as the compiler may
2931 # overwrite some of them when testing with obscure command lines.
2932 # This happens at least with the AIX C compiler.
2934 for i in 1 2 3 4 5 6; do
2935 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2936 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2937 # Solaris 8's {/usr,}/bin/sh.
2938 touch sub/conftst$i.h
2940 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2944 # after this tag, mechanisms are not by side-effect, so they'll
2945 # only be used when explicitly requested
2946 if test "x$enable_dependency_tracking" = xyes; then
2954 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2955 # mode. It turns out that the SunPro C++ compiler does not properly
2956 # handle `-M -o', and we need to detect this.
2957 if depmode=$depmode \
2958 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2959 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2960 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2961 >/dev/null 2>conftest.err &&
2962 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2963 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2964 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2965 # icc doesn't choke on unknown options, it will just issue warnings
2966 # or remarks (even with -Werror). So we grep stderr for any message
2967 # that says an option was ignored or not supported.
2968 # When given -MP, icc 7.0 and 7.1 complain thusly:
2969 # icc: Command line warning: ignoring option '-M'; no argument required
2970 # The diagnosis changed in icc 8.0:
2971 # icc: Command line remark: option '-MP' not supported
2972 if (grep 'ignoring option' conftest.err ||
2973 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2974 am_cv_CC_dependencies_compiler_type=$depmode
2983 am_cv_CC_dependencies_compiler_type=none
2987 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2988 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2989 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2994 test "x$enable_dependency_tracking" != xno \
2995 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2997 am__fastdepCC_FALSE='#'
2999 am__fastdepCC_TRUE='#'
3000 am__fastdepCC_FALSE=
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3010 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3011 # On Suns, sometimes $CPP names a directory.
3012 if test -n "$CPP" && test -d "$CPP"; then
3015 if test -z "$CPP"; then
3016 if test "${ac_cv_prog_CPP+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 # Double quotes because CPP needs to be expanded
3020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3023 for ac_c_preproc_warn_flag in '' yes
3025 # Use a header file that comes with gcc, so configuring glibc
3026 # with a fresh cross-compiler works.
3027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3028 # <limits.h> exists even on freestanding compilers.
3029 # On the NeXT, cc -E runs the code through the compiler's parser,
3030 # not just through cpp. "Syntax error" is here to catch this case.
3031 cat >conftest.$ac_ext <<_ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3038 # include <limits.h>
3040 # include <assert.h>
3044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3047 grep -v '^ *+' conftest.er1 >conftest.err
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } >/dev/null; then
3052 if test -s conftest.err; then
3053 ac_cpp_err=$ac_c_preproc_warn_flag
3054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3061 if test -z "$ac_cpp_err"; then
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3067 # Broken: fails on valid input.
3070 rm -f conftest.err conftest.$ac_ext
3072 # OK, works on sane cases. Now check whether non-existent headers
3073 # can be detected and how.
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3080 #include <ac_nonexistent.h>
3082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } >/dev/null; then
3090 if test -s conftest.err; then
3091 ac_cpp_err=$ac_c_preproc_warn_flag
3092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3099 if test -z "$ac_cpp_err"; then
3100 # Broken: success on invalid input.
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 # Passes both tests.
3110 rm -f conftest.err conftest.$ac_ext
3113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3114 rm -f conftest.err conftest.$ac_ext
3115 if $ac_preproc_ok; then
3127 echo "$as_me:$LINENO: result: $CPP" >&5
3128 echo "${ECHO_T}$CPP" >&6
3130 for ac_c_preproc_warn_flag in '' yes
3132 # Use a header file that comes with gcc, so configuring glibc
3133 # with a fresh cross-compiler works.
3134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3135 # <limits.h> exists even on freestanding compilers.
3136 # On the NeXT, cc -E runs the code through the compiler's parser,
3137 # not just through cpp. "Syntax error" is here to catch this case.
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3145 # include <limits.h>
3147 # include <assert.h>
3151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3154 grep -v '^ *+' conftest.er1 >conftest.err
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } >/dev/null; then
3159 if test -s conftest.err; then
3160 ac_cpp_err=$ac_c_preproc_warn_flag
3161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3168 if test -z "$ac_cpp_err"; then
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 # Broken: fails on valid input.
3177 rm -f conftest.err conftest.$ac_ext
3179 # OK, works on sane cases. Now check whether non-existent headers
3180 # can be detected and how.
3181 cat >conftest.$ac_ext <<_ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3187 #include <ac_nonexistent.h>
3189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3192 grep -v '^ *+' conftest.er1 >conftest.err
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } >/dev/null; then
3197 if test -s conftest.err; then
3198 ac_cpp_err=$ac_c_preproc_warn_flag
3199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3206 if test -z "$ac_cpp_err"; then
3207 # Broken: success on invalid input.
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 # Passes both tests.
3217 rm -f conftest.err conftest.$ac_ext
3220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221 rm -f conftest.err conftest.$ac_ext
3222 if $ac_preproc_ok; then
3225 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3226 See \`config.log' for more details." >&5
3227 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3228 See \`config.log' for more details." >&2;}
3229 { (exit 1); exit 1; }; }
3233 ac_cpp='$CPP $CPPFLAGS'
3234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 ac_cpp='$CXXCPP $CPPFLAGS'
3240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3243 if test -n "$ac_tool_prefix"; then
3244 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3248 echo "$as_me:$LINENO: checking for $ac_word" >&5
3249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3250 if test "${ac_cv_prog_CXX+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 if test -n "$CXX"; then
3254 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 if test -n "$CXX"; then
3274 echo "$as_me:$LINENO: result: $CXX" >&5
3275 echo "${ECHO_T}$CXX" >&6
3277 echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3281 test -n "$CXX" && break
3284 if test -z "$CXX"; then
3286 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3288 # Extract the first word of "$ac_prog", so it can be a program name with args.
3289 set dummy $ac_prog; ac_word=$2
3290 echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 if test -n "$ac_ct_CXX"; then
3296 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_ac_ct_CXX="$ac_prog"
3306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3315 if test -n "$ac_ct_CXX"; then
3316 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3317 echo "${ECHO_T}$ac_ct_CXX" >&6
3319 echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3323 test -n "$ac_ct_CXX" && break
3325 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3331 # Provide some information about the compiler.
3332 echo "$as_me:$LINENO:" \
3333 "checking for C++ compiler version" >&5
3334 ac_compiler=`set X $ac_compile; echo $2`
3335 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3336 (eval $ac_compiler --version </dev/null >&5) 2>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }
3340 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3341 (eval $ac_compiler -v </dev/null >&5) 2>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }
3345 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3346 (eval $ac_compiler -V </dev/null >&5) 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3351 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3352 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3353 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 cat >conftest.$ac_ext <<_ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3374 rm -f conftest.$ac_objext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3376 (eval $ac_compile) 2>conftest.er1
3378 grep -v '^ *+' conftest.er1 >conftest.err
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try='test -z "$ac_cxx_werror_flag"
3384 || test ! -s conftest.err'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest.$ac_objext'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3404 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3407 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3408 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3409 GXX=`test $ac_compiler_gnu = yes && echo yes`
3410 ac_test_CXXFLAGS=${CXXFLAGS+set}
3411 ac_save_CXXFLAGS=$CXXFLAGS
3413 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3414 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3415 if test "${ac_cv_prog_cxx_g+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3433 rm -f conftest.$ac_objext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435 (eval $ac_compile) 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try='test -z "$ac_cxx_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest.$ac_objext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_cv_prog_cxx_g=yes
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3464 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3465 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3466 if test "$ac_test_CXXFLAGS" = set; then
3467 CXXFLAGS=$ac_save_CXXFLAGS
3468 elif test $ac_cv_prog_cxx_g = yes; then
3469 if test "$GXX" = yes; then
3475 if test "$GXX" = yes; then
3481 for ac_declaration in \
3483 'extern "C" void std::exit (int) throw (); using std::exit;' \
3484 'extern "C" void std::exit (int); using std::exit;' \
3485 'extern "C" void exit (int) throw ();' \
3486 'extern "C" void exit (int);' \
3489 cat >conftest.$ac_ext <<_ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -z "$ac_cxx_werror_flag"
3515 || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3550 rm -f conftest.$ac_objext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3552 (eval $ac_compile) 2>conftest.er1
3554 grep -v '^ *+' conftest.er1 >conftest.err
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try='test -z "$ac_cxx_werror_flag"
3560 || test ! -s conftest.err'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3581 if test -n "$ac_declaration"; then
3582 echo '#ifdef __cplusplus' >>confdefs.h
3583 echo $ac_declaration >>confdefs.h
3584 echo '#endif' >>confdefs.h
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593 depcc="$CXX" am_compiler_list=
3595 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3596 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3597 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3601 # We make a subdir and do the tests there. Otherwise we can end up
3602 # making bogus files that we don't know about and never remove. For
3603 # instance it was reported that on HP-UX the gcc test will end up
3604 # making a dummy file named `D' -- because `-MD' means `put the output
3607 # Copy depcomp to subdir because otherwise we won't find it if we're
3608 # using a relative directory.
3609 cp "$am_depcomp" conftest.dir
3611 # We will build objects and dependencies in a subdirectory because
3612 # it helps to detect inapplicable dependency modes. For instance
3613 # both Tru64's cc and ICC support -MD to output dependencies as a
3614 # side effect of compilation, but ICC will put the dependencies in
3615 # the current directory while Tru64 will put them in the object
3619 am_cv_CXX_dependencies_compiler_type=none
3620 if test "$am_compiler_list" = ""; then
3621 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3623 for depmode in $am_compiler_list; do
3624 # Setup a source with many dependencies, because some compilers
3625 # like to wrap large dependency lists on column 80 (with \), and
3626 # we should not choose a depcomp mode which is confused by this.
3628 # We need to recreate these files for each test, as the compiler may
3629 # overwrite some of them when testing with obscure command lines.
3630 # This happens at least with the AIX C compiler.
3632 for i in 1 2 3 4 5 6; do
3633 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3634 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3635 # Solaris 8's {/usr,}/bin/sh.
3636 touch sub/conftst$i.h
3638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3642 # after this tag, mechanisms are not by side-effect, so they'll
3643 # only be used when explicitly requested
3644 if test "x$enable_dependency_tracking" = xyes; then
3652 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3653 # mode. It turns out that the SunPro C++ compiler does not properly
3654 # handle `-M -o', and we need to detect this.
3655 if depmode=$depmode \
3656 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3657 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3658 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3659 >/dev/null 2>conftest.err &&
3660 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3661 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3662 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3663 # icc doesn't choke on unknown options, it will just issue warnings
3664 # or remarks (even with -Werror). So we grep stderr for any message
3665 # that says an option was ignored or not supported.
3666 # When given -MP, icc 7.0 and 7.1 complain thusly:
3667 # icc: Command line warning: ignoring option '-M'; no argument required
3668 # The diagnosis changed in icc 8.0:
3669 # icc: Command line remark: option '-MP' not supported
3670 if (grep 'ignoring option' conftest.err ||
3671 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3672 am_cv_CXX_dependencies_compiler_type=$depmode
3681 am_cv_CXX_dependencies_compiler_type=none
3685 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3686 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3687 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3692 test "x$enable_dependency_tracking" != xno \
3693 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3694 am__fastdepCXX_TRUE=
3695 am__fastdepCXX_FALSE='#'
3697 am__fastdepCXX_TRUE='#'
3698 am__fastdepCXX_FALSE=
3703 ac_cpp='$CXXCPP $CPPFLAGS'
3704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3707 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3708 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3709 if test -z "$CXXCPP"; then
3710 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 # Double quotes because CXXCPP needs to be expanded
3714 for CXXCPP in "$CXX -E" "/lib/cpp"
3717 for ac_cxx_preproc_warn_flag in '' yes
3719 # Use a header file that comes with gcc, so configuring glibc
3720 # with a fresh cross-compiler works.
3721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722 # <limits.h> exists even on freestanding compilers.
3723 # On the NeXT, cc -E runs the code through the compiler's parser,
3724 # not just through cpp. "Syntax error" is here to catch this case.
3725 cat >conftest.$ac_ext <<_ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3732 # include <limits.h>
3734 # include <assert.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_cxx_preproc_warn_flag
3748 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3755 if test -z "$ac_cpp_err"; then
3758 echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3761 # Broken: fails on valid input.
3764 rm -f conftest.err conftest.$ac_ext
3766 # OK, works on sane cases. Now check whether non-existent headers
3767 # can be detected and how.
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 #include <ac_nonexistent.h>
3776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3779 grep -v '^ *+' conftest.er1 >conftest.err
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } >/dev/null; then
3784 if test -s conftest.err; then
3785 ac_cpp_err=$ac_cxx_preproc_warn_flag
3786 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3793 if test -z "$ac_cpp_err"; then
3794 # Broken: success on invalid input.
3797 echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3800 # Passes both tests.
3804 rm -f conftest.err conftest.$ac_ext
3807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808 rm -f conftest.err conftest.$ac_ext
3809 if $ac_preproc_ok; then
3814 ac_cv_prog_CXXCPP=$CXXCPP
3817 CXXCPP=$ac_cv_prog_CXXCPP
3819 ac_cv_prog_CXXCPP=$CXXCPP
3821 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3822 echo "${ECHO_T}$CXXCPP" >&6
3824 for ac_cxx_preproc_warn_flag in '' yes
3826 # Use a header file that comes with gcc, so configuring glibc
3827 # with a fresh cross-compiler works.
3828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829 # <limits.h> exists even on freestanding compilers.
3830 # On the NeXT, cc -E runs the code through the compiler's parser,
3831 # not just through cpp. "Syntax error" is here to catch this case.
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3839 # include <limits.h>
3841 # include <assert.h>
3845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3848 grep -v '^ *+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } >/dev/null; then
3853 if test -s conftest.err; then
3854 ac_cpp_err=$ac_cxx_preproc_warn_flag
3855 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3862 if test -z "$ac_cpp_err"; then
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3868 # Broken: fails on valid input.
3871 rm -f conftest.err conftest.$ac_ext
3873 # OK, works on sane cases. Now check whether non-existent headers
3874 # can be detected and how.
3875 cat >conftest.$ac_ext <<_ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3881 #include <ac_nonexistent.h>
3883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3886 grep -v '^ *+' conftest.er1 >conftest.err
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } >/dev/null; then
3891 if test -s conftest.err; then
3892 ac_cpp_err=$ac_cxx_preproc_warn_flag
3893 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3900 if test -z "$ac_cpp_err"; then
3901 # Broken: success on invalid input.
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 # Passes both tests.
3911 rm -f conftest.err conftest.$ac_ext
3914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3915 rm -f conftest.err conftest.$ac_ext
3916 if $ac_preproc_ok; then
3919 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3920 See \`config.log' for more details." >&5
3921 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3922 See \`config.log' for more details." >&2;}
3923 { (exit 1); exit 1; }; }
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934 echo "$as_me:$LINENO: checking for egrep" >&5
3935 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3936 if test "${ac_cv_prog_egrep+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3940 then ac_cv_prog_egrep='grep -E'
3941 else ac_cv_prog_egrep='egrep'
3944 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3945 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3946 EGREP=$ac_cv_prog_egrep
3949 if test $ac_cv_c_compiler_gnu = yes; then
3950 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3951 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3952 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 ac_pattern="Autoconf.*'x'"
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3967 ac_cv_prog_gcc_traditional=yes
3969 ac_cv_prog_gcc_traditional=no
3974 if test $ac_cv_prog_gcc_traditional = no; then
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3985 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3986 ac_cv_prog_gcc_traditional=yes
3992 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3993 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3994 if test $ac_cv_prog_gcc_traditional = yes; then
3995 CC="$CC -traditional"
3999 # Find a good install program. We prefer a C program (faster),
4000 # so one script is as good as another. But avoid the broken or
4001 # incompatible versions:
4002 # SysV /etc/install, /usr/sbin/install
4003 # SunOS /usr/etc/install
4004 # IRIX /sbin/install
4006 # AmigaOS /C/install, which installs bootblocks on floppy discs
4007 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4008 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4009 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4010 # OS/2's system install, which has a completely different semantic
4011 # ./install, which can be erroneously created by make from ./install.sh.
4012 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4013 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4014 if test -z "$INSTALL"; then
4015 if test "${ac_cv_path_install+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 test -z "$as_dir" && as_dir=.
4023 # Account for people who put trailing slashes in PATH elements.
4025 ./ | .// | /cC/* | \
4026 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4027 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4030 # OSF1 and SCO ODT 3.0 have their own names for install.
4031 # Don't use installbsd from OSF since it installs stuff as root
4033 for ac_prog in ginstall scoinst install; do
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4036 if test $ac_prog = install &&
4037 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4038 # AIX install. It has an incompatible calling convention.
4040 elif test $ac_prog = install &&
4041 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4042 # program-specific install script used by HP pwplus--don't use.
4045 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4057 if test "${ac_cv_path_install+set}" = set; then
4058 INSTALL=$ac_cv_path_install
4060 # As a last resort, use the slow shell script. We don't cache a
4061 # path for INSTALL within a source directory, because that will
4062 # break other packages using the cache if that directory is
4063 # removed, or if the path is relative.
4064 INSTALL=$ac_install_sh
4067 echo "$as_me:$LINENO: result: $INSTALL" >&5
4068 echo "${ECHO_T}$INSTALL" >&6
4070 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4071 # It thinks the first close brace ends the variable substitution.
4072 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4074 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4076 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4079 # Checks for languages.
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 ac_cpp='$CXXCPP $CPPFLAGS'
4088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4093 # Checks for header files.
4096 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4097 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4098 if test "${ac_cv_header_stdc+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 cat >conftest.$ac_ext <<_ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>conftest.er1
4124 grep -v '^ *+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try='test -z "$ac_cxx_werror_flag"
4130 || test ! -s conftest.err'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 ac_cv_header_stdc=yes
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 ac_cv_header_stdc=no
4149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4151 if test $ac_cv_header_stdc = yes; then
4152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4153 cat >conftest.$ac_ext <<_ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4163 $EGREP "memchr" >/dev/null 2>&1; then
4166 ac_cv_header_stdc=no
4172 if test $ac_cv_header_stdc = yes; then
4173 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4174 cat >conftest.$ac_ext <<_ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184 $EGREP "free" >/dev/null 2>&1; then
4187 ac_cv_header_stdc=no
4193 if test $ac_cv_header_stdc = yes; then
4194 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4195 if test "$cross_compiling" = yes; then
4198 cat >conftest.$ac_ext <<_ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4205 #if ((' ' & 0x0FF) == 0x020)
4206 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4207 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4209 # define ISLOWER(c) \
4210 (('a' <= (c) && (c) <= 'i') \
4211 || ('j' <= (c) && (c) <= 'r') \
4212 || ('s' <= (c) && (c) <= 'z'))
4213 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4216 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4221 for (i = 0; i < 256; i++)
4222 if (XOR (islower (i), ISLOWER (i))
4223 || toupper (i) != TOUPPER (i))
4228 rm -f conftest$ac_exeext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4230 (eval $ac_link) 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4241 echo "$as_me: program exited with status $ac_status" >&5
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4246 ac_cv_header_stdc=no
4248 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4252 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4253 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4254 if test $ac_cv_header_stdc = yes; then
4256 cat >>confdefs.h <<\_ACEOF
4257 #define STDC_HEADERS 1
4262 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4272 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4273 inttypes.h stdint.h unistd.h
4275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4276 echo "$as_me:$LINENO: checking for $ac_header" >&5
4277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 cat >conftest.$ac_ext <<_ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 $ac_includes_default
4289 #include <$ac_header>
4291 rm -f conftest.$ac_objext
4292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4293 (eval $ac_compile) 2>conftest.er1
4295 grep -v '^ *+' conftest.er1 >conftest.err
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } &&
4300 { ac_try='test -z "$ac_cxx_werror_flag"
4301 || test ! -s conftest.err'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try='test -s conftest.$ac_objext'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; }; then
4313 eval "$as_ac_Header=yes"
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 eval "$as_ac_Header=no"
4320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4325 cat >>confdefs.h <<_ACEOF
4326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4336 for ac_header in stdlib.h unistd.h
4338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4340 echo "$as_me:$LINENO: checking for $ac_header" >&5
4341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4348 # Is the header compilable?
4349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4351 cat >conftest.$ac_ext <<_ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 $ac_includes_default
4358 #include <$ac_header>
4360 rm -f conftest.$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>conftest.er1
4364 grep -v '^ *+' conftest.er1 >conftest.err
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -z "$ac_cxx_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_header_compiler=yes
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 ac_header_compiler=no
4389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4391 echo "${ECHO_T}$ac_header_compiler" >&6
4393 # Is the header present?
4394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4396 cat >conftest.$ac_ext <<_ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4402 #include <$ac_header>
4404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } >/dev/null; then
4412 if test -s conftest.err; then
4413 ac_cpp_err=$ac_cxx_preproc_warn_flag
4414 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4421 if test -z "$ac_cpp_err"; then
4422 ac_header_preproc=yes
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4427 ac_header_preproc=no
4429 rm -f conftest.err conftest.$ac_ext
4430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4431 echo "${ECHO_T}$ac_header_preproc" >&6
4433 # So? What about this header?
4434 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4440 ac_header_preproc=yes
4443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4457 ## ------------------------------- ##
4458 ## Report this to the fmit lists. ##
4459 ## ------------------------------- ##
4462 sed "s/^/$as_me: WARNING: /" >&2
4465 echo "$as_me:$LINENO: checking for $ac_header" >&5
4466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 eval "$as_ac_Header=\$ac_header_preproc"
4472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4477 cat >>confdefs.h <<_ACEOF
4478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486 # Checks for typedefs, structures, and compiler characteristics.
4487 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4488 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
4489 if test "${ac_cv_header_stdbool_h+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 cat >conftest.$ac_ext <<_ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4499 #include <stdbool.h>
4501 # error bool is not defined
4504 # error false is not defined
4507 # error false is not 0
4510 # error true is not defined
4513 # error true is not 1
4515 #ifndef __bool_true_false_are_defined
4516 # error __bool_true_false_are_defined is not defined
4519 struct s { _Bool s: 1; _Bool t; } s;
4521 char a[true == 1 ? 1 : -1];
4522 char b[false == 0 ? 1 : -1];
4523 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4524 char d[(bool) -0.5 == true ? 1 : -1];
4526 char f[(_Bool) -0.0 == false ? 1 : -1];
4528 char h[sizeof (_Bool)];
4534 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
4539 rm -f conftest.$ac_objext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>conftest.er1
4543 grep -v '^ *+' conftest.er1 >conftest.err
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_cxx_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 ac_cv_header_stdbool_h=yes
4563 echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4566 ac_cv_header_stdbool_h=no
4568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4570 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4571 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
4572 echo "$as_me:$LINENO: checking for _Bool" >&5
4573 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
4574 if test "${ac_cv_type__Bool+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 cat >conftest.$ac_ext <<_ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 $ac_includes_default
4595 rm -f conftest.$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>conftest.er1
4599 grep -v '^ *+' conftest.er1 >conftest.err
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -z "$ac_cxx_werror_flag"
4605 || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_type__Bool=yes
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4626 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4627 echo "${ECHO_T}$ac_cv_type__Bool" >&6
4628 if test $ac_cv_type__Bool = yes; then
4630 cat >>confdefs.h <<_ACEOF
4631 #define HAVE__BOOL 1
4637 if test $ac_cv_header_stdbool_h = yes; then
4639 cat >>confdefs.h <<\_ACEOF
4640 #define HAVE_STDBOOL_H 1
4645 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4646 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4647 if test "${ac_cv_c_const+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4660 /* FIXME: Include the comments suggested by Paul. */
4662 /* Ultrix mips cc rejects this. */
4663 typedef int charset[2];
4665 /* SunOS 4.1.1 cc rejects this. */
4666 char const *const *ccp;
4668 /* NEC SVR4.0.2 mips cc rejects this. */
4669 struct point {int x, y;};
4670 static struct point const zero = {0,0};
4671 /* AIX XL C 1.02.0.0 rejects this.
4672 It does not let you subtract one const X* pointer from another in
4673 an arm of an if-expression whose if-part is not a constant
4675 const char *g = "string";
4676 ccp = &g + (g ? g-g : 0);
4677 /* HPUX 7.0 cc rejects these. */
4680 ccp = (char const *const *) p;
4681 { /* SCO 3.2v4 cc rejects this. */
4683 char const *s = 0 ? (char *) 0 : (char const *) 0;
4687 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4689 const int *foo = &x[0];
4692 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4693 typedef const int *iptr;
4697 { /* AIX XL C 1.02.0.0 rejects this saying
4698 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4699 struct s { int j; const int *ap[3]; };
4700 struct s *b; b->j = 5;
4702 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4711 rm -f conftest.$ac_objext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>conftest.er1
4715 grep -v '^ *+' conftest.er1 >conftest.err
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } &&
4720 { ac_try='test -z "$ac_cxx_werror_flag"
4721 || test ! -s conftest.err'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; } &&
4727 { ac_try='test -s conftest.$ac_objext'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4742 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4743 echo "${ECHO_T}$ac_cv_c_const" >&6
4744 if test $ac_cv_c_const = no; then
4746 cat >>confdefs.h <<\_ACEOF
4752 echo "$as_me:$LINENO: checking for inline" >&5
4753 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4754 if test "${ac_cv_c_inline+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 for ac_kw in inline __inline__ __inline; do
4759 cat >conftest.$ac_ext <<_ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4767 static $ac_kw foo_t static_foo () {return 0; }
4768 $ac_kw foo_t foo () {return 0; }
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>conftest.er1
4776 grep -v '^ *+' conftest.er1 >conftest.err
4778 cat conftest.err >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try='test -z "$ac_cxx_werror_flag"
4782 || test ! -s conftest.err'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; } &&
4788 { ac_try='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_cv_c_inline=$ac_kw; break
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4804 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4805 echo "${ECHO_T}$ac_cv_c_inline" >&6
4808 case $ac_cv_c_inline in
4811 case $ac_cv_c_inline in
4813 *) ac_val=$ac_cv_c_inline;;
4815 cat >>confdefs.h <<_ACEOF
4817 #define inline $ac_val
4823 echo "$as_me:$LINENO: checking for working volatile" >&5
4824 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4825 if test "${ac_cv_c_volatile+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 cat >conftest.$ac_ext <<_ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4845 rm -f conftest.$ac_objext
4846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847 (eval $ac_compile) 2>conftest.er1
4849 grep -v '^ *+' conftest.er1 >conftest.err
4851 cat conftest.err >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -z "$ac_cxx_werror_flag"
4855 || test ! -s conftest.err'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; } &&
4861 { ac_try='test -s conftest.$ac_objext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 ac_cv_c_volatile=yes
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4876 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4877 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4878 if test $ac_cv_c_volatile = no; then
4880 cat >>confdefs.h <<\_ACEOF
4886 echo "$as_me:$LINENO: checking for size_t" >&5
4887 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4888 if test "${ac_cv_type_size_t+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 cat >conftest.$ac_ext <<_ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 $ac_includes_default
4903 if (sizeof (size_t))
4909 rm -f conftest.$ac_objext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>conftest.er1
4913 grep -v '^ *+' conftest.er1 >conftest.err
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } &&
4918 { ac_try='test -z "$ac_cxx_werror_flag"
4919 || test ! -s conftest.err'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 ac_cv_type_size_t=yes
4933 echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4936 ac_cv_type_size_t=no
4938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4940 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4941 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4942 if test $ac_cv_type_size_t = yes; then
4946 cat >>confdefs.h <<_ACEOF
4947 #define size_t unsigned
4952 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
4953 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
4954 if test "${ac_cv_cxx_namespaces+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 ac_cpp='$CXXCPP $CPPFLAGS'
4961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4965 cat >conftest.$ac_ext <<_ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 namespace Outer { namespace Inner { int i = 0; }}
4975 using namespace Outer::Inner; return i;
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>conftest.er1
4984 grep -v '^ *+' conftest.er1 >conftest.err
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -z "$ac_cxx_werror_flag"
4990 || test ! -s conftest.err'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; } &&
4996 { ac_try='test -s conftest.$ac_objext'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5002 ac_cv_cxx_namespaces=yes
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5007 ac_cv_cxx_namespaces=no
5009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5011 ac_cpp='$CXXCPP $CPPFLAGS'
5012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5018 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
5019 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
5020 if test "$ac_cv_cxx_namespaces" = yes; then
5022 cat >>confdefs.h <<\_ACEOF
5023 #define HAVE_NAMESPACES
5028 echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
5029 echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
5030 if test "${ac_cv_cxx_have_stl+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 ac_cpp='$CXXCPP $CPPFLAGS'
5038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5042 cat >conftest.$ac_ext <<_ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5050 #ifdef HAVE_NAMESPACES
5051 using namespace std;
5056 list<int> x; x.push_back(5);
5057 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
5062 rm -f conftest.$ac_objext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064 (eval $ac_compile) 2>conftest.er1
5066 grep -v '^ *+' conftest.er1 >conftest.err
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try='test -z "$ac_cxx_werror_flag"
5072 || test ! -s conftest.err'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; } &&
5078 { ac_try='test -s conftest.$ac_objext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 ac_cv_cxx_have_stl=yes
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 ac_cv_cxx_have_stl=no
5091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5093 ac_cpp='$CXXCPP $CPPFLAGS'
5094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5100 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
5101 echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
5102 if test "$ac_cv_cxx_have_stl" = yes; then
5104 cat >>confdefs.h <<\_ACEOF
5110 echo "$as_me:$LINENO: checking whether the compiler has numeric_limits<T>" >&5
5111 echo $ECHO_N "checking whether the compiler has numeric_limits<T>... $ECHO_C" >&6
5112 if test "${ac_cv_cxx_have_numeric_limits+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 ac_cpp='$CXXCPP $CPPFLAGS'
5120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5124 cat >conftest.$ac_ext <<_ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5131 #ifdef HAVE_NAMESPACES
5132 using namespace std;
5137 double e = numeric_limits<double>::epsilon(); return 0;
5142 rm -f conftest.$ac_objext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5144 (eval $ac_compile) 2>conftest.er1
5146 grep -v '^ *+' conftest.er1 >conftest.err
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } &&
5151 { ac_try='test -z "$ac_cxx_werror_flag"
5152 || test ! -s conftest.err'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; } &&
5158 { ac_try='test -s conftest.$ac_objext'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; }; then
5164 ac_cv_cxx_have_numeric_limits=yes
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5169 ac_cv_cxx_have_numeric_limits=no
5171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5173 ac_cpp='$CXXCPP $CPPFLAGS'
5174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5180 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_numeric_limits" >&5
5181 echo "${ECHO_T}$ac_cv_cxx_have_numeric_limits" >&6
5182 if test "$ac_cv_cxx_have_numeric_limits" = yes; then
5184 cat >>confdefs.h <<\_ACEOF
5185 #define HAVE_NUMERIC_LIMITS
5190 echo "$as_me:$LINENO: checking whether the compiler has stringstream" >&5
5191 echo $ECHO_N "checking whether the compiler has stringstream... $ECHO_C" >&6
5192 if test "${ac_cv_cxx_have_sstream+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 ac_cpp='$CXXCPP $CPPFLAGS'
5200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5204 cat >conftest.$ac_ext <<_ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5211 #ifdef HAVE_NAMESPACES
5212 using namespace std;
5217 stringstream message; message << "Hello"; return 0;
5222 rm -f conftest.$ac_objext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224 (eval $ac_compile) 2>conftest.er1
5226 grep -v '^ *+' conftest.er1 >conftest.err
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try='test -z "$ac_cxx_werror_flag"
5232 || test ! -s conftest.err'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; } &&
5238 { ac_try='test -s conftest.$ac_objext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_cv_cxx_have_sstream=yes
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 ac_cv_cxx_have_sstream=no
5251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5253 ac_cpp='$CXXCPP $CPPFLAGS'
5254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5260 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_sstream" >&5
5261 echo "${ECHO_T}$ac_cv_cxx_have_sstream" >&6
5262 if test "$ac_cv_cxx_have_sstream" = yes; then
5264 cat >>confdefs.h <<\_ACEOF
5265 #define HAVE_SSTREAM
5270 echo "$as_me:$LINENO: checking whether the compiler supports basic templates" >&5
5271 echo $ECHO_N "checking whether the compiler supports basic templates... $ECHO_C" >&6
5272 if test "${ac_cv_cxx_templates+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 ac_cpp='$CXXCPP $CPPFLAGS'
5279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5283 cat >conftest.$ac_ext <<_ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 template<class T> class A {public:A(){}};
5290 template<class T> void f(const A<T>& ){}
5295 A<double> d; A<int> i; f(d); f(i); return 0;
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>conftest.er1
5304 grep -v '^ *+' conftest.er1 >conftest.err
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -z "$ac_cxx_werror_flag"
5310 || test ! -s conftest.err'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; } &&
5316 { ac_try='test -s conftest.$ac_objext'
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; }; then
5322 ac_cv_cxx_templates=yes
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 ac_cv_cxx_templates=no
5329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5331 ac_cpp='$CXXCPP $CPPFLAGS'
5332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5338 echo "$as_me:$LINENO: result: $ac_cv_cxx_templates" >&5
5339 echo "${ECHO_T}$ac_cv_cxx_templates" >&6
5340 if test "$ac_cv_cxx_templates" = yes; then
5342 cat >>confdefs.h <<\_ACEOF
5343 #define HAVE_TEMPLATES
5348 echo "$as_me:$LINENO: checking whether the compiler supports exceptions" >&5
5349 echo $ECHO_N "checking whether the compiler supports exceptions... $ECHO_C" >&6
5350 if test "${ac_cv_cxx_exceptions+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 ac_cpp='$CXXCPP $CPPFLAGS'
5357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5361 cat >conftest.$ac_ext <<_ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5371 try { throw 1; } catch (int i) { return i; }
5376 rm -f conftest.$ac_objext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378 (eval $ac_compile) 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -z "$ac_cxx_werror_flag"
5386 || test ! -s conftest.err'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; } &&
5392 { ac_try='test -s conftest.$ac_objext'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; }; then
5398 ac_cv_cxx_exceptions=yes
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_cv_cxx_exceptions=no
5405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_cpp='$CXXCPP $CPPFLAGS'
5408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5414 echo "$as_me:$LINENO: result: $ac_cv_cxx_exceptions" >&5
5415 echo "${ECHO_T}$ac_cv_cxx_exceptions" >&6
5416 if test "$ac_cv_cxx_exceptions" = yes; then
5418 cat >>confdefs.h <<\_ACEOF
5419 #define HAVE_EXCEPTIONS
5424 echo "$as_me:$LINENO: checking whether the compiler has complex<T>" >&5
5425 echo $ECHO_N "checking whether the compiler has complex<T>... $ECHO_C" >&6
5426 if test "${ac_cv_cxx_have_complex+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 ac_cpp='$CXXCPP $CPPFLAGS'
5434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5438 cat >conftest.$ac_ext <<_ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5445 #ifdef HAVE_NAMESPACES
5446 using namespace std;
5451 complex<float> a; complex<double> b; return 0;
5456 rm -f conftest.$ac_objext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458 (eval $ac_compile) 2>conftest.er1
5460 grep -v '^ *+' conftest.er1 >conftest.err
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -z "$ac_cxx_werror_flag"
5466 || test ! -s conftest.err'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; } &&
5472 { ac_try='test -s conftest.$ac_objext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_cv_cxx_have_complex=yes
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 ac_cv_cxx_have_complex=no
5485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5487 ac_cpp='$CXXCPP $CPPFLAGS'
5488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5494 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_complex" >&5
5495 echo "${ECHO_T}$ac_cv_cxx_have_complex" >&6
5496 if test "$ac_cv_cxx_have_complex" = yes; then
5498 cat >>confdefs.h <<\_ACEOF
5499 #define HAVE_COMPLEX
5505 # Checks for library functions.
5506 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5507 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5508 if test "${ac_cv_type_signal+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 cat >conftest.$ac_ext <<_ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 #include <sys/types.h>
5523 extern "C" void (*signal (int, void (*)(int)))(int);
5525 void (*signal ()) ();
5536 rm -f conftest.$ac_objext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538 (eval $ac_compile) 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_cxx_werror_flag"
5546 || test ! -s conftest.err'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; } &&
5552 { ac_try='test -s conftest.$ac_objext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_type_signal=void
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 ac_cv_type_signal=int
5565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5567 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5568 echo "${ECHO_T}$ac_cv_type_signal" >&6
5570 cat >>confdefs.h <<_ACEOF
5571 #define RETSIGTYPE $ac_cv_type_signal
5577 for ac_func in pow sqrt
5579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5580 echo "$as_me:$LINENO: checking for $ac_func" >&5
5581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5582 if eval "test \"\${$as_ac_var+set}\" = set"; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 cat >conftest.$ac_ext <<_ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5593 #define $ac_func innocuous_$ac_func
5595 /* System header to define __stub macros and hopefully few prototypes,
5596 which can conflict with char $ac_func (); below.
5597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598 <limits.h> exists even on freestanding compilers. */
5601 # include <limits.h>
5603 # include <assert.h>
5608 /* Override any gcc2 internal prototype to avoid an error. */
5613 /* We use char because int might match the return type of a gcc2
5614 builtin and then its argument prototype would still apply. */
5616 /* The GNU C library defines this for functions which it implements
5617 to always fail with ENOSYS. Some functions are actually named
5618 something starting with __ and the normal name is an alias. */
5619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5622 char (*f) () = $ac_func;
5631 return f != $ac_func;
5636 rm -f conftest.$ac_objext conftest$ac_exeext
5637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638 (eval $ac_link) 2>conftest.er1
5640 grep -v '^ *+' conftest.er1 >conftest.err
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try='test -z "$ac_cxx_werror_flag"
5646 || test ! -s conftest.err'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } &&
5652 { ac_try='test -s conftest$ac_exeext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 eval "$as_ac_var=yes"
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5663 eval "$as_ac_var=no"
5665 rm -f conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
5668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5670 if test `eval echo '${'$as_ac_var'}'` = yes; then
5671 cat >>confdefs.h <<_ACEOF
5672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5680 for ac_header in fftw3.h
5682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5684 echo "$as_me:$LINENO: checking for $ac_header" >&5
5685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5692 # Is the header compilable?
5693 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 $ac_includes_default
5702 #include <$ac_header>
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>conftest.er1
5708 grep -v '^ *+' conftest.er1 >conftest.err
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_cxx_werror_flag"
5714 || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_header_compiler=yes
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_header_compiler=no
5733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5735 echo "${ECHO_T}$ac_header_compiler" >&6
5737 # Is the header present?
5738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5740 cat >conftest.$ac_ext <<_ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 #include <$ac_header>
5748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5751 grep -v '^ *+' conftest.er1 >conftest.err
5753 cat conftest.err >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } >/dev/null; then
5756 if test -s conftest.err; then
5757 ac_cpp_err=$ac_cxx_preproc_warn_flag
5758 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5765 if test -z "$ac_cpp_err"; then
5766 ac_header_preproc=yes
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5771 ac_header_preproc=no
5773 rm -f conftest.err conftest.$ac_ext
5774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5775 echo "${ECHO_T}$ac_header_preproc" >&6
5777 # So? What about this header?
5778 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5784 ac_header_preproc=yes
5787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5801 ## ------------------------------- ##
5802 ## Report this to the fmit lists. ##
5803 ## ------------------------------- ##
5806 sed "s/^/$as_me: WARNING: /" >&2
5809 echo "$as_me:$LINENO: checking for $ac_header" >&5
5810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 eval "$as_ac_Header=\$ac_header_preproc"
5816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5821 cat >>confdefs.h <<_ACEOF
5822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5830 echo "$as_me:$LINENO: checking for fftw_plan_dft_1d in -lfftw3" >&5
5831 echo $ECHO_N "checking for fftw_plan_dft_1d in -lfftw3... $ECHO_C" >&6
5832 if test "${ac_cv_lib_fftw3_fftw_plan_dft_1d+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 ac_check_lib_save_LIBS=$LIBS
5836 LIBS="-lfftw3 $LIBS"
5837 cat >conftest.$ac_ext <<_ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5844 /* Override any gcc2 internal prototype to avoid an error. */
5848 /* We use char because int might match the return type of a gcc2
5849 builtin and then its argument prototype would still apply. */
5850 char fftw_plan_dft_1d ();
5854 fftw_plan_dft_1d ();
5859 rm -f conftest.$ac_objext conftest$ac_exeext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861 (eval $ac_link) 2>conftest.er1
5863 grep -v '^ *+' conftest.er1 >conftest.err
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -z "$ac_cxx_werror_flag"
5869 || test ! -s conftest.err'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; } &&
5875 { ac_try='test -s conftest$ac_exeext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 ac_cv_lib_fftw3_fftw_plan_dft_1d=yes
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5886 ac_cv_lib_fftw3_fftw_plan_dft_1d=no
5888 rm -f conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
5890 LIBS=$ac_check_lib_save_LIBS
5892 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_1d" >&5
5893 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_plan_dft_1d" >&6
5894 if test $ac_cv_lib_fftw3_fftw_plan_dft_1d = yes; then
5895 cat >>confdefs.h <<_ACEOF
5896 #define HAVE_LIBFFTW3 1
5899 LIBS="-lfftw3 $LIBS"
5905 echo "$as_me:$LINENO: checking for X" >&5
5906 echo $ECHO_N "checking for X... $ECHO_C" >&6
5909 # Check whether --with-x or --without-x was given.
5910 if test "${with_x+set}" = set; then
5914 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5915 if test "x$with_x" = xno; then
5916 # The user explicitly disabled X.
5919 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5920 # Both variables are already set.
5923 if test "${ac_cv_have_x+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 # One or both of the vars are not set, and there is no cached value.
5927 ac_x_includes=no ac_x_libraries=no
5929 if mkdir conftest.dir; then
5931 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5932 cat >Imakefile <<'_ACEOF'
5934 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5936 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5937 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5938 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5939 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5940 for ac_extension in a so sl; do
5941 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5942 test -f $ac_im_libdir/libX11.$ac_extension; then
5943 ac_im_usrlibdir=$ac_im_libdir; break
5946 # Screen out bogus values from the imake configuration. They are
5947 # bogus both because they are the default anyway, and because
5948 # using them would break gcc on systems where it needs fixed includes.
5949 case $ac_im_incroot in
5951 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5953 case $ac_im_usrlibdir in
5955 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5962 # Standard set of common directories for X headers.
5963 # Check X11 before X11Rn because it is often a symlink to the current release.
5975 /usr/local/X11/include
5976 /usr/local/X11R6/include
5977 /usr/local/X11R5/include
5978 /usr/local/X11R4/include
5980 /usr/local/include/X11
5981 /usr/local/include/X11R6
5982 /usr/local/include/X11R5
5983 /usr/local/include/X11R4
5987 /usr/XFree86/include/X11
5991 /usr/unsupported/include
5993 /usr/local/x11r5/include
5994 /usr/lpp/Xamples/include
5996 /usr/openwin/include
5997 /usr/openwin/share/include'
5999 if test "$ac_x_includes" = no; then
6000 # Guess where to find include files, by looking for Intrinsic.h.
6001 # First, try using that file with no special directory specified.
6002 cat >conftest.$ac_ext <<_ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 #include <X11/Intrinsic.h>
6010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } >/dev/null; then
6018 if test -s conftest.err; then
6019 ac_cpp_err=$ac_cxx_preproc_warn_flag
6020 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6027 if test -z "$ac_cpp_err"; then
6028 # We can compile using X headers with no special include directory.
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 for ac_dir in $ac_x_header_dirs; do
6035 if test -r "$ac_dir/X11/Intrinsic.h"; then
6036 ac_x_includes=$ac_dir
6041 rm -f conftest.err conftest.$ac_ext
6042 fi # $ac_x_includes = no
6044 if test "$ac_x_libraries" = no; then
6045 # Check for the libraries.
6046 # See if we find them without any special options.
6047 # Don't add to $LIBS permanently.
6050 cat >conftest.$ac_ext <<_ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 #include <X11/Intrinsic.h>
6065 rm -f conftest.$ac_objext conftest$ac_exeext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6067 (eval $ac_link) 2>conftest.er1
6069 grep -v '^ *+' conftest.er1 >conftest.err
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_cxx_werror_flag"
6075 || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest$ac_exeext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6088 # We can link X programs with no special library path.
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6095 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6097 # Don't even attempt the hair of trying to link an X program!
6098 for ac_extension in a so sl; do
6099 if test -r $ac_dir/libXt.$ac_extension; then
6100 ac_x_libraries=$ac_dir
6106 rm -f conftest.err conftest.$ac_objext \
6107 conftest$ac_exeext conftest.$ac_ext
6108 fi # $ac_x_libraries = no
6110 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6111 # Didn't find X anywhere. Cache the known absence of X.
6112 ac_cv_have_x="have_x=no"
6114 # Record where we found X for the cache.
6115 ac_cv_have_x="have_x=yes \
6116 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6121 eval "$ac_cv_have_x"
6124 if test "$have_x" != yes; then
6125 echo "$as_me:$LINENO: result: $have_x" >&5
6126 echo "${ECHO_T}$have_x" >&6
6129 # If each of the values was on the command line, it overrides each guess.
6130 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6131 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6132 # Update the cache value to reflect the command line values.
6133 ac_cv_have_x="have_x=yes \
6134 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6135 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6136 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6139 if test "$no_x" = yes; then
6140 # Not all programs may use this symbol, but it does not hurt to define it.
6142 cat >>confdefs.h <<\_ACEOF
6143 #define X_DISPLAY_MISSING 1
6146 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6148 if test -n "$x_includes"; then
6149 X_CFLAGS="$X_CFLAGS -I$x_includes"
6152 # It would also be nice to do this for all -L options, not just this one.
6153 if test -n "$x_libraries"; then
6154 X_LIBS="$X_LIBS -L$x_libraries"
6155 # For Solaris; some versions of Sun CC require a space after -R and
6156 # others require no space. Words are not sufficient . . . .
6157 case `(uname -sr) 2>/dev/null` in
6159 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6160 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6161 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6162 cat >conftest.$ac_ext <<_ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6177 rm -f conftest.$ac_objext conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>conftest.er1
6181 grep -v '^ *+' conftest.er1 >conftest.err
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -z "$ac_cxx_werror_flag"
6187 || test ! -s conftest.err'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest$ac_exeext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6206 rm -f conftest.err conftest.$ac_objext \
6207 conftest$ac_exeext conftest.$ac_ext
6208 if test $ac_R_nospace = yes; then
6209 echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6
6211 X_LIBS="$X_LIBS -R$x_libraries"
6213 LIBS="$ac_xsave_LIBS -R $x_libraries"
6214 cat >conftest.$ac_ext <<_ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231 (eval $ac_link) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_cxx_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest$ac_exeext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6258 rm -f conftest.err conftest.$ac_objext \
6259 conftest$ac_exeext conftest.$ac_ext
6260 if test $ac_R_space = yes; then
6261 echo "$as_me:$LINENO: result: yes" >&5
6262 echo "${ECHO_T}yes" >&6
6263 X_LIBS="$X_LIBS -R $x_libraries"
6265 echo "$as_me:$LINENO: result: neither works" >&5
6266 echo "${ECHO_T}neither works" >&6
6273 # Check for system-dependent libraries X programs must link with.
6274 # Do this before checking for the system-independent R6 libraries
6275 # (-lICE), since we may need -lsocket or whatever for X linking.
6277 if test "$ISC" = yes; then
6278 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6280 # Martyn Johnson says this is needed for Ultrix, if the X
6281 # libraries were built with DECnet support. And Karl Berry says
6282 # the Alpha needs dnet_stub (dnet does not exist).
6283 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6284 cat >conftest.$ac_ext <<_ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6291 /* Override any gcc2 internal prototype to avoid an error. */
6295 /* We use char because int might match the return type of a gcc2
6296 builtin and then its argument prototype would still apply. */
6297 char XOpenDisplay ();
6306 rm -f conftest.$ac_objext conftest$ac_exeext
6307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6308 (eval $ac_link) 2>conftest.er1
6310 grep -v '^ *+' conftest.er1 >conftest.err
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
6315 { ac_try='test -z "$ac_cxx_werror_flag"
6316 || test ! -s conftest.err'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest$ac_exeext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6333 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6334 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6335 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 ac_check_lib_save_LIBS=$LIBS
6340 cat >conftest.$ac_ext <<_ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6347 /* Override any gcc2 internal prototype to avoid an error. */
6351 /* We use char because int might match the return type of a gcc2
6352 builtin and then its argument prototype would still apply. */
6362 rm -f conftest.$ac_objext conftest$ac_exeext
6363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364 (eval $ac_link) 2>conftest.er1
6366 grep -v '^ *+' conftest.er1 >conftest.err
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } &&
6371 { ac_try='test -z "$ac_cxx_werror_flag"
6372 || test ! -s conftest.err'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; } &&
6378 { ac_try='test -s conftest$ac_exeext'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
6384 ac_cv_lib_dnet_dnet_ntoa=yes
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6389 ac_cv_lib_dnet_dnet_ntoa=no
6391 rm -f conftest.err conftest.$ac_objext \
6392 conftest$ac_exeext conftest.$ac_ext
6393 LIBS=$ac_check_lib_save_LIBS
6395 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6396 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6397 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6398 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6401 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6402 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6403 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6404 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 ac_check_lib_save_LIBS=$LIBS
6408 LIBS="-ldnet_stub $LIBS"
6409 cat >conftest.$ac_ext <<_ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6416 /* Override any gcc2 internal prototype to avoid an error. */
6420 /* We use char because int might match the return type of a gcc2
6421 builtin and then its argument prototype would still apply. */
6431 rm -f conftest.$ac_objext conftest$ac_exeext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433 (eval $ac_link) 2>conftest.er1
6435 grep -v '^ *+' conftest.er1 >conftest.err
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -z "$ac_cxx_werror_flag"
6441 || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest$ac_exeext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 ac_cv_lib_dnet_stub_dnet_ntoa=no
6460 rm -f conftest.err conftest.$ac_objext \
6461 conftest$ac_exeext conftest.$ac_ext
6462 LIBS=$ac_check_lib_save_LIBS
6464 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6465 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
6466 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6467 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6472 rm -f conftest.err conftest.$ac_objext \
6473 conftest$ac_exeext conftest.$ac_ext
6474 LIBS="$ac_xsave_LIBS"
6476 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6477 # to get the SysV transport functions.
6478 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6480 # The nsl library prevents programs from opening the X display
6481 # on Irix 5.2, according to T.E. Dickey.
6482 # The functions gethostbyname, getservbyname, and inet_addr are
6483 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6484 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6485 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6486 if test "${ac_cv_func_gethostbyname+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 cat >conftest.$ac_ext <<_ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6495 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6497 #define gethostbyname innocuous_gethostbyname
6499 /* System header to define __stub macros and hopefully few prototypes,
6500 which can conflict with char gethostbyname (); below.
6501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6502 <limits.h> exists even on freestanding compilers. */
6505 # include <limits.h>
6507 # include <assert.h>
6510 #undef gethostbyname
6512 /* Override any gcc2 internal prototype to avoid an error. */
6517 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */
6519 char gethostbyname ();
6520 /* The GNU C library defines this for functions which it implements
6521 to always fail with ENOSYS. Some functions are actually named
6522 something starting with __ and the normal name is an alias. */
6523 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6526 char (*f) () = gethostbyname;
6535 return f != gethostbyname;
6540 rm -f conftest.$ac_objext conftest$ac_exeext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6542 (eval $ac_link) 2>conftest.er1
6544 grep -v '^ *+' conftest.er1 >conftest.err
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_cxx_werror_flag"
6550 || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest$ac_exeext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_cv_func_gethostbyname=yes
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_cv_func_gethostbyname=no
6569 rm -f conftest.err conftest.$ac_objext \
6570 conftest$ac_exeext conftest.$ac_ext
6572 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6573 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6575 if test $ac_cv_func_gethostbyname = no; then
6576 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6577 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6578 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 ac_check_lib_save_LIBS=$LIBS
6583 cat >conftest.$ac_ext <<_ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6590 /* Override any gcc2 internal prototype to avoid an error. */
6594 /* We use char because int might match the return type of a gcc2
6595 builtin and then its argument prototype would still apply. */
6596 char gethostbyname ();
6605 rm -f conftest.$ac_objext conftest$ac_exeext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6607 (eval $ac_link) 2>conftest.er1
6609 grep -v '^ *+' conftest.er1 >conftest.err
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -z "$ac_cxx_werror_flag"
6615 || test ! -s conftest.err'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; } &&
6621 { ac_try='test -s conftest$ac_exeext'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 ac_cv_lib_nsl_gethostbyname=yes
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 ac_cv_lib_nsl_gethostbyname=no
6634 rm -f conftest.err conftest.$ac_objext \
6635 conftest$ac_exeext conftest.$ac_ext
6636 LIBS=$ac_check_lib_save_LIBS
6638 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6639 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6640 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6641 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6644 if test $ac_cv_lib_nsl_gethostbyname = no; then
6645 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6646 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6647 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 ac_check_lib_save_LIBS=$LIBS
6652 cat >conftest.$ac_ext <<_ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6659 /* Override any gcc2 internal prototype to avoid an error. */
6663 /* We use char because int might match the return type of a gcc2
6664 builtin and then its argument prototype would still apply. */
6665 char gethostbyname ();
6674 rm -f conftest.$ac_objext conftest$ac_exeext
6675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6676 (eval $ac_link) 2>conftest.er1
6678 grep -v '^ *+' conftest.er1 >conftest.err
6680 cat conftest.err >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } &&
6683 { ac_try='test -z "$ac_cxx_werror_flag"
6684 || test ! -s conftest.err'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; } &&
6690 { ac_try='test -s conftest$ac_exeext'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
6696 ac_cv_lib_bsd_gethostbyname=yes
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 ac_cv_lib_bsd_gethostbyname=no
6703 rm -f conftest.err conftest.$ac_objext \
6704 conftest$ac_exeext conftest.$ac_ext
6705 LIBS=$ac_check_lib_save_LIBS
6707 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6708 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6709 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6716 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6717 # socket/setsockopt and other routines are undefined under SCO ODT
6718 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6719 # on later versions), says Simon Leinen: it contains gethostby*
6720 # variants that don't use the name server (or something). -lsocket
6721 # must be given before -lnsl if both are needed. We assume that
6722 # if connect needs -lnsl, so does gethostbyname.
6723 echo "$as_me:$LINENO: checking for connect" >&5
6724 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6725 if test "${ac_cv_func_connect+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 cat >conftest.$ac_ext <<_ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6734 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6736 #define connect innocuous_connect
6738 /* System header to define __stub macros and hopefully few prototypes,
6739 which can conflict with char connect (); below.
6740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6741 <limits.h> exists even on freestanding compilers. */
6744 # include <limits.h>
6746 # include <assert.h>
6751 /* Override any gcc2 internal prototype to avoid an error. */
6756 /* We use char because int might match the return type of a gcc2
6757 builtin and then its argument prototype would still apply. */
6759 /* The GNU C library defines this for functions which it implements
6760 to always fail with ENOSYS. Some functions are actually named
6761 something starting with __ and the normal name is an alias. */
6762 #if defined (__stub_connect) || defined (__stub___connect)
6765 char (*f) () = connect;
6774 return f != connect;
6779 rm -f conftest.$ac_objext conftest$ac_exeext
6780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6781 (eval $ac_link) 2>conftest.er1
6783 grep -v '^ *+' conftest.er1 >conftest.err
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } &&
6788 { ac_try='test -z "$ac_cxx_werror_flag"
6789 || test ! -s conftest.err'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; } &&
6795 { ac_try='test -s conftest$ac_exeext'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }; then
6801 ac_cv_func_connect=yes
6803 echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6806 ac_cv_func_connect=no
6808 rm -f conftest.err conftest.$ac_objext \
6809 conftest$ac_exeext conftest.$ac_ext
6811 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6812 echo "${ECHO_T}$ac_cv_func_connect" >&6
6814 if test $ac_cv_func_connect = no; then
6815 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6816 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6817 if test "${ac_cv_lib_socket_connect+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 ac_check_lib_save_LIBS=$LIBS
6821 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6822 cat >conftest.$ac_ext <<_ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6829 /* Override any gcc2 internal prototype to avoid an error. */
6833 /* We use char because int might match the return type of a gcc2
6834 builtin and then its argument prototype would still apply. */
6844 rm -f conftest.$ac_objext conftest$ac_exeext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6846 (eval $ac_link) 2>conftest.er1
6848 grep -v '^ *+' conftest.er1 >conftest.err
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try='test -z "$ac_cxx_werror_flag"
6854 || test ! -s conftest.err'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; } &&
6860 { ac_try='test -s conftest$ac_exeext'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6866 ac_cv_lib_socket_connect=yes
6868 echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6871 ac_cv_lib_socket_connect=no
6873 rm -f conftest.err conftest.$ac_objext \
6874 conftest$ac_exeext conftest.$ac_ext
6875 LIBS=$ac_check_lib_save_LIBS
6877 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6878 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6879 if test $ac_cv_lib_socket_connect = yes; then
6880 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6885 # Guillermo Gomez says -lposix is necessary on A/UX.
6886 echo "$as_me:$LINENO: checking for remove" >&5
6887 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6888 if test "${ac_cv_func_remove+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6899 #define remove innocuous_remove
6901 /* System header to define __stub macros and hopefully few prototypes,
6902 which can conflict with char remove (); below.
6903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6904 <limits.h> exists even on freestanding compilers. */
6907 # include <limits.h>
6909 # include <assert.h>
6914 /* Override any gcc2 internal prototype to avoid an error. */
6919 /* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6922 /* The GNU C library defines this for functions which it implements
6923 to always fail with ENOSYS. Some functions are actually named
6924 something starting with __ and the normal name is an alias. */
6925 #if defined (__stub_remove) || defined (__stub___remove)
6928 char (*f) () = remove;
6942 rm -f conftest.$ac_objext conftest$ac_exeext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6944 (eval $ac_link) 2>conftest.er1
6946 grep -v '^ *+' conftest.er1 >conftest.err
6948 cat conftest.err >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } &&
6951 { ac_try='test -z "$ac_cxx_werror_flag"
6952 || test ! -s conftest.err'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; } &&
6958 { ac_try='test -s conftest$ac_exeext'
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; }; then
6964 ac_cv_func_remove=yes
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6969 ac_cv_func_remove=no
6971 rm -f conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
6974 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6975 echo "${ECHO_T}$ac_cv_func_remove" >&6
6977 if test $ac_cv_func_remove = no; then
6978 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6979 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6980 if test "${ac_cv_lib_posix_remove+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 ac_check_lib_save_LIBS=$LIBS
6984 LIBS="-lposix $LIBS"
6985 cat >conftest.$ac_ext <<_ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6992 /* Override any gcc2 internal prototype to avoid an error. */
6996 /* We use char because int might match the return type of a gcc2
6997 builtin and then its argument prototype would still apply. */
7007 rm -f conftest.$ac_objext conftest$ac_exeext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>conftest.er1
7011 grep -v '^ *+' conftest.er1 >conftest.err
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -z "$ac_cxx_werror_flag"
7017 || test ! -s conftest.err'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; } &&
7023 { ac_try='test -s conftest$ac_exeext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 ac_cv_lib_posix_remove=yes
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7034 ac_cv_lib_posix_remove=no
7036 rm -f conftest.err conftest.$ac_objext \
7037 conftest$ac_exeext conftest.$ac_ext
7038 LIBS=$ac_check_lib_save_LIBS
7040 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7041 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7042 if test $ac_cv_lib_posix_remove = yes; then
7043 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7048 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7049 echo "$as_me:$LINENO: checking for shmat" >&5
7050 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7051 if test "${ac_cv_func_shmat+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 cat >conftest.$ac_ext <<_ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7062 #define shmat innocuous_shmat
7064 /* System header to define __stub macros and hopefully few prototypes,
7065 which can conflict with char shmat (); below.
7066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7067 <limits.h> exists even on freestanding compilers. */
7070 # include <limits.h>
7072 # include <assert.h>
7077 /* Override any gcc2 internal prototype to avoid an error. */
7082 /* We use char because int might match the return type of a gcc2
7083 builtin and then its argument prototype would still apply. */
7085 /* The GNU C library defines this for functions which it implements
7086 to always fail with ENOSYS. Some functions are actually named
7087 something starting with __ and the normal name is an alias. */
7088 #if defined (__stub_shmat) || defined (__stub___shmat)
7091 char (*f) () = shmat;
7105 rm -f conftest.$ac_objext conftest$ac_exeext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107 (eval $ac_link) 2>conftest.er1
7109 grep -v '^ *+' conftest.er1 >conftest.err
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try='test -z "$ac_cxx_werror_flag"
7115 || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try='test -s conftest$ac_exeext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_func_shmat=yes
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7134 rm -f conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7137 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7138 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7140 if test $ac_cv_func_shmat = no; then
7141 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7142 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7143 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 ac_check_lib_save_LIBS=$LIBS
7148 cat >conftest.$ac_ext <<_ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7155 /* Override any gcc2 internal prototype to avoid an error. */
7159 /* We use char because int might match the return type of a gcc2
7160 builtin and then its argument prototype would still apply. */
7170 rm -f conftest.$ac_objext conftest$ac_exeext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172 (eval $ac_link) 2>conftest.er1
7174 grep -v '^ *+' conftest.er1 >conftest.err
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -z "$ac_cxx_werror_flag"
7180 || test ! -s conftest.err'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try='test -s conftest$ac_exeext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 ac_cv_lib_ipc_shmat=yes
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7197 ac_cv_lib_ipc_shmat=no
7199 rm -f conftest.err conftest.$ac_objext \
7200 conftest$ac_exeext conftest.$ac_ext
7201 LIBS=$ac_check_lib_save_LIBS
7203 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7204 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7205 if test $ac_cv_lib_ipc_shmat = yes; then
7206 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7212 # Check for libraries that X11R6 Xt/Xaw programs need.
7213 ac_save_LDFLAGS=$LDFLAGS
7214 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7215 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7216 # check for ICE first), but we must link in the order -lSM -lICE or
7217 # we get undefined symbols. So assume we have SM if we have ICE.
7218 # These have to be linked with before -lX11, unlike the other
7219 # libraries we check for below, so use a different variable.
7220 # John Interrante, Karl Berry
7221 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7222 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7223 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 ac_check_lib_save_LIBS=$LIBS
7227 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7235 /* Override any gcc2 internal prototype to avoid an error. */
7239 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */
7241 char IceConnectionNumber ();
7245 IceConnectionNumber ();
7250 rm -f conftest.$ac_objext conftest$ac_exeext
7251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7252 (eval $ac_link) 2>conftest.er1
7254 grep -v '^ *+' conftest.er1 >conftest.err
7256 cat conftest.err >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try='test -z "$ac_cxx_werror_flag"
7260 || test ! -s conftest.err'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; } &&
7266 { ac_try='test -s conftest$ac_exeext'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; }; then
7272 ac_cv_lib_ICE_IceConnectionNumber=yes
7274 echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7277 ac_cv_lib_ICE_IceConnectionNumber=no
7279 rm -f conftest.err conftest.$ac_objext \
7280 conftest$ac_exeext conftest.$ac_ext
7281 LIBS=$ac_check_lib_save_LIBS
7283 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7284 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7285 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7286 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7289 LDFLAGS=$ac_save_LDFLAGS
7298 echo "$as_me:$LINENO: checking for Qt" >&5
7299 echo $ECHO_N "checking for Qt... $ECHO_C" >&6
7302 # Check whether --with-Qt-dir or --without-Qt-dir was given.
7303 if test "${with_Qt_dir+set}" = set; then
7304 withval="$with_Qt_dir"
7308 # Check whether --with-Qt-include-dir or --without-Qt-include-dir was given.
7309 if test "${with_Qt_include_dir+set}" = set; then
7310 withval="$with_Qt_include_dir"
7314 # Check whether --with-Qt-bin-dir or --without-Qt-bin-dir was given.
7315 if test "${with_Qt_bin_dir+set}" = set; then
7316 withval="$with_Qt_bin_dir"
7320 # Check whether --with-Qt-lib-dir or --without-Qt-lib-dir was given.
7321 if test "${with_Qt_lib_dir+set}" = set; then
7322 withval="$with_Qt_lib_dir"
7326 # Check whether --with-Qt-lib or --without-Qt-lib was given.
7327 if test "${with_Qt_lib+set}" = set; then
7328 withval="$with_Qt_lib"
7331 if test x"$with_Qt_dir" = x"no" ||
7332 test x"$with_Qt_include-dir" = x"no" ||
7333 test x"$with_Qt_bin_dir" = x"no" ||
7334 test x"$with_Qt_lib_dir" = x"no" ||
7335 test x"$with_Qt_lib" = x"no"; then
7336 # user disabled Qt. Leave cache alone.
7337 have_qt="User disabled Qt."
7339 # "yes" is a bogus option
7340 if test x"$with_Qt_dir" = xyes; then
7343 if test x"$with_Qt_include_dir" = xyes; then
7344 with_Qt_include_dir=
7346 if test x"$with_Qt_bin_dir" = xyes; then
7349 if test x"$with_Qt_lib_dir" = xyes; then
7352 if test x"$with_Qt_lib" = xyes; then
7355 # No Qt unless we discover otherwise
7357 # Check whether we are requested to link with a specific version
7358 if test x"$with_Qt_lib" != x; then
7359 bnv_qt_lib="$with_Qt_lib"
7361 # Check whether we were supplied with an answer already
7362 if test x"$with_Qt_dir" != x; then
7364 bnv_qt_dir="$with_Qt_dir"
7365 bnv_qt_include_dir="$with_Qt_dir/include"
7366 bnv_qt_bin_dir="$with_Qt_dir/bin"
7367 bnv_qt_lib_dir="$with_Qt_dir/lib"
7368 # Only search for the lib if the user did not define one already
7369 if test x"$bnv_qt_lib" = x; then
7370 bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
7371 sed s@$bnv_qt_lib_dir/lib@@ | sed s@[.].*@@`"
7373 bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7375 # Use cached value or do search, starting with suggestions from
7377 if test "${bnv_cv_have_qt+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 # We are not given a solution and there is no cached value.
7383 bnv_qt_include_dir=NO
7385 if test x"$bnv_qt_lib" = x; then
7389 ## Binary utilities ##
7390 if test x"$with_Qt_bin_dir" != x; then
7391 bnv_qt_bin_dir=$with_Qt_bin_dir
7393 ## Look for header files ##
7394 if test x"$with_Qt_include_dir" != x; then
7395 bnv_qt_include_dir="$with_Qt_include_dir"
7397 # The following header file is expected to define QT_VERSION.
7398 qt_direct_test_header=qglobal.h
7399 # Look for the header file in a standard set of common directories.
7400 bnv_include_path_list="
7402 `ls -dr ${QTDIR}/include 2>/dev/null`
7403 `ls -dr /usr/include/qt* 2>/dev/null`
7404 `ls -dr /usr/lib/qt*/include 2>/dev/null`
7405 `ls -dr /usr/local/qt*/include 2>/dev/null`
7406 `ls -dr /opt/qt*/include 2>/dev/null`
7407 `ls -dr /Developer/qt*/include 2>/dev/null`
7409 for bnv_dir in $bnv_include_path_list; do
7410 if test -r "$bnv_dir/$qt_direct_test_header"; then
7411 bnv_dirs="$bnv_dirs $bnv_dir"
7414 # Now look for the newest in this list
7416 for bnv_dir in $bnv_dirs; do
7417 bnv_this_ver=`egrep -w '#define QT_VERSION' $bnv_dir/$qt_direct_test_header | sed s/'#define QT_VERSION'//`
7418 if expr $bnv_this_ver '>' $bnv_prev_ver > /dev/null; then
7419 bnv_qt_include_dir=$bnv_dir
7420 bnv_prev_ver=$bnv_this_ver
7424 # Are these headers located in a traditional Trolltech installation?
7425 # That would be $bnv_qt_include_dir stripped from its last element:
7426 bnv_possible_qt_dir=`dirname $bnv_qt_include_dir`
7427 if (test -x $bnv_possible_qt_dir/bin/moc) &&
7428 ((ls $bnv_possible_qt_dir/lib/libqt* > /dev/null 2>/dev/null) ||
7429 (ls $bnv_possible_qt_dir/lib64/libqt* > /dev/null 2>/dev/null)); then
7430 # Then the rest is a piece of cake
7431 bnv_qt_dir=$bnv_possible_qt_dir
7432 bnv_qt_bin_dir="$bnv_qt_dir/bin"
7433 if test x"$with_Qt_lib_dir" != x; then
7434 bnv_qt_lib_dir="$with_Qt_lib_dir"
7436 if (test -d $bnv_qt_dir/lib64); then
7437 bnv_qt_lib_dir="$bnv_qt_dir/lib64"
7439 bnv_qt_lib_dir="$bnv_qt_dir/lib"
7442 # Only look for lib if the user did not supply it already
7443 if test x"$bnv_qt_lib" = xNO; then
7444 bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
7445 sed s@$bnv_qt_lib_dir/lib@@ | sed s@[.].*@@`"
7447 bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7449 # There is no valid definition for $QTDIR as Trolltech likes to see it
7451 ## Look for Qt library ##
7452 if test x"$with_Qt_lib_dir" != x; then
7453 bnv_qt_lib_dir="$with_Qt_lib_dir"
7454 # Only look for lib if the user did not supply it already
7455 if test x"$bnv_qt_lib" = xNO; then
7456 bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
7457 sed s@$bnv_qt_lib_dir/lib@@ | sed s@[.].*@@`"
7459 bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7461 # Normally, when there is no traditional Trolltech installation,
7462 # the library is installed in a place where the linker finds it
7464 # If the user did not define the library name, try with qt
7465 if test x"$bnv_qt_lib" = xNO; then
7468 qt_direct_test_header=qapplication.h
7469 qt_direct_test_main="
7472 QApplication app(argc,argv);
7474 # See if we find the library without any special options.
7475 # Don't add top $LIBS permanently yet
7476 bnv_save_LIBS="$LIBS"
7477 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7479 bnv_save_CXXFLAGS="$CXXFLAGS"
7480 CXXFLAGS="-I$bnv_qt_include_dir"
7481 cat >conftest.$ac_ext <<_ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 #include <$qt_direct_test_header>
7491 $qt_direct_test_main
7496 rm -f conftest.$ac_objext conftest$ac_exeext
7497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7498 (eval $ac_link) 2>conftest.er1
7500 grep -v '^ *+' conftest.er1 >conftest.err
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } &&
7505 { ac_try='test -z "$ac_cxx_werror_flag"
7506 || test ! -s conftest.err'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; } &&
7512 { ac_try='test -s conftest$ac_exeext'
7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); }; }; then
7520 # We can link with no special library directory.
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7528 # That did not work. Try the multi-threaded version
7529 echo "Non-critical error, please neglect the above." >&5
7531 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7532 cat >conftest.$ac_ext <<_ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 #include <$qt_direct_test_header>
7542 $qt_direct_test_main
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549 (eval $ac_link) 2>conftest.er1
7551 grep -v '^ *+' conftest.er1 >conftest.err
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } &&
7556 { ac_try='test -z "$ac_cxx_werror_flag"
7557 || test ! -s conftest.err'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; } &&
7563 { ac_try='test -s conftest$ac_exeext'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; }; then
7571 # We can link with no special library directory.
7575 echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.$ac_ext >&5
7579 # That did not work. Try the OpenGL version
7580 echo "Non-critical error, please neglect the above." >&5
7582 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7583 cat >conftest.$ac_ext <<_ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 #include <$qt_direct_test_header>
7593 $qt_direct_test_main
7598 rm -f conftest.$ac_objext conftest$ac_exeext
7599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7600 (eval $ac_link) 2>conftest.er1
7602 grep -v '^ *+' conftest.er1 >conftest.err
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } &&
7607 { ac_try='test -z "$ac_cxx_werror_flag"
7608 || test ! -s conftest.err'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; } &&
7614 { ac_try='test -s conftest$ac_exeext'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7622 # We can link with no special library directory.
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7630 # That did not work. Maybe a library version I don't know about?
7631 echo "Non-critical error, please neglect the above." >&5
7632 # Look for some Qt lib in a standard set of common directories.
7634 `echo $bnv_qt_includes | sed ss/includess`
7642 `ls -dr /usr/lib64/qt* 2>/dev/null`
7643 `ls -dr /usr/lib64/qt*/lib64 2>/dev/null`
7644 `ls -dr /usr/lib/qt* 2>/dev/null`
7645 `ls -dr /usr/local/qt* 2>/dev/null`
7646 `ls -dr /opt/qt* 2>/dev/null`
7648 for bnv_dir in $bnv_dir_list; do
7649 if ls $bnv_dir/libqt* >/dev/null 2>/dev/null; then
7650 # Gamble that it's the first one...
7651 bnv_qt_lib="`ls $bnv_dir/libqt* | sed -n 1p |
7652 sed s@$bnv_dir/lib@@ | sed s/[.].*//`"
7653 bnv_qt_lib_dir="$bnv_dir"
7658 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7659 cat >conftest.$ac_ext <<_ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h. */
7665 #include <$qt_direct_test_header>
7669 $qt_direct_test_main
7674 rm -f conftest.$ac_objext conftest$ac_exeext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676 (eval $ac_link) 2>conftest.er1
7678 grep -v '^ *+' conftest.er1 >conftest.err
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -z "$ac_cxx_werror_flag"
7684 || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest$ac_exeext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7698 # We can link with no special library directory.
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7706 # Leave bnv_qt_lib_dir defined
7709 rm -f conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7713 rm -f conftest.err conftest.$ac_objext \
7714 conftest$ac_exeext conftest.$ac_ext
7717 rm -f conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
7721 rm -f conftest.err conftest.$ac_objext \
7722 conftest$ac_exeext conftest.$ac_ext
7723 if test x"$bnv_qt_lib_dir" != x; then
7724 bnv_qt_LIBS="-L$bnv_qt_lib_dir $LIBS"
7728 LIBS="$bnv_save_LIBS"
7729 CXXFLAGS="$bnv_save_CXXFLAGS"
7731 if test "$bnv_qt_dir" = NO ||
7732 test "$bnv_qt_include_dir" = NO ||
7733 test "$bnv_qt_lib_dir" = NO ||
7734 test "$bnv_qt_lib" = NO; then
7735 # Problem with finding complete Qt. Cache the known absence of Qt.
7736 bnv_cv_have_qt="have_qt=no"
7738 # Record where we found Qt for the cache.
7739 bnv_cv_have_qt="have_qt=yes \
7740 bnv_qt_dir=$bnv_qt_dir \
7741 bnv_qt_include_dir=$bnv_qt_include_dir \
7742 bnv_qt_bin_dir=$bnv_qt_bin_dir \
7743 bnv_qt_LIBS=\"$bnv_qt_LIBS\""
7747 eval "$bnv_cv_have_qt"
7748 fi # all $bnv_qt_* are set
7749 fi # $have_qt reflects the system status
7750 if test x"$have_qt" = xyes; then
7751 QT_CXXFLAGS="-I$bnv_qt_include_dir"
7752 if test x"$bnv_qt_lib" = xqt-mt; then
7753 QT_CXXFLAGS="$QT_CXXFLAGS -DQT_THREAD_SUPPORT"
7755 QT_DIR="$bnv_qt_dir"
7756 QT_LIBS="$bnv_qt_LIBS"
7757 # If bnv_qt_dir is defined, utilities are expected to be in the
7759 if test x"$bnv_qt_dir" != x; then
7760 if test -x "$bnv_qt_dir/bin/uic"; then
7761 QT_UIC="$bnv_qt_dir/bin/uic"
7763 # Old versions of Qt don't have uic
7766 QT_MOC="$bnv_qt_dir/bin/moc"
7768 # Or maybe we are told where to look for the utilities
7769 if test x"$bnv_qt_bin_dir" != x; then
7770 if test -x "$bnv_qt_bin_dir/uic"; then
7771 QT_UIC="$bnv_qt_bin_dir/uic"
7773 # Old versions of Qt don't have uic
7776 QT_MOC="$bnv_qt_bin_dir/moc"
7778 # Last possibility is that they are in $PATH
7779 QT_UIC="`which uic`"
7780 QT_MOC="`which moc`"
7783 # All variables are defined, report the result
7784 echo "$as_me:$LINENO: result: $have_qt:
7785 QT_CXXFLAGS=$QT_CXXFLAGS
7790 echo "${ECHO_T}$have_qt:
7791 QT_CXXFLAGS=$QT_CXXFLAGS
7803 echo "$as_me:$LINENO: result: $have_qt" >&5
7804 echo "${ECHO_T}$have_qt" >&6
7812 #### Being paranoid:
7813 if test x"$have_qt" = xyes; then
7814 echo "$as_me:$LINENO: checking correct functioning of Qt installation" >&5
7815 echo $ECHO_N "checking correct functioning of Qt installation... $ECHO_C" >&6
7816 if test "${bnv_cv_qt_test_result+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 cat > bnv_qt_test.h << EOF
7821 #include <qobject.h>
7822 class Test : public QObject
7835 cat > bnv_qt_main.$ac_ext << EOF
7836 #include "bnv_qt_test.h"
7837 #include <qapplication.h>
7838 int main( int argc, char **argv )
7840 QApplication app( argc, argv );
7842 QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) );
7846 bnv_cv_qt_test_result="failure"
7847 bnv_try_1="$QT_MOC bnv_qt_test.h -o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null"
7848 { (eval echo "$as_me:$LINENO: \"$bnv_try_1\"") >&5
7849 (eval $bnv_try_1) 2>&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }
7853 if test x"$ac_status" != x0; then
7854 echo "$bnv_err_1" >&5
7855 echo "configure: could not run $QT_MOC on:" >&5
7856 cat bnv_qt_test.h >&5
7858 bnv_try_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o moc_bnv_qt_test.o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null"
7859 { (eval echo "$as_me:$LINENO: \"$bnv_try_2\"") >&5
7860 (eval $bnv_try_2) 2>&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }
7864 if test x"$ac_status" != x0; then
7865 echo "$bnv_err_2" >&5
7866 echo "configure: could not compile:" >&5
7867 cat moc_bnv_qt_test.$ac_ext >&5
7869 bnv_try_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o bnv_qt_main.o bnv_qt_main.$ac_ext >/dev/null 2>/dev/null"
7870 { (eval echo "$as_me:$LINENO: \"$bnv_try_3\"") >&5
7871 (eval $bnv_try_3) 2>&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }
7875 if test x"$ac_status" != x0; then
7876 echo "$bnv_err_3" >&5
7877 echo "configure: could not compile:" >&5
7878 cat bnv_qt_main.$ac_ext >&5
7880 bnv_try_4="$CXX $LIBS -o bnv_qt_main bnv_qt_main.o moc_bnv_qt_test.o $QT_LIBS >/dev/null 2>/dev/null"
7881 { (eval echo "$as_me:$LINENO: \"$bnv_try_4\"") >&5
7882 (eval $bnv_try_4) 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }
7886 if test x"$ac_status" != x0; then
7887 echo "$bnv_err_4" >&5
7889 bnv_cv_qt_test_result="success"
7896 echo "$as_me:$LINENO: result: $bnv_cv_qt_test_result" >&5
7897 echo "${ECHO_T}$bnv_cv_qt_test_result" >&6;
7898 if test x"$bnv_cv_qt_test_result" = "xfailure"; then
7899 { { echo "$as_me:$LINENO: error: Failed to find matching components of a complete
7900 Qt installation. Try using more options,
7901 see ./configure --help." >&5
7902 echo "$as_me: error: Failed to find matching components of a complete
7903 Qt installation. Try using more options,
7904 see ./configure --help." >&2;}
7905 { (exit 1); exit 1; }; }
7908 rm -f bnv_qt_test.h moc_bnv_qt_test.$ac_ext moc_bnv_qt_test.o \
7909 bnv_qt_main.$ac_ext bnv_qt_main.o bnv_qt_main
7914 CFLAGS="$CFLAGS $QT_CXXFLAGS"
7915 CPPFLAGS="$CPPFLAGS $QT_CXXFLAGS"
7916 LIBS="$LIBS $QT_LIBS"
7925 echo "$as_me:$LINENO: checking for OpenGL" >&5
7926 echo $ECHO_N "checking for OpenGL... $ECHO_C" >&6
7927 if test "${mdl_cv_have_OpenGL+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 # Check whether --enable-Mesa or --disable-Mesa was given.
7932 if test "${enable_Mesa+set}" = set; then
7933 enableval="$enable_Mesa"
7939 if test x"$use_Mesa" = xyes; then
7940 GL_search_list="MesaGL GL"
7941 GLU_search_list="MesaGLU GLU"
7942 GLX_search_list="MesaGLX GLX"
7944 GL_search_list="GL MesaGL"
7945 GLU_search_list="GLU MesaGLU"
7946 GLX_search_list="GLX MesaGLX"
7952 ac_cpp='$CPP $CPPFLAGS'
7953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7958 if test x"$no_x" != xyes; then
7959 GL_CFLAGS="$X_CFLAGS"
7960 GL_X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7962 GL_save_CPPFLAGS="$CPPFLAGS"
7963 CPPFLAGS="$GL_CFLAGS"
7965 GL_save_LIBS="$LIBS"
7969 # Save the "AC_MSG_RESULT file descriptor" to FD 8.
7972 # Temporarily turn off AC_MSG_RESULT so that the user gets pretty
7976 echo "$as_me:$LINENO: checking for library containing glAccum" >&5
7977 echo $ECHO_N "checking for library containing glAccum... $ECHO_C" >&6
7978 if test "${ac_cv_search_glAccum+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 ac_func_search_save_LIBS=$LIBS
7982 ac_cv_search_glAccum=no
7983 cat >conftest.$ac_ext <<_ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7990 /* Override any gcc2 internal prototype to avoid an error. */
7994 /* We use char because int might match the return type of a gcc2
7995 builtin and then its argument prototype would still apply. */
8005 rm -f conftest.$ac_objext conftest$ac_exeext
8006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007 (eval $ac_link) 2>conftest.er1
8009 grep -v '^ *+' conftest.er1 >conftest.err
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -z "$ac_c_werror_flag"
8015 || test ! -s conftest.err'
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; } &&
8021 { ac_try='test -s conftest$ac_exeext'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 ac_cv_search_glAccum="none required"
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8033 rm -f conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 if test "$ac_cv_search_glAccum" = no; then
8036 for ac_lib in $GL_search_list; do
8037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8038 cat >conftest.$ac_ext <<_ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8045 /* Override any gcc2 internal prototype to avoid an error. */
8049 /* We use char because int might match the return type of a gcc2
8050 builtin and then its argument prototype would still apply. */
8060 rm -f conftest.$ac_objext conftest$ac_exeext
8061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8062 (eval $ac_link) 2>conftest.er1
8064 grep -v '^ *+' conftest.er1 >conftest.err
8066 cat conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try='test -z "$ac_c_werror_flag"
8070 || test ! -s conftest.err'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; } &&
8076 { ac_try='test -s conftest$ac_exeext'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 ac_cv_search_glAccum="-l$ac_lib"
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8089 rm -f conftest.err conftest.$ac_objext \
8090 conftest$ac_exeext conftest.$ac_ext
8093 LIBS=$ac_func_search_save_LIBS
8095 echo "$as_me:$LINENO: result: $ac_cv_search_glAccum" >&5
8096 echo "${ECHO_T}$ac_cv_search_glAccum" >&6
8097 if test "$ac_cv_search_glAccum" != no; then
8098 test "$ac_cv_search_glAccum" = "none required" || LIBS="$ac_cv_search_glAccum $LIBS"
8104 echo "$as_me:$LINENO: checking for library containing gluBeginCurve" >&5
8105 echo $ECHO_N "checking for library containing gluBeginCurve... $ECHO_C" >&6
8106 if test "${ac_cv_search_gluBeginCurve+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 ac_func_search_save_LIBS=$LIBS
8110 ac_cv_search_gluBeginCurve=no
8111 cat >conftest.$ac_ext <<_ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8118 /* Override any gcc2 internal prototype to avoid an error. */
8122 /* We use char because int might match the return type of a gcc2
8123 builtin and then its argument prototype would still apply. */
8124 char gluBeginCurve ();
8133 rm -f conftest.$ac_objext conftest$ac_exeext
8134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8135 (eval $ac_link) 2>conftest.er1
8137 grep -v '^ *+' conftest.er1 >conftest.err
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -z "$ac_c_werror_flag"
8143 || test ! -s conftest.err'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; } &&
8149 { ac_try='test -s conftest$ac_exeext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 ac_cv_search_gluBeginCurve="none required"
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8161 rm -f conftest.err conftest.$ac_objext \
8162 conftest$ac_exeext conftest.$ac_ext
8163 if test "$ac_cv_search_gluBeginCurve" = no; then
8164 for ac_lib in $GLU_search_list; do
8165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8173 /* Override any gcc2 internal prototype to avoid an error. */
8177 /* We use char because int might match the return type of a gcc2
8178 builtin and then its argument prototype would still apply. */
8179 char gluBeginCurve ();
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190 (eval $ac_link) 2>conftest.er1
8192 grep -v '^ *+' conftest.er1 >conftest.err
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest$ac_exeext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_cv_search_gluBeginCurve="-l$ac_lib"
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8217 rm -f conftest.err conftest.$ac_objext \
8218 conftest$ac_exeext conftest.$ac_ext
8221 LIBS=$ac_func_search_save_LIBS
8223 echo "$as_me:$LINENO: result: $ac_cv_search_gluBeginCurve" >&5
8224 echo "${ECHO_T}$ac_cv_search_gluBeginCurve" >&6
8225 if test "$ac_cv_search_gluBeginCurve" != no; then
8226 test "$ac_cv_search_gluBeginCurve" = "none required" || LIBS="$ac_cv_search_gluBeginCurve $LIBS"
8232 echo "$as_me:$LINENO: checking for library containing glXChooseVisual" >&5
8233 echo $ECHO_N "checking for library containing glXChooseVisual... $ECHO_C" >&6
8234 if test "${ac_cv_search_glXChooseVisual+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 ac_func_search_save_LIBS=$LIBS
8238 ac_cv_search_glXChooseVisual=no
8239 cat >conftest.$ac_ext <<_ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8246 /* Override any gcc2 internal prototype to avoid an error. */
8250 /* We use char because int might match the return type of a gcc2
8251 builtin and then its argument prototype would still apply. */
8252 char glXChooseVisual ();
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>conftest.er1
8265 grep -v '^ *+' conftest.er1 >conftest.err
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -z "$ac_c_werror_flag"
8271 || test ! -s conftest.err'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; } &&
8277 { ac_try='test -s conftest$ac_exeext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 ac_cv_search_glXChooseVisual="none required"
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8289 rm -f conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8291 if test "$ac_cv_search_glXChooseVisual" = no; then
8292 for ac_lib in $GLX_search_list; do
8293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8294 cat >conftest.$ac_ext <<_ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8301 /* Override any gcc2 internal prototype to avoid an error. */
8305 /* We use char because int might match the return type of a gcc2
8306 builtin and then its argument prototype would still apply. */
8307 char glXChooseVisual ();
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8318 (eval $ac_link) 2>conftest.er1
8320 grep -v '^ *+' conftest.er1 >conftest.err
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -z "$ac_c_werror_flag"
8326 || test ! -s conftest.err'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; } &&
8332 { ac_try='test -s conftest$ac_exeext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 ac_cv_search_glXChooseVisual="-l$ac_lib"
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8345 rm -f conftest.err conftest.$ac_objext \
8346 conftest$ac_exeext conftest.$ac_ext
8349 LIBS=$ac_func_search_save_LIBS
8351 echo "$as_me:$LINENO: result: $ac_cv_search_glXChooseVisual" >&5
8352 echo "${ECHO_T}$ac_cv_search_glXChooseVisual" >&6
8353 if test "$ac_cv_search_glXChooseVisual" != no; then
8354 test "$ac_cv_search_glXChooseVisual" = "none required" || LIBS="$ac_cv_search_glXChooseVisual $LIBS"
8360 echo "$as_me:$LINENO: checking for library containing glutInit" >&5
8361 echo $ECHO_N "checking for library containing glutInit... $ECHO_C" >&6
8362 if test "${ac_cv_search_glutInit+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 ac_func_search_save_LIBS=$LIBS
8366 ac_cv_search_glutInit=no
8367 cat >conftest.$ac_ext <<_ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8374 /* Override any gcc2 internal prototype to avoid an error. */
8378 /* We use char because int might match the return type of a gcc2
8379 builtin and then its argument prototype would still apply. */
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8391 (eval $ac_link) 2>conftest.er1
8393 grep -v '^ *+' conftest.er1 >conftest.err
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try='test -z "$ac_c_werror_flag"
8399 || test ! -s conftest.err'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; } &&
8405 { ac_try='test -s conftest$ac_exeext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_search_glutInit="none required"
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8417 rm -f conftest.err conftest.$ac_objext \
8418 conftest$ac_exeext conftest.$ac_ext
8419 if test "$ac_cv_search_glutInit" = no; then
8420 for ac_lib in glut; do
8421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8422 cat >conftest.$ac_ext <<_ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8429 /* Override any gcc2 internal prototype to avoid an error. */
8433 /* We use char because int might match the return type of a gcc2
8434 builtin and then its argument prototype would still apply. */
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446 (eval $ac_link) 2>conftest.er1
8448 grep -v '^ *+' conftest.er1 >conftest.err
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try='test -z "$ac_c_werror_flag"
8454 || test ! -s conftest.err'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; } &&
8460 { ac_try='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_search_glutInit="-l$ac_lib"
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8473 rm -f conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
8477 LIBS=$ac_func_search_save_LIBS
8479 echo "$as_me:$LINENO: result: $ac_cv_search_glutInit" >&5
8480 echo "${ECHO_T}$ac_cv_search_glutInit" >&6
8481 if test "$ac_cv_search_glutInit" != no; then
8482 test "$ac_cv_search_glutInit" = "none required" || LIBS="$ac_cv_search_glutInit $LIBS"
8491 # Restore pretty messages.
8494 if test -n "$LIBS"; then
8495 mdl_cv_have_OpenGL=yes
8500 mdl_cv_have_OpenGL=no
8506 LIBS="$GL_save_LIBS"
8507 CPPFLAGS="$GL_save_CPPFLAGS"
8510 ac_cpp='$CXXCPP $CPPFLAGS'
8511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8516 mdl_cv_GL_CFLAGS="$GL_CFLAGS"
8517 mdl_cv_GL_LIBS="$GL_LIBS"
8518 mdl_cv_have_GL="$have_GL"
8519 mdl_cv_have_GLU="$have_GLU"
8520 mdl_cv_have_GLX="$have_GLX"
8521 mdl_cv_have_glut="$have_glut"
8524 echo "$as_me:$LINENO: result: $mdl_cv_have_OpenGL" >&5
8525 echo "${ECHO_T}$mdl_cv_have_OpenGL" >&6
8526 GL_CFLAGS="$mdl_cv_GL_CFLAGS"
8527 GL_LIBS="$mdl_cv_GL_LIBS"
8528 have_GL="$mdl_cv_have_GL"
8529 have_GLU="$mdl_cv_have_GLU"
8530 have_GLX="$mdl_cv_have_GLX"
8531 have_glut="$mdl_cv_have_glut"
8533 echo "$as_me:$LINENO: checking for GL" >&5
8534 echo $ECHO_N "checking for GL... $ECHO_C" >&6
8535 if test "x$have_GL" = "xyes"; then
8536 echo "$as_me:$LINENO: result: yes" >&5
8537 echo "${ECHO_T}yes" >&6
8539 echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6
8541 { { echo "$as_me:$LINENO: error: no GL library found" >&5
8542 echo "$as_me: error: no GL library found" >&2;}
8543 { (exit 1); exit 1; }; }
8545 echo "$as_me:$LINENO: checking for GLU" >&5
8546 echo $ECHO_N "checking for GLU... $ECHO_C" >&6
8547 if test "x$have_GLU" = "xyes"; then
8548 echo "$as_me:$LINENO: result: yes" >&5
8549 echo "${ECHO_T}yes" >&6
8551 echo "$as_me:$LINENO: result: no" >&5
8552 echo "${ECHO_T}no" >&6
8553 { { echo "$as_me:$LINENO: error: no GLU library found" >&5
8554 echo "$as_me: error: no GLU library found" >&2;}
8555 { (exit 1); exit 1; }; }
8557 echo "$as_me:$LINENO: checking for glut" >&5
8558 echo $ECHO_N "checking for glut... $ECHO_C" >&6
8559 if test "x$have_glut" = "xyes"; then
8560 echo "$as_me:$LINENO: result: yes" >&5
8561 echo "${ECHO_T}yes" >&6
8563 echo "$as_me:$LINENO: result: no" >&5
8564 echo "${ECHO_T}no" >&6
8565 { { echo "$as_me:$LINENO: error: no glut library found" >&5
8566 echo "$as_me: error: no glut library found" >&2;}
8567 { (exit 1); exit 1; }; }
8571 # Checks for features
8573 echo "$as_me:$LINENO: checking whether to enable ALSA" >&5
8574 echo $ECHO_N "checking whether to enable ALSA... $ECHO_C" >&6
8575 # Check whether --enable-alsa or --disable-alsa was given.
8576 if test "${enable_alsa+set}" = set; then
8577 enableval="$enable_alsa"
8578 enable_alsa=$enableval
8582 if test "x$enable_alsa" = "xyes"; then
8583 echo "$as_me:$LINENO: result: yes" >&5
8584 echo "${ECHO_T}yes" >&6
8585 alsa_save_CFLAGS="$CFLAGS"
8586 alsa_save_LDFLAGS="$LDFLAGS"
8587 alsa_save_LIBS="$LIBS"
8591 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
8592 if test "${with_alsa_prefix+set}" = set; then
8593 withval="$with_alsa_prefix"
8594 alsa_prefix="$withval"
8600 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
8601 if test "${with_alsa_inc_prefix+set}" = set; then
8602 withval="$with_alsa_inc_prefix"
8603 alsa_inc_prefix="$withval"
8608 # Check whether --enable-alsatest or --disable-alsatest was given.
8609 if test "${enable_alsatest+set}" = set; then
8610 enableval="$enable_alsatest"
8611 enable_alsatest="$enableval"
8616 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
8617 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
8618 if test "$alsa_inc_prefix" != "" ; then
8619 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
8620 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
8622 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
8623 echo "${ECHO_T}$ALSA_CFLAGS" >&6
8625 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
8626 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
8627 if test "$alsa_prefix" != "" ; then
8628 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
8629 LDFLAGS="$LDFLAGS $ALSA_LIBS"
8632 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
8633 LIBS="$ALSA_LIBS $LIBS"
8634 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
8635 echo "${ECHO_T}$ALSA_LIBS" >&6
8637 min_alsa_version=0.9
8638 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
8639 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
8641 alsa_min_major_version=`echo $min_alsa_version | \
8642 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8643 alsa_min_minor_version=`echo $min_alsa_version | \
8644 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8645 alsa_min_micro_version=`echo $min_alsa_version | \
8646 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8651 ac_cpp='$CPP $CPPFLAGS'
8652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8656 cat >conftest.$ac_ext <<_ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8663 #include <alsa/asoundlib.h>
8669 /* ensure backward compatibility */
8670 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
8671 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
8673 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
8674 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
8676 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
8677 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
8680 # if(SND_LIB_MAJOR > $alsa_min_major_version)
8683 # if(SND_LIB_MAJOR < $alsa_min_major_version)
8687 # if(SND_LIB_MINOR > $alsa_min_minor_version)
8690 # if(SND_LIB_MINOR < $alsa_min_minor_version)
8694 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
8705 rm -f conftest.$ac_objext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8707 (eval $ac_compile) 2>conftest.er1
8709 grep -v '^ *+' conftest.er1 >conftest.err
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } &&
8714 { ac_try='test -z "$ac_c_werror_flag"
8715 || test ! -s conftest.err'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; } &&
8721 { ac_try='test -s conftest.$ac_objext'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; }; then
8727 echo "$as_me:$LINENO: result: found." >&5
8728 echo "${ECHO_T}found." >&6
8730 echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8733 echo "$as_me:$LINENO: result: not present." >&5
8734 echo "${ECHO_T}not present." >&6
8735 { { echo "$as_me:$LINENO: error: Sufficiently new version of libasound not found." >&5
8736 echo "$as_me: error: Sufficiently new version of libasound not found." >&2;}
8737 { (exit 1); exit 1; }; }
8741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8743 ac_cpp='$CXXCPP $CPPFLAGS'
8744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8749 if test "x$enable_alsatest" = "xyes"; then
8751 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
8752 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
8753 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 ac_check_lib_save_LIBS=$LIBS
8757 LIBS="-lasound $LIBS"
8758 cat >conftest.$ac_ext <<_ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8765 /* Override any gcc2 internal prototype to avoid an error. */
8769 /* We use char because int might match the return type of a gcc2
8770 builtin and then its argument prototype would still apply. */
8771 char snd_ctl_open ();
8780 rm -f conftest.$ac_objext conftest$ac_exeext
8781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8782 (eval $ac_link) 2>conftest.er1
8784 grep -v '^ *+' conftest.er1 >conftest.err
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } &&
8789 { ac_try='test -z "$ac_cxx_werror_flag"
8790 || test ! -s conftest.err'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; } &&
8796 { ac_try='test -s conftest$ac_exeext'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; }; then
8802 ac_cv_lib_asound_snd_ctl_open=yes
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 ac_cv_lib_asound_snd_ctl_open=no
8809 rm -f conftest.err conftest.$ac_objext \
8810 conftest$ac_exeext conftest.$ac_ext
8811 LIBS=$ac_check_lib_save_LIBS
8813 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
8814 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
8815 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
8816 cat >>confdefs.h <<_ACEOF
8817 #define HAVE_LIBASOUND 1
8820 LIBS="-lasound $LIBS"
8823 { { echo "$as_me:$LINENO: error: No linkable libasound was found." >&5
8824 echo "$as_me: error: No linkable libasound was found." >&2;}
8825 { (exit 1); exit 1; }; }
8832 if test "x$alsa_found" = "xyes" ; then
8833 CXXFLAGS="$CXXFLAGS -DCAPTURE_ALSA"
8834 LIBS=`echo $LIBS | sed 's/-lasound//g'`
8835 LIBS=`echo $LIBS | sed 's/ //'`
8836 LIBS="-lasound $LIBS"
8838 if test "x$alsa_found" = "xno" ; then
8840 CFLAGS="$alsa_save_CFLAGS"
8841 LDFLAGS="$alsa_save_LDFLAGS"
8842 LIBS="$alsa_save_LIBS"
8851 echo "$as_me:$LINENO: result: no" >&5
8852 echo "${ECHO_T}no" >&6
8856 echo "$as_me:$LINENO: checking whether to enable OSS" >&5
8857 echo $ECHO_N "checking whether to enable OSS... $ECHO_C" >&6
8858 # Check whether --enable-oss or --disable-oss was given.
8859 if test "${enable_oss+set}" = set; then
8860 enableval="$enable_oss"
8861 enable_oss=$enableval
8865 if test "x$enable_oss" = "xyes"; then
8866 echo "$as_me:$LINENO: result: yes" >&5
8867 echo "${ECHO_T}yes" >&6
8868 CXXFLAGS="$CXXFLAGS -DCAPTURE_OSS"
8869 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8870 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8871 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8872 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8876 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8878 # Is the header compilable?
8879 echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
8880 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
8881 cat >conftest.$ac_ext <<_ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h. */
8887 $ac_includes_default
8888 #include <sys/soundcard.h>
8890 rm -f conftest.$ac_objext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8892 (eval $ac_compile) 2>conftest.er1
8894 grep -v '^ *+' conftest.er1 >conftest.err
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -z "$ac_cxx_werror_flag"
8900 || test ! -s conftest.err'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; } &&
8906 { ac_try='test -s conftest.$ac_objext'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; }; then
8912 ac_header_compiler=yes
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 ac_header_compiler=no
8919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8921 echo "${ECHO_T}$ac_header_compiler" >&6
8923 # Is the header present?
8924 echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
8925 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
8926 cat >conftest.$ac_ext <<_ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8932 #include <sys/soundcard.h>
8934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8937 grep -v '^ *+' conftest.er1 >conftest.err
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } >/dev/null; then
8942 if test -s conftest.err; then
8943 ac_cpp_err=$ac_cxx_preproc_warn_flag
8944 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8951 if test -z "$ac_cpp_err"; then
8952 ac_header_preproc=yes
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8957 ac_header_preproc=no
8959 rm -f conftest.err conftest.$ac_ext
8960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8961 echo "${ECHO_T}$ac_header_preproc" >&6
8963 # So? What about this header?
8964 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8966 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8967 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8968 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
8969 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
8970 ac_header_preproc=yes
8973 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
8974 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
8975 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
8976 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
8977 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
8978 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
8979 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8980 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8981 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
8982 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
8983 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
8984 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
8987 ## ------------------------------- ##
8988 ## Report this to the fmit lists. ##
8989 ## ------------------------------- ##
8992 sed "s/^/$as_me: WARNING: /" >&2
8995 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8996 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8997 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 ac_cv_header_sys_soundcard_h=$ac_header_preproc
9002 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9003 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
9006 if test $ac_cv_header_sys_soundcard_h = yes; then
9009 { { echo "$as_me:$LINENO: error: OSS header not found." >&5
9010 echo "$as_me: error: OSS header not found." >&2;}
9011 { (exit 1); exit 1; }; }
9016 echo "$as_me:$LINENO: result: no" >&5
9017 echo "${ECHO_T}no" >&6
9021 echo "$as_me:$LINENO: checking whether to enable JACK" >&5
9022 echo $ECHO_N "checking whether to enable JACK... $ECHO_C" >&6
9023 # Check whether --enable-jack or --disable-jack was given.
9024 if test "${enable_jack+set}" = set; then
9025 enableval="$enable_jack"
9026 enable_jack=$enableval
9030 if test "x$enable_jack" = "xyes"; then
9031 echo "$as_me:$LINENO: result: yes" >&5
9032 echo "${ECHO_T}yes" >&6
9033 CXXFLAGS="$CXXFLAGS -DCAPTURE_JACK"
9034 if test "${ac_cv_header_jack_jack_h+set}" = set; then
9035 echo "$as_me:$LINENO: checking for jack/jack.h" >&5
9036 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6
9037 if test "${ac_cv_header_jack_jack_h+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
9041 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6
9043 # Is the header compilable?
9044 echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
9045 echo $ECHO_N "checking jack/jack.h usability... $ECHO_C" >&6
9046 cat >conftest.$ac_ext <<_ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 $ac_includes_default
9053 #include <jack/jack.h>
9055 rm -f conftest.$ac_objext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057 (eval $ac_compile) 2>conftest.er1
9059 grep -v '^ *+' conftest.er1 >conftest.err
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try='test -z "$ac_cxx_werror_flag"
9065 || test ! -s conftest.err'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest.$ac_objext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 ac_header_compiler=yes
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9082 ac_header_compiler=no
9084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9086 echo "${ECHO_T}$ac_header_compiler" >&6
9088 # Is the header present?
9089 echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
9090 echo $ECHO_N "checking jack/jack.h presence... $ECHO_C" >&6
9091 cat >conftest.$ac_ext <<_ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <jack/jack.h>
9099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9102 grep -v '^ *+' conftest.er1 >conftest.err
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } >/dev/null; then
9107 if test -s conftest.err; then
9108 ac_cpp_err=$ac_cxx_preproc_warn_flag
9109 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9116 if test -z "$ac_cpp_err"; then
9117 ac_header_preproc=yes
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9122 ac_header_preproc=no
9124 rm -f conftest.err conftest.$ac_ext
9125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9126 echo "${ECHO_T}$ac_header_preproc" >&6
9128 # So? What about this header?
9129 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9131 { echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
9132 echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
9134 echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
9135 ac_header_preproc=yes
9138 { echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
9139 echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5
9141 echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
9143 echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5
9145 echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
9147 echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
9149 echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
9152 ## ------------------------------- ##
9153 ## Report this to the fmit lists. ##
9154 ## ------------------------------- ##
9157 sed "s/^/$as_me: WARNING: /" >&2
9160 echo "$as_me:$LINENO: checking for jack/jack.h" >&5
9161 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6
9162 if test "${ac_cv_header_jack_jack_h+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 ac_cv_header_jack_jack_h=$ac_header_preproc
9167 echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
9168 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6
9171 if test $ac_cv_header_jack_jack_h = yes; then
9174 { { echo "$as_me:$LINENO: error: JACK headers not found." >&5
9175 echo "$as_me: error: JACK headers not found." >&2;}
9176 { (exit 1); exit 1; }; }
9181 echo "$as_me:$LINENO: checking for main in -ljack" >&5
9182 echo $ECHO_N "checking for main in -ljack... $ECHO_C" >&6
9183 if test "${ac_cv_lib_jack_main+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 ac_check_lib_save_LIBS=$LIBS
9188 cat >conftest.$ac_ext <<_ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9204 rm -f conftest.$ac_objext conftest$ac_exeext
9205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9206 (eval $ac_link) 2>conftest.er1
9208 grep -v '^ *+' conftest.er1 >conftest.err
9210 cat conftest.err >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } &&
9213 { ac_try='test -z "$ac_cxx_werror_flag"
9214 || test ! -s conftest.err'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; } &&
9220 { ac_try='test -s conftest$ac_exeext'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9226 ac_cv_lib_jack_main=yes
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9231 ac_cv_lib_jack_main=no
9233 rm -f conftest.err conftest.$ac_objext \
9234 conftest$ac_exeext conftest.$ac_ext
9235 LIBS=$ac_check_lib_save_LIBS
9237 echo "$as_me:$LINENO: result: $ac_cv_lib_jack_main" >&5
9238 echo "${ECHO_T}$ac_cv_lib_jack_main" >&6
9239 if test $ac_cv_lib_jack_main = yes; then
9240 cat >>confdefs.h <<_ACEOF
9241 #define HAVE_LIBJACK 1
9247 { { echo "$as_me:$LINENO: error: JACK library not found." >&5
9248 echo "$as_me: error: JACK library not found." >&2;}
9249 { (exit 1); exit 1; }; }
9253 echo "$as_me:$LINENO: result: no" >&5
9254 echo "${ECHO_T}no" >&6
9258 echo "$as_me:$LINENO: checking whether to enable PortAudio" >&5
9259 echo $ECHO_N "checking whether to enable PortAudio... $ECHO_C" >&6
9260 # Check whether --enable-portaudio or --disable-portaudio was given.
9261 if test "${enable_portaudio+set}" = set; then
9262 enableval="$enable_portaudio"
9263 enable_portaudio=$enableval
9267 if test "x$enable_portaudio" = "xyes"; then
9268 echo "$as_me:$LINENO: result: yes" >&5
9269 echo "${ECHO_T}yes" >&6
9270 CXXFLAGS="$CXXFLAGS -DCAPTURE_PORTAUDIO"
9271 if test "${ac_cv_header_portaudio_h+set}" = set; then
9272 echo "$as_me:$LINENO: checking for portaudio.h" >&5
9273 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6
9274 if test "${ac_cv_header_portaudio_h+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
9278 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6
9280 # Is the header compilable?
9281 echo "$as_me:$LINENO: checking portaudio.h usability" >&5
9282 echo $ECHO_N "checking portaudio.h usability... $ECHO_C" >&6
9283 cat >conftest.$ac_ext <<_ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9289 $ac_includes_default
9290 #include <portaudio.h>
9292 rm -f conftest.$ac_objext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9294 (eval $ac_compile) 2>conftest.er1
9296 grep -v '^ *+' conftest.er1 >conftest.err
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } &&
9301 { ac_try='test -z "$ac_cxx_werror_flag"
9302 || test ! -s conftest.err'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; } &&
9308 { ac_try='test -s conftest.$ac_objext'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9314 ac_header_compiler=yes
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 ac_header_compiler=no
9321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9323 echo "${ECHO_T}$ac_header_compiler" >&6
9325 # Is the header present?
9326 echo "$as_me:$LINENO: checking portaudio.h presence" >&5
9327 echo $ECHO_N "checking portaudio.h presence... $ECHO_C" >&6
9328 cat >conftest.$ac_ext <<_ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 #include <portaudio.h>
9336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9339 grep -v '^ *+' conftest.er1 >conftest.err
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } >/dev/null; then
9344 if test -s conftest.err; then
9345 ac_cpp_err=$ac_cxx_preproc_warn_flag
9346 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9353 if test -z "$ac_cpp_err"; then
9354 ac_header_preproc=yes
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9359 ac_header_preproc=no
9361 rm -f conftest.err conftest.$ac_ext
9362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9363 echo "${ECHO_T}$ac_header_preproc" >&6
9365 # So? What about this header?
9366 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9368 { echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9369 echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
9371 echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
9372 ac_header_preproc=yes
9375 { echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
9376 echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
9377 { echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
9378 echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
9380 echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
9381 { echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
9382 echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
9383 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
9384 echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
9386 echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
9389 ## ------------------------------- ##
9390 ## Report this to the fmit lists. ##
9391 ## ------------------------------- ##
9394 sed "s/^/$as_me: WARNING: /" >&2
9397 echo "$as_me:$LINENO: checking for portaudio.h" >&5
9398 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6
9399 if test "${ac_cv_header_portaudio_h+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 ac_cv_header_portaudio_h=$ac_header_preproc
9404 echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
9405 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6
9408 if test $ac_cv_header_portaudio_h = yes; then
9411 { { echo "$as_me:$LINENO: error: PortAudio header not found." >&5
9412 echo "$as_me: error: PortAudio header not found." >&2;}
9413 { (exit 1); exit 1; }; }
9418 echo "$as_me:$LINENO: checking for main in -lportaudio" >&5
9419 echo $ECHO_N "checking for main in -lportaudio... $ECHO_C" >&6
9420 if test "${ac_cv_lib_portaudio_main+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 ac_check_lib_save_LIBS=$LIBS
9424 LIBS="-lportaudio $LIBS"
9425 cat >conftest.$ac_ext <<_ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9441 rm -f conftest.$ac_objext conftest$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443 (eval $ac_link) 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } &&
9450 { ac_try='test -z "$ac_cxx_werror_flag"
9451 || test ! -s conftest.err'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; } &&
9457 { ac_try='test -s conftest$ac_exeext'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 ac_cv_lib_portaudio_main=yes
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 ac_cv_lib_portaudio_main=no
9470 rm -f conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
9472 LIBS=$ac_check_lib_save_LIBS
9474 echo "$as_me:$LINENO: result: $ac_cv_lib_portaudio_main" >&5
9475 echo "${ECHO_T}$ac_cv_lib_portaudio_main" >&6
9476 if test $ac_cv_lib_portaudio_main = yes; then
9477 cat >>confdefs.h <<_ACEOF
9478 #define HAVE_LIBPORTAUDIO 1
9481 LIBS="-lportaudio $LIBS"
9484 { { echo "$as_me:$LINENO: error: PortAudio library not found." >&5
9485 echo "$as_me: error: PortAudio library not found." >&2;}
9486 { (exit 1); exit 1; }; }
9490 echo "$as_me:$LINENO: result: no" >&5
9491 echo "${ECHO_T}no" >&6
9494 ac_config_files="$ac_config_files Makefile m4/Makefile libs/Makefile libs/CppAddons/Makefile libs/Music/Makefile ui/Makefile src/Makefile src/modules/Makefile tr/Makefile"
9498 echo "$as_me:$LINENO: checking packager string" >&5
9499 echo $ECHO_N "checking packager string... $ECHO_C" >&6
9500 # Check whether --enable-packager-string or --disable-packager-string was given.
9501 if test "${enable_packager_string+set}" = set; then
9502 enableval="$enable_packager_string"
9503 enable_packager_string=$enableval
9505 enable_packager_string=""
9507 if test -n "$enable_packager_string"; then
9508 echo "$as_me:$LINENO: result: $enable_packager_string" >&5
9509 echo "${ECHO_T}$enable_packager_string" >&6
9511 cat >>confdefs.h <<_ACEOF
9512 #define PACKAGER_STRING "${enable_packager_string}"
9516 echo "$as_me:$LINENO: result: no" >&5
9517 echo "${ECHO_T}no" >&6
9520 cat >confcache <<\_ACEOF
9521 # This file is a shell script that caches the results of configure
9522 # tests run on this system so they can be shared between configure
9523 # scripts and configure runs, see configure's option --config-cache.
9524 # It is not useful on other systems. If it contains results you don't
9525 # want to keep, you may remove or edit it.
9527 # config.status only pays attention to the cache file if you give it
9528 # the --recheck option to rerun configure.
9530 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9531 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9536 # The following way of writing the cache mishandles newlines in values,
9537 # but we know of no workaround that is simple, portable, and efficient.
9538 # So, don't put newlines in cache variables' values.
9539 # Ultrix sh set writes to stderr and can't be redirected directly,
9540 # and sets the high bit in the cache file unless we assign to the vars.
9543 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9545 # `set' does not quote correctly, so add quotes (double-quote
9546 # substitution turns \\\\ into \\, and sed turns \\ into \).
9549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9552 # `set' quotes correctly as required by POSIX, so do not add quotes.
9554 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9563 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9565 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9566 if test -w $cache_file; then
9567 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9568 cat confcache >$cache_file
9570 echo "not updating unwritable cache $cache_file"
9575 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9576 # Let make expand exec_prefix.
9577 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9579 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9580 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9581 # trailing colons and then remove the whole line if VPATH becomes empty
9582 # (actually we leave an empty line to preserve line numbers).
9583 if test "x$srcdir" = x.; then
9584 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9585 s/:*\$(srcdir):*/:/;
9586 s/:*\${srcdir}:*/:/;
9588 s/^\([^=]*=[ ]*\):*/\1/;
9594 DEFS=-DHAVE_CONFIG_H
9598 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9599 # 1. Remove the extension, and $U if already installed.
9600 ac_i=`echo "$ac_i" |
9601 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9603 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9604 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9608 LTLIBOBJS=$ac_ltlibobjs
9611 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9612 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9613 Usually this means the macro was only invoked conditionally." >&5
9614 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9615 Usually this means the macro was only invoked conditionally." >&2;}
9616 { (exit 1); exit 1; }; }
9618 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9619 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9620 Usually this means the macro was only invoked conditionally." >&5
9621 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9622 Usually this means the macro was only invoked conditionally." >&2;}
9623 { (exit 1); exit 1; }; }
9625 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9626 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9627 Usually this means the macro was only invoked conditionally." >&5
9628 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9629 Usually this means the macro was only invoked conditionally." >&2;}
9630 { (exit 1); exit 1; }; }
9633 : ${CONFIG_STATUS=./config.status}
9634 ac_clean_files_save=$ac_clean_files
9635 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9636 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9637 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9638 cat >$CONFIG_STATUS <<_ACEOF
9640 # Generated by $as_me.
9641 # Run this file to recreate the current configuration.
9642 # Compiler output produced by configure, useful for debugging
9643 # configure, is in config.log if it exists.
9648 SHELL=\${CONFIG_SHELL-$SHELL}
9651 cat >>$CONFIG_STATUS <<\_ACEOF
9652 ## --------------------- ##
9653 ## M4sh Initialization. ##
9654 ## --------------------- ##
9656 # Be Bourne compatible
9657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9660 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9661 # is contrary to our usage. Disable this feature.
9662 alias -g '${1+"$@"}'='"$@"'
9663 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9666 DUALCASE=1; export DUALCASE # for MKS sh
9668 # Support unset when possible.
9669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9676 # Work around bugs in pre-3.0 UWIN ksh.
9677 $as_unset ENV MAIL MAILPATH
9684 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9685 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9686 LC_TELEPHONE LC_TIME
9688 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9689 eval $as_var=C; export $as_var
9695 # Required to use basename.
9696 if expr a : '\(a\)' >/dev/null 2>&1; then
9702 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9703 as_basename=basename
9709 # Name of the executable.
9710 as_me=`$as_basename "$0" ||
9711 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9712 X"$0" : 'X\(//\)$' \| \
9713 X"$0" : 'X\(/\)$' \| \
9714 . : '\(.\)' 2>/dev/null ||
9716 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9717 /^X\/\(\/\/\)$/{ s//\1/; q; }
9718 /^X\/\(\/\).*/{ s//\1/; q; }
9722 # PATH needs CR, and LINENO needs CR and PATH.
9723 # Avoid depending upon Character Ranges.
9724 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9725 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9726 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9727 as_cr_digits='0123456789'
9728 as_cr_alnum=$as_cr_Letters$as_cr_digits
9730 # The user is always right.
9731 if test "${PATH_SEPARATOR+set}" != set; then
9732 echo "#! /bin/sh" >conf$$.sh
9733 echo "exit 0" >>conf$$.sh
9735 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9746 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9747 test "x$as_lineno_1" != "x$as_lineno_2" &&
9748 test "x$as_lineno_3" = "x$as_lineno_2" || {
9749 # Find who we are. Look in the path if we contain no path at all
9752 *[\\/]* ) as_myself=$0 ;;
9753 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757 test -z "$as_dir" && as_dir=.
9758 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9763 # We did not find ourselves, most probably we were run as `sh COMMAND'
9764 # in which case we are not to be found in the path.
9765 if test "x$as_myself" = x; then
9768 if test ! -f "$as_myself"; then
9769 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9770 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9771 { (exit 1); exit 1; }; }
9773 case $CONFIG_SHELL in
9775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9779 test -z "$as_dir" && as_dir=.
9780 for as_base in sh bash ksh sh5; do
9783 if ("$as_dir/$as_base" -c '
9786 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9787 test "x$as_lineno_1" != "x$as_lineno_2" &&
9788 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9789 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9790 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9791 CONFIG_SHELL=$as_dir/$as_base
9793 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9801 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9802 # uniformly replaced by the line number. The first 'sed' inserts a
9803 # line-number line before each line; the second 'sed' does the real
9804 # work. The second script uses 'N' to pair each line-number line
9805 # with the numbered line, and appends trailing '-' during
9806 # substitution so that $LINENO is not a special case at line end.
9807 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9808 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9809 sed '=' <$as_myself |
9814 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9817 s,^['$as_cr_digits']*\n,,
9819 chmod +x $as_me.lineno ||
9820 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9821 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9822 { (exit 1); exit 1; }; }
9824 # Don't try to exec as it changes $[0], causing all sort of problems
9825 # (the dirname of $[0] is not the place where we might find the
9826 # original and so on. Autoconf is especially sensible to this).
9828 # Exit status is that of the last command.
9833 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9834 *c*,-n*) ECHO_N= ECHO_C='
9836 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9837 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9840 if expr a : '\(a\)' >/dev/null 2>&1; then
9846 rm -f conf$$ conf$$.exe conf$$.file
9848 if ln -s conf$$.file conf$$ 2>/dev/null; then
9849 # We could just check for DJGPP; but this test a) works b) is more generic
9850 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9851 if test -f conf$$.exe; then
9852 # Don't use ln at all; we don't have any links
9857 elif ln conf$$.file conf$$ 2>/dev/null; then
9862 rm -f conf$$ conf$$.exe conf$$.file
9864 if mkdir -p . 2>/dev/null; then
9867 test -d ./-p && rmdir ./-p
9871 as_executable_p="test -f"
9873 # Sed expression to map a string onto a valid CPP name.
9874 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9876 # Sed expression to map a string onto a valid variable name.
9877 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9881 # We need space, tab and new line, in precisely that order.
9891 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9892 # report actual input values of CONFIG_FILES etc. instead of their
9893 # values after options handling. Logging --version etc. is OK.
9897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9898 ## Running $as_me. ##
9903 This file was extended by fmit $as_me 0.97.7, which was
9904 generated by GNU Autoconf 2.59. Invocation command line was
9906 CONFIG_FILES = $CONFIG_FILES
9907 CONFIG_HEADERS = $CONFIG_HEADERS
9908 CONFIG_LINKS = $CONFIG_LINKS
9909 CONFIG_COMMANDS = $CONFIG_COMMANDS
9913 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9917 # Files that config.status was made for.
9918 if test -n "$ac_config_files"; then
9919 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9922 if test -n "$ac_config_headers"; then
9923 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9926 if test -n "$ac_config_links"; then
9927 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9930 if test -n "$ac_config_commands"; then
9931 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9934 cat >>$CONFIG_STATUS <<\_ACEOF
9937 \`$as_me' instantiates files from templates according to the
9938 current configuration.
9940 Usage: $0 [OPTIONS] [FILE]...
9942 -h, --help print this help, then exit
9943 -V, --version print version number, then exit
9944 -q, --quiet do not print progress messages
9945 -d, --debug don't remove temporary files
9946 --recheck update $as_me by reconfiguring in the same conditions
9947 --file=FILE[:TEMPLATE]
9948 instantiate the configuration file FILE
9949 --header=FILE[:TEMPLATE]
9950 instantiate the configuration header FILE
9952 Configuration files:
9955 Configuration headers:
9958 Configuration commands:
9961 Report bugs to <bug-autoconf@gnu.org>."
9964 cat >>$CONFIG_STATUS <<_ACEOF
9966 fmit config.status 0.97.7
9967 configured by $0, generated by GNU Autoconf 2.59,
9968 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9970 Copyright (C) 2003 Free Software Foundation, Inc.
9971 This config.status script is free software; the Free Software Foundation
9972 gives unlimited permission to copy, distribute and modify it."
9977 cat >>$CONFIG_STATUS <<\_ACEOF
9978 # If no file are specified by the user, then we need to provide default
9979 # value. By we need to know if files were specified by the user.
9985 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9986 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9994 *) # This is not an option, so the user has probably given explicit
9997 ac_need_defaults=false;;
10001 # Handling of the options.
10003 cat >>$CONFIG_STATUS <<\_ACEOF
10004 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10006 --version | --vers* | -V )
10007 echo "$ac_cs_version"; exit 0 ;;
10009 # Conflict between --help and --header
10010 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10011 Try \`$0 --help' for more information." >&5
10012 echo "$as_me: error: ambiguous option: $1
10013 Try \`$0 --help' for more information." >&2;}
10014 { (exit 1); exit 1; }; };;
10015 --help | --hel | -h )
10016 echo "$ac_cs_usage"; exit 0 ;;
10017 --debug | --d* | -d )
10019 --file | --fil | --fi | --f )
10021 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10022 ac_need_defaults=false;;
10023 --header | --heade | --head | --hea )
10025 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10026 ac_need_defaults=false;;
10027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10028 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10031 # This is an error.
10032 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10033 Try \`$0 --help' for more information." >&5
10034 echo "$as_me: error: unrecognized option: $1
10035 Try \`$0 --help' for more information." >&2;}
10036 { (exit 1); exit 1; }; } ;;
10038 *) ac_config_targets="$ac_config_targets $1" ;;
10044 ac_configure_extra_args=
10046 if $ac_cs_silent; then
10048 ac_configure_extra_args="$ac_configure_extra_args --silent"
10052 cat >>$CONFIG_STATUS <<_ACEOF
10053 if \$ac_cs_recheck; then
10054 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10055 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10060 cat >>$CONFIG_STATUS <<_ACEOF
10062 # INIT-COMMANDS section.
10065 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10071 cat >>$CONFIG_STATUS <<\_ACEOF
10072 for ac_config_target in $ac_config_targets
10074 case "$ac_config_target" in
10075 # Handling of arguments.
10076 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10077 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10078 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
10079 "libs/CppAddons/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/CppAddons/Makefile" ;;
10080 "libs/Music/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Music/Makefile" ;;
10081 "ui/Makefile" ) CONFIG_FILES="$CONFIG_FILES ui/Makefile" ;;
10082 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10083 "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
10084 "tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tr/Makefile" ;;
10085 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10086 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10087 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10088 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10089 { (exit 1); exit 1; }; };;
10093 # If the user did not use the arguments to specify the items to instantiate,
10094 # then the envvar interface is used. Set only those that are not.
10095 # We use the long form for the default assignment because of an extremely
10096 # bizarre bug on SunOS 4.1.3.
10097 if $ac_need_defaults; then
10098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10099 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10100 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10103 # Have a temporary directory for convenience. Make it in the build tree
10104 # simply because there is no reason to put it here, and in addition,
10105 # creating and moving files from /tmp can sometimes cause problems.
10106 # Create a temporary directory, and hook for its removal unless debugging.
10109 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10110 trap '{ (exit 1); exit 1; }' 1 2 13 15
10113 # Create a (secure) tmp directory for tmp files.
10116 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10117 test -n "$tmp" && test -d "$tmp"
10120 tmp=./confstat$$-$RANDOM
10121 (umask 077 && mkdir $tmp)
10124 echo "$me: cannot create a temporary directory in ." >&2
10125 { (exit 1); exit 1; }
10130 cat >>$CONFIG_STATUS <<_ACEOF
10133 # CONFIG_FILES section.
10136 # No need to generate the scripts if there are no CONFIG_FILES.
10137 # This happens for instance when ./config.status config.h
10138 if test -n "\$CONFIG_FILES"; then
10139 # Protect against being on the right side of a sed subst in config.status.
10140 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10141 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10142 s,@SHELL@,$SHELL,;t t
10143 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10144 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10145 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10146 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10147 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10148 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10149 s,@exec_prefix@,$exec_prefix,;t t
10150 s,@prefix@,$prefix,;t t
10151 s,@program_transform_name@,$program_transform_name,;t t
10152 s,@bindir@,$bindir,;t t
10153 s,@sbindir@,$sbindir,;t t
10154 s,@libexecdir@,$libexecdir,;t t
10155 s,@datadir@,$datadir,;t t
10156 s,@sysconfdir@,$sysconfdir,;t t
10157 s,@sharedstatedir@,$sharedstatedir,;t t
10158 s,@localstatedir@,$localstatedir,;t t
10159 s,@libdir@,$libdir,;t t
10160 s,@includedir@,$includedir,;t t
10161 s,@oldincludedir@,$oldincludedir,;t t
10162 s,@infodir@,$infodir,;t t
10163 s,@mandir@,$mandir,;t t
10164 s,@build_alias@,$build_alias,;t t
10165 s,@host_alias@,$host_alias,;t t
10166 s,@target_alias@,$target_alias,;t t
10167 s,@DEFS@,$DEFS,;t t
10168 s,@ECHO_C@,$ECHO_C,;t t
10169 s,@ECHO_N@,$ECHO_N,;t t
10170 s,@ECHO_T@,$ECHO_T,;t t
10171 s,@LIBS@,$LIBS,;t t
10172 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10173 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10174 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10175 s,@CYGPATH_W@,$CYGPATH_W,;t t
10176 s,@PACKAGE@,$PACKAGE,;t t
10177 s,@VERSION@,$VERSION,;t t
10178 s,@ACLOCAL@,$ACLOCAL,;t t
10179 s,@AUTOCONF@,$AUTOCONF,;t t
10180 s,@AUTOMAKE@,$AUTOMAKE,;t t
10181 s,@AUTOHEADER@,$AUTOHEADER,;t t
10182 s,@MAKEINFO@,$MAKEINFO,;t t
10183 s,@install_sh@,$install_sh,;t t
10184 s,@STRIP@,$STRIP,;t t
10185 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10186 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10187 s,@mkdir_p@,$mkdir_p,;t t
10189 s,@SET_MAKE@,$SET_MAKE,;t t
10190 s,@am__leading_dot@,$am__leading_dot,;t t
10191 s,@AMTAR@,$AMTAR,;t t
10192 s,@am__tar@,$am__tar,;t t
10193 s,@am__untar@,$am__untar,;t t
10194 s,@ac_prefix@,$ac_prefix,;t t
10195 s,@RANLIB@,$RANLIB,;t t
10196 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10198 s,@CFLAGS@,$CFLAGS,;t t
10199 s,@LDFLAGS@,$LDFLAGS,;t t
10200 s,@CPPFLAGS@,$CPPFLAGS,;t t
10201 s,@ac_ct_CC@,$ac_ct_CC,;t t
10202 s,@EXEEXT@,$EXEEXT,;t t
10203 s,@OBJEXT@,$OBJEXT,;t t
10204 s,@DEPDIR@,$DEPDIR,;t t
10205 s,@am__include@,$am__include,;t t
10206 s,@am__quote@,$am__quote,;t t
10207 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10208 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10209 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10210 s,@CCDEPMODE@,$CCDEPMODE,;t t
10211 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10212 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10215 s,@CXXFLAGS@,$CXXFLAGS,;t t
10216 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10217 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10218 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10219 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10220 s,@CXXCPP@,$CXXCPP,;t t
10221 s,@EGREP@,$EGREP,;t t
10222 s,@X_CFLAGS@,$X_CFLAGS,;t t
10223 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10224 s,@X_LIBS@,$X_LIBS,;t t
10225 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10226 s,@QT_CXXFLAGS@,$QT_CXXFLAGS,;t t
10227 s,@QT_DIR@,$QT_DIR,;t t
10228 s,@QT_LIBS@,$QT_LIBS,;t t
10229 s,@QT_UIC@,$QT_UIC,;t t
10230 s,@QT_MOC@,$QT_MOC,;t t
10231 s,@GL_CFLAGS@,$GL_CFLAGS,;t t
10232 s,@GL_LIBS@,$GL_LIBS,;t t
10233 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
10234 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
10235 s,@LIBOBJS@,$LIBOBJS,;t t
10236 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10241 cat >>$CONFIG_STATUS <<\_ACEOF
10242 # Split the substitutions into bite-sized pieces for seds with
10243 # small command number limits, like on Digital OSF/1 and HP-UX.
10244 ac_max_sed_lines=48
10245 ac_sed_frag=1 # Number of current file.
10246 ac_beg=1 # First line for current file.
10247 ac_end=$ac_max_sed_lines # Line after last line for current file.
10250 while $ac_more_lines; do
10251 if test $ac_beg -gt 1; then
10252 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10254 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10256 if test ! -s $tmp/subs.frag; then
10257 ac_more_lines=false
10259 # The purpose of the label and of the branching condition is to
10260 # speed up the sed processing (if there are no `@' at all, there
10261 # is no need to browse any of the substitutions).
10262 # These are the two extra sed commands mentioned above.
10264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10265 if test -z "$ac_sed_cmds"; then
10266 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10268 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10270 ac_sed_frag=`expr $ac_sed_frag + 1`
10272 ac_end=`expr $ac_end + $ac_max_sed_lines`
10275 if test -z "$ac_sed_cmds"; then
10278 fi # test -n "$CONFIG_FILES"
10281 cat >>$CONFIG_STATUS <<\_ACEOF
10282 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10283 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10285 - | *:- | *:-:* ) # input from stdin
10287 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10288 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10289 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10290 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10291 * ) ac_file_in=$ac_file.in ;;
10294 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10295 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10297 X"$ac_file" : 'X\(//\)[^/]' \| \
10298 X"$ac_file" : 'X\(//\)$' \| \
10299 X"$ac_file" : 'X\(/\)' \| \
10300 . : '\(.\)' 2>/dev/null ||
10302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10304 /^X\(\/\/\)$/{ s//\1/; q; }
10305 /^X\(\/\).*/{ s//\1/; q; }
10307 { if $as_mkdir_p; then
10312 while test ! -d "$as_dir"; do
10313 as_dirs="$as_dir $as_dirs"
10314 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10316 X"$as_dir" : 'X\(//\)[^/]' \| \
10317 X"$as_dir" : 'X\(//\)$' \| \
10318 X"$as_dir" : 'X\(/\)' \| \
10319 . : '\(.\)' 2>/dev/null ||
10321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10323 /^X\(\/\/\)$/{ s//\1/; q; }
10324 /^X\(\/\).*/{ s//\1/; q; }
10327 test ! -n "$as_dirs" || mkdir $as_dirs
10328 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10329 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10330 { (exit 1); exit 1; }; }; }
10334 if test "$ac_dir" != .; then
10335 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10336 # A "../" for each directory in $ac_dir_suffix.
10337 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10339 ac_dir_suffix= ac_top_builddir=
10343 .) # No --srcdir option. We are building in place.
10345 if test -z "$ac_top_builddir"; then
10348 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10350 [\\/]* | ?:[\\/]* ) # Absolute path.
10351 ac_srcdir=$srcdir$ac_dir_suffix;
10352 ac_top_srcdir=$srcdir ;;
10353 *) # Relative path.
10354 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10355 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10358 # Do not use `cd foo && pwd` to compute absolute paths, because
10359 # the directories may not exist.
10361 .) ac_abs_builddir="$ac_dir";;
10364 .) ac_abs_builddir=`pwd`;;
10365 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10366 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10369 case $ac_abs_builddir in
10370 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10372 case ${ac_top_builddir}. in
10373 .) ac_abs_top_builddir=$ac_abs_builddir;;
10374 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10375 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10378 case $ac_abs_builddir in
10379 .) ac_abs_srcdir=$ac_srcdir;;
10382 .) ac_abs_srcdir=$ac_abs_builddir;;
10383 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10384 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10387 case $ac_abs_builddir in
10388 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10390 case $ac_top_srcdir in
10391 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10392 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10393 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10399 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10400 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10403 if test x"$ac_file" != x-; then
10404 { echo "$as_me:$LINENO: creating $ac_file" >&5
10405 echo "$as_me: creating $ac_file" >&6;}
10408 # Let's still pretend it is `configure' which instantiates (i.e., don't
10409 # use $as_me), people would be surprised to read:
10410 # /* config.h. Generated by config.status. */
10411 if test x"$ac_file" = x-; then
10414 configure_input="$ac_file. "
10416 configure_input=$configure_input"Generated from `echo $ac_file_in |
10417 sed 's,.*/,,'` by configure."
10419 # First look for the input files in the build tree, otherwise in the
10421 ac_file_inputs=`IFS=:
10422 for f in $ac_file_in; do
10424 -) echo $tmp/stdin ;;
10426 # Absolute (can't be DOS-style, as IFS=:)
10427 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10428 echo "$as_me: error: cannot find input file: $f" >&2;}
10429 { (exit 1); exit 1; }; }
10432 if test -f "$f"; then
10435 elif test -f "$srcdir/$f"; then
10440 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10441 echo "$as_me: error: cannot find input file: $f" >&2;}
10442 { (exit 1); exit 1; }; }
10445 done` || { (exit 1); exit 1; }
10447 cat >>$CONFIG_STATUS <<_ACEOF
10451 cat >>$CONFIG_STATUS <<\_ACEOF
10453 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10454 s,@configure_input@,$configure_input,;t t
10455 s,@srcdir@,$ac_srcdir,;t t
10456 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10457 s,@top_srcdir@,$ac_top_srcdir,;t t
10458 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10459 s,@builddir@,$ac_builddir,;t t
10460 s,@abs_builddir@,$ac_abs_builddir,;t t
10461 s,@top_builddir@,$ac_top_builddir,;t t
10462 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10463 s,@INSTALL@,$ac_INSTALL,;t t
10464 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10466 if test x"$ac_file" != x-; then
10467 mv $tmp/out $ac_file
10475 cat >>$CONFIG_STATUS <<\_ACEOF
10478 # CONFIG_HEADER section.
10481 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10482 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10484 # ac_d sets the value in "#define NAME VALUE" lines.
10485 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10486 ac_dB='[ ].*$,\1#\2'
10489 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10490 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10491 ac_uB='$,\1#\2define\3'
10495 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10498 - | *:- | *:-:* ) # input from stdin
10500 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10501 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10502 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10503 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10504 * ) ac_file_in=$ac_file.in ;;
10507 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10508 echo "$as_me: creating $ac_file" >&6;}
10510 # First look for the input files in the build tree, otherwise in the
10512 ac_file_inputs=`IFS=:
10513 for f in $ac_file_in; do
10515 -) echo $tmp/stdin ;;
10517 # Absolute (can't be DOS-style, as IFS=:)
10518 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10519 echo "$as_me: error: cannot find input file: $f" >&2;}
10520 { (exit 1); exit 1; }; }
10521 # Do quote $f, to prevent DOS paths from being IFS'd.
10524 if test -f "$f"; then
10527 elif test -f "$srcdir/$f"; then
10532 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10533 echo "$as_me: error: cannot find input file: $f" >&2;}
10534 { (exit 1); exit 1; }; }
10537 done` || { (exit 1); exit 1; }
10538 # Remove the trailing spaces.
10539 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10543 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10544 # `conftest.undefs', that substitutes the proper values into
10545 # config.h.in to produce config.h. The first handles `#define'
10546 # templates, and the second `#undef' templates.
10547 # And first: Protect against being on the right side of a sed subst in
10548 # config.status. Protect against being in an unquoted here document
10549 # in config.status.
10550 rm -f conftest.defines conftest.undefs
10551 # Using a here document instead of a string reduces the quoting nightmare.
10552 # Putting comments in sed scripts is not portable.
10554 # `end' is used to avoid that the second main sed command (meant for
10555 # 0-ary CPP macros) applies to n-ary macro definitions.
10556 # See the Autoconf documentation for `clear'.
10557 cat >confdef2sed.sed <<\_ACEOF
10562 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10564 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10567 # If some macros were called several times there might be several times
10568 # the same #defines, which is useless. Nevertheless, we may not want to
10569 # sort them, since we want the *last* AC-DEFINE to be honored.
10570 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10571 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10572 rm -f confdef2sed.sed
10574 # This sed command replaces #undef with comments. This is necessary, for
10575 # example, in the case of _POSIX_SOURCE, which is predefined and required
10576 # on some systems where configure will not decide to define it.
10577 cat >>conftest.undefs <<\_ACEOF
10578 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10581 # Break up conftest.defines because some shells have a limit on the size
10582 # of here documents, and old seds have small limits too (100 cmds).
10583 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10584 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10585 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10586 echo ' :' >>$CONFIG_STATUS
10587 rm -f conftest.tail
10588 while grep . conftest.defines >/dev/null
10590 # Write a limited-size here document to $tmp/defines.sed.
10591 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10592 # Speed up: don't consider the non `#define' lines.
10593 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10594 # Work around the forget-to-reset-the-flag bug.
10595 echo 't clr' >>$CONFIG_STATUS
10596 echo ': clr' >>$CONFIG_STATUS
10597 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10599 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10601 mv $tmp/out $tmp/in
10603 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10604 rm -f conftest.defines
10605 mv conftest.tail conftest.defines
10607 rm -f conftest.defines
10608 echo ' fi # grep' >>$CONFIG_STATUS
10609 echo >>$CONFIG_STATUS
10611 # Break up conftest.undefs because some shells have a limit on the size
10612 # of here documents, and old seds have small limits too (100 cmds).
10613 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10614 rm -f conftest.tail
10615 while grep . conftest.undefs >/dev/null
10617 # Write a limited-size here document to $tmp/undefs.sed.
10618 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10619 # Speed up: don't consider the non `#undef'
10620 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10621 # Work around the forget-to-reset-the-flag bug.
10622 echo 't clr' >>$CONFIG_STATUS
10623 echo ': clr' >>$CONFIG_STATUS
10624 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10626 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10628 mv $tmp/out $tmp/in
10630 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10631 rm -f conftest.undefs
10632 mv conftest.tail conftest.undefs
10634 rm -f conftest.undefs
10636 cat >>$CONFIG_STATUS <<\_ACEOF
10637 # Let's still pretend it is `configure' which instantiates (i.e., don't
10638 # use $as_me), people would be surprised to read:
10639 # /* config.h. Generated by config.status. */
10640 if test x"$ac_file" = x-; then
10641 echo "/* Generated by configure. */" >$tmp/config.h
10643 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10645 cat $tmp/in >>$tmp/config.h
10647 if test x"$ac_file" != x-; then
10648 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10649 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10650 echo "$as_me: $ac_file is unchanged" >&6;}
10652 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10654 X"$ac_file" : 'X\(//\)[^/]' \| \
10655 X"$ac_file" : 'X\(//\)$' \| \
10656 X"$ac_file" : 'X\(/\)' \| \
10657 . : '\(.\)' 2>/dev/null ||
10659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10661 /^X\(\/\/\)$/{ s//\1/; q; }
10662 /^X\(\/\).*/{ s//\1/; q; }
10664 { if $as_mkdir_p; then
10669 while test ! -d "$as_dir"; do
10670 as_dirs="$as_dir $as_dirs"
10671 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10672 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10673 X"$as_dir" : 'X\(//\)[^/]' \| \
10674 X"$as_dir" : 'X\(//\)$' \| \
10675 X"$as_dir" : 'X\(/\)' \| \
10676 . : '\(.\)' 2>/dev/null ||
10678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10680 /^X\(\/\/\)$/{ s//\1/; q; }
10681 /^X\(\/\).*/{ s//\1/; q; }
10684 test ! -n "$as_dirs" || mkdir $as_dirs
10685 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10686 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10687 { (exit 1); exit 1; }; }; }
10690 mv $tmp/config.h $ac_file
10694 rm -f $tmp/config.h
10696 # Compute $ac_file's index in $config_headers.
10698 for _am_header in $config_headers :; do
10699 case $_am_header in
10700 $ac_file | $ac_file:* )
10703 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10706 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10707 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10708 X$ac_file : 'X\(//\)[^/]' \| \
10709 X$ac_file : 'X\(//\)$' \| \
10710 X$ac_file : 'X\(/\)' \| \
10711 . : '\(.\)' 2>/dev/null ||
10713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10715 /^X\(\/\/\)$/{ s//\1/; q; }
10716 /^X\(\/\).*/{ s//\1/; q; }
10717 s/.*/./; q'`/stamp-h$_am_stamp_count
10720 cat >>$CONFIG_STATUS <<\_ACEOF
10723 # CONFIG_COMMANDS section.
10725 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10726 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10727 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10728 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10729 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10730 X"$ac_dest" : 'X\(//\)[^/]' \| \
10731 X"$ac_dest" : 'X\(//\)$' \| \
10732 X"$ac_dest" : 'X\(/\)' \| \
10733 . : '\(.\)' 2>/dev/null ||
10735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10737 /^X\(\/\/\)$/{ s//\1/; q; }
10738 /^X\(\/\).*/{ s//\1/; q; }
10740 { if $as_mkdir_p; then
10745 while test ! -d "$as_dir"; do
10746 as_dirs="$as_dir $as_dirs"
10747 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10749 X"$as_dir" : 'X\(//\)[^/]' \| \
10750 X"$as_dir" : 'X\(//\)$' \| \
10751 X"$as_dir" : 'X\(/\)' \| \
10752 . : '\(.\)' 2>/dev/null ||
10754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10756 /^X\(\/\/\)$/{ s//\1/; q; }
10757 /^X\(\/\).*/{ s//\1/; q; }
10760 test ! -n "$as_dirs" || mkdir $as_dirs
10761 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10762 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10763 { (exit 1); exit 1; }; }; }
10767 if test "$ac_dir" != .; then
10768 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10769 # A "../" for each directory in $ac_dir_suffix.
10770 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10772 ac_dir_suffix= ac_top_builddir=
10776 .) # No --srcdir option. We are building in place.
10778 if test -z "$ac_top_builddir"; then
10781 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10783 [\\/]* | ?:[\\/]* ) # Absolute path.
10784 ac_srcdir=$srcdir$ac_dir_suffix;
10785 ac_top_srcdir=$srcdir ;;
10786 *) # Relative path.
10787 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10788 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10791 # Do not use `cd foo && pwd` to compute absolute paths, because
10792 # the directories may not exist.
10794 .) ac_abs_builddir="$ac_dir";;
10797 .) ac_abs_builddir=`pwd`;;
10798 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10799 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10802 case $ac_abs_builddir in
10803 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10805 case ${ac_top_builddir}. in
10806 .) ac_abs_top_builddir=$ac_abs_builddir;;
10807 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10808 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10811 case $ac_abs_builddir in
10812 .) ac_abs_srcdir=$ac_srcdir;;
10815 .) ac_abs_srcdir=$ac_abs_builddir;;
10816 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10817 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10820 case $ac_abs_builddir in
10821 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10823 case $ac_top_srcdir in
10824 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10825 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10826 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10831 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10832 echo "$as_me: executing $ac_dest commands" >&6;}
10834 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10835 # Strip MF so we end up with the name of the file.
10836 mf=`echo "$mf" | sed -e 's/:.*$//'`
10837 # Check whether this is an Automake generated Makefile or not.
10838 # We used to match only the files named `Makefile.in', but
10839 # some people rename them; so instead we look at the file content.
10840 # Grep'ing the first line is not enough: some people post-process
10841 # each Makefile.in and add a new line on top of each file to say so.
10842 # So let's grep whole file.
10843 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10844 dirpart=`(dirname "$mf") 2>/dev/null ||
10845 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10846 X"$mf" : 'X\(//\)[^/]' \| \
10847 X"$mf" : 'X\(//\)$' \| \
10848 X"$mf" : 'X\(/\)' \| \
10849 . : '\(.\)' 2>/dev/null ||
10851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10853 /^X\(\/\/\)$/{ s//\1/; q; }
10854 /^X\(\/\).*/{ s//\1/; q; }
10859 # Extract the definition of DEPDIR, am__include, and am__quote
10860 # from the Makefile without running `make'.
10861 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10862 test -z "$DEPDIR" && continue
10863 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10864 test -z "am__include" && continue
10865 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10866 # When using ansi2knr, U may be empty or an underscore; expand it
10867 U=`sed -n 's/^U = //p' < "$mf"`
10868 # Find all dependency output files, they are included files with
10869 # $(DEPDIR) in their names. We invoke sed twice because it is the
10870 # simplest approach to changing $(DEPDIR) to its actual value in the
10872 for file in `sed -n "
10873 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10874 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10875 # Make sure the directory exists.
10876 test -f "$dirpart/$file" && continue
10877 fdir=`(dirname "$file") 2>/dev/null ||
10878 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10879 X"$file" : 'X\(//\)[^/]' \| \
10880 X"$file" : 'X\(//\)$' \| \
10881 X"$file" : 'X\(/\)' \| \
10882 . : '\(.\)' 2>/dev/null ||
10884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10886 /^X\(\/\/\)$/{ s//\1/; q; }
10887 /^X\(\/\).*/{ s//\1/; q; }
10889 { if $as_mkdir_p; then
10890 mkdir -p $dirpart/$fdir
10892 as_dir=$dirpart/$fdir
10894 while test ! -d "$as_dir"; do
10895 as_dirs="$as_dir $as_dirs"
10896 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10898 X"$as_dir" : 'X\(//\)[^/]' \| \
10899 X"$as_dir" : 'X\(//\)$' \| \
10900 X"$as_dir" : 'X\(/\)' \| \
10901 . : '\(.\)' 2>/dev/null ||
10903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10905 /^X\(\/\/\)$/{ s//\1/; q; }
10906 /^X\(\/\).*/{ s//\1/; q; }
10909 test ! -n "$as_dirs" || mkdir $as_dirs
10910 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10911 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10912 { (exit 1); exit 1; }; }; }
10914 # echo "creating $dirpart/$file"
10915 echo '# dummy' > "$dirpart/$file"
10923 cat >>$CONFIG_STATUS <<\_ACEOF
10925 { (exit 0); exit 0; }
10927 chmod +x $CONFIG_STATUS
10928 ac_clean_files=$ac_clean_files_save
10931 # configure is writing to config.log, and then calls config.status.
10932 # config.status does its own redirection, appending to config.log.
10933 # Unfortunately, on DOS this fails, as config.log is still kept open
10934 # by configure, so config.status won't be able to write to it; its
10935 # output is simply discarded. So we exec the FD to /dev/null,
10936 # effectively closing config.log, so it can be properly (re)opened and
10937 # appended to by config.status. When coming back to configure, we
10938 # need to make the FD available again.
10939 if test "$no_create" != yes; then
10941 ac_config_status_args=
10942 test "$silent" = yes &&
10943 ac_config_status_args="$ac_config_status_args --quiet"
10945 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10947 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10948 # would make configure fail if this is the last instruction.
10949 $ac_cs_success || { (exit 1); exit 1; }
10954 echo "Now type 'make', followed by 'make install' as root."