2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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.
274 ac_unique_file="conky.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 BUILD_LINUX_TRUE BUILD_LINUX_FALSE BUILD_SOLARIS_TRUE BUILD_SOLARIS_FALSE BUILD_FREEBSD_TRUE BUILD_FREEBSD_FALSE BUILD_NETBSD_TRUE BUILD_NETBSD_FALSE 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 EGREP BUILD_SETI_TRUE BUILD_SETI_FALSE BUILD_MPD_TRUE BUILD_MPD_FALSE BUILD_CAIRO_TRUE BUILD_CAIRO_FALSE CAIROCONFIG BUILD_METAR_TRUE BUILD_METAR_FALSE BUILD_MLDONKEY_TRUE BUILD_MLDONKEY_FALSE XFTCONFIG HELP2MAN HAVE_HELP2MAN_TRUE HAVE_HELP2MAN_FALSE X11_LIBS XFT_LIBS LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-xft enable if you want to use Xft default=no
853 --enable-own-window enable if you want support for creating own window default=yes
854 --enable-double-buffer enable if you want to support flicker-free operation default=yes
855 --disable-dependency-tracking speeds up one-time build
856 --enable-dependency-tracking do not reject slow dependency extractors
857 --enable-proc-uptime enable using /proc/uptime for uptime default=no
858 --enable-seti enable if you want SETI at Home stats default=no
859 --enable-mpd enable if you want MPD support default=no
860 --enable-cairo enable if you want Cairo support default=no
861 --enable-metar enable if you want metar stats (weather information) default=no
862 --enable-mldonkey enable if you want MLDonkey support default=no
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-x use the X Window System
869 Some influential environment variables:
870 CC C compiler command
871 CFLAGS C compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
884 if test "$ac_init_help" = "recursive"; then
885 # If there are subdirs, report their specific --help.
887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888 test -d $ac_dir || continue
891 if test "$ac_dir" != .; then
892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893 # A "../" for each directory in $ac_dir_suffix.
894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 ac_dir_suffix= ac_top_builddir=
900 .) # No --srcdir option. We are building in place.
902 if test -z "$ac_top_builddir"; then
905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_srcdir=$srcdir$ac_dir_suffix;
909 ac_top_srcdir=$srcdir ;;
911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 # Do not use `cd foo && pwd` to compute absolute paths, because
916 # the directories may not exist.
918 .) ac_abs_builddir="$ac_dir";;
921 .) ac_abs_builddir=`pwd`;;
922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
926 case $ac_abs_builddir in
927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 case ${ac_top_builddir}. in
930 .) ac_abs_top_builddir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
935 case $ac_abs_builddir in
936 .) ac_abs_srcdir=$ac_srcdir;;
939 .) ac_abs_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944 case $ac_abs_builddir in
945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 case $ac_top_srcdir in
948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 # Check for guested configure; otherwise get Cygnus style configure.
956 if test -f $ac_srcdir/configure.gnu; then
958 $SHELL $ac_srcdir/configure.gnu --help=recursive
959 elif test -f $ac_srcdir/configure; then
961 $SHELL $ac_srcdir/configure --help=recursive
962 elif test -f $ac_srcdir/configure.ac ||
963 test -f $ac_srcdir/configure.in; then
967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
977 Copyright (C) 2003 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.59. Invocation command line was
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_must_keep_next=false
1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065 if test $ac_must_keep_next = true; then
1066 ac_must_keep_next=false # Got value, back to normal.
1069 *=* | --config-cache | -C | -disable-* | --disable-* \
1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072 | -with-* | --with-* | -without-* | --without-* | --x)
1073 case "$ac_configure_args0 " in
1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 -* ) ac_must_keep_next=true ;;
1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 # Get rid of the leading space.
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log. We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096 # Save into config.log some information that might help in debugging.
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1106 # The following way of writing the cache mishandles newlines in values,
1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1129 for ac_var in $ac_subst_vars
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -n "$ac_subst_files"; then
1143 for ac_var in $ac_subst_files
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -s confdefs.h; then
1158 sed "/^$/d" confdefs.h | sort
1161 test "$ac_signal" != 0 &&
1162 echo "$as_me: caught signal $ac_signal"
1163 echo "$as_me: exit $exit_status"
1165 rm -f core *.core &&
1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 for ac_signal in 1 2 13 15; do
1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179 # Predefined preprocessor variables.
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209 if test "x$prefix" != xNONE; then
1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215 for ac_site_file in $CONFIG_SITE; do
1216 if test -r "$ac_site_file"; then
1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219 sed 's/^/| /' "$ac_site_file" >&5
1224 if test -r "$cache_file"; then
1225 # Some versions of bash will fail to source /dev/null (special
1226 # files actually), so we avoid doing that.
1227 if test -f "$cache_file"; then
1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1231 [\\/]* | ?:[\\/]* ) . $cache_file;;
1232 *) . ./$cache_file;;
1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1241 # Check that the precious variables saved in the cache have kept the same
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247 eval ac_new_set=\$ac_env_${ac_var}_set
1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249 eval ac_new_val="\$ac_env_${ac_var}_value"
1250 case $ac_old_set,$ac_new_set in
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1261 if test "x$ac_old_val" != "x$ac_new_val"; then
1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265 echo "$as_me: former value: $ac_old_val" >&2;}
1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267 echo "$as_me: current value: $ac_new_val" >&2;}
1268 ac_cache_corrupted=:
1271 # Pass precious variables to config.status.
1272 if test "$ac_new_set" = set; then
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 *) ac_arg=$ac_var=$ac_new_val ;;
1278 case " $ac_configure_args " in
1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 if $ac_cache_corrupted; then
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317 am__api_version="1.9"
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1324 elif test -f $ac_dir/install.sh; then
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1328 elif test -f $ac_dir/shtool; then
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1334 if test -z "$ac_aux_dir"; then
1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337 { (exit 1); exit 1; }; }
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343 # Find a good install program. We prefer a C program (faster),
1344 # so one script is as good as another. But avoid the broken or
1345 # incompatible versions:
1346 # SysV /etc/install, /usr/sbin/install
1347 # SunOS /usr/etc/install
1348 # IRIX /sbin/install
1350 # AmigaOS /C/install, which installs bootblocks on floppy discs
1351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1354 # OS/2's system install, which has a completely different semantic
1355 # ./install, which can be erroneously created by make from ./install.sh.
1356 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1357 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1358 if test -z "$INSTALL"; then
1359 if test "${ac_cv_path_install+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366 test -z "$as_dir" && as_dir=.
1367 # Account for people who put trailing slashes in PATH elements.
1369 ./ | .// | /cC/* | \
1370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1371 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1374 # OSF1 and SCO ODT 3.0 have their own names for install.
1375 # Don't use installbsd from OSF since it installs stuff as root
1377 for ac_prog in ginstall scoinst install; do
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1380 if test $ac_prog = install &&
1381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1382 # AIX install. It has an incompatible calling convention.
1384 elif test $ac_prog = install &&
1385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1386 # program-specific install script used by HP pwplus--don't use.
1389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1401 if test "${ac_cv_path_install+set}" = set; then
1402 INSTALL=$ac_cv_path_install
1404 # As a last resort, use the slow shell script. We don't cache a
1405 # path for INSTALL within a source directory, because that will
1406 # break other packages using the cache if that directory is
1407 # removed, or if the path is relative.
1408 INSTALL=$ac_install_sh
1411 echo "$as_me:$LINENO: result: $INSTALL" >&5
1412 echo "${ECHO_T}$INSTALL" >&6
1414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1415 # It thinks the first close brace ends the variable substitution.
1416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1423 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1426 echo timestamp > conftest.file
1427 # Do `set' in a subshell so we don't clobber the current shell's
1428 # arguments. Must try -L first in case configure is actually a
1429 # symlink; some systems play weird games with the mod time of symlinks
1430 # (eg FreeBSD returns the mod time of the symlink's containing
1433 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1434 if test "$*" = "X"; then
1436 set X `ls -t $srcdir/configure conftest.file`
1439 if test "$*" != "X $srcdir/configure conftest.file" \
1440 && test "$*" != "X conftest.file $srcdir/configure"; then
1442 # If neither matched, then we have a broken ls. This can happen
1443 # if, for instance, CONFIG_SHELL is bash and it inherits a
1444 # broken ls alias from the environment. This has actually
1445 # happened. Such a system could not be considered "sane".
1446 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1447 alias in your environment" >&5
1448 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1449 alias in your environment" >&2;}
1450 { (exit 1); exit 1; }; }
1453 test "$2" = conftest.file
1459 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1460 Check your system clock" >&5
1461 echo "$as_me: error: newly created file is older than distributed files!
1462 Check your system clock" >&2;}
1463 { (exit 1); exit 1; }; }
1465 echo "$as_me:$LINENO: result: yes" >&5
1466 echo "${ECHO_T}yes" >&6
1467 test "$program_prefix" != NONE &&
1468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1469 # Use a double $ so make ignores it.
1470 test "$program_suffix" != NONE &&
1471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1472 # Double any \ or $. echo might interpret backslashes.
1473 # By default was `s,x,x', remove it if useless.
1474 cat <<\_ACEOF >conftest.sed
1475 s/[\\$]/&&/g;s/;s,x,x,$//
1477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1480 # expand $ac_aux_dir to an absolute path
1481 am_aux_dir=`cd $ac_aux_dir && pwd`
1483 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1484 # Use eval to expand $SHELL
1485 if eval "$MISSING --run true"; then
1486 am_missing_run="$MISSING --run "
1489 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1490 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1493 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1494 # We used to keeping the `.' as first argument, in order to
1495 # allow $(mkdir_p) to be used without argument. As in
1496 # $(mkdir_p) $(somedir)
1497 # where $(somedir) is conditionally defined. However this is wrong
1499 # 1. if the package is installed by a user who cannot write `.'
1500 # make install will fail,
1501 # 2. the above comment should most certainly read
1502 # $(mkdir_p) $(DESTDIR)$(somedir)
1503 # so it does not work when $(somedir) is undefined and
1504 # $(DESTDIR) is not.
1505 # To support the latter case, we have to write
1506 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1507 # so the `.' trick is pointless.
1508 mkdir_p='mkdir -p --'
1510 # On NextStep and OpenStep, the `mkdir' command does not
1511 # recognize any option. It will interpret all options as
1512 # directories to create, and then abort because `.' already
1514 for d in ./-p ./--version;
1516 test -d $d && rmdir $d
1518 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1519 if test -f "$ac_aux_dir/mkinstalldirs"; then
1520 mkdir_p='$(mkinstalldirs)'
1522 mkdir_p='$(install_sh) -d'
1526 for ac_prog in gawk mawk nawk awk
1528 # Extract the first word of "$ac_prog", so it can be a program name with args.
1529 set dummy $ac_prog; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_AWK+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 if test -n "$AWK"; then
1536 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542 test -z "$as_dir" && as_dir=.
1543 for ac_exec_ext in '' $ac_executable_extensions; do
1544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545 ac_cv_prog_AWK="$ac_prog"
1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555 if test -n "$AWK"; then
1556 echo "$as_me:$LINENO: result: $AWK" >&5
1557 echo "${ECHO_T}$AWK" >&6
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1563 test -n "$AWK" && break
1566 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1567 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1568 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1569 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 cat >conftest.make <<\_ACEOF
1574 @echo 'ac_maketemp="$(MAKE)"'
1576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1577 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1578 if test -n "$ac_maketemp"; then
1579 eval ac_cv_prog_make_${ac_make}_set=yes
1581 eval ac_cv_prog_make_${ac_make}_set=no
1585 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1586 echo "$as_me:$LINENO: result: yes" >&5
1587 echo "${ECHO_T}yes" >&6
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1592 SET_MAKE="MAKE=${MAKE-make}"
1595 rm -rf .tst 2>/dev/null
1596 mkdir .tst 2>/dev/null
1597 if test -d .tst; then
1602 rmdir .tst 2>/dev/null
1604 # test to see if srcdir already configured
1605 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1606 test -f $srcdir/config.status; then
1607 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1608 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1609 { (exit 1); exit 1; }; }
1612 # test whether we have cygpath
1613 if test -z "$CYGPATH_W"; then
1614 if (cygpath --version) >/dev/null 2>/dev/null; then
1615 CYGPATH_W='cygpath -w'
1622 # Define the identity of the package.
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE "$PACKAGE"
1632 cat >>confdefs.h <<_ACEOF
1633 #define VERSION "$VERSION"
1636 # Some tools Automake needs.
1638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1652 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1654 # Installed binaries are usually stripped using `strip' when the user
1655 # run `make install-strip'. However `strip' might not be the right
1656 # tool to use in cross-compilation environments, therefore Automake
1657 # will honor the `STRIP' environment variable to overrule this program.
1658 if test "$cross_compiling" != no; then
1659 if test -n "$ac_tool_prefix"; then
1660 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1661 set dummy ${ac_tool_prefix}strip; ac_word=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_STRIP+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 if test -n "$STRIP"; then
1668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir=.
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686 STRIP=$ac_cv_prog_STRIP
1687 if test -n "$STRIP"; then
1688 echo "$as_me:$LINENO: result: $STRIP" >&5
1689 echo "${ECHO_T}$STRIP" >&6
1691 echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1696 if test -z "$ac_cv_prog_STRIP"; then
1698 # Extract the first word of "strip", so it can be a program name with args.
1699 set dummy strip; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 if test -n "$ac_ct_STRIP"; then
1706 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_STRIP="strip"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1725 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1726 if test -n "$ac_ct_STRIP"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1728 echo "${ECHO_T}$ac_ct_STRIP" >&6
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1736 STRIP="$ac_cv_prog_STRIP"
1740 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1742 # We need awk for the "check" target. The system "awk" is bad on
1744 # Always define AMTAR for backward compatibility.
1746 AMTAR=${AMTAR-"${am_missing_run}tar"}
1748 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1754 ac_config_headers="$ac_config_headers config.h"
1770 # Solaris doesn't work at all right now
1777 echo "Your operating system $uname isn't supported"
1778 echo "Feel free to help. :P"
1785 if test x$uname = xLinux; then
1787 BUILD_LINUX_FALSE='#'
1789 BUILD_LINUX_TRUE='#'
1795 if test x$uname = xSunOS; then
1797 BUILD_SOLARIS_FALSE='#'
1799 BUILD_SOLARIS_TRUE='#'
1800 BUILD_SOLARIS_FALSE=
1805 if test x$uname = xFreeBSD; then
1807 BUILD_FREEBSD_FALSE='#'
1809 BUILD_FREEBSD_TRUE='#'
1810 BUILD_FREEBSD_FALSE=
1815 if test x$uname = xNetBSD; then
1817 BUILD_NETBSD_FALSE='#'
1819 BUILD_NETBSD_TRUE='#'
1826 # Check whether --enable-xft or --disable-xft was given.
1827 if test "${enable_xft+set}" = set; then
1828 enableval="$enable_xft"
1829 want_xft="$enableval"
1834 # Check whether --enable-own_window or --disable-own_window was given.
1835 if test "${enable_own_window+set}" = set; then
1836 enableval="$enable_own_window"
1840 if test $dah != "no"; then
1842 cat >>confdefs.h <<\_ACEOF
1843 #define OWN_WINDOW 1
1850 # Check whether --enable-double_buffer or --disable-double_buffer was given.
1851 if test "${enable_double_buffer+set}" = set; then
1852 enableval="$enable_double_buffer"
1856 if test $dah != "no"; then
1858 cat >>confdefs.h <<\_ACEOF
1859 #define DOUBLE_BUFFER 1
1862 DEPDIR="${am__leading_dot}deps"
1864 ac_config_commands="$ac_config_commands depfiles"
1867 am_make=${MAKE-make}
1868 cat > confinc << 'END'
1873 # If we don't find an include directive, just comment out the code.
1874 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1875 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1879 # First try GNU make style include.
1880 echo "include confinc" > confmf
1881 # We grep out `Entering directory' and `Leaving directory'
1882 # messages which can occur if `w' ends up in MAKEFLAGS.
1883 # In particular we don't look at `^make:' because GNU make might
1884 # be invoked under some other name (usually "gmake"), in which
1885 # case it prints its new name instead of `make'.
1886 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1891 # Now try BSD make style include.
1892 if test "$am__include" = "#"; then
1893 echo '.include "confinc"' > confmf
1894 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1895 am__include=.include
1902 echo "$as_me:$LINENO: result: $_am_result" >&5
1903 echo "${ECHO_T}$_am_result" >&6
1904 rm -f confinc confmf
1906 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1907 if test "${enable_dependency_tracking+set}" = set; then
1908 enableval="$enable_dependency_tracking"
1911 if test "x$enable_dependency_tracking" != xno; then
1912 am_depcomp="$ac_aux_dir/depcomp"
1917 if test "x$enable_dependency_tracking" != xno; then
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 if test -n "$ac_tool_prefix"; then
1933 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1934 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 if test -n "$CC"; then
1961 echo "$as_me:$LINENO: result: $CC" >&5
1962 echo "${ECHO_T}$CC" >&6
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1969 if test -z "$ac_cv_prog_CC"; then
1971 # Extract the first word of "gcc", so it can be a program name with args.
1972 set dummy gcc; ac_word=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test -n "$ac_ct_CC"; then
1979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 ac_cv_prog_ac_ct_CC="gcc"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1998 if test -n "$ac_ct_CC"; then
1999 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2000 echo "${ECHO_T}$ac_ct_CC" >&6
2002 echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2011 if test -z "$CC"; then
2012 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}cc; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_CC="${ac_tool_prefix}cc"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2049 if test -z "$ac_cv_prog_CC"; then
2051 # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_ac_ct_CC="cc"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2092 if test -z "$CC"; then
2093 # Extract the first word of "cc", so it can be a program name with args.
2094 set dummy cc; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2112 ac_prog_rejected=yes
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 if test $ac_prog_rejected = yes; then
2123 # We found a bogon in the path, so make sure we never use it.
2124 set dummy $ac_cv_prog_CC
2126 if test $# != 0; then
2127 # We chose a different compiler from the bogus one.
2128 # However, it has the same basename, so the bogon will be chosen
2129 # first if we set CC to just the basename; use the full file name.
2131 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2137 if test -n "$CC"; then
2138 echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6
2141 echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6
2146 if test -z "$CC"; then
2147 if test -n "$ac_tool_prefix"; then
2150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2152 echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 if test -n "$CC"; then
2178 echo "$as_me:$LINENO: result: $CC" >&5
2179 echo "${ECHO_T}$CC" >&6
2181 echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6
2185 test -n "$CC" && break
2188 if test -z "$CC"; then
2192 # Extract the first word of "$ac_prog", so it can be a program name with args.
2193 set dummy $ac_prog; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$ac_ct_CC"; then
2200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_prog_ac_ct_CC="$ac_prog"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2219 if test -n "$ac_ct_CC"; then
2220 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2221 echo "${ECHO_T}$ac_ct_CC" >&6
2223 echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2227 test -n "$ac_ct_CC" && break
2236 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: no acceptable C compiler found in \$PATH
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2242 # Provide some information about the compiler.
2243 echo "$as_me:$LINENO:" \
2244 "checking for C compiler version" >&5
2245 ac_compiler=`set X $ac_compile; echo $2`
2246 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2247 (eval $ac_compiler --version </dev/null >&5) 2>&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }
2251 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2252 (eval $ac_compiler -v </dev/null >&5) 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }
2256 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2257 (eval $ac_compiler -V </dev/null >&5) 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }
2262 cat >conftest.$ac_ext <<_ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2277 ac_clean_files_save=$ac_clean_files
2278 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2279 # Try to create an executable without -o first, disregard a.out.
2280 # It will help us diagnose broken compilers, and finding out an intuition
2282 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2283 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2284 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2285 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2286 (eval $ac_link_default) 2>&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; then
2290 # Find the output, starting from the most likely. This scheme is
2291 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2294 # Be careful to initialize this variable, since it used to be cached.
2295 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2297 # b.out is created by i960 compilers.
2298 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2300 test -f "$ac_file" || continue
2302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2305 # This is the source file.
2308 # We found the default executable, but exeext='' is most
2312 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2313 # FIXME: I believe we export ac_cv_exeext for Libtool,
2314 # but it would be cool to find out if it's true. Does anybody
2315 # maintain Libtool? --akim.
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2326 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: C compiler cannot create executables
2329 See \`config.log' for more details." >&2;}
2330 { (exit 77); exit 77; }; }
2333 ac_exeext=$ac_cv_exeext
2334 echo "$as_me:$LINENO: result: $ac_file" >&5
2335 echo "${ECHO_T}$ac_file" >&6
2337 # Check the compiler produces executables we can run. If not, either
2338 # the compiler is broken, or we cross compile.
2339 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2340 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2341 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2342 # If not cross compiling, check that we can run a simple program.
2343 if test "$cross_compiling" != yes; then
2344 if { ac_try='./$ac_file'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2352 if test "$cross_compiling" = maybe; then
2355 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2356 If you meant to cross compile, use \`--host'.
2357 See \`config.log' for more details." >&5
2358 echo "$as_me: error: cannot run C compiled programs.
2359 If you meant to cross compile, use \`--host'.
2360 See \`config.log' for more details." >&2;}
2361 { (exit 1); exit 1; }; }
2365 echo "$as_me:$LINENO: result: yes" >&5
2366 echo "${ECHO_T}yes" >&6
2368 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2369 ac_clean_files=$ac_clean_files_save
2370 # Check the compiler produces executables we can run. If not, either
2371 # the compiler is broken, or we cross compile.
2372 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2373 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2374 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2375 echo "${ECHO_T}$cross_compiling" >&6
2377 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2378 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2380 (eval $ac_link) 2>&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; then
2384 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2385 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2386 # work properly (i.e., refer to `conftest.exe'), while it won't with
2388 for ac_file in conftest.exe conftest conftest.*; do
2389 test -f "$ac_file" || continue
2391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2392 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2399 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2400 See \`config.log' for more details." >&5
2401 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2402 See \`config.log' for more details." >&2;}
2403 { (exit 1); exit 1; }; }
2406 rm -f conftest$ac_cv_exeext
2407 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2408 echo "${ECHO_T}$ac_cv_exeext" >&6
2410 rm -f conftest.$ac_ext
2411 EXEEXT=$ac_cv_exeext
2413 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2414 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2415 if test "${ac_cv_objext+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 cat >conftest.$ac_ext <<_ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2433 rm -f conftest.o conftest.obj
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; then
2439 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2442 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2450 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2451 See \`config.log' for more details." >&5
2452 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2453 See \`config.log' for more details." >&2;}
2454 { (exit 1); exit 1; }; }
2457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2459 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2460 echo "${ECHO_T}$ac_cv_objext" >&6
2461 OBJEXT=$ac_cv_objext
2463 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2464 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2465 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 cat >conftest.$ac_ext <<_ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h. */
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2519 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2520 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2521 GCC=`test $ac_compiler_gnu = yes && echo yes`
2522 ac_test_CFLAGS=${CFLAGS+set}
2523 ac_save_CFLAGS=$CFLAGS
2525 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2526 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2527 if test "${ac_cv_prog_cc_g+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 cat >conftest.$ac_ext <<_ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2549 grep -v '^ *+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2576 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2577 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2578 if test "$ac_test_CFLAGS" = set; then
2579 CFLAGS=$ac_save_CFLAGS
2580 elif test $ac_cv_prog_cc_g = yes; then
2581 if test "$GCC" = yes; then
2587 if test "$GCC" = yes; then
2593 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2594 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2595 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 ac_cv_prog_cc_stdc=no
2600 cat >conftest.$ac_ext <<_ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2608 #include <sys/types.h>
2609 #include <sys/stat.h>
2610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2611 struct buf { int x; };
2612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2613 static char *e (p, i)
2619 static char *f (char * (*g) (char **, int), char **p, ...)
2624 s = g (p, va_arg (v,int));
2629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2630 function prototypes and stuff, but not '\xHH' hex character constants.
2631 These don't provoke an error unfortunately, instead are silently treated
2632 as 'x'. The following induces an error, until -std1 is added to get
2633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2634 array size at least. It's necessary to write '\x00'==0 to get something
2635 that's true only with -std1. */
2636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2638 int test (int i, double x);
2639 struct s1 {int (*f) (int a);};
2640 struct s2 {int (*f) (double a);};
2641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2647 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2652 # Don't try gcc -ansi; that turns off useful extensions and
2653 # breaks some systems' header files.
2654 # AIX -qlanglvl=ansi
2655 # Ultrix and OSF/1 -std1
2656 # HP-UX 10.20 and later -Ae
2657 # HP-UX older versions -Aa -D_HPUX_SOURCE
2658 # SVR4 -Xc -D__EXTENSIONS__
2659 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2661 CC="$ac_save_CC $ac_arg"
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag"
2672 || test ! -s conftest.err'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2684 ac_cv_prog_cc_stdc=$ac_arg
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2691 rm -f conftest.err conftest.$ac_objext
2693 rm -f conftest.$ac_ext conftest.$ac_objext
2698 case "x$ac_cv_prog_cc_stdc" in
2700 echo "$as_me:$LINENO: result: none needed" >&5
2701 echo "${ECHO_T}none needed" >&6 ;;
2703 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2704 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2705 CC="$CC $ac_cv_prog_cc_stdc" ;;
2708 # Some people use a C++ compiler to compile C. Since we use `exit',
2709 # in C++ we need to declare it. In case someone uses the same compiler
2710 # for both compiling C and C++ we need to have the C++ compiler decide
2711 # the declaration of exit, since it's the most demanding environment.
2712 cat >conftest.$ac_ext <<_ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2721 grep -v '^ *+' conftest.er1 >conftest.err
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_c_werror_flag"
2727 || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 for ac_declaration in \
2741 'extern "C" void std::exit (int) throw (); using std::exit;' \
2742 'extern "C" void std::exit (int); using std::exit;' \
2743 'extern "C" void exit (int) throw ();' \
2744 'extern "C" void exit (int);' \
2747 cat >conftest.$ac_ext <<_ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 cat >conftest.$ac_ext <<_ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2808 rm -f conftest.$ac_objext
2809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2810 (eval $ac_compile) 2>conftest.er1
2812 grep -v '^ *+' conftest.er1 >conftest.err
2814 cat conftest.err >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } &&
2817 { ac_try='test -z "$ac_c_werror_flag"
2818 || test ! -s conftest.err'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2832 echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839 if test -n "$ac_declaration"; then
2840 echo '#ifdef __cplusplus' >>confdefs.h
2841 echo $ac_declaration >>confdefs.h
2842 echo '#endif' >>confdefs.h
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2852 ac_cpp='$CPP $CPPFLAGS'
2853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2857 depcc="$CC" am_compiler_list=
2859 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2860 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2861 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2865 # We make a subdir and do the tests there. Otherwise we can end up
2866 # making bogus files that we don't know about and never remove. For
2867 # instance it was reported that on HP-UX the gcc test will end up
2868 # making a dummy file named `D' -- because `-MD' means `put the output
2871 # Copy depcomp to subdir because otherwise we won't find it if we're
2872 # using a relative directory.
2873 cp "$am_depcomp" conftest.dir
2875 # We will build objects and dependencies in a subdirectory because
2876 # it helps to detect inapplicable dependency modes. For instance
2877 # both Tru64's cc and ICC support -MD to output dependencies as a
2878 # side effect of compilation, but ICC will put the dependencies in
2879 # the current directory while Tru64 will put them in the object
2883 am_cv_CC_dependencies_compiler_type=none
2884 if test "$am_compiler_list" = ""; then
2885 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2887 for depmode in $am_compiler_list; do
2888 # Setup a source with many dependencies, because some compilers
2889 # like to wrap large dependency lists on column 80 (with \), and
2890 # we should not choose a depcomp mode which is confused by this.
2892 # We need to recreate these files for each test, as the compiler may
2893 # overwrite some of them when testing with obscure command lines.
2894 # This happens at least with the AIX C compiler.
2896 for i in 1 2 3 4 5 6; do
2897 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2898 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2899 # Solaris 8's {/usr,}/bin/sh.
2900 touch sub/conftst$i.h
2902 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2906 # after this tag, mechanisms are not by side-effect, so they'll
2907 # only be used when explicitly requested
2908 if test "x$enable_dependency_tracking" = xyes; then
2916 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2917 # mode. It turns out that the SunPro C++ compiler does not properly
2918 # handle `-M -o', and we need to detect this.
2919 if depmode=$depmode \
2920 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2922 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2923 >/dev/null 2>conftest.err &&
2924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2925 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2927 # icc doesn't choke on unknown options, it will just issue warnings
2928 # or remarks (even with -Werror). So we grep stderr for any message
2929 # that says an option was ignored or not supported.
2930 # When given -MP, icc 7.0 and 7.1 complain thusly:
2931 # icc: Command line warning: ignoring option '-M'; no argument required
2932 # The diagnosis changed in icc 8.0:
2933 # icc: Command line remark: option '-MP' not supported
2934 if (grep 'ignoring option' conftest.err ||
2935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2936 am_cv_CC_dependencies_compiler_type=$depmode
2945 am_cv_CC_dependencies_compiler_type=none
2949 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2950 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2951 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2956 test "x$enable_dependency_tracking" != xno \
2957 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2959 am__fastdepCC_FALSE='#'
2961 am__fastdepCC_TRUE='#'
2962 am__fastdepCC_FALSE=
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2973 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2974 # On Suns, sometimes $CPP names a directory.
2975 if test -n "$CPP" && test -d "$CPP"; then
2978 if test -z "$CPP"; then
2979 if test "${ac_cv_prog_CPP+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 # Double quotes because CPP needs to be expanded
2983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2986 for ac_c_preproc_warn_flag in '' yes
2988 # Use a header file that comes with gcc, so configuring glibc
2989 # with a fresh cross-compiler works.
2990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2991 # <limits.h> exists even on freestanding compilers.
2992 # On the NeXT, cc -E runs the code through the compiler's parser,
2993 # not just through cpp. "Syntax error" is here to catch this case.
2994 cat >conftest.$ac_ext <<_ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3001 # include <limits.h>
3003 # include <assert.h>
3007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } >/dev/null; then
3015 if test -s conftest.err; then
3016 ac_cpp_err=$ac_c_preproc_warn_flag
3017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3024 if test -z "$ac_cpp_err"; then
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3030 # Broken: fails on valid input.
3033 rm -f conftest.err conftest.$ac_ext
3035 # OK, works on sane cases. Now check whether non-existent headers
3036 # can be detected and how.
3037 cat >conftest.$ac_ext <<_ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3043 #include <ac_nonexistent.h>
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } >/dev/null; then
3053 if test -s conftest.err; then
3054 ac_cpp_err=$ac_c_preproc_warn_flag
3055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3062 if test -z "$ac_cpp_err"; then
3063 # Broken: success on invalid input.
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3069 # Passes both tests.
3073 rm -f conftest.err conftest.$ac_ext
3076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3077 rm -f conftest.err conftest.$ac_ext
3078 if $ac_preproc_ok; then
3090 echo "$as_me:$LINENO: result: $CPP" >&5
3091 echo "${ECHO_T}$CPP" >&6
3093 for ac_c_preproc_warn_flag in '' yes
3095 # Use a header file that comes with gcc, so configuring glibc
3096 # with a fresh cross-compiler works.
3097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3098 # <limits.h> exists even on freestanding compilers.
3099 # On the NeXT, cc -E runs the code through the compiler's parser,
3100 # not just through cpp. "Syntax error" is here to catch this case.
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3108 # include <limits.h>
3110 # include <assert.h>
3114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } >/dev/null; then
3122 if test -s conftest.err; then
3123 ac_cpp_err=$ac_c_preproc_warn_flag
3124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3131 if test -z "$ac_cpp_err"; then
3134 echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3137 # Broken: fails on valid input.
3140 rm -f conftest.err conftest.$ac_ext
3142 # OK, works on sane cases. Now check whether non-existent headers
3143 # can be detected and how.
3144 cat >conftest.$ac_ext <<_ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 #include <ac_nonexistent.h>
3152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } >/dev/null; then
3160 if test -s conftest.err; then
3161 ac_cpp_err=$ac_c_preproc_warn_flag
3162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3169 if test -z "$ac_cpp_err"; then
3170 # Broken: success on invalid input.
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 # Passes both tests.
3180 rm -f conftest.err conftest.$ac_ext
3183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3184 rm -f conftest.err conftest.$ac_ext
3185 if $ac_preproc_ok; then
3188 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3189 See \`config.log' for more details." >&5
3190 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3191 See \`config.log' for more details." >&2;}
3192 { (exit 1); exit 1; }; }
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 echo "$as_me:$LINENO: checking for egrep" >&5
3203 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3204 if test "${ac_cv_prog_egrep+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3208 then ac_cv_prog_egrep='grep -E'
3209 else ac_cv_prog_egrep='egrep'
3212 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3213 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3214 EGREP=$ac_cv_prog_egrep
3217 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3218 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3219 if test "${ac_cv_header_stdc+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3241 rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>conftest.er1
3245 grep -v '^ *+' conftest.er1 >conftest.err
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -z "$ac_c_werror_flag"
3251 || test ! -s conftest.err'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; } &&
3257 { ac_try='test -s conftest.$ac_objext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 ac_cv_header_stdc=yes
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 ac_cv_header_stdc=no
3270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3272 if test $ac_cv_header_stdc = yes; then
3273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3284 $EGREP "memchr" >/dev/null 2>&1; then
3287 ac_cv_header_stdc=no
3293 if test $ac_cv_header_stdc = yes; then
3294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3295 cat >conftest.$ac_ext <<_ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305 $EGREP "free" >/dev/null 2>&1; then
3308 ac_cv_header_stdc=no
3314 if test $ac_cv_header_stdc = yes; then
3315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3316 if test "$cross_compiling" = yes; then
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3326 #if ((' ' & 0x0FF) == 0x020)
3327 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3328 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3330 # define ISLOWER(c) \
3331 (('a' <= (c) && (c) <= 'i') \
3332 || ('j' <= (c) && (c) <= 'r') \
3333 || ('s' <= (c) && (c) <= 'z'))
3334 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3342 for (i = 0; i < 256; i++)
3343 if (XOR (islower (i), ISLOWER (i))
3344 || toupper (i) != TOUPPER (i))
3349 rm -f conftest$ac_exeext
3350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3351 (eval $ac_link) 2>&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3362 echo "$as_me: program exited with status $ac_status" >&5
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3367 ac_cv_header_stdc=no
3369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3373 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3374 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3375 if test $ac_cv_header_stdc = yes; then
3377 cat >>confdefs.h <<\_ACEOF
3378 #define STDC_HEADERS 1
3383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3393 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3394 inttypes.h stdint.h unistd.h
3396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3397 echo "$as_me:$LINENO: checking for $ac_header" >&5
3398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 $ac_includes_default
3410 #include <$ac_header>
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414 (eval $ac_compile) 2>conftest.er1
3416 grep -v '^ *+' conftest.er1 >conftest.err
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
3421 { ac_try='test -z "$ac_c_werror_flag"
3422 || test ! -s conftest.err'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; } &&
3428 { ac_try='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 eval "$as_ac_Header=yes"
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 eval "$as_ac_Header=no"
3441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3446 cat >>confdefs.h <<_ACEOF
3447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3456 for ac_header in X11/extensions/Xdbe.h
3458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3460 echo "$as_me:$LINENO: checking for $ac_header" >&5
3461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3468 # Is the header compilable?
3469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 $ac_includes_default
3478 #include <$ac_header>
3480 rm -f conftest.$ac_objext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482 (eval $ac_compile) 2>conftest.er1
3484 grep -v '^ *+' conftest.er1 >conftest.err
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -z "$ac_c_werror_flag"
3490 || test ! -s conftest.err'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; } &&
3496 { ac_try='test -s conftest.$ac_objext'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3502 ac_header_compiler=yes
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 ac_header_compiler=no
3509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3511 echo "${ECHO_T}$ac_header_compiler" >&6
3513 # Is the header present?
3514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3516 cat >conftest.$ac_ext <<_ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522 #include <$ac_header>
3524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3541 if test -z "$ac_cpp_err"; then
3542 ac_header_preproc=yes
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 ac_header_preproc=no
3549 rm -f conftest.err conftest.$ac_ext
3550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3551 echo "${ECHO_T}$ac_header_preproc" >&6
3553 # So? What about this header?
3554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3560 ac_header_preproc=yes
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3577 ## ------------------------------------------ ##
3578 ## Report this to the AC_PACKAGE_NAME lists. ##
3579 ## ------------------------------------------ ##
3582 sed "s/^/$as_me: WARNING: /" >&2
3585 echo "$as_me:$LINENO: checking for $ac_header" >&5
3586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 eval "$as_ac_Header=\$ac_header_preproc"
3592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3597 cat >>confdefs.h <<_ACEOF
3598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3601 cat >>confdefs.h <<\_ACEOF
3611 if test "x$XDBE_MISSING" = xyes; then
3612 { { echo "$as_me:$LINENO: error: something went wrong when checking for Xdbe (double buffer extension" >&5
3613 echo "$as_me: error: something went wrong when checking for Xdbe (double buffer extension" >&2;}
3614 { (exit 1); exit 1; }; }
3620 # Check whether --enable-proc_uptime or --disable-proc_uptime was given.
3621 if test "${enable_proc_uptime+set}" = set; then
3622 enableval="$enable_proc_uptime"
3626 if test $dah = "yes"; then
3628 cat >>confdefs.h <<\_ACEOF
3629 #define PROC_UPTIME 1
3636 # Check whether --enable-seti or --disable-seti was given.
3637 if test "${enable_seti+set}" = set; then
3638 enableval="$enable_seti"
3639 want_seti="$enableval"
3644 if test x$want_seti == xyes; then
3646 BUILD_SETI_FALSE='#'
3652 if test x$want_seti == xyes; then
3654 cat >>confdefs.h <<\_ACEOF
3662 # Check whether --enable-mpd or --disable-mpd was given.
3663 if test "${enable_mpd+set}" = set; then
3664 enableval="$enable_mpd"
3665 want_mpd="$enableval"
3670 if test x$want_mpd == xyes; then
3678 if test x$want_mpd == xyes; then
3680 cat >>confdefs.h <<\_ACEOF
3688 # Check whether --enable-cairo or --disable-cairo was given.
3689 if test "${enable_cairo+set}" = set; then
3690 enableval="$enable_cairo"
3691 want_cairo="$enableval"
3696 if test x$want_cairo == xyes; then
3698 BUILD_CAIRO_FALSE='#'
3700 BUILD_CAIRO_TRUE='#'
3706 if test "$want_cairo" = "yes"; then
3709 for ac_header in cairo.h cairo-xlib.h
3711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3713 echo "$as_me:$LINENO: checking for $ac_header" >&5
3714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3721 # Is the header compilable?
3722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3724 cat >conftest.$ac_ext <<_ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3730 $ac_includes_default
3731 #include <$ac_header>
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>conftest.er1
3737 grep -v '^ *+' conftest.er1 >conftest.err
3739 cat conftest.err >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -z "$ac_c_werror_flag"
3743 || test ! -s conftest.err'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; } &&
3749 { ac_try='test -s conftest.$ac_objext'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 ac_header_compiler=yes
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3760 ac_header_compiler=no
3762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3764 echo "${ECHO_T}$ac_header_compiler" >&6
3766 # Is the header present?
3767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3769 cat >conftest.$ac_ext <<_ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3775 #include <$ac_header>
3777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3780 grep -v '^ *+' conftest.er1 >conftest.err
3782 cat conftest.err >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } >/dev/null; then
3785 if test -s conftest.err; then
3786 ac_cpp_err=$ac_c_preproc_warn_flag
3787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3794 if test -z "$ac_cpp_err"; then
3795 ac_header_preproc=yes
3797 echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3800 ac_header_preproc=no
3802 rm -f conftest.err conftest.$ac_ext
3803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3804 echo "${ECHO_T}$ac_header_preproc" >&6
3806 # So? What about this header?
3807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3813 ac_header_preproc=yes
3816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3830 ## ------------------------------------------ ##
3831 ## Report this to the AC_PACKAGE_NAME lists. ##
3832 ## ------------------------------------------ ##
3835 sed "s/^/$as_me: WARNING: /" >&2
3838 echo "$as_me:$LINENO: checking for $ac_header" >&5
3839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 eval "$as_ac_Header=\$ac_header_preproc"
3845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3850 cat >>confdefs.h <<_ACEOF
3851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3860 if test "x$CAIRO_MISSING" = xyes; then
3861 { { echo "$as_me:$LINENO: error: something went wrong when checking for cairo, you're probably missing headers or it's not installed" >&5
3862 echo "$as_me: error: something went wrong when checking for cairo, you're probably missing headers or it's not installed" >&2;}
3863 { (exit 1); exit 1; }; }
3865 # Extract the first word of "pkg-config", so it can be a program name with args.
3866 set dummy pkg-config; ac_word=$2
3867 echo "$as_me:$LINENO: checking for $ac_word" >&5
3868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869 if test "${ac_cv_path_CAIROCONFIG+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 case $CAIROCONFIG in
3874 ac_cv_path_CAIROCONFIG="$CAIROCONFIG" # Let the user override the test with a path.
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884 ac_cv_path_CAIROCONFIG="$as_dir/$ac_word$ac_exec_ext"
3885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 CAIROCONFIG=$ac_cv_path_CAIROCONFIG
3896 if test -n "$CAIROCONFIG"; then
3897 echo "$as_me:$LINENO: result: $CAIROCONFIG" >&5
3898 echo "${ECHO_T}$CAIROCONFIG" >&6
3900 echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6
3904 if test x$CAIROCONFIG != x; then
3907 cat >>confdefs.h <<\_ACEOF
3911 CFLAGS="$CFLAGS `$CAIROCONFIG --cflags cairo` `$CAIROCONFIG --libs cairo` "
3912 CAIRO_LIBS="`$CAIROCONFIG --libs cairo` `$CAIROCONFIG --cflags cairo`"
3920 # Check whether --enable-metar or --disable-metar was given.
3921 if test "${enable_metar+set}" = set; then
3922 enableval="$enable_metar"
3923 want_metar="$enableval"
3928 if test x$want_metar == xyes; then
3930 BUILD_METAR_FALSE='#'
3932 BUILD_METAR_TRUE='#'
3936 if test x$want_metar == xyes; then
3938 for ac_header in metar.h
3940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3942 echo "$as_me:$LINENO: checking for $ac_header" >&5
3943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3950 # Is the header compilable?
3951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3953 cat >conftest.$ac_ext <<_ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 $ac_includes_default
3960 #include <$ac_header>
3962 rm -f conftest.$ac_objext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>conftest.er1
3966 grep -v '^ *+' conftest.er1 >conftest.err
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
3971 { ac_try='test -z "$ac_c_werror_flag"
3972 || test ! -s conftest.err'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 ac_header_compiler=yes
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3989 ac_header_compiler=no
3991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3993 echo "${ECHO_T}$ac_header_compiler" >&6
3995 # Is the header present?
3996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3998 cat >conftest.$ac_ext <<_ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 #include <$ac_header>
4006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4009 grep -v '^ *+' conftest.er1 >conftest.err
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } >/dev/null; then
4014 if test -s conftest.err; then
4015 ac_cpp_err=$ac_c_preproc_warn_flag
4016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4023 if test -z "$ac_cpp_err"; then
4024 ac_header_preproc=yes
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 ac_header_preproc=no
4031 rm -f conftest.err conftest.$ac_ext
4032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4033 echo "${ECHO_T}$ac_header_preproc" >&6
4035 # So? What about this header?
4036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4042 ac_header_preproc=yes
4045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4052 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4059 ## ------------------------------------------ ##
4060 ## Report this to the AC_PACKAGE_NAME lists. ##
4061 ## ------------------------------------------ ##
4064 sed "s/^/$as_me: WARNING: /" >&2
4067 echo "$as_me:$LINENO: checking for $ac_header" >&5
4068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 eval "$as_ac_Header=\$ac_header_preproc"
4074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4079 cat >>confdefs.h <<_ACEOF
4080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4089 if test "x$METAR_MISSING" = xyes; then
4090 { { echo "$as_me:$LINENO: error: something went wrong when checking for mdsplib, you're probably missing headers or it's not installed" >&5
4091 echo "$as_me: error: something went wrong when checking for mdsplib, you're probably missing headers or it's not installed" >&2;}
4092 { (exit 1); exit 1; }; }
4095 cat >>confdefs.h <<\_ACEOF
4105 # Check whether --enable-mldonkey or --disable-mldonkey was given.
4106 if test "${enable_mldonkey+set}" = set; then
4107 enableval="$enable_mldonkey"
4108 want_mldonkey="$enableval"
4113 if test x$want_mldonkey == xyes; then
4114 BUILD_MLDONKEY_TRUE=
4115 BUILD_MLDONKEY_FALSE='#'
4117 BUILD_MLDONKEY_TRUE='#'
4118 BUILD_MLDONKEY_FALSE=
4121 if test x$want_mldonkey == xyes; then
4123 cat >>confdefs.h <<\_ACEOF
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 if test -n "$ac_tool_prefix"; then
4136 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4137 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4138 echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4140 if test "${ac_cv_prog_CC+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 if test -n "$CC"; then
4144 ac_cv_prog_CC="$CC" # Let the user override the test.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 if test -n "$CC"; then
4164 echo "$as_me:$LINENO: result: $CC" >&5
4165 echo "${ECHO_T}$CC" >&6
4167 echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4172 if test -z "$ac_cv_prog_CC"; then
4174 # Extract the first word of "gcc", so it can be a program name with args.
4175 set dummy gcc; ac_word=$2
4176 echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 if test -n "$ac_ct_CC"; then
4182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191 ac_cv_prog_ac_ct_CC="gcc"
4192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4201 if test -n "$ac_ct_CC"; then
4202 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4203 echo "${ECHO_T}$ac_ct_CC" >&6
4205 echo "$as_me:$LINENO: result: no" >&5
4206 echo "${ECHO_T}no" >&6
4214 if test -z "$CC"; then
4215 if test -n "$ac_tool_prefix"; then
4216 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4217 set dummy ${ac_tool_prefix}cc; ac_word=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_prog_CC+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 if test -n "$CC"; then
4224 ac_cv_prog_CC="$CC" # Let the user override the test.
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_CC="${ac_tool_prefix}cc"
4234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 if test -n "$CC"; then
4244 echo "$as_me:$LINENO: result: $CC" >&5
4245 echo "${ECHO_T}$CC" >&6
4247 echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4252 if test -z "$ac_cv_prog_CC"; then
4254 # Extract the first word of "cc", so it can be a program name with args.
4255 set dummy cc; ac_word=$2
4256 echo "$as_me:$LINENO: checking for $ac_word" >&5
4257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 if test -n "$ac_ct_CC"; then
4262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4271 ac_cv_prog_ac_ct_CC="cc"
4272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4281 if test -n "$ac_ct_CC"; then
4282 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4283 echo "${ECHO_T}$ac_ct_CC" >&6
4285 echo "$as_me:$LINENO: result: no" >&5
4286 echo "${ECHO_T}no" >&6
4295 if test -z "$CC"; then
4296 # Extract the first word of "cc", so it can be a program name with args.
4297 set dummy cc; ac_word=$2
4298 echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4300 if test "${ac_cv_prog_CC+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test -n "$CC"; then
4304 ac_cv_prog_CC="$CC" # Let the user override the test.
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4314 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4315 ac_prog_rejected=yes
4319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 if test $ac_prog_rejected = yes; then
4326 # We found a bogon in the path, so make sure we never use it.
4327 set dummy $ac_cv_prog_CC
4329 if test $# != 0; then
4330 # We chose a different compiler from the bogus one.
4331 # However, it has the same basename, so the bogon will be chosen
4332 # first if we set CC to just the basename; use the full file name.
4334 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4340 if test -n "$CC"; then
4341 echo "$as_me:$LINENO: result: $CC" >&5
4342 echo "${ECHO_T}$CC" >&6
4344 echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4349 if test -z "$CC"; then
4350 if test -n "$ac_tool_prefix"; then
4353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_prog_CC+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 if test -n "$CC"; then
4361 ac_cv_prog_CC="$CC" # Let the user override the test.
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 if test -n "$CC"; then
4381 echo "$as_me:$LINENO: result: $CC" >&5
4382 echo "${ECHO_T}$CC" >&6
4384 echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4388 test -n "$CC" && break
4391 if test -z "$CC"; then
4395 # Extract the first word of "$ac_prog", so it can be a program name with args.
4396 set dummy $ac_prog; ac_word=$2
4397 echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 if test -n "$ac_ct_CC"; then
4403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412 ac_cv_prog_ac_ct_CC="$ac_prog"
4413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4422 if test -n "$ac_ct_CC"; then
4423 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4424 echo "${ECHO_T}$ac_ct_CC" >&6
4426 echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6
4430 test -n "$ac_ct_CC" && break
4439 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4440 See \`config.log' for more details." >&5
4441 echo "$as_me: error: no acceptable C compiler found in \$PATH
4442 See \`config.log' for more details." >&2;}
4443 { (exit 1); exit 1; }; }
4445 # Provide some information about the compiler.
4446 echo "$as_me:$LINENO:" \
4447 "checking for C compiler version" >&5
4448 ac_compiler=`set X $ac_compile; echo $2`
4449 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4450 (eval $ac_compiler --version </dev/null >&5) 2>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }
4454 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4455 (eval $ac_compiler -v </dev/null >&5) 2>&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }
4459 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4460 (eval $ac_compiler -V </dev/null >&5) 2>&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }
4465 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4466 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4467 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 cat >conftest.$ac_ext <<_ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4488 rm -f conftest.$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>conftest.er1
4492 grep -v '^ *+' conftest.er1 >conftest.err
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -z "$ac_c_werror_flag"
4498 || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4521 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4522 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4523 GCC=`test $ac_compiler_gnu = yes && echo yes`
4524 ac_test_CFLAGS=${CFLAGS+set}
4525 ac_save_CFLAGS=$CFLAGS
4527 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4528 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4529 if test "${ac_cv_prog_cc_g+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 cat >conftest.$ac_ext <<_ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4547 rm -f conftest.$ac_objext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549 (eval $ac_compile) 2>conftest.er1
4551 grep -v '^ *+' conftest.er1 >conftest.err
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try='test -z "$ac_c_werror_flag"
4557 || test ! -s conftest.err'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try='test -s conftest.$ac_objext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4578 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4579 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4580 if test "$ac_test_CFLAGS" = set; then
4581 CFLAGS=$ac_save_CFLAGS
4582 elif test $ac_cv_prog_cc_g = yes; then
4583 if test "$GCC" = yes; then
4589 if test "$GCC" = yes; then
4595 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4596 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4597 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 ac_cv_prog_cc_stdc=no
4602 cat >conftest.$ac_ext <<_ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4610 #include <sys/types.h>
4611 #include <sys/stat.h>
4612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4613 struct buf { int x; };
4614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4615 static char *e (p, i)
4621 static char *f (char * (*g) (char **, int), char **p, ...)
4626 s = g (p, va_arg (v,int));
4631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4632 function prototypes and stuff, but not '\xHH' hex character constants.
4633 These don't provoke an error unfortunately, instead are silently treated
4634 as 'x'. The following induces an error, until -std1 is added to get
4635 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4636 array size at least. It's necessary to write '\x00'==0 to get something
4637 that's true only with -std1. */
4638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4640 int test (int i, double x);
4641 struct s1 {int (*f) (int a);};
4642 struct s2 {int (*f) (double a);};
4643 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4649 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4654 # Don't try gcc -ansi; that turns off useful extensions and
4655 # breaks some systems' header files.
4656 # AIX -qlanglvl=ansi
4657 # Ultrix and OSF/1 -std1
4658 # HP-UX 10.20 and later -Ae
4659 # HP-UX older versions -Aa -D_HPUX_SOURCE
4660 # SVR4 -Xc -D__EXTENSIONS__
4661 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4663 CC="$ac_save_CC $ac_arg"
4664 rm -f conftest.$ac_objext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4666 (eval $ac_compile) 2>conftest.er1
4668 grep -v '^ *+' conftest.er1 >conftest.err
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } &&
4673 { ac_try='test -z "$ac_c_werror_flag"
4674 || test ! -s conftest.err'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 ac_cv_prog_cc_stdc=$ac_arg
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4693 rm -f conftest.err conftest.$ac_objext
4695 rm -f conftest.$ac_ext conftest.$ac_objext
4700 case "x$ac_cv_prog_cc_stdc" in
4702 echo "$as_me:$LINENO: result: none needed" >&5
4703 echo "${ECHO_T}none needed" >&6 ;;
4705 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4706 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4707 CC="$CC $ac_cv_prog_cc_stdc" ;;
4710 # Some people use a C++ compiler to compile C. Since we use `exit',
4711 # in C++ we need to declare it. In case someone uses the same compiler
4712 # for both compiling C and C++ we need to have the C++ compiler decide
4713 # the declaration of exit, since it's the most demanding environment.
4714 cat >conftest.$ac_ext <<_ACEOF
4719 rm -f conftest.$ac_objext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721 (eval $ac_compile) 2>conftest.er1
4723 grep -v '^ *+' conftest.er1 >conftest.err
4725 cat conftest.err >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } &&
4728 { ac_try='test -z "$ac_c_werror_flag"
4729 || test ! -s conftest.err'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; } &&
4735 { ac_try='test -s conftest.$ac_objext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4741 for ac_declaration in \
4743 'extern "C" void std::exit (int) throw (); using std::exit;' \
4744 'extern "C" void std::exit (int); using std::exit;' \
4745 'extern "C" void exit (int) throw ();' \
4746 'extern "C" void exit (int);' \
4749 cat >conftest.$ac_ext <<_ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4769 grep -v '^ *+' conftest.er1 >conftest.err
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_c_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795 cat >conftest.$ac_ext <<_ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4814 grep -v '^ *+' conftest.er1 >conftest.err
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_c_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841 if test -n "$ac_declaration"; then
4842 echo '#ifdef __cplusplus' >>confdefs.h
4843 echo $ac_declaration >>confdefs.h
4844 echo '#endif' >>confdefs.h
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859 depcc="$CC" am_compiler_list=
4861 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4862 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4863 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4867 # We make a subdir and do the tests there. Otherwise we can end up
4868 # making bogus files that we don't know about and never remove. For
4869 # instance it was reported that on HP-UX the gcc test will end up
4870 # making a dummy file named `D' -- because `-MD' means `put the output
4873 # Copy depcomp to subdir because otherwise we won't find it if we're
4874 # using a relative directory.
4875 cp "$am_depcomp" conftest.dir
4877 # We will build objects and dependencies in a subdirectory because
4878 # it helps to detect inapplicable dependency modes. For instance
4879 # both Tru64's cc and ICC support -MD to output dependencies as a
4880 # side effect of compilation, but ICC will put the dependencies in
4881 # the current directory while Tru64 will put them in the object
4885 am_cv_CC_dependencies_compiler_type=none
4886 if test "$am_compiler_list" = ""; then
4887 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4889 for depmode in $am_compiler_list; do
4890 # Setup a source with many dependencies, because some compilers
4891 # like to wrap large dependency lists on column 80 (with \), and
4892 # we should not choose a depcomp mode which is confused by this.
4894 # We need to recreate these files for each test, as the compiler may
4895 # overwrite some of them when testing with obscure command lines.
4896 # This happens at least with the AIX C compiler.
4898 for i in 1 2 3 4 5 6; do
4899 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4900 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4901 # Solaris 8's {/usr,}/bin/sh.
4902 touch sub/conftst$i.h
4904 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4908 # after this tag, mechanisms are not by side-effect, so they'll
4909 # only be used when explicitly requested
4910 if test "x$enable_dependency_tracking" = xyes; then
4918 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4919 # mode. It turns out that the SunPro C++ compiler does not properly
4920 # handle `-M -o', and we need to detect this.
4921 if depmode=$depmode \
4922 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4923 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4924 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4925 >/dev/null 2>conftest.err &&
4926 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4927 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4928 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4929 # icc doesn't choke on unknown options, it will just issue warnings
4930 # or remarks (even with -Werror). So we grep stderr for any message
4931 # that says an option was ignored or not supported.
4932 # When given -MP, icc 7.0 and 7.1 complain thusly:
4933 # icc: Command line warning: ignoring option '-M'; no argument required
4934 # The diagnosis changed in icc 8.0:
4935 # icc: Command line remark: option '-MP' not supported
4936 if (grep 'ignoring option' conftest.err ||
4937 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4938 am_cv_CC_dependencies_compiler_type=$depmode
4947 am_cv_CC_dependencies_compiler_type=none
4951 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4952 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4953 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4958 test "x$enable_dependency_tracking" != xno \
4959 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4961 am__fastdepCC_FALSE='#'
4963 am__fastdepCC_TRUE='#'
4964 am__fastdepCC_FALSE=
4970 echo "$as_me:$LINENO: checking for X" >&5
4971 echo $ECHO_N "checking for X... $ECHO_C" >&6
4974 # Check whether --with-x or --without-x was given.
4975 if test "${with_x+set}" = set; then
4979 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4980 if test "x$with_x" = xno; then
4981 # The user explicitly disabled X.
4984 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4985 # Both variables are already set.
4988 if test "${ac_cv_have_x+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 # One or both of the vars are not set, and there is no cached value.
4992 ac_x_includes=no ac_x_libraries=no
4994 if mkdir conftest.dir; then
4996 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4997 cat >Imakefile <<'_ACEOF'
4999 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5001 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5003 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5004 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5005 for ac_extension in a so sl; do
5006 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5007 test -f $ac_im_libdir/libX11.$ac_extension; then
5008 ac_im_usrlibdir=$ac_im_libdir; break
5011 # Screen out bogus values from the imake configuration. They are
5012 # bogus both because they are the default anyway, and because
5013 # using them would break gcc on systems where it needs fixed includes.
5014 case $ac_im_incroot in
5016 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5018 case $ac_im_usrlibdir in
5020 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5027 # Standard set of common directories for X headers.
5028 # Check X11 before X11Rn because it is often a symlink to the current release.
5040 /usr/local/X11/include
5041 /usr/local/X11R6/include
5042 /usr/local/X11R5/include
5043 /usr/local/X11R4/include
5045 /usr/local/include/X11
5046 /usr/local/include/X11R6
5047 /usr/local/include/X11R5
5048 /usr/local/include/X11R4
5052 /usr/XFree86/include/X11
5056 /usr/unsupported/include
5058 /usr/local/x11r5/include
5059 /usr/lpp/Xamples/include
5061 /usr/openwin/include
5062 /usr/openwin/share/include'
5064 if test "$ac_x_includes" = no; then
5065 # Guess where to find include files, by looking for Intrinsic.h.
5066 # First, try using that file with no special directory specified.
5067 cat >conftest.$ac_ext <<_ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 #include <X11/Intrinsic.h>
5075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5078 grep -v '^ *+' conftest.er1 >conftest.err
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } >/dev/null; then
5083 if test -s conftest.err; then
5084 ac_cpp_err=$ac_c_preproc_warn_flag
5085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5092 if test -z "$ac_cpp_err"; then
5093 # We can compile using X headers with no special include directory.
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5099 for ac_dir in $ac_x_header_dirs; do
5100 if test -r "$ac_dir/X11/Intrinsic.h"; then
5101 ac_x_includes=$ac_dir
5106 rm -f conftest.err conftest.$ac_ext
5107 fi # $ac_x_includes = no
5109 if test "$ac_x_libraries" = no; then
5110 # Check for the libraries.
5111 # See if we find them without any special options.
5112 # Don't add to $LIBS permanently.
5115 cat >conftest.$ac_ext <<_ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 #include <X11/Intrinsic.h>
5130 rm -f conftest.$ac_objext conftest$ac_exeext
5131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5132 (eval $ac_link) 2>conftest.er1
5134 grep -v '^ *+' conftest.er1 >conftest.err
5136 cat conftest.err >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } &&
5139 { ac_try='test -z "$ac_c_werror_flag"
5140 || test ! -s conftest.err'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; } &&
5146 { ac_try='test -s conftest$ac_exeext'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; }; then
5153 # We can link X programs with no special library path.
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5160 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5162 # Don't even attempt the hair of trying to link an X program!
5163 for ac_extension in a so sl; do
5164 if test -r $ac_dir/libXt.$ac_extension; then
5165 ac_x_libraries=$ac_dir
5171 rm -f conftest.err conftest.$ac_objext \
5172 conftest$ac_exeext conftest.$ac_ext
5173 fi # $ac_x_libraries = no
5175 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5176 # Didn't find X anywhere. Cache the known absence of X.
5177 ac_cv_have_x="have_x=no"
5179 # Record where we found X for the cache.
5180 ac_cv_have_x="have_x=yes \
5181 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5186 eval "$ac_cv_have_x"
5189 if test "$have_x" != yes; then
5190 echo "$as_me:$LINENO: result: $have_x" >&5
5191 echo "${ECHO_T}$have_x" >&6
5194 # If each of the values was on the command line, it overrides each guess.
5195 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5196 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5197 # Update the cache value to reflect the command line values.
5198 ac_cv_have_x="have_x=yes \
5199 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5200 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5201 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5204 if test $have_x != "yes"; then
5205 echo "Sorry, X is very much needed"
5209 cat >>confdefs.h <<\_ACEOF
5215 if test "$x_libraries" != ""; then
5216 LDFLAGS="$LDFLAGS -L$x_libraries"
5219 if test "$x_includes" != ""; then
5220 CFLAGS="$CFLAGS -Wall -I$x_includes"
5224 if test "$want_xft" = "yes"; then
5225 # Extract the first word of "xft-config", so it can be a program name with args.
5226 set dummy xft-config; ac_word=$2
5227 echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229 if test "${ac_cv_path_XFTCONFIG+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 ac_cv_path_XFTCONFIG="$XFTCONFIG" # Let the user override the test with a path.
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_path_XFTCONFIG="$as_dir/$ac_word$ac_exec_ext"
5245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 XFTCONFIG=$ac_cv_path_XFTCONFIG
5256 if test -n "$XFTCONFIG"; then
5257 echo "$as_me:$LINENO: result: $XFTCONFIG" >&5
5258 echo "${ECHO_T}$XFTCONFIG" >&6
5260 echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6
5264 if test x$XFTCONFIG != x; then
5266 if test "x$XFT_MISSING" = xyes; then
5267 { { echo "$as_me:$LINENO: error: something went wrong when checking for Xft, you're probably missing headers or it's not installed" >&5
5268 echo "$as_me: error: something went wrong when checking for Xft, you're probably missing headers or it's not installed" >&2;}
5269 { (exit 1); exit 1; }; }
5273 cat >>confdefs.h <<\_ACEOF
5277 CFLAGS="$CFLAGS `$XFTCONFIG --cflags`"
5278 XFT_LIBS=`$XFTCONFIG --libs`
5285 if test x$WANT_KVM = xyes; then
5286 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
5287 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
5288 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 ac_check_lib_save_LIBS=$LIBS
5293 cat >conftest.$ac_ext <<_ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5300 /* Override any gcc2 internal prototype to avoid an error. */
5304 /* We use char because int might match the return type of a gcc2
5305 builtin and then its argument prototype would still apply. */
5315 rm -f conftest.$ac_objext conftest$ac_exeext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5317 (eval $ac_link) 2>conftest.er1
5319 grep -v '^ *+' conftest.er1 >conftest.err
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -z "$ac_c_werror_flag"
5325 || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest$ac_exeext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 ac_cv_lib_kvm_kvm_open=yes
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 ac_cv_lib_kvm_kvm_open=no
5344 rm -f conftest.err conftest.$ac_objext \
5345 conftest$ac_exeext conftest.$ac_ext
5346 LIBS=$ac_check_lib_save_LIBS
5348 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
5349 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
5350 if test $ac_cv_lib_kvm_kvm_open = yes; then
5353 { { echo "$as_me:$LINENO: error: Could not find kvm_open in -lkvm." >&5
5354 echo "$as_me: error: Could not find kvm_open in -lkvm." >&2;}
5355 { (exit 1); exit 1; }; }
5362 if test x$WANT_OSSLIB = xyes; then
5363 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5364 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5365 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 ac_check_lib_save_LIBS=$LIBS
5369 LIBS="-lossaudio $LIBS"
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5377 /* Override any gcc2 internal prototype to avoid an error. */
5381 /* We use char because int might match the return type of a gcc2
5382 builtin and then its argument prototype would still apply. */
5392 rm -f conftest.$ac_objext conftest$ac_exeext
5393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5394 (eval $ac_link) 2>conftest.er1
5396 grep -v '^ *+' conftest.er1 >conftest.err
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } &&
5401 { ac_try='test -z "$ac_c_werror_flag"
5402 || test ! -s conftest.err'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; } &&
5408 { ac_try='test -s conftest$ac_exeext'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; }; then
5414 ac_cv_lib_ossaudio__oss_ioctl=yes
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.$ac_ext >&5
5419 ac_cv_lib_ossaudio__oss_ioctl=no
5421 rm -f conftest.err conftest.$ac_objext \
5422 conftest$ac_exeext conftest.$ac_ext
5423 LIBS=$ac_check_lib_save_LIBS
5425 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5426 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5427 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5428 LIBS="$LIBS -lossaudio"
5430 { { echo "$as_me:$LINENO: error: Could not find oss_ioctl in -lossaudio." >&5
5431 echo "$as_me: error: Could not find oss_ioctl in -lossaudio." >&2;}
5432 { (exit 1); exit 1; }; }
5447 for ac_header in signal.h unistd.h X11/Xlib.h sys/utsname.h sys/stat.h linux/soundcard.h dirent.h
5449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5451 echo "$as_me:$LINENO: checking for $ac_header" >&5
5452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5459 # Is the header compilable?
5460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5462 cat >conftest.$ac_ext <<_ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 $ac_includes_default
5469 #include <$ac_header>
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5475 grep -v '^ *+' conftest.er1 >conftest.err
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_c_werror_flag"
5481 || test ! -s conftest.err'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; } &&
5487 { ac_try='test -s conftest.$ac_objext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_header_compiler=yes
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 ac_header_compiler=no
5500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5502 echo "${ECHO_T}$ac_header_compiler" >&6
5504 # Is the header present?
5505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5513 #include <$ac_header>
5515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5518 grep -v '^ *+' conftest.er1 >conftest.err
5520 cat conftest.err >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } >/dev/null; then
5523 if test -s conftest.err; then
5524 ac_cpp_err=$ac_c_preproc_warn_flag
5525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5532 if test -z "$ac_cpp_err"; then
5533 ac_header_preproc=yes
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5538 ac_header_preproc=no
5540 rm -f conftest.err conftest.$ac_ext
5541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5542 echo "${ECHO_T}$ac_header_preproc" >&6
5544 # So? What about this header?
5545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5551 ac_header_preproc=yes
5554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5568 ## ------------------------------------------ ##
5569 ## Report this to the AC_PACKAGE_NAME lists. ##
5570 ## ------------------------------------------ ##
5573 sed "s/^/$as_me: WARNING: /" >&2
5576 echo "$as_me:$LINENO: checking for $ac_header" >&5
5577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 eval "$as_ac_Header=\$ac_header_preproc"
5583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5588 cat >>confdefs.h <<_ACEOF
5589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5599 for ac_header in sys/statfs.h sys/param.h sys/mount.h
5601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5603 echo "$as_me:$LINENO: checking for $ac_header" >&5
5604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5611 # Is the header compilable?
5612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5614 cat >conftest.$ac_ext <<_ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5621 #include <$ac_header>
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>conftest.er1
5627 grep -v '^ *+' conftest.er1 >conftest.err
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try='test -z "$ac_c_werror_flag"
5633 || test ! -s conftest.err'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; } &&
5639 { ac_try='test -s conftest.$ac_objext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 ac_header_compiler=yes
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5650 ac_header_compiler=no
5652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5654 echo "${ECHO_T}$ac_header_compiler" >&6
5656 # Is the header present?
5657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5659 cat >conftest.$ac_ext <<_ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 #include <$ac_header>
5667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } >/dev/null; then
5675 if test -s conftest.err; then
5676 ac_cpp_err=$ac_c_preproc_warn_flag
5677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5684 if test -z "$ac_cpp_err"; then
5685 ac_header_preproc=yes
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5690 ac_header_preproc=no
5692 rm -f conftest.err conftest.$ac_ext
5693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5694 echo "${ECHO_T}$ac_header_preproc" >&6
5696 # So? What about this header?
5697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5703 ac_header_preproc=yes
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5720 ## ------------------------------------------ ##
5721 ## Report this to the AC_PACKAGE_NAME lists. ##
5722 ## ------------------------------------------ ##
5725 sed "s/^/$as_me: WARNING: /" >&2
5728 echo "$as_me:$LINENO: checking for $ac_header" >&5
5729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 eval "$as_ac_Header=\$ac_header_preproc"
5735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5740 cat >>confdefs.h <<_ACEOF
5741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5750 for ac_header in proc/procps.h proc/readproc.h
5752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5754 echo "$as_me:$LINENO: checking for $ac_header" >&5
5755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5762 # Is the header compilable?
5763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5765 cat >conftest.$ac_ext <<_ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 $ac_includes_default
5772 #include <$ac_header>
5774 rm -f conftest.$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>conftest.er1
5778 grep -v '^ *+' conftest.er1 >conftest.err
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -z "$ac_c_werror_flag"
5784 || test ! -s conftest.err'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 ac_header_compiler=yes
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5801 ac_header_compiler=no
5803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5805 echo "${ECHO_T}$ac_header_compiler" >&6
5807 # Is the header present?
5808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5810 cat >conftest.$ac_ext <<_ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 #include <$ac_header>
5818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5821 grep -v '^ *+' conftest.er1 >conftest.err
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } >/dev/null; then
5826 if test -s conftest.err; then
5827 ac_cpp_err=$ac_c_preproc_warn_flag
5828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5835 if test -z "$ac_cpp_err"; then
5836 ac_header_preproc=yes
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 ac_header_preproc=no
5843 rm -f conftest.err conftest.$ac_ext
5844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5845 echo "${ECHO_T}$ac_header_preproc" >&6
5847 # So? What about this header?
5848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5854 ac_header_preproc=yes
5857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5871 ## ------------------------------------------ ##
5872 ## Report this to the AC_PACKAGE_NAME lists. ##
5873 ## ------------------------------------------ ##
5876 sed "s/^/$as_me: WARNING: /" >&2
5879 echo "$as_me:$LINENO: checking for $ac_header" >&5
5880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 eval "$as_ac_Header=\$ac_header_preproc"
5886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5891 cat >>confdefs.h <<_ACEOF
5892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5901 if test "x$PROCPS_MISSING" = xyes; then
5902 { { echo "$as_me:$LINENO: error: something went wrong when checking for procps, you're probably missing the necessary headers" >&5
5903 echo "$as_me: error: something went wrong when checking for procps, you're probably missing the necessary headers" >&2;}
5904 { (exit 1); exit 1; }; }
5908 # Extract the first word of "help2man", so it can be a program name with args.
5909 set dummy help2man; ac_word=$2
5910 echo "$as_me:$LINENO: checking for $ac_word" >&5
5911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912 if test "${ac_cv_path_HELP2MAN+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 HELP2MAN=$ac_cv_path_HELP2MAN
5939 if test -n "$HELP2MAN"; then
5940 echo "$as_me:$LINENO: result: $HELP2MAN" >&5
5941 echo "${ECHO_T}$HELP2MAN" >&6
5943 echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5949 if test x$HELP2MAN != x; then
5951 HAVE_HELP2MAN_FALSE='#'
5953 HAVE_HELP2MAN_TRUE='#'
5954 HAVE_HELP2MAN_FALSE=
5959 if test x$WANT_SYSINFO = xyes; then
5961 echo "$as_me:$LINENO: checking for sysinfo" >&5
5962 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #include <sys/types.h>
5970 #include <sys/sysinfo.h>
5974 struct sysinfo s; sysinfo(&s); (void) s.uptime;
5979 rm -f conftest.$ac_objext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5981 (eval $ac_compile) 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try='test -z "$ac_c_werror_flag"
5989 || test ! -s conftest.err'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; } &&
5995 { ac_try='test -s conftest.$ac_objext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 echo "$as_me:$LINENO: result: yes" >&5
6002 echo "${ECHO_T}yes" >&6; dah=yes
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 echo "$as_me:$LINENO: result: not usable" >&5
6008 echo "${ECHO_T}not usable" >&6; dah=no
6010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6012 if test x$dah = xyes; then
6014 cat >>confdefs.h <<\_ACEOF
6015 #define HAVE_SYSINFO 1
6022 if test x$WANT_KSTAT = xyes; then
6024 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
6025 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
6026 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 ac_check_lib_save_LIBS=$LIBS
6030 LIBS="-lkstat $LIBS"
6031 cat >conftest.$ac_ext <<_ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6038 /* Override any gcc2 internal prototype to avoid an error. */
6042 /* We use char because int might match the return type of a gcc2
6043 builtin and then its argument prototype would still apply. */
6053 rm -f conftest.$ac_objext conftest$ac_exeext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6055 (eval $ac_link) 2>conftest.er1
6057 grep -v '^ *+' conftest.er1 >conftest.err
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -z "$ac_c_werror_flag"
6063 || test ! -s conftest.err'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try='test -s conftest$ac_exeext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 ac_cv_lib_kstat_kstat_open=yes
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6080 ac_cv_lib_kstat_kstat_open=no
6082 rm -f conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext conftest.$ac_ext
6084 LIBS=$ac_check_lib_save_LIBS
6086 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
6087 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
6088 if test $ac_cv_lib_kstat_kstat_open = yes; then
6093 if test x$dah = xyes; then
6095 cat >>confdefs.h <<\_ACEOF
6096 #define HAVE_KSTAT 1
6099 LDFLAGS="$LDFLAGS -lkstat"
6106 echo "$as_me:$LINENO: checking for getloadavg" >&5
6107 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
6108 cat >conftest.$ac_ext <<_ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6118 double v[3]; getloadavg(v, 3);
6123 rm -f conftest.$ac_objext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6125 (eval $ac_compile) 2>conftest.er1
6127 grep -v '^ *+' conftest.er1 >conftest.err
6129 cat conftest.err >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try='test -z "$ac_c_werror_flag"
6133 || test ! -s conftest.err'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; } &&
6139 { ac_try='test -s conftest.$ac_objext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 echo "$as_me:$LINENO: result: yes" >&5
6146 echo "${ECHO_T}yes" >&6
6148 cat >>confdefs.h <<\_ACEOF
6149 #define HAVE_GETLOADAVG 1
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6
6159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6163 for ac_func in popen
6165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6166 echo "$as_me:$LINENO: checking for $ac_func" >&5
6167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6168 if eval "test \"\${$as_ac_var+set}\" = set"; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 cat >conftest.$ac_ext <<_ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6179 #define $ac_func innocuous_$ac_func
6181 /* System header to define __stub macros and hopefully few prototypes,
6182 which can conflict with char $ac_func (); below.
6183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6184 <limits.h> exists even on freestanding compilers. */
6187 # include <limits.h>
6189 # include <assert.h>
6194 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6202 /* The GNU C library defines this for functions which it implements
6203 to always fail with ENOSYS. Some functions are actually named
6204 something starting with __ and the normal name is an alias. */
6205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6208 char (*f) () = $ac_func;
6217 return f != $ac_func;
6222 rm -f conftest.$ac_objext conftest$ac_exeext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224 (eval $ac_link) 2>conftest.er1
6226 grep -v '^ *+' conftest.er1 >conftest.err
6228 cat conftest.err >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } &&
6231 { ac_try='test -z "$ac_c_werror_flag"
6232 || test ! -s conftest.err'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; } &&
6238 { ac_try='test -s conftest$ac_exeext'
6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; }; then
6244 eval "$as_ac_var=yes"
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6249 eval "$as_ac_var=no"
6251 rm -f conftest.err conftest.$ac_objext \
6252 conftest$ac_exeext conftest.$ac_ext
6254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6256 if test `eval echo '${'$as_ac_var'}'` = yes; then
6257 cat >>confdefs.h <<_ACEOF
6258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6266 CFLAGS="$CFLAGS -Wall -W"
6272 ac_config_files="$ac_config_files Makefile"
6273 cat >confcache <<\_ACEOF
6274 # This file is a shell script that caches the results of configure
6275 # tests run on this system so they can be shared between configure
6276 # scripts and configure runs, see configure's option --config-cache.
6277 # It is not useful on other systems. If it contains results you don't
6278 # want to keep, you may remove or edit it.
6280 # config.status only pays attention to the cache file if you give it
6281 # the --recheck option to rerun configure.
6283 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6284 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6289 # The following way of writing the cache mishandles newlines in values,
6290 # but we know of no workaround that is simple, portable, and efficient.
6291 # So, don't put newlines in cache variables' values.
6292 # Ultrix sh set writes to stderr and can't be redirected directly,
6293 # and sets the high bit in the cache file unless we assign to the vars.
6296 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6298 # `set' does not quote correctly, so add quotes (double-quote
6299 # substitution turns \\\\ into \\, and sed turns \\ into \).
6302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6305 # `set' quotes correctly as required by POSIX, so do not add quotes.
6307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6316 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6318 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6319 if test -w $cache_file; then
6320 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6321 cat confcache >$cache_file
6323 echo "not updating unwritable cache $cache_file"
6328 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6329 # Let make expand exec_prefix.
6330 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6334 # trailing colons and then remove the whole line if VPATH becomes empty
6335 # (actually we leave an empty line to preserve line numbers).
6336 if test "x$srcdir" = x.; then
6337 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6338 s/:*\$(srcdir):*/:/;
6339 s/:*\${srcdir}:*/:/;
6341 s/^\([^=]*=[ ]*\):*/\1/;
6347 DEFS=-DHAVE_CONFIG_H
6351 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6352 # 1. Remove the extension, and $U if already installed.
6353 ac_i=`echo "$ac_i" |
6354 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6356 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6357 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6361 LTLIBOBJS=$ac_ltlibobjs
6364 if test -z "${BUILD_LINUX_TRUE}" && test -z "${BUILD_LINUX_FALSE}"; then
6365 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUX\" was never defined.
6366 Usually this means the macro was only invoked conditionally." >&5
6367 echo "$as_me: error: conditional \"BUILD_LINUX\" was never defined.
6368 Usually this means the macro was only invoked conditionally." >&2;}
6369 { (exit 1); exit 1; }; }
6371 if test -z "${BUILD_SOLARIS_TRUE}" && test -z "${BUILD_SOLARIS_FALSE}"; then
6372 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SOLARIS\" was never defined.
6373 Usually this means the macro was only invoked conditionally." >&5
6374 echo "$as_me: error: conditional \"BUILD_SOLARIS\" was never defined.
6375 Usually this means the macro was only invoked conditionally." >&2;}
6376 { (exit 1); exit 1; }; }
6378 if test -z "${BUILD_FREEBSD_TRUE}" && test -z "${BUILD_FREEBSD_FALSE}"; then
6379 { { echo "$as_me:$LINENO: error: conditional \"BUILD_FREEBSD\" was never defined.
6380 Usually this means the macro was only invoked conditionally." >&5
6381 echo "$as_me: error: conditional \"BUILD_FREEBSD\" was never defined.
6382 Usually this means the macro was only invoked conditionally." >&2;}
6383 { (exit 1); exit 1; }; }
6385 if test -z "${BUILD_NETBSD_TRUE}" && test -z "${BUILD_NETBSD_FALSE}"; then
6386 { { echo "$as_me:$LINENO: error: conditional \"BUILD_NETBSD\" was never defined.
6387 Usually this means the macro was only invoked conditionally." >&5
6388 echo "$as_me: error: conditional \"BUILD_NETBSD\" was never defined.
6389 Usually this means the macro was only invoked conditionally." >&2;}
6390 { (exit 1); exit 1; }; }
6392 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6393 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6394 Usually this means the macro was only invoked conditionally." >&5
6395 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6396 Usually this means the macro was only invoked conditionally." >&2;}
6397 { (exit 1); exit 1; }; }
6399 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6400 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6401 Usually this means the macro was only invoked conditionally." >&5
6402 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6403 Usually this means the macro was only invoked conditionally." >&2;}
6404 { (exit 1); exit 1; }; }
6406 if test -z "${BUILD_SETI_TRUE}" && test -z "${BUILD_SETI_FALSE}"; then
6407 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SETI\" was never defined.
6408 Usually this means the macro was only invoked conditionally." >&5
6409 echo "$as_me: error: conditional \"BUILD_SETI\" was never defined.
6410 Usually this means the macro was only invoked conditionally." >&2;}
6411 { (exit 1); exit 1; }; }
6413 if test -z "${BUILD_MPD_TRUE}" && test -z "${BUILD_MPD_FALSE}"; then
6414 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MPD\" was never defined.
6415 Usually this means the macro was only invoked conditionally." >&5
6416 echo "$as_me: error: conditional \"BUILD_MPD\" was never defined.
6417 Usually this means the macro was only invoked conditionally." >&2;}
6418 { (exit 1); exit 1; }; }
6420 if test -z "${BUILD_CAIRO_TRUE}" && test -z "${BUILD_CAIRO_FALSE}"; then
6421 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CAIRO\" was never defined.
6422 Usually this means the macro was only invoked conditionally." >&5
6423 echo "$as_me: error: conditional \"BUILD_CAIRO\" was never defined.
6424 Usually this means the macro was only invoked conditionally." >&2;}
6425 { (exit 1); exit 1; }; }
6427 if test -z "${BUILD_METAR_TRUE}" && test -z "${BUILD_METAR_FALSE}"; then
6428 { { echo "$as_me:$LINENO: error: conditional \"BUILD_METAR\" was never defined.
6429 Usually this means the macro was only invoked conditionally." >&5
6430 echo "$as_me: error: conditional \"BUILD_METAR\" was never defined.
6431 Usually this means the macro was only invoked conditionally." >&2;}
6432 { (exit 1); exit 1; }; }
6434 if test -z "${BUILD_MLDONKEY_TRUE}" && test -z "${BUILD_MLDONKEY_FALSE}"; then
6435 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MLDONKEY\" was never defined.
6436 Usually this means the macro was only invoked conditionally." >&5
6437 echo "$as_me: error: conditional \"BUILD_MLDONKEY\" was never defined.
6438 Usually this means the macro was only invoked conditionally." >&2;}
6439 { (exit 1); exit 1; }; }
6441 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6442 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6443 Usually this means the macro was only invoked conditionally." >&5
6444 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6445 Usually this means the macro was only invoked conditionally." >&2;}
6446 { (exit 1); exit 1; }; }
6448 if test -z "${HAVE_HELP2MAN_TRUE}" && test -z "${HAVE_HELP2MAN_FALSE}"; then
6449 { { echo "$as_me:$LINENO: error: conditional \"HAVE_HELP2MAN\" was never defined.
6450 Usually this means the macro was only invoked conditionally." >&5
6451 echo "$as_me: error: conditional \"HAVE_HELP2MAN\" was never defined.
6452 Usually this means the macro was only invoked conditionally." >&2;}
6453 { (exit 1); exit 1; }; }
6456 : ${CONFIG_STATUS=./config.status}
6457 ac_clean_files_save=$ac_clean_files
6458 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6459 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6460 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6461 cat >$CONFIG_STATUS <<_ACEOF
6463 # Generated by $as_me.
6464 # Run this file to recreate the current configuration.
6465 # Compiler output produced by configure, useful for debugging
6466 # configure, is in config.log if it exists.
6471 SHELL=\${CONFIG_SHELL-$SHELL}
6474 cat >>$CONFIG_STATUS <<\_ACEOF
6475 ## --------------------- ##
6476 ## M4sh Initialization. ##
6477 ## --------------------- ##
6479 # Be Bourne compatible
6480 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6483 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6484 # is contrary to our usage. Disable this feature.
6485 alias -g '${1+"$@"}'='"$@"'
6486 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6489 DUALCASE=1; export DUALCASE # for MKS sh
6491 # Support unset when possible.
6492 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6499 # Work around bugs in pre-3.0 UWIN ksh.
6500 $as_unset ENV MAIL MAILPATH
6507 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6508 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6509 LC_TELEPHONE LC_TIME
6511 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6512 eval $as_var=C; export $as_var
6518 # Required to use basename.
6519 if expr a : '\(a\)' >/dev/null 2>&1; then
6525 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6526 as_basename=basename
6532 # Name of the executable.
6533 as_me=`$as_basename "$0" ||
6534 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6535 X"$0" : 'X\(//\)$' \| \
6536 X"$0" : 'X\(/\)$' \| \
6537 . : '\(.\)' 2>/dev/null ||
6539 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6540 /^X\/\(\/\/\)$/{ s//\1/; q; }
6541 /^X\/\(\/\).*/{ s//\1/; q; }
6545 # PATH needs CR, and LINENO needs CR and PATH.
6546 # Avoid depending upon Character Ranges.
6547 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6548 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6549 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6550 as_cr_digits='0123456789'
6551 as_cr_alnum=$as_cr_Letters$as_cr_digits
6553 # The user is always right.
6554 if test "${PATH_SEPARATOR+set}" != set; then
6555 echo "#! /bin/sh" >conf$$.sh
6556 echo "exit 0" >>conf$$.sh
6558 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6569 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6570 test "x$as_lineno_1" != "x$as_lineno_2" &&
6571 test "x$as_lineno_3" = "x$as_lineno_2" || {
6572 # Find who we are. Look in the path if we contain no path at all
6575 *[\\/]* ) as_myself=$0 ;;
6576 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 test -z "$as_dir" && as_dir=.
6581 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6586 # We did not find ourselves, most probably we were run as `sh COMMAND'
6587 # in which case we are not to be found in the path.
6588 if test "x$as_myself" = x; then
6591 if test ! -f "$as_myself"; then
6592 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6593 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6594 { (exit 1); exit 1; }; }
6596 case $CONFIG_SHELL in
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6602 test -z "$as_dir" && as_dir=.
6603 for as_base in sh bash ksh sh5; do
6606 if ("$as_dir/$as_base" -c '
6609 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6610 test "x$as_lineno_1" != "x$as_lineno_2" &&
6611 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6612 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6613 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6614 CONFIG_SHELL=$as_dir/$as_base
6616 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6624 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6625 # uniformly replaced by the line number. The first 'sed' inserts a
6626 # line-number line before each line; the second 'sed' does the real
6627 # work. The second script uses 'N' to pair each line-number line
6628 # with the numbered line, and appends trailing '-' during
6629 # substitution so that $LINENO is not a special case at line end.
6630 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6631 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6632 sed '=' <$as_myself |
6637 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6640 s,^['$as_cr_digits']*\n,,
6642 chmod +x $as_me.lineno ||
6643 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6644 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6645 { (exit 1); exit 1; }; }
6647 # Don't try to exec as it changes $[0], causing all sort of problems
6648 # (the dirname of $[0] is not the place where we might find the
6649 # original and so on. Autoconf is especially sensible to this).
6651 # Exit status is that of the last command.
6656 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6657 *c*,-n*) ECHO_N= ECHO_C='
6659 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6660 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6663 if expr a : '\(a\)' >/dev/null 2>&1; then
6669 rm -f conf$$ conf$$.exe conf$$.file
6671 if ln -s conf$$.file conf$$ 2>/dev/null; then
6672 # We could just check for DJGPP; but this test a) works b) is more generic
6673 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6674 if test -f conf$$.exe; then
6675 # Don't use ln at all; we don't have any links
6680 elif ln conf$$.file conf$$ 2>/dev/null; then
6685 rm -f conf$$ conf$$.exe conf$$.file
6687 if mkdir -p . 2>/dev/null; then
6690 test -d ./-p && rmdir ./-p
6694 as_executable_p="test -f"
6696 # Sed expression to map a string onto a valid CPP name.
6697 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6699 # Sed expression to map a string onto a valid variable name.
6700 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6704 # We need space, tab and new line, in precisely that order.
6714 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6715 # report actual input values of CONFIG_FILES etc. instead of their
6716 # values after options handling. Logging --version etc. is OK.
6720 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6721 ## Running $as_me. ##
6726 This file was extended by $as_me, which was
6727 generated by GNU Autoconf 2.59. Invocation command line was
6729 CONFIG_FILES = $CONFIG_FILES
6730 CONFIG_HEADERS = $CONFIG_HEADERS
6731 CONFIG_LINKS = $CONFIG_LINKS
6732 CONFIG_COMMANDS = $CONFIG_COMMANDS
6736 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6740 # Files that config.status was made for.
6741 if test -n "$ac_config_files"; then
6742 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6745 if test -n "$ac_config_headers"; then
6746 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6749 if test -n "$ac_config_links"; then
6750 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6753 if test -n "$ac_config_commands"; then
6754 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6757 cat >>$CONFIG_STATUS <<\_ACEOF
6760 \`$as_me' instantiates files from templates according to the
6761 current configuration.
6763 Usage: $0 [OPTIONS] [FILE]...
6765 -h, --help print this help, then exit
6766 -V, --version print version number, then exit
6767 -q, --quiet do not print progress messages
6768 -d, --debug don't remove temporary files
6769 --recheck update $as_me by reconfiguring in the same conditions
6770 --file=FILE[:TEMPLATE]
6771 instantiate the configuration file FILE
6772 --header=FILE[:TEMPLATE]
6773 instantiate the configuration header FILE
6775 Configuration files:
6778 Configuration headers:
6781 Configuration commands:
6784 Report bugs to <bug-autoconf@gnu.org>."
6787 cat >>$CONFIG_STATUS <<_ACEOF
6790 configured by $0, generated by GNU Autoconf 2.59,
6791 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6793 Copyright (C) 2003 Free Software Foundation, Inc.
6794 This config.status script is free software; the Free Software Foundation
6795 gives unlimited permission to copy, distribute and modify it."
6800 cat >>$CONFIG_STATUS <<\_ACEOF
6801 # If no file are specified by the user, then we need to provide default
6802 # value. By we need to know if files were specified by the user.
6808 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6809 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6817 *) # This is not an option, so the user has probably given explicit
6820 ac_need_defaults=false;;
6824 # Handling of the options.
6826 cat >>$CONFIG_STATUS <<\_ACEOF
6827 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6829 --version | --vers* | -V )
6830 echo "$ac_cs_version"; exit 0 ;;
6832 # Conflict between --help and --header
6833 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6834 Try \`$0 --help' for more information." >&5
6835 echo "$as_me: error: ambiguous option: $1
6836 Try \`$0 --help' for more information." >&2;}
6837 { (exit 1); exit 1; }; };;
6838 --help | --hel | -h )
6839 echo "$ac_cs_usage"; exit 0 ;;
6840 --debug | --d* | -d )
6842 --file | --fil | --fi | --f )
6844 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6845 ac_need_defaults=false;;
6846 --header | --heade | --head | --hea )
6848 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6849 ac_need_defaults=false;;
6850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6851 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6855 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6856 Try \`$0 --help' for more information." >&5
6857 echo "$as_me: error: unrecognized option: $1
6858 Try \`$0 --help' for more information." >&2;}
6859 { (exit 1); exit 1; }; } ;;
6861 *) ac_config_targets="$ac_config_targets $1" ;;
6867 ac_configure_extra_args=
6869 if $ac_cs_silent; then
6871 ac_configure_extra_args="$ac_configure_extra_args --silent"
6875 cat >>$CONFIG_STATUS <<_ACEOF
6876 if \$ac_cs_recheck; then
6877 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6878 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6883 cat >>$CONFIG_STATUS <<_ACEOF
6885 # INIT-COMMANDS section.
6888 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6894 cat >>$CONFIG_STATUS <<\_ACEOF
6895 for ac_config_target in $ac_config_targets
6897 case "$ac_config_target" in
6898 # Handling of arguments.
6899 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6900 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6901 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6902 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6903 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6904 { (exit 1); exit 1; }; };;
6908 # If the user did not use the arguments to specify the items to instantiate,
6909 # then the envvar interface is used. Set only those that are not.
6910 # We use the long form for the default assignment because of an extremely
6911 # bizarre bug on SunOS 4.1.3.
6912 if $ac_need_defaults; then
6913 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6914 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6915 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6918 # Have a temporary directory for convenience. Make it in the build tree
6919 # simply because there is no reason to put it here, and in addition,
6920 # creating and moving files from /tmp can sometimes cause problems.
6921 # Create a temporary directory, and hook for its removal unless debugging.
6924 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6925 trap '{ (exit 1); exit 1; }' 1 2 13 15
6928 # Create a (secure) tmp directory for tmp files.
6931 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6932 test -n "$tmp" && test -d "$tmp"
6935 tmp=./confstat$$-$RANDOM
6936 (umask 077 && mkdir $tmp)
6939 echo "$me: cannot create a temporary directory in ." >&2
6940 { (exit 1); exit 1; }
6945 cat >>$CONFIG_STATUS <<_ACEOF
6948 # CONFIG_FILES section.
6951 # No need to generate the scripts if there are no CONFIG_FILES.
6952 # This happens for instance when ./config.status config.h
6953 if test -n "\$CONFIG_FILES"; then
6954 # Protect against being on the right side of a sed subst in config.status.
6955 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6956 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6957 s,@SHELL@,$SHELL,;t t
6958 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6959 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6960 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6961 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6962 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6963 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6964 s,@exec_prefix@,$exec_prefix,;t t
6965 s,@prefix@,$prefix,;t t
6966 s,@program_transform_name@,$program_transform_name,;t t
6967 s,@bindir@,$bindir,;t t
6968 s,@sbindir@,$sbindir,;t t
6969 s,@libexecdir@,$libexecdir,;t t
6970 s,@datadir@,$datadir,;t t
6971 s,@sysconfdir@,$sysconfdir,;t t
6972 s,@sharedstatedir@,$sharedstatedir,;t t
6973 s,@localstatedir@,$localstatedir,;t t
6974 s,@libdir@,$libdir,;t t
6975 s,@includedir@,$includedir,;t t
6976 s,@oldincludedir@,$oldincludedir,;t t
6977 s,@infodir@,$infodir,;t t
6978 s,@mandir@,$mandir,;t t
6979 s,@build_alias@,$build_alias,;t t
6980 s,@host_alias@,$host_alias,;t t
6981 s,@target_alias@,$target_alias,;t t
6983 s,@ECHO_C@,$ECHO_C,;t t
6984 s,@ECHO_N@,$ECHO_N,;t t
6985 s,@ECHO_T@,$ECHO_T,;t t
6987 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6988 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6989 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6990 s,@CYGPATH_W@,$CYGPATH_W,;t t
6991 s,@PACKAGE@,$PACKAGE,;t t
6992 s,@VERSION@,$VERSION,;t t
6993 s,@ACLOCAL@,$ACLOCAL,;t t
6994 s,@AUTOCONF@,$AUTOCONF,;t t
6995 s,@AUTOMAKE@,$AUTOMAKE,;t t
6996 s,@AUTOHEADER@,$AUTOHEADER,;t t
6997 s,@MAKEINFO@,$MAKEINFO,;t t
6998 s,@install_sh@,$install_sh,;t t
6999 s,@STRIP@,$STRIP,;t t
7000 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7001 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7002 s,@mkdir_p@,$mkdir_p,;t t
7004 s,@SET_MAKE@,$SET_MAKE,;t t
7005 s,@am__leading_dot@,$am__leading_dot,;t t
7006 s,@AMTAR@,$AMTAR,;t t
7007 s,@am__tar@,$am__tar,;t t
7008 s,@am__untar@,$am__untar,;t t
7009 s,@BUILD_LINUX_TRUE@,$BUILD_LINUX_TRUE,;t t
7010 s,@BUILD_LINUX_FALSE@,$BUILD_LINUX_FALSE,;t t
7011 s,@BUILD_SOLARIS_TRUE@,$BUILD_SOLARIS_TRUE,;t t
7012 s,@BUILD_SOLARIS_FALSE@,$BUILD_SOLARIS_FALSE,;t t
7013 s,@BUILD_FREEBSD_TRUE@,$BUILD_FREEBSD_TRUE,;t t
7014 s,@BUILD_FREEBSD_FALSE@,$BUILD_FREEBSD_FALSE,;t t
7015 s,@BUILD_NETBSD_TRUE@,$BUILD_NETBSD_TRUE,;t t
7016 s,@BUILD_NETBSD_FALSE@,$BUILD_NETBSD_FALSE,;t t
7018 s,@CFLAGS@,$CFLAGS,;t t
7019 s,@LDFLAGS@,$LDFLAGS,;t t
7020 s,@CPPFLAGS@,$CPPFLAGS,;t t
7021 s,@ac_ct_CC@,$ac_ct_CC,;t t
7022 s,@EXEEXT@,$EXEEXT,;t t
7023 s,@OBJEXT@,$OBJEXT,;t t
7024 s,@DEPDIR@,$DEPDIR,;t t
7025 s,@am__include@,$am__include,;t t
7026 s,@am__quote@,$am__quote,;t t
7027 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7028 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7029 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7030 s,@CCDEPMODE@,$CCDEPMODE,;t t
7031 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7032 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7034 s,@EGREP@,$EGREP,;t t
7035 s,@BUILD_SETI_TRUE@,$BUILD_SETI_TRUE,;t t
7036 s,@BUILD_SETI_FALSE@,$BUILD_SETI_FALSE,;t t
7037 s,@BUILD_MPD_TRUE@,$BUILD_MPD_TRUE,;t t
7038 s,@BUILD_MPD_FALSE@,$BUILD_MPD_FALSE,;t t
7039 s,@BUILD_CAIRO_TRUE@,$BUILD_CAIRO_TRUE,;t t
7040 s,@BUILD_CAIRO_FALSE@,$BUILD_CAIRO_FALSE,;t t
7041 s,@CAIROCONFIG@,$CAIROCONFIG,;t t
7042 s,@BUILD_METAR_TRUE@,$BUILD_METAR_TRUE,;t t
7043 s,@BUILD_METAR_FALSE@,$BUILD_METAR_FALSE,;t t
7044 s,@BUILD_MLDONKEY_TRUE@,$BUILD_MLDONKEY_TRUE,;t t
7045 s,@BUILD_MLDONKEY_FALSE@,$BUILD_MLDONKEY_FALSE,;t t
7046 s,@XFTCONFIG@,$XFTCONFIG,;t t
7047 s,@HELP2MAN@,$HELP2MAN,;t t
7048 s,@HAVE_HELP2MAN_TRUE@,$HAVE_HELP2MAN_TRUE,;t t
7049 s,@HAVE_HELP2MAN_FALSE@,$HAVE_HELP2MAN_FALSE,;t t
7050 s,@X11_LIBS@,$X11_LIBS,;t t
7051 s,@XFT_LIBS@,$XFT_LIBS,;t t
7052 s,@LIBOBJS@,$LIBOBJS,;t t
7053 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7058 cat >>$CONFIG_STATUS <<\_ACEOF
7059 # Split the substitutions into bite-sized pieces for seds with
7060 # small command number limits, like on Digital OSF/1 and HP-UX.
7062 ac_sed_frag=1 # Number of current file.
7063 ac_beg=1 # First line for current file.
7064 ac_end=$ac_max_sed_lines # Line after last line for current file.
7067 while $ac_more_lines; do
7068 if test $ac_beg -gt 1; then
7069 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7071 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7073 if test ! -s $tmp/subs.frag; then
7076 # The purpose of the label and of the branching condition is to
7077 # speed up the sed processing (if there are no `@' at all, there
7078 # is no need to browse any of the substitutions).
7079 # These are the two extra sed commands mentioned above.
7081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7082 if test -z "$ac_sed_cmds"; then
7083 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7085 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7087 ac_sed_frag=`expr $ac_sed_frag + 1`
7089 ac_end=`expr $ac_end + $ac_max_sed_lines`
7092 if test -z "$ac_sed_cmds"; then
7095 fi # test -n "$CONFIG_FILES"
7098 cat >>$CONFIG_STATUS <<\_ACEOF
7099 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7100 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7102 - | *:- | *:-:* ) # input from stdin
7104 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7105 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7106 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7107 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7108 * ) ac_file_in=$ac_file.in ;;
7111 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7112 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7113 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7114 X"$ac_file" : 'X\(//\)[^/]' \| \
7115 X"$ac_file" : 'X\(//\)$' \| \
7116 X"$ac_file" : 'X\(/\)' \| \
7117 . : '\(.\)' 2>/dev/null ||
7119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7121 /^X\(\/\/\)$/{ s//\1/; q; }
7122 /^X\(\/\).*/{ s//\1/; q; }
7124 { if $as_mkdir_p; then
7129 while test ! -d "$as_dir"; do
7130 as_dirs="$as_dir $as_dirs"
7131 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7132 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7133 X"$as_dir" : 'X\(//\)[^/]' \| \
7134 X"$as_dir" : 'X\(//\)$' \| \
7135 X"$as_dir" : 'X\(/\)' \| \
7136 . : '\(.\)' 2>/dev/null ||
7138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7140 /^X\(\/\/\)$/{ s//\1/; q; }
7141 /^X\(\/\).*/{ s//\1/; q; }
7144 test ! -n "$as_dirs" || mkdir $as_dirs
7145 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7146 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7147 { (exit 1); exit 1; }; }; }
7151 if test "$ac_dir" != .; then
7152 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7153 # A "../" for each directory in $ac_dir_suffix.
7154 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7156 ac_dir_suffix= ac_top_builddir=
7160 .) # No --srcdir option. We are building in place.
7162 if test -z "$ac_top_builddir"; then
7165 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7167 [\\/]* | ?:[\\/]* ) # Absolute path.
7168 ac_srcdir=$srcdir$ac_dir_suffix;
7169 ac_top_srcdir=$srcdir ;;
7171 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7172 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7175 # Do not use `cd foo && pwd` to compute absolute paths, because
7176 # the directories may not exist.
7178 .) ac_abs_builddir="$ac_dir";;
7181 .) ac_abs_builddir=`pwd`;;
7182 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7183 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7186 case $ac_abs_builddir in
7187 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7189 case ${ac_top_builddir}. in
7190 .) ac_abs_top_builddir=$ac_abs_builddir;;
7191 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7192 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7195 case $ac_abs_builddir in
7196 .) ac_abs_srcdir=$ac_srcdir;;
7199 .) ac_abs_srcdir=$ac_abs_builddir;;
7200 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7201 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7204 case $ac_abs_builddir in
7205 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7207 case $ac_top_srcdir in
7208 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7209 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7210 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7217 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7220 if test x"$ac_file" != x-; then
7221 { echo "$as_me:$LINENO: creating $ac_file" >&5
7222 echo "$as_me: creating $ac_file" >&6;}
7225 # Let's still pretend it is `configure' which instantiates (i.e., don't
7226 # use $as_me), people would be surprised to read:
7227 # /* config.h. Generated by config.status. */
7228 if test x"$ac_file" = x-; then
7231 configure_input="$ac_file. "
7233 configure_input=$configure_input"Generated from `echo $ac_file_in |
7234 sed 's,.*/,,'` by configure."
7236 # First look for the input files in the build tree, otherwise in the
7238 ac_file_inputs=`IFS=:
7239 for f in $ac_file_in; do
7241 -) echo $tmp/stdin ;;
7243 # Absolute (can't be DOS-style, as IFS=:)
7244 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7245 echo "$as_me: error: cannot find input file: $f" >&2;}
7246 { (exit 1); exit 1; }; }
7249 if test -f "$f"; then
7252 elif test -f "$srcdir/$f"; then
7257 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7258 echo "$as_me: error: cannot find input file: $f" >&2;}
7259 { (exit 1); exit 1; }; }
7262 done` || { (exit 1); exit 1; }
7264 cat >>$CONFIG_STATUS <<_ACEOF
7268 cat >>$CONFIG_STATUS <<\_ACEOF
7270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7271 s,@configure_input@,$configure_input,;t t
7272 s,@srcdir@,$ac_srcdir,;t t
7273 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7274 s,@top_srcdir@,$ac_top_srcdir,;t t
7275 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7276 s,@builddir@,$ac_builddir,;t t
7277 s,@abs_builddir@,$ac_abs_builddir,;t t
7278 s,@top_builddir@,$ac_top_builddir,;t t
7279 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7280 s,@INSTALL@,$ac_INSTALL,;t t
7281 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7283 if test x"$ac_file" != x-; then
7284 mv $tmp/out $ac_file
7292 cat >>$CONFIG_STATUS <<\_ACEOF
7295 # CONFIG_HEADER section.
7298 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7299 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7301 # ac_d sets the value in "#define NAME VALUE" lines.
7302 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7303 ac_dB='[ ].*$,\1#\2'
7306 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7307 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7308 ac_uB='$,\1#\2define\3'
7312 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7315 - | *:- | *:-:* ) # input from stdin
7317 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7318 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7319 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7321 * ) ac_file_in=$ac_file.in ;;
7324 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7325 echo "$as_me: creating $ac_file" >&6;}
7327 # First look for the input files in the build tree, otherwise in the
7329 ac_file_inputs=`IFS=:
7330 for f in $ac_file_in; do
7332 -) echo $tmp/stdin ;;
7334 # Absolute (can't be DOS-style, as IFS=:)
7335 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7336 echo "$as_me: error: cannot find input file: $f" >&2;}
7337 { (exit 1); exit 1; }; }
7338 # Do quote $f, to prevent DOS paths from being IFS'd.
7341 if test -f "$f"; then
7344 elif test -f "$srcdir/$f"; then
7349 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7350 echo "$as_me: error: cannot find input file: $f" >&2;}
7351 { (exit 1); exit 1; }; }
7354 done` || { (exit 1); exit 1; }
7355 # Remove the trailing spaces.
7356 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7360 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7361 # `conftest.undefs', that substitutes the proper values into
7362 # config.h.in to produce config.h. The first handles `#define'
7363 # templates, and the second `#undef' templates.
7364 # And first: Protect against being on the right side of a sed subst in
7365 # config.status. Protect against being in an unquoted here document
7367 rm -f conftest.defines conftest.undefs
7368 # Using a here document instead of a string reduces the quoting nightmare.
7369 # Putting comments in sed scripts is not portable.
7371 # `end' is used to avoid that the second main sed command (meant for
7372 # 0-ary CPP macros) applies to n-ary macro definitions.
7373 # See the Autoconf documentation for `clear'.
7374 cat >confdef2sed.sed <<\_ACEOF
7379 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7381 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7384 # If some macros were called several times there might be several times
7385 # the same #defines, which is useless. Nevertheless, we may not want to
7386 # sort them, since we want the *last* AC-DEFINE to be honored.
7387 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7388 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7389 rm -f confdef2sed.sed
7391 # This sed command replaces #undef with comments. This is necessary, for
7392 # example, in the case of _POSIX_SOURCE, which is predefined and required
7393 # on some systems where configure will not decide to define it.
7394 cat >>conftest.undefs <<\_ACEOF
7395 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7398 # Break up conftest.defines because some shells have a limit on the size
7399 # of here documents, and old seds have small limits too (100 cmds).
7400 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7401 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7402 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7403 echo ' :' >>$CONFIG_STATUS
7405 while grep . conftest.defines >/dev/null
7407 # Write a limited-size here document to $tmp/defines.sed.
7408 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7409 # Speed up: don't consider the non `#define' lines.
7410 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7411 # Work around the forget-to-reset-the-flag bug.
7412 echo 't clr' >>$CONFIG_STATUS
7413 echo ': clr' >>$CONFIG_STATUS
7414 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7416 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7420 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7421 rm -f conftest.defines
7422 mv conftest.tail conftest.defines
7424 rm -f conftest.defines
7425 echo ' fi # grep' >>$CONFIG_STATUS
7426 echo >>$CONFIG_STATUS
7428 # Break up conftest.undefs because some shells have a limit on the size
7429 # of here documents, and old seds have small limits too (100 cmds).
7430 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7432 while grep . conftest.undefs >/dev/null
7434 # Write a limited-size here document to $tmp/undefs.sed.
7435 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7436 # Speed up: don't consider the non `#undef'
7437 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7438 # Work around the forget-to-reset-the-flag bug.
7439 echo 't clr' >>$CONFIG_STATUS
7440 echo ': clr' >>$CONFIG_STATUS
7441 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7443 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7447 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7448 rm -f conftest.undefs
7449 mv conftest.tail conftest.undefs
7451 rm -f conftest.undefs
7453 cat >>$CONFIG_STATUS <<\_ACEOF
7454 # Let's still pretend it is `configure' which instantiates (i.e., don't
7455 # use $as_me), people would be surprised to read:
7456 # /* config.h. Generated by config.status. */
7457 if test x"$ac_file" = x-; then
7458 echo "/* Generated by configure. */" >$tmp/config.h
7460 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7462 cat $tmp/in >>$tmp/config.h
7464 if test x"$ac_file" != x-; then
7465 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7466 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7467 echo "$as_me: $ac_file is unchanged" >&6;}
7469 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7470 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7471 X"$ac_file" : 'X\(//\)[^/]' \| \
7472 X"$ac_file" : 'X\(//\)$' \| \
7473 X"$ac_file" : 'X\(/\)' \| \
7474 . : '\(.\)' 2>/dev/null ||
7476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7477 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7478 /^X\(\/\/\)$/{ s//\1/; q; }
7479 /^X\(\/\).*/{ s//\1/; q; }
7481 { if $as_mkdir_p; then
7486 while test ! -d "$as_dir"; do
7487 as_dirs="$as_dir $as_dirs"
7488 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7489 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7490 X"$as_dir" : 'X\(//\)[^/]' \| \
7491 X"$as_dir" : 'X\(//\)$' \| \
7492 X"$as_dir" : 'X\(/\)' \| \
7493 . : '\(.\)' 2>/dev/null ||
7495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7497 /^X\(\/\/\)$/{ s//\1/; q; }
7498 /^X\(\/\).*/{ s//\1/; q; }
7501 test ! -n "$as_dirs" || mkdir $as_dirs
7502 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7503 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7504 { (exit 1); exit 1; }; }; }
7507 mv $tmp/config.h $ac_file
7513 # Compute $ac_file's index in $config_headers.
7515 for _am_header in $config_headers :; do
7517 $ac_file | $ac_file:* )
7520 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7523 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7524 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7525 X$ac_file : 'X\(//\)[^/]' \| \
7526 X$ac_file : 'X\(//\)$' \| \
7527 X$ac_file : 'X\(/\)' \| \
7528 . : '\(.\)' 2>/dev/null ||
7530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7532 /^X\(\/\/\)$/{ s//\1/; q; }
7533 /^X\(\/\).*/{ s//\1/; q; }
7534 s/.*/./; q'`/stamp-h$_am_stamp_count
7537 cat >>$CONFIG_STATUS <<\_ACEOF
7540 # CONFIG_COMMANDS section.
7542 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7543 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7544 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7545 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7546 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7547 X"$ac_dest" : 'X\(//\)[^/]' \| \
7548 X"$ac_dest" : 'X\(//\)$' \| \
7549 X"$ac_dest" : 'X\(/\)' \| \
7550 . : '\(.\)' 2>/dev/null ||
7552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7554 /^X\(\/\/\)$/{ s//\1/; q; }
7555 /^X\(\/\).*/{ s//\1/; q; }
7557 { if $as_mkdir_p; then
7562 while test ! -d "$as_dir"; do
7563 as_dirs="$as_dir $as_dirs"
7564 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7566 X"$as_dir" : 'X\(//\)[^/]' \| \
7567 X"$as_dir" : 'X\(//\)$' \| \
7568 X"$as_dir" : 'X\(/\)' \| \
7569 . : '\(.\)' 2>/dev/null ||
7571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7573 /^X\(\/\/\)$/{ s//\1/; q; }
7574 /^X\(\/\).*/{ s//\1/; q; }
7577 test ! -n "$as_dirs" || mkdir $as_dirs
7578 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7579 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7580 { (exit 1); exit 1; }; }; }
7584 if test "$ac_dir" != .; then
7585 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7586 # A "../" for each directory in $ac_dir_suffix.
7587 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7589 ac_dir_suffix= ac_top_builddir=
7593 .) # No --srcdir option. We are building in place.
7595 if test -z "$ac_top_builddir"; then
7598 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7600 [\\/]* | ?:[\\/]* ) # Absolute path.
7601 ac_srcdir=$srcdir$ac_dir_suffix;
7602 ac_top_srcdir=$srcdir ;;
7604 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7605 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7608 # Do not use `cd foo && pwd` to compute absolute paths, because
7609 # the directories may not exist.
7611 .) ac_abs_builddir="$ac_dir";;
7614 .) ac_abs_builddir=`pwd`;;
7615 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7616 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7619 case $ac_abs_builddir in
7620 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7622 case ${ac_top_builddir}. in
7623 .) ac_abs_top_builddir=$ac_abs_builddir;;
7624 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7625 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7628 case $ac_abs_builddir in
7629 .) ac_abs_srcdir=$ac_srcdir;;
7632 .) ac_abs_srcdir=$ac_abs_builddir;;
7633 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7634 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7637 case $ac_abs_builddir in
7638 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7640 case $ac_top_srcdir in
7641 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7642 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7643 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7648 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7649 echo "$as_me: executing $ac_dest commands" >&6;}
7651 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7652 # Strip MF so we end up with the name of the file.
7653 mf=`echo "$mf" | sed -e 's/:.*$//'`
7654 # Check whether this is an Automake generated Makefile or not.
7655 # We used to match only the files named `Makefile.in', but
7656 # some people rename them; so instead we look at the file content.
7657 # Grep'ing the first line is not enough: some people post-process
7658 # each Makefile.in and add a new line on top of each file to say so.
7659 # So let's grep whole file.
7660 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7661 dirpart=`(dirname "$mf") 2>/dev/null ||
7662 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7663 X"$mf" : 'X\(//\)[^/]' \| \
7664 X"$mf" : 'X\(//\)$' \| \
7665 X"$mf" : 'X\(/\)' \| \
7666 . : '\(.\)' 2>/dev/null ||
7668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7670 /^X\(\/\/\)$/{ s//\1/; q; }
7671 /^X\(\/\).*/{ s//\1/; q; }
7676 # Extract the definition of DEPDIR, am__include, and am__quote
7677 # from the Makefile without running `make'.
7678 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7679 test -z "$DEPDIR" && continue
7680 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7681 test -z "am__include" && continue
7682 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7683 # When using ansi2knr, U may be empty or an underscore; expand it
7684 U=`sed -n 's/^U = //p' < "$mf"`
7685 # Find all dependency output files, they are included files with
7686 # $(DEPDIR) in their names. We invoke sed twice because it is the
7687 # simplest approach to changing $(DEPDIR) to its actual value in the
7689 for file in `sed -n "
7690 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7691 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7692 # Make sure the directory exists.
7693 test -f "$dirpart/$file" && continue
7694 fdir=`(dirname "$file") 2>/dev/null ||
7695 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7696 X"$file" : 'X\(//\)[^/]' \| \
7697 X"$file" : 'X\(//\)$' \| \
7698 X"$file" : 'X\(/\)' \| \
7699 . : '\(.\)' 2>/dev/null ||
7701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7703 /^X\(\/\/\)$/{ s//\1/; q; }
7704 /^X\(\/\).*/{ s//\1/; q; }
7706 { if $as_mkdir_p; then
7707 mkdir -p $dirpart/$fdir
7709 as_dir=$dirpart/$fdir
7711 while test ! -d "$as_dir"; do
7712 as_dirs="$as_dir $as_dirs"
7713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7715 X"$as_dir" : 'X\(//\)[^/]' \| \
7716 X"$as_dir" : 'X\(//\)$' \| \
7717 X"$as_dir" : 'X\(/\)' \| \
7718 . : '\(.\)' 2>/dev/null ||
7720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7722 /^X\(\/\/\)$/{ s//\1/; q; }
7723 /^X\(\/\).*/{ s//\1/; q; }
7726 test ! -n "$as_dirs" || mkdir $as_dirs
7727 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7728 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7729 { (exit 1); exit 1; }; }; }
7731 # echo "creating $dirpart/$file"
7732 echo '# dummy' > "$dirpart/$file"
7740 cat >>$CONFIG_STATUS <<\_ACEOF
7742 { (exit 0); exit 0; }
7744 chmod +x $CONFIG_STATUS
7745 ac_clean_files=$ac_clean_files_save
7748 # configure is writing to config.log, and then calls config.status.
7749 # config.status does its own redirection, appending to config.log.
7750 # Unfortunately, on DOS this fails, as config.log is still kept open
7751 # by configure, so config.status won't be able to write to it; its
7752 # output is simply discarded. So we exec the FD to /dev/null,
7753 # effectively closing config.log, so it can be properly (re)opened and
7754 # appended to by config.status. When coming back to configure, we
7755 # need to make the FD available again.
7756 if test "$no_create" != yes; then
7758 ac_config_status_args=
7759 test "$silent" = yes &&
7760 ac_config_status_args="$ac_config_status_args --quiet"
7762 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7764 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7765 # would make configure fail if this is the last instruction.
7766 $ac_cs_success || { (exit 1); exit 1; }