configure fix, again
[monky] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
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 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
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
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
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 \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
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 ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
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
85
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
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
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
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
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
122     as_myself=$0
123   fi
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; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
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
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
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 |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
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; }; }
177
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).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
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}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="conky.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
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 BUILD_X11_TRUE BUILD_X11_FALSE XFTCONFIG HELP2MAN HAVE_HELP2MAN_TRUE HAVE_HELP2MAN_FALSE X11_LIBS XFT_LIBS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
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'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
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 ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
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" ;;
403
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'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
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 ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
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 ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
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 ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
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 ;;
465
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 ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
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 ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
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 ;;
512
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 ;;
519
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 ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
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 ;;
574
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 ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
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'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
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" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
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 ;;
618
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 ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
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'"
639     export $ac_envvar ;;
640
641   *)
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}
647     ;;
648
649   esac
650 done
651
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; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
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
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
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.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
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
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
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 ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
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; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
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}
754 ac_env_CC_value=$CC
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
773
774 #
775 # Report the --help message.
776 #
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.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
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.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
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 \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
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'.
814
815 For better control, use the options below.
816
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]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
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
838
839 X features:
840   --x-includes=DIR    X include files are in DIR
841   --x-libraries=DIR   X library files are in DIR
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847   cat <<\_ACEOF
848
849 Optional Features:
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
863   --enable-x11       enable if you want X11 support default=yes
864
865 Optional Packages:
866   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
867   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
868   --with-x                use the X Window System
869
870 Some influential environment variables:
871   CC          C compiler command
872   CFLAGS      C compiler flags
873   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
874               nonstandard directory <lib dir>
875   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
876               headers in a nonstandard directory <include dir>
877   CPP         C preprocessor
878
879 Use these variables to override the choices made by `configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
881
882 _ACEOF
883 fi
884
885 if test "$ac_init_help" = "recursive"; then
886   # If there are subdirs, report their specific --help.
887   ac_popdir=`pwd`
888   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889     test -d $ac_dir || continue
890     ac_builddir=.
891
892 if test "$ac_dir" != .; then
893   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894   # A "../" for each directory in $ac_dir_suffix.
895   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 else
897   ac_dir_suffix= ac_top_builddir=
898 fi
899
900 case $srcdir in
901   .)  # No --srcdir option.  We are building in place.
902     ac_srcdir=.
903     if test -z "$ac_top_builddir"; then
904        ac_top_srcdir=.
905     else
906        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907     fi ;;
908   [\\/]* | ?:[\\/]* )  # Absolute path.
909     ac_srcdir=$srcdir$ac_dir_suffix;
910     ac_top_srcdir=$srcdir ;;
911   *) # Relative path.
912     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913     ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 esac
915
916 # Do not use `cd foo && pwd` to compute absolute paths, because
917 # the directories may not exist.
918 case `pwd` in
919 .) ac_abs_builddir="$ac_dir";;
920 *)
921   case "$ac_dir" in
922   .) ac_abs_builddir=`pwd`;;
923   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924   *) ac_abs_builddir=`pwd`/"$ac_dir";;
925   esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *)
930   case ${ac_top_builddir}. in
931   .) ac_abs_top_builddir=$ac_abs_builddir;;
932   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934   esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_srcdir=$ac_srcdir;;
938 *)
939   case $ac_srcdir in
940   .) ac_abs_srcdir=$ac_abs_builddir;;
941   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943   esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *)
948   case $ac_top_srcdir in
949   .) ac_abs_top_srcdir=$ac_abs_builddir;;
950   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
952   esac;;
953 esac
954
955     cd $ac_dir
956     # Check for guested configure; otherwise get Cygnus style configure.
957     if test -f $ac_srcdir/configure.gnu; then
958       echo
959       $SHELL $ac_srcdir/configure.gnu  --help=recursive
960     elif test -f $ac_srcdir/configure; then
961       echo
962       $SHELL $ac_srcdir/configure  --help=recursive
963     elif test -f $ac_srcdir/configure.ac ||
964            test -f $ac_srcdir/configure.in; then
965       echo
966       $ac_configure --help
967     else
968       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969     fi
970     cd $ac_popdir
971   done
972 fi
973
974 test -n "$ac_init_help" && exit 0
975 if $ac_init_version; then
976   cat <<\_ACEOF
977
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982   exit 0
983 fi
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
988
989 It was created by $as_me, which was
990 generated by GNU Autoconf 2.59.  Invocation command line was
991
992   $ $0 $@
993
994 _ACEOF
995 {
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1000
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1009
1010 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1011 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1014 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1015 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1016 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1017
1018 _ASUNAME
1019
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1022 do
1023   IFS=$as_save_IFS
1024   test -z "$as_dir" && as_dir=.
1025   echo "PATH: $as_dir"
1026 done
1027
1028 } >&5
1029
1030 cat >&5 <<_ACEOF
1031
1032
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1036
1037 _ACEOF
1038
1039
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1051 do
1052   for ac_arg
1053   do
1054     case $ac_arg in
1055     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057     | -silent | --silent | --silen | --sile | --sil)
1058       continue ;;
1059     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061     esac
1062     case $ac_pass in
1063     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064     2)
1065       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066       if test $ac_must_keep_next = true; then
1067         ac_must_keep_next=false # Got value, back to normal.
1068       else
1069         case $ac_arg in
1070           *=* | --config-cache | -C | -disable-* | --disable-* \
1071           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073           | -with-* | --with-* | -without-* | --without-* | --x)
1074             case "$ac_configure_args0 " in
1075               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076             esac
1077             ;;
1078           -* ) ac_must_keep_next=true ;;
1079         esac
1080       fi
1081       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082       # Get rid of the leading space.
1083       ac_sep=" "
1084       ;;
1085     esac
1086   done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log.  We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097   # Save into config.log some information that might help in debugging.
1098   {
1099     echo
1100
1101     cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106     echo
1107     # The following way of writing the cache mishandles newlines in values,
1108 {
1109   (set) 2>&1 |
1110     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111     *ac_space=\ *)
1112       sed -n \
1113         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115       ;;
1116     *)
1117       sed -n \
1118         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119       ;;
1120     esac;
1121 }
1122     echo
1123
1124     cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129     echo
1130     for ac_var in $ac_subst_vars
1131     do
1132       eval ac_val=$`echo $ac_var`
1133       echo "$ac_var='"'"'$ac_val'"'"'"
1134     done | sort
1135     echo
1136
1137     if test -n "$ac_subst_files"; then
1138       cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143       echo
1144       for ac_var in $ac_subst_files
1145       do
1146         eval ac_val=$`echo $ac_var`
1147         echo "$ac_var='"'"'$ac_val'"'"'"
1148       done | sort
1149       echo
1150     fi
1151
1152     if test -s confdefs.h; then
1153       cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158       echo
1159       sed "/^$/d" confdefs.h | sort
1160       echo
1161     fi
1162     test "$ac_signal" != 0 &&
1163       echo "$as_me: caught signal $ac_signal"
1164     echo "$as_me: exit $exit_status"
1165   } >&5
1166   rm -f core *.core &&
1167   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168     exit $exit_status
1169      ' 0
1170 for ac_signal in 1 2 13 15; do
1171   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1174
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1179
1180 # Predefined preprocessor variables.
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1205
1206
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210   if test "x$prefix" != xNONE; then
1211     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212   else
1213     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214   fi
1215 fi
1216 for ac_site_file in $CONFIG_SITE; do
1217   if test -r "$ac_site_file"; then
1218     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220     sed 's/^/| /' "$ac_site_file" >&5
1221     . "$ac_site_file"
1222   fi
1223 done
1224
1225 if test -r "$cache_file"; then
1226   # Some versions of bash will fail to source /dev/null (special
1227   # files actually), so we avoid doing that.
1228   if test -f "$cache_file"; then
1229     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231     case $cache_file in
1232       [\\/]* | ?:[\\/]* ) . $cache_file;;
1233       *)                      . ./$cache_file;;
1234     esac
1235   fi
1236 else
1237   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239   >$cache_file
1240 fi
1241
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248   eval ac_new_set=\$ac_env_${ac_var}_set
1249   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250   eval ac_new_val="\$ac_env_${ac_var}_value"
1251   case $ac_old_set,$ac_new_set in
1252     set,)
1253       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255       ac_cache_corrupted=: ;;
1256     ,set)
1257       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259       ac_cache_corrupted=: ;;
1260     ,);;
1261     *)
1262       if test "x$ac_old_val" != "x$ac_new_val"; then
1263         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1266 echo "$as_me:   former value:  $ac_old_val" >&2;}
1267         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1268 echo "$as_me:   current value: $ac_new_val" >&2;}
1269         ac_cache_corrupted=:
1270       fi;;
1271   esac
1272   # Pass precious variables to config.status.
1273   if test "$ac_new_set" = set; then
1274     case $ac_new_val in
1275     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277     *) ac_arg=$ac_var=$ac_new_val ;;
1278     esac
1279     case " $ac_configure_args " in
1280       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1281       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282     esac
1283   fi
1284 done
1285 if $ac_cache_corrupted; then
1286   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290    { (exit 1); exit 1; }; }
1291 fi
1292
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318 am__api_version="1.9"
1319 ac_aux_dir=
1320 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1321   if test -f $ac_dir/install-sh; then
1322     ac_aux_dir=$ac_dir
1323     ac_install_sh="$ac_aux_dir/install-sh -c"
1324     break
1325   elif test -f $ac_dir/install.sh; then
1326     ac_aux_dir=$ac_dir
1327     ac_install_sh="$ac_aux_dir/install.sh -c"
1328     break
1329   elif test -f $ac_dir/shtool; then
1330     ac_aux_dir=$ac_dir
1331     ac_install_sh="$ac_aux_dir/shtool install -c"
1332     break
1333   fi
1334 done
1335 if test -z "$ac_aux_dir"; then
1336   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1337 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1338    { (exit 1); exit 1; }; }
1339 fi
1340 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1341 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1342 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343
1344 # Find a good install program.  We prefer a C program (faster),
1345 # so one script is as good as another.  But avoid the broken or
1346 # incompatible versions:
1347 # SysV /etc/install, /usr/sbin/install
1348 # SunOS /usr/etc/install
1349 # IRIX /sbin/install
1350 # AIX /bin/install
1351 # AmigaOS /C/install, which installs bootblocks on floppy discs
1352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1355 # OS/2's system install, which has a completely different semantic
1356 # ./install, which can be erroneously created by make from ./install.sh.
1357 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1358 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1359 if test -z "$INSTALL"; then
1360 if test "${ac_cv_path_install+set}" = set; then
1361   echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364 for as_dir in $PATH
1365 do
1366   IFS=$as_save_IFS
1367   test -z "$as_dir" && as_dir=.
1368   # Account for people who put trailing slashes in PATH elements.
1369 case $as_dir/ in
1370   ./ | .// | /cC/* | \
1371   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1372   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1373   /usr/ucb/* ) ;;
1374   *)
1375     # OSF1 and SCO ODT 3.0 have their own names for install.
1376     # Don't use installbsd from OSF since it installs stuff as root
1377     # by default.
1378     for ac_prog in ginstall scoinst install; do
1379       for ac_exec_ext in '' $ac_executable_extensions; do
1380         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1381           if test $ac_prog = install &&
1382             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383             # AIX install.  It has an incompatible calling convention.
1384             :
1385           elif test $ac_prog = install &&
1386             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1387             # program-specific install script used by HP pwplus--don't use.
1388             :
1389           else
1390             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1391             break 3
1392           fi
1393         fi
1394       done
1395     done
1396     ;;
1397 esac
1398 done
1399
1400
1401 fi
1402   if test "${ac_cv_path_install+set}" = set; then
1403     INSTALL=$ac_cv_path_install
1404   else
1405     # As a last resort, use the slow shell script.  We don't cache a
1406     # path for INSTALL within a source directory, because that will
1407     # break other packages using the cache if that directory is
1408     # removed, or if the path is relative.
1409     INSTALL=$ac_install_sh
1410   fi
1411 fi
1412 echo "$as_me:$LINENO: result: $INSTALL" >&5
1413 echo "${ECHO_T}$INSTALL" >&6
1414
1415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416 # It thinks the first close brace ends the variable substitution.
1417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418
1419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1420
1421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422
1423 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1424 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1425 # Just in case
1426 sleep 1
1427 echo timestamp > conftest.file
1428 # Do `set' in a subshell so we don't clobber the current shell's
1429 # arguments.  Must try -L first in case configure is actually a
1430 # symlink; some systems play weird games with the mod time of symlinks
1431 # (eg FreeBSD returns the mod time of the symlink's containing
1432 # directory).
1433 if (
1434    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1435    if test "$*" = "X"; then
1436       # -L didn't work.
1437       set X `ls -t $srcdir/configure conftest.file`
1438    fi
1439    rm -f conftest.file
1440    if test "$*" != "X $srcdir/configure conftest.file" \
1441       && test "$*" != "X conftest.file $srcdir/configure"; then
1442
1443       # If neither matched, then we have a broken ls.  This can happen
1444       # if, for instance, CONFIG_SHELL is bash and it inherits a
1445       # broken ls alias from the environment.  This has actually
1446       # happened.  Such a system could not be considered "sane".
1447       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1448 alias in your environment" >&5
1449 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1450 alias in your environment" >&2;}
1451    { (exit 1); exit 1; }; }
1452    fi
1453
1454    test "$2" = conftest.file
1455    )
1456 then
1457    # Ok.
1458    :
1459 else
1460    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1461 Check your system clock" >&5
1462 echo "$as_me: error: newly created file is older than distributed files!
1463 Check your system clock" >&2;}
1464    { (exit 1); exit 1; }; }
1465 fi
1466 echo "$as_me:$LINENO: result: yes" >&5
1467 echo "${ECHO_T}yes" >&6
1468 test "$program_prefix" != NONE &&
1469   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1470 # Use a double $ so make ignores it.
1471 test "$program_suffix" != NONE &&
1472   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1473 # Double any \ or $.  echo might interpret backslashes.
1474 # By default was `s,x,x', remove it if useless.
1475 cat <<\_ACEOF >conftest.sed
1476 s/[\\$]/&&/g;s/;s,x,x,$//
1477 _ACEOF
1478 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1479 rm conftest.sed
1480
1481 # expand $ac_aux_dir to an absolute path
1482 am_aux_dir=`cd $ac_aux_dir && pwd`
1483
1484 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1485 # Use eval to expand $SHELL
1486 if eval "$MISSING --run true"; then
1487   am_missing_run="$MISSING --run "
1488 else
1489   am_missing_run=
1490   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1491 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1492 fi
1493
1494 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1495   # We used to keeping the `.' as first argument, in order to
1496   # allow $(mkdir_p) to be used without argument.  As in
1497   #   $(mkdir_p) $(somedir)
1498   # where $(somedir) is conditionally defined.  However this is wrong
1499   # for two reasons:
1500   #  1. if the package is installed by a user who cannot write `.'
1501   #     make install will fail,
1502   #  2. the above comment should most certainly read
1503   #     $(mkdir_p) $(DESTDIR)$(somedir)
1504   #     so it does not work when $(somedir) is undefined and
1505   #     $(DESTDIR) is not.
1506   #  To support the latter case, we have to write
1507   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1508   #  so the `.' trick is pointless.
1509   mkdir_p='mkdir -p --'
1510 else
1511   # On NextStep and OpenStep, the `mkdir' command does not
1512   # recognize any option.  It will interpret all options as
1513   # directories to create, and then abort because `.' already
1514   # exists.
1515   for d in ./-p ./--version;
1516   do
1517     test -d $d && rmdir $d
1518   done
1519   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1520   if test -f "$ac_aux_dir/mkinstalldirs"; then
1521     mkdir_p='$(mkinstalldirs)'
1522   else
1523     mkdir_p='$(install_sh) -d'
1524   fi
1525 fi
1526
1527 for ac_prog in gawk mawk nawk awk
1528 do
1529   # Extract the first word of "$ac_prog", so it can be a program name with args.
1530 set dummy $ac_prog; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_AWK+set}" = set; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   if test -n "$AWK"; then
1537   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1541 do
1542   IFS=$as_save_IFS
1543   test -z "$as_dir" && as_dir=.
1544   for ac_exec_ext in '' $ac_executable_extensions; do
1545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546     ac_cv_prog_AWK="$ac_prog"
1547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548     break 2
1549   fi
1550 done
1551 done
1552
1553 fi
1554 fi
1555 AWK=$ac_cv_prog_AWK
1556 if test -n "$AWK"; then
1557   echo "$as_me:$LINENO: result: $AWK" >&5
1558 echo "${ECHO_T}$AWK" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562 fi
1563
1564   test -n "$AWK" && break
1565 done
1566
1567 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1568 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1569 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1570 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1571   echo $ECHO_N "(cached) $ECHO_C" >&6
1572 else
1573   cat >conftest.make <<\_ACEOF
1574 all:
1575         @echo 'ac_maketemp="$(MAKE)"'
1576 _ACEOF
1577 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1578 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1579 if test -n "$ac_maketemp"; then
1580   eval ac_cv_prog_make_${ac_make}_set=yes
1581 else
1582   eval ac_cv_prog_make_${ac_make}_set=no
1583 fi
1584 rm -f conftest.make
1585 fi
1586 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1587   echo "$as_me:$LINENO: result: yes" >&5
1588 echo "${ECHO_T}yes" >&6
1589   SET_MAKE=
1590 else
1591   echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1593   SET_MAKE="MAKE=${MAKE-make}"
1594 fi
1595
1596 rm -rf .tst 2>/dev/null
1597 mkdir .tst 2>/dev/null
1598 if test -d .tst; then
1599   am__leading_dot=.
1600 else
1601   am__leading_dot=_
1602 fi
1603 rmdir .tst 2>/dev/null
1604
1605 # test to see if srcdir already configured
1606 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1607    test -f $srcdir/config.status; then
1608   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1609 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1610    { (exit 1); exit 1; }; }
1611 fi
1612
1613 # test whether we have cygpath
1614 if test -z "$CYGPATH_W"; then
1615   if (cygpath --version) >/dev/null 2>/dev/null; then
1616     CYGPATH_W='cygpath -w'
1617   else
1618     CYGPATH_W=echo
1619   fi
1620 fi
1621
1622
1623 # Define the identity of the package.
1624  PACKAGE=conky
1625  VERSION=1.3
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE "$PACKAGE"
1630 _ACEOF
1631
1632
1633 cat >>confdefs.h <<_ACEOF
1634 #define VERSION "$VERSION"
1635 _ACEOF
1636
1637 # Some tools Automake needs.
1638
1639 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1640
1641
1642 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1643
1644
1645 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1646
1647
1648 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1649
1650
1651 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1652
1653 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1654
1655 # Installed binaries are usually stripped using `strip' when the user
1656 # run `make install-strip'.  However `strip' might not be the right
1657 # tool to use in cross-compilation environments, therefore Automake
1658 # will honor the `STRIP' environment variable to overrule this program.
1659 if test "$cross_compiling" != no; then
1660   if test -n "$ac_tool_prefix"; then
1661   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1662 set dummy ${ac_tool_prefix}strip; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_STRIP+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   if test -n "$STRIP"; then
1669   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1670 else
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 for as_dir in $PATH
1673 do
1674   IFS=$as_save_IFS
1675   test -z "$as_dir" && as_dir=.
1676   for ac_exec_ext in '' $ac_executable_extensions; do
1677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680     break 2
1681   fi
1682 done
1683 done
1684
1685 fi
1686 fi
1687 STRIP=$ac_cv_prog_STRIP
1688 if test -n "$STRIP"; then
1689   echo "$as_me:$LINENO: result: $STRIP" >&5
1690 echo "${ECHO_T}$STRIP" >&6
1691 else
1692   echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1694 fi
1695
1696 fi
1697 if test -z "$ac_cv_prog_STRIP"; then
1698   ac_ct_STRIP=$STRIP
1699   # Extract the first word of "strip", so it can be a program name with args.
1700 set dummy strip; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   if test -n "$ac_ct_STRIP"; then
1707   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1708 else
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712   IFS=$as_save_IFS
1713   test -z "$as_dir" && as_dir=.
1714   for ac_exec_ext in '' $ac_executable_extensions; do
1715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716     ac_cv_prog_ac_ct_STRIP="strip"
1717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718     break 2
1719   fi
1720 done
1721 done
1722
1723   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1724 fi
1725 fi
1726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1727 if test -n "$ac_ct_STRIP"; then
1728   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1729 echo "${ECHO_T}$ac_ct_STRIP" >&6
1730 else
1731   echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1733 fi
1734
1735   STRIP=$ac_ct_STRIP
1736 else
1737   STRIP="$ac_cv_prog_STRIP"
1738 fi
1739
1740 fi
1741 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1742
1743 # We need awk for the "check" target.  The system "awk" is bad on
1744 # some platforms.
1745 # Always define AMTAR for backward compatibility.
1746
1747 AMTAR=${AMTAR-"${am_missing_run}tar"}
1748
1749 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1750
1751
1752
1753
1754
1755           ac_config_headers="$ac_config_headers config.h"
1756
1757
1758 uname=`uname`
1759
1760 case $uname in
1761   Linux*)
1762     WANT_SYSINFO=yes
1763     ;;
1764   FreeBSD*)
1765     WANT_KVM=yes
1766     ;;
1767   NetBSD*)
1768     WANT_KVM=yes
1769     WANT_OSSLIB=yes
1770     ;;
1771 # Solaris doesn't work at all right now
1772
1773 #  SunOS*)
1774 #    WANT_KSTAT=yes
1775 #    ;;
1776
1777   *)
1778     echo "Your operating system $uname isn't supported"
1779     echo "Feel free to help. :P"
1780     exit 1
1781     ;;
1782 esac
1783
1784
1785
1786 if test x$uname = xLinux; then
1787   BUILD_LINUX_TRUE=
1788   BUILD_LINUX_FALSE='#'
1789 else
1790   BUILD_LINUX_TRUE='#'
1791   BUILD_LINUX_FALSE=
1792 fi
1793
1794
1795
1796 if test x$uname = xSunOS; then
1797   BUILD_SOLARIS_TRUE=
1798   BUILD_SOLARIS_FALSE='#'
1799 else
1800   BUILD_SOLARIS_TRUE='#'
1801   BUILD_SOLARIS_FALSE=
1802 fi
1803
1804
1805
1806 if test x$uname = xFreeBSD; then
1807   BUILD_FREEBSD_TRUE=
1808   BUILD_FREEBSD_FALSE='#'
1809 else
1810   BUILD_FREEBSD_TRUE='#'
1811   BUILD_FREEBSD_FALSE=
1812 fi
1813
1814
1815
1816 if test x$uname = xNetBSD; then
1817   BUILD_NETBSD_TRUE=
1818   BUILD_NETBSD_FALSE='#'
1819 else
1820   BUILD_NETBSD_TRUE='#'
1821   BUILD_NETBSD_FALSE=
1822 fi
1823
1824
1825
1826 want_xft=no
1827 # Check whether --enable-xft or --disable-xft was given.
1828 if test "${enable_xft+set}" = set; then
1829   enableval="$enable_xft"
1830   want_xft="$enableval"
1831 fi;
1832
1833
1834 dah=yes
1835 # Check whether --enable-own_window or --disable-own_window was given.
1836 if test "${enable_own_window+set}" = set; then
1837   enableval="$enable_own_window"
1838   dah="$enableval"
1839 fi;
1840
1841 if test $dah != "no"; then
1842
1843 cat >>confdefs.h <<\_ACEOF
1844 #define OWN_WINDOW 1
1845 _ACEOF
1846
1847 fi
1848
1849
1850 dah=yes
1851 # Check whether --enable-double_buffer or --disable-double_buffer was given.
1852 if test "${enable_double_buffer+set}" = set; then
1853   enableval="$enable_double_buffer"
1854   dah="$enableval"
1855 fi;
1856
1857 if test $dah != "no"; then
1858
1859 cat >>confdefs.h <<\_ACEOF
1860 #define DOUBLE_BUFFER 1
1861 _ACEOF
1862
1863   DEPDIR="${am__leading_dot}deps"
1864
1865           ac_config_commands="$ac_config_commands depfiles"
1866
1867
1868 am_make=${MAKE-make}
1869 cat > confinc << 'END'
1870 am__doit:
1871         @echo done
1872 .PHONY: am__doit
1873 END
1874 # If we don't find an include directive, just comment out the code.
1875 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1876 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1877 am__include="#"
1878 am__quote=
1879 _am_result=none
1880 # First try GNU make style include.
1881 echo "include confinc" > confmf
1882 # We grep out `Entering directory' and `Leaving directory'
1883 # messages which can occur if `w' ends up in MAKEFLAGS.
1884 # In particular we don't look at `^make:' because GNU make might
1885 # be invoked under some other name (usually "gmake"), in which
1886 # case it prints its new name instead of `make'.
1887 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1888    am__include=include
1889    am__quote=
1890    _am_result=GNU
1891 fi
1892 # Now try BSD make style include.
1893 if test "$am__include" = "#"; then
1894    echo '.include "confinc"' > confmf
1895    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1896       am__include=.include
1897       am__quote="\""
1898       _am_result=BSD
1899    fi
1900 fi
1901
1902
1903 echo "$as_me:$LINENO: result: $_am_result" >&5
1904 echo "${ECHO_T}$_am_result" >&6
1905 rm -f confinc confmf
1906
1907 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1908 if test "${enable_dependency_tracking+set}" = set; then
1909   enableval="$enable_dependency_tracking"
1910
1911 fi;
1912 if test "x$enable_dependency_tracking" != xno; then
1913   am_depcomp="$ac_aux_dir/depcomp"
1914   AMDEPBACKSLASH='\'
1915 fi
1916
1917
1918 if test "x$enable_dependency_tracking" != xno; then
1919   AMDEP_TRUE=
1920   AMDEP_FALSE='#'
1921 else
1922   AMDEP_TRUE='#'
1923   AMDEP_FALSE=
1924 fi
1925
1926
1927
1928 ac_ext=c
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 if test -n "$ac_tool_prefix"; then
1934   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_CC+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941   if test -n "$CC"; then
1942   ac_cv_prog_CC="$CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947   IFS=$as_save_IFS
1948   test -z "$as_dir" && as_dir=.
1949   for ac_exec_ext in '' $ac_executable_extensions; do
1950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953     break 2
1954   fi
1955 done
1956 done
1957
1958 fi
1959 fi
1960 CC=$ac_cv_prog_CC
1961 if test -n "$CC"; then
1962   echo "$as_me:$LINENO: result: $CC" >&5
1963 echo "${ECHO_T}$CC" >&6
1964 else
1965   echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1968
1969 fi
1970 if test -z "$ac_cv_prog_CC"; then
1971   ac_ct_CC=$CC
1972   # Extract the first word of "gcc", so it can be a program name with args.
1973 set dummy gcc; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1977   echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979   if test -n "$ac_ct_CC"; then
1980   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1981 else
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985   IFS=$as_save_IFS
1986   test -z "$as_dir" && as_dir=.
1987   for ac_exec_ext in '' $ac_executable_extensions; do
1988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989     ac_cv_prog_ac_ct_CC="gcc"
1990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991     break 2
1992   fi
1993 done
1994 done
1995
1996 fi
1997 fi
1998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1999 if test -n "$ac_ct_CC"; then
2000   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2001 echo "${ECHO_T}$ac_ct_CC" >&6
2002 else
2003   echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2005 fi
2006
2007   CC=$ac_ct_CC
2008 else
2009   CC="$ac_cv_prog_CC"
2010 fi
2011
2012 if test -z "$CC"; then
2013   if test -n "$ac_tool_prefix"; then
2014   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2015 set dummy ${ac_tool_prefix}cc; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_CC+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   if test -n "$CC"; then
2022   ac_cv_prog_CC="$CC" # Let the user override the test.
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   for ac_exec_ext in '' $ac_executable_extensions; do
2030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031     ac_cv_prog_CC="${ac_tool_prefix}cc"
2032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033     break 2
2034   fi
2035 done
2036 done
2037
2038 fi
2039 fi
2040 CC=$ac_cv_prog_CC
2041 if test -n "$CC"; then
2042   echo "$as_me:$LINENO: result: $CC" >&5
2043 echo "${ECHO_T}$CC" >&6
2044 else
2045   echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2047 fi
2048
2049 fi
2050 if test -z "$ac_cv_prog_CC"; then
2051   ac_ct_CC=$CC
2052   # Extract the first word of "cc", so it can be a program name with args.
2053 set dummy cc; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$ac_ct_CC"; then
2060   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069     ac_cv_prog_ac_ct_CC="cc"
2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071     break 2
2072   fi
2073 done
2074 done
2075
2076 fi
2077 fi
2078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079 if test -n "$ac_ct_CC"; then
2080   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2081 echo "${ECHO_T}$ac_ct_CC" >&6
2082 else
2083   echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2085 fi
2086
2087   CC=$ac_ct_CC
2088 else
2089   CC="$ac_cv_prog_CC"
2090 fi
2091
2092 fi
2093 if test -z "$CC"; then
2094   # Extract the first word of "cc", so it can be a program name with args.
2095 set dummy cc; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_CC+set}" = set; then
2099   echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101   if test -n "$CC"; then
2102   ac_cv_prog_CC="$CC" # Let the user override the test.
2103 else
2104   ac_prog_rejected=no
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110   for ac_exec_ext in '' $ac_executable_extensions; do
2111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2113        ac_prog_rejected=yes
2114        continue
2115      fi
2116     ac_cv_prog_CC="cc"
2117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118     break 2
2119   fi
2120 done
2121 done
2122
2123 if test $ac_prog_rejected = yes; then
2124   # We found a bogon in the path, so make sure we never use it.
2125   set dummy $ac_cv_prog_CC
2126   shift
2127   if test $# != 0; then
2128     # We chose a different compiler from the bogus one.
2129     # However, it has the same basename, so the bogon will be chosen
2130     # first if we set CC to just the basename; use the full file name.
2131     shift
2132     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2133   fi
2134 fi
2135 fi
2136 fi
2137 CC=$ac_cv_prog_CC
2138 if test -n "$CC"; then
2139   echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6
2141 else
2142   echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6
2144 fi
2145
2146 fi
2147 if test -z "$CC"; then
2148   if test -n "$ac_tool_prefix"; then
2149   for ac_prog in cl
2150   do
2151     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2153 echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$CC"; then
2159   ac_cv_prog_CC="$CC" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_exec_ext in '' $ac_executable_extensions; do
2167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170     break 2
2171   fi
2172 done
2173 done
2174
2175 fi
2176 fi
2177 CC=$ac_cv_prog_CC
2178 if test -n "$CC"; then
2179   echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6
2181 else
2182   echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6
2184 fi
2185
2186     test -n "$CC" && break
2187   done
2188 fi
2189 if test -z "$CC"; then
2190   ac_ct_CC=$CC
2191   for ac_prog in cl
2192 do
2193   # Extract the first word of "$ac_prog", so it can be a program name with args.
2194 set dummy $ac_prog; ac_word=$2
2195 echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2198   echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200   if test -n "$ac_ct_CC"; then
2201   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206   IFS=$as_save_IFS
2207   test -z "$as_dir" && as_dir=.
2208   for ac_exec_ext in '' $ac_executable_extensions; do
2209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210     ac_cv_prog_ac_ct_CC="$ac_prog"
2211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212     break 2
2213   fi
2214 done
2215 done
2216
2217 fi
2218 fi
2219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2220 if test -n "$ac_ct_CC"; then
2221   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2222 echo "${ECHO_T}$ac_ct_CC" >&6
2223 else
2224   echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6
2226 fi
2227
2228   test -n "$ac_ct_CC" && break
2229 done
2230
2231   CC=$ac_ct_CC
2232 fi
2233
2234 fi
2235
2236
2237 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: no acceptable C compiler found in \$PATH
2240 See \`config.log' for more details." >&2;}
2241    { (exit 1); exit 1; }; }
2242
2243 # Provide some information about the compiler.
2244 echo "$as_me:$LINENO:" \
2245      "checking for C compiler version" >&5
2246 ac_compiler=`set X $ac_compile; echo $2`
2247 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2248   (eval $ac_compiler --version </dev/null >&5) 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }
2252 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2253   (eval $ac_compiler -v </dev/null >&5) 2>&5
2254   ac_status=$?
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); }
2257 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2258   (eval $ac_compiler -V </dev/null >&5) 2>&5
2259   ac_status=$?
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); }
2262
2263 cat >conftest.$ac_ext <<_ACEOF
2264 /* confdefs.h.  */
2265 _ACEOF
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h.  */
2269
2270 int
2271 main ()
2272 {
2273
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 ac_clean_files_save=$ac_clean_files
2279 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2280 # Try to create an executable without -o first, disregard a.out.
2281 # It will help us diagnose broken compilers, and finding out an intuition
2282 # of exeext.
2283 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2284 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2285 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2286 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2287   (eval $ac_link_default) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; then
2291   # Find the output, starting from the most likely.  This scheme is
2292 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2293 # resort.
2294
2295 # Be careful to initialize this variable, since it used to be cached.
2296 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2297 ac_cv_exeext=
2298 # b.out is created by i960 compilers.
2299 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2300 do
2301   test -f "$ac_file" || continue
2302   case $ac_file in
2303     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2304         ;;
2305     conftest.$ac_ext )
2306         # This is the source file.
2307         ;;
2308     [ab].out )
2309         # We found the default executable, but exeext='' is most
2310         # certainly right.
2311         break;;
2312     *.* )
2313         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2314         # FIXME: I believe we export ac_cv_exeext for Libtool,
2315         # but it would be cool to find out if it's true.  Does anybody
2316         # maintain Libtool? --akim.
2317         export ac_cv_exeext
2318         break;;
2319     * )
2320         break;;
2321   esac
2322 done
2323 else
2324   echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: C compiler cannot create executables
2330 See \`config.log' for more details." >&2;}
2331    { (exit 77); exit 77; }; }
2332 fi
2333
2334 ac_exeext=$ac_cv_exeext
2335 echo "$as_me:$LINENO: result: $ac_file" >&5
2336 echo "${ECHO_T}$ac_file" >&6
2337
2338 # Check the compiler produces executables we can run.  If not, either
2339 # the compiler is broken, or we cross compile.
2340 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2341 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2342 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2343 # If not cross compiling, check that we can run a simple program.
2344 if test "$cross_compiling" != yes; then
2345   if { ac_try='./$ac_file'
2346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347   (eval $ac_try) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }; }; then
2351     cross_compiling=no
2352   else
2353     if test "$cross_compiling" = maybe; then
2354         cross_compiling=yes
2355     else
2356         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2357 If you meant to cross compile, use \`--host'.
2358 See \`config.log' for more details." >&5
2359 echo "$as_me: error: cannot run C compiled programs.
2360 If you meant to cross compile, use \`--host'.
2361 See \`config.log' for more details." >&2;}
2362    { (exit 1); exit 1; }; }
2363     fi
2364   fi
2365 fi
2366 echo "$as_me:$LINENO: result: yes" >&5
2367 echo "${ECHO_T}yes" >&6
2368
2369 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2370 ac_clean_files=$ac_clean_files_save
2371 # Check the compiler produces executables we can run.  If not, either
2372 # the compiler is broken, or we cross compile.
2373 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2374 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2375 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2376 echo "${ECHO_T}$cross_compiling" >&6
2377
2378 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2379 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2381   (eval $ac_link) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; then
2385   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2386 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2387 # work properly (i.e., refer to `conftest.exe'), while it won't with
2388 # `rm'.
2389 for ac_file in conftest.exe conftest conftest.*; do
2390   test -f "$ac_file" || continue
2391   case $ac_file in
2392     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2393     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2394           export ac_cv_exeext
2395           break;;
2396     * ) break;;
2397   esac
2398 done
2399 else
2400   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2401 See \`config.log' for more details." >&5
2402 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2403 See \`config.log' for more details." >&2;}
2404    { (exit 1); exit 1; }; }
2405 fi
2406
2407 rm -f conftest$ac_cv_exeext
2408 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2409 echo "${ECHO_T}$ac_cv_exeext" >&6
2410
2411 rm -f conftest.$ac_ext
2412 EXEEXT=$ac_cv_exeext
2413 ac_exeext=$EXEEXT
2414 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2415 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2416 if test "${ac_cv_objext+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   cat >conftest.$ac_ext <<_ACEOF
2420 /* confdefs.h.  */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h.  */
2425
2426 int
2427 main ()
2428 {
2429
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 rm -f conftest.o conftest.obj
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436   (eval $ac_compile) 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; then
2440   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2441   case $ac_file in
2442     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2443     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2444        break;;
2445   esac
2446 done
2447 else
2448   echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2450
2451 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2454 See \`config.log' for more details." >&2;}
2455    { (exit 1); exit 1; }; }
2456 fi
2457
2458 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2459 fi
2460 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2461 echo "${ECHO_T}$ac_cv_objext" >&6
2462 OBJEXT=$ac_cv_objext
2463 ac_objext=$OBJEXT
2464 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2465 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2466 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h.  */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h.  */
2475
2476 int
2477 main ()
2478 {
2479 #ifndef __GNUC__
2480        choke me
2481 #endif
2482
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489   (eval $ac_compile) 2>conftest.er1
2490   ac_status=$?
2491   grep -v '^ *+' conftest.er1 >conftest.err
2492   rm -f conftest.er1
2493   cat conftest.err >&5
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); } &&
2496          { ac_try='test -z "$ac_c_werror_flag"
2497                          || test ! -s conftest.err'
2498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499   (eval $ac_try) 2>&5
2500   ac_status=$?
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }; } &&
2503          { ac_try='test -s conftest.$ac_objext'
2504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505   (eval $ac_try) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; }; then
2509   ac_compiler_gnu=yes
2510 else
2511   echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514 ac_compiler_gnu=no
2515 fi
2516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2518
2519 fi
2520 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2521 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2522 GCC=`test $ac_compiler_gnu = yes && echo yes`
2523 ac_test_CFLAGS=${CFLAGS+set}
2524 ac_save_CFLAGS=$CFLAGS
2525 CFLAGS="-g"
2526 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2527 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2528 if test "${ac_cv_prog_cc_g+set}" = set; then
2529   echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531   cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h.  */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h.  */
2537
2538 int
2539 main ()
2540 {
2541
2542   ;
2543   return 0;
2544 }
2545 _ACEOF
2546 rm -f conftest.$ac_objext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548   (eval $ac_compile) 2>conftest.er1
2549   ac_status=$?
2550   grep -v '^ *+' conftest.er1 >conftest.err
2551   rm -f conftest.er1
2552   cat conftest.err >&5
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); } &&
2555          { ac_try='test -z "$ac_c_werror_flag"
2556                          || test ! -s conftest.err'
2557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558   (eval $ac_try) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; } &&
2562          { ac_try='test -s conftest.$ac_objext'
2563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564   (eval $ac_try) 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; }; then
2568   ac_cv_prog_cc_g=yes
2569 else
2570   echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 ac_cv_prog_cc_g=no
2574 fi
2575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2576 fi
2577 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2578 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2579 if test "$ac_test_CFLAGS" = set; then
2580   CFLAGS=$ac_save_CFLAGS
2581 elif test $ac_cv_prog_cc_g = yes; then
2582   if test "$GCC" = yes; then
2583     CFLAGS="-g -O2"
2584   else
2585     CFLAGS="-g"
2586   fi
2587 else
2588   if test "$GCC" = yes; then
2589     CFLAGS="-O2"
2590   else
2591     CFLAGS=
2592   fi
2593 fi
2594 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2595 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2596 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599   ac_cv_prog_cc_stdc=no
2600 ac_save_CC=$CC
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h.  */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h.  */
2607 #include <stdarg.h>
2608 #include <stdio.h>
2609 #include <sys/types.h>
2610 #include <sys/stat.h>
2611 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2612 struct buf { int x; };
2613 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2614 static char *e (p, i)
2615      char **p;
2616      int i;
2617 {
2618   return p[i];
2619 }
2620 static char *f (char * (*g) (char **, int), char **p, ...)
2621 {
2622   char *s;
2623   va_list v;
2624   va_start (v,p);
2625   s = g (p, va_arg (v,int));
2626   va_end (v);
2627   return s;
2628 }
2629
2630 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2631    function prototypes and stuff, but not '\xHH' hex character constants.
2632    These don't provoke an error unfortunately, instead are silently treated
2633    as 'x'.  The following induces an error, until -std1 is added to get
2634    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2635    array size at least.  It's necessary to write '\x00'==0 to get something
2636    that's true only with -std1.  */
2637 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2638
2639 int test (int i, double x);
2640 struct s1 {int (*f) (int a);};
2641 struct s2 {int (*f) (double a);};
2642 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2643 int argc;
2644 char **argv;
2645 int
2646 main ()
2647 {
2648 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 # Don't try gcc -ansi; that turns off useful extensions and
2654 # breaks some systems' header files.
2655 # AIX                   -qlanglvl=ansi
2656 # Ultrix and OSF/1      -std1
2657 # HP-UX 10.20 and later -Ae
2658 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2659 # SVR4                  -Xc -D__EXTENSIONS__
2660 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2661 do
2662   CC="$ac_save_CC $ac_arg"
2663   rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665   (eval $ac_compile) 2>conftest.er1
2666   ac_status=$?
2667   grep -v '^ *+' conftest.er1 >conftest.err
2668   rm -f conftest.er1
2669   cat conftest.err >&5
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); } &&
2672          { ac_try='test -z "$ac_c_werror_flag"
2673                          || test ! -s conftest.err'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; } &&
2679          { ac_try='test -s conftest.$ac_objext'
2680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681   (eval $ac_try) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }; }; then
2685   ac_cv_prog_cc_stdc=$ac_arg
2686 break
2687 else
2688   echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2690
2691 fi
2692 rm -f conftest.err conftest.$ac_objext
2693 done
2694 rm -f conftest.$ac_ext conftest.$ac_objext
2695 CC=$ac_save_CC
2696
2697 fi
2698
2699 case "x$ac_cv_prog_cc_stdc" in
2700   x|xno)
2701     echo "$as_me:$LINENO: result: none needed" >&5
2702 echo "${ECHO_T}none needed" >&6 ;;
2703   *)
2704     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2705 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2706     CC="$CC $ac_cv_prog_cc_stdc" ;;
2707 esac
2708
2709 # Some people use a C++ compiler to compile C.  Since we use `exit',
2710 # in C++ we need to declare it.  In case someone uses the same compiler
2711 # for both compiling C and C++ we need to have the C++ compiler decide
2712 # the declaration of exit, since it's the most demanding environment.
2713 cat >conftest.$ac_ext <<_ACEOF
2714 #ifndef __cplusplus
2715   choke me
2716 #endif
2717 _ACEOF
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720   (eval $ac_compile) 2>conftest.er1
2721   ac_status=$?
2722   grep -v '^ *+' conftest.er1 >conftest.err
2723   rm -f conftest.er1
2724   cat conftest.err >&5
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } &&
2727          { ac_try='test -z "$ac_c_werror_flag"
2728                          || test ! -s conftest.err'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; } &&
2734          { ac_try='test -s conftest.$ac_objext'
2735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736   (eval $ac_try) 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; }; then
2740   for ac_declaration in \
2741    '' \
2742    'extern "C" void std::exit (int) throw (); using std::exit;' \
2743    'extern "C" void std::exit (int); using std::exit;' \
2744    'extern "C" void exit (int) throw ();' \
2745    'extern "C" void exit (int);' \
2746    'void exit (int);'
2747 do
2748   cat >conftest.$ac_ext <<_ACEOF
2749 /* confdefs.h.  */
2750 _ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h.  */
2754 $ac_declaration
2755 #include <stdlib.h>
2756 int
2757 main ()
2758 {
2759 exit (42);
2760   ;
2761   return 0;
2762 }
2763 _ACEOF
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766   (eval $ac_compile) 2>conftest.er1
2767   ac_status=$?
2768   grep -v '^ *+' conftest.er1 >conftest.err
2769   rm -f conftest.er1
2770   cat conftest.err >&5
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); } &&
2773          { ac_try='test -z "$ac_c_werror_flag"
2774                          || test ! -s conftest.err'
2775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776   (eval $ac_try) 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); }; } &&
2780          { ac_try='test -s conftest.$ac_objext'
2781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782   (eval $ac_try) 2>&5
2783   ac_status=$?
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); }; }; then
2786   :
2787 else
2788   echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2790
2791 continue
2792 fi
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794   cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h.  */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h.  */
2800 $ac_declaration
2801 int
2802 main ()
2803 {
2804 exit (42);
2805   ;
2806   return 0;
2807 }
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811   (eval $ac_compile) 2>conftest.er1
2812   ac_status=$?
2813   grep -v '^ *+' conftest.er1 >conftest.err
2814   rm -f conftest.er1
2815   cat conftest.err >&5
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); } &&
2818          { ac_try='test -z "$ac_c_werror_flag"
2819                          || test ! -s conftest.err'
2820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821   (eval $ac_try) 2>&5
2822   ac_status=$?
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }; } &&
2825          { ac_try='test -s conftest.$ac_objext'
2826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827   (eval $ac_try) 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); }; }; then
2831   break
2832 else
2833   echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836 fi
2837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2838 done
2839 rm -f conftest*
2840 if test -n "$ac_declaration"; then
2841   echo '#ifdef __cplusplus' >>confdefs.h
2842   echo $ac_declaration      >>confdefs.h
2843   echo '#endif'             >>confdefs.h
2844 fi
2845
2846 else
2847   echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850 fi
2851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2852 ac_ext=c
2853 ac_cpp='$CPP $CPPFLAGS'
2854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2857
2858 depcc="$CC"   am_compiler_list=
2859
2860 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2861 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2862 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2863   echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2866   # We make a subdir and do the tests there.  Otherwise we can end up
2867   # making bogus files that we don't know about and never remove.  For
2868   # instance it was reported that on HP-UX the gcc test will end up
2869   # making a dummy file named `D' -- because `-MD' means `put the output
2870   # in D'.
2871   mkdir conftest.dir
2872   # Copy depcomp to subdir because otherwise we won't find it if we're
2873   # using a relative directory.
2874   cp "$am_depcomp" conftest.dir
2875   cd conftest.dir
2876   # We will build objects and dependencies in a subdirectory because
2877   # it helps to detect inapplicable dependency modes.  For instance
2878   # both Tru64's cc and ICC support -MD to output dependencies as a
2879   # side effect of compilation, but ICC will put the dependencies in
2880   # the current directory while Tru64 will put them in the object
2881   # directory.
2882   mkdir sub
2883
2884   am_cv_CC_dependencies_compiler_type=none
2885   if test "$am_compiler_list" = ""; then
2886      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2887   fi
2888   for depmode in $am_compiler_list; do
2889     # Setup a source with many dependencies, because some compilers
2890     # like to wrap large dependency lists on column 80 (with \), and
2891     # we should not choose a depcomp mode which is confused by this.
2892     #
2893     # We need to recreate these files for each test, as the compiler may
2894     # overwrite some of them when testing with obscure command lines.
2895     # This happens at least with the AIX C compiler.
2896     : > sub/conftest.c
2897     for i in 1 2 3 4 5 6; do
2898       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2899       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2900       # Solaris 8's {/usr,}/bin/sh.
2901       touch sub/conftst$i.h
2902     done
2903     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2904
2905     case $depmode in
2906     nosideeffect)
2907       # after this tag, mechanisms are not by side-effect, so they'll
2908       # only be used when explicitly requested
2909       if test "x$enable_dependency_tracking" = xyes; then
2910         continue
2911       else
2912         break
2913       fi
2914       ;;
2915     none) break ;;
2916     esac
2917     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2918     # mode.  It turns out that the SunPro C++ compiler does not properly
2919     # handle `-M -o', and we need to detect this.
2920     if depmode=$depmode \
2921        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2922        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2923        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2924          >/dev/null 2>conftest.err &&
2925        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2926        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2927        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2928       # icc doesn't choke on unknown options, it will just issue warnings
2929       # or remarks (even with -Werror).  So we grep stderr for any message
2930       # that says an option was ignored or not supported.
2931       # When given -MP, icc 7.0 and 7.1 complain thusly:
2932       #   icc: Command line warning: ignoring option '-M'; no argument required
2933       # The diagnosis changed in icc 8.0:
2934       #   icc: Command line remark: option '-MP' not supported
2935       if (grep 'ignoring option' conftest.err ||
2936           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2937         am_cv_CC_dependencies_compiler_type=$depmode
2938         break
2939       fi
2940     fi
2941   done
2942
2943   cd ..
2944   rm -rf conftest.dir
2945 else
2946   am_cv_CC_dependencies_compiler_type=none
2947 fi
2948
2949 fi
2950 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2951 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2952 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2953
2954
2955
2956 if
2957   test "x$enable_dependency_tracking" != xno \
2958   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2959   am__fastdepCC_TRUE=
2960   am__fastdepCC_FALSE='#'
2961 else
2962   am__fastdepCC_TRUE='#'
2963   am__fastdepCC_FALSE=
2964 fi
2965
2966
2967
2968 ac_ext=c
2969 ac_cpp='$CPP $CPPFLAGS'
2970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2974 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2975 # On Suns, sometimes $CPP names a directory.
2976 if test -n "$CPP" && test -d "$CPP"; then
2977   CPP=
2978 fi
2979 if test -z "$CPP"; then
2980   if test "${ac_cv_prog_CPP+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983       # Double quotes because CPP needs to be expanded
2984     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2985     do
2986       ac_preproc_ok=false
2987 for ac_c_preproc_warn_flag in '' yes
2988 do
2989   # Use a header file that comes with gcc, so configuring glibc
2990   # with a fresh cross-compiler works.
2991   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2992   # <limits.h> exists even on freestanding compilers.
2993   # On the NeXT, cc -E runs the code through the compiler's parser,
2994   # not just through cpp. "Syntax error" is here to catch this case.
2995   cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001 #ifdef __STDC__
3002 # include <limits.h>
3003 #else
3004 # include <assert.h>
3005 #endif
3006                      Syntax error
3007 _ACEOF
3008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3010   ac_status=$?
3011   grep -v '^ *+' conftest.er1 >conftest.err
3012   rm -f conftest.er1
3013   cat conftest.err >&5
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); } >/dev/null; then
3016   if test -s conftest.err; then
3017     ac_cpp_err=$ac_c_preproc_warn_flag
3018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3019   else
3020     ac_cpp_err=
3021   fi
3022 else
3023   ac_cpp_err=yes
3024 fi
3025 if test -z "$ac_cpp_err"; then
3026   :
3027 else
3028   echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031   # Broken: fails on valid input.
3032 continue
3033 fi
3034 rm -f conftest.err conftest.$ac_ext
3035
3036   # OK, works on sane cases.  Now check whether non-existent headers
3037   # can be detected and how.
3038   cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h.  */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h.  */
3044 #include <ac_nonexistent.h>
3045 _ACEOF
3046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048   ac_status=$?
3049   grep -v '^ *+' conftest.er1 >conftest.err
3050   rm -f conftest.er1
3051   cat conftest.err >&5
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); } >/dev/null; then
3054   if test -s conftest.err; then
3055     ac_cpp_err=$ac_c_preproc_warn_flag
3056     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3057   else
3058     ac_cpp_err=
3059   fi
3060 else
3061   ac_cpp_err=yes
3062 fi
3063 if test -z "$ac_cpp_err"; then
3064   # Broken: success on invalid input.
3065 continue
3066 else
3067   echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070   # Passes both tests.
3071 ac_preproc_ok=:
3072 break
3073 fi
3074 rm -f conftest.err conftest.$ac_ext
3075
3076 done
3077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3078 rm -f conftest.err conftest.$ac_ext
3079 if $ac_preproc_ok; then
3080   break
3081 fi
3082
3083     done
3084     ac_cv_prog_CPP=$CPP
3085
3086 fi
3087   CPP=$ac_cv_prog_CPP
3088 else
3089   ac_cv_prog_CPP=$CPP
3090 fi
3091 echo "$as_me:$LINENO: result: $CPP" >&5
3092 echo "${ECHO_T}$CPP" >&6
3093 ac_preproc_ok=false
3094 for ac_c_preproc_warn_flag in '' yes
3095 do
3096   # Use a header file that comes with gcc, so configuring glibc
3097   # with a fresh cross-compiler works.
3098   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3099   # <limits.h> exists even on freestanding compilers.
3100   # On the NeXT, cc -E runs the code through the compiler's parser,
3101   # not just through cpp. "Syntax error" is here to catch this case.
3102   cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h.  */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h.  */
3108 #ifdef __STDC__
3109 # include <limits.h>
3110 #else
3111 # include <assert.h>
3112 #endif
3113                      Syntax error
3114 _ACEOF
3115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3117   ac_status=$?
3118   grep -v '^ *+' conftest.er1 >conftest.err
3119   rm -f conftest.er1
3120   cat conftest.err >&5
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } >/dev/null; then
3123   if test -s conftest.err; then
3124     ac_cpp_err=$ac_c_preproc_warn_flag
3125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3126   else
3127     ac_cpp_err=
3128   fi
3129 else
3130   ac_cpp_err=yes
3131 fi
3132 if test -z "$ac_cpp_err"; then
3133   :
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138   # Broken: fails on valid input.
3139 continue
3140 fi
3141 rm -f conftest.err conftest.$ac_ext
3142
3143   # OK, works on sane cases.  Now check whether non-existent headers
3144   # can be detected and how.
3145   cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h.  */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h.  */
3151 #include <ac_nonexistent.h>
3152 _ACEOF
3153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3155   ac_status=$?
3156   grep -v '^ *+' conftest.er1 >conftest.err
3157   rm -f conftest.er1
3158   cat conftest.err >&5
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); } >/dev/null; then
3161   if test -s conftest.err; then
3162     ac_cpp_err=$ac_c_preproc_warn_flag
3163     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3164   else
3165     ac_cpp_err=
3166   fi
3167 else
3168   ac_cpp_err=yes
3169 fi
3170 if test -z "$ac_cpp_err"; then
3171   # Broken: success on invalid input.
3172 continue
3173 else
3174   echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177   # Passes both tests.
3178 ac_preproc_ok=:
3179 break
3180 fi
3181 rm -f conftest.err conftest.$ac_ext
3182
3183 done
3184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3185 rm -f conftest.err conftest.$ac_ext
3186 if $ac_preproc_ok; then
3187   :
3188 else
3189   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3190 See \`config.log' for more details." >&5
3191 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3192 See \`config.log' for more details." >&2;}
3193    { (exit 1); exit 1; }; }
3194 fi
3195
3196 ac_ext=c
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201
3202
3203 echo "$as_me:$LINENO: checking for egrep" >&5
3204 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3205 if test "${ac_cv_prog_egrep+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3209     then ac_cv_prog_egrep='grep -E'
3210     else ac_cv_prog_egrep='egrep'
3211     fi
3212 fi
3213 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3214 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3215  EGREP=$ac_cv_prog_egrep
3216
3217
3218 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3219 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3220 if test "${ac_cv_header_stdc+set}" = set; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223   cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h.  */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h.  */
3229 #include <stdlib.h>
3230 #include <stdarg.h>
3231 #include <string.h>
3232 #include <float.h>
3233
3234 int
3235 main ()
3236 {
3237
3238   ;
3239   return 0;
3240 }
3241 _ACEOF
3242 rm -f conftest.$ac_objext
3243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3244   (eval $ac_compile) 2>conftest.er1
3245   ac_status=$?
3246   grep -v '^ *+' conftest.er1 >conftest.err
3247   rm -f conftest.er1
3248   cat conftest.err >&5
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); } &&
3251          { ac_try='test -z "$ac_c_werror_flag"
3252                          || test ! -s conftest.err'
3253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254   (eval $ac_try) 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }; } &&
3258          { ac_try='test -s conftest.$ac_objext'
3259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260   (eval $ac_try) 2>&5
3261   ac_status=$?
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); }; }; then
3264   ac_cv_header_stdc=yes
3265 else
3266   echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269 ac_cv_header_stdc=no
3270 fi
3271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3272
3273 if test $ac_cv_header_stdc = yes; then
3274   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3275   cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h.  */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h.  */
3281 #include <string.h>
3282
3283 _ACEOF
3284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3285   $EGREP "memchr" >/dev/null 2>&1; then
3286   :
3287 else
3288   ac_cv_header_stdc=no
3289 fi
3290 rm -f conftest*
3291
3292 fi
3293
3294 if test $ac_cv_header_stdc = yes; then
3295   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3296   cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302 #include <stdlib.h>
3303
3304 _ACEOF
3305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3306   $EGREP "free" >/dev/null 2>&1; then
3307   :
3308 else
3309   ac_cv_header_stdc=no
3310 fi
3311 rm -f conftest*
3312
3313 fi
3314
3315 if test $ac_cv_header_stdc = yes; then
3316   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3317   if test "$cross_compiling" = yes; then
3318   :
3319 else
3320   cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h.  */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h.  */
3326 #include <ctype.h>
3327 #if ((' ' & 0x0FF) == 0x020)
3328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3330 #else
3331 # define ISLOWER(c) \
3332                    (('a' <= (c) && (c) <= 'i') \
3333                      || ('j' <= (c) && (c) <= 'r') \
3334                      || ('s' <= (c) && (c) <= 'z'))
3335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3336 #endif
3337
3338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3339 int
3340 main ()
3341 {
3342   int i;
3343   for (i = 0; i < 256; i++)
3344     if (XOR (islower (i), ISLOWER (i))
3345         || toupper (i) != TOUPPER (i))
3346       exit(2);
3347   exit (0);
3348 }
3349 _ACEOF
3350 rm -f conftest$ac_exeext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3352   (eval $ac_link) 2>&5
3353   ac_status=$?
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357   (eval $ac_try) 2>&5
3358   ac_status=$?
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); }; }; then
3361   :
3362 else
3363   echo "$as_me: program exited with status $ac_status" >&5
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 ( exit $ac_status )
3368 ac_cv_header_stdc=no
3369 fi
3370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3371 fi
3372 fi
3373 fi
3374 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3375 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3376 if test $ac_cv_header_stdc = yes; then
3377
3378 cat >>confdefs.h <<\_ACEOF
3379 #define STDC_HEADERS 1
3380 _ACEOF
3381
3382 fi
3383
3384 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3395                   inttypes.h stdint.h unistd.h
3396 do
3397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3398 echo "$as_me:$LINENO: checking for $ac_header" >&5
3399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409 $ac_includes_default
3410
3411 #include <$ac_header>
3412 _ACEOF
3413 rm -f conftest.$ac_objext
3414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415   (eval $ac_compile) 2>conftest.er1
3416   ac_status=$?
3417   grep -v '^ *+' conftest.er1 >conftest.err
3418   rm -f conftest.er1
3419   cat conftest.err >&5
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); } &&
3422          { ac_try='test -z "$ac_c_werror_flag"
3423                          || test ! -s conftest.err'
3424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425   (eval $ac_try) 2>&5
3426   ac_status=$?
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); }; } &&
3429          { ac_try='test -s conftest.$ac_objext'
3430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431   (eval $ac_try) 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }; }; then
3435   eval "$as_ac_Header=yes"
3436 else
3437   echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440 eval "$as_ac_Header=no"
3441 fi
3442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3443 fi
3444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3447   cat >>confdefs.h <<_ACEOF
3448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3449 _ACEOF
3450
3451 fi
3452
3453 done
3454
3455
3456
3457 for ac_header in X11/extensions/Xdbe.h
3458 do
3459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3461   echo "$as_me:$LINENO: checking for $ac_header" >&5
3462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 fi
3466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3468 else
3469   # Is the header compilable?
3470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h.  */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h.  */
3478 $ac_includes_default
3479 #include <$ac_header>
3480 _ACEOF
3481 rm -f conftest.$ac_objext
3482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483   (eval $ac_compile) 2>conftest.er1
3484   ac_status=$?
3485   grep -v '^ *+' conftest.er1 >conftest.err
3486   rm -f conftest.er1
3487   cat conftest.err >&5
3488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); } &&
3490          { ac_try='test -z "$ac_c_werror_flag"
3491                          || test ! -s conftest.err'
3492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493   (eval $ac_try) 2>&5
3494   ac_status=$?
3495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); }; } &&
3497          { ac_try='test -s conftest.$ac_objext'
3498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499   (eval $ac_try) 2>&5
3500   ac_status=$?
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); }; }; then
3503   ac_header_compiler=yes
3504 else
3505   echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 ac_header_compiler=no
3509 fi
3510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3512 echo "${ECHO_T}$ac_header_compiler" >&6
3513
3514 # Is the header present?
3515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h.  */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h.  */
3523 #include <$ac_header>
3524 _ACEOF
3525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3527   ac_status=$?
3528   grep -v '^ *+' conftest.er1 >conftest.err
3529   rm -f conftest.er1
3530   cat conftest.err >&5
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); } >/dev/null; then
3533   if test -s conftest.err; then
3534     ac_cpp_err=$ac_c_preproc_warn_flag
3535     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3536   else
3537     ac_cpp_err=
3538   fi
3539 else
3540   ac_cpp_err=yes
3541 fi
3542 if test -z "$ac_cpp_err"; then
3543   ac_header_preproc=yes
3544 else
3545   echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548   ac_header_preproc=no
3549 fi
3550 rm -f conftest.err conftest.$ac_ext
3551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3552 echo "${ECHO_T}$ac_header_preproc" >&6
3553
3554 # So?  What about this header?
3555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3556   yes:no: )
3557     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3561     ac_header_preproc=yes
3562     ;;
3563   no:yes:* )
3564     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3566     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3567 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3568     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3570     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3571 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3574     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3576     (
3577       cat <<\_ASBOX
3578 ## ------------------------------------------ ##
3579 ## Report this to the AC_PACKAGE_NAME lists.  ##
3580 ## ------------------------------------------ ##
3581 _ASBOX
3582     ) |
3583       sed "s/^/$as_me: WARNING:     /" >&2
3584     ;;
3585 esac
3586 echo "$as_me:$LINENO: checking for $ac_header" >&5
3587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   eval "$as_ac_Header=\$ac_header_preproc"
3592 fi
3593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3595
3596 fi
3597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3598   cat >>confdefs.h <<_ACEOF
3599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3600 _ACEOF
3601
3602 cat >>confdefs.h <<\_ACEOF
3603 #define HAVE_XDBE 1
3604 _ACEOF
3605
3606 else
3607   XDBE_MISSING=yes
3608 fi
3609
3610 done
3611
3612   if test "x$XDBE_MISSING" = xyes; then
3613       { { echo "$as_me:$LINENO: error: something went wrong when checking for Xdbe (double buffer extension" >&5
3614 echo "$as_me: error: something went wrong when checking for Xdbe (double buffer extension" >&2;}
3615    { (exit 1); exit 1; }; }
3616   fi
3617 fi
3618
3619
3620 dah=no
3621 # Check whether --enable-proc_uptime or --disable-proc_uptime was given.
3622 if test "${enable_proc_uptime+set}" = set; then
3623   enableval="$enable_proc_uptime"
3624   dah="$enableval"
3625 fi;
3626
3627 if test $dah = "yes"; then
3628
3629 cat >>confdefs.h <<\_ACEOF
3630 #define PROC_UPTIME 1
3631 _ACEOF
3632
3633 fi
3634
3635
3636 want_seti=no
3637 # Check whether --enable-seti or --disable-seti was given.
3638 if test "${enable_seti+set}" = set; then
3639   enableval="$enable_seti"
3640   want_seti="$enableval"
3641 fi;
3642
3643
3644
3645 if test x$want_seti == xyes; then
3646   BUILD_SETI_TRUE=
3647   BUILD_SETI_FALSE='#'
3648 else
3649   BUILD_SETI_TRUE='#'
3650   BUILD_SETI_FALSE=
3651 fi
3652
3653 if test x$want_seti == xyes; then
3654
3655 cat >>confdefs.h <<\_ACEOF
3656 #define SETI 1
3657 _ACEOF
3658
3659 fi
3660
3661
3662 want_mpd=no
3663 # Check whether --enable-mpd or --disable-mpd was given.
3664 if test "${enable_mpd+set}" = set; then
3665   enableval="$enable_mpd"
3666   want_mpd="$enableval"
3667 fi;
3668
3669
3670
3671 if test x$want_mpd == xyes; then
3672   BUILD_MPD_TRUE=
3673   BUILD_MPD_FALSE='#'
3674 else
3675   BUILD_MPD_TRUE='#'
3676   BUILD_MPD_FALSE=
3677 fi
3678
3679 if test x$want_mpd == xyes; then
3680
3681 cat >>confdefs.h <<\_ACEOF
3682 #define MPD 1
3683 _ACEOF
3684
3685 fi
3686
3687
3688 want_cairo=no
3689 # Check whether --enable-cairo or --disable-cairo was given.
3690 if test "${enable_cairo+set}" = set; then
3691   enableval="$enable_cairo"
3692   want_cairo="$enableval"
3693 fi;
3694
3695
3696
3697 if test x$want_cairo == xyes; then
3698   BUILD_CAIRO_TRUE=
3699   BUILD_CAIRO_FALSE='#'
3700 else
3701   BUILD_CAIRO_TRUE='#'
3702   BUILD_CAIRO_FALSE=
3703 fi
3704
3705
3706
3707 if test "$want_cairo" = "yes"; then
3708
3709
3710 for ac_header in cairo.h cairo-xlib.h
3711 do
3712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3714   echo "$as_me:$LINENO: checking for $ac_header" >&5
3715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 fi
3719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3721 else
3722   # Is the header compilable?
3723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3725 cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h.  */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h.  */
3731 $ac_includes_default
3732 #include <$ac_header>
3733 _ACEOF
3734 rm -f conftest.$ac_objext
3735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3736   (eval $ac_compile) 2>conftest.er1
3737   ac_status=$?
3738   grep -v '^ *+' conftest.er1 >conftest.err
3739   rm -f conftest.er1
3740   cat conftest.err >&5
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } &&
3743          { ac_try='test -z "$ac_c_werror_flag"
3744                          || test ! -s conftest.err'
3745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746   (eval $ac_try) 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); }; } &&
3750          { ac_try='test -s conftest.$ac_objext'
3751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752   (eval $ac_try) 2>&5
3753   ac_status=$?
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); }; }; then
3756   ac_header_compiler=yes
3757 else
3758   echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 ac_header_compiler=no
3762 fi
3763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3765 echo "${ECHO_T}$ac_header_compiler" >&6
3766
3767 # Is the header present?
3768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h.  */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h.  */
3776 #include <$ac_header>
3777 _ACEOF
3778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3780   ac_status=$?
3781   grep -v '^ *+' conftest.er1 >conftest.err
3782   rm -f conftest.er1
3783   cat conftest.err >&5
3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); } >/dev/null; then
3786   if test -s conftest.err; then
3787     ac_cpp_err=$ac_c_preproc_warn_flag
3788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3789   else
3790     ac_cpp_err=
3791   fi
3792 else
3793   ac_cpp_err=yes
3794 fi
3795 if test -z "$ac_cpp_err"; then
3796   ac_header_preproc=yes
3797 else
3798   echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3800
3801   ac_header_preproc=no
3802 fi
3803 rm -f conftest.err conftest.$ac_ext
3804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3805 echo "${ECHO_T}$ac_header_preproc" >&6
3806
3807 # So?  What about this header?
3808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3809   yes:no: )
3810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3814     ac_header_preproc=yes
3815     ;;
3816   no:yes:* )
3817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3819     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3820 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3821     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3823     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3824 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3827     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3829     (
3830       cat <<\_ASBOX
3831 ## ------------------------------------------ ##
3832 ## Report this to the AC_PACKAGE_NAME lists.  ##
3833 ## ------------------------------------------ ##
3834 _ASBOX
3835     ) |
3836       sed "s/^/$as_me: WARNING:     /" >&2
3837     ;;
3838 esac
3839 echo "$as_me:$LINENO: checking for $ac_header" >&5
3840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   eval "$as_ac_Header=\$ac_header_preproc"
3845 fi
3846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3848
3849 fi
3850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3851   cat >>confdefs.h <<_ACEOF
3852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3853 _ACEOF
3854
3855 else
3856   CAIRO_MISSING=yes
3857 fi
3858
3859 done
3860
3861     if test "x$CAIRO_MISSING" = xyes; then
3862       { { echo "$as_me:$LINENO: error: something went wrong when checking for cairo, you're probably missing headers or it's not installed" >&5
3863 echo "$as_me: error: something went wrong when checking for cairo, you're probably missing headers or it's not installed" >&2;}
3864    { (exit 1); exit 1; }; }
3865   fi
3866   # Extract the first word of "pkg-config", so it can be a program name with args.
3867 set dummy pkg-config; ac_word=$2
3868 echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870 if test "${ac_cv_path_CAIROCONFIG+set}" = set; then
3871   echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873   case $CAIROCONFIG in
3874   [\\/]* | ?:[\\/]*)
3875   ac_cv_path_CAIROCONFIG="$CAIROCONFIG" # Let the user override the test with a path.
3876   ;;
3877   *)
3878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881   IFS=$as_save_IFS
3882   test -z "$as_dir" && as_dir=.
3883   for ac_exec_ext in '' $ac_executable_extensions; do
3884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885     ac_cv_path_CAIROCONFIG="$as_dir/$ac_word$ac_exec_ext"
3886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3887     break 2
3888   fi
3889 done
3890 done
3891
3892   ;;
3893 esac
3894 fi
3895 CAIROCONFIG=$ac_cv_path_CAIROCONFIG
3896
3897 if test -n "$CAIROCONFIG"; then
3898   echo "$as_me:$LINENO: result: $CAIROCONFIG" >&5
3899 echo "${ECHO_T}$CAIROCONFIG" >&6
3900 else
3901   echo "$as_me:$LINENO: result: no" >&5
3902 echo "${ECHO_T}no" >&6
3903 fi
3904
3905   if test x$CAIROCONFIG != x; then
3906
3907
3908 cat >>confdefs.h <<\_ACEOF
3909 #define CAIRO 1
3910 _ACEOF
3911
3912     CFLAGS="$CFLAGS `$CAIROCONFIG --cflags cairo` `$CAIROCONFIG --libs cairo` "
3913     CAIRO_LIBS="`$CAIROCONFIG --libs cairo` `$CAIROCONFIG --cflags cairo`"
3914   else
3915     want_cairo=no
3916   fi
3917 fi
3918
3919
3920 want_metar=no
3921 # Check whether --enable-metar or --disable-metar was given.
3922 if test "${enable_metar+set}" = set; then
3923   enableval="$enable_metar"
3924   want_metar="$enableval"
3925 fi;
3926
3927
3928
3929 if test x$want_metar == xyes; then
3930   BUILD_METAR_TRUE=
3931   BUILD_METAR_FALSE='#'
3932 else
3933   BUILD_METAR_TRUE='#'
3934   BUILD_METAR_FALSE=
3935 fi
3936
3937 if test x$want_metar == xyes; then
3938
3939 for ac_header in metar.h
3940 do
3941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943   echo "$as_me:$LINENO: checking for $ac_header" >&5
3944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3946   echo $ECHO_N "(cached) $ECHO_C" >&6
3947 fi
3948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3950 else
3951   # Is the header compilable?
3952 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3954 cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h.  */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h.  */
3960 $ac_includes_default
3961 #include <$ac_header>
3962 _ACEOF
3963 rm -f conftest.$ac_objext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965   (eval $ac_compile) 2>conftest.er1
3966   ac_status=$?
3967   grep -v '^ *+' conftest.er1 >conftest.err
3968   rm -f conftest.er1
3969   cat conftest.err >&5
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } &&
3972          { ac_try='test -z "$ac_c_werror_flag"
3973                          || test ! -s conftest.err'
3974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975   (eval $ac_try) 2>&5
3976   ac_status=$?
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); }; } &&
3979          { ac_try='test -s conftest.$ac_objext'
3980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981   (eval $ac_try) 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); }; }; then
3985   ac_header_compiler=yes
3986 else
3987   echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990 ac_header_compiler=no
3991 fi
3992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3994 echo "${ECHO_T}$ac_header_compiler" >&6
3995
3996 # Is the header present?
3997 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h.  */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h.  */
4005 #include <$ac_header>
4006 _ACEOF
4007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4009   ac_status=$?
4010   grep -v '^ *+' conftest.er1 >conftest.err
4011   rm -f conftest.er1
4012   cat conftest.err >&5
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } >/dev/null; then
4015   if test -s conftest.err; then
4016     ac_cpp_err=$ac_c_preproc_warn_flag
4017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4018   else
4019     ac_cpp_err=
4020   fi
4021 else
4022   ac_cpp_err=yes
4023 fi
4024 if test -z "$ac_cpp_err"; then
4025   ac_header_preproc=yes
4026 else
4027   echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030   ac_header_preproc=no
4031 fi
4032 rm -f conftest.err conftest.$ac_ext
4033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4034 echo "${ECHO_T}$ac_header_preproc" >&6
4035
4036 # So?  What about this header?
4037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4038   yes:no: )
4039     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4043     ac_header_preproc=yes
4044     ;;
4045   no:yes:* )
4046     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4048     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4049 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4050     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4052     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4053 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4056     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4058     (
4059       cat <<\_ASBOX
4060 ## ------------------------------------------ ##
4061 ## Report this to the AC_PACKAGE_NAME lists.  ##
4062 ## ------------------------------------------ ##
4063 _ASBOX
4064     ) |
4065       sed "s/^/$as_me: WARNING:     /" >&2
4066     ;;
4067 esac
4068 echo "$as_me:$LINENO: checking for $ac_header" >&5
4069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   eval "$as_ac_Header=\$ac_header_preproc"
4074 fi
4075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4077
4078 fi
4079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4080   cat >>confdefs.h <<_ACEOF
4081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4082 _ACEOF
4083
4084 else
4085   METAR_MISSING=yes
4086 fi
4087
4088 done
4089
4090     if test "x$METAR_MISSING" = xyes; then
4091       { { echo "$as_me:$LINENO: error: something went wrong when checking for mdsplib, you're probably missing headers or it's not installed" >&5
4092 echo "$as_me: error: something went wrong when checking for mdsplib, you're probably missing headers or it's not installed" >&2;}
4093    { (exit 1); exit 1; }; }
4094   fi
4095
4096 cat >>confdefs.h <<\_ACEOF
4097 #define METAR 1
4098 _ACEOF
4099
4100 fi
4101
4102
4103
4104
4105 want_mldonkey=no
4106 # Check whether --enable-mldonkey or --disable-mldonkey was given.
4107 if test "${enable_mldonkey+set}" = set; then
4108   enableval="$enable_mldonkey"
4109   want_mldonkey="$enableval"
4110 fi;
4111
4112
4113
4114 if test x$want_mldonkey == xyes; then
4115   BUILD_MLDONKEY_TRUE=
4116   BUILD_MLDONKEY_FALSE='#'
4117 else
4118   BUILD_MLDONKEY_TRUE='#'
4119   BUILD_MLDONKEY_FALSE=
4120 fi
4121
4122 if test x$want_mldonkey == xyes; then
4123
4124 cat >>confdefs.h <<\_ACEOF
4125 #define MLDONKEY 1
4126 _ACEOF
4127
4128 fi
4129
4130
4131 ac_ext=c
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136 if test -n "$ac_tool_prefix"; then
4137   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4139 echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4141 if test "${ac_cv_prog_CC+set}" = set; then
4142   echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144   if test -n "$CC"; then
4145   ac_cv_prog_CC="$CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150   IFS=$as_save_IFS
4151   test -z "$as_dir" && as_dir=.
4152   for ac_exec_ext in '' $ac_executable_extensions; do
4153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4154     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4156     break 2
4157   fi
4158 done
4159 done
4160
4161 fi
4162 fi
4163 CC=$ac_cv_prog_CC
4164 if test -n "$CC"; then
4165   echo "$as_me:$LINENO: result: $CC" >&5
4166 echo "${ECHO_T}$CC" >&6
4167 else
4168   echo "$as_me:$LINENO: result: no" >&5
4169 echo "${ECHO_T}no" >&6
4170 fi
4171
4172 fi
4173 if test -z "$ac_cv_prog_CC"; then
4174   ac_ct_CC=$CC
4175   # Extract the first word of "gcc", so it can be a program name with args.
4176 set dummy gcc; ac_word=$2
4177 echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4180   echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182   if test -n "$ac_ct_CC"; then
4183   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190   for ac_exec_ext in '' $ac_executable_extensions; do
4191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192     ac_cv_prog_ac_ct_CC="gcc"
4193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194     break 2
4195   fi
4196 done
4197 done
4198
4199 fi
4200 fi
4201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4202 if test -n "$ac_ct_CC"; then
4203   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4204 echo "${ECHO_T}$ac_ct_CC" >&6
4205 else
4206   echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4208 fi
4209
4210   CC=$ac_ct_CC
4211 else
4212   CC="$ac_cv_prog_CC"
4213 fi
4214
4215 if test -z "$CC"; then
4216   if test -n "$ac_tool_prefix"; then
4217   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4218 set dummy ${ac_tool_prefix}cc; ac_word=$2
4219 echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4221 if test "${ac_cv_prog_CC+set}" = set; then
4222   echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224   if test -n "$CC"; then
4225   ac_cv_prog_CC="$CC" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4229 do
4230   IFS=$as_save_IFS
4231   test -z "$as_dir" && as_dir=.
4232   for ac_exec_ext in '' $ac_executable_extensions; do
4233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4234     ac_cv_prog_CC="${ac_tool_prefix}cc"
4235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4236     break 2
4237   fi
4238 done
4239 done
4240
4241 fi
4242 fi
4243 CC=$ac_cv_prog_CC
4244 if test -n "$CC"; then
4245   echo "$as_me:$LINENO: result: $CC" >&5
4246 echo "${ECHO_T}$CC" >&6
4247 else
4248   echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6
4250 fi
4251
4252 fi
4253 if test -z "$ac_cv_prog_CC"; then
4254   ac_ct_CC=$CC
4255   # Extract the first word of "cc", so it can be a program name with args.
4256 set dummy cc; ac_word=$2
4257 echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4260   echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262   if test -n "$ac_ct_CC"; then
4263   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270   for ac_exec_ext in '' $ac_executable_extensions; do
4271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272     ac_cv_prog_ac_ct_CC="cc"
4273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277 done
4278
4279 fi
4280 fi
4281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4282 if test -n "$ac_ct_CC"; then
4283   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4284 echo "${ECHO_T}$ac_ct_CC" >&6
4285 else
4286   echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4288 fi
4289
4290   CC=$ac_ct_CC
4291 else
4292   CC="$ac_cv_prog_CC"
4293 fi
4294
4295 fi
4296 if test -z "$CC"; then
4297   # Extract the first word of "cc", so it can be a program name with args.
4298 set dummy cc; ac_word=$2
4299 echo "$as_me:$LINENO: checking for $ac_word" >&5
4300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4301 if test "${ac_cv_prog_CC+set}" = set; then
4302   echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304   if test -n "$CC"; then
4305   ac_cv_prog_CC="$CC" # Let the user override the test.
4306 else
4307   ac_prog_rejected=no
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4310 do
4311   IFS=$as_save_IFS
4312   test -z "$as_dir" && as_dir=.
4313   for ac_exec_ext in '' $ac_executable_extensions; do
4314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4315     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4316        ac_prog_rejected=yes
4317        continue
4318      fi
4319     ac_cv_prog_CC="cc"
4320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321     break 2
4322   fi
4323 done
4324 done
4325
4326 if test $ac_prog_rejected = yes; then
4327   # We found a bogon in the path, so make sure we never use it.
4328   set dummy $ac_cv_prog_CC
4329   shift
4330   if test $# != 0; then
4331     # We chose a different compiler from the bogus one.
4332     # However, it has the same basename, so the bogon will be chosen
4333     # first if we set CC to just the basename; use the full file name.
4334     shift
4335     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4336   fi
4337 fi
4338 fi
4339 fi
4340 CC=$ac_cv_prog_CC
4341 if test -n "$CC"; then
4342   echo "$as_me:$LINENO: result: $CC" >&5
4343 echo "${ECHO_T}$CC" >&6
4344 else
4345   echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6
4347 fi
4348
4349 fi
4350 if test -z "$CC"; then
4351   if test -n "$ac_tool_prefix"; then
4352   for ac_prog in cl
4353   do
4354     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4356 echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358 if test "${ac_cv_prog_CC+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   if test -n "$CC"; then
4362   ac_cv_prog_CC="$CC" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367   IFS=$as_save_IFS
4368   test -z "$as_dir" && as_dir=.
4369   for ac_exec_ext in '' $ac_executable_extensions; do
4370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373     break 2
4374   fi
4375 done
4376 done
4377
4378 fi
4379 fi
4380 CC=$ac_cv_prog_CC
4381 if test -n "$CC"; then
4382   echo "$as_me:$LINENO: result: $CC" >&5
4383 echo "${ECHO_T}$CC" >&6
4384 else
4385   echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4387 fi
4388
4389     test -n "$CC" && break
4390   done
4391 fi
4392 if test -z "$CC"; then
4393   ac_ct_CC=$CC
4394   for ac_prog in cl
4395 do
4396   # Extract the first word of "$ac_prog", so it can be a program name with args.
4397 set dummy $ac_prog; ac_word=$2
4398 echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   if test -n "$ac_ct_CC"; then
4404   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411   for ac_exec_ext in '' $ac_executable_extensions; do
4412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413     ac_cv_prog_ac_ct_CC="$ac_prog"
4414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418 done
4419
4420 fi
4421 fi
4422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4423 if test -n "$ac_ct_CC"; then
4424   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4425 echo "${ECHO_T}$ac_ct_CC" >&6
4426 else
4427   echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6
4429 fi
4430
4431   test -n "$ac_ct_CC" && break
4432 done
4433
4434   CC=$ac_ct_CC
4435 fi
4436
4437 fi
4438
4439
4440 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4441 See \`config.log' for more details." >&5
4442 echo "$as_me: error: no acceptable C compiler found in \$PATH
4443 See \`config.log' for more details." >&2;}
4444    { (exit 1); exit 1; }; }
4445
4446 # Provide some information about the compiler.
4447 echo "$as_me:$LINENO:" \
4448      "checking for C compiler version" >&5
4449 ac_compiler=`set X $ac_compile; echo $2`
4450 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4451   (eval $ac_compiler --version </dev/null >&5) 2>&5
4452   ac_status=$?
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); }
4455 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4456   (eval $ac_compiler -v </dev/null >&5) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }
4460 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4461   (eval $ac_compiler -V </dev/null >&5) 2>&5
4462   ac_status=$?
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); }
4465
4466 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4467 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4468 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4469   echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471   cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h.  */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h.  */
4477
4478 int
4479 main ()
4480 {
4481 #ifndef __GNUC__
4482        choke me
4483 #endif
4484
4485   ;
4486   return 0;
4487 }
4488 _ACEOF
4489 rm -f conftest.$ac_objext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491   (eval $ac_compile) 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } &&
4498          { ac_try='test -z "$ac_c_werror_flag"
4499                          || test ! -s conftest.err'
4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501   (eval $ac_try) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; } &&
4505          { ac_try='test -s conftest.$ac_objext'
4506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507   (eval $ac_try) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; }; then
4511   ac_compiler_gnu=yes
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 ac_compiler_gnu=no
4517 fi
4518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4519 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4520
4521 fi
4522 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4523 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4524 GCC=`test $ac_compiler_gnu = yes && echo yes`
4525 ac_test_CFLAGS=${CFLAGS+set}
4526 ac_save_CFLAGS=$CFLAGS
4527 CFLAGS="-g"
4528 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4529 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4530 if test "${ac_cv_prog_cc_g+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h.  */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h.  */
4539
4540 int
4541 main ()
4542 {
4543
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550   (eval $ac_compile) 2>conftest.er1
4551   ac_status=$?
4552   grep -v '^ *+' conftest.er1 >conftest.err
4553   rm -f conftest.er1
4554   cat conftest.err >&5
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } &&
4557          { ac_try='test -z "$ac_c_werror_flag"
4558                          || test ! -s conftest.err'
4559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560   (eval $ac_try) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); }; } &&
4564          { ac_try='test -s conftest.$ac_objext'
4565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566   (eval $ac_try) 2>&5
4567   ac_status=$?
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); }; }; then
4570   ac_cv_prog_cc_g=yes
4571 else
4572   echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4574
4575 ac_cv_prog_cc_g=no
4576 fi
4577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4578 fi
4579 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4580 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4581 if test "$ac_test_CFLAGS" = set; then
4582   CFLAGS=$ac_save_CFLAGS
4583 elif test $ac_cv_prog_cc_g = yes; then
4584   if test "$GCC" = yes; then
4585     CFLAGS="-g -O2"
4586   else
4587     CFLAGS="-g"
4588   fi
4589 else
4590   if test "$GCC" = yes; then
4591     CFLAGS="-O2"
4592   else
4593     CFLAGS=
4594   fi
4595 fi
4596 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4597 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4598 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   ac_cv_prog_cc_stdc=no
4602 ac_save_CC=$CC
4603 cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h.  */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h.  */
4609 #include <stdarg.h>
4610 #include <stdio.h>
4611 #include <sys/types.h>
4612 #include <sys/stat.h>
4613 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4614 struct buf { int x; };
4615 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4616 static char *e (p, i)
4617      char **p;
4618      int i;
4619 {
4620   return p[i];
4621 }
4622 static char *f (char * (*g) (char **, int), char **p, ...)
4623 {
4624   char *s;
4625   va_list v;
4626   va_start (v,p);
4627   s = g (p, va_arg (v,int));
4628   va_end (v);
4629   return s;
4630 }
4631
4632 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4633    function prototypes and stuff, but not '\xHH' hex character constants.
4634    These don't provoke an error unfortunately, instead are silently treated
4635    as 'x'.  The following induces an error, until -std1 is added to get
4636    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4637    array size at least.  It's necessary to write '\x00'==0 to get something
4638    that's true only with -std1.  */
4639 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4640
4641 int test (int i, double x);
4642 struct s1 {int (*f) (int a);};
4643 struct s2 {int (*f) (double a);};
4644 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4645 int argc;
4646 char **argv;
4647 int
4648 main ()
4649 {
4650 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 # Don't try gcc -ansi; that turns off useful extensions and
4656 # breaks some systems' header files.
4657 # AIX                   -qlanglvl=ansi
4658 # Ultrix and OSF/1      -std1
4659 # HP-UX 10.20 and later -Ae
4660 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4661 # SVR4                  -Xc -D__EXTENSIONS__
4662 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4663 do
4664   CC="$ac_save_CC $ac_arg"
4665   rm -f conftest.$ac_objext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667   (eval $ac_compile) 2>conftest.er1
4668   ac_status=$?
4669   grep -v '^ *+' conftest.er1 >conftest.err
4670   rm -f conftest.er1
4671   cat conftest.err >&5
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); } &&
4674          { ac_try='test -z "$ac_c_werror_flag"
4675                          || test ! -s conftest.err'
4676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677   (eval $ac_try) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); }; } &&
4681          { ac_try='test -s conftest.$ac_objext'
4682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683   (eval $ac_try) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; }; then
4687   ac_cv_prog_cc_stdc=$ac_arg
4688 break
4689 else
4690   echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 fi
4694 rm -f conftest.err conftest.$ac_objext
4695 done
4696 rm -f conftest.$ac_ext conftest.$ac_objext
4697 CC=$ac_save_CC
4698
4699 fi
4700
4701 case "x$ac_cv_prog_cc_stdc" in
4702   x|xno)
4703     echo "$as_me:$LINENO: result: none needed" >&5
4704 echo "${ECHO_T}none needed" >&6 ;;
4705   *)
4706     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4707 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4708     CC="$CC $ac_cv_prog_cc_stdc" ;;
4709 esac
4710
4711 # Some people use a C++ compiler to compile C.  Since we use `exit',
4712 # in C++ we need to declare it.  In case someone uses the same compiler
4713 # for both compiling C and C++ we need to have the C++ compiler decide
4714 # the declaration of exit, since it's the most demanding environment.
4715 cat >conftest.$ac_ext <<_ACEOF
4716 #ifndef __cplusplus
4717   choke me
4718 #endif
4719 _ACEOF
4720 rm -f conftest.$ac_objext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722   (eval $ac_compile) 2>conftest.er1
4723   ac_status=$?
4724   grep -v '^ *+' conftest.er1 >conftest.err
4725   rm -f conftest.er1
4726   cat conftest.err >&5
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } &&
4729          { ac_try='test -z "$ac_c_werror_flag"
4730                          || test ! -s conftest.err'
4731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732   (eval $ac_try) 2>&5
4733   ac_status=$?
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); }; } &&
4736          { ac_try='test -s conftest.$ac_objext'
4737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738   (eval $ac_try) 2>&5
4739   ac_status=$?
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); }; }; then
4742   for ac_declaration in \
4743    '' \
4744    'extern "C" void std::exit (int) throw (); using std::exit;' \
4745    'extern "C" void std::exit (int); using std::exit;' \
4746    'extern "C" void exit (int) throw ();' \
4747    'extern "C" void exit (int);' \
4748    'void exit (int);'
4749 do
4750   cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h.  */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h.  */
4756 $ac_declaration
4757 #include <stdlib.h>
4758 int
4759 main ()
4760 {
4761 exit (42);
4762   ;
4763   return 0;
4764 }
4765 _ACEOF
4766 rm -f conftest.$ac_objext
4767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768   (eval $ac_compile) 2>conftest.er1
4769   ac_status=$?
4770   grep -v '^ *+' conftest.er1 >conftest.err
4771   rm -f conftest.er1
4772   cat conftest.err >&5
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); } &&
4775          { ac_try='test -z "$ac_c_werror_flag"
4776                          || test ! -s conftest.err'
4777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778   (eval $ac_try) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; } &&
4782          { ac_try='test -s conftest.$ac_objext'
4783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784   (eval $ac_try) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; }; then
4788   :
4789 else
4790   echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4792
4793 continue
4794 fi
4795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4796   cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802 $ac_declaration
4803 int
4804 main ()
4805 {
4806 exit (42);
4807   ;
4808   return 0;
4809 }
4810 _ACEOF
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813   (eval $ac_compile) 2>conftest.er1
4814   ac_status=$?
4815   grep -v '^ *+' conftest.er1 >conftest.err
4816   rm -f conftest.er1
4817   cat conftest.err >&5
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); } &&
4820          { ac_try='test -z "$ac_c_werror_flag"
4821                          || test ! -s conftest.err'
4822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823   (eval $ac_try) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; } &&
4827          { ac_try='test -s conftest.$ac_objext'
4828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829   (eval $ac_try) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); }; }; then
4833   break
4834 else
4835   echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838 fi
4839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4840 done
4841 rm -f conftest*
4842 if test -n "$ac_declaration"; then
4843   echo '#ifdef __cplusplus' >>confdefs.h
4844   echo $ac_declaration      >>confdefs.h
4845   echo '#endif'             >>confdefs.h
4846 fi
4847
4848 else
4849   echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852 fi
4853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4854 ac_ext=c
4855 ac_cpp='$CPP $CPPFLAGS'
4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859
4860 depcc="$CC"   am_compiler_list=
4861
4862 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4863 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4864 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4868   # We make a subdir and do the tests there.  Otherwise we can end up
4869   # making bogus files that we don't know about and never remove.  For
4870   # instance it was reported that on HP-UX the gcc test will end up
4871   # making a dummy file named `D' -- because `-MD' means `put the output
4872   # in D'.
4873   mkdir conftest.dir
4874   # Copy depcomp to subdir because otherwise we won't find it if we're
4875   # using a relative directory.
4876   cp "$am_depcomp" conftest.dir
4877   cd conftest.dir
4878   # We will build objects and dependencies in a subdirectory because
4879   # it helps to detect inapplicable dependency modes.  For instance
4880   # both Tru64's cc and ICC support -MD to output dependencies as a
4881   # side effect of compilation, but ICC will put the dependencies in
4882   # the current directory while Tru64 will put them in the object
4883   # directory.
4884   mkdir sub
4885
4886   am_cv_CC_dependencies_compiler_type=none
4887   if test "$am_compiler_list" = ""; then
4888      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4889   fi
4890   for depmode in $am_compiler_list; do
4891     # Setup a source with many dependencies, because some compilers
4892     # like to wrap large dependency lists on column 80 (with \), and
4893     # we should not choose a depcomp mode which is confused by this.
4894     #
4895     # We need to recreate these files for each test, as the compiler may
4896     # overwrite some of them when testing with obscure command lines.
4897     # This happens at least with the AIX C compiler.
4898     : > sub/conftest.c
4899     for i in 1 2 3 4 5 6; do
4900       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4901       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4902       # Solaris 8's {/usr,}/bin/sh.
4903       touch sub/conftst$i.h
4904     done
4905     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4906
4907     case $depmode in
4908     nosideeffect)
4909       # after this tag, mechanisms are not by side-effect, so they'll
4910       # only be used when explicitly requested
4911       if test "x$enable_dependency_tracking" = xyes; then
4912         continue
4913       else
4914         break
4915       fi
4916       ;;
4917     none) break ;;
4918     esac
4919     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4920     # mode.  It turns out that the SunPro C++ compiler does not properly
4921     # handle `-M -o', and we need to detect this.
4922     if depmode=$depmode \
4923        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4924        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4925        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4926          >/dev/null 2>conftest.err &&
4927        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4928        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4929        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4930       # icc doesn't choke on unknown options, it will just issue warnings
4931       # or remarks (even with -Werror).  So we grep stderr for any message
4932       # that says an option was ignored or not supported.
4933       # When given -MP, icc 7.0 and 7.1 complain thusly:
4934       #   icc: Command line warning: ignoring option '-M'; no argument required
4935       # The diagnosis changed in icc 8.0:
4936       #   icc: Command line remark: option '-MP' not supported
4937       if (grep 'ignoring option' conftest.err ||
4938           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4939         am_cv_CC_dependencies_compiler_type=$depmode
4940         break
4941       fi
4942     fi
4943   done
4944
4945   cd ..
4946   rm -rf conftest.dir
4947 else
4948   am_cv_CC_dependencies_compiler_type=none
4949 fi
4950
4951 fi
4952 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4953 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4954 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4955
4956
4957
4958 if
4959   test "x$enable_dependency_tracking" != xno \
4960   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4961   am__fastdepCC_TRUE=
4962   am__fastdepCC_FALSE='#'
4963 else
4964   am__fastdepCC_TRUE='#'
4965   am__fastdepCC_FALSE=
4966 fi
4967
4968
4969
4970
4971 want_x11=yes
4972 # Check whether --enable-x11 or --disable-x11 was given.
4973 if test "${enable_x11+set}" = set; then
4974   enableval="$enable_x11"
4975   want_x11="$enableval"
4976 fi;
4977
4978
4979
4980
4981 if test x$want_x11 == xyes; then
4982   BUILD_X11_TRUE=
4983   BUILD_X11_FALSE='#'
4984 else
4985   BUILD_X11_TRUE='#'
4986   BUILD_X11_FALSE=
4987 fi
4988
4989 if test x$want_x11 == xyes; then
4990 echo "$as_me:$LINENO: checking for X" >&5
4991 echo $ECHO_N "checking for X... $ECHO_C" >&6
4992
4993
4994 # Check whether --with-x or --without-x was given.
4995 if test "${with_x+set}" = set; then
4996   withval="$with_x"
4997
4998 fi;
4999 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5000 if test "x$with_x" = xno; then
5001   # The user explicitly disabled X.
5002   have_x=disabled
5003 else
5004   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5005     # Both variables are already set.
5006     have_x=yes
5007   else
5008     if test "${ac_cv_have_x+set}" = set; then
5009   echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011   # One or both of the vars are not set, and there is no cached value.
5012 ac_x_includes=no ac_x_libraries=no
5013 rm -fr conftest.dir
5014 if mkdir conftest.dir; then
5015   cd conftest.dir
5016   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5017   cat >Imakefile <<'_ACEOF'
5018 acfindx:
5019         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5020 _ACEOF
5021   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5022     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5023     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5024     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5025     for ac_extension in a so sl; do
5026       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5027          test -f $ac_im_libdir/libX11.$ac_extension; then
5028         ac_im_usrlibdir=$ac_im_libdir; break
5029       fi
5030     done
5031     # Screen out bogus values from the imake configuration.  They are
5032     # bogus both because they are the default anyway, and because
5033     # using them would break gcc on systems where it needs fixed includes.
5034     case $ac_im_incroot in
5035         /usr/include) ;;
5036         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5037     esac
5038     case $ac_im_usrlibdir in
5039         /usr/lib | /lib) ;;
5040         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5041     esac
5042   fi
5043   cd ..
5044   rm -fr conftest.dir
5045 fi
5046
5047 # Standard set of common directories for X headers.
5048 # Check X11 before X11Rn because it is often a symlink to the current release.
5049 ac_x_header_dirs='
5050 /usr/X11/include
5051 /usr/X11R6/include
5052 /usr/X11R5/include
5053 /usr/X11R4/include
5054
5055 /usr/include/X11
5056 /usr/include/X11R6
5057 /usr/include/X11R5
5058 /usr/include/X11R4
5059
5060 /usr/local/X11/include
5061 /usr/local/X11R6/include
5062 /usr/local/X11R5/include
5063 /usr/local/X11R4/include
5064
5065 /usr/local/include/X11
5066 /usr/local/include/X11R6
5067 /usr/local/include/X11R5
5068 /usr/local/include/X11R4
5069
5070 /usr/X386/include
5071 /usr/x386/include
5072 /usr/XFree86/include/X11
5073
5074 /usr/include
5075 /usr/local/include
5076 /usr/unsupported/include
5077 /usr/athena/include
5078 /usr/local/x11r5/include
5079 /usr/lpp/Xamples/include
5080
5081 /usr/openwin/include
5082 /usr/openwin/share/include'
5083
5084 if test "$ac_x_includes" = no; then
5085   # Guess where to find include files, by looking for Intrinsic.h.
5086   # First, try using that file with no special directory specified.
5087   cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h.  */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h.  */
5093 #include <X11/Intrinsic.h>
5094 _ACEOF
5095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5097   ac_status=$?
5098   grep -v '^ *+' conftest.er1 >conftest.err
5099   rm -f conftest.er1
5100   cat conftest.err >&5
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } >/dev/null; then
5103   if test -s conftest.err; then
5104     ac_cpp_err=$ac_c_preproc_warn_flag
5105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5106   else
5107     ac_cpp_err=
5108   fi
5109 else
5110   ac_cpp_err=yes
5111 fi
5112 if test -z "$ac_cpp_err"; then
5113   # We can compile using X headers with no special include directory.
5114 ac_x_includes=
5115 else
5116   echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119   for ac_dir in $ac_x_header_dirs; do
5120   if test -r "$ac_dir/X11/Intrinsic.h"; then
5121     ac_x_includes=$ac_dir
5122     break
5123   fi
5124 done
5125 fi
5126 rm -f conftest.err conftest.$ac_ext
5127 fi # $ac_x_includes = no
5128
5129 if test "$ac_x_libraries" = no; then
5130   # Check for the libraries.
5131   # See if we find them without any special options.
5132   # Don't add to $LIBS permanently.
5133   ac_save_LIBS=$LIBS
5134   LIBS="-lXt $LIBS"
5135   cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h.  */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h.  */
5141 #include <X11/Intrinsic.h>
5142 int
5143 main ()
5144 {
5145 XtMalloc (0)
5146   ;
5147   return 0;
5148 }
5149 _ACEOF
5150 rm -f conftest.$ac_objext conftest$ac_exeext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152   (eval $ac_link) 2>conftest.er1
5153   ac_status=$?
5154   grep -v '^ *+' conftest.er1 >conftest.err
5155   rm -f conftest.er1
5156   cat conftest.err >&5
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); } &&
5159          { ac_try='test -z "$ac_c_werror_flag"
5160                          || test ! -s conftest.err'
5161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162   (eval $ac_try) 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); }; } &&
5166          { ac_try='test -s conftest$ac_exeext'
5167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168   (eval $ac_try) 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); }; }; then
5172   LIBS=$ac_save_LIBS
5173 # We can link X programs with no special library path.
5174 ac_x_libraries=
5175 else
5176   echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179 LIBS=$ac_save_LIBS
5180 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5181 do
5182   # Don't even attempt the hair of trying to link an X program!
5183   for ac_extension in a so sl; do
5184     if test -r $ac_dir/libXt.$ac_extension; then
5185       ac_x_libraries=$ac_dir
5186       break 2
5187     fi
5188   done
5189 done
5190 fi
5191 rm -f conftest.err conftest.$ac_objext \
5192       conftest$ac_exeext conftest.$ac_ext
5193 fi # $ac_x_libraries = no
5194
5195 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5196   # Didn't find X anywhere.  Cache the known absence of X.
5197   ac_cv_have_x="have_x=no"
5198 else
5199   # Record where we found X for the cache.
5200   ac_cv_have_x="have_x=yes \
5201                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5202 fi
5203 fi
5204
5205   fi
5206   eval "$ac_cv_have_x"
5207 fi # $with_x != no
5208
5209 if test "$have_x" != yes; then
5210   echo "$as_me:$LINENO: result: $have_x" >&5
5211 echo "${ECHO_T}$have_x" >&6
5212   no_x=yes
5213 else
5214   # If each of the values was on the command line, it overrides each guess.
5215   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5216   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5217   # Update the cache value to reflect the command line values.
5218   ac_cv_have_x="have_x=yes \
5219                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5220   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5221 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5222 fi
5223
5224
5225 for ac_header in X11/Xlib.h
5226 do
5227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5229   echo "$as_me:$LINENO: checking for $ac_header" >&5
5230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 fi
5234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5236 else
5237   # Is the header compilable?
5238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5240 cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h.  */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h.  */
5246 $ac_includes_default
5247 #include <$ac_header>
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251   (eval $ac_compile) 2>conftest.er1
5252   ac_status=$?
5253   grep -v '^ *+' conftest.er1 >conftest.err
5254   rm -f conftest.er1
5255   cat conftest.err >&5
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); } &&
5258          { ac_try='test -z "$ac_c_werror_flag"
5259                          || test ! -s conftest.err'
5260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261   (eval $ac_try) 2>&5
5262   ac_status=$?
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); }; } &&
5265          { ac_try='test -s conftest.$ac_objext'
5266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267   (eval $ac_try) 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); }; }; then
5271   ac_header_compiler=yes
5272 else
5273   echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5275
5276 ac_header_compiler=no
5277 fi
5278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5280 echo "${ECHO_T}$ac_header_compiler" >&6
5281
5282 # Is the header present?
5283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5285 cat >conftest.$ac_ext <<_ACEOF
5286 /* confdefs.h.  */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h.  */
5291 #include <$ac_header>
5292 _ACEOF
5293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5294   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5295   ac_status=$?
5296   grep -v '^ *+' conftest.er1 >conftest.err
5297   rm -f conftest.er1
5298   cat conftest.err >&5
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); } >/dev/null; then
5301   if test -s conftest.err; then
5302     ac_cpp_err=$ac_c_preproc_warn_flag
5303     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5304   else
5305     ac_cpp_err=
5306   fi
5307 else
5308   ac_cpp_err=yes
5309 fi
5310 if test -z "$ac_cpp_err"; then
5311   ac_header_preproc=yes
5312 else
5313   echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5315
5316   ac_header_preproc=no
5317 fi
5318 rm -f conftest.err conftest.$ac_ext
5319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5320 echo "${ECHO_T}$ac_header_preproc" >&6
5321
5322 # So?  What about this header?
5323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5324   yes:no: )
5325     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5329     ac_header_preproc=yes
5330     ;;
5331   no:yes:* )
5332     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5334     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5335 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5336     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5338     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5339 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5342     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5344     (
5345       cat <<\_ASBOX
5346 ## ------------------------------------------ ##
5347 ## Report this to the AC_PACKAGE_NAME lists.  ##
5348 ## ------------------------------------------ ##
5349 _ASBOX
5350     ) |
5351       sed "s/^/$as_me: WARNING:     /" >&2
5352     ;;
5353 esac
5354 echo "$as_me:$LINENO: checking for $ac_header" >&5
5355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5357   echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359   eval "$as_ac_Header=\$ac_header_preproc"
5360 fi
5361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5363
5364 fi
5365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5366   cat >>confdefs.h <<_ACEOF
5367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368 _ACEOF
5369
5370 else
5371   X11_MISSING=yes
5372 fi
5373
5374 done
5375
5376 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5377 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5378 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   ac_check_lib_save_LIBS=$LIBS
5382 LIBS="-lX11 -L$x_libraries $LIBS"
5383 cat >conftest.$ac_ext <<_ACEOF
5384 /* confdefs.h.  */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h.  */
5389
5390 /* Override any gcc2 internal prototype to avoid an error.  */
5391 #ifdef __cplusplus
5392 extern "C"
5393 #endif
5394 /* We use char because int might match the return type of a gcc2
5395    builtin and then its argument prototype would still apply.  */
5396 char XOpenDisplay ();
5397 int
5398 main ()
5399 {
5400 XOpenDisplay ();
5401   ;
5402   return 0;
5403 }
5404 _ACEOF
5405 rm -f conftest.$ac_objext conftest$ac_exeext
5406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5407   (eval $ac_link) 2>conftest.er1
5408   ac_status=$?
5409   grep -v '^ *+' conftest.er1 >conftest.err
5410   rm -f conftest.er1
5411   cat conftest.err >&5
5412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413   (exit $ac_status); } &&
5414          { ac_try='test -z "$ac_c_werror_flag"
5415                          || test ! -s conftest.err'
5416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417   (eval $ac_try) 2>&5
5418   ac_status=$?
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); }; } &&
5421          { ac_try='test -s conftest$ac_exeext'
5422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423   (eval $ac_try) 2>&5
5424   ac_status=$?
5425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426   (exit $ac_status); }; }; then
5427   ac_cv_lib_X11_XOpenDisplay=yes
5428 else
5429   echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5431
5432 ac_cv_lib_X11_XOpenDisplay=no
5433 fi
5434 rm -f conftest.err conftest.$ac_objext \
5435       conftest$ac_exeext conftest.$ac_ext
5436 LIBS=$ac_check_lib_save_LIBS
5437 fi
5438 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5439 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5440 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5441   X11_LIBS="-lX11"
5442 fi
5443
5444 echo "$as_me:$LINENO: checking for XdbeQueryExtension in -lXext" >&5
5445 echo $ECHO_N "checking for XdbeQueryExtension in -lXext... $ECHO_C" >&6
5446 if test "${ac_cv_lib_Xext_XdbeQueryExtension+set}" = set; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449   ac_check_lib_save_LIBS=$LIBS
5450 LIBS="-lXext -L$x_libraries $X11_LIBS $LIBS"
5451 cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h.  */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h.  */
5457
5458 /* Override any gcc2 internal prototype to avoid an error.  */
5459 #ifdef __cplusplus
5460 extern "C"
5461 #endif
5462 /* We use char because int might match the return type of a gcc2
5463    builtin and then its argument prototype would still apply.  */
5464 char XdbeQueryExtension ();
5465 int
5466 main ()
5467 {
5468 XdbeQueryExtension ();
5469   ;
5470   return 0;
5471 }
5472 _ACEOF
5473 rm -f conftest.$ac_objext conftest$ac_exeext
5474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5475   (eval $ac_link) 2>conftest.er1
5476   ac_status=$?
5477   grep -v '^ *+' conftest.er1 >conftest.err
5478   rm -f conftest.er1
5479   cat conftest.err >&5
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); } &&
5482          { ac_try='test -z "$ac_c_werror_flag"
5483                          || test ! -s conftest.err'
5484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485   (eval $ac_try) 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); }; } &&
5489          { ac_try='test -s conftest$ac_exeext'
5490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491   (eval $ac_try) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); }; }; then
5495   ac_cv_lib_Xext_XdbeQueryExtension=yes
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 ac_cv_lib_Xext_XdbeQueryExtension=no
5501 fi
5502 rm -f conftest.err conftest.$ac_objext \
5503       conftest$ac_exeext conftest.$ac_ext
5504 LIBS=$ac_check_lib_save_LIBS
5505 fi
5506 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
5507 echo "${ECHO_T}$ac_cv_lib_Xext_XdbeQueryExtension" >&6
5508 if test $ac_cv_lib_Xext_XdbeQueryExtension = yes; then
5509
5510    X11_LIBS="$X11_LIBS -lXext"
5511
5512 cat >>confdefs.h <<\_ACEOF
5513 #define HAVE_LIBXEXT 1
5514 _ACEOF
5515
5516
5517 fi
5518
5519     if test "x$X11_MISSING" = xyes; then
5520       { { echo "$as_me:$LINENO: error: something went wrong when checking for X11, you're probably missing headers or it's not installed, either re-run configure with --disable-x11, or fix this" >&5
5521 echo "$as_me: error: something went wrong when checking for X11, you're probably missing headers or it's not installed, either re-run configure with --disable-x11, or fix this" >&2;}
5522    { (exit 1); exit 1; }; }
5523   fi
5524
5525 cat >>confdefs.h <<\_ACEOF
5526 #define X11 1
5527 _ACEOF
5528
5529
5530 cat >>confdefs.h <<\_ACEOF
5531 #define HAVE_X11 1
5532 _ACEOF
5533
5534 fi
5535
5536 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5537 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5538 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   ac_check_lib_save_LIBS=$LIBS
5542 LIBS="-lX11 -L$x_libraries $LIBS"
5543 cat >conftest.$ac_ext <<_ACEOF
5544 /* confdefs.h.  */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h.  */
5549
5550 /* Override any gcc2 internal prototype to avoid an error.  */
5551 #ifdef __cplusplus
5552 extern "C"
5553 #endif
5554 /* We use char because int might match the return type of a gcc2
5555    builtin and then its argument prototype would still apply.  */
5556 char XOpenDisplay ();
5557 int
5558 main ()
5559 {
5560 XOpenDisplay ();
5561   ;
5562   return 0;
5563 }
5564 _ACEOF
5565 rm -f conftest.$ac_objext conftest$ac_exeext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5567   (eval $ac_link) 2>conftest.er1
5568   ac_status=$?
5569   grep -v '^ *+' conftest.er1 >conftest.err
5570   rm -f conftest.er1
5571   cat conftest.err >&5
5572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573   (exit $ac_status); } &&
5574          { ac_try='test -z "$ac_c_werror_flag"
5575                          || test ! -s conftest.err'
5576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577   (eval $ac_try) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }; } &&
5581          { ac_try='test -s conftest$ac_exeext'
5582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583   (eval $ac_try) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); }; }; then
5587   ac_cv_lib_X11_XOpenDisplay=yes
5588 else
5589   echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592 ac_cv_lib_X11_XOpenDisplay=no
5593 fi
5594 rm -f conftest.err conftest.$ac_objext \
5595       conftest$ac_exeext conftest.$ac_ext
5596 LIBS=$ac_check_lib_save_LIBS
5597 fi
5598 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5599 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5600 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5601   X11_LIBS="-lX11"
5602 fi
5603
5604 echo "$as_me:$LINENO: checking for XdbeQueryExtension in -lXext" >&5
5605 echo $ECHO_N "checking for XdbeQueryExtension in -lXext... $ECHO_C" >&6
5606 if test "${ac_cv_lib_Xext_XdbeQueryExtension+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609   ac_check_lib_save_LIBS=$LIBS
5610 LIBS="-lXext -L$x_libraries $X11_LIBS $LIBS"
5611 cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h.  */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h.  */
5617
5618 /* Override any gcc2 internal prototype to avoid an error.  */
5619 #ifdef __cplusplus
5620 extern "C"
5621 #endif
5622 /* We use char because int might match the return type of a gcc2
5623    builtin and then its argument prototype would still apply.  */
5624 char XdbeQueryExtension ();
5625 int
5626 main ()
5627 {
5628 XdbeQueryExtension ();
5629   ;
5630   return 0;
5631 }
5632 _ACEOF
5633 rm -f conftest.$ac_objext conftest$ac_exeext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5635   (eval $ac_link) 2>conftest.er1
5636   ac_status=$?
5637   grep -v '^ *+' conftest.er1 >conftest.err
5638   rm -f conftest.er1
5639   cat conftest.err >&5
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); } &&
5642          { ac_try='test -z "$ac_c_werror_flag"
5643                          || test ! -s conftest.err'
5644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645   (eval $ac_try) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); }; } &&
5649          { ac_try='test -s conftest$ac_exeext'
5650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651   (eval $ac_try) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); }; }; then
5655   ac_cv_lib_Xext_XdbeQueryExtension=yes
5656 else
5657   echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 ac_cv_lib_Xext_XdbeQueryExtension=no
5661 fi
5662 rm -f conftest.err conftest.$ac_objext \
5663       conftest$ac_exeext conftest.$ac_ext
5664 LIBS=$ac_check_lib_save_LIBS
5665 fi
5666 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
5667 echo "${ECHO_T}$ac_cv_lib_Xext_XdbeQueryExtension" >&6
5668 if test $ac_cv_lib_Xext_XdbeQueryExtension = yes; then
5669
5670    X11_LIBS="$X11_LIBS -lXext"
5671
5672 cat >>confdefs.h <<\_ACEOF
5673 #define HAVE_LIBXEXT 1
5674 _ACEOF
5675
5676
5677 fi
5678
5679
5680 if test "$x_libraries" != ""; then
5681   LDFLAGS="$LDFLAGS -L$x_libraries"
5682 fi
5683
5684 if test "$x_includes" != ""; then
5685   CFLAGS="$CFLAGS -Wall -I$x_includes"
5686 fi
5687
5688
5689 if test "$want_xft" = "yes"; then
5690   # Extract the first word of "xft-config", so it can be a program name with args.
5691 set dummy xft-config; ac_word=$2
5692 echo "$as_me:$LINENO: checking for $ac_word" >&5
5693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5694 if test "${ac_cv_path_XFTCONFIG+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   case $XFTCONFIG in
5698   [\\/]* | ?:[\\/]*)
5699   ac_cv_path_XFTCONFIG="$XFTCONFIG" # Let the user override the test with a path.
5700   ;;
5701   *)
5702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5704 do
5705   IFS=$as_save_IFS
5706   test -z "$as_dir" && as_dir=.
5707   for ac_exec_ext in '' $ac_executable_extensions; do
5708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709     ac_cv_path_XFTCONFIG="$as_dir/$ac_word$ac_exec_ext"
5710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5711     break 2
5712   fi
5713 done
5714 done
5715
5716   ;;
5717 esac
5718 fi
5719 XFTCONFIG=$ac_cv_path_XFTCONFIG
5720
5721 if test -n "$XFTCONFIG"; then
5722   echo "$as_me:$LINENO: result: $XFTCONFIG" >&5
5723 echo "${ECHO_T}$XFTCONFIG" >&6
5724 else
5725   echo "$as_me:$LINENO: result: no" >&5
5726 echo "${ECHO_T}no" >&6
5727 fi
5728
5729   if test x$XFTCONFIG != x; then
5730
5731     if test "x$XFT_MISSING" = xyes; then
5732       { { echo "$as_me:$LINENO: error: something went wrong when checking for Xft, you're probably missing headers or it's not installed" >&5
5733 echo "$as_me: error: something went wrong when checking for Xft, you're probably missing headers or it's not installed" >&2;}
5734    { (exit 1); exit 1; }; }
5735   fi
5736
5737
5738 cat >>confdefs.h <<\_ACEOF
5739 #define XFT 1
5740 _ACEOF
5741
5742     CFLAGS="$CFLAGS `$XFTCONFIG --cflags`"
5743     XFT_LIBS=`$XFTCONFIG --libs`
5744   else
5745     want_xft=no
5746   fi
5747 fi
5748
5749
5750 if test x$WANT_KVM = xyes; then
5751   echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
5752 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
5753 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756   ac_check_lib_save_LIBS=$LIBS
5757 LIBS="-lkvm  $LIBS"
5758 cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h.  */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h.  */
5764
5765 /* Override any gcc2 internal prototype to avoid an error.  */
5766 #ifdef __cplusplus
5767 extern "C"
5768 #endif
5769 /* We use char because int might match the return type of a gcc2
5770    builtin and then its argument prototype would still apply.  */
5771 char kvm_open ();
5772 int
5773 main ()
5774 {
5775 kvm_open ();
5776   ;
5777   return 0;
5778 }
5779 _ACEOF
5780 rm -f conftest.$ac_objext conftest$ac_exeext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782   (eval $ac_link) 2>conftest.er1
5783   ac_status=$?
5784   grep -v '^ *+' conftest.er1 >conftest.err
5785   rm -f conftest.er1
5786   cat conftest.err >&5
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); } &&
5789          { ac_try='test -z "$ac_c_werror_flag"
5790                          || test ! -s conftest.err'
5791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792   (eval $ac_try) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; } &&
5796          { ac_try='test -s conftest$ac_exeext'
5797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798   (eval $ac_try) 2>&5
5799   ac_status=$?
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); }; }; then
5802   ac_cv_lib_kvm_kvm_open=yes
5803 else
5804   echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5806
5807 ac_cv_lib_kvm_kvm_open=no
5808 fi
5809 rm -f conftest.err conftest.$ac_objext \
5810       conftest$ac_exeext conftest.$ac_ext
5811 LIBS=$ac_check_lib_save_LIBS
5812 fi
5813 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
5814 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
5815 if test $ac_cv_lib_kvm_kvm_open = yes; then
5816   LIBS="$LIBS -lkvm"
5817 else
5818   { { echo "$as_me:$LINENO: error: Could not find kvm_open in -lkvm." >&5
5819 echo "$as_me: error: Could not find kvm_open in -lkvm." >&2;}
5820    { (exit 1); exit 1; }; }
5821
5822 fi
5823
5824 fi
5825
5826
5827 if test x$WANT_OSSLIB = xyes; then
5828     echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5829 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5830 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   ac_check_lib_save_LIBS=$LIBS
5834 LIBS="-lossaudio  $LIBS"
5835 cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h.  */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h.  */
5841
5842 /* Override any gcc2 internal prototype to avoid an error.  */
5843 #ifdef __cplusplus
5844 extern "C"
5845 #endif
5846 /* We use char because int might match the return type of a gcc2
5847    builtin and then its argument prototype would still apply.  */
5848 char _oss_ioctl ();
5849 int
5850 main ()
5851 {
5852 _oss_ioctl ();
5853   ;
5854   return 0;
5855 }
5856 _ACEOF
5857 rm -f conftest.$ac_objext conftest$ac_exeext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5859   (eval $ac_link) 2>conftest.er1
5860   ac_status=$?
5861   grep -v '^ *+' conftest.er1 >conftest.err
5862   rm -f conftest.er1
5863   cat conftest.err >&5
5864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865   (exit $ac_status); } &&
5866          { ac_try='test -z "$ac_c_werror_flag"
5867                          || test ! -s conftest.err'
5868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869   (eval $ac_try) 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); }; } &&
5873          { ac_try='test -s conftest$ac_exeext'
5874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875   (eval $ac_try) 2>&5
5876   ac_status=$?
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); }; }; then
5879   ac_cv_lib_ossaudio__oss_ioctl=yes
5880 else
5881   echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884 ac_cv_lib_ossaudio__oss_ioctl=no
5885 fi
5886 rm -f conftest.err conftest.$ac_objext \
5887       conftest$ac_exeext conftest.$ac_ext
5888 LIBS=$ac_check_lib_save_LIBS
5889 fi
5890 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5891 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5892 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5893   LIBS="$LIBS -lossaudio"
5894 else
5895   { { echo "$as_me:$LINENO: error: Could not find oss_ioctl in -lossaudio." >&5
5896 echo "$as_me: error: Could not find oss_ioctl in -lossaudio." >&2;}
5897    { (exit 1); exit 1; }; }
5898
5899 fi
5900
5901 fi
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912 for ac_header in signal.h unistd.h X11/Xlib.h sys/utsname.h sys/stat.h linux/soundcard.h dirent.h
5913 do
5914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5916   echo "$as_me:$LINENO: checking for $ac_header" >&5
5917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 fi
5921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5923 else
5924   # Is the header compilable?
5925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h.  */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h.  */
5933 $ac_includes_default
5934 #include <$ac_header>
5935 _ACEOF
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938   (eval $ac_compile) 2>conftest.er1
5939   ac_status=$?
5940   grep -v '^ *+' conftest.er1 >conftest.err
5941   rm -f conftest.er1
5942   cat conftest.err >&5
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); } &&
5945          { ac_try='test -z "$ac_c_werror_flag"
5946                          || test ! -s conftest.err'
5947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948   (eval $ac_try) 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); }; } &&
5952          { ac_try='test -s conftest.$ac_objext'
5953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954   (eval $ac_try) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; }; then
5958   ac_header_compiler=yes
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 ac_header_compiler=no
5964 fi
5965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5967 echo "${ECHO_T}$ac_header_compiler" >&6
5968
5969 # Is the header present?
5970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h.  */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h.  */
5978 #include <$ac_header>
5979 _ACEOF
5980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5982   ac_status=$?
5983   grep -v '^ *+' conftest.er1 >conftest.err
5984   rm -f conftest.er1
5985   cat conftest.err >&5
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); } >/dev/null; then
5988   if test -s conftest.err; then
5989     ac_cpp_err=$ac_c_preproc_warn_flag
5990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5991   else
5992     ac_cpp_err=
5993   fi
5994 else
5995   ac_cpp_err=yes
5996 fi
5997 if test -z "$ac_cpp_err"; then
5998   ac_header_preproc=yes
5999 else
6000   echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003   ac_header_preproc=no
6004 fi
6005 rm -f conftest.err conftest.$ac_ext
6006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6007 echo "${ECHO_T}$ac_header_preproc" >&6
6008
6009 # So?  What about this header?
6010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6011   yes:no: )
6012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6016     ac_header_preproc=yes
6017     ;;
6018   no:yes:* )
6019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6031     (
6032       cat <<\_ASBOX
6033 ## ------------------------------------------ ##
6034 ## Report this to the AC_PACKAGE_NAME lists.  ##
6035 ## ------------------------------------------ ##
6036 _ASBOX
6037     ) |
6038       sed "s/^/$as_me: WARNING:     /" >&2
6039     ;;
6040 esac
6041 echo "$as_me:$LINENO: checking for $ac_header" >&5
6042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   eval "$as_ac_Header=\$ac_header_preproc"
6047 fi
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050
6051 fi
6052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6053   cat >>confdefs.h <<_ACEOF
6054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6055 _ACEOF
6056
6057 fi
6058
6059 done
6060
6061
6062
6063
6064 for ac_header in sys/statfs.h sys/param.h sys/mount.h
6065 do
6066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6068   echo "$as_me:$LINENO: checking for $ac_header" >&5
6069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 fi
6073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6075 else
6076   # Is the header compilable?
6077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h.  */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h.  */
6085 $ac_includes_default
6086 #include <$ac_header>
6087 _ACEOF
6088 rm -f conftest.$ac_objext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090   (eval $ac_compile) 2>conftest.er1
6091   ac_status=$?
6092   grep -v '^ *+' conftest.er1 >conftest.err
6093   rm -f conftest.er1
6094   cat conftest.err >&5
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); } &&
6097          { ac_try='test -z "$ac_c_werror_flag"
6098                          || test ! -s conftest.err'
6099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100   (eval $ac_try) 2>&5
6101   ac_status=$?
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); }; } &&
6104          { ac_try='test -s conftest.$ac_objext'
6105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106   (eval $ac_try) 2>&5
6107   ac_status=$?
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); }; }; then
6110   ac_header_compiler=yes
6111 else
6112   echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 ac_header_compiler=no
6116 fi
6117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6119 echo "${ECHO_T}$ac_header_compiler" >&6
6120
6121 # Is the header present?
6122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h.  */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h.  */
6130 #include <$ac_header>
6131 _ACEOF
6132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6134   ac_status=$?
6135   grep -v '^ *+' conftest.er1 >conftest.err
6136   rm -f conftest.er1
6137   cat conftest.err >&5
6138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139   (exit $ac_status); } >/dev/null; then
6140   if test -s conftest.err; then
6141     ac_cpp_err=$ac_c_preproc_warn_flag
6142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6143   else
6144     ac_cpp_err=
6145   fi
6146 else
6147   ac_cpp_err=yes
6148 fi
6149 if test -z "$ac_cpp_err"; then
6150   ac_header_preproc=yes
6151 else
6152   echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155   ac_header_preproc=no
6156 fi
6157 rm -f conftest.err conftest.$ac_ext
6158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6159 echo "${ECHO_T}$ac_header_preproc" >&6
6160
6161 # So?  What about this header?
6162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6163   yes:no: )
6164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6168     ac_header_preproc=yes
6169     ;;
6170   no:yes:* )
6171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6173     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6174 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6175     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6177     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6178 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6181     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6183     (
6184       cat <<\_ASBOX
6185 ## ------------------------------------------ ##
6186 ## Report this to the AC_PACKAGE_NAME lists.  ##
6187 ## ------------------------------------------ ##
6188 _ASBOX
6189     ) |
6190       sed "s/^/$as_me: WARNING:     /" >&2
6191     ;;
6192 esac
6193 echo "$as_me:$LINENO: checking for $ac_header" >&5
6194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   eval "$as_ac_Header=\$ac_header_preproc"
6199 fi
6200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6202
6203 fi
6204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6205   cat >>confdefs.h <<_ACEOF
6206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6207 _ACEOF
6208
6209 fi
6210
6211 done
6212
6213
6214
6215 # Extract the first word of "help2man", so it can be a program name with args.
6216 set dummy help2man; ac_word=$2
6217 echo "$as_me:$LINENO: checking for $ac_word" >&5
6218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6219 if test "${ac_cv_path_HELP2MAN+set}" = set; then
6220   echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222   case $HELP2MAN in
6223   [\\/]* | ?:[\\/]*)
6224   ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
6225   ;;
6226   *)
6227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6229 do
6230   IFS=$as_save_IFS
6231   test -z "$as_dir" && as_dir=.
6232   for ac_exec_ext in '' $ac_executable_extensions; do
6233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234     ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
6235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236     break 2
6237   fi
6238 done
6239 done
6240
6241   ;;
6242 esac
6243 fi
6244 HELP2MAN=$ac_cv_path_HELP2MAN
6245
6246 if test -n "$HELP2MAN"; then
6247   echo "$as_me:$LINENO: result: $HELP2MAN" >&5
6248 echo "${ECHO_T}$HELP2MAN" >&6
6249 else
6250   echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6
6252 fi
6253
6254
6255
6256 if test x$HELP2MAN != x; then
6257   HAVE_HELP2MAN_TRUE=
6258   HAVE_HELP2MAN_FALSE='#'
6259 else
6260   HAVE_HELP2MAN_TRUE='#'
6261   HAVE_HELP2MAN_FALSE=
6262 fi
6263
6264
6265
6266 if test x$WANT_SYSINFO = xyes; then
6267   dah=no
6268   echo "$as_me:$LINENO: checking for sysinfo" >&5
6269 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
6270   cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h.  */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h.  */
6276 #include <sys/types.h>
6277      #include <sys/sysinfo.h>
6278 int
6279 main ()
6280 {
6281 struct sysinfo s; sysinfo(&s); (void) s.uptime;
6282   ;
6283   return 0;
6284 }
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288   (eval $ac_compile) 2>conftest.er1
6289   ac_status=$?
6290   grep -v '^ *+' conftest.er1 >conftest.err
6291   rm -f conftest.er1
6292   cat conftest.err >&5
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); } &&
6295          { ac_try='test -z "$ac_c_werror_flag"
6296                          || test ! -s conftest.err'
6297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298   (eval $ac_try) 2>&5
6299   ac_status=$?
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); }; } &&
6302          { ac_try='test -s conftest.$ac_objext'
6303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304   (eval $ac_try) 2>&5
6305   ac_status=$?
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); }; }; then
6308   echo "$as_me:$LINENO: result: yes" >&5
6309 echo "${ECHO_T}yes" >&6; dah=yes
6310 else
6311   echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6313
6314 echo "$as_me:$LINENO: result: not usable" >&5
6315 echo "${ECHO_T}not usable" >&6; dah=no
6316 fi
6317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6318
6319   if test x$dah = xyes; then
6320
6321 cat >>confdefs.h <<\_ACEOF
6322 #define HAVE_SYSINFO 1
6323 _ACEOF
6324
6325   fi
6326 fi
6327
6328
6329 if test x$WANT_KSTAT = xyes; then
6330   dah=no
6331   echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
6332 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
6333 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
6334   echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336   ac_check_lib_save_LIBS=$LIBS
6337 LIBS="-lkstat  $LIBS"
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h.  */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h.  */
6344
6345 /* Override any gcc2 internal prototype to avoid an error.  */
6346 #ifdef __cplusplus
6347 extern "C"
6348 #endif
6349 /* We use char because int might match the return type of a gcc2
6350    builtin and then its argument prototype would still apply.  */
6351 char kstat_open ();
6352 int
6353 main ()
6354 {
6355 kstat_open ();
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6362   (eval $ac_link) 2>conftest.er1
6363   ac_status=$?
6364   grep -v '^ *+' conftest.er1 >conftest.err
6365   rm -f conftest.er1
6366   cat conftest.err >&5
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); } &&
6369          { ac_try='test -z "$ac_c_werror_flag"
6370                          || test ! -s conftest.err'
6371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372   (eval $ac_try) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; } &&
6376          { ac_try='test -s conftest$ac_exeext'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; }; then
6382   ac_cv_lib_kstat_kstat_open=yes
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387 ac_cv_lib_kstat_kstat_open=no
6388 fi
6389 rm -f conftest.err conftest.$ac_objext \
6390       conftest$ac_exeext conftest.$ac_ext
6391 LIBS=$ac_check_lib_save_LIBS
6392 fi
6393 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
6394 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
6395 if test $ac_cv_lib_kstat_kstat_open = yes; then
6396   dah=yes
6397 fi
6398
6399
6400   if test x$dah = xyes; then
6401
6402 cat >>confdefs.h <<\_ACEOF
6403 #define HAVE_KSTAT 1
6404 _ACEOF
6405
6406     LDFLAGS="$LDFLAGS -lkstat"
6407   fi
6408 fi
6409
6410
6411
6412
6413 echo "$as_me:$LINENO: checking for getloadavg" >&5
6414 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
6415 cat >conftest.$ac_ext <<_ACEOF
6416 /* confdefs.h.  */
6417 _ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h.  */
6421 #include <stdlib.h>
6422 int
6423 main ()
6424 {
6425 double v[3]; getloadavg(v, 3);
6426   ;
6427   return 0;
6428 }
6429 _ACEOF
6430 rm -f conftest.$ac_objext
6431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6432   (eval $ac_compile) 2>conftest.er1
6433   ac_status=$?
6434   grep -v '^ *+' conftest.er1 >conftest.err
6435   rm -f conftest.er1
6436   cat conftest.err >&5
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); } &&
6439          { ac_try='test -z "$ac_c_werror_flag"
6440                          || test ! -s conftest.err'
6441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442   (eval $ac_try) 2>&5
6443   ac_status=$?
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); }; } &&
6446          { ac_try='test -s conftest.$ac_objext'
6447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448   (eval $ac_try) 2>&5
6449   ac_status=$?
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); }; }; then
6452   echo "$as_me:$LINENO: result: yes" >&5
6453 echo "${ECHO_T}yes" >&6
6454
6455 cat >>confdefs.h <<\_ACEOF
6456 #define HAVE_GETLOADAVG 1
6457 _ACEOF
6458
6459 else
6460   echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6462
6463 echo "$as_me:$LINENO: result: no" >&5
6464 echo "${ECHO_T}no" >&6
6465 fi
6466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6467
6468
6469
6470 for ac_func in popen
6471 do
6472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6473 echo "$as_me:$LINENO: checking for $ac_func" >&5
6474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6475 if eval "test \"\${$as_ac_var+set}\" = set"; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478   cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h.  */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h.  */
6484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6486 #define $ac_func innocuous_$ac_func
6487
6488 /* System header to define __stub macros and hopefully few prototypes,
6489     which can conflict with char $ac_func (); below.
6490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6491     <limits.h> exists even on freestanding compilers.  */
6492
6493 #ifdef __STDC__
6494 # include <limits.h>
6495 #else
6496 # include <assert.h>
6497 #endif
6498
6499 #undef $ac_func
6500
6501 /* Override any gcc2 internal prototype to avoid an error.  */
6502 #ifdef __cplusplus
6503 extern "C"
6504 {
6505 #endif
6506 /* We use char because int might match the return type of a gcc2
6507    builtin and then its argument prototype would still apply.  */
6508 char $ac_func ();
6509 /* The GNU C library defines this for functions which it implements
6510     to always fail with ENOSYS.  Some functions are actually named
6511     something starting with __ and the normal name is an alias.  */
6512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6513 choke me
6514 #else
6515 char (*f) () = $ac_func;
6516 #endif
6517 #ifdef __cplusplus
6518 }
6519 #endif
6520
6521 int
6522 main ()
6523 {
6524 return f != $ac_func;
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531   (eval $ac_link) 2>conftest.er1
6532   ac_status=$?
6533   grep -v '^ *+' conftest.er1 >conftest.err
6534   rm -f conftest.er1
6535   cat conftest.err >&5
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } &&
6538          { ac_try='test -z "$ac_c_werror_flag"
6539                          || test ! -s conftest.err'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; } &&
6545          { ac_try='test -s conftest$ac_exeext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   eval "$as_ac_var=yes"
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 eval "$as_ac_var=no"
6557 fi
6558 rm -f conftest.err conftest.$ac_objext \
6559       conftest$ac_exeext conftest.$ac_ext
6560 fi
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6563 if test `eval echo '${'$as_ac_var'}'` = yes; then
6564   cat >>confdefs.h <<_ACEOF
6565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6566 _ACEOF
6567
6568 fi
6569 done
6570
6571
6572
6573 CFLAGS="$CFLAGS -Wall -W"
6574
6575
6576
6577
6578
6579           ac_config_files="$ac_config_files Makefile"
6580 cat >confcache <<\_ACEOF
6581 # This file is a shell script that caches the results of configure
6582 # tests run on this system so they can be shared between configure
6583 # scripts and configure runs, see configure's option --config-cache.
6584 # It is not useful on other systems.  If it contains results you don't
6585 # want to keep, you may remove or edit it.
6586 #
6587 # config.status only pays attention to the cache file if you give it
6588 # the --recheck option to rerun configure.
6589 #
6590 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6591 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6592 # following values.
6593
6594 _ACEOF
6595
6596 # The following way of writing the cache mishandles newlines in values,
6597 # but we know of no workaround that is simple, portable, and efficient.
6598 # So, don't put newlines in cache variables' values.
6599 # Ultrix sh set writes to stderr and can't be redirected directly,
6600 # and sets the high bit in the cache file unless we assign to the vars.
6601 {
6602   (set) 2>&1 |
6603     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6604     *ac_space=\ *)
6605       # `set' does not quote correctly, so add quotes (double-quote
6606       # substitution turns \\\\ into \\, and sed turns \\ into \).
6607       sed -n \
6608         "s/'/'\\\\''/g;
6609           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6610       ;;
6611     *)
6612       # `set' quotes correctly as required by POSIX, so do not add quotes.
6613       sed -n \
6614         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6615       ;;
6616     esac;
6617 } |
6618   sed '
6619      t clear
6620      : clear
6621      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6622      t end
6623      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6624      : end' >>confcache
6625 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6626   if test -w $cache_file; then
6627     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6628     cat confcache >$cache_file
6629   else
6630     echo "not updating unwritable cache $cache_file"
6631   fi
6632 fi
6633 rm -f confcache
6634
6635 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6636 # Let make expand exec_prefix.
6637 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6638
6639 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6640 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6641 # trailing colons and then remove the whole line if VPATH becomes empty
6642 # (actually we leave an empty line to preserve line numbers).
6643 if test "x$srcdir" = x.; then
6644   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6645 s/:*\$(srcdir):*/:/;
6646 s/:*\${srcdir}:*/:/;
6647 s/:*@srcdir@:*/:/;
6648 s/^\([^=]*=[     ]*\):*/\1/;
6649 s/:*$//;
6650 s/^[^=]*=[       ]*$//;
6651 }'
6652 fi
6653
6654 DEFS=-DHAVE_CONFIG_H
6655
6656 ac_libobjs=
6657 ac_ltlibobjs=
6658 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6659   # 1. Remove the extension, and $U if already installed.
6660   ac_i=`echo "$ac_i" |
6661          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6662   # 2. Add them.
6663   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6664   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6665 done
6666 LIBOBJS=$ac_libobjs
6667
6668 LTLIBOBJS=$ac_ltlibobjs
6669
6670
6671 if test -z "${BUILD_LINUX_TRUE}" && test -z "${BUILD_LINUX_FALSE}"; then
6672   { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUX\" was never defined.
6673 Usually this means the macro was only invoked conditionally." >&5
6674 echo "$as_me: error: conditional \"BUILD_LINUX\" was never defined.
6675 Usually this means the macro was only invoked conditionally." >&2;}
6676    { (exit 1); exit 1; }; }
6677 fi
6678 if test -z "${BUILD_SOLARIS_TRUE}" && test -z "${BUILD_SOLARIS_FALSE}"; then
6679   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SOLARIS\" was never defined.
6680 Usually this means the macro was only invoked conditionally." >&5
6681 echo "$as_me: error: conditional \"BUILD_SOLARIS\" was never defined.
6682 Usually this means the macro was only invoked conditionally." >&2;}
6683    { (exit 1); exit 1; }; }
6684 fi
6685 if test -z "${BUILD_FREEBSD_TRUE}" && test -z "${BUILD_FREEBSD_FALSE}"; then
6686   { { echo "$as_me:$LINENO: error: conditional \"BUILD_FREEBSD\" was never defined.
6687 Usually this means the macro was only invoked conditionally." >&5
6688 echo "$as_me: error: conditional \"BUILD_FREEBSD\" was never defined.
6689 Usually this means the macro was only invoked conditionally." >&2;}
6690    { (exit 1); exit 1; }; }
6691 fi
6692 if test -z "${BUILD_NETBSD_TRUE}" && test -z "${BUILD_NETBSD_FALSE}"; then
6693   { { echo "$as_me:$LINENO: error: conditional \"BUILD_NETBSD\" was never defined.
6694 Usually this means the macro was only invoked conditionally." >&5
6695 echo "$as_me: error: conditional \"BUILD_NETBSD\" was never defined.
6696 Usually this means the macro was only invoked conditionally." >&2;}
6697    { (exit 1); exit 1; }; }
6698 fi
6699 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6700   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6701 Usually this means the macro was only invoked conditionally." >&5
6702 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6703 Usually this means the macro was only invoked conditionally." >&2;}
6704    { (exit 1); exit 1; }; }
6705 fi
6706 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6707   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6708 Usually this means the macro was only invoked conditionally." >&5
6709 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6710 Usually this means the macro was only invoked conditionally." >&2;}
6711    { (exit 1); exit 1; }; }
6712 fi
6713 if test -z "${BUILD_SETI_TRUE}" && test -z "${BUILD_SETI_FALSE}"; then
6714   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SETI\" was never defined.
6715 Usually this means the macro was only invoked conditionally." >&5
6716 echo "$as_me: error: conditional \"BUILD_SETI\" was never defined.
6717 Usually this means the macro was only invoked conditionally." >&2;}
6718    { (exit 1); exit 1; }; }
6719 fi
6720 if test -z "${BUILD_MPD_TRUE}" && test -z "${BUILD_MPD_FALSE}"; then
6721   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MPD\" was never defined.
6722 Usually this means the macro was only invoked conditionally." >&5
6723 echo "$as_me: error: conditional \"BUILD_MPD\" was never defined.
6724 Usually this means the macro was only invoked conditionally." >&2;}
6725    { (exit 1); exit 1; }; }
6726 fi
6727 if test -z "${BUILD_CAIRO_TRUE}" && test -z "${BUILD_CAIRO_FALSE}"; then
6728   { { echo "$as_me:$LINENO: error: conditional \"BUILD_CAIRO\" was never defined.
6729 Usually this means the macro was only invoked conditionally." >&5
6730 echo "$as_me: error: conditional \"BUILD_CAIRO\" was never defined.
6731 Usually this means the macro was only invoked conditionally." >&2;}
6732    { (exit 1); exit 1; }; }
6733 fi
6734 if test -z "${BUILD_METAR_TRUE}" && test -z "${BUILD_METAR_FALSE}"; then
6735   { { echo "$as_me:$LINENO: error: conditional \"BUILD_METAR\" was never defined.
6736 Usually this means the macro was only invoked conditionally." >&5
6737 echo "$as_me: error: conditional \"BUILD_METAR\" was never defined.
6738 Usually this means the macro was only invoked conditionally." >&2;}
6739    { (exit 1); exit 1; }; }
6740 fi
6741 if test -z "${BUILD_MLDONKEY_TRUE}" && test -z "${BUILD_MLDONKEY_FALSE}"; then
6742   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MLDONKEY\" was never defined.
6743 Usually this means the macro was only invoked conditionally." >&5
6744 echo "$as_me: error: conditional \"BUILD_MLDONKEY\" was never defined.
6745 Usually this means the macro was only invoked conditionally." >&2;}
6746    { (exit 1); exit 1; }; }
6747 fi
6748 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6749   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6750 Usually this means the macro was only invoked conditionally." >&5
6751 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6752 Usually this means the macro was only invoked conditionally." >&2;}
6753    { (exit 1); exit 1; }; }
6754 fi
6755 if test -z "${BUILD_X11_TRUE}" && test -z "${BUILD_X11_FALSE}"; then
6756   { { echo "$as_me:$LINENO: error: conditional \"BUILD_X11\" was never defined.
6757 Usually this means the macro was only invoked conditionally." >&5
6758 echo "$as_me: error: conditional \"BUILD_X11\" was never defined.
6759 Usually this means the macro was only invoked conditionally." >&2;}
6760    { (exit 1); exit 1; }; }
6761 fi
6762 if test -z "${HAVE_HELP2MAN_TRUE}" && test -z "${HAVE_HELP2MAN_FALSE}"; then
6763   { { echo "$as_me:$LINENO: error: conditional \"HAVE_HELP2MAN\" was never defined.
6764 Usually this means the macro was only invoked conditionally." >&5
6765 echo "$as_me: error: conditional \"HAVE_HELP2MAN\" was never defined.
6766 Usually this means the macro was only invoked conditionally." >&2;}
6767    { (exit 1); exit 1; }; }
6768 fi
6769
6770 : ${CONFIG_STATUS=./config.status}
6771 ac_clean_files_save=$ac_clean_files
6772 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6773 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6774 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6775 cat >$CONFIG_STATUS <<_ACEOF
6776 #! $SHELL
6777 # Generated by $as_me.
6778 # Run this file to recreate the current configuration.
6779 # Compiler output produced by configure, useful for debugging
6780 # configure, is in config.log if it exists.
6781
6782 debug=false
6783 ac_cs_recheck=false
6784 ac_cs_silent=false
6785 SHELL=\${CONFIG_SHELL-$SHELL}
6786 _ACEOF
6787
6788 cat >>$CONFIG_STATUS <<\_ACEOF
6789 ## --------------------- ##
6790 ## M4sh Initialization.  ##
6791 ## --------------------- ##
6792
6793 # Be Bourne compatible
6794 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6795   emulate sh
6796   NULLCMD=:
6797   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6798   # is contrary to our usage.  Disable this feature.
6799   alias -g '${1+"$@"}'='"$@"'
6800 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6801   set -o posix
6802 fi
6803 DUALCASE=1; export DUALCASE # for MKS sh
6804
6805 # Support unset when possible.
6806 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6807   as_unset=unset
6808 else
6809   as_unset=false
6810 fi
6811
6812
6813 # Work around bugs in pre-3.0 UWIN ksh.
6814 $as_unset ENV MAIL MAILPATH
6815 PS1='$ '
6816 PS2='> '
6817 PS4='+ '
6818
6819 # NLS nuisances.
6820 for as_var in \
6821   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6822   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6823   LC_TELEPHONE LC_TIME
6824 do
6825   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6826     eval $as_var=C; export $as_var
6827   else
6828     $as_unset $as_var
6829   fi
6830 done
6831
6832 # Required to use basename.
6833 if expr a : '\(a\)' >/dev/null 2>&1; then
6834   as_expr=expr
6835 else
6836   as_expr=false
6837 fi
6838
6839 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6840   as_basename=basename
6841 else
6842   as_basename=false
6843 fi
6844
6845
6846 # Name of the executable.
6847 as_me=`$as_basename "$0" ||
6848 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6849          X"$0" : 'X\(//\)$' \| \
6850          X"$0" : 'X\(/\)$' \| \
6851          .     : '\(.\)' 2>/dev/null ||
6852 echo X/"$0" |
6853     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6854           /^X\/\(\/\/\)$/{ s//\1/; q; }
6855           /^X\/\(\/\).*/{ s//\1/; q; }
6856           s/.*/./; q'`
6857
6858
6859 # PATH needs CR, and LINENO needs CR and PATH.
6860 # Avoid depending upon Character Ranges.
6861 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6862 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6863 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6864 as_cr_digits='0123456789'
6865 as_cr_alnum=$as_cr_Letters$as_cr_digits
6866
6867 # The user is always right.
6868 if test "${PATH_SEPARATOR+set}" != set; then
6869   echo "#! /bin/sh" >conf$$.sh
6870   echo  "exit 0"   >>conf$$.sh
6871   chmod +x conf$$.sh
6872   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6873     PATH_SEPARATOR=';'
6874   else
6875     PATH_SEPARATOR=:
6876   fi
6877   rm -f conf$$.sh
6878 fi
6879
6880
6881   as_lineno_1=$LINENO
6882   as_lineno_2=$LINENO
6883   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6884   test "x$as_lineno_1" != "x$as_lineno_2" &&
6885   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6886   # Find who we are.  Look in the path if we contain no path at all
6887   # relative or not.
6888   case $0 in
6889     *[\\/]* ) as_myself=$0 ;;
6890     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893   IFS=$as_save_IFS
6894   test -z "$as_dir" && as_dir=.
6895   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6896 done
6897
6898        ;;
6899   esac
6900   # We did not find ourselves, most probably we were run as `sh COMMAND'
6901   # in which case we are not to be found in the path.
6902   if test "x$as_myself" = x; then
6903     as_myself=$0
6904   fi
6905   if test ! -f "$as_myself"; then
6906     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6907 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6908    { (exit 1); exit 1; }; }
6909   fi
6910   case $CONFIG_SHELL in
6911   '')
6912     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917   for as_base in sh bash ksh sh5; do
6918          case $as_dir in
6919          /*)
6920            if ("$as_dir/$as_base" -c '
6921   as_lineno_1=$LINENO
6922   as_lineno_2=$LINENO
6923   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6924   test "x$as_lineno_1" != "x$as_lineno_2" &&
6925   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6926              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6927              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6928              CONFIG_SHELL=$as_dir/$as_base
6929              export CONFIG_SHELL
6930              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6931            fi;;
6932          esac
6933        done
6934 done
6935 ;;
6936   esac
6937
6938   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6939   # uniformly replaced by the line number.  The first 'sed' inserts a
6940   # line-number line before each line; the second 'sed' does the real
6941   # work.  The second script uses 'N' to pair each line-number line
6942   # with the numbered line, and appends trailing '-' during
6943   # substitution so that $LINENO is not a special case at line end.
6944   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6945   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6946   sed '=' <$as_myself |
6947     sed '
6948       N
6949       s,$,-,
6950       : loop
6951       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6952       t loop
6953       s,-$,,
6954       s,^['$as_cr_digits']*\n,,
6955     ' >$as_me.lineno &&
6956   chmod +x $as_me.lineno ||
6957     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6958 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6959    { (exit 1); exit 1; }; }
6960
6961   # Don't try to exec as it changes $[0], causing all sort of problems
6962   # (the dirname of $[0] is not the place where we might find the
6963   # original and so on.  Autoconf is especially sensible to this).
6964   . ./$as_me.lineno
6965   # Exit status is that of the last command.
6966   exit
6967 }
6968
6969
6970 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6971   *c*,-n*) ECHO_N= ECHO_C='
6972 ' ECHO_T='      ' ;;
6973   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6974   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6975 esac
6976
6977 if expr a : '\(a\)' >/dev/null 2>&1; then
6978   as_expr=expr
6979 else
6980   as_expr=false
6981 fi
6982
6983 rm -f conf$$ conf$$.exe conf$$.file
6984 echo >conf$$.file
6985 if ln -s conf$$.file conf$$ 2>/dev/null; then
6986   # We could just check for DJGPP; but this test a) works b) is more generic
6987   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6988   if test -f conf$$.exe; then
6989     # Don't use ln at all; we don't have any links
6990     as_ln_s='cp -p'
6991   else
6992     as_ln_s='ln -s'
6993   fi
6994 elif ln conf$$.file conf$$ 2>/dev/null; then
6995   as_ln_s=ln
6996 else
6997   as_ln_s='cp -p'
6998 fi
6999 rm -f conf$$ conf$$.exe conf$$.file
7000
7001 if mkdir -p . 2>/dev/null; then
7002   as_mkdir_p=:
7003 else
7004   test -d ./-p && rmdir ./-p
7005   as_mkdir_p=false
7006 fi
7007
7008 as_executable_p="test -f"
7009
7010 # Sed expression to map a string onto a valid CPP name.
7011 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7012
7013 # Sed expression to map a string onto a valid variable name.
7014 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7015
7016
7017 # IFS
7018 # We need space, tab and new line, in precisely that order.
7019 as_nl='
7020 '
7021 IFS="   $as_nl"
7022
7023 # CDPATH.
7024 $as_unset CDPATH
7025
7026 exec 6>&1
7027
7028 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7029 # report actual input values of CONFIG_FILES etc. instead of their
7030 # values after options handling.  Logging --version etc. is OK.
7031 exec 5>>config.log
7032 {
7033   echo
7034   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7035 ## Running $as_me. ##
7036 _ASBOX
7037 } >&5
7038 cat >&5 <<_CSEOF
7039
7040 This file was extended by $as_me, which was
7041 generated by GNU Autoconf 2.59.  Invocation command line was
7042
7043   CONFIG_FILES    = $CONFIG_FILES
7044   CONFIG_HEADERS  = $CONFIG_HEADERS
7045   CONFIG_LINKS    = $CONFIG_LINKS
7046   CONFIG_COMMANDS = $CONFIG_COMMANDS
7047   $ $0 $@
7048
7049 _CSEOF
7050 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7051 echo >&5
7052 _ACEOF
7053
7054 # Files that config.status was made for.
7055 if test -n "$ac_config_files"; then
7056   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7057 fi
7058
7059 if test -n "$ac_config_headers"; then
7060   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7061 fi
7062
7063 if test -n "$ac_config_links"; then
7064   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7065 fi
7066
7067 if test -n "$ac_config_commands"; then
7068   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7069 fi
7070
7071 cat >>$CONFIG_STATUS <<\_ACEOF
7072
7073 ac_cs_usage="\
7074 \`$as_me' instantiates files from templates according to the
7075 current configuration.
7076
7077 Usage: $0 [OPTIONS] [FILE]...
7078
7079   -h, --help       print this help, then exit
7080   -V, --version    print version number, then exit
7081   -q, --quiet      do not print progress messages
7082   -d, --debug      don't remove temporary files
7083       --recheck    update $as_me by reconfiguring in the same conditions
7084   --file=FILE[:TEMPLATE]
7085                    instantiate the configuration file FILE
7086   --header=FILE[:TEMPLATE]
7087                    instantiate the configuration header FILE
7088
7089 Configuration files:
7090 $config_files
7091
7092 Configuration headers:
7093 $config_headers
7094
7095 Configuration commands:
7096 $config_commands
7097
7098 Report bugs to <bug-autoconf@gnu.org>."
7099 _ACEOF
7100
7101 cat >>$CONFIG_STATUS <<_ACEOF
7102 ac_cs_version="\\
7103 config.status
7104 configured by $0, generated by GNU Autoconf 2.59,
7105   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7106
7107 Copyright (C) 2003 Free Software Foundation, Inc.
7108 This config.status script is free software; the Free Software Foundation
7109 gives unlimited permission to copy, distribute and modify it."
7110 srcdir=$srcdir
7111 INSTALL="$INSTALL"
7112 _ACEOF
7113
7114 cat >>$CONFIG_STATUS <<\_ACEOF
7115 # If no file are specified by the user, then we need to provide default
7116 # value.  By we need to know if files were specified by the user.
7117 ac_need_defaults=:
7118 while test $# != 0
7119 do
7120   case $1 in
7121   --*=*)
7122     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7123     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7124     ac_shift=:
7125     ;;
7126   -*)
7127     ac_option=$1
7128     ac_optarg=$2
7129     ac_shift=shift
7130     ;;
7131   *) # This is not an option, so the user has probably given explicit
7132      # arguments.
7133      ac_option=$1
7134      ac_need_defaults=false;;
7135   esac
7136
7137   case $ac_option in
7138   # Handling of the options.
7139 _ACEOF
7140 cat >>$CONFIG_STATUS <<\_ACEOF
7141   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7142     ac_cs_recheck=: ;;
7143   --version | --vers* | -V )
7144     echo "$ac_cs_version"; exit 0 ;;
7145   --he | --h)
7146     # Conflict between --help and --header
7147     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7148 Try \`$0 --help' for more information." >&5
7149 echo "$as_me: error: ambiguous option: $1
7150 Try \`$0 --help' for more information." >&2;}
7151    { (exit 1); exit 1; }; };;
7152   --help | --hel | -h )
7153     echo "$ac_cs_usage"; exit 0 ;;
7154   --debug | --d* | -d )
7155     debug=: ;;
7156   --file | --fil | --fi | --f )
7157     $ac_shift
7158     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7159     ac_need_defaults=false;;
7160   --header | --heade | --head | --hea )
7161     $ac_shift
7162     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7163     ac_need_defaults=false;;
7164   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7165   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7166     ac_cs_silent=: ;;
7167
7168   # This is an error.
7169   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7170 Try \`$0 --help' for more information." >&5
7171 echo "$as_me: error: unrecognized option: $1
7172 Try \`$0 --help' for more information." >&2;}
7173    { (exit 1); exit 1; }; } ;;
7174
7175   *) ac_config_targets="$ac_config_targets $1" ;;
7176
7177   esac
7178   shift
7179 done
7180
7181 ac_configure_extra_args=
7182
7183 if $ac_cs_silent; then
7184   exec 6>/dev/null
7185   ac_configure_extra_args="$ac_configure_extra_args --silent"
7186 fi
7187
7188 _ACEOF
7189 cat >>$CONFIG_STATUS <<_ACEOF
7190 if \$ac_cs_recheck; then
7191   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7192   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7193 fi
7194
7195 _ACEOF
7196
7197 cat >>$CONFIG_STATUS <<_ACEOF
7198 #
7199 # INIT-COMMANDS section.
7200 #
7201
7202 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7203
7204 _ACEOF
7205
7206
7207
7208 cat >>$CONFIG_STATUS <<\_ACEOF
7209 for ac_config_target in $ac_config_targets
7210 do
7211   case "$ac_config_target" in
7212   # Handling of arguments.
7213   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7214   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7215   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7216   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7217 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7218    { (exit 1); exit 1; }; };;
7219   esac
7220 done
7221
7222 # If the user did not use the arguments to specify the items to instantiate,
7223 # then the envvar interface is used.  Set only those that are not.
7224 # We use the long form for the default assignment because of an extremely
7225 # bizarre bug on SunOS 4.1.3.
7226 if $ac_need_defaults; then
7227   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7228   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7229   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7230 fi
7231
7232 # Have a temporary directory for convenience.  Make it in the build tree
7233 # simply because there is no reason to put it here, and in addition,
7234 # creating and moving files from /tmp can sometimes cause problems.
7235 # Create a temporary directory, and hook for its removal unless debugging.
7236 $debug ||
7237 {
7238   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7239   trap '{ (exit 1); exit 1; }' 1 2 13 15
7240 }
7241
7242 # Create a (secure) tmp directory for tmp files.
7243
7244 {
7245   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7246   test -n "$tmp" && test -d "$tmp"
7247 }  ||
7248 {
7249   tmp=./confstat$$-$RANDOM
7250   (umask 077 && mkdir $tmp)
7251 } ||
7252 {
7253    echo "$me: cannot create a temporary directory in ." >&2
7254    { (exit 1); exit 1; }
7255 }
7256
7257 _ACEOF
7258
7259 cat >>$CONFIG_STATUS <<_ACEOF
7260
7261 #
7262 # CONFIG_FILES section.
7263 #
7264
7265 # No need to generate the scripts if there are no CONFIG_FILES.
7266 # This happens for instance when ./config.status config.h
7267 if test -n "\$CONFIG_FILES"; then
7268   # Protect against being on the right side of a sed subst in config.status.
7269   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7270    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7271 s,@SHELL@,$SHELL,;t t
7272 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7273 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7274 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7275 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7276 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7277 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7278 s,@exec_prefix@,$exec_prefix,;t t
7279 s,@prefix@,$prefix,;t t
7280 s,@program_transform_name@,$program_transform_name,;t t
7281 s,@bindir@,$bindir,;t t
7282 s,@sbindir@,$sbindir,;t t
7283 s,@libexecdir@,$libexecdir,;t t
7284 s,@datadir@,$datadir,;t t
7285 s,@sysconfdir@,$sysconfdir,;t t
7286 s,@sharedstatedir@,$sharedstatedir,;t t
7287 s,@localstatedir@,$localstatedir,;t t
7288 s,@libdir@,$libdir,;t t
7289 s,@includedir@,$includedir,;t t
7290 s,@oldincludedir@,$oldincludedir,;t t
7291 s,@infodir@,$infodir,;t t
7292 s,@mandir@,$mandir,;t t
7293 s,@build_alias@,$build_alias,;t t
7294 s,@host_alias@,$host_alias,;t t
7295 s,@target_alias@,$target_alias,;t t
7296 s,@DEFS@,$DEFS,;t t
7297 s,@ECHO_C@,$ECHO_C,;t t
7298 s,@ECHO_N@,$ECHO_N,;t t
7299 s,@ECHO_T@,$ECHO_T,;t t
7300 s,@LIBS@,$LIBS,;t t
7301 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7302 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7303 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7304 s,@CYGPATH_W@,$CYGPATH_W,;t t
7305 s,@PACKAGE@,$PACKAGE,;t t
7306 s,@VERSION@,$VERSION,;t t
7307 s,@ACLOCAL@,$ACLOCAL,;t t
7308 s,@AUTOCONF@,$AUTOCONF,;t t
7309 s,@AUTOMAKE@,$AUTOMAKE,;t t
7310 s,@AUTOHEADER@,$AUTOHEADER,;t t
7311 s,@MAKEINFO@,$MAKEINFO,;t t
7312 s,@install_sh@,$install_sh,;t t
7313 s,@STRIP@,$STRIP,;t t
7314 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7315 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7316 s,@mkdir_p@,$mkdir_p,;t t
7317 s,@AWK@,$AWK,;t t
7318 s,@SET_MAKE@,$SET_MAKE,;t t
7319 s,@am__leading_dot@,$am__leading_dot,;t t
7320 s,@AMTAR@,$AMTAR,;t t
7321 s,@am__tar@,$am__tar,;t t
7322 s,@am__untar@,$am__untar,;t t
7323 s,@BUILD_LINUX_TRUE@,$BUILD_LINUX_TRUE,;t t
7324 s,@BUILD_LINUX_FALSE@,$BUILD_LINUX_FALSE,;t t
7325 s,@BUILD_SOLARIS_TRUE@,$BUILD_SOLARIS_TRUE,;t t
7326 s,@BUILD_SOLARIS_FALSE@,$BUILD_SOLARIS_FALSE,;t t
7327 s,@BUILD_FREEBSD_TRUE@,$BUILD_FREEBSD_TRUE,;t t
7328 s,@BUILD_FREEBSD_FALSE@,$BUILD_FREEBSD_FALSE,;t t
7329 s,@BUILD_NETBSD_TRUE@,$BUILD_NETBSD_TRUE,;t t
7330 s,@BUILD_NETBSD_FALSE@,$BUILD_NETBSD_FALSE,;t t
7331 s,@CC@,$CC,;t t
7332 s,@CFLAGS@,$CFLAGS,;t t
7333 s,@LDFLAGS@,$LDFLAGS,;t t
7334 s,@CPPFLAGS@,$CPPFLAGS,;t t
7335 s,@ac_ct_CC@,$ac_ct_CC,;t t
7336 s,@EXEEXT@,$EXEEXT,;t t
7337 s,@OBJEXT@,$OBJEXT,;t t
7338 s,@DEPDIR@,$DEPDIR,;t t
7339 s,@am__include@,$am__include,;t t
7340 s,@am__quote@,$am__quote,;t t
7341 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7342 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7343 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7344 s,@CCDEPMODE@,$CCDEPMODE,;t t
7345 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7346 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7347 s,@CPP@,$CPP,;t t
7348 s,@EGREP@,$EGREP,;t t
7349 s,@BUILD_SETI_TRUE@,$BUILD_SETI_TRUE,;t t
7350 s,@BUILD_SETI_FALSE@,$BUILD_SETI_FALSE,;t t
7351 s,@BUILD_MPD_TRUE@,$BUILD_MPD_TRUE,;t t
7352 s,@BUILD_MPD_FALSE@,$BUILD_MPD_FALSE,;t t
7353 s,@BUILD_CAIRO_TRUE@,$BUILD_CAIRO_TRUE,;t t
7354 s,@BUILD_CAIRO_FALSE@,$BUILD_CAIRO_FALSE,;t t
7355 s,@CAIROCONFIG@,$CAIROCONFIG,;t t
7356 s,@BUILD_METAR_TRUE@,$BUILD_METAR_TRUE,;t t
7357 s,@BUILD_METAR_FALSE@,$BUILD_METAR_FALSE,;t t
7358 s,@BUILD_MLDONKEY_TRUE@,$BUILD_MLDONKEY_TRUE,;t t
7359 s,@BUILD_MLDONKEY_FALSE@,$BUILD_MLDONKEY_FALSE,;t t
7360 s,@BUILD_X11_TRUE@,$BUILD_X11_TRUE,;t t
7361 s,@BUILD_X11_FALSE@,$BUILD_X11_FALSE,;t t
7362 s,@XFTCONFIG@,$XFTCONFIG,;t t
7363 s,@HELP2MAN@,$HELP2MAN,;t t
7364 s,@HAVE_HELP2MAN_TRUE@,$HAVE_HELP2MAN_TRUE,;t t
7365 s,@HAVE_HELP2MAN_FALSE@,$HAVE_HELP2MAN_FALSE,;t t
7366 s,@X11_LIBS@,$X11_LIBS,;t t
7367 s,@XFT_LIBS@,$XFT_LIBS,;t t
7368 s,@LIBOBJS@,$LIBOBJS,;t t
7369 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7370 CEOF
7371
7372 _ACEOF
7373
7374   cat >>$CONFIG_STATUS <<\_ACEOF
7375   # Split the substitutions into bite-sized pieces for seds with
7376   # small command number limits, like on Digital OSF/1 and HP-UX.
7377   ac_max_sed_lines=48
7378   ac_sed_frag=1 # Number of current file.
7379   ac_beg=1 # First line for current file.
7380   ac_end=$ac_max_sed_lines # Line after last line for current file.
7381   ac_more_lines=:
7382   ac_sed_cmds=
7383   while $ac_more_lines; do
7384     if test $ac_beg -gt 1; then
7385       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7386     else
7387       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7388     fi
7389     if test ! -s $tmp/subs.frag; then
7390       ac_more_lines=false
7391     else
7392       # The purpose of the label and of the branching condition is to
7393       # speed up the sed processing (if there are no `@' at all, there
7394       # is no need to browse any of the substitutions).
7395       # These are the two extra sed commands mentioned above.
7396       (echo ':t
7397   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7398       if test -z "$ac_sed_cmds"; then
7399         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7400       else
7401         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7402       fi
7403       ac_sed_frag=`expr $ac_sed_frag + 1`
7404       ac_beg=$ac_end
7405       ac_end=`expr $ac_end + $ac_max_sed_lines`
7406     fi
7407   done
7408   if test -z "$ac_sed_cmds"; then
7409     ac_sed_cmds=cat
7410   fi
7411 fi # test -n "$CONFIG_FILES"
7412
7413 _ACEOF
7414 cat >>$CONFIG_STATUS <<\_ACEOF
7415 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7416   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7417   case $ac_file in
7418   - | *:- | *:-:* ) # input from stdin
7419         cat >$tmp/stdin
7420         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7421         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7422   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7423         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7424   * )   ac_file_in=$ac_file.in ;;
7425   esac
7426
7427   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7428   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7430          X"$ac_file" : 'X\(//\)[^/]' \| \
7431          X"$ac_file" : 'X\(//\)$' \| \
7432          X"$ac_file" : 'X\(/\)' \| \
7433          .     : '\(.\)' 2>/dev/null ||
7434 echo X"$ac_file" |
7435     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7436           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7437           /^X\(\/\/\)$/{ s//\1/; q; }
7438           /^X\(\/\).*/{ s//\1/; q; }
7439           s/.*/./; q'`
7440   { if $as_mkdir_p; then
7441     mkdir -p "$ac_dir"
7442   else
7443     as_dir="$ac_dir"
7444     as_dirs=
7445     while test ! -d "$as_dir"; do
7446       as_dirs="$as_dir $as_dirs"
7447       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7449          X"$as_dir" : 'X\(//\)[^/]' \| \
7450          X"$as_dir" : 'X\(//\)$' \| \
7451          X"$as_dir" : 'X\(/\)' \| \
7452          .     : '\(.\)' 2>/dev/null ||
7453 echo X"$as_dir" |
7454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7455           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7456           /^X\(\/\/\)$/{ s//\1/; q; }
7457           /^X\(\/\).*/{ s//\1/; q; }
7458           s/.*/./; q'`
7459     done
7460     test ! -n "$as_dirs" || mkdir $as_dirs
7461   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7462 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7463    { (exit 1); exit 1; }; }; }
7464
7465   ac_builddir=.
7466
7467 if test "$ac_dir" != .; then
7468   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7469   # A "../" for each directory in $ac_dir_suffix.
7470   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7471 else
7472   ac_dir_suffix= ac_top_builddir=
7473 fi
7474
7475 case $srcdir in
7476   .)  # No --srcdir option.  We are building in place.
7477     ac_srcdir=.
7478     if test -z "$ac_top_builddir"; then
7479        ac_top_srcdir=.
7480     else
7481        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7482     fi ;;
7483   [\\/]* | ?:[\\/]* )  # Absolute path.
7484     ac_srcdir=$srcdir$ac_dir_suffix;
7485     ac_top_srcdir=$srcdir ;;
7486   *) # Relative path.
7487     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7488     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7489 esac
7490
7491 # Do not use `cd foo && pwd` to compute absolute paths, because
7492 # the directories may not exist.
7493 case `pwd` in
7494 .) ac_abs_builddir="$ac_dir";;
7495 *)
7496   case "$ac_dir" in
7497   .) ac_abs_builddir=`pwd`;;
7498   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7499   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7500   esac;;
7501 esac
7502 case $ac_abs_builddir in
7503 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7504 *)
7505   case ${ac_top_builddir}. in
7506   .) ac_abs_top_builddir=$ac_abs_builddir;;
7507   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7508   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7509   esac;;
7510 esac
7511 case $ac_abs_builddir in
7512 .) ac_abs_srcdir=$ac_srcdir;;
7513 *)
7514   case $ac_srcdir in
7515   .) ac_abs_srcdir=$ac_abs_builddir;;
7516   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7517   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7518   esac;;
7519 esac
7520 case $ac_abs_builddir in
7521 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7522 *)
7523   case $ac_top_srcdir in
7524   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7525   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7526   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7527   esac;;
7528 esac
7529
7530
7531   case $INSTALL in
7532   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7533   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7534   esac
7535
7536   if test x"$ac_file" != x-; then
7537     { echo "$as_me:$LINENO: creating $ac_file" >&5
7538 echo "$as_me: creating $ac_file" >&6;}
7539     rm -f "$ac_file"
7540   fi
7541   # Let's still pretend it is `configure' which instantiates (i.e., don't
7542   # use $as_me), people would be surprised to read:
7543   #    /* config.h.  Generated by config.status.  */
7544   if test x"$ac_file" = x-; then
7545     configure_input=
7546   else
7547     configure_input="$ac_file.  "
7548   fi
7549   configure_input=$configure_input"Generated from `echo $ac_file_in |
7550                                      sed 's,.*/,,'` by configure."
7551
7552   # First look for the input files in the build tree, otherwise in the
7553   # src tree.
7554   ac_file_inputs=`IFS=:
7555     for f in $ac_file_in; do
7556       case $f in
7557       -) echo $tmp/stdin ;;
7558       [\\/$]*)
7559          # Absolute (can't be DOS-style, as IFS=:)
7560          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7561 echo "$as_me: error: cannot find input file: $f" >&2;}
7562    { (exit 1); exit 1; }; }
7563          echo "$f";;
7564       *) # Relative
7565          if test -f "$f"; then
7566            # Build tree
7567            echo "$f"
7568          elif test -f "$srcdir/$f"; then
7569            # Source tree
7570            echo "$srcdir/$f"
7571          else
7572            # /dev/null tree
7573            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7574 echo "$as_me: error: cannot find input file: $f" >&2;}
7575    { (exit 1); exit 1; }; }
7576          fi;;
7577       esac
7578     done` || { (exit 1); exit 1; }
7579 _ACEOF
7580 cat >>$CONFIG_STATUS <<_ACEOF
7581   sed "$ac_vpsub
7582 $extrasub
7583 _ACEOF
7584 cat >>$CONFIG_STATUS <<\_ACEOF
7585 :t
7586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7587 s,@configure_input@,$configure_input,;t t
7588 s,@srcdir@,$ac_srcdir,;t t
7589 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7590 s,@top_srcdir@,$ac_top_srcdir,;t t
7591 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7592 s,@builddir@,$ac_builddir,;t t
7593 s,@abs_builddir@,$ac_abs_builddir,;t t
7594 s,@top_builddir@,$ac_top_builddir,;t t
7595 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7596 s,@INSTALL@,$ac_INSTALL,;t t
7597 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7598   rm -f $tmp/stdin
7599   if test x"$ac_file" != x-; then
7600     mv $tmp/out $ac_file
7601   else
7602     cat $tmp/out
7603     rm -f $tmp/out
7604   fi
7605
7606 done
7607 _ACEOF
7608 cat >>$CONFIG_STATUS <<\_ACEOF
7609
7610 #
7611 # CONFIG_HEADER section.
7612 #
7613
7614 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7615 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7616 #
7617 # ac_d sets the value in "#define NAME VALUE" lines.
7618 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
7619 ac_dB='[         ].*$,\1#\2'
7620 ac_dC=' '
7621 ac_dD=',;t'
7622 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7623 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7624 ac_uB='$,\1#\2define\3'
7625 ac_uC=' '
7626 ac_uD=',;t'
7627
7628 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7629   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7630   case $ac_file in
7631   - | *:- | *:-:* ) # input from stdin
7632         cat >$tmp/stdin
7633         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7634         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7635   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7636         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7637   * )   ac_file_in=$ac_file.in ;;
7638   esac
7639
7640   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7641 echo "$as_me: creating $ac_file" >&6;}
7642
7643   # First look for the input files in the build tree, otherwise in the
7644   # src tree.
7645   ac_file_inputs=`IFS=:
7646     for f in $ac_file_in; do
7647       case $f in
7648       -) echo $tmp/stdin ;;
7649       [\\/$]*)
7650          # Absolute (can't be DOS-style, as IFS=:)
7651          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7652 echo "$as_me: error: cannot find input file: $f" >&2;}
7653    { (exit 1); exit 1; }; }
7654          # Do quote $f, to prevent DOS paths from being IFS'd.
7655          echo "$f";;
7656       *) # Relative
7657          if test -f "$f"; then
7658            # Build tree
7659            echo "$f"
7660          elif test -f "$srcdir/$f"; then
7661            # Source tree
7662            echo "$srcdir/$f"
7663          else
7664            # /dev/null tree
7665            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7666 echo "$as_me: error: cannot find input file: $f" >&2;}
7667    { (exit 1); exit 1; }; }
7668          fi;;
7669       esac
7670     done` || { (exit 1); exit 1; }
7671   # Remove the trailing spaces.
7672   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7673
7674 _ACEOF
7675
7676 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7677 # `conftest.undefs', that substitutes the proper values into
7678 # config.h.in to produce config.h.  The first handles `#define'
7679 # templates, and the second `#undef' templates.
7680 # And first: Protect against being on the right side of a sed subst in
7681 # config.status.  Protect against being in an unquoted here document
7682 # in config.status.
7683 rm -f conftest.defines conftest.undefs
7684 # Using a here document instead of a string reduces the quoting nightmare.
7685 # Putting comments in sed scripts is not portable.
7686 #
7687 # `end' is used to avoid that the second main sed command (meant for
7688 # 0-ary CPP macros) applies to n-ary macro definitions.
7689 # See the Autoconf documentation for `clear'.
7690 cat >confdef2sed.sed <<\_ACEOF
7691 s/[\\&,]/\\&/g
7692 s,[\\$`],\\&,g
7693 t clear
7694 : clear
7695 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7696 t end
7697 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7698 : end
7699 _ACEOF
7700 # If some macros were called several times there might be several times
7701 # the same #defines, which is useless.  Nevertheless, we may not want to
7702 # sort them, since we want the *last* AC-DEFINE to be honored.
7703 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7704 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7705 rm -f confdef2sed.sed
7706
7707 # This sed command replaces #undef with comments.  This is necessary, for
7708 # example, in the case of _POSIX_SOURCE, which is predefined and required
7709 # on some systems where configure will not decide to define it.
7710 cat >>conftest.undefs <<\_ACEOF
7711 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7712 _ACEOF
7713
7714 # Break up conftest.defines because some shells have a limit on the size
7715 # of here documents, and old seds have small limits too (100 cmds).
7716 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7717 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7718 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7719 echo '  :' >>$CONFIG_STATUS
7720 rm -f conftest.tail
7721 while grep . conftest.defines >/dev/null
7722 do
7723   # Write a limited-size here document to $tmp/defines.sed.
7724   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7725   # Speed up: don't consider the non `#define' lines.
7726   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
7727   # Work around the forget-to-reset-the-flag bug.
7728   echo 't clr' >>$CONFIG_STATUS
7729   echo ': clr' >>$CONFIG_STATUS
7730   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7731   echo 'CEOF
7732   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7733   rm -f $tmp/in
7734   mv $tmp/out $tmp/in
7735 ' >>$CONFIG_STATUS
7736   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7737   rm -f conftest.defines
7738   mv conftest.tail conftest.defines
7739 done
7740 rm -f conftest.defines
7741 echo '  fi # grep' >>$CONFIG_STATUS
7742 echo >>$CONFIG_STATUS
7743
7744 # Break up conftest.undefs because some shells have a limit on the size
7745 # of here documents, and old seds have small limits too (100 cmds).
7746 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7747 rm -f conftest.tail
7748 while grep . conftest.undefs >/dev/null
7749 do
7750   # Write a limited-size here document to $tmp/undefs.sed.
7751   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7752   # Speed up: don't consider the non `#undef'
7753   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7754   # Work around the forget-to-reset-the-flag bug.
7755   echo 't clr' >>$CONFIG_STATUS
7756   echo ': clr' >>$CONFIG_STATUS
7757   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7758   echo 'CEOF
7759   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7760   rm -f $tmp/in
7761   mv $tmp/out $tmp/in
7762 ' >>$CONFIG_STATUS
7763   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7764   rm -f conftest.undefs
7765   mv conftest.tail conftest.undefs
7766 done
7767 rm -f conftest.undefs
7768
7769 cat >>$CONFIG_STATUS <<\_ACEOF
7770   # Let's still pretend it is `configure' which instantiates (i.e., don't
7771   # use $as_me), people would be surprised to read:
7772   #    /* config.h.  Generated by config.status.  */
7773   if test x"$ac_file" = x-; then
7774     echo "/* Generated by configure.  */" >$tmp/config.h
7775   else
7776     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7777   fi
7778   cat $tmp/in >>$tmp/config.h
7779   rm -f $tmp/in
7780   if test x"$ac_file" != x-; then
7781     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7782       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7783 echo "$as_me: $ac_file is unchanged" >&6;}
7784     else
7785       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7786 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7787          X"$ac_file" : 'X\(//\)[^/]' \| \
7788          X"$ac_file" : 'X\(//\)$' \| \
7789          X"$ac_file" : 'X\(/\)' \| \
7790          .     : '\(.\)' 2>/dev/null ||
7791 echo X"$ac_file" |
7792     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7793           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7794           /^X\(\/\/\)$/{ s//\1/; q; }
7795           /^X\(\/\).*/{ s//\1/; q; }
7796           s/.*/./; q'`
7797       { if $as_mkdir_p; then
7798     mkdir -p "$ac_dir"
7799   else
7800     as_dir="$ac_dir"
7801     as_dirs=
7802     while test ! -d "$as_dir"; do
7803       as_dirs="$as_dir $as_dirs"
7804       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7806          X"$as_dir" : 'X\(//\)[^/]' \| \
7807          X"$as_dir" : 'X\(//\)$' \| \
7808          X"$as_dir" : 'X\(/\)' \| \
7809          .     : '\(.\)' 2>/dev/null ||
7810 echo X"$as_dir" |
7811     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7812           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7813           /^X\(\/\/\)$/{ s//\1/; q; }
7814           /^X\(\/\).*/{ s//\1/; q; }
7815           s/.*/./; q'`
7816     done
7817     test ! -n "$as_dirs" || mkdir $as_dirs
7818   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7819 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7820    { (exit 1); exit 1; }; }; }
7821
7822       rm -f $ac_file
7823       mv $tmp/config.h $ac_file
7824     fi
7825   else
7826     cat $tmp/config.h
7827     rm -f $tmp/config.h
7828   fi
7829 # Compute $ac_file's index in $config_headers.
7830 _am_stamp_count=1
7831 for _am_header in $config_headers :; do
7832   case $_am_header in
7833     $ac_file | $ac_file:* )
7834       break ;;
7835     * )
7836       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7837   esac
7838 done
7839 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7840 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7841          X$ac_file : 'X\(//\)[^/]' \| \
7842          X$ac_file : 'X\(//\)$' \| \
7843          X$ac_file : 'X\(/\)' \| \
7844          .     : '\(.\)' 2>/dev/null ||
7845 echo X$ac_file |
7846     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7847           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7848           /^X\(\/\/\)$/{ s//\1/; q; }
7849           /^X\(\/\).*/{ s//\1/; q; }
7850           s/.*/./; q'`/stamp-h$_am_stamp_count
7851 done
7852 _ACEOF
7853 cat >>$CONFIG_STATUS <<\_ACEOF
7854
7855 #
7856 # CONFIG_COMMANDS section.
7857 #
7858 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7859   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7860   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7861   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7862 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7863          X"$ac_dest" : 'X\(//\)[^/]' \| \
7864          X"$ac_dest" : 'X\(//\)$' \| \
7865          X"$ac_dest" : 'X\(/\)' \| \
7866          .     : '\(.\)' 2>/dev/null ||
7867 echo X"$ac_dest" |
7868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7869           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7870           /^X\(\/\/\)$/{ s//\1/; q; }
7871           /^X\(\/\).*/{ s//\1/; q; }
7872           s/.*/./; q'`
7873   { if $as_mkdir_p; then
7874     mkdir -p "$ac_dir"
7875   else
7876     as_dir="$ac_dir"
7877     as_dirs=
7878     while test ! -d "$as_dir"; do
7879       as_dirs="$as_dir $as_dirs"
7880       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7882          X"$as_dir" : 'X\(//\)[^/]' \| \
7883          X"$as_dir" : 'X\(//\)$' \| \
7884          X"$as_dir" : 'X\(/\)' \| \
7885          .     : '\(.\)' 2>/dev/null ||
7886 echo X"$as_dir" |
7887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7888           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7889           /^X\(\/\/\)$/{ s//\1/; q; }
7890           /^X\(\/\).*/{ s//\1/; q; }
7891           s/.*/./; q'`
7892     done
7893     test ! -n "$as_dirs" || mkdir $as_dirs
7894   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7895 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7896    { (exit 1); exit 1; }; }; }
7897
7898   ac_builddir=.
7899
7900 if test "$ac_dir" != .; then
7901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7902   # A "../" for each directory in $ac_dir_suffix.
7903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7904 else
7905   ac_dir_suffix= ac_top_builddir=
7906 fi
7907
7908 case $srcdir in
7909   .)  # No --srcdir option.  We are building in place.
7910     ac_srcdir=.
7911     if test -z "$ac_top_builddir"; then
7912        ac_top_srcdir=.
7913     else
7914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7915     fi ;;
7916   [\\/]* | ?:[\\/]* )  # Absolute path.
7917     ac_srcdir=$srcdir$ac_dir_suffix;
7918     ac_top_srcdir=$srcdir ;;
7919   *) # Relative path.
7920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7922 esac
7923
7924 # Do not use `cd foo && pwd` to compute absolute paths, because
7925 # the directories may not exist.
7926 case `pwd` in
7927 .) ac_abs_builddir="$ac_dir";;
7928 *)
7929   case "$ac_dir" in
7930   .) ac_abs_builddir=`pwd`;;
7931   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7932   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7933   esac;;
7934 esac
7935 case $ac_abs_builddir in
7936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7937 *)
7938   case ${ac_top_builddir}. in
7939   .) ac_abs_top_builddir=$ac_abs_builddir;;
7940   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7941   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7942   esac;;
7943 esac
7944 case $ac_abs_builddir in
7945 .) ac_abs_srcdir=$ac_srcdir;;
7946 *)
7947   case $ac_srcdir in
7948   .) ac_abs_srcdir=$ac_abs_builddir;;
7949   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7950   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7951   esac;;
7952 esac
7953 case $ac_abs_builddir in
7954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7955 *)
7956   case $ac_top_srcdir in
7957   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7958   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7959   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7960   esac;;
7961 esac
7962
7963
7964   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7965 echo "$as_me: executing $ac_dest commands" >&6;}
7966   case $ac_dest in
7967     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7968   # Strip MF so we end up with the name of the file.
7969   mf=`echo "$mf" | sed -e 's/:.*$//'`
7970   # Check whether this is an Automake generated Makefile or not.
7971   # We used to match only the files named `Makefile.in', but
7972   # some people rename them; so instead we look at the file content.
7973   # Grep'ing the first line is not enough: some people post-process
7974   # each Makefile.in and add a new line on top of each file to say so.
7975   # So let's grep whole file.
7976   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7977     dirpart=`(dirname "$mf") 2>/dev/null ||
7978 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7979          X"$mf" : 'X\(//\)[^/]' \| \
7980          X"$mf" : 'X\(//\)$' \| \
7981          X"$mf" : 'X\(/\)' \| \
7982          .     : '\(.\)' 2>/dev/null ||
7983 echo X"$mf" |
7984     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7985           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7986           /^X\(\/\/\)$/{ s//\1/; q; }
7987           /^X\(\/\).*/{ s//\1/; q; }
7988           s/.*/./; q'`
7989   else
7990     continue
7991   fi
7992   # Extract the definition of DEPDIR, am__include, and am__quote
7993   # from the Makefile without running `make'.
7994   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7995   test -z "$DEPDIR" && continue
7996   am__include=`sed -n 's/^am__include = //p' < "$mf"`
7997   test -z "am__include" && continue
7998   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7999   # When using ansi2knr, U may be empty or an underscore; expand it
8000   U=`sed -n 's/^U = //p' < "$mf"`
8001   # Find all dependency output files, they are included files with
8002   # $(DEPDIR) in their names.  We invoke sed twice because it is the
8003   # simplest approach to changing $(DEPDIR) to its actual value in the
8004   # expansion.
8005   for file in `sed -n "
8006     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8007        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8008     # Make sure the directory exists.
8009     test -f "$dirpart/$file" && continue
8010     fdir=`(dirname "$file") 2>/dev/null ||
8011 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8012          X"$file" : 'X\(//\)[^/]' \| \
8013          X"$file" : 'X\(//\)$' \| \
8014          X"$file" : 'X\(/\)' \| \
8015          .     : '\(.\)' 2>/dev/null ||
8016 echo X"$file" |
8017     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8018           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8019           /^X\(\/\/\)$/{ s//\1/; q; }
8020           /^X\(\/\).*/{ s//\1/; q; }
8021           s/.*/./; q'`
8022     { if $as_mkdir_p; then
8023     mkdir -p $dirpart/$fdir
8024   else
8025     as_dir=$dirpart/$fdir
8026     as_dirs=
8027     while test ! -d "$as_dir"; do
8028       as_dirs="$as_dir $as_dirs"
8029       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8030 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8031          X"$as_dir" : 'X\(//\)[^/]' \| \
8032          X"$as_dir" : 'X\(//\)$' \| \
8033          X"$as_dir" : 'X\(/\)' \| \
8034          .     : '\(.\)' 2>/dev/null ||
8035 echo X"$as_dir" |
8036     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8037           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8038           /^X\(\/\/\)$/{ s//\1/; q; }
8039           /^X\(\/\).*/{ s//\1/; q; }
8040           s/.*/./; q'`
8041     done
8042     test ! -n "$as_dirs" || mkdir $as_dirs
8043   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8044 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8045    { (exit 1); exit 1; }; }; }
8046
8047     # echo "creating $dirpart/$file"
8048     echo '# dummy' > "$dirpart/$file"
8049   done
8050 done
8051  ;;
8052   esac
8053 done
8054 _ACEOF
8055
8056 cat >>$CONFIG_STATUS <<\_ACEOF
8057
8058 { (exit 0); exit 0; }
8059 _ACEOF
8060 chmod +x $CONFIG_STATUS
8061 ac_clean_files=$ac_clean_files_save
8062
8063
8064 # configure is writing to config.log, and then calls config.status.
8065 # config.status does its own redirection, appending to config.log.
8066 # Unfortunately, on DOS this fails, as config.log is still kept open
8067 # by configure, so config.status won't be able to write to it; its
8068 # output is simply discarded.  So we exec the FD to /dev/null,
8069 # effectively closing config.log, so it can be properly (re)opened and
8070 # appended to by config.status.  When coming back to configure, we
8071 # need to make the FD available again.
8072 if test "$no_create" != yes; then
8073   ac_cs_success=:
8074   ac_config_status_args=
8075   test "$silent" = yes &&
8076     ac_config_status_args="$ac_config_status_args --quiet"
8077   exec 5>/dev/null
8078   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8079   exec 5>>config.log
8080   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8081   # would make configure fail if this is the last instruction.
8082   $ac_cs_success || { (exit 1); exit 1; }
8083 fi
8084