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