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