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