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