3230160e13c035ef434d2d6adc7db9a1f331d243
[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 SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB 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   --disable-nls           do not use Native Language Support
851   --disable-rpath         do not hardcode runtime library paths
852   --enable-xpm            libXpm will be used if found (default)
853   --disable-xpm           libXpm will not be used
854   --enable-ptys           force use of pseudo-ttys with child processes
855   --disable-ptys          force use of pipes with child processes
856   --enable-zippy          support interfacing a chess program to ICS (default)
857   --disable-zippy         do not support interfacing a chess program to ICS
858   --enable-sigint         sending SIGINT (^C) wakes up GNU Chess (default)
859   --disable-sigint        typing a command wakes up GNU Chess
860
861 Optional Packages:
862   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
863   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
864   --with-Xaw3d            use Xaw3d instead of Xaw
865   --with-x                use the X Window System
866   --with-gnu-ld           assume the C compiler uses GNU ld default=no
867   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
868   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
869   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
870   --without-libintl-prefix     don't search for libintl in includedir and libdir
871
872 Some influential environment variables:
873   CC          C compiler command
874   CFLAGS      C compiler flags
875   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
876               nonstandard directory <lib dir>
877   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
878               headers in a nonstandard directory <include dir>
879   CPP         C preprocessor
880
881 Use these variables to override the choices made by `configure' or to help
882 it to find libraries and programs with nonstandard names/locations.
883
884 _ACEOF
885 fi
886
887 if test "$ac_init_help" = "recursive"; then
888   # If there are subdirs, report their specific --help.
889   ac_popdir=`pwd`
890   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891     test -d $ac_dir || continue
892     ac_builddir=.
893
894 if test "$ac_dir" != .; then
895   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896   # A "../" for each directory in $ac_dir_suffix.
897   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898 else
899   ac_dir_suffix= ac_top_builddir=
900 fi
901
902 case $srcdir in
903   .)  # No --srcdir option.  We are building in place.
904     ac_srcdir=.
905     if test -z "$ac_top_builddir"; then
906        ac_top_srcdir=.
907     else
908        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909     fi ;;
910   [\\/]* | ?:[\\/]* )  # Absolute path.
911     ac_srcdir=$srcdir$ac_dir_suffix;
912     ac_top_srcdir=$srcdir ;;
913   *) # Relative path.
914     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915     ac_top_srcdir=$ac_top_builddir$srcdir ;;
916 esac
917 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
918 # absolute.
919 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
920 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
921 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
922 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
923
924     cd $ac_dir
925     # Check for guested configure; otherwise get Cygnus style configure.
926     if test -f $ac_srcdir/configure.gnu; then
927       echo
928       $SHELL $ac_srcdir/configure.gnu  --help=recursive
929     elif test -f $ac_srcdir/configure; then
930       echo
931       $SHELL $ac_srcdir/configure  --help=recursive
932     elif test -f $ac_srcdir/configure.ac ||
933            test -f $ac_srcdir/configure.in; then
934       echo
935       $ac_configure --help
936     else
937       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
938     fi
939     cd $ac_popdir
940   done
941 fi
942
943 test -n "$ac_init_help" && exit 0
944 if $ac_init_version; then
945   cat <<\_ACEOF
946
947 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
948 Free Software Foundation, Inc.
949 This configure script is free software; the Free Software Foundation
950 gives unlimited permission to copy, distribute and modify it.
951 _ACEOF
952   exit 0
953 fi
954 exec 5>config.log
955 cat >&5 <<_ACEOF
956 This file contains any messages produced by compilers while
957 running configure, to aid debugging if configure makes a mistake.
958
959 It was created by $as_me, which was
960 generated by GNU Autoconf 2.57.  Invocation command line was
961
962   $ $0 $@
963
964 _ACEOF
965 {
966 cat <<_ASUNAME
967 ## --------- ##
968 ## Platform. ##
969 ## --------- ##
970
971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
976
977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
978 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
979
980 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
981 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
983 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
984 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
985 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
986 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
987
988 _ASUNAME
989
990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
991 for as_dir in $PATH
992 do
993   IFS=$as_save_IFS
994   test -z "$as_dir" && as_dir=.
995   echo "PATH: $as_dir"
996 done
997
998 } >&5
999
1000 cat >&5 <<_ACEOF
1001
1002
1003 ## ----------- ##
1004 ## Core tests. ##
1005 ## ----------- ##
1006
1007 _ACEOF
1008
1009
1010 # Keep a trace of the command line.
1011 # Strip out --no-create and --no-recursion so they do not pile up.
1012 # Strip out --silent because we don't want to record it for future runs.
1013 # Also quote any args containing shell meta-characters.
1014 # Make two passes to allow for proper duplicate-argument suppression.
1015 ac_configure_args=
1016 ac_configure_args0=
1017 ac_configure_args1=
1018 ac_sep=
1019 ac_must_keep_next=false
1020 for ac_pass in 1 2
1021 do
1022   for ac_arg
1023   do
1024     case $ac_arg in
1025     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1026     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027     | -silent | --silent | --silen | --sile | --sil)
1028       continue ;;
1029     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1030       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1031     esac
1032     case $ac_pass in
1033     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1034     2)
1035       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1036       if test $ac_must_keep_next = true; then
1037         ac_must_keep_next=false # Got value, back to normal.
1038       else
1039         case $ac_arg in
1040           *=* | --config-cache | -C | -disable-* | --disable-* \
1041           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1042           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1043           | -with-* | --with-* | -without-* | --without-* | --x)
1044             case "$ac_configure_args0 " in
1045               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1046             esac
1047             ;;
1048           -* ) ac_must_keep_next=true ;;
1049         esac
1050       fi
1051       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052       # Get rid of the leading space.
1053       ac_sep=" "
1054       ;;
1055     esac
1056   done
1057 done
1058 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1059 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1060
1061 # When interrupted or exit'd, cleanup temporary files, and complete
1062 # config.log.  We remove comments because anyway the quotes in there
1063 # would cause problems or look ugly.
1064 # WARNING: Be sure not to use single quotes in there, as some shells,
1065 # such as our DU 5.0 friend, will then `close' the trap.
1066 trap 'exit_status=$?
1067   # Save into config.log some information that might help in debugging.
1068   {
1069     echo
1070
1071     cat <<\_ASBOX
1072 ## ---------------- ##
1073 ## Cache variables. ##
1074 ## ---------------- ##
1075 _ASBOX
1076     echo
1077     # The following way of writing the cache mishandles newlines in values,
1078 {
1079   (set) 2>&1 |
1080     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1081     *ac_space=\ *)
1082       sed -n \
1083         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1084           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1085       ;;
1086     *)
1087       sed -n \
1088         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1089       ;;
1090     esac;
1091 }
1092     echo
1093
1094     cat <<\_ASBOX
1095 ## ----------------- ##
1096 ## Output variables. ##
1097 ## ----------------- ##
1098 _ASBOX
1099     echo
1100     for ac_var in $ac_subst_vars
1101     do
1102       eval ac_val=$`echo $ac_var`
1103       echo "$ac_var='"'"'$ac_val'"'"'"
1104     done | sort
1105     echo
1106
1107     if test -n "$ac_subst_files"; then
1108       cat <<\_ASBOX
1109 ## ------------- ##
1110 ## Output files. ##
1111 ## ------------- ##
1112 _ASBOX
1113       echo
1114       for ac_var in $ac_subst_files
1115       do
1116         eval ac_val=$`echo $ac_var`
1117         echo "$ac_var='"'"'$ac_val'"'"'"
1118       done | sort
1119       echo
1120     fi
1121
1122     if test -s confdefs.h; then
1123       cat <<\_ASBOX
1124 ## ----------- ##
1125 ## confdefs.h. ##
1126 ## ----------- ##
1127 _ASBOX
1128       echo
1129       sed "/^$/d" confdefs.h | sort
1130       echo
1131     fi
1132     test "$ac_signal" != 0 &&
1133       echo "$as_me: caught signal $ac_signal"
1134     echo "$as_me: exit $exit_status"
1135   } >&5
1136   rm -f core core.* *.core &&
1137   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1138     exit $exit_status
1139      ' 0
1140 for ac_signal in 1 2 13 15; do
1141   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1142 done
1143 ac_signal=0
1144
1145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1146 rm -rf conftest* confdefs.h
1147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1148 echo >confdefs.h
1149
1150 # Predefined preprocessor variables.
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_NAME "$PACKAGE_NAME"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_STRING "$PACKAGE_STRING"
1169 _ACEOF
1170
1171
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1174 _ACEOF
1175
1176
1177 # Let the site file select an alternate cache file if it wants to.
1178 # Prefer explicitly selected file to automatically selected ones.
1179 if test -z "$CONFIG_SITE"; then
1180   if test "x$prefix" != xNONE; then
1181     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1182   else
1183     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1184   fi
1185 fi
1186 for ac_site_file in $CONFIG_SITE; do
1187   if test -r "$ac_site_file"; then
1188     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1189 echo "$as_me: loading site script $ac_site_file" >&6;}
1190     sed 's/^/| /' "$ac_site_file" >&5
1191     . "$ac_site_file"
1192   fi
1193 done
1194
1195 if test -r "$cache_file"; then
1196   # Some versions of bash will fail to source /dev/null (special
1197   # files actually), so we avoid doing that.
1198   if test -f "$cache_file"; then
1199     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1200 echo "$as_me: loading cache $cache_file" >&6;}
1201     case $cache_file in
1202       [\\/]* | ?:[\\/]* ) . $cache_file;;
1203       *)                      . ./$cache_file;;
1204     esac
1205   fi
1206 else
1207   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1208 echo "$as_me: creating cache $cache_file" >&6;}
1209   >$cache_file
1210 fi
1211
1212 # Check that the precious variables saved in the cache have kept the same
1213 # value.
1214 ac_cache_corrupted=false
1215 for ac_var in `(set) 2>&1 |
1216                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1217   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1218   eval ac_new_set=\$ac_env_${ac_var}_set
1219   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1220   eval ac_new_val="\$ac_env_${ac_var}_value"
1221   case $ac_old_set,$ac_new_set in
1222     set,)
1223       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1224 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1225       ac_cache_corrupted=: ;;
1226     ,set)
1227       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1228 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1229       ac_cache_corrupted=: ;;
1230     ,);;
1231     *)
1232       if test "x$ac_old_val" != "x$ac_new_val"; then
1233         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1234 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1235         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1236 echo "$as_me:   former value:  $ac_old_val" >&2;}
1237         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1238 echo "$as_me:   current value: $ac_new_val" >&2;}
1239         ac_cache_corrupted=:
1240       fi;;
1241   esac
1242   # Pass precious variables to config.status.
1243   if test "$ac_new_set" = set; then
1244     case $ac_new_val in
1245     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1247     *) ac_arg=$ac_var=$ac_new_val ;;
1248     esac
1249     case " $ac_configure_args " in
1250       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1251       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1252     esac
1253   fi
1254 done
1255 if $ac_cache_corrupted; then
1256   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1257 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1258   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1259 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1260    { (exit 1); exit 1; }; }
1261 fi
1262
1263 ac_ext=c
1264 ac_cpp='$CPP $CPPFLAGS'
1265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287           ac_config_headers="$ac_config_headers config.h"
1288
1289
1290 PRODUCT=xboard
1291 VERSION=4.2
1292 PATCHLEVEL=pre8
1293
1294 if test -z "$CFLAGS" ; then
1295   CFLAGS=" "
1296 fi
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302 if test -n "$ac_tool_prefix"; then
1303   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1305 echo "$as_me:$LINENO: checking for $ac_word" >&5
1306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1307 if test "${ac_cv_prog_CC+set}" = set; then
1308   echo $ECHO_N "(cached) $ECHO_C" >&6
1309 else
1310   if test -n "$CC"; then
1311   ac_cv_prog_CC="$CC" # Let the user override the test.
1312 else
1313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1314 for as_dir in $PATH
1315 do
1316   IFS=$as_save_IFS
1317   test -z "$as_dir" && as_dir=.
1318   for ac_exec_ext in '' $ac_executable_extensions; do
1319   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1320     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1322     break 2
1323   fi
1324 done
1325 done
1326
1327 fi
1328 fi
1329 CC=$ac_cv_prog_CC
1330 if test -n "$CC"; then
1331   echo "$as_me:$LINENO: result: $CC" >&5
1332 echo "${ECHO_T}$CC" >&6
1333 else
1334   echo "$as_me:$LINENO: result: no" >&5
1335 echo "${ECHO_T}no" >&6
1336 fi
1337
1338 fi
1339 if test -z "$ac_cv_prog_CC"; then
1340   ac_ct_CC=$CC
1341   # Extract the first word of "gcc", so it can be a program name with args.
1342 set dummy gcc; ac_word=$2
1343 echo "$as_me:$LINENO: checking for $ac_word" >&5
1344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1346   echo $ECHO_N "(cached) $ECHO_C" >&6
1347 else
1348   if test -n "$ac_ct_CC"; then
1349   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1350 else
1351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1352 for as_dir in $PATH
1353 do
1354   IFS=$as_save_IFS
1355   test -z "$as_dir" && as_dir=.
1356   for ac_exec_ext in '' $ac_executable_extensions; do
1357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1358     ac_cv_prog_ac_ct_CC="gcc"
1359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1360     break 2
1361   fi
1362 done
1363 done
1364
1365 fi
1366 fi
1367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1368 if test -n "$ac_ct_CC"; then
1369   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1370 echo "${ECHO_T}$ac_ct_CC" >&6
1371 else
1372   echo "$as_me:$LINENO: result: no" >&5
1373 echo "${ECHO_T}no" >&6
1374 fi
1375
1376   CC=$ac_ct_CC
1377 else
1378   CC="$ac_cv_prog_CC"
1379 fi
1380
1381 if test -z "$CC"; then
1382   if test -n "$ac_tool_prefix"; then
1383   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1384 set dummy ${ac_tool_prefix}cc; ac_word=$2
1385 echo "$as_me:$LINENO: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_CC+set}" = set; then
1388   echo $ECHO_N "(cached) $ECHO_C" >&6
1389 else
1390   if test -n "$CC"; then
1391   ac_cv_prog_CC="$CC" # Let the user override the test.
1392 else
1393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1394 for as_dir in $PATH
1395 do
1396   IFS=$as_save_IFS
1397   test -z "$as_dir" && as_dir=.
1398   for ac_exec_ext in '' $ac_executable_extensions; do
1399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1400     ac_cv_prog_CC="${ac_tool_prefix}cc"
1401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1402     break 2
1403   fi
1404 done
1405 done
1406
1407 fi
1408 fi
1409 CC=$ac_cv_prog_CC
1410 if test -n "$CC"; then
1411   echo "$as_me:$LINENO: result: $CC" >&5
1412 echo "${ECHO_T}$CC" >&6
1413 else
1414   echo "$as_me:$LINENO: result: no" >&5
1415 echo "${ECHO_T}no" >&6
1416 fi
1417
1418 fi
1419 if test -z "$ac_cv_prog_CC"; then
1420   ac_ct_CC=$CC
1421   # Extract the first word of "cc", so it can be a program name with args.
1422 set dummy cc; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1426   echo $ECHO_N "(cached) $ECHO_C" >&6
1427 else
1428   if test -n "$ac_ct_CC"; then
1429   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1430 else
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434   IFS=$as_save_IFS
1435   test -z "$as_dir" && as_dir=.
1436   for ac_exec_ext in '' $ac_executable_extensions; do
1437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438     ac_cv_prog_ac_ct_CC="cc"
1439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440     break 2
1441   fi
1442 done
1443 done
1444
1445 fi
1446 fi
1447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1448 if test -n "$ac_ct_CC"; then
1449   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1450 echo "${ECHO_T}$ac_ct_CC" >&6
1451 else
1452   echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1454 fi
1455
1456   CC=$ac_ct_CC
1457 else
1458   CC="$ac_cv_prog_CC"
1459 fi
1460
1461 fi
1462 if test -z "$CC"; then
1463   # Extract the first word of "cc", so it can be a program name with args.
1464 set dummy cc; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468   echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470   if test -n "$CC"; then
1471   ac_cv_prog_CC="$CC" # Let the user override the test.
1472 else
1473   ac_prog_rejected=no
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1476 do
1477   IFS=$as_save_IFS
1478   test -z "$as_dir" && as_dir=.
1479   for ac_exec_ext in '' $ac_executable_extensions; do
1480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1482        ac_prog_rejected=yes
1483        continue
1484      fi
1485     ac_cv_prog_CC="cc"
1486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1487     break 2
1488   fi
1489 done
1490 done
1491
1492 if test $ac_prog_rejected = yes; then
1493   # We found a bogon in the path, so make sure we never use it.
1494   set dummy $ac_cv_prog_CC
1495   shift
1496   if test $# != 0; then
1497     # We chose a different compiler from the bogus one.
1498     # However, it has the same basename, so the bogon will be chosen
1499     # first if we set CC to just the basename; use the full file name.
1500     shift
1501     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1502   fi
1503 fi
1504 fi
1505 fi
1506 CC=$ac_cv_prog_CC
1507 if test -n "$CC"; then
1508   echo "$as_me:$LINENO: result: $CC" >&5
1509 echo "${ECHO_T}$CC" >&6
1510 else
1511   echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1513 fi
1514
1515 fi
1516 if test -z "$CC"; then
1517   if test -n "$ac_tool_prefix"; then
1518   for ac_prog in cl
1519   do
1520     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525   echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527   if test -n "$CC"; then
1528   ac_cv_prog_CC="$CC" # Let the user override the test.
1529 else
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1532 do
1533   IFS=$as_save_IFS
1534   test -z "$as_dir" && as_dir=.
1535   for ac_exec_ext in '' $ac_executable_extensions; do
1536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539     break 2
1540   fi
1541 done
1542 done
1543
1544 fi
1545 fi
1546 CC=$ac_cv_prog_CC
1547 if test -n "$CC"; then
1548   echo "$as_me:$LINENO: result: $CC" >&5
1549 echo "${ECHO_T}$CC" >&6
1550 else
1551   echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1553 fi
1554
1555     test -n "$CC" && break
1556   done
1557 fi
1558 if test -z "$CC"; then
1559   ac_ct_CC=$CC
1560   for ac_prog in cl
1561 do
1562   # Extract the first word of "$ac_prog", so it can be a program name with args.
1563 set dummy $ac_prog; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567   echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569   if test -n "$ac_ct_CC"; then
1570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1571 else
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575   IFS=$as_save_IFS
1576   test -z "$as_dir" && as_dir=.
1577   for ac_exec_ext in '' $ac_executable_extensions; do
1578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579     ac_cv_prog_ac_ct_CC="$ac_prog"
1580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581     break 2
1582   fi
1583 done
1584 done
1585
1586 fi
1587 fi
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1592 else
1593   echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1595 fi
1596
1597   test -n "$ac_ct_CC" && break
1598 done
1599
1600   CC=$ac_ct_CC
1601 fi
1602
1603 fi
1604
1605
1606 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1607 See \`config.log' for more details." >&5
1608 echo "$as_me: error: no acceptable C compiler found in \$PATH
1609 See \`config.log' for more details." >&2;}
1610    { (exit 1); exit 1; }; }
1611
1612 # Provide some information about the compiler.
1613 echo "$as_me:$LINENO:" \
1614      "checking for C compiler version" >&5
1615 ac_compiler=`set X $ac_compile; echo $2`
1616 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1617   (eval $ac_compiler --version </dev/null >&5) 2>&5
1618   ac_status=$?
1619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1620   (exit $ac_status); }
1621 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1622   (eval $ac_compiler -v </dev/null >&5) 2>&5
1623   ac_status=$?
1624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1625   (exit $ac_status); }
1626 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1627   (eval $ac_compiler -V </dev/null >&5) 2>&5
1628   ac_status=$?
1629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630   (exit $ac_status); }
1631
1632 cat >conftest.$ac_ext <<_ACEOF
1633 #line $LINENO "configure"
1634 /* confdefs.h.  */
1635 _ACEOF
1636 cat confdefs.h >>conftest.$ac_ext
1637 cat >>conftest.$ac_ext <<_ACEOF
1638 /* end confdefs.h.  */
1639
1640 int
1641 main ()
1642 {
1643
1644   ;
1645   return 0;
1646 }
1647 _ACEOF
1648 ac_clean_files_save=$ac_clean_files
1649 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1650 # Try to create an executable without -o first, disregard a.out.
1651 # It will help us diagnose broken compilers, and finding out an intuition
1652 # of exeext.
1653 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1654 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1655 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1656 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1657   (eval $ac_link_default) 2>&5
1658   ac_status=$?
1659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1660   (exit $ac_status); }; then
1661   # Find the output, starting from the most likely.  This scheme is
1662 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1663 # resort.
1664
1665 # Be careful to initialize this variable, since it used to be cached.
1666 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1667 ac_cv_exeext=
1668 # b.out is created by i960 compilers.
1669 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1670 do
1671   test -f "$ac_file" || continue
1672   case $ac_file in
1673     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1674         ;;
1675     conftest.$ac_ext )
1676         # This is the source file.
1677         ;;
1678     [ab].out )
1679         # We found the default executable, but exeext='' is most
1680         # certainly right.
1681         break;;
1682     *.* )
1683         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1684         # FIXME: I believe we export ac_cv_exeext for Libtool,
1685         # but it would be cool to find out if it's true.  Does anybody
1686         # maintain Libtool? --akim.
1687         export ac_cv_exeext
1688         break;;
1689     * )
1690         break;;
1691   esac
1692 done
1693 else
1694   echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1698 See \`config.log' for more details." >&5
1699 echo "$as_me: error: C compiler cannot create executables
1700 See \`config.log' for more details." >&2;}
1701    { (exit 77); exit 77; }; }
1702 fi
1703
1704 ac_exeext=$ac_cv_exeext
1705 echo "$as_me:$LINENO: result: $ac_file" >&5
1706 echo "${ECHO_T}$ac_file" >&6
1707
1708 # Check the compiler produces executables we can run.  If not, either
1709 # the compiler is broken, or we cross compile.
1710 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1711 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1712 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1713 # If not cross compiling, check that we can run a simple program.
1714 if test "$cross_compiling" != yes; then
1715   if { ac_try='./$ac_file'
1716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1717   (eval $ac_try) 2>&5
1718   ac_status=$?
1719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720   (exit $ac_status); }; }; then
1721     cross_compiling=no
1722   else
1723     if test "$cross_compiling" = maybe; then
1724         cross_compiling=yes
1725     else
1726         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1727 If you meant to cross compile, use \`--host'.
1728 See \`config.log' for more details." >&5
1729 echo "$as_me: error: cannot run C compiled programs.
1730 If you meant to cross compile, use \`--host'.
1731 See \`config.log' for more details." >&2;}
1732    { (exit 1); exit 1; }; }
1733     fi
1734   fi
1735 fi
1736 echo "$as_me:$LINENO: result: yes" >&5
1737 echo "${ECHO_T}yes" >&6
1738
1739 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1740 ac_clean_files=$ac_clean_files_save
1741 # Check the compiler produces executables we can run.  If not, either
1742 # the compiler is broken, or we cross compile.
1743 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1744 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1745 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1746 echo "${ECHO_T}$cross_compiling" >&6
1747
1748 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1749 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1751   (eval $ac_link) 2>&5
1752   ac_status=$?
1753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754   (exit $ac_status); }; then
1755   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1756 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1757 # work properly (i.e., refer to `conftest.exe'), while it won't with
1758 # `rm'.
1759 for ac_file in conftest.exe conftest conftest.*; do
1760   test -f "$ac_file" || continue
1761   case $ac_file in
1762     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1763     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1764           export ac_cv_exeext
1765           break;;
1766     * ) break;;
1767   esac
1768 done
1769 else
1770   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1771 See \`config.log' for more details." >&5
1772 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1773 See \`config.log' for more details." >&2;}
1774    { (exit 1); exit 1; }; }
1775 fi
1776
1777 rm -f conftest$ac_cv_exeext
1778 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1779 echo "${ECHO_T}$ac_cv_exeext" >&6
1780
1781 rm -f conftest.$ac_ext
1782 EXEEXT=$ac_cv_exeext
1783 ac_exeext=$EXEEXT
1784 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1785 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1786 if test "${ac_cv_objext+set}" = set; then
1787   echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789   cat >conftest.$ac_ext <<_ACEOF
1790 #line $LINENO "configure"
1791 /* confdefs.h.  */
1792 _ACEOF
1793 cat confdefs.h >>conftest.$ac_ext
1794 cat >>conftest.$ac_ext <<_ACEOF
1795 /* end confdefs.h.  */
1796
1797 int
1798 main ()
1799 {
1800
1801   ;
1802   return 0;
1803 }
1804 _ACEOF
1805 rm -f conftest.o conftest.obj
1806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1807   (eval $ac_compile) 2>&5
1808   ac_status=$?
1809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810   (exit $ac_status); }; then
1811   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1812   case $ac_file in
1813     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1814     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1815        break;;
1816   esac
1817 done
1818 else
1819   echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1823 See \`config.log' for more details." >&5
1824 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1825 See \`config.log' for more details." >&2;}
1826    { (exit 1); exit 1; }; }
1827 fi
1828
1829 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1830 fi
1831 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1832 echo "${ECHO_T}$ac_cv_objext" >&6
1833 OBJEXT=$ac_cv_objext
1834 ac_objext=$OBJEXT
1835 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1836 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1837 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1838   echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840   cat >conftest.$ac_ext <<_ACEOF
1841 #line $LINENO "configure"
1842 /* confdefs.h.  */
1843 _ACEOF
1844 cat confdefs.h >>conftest.$ac_ext
1845 cat >>conftest.$ac_ext <<_ACEOF
1846 /* end confdefs.h.  */
1847
1848 int
1849 main ()
1850 {
1851 #ifndef __GNUC__
1852        choke me
1853 #endif
1854
1855   ;
1856   return 0;
1857 }
1858 _ACEOF
1859 rm -f conftest.$ac_objext
1860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1861   (eval $ac_compile) 2>&5
1862   ac_status=$?
1863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864   (exit $ac_status); } &&
1865          { ac_try='test -s conftest.$ac_objext'
1866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1867   (eval $ac_try) 2>&5
1868   ac_status=$?
1869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870   (exit $ac_status); }; }; then
1871   ac_compiler_gnu=yes
1872 else
1873   echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1875
1876 ac_compiler_gnu=no
1877 fi
1878 rm -f conftest.$ac_objext conftest.$ac_ext
1879 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1880
1881 fi
1882 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1883 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1884 GCC=`test $ac_compiler_gnu = yes && echo yes`
1885 ac_test_CFLAGS=${CFLAGS+set}
1886 ac_save_CFLAGS=$CFLAGS
1887 CFLAGS="-g"
1888 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1889 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1890 if test "${ac_cv_prog_cc_g+set}" = set; then
1891   echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893   cat >conftest.$ac_ext <<_ACEOF
1894 #line $LINENO "configure"
1895 /* confdefs.h.  */
1896 _ACEOF
1897 cat confdefs.h >>conftest.$ac_ext
1898 cat >>conftest.$ac_ext <<_ACEOF
1899 /* end confdefs.h.  */
1900
1901 int
1902 main ()
1903 {
1904
1905   ;
1906   return 0;
1907 }
1908 _ACEOF
1909 rm -f conftest.$ac_objext
1910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1911   (eval $ac_compile) 2>&5
1912   ac_status=$?
1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914   (exit $ac_status); } &&
1915          { ac_try='test -s conftest.$ac_objext'
1916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1917   (eval $ac_try) 2>&5
1918   ac_status=$?
1919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920   (exit $ac_status); }; }; then
1921   ac_cv_prog_cc_g=yes
1922 else
1923   echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_cv_prog_cc_g=no
1927 fi
1928 rm -f conftest.$ac_objext conftest.$ac_ext
1929 fi
1930 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1931 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1932 if test "$ac_test_CFLAGS" = set; then
1933   CFLAGS=$ac_save_CFLAGS
1934 elif test $ac_cv_prog_cc_g = yes; then
1935   if test "$GCC" = yes; then
1936     CFLAGS="-g -O2"
1937   else
1938     CFLAGS="-g"
1939   fi
1940 else
1941   if test "$GCC" = yes; then
1942     CFLAGS="-O2"
1943   else
1944     CFLAGS=
1945   fi
1946 fi
1947 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1948 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1949 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1950   echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952   ac_cv_prog_cc_stdc=no
1953 ac_save_CC=$CC
1954 cat >conftest.$ac_ext <<_ACEOF
1955 #line $LINENO "configure"
1956 /* confdefs.h.  */
1957 _ACEOF
1958 cat confdefs.h >>conftest.$ac_ext
1959 cat >>conftest.$ac_ext <<_ACEOF
1960 /* end confdefs.h.  */
1961 #include <stdarg.h>
1962 #include <stdio.h>
1963 #include <sys/types.h>
1964 #include <sys/stat.h>
1965 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1966 struct buf { int x; };
1967 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1968 static char *e (p, i)
1969      char **p;
1970      int i;
1971 {
1972   return p[i];
1973 }
1974 static char *f (char * (*g) (char **, int), char **p, ...)
1975 {
1976   char *s;
1977   va_list v;
1978   va_start (v,p);
1979   s = g (p, va_arg (v,int));
1980   va_end (v);
1981   return s;
1982 }
1983 int test (int i, double x);
1984 struct s1 {int (*f) (int a);};
1985 struct s2 {int (*f) (double a);};
1986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1987 int argc;
1988 char **argv;
1989 int
1990 main ()
1991 {
1992 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1993   ;
1994   return 0;
1995 }
1996 _ACEOF
1997 # Don't try gcc -ansi; that turns off useful extensions and
1998 # breaks some systems' header files.
1999 # AIX                   -qlanglvl=ansi
2000 # Ultrix and OSF/1      -std1
2001 # HP-UX 10.20 and later -Ae
2002 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2003 # SVR4                  -Xc -D__EXTENSIONS__
2004 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2005 do
2006   CC="$ac_save_CC $ac_arg"
2007   rm -f conftest.$ac_objext
2008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2009   (eval $ac_compile) 2>&5
2010   ac_status=$?
2011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012   (exit $ac_status); } &&
2013          { ac_try='test -s conftest.$ac_objext'
2014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2015   (eval $ac_try) 2>&5
2016   ac_status=$?
2017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018   (exit $ac_status); }; }; then
2019   ac_cv_prog_cc_stdc=$ac_arg
2020 break
2021 else
2022   echo "$as_me: failed program was:" >&5
2023 sed 's/^/| /' conftest.$ac_ext >&5
2024
2025 fi
2026 rm -f conftest.$ac_objext
2027 done
2028 rm -f conftest.$ac_ext conftest.$ac_objext
2029 CC=$ac_save_CC
2030
2031 fi
2032
2033 case "x$ac_cv_prog_cc_stdc" in
2034   x|xno)
2035     echo "$as_me:$LINENO: result: none needed" >&5
2036 echo "${ECHO_T}none needed" >&6 ;;
2037   *)
2038     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2039 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2040     CC="$CC $ac_cv_prog_cc_stdc" ;;
2041 esac
2042
2043 # Some people use a C++ compiler to compile C.  Since we use `exit',
2044 # in C++ we need to declare it.  In case someone uses the same compiler
2045 # for both compiling C and C++ we need to have the C++ compiler decide
2046 # the declaration of exit, since it's the most demanding environment.
2047 cat >conftest.$ac_ext <<_ACEOF
2048 #ifndef __cplusplus
2049   choke me
2050 #endif
2051 _ACEOF
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054   (eval $ac_compile) 2>&5
2055   ac_status=$?
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); } &&
2058          { ac_try='test -s conftest.$ac_objext'
2059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060   (eval $ac_try) 2>&5
2061   ac_status=$?
2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063   (exit $ac_status); }; }; then
2064   for ac_declaration in \
2065    ''\
2066    '#include <stdlib.h>' \
2067    'extern "C" void std::exit (int) throw (); using std::exit;' \
2068    'extern "C" void std::exit (int); using std::exit;' \
2069    'extern "C" void exit (int) throw ();' \
2070    'extern "C" void exit (int);' \
2071    'void exit (int);'
2072 do
2073   cat >conftest.$ac_ext <<_ACEOF
2074 #line $LINENO "configure"
2075 /* confdefs.h.  */
2076 _ACEOF
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h.  */
2080 #include <stdlib.h>
2081 $ac_declaration
2082 int
2083 main ()
2084 {
2085 exit (42);
2086   ;
2087   return 0;
2088 }
2089 _ACEOF
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092   (eval $ac_compile) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); } &&
2096          { ac_try='test -s conftest.$ac_objext'
2097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098   (eval $ac_try) 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }; }; then
2102   :
2103 else
2104   echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2106
2107 continue
2108 fi
2109 rm -f conftest.$ac_objext conftest.$ac_ext
2110   cat >conftest.$ac_ext <<_ACEOF
2111 #line $LINENO "configure"
2112 /* confdefs.h.  */
2113 _ACEOF
2114 cat confdefs.h >>conftest.$ac_ext
2115 cat >>conftest.$ac_ext <<_ACEOF
2116 /* end confdefs.h.  */
2117 $ac_declaration
2118 int
2119 main ()
2120 {
2121 exit (42);
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 rm -f conftest.$ac_objext
2127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2128   (eval $ac_compile) 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); } &&
2132          { ac_try='test -s conftest.$ac_objext'
2133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134   (eval $ac_try) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }; }; then
2138   break
2139 else
2140   echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2142
2143 fi
2144 rm -f conftest.$ac_objext conftest.$ac_ext
2145 done
2146 rm -f conftest*
2147 if test -n "$ac_declaration"; then
2148   echo '#ifdef __cplusplus' >>confdefs.h
2149   echo $ac_declaration      >>confdefs.h
2150   echo '#endif'             >>confdefs.h
2151 fi
2152
2153 else
2154   echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2156
2157 fi
2158 rm -f conftest.$ac_objext conftest.$ac_ext
2159 ac_ext=c
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2164
2165 ac_ext=c
2166 ac_cpp='$CPP $CPPFLAGS'
2167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2170 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2171 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2172 # On Suns, sometimes $CPP names a directory.
2173 if test -n "$CPP" && test -d "$CPP"; then
2174   CPP=
2175 fi
2176 if test -z "$CPP"; then
2177   if test "${ac_cv_prog_CPP+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180       # Double quotes because CPP needs to be expanded
2181     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2182     do
2183       ac_preproc_ok=false
2184 for ac_c_preproc_warn_flag in '' yes
2185 do
2186   # Use a header file that comes with gcc, so configuring glibc
2187   # with a fresh cross-compiler works.
2188   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2189   # <limits.h> exists even on freestanding compilers.
2190   # On the NeXT, cc -E runs the code through the compiler's parser,
2191   # not just through cpp. "Syntax error" is here to catch this case.
2192   cat >conftest.$ac_ext <<_ACEOF
2193 #line $LINENO "configure"
2194 /* confdefs.h.  */
2195 _ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h.  */
2199 #ifdef __STDC__
2200 # include <limits.h>
2201 #else
2202 # include <assert.h>
2203 #endif
2204                      Syntax error
2205 _ACEOF
2206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2207   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2208   ac_status=$?
2209   grep -v '^ *+' conftest.er1 >conftest.err
2210   rm -f conftest.er1
2211   cat conftest.err >&5
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); } >/dev/null; then
2214   if test -s conftest.err; then
2215     ac_cpp_err=$ac_c_preproc_warn_flag
2216   else
2217     ac_cpp_err=
2218   fi
2219 else
2220   ac_cpp_err=yes
2221 fi
2222 if test -z "$ac_cpp_err"; then
2223   :
2224 else
2225   echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2227
2228   # Broken: fails on valid input.
2229 continue
2230 fi
2231 rm -f conftest.err conftest.$ac_ext
2232
2233   # OK, works on sane cases.  Now check whether non-existent headers
2234   # can be detected and how.
2235   cat >conftest.$ac_ext <<_ACEOF
2236 #line $LINENO "configure"
2237 /* confdefs.h.  */
2238 _ACEOF
2239 cat confdefs.h >>conftest.$ac_ext
2240 cat >>conftest.$ac_ext <<_ACEOF
2241 /* end confdefs.h.  */
2242 #include <ac_nonexistent.h>
2243 _ACEOF
2244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2245   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2246   ac_status=$?
2247   grep -v '^ *+' conftest.er1 >conftest.err
2248   rm -f conftest.er1
2249   cat conftest.err >&5
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); } >/dev/null; then
2252   if test -s conftest.err; then
2253     ac_cpp_err=$ac_c_preproc_warn_flag
2254   else
2255     ac_cpp_err=
2256   fi
2257 else
2258   ac_cpp_err=yes
2259 fi
2260 if test -z "$ac_cpp_err"; then
2261   # Broken: success on invalid input.
2262 continue
2263 else
2264   echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2266
2267   # Passes both tests.
2268 ac_preproc_ok=:
2269 break
2270 fi
2271 rm -f conftest.err conftest.$ac_ext
2272
2273 done
2274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2275 rm -f conftest.err conftest.$ac_ext
2276 if $ac_preproc_ok; then
2277   break
2278 fi
2279
2280     done
2281     ac_cv_prog_CPP=$CPP
2282
2283 fi
2284   CPP=$ac_cv_prog_CPP
2285 else
2286   ac_cv_prog_CPP=$CPP
2287 fi
2288 echo "$as_me:$LINENO: result: $CPP" >&5
2289 echo "${ECHO_T}$CPP" >&6
2290 ac_preproc_ok=false
2291 for ac_c_preproc_warn_flag in '' yes
2292 do
2293   # Use a header file that comes with gcc, so configuring glibc
2294   # with a fresh cross-compiler works.
2295   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2296   # <limits.h> exists even on freestanding compilers.
2297   # On the NeXT, cc -E runs the code through the compiler's parser,
2298   # not just through cpp. "Syntax error" is here to catch this case.
2299   cat >conftest.$ac_ext <<_ACEOF
2300 #line $LINENO "configure"
2301 /* confdefs.h.  */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h.  */
2306 #ifdef __STDC__
2307 # include <limits.h>
2308 #else
2309 # include <assert.h>
2310 #endif
2311                      Syntax error
2312 _ACEOF
2313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2315   ac_status=$?
2316   grep -v '^ *+' conftest.er1 >conftest.err
2317   rm -f conftest.er1
2318   cat conftest.err >&5
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); } >/dev/null; then
2321   if test -s conftest.err; then
2322     ac_cpp_err=$ac_c_preproc_warn_flag
2323   else
2324     ac_cpp_err=
2325   fi
2326 else
2327   ac_cpp_err=yes
2328 fi
2329 if test -z "$ac_cpp_err"; then
2330   :
2331 else
2332   echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2334
2335   # Broken: fails on valid input.
2336 continue
2337 fi
2338 rm -f conftest.err conftest.$ac_ext
2339
2340   # OK, works on sane cases.  Now check whether non-existent headers
2341   # can be detected and how.
2342   cat >conftest.$ac_ext <<_ACEOF
2343 #line $LINENO "configure"
2344 /* confdefs.h.  */
2345 _ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h.  */
2349 #include <ac_nonexistent.h>
2350 _ACEOF
2351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2353   ac_status=$?
2354   grep -v '^ *+' conftest.er1 >conftest.err
2355   rm -f conftest.er1
2356   cat conftest.err >&5
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); } >/dev/null; then
2359   if test -s conftest.err; then
2360     ac_cpp_err=$ac_c_preproc_warn_flag
2361   else
2362     ac_cpp_err=
2363   fi
2364 else
2365   ac_cpp_err=yes
2366 fi
2367 if test -z "$ac_cpp_err"; then
2368   # Broken: success on invalid input.
2369 continue
2370 else
2371   echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2373
2374   # Passes both tests.
2375 ac_preproc_ok=:
2376 break
2377 fi
2378 rm -f conftest.err conftest.$ac_ext
2379
2380 done
2381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2382 rm -f conftest.err conftest.$ac_ext
2383 if $ac_preproc_ok; then
2384   :
2385 else
2386   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2389 See \`config.log' for more details." >&2;}
2390    { (exit 1); exit 1; }; }
2391 fi
2392
2393 ac_ext=c
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398
2399
2400 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2401 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2402 if test "${ac_cv_search_strerror+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   ac_func_search_save_LIBS=$LIBS
2406 ac_cv_search_strerror=no
2407 cat >conftest.$ac_ext <<_ACEOF
2408 #line $LINENO "configure"
2409 /* confdefs.h.  */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h.  */
2414
2415 /* Override any gcc2 internal prototype to avoid an error.  */
2416 #ifdef __cplusplus
2417 extern "C"
2418 #endif
2419 /* We use char because int might match the return type of a gcc2
2420    builtin and then its argument prototype would still apply.  */
2421 char strerror ();
2422 int
2423 main ()
2424 {
2425 strerror ();
2426   ;
2427   return 0;
2428 }
2429 _ACEOF
2430 rm -f conftest.$ac_objext conftest$ac_exeext
2431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2432   (eval $ac_link) 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); } &&
2436          { ac_try='test -s conftest$ac_exeext'
2437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438   (eval $ac_try) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }; }; then
2442   ac_cv_search_strerror="none required"
2443 else
2444   echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2446
2447 fi
2448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2449 if test "$ac_cv_search_strerror" = no; then
2450   for ac_lib in cposix; do
2451     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2452     cat >conftest.$ac_ext <<_ACEOF
2453 #line $LINENO "configure"
2454 /* confdefs.h.  */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459
2460 /* Override any gcc2 internal prototype to avoid an error.  */
2461 #ifdef __cplusplus
2462 extern "C"
2463 #endif
2464 /* We use char because int might match the return type of a gcc2
2465    builtin and then its argument prototype would still apply.  */
2466 char strerror ();
2467 int
2468 main ()
2469 {
2470 strerror ();
2471   ;
2472   return 0;
2473 }
2474 _ACEOF
2475 rm -f conftest.$ac_objext conftest$ac_exeext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2477   (eval $ac_link) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); } &&
2481          { ac_try='test -s conftest$ac_exeext'
2482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483   (eval $ac_try) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; }; then
2487   ac_cv_search_strerror="-l$ac_lib"
2488 break
2489 else
2490   echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 fi
2494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2495   done
2496 fi
2497 LIBS=$ac_func_search_save_LIBS
2498 fi
2499 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2500 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2501 if test "$ac_cv_search_strerror" != no; then
2502   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2503
2504 fi
2505
2506 ac_aux_dir=
2507 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2508   if test -f $ac_dir/install-sh; then
2509     ac_aux_dir=$ac_dir
2510     ac_install_sh="$ac_aux_dir/install-sh -c"
2511     break
2512   elif test -f $ac_dir/install.sh; then
2513     ac_aux_dir=$ac_dir
2514     ac_install_sh="$ac_aux_dir/install.sh -c"
2515     break
2516   elif test -f $ac_dir/shtool; then
2517     ac_aux_dir=$ac_dir
2518     ac_install_sh="$ac_aux_dir/shtool install -c"
2519     break
2520   fi
2521 done
2522 if test -z "$ac_aux_dir"; then
2523   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2524 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2525    { (exit 1); exit 1; }; }
2526 fi
2527 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2528 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2529 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2530
2531 # Find a good install program.  We prefer a C program (faster),
2532 # so one script is as good as another.  But avoid the broken or
2533 # incompatible versions:
2534 # SysV /etc/install, /usr/sbin/install
2535 # SunOS /usr/etc/install
2536 # IRIX /sbin/install
2537 # AIX /bin/install
2538 # AmigaOS /C/install, which installs bootblocks on floppy discs
2539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2542 # ./install, which can be erroneously created by make from ./install.sh.
2543 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2544 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2545 if test -z "$INSTALL"; then
2546 if test "${ac_cv_path_install+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552   IFS=$as_save_IFS
2553   test -z "$as_dir" && as_dir=.
2554   # Account for people who put trailing slashes in PATH elements.
2555 case $as_dir/ in
2556   ./ | .// | /cC/* | \
2557   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2558   /usr/ucb/* ) ;;
2559   *)
2560     # OSF1 and SCO ODT 3.0 have their own names for install.
2561     # Don't use installbsd from OSF since it installs stuff as root
2562     # by default.
2563     for ac_prog in ginstall scoinst install; do
2564       for ac_exec_ext in '' $ac_executable_extensions; do
2565         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2566           if test $ac_prog = install &&
2567             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2568             # AIX install.  It has an incompatible calling convention.
2569             :
2570           elif test $ac_prog = install &&
2571             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2572             # program-specific install script used by HP pwplus--don't use.
2573             :
2574           else
2575             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2576             break 3
2577           fi
2578         fi
2579       done
2580     done
2581     ;;
2582 esac
2583 done
2584
2585
2586 fi
2587   if test "${ac_cv_path_install+set}" = set; then
2588     INSTALL=$ac_cv_path_install
2589   else
2590     # As a last resort, use the slow shell script.  We don't cache a
2591     # path for INSTALL within a source directory, because that will
2592     # break other packages using the cache if that directory is
2593     # removed, or if the path is relative.
2594     INSTALL=$ac_install_sh
2595   fi
2596 fi
2597 echo "$as_me:$LINENO: result: $INSTALL" >&5
2598 echo "${ECHO_T}$INSTALL" >&6
2599
2600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2601 # It thinks the first close brace ends the variable substitution.
2602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2603
2604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2605
2606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2607
2608 for ac_prog in lex flex
2609 do
2610   # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2614 if test "${ac_cv_prog_LEX+set}" = set; then
2615   echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617   if test -n "$LEX"; then
2618   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623   IFS=$as_save_IFS
2624   test -z "$as_dir" && as_dir=.
2625   for ac_exec_ext in '' $ac_executable_extensions; do
2626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627     ac_cv_prog_LEX="$ac_prog"
2628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629     break 2
2630   fi
2631 done
2632 done
2633
2634 fi
2635 fi
2636 LEX=$ac_cv_prog_LEX
2637 if test -n "$LEX"; then
2638   echo "$as_me:$LINENO: result: $LEX" >&5
2639 echo "${ECHO_T}$LEX" >&6
2640 else
2641   echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6
2643 fi
2644
2645   test -n "$LEX" && break
2646 done
2647 test -n "$LEX" || LEX="lex_not_found"
2648
2649 if test "$LEX" != lex_not_found ; then
2650   for ac_prog in flex lex
2651 do
2652   # Extract the first word of "$ac_prog", so it can be a program name with args.
2653 set dummy $ac_prog; ac_word=$2
2654 echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2656 if test "${ac_cv_prog_LEX+set}" = set; then
2657   echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659   if test -n "$LEX"; then
2660   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665   IFS=$as_save_IFS
2666   test -z "$as_dir" && as_dir=.
2667   for ac_exec_ext in '' $ac_executable_extensions; do
2668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669     ac_cv_prog_LEX="$ac_prog"
2670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671     break 2
2672   fi
2673 done
2674 done
2675
2676 fi
2677 fi
2678 LEX=$ac_cv_prog_LEX
2679 if test -n "$LEX"; then
2680   echo "$as_me:$LINENO: result: $LEX" >&5
2681 echo "${ECHO_T}$LEX" >&6
2682 else
2683   echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6
2685 fi
2686
2687   test -n "$LEX" && break
2688 done
2689 test -n "$LEX" || LEX=":"
2690
2691 if test -z "$LEXLIB"
2692 then
2693   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2694 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2695 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2696   echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698   ac_check_lib_save_LIBS=$LIBS
2699 LIBS="-lfl  $LIBS"
2700 cat >conftest.$ac_ext <<_ACEOF
2701 #line $LINENO "configure"
2702 /* confdefs.h.  */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h.  */
2707
2708 /* Override any gcc2 internal prototype to avoid an error.  */
2709 #ifdef __cplusplus
2710 extern "C"
2711 #endif
2712 /* We use char because int might match the return type of a gcc2
2713    builtin and then its argument prototype would still apply.  */
2714 char yywrap ();
2715 int
2716 main ()
2717 {
2718 yywrap ();
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 rm -f conftest.$ac_objext conftest$ac_exeext
2724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2725   (eval $ac_link) 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -s conftest$ac_exeext'
2730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731   (eval $ac_try) 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }; }; then
2735   ac_cv_lib_fl_yywrap=yes
2736 else
2737   echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2739
2740 ac_cv_lib_fl_yywrap=no
2741 fi
2742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2743 LIBS=$ac_check_lib_save_LIBS
2744 fi
2745 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2746 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2747 if test $ac_cv_lib_fl_yywrap = yes; then
2748   LEXLIB="-lfl"
2749 else
2750   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2751 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2752 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2753   echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755   ac_check_lib_save_LIBS=$LIBS
2756 LIBS="-ll  $LIBS"
2757 cat >conftest.$ac_ext <<_ACEOF
2758 #line $LINENO "configure"
2759 /* confdefs.h.  */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h.  */
2764
2765 /* Override any gcc2 internal prototype to avoid an error.  */
2766 #ifdef __cplusplus
2767 extern "C"
2768 #endif
2769 /* We use char because int might match the return type of a gcc2
2770    builtin and then its argument prototype would still apply.  */
2771 char yywrap ();
2772 int
2773 main ()
2774 {
2775 yywrap ();
2776   ;
2777   return 0;
2778 }
2779 _ACEOF
2780 rm -f conftest.$ac_objext conftest$ac_exeext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2782   (eval $ac_link) 2>&5
2783   ac_status=$?
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); } &&
2786          { ac_try='test -s conftest$ac_exeext'
2787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }; }; then
2792   ac_cv_lib_l_yywrap=yes
2793 else
2794   echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797 ac_cv_lib_l_yywrap=no
2798 fi
2799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2800 LIBS=$ac_check_lib_save_LIBS
2801 fi
2802 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2803 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2804 if test $ac_cv_lib_l_yywrap = yes; then
2805   LEXLIB="-ll"
2806 fi
2807
2808 fi
2809
2810 fi
2811
2812 if test "x$LEX" != "x:"; then
2813   echo "$as_me:$LINENO: checking lex output file root" >&5
2814 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2815 if test "${ac_cv_prog_lex_root+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   # The minimal lex program is just a single line: %%.  But some broken lexes
2819 # (Solaris, I think it was) want two %% lines, so accommodate them.
2820 cat >conftest.l <<_ACEOF
2821 %%
2822 %%
2823 _ACEOF
2824 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2825   (eval $LEX conftest.l) 2>&5
2826   ac_status=$?
2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); }
2829 if test -f lex.yy.c; then
2830   ac_cv_prog_lex_root=lex.yy
2831 elif test -f lexyy.c; then
2832   ac_cv_prog_lex_root=lexyy
2833 else
2834   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2835 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2836    { (exit 1); exit 1; }; }
2837 fi
2838 fi
2839 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2840 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2841 rm -f conftest.l
2842 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2843
2844 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2845 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2846 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2847   echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849   # POSIX says lex can declare yytext either as a pointer or an array; the
2850 # default is implementation-dependent. Figure out which it is, since
2851 # not all implementations provide the %pointer and %array declarations.
2852 ac_cv_prog_lex_yytext_pointer=no
2853 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2854 ac_save_LIBS=$LIBS
2855 LIBS="$LIBS $LEXLIB"
2856 cat >conftest.$ac_ext <<_ACEOF
2857 `cat $LEX_OUTPUT_ROOT.c`
2858 _ACEOF
2859 rm -f conftest.$ac_objext conftest$ac_exeext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2861   (eval $ac_link) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); } &&
2865          { ac_try='test -s conftest$ac_exeext'
2866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867   (eval $ac_try) 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); }; }; then
2871   ac_cv_prog_lex_yytext_pointer=yes
2872 else
2873   echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2875
2876 fi
2877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2878 LIBS=$ac_save_LIBS
2879 rm -f "${LEX_OUTPUT_ROOT}.c"
2880
2881 fi
2882 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2883 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2884 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2885
2886 cat >>confdefs.h <<\_ACEOF
2887 #define YYTEXT_POINTER 1
2888 _ACEOF
2889
2890 fi
2891
2892 fi
2893 fi
2894 for ac_prog in remsh rsh
2895 do
2896   # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900 if test "${ac_cv_prog_RSH+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   if test -n "$RSH"; then
2904   ac_cv_prog_RSH="$RSH" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909   IFS=$as_save_IFS
2910   test -z "$as_dir" && as_dir=.
2911   for ac_exec_ext in '' $ac_executable_extensions; do
2912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913     ac_cv_prog_RSH="$ac_prog"
2914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915     break 2
2916   fi
2917 done
2918 done
2919
2920 fi
2921 fi
2922 RSH=$ac_cv_prog_RSH
2923 if test -n "$RSH"; then
2924   echo "$as_me:$LINENO: result: $RSH" >&5
2925 echo "${ECHO_T}$RSH" >&6
2926 else
2927   echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2929 fi
2930
2931   test -n "$RSH" && break
2932 done
2933 test -n "$RSH" || RSH="rsh"
2934
2935 cat >>confdefs.h <<_ACEOF
2936 #define REMOTE_SHELL "$RSH"
2937 _ACEOF
2938
2939 # Extract the first word of "nroff", so it can be a program name with args.
2940 set dummy nroff; ac_word=$2
2941 echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2943 if test "${ac_cv_prog_NROFF+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   if test -n "$NROFF"; then
2947   ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952   IFS=$as_save_IFS
2953   test -z "$as_dir" && as_dir=.
2954   for ac_exec_ext in '' $ac_executable_extensions; do
2955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956     ac_cv_prog_NROFF="nroff -man"
2957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958     break 2
2959   fi
2960 done
2961 done
2962
2963   test -z "$ac_cv_prog_NROFF" && ac_cv_prog_NROFF="cat"
2964 fi
2965 fi
2966 NROFF=$ac_cv_prog_NROFF
2967 if test -n "$NROFF"; then
2968   echo "$as_me:$LINENO: result: $NROFF" >&5
2969 echo "${ECHO_T}$NROFF" >&6
2970 else
2971   echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2973 fi
2974
2975
2976 for ac_prog in awk mawk gawk nawk
2977 do
2978   # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_path_AWKPATH+set}" = set; then
2983   echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985   case $AWKPATH in
2986   [\\/]* | ?:[\\/]*)
2987   ac_cv_path_AWKPATH="$AWKPATH" # Let the user override the test with a path.
2988   ;;
2989   *)
2990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993   IFS=$as_save_IFS
2994   test -z "$as_dir" && as_dir=.
2995   for ac_exec_ext in '' $ac_executable_extensions; do
2996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997     ac_cv_path_AWKPATH="$as_dir/$ac_word$ac_exec_ext"
2998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999     break 2
3000   fi
3001 done
3002 done
3003
3004   ;;
3005 esac
3006 fi
3007 AWKPATH=$ac_cv_path_AWKPATH
3008
3009 if test -n "$AWKPATH"; then
3010   echo "$as_me:$LINENO: result: $AWKPATH" >&5
3011 echo "${ECHO_T}$AWKPATH" >&6
3012 else
3013   echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3015 fi
3016
3017   test -n "$AWKPATH" && break
3018 done
3019
3020 for ac_prog in perl
3021 do
3022   # Extract the first word of "$ac_prog", so it can be a program name with args.
3023 set dummy $ac_prog; ac_word=$2
3024 echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_path_PERLPATH+set}" = set; then
3027   echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029   case $PERLPATH in
3030   [\\/]* | ?:[\\/]*)
3031   ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
3032   ;;
3033   *)
3034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037   IFS=$as_save_IFS
3038   test -z "$as_dir" && as_dir=.
3039   for ac_exec_ext in '' $ac_executable_extensions; do
3040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041     ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
3042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043     break 2
3044   fi
3045 done
3046 done
3047
3048   ;;
3049 esac
3050 fi
3051 PERLPATH=$ac_cv_path_PERLPATH
3052
3053 if test -n "$PERLPATH"; then
3054   echo "$as_me:$LINENO: result: $PERLPATH" >&5
3055 echo "${ECHO_T}$PERLPATH" >&6
3056 else
3057   echo "$as_me:$LINENO: result: no" >&5
3058 echo "${ECHO_T}no" >&6
3059 fi
3060
3061   test -n "$PERLPATH" && break
3062 done
3063
3064
3065
3066 # Check whether --with-Xaw3d or --without-Xaw3d was given.
3067 if test "${with_Xaw3d+set}" = set; then
3068   withval="$with_Xaw3d"
3069   cat >>confdefs.h <<\_ACEOF
3070 #define USE_XAW3D 1
3071 _ACEOF
3072
3073    XAW_LIBS="-lXaw3d"
3074 else
3075   XAW_LIBS="-lXaw"
3076 fi;
3077
3078
3079
3080 echo "$as_me:$LINENO: checking for egrep" >&5
3081 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3082 if test "${ac_cv_prog_egrep+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3086     then ac_cv_prog_egrep='grep -E'
3087     else ac_cv_prog_egrep='egrep'
3088     fi
3089 fi
3090 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3091 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3092  EGREP=$ac_cv_prog_egrep
3093
3094
3095 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3096 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3097 if test "${ac_cv_header_stdc+set}" = set; then
3098   echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100   cat >conftest.$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107 #include <stdlib.h>
3108 #include <stdarg.h>
3109 #include <string.h>
3110 #include <float.h>
3111
3112 int
3113 main ()
3114 {
3115
3116   ;
3117   return 0;
3118 }
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122   (eval $ac_compile) 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); } &&
3126          { ac_try='test -s conftest.$ac_objext'
3127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128   (eval $ac_try) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; }; then
3132   ac_cv_header_stdc=yes
3133 else
3134   echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3136
3137 ac_cv_header_stdc=no
3138 fi
3139 rm -f conftest.$ac_objext conftest.$ac_ext
3140
3141 if test $ac_cv_header_stdc = yes; then
3142   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3143   cat >conftest.$ac_ext <<_ACEOF
3144 #line $LINENO "configure"
3145 /* confdefs.h.  */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h.  */
3150 #include <string.h>
3151
3152 _ACEOF
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154   $EGREP "memchr" >/dev/null 2>&1; then
3155   :
3156 else
3157   ac_cv_header_stdc=no
3158 fi
3159 rm -f conftest*
3160
3161 fi
3162
3163 if test $ac_cv_header_stdc = yes; then
3164   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3165   cat >conftest.$ac_ext <<_ACEOF
3166 #line $LINENO "configure"
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172 #include <stdlib.h>
3173
3174 _ACEOF
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176   $EGREP "free" >/dev/null 2>&1; then
3177   :
3178 else
3179   ac_cv_header_stdc=no
3180 fi
3181 rm -f conftest*
3182
3183 fi
3184
3185 if test $ac_cv_header_stdc = yes; then
3186   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3187   if test "$cross_compiling" = yes; then
3188   :
3189 else
3190   cat >conftest.$ac_ext <<_ACEOF
3191 #line $LINENO "configure"
3192 /* confdefs.h.  */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h.  */
3197 #include <ctype.h>
3198 #if ((' ' & 0x0FF) == 0x020)
3199 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3200 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3201 #else
3202 # define ISLOWER(c) \
3203                    (('a' <= (c) && (c) <= 'i') \
3204                      || ('j' <= (c) && (c) <= 'r') \
3205                      || ('s' <= (c) && (c) <= 'z'))
3206 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3207 #endif
3208
3209 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3210 int
3211 main ()
3212 {
3213   int i;
3214   for (i = 0; i < 256; i++)
3215     if (XOR (islower (i), ISLOWER (i))
3216         || toupper (i) != TOUPPER (i))
3217       exit(2);
3218   exit (0);
3219 }
3220 _ACEOF
3221 rm -f conftest$ac_exeext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3223   (eval $ac_link) 2>&5
3224   ac_status=$?
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228   (eval $ac_try) 2>&5
3229   ac_status=$?
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); }; }; then
3232   :
3233 else
3234   echo "$as_me: program exited with status $ac_status" >&5
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238 ( exit $ac_status )
3239 ac_cv_header_stdc=no
3240 fi
3241 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3242 fi
3243 fi
3244 fi
3245 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3246 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3247 if test $ac_cv_header_stdc = yes; then
3248
3249 cat >>confdefs.h <<\_ACEOF
3250 #define STDC_HEADERS 1
3251 _ACEOF
3252
3253 fi
3254
3255 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3256 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3257 if test "${ac_cv_header_time+set}" = set; then
3258   echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260   cat >conftest.$ac_ext <<_ACEOF
3261 #line $LINENO "configure"
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #include <sys/types.h>
3268 #include <sys/time.h>
3269 #include <time.h>
3270
3271 int
3272 main ()
3273 {
3274 if ((struct tm *) 0)
3275 return 0;
3276   ;
3277   return 0;
3278 }
3279 _ACEOF
3280 rm -f conftest.$ac_objext
3281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3282   (eval $ac_compile) 2>&5
3283   ac_status=$?
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } &&
3286          { ac_try='test -s conftest.$ac_objext'
3287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288   (eval $ac_try) 2>&5
3289   ac_status=$?
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); }; }; then
3292   ac_cv_header_time=yes
3293 else
3294   echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297 ac_cv_header_time=no
3298 fi
3299 rm -f conftest.$ac_objext conftest.$ac_ext
3300 fi
3301 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3302 echo "${ECHO_T}$ac_cv_header_time" >&6
3303 if test $ac_cv_header_time = yes; then
3304
3305 cat >>confdefs.h <<\_ACEOF
3306 #define TIME_WITH_SYS_TIME 1
3307 _ACEOF
3308
3309 fi
3310
3311 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3312 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3313 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3314   echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316   cat >conftest.$ac_ext <<_ACEOF
3317 #line $LINENO "configure"
3318 /* confdefs.h.  */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h.  */
3323 #include <sys/types.h>
3324 #include <sys/wait.h>
3325 #ifndef WEXITSTATUS
3326 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3327 #endif
3328 #ifndef WIFEXITED
3329 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3330 #endif
3331
3332 int
3333 main ()
3334 {
3335   int s;
3336   wait (&s);
3337   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.$ac_objext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344   (eval $ac_compile) 2>&5
3345   ac_status=$?
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } &&
3348          { ac_try='test -s conftest.$ac_objext'
3349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350   (eval $ac_try) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; }; then
3354   ac_cv_header_sys_wait_h=yes
3355 else
3356   echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359 ac_cv_header_sys_wait_h=no
3360 fi
3361 rm -f conftest.$ac_objext conftest.$ac_ext
3362 fi
3363 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3364 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3365 if test $ac_cv_header_sys_wait_h = yes; then
3366
3367 cat >>confdefs.h <<\_ACEOF
3368 #define HAVE_SYS_WAIT_H 1
3369 _ACEOF
3370
3371 fi
3372
3373
3374
3375
3376
3377
3378 ac_header_dirent=no
3379 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3380   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3381 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3382 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   cat >conftest.$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3388 /* confdefs.h.  */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h.  */
3393 #include <sys/types.h>
3394 #include <$ac_hdr>
3395
3396 int
3397 main ()
3398 {
3399 if ((DIR *) 0)
3400 return 0;
3401   ;
3402   return 0;
3403 }
3404 _ACEOF
3405 rm -f conftest.$ac_objext
3406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407   (eval $ac_compile) 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } &&
3411          { ac_try='test -s conftest.$ac_objext'
3412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413   (eval $ac_try) 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }; }; then
3417   eval "$as_ac_Header=yes"
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422 eval "$as_ac_Header=no"
3423 fi
3424 rm -f conftest.$ac_objext conftest.$ac_ext
3425 fi
3426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3429   cat >>confdefs.h <<_ACEOF
3430 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3431 _ACEOF
3432
3433 ac_header_dirent=$ac_hdr; break
3434 fi
3435
3436 done
3437 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3438 if test $ac_header_dirent = dirent.h; then
3439   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3440 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3441 if test "${ac_cv_search_opendir+set}" = set; then
3442   echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444   ac_func_search_save_LIBS=$LIBS
3445 ac_cv_search_opendir=no
3446 cat >conftest.$ac_ext <<_ACEOF
3447 #line $LINENO "configure"
3448 /* confdefs.h.  */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h.  */
3453
3454 /* Override any gcc2 internal prototype to avoid an error.  */
3455 #ifdef __cplusplus
3456 extern "C"
3457 #endif
3458 /* We use char because int might match the return type of a gcc2
3459    builtin and then its argument prototype would still apply.  */
3460 char opendir ();
3461 int
3462 main ()
3463 {
3464 opendir ();
3465   ;
3466   return 0;
3467 }
3468 _ACEOF
3469 rm -f conftest.$ac_objext conftest$ac_exeext
3470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3471   (eval $ac_link) 2>&5
3472   ac_status=$?
3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); } &&
3475          { ac_try='test -s conftest$ac_exeext'
3476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477   (eval $ac_try) 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }; }; then
3481   ac_cv_search_opendir="none required"
3482 else
3483   echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486 fi
3487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3488 if test "$ac_cv_search_opendir" = no; then
3489   for ac_lib in dir; do
3490     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3491     cat >conftest.$ac_ext <<_ACEOF
3492 #line $LINENO "configure"
3493 /* confdefs.h.  */
3494 _ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h.  */
3498
3499 /* Override any gcc2 internal prototype to avoid an error.  */
3500 #ifdef __cplusplus
3501 extern "C"
3502 #endif
3503 /* We use char because int might match the return type of a gcc2
3504    builtin and then its argument prototype would still apply.  */
3505 char opendir ();
3506 int
3507 main ()
3508 {
3509 opendir ();
3510   ;
3511   return 0;
3512 }
3513 _ACEOF
3514 rm -f conftest.$ac_objext conftest$ac_exeext
3515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3516   (eval $ac_link) 2>&5
3517   ac_status=$?
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); } &&
3520          { ac_try='test -s conftest$ac_exeext'
3521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522   (eval $ac_try) 2>&5
3523   ac_status=$?
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); }; }; then
3526   ac_cv_search_opendir="-l$ac_lib"
3527 break
3528 else
3529   echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 fi
3533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3534   done
3535 fi
3536 LIBS=$ac_func_search_save_LIBS
3537 fi
3538 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3539 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3540 if test "$ac_cv_search_opendir" != no; then
3541   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3542
3543 fi
3544
3545 else
3546   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3547 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3548 if test "${ac_cv_search_opendir+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   ac_func_search_save_LIBS=$LIBS
3552 ac_cv_search_opendir=no
3553 cat >conftest.$ac_ext <<_ACEOF
3554 #line $LINENO "configure"
3555 /* confdefs.h.  */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h.  */
3560
3561 /* Override any gcc2 internal prototype to avoid an error.  */
3562 #ifdef __cplusplus
3563 extern "C"
3564 #endif
3565 /* We use char because int might match the return type of a gcc2
3566    builtin and then its argument prototype would still apply.  */
3567 char opendir ();
3568 int
3569 main ()
3570 {
3571 opendir ();
3572   ;
3573   return 0;
3574 }
3575 _ACEOF
3576 rm -f conftest.$ac_objext conftest$ac_exeext
3577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3578   (eval $ac_link) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); } &&
3582          { ac_try='test -s conftest$ac_exeext'
3583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584   (eval $ac_try) 2>&5
3585   ac_status=$?
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); }; }; then
3588   ac_cv_search_opendir="none required"
3589 else
3590   echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 fi
3594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3595 if test "$ac_cv_search_opendir" = no; then
3596   for ac_lib in x; do
3597     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3598     cat >conftest.$ac_ext <<_ACEOF
3599 #line $LINENO "configure"
3600 /* confdefs.h.  */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h.  */
3605
3606 /* Override any gcc2 internal prototype to avoid an error.  */
3607 #ifdef __cplusplus
3608 extern "C"
3609 #endif
3610 /* We use char because int might match the return type of a gcc2
3611    builtin and then its argument prototype would still apply.  */
3612 char opendir ();
3613 int
3614 main ()
3615 {
3616 opendir ();
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 rm -f conftest.$ac_objext conftest$ac_exeext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623   (eval $ac_link) 2>&5
3624   ac_status=$?
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); } &&
3627          { ac_try='test -s conftest$ac_exeext'
3628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629   (eval $ac_try) 2>&5
3630   ac_status=$?
3631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632   (exit $ac_status); }; }; then
3633   ac_cv_search_opendir="-l$ac_lib"
3634 break
3635 else
3636   echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639 fi
3640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3641   done
3642 fi
3643 LIBS=$ac_func_search_save_LIBS
3644 fi
3645 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3646 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3647 if test "$ac_cv_search_opendir" != no; then
3648   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3649
3650 fi
3651
3652 fi
3653
3654 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3655 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3656 if test "${ac_cv_type_signal+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   cat >conftest.$ac_ext <<_ACEOF
3660 #line $LINENO "configure"
3661 /* confdefs.h.  */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h.  */
3666 #include <sys/types.h>
3667 #include <signal.h>
3668 #ifdef signal
3669 # undef signal
3670 #endif
3671 #ifdef __cplusplus
3672 extern "C" void (*signal (int, void (*)(int)))(int);
3673 #else
3674 void (*signal ()) ();
3675 #endif
3676
3677 int
3678 main ()
3679 {
3680 int i;
3681   ;
3682   return 0;
3683 }
3684 _ACEOF
3685 rm -f conftest.$ac_objext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687   (eval $ac_compile) 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); } &&
3691          { ac_try='test -s conftest.$ac_objext'
3692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693   (eval $ac_try) 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); }; }; then
3697   ac_cv_type_signal=void
3698 else
3699   echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 ac_cv_type_signal=int
3703 fi
3704 rm -f conftest.$ac_objext conftest.$ac_ext
3705 fi
3706 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3707 echo "${ECHO_T}$ac_cv_type_signal" >&6
3708
3709 cat >>confdefs.h <<_ACEOF
3710 #define RETSIGTYPE $ac_cv_type_signal
3711 _ACEOF
3712
3713
3714 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3725                   inttypes.h stdint.h unistd.h
3726 do
3727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3728 echo "$as_me:$LINENO: checking for $ac_header" >&5
3729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   cat >conftest.$ac_ext <<_ACEOF
3734 #line $LINENO "configure"
3735 /* confdefs.h.  */
3736 _ACEOF
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h.  */
3740 $ac_includes_default
3741
3742 #include <$ac_header>
3743 _ACEOF
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746   (eval $ac_compile) 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); } &&
3750          { ac_try='test -s conftest.$ac_objext'
3751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752   (eval $ac_try) 2>&5
3753   ac_status=$?
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); }; }; then
3756   eval "$as_ac_Header=yes"
3757 else
3758   echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 eval "$as_ac_Header=no"
3762 fi
3763 rm -f conftest.$ac_objext conftest.$ac_ext
3764 fi
3765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3768   cat >>confdefs.h <<_ACEOF
3769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3770 _ACEOF
3771
3772 fi
3773
3774 done
3775
3776
3777
3778
3779
3780
3781
3782 for ac_header in stropts.h sys/time.h string.h unistd.h sys/systeminfo.h
3783 do
3784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3786   echo "$as_me:$LINENO: checking for $ac_header" >&5
3787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 fi
3791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3793 else
3794   # Is the header compilable?
3795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3797 cat >conftest.$ac_ext <<_ACEOF
3798 #line $LINENO "configure"
3799 /* confdefs.h.  */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h.  */
3804 $ac_includes_default
3805 #include <$ac_header>
3806 _ACEOF
3807 rm -f conftest.$ac_objext
3808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3809   (eval $ac_compile) 2>&5
3810   ac_status=$?
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); } &&
3813          { ac_try='test -s conftest.$ac_objext'
3814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815   (eval $ac_try) 2>&5
3816   ac_status=$?
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); }; }; then
3819   ac_header_compiler=yes
3820 else
3821   echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 ac_header_compiler=no
3825 fi
3826 rm -f conftest.$ac_objext conftest.$ac_ext
3827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3828 echo "${ECHO_T}$ac_header_compiler" >&6
3829
3830 # Is the header present?
3831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3833 cat >conftest.$ac_ext <<_ACEOF
3834 #line $LINENO "configure"
3835 /* confdefs.h.  */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h.  */
3840 #include <$ac_header>
3841 _ACEOF
3842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3843   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3844   ac_status=$?
3845   grep -v '^ *+' conftest.er1 >conftest.err
3846   rm -f conftest.er1
3847   cat conftest.err >&5
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); } >/dev/null; then
3850   if test -s conftest.err; then
3851     ac_cpp_err=$ac_c_preproc_warn_flag
3852   else
3853     ac_cpp_err=
3854   fi
3855 else
3856   ac_cpp_err=yes
3857 fi
3858 if test -z "$ac_cpp_err"; then
3859   ac_header_preproc=yes
3860 else
3861   echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864   ac_header_preproc=no
3865 fi
3866 rm -f conftest.err conftest.$ac_ext
3867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3868 echo "${ECHO_T}$ac_header_preproc" >&6
3869
3870 # So?  What about this header?
3871 case $ac_header_compiler:$ac_header_preproc in
3872   yes:no )
3873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3877     (
3878       cat <<\_ASBOX
3879 ## ------------------------------------ ##
3880 ## Report this to bug-autoconf@gnu.org. ##
3881 ## ------------------------------------ ##
3882 _ASBOX
3883     ) |
3884       sed "s/^/$as_me: WARNING:     /" >&2
3885     ;;
3886   no:yes )
3887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3889     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3893     (
3894       cat <<\_ASBOX
3895 ## ------------------------------------ ##
3896 ## Report this to bug-autoconf@gnu.org. ##
3897 ## ------------------------------------ ##
3898 _ASBOX
3899     ) |
3900       sed "s/^/$as_me: WARNING:     /" >&2
3901     ;;
3902 esac
3903 echo "$as_me:$LINENO: checking for $ac_header" >&5
3904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   eval "$as_ac_Header=$ac_header_preproc"
3909 fi
3910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3912
3913 fi
3914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3915   cat >>confdefs.h <<_ACEOF
3916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3917 _ACEOF
3918
3919 fi
3920
3921 done
3922
3923
3924
3925 for ac_header in fcntl.h sys/fcntl.h
3926 do
3927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3929   echo "$as_me:$LINENO: checking for $ac_header" >&5
3930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 fi
3934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3936 else
3937   # Is the header compilable?
3938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3940 cat >conftest.$ac_ext <<_ACEOF
3941 #line $LINENO "configure"
3942 /* confdefs.h.  */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h.  */
3947 $ac_includes_default
3948 #include <$ac_header>
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952   (eval $ac_compile) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); } &&
3956          { ac_try='test -s conftest.$ac_objext'
3957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958   (eval $ac_try) 2>&5
3959   ac_status=$?
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); }; }; then
3962   ac_header_compiler=yes
3963 else
3964   echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3966
3967 ac_header_compiler=no
3968 fi
3969 rm -f conftest.$ac_objext conftest.$ac_ext
3970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3971 echo "${ECHO_T}$ac_header_compiler" >&6
3972
3973 # Is the header present?
3974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3976 cat >conftest.$ac_ext <<_ACEOF
3977 #line $LINENO "configure"
3978 /* confdefs.h.  */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h.  */
3983 #include <$ac_header>
3984 _ACEOF
3985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3987   ac_status=$?
3988   grep -v '^ *+' conftest.er1 >conftest.err
3989   rm -f conftest.er1
3990   cat conftest.err >&5
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); } >/dev/null; then
3993   if test -s conftest.err; then
3994     ac_cpp_err=$ac_c_preproc_warn_flag
3995   else
3996     ac_cpp_err=
3997   fi
3998 else
3999   ac_cpp_err=yes
4000 fi
4001 if test -z "$ac_cpp_err"; then
4002   ac_header_preproc=yes
4003 else
4004   echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007   ac_header_preproc=no
4008 fi
4009 rm -f conftest.err conftest.$ac_ext
4010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4011 echo "${ECHO_T}$ac_header_preproc" >&6
4012
4013 # So?  What about this header?
4014 case $ac_header_compiler:$ac_header_preproc in
4015   yes:no )
4016     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4020     (
4021       cat <<\_ASBOX
4022 ## ------------------------------------ ##
4023 ## Report this to bug-autoconf@gnu.org. ##
4024 ## ------------------------------------ ##
4025 _ASBOX
4026     ) |
4027       sed "s/^/$as_me: WARNING:     /" >&2
4028     ;;
4029   no:yes )
4030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4032     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4036     (
4037       cat <<\_ASBOX
4038 ## ------------------------------------ ##
4039 ## Report this to bug-autoconf@gnu.org. ##
4040 ## ------------------------------------ ##
4041 _ASBOX
4042     ) |
4043       sed "s/^/$as_me: WARNING:     /" >&2
4044     ;;
4045 esac
4046 echo "$as_me:$LINENO: checking for $ac_header" >&5
4047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   eval "$as_ac_Header=$ac_header_preproc"
4052 fi
4053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4055
4056 fi
4057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4058   cat >>confdefs.h <<_ACEOF
4059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4060 _ACEOF
4061  break
4062 fi
4063
4064 done
4065
4066
4067
4068 for ac_header in sys/socket.h lan/socket.h
4069 do
4070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4072   echo "$as_me:$LINENO: checking for $ac_header" >&5
4073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4075   echo $ECHO_N "(cached) $ECHO_C" >&6
4076 fi
4077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4079 else
4080   # Is the header compilable?
4081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4083 cat >conftest.$ac_ext <<_ACEOF
4084 #line $LINENO "configure"
4085 /* confdefs.h.  */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h.  */
4090 $ac_includes_default
4091 #include <$ac_header>
4092 _ACEOF
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095   (eval $ac_compile) 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); } &&
4099          { ac_try='test -s conftest.$ac_objext'
4100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101   (eval $ac_try) 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }; }; then
4105   ac_header_compiler=yes
4106 else
4107   echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4109
4110 ac_header_compiler=no
4111 fi
4112 rm -f conftest.$ac_objext conftest.$ac_ext
4113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4114 echo "${ECHO_T}$ac_header_compiler" >&6
4115
4116 # Is the header present?
4117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4119 cat >conftest.$ac_ext <<_ACEOF
4120 #line $LINENO "configure"
4121 /* confdefs.h.  */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h.  */
4126 #include <$ac_header>
4127 _ACEOF
4128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4130   ac_status=$?
4131   grep -v '^ *+' conftest.er1 >conftest.err
4132   rm -f conftest.er1
4133   cat conftest.err >&5
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); } >/dev/null; then
4136   if test -s conftest.err; then
4137     ac_cpp_err=$ac_c_preproc_warn_flag
4138   else
4139     ac_cpp_err=
4140   fi
4141 else
4142   ac_cpp_err=yes
4143 fi
4144 if test -z "$ac_cpp_err"; then
4145   ac_header_preproc=yes
4146 else
4147   echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150   ac_header_preproc=no
4151 fi
4152 rm -f conftest.err conftest.$ac_ext
4153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4154 echo "${ECHO_T}$ac_header_preproc" >&6
4155
4156 # So?  What about this header?
4157 case $ac_header_compiler:$ac_header_preproc in
4158   yes:no )
4159     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4163     (
4164       cat <<\_ASBOX
4165 ## ------------------------------------ ##
4166 ## Report this to bug-autoconf@gnu.org. ##
4167 ## ------------------------------------ ##
4168 _ASBOX
4169     ) |
4170       sed "s/^/$as_me: WARNING:     /" >&2
4171     ;;
4172   no:yes )
4173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4175     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4179     (
4180       cat <<\_ASBOX
4181 ## ------------------------------------ ##
4182 ## Report this to bug-autoconf@gnu.org. ##
4183 ## ------------------------------------ ##
4184 _ASBOX
4185     ) |
4186       sed "s/^/$as_me: WARNING:     /" >&2
4187     ;;
4188 esac
4189 echo "$as_me:$LINENO: checking for $ac_header" >&5
4190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4192   echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194   eval "$as_ac_Header=$ac_header_preproc"
4195 fi
4196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4198
4199 fi
4200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4201   cat >>confdefs.h <<_ACEOF
4202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4203 _ACEOF
4204  break
4205 fi
4206
4207 done
4208
4209 if test "${ac_cv_header_stddef_h+set}" = set; then
4210   echo "$as_me:$LINENO: checking for stddef.h" >&5
4211 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
4212 if test "${ac_cv_header_stddef_h+set}" = set; then
4213   echo $ECHO_N "(cached) $ECHO_C" >&6
4214 fi
4215 echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
4216 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
4217 else
4218   # Is the header compilable?
4219 echo "$as_me:$LINENO: checking stddef.h usability" >&5
4220 echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
4221 cat >conftest.$ac_ext <<_ACEOF
4222 #line $LINENO "configure"
4223 /* confdefs.h.  */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h.  */
4228 $ac_includes_default
4229 #include <stddef.h>
4230 _ACEOF
4231 rm -f conftest.$ac_objext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233   (eval $ac_compile) 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); } &&
4237          { ac_try='test -s conftest.$ac_objext'
4238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239   (eval $ac_try) 2>&5
4240   ac_status=$?
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); }; }; then
4243   ac_header_compiler=yes
4244 else
4245   echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 ac_header_compiler=no
4249 fi
4250 rm -f conftest.$ac_objext conftest.$ac_ext
4251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4252 echo "${ECHO_T}$ac_header_compiler" >&6
4253
4254 # Is the header present?
4255 echo "$as_me:$LINENO: checking stddef.h presence" >&5
4256 echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
4257 cat >conftest.$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4259 /* confdefs.h.  */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h.  */
4264 #include <stddef.h>
4265 _ACEOF
4266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4267   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4268   ac_status=$?
4269   grep -v '^ *+' conftest.er1 >conftest.err
4270   rm -f conftest.er1
4271   cat conftest.err >&5
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); } >/dev/null; then
4274   if test -s conftest.err; then
4275     ac_cpp_err=$ac_c_preproc_warn_flag
4276   else
4277     ac_cpp_err=
4278   fi
4279 else
4280   ac_cpp_err=yes
4281 fi
4282 if test -z "$ac_cpp_err"; then
4283   ac_header_preproc=yes
4284 else
4285   echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288   ac_header_preproc=no
4289 fi
4290 rm -f conftest.err conftest.$ac_ext
4291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4292 echo "${ECHO_T}$ac_header_preproc" >&6
4293
4294 # So?  What about this header?
4295 case $ac_header_compiler:$ac_header_preproc in
4296   yes:no )
4297     { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
4298 echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4299     { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
4300 echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
4301     (
4302       cat <<\_ASBOX
4303 ## ------------------------------------ ##
4304 ## Report this to bug-autoconf@gnu.org. ##
4305 ## ------------------------------------ ##
4306 _ASBOX
4307     ) |
4308       sed "s/^/$as_me: WARNING:     /" >&2
4309     ;;
4310   no:yes )
4311     { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
4312 echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
4313     { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
4314 echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
4315     { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
4316 echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
4317     (
4318       cat <<\_ASBOX
4319 ## ------------------------------------ ##
4320 ## Report this to bug-autoconf@gnu.org. ##
4321 ## ------------------------------------ ##
4322 _ASBOX
4323     ) |
4324       sed "s/^/$as_me: WARNING:     /" >&2
4325     ;;
4326 esac
4327 echo "$as_me:$LINENO: checking for stddef.h" >&5
4328 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
4329 if test "${ac_cv_header_stddef_h+set}" = set; then
4330   echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332   ac_cv_header_stddef_h=$ac_header_preproc
4333 fi
4334 echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
4335 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
4336
4337 fi
4338 if test $ac_cv_header_stddef_h = yes; then
4339   :
4340 else
4341   cat >>confdefs.h <<\_ACEOF
4342 #define X_WCHAR 1
4343 _ACEOF
4344
4345 fi
4346
4347
4348
4349
4350
4351
4352
4353 for ac_func in _getpty grantpt setitimer usleep
4354 do
4355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4356 echo "$as_me:$LINENO: checking for $ac_func" >&5
4357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4358 if eval "test \"\${$as_ac_var+set}\" = set"; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   cat >conftest.$ac_ext <<_ACEOF
4362 #line $LINENO "configure"
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368 /* System header to define __stub macros and hopefully few prototypes,
4369     which can conflict with char $ac_func (); below.
4370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4371     <limits.h> exists even on freestanding compilers.  */
4372 #ifdef __STDC__
4373 # include <limits.h>
4374 #else
4375 # include <assert.h>
4376 #endif
4377 /* Override any gcc2 internal prototype to avoid an error.  */
4378 #ifdef __cplusplus
4379 extern "C"
4380 {
4381 #endif
4382 /* We use char because int might match the return type of a gcc2
4383    builtin and then its argument prototype would still apply.  */
4384 char $ac_func ();
4385 /* The GNU C library defines this for functions which it implements
4386     to always fail with ENOSYS.  Some functions are actually named
4387     something starting with __ and the normal name is an alias.  */
4388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4389 choke me
4390 #else
4391 char (*f) () = $ac_func;
4392 #endif
4393 #ifdef __cplusplus
4394 }
4395 #endif
4396
4397 int
4398 main ()
4399 {
4400 return f != $ac_func;
4401   ;
4402   return 0;
4403 }
4404 _ACEOF
4405 rm -f conftest.$ac_objext conftest$ac_exeext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4407   (eval $ac_link) 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); } &&
4411          { ac_try='test -s conftest$ac_exeext'
4412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413   (eval $ac_try) 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; }; then
4417   eval "$as_ac_var=yes"
4418 else
4419   echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4421
4422 eval "$as_ac_var=no"
4423 fi
4424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4425 fi
4426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4428 if test `eval echo '${'$as_ac_var'}'` = yes; then
4429   cat >>confdefs.h <<_ACEOF
4430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4431 _ACEOF
4432
4433 fi
4434 done
4435
4436
4437
4438 for ac_func in gettimeofday ftime
4439 do
4440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4441 echo "$as_me:$LINENO: checking for $ac_func" >&5
4442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4443 if eval "test \"\${$as_ac_var+set}\" = set"; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   cat >conftest.$ac_ext <<_ACEOF
4447 #line $LINENO "configure"
4448 /* confdefs.h.  */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h.  */
4453 /* System header to define __stub macros and hopefully few prototypes,
4454     which can conflict with char $ac_func (); below.
4455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4456     <limits.h> exists even on freestanding compilers.  */
4457 #ifdef __STDC__
4458 # include <limits.h>
4459 #else
4460 # include <assert.h>
4461 #endif
4462 /* Override any gcc2 internal prototype to avoid an error.  */
4463 #ifdef __cplusplus
4464 extern "C"
4465 {
4466 #endif
4467 /* We use char because int might match the return type of a gcc2
4468    builtin and then its argument prototype would still apply.  */
4469 char $ac_func ();
4470 /* The GNU C library defines this for functions which it implements
4471     to always fail with ENOSYS.  Some functions are actually named
4472     something starting with __ and the normal name is an alias.  */
4473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4474 choke me
4475 #else
4476 char (*f) () = $ac_func;
4477 #endif
4478 #ifdef __cplusplus
4479 }
4480 #endif
4481
4482 int
4483 main ()
4484 {
4485 return f != $ac_func;
4486   ;
4487   return 0;
4488 }
4489 _ACEOF
4490 rm -f conftest.$ac_objext conftest$ac_exeext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492   (eval $ac_link) 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } &&
4496          { ac_try='test -s conftest$ac_exeext'
4497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498   (eval $ac_try) 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; }; then
4502   eval "$as_ac_var=yes"
4503 else
4504   echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507 eval "$as_ac_var=no"
4508 fi
4509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4510 fi
4511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4513 if test `eval echo '${'$as_ac_var'}'` = yes; then
4514   cat >>confdefs.h <<_ACEOF
4515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4516 _ACEOF
4517  break
4518 fi
4519 done
4520
4521
4522
4523 for ac_func in random rand48
4524 do
4525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4526 echo "$as_me:$LINENO: checking for $ac_func" >&5
4527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_var+set}\" = set"; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   cat >conftest.$ac_ext <<_ACEOF
4532 #line $LINENO "configure"
4533 /* confdefs.h.  */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h.  */
4538 /* System header to define __stub macros and hopefully few prototypes,
4539     which can conflict with char $ac_func (); below.
4540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4541     <limits.h> exists even on freestanding compilers.  */
4542 #ifdef __STDC__
4543 # include <limits.h>
4544 #else
4545 # include <assert.h>
4546 #endif
4547 /* Override any gcc2 internal prototype to avoid an error.  */
4548 #ifdef __cplusplus
4549 extern "C"
4550 {
4551 #endif
4552 /* We use char because int might match the return type of a gcc2
4553    builtin and then its argument prototype would still apply.  */
4554 char $ac_func ();
4555 /* The GNU C library defines this for functions which it implements
4556     to always fail with ENOSYS.  Some functions are actually named
4557     something starting with __ and the normal name is an alias.  */
4558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4559 choke me
4560 #else
4561 char (*f) () = $ac_func;
4562 #endif
4563 #ifdef __cplusplus
4564 }
4565 #endif
4566
4567 int
4568 main ()
4569 {
4570 return f != $ac_func;
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 rm -f conftest.$ac_objext conftest$ac_exeext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4577   (eval $ac_link) 2>&5
4578   ac_status=$?
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); } &&
4581          { ac_try='test -s conftest$ac_exeext'
4582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583   (eval $ac_try) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }; }; then
4587   eval "$as_ac_var=yes"
4588 else
4589   echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4591
4592 eval "$as_ac_var=no"
4593 fi
4594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4595 fi
4596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4598 if test `eval echo '${'$as_ac_var'}'` = yes; then
4599   cat >>confdefs.h <<_ACEOF
4600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4601 _ACEOF
4602  break
4603 fi
4604 done
4605
4606
4607
4608 for ac_func in gethostname sysinfo
4609 do
4610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4611 echo "$as_me:$LINENO: checking for $ac_func" >&5
4612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4613 if eval "test \"\${$as_ac_var+set}\" = set"; then
4614   echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616   cat >conftest.$ac_ext <<_ACEOF
4617 #line $LINENO "configure"
4618 /* confdefs.h.  */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h.  */
4623 /* System header to define __stub macros and hopefully few prototypes,
4624     which can conflict with char $ac_func (); below.
4625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4626     <limits.h> exists even on freestanding compilers.  */
4627 #ifdef __STDC__
4628 # include <limits.h>
4629 #else
4630 # include <assert.h>
4631 #endif
4632 /* Override any gcc2 internal prototype to avoid an error.  */
4633 #ifdef __cplusplus
4634 extern "C"
4635 {
4636 #endif
4637 /* We use char because int might match the return type of a gcc2
4638    builtin and then its argument prototype would still apply.  */
4639 char $ac_func ();
4640 /* The GNU C library defines this for functions which it implements
4641     to always fail with ENOSYS.  Some functions are actually named
4642     something starting with __ and the normal name is an alias.  */
4643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4644 choke me
4645 #else
4646 char (*f) () = $ac_func;
4647 #endif
4648 #ifdef __cplusplus
4649 }
4650 #endif
4651
4652 int
4653 main ()
4654 {
4655 return f != $ac_func;
4656   ;
4657   return 0;
4658 }
4659 _ACEOF
4660 rm -f conftest.$ac_objext conftest$ac_exeext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4662   (eval $ac_link) 2>&5
4663   ac_status=$?
4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); } &&
4666          { ac_try='test -s conftest$ac_exeext'
4667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668   (eval $ac_try) 2>&5
4669   ac_status=$?
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); }; }; then
4672   eval "$as_ac_var=yes"
4673 else
4674   echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4676
4677 eval "$as_ac_var=no"
4678 fi
4679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4680 fi
4681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4683 if test `eval echo '${'$as_ac_var'}'` = yes; then
4684   cat >>confdefs.h <<_ACEOF
4685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4686 _ACEOF
4687  break
4688 fi
4689 done
4690
4691 echo "$as_me:$LINENO: checking for setlocale" >&5
4692 echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
4693 if test "${ac_cv_func_setlocale+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   cat >conftest.$ac_ext <<_ACEOF
4697 #line $LINENO "configure"
4698 /* confdefs.h.  */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h.  */
4703 /* System header to define __stub macros and hopefully few prototypes,
4704     which can conflict with char setlocale (); below.
4705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4706     <limits.h> exists even on freestanding compilers.  */
4707 #ifdef __STDC__
4708 # include <limits.h>
4709 #else
4710 # include <assert.h>
4711 #endif
4712 /* Override any gcc2 internal prototype to avoid an error.  */
4713 #ifdef __cplusplus
4714 extern "C"
4715 {
4716 #endif
4717 /* We use char because int might match the return type of a gcc2
4718    builtin and then its argument prototype would still apply.  */
4719 char setlocale ();
4720 /* The GNU C library defines this for functions which it implements
4721     to always fail with ENOSYS.  Some functions are actually named
4722     something starting with __ and the normal name is an alias.  */
4723 #if defined (__stub_setlocale) || defined (__stub___setlocale)
4724 choke me
4725 #else
4726 char (*f) () = setlocale;
4727 #endif
4728 #ifdef __cplusplus
4729 }
4730 #endif
4731
4732 int
4733 main ()
4734 {
4735 return f != setlocale;
4736   ;
4737   return 0;
4738 }
4739 _ACEOF
4740 rm -f conftest.$ac_objext conftest$ac_exeext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4742   (eval $ac_link) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); } &&
4746          { ac_try='test -s conftest$ac_exeext'
4747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748   (eval $ac_try) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; }; then
4752   ac_cv_func_setlocale=yes
4753 else
4754   echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757 ac_cv_func_setlocale=no
4758 fi
4759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4760 fi
4761 echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
4762 echo "${ECHO_T}$ac_cv_func_setlocale" >&6
4763 if test $ac_cv_func_setlocale = yes; then
4764   :
4765 else
4766
4767 echo "$as_me:$LINENO: checking for setlocale in -li" >&5
4768 echo $ECHO_N "checking for setlocale in -li... $ECHO_C" >&6
4769 if test "${ac_cv_lib_i_setlocale+set}" = set; then
4770   echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772   ac_check_lib_save_LIBS=$LIBS
4773 LIBS="-li  $LIBS"
4774 cat >conftest.$ac_ext <<_ACEOF
4775 #line $LINENO "configure"
4776 /* confdefs.h.  */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h.  */
4781
4782 /* Override any gcc2 internal prototype to avoid an error.  */
4783 #ifdef __cplusplus
4784 extern "C"
4785 #endif
4786 /* We use char because int might match the return type of a gcc2
4787    builtin and then its argument prototype would still apply.  */
4788 char setlocale ();
4789 int
4790 main ()
4791 {
4792 setlocale ();
4793   ;
4794   return 0;
4795 }
4796 _ACEOF
4797 rm -f conftest.$ac_objext conftest$ac_exeext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4799   (eval $ac_link) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); } &&
4803          { ac_try='test -s conftest$ac_exeext'
4804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805   (eval $ac_try) 2>&5
4806   ac_status=$?
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); }; }; then
4809   ac_cv_lib_i_setlocale=yes
4810 else
4811   echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 ac_cv_lib_i_setlocale=no
4815 fi
4816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4817 LIBS=$ac_check_lib_save_LIBS
4818 fi
4819 echo "$as_me:$LINENO: result: $ac_cv_lib_i_setlocale" >&5
4820 echo "${ECHO_T}$ac_cv_lib_i_setlocale" >&6
4821 if test $ac_cv_lib_i_setlocale = yes; then
4822   cat >>confdefs.h <<_ACEOF
4823 #define HAVE_LIBI 1
4824 _ACEOF
4825
4826   LIBS="-li $LIBS"
4827
4828 else
4829   cat >>confdefs.h <<\_ACEOF
4830 #define X_LOCALE 1
4831 _ACEOF
4832
4833 fi
4834
4835 fi
4836
4837
4838
4839 echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5
4840 echo $ECHO_N "checking for getpseudotty in -lseq... $ECHO_C" >&6
4841 if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then
4842   echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844   ac_check_lib_save_LIBS=$LIBS
4845 LIBS="-lseq  $LIBS"
4846 cat >conftest.$ac_ext <<_ACEOF
4847 #line $LINENO "configure"
4848 /* confdefs.h.  */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h.  */
4853
4854 /* Override any gcc2 internal prototype to avoid an error.  */
4855 #ifdef __cplusplus
4856 extern "C"
4857 #endif
4858 /* We use char because int might match the return type of a gcc2
4859    builtin and then its argument prototype would still apply.  */
4860 char getpseudotty ();
4861 int
4862 main ()
4863 {
4864 getpseudotty ();
4865   ;
4866   return 0;
4867 }
4868 _ACEOF
4869 rm -f conftest.$ac_objext conftest$ac_exeext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4871   (eval $ac_link) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); } &&
4875          { ac_try='test -s conftest$ac_exeext'
4876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877   (eval $ac_try) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; }; then
4881   ac_cv_lib_seq_getpseudotty=yes
4882 else
4883   echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 ac_cv_lib_seq_getpseudotty=no
4887 fi
4888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4889 LIBS=$ac_check_lib_save_LIBS
4890 fi
4891 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5
4892 echo "${ECHO_T}$ac_cv_lib_seq_getpseudotty" >&6
4893 if test $ac_cv_lib_seq_getpseudotty = yes; then
4894   cat >>confdefs.h <<_ACEOF
4895 #define HAVE_LIBSEQ 1
4896 _ACEOF
4897
4898   LIBS="-lseq $LIBS"
4899
4900 fi
4901
4902
4903 echo "$as_me:$LINENO: checking for X" >&5
4904 echo $ECHO_N "checking for X... $ECHO_C" >&6
4905
4906
4907 # Check whether --with-x or --without-x was given.
4908 if test "${with_x+set}" = set; then
4909   withval="$with_x"
4910
4911 fi;
4912 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4913 if test "x$with_x" = xno; then
4914   # The user explicitly disabled X.
4915   have_x=disabled
4916 else
4917   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4918     # Both variables are already set.
4919     have_x=yes
4920   else
4921     if test "${ac_cv_have_x+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924   # One or both of the vars are not set, and there is no cached value.
4925 ac_x_includes=no ac_x_libraries=no
4926 rm -fr conftest.dir
4927 if mkdir conftest.dir; then
4928   cd conftest.dir
4929   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4930   cat >Imakefile <<'_ACEOF'
4931 acfindx:
4932         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4933 _ACEOF
4934   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4935     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4936     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4937     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4938     for ac_extension in a so sl; do
4939       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4940          test -f $ac_im_libdir/libX11.$ac_extension; then
4941         ac_im_usrlibdir=$ac_im_libdir; break
4942       fi
4943     done
4944     # Screen out bogus values from the imake configuration.  They are
4945     # bogus both because they are the default anyway, and because
4946     # using them would break gcc on systems where it needs fixed includes.
4947     case $ac_im_incroot in
4948         /usr/include) ;;
4949         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4950     esac
4951     case $ac_im_usrlibdir in
4952         /usr/lib | /lib) ;;
4953         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4954     esac
4955   fi
4956   cd ..
4957   rm -fr conftest.dir
4958 fi
4959
4960 # Standard set of common directories for X headers.
4961 # Check X11 before X11Rn because it is often a symlink to the current release.
4962 ac_x_header_dirs='
4963 /usr/X11/include
4964 /usr/X11R6/include
4965 /usr/X11R5/include
4966 /usr/X11R4/include
4967
4968 /usr/include/X11
4969 /usr/include/X11R6
4970 /usr/include/X11R5
4971 /usr/include/X11R4
4972
4973 /usr/local/X11/include
4974 /usr/local/X11R6/include
4975 /usr/local/X11R5/include
4976 /usr/local/X11R4/include
4977
4978 /usr/local/include/X11
4979 /usr/local/include/X11R6
4980 /usr/local/include/X11R5
4981 /usr/local/include/X11R4
4982
4983 /usr/X386/include
4984 /usr/x386/include
4985 /usr/XFree86/include/X11
4986
4987 /usr/include
4988 /usr/local/include
4989 /usr/unsupported/include
4990 /usr/athena/include
4991 /usr/local/x11r5/include
4992 /usr/lpp/Xamples/include
4993
4994 /usr/openwin/include
4995 /usr/openwin/share/include'
4996
4997 if test "$ac_x_includes" = no; then
4998   # Guess where to find include files, by looking for Intrinsic.h.
4999   # First, try using that file with no special directory specified.
5000   cat >conftest.$ac_ext <<_ACEOF
5001 #line $LINENO "configure"
5002 /* confdefs.h.  */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h.  */
5007 #include <X11/Intrinsic.h>
5008 _ACEOF
5009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5011   ac_status=$?
5012   grep -v '^ *+' conftest.er1 >conftest.err
5013   rm -f conftest.er1
5014   cat conftest.err >&5
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } >/dev/null; then
5017   if test -s conftest.err; then
5018     ac_cpp_err=$ac_c_preproc_warn_flag
5019   else
5020     ac_cpp_err=
5021   fi
5022 else
5023   ac_cpp_err=yes
5024 fi
5025 if test -z "$ac_cpp_err"; then
5026   # We can compile using X headers with no special include directory.
5027 ac_x_includes=
5028 else
5029   echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5031
5032   for ac_dir in $ac_x_header_dirs; do
5033   if test -r "$ac_dir/X11/Intrinsic.h"; then
5034     ac_x_includes=$ac_dir
5035     break
5036   fi
5037 done
5038 fi
5039 rm -f conftest.err conftest.$ac_ext
5040 fi # $ac_x_includes = no
5041
5042 if test "$ac_x_libraries" = no; then
5043   # Check for the libraries.
5044   # See if we find them without any special options.
5045   # Don't add to $LIBS permanently.
5046   ac_save_LIBS=$LIBS
5047   LIBS="-lXt $LIBS"
5048   cat >conftest.$ac_ext <<_ACEOF
5049 #line $LINENO "configure"
5050 /* confdefs.h.  */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h.  */
5055 #include <X11/Intrinsic.h>
5056 int
5057 main ()
5058 {
5059 XtMalloc (0)
5060   ;
5061   return 0;
5062 }
5063 _ACEOF
5064 rm -f conftest.$ac_objext conftest$ac_exeext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5066   (eval $ac_link) 2>&5
5067   ac_status=$?
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } &&
5070          { ac_try='test -s conftest$ac_exeext'
5071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072   (eval $ac_try) 2>&5
5073   ac_status=$?
5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); }; }; then
5076   LIBS=$ac_save_LIBS
5077 # We can link X programs with no special library path.
5078 ac_x_libraries=
5079 else
5080   echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5082
5083 LIBS=$ac_save_LIBS
5084 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5085 do
5086   # Don't even attempt the hair of trying to link an X program!
5087   for ac_extension in a so sl; do
5088     if test -r $ac_dir/libXt.$ac_extension; then
5089       ac_x_libraries=$ac_dir
5090       break 2
5091     fi
5092   done
5093 done
5094 fi
5095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5096 fi # $ac_x_libraries = no
5097
5098 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5099   # Didn't find X anywhere.  Cache the known absence of X.
5100   ac_cv_have_x="have_x=no"
5101 else
5102   # Record where we found X for the cache.
5103   ac_cv_have_x="have_x=yes \
5104                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5105 fi
5106 fi
5107
5108   fi
5109   eval "$ac_cv_have_x"
5110 fi # $with_x != no
5111
5112 if test "$have_x" != yes; then
5113   echo "$as_me:$LINENO: result: $have_x" >&5
5114 echo "${ECHO_T}$have_x" >&6
5115   no_x=yes
5116 else
5117   # If each of the values was on the command line, it overrides each guess.
5118   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5119   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5120   # Update the cache value to reflect the command line values.
5121   ac_cv_have_x="have_x=yes \
5122                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5123   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5124 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5125 fi
5126
5127 if test "$no_x" = yes; then
5128   # Not all programs may use this symbol, but it does not hurt to define it.
5129
5130 cat >>confdefs.h <<\_ACEOF
5131 #define X_DISPLAY_MISSING 1
5132 _ACEOF
5133
5134   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5135 else
5136   if test -n "$x_includes"; then
5137     X_CFLAGS="$X_CFLAGS -I$x_includes"
5138   fi
5139
5140   # It would also be nice to do this for all -L options, not just this one.
5141   if test -n "$x_libraries"; then
5142     X_LIBS="$X_LIBS -L$x_libraries"
5143     # For Solaris; some versions of Sun CC require a space after -R and
5144     # others require no space.  Words are not sufficient . . . .
5145     case `(uname -sr) 2>/dev/null` in
5146     "SunOS 5"*)
5147       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5148 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5149       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5150       cat >conftest.$ac_ext <<_ACEOF
5151 #line $LINENO "configure"
5152 /* confdefs.h.  */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h.  */
5157
5158 int
5159 main ()
5160 {
5161
5162   ;
5163   return 0;
5164 }
5165 _ACEOF
5166 rm -f conftest.$ac_objext conftest$ac_exeext
5167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5168   (eval $ac_link) 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); } &&
5172          { ac_try='test -s conftest$ac_exeext'
5173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174   (eval $ac_try) 2>&5
5175   ac_status=$?
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); }; }; then
5178   ac_R_nospace=yes
5179 else
5180   echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5182
5183 ac_R_nospace=no
5184 fi
5185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5186       if test $ac_R_nospace = yes; then
5187         echo "$as_me:$LINENO: result: no" >&5
5188 echo "${ECHO_T}no" >&6
5189         X_LIBS="$X_LIBS -R$x_libraries"
5190       else
5191         LIBS="$ac_xsave_LIBS -R $x_libraries"
5192         cat >conftest.$ac_ext <<_ACEOF
5193 #line $LINENO "configure"
5194 /* confdefs.h.  */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h.  */
5199
5200 int
5201 main ()
5202 {
5203
5204   ;
5205   return 0;
5206 }
5207 _ACEOF
5208 rm -f conftest.$ac_objext conftest$ac_exeext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5210   (eval $ac_link) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); } &&
5214          { ac_try='test -s conftest$ac_exeext'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; }; then
5220   ac_R_space=yes
5221 else
5222   echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5224
5225 ac_R_space=no
5226 fi
5227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5228         if test $ac_R_space = yes; then
5229           echo "$as_me:$LINENO: result: yes" >&5
5230 echo "${ECHO_T}yes" >&6
5231           X_LIBS="$X_LIBS -R $x_libraries"
5232         else
5233           echo "$as_me:$LINENO: result: neither works" >&5
5234 echo "${ECHO_T}neither works" >&6
5235         fi
5236       fi
5237       LIBS=$ac_xsave_LIBS
5238     esac
5239   fi
5240
5241   # Check for system-dependent libraries X programs must link with.
5242   # Do this before checking for the system-independent R6 libraries
5243   # (-lICE), since we may need -lsocket or whatever for X linking.
5244
5245   if test "$ISC" = yes; then
5246     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5247   else
5248     # Martyn Johnson says this is needed for Ultrix, if the X
5249     # libraries were built with DECnet support.  And Karl Berry says
5250     # the Alpha needs dnet_stub (dnet does not exist).
5251     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5252     cat >conftest.$ac_ext <<_ACEOF
5253 #line $LINENO "configure"
5254 /* confdefs.h.  */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h.  */
5259
5260 /* Override any gcc2 internal prototype to avoid an error.  */
5261 #ifdef __cplusplus
5262 extern "C"
5263 #endif
5264 /* We use char because int might match the return type of a gcc2
5265    builtin and then its argument prototype would still apply.  */
5266 char XOpenDisplay ();
5267 int
5268 main ()
5269 {
5270 XOpenDisplay ();
5271   ;
5272   return 0;
5273 }
5274 _ACEOF
5275 rm -f conftest.$ac_objext conftest$ac_exeext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5277   (eval $ac_link) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); } &&
5281          { ac_try='test -s conftest$ac_exeext'
5282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283   (eval $ac_try) 2>&5
5284   ac_status=$?
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); }; }; then
5287   :
5288 else
5289   echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5293 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5294 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5295   echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297   ac_check_lib_save_LIBS=$LIBS
5298 LIBS="-ldnet  $LIBS"
5299 cat >conftest.$ac_ext <<_ACEOF
5300 #line $LINENO "configure"
5301 /* confdefs.h.  */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h.  */
5306
5307 /* Override any gcc2 internal prototype to avoid an error.  */
5308 #ifdef __cplusplus
5309 extern "C"
5310 #endif
5311 /* We use char because int might match the return type of a gcc2
5312    builtin and then its argument prototype would still apply.  */
5313 char dnet_ntoa ();
5314 int
5315 main ()
5316 {
5317 dnet_ntoa ();
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 rm -f conftest.$ac_objext conftest$ac_exeext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5324   (eval $ac_link) 2>&5
5325   ac_status=$?
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); } &&
5328          { ac_try='test -s conftest$ac_exeext'
5329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330   (eval $ac_try) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); }; }; then
5334   ac_cv_lib_dnet_dnet_ntoa=yes
5335 else
5336   echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 ac_cv_lib_dnet_dnet_ntoa=no
5340 fi
5341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5342 LIBS=$ac_check_lib_save_LIBS
5343 fi
5344 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5345 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5346 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5347   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5348 fi
5349
5350     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5351       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5352 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5353 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5354   echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356   ac_check_lib_save_LIBS=$LIBS
5357 LIBS="-ldnet_stub  $LIBS"
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5360 /* confdefs.h.  */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h.  */
5365
5366 /* Override any gcc2 internal prototype to avoid an error.  */
5367 #ifdef __cplusplus
5368 extern "C"
5369 #endif
5370 /* We use char because int might match the return type of a gcc2
5371    builtin and then its argument prototype would still apply.  */
5372 char dnet_ntoa ();
5373 int
5374 main ()
5375 {
5376 dnet_ntoa ();
5377   ;
5378   return 0;
5379 }
5380 _ACEOF
5381 rm -f conftest.$ac_objext conftest$ac_exeext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383   (eval $ac_link) 2>&5
5384   ac_status=$?
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); } &&
5387          { ac_try='test -s conftest$ac_exeext'
5388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389   (eval $ac_try) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); }; }; then
5393   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5394 else
5395   echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 ac_cv_lib_dnet_stub_dnet_ntoa=no
5399 fi
5400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_check_lib_save_LIBS
5402 fi
5403 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5404 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5405 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5406   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5407 fi
5408
5409     fi
5410 fi
5411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5412     LIBS="$ac_xsave_LIBS"
5413
5414     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5415     # to get the SysV transport functions.
5416     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5417     # needs -lnsl.
5418     # The nsl library prevents programs from opening the X display
5419     # on Irix 5.2, according to T.E. Dickey.
5420     # The functions gethostbyname, getservbyname, and inet_addr are
5421     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5422     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5423 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5424 if test "${ac_cv_func_gethostbyname+set}" = set; then
5425   echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427   cat >conftest.$ac_ext <<_ACEOF
5428 #line $LINENO "configure"
5429 /* confdefs.h.  */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h.  */
5434 /* System header to define __stub macros and hopefully few prototypes,
5435     which can conflict with char gethostbyname (); below.
5436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5437     <limits.h> exists even on freestanding compilers.  */
5438 #ifdef __STDC__
5439 # include <limits.h>
5440 #else
5441 # include <assert.h>
5442 #endif
5443 /* Override any gcc2 internal prototype to avoid an error.  */
5444 #ifdef __cplusplus
5445 extern "C"
5446 {
5447 #endif
5448 /* We use char because int might match the return type of a gcc2
5449    builtin and then its argument prototype would still apply.  */
5450 char gethostbyname ();
5451 /* The GNU C library defines this for functions which it implements
5452     to always fail with ENOSYS.  Some functions are actually named
5453     something starting with __ and the normal name is an alias.  */
5454 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5455 choke me
5456 #else
5457 char (*f) () = gethostbyname;
5458 #endif
5459 #ifdef __cplusplus
5460 }
5461 #endif
5462
5463 int
5464 main ()
5465 {
5466 return f != gethostbyname;
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext conftest$ac_exeext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473   (eval $ac_link) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } &&
5477          { ac_try='test -s conftest$ac_exeext'
5478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479   (eval $ac_try) 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); }; }; then
5483   ac_cv_func_gethostbyname=yes
5484 else
5485   echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5487
5488 ac_cv_func_gethostbyname=no
5489 fi
5490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5491 fi
5492 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5493 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5494
5495     if test $ac_cv_func_gethostbyname = no; then
5496       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5497 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5498 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5499   echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501   ac_check_lib_save_LIBS=$LIBS
5502 LIBS="-lnsl  $LIBS"
5503 cat >conftest.$ac_ext <<_ACEOF
5504 #line $LINENO "configure"
5505 /* confdefs.h.  */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h.  */
5510
5511 /* Override any gcc2 internal prototype to avoid an error.  */
5512 #ifdef __cplusplus
5513 extern "C"
5514 #endif
5515 /* We use char because int might match the return type of a gcc2
5516    builtin and then its argument prototype would still apply.  */
5517 char gethostbyname ();
5518 int
5519 main ()
5520 {
5521 gethostbyname ();
5522   ;
5523   return 0;
5524 }
5525 _ACEOF
5526 rm -f conftest.$ac_objext conftest$ac_exeext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528   (eval $ac_link) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } &&
5532          { ac_try='test -s conftest$ac_exeext'
5533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534   (eval $ac_try) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); }; }; then
5538   ac_cv_lib_nsl_gethostbyname=yes
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543 ac_cv_lib_nsl_gethostbyname=no
5544 fi
5545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5546 LIBS=$ac_check_lib_save_LIBS
5547 fi
5548 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5549 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5550 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5551   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5552 fi
5553
5554       if test $ac_cv_lib_nsl_gethostbyname = no; then
5555         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5556 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5557 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5558   echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560   ac_check_lib_save_LIBS=$LIBS
5561 LIBS="-lbsd  $LIBS"
5562 cat >conftest.$ac_ext <<_ACEOF
5563 #line $LINENO "configure"
5564 /* confdefs.h.  */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h.  */
5569
5570 /* Override any gcc2 internal prototype to avoid an error.  */
5571 #ifdef __cplusplus
5572 extern "C"
5573 #endif
5574 /* We use char because int might match the return type of a gcc2
5575    builtin and then its argument prototype would still apply.  */
5576 char gethostbyname ();
5577 int
5578 main ()
5579 {
5580 gethostbyname ();
5581   ;
5582   return 0;
5583 }
5584 _ACEOF
5585 rm -f conftest.$ac_objext conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587   (eval $ac_link) 2>&5
5588   ac_status=$?
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); } &&
5591          { ac_try='test -s conftest$ac_exeext'
5592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593   (eval $ac_try) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); }; }; then
5597   ac_cv_lib_bsd_gethostbyname=yes
5598 else
5599   echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5601
5602 ac_cv_lib_bsd_gethostbyname=no
5603 fi
5604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5605 LIBS=$ac_check_lib_save_LIBS
5606 fi
5607 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5608 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5609 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5610   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5611 fi
5612
5613       fi
5614     fi
5615
5616     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5617     # socket/setsockopt and other routines are undefined under SCO ODT
5618     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5619     # on later versions), says Simon Leinen: it contains gethostby*
5620     # variants that don't use the name server (or something).  -lsocket
5621     # must be given before -lnsl if both are needed.  We assume that
5622     # if connect needs -lnsl, so does gethostbyname.
5623     echo "$as_me:$LINENO: checking for connect" >&5
5624 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5625 if test "${ac_cv_func_connect+set}" = set; then
5626   echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628   cat >conftest.$ac_ext <<_ACEOF
5629 #line $LINENO "configure"
5630 /* confdefs.h.  */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h.  */
5635 /* System header to define __stub macros and hopefully few prototypes,
5636     which can conflict with char connect (); below.
5637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5638     <limits.h> exists even on freestanding compilers.  */
5639 #ifdef __STDC__
5640 # include <limits.h>
5641 #else
5642 # include <assert.h>
5643 #endif
5644 /* Override any gcc2 internal prototype to avoid an error.  */
5645 #ifdef __cplusplus
5646 extern "C"
5647 {
5648 #endif
5649 /* We use char because int might match the return type of a gcc2
5650    builtin and then its argument prototype would still apply.  */
5651 char connect ();
5652 /* The GNU C library defines this for functions which it implements
5653     to always fail with ENOSYS.  Some functions are actually named
5654     something starting with __ and the normal name is an alias.  */
5655 #if defined (__stub_connect) || defined (__stub___connect)
5656 choke me
5657 #else
5658 char (*f) () = connect;
5659 #endif
5660 #ifdef __cplusplus
5661 }
5662 #endif
5663
5664 int
5665 main ()
5666 {
5667 return f != connect;
5668   ;
5669   return 0;
5670 }
5671 _ACEOF
5672 rm -f conftest.$ac_objext conftest$ac_exeext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674   (eval $ac_link) 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); } &&
5678          { ac_try='test -s conftest$ac_exeext'
5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680   (eval $ac_try) 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }; }; then
5684   ac_cv_func_connect=yes
5685 else
5686   echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689 ac_cv_func_connect=no
5690 fi
5691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5692 fi
5693 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5694 echo "${ECHO_T}$ac_cv_func_connect" >&6
5695
5696     if test $ac_cv_func_connect = no; then
5697       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5698 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5699 if test "${ac_cv_lib_socket_connect+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   ac_check_lib_save_LIBS=$LIBS
5703 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5704 cat >conftest.$ac_ext <<_ACEOF
5705 #line $LINENO "configure"
5706 /* confdefs.h.  */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h.  */
5711
5712 /* Override any gcc2 internal prototype to avoid an error.  */
5713 #ifdef __cplusplus
5714 extern "C"
5715 #endif
5716 /* We use char because int might match the return type of a gcc2
5717    builtin and then its argument prototype would still apply.  */
5718 char connect ();
5719 int
5720 main ()
5721 {
5722 connect ();
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729   (eval $ac_link) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); } &&
5733          { ac_try='test -s conftest$ac_exeext'
5734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735   (eval $ac_try) 2>&5
5736   ac_status=$?
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); }; }; then
5739   ac_cv_lib_socket_connect=yes
5740 else
5741   echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744 ac_cv_lib_socket_connect=no
5745 fi
5746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5747 LIBS=$ac_check_lib_save_LIBS
5748 fi
5749 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5750 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5751 if test $ac_cv_lib_socket_connect = yes; then
5752   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5753 fi
5754
5755     fi
5756
5757     # Guillermo Gomez says -lposix is necessary on A/UX.
5758     echo "$as_me:$LINENO: checking for remove" >&5
5759 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5760 if test "${ac_cv_func_remove+set}" = set; then
5761   echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763   cat >conftest.$ac_ext <<_ACEOF
5764 #line $LINENO "configure"
5765 /* confdefs.h.  */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h.  */
5770 /* System header to define __stub macros and hopefully few prototypes,
5771     which can conflict with char remove (); below.
5772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5773     <limits.h> exists even on freestanding compilers.  */
5774 #ifdef __STDC__
5775 # include <limits.h>
5776 #else
5777 # include <assert.h>
5778 #endif
5779 /* Override any gcc2 internal prototype to avoid an error.  */
5780 #ifdef __cplusplus
5781 extern "C"
5782 {
5783 #endif
5784 /* We use char because int might match the return type of a gcc2
5785    builtin and then its argument prototype would still apply.  */
5786 char remove ();
5787 /* The GNU C library defines this for functions which it implements
5788     to always fail with ENOSYS.  Some functions are actually named
5789     something starting with __ and the normal name is an alias.  */
5790 #if defined (__stub_remove) || defined (__stub___remove)
5791 choke me
5792 #else
5793 char (*f) () = remove;
5794 #endif
5795 #ifdef __cplusplus
5796 }
5797 #endif
5798
5799 int
5800 main ()
5801 {
5802 return f != remove;
5803   ;
5804   return 0;
5805 }
5806 _ACEOF
5807 rm -f conftest.$ac_objext conftest$ac_exeext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809   (eval $ac_link) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -s conftest$ac_exeext'
5814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815   (eval $ac_try) 2>&5
5816   ac_status=$?
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); }; }; then
5819   ac_cv_func_remove=yes
5820 else
5821   echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824 ac_cv_func_remove=no
5825 fi
5826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5827 fi
5828 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5829 echo "${ECHO_T}$ac_cv_func_remove" >&6
5830
5831     if test $ac_cv_func_remove = no; then
5832       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5833 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5834 if test "${ac_cv_lib_posix_remove+set}" = set; then
5835   echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837   ac_check_lib_save_LIBS=$LIBS
5838 LIBS="-lposix  $LIBS"
5839 cat >conftest.$ac_ext <<_ACEOF
5840 #line $LINENO "configure"
5841 /* confdefs.h.  */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h.  */
5846
5847 /* Override any gcc2 internal prototype to avoid an error.  */
5848 #ifdef __cplusplus
5849 extern "C"
5850 #endif
5851 /* We use char because int might match the return type of a gcc2
5852    builtin and then its argument prototype would still apply.  */
5853 char remove ();
5854 int
5855 main ()
5856 {
5857 remove ();
5858   ;
5859   return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext conftest$ac_exeext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5864   (eval $ac_link) 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } &&
5868          { ac_try='test -s conftest$ac_exeext'
5869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870   (eval $ac_try) 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; }; then
5874   ac_cv_lib_posix_remove=yes
5875 else
5876   echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5878
5879 ac_cv_lib_posix_remove=no
5880 fi
5881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5882 LIBS=$ac_check_lib_save_LIBS
5883 fi
5884 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5885 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5886 if test $ac_cv_lib_posix_remove = yes; then
5887   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5888 fi
5889
5890     fi
5891
5892     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5893     echo "$as_me:$LINENO: checking for shmat" >&5
5894 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5895 if test "${ac_cv_func_shmat+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   cat >conftest.$ac_ext <<_ACEOF
5899 #line $LINENO "configure"
5900 /* confdefs.h.  */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h.  */
5905 /* System header to define __stub macros and hopefully few prototypes,
5906     which can conflict with char shmat (); below.
5907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5908     <limits.h> exists even on freestanding compilers.  */
5909 #ifdef __STDC__
5910 # include <limits.h>
5911 #else
5912 # include <assert.h>
5913 #endif
5914 /* Override any gcc2 internal prototype to avoid an error.  */
5915 #ifdef __cplusplus
5916 extern "C"
5917 {
5918 #endif
5919 /* We use char because int might match the return type of a gcc2
5920    builtin and then its argument prototype would still apply.  */
5921 char shmat ();
5922 /* The GNU C library defines this for functions which it implements
5923     to always fail with ENOSYS.  Some functions are actually named
5924     something starting with __ and the normal name is an alias.  */
5925 #if defined (__stub_shmat) || defined (__stub___shmat)
5926 choke me
5927 #else
5928 char (*f) () = shmat;
5929 #endif
5930 #ifdef __cplusplus
5931 }
5932 #endif
5933
5934 int
5935 main ()
5936 {
5937 return f != shmat;
5938   ;
5939   return 0;
5940 }
5941 _ACEOF
5942 rm -f conftest.$ac_objext conftest$ac_exeext
5943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5944   (eval $ac_link) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); } &&
5948          { ac_try='test -s conftest$ac_exeext'
5949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950   (eval $ac_try) 2>&5
5951   ac_status=$?
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); }; }; then
5954   ac_cv_func_shmat=yes
5955 else
5956   echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 ac_cv_func_shmat=no
5960 fi
5961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5962 fi
5963 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5964 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5965
5966     if test $ac_cv_func_shmat = no; then
5967       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5968 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5969 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   ac_check_lib_save_LIBS=$LIBS
5973 LIBS="-lipc  $LIBS"
5974 cat >conftest.$ac_ext <<_ACEOF
5975 #line $LINENO "configure"
5976 /* confdefs.h.  */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h.  */
5981
5982 /* Override any gcc2 internal prototype to avoid an error.  */
5983 #ifdef __cplusplus
5984 extern "C"
5985 #endif
5986 /* We use char because int might match the return type of a gcc2
5987    builtin and then its argument prototype would still apply.  */
5988 char shmat ();
5989 int
5990 main ()
5991 {
5992 shmat ();
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); } &&
6003          { ac_try='test -s conftest$ac_exeext'
6004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005   (eval $ac_try) 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   ac_cv_lib_ipc_shmat=yes
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 ac_cv_lib_ipc_shmat=no
6015 fi
6016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6017 LIBS=$ac_check_lib_save_LIBS
6018 fi
6019 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6020 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6021 if test $ac_cv_lib_ipc_shmat = yes; then
6022   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6023 fi
6024
6025     fi
6026   fi
6027
6028   # Check for libraries that X11R6 Xt/Xaw programs need.
6029   ac_save_LDFLAGS=$LDFLAGS
6030   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6031   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6032   # check for ICE first), but we must link in the order -lSM -lICE or
6033   # we get undefined symbols.  So assume we have SM if we have ICE.
6034   # These have to be linked with before -lX11, unlike the other
6035   # libraries we check for below, so use a different variable.
6036   # John Interrante, Karl Berry
6037   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6038 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6039 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042   ac_check_lib_save_LIBS=$LIBS
6043 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6044 cat >conftest.$ac_ext <<_ACEOF
6045 #line $LINENO "configure"
6046 /* confdefs.h.  */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h.  */
6051
6052 /* Override any gcc2 internal prototype to avoid an error.  */
6053 #ifdef __cplusplus
6054 extern "C"
6055 #endif
6056 /* We use char because int might match the return type of a gcc2
6057    builtin and then its argument prototype would still apply.  */
6058 char IceConnectionNumber ();
6059 int
6060 main ()
6061 {
6062 IceConnectionNumber ();
6063   ;
6064   return 0;
6065 }
6066 _ACEOF
6067 rm -f conftest.$ac_objext conftest$ac_exeext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6069   (eval $ac_link) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); } &&
6073          { ac_try='test -s conftest$ac_exeext'
6074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075   (eval $ac_try) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; }; then
6079   ac_cv_lib_ICE_IceConnectionNumber=yes
6080 else
6081   echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 ac_cv_lib_ICE_IceConnectionNumber=no
6085 fi
6086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6087 LIBS=$ac_check_lib_save_LIBS
6088 fi
6089 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6090 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6091 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6092   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6093 fi
6094
6095   LDFLAGS=$ac_save_LDFLAGS
6096
6097 fi
6098
6099 if test -n "$no_x" ; then
6100   echo $PRODUCT requires the X Window System header files and libraries!
6101   echo They were not found on your system.  See FAQ topic C.2.
6102   echo configure failed
6103   exit 1
6104 fi
6105
6106 # Make sure we can run config.sub.
6107 $ac_config_sub sun4 >/dev/null 2>&1 ||
6108   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6109 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6110    { (exit 1); exit 1; }; }
6111
6112 echo "$as_me:$LINENO: checking build system type" >&5
6113 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6114 if test "${ac_cv_build+set}" = set; then
6115   echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117   ac_cv_build_alias=$build_alias
6118 test -z "$ac_cv_build_alias" &&
6119   ac_cv_build_alias=`$ac_config_guess`
6120 test -z "$ac_cv_build_alias" &&
6121   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6122 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6123    { (exit 1); exit 1; }; }
6124 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6125   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6126 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6127    { (exit 1); exit 1; }; }
6128
6129 fi
6130 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6131 echo "${ECHO_T}$ac_cv_build" >&6
6132 build=$ac_cv_build
6133 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6134 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6135 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6136
6137
6138 echo "$as_me:$LINENO: checking host system type" >&5
6139 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6140 if test "${ac_cv_host+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   ac_cv_host_alias=$host_alias
6144 test -z "$ac_cv_host_alias" &&
6145   ac_cv_host_alias=$ac_cv_build_alias
6146 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6147   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6148 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6149    { (exit 1); exit 1; }; }
6150
6151 fi
6152 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6153 echo "${ECHO_T}$ac_cv_host" >&6
6154 host=$ac_cv_host
6155 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6156 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6157 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6158
6159
6160
6161 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6162 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6163 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6164 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6165   echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167   cat >conftest.make <<\_ACEOF
6168 all:
6169         @echo 'ac_maketemp="$(MAKE)"'
6170 _ACEOF
6171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6172 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6173 if test -n "$ac_maketemp"; then
6174   eval ac_cv_prog_make_${ac_make}_set=yes
6175 else
6176   eval ac_cv_prog_make_${ac_make}_set=no
6177 fi
6178 rm -f conftest.make
6179 fi
6180 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6181   echo "$as_me:$LINENO: result: yes" >&5
6182 echo "${ECHO_T}yes" >&6
6183   SET_MAKE=
6184 else
6185   echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6
6187   SET_MAKE="MAKE=${MAKE-make}"
6188 fi
6189
6190
6191         MKINSTALLDIRS=
6192   if test -n "$ac_aux_dir"; then
6193     case "$ac_aux_dir" in
6194       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6195       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6196     esac
6197   fi
6198   if test -z "$MKINSTALLDIRS"; then
6199     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6200   fi
6201
6202
6203
6204   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6205 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6206     # Check whether --enable-nls or --disable-nls was given.
6207 if test "${enable_nls+set}" = set; then
6208   enableval="$enable_nls"
6209   USE_NLS=$enableval
6210 else
6211   USE_NLS=yes
6212 fi;
6213   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6214 echo "${ECHO_T}$USE_NLS" >&6
6215
6216
6217
6218
6219
6220
6221 # Prepare PATH_SEPARATOR.
6222 # The user is always right.
6223 if test "${PATH_SEPARATOR+set}" != set; then
6224   echo "#! /bin/sh" >conf$$.sh
6225   echo  "exit 0"   >>conf$$.sh
6226   chmod +x conf$$.sh
6227   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6228     PATH_SEPARATOR=';'
6229   else
6230     PATH_SEPARATOR=:
6231   fi
6232   rm -f conf$$.sh
6233 fi
6234
6235 # Find out how to test for executable files. Don't use a zero-byte file,
6236 # as systems may use methods other than mode bits to determine executability.
6237 cat >conf$$.file <<_ASEOF
6238 #! /bin/sh
6239 exit 0
6240 _ASEOF
6241 chmod +x conf$$.file
6242 if test -x conf$$.file >/dev/null 2>&1; then
6243   ac_executable_p="test -x"
6244 else
6245   ac_executable_p="test -f"
6246 fi
6247 rm -f conf$$.file
6248
6249 # Extract the first word of "msgfmt", so it can be a program name with args.
6250 set dummy msgfmt; ac_word=$2
6251 echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253 if test "${ac_cv_path_MSGFMT+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256   case "$MSGFMT" in
6257   [\\/]* | ?:[\\/]*)
6258     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6259     ;;
6260   *)
6261     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6262     for ac_dir in $PATH; do
6263       IFS="$ac_save_IFS"
6264       test -z "$ac_dir" && ac_dir=.
6265       for ac_exec_ext in '' $ac_executable_extensions; do
6266         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6267           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6268      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6269             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6270             break 2
6271           fi
6272         fi
6273       done
6274     done
6275     IFS="$ac_save_IFS"
6276   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6277     ;;
6278 esac
6279 fi
6280 MSGFMT="$ac_cv_path_MSGFMT"
6281 if test "$MSGFMT" != ":"; then
6282   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6283 echo "${ECHO_T}$MSGFMT" >&6
6284 else
6285   echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6
6287 fi
6288
6289   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6290 set dummy gmsgfmt; ac_word=$2
6291 echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6293 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   case $GMSGFMT in
6297   [\\/]* | ?:[\\/]*)
6298   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6299   ;;
6300   *)
6301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306   for ac_exec_ext in '' $ac_executable_extensions; do
6307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313 done
6314
6315   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6316   ;;
6317 esac
6318 fi
6319 GMSGFMT=$ac_cv_path_GMSGFMT
6320
6321 if test -n "$GMSGFMT"; then
6322   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6323 echo "${ECHO_T}$GMSGFMT" >&6
6324 else
6325   echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6
6327 fi
6328
6329
6330
6331 # Prepare PATH_SEPARATOR.
6332 # The user is always right.
6333 if test "${PATH_SEPARATOR+set}" != set; then
6334   echo "#! /bin/sh" >conf$$.sh
6335   echo  "exit 0"   >>conf$$.sh
6336   chmod +x conf$$.sh
6337   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6338     PATH_SEPARATOR=';'
6339   else
6340     PATH_SEPARATOR=:
6341   fi
6342   rm -f conf$$.sh
6343 fi
6344
6345 # Find out how to test for executable files. Don't use a zero-byte file,
6346 # as systems may use methods other than mode bits to determine executability.
6347 cat >conf$$.file <<_ASEOF
6348 #! /bin/sh
6349 exit 0
6350 _ASEOF
6351 chmod +x conf$$.file
6352 if test -x conf$$.file >/dev/null 2>&1; then
6353   ac_executable_p="test -x"
6354 else
6355   ac_executable_p="test -f"
6356 fi
6357 rm -f conf$$.file
6358
6359 # Extract the first word of "xgettext", so it can be a program name with args.
6360 set dummy xgettext; ac_word=$2
6361 echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6363 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6364   echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366   case "$XGETTEXT" in
6367   [\\/]* | ?:[\\/]*)
6368     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6369     ;;
6370   *)
6371     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6372     for ac_dir in $PATH; do
6373       IFS="$ac_save_IFS"
6374       test -z "$ac_dir" && ac_dir=.
6375       for ac_exec_ext in '' $ac_executable_extensions; do
6376         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6377           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6378      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6379             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6380             break 2
6381           fi
6382         fi
6383       done
6384     done
6385     IFS="$ac_save_IFS"
6386   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6387     ;;
6388 esac
6389 fi
6390 XGETTEXT="$ac_cv_path_XGETTEXT"
6391 if test "$XGETTEXT" != ":"; then
6392   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6393 echo "${ECHO_T}$XGETTEXT" >&6
6394 else
6395   echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6
6397 fi
6398
6399     rm -f messages.po
6400
6401
6402 # Prepare PATH_SEPARATOR.
6403 # The user is always right.
6404 if test "${PATH_SEPARATOR+set}" != set; then
6405   echo "#! /bin/sh" >conf$$.sh
6406   echo  "exit 0"   >>conf$$.sh
6407   chmod +x conf$$.sh
6408   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6409     PATH_SEPARATOR=';'
6410   else
6411     PATH_SEPARATOR=:
6412   fi
6413   rm -f conf$$.sh
6414 fi
6415
6416 # Find out how to test for executable files. Don't use a zero-byte file,
6417 # as systems may use methods other than mode bits to determine executability.
6418 cat >conf$$.file <<_ASEOF
6419 #! /bin/sh
6420 exit 0
6421 _ASEOF
6422 chmod +x conf$$.file
6423 if test -x conf$$.file >/dev/null 2>&1; then
6424   ac_executable_p="test -x"
6425 else
6426   ac_executable_p="test -f"
6427 fi
6428 rm -f conf$$.file
6429
6430 # Extract the first word of "msgmerge", so it can be a program name with args.
6431 set dummy msgmerge; ac_word=$2
6432 echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6434 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   case "$MSGMERGE" in
6438   [\\/]* | ?:[\\/]*)
6439     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6440     ;;
6441   *)
6442     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6443     for ac_dir in $PATH; do
6444       IFS="$ac_save_IFS"
6445       test -z "$ac_dir" && ac_dir=.
6446       for ac_exec_ext in '' $ac_executable_extensions; do
6447         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6448           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6449             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6450             break 2
6451           fi
6452         fi
6453       done
6454     done
6455     IFS="$ac_save_IFS"
6456   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6457     ;;
6458 esac
6459 fi
6460 MSGMERGE="$ac_cv_path_MSGMERGE"
6461 if test "$MSGMERGE" != ":"; then
6462   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6463 echo "${ECHO_T}$MSGMERGE" >&6
6464 else
6465   echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6
6467 fi
6468
6469
6470       if test "$GMSGFMT" != ":"; then
6471             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6472        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6473       : ;
6474     else
6475       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6476       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6477 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6478       GMSGFMT=":"
6479     fi
6480   fi
6481
6482       if test "$XGETTEXT" != ":"; then
6483             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6484        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6485       : ;
6486     else
6487       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6488 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6489       XGETTEXT=":"
6490     fi
6491         rm -f messages.po
6492   fi
6493
6494             ac_config_commands="$ac_config_commands default-1"
6495
6496
6497
6498       if test "X$prefix" = "XNONE"; then
6499     acl_final_prefix="$ac_default_prefix"
6500   else
6501     acl_final_prefix="$prefix"
6502   fi
6503   if test "X$exec_prefix" = "XNONE"; then
6504     acl_final_exec_prefix='${prefix}'
6505   else
6506     acl_final_exec_prefix="$exec_prefix"
6507   fi
6508   acl_save_prefix="$prefix"
6509   prefix="$acl_final_prefix"
6510   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6511   prefix="$acl_save_prefix"
6512
6513
6514 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6515 if test "${with_gnu_ld+set}" = set; then
6516   withval="$with_gnu_ld"
6517   test "$withval" = no || with_gnu_ld=yes
6518 else
6519   with_gnu_ld=no
6520 fi;
6521 # Prepare PATH_SEPARATOR.
6522 # The user is always right.
6523 if test "${PATH_SEPARATOR+set}" != set; then
6524   echo "#! /bin/sh" >conf$$.sh
6525   echo  "exit 0"   >>conf$$.sh
6526   chmod +x conf$$.sh
6527   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6528     PATH_SEPARATOR=';'
6529   else
6530     PATH_SEPARATOR=:
6531   fi
6532   rm -f conf$$.sh
6533 fi
6534 ac_prog=ld
6535 if test "$GCC" = yes; then
6536   # Check if gcc -print-prog-name=ld gives a path.
6537   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6538 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6539   case $host in
6540   *-*-mingw*)
6541     # gcc leaves a trailing carriage return which upsets mingw
6542     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6543   *)
6544     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6545   esac
6546   case $ac_prog in
6547     # Accept absolute paths.
6548     [\\/]* | [A-Za-z]:[\\/]*)
6549       re_direlt='/[^/][^/]*/\.\./'
6550       # Canonicalize the path of ld
6551       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6552       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6553         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6554       done
6555       test -z "$LD" && LD="$ac_prog"
6556       ;;
6557   "")
6558     # If it fails, then pretend we aren't using GCC.
6559     ac_prog=ld
6560     ;;
6561   *)
6562     # If it is relative, then search for the first ld in PATH.
6563     with_gnu_ld=unknown
6564     ;;
6565   esac
6566 elif test "$with_gnu_ld" = yes; then
6567   echo "$as_me:$LINENO: checking for GNU ld" >&5
6568 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6569 else
6570   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6571 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6572 fi
6573 if test "${acl_cv_path_LD+set}" = set; then
6574   echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576   if test -z "$LD"; then
6577   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6578   for ac_dir in $PATH; do
6579     test -z "$ac_dir" && ac_dir=.
6580     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6581       acl_cv_path_LD="$ac_dir/$ac_prog"
6582       # Check to see if the program is GNU ld.  I'd rather use --version,
6583       # but apparently some GNU ld's only accept -v.
6584       # Break only if it was the GNU/non-GNU ld that we prefer.
6585       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6586         test "$with_gnu_ld" != no && break
6587       else
6588         test "$with_gnu_ld" != yes && break
6589       fi
6590     fi
6591   done
6592   IFS="$ac_save_ifs"
6593 else
6594   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6595 fi
6596 fi
6597
6598 LD="$acl_cv_path_LD"
6599 if test -n "$LD"; then
6600   echo "$as_me:$LINENO: result: $LD" >&5
6601 echo "${ECHO_T}$LD" >&6
6602 else
6603   echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6
6605 fi
6606 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6607 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6608    { (exit 1); exit 1; }; }
6609 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6610 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6611 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6615 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6616   acl_cv_prog_gnu_ld=yes
6617 else
6618   acl_cv_prog_gnu_ld=no
6619 fi
6620 fi
6621 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6622 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6623 with_gnu_ld=$acl_cv_prog_gnu_ld
6624
6625
6626
6627                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6628 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6629 if test "${acl_cv_rpath+set}" = set; then
6630   echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632
6633     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6634     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6635     . ./conftest.sh
6636     rm -f ./conftest.sh
6637     acl_cv_rpath=done
6638
6639 fi
6640 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6641 echo "${ECHO_T}$acl_cv_rpath" >&6
6642   wl="$acl_cv_wl"
6643   libext="$acl_cv_libext"
6644   shlibext="$acl_cv_shlibext"
6645   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6646   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6647   hardcode_direct="$acl_cv_hardcode_direct"
6648   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6649     # Check whether --enable-rpath or --disable-rpath was given.
6650 if test "${enable_rpath+set}" = set; then
6651   enableval="$enable_rpath"
6652   :
6653 else
6654   enable_rpath=yes
6655 fi;
6656
6657
6658
6659
6660
6661
6662
6663     use_additional=yes
6664
6665   acl_save_prefix="$prefix"
6666   prefix="$acl_final_prefix"
6667   acl_save_exec_prefix="$exec_prefix"
6668   exec_prefix="$acl_final_exec_prefix"
6669
6670     eval additional_includedir=\"$includedir\"
6671     eval additional_libdir=\"$libdir\"
6672
6673   exec_prefix="$acl_save_exec_prefix"
6674   prefix="$acl_save_prefix"
6675
6676
6677 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6678 if test "${with_libiconv_prefix+set}" = set; then
6679   withval="$with_libiconv_prefix"
6680
6681     if test "X$withval" = "Xno"; then
6682       use_additional=no
6683     else
6684       if test "X$withval" = "X"; then
6685
6686   acl_save_prefix="$prefix"
6687   prefix="$acl_final_prefix"
6688   acl_save_exec_prefix="$exec_prefix"
6689   exec_prefix="$acl_final_exec_prefix"
6690
6691           eval additional_includedir=\"$includedir\"
6692           eval additional_libdir=\"$libdir\"
6693
6694   exec_prefix="$acl_save_exec_prefix"
6695   prefix="$acl_save_prefix"
6696
6697       else
6698         additional_includedir="$withval/include"
6699         additional_libdir="$withval/lib"
6700       fi
6701     fi
6702
6703 fi;
6704       LIBICONV=
6705   LTLIBICONV=
6706   INCICONV=
6707   rpathdirs=
6708   ltrpathdirs=
6709   names_already_handled=
6710   names_next_round='iconv '
6711   while test -n "$names_next_round"; do
6712     names_this_round="$names_next_round"
6713     names_next_round=
6714     for name in $names_this_round; do
6715       already_handled=
6716       for n in $names_already_handled; do
6717         if test "$n" = "$name"; then
6718           already_handled=yes
6719           break
6720         fi
6721       done
6722       if test -z "$already_handled"; then
6723         names_already_handled="$names_already_handled $name"
6724                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6725         eval value=\"\$HAVE_LIB$uppername\"
6726         if test -n "$value"; then
6727           if test "$value" = yes; then
6728             eval value=\"\$LIB$uppername\"
6729             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6730             eval value=\"\$LTLIB$uppername\"
6731             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6732           else
6733                                     :
6734           fi
6735         else
6736                               found_dir=
6737           found_la=
6738           found_so=
6739           found_a=
6740           if test $use_additional = yes; then
6741             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6742               found_dir="$additional_libdir"
6743               found_so="$additional_libdir/lib$name.$shlibext"
6744               if test -f "$additional_libdir/lib$name.la"; then
6745                 found_la="$additional_libdir/lib$name.la"
6746               fi
6747             else
6748               if test -f "$additional_libdir/lib$name.$libext"; then
6749                 found_dir="$additional_libdir"
6750                 found_a="$additional_libdir/lib$name.$libext"
6751                 if test -f "$additional_libdir/lib$name.la"; then
6752                   found_la="$additional_libdir/lib$name.la"
6753                 fi
6754               fi
6755             fi
6756           fi
6757           if test "X$found_dir" = "X"; then
6758             for x in $LDFLAGS $LTLIBICONV; do
6759
6760   acl_save_prefix="$prefix"
6761   prefix="$acl_final_prefix"
6762   acl_save_exec_prefix="$exec_prefix"
6763   exec_prefix="$acl_final_exec_prefix"
6764   eval x=\"$x\"
6765   exec_prefix="$acl_save_exec_prefix"
6766   prefix="$acl_save_prefix"
6767
6768               case "$x" in
6769                 -L*)
6770                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6771                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6772                     found_dir="$dir"
6773                     found_so="$dir/lib$name.$shlibext"
6774                     if test -f "$dir/lib$name.la"; then
6775                       found_la="$dir/lib$name.la"
6776                     fi
6777                   else
6778                     if test -f "$dir/lib$name.$libext"; then
6779                       found_dir="$dir"
6780                       found_a="$dir/lib$name.$libext"
6781                       if test -f "$dir/lib$name.la"; then
6782                         found_la="$dir/lib$name.la"
6783                       fi
6784                     fi
6785                   fi
6786                   ;;
6787               esac
6788               if test "X$found_dir" != "X"; then
6789                 break
6790               fi
6791             done
6792           fi
6793           if test "X$found_dir" != "X"; then
6794                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6795             if test "X$found_so" != "X"; then
6796                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6797                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6798               else
6799                                                                                 haveit=
6800                 for x in $ltrpathdirs; do
6801                   if test "X$x" = "X$found_dir"; then
6802                     haveit=yes
6803                     break
6804                   fi
6805                 done
6806                 if test -z "$haveit"; then
6807                   ltrpathdirs="$ltrpathdirs $found_dir"
6808                 fi
6809                                 if test "$hardcode_direct" = yes; then
6810                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6811                 else
6812                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6813                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6814                                                             haveit=
6815                     for x in $rpathdirs; do
6816                       if test "X$x" = "X$found_dir"; then
6817                         haveit=yes
6818                         break
6819                       fi
6820                     done
6821                     if test -z "$haveit"; then
6822                       rpathdirs="$rpathdirs $found_dir"
6823                     fi
6824                   else
6825                                                                                 haveit=
6826                     for x in $LDFLAGS $LIBICONV; do
6827
6828   acl_save_prefix="$prefix"
6829   prefix="$acl_final_prefix"
6830   acl_save_exec_prefix="$exec_prefix"
6831   exec_prefix="$acl_final_exec_prefix"
6832   eval x=\"$x\"
6833   exec_prefix="$acl_save_exec_prefix"
6834   prefix="$acl_save_prefix"
6835
6836                       if test "X$x" = "X-L$found_dir"; then
6837                         haveit=yes
6838                         break
6839                       fi
6840                     done
6841                     if test -z "$haveit"; then
6842                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6843                     fi
6844                     if test "$hardcode_minus_L" != no; then
6845                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6846                     else
6847                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6848                     fi
6849                   fi
6850                 fi
6851               fi
6852             else
6853               if test "X$found_a" != "X"; then
6854                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6855               else
6856                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6857               fi
6858             fi
6859                         additional_includedir=
6860             case "$found_dir" in
6861               */lib | */lib/)
6862                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6863                 additional_includedir="$basedir/include"
6864                 ;;
6865             esac
6866             if test "X$additional_includedir" != "X"; then
6867                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6868                 haveit=
6869                 if test "X$additional_includedir" = "X/usr/local/include"; then
6870                   if test -n "$GCC"; then
6871                     case $host_os in
6872                       linux*) haveit=yes;;
6873                     esac
6874                   fi
6875                 fi
6876                 if test -z "$haveit"; then
6877                   for x in $CPPFLAGS $INCICONV; do
6878
6879   acl_save_prefix="$prefix"
6880   prefix="$acl_final_prefix"
6881   acl_save_exec_prefix="$exec_prefix"
6882   exec_prefix="$acl_final_exec_prefix"
6883   eval x=\"$x\"
6884   exec_prefix="$acl_save_exec_prefix"
6885   prefix="$acl_save_prefix"
6886
6887                     if test "X$x" = "X-I$additional_includedir"; then
6888                       haveit=yes
6889                       break
6890                     fi
6891                   done
6892                   if test -z "$haveit"; then
6893                     if test -d "$additional_includedir"; then
6894                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6895                     fi
6896                   fi
6897                 fi
6898               fi
6899             fi
6900                         if test -n "$found_la"; then
6901                                                         save_libdir="$libdir"
6902               case "$found_la" in
6903                 */* | *\\*) . "$found_la" ;;
6904                 *) . "./$found_la" ;;
6905               esac
6906               libdir="$save_libdir"
6907                             for dep in $dependency_libs; do
6908                 case "$dep" in
6909                   -L*)
6910                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6911                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6912                       haveit=
6913                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6914                         if test -n "$GCC"; then
6915                           case $host_os in
6916                             linux*) haveit=yes;;
6917                           esac
6918                         fi
6919                       fi
6920                       if test -z "$haveit"; then
6921                         haveit=
6922                         for x in $LDFLAGS $LIBICONV; do
6923
6924   acl_save_prefix="$prefix"
6925   prefix="$acl_final_prefix"
6926   acl_save_exec_prefix="$exec_prefix"
6927   exec_prefix="$acl_final_exec_prefix"
6928   eval x=\"$x\"
6929   exec_prefix="$acl_save_exec_prefix"
6930   prefix="$acl_save_prefix"
6931
6932                           if test "X$x" = "X-L$additional_libdir"; then
6933                             haveit=yes
6934                             break
6935                           fi
6936                         done
6937                         if test -z "$haveit"; then
6938                           if test -d "$additional_libdir"; then
6939                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6940                           fi
6941                         fi
6942                         haveit=
6943                         for x in $LDFLAGS $LTLIBICONV; do
6944
6945   acl_save_prefix="$prefix"
6946   prefix="$acl_final_prefix"
6947   acl_save_exec_prefix="$exec_prefix"
6948   exec_prefix="$acl_final_exec_prefix"
6949   eval x=\"$x\"
6950   exec_prefix="$acl_save_exec_prefix"
6951   prefix="$acl_save_prefix"
6952
6953                           if test "X$x" = "X-L$additional_libdir"; then
6954                             haveit=yes
6955                             break
6956                           fi
6957                         done
6958                         if test -z "$haveit"; then
6959                           if test -d "$additional_libdir"; then
6960                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6961                           fi
6962                         fi
6963                       fi
6964                     fi
6965                     ;;
6966                   -R*)
6967                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6968                     if test "$enable_rpath" != no; then
6969                                                                   haveit=
6970                       for x in $rpathdirs; do
6971                         if test "X$x" = "X$dir"; then
6972                           haveit=yes
6973                           break
6974                         fi
6975                       done
6976                       if test -z "$haveit"; then
6977                         rpathdirs="$rpathdirs $dir"
6978                       fi
6979                                                                   haveit=
6980                       for x in $ltrpathdirs; do
6981                         if test "X$x" = "X$dir"; then
6982                           haveit=yes
6983                           break
6984                         fi
6985                       done
6986                       if test -z "$haveit"; then
6987                         ltrpathdirs="$ltrpathdirs $dir"
6988                       fi
6989                     fi
6990                     ;;
6991                   -l*)
6992                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6993                     ;;
6994                   *.la)
6995                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6996                     ;;
6997                   *)
6998                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6999                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7000                     ;;
7001                 esac
7002               done
7003             fi
7004           else
7005                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7006             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7007           fi
7008         fi
7009       fi
7010     done
7011   done
7012   if test "X$rpathdirs" != "X"; then
7013     if test -n "$hardcode_libdir_separator"; then
7014                         alldirs=
7015       for found_dir in $rpathdirs; do
7016         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7017       done
7018             acl_save_libdir="$libdir"
7019       libdir="$alldirs"
7020       eval flag=\"$hardcode_libdir_flag_spec\"
7021       libdir="$acl_save_libdir"
7022       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7023     else
7024             for found_dir in $rpathdirs; do
7025         acl_save_libdir="$libdir"
7026         libdir="$found_dir"
7027         eval flag=\"$hardcode_libdir_flag_spec\"
7028         libdir="$acl_save_libdir"
7029         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7030       done
7031     fi
7032   fi
7033   if test "X$ltrpathdirs" != "X"; then
7034             for found_dir in $ltrpathdirs; do
7035       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7036     done
7037   fi
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7057 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7058     # Check whether --enable-nls or --disable-nls was given.
7059 if test "${enable_nls+set}" = set; then
7060   enableval="$enable_nls"
7061   USE_NLS=$enableval
7062 else
7063   USE_NLS=yes
7064 fi;
7065   echo "$as_me:$LINENO: result: $USE_NLS" >&5
7066 echo "${ECHO_T}$USE_NLS" >&6
7067
7068
7069
7070
7071   LIBINTL=
7072   LTLIBINTL=
7073   POSUB=
7074
7075     if test "$USE_NLS" = "yes"; then
7076     gt_use_preinstalled_gnugettext=no
7077
7078
7079
7080
7081
7082
7083         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7084 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7085 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7086   echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088   cat >conftest.$ac_ext <<_ACEOF
7089 #line $LINENO "configure"
7090 /* confdefs.h.  */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h.  */
7095 #include <libintl.h>
7096 extern int _nl_msg_cat_cntr;
7097 extern int *_nl_domain_bindings;
7098 int
7099 main ()
7100 {
7101 bindtextdomain ("", "");
7102 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
7103   ;
7104   return 0;
7105 }
7106 _ACEOF
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109   (eval $ac_link) 2>&5
7110   ac_status=$?
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); } &&
7113          { ac_try='test -s conftest$ac_exeext'
7114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115   (eval $ac_try) 2>&5
7116   ac_status=$?
7117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118   (exit $ac_status); }; }; then
7119   gt_cv_func_gnugettext1_libc=yes
7120 else
7121   echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7123
7124 gt_cv_func_gnugettext1_libc=no
7125 fi
7126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7127 fi
7128 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7129 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7130
7131         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7132
7133
7134
7135
7136
7137           am_save_CPPFLAGS="$CPPFLAGS"
7138
7139   for element in $INCICONV; do
7140     haveit=
7141     for x in $CPPFLAGS; do
7142
7143   acl_save_prefix="$prefix"
7144   prefix="$acl_final_prefix"
7145   acl_save_exec_prefix="$exec_prefix"
7146   exec_prefix="$acl_final_exec_prefix"
7147   eval x=\"$x\"
7148   exec_prefix="$acl_save_exec_prefix"
7149   prefix="$acl_save_prefix"
7150
7151       if test "X$x" = "X$element"; then
7152         haveit=yes
7153         break
7154       fi
7155     done
7156     if test -z "$haveit"; then
7157       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7158     fi
7159   done
7160
7161
7162   echo "$as_me:$LINENO: checking for iconv" >&5
7163 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7164 if test "${am_cv_func_iconv+set}" = set; then
7165   echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167
7168     am_cv_func_iconv="no, consider installing GNU libiconv"
7169     am_cv_lib_iconv=no
7170     cat >conftest.$ac_ext <<_ACEOF
7171 #line $LINENO "configure"
7172 /* confdefs.h.  */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h.  */
7177 #include <stdlib.h>
7178 #include <iconv.h>
7179 int
7180 main ()
7181 {
7182 iconv_t cd = iconv_open("","");
7183        iconv(cd,NULL,NULL,NULL,NULL);
7184        iconv_close(cd);
7185   ;
7186   return 0;
7187 }
7188 _ACEOF
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191   (eval $ac_link) 2>&5
7192   ac_status=$?
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); } &&
7195          { ac_try='test -s conftest$ac_exeext'
7196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197   (eval $ac_try) 2>&5
7198   ac_status=$?
7199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200   (exit $ac_status); }; }; then
7201   am_cv_func_iconv=yes
7202 else
7203   echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206 fi
7207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7208     if test "$am_cv_func_iconv" != yes; then
7209       am_save_LIBS="$LIBS"
7210       LIBS="$LIBS $LIBICONV"
7211       cat >conftest.$ac_ext <<_ACEOF
7212 #line $LINENO "configure"
7213 /* confdefs.h.  */
7214 _ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h.  */
7218 #include <stdlib.h>
7219 #include <iconv.h>
7220 int
7221 main ()
7222 {
7223 iconv_t cd = iconv_open("","");
7224          iconv(cd,NULL,NULL,NULL,NULL);
7225          iconv_close(cd);
7226   ;
7227   return 0;
7228 }
7229 _ACEOF
7230 rm -f conftest.$ac_objext conftest$ac_exeext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7232   (eval $ac_link) 2>&5
7233   ac_status=$?
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); } &&
7236          { ac_try='test -s conftest$ac_exeext'
7237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238   (eval $ac_try) 2>&5
7239   ac_status=$?
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); }; }; then
7242   am_cv_lib_iconv=yes
7243         am_cv_func_iconv=yes
7244 else
7245   echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7247
7248 fi
7249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7250       LIBS="$am_save_LIBS"
7251     fi
7252
7253 fi
7254 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7255 echo "${ECHO_T}$am_cv_func_iconv" >&6
7256   if test "$am_cv_func_iconv" = yes; then
7257
7258 cat >>confdefs.h <<\_ACEOF
7259 #define HAVE_ICONV 1
7260 _ACEOF
7261
7262   fi
7263   if test "$am_cv_lib_iconv" = yes; then
7264     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7265 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7266     echo "$as_me:$LINENO: result: $LIBICONV" >&5
7267 echo "${ECHO_T}$LIBICONV" >&6
7268   else
7269             CPPFLAGS="$am_save_CPPFLAGS"
7270     LIBICONV=
7271     LTLIBICONV=
7272   fi
7273
7274
7275
7276
7277
7278
7279     use_additional=yes
7280
7281   acl_save_prefix="$prefix"
7282   prefix="$acl_final_prefix"
7283   acl_save_exec_prefix="$exec_prefix"
7284   exec_prefix="$acl_final_exec_prefix"
7285
7286     eval additional_includedir=\"$includedir\"
7287     eval additional_libdir=\"$libdir\"
7288
7289   exec_prefix="$acl_save_exec_prefix"
7290   prefix="$acl_save_prefix"
7291
7292
7293 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
7294 if test "${with_libintl_prefix+set}" = set; then
7295   withval="$with_libintl_prefix"
7296
7297     if test "X$withval" = "Xno"; then
7298       use_additional=no
7299     else
7300       if test "X$withval" = "X"; then
7301
7302   acl_save_prefix="$prefix"
7303   prefix="$acl_final_prefix"
7304   acl_save_exec_prefix="$exec_prefix"
7305   exec_prefix="$acl_final_exec_prefix"
7306
7307           eval additional_includedir=\"$includedir\"
7308           eval additional_libdir=\"$libdir\"
7309
7310   exec_prefix="$acl_save_exec_prefix"
7311   prefix="$acl_save_prefix"
7312
7313       else
7314         additional_includedir="$withval/include"
7315         additional_libdir="$withval/lib"
7316       fi
7317     fi
7318
7319 fi;
7320       LIBINTL=
7321   LTLIBINTL=
7322   INCINTL=
7323   rpathdirs=
7324   ltrpathdirs=
7325   names_already_handled=
7326   names_next_round='intl '
7327   while test -n "$names_next_round"; do
7328     names_this_round="$names_next_round"
7329     names_next_round=
7330     for name in $names_this_round; do
7331       already_handled=
7332       for n in $names_already_handled; do
7333         if test "$n" = "$name"; then
7334           already_handled=yes
7335           break
7336         fi
7337       done
7338       if test -z "$already_handled"; then
7339         names_already_handled="$names_already_handled $name"
7340                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7341         eval value=\"\$HAVE_LIB$uppername\"
7342         if test -n "$value"; then
7343           if test "$value" = yes; then
7344             eval value=\"\$LIB$uppername\"
7345             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7346             eval value=\"\$LTLIB$uppername\"
7347             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7348           else
7349                                     :
7350           fi
7351         else
7352                               found_dir=
7353           found_la=
7354           found_so=
7355           found_a=
7356           if test $use_additional = yes; then
7357             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7358               found_dir="$additional_libdir"
7359               found_so="$additional_libdir/lib$name.$shlibext"
7360               if test -f "$additional_libdir/lib$name.la"; then
7361                 found_la="$additional_libdir/lib$name.la"
7362               fi
7363             else
7364               if test -f "$additional_libdir/lib$name.$libext"; then
7365                 found_dir="$additional_libdir"
7366                 found_a="$additional_libdir/lib$name.$libext"
7367                 if test -f "$additional_libdir/lib$name.la"; then
7368                   found_la="$additional_libdir/lib$name.la"
7369                 fi
7370               fi
7371             fi
7372           fi
7373           if test "X$found_dir" = "X"; then
7374             for x in $LDFLAGS $LTLIBINTL; do
7375
7376   acl_save_prefix="$prefix"
7377   prefix="$acl_final_prefix"
7378   acl_save_exec_prefix="$exec_prefix"
7379   exec_prefix="$acl_final_exec_prefix"
7380   eval x=\"$x\"
7381   exec_prefix="$acl_save_exec_prefix"
7382   prefix="$acl_save_prefix"
7383
7384               case "$x" in
7385                 -L*)
7386                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7387                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7388                     found_dir="$dir"
7389                     found_so="$dir/lib$name.$shlibext"
7390                     if test -f "$dir/lib$name.la"; then
7391                       found_la="$dir/lib$name.la"
7392                     fi
7393                   else
7394                     if test -f "$dir/lib$name.$libext"; then
7395                       found_dir="$dir"
7396                       found_a="$dir/lib$name.$libext"
7397                       if test -f "$dir/lib$name.la"; then
7398                         found_la="$dir/lib$name.la"
7399                       fi
7400                     fi
7401                   fi
7402                   ;;
7403               esac
7404               if test "X$found_dir" != "X"; then
7405                 break
7406               fi
7407             done
7408           fi
7409           if test "X$found_dir" != "X"; then
7410                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7411             if test "X$found_so" != "X"; then
7412                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7413                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7414               else
7415                                                                                 haveit=
7416                 for x in $ltrpathdirs; do
7417                   if test "X$x" = "X$found_dir"; then
7418                     haveit=yes
7419                     break
7420                   fi
7421                 done
7422                 if test -z "$haveit"; then
7423                   ltrpathdirs="$ltrpathdirs $found_dir"
7424                 fi
7425                                 if test "$hardcode_direct" = yes; then
7426                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7427                 else
7428                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7429                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7430                                                             haveit=
7431                     for x in $rpathdirs; do
7432                       if test "X$x" = "X$found_dir"; then
7433                         haveit=yes
7434                         break
7435                       fi
7436                     done
7437                     if test -z "$haveit"; then
7438                       rpathdirs="$rpathdirs $found_dir"
7439                     fi
7440                   else
7441                                                                                 haveit=
7442                     for x in $LDFLAGS $LIBINTL; do
7443
7444   acl_save_prefix="$prefix"
7445   prefix="$acl_final_prefix"
7446   acl_save_exec_prefix="$exec_prefix"
7447   exec_prefix="$acl_final_exec_prefix"
7448   eval x=\"$x\"
7449   exec_prefix="$acl_save_exec_prefix"
7450   prefix="$acl_save_prefix"
7451
7452                       if test "X$x" = "X-L$found_dir"; then
7453                         haveit=yes
7454                         break
7455                       fi
7456                     done
7457                     if test -z "$haveit"; then
7458                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7459                     fi
7460                     if test "$hardcode_minus_L" != no; then
7461                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7462                     else
7463                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7464                     fi
7465                   fi
7466                 fi
7467               fi
7468             else
7469               if test "X$found_a" != "X"; then
7470                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7471               else
7472                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7473               fi
7474             fi
7475                         additional_includedir=
7476             case "$found_dir" in
7477               */lib | */lib/)
7478                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7479                 additional_includedir="$basedir/include"
7480                 ;;
7481             esac
7482             if test "X$additional_includedir" != "X"; then
7483                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7484                 haveit=
7485                 if test "X$additional_includedir" = "X/usr/local/include"; then
7486                   if test -n "$GCC"; then
7487                     case $host_os in
7488                       linux*) haveit=yes;;
7489                     esac
7490                   fi
7491                 fi
7492                 if test -z "$haveit"; then
7493                   for x in $CPPFLAGS $INCINTL; do
7494
7495   acl_save_prefix="$prefix"
7496   prefix="$acl_final_prefix"
7497   acl_save_exec_prefix="$exec_prefix"
7498   exec_prefix="$acl_final_exec_prefix"
7499   eval x=\"$x\"
7500   exec_prefix="$acl_save_exec_prefix"
7501   prefix="$acl_save_prefix"
7502
7503                     if test "X$x" = "X-I$additional_includedir"; then
7504                       haveit=yes
7505                       break
7506                     fi
7507                   done
7508                   if test -z "$haveit"; then
7509                     if test -d "$additional_includedir"; then
7510                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7511                     fi
7512                   fi
7513                 fi
7514               fi
7515             fi
7516                         if test -n "$found_la"; then
7517                                                         save_libdir="$libdir"
7518               case "$found_la" in
7519                 */* | *\\*) . "$found_la" ;;
7520                 *) . "./$found_la" ;;
7521               esac
7522               libdir="$save_libdir"
7523                             for dep in $dependency_libs; do
7524                 case "$dep" in
7525                   -L*)
7526                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7527                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7528                       haveit=
7529                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7530                         if test -n "$GCC"; then
7531                           case $host_os in
7532                             linux*) haveit=yes;;
7533                           esac
7534                         fi
7535                       fi
7536                       if test -z "$haveit"; then
7537                         haveit=
7538                         for x in $LDFLAGS $LIBINTL; do
7539
7540   acl_save_prefix="$prefix"
7541   prefix="$acl_final_prefix"
7542   acl_save_exec_prefix="$exec_prefix"
7543   exec_prefix="$acl_final_exec_prefix"
7544   eval x=\"$x\"
7545   exec_prefix="$acl_save_exec_prefix"
7546   prefix="$acl_save_prefix"
7547
7548                           if test "X$x" = "X-L$additional_libdir"; then
7549                             haveit=yes
7550                             break
7551                           fi
7552                         done
7553                         if test -z "$haveit"; then
7554                           if test -d "$additional_libdir"; then
7555                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7556                           fi
7557                         fi
7558                         haveit=
7559                         for x in $LDFLAGS $LTLIBINTL; do
7560
7561   acl_save_prefix="$prefix"
7562   prefix="$acl_final_prefix"
7563   acl_save_exec_prefix="$exec_prefix"
7564   exec_prefix="$acl_final_exec_prefix"
7565   eval x=\"$x\"
7566   exec_prefix="$acl_save_exec_prefix"
7567   prefix="$acl_save_prefix"
7568
7569                           if test "X$x" = "X-L$additional_libdir"; then
7570                             haveit=yes
7571                             break
7572                           fi
7573                         done
7574                         if test -z "$haveit"; then
7575                           if test -d "$additional_libdir"; then
7576                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7577                           fi
7578                         fi
7579                       fi
7580                     fi
7581                     ;;
7582                   -R*)
7583                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7584                     if test "$enable_rpath" != no; then
7585                                                                   haveit=
7586                       for x in $rpathdirs; do
7587                         if test "X$x" = "X$dir"; then
7588                           haveit=yes
7589                           break
7590                         fi
7591                       done
7592                       if test -z "$haveit"; then
7593                         rpathdirs="$rpathdirs $dir"
7594                       fi
7595                                                                   haveit=
7596                       for x in $ltrpathdirs; do
7597                         if test "X$x" = "X$dir"; then
7598                           haveit=yes
7599                           break
7600                         fi
7601                       done
7602                       if test -z "$haveit"; then
7603                         ltrpathdirs="$ltrpathdirs $dir"
7604                       fi
7605                     fi
7606                     ;;
7607                   -l*)
7608                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7609                     ;;
7610                   *.la)
7611                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7612                     ;;
7613                   *)
7614                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7615                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7616                     ;;
7617                 esac
7618               done
7619             fi
7620           else
7621                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7622             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7623           fi
7624         fi
7625       fi
7626     done
7627   done
7628   if test "X$rpathdirs" != "X"; then
7629     if test -n "$hardcode_libdir_separator"; then
7630                         alldirs=
7631       for found_dir in $rpathdirs; do
7632         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7633       done
7634             acl_save_libdir="$libdir"
7635       libdir="$alldirs"
7636       eval flag=\"$hardcode_libdir_flag_spec\"
7637       libdir="$acl_save_libdir"
7638       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7639     else
7640             for found_dir in $rpathdirs; do
7641         acl_save_libdir="$libdir"
7642         libdir="$found_dir"
7643         eval flag=\"$hardcode_libdir_flag_spec\"
7644         libdir="$acl_save_libdir"
7645         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7646       done
7647     fi
7648   fi
7649   if test "X$ltrpathdirs" != "X"; then
7650             for found_dir in $ltrpathdirs; do
7651       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7652     done
7653   fi
7654
7655           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7656 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7657 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7658   echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660   gt_save_CPPFLAGS="$CPPFLAGS"
7661             CPPFLAGS="$CPPFLAGS $INCINTL"
7662             gt_save_LIBS="$LIBS"
7663             LIBS="$LIBS $LIBINTL"
7664                         cat >conftest.$ac_ext <<_ACEOF
7665 #line $LINENO "configure"
7666 /* confdefs.h.  */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h.  */
7671 #include <libintl.h>
7672 extern int _nl_msg_cat_cntr;
7673 extern
7674 #ifdef __cplusplus
7675 "C"
7676 #endif
7677 const char *_nl_expand_alias ();
7678 int
7679 main ()
7680 {
7681 bindtextdomain ("", "");
7682 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 rm -f conftest.$ac_objext conftest$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689   (eval $ac_link) 2>&5
7690   ac_status=$?
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); } &&
7693          { ac_try='test -s conftest$ac_exeext'
7694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695   (eval $ac_try) 2>&5
7696   ac_status=$?
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); }; }; then
7699   gt_cv_func_gnugettext1_libintl=yes
7700 else
7701   echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7703
7704 gt_cv_func_gnugettext1_libintl=no
7705 fi
7706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7707                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7708               LIBS="$LIBS $LIBICONV"
7709               cat >conftest.$ac_ext <<_ACEOF
7710 #line $LINENO "configure"
7711 /* confdefs.h.  */
7712 _ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h.  */
7716 #include <libintl.h>
7717 extern int _nl_msg_cat_cntr;
7718 extern
7719 #ifdef __cplusplus
7720 "C"
7721 #endif
7722 const char *_nl_expand_alias ();
7723 int
7724 main ()
7725 {
7726 bindtextdomain ("", "");
7727 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7728   ;
7729   return 0;
7730 }
7731 _ACEOF
7732 rm -f conftest.$ac_objext conftest$ac_exeext
7733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7734   (eval $ac_link) 2>&5
7735   ac_status=$?
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); } &&
7738          { ac_try='test -s conftest$ac_exeext'
7739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740   (eval $ac_try) 2>&5
7741   ac_status=$?
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); }; }; then
7744   LIBINTL="$LIBINTL $LIBICONV"
7745                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7746                 gt_cv_func_gnugettext1_libintl=yes
7747
7748 else
7749   echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7751
7752 fi
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7754             fi
7755             CPPFLAGS="$gt_save_CPPFLAGS"
7756             LIBS="$gt_save_LIBS"
7757 fi
7758 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7759 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7760         fi
7761
7762                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7763            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7764                 && test "$PACKAGE" != gettext-runtime \
7765                 && test "$PACKAGE" != gettext-tools; }; then
7766           gt_use_preinstalled_gnugettext=yes
7767         else
7768                     LIBINTL=
7769           LTLIBINTL=
7770           INCINTL=
7771         fi
7772
7773
7774
7775     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7776        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7777
7778 cat >>confdefs.h <<\_ACEOF
7779 #define ENABLE_NLS 1
7780 _ACEOF
7781
7782     else
7783       USE_NLS=no
7784     fi
7785   fi
7786
7787   echo "$as_me:$LINENO: checking whether to use NLS" >&5
7788 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
7789   echo "$as_me:$LINENO: result: $USE_NLS" >&5
7790 echo "${ECHO_T}$USE_NLS" >&6
7791   if test "$USE_NLS" = "yes"; then
7792     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7793 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
7794     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7795       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7796         gt_source="external libintl"
7797       else
7798         gt_source="libc"
7799       fi
7800     else
7801       gt_source="included intl directory"
7802     fi
7803     echo "$as_me:$LINENO: result: $gt_source" >&5
7804 echo "${ECHO_T}$gt_source" >&6
7805   fi
7806
7807   if test "$USE_NLS" = "yes"; then
7808
7809     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7810       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7811         echo "$as_me:$LINENO: checking how to link with libintl" >&5
7812 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
7813         echo "$as_me:$LINENO: result: $LIBINTL" >&5
7814 echo "${ECHO_T}$LIBINTL" >&6
7815
7816   for element in $INCINTL; do
7817     haveit=
7818     for x in $CPPFLAGS; do
7819
7820   acl_save_prefix="$prefix"
7821   prefix="$acl_final_prefix"
7822   acl_save_exec_prefix="$exec_prefix"
7823   exec_prefix="$acl_final_exec_prefix"
7824   eval x=\"$x\"
7825   exec_prefix="$acl_save_exec_prefix"
7826   prefix="$acl_save_prefix"
7827
7828       if test "X$x" = "X$element"; then
7829         haveit=yes
7830         break
7831       fi
7832     done
7833     if test -z "$haveit"; then
7834       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7835     fi
7836   done
7837
7838       fi
7839
7840
7841 cat >>confdefs.h <<\_ACEOF
7842 #define HAVE_GETTEXT 1
7843 _ACEOF
7844
7845
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_DCGETTEXT 1
7848 _ACEOF
7849
7850     fi
7851
7852         POSUB=po
7853   fi
7854
7855
7856
7857     INTLLIBS="$LIBINTL"
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867 USE_PTYS=0
7868 case "$host" in
7869   *-*-hpux* )
7870     cat >>confdefs.h <<\_ACEOF
7871 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
7872 _ACEOF
7873
7874     cat >>confdefs.h <<\_ACEOF
7875 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
7876 _ACEOF
7877
7878     if test "$GCC" = yes; then
7879       CONF_CFLAGS="-fwritable-strings"
7880     else
7881
7882
7883       CONF_CFLAGS="-Aa -D_HPUX_SOURCE"
7884     fi
7885
7886
7887     if test -d /opt/hppd/include/X11; then
7888       X_CFLAGS="$X_CFLAGS -I/opt/hppd/include"
7889       X_LIBS="$X_LIBS -L/opt/hppd/lib"
7890     elif test -d /usr/contrib/X11R5/include; then
7891       X_CFLAGS="$X_CFLAGS -I/usr/contrib/X11R5/include"
7892       X_LIBS="$X_LIBS -L/usr/contrib/X11R5/lib"
7893     elif test -d /usr/contrib/mitX11R5/include; then
7894       X_CFLAGS="$X_CFLAGS -I/usr/contrib/mitX11R5/include"
7895       X_LIBS="$X_LIBS -L/usr/contrib/mitX11R5/lib"
7896     elif test -d /MIT/X11R5/include; then
7897       X_CFLAGS="$X_CFLAGS -I/MIT/X11R5/include"
7898       X_LIBS="$X_LIBS -L/MIT/X11R5/lib"
7899     elif test -d /usr/local/include/X11R5; then
7900       X_CFLAGS="$X_CFLAGS -I/usr/local/include/X11R5"
7901       X_LIBS="$X_LIBS -L/usr/local/lib/X11R5"
7902     fi
7903     if test -d /usr/include/X11R5; then
7904       X_CFLAGS="$X_CFLAGS -I/usr/include/X11R5"
7905       X_LIBS="$X_LIBS -L/usr/lib/X11R5 -L/usr/lib/X11R4"
7906     elif test -d /usr/include/X11R4; then
7907       X_CFLAGS="$X_CFLAGS -I/usr/include/X11R4"
7908       X_LIBS="$X_LIBS -L/usr/lib/X11R4"
7909     fi
7910   ;;
7911
7912   romp-ibm-aix* )
7913     cat >>confdefs.h <<\_ACEOF
7914 #define IBMRTAIX 1
7915 _ACEOF
7916
7917   ;;
7918
7919   i386-ibm-aix )
7920     if test "$GCC" = yes; then
7921       CONF_CFLAGS="-fwritable-strings"
7922     fi
7923   ;;
7924
7925   *-*-aix3* | *-*-bosx* )
7926     cat >>confdefs.h <<\_ACEOF
7927 #define PTY_ITERATION for (c = 0; !c; c++)
7928 _ACEOF
7929
7930     cat >>confdefs.h <<\_ACEOF
7931 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
7932 _ACEOF
7933
7934     cat >>confdefs.h <<\_ACEOF
7935 #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));
7936 _ACEOF
7937
7938   ;;
7939
7940   *-*-cxux* )
7941     cat >>confdefs.h <<\_ACEOF
7942 #define FIRST_PTY_LETTER 'A'
7943 _ACEOF
7944
7945     cat >>confdefs.h <<\_ACEOF
7946 #define LAST_PTY_LETTER 'P'
7947 _ACEOF
7948
7949   ;;
7950
7951   *-*-uniplus* )
7952     cat >>confdefs.h <<\_ACEOF
7953 #define UNIPLUS 1
7954 _ACEOF
7955
7956   ;;
7957
7958   *-*-rtu* )
7959     cat >>confdefs.h <<\_ACEOF
7960 #define FIRST_PTY_LETTER 'z'
7961 _ACEOF
7962
7963     cat >>confdefs.h <<\_ACEOF
7964 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%x", i);
7965 _ACEOF
7966
7967     cat >>confdefs.h <<\_ACEOF
7968 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty%x", i);
7969 _ACEOF
7970
7971     cat >>confdefs.h <<\_ACEOF
7972 #define RTU 1
7973 _ACEOF
7974
7975   ;;
7976
7977   *-*-iris* | *-*-irix3* )
7978     cat >>confdefs.h <<\_ACEOF
7979 #define PTY_ITERATION for (c = 0; !c; c++)
7980 _ACEOF
7981
7982     cat >>confdefs.h <<\_ACEOF
7983 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
7984 _ACEOF
7985
7986     cat >>confdefs.h <<\_ACEOF
7987 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyq%d", minor(stb.st_rdev));
7988 _ACEOF
7989
7990   ;;
7991
7992   *-*-irix* )
7993   ;;
7994
7995   *-*-sunos4* | *-*-solaris1* )
7996
7997
7998     if test "$GCC" = yes; then
7999       PRE_XMULIB="-static"
8000       POST_XMULIB="-dynamic"
8001     else
8002       PRE_XMULIB="-Bstatic"
8003       POST_XMULIB="-Bdynamic"
8004     fi
8005   ;;
8006
8007   *-*-sunos5* | *-*-solaris2* )
8008
8009
8010     X_LIBS="$X_LIBS -lelf"
8011   ;;
8012
8013   *-*-sco* )
8014     cat >>confdefs.h <<\_ACEOF
8015 #define PTY_ITERATION for (i = 0; ; i++)
8016 _ACEOF
8017
8018     cat >>confdefs.h <<\_ACEOF
8019 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptyp%d", i);
8020 _ACEOF
8021
8022     cat >>confdefs.h <<\_ACEOF
8023 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%d", i);
8024 _ACEOF
8025
8026   ;;
8027
8028   *-*-dynix* | *-*-ptx* )
8029   ;;
8030
8031   *-*-esix* )
8032   ;;
8033
8034   *-*-usg5-4* | *-*-sysvr4* )
8035   ;;
8036
8037   *-*-usg* | *-*-sysv* | *-*-aix* )
8038   ;;
8039
8040   vax-*-ultrix )
8041     if test "$GCC" = yes; then
8042       CONF_CFLAGS="-fwritable-strings"
8043     fi
8044   ;;
8045 esac
8046
8047 # Check whether --enable-xpm or --disable-xpm was given.
8048 if test "${enable_xpm+set}" = set; then
8049   enableval="$enable_xpm"
8050   enable_xpm="$enableval"
8051 else
8052   enable_xpm="yes"
8053 fi;
8054
8055 if test "$enable_xpm" = "yes"; then
8056   save_cflags="$CFLAGS"
8057   CFLAGS="$CFLAGS $X_CFLAGS"
8058   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8059
8060 for ac_header in X11/xpm.h
8061 do
8062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8064   echo "$as_me:$LINENO: checking for $ac_header" >&5
8065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8067   echo $ECHO_N "(cached) $ECHO_C" >&6
8068 fi
8069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8071 else
8072   # Is the header compilable?
8073 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8075 cat >conftest.$ac_ext <<_ACEOF
8076 #line $LINENO "configure"
8077 /* confdefs.h.  */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h.  */
8082 $ac_includes_default
8083 #include <$ac_header>
8084 _ACEOF
8085 rm -f conftest.$ac_objext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8087   (eval $ac_compile) 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); } &&
8091          { ac_try='test -s conftest.$ac_objext'
8092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093   (eval $ac_try) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   ac_header_compiler=yes
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102 ac_header_compiler=no
8103 fi
8104 rm -f conftest.$ac_objext conftest.$ac_ext
8105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8106 echo "${ECHO_T}$ac_header_compiler" >&6
8107
8108 # Is the header present?
8109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8111 cat >conftest.$ac_ext <<_ACEOF
8112 #line $LINENO "configure"
8113 /* confdefs.h.  */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h.  */
8118 #include <$ac_header>
8119 _ACEOF
8120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } >/dev/null; then
8128   if test -s conftest.err; then
8129     ac_cpp_err=$ac_c_preproc_warn_flag
8130   else
8131     ac_cpp_err=
8132   fi
8133 else
8134   ac_cpp_err=yes
8135 fi
8136 if test -z "$ac_cpp_err"; then
8137   ac_header_preproc=yes
8138 else
8139   echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8141
8142   ac_header_preproc=no
8143 fi
8144 rm -f conftest.err conftest.$ac_ext
8145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8146 echo "${ECHO_T}$ac_header_preproc" >&6
8147
8148 # So?  What about this header?
8149 case $ac_header_compiler:$ac_header_preproc in
8150   yes:no )
8151     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8155     (
8156       cat <<\_ASBOX
8157 ## ------------------------------------ ##
8158 ## Report this to bug-autoconf@gnu.org. ##
8159 ## ------------------------------------ ##
8160 _ASBOX
8161     ) |
8162       sed "s/^/$as_me: WARNING:     /" >&2
8163     ;;
8164   no:yes )
8165     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8167     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8171     (
8172       cat <<\_ASBOX
8173 ## ------------------------------------ ##
8174 ## Report this to bug-autoconf@gnu.org. ##
8175 ## ------------------------------------ ##
8176 _ASBOX
8177     ) |
8178       sed "s/^/$as_me: WARNING:     /" >&2
8179     ;;
8180 esac
8181 echo "$as_me:$LINENO: checking for $ac_header" >&5
8182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8184   echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186   eval "$as_ac_Header=$ac_header_preproc"
8187 fi
8188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8190
8191 fi
8192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8193   cat >>confdefs.h <<_ACEOF
8194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8195 _ACEOF
8196
8197 fi
8198
8199 done
8200
8201   CFLAGS="$save_cflags"
8202   if test "$ac_cv_header_X11_xpm_h" = "yes"; then
8203     save_ldflags="$LDFLAGS"
8204     LDFLAGS="$LDFLAGS $X_LIBS"
8205     echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8206 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8207 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   ac_check_lib_save_LIBS=$LIBS
8211 LIBS="-lXpm $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8212 cat >conftest.$ac_ext <<_ACEOF
8213 #line $LINENO "configure"
8214 /* confdefs.h.  */
8215 _ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h.  */
8219
8220 /* Override any gcc2 internal prototype to avoid an error.  */
8221 #ifdef __cplusplus
8222 extern "C"
8223 #endif
8224 /* We use char because int might match the return type of a gcc2
8225    builtin and then its argument prototype would still apply.  */
8226 char XpmReadFileToPixmap ();
8227 int
8228 main ()
8229 {
8230 XpmReadFileToPixmap ();
8231   ;
8232   return 0;
8233 }
8234 _ACEOF
8235 rm -f conftest.$ac_objext conftest$ac_exeext
8236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8237   (eval $ac_link) 2>&5
8238   ac_status=$?
8239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240   (exit $ac_status); } &&
8241          { ac_try='test -s conftest$ac_exeext'
8242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243   (eval $ac_try) 2>&5
8244   ac_status=$?
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); }; }; then
8247   ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8248 else
8249   echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8251
8252 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8253 fi
8254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8255 LIBS=$ac_check_lib_save_LIBS
8256 fi
8257 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8258 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8259 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8260   X_PRE_LIBS="-lXpm $X_PRE_LIBS"; cat >>confdefs.h <<\_ACEOF
8261 #define HAVE_LIBXPM 1
8262 _ACEOF
8263
8264 fi
8265
8266     LDFLAGS="$save_ldflags"
8267   fi
8268 fi
8269
8270
8271
8272
8273
8274
8275 echo "$as_me:$LINENO: checking whether ptys or pipes should be used" >&5
8276 echo $ECHO_N "checking whether ptys or pipes should be used... $ECHO_C" >&6
8277 # Check whether --enable-ptys or --disable-ptys was given.
8278 if test "${enable_ptys+set}" = set; then
8279   enableval="$enable_ptys"
8280   if test "$enableval" = yes; then
8281   USE_PTYS=1
8282   echo "$as_me:$LINENO: result: ptys (user override)" >&5
8283 echo "${ECHO_T}ptys (user override)" >&6
8284 fi
8285 if test "$enableval" = no; then
8286   USE_PTYS=0
8287   echo "$as_me:$LINENO: result: pipes (user override)" >&5
8288 echo "${ECHO_T}pipes (user override)" >&6
8289 fi
8290 else
8291   if test "$USE_PTYS" = 1; then
8292   echo "$as_me:$LINENO: result: ptys" >&5
8293 echo "${ECHO_T}ptys" >&6
8294 else
8295   echo "$as_me:$LINENO: result: pipes" >&5
8296 echo "${ECHO_T}pipes" >&6
8297 fi
8298 fi;
8299 cat >>confdefs.h <<_ACEOF
8300 #define USE_PTYS $USE_PTYS
8301 _ACEOF
8302
8303
8304 # Check whether --enable-zippy or --disable-zippy was given.
8305 if test "${enable_zippy+set}" = set; then
8306   enableval="$enable_zippy"
8307   enable_zippy="$enableval"
8308 else
8309   enable_zippy="yes"
8310 fi;
8311 if test "$enable_zippy" = yes; then
8312   cat >>confdefs.h <<\_ACEOF
8313 #define ZIPPY 1
8314 _ACEOF
8315
8316   ZIPPY_O=zippy.o
8317   ZIPPY_H=zippy.h
8318 fi
8319
8320
8321
8322 # Check whether --enable-sigint or --disable-sigint was given.
8323 if test "${enable_sigint+set}" = set; then
8324   enableval="$enable_sigint"
8325   if test "$enableval" = yes; then
8326   cat >>confdefs.h <<\_ACEOF
8327 #define ATTENTION 1
8328 _ACEOF
8329
8330 fi
8331 else
8332   cat >>confdefs.h <<\_ACEOF
8333 #define ATTENTION 1
8334 _ACEOF
8335
8336 fi;
8337
8338 cat >>confdefs.h <<_ACEOF
8339 #define PRODUCT "$PRODUCT"
8340 _ACEOF
8341
8342 cat >>confdefs.h <<_ACEOF
8343 #define VERSION "$VERSION"
8344 _ACEOF
8345
8346 cat >>confdefs.h <<_ACEOF
8347 #define PATCHLEVEL "$PATCHLEVEL"
8348 _ACEOF
8349
8350
8351
8352
8353
8354                                         ac_config_files="$ac_config_files Makefile cmail xboard.texinfo po/Makefile.in"
8355           ac_config_commands="$ac_config_commands default"
8356 cat >confcache <<\_ACEOF
8357 # This file is a shell script that caches the results of configure
8358 # tests run on this system so they can be shared between configure
8359 # scripts and configure runs, see configure's option --config-cache.
8360 # It is not useful on other systems.  If it contains results you don't
8361 # want to keep, you may remove or edit it.
8362 #
8363 # config.status only pays attention to the cache file if you give it
8364 # the --recheck option to rerun configure.
8365 #
8366 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8367 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8368 # following values.
8369
8370 _ACEOF
8371
8372 # The following way of writing the cache mishandles newlines in values,
8373 # but we know of no workaround that is simple, portable, and efficient.
8374 # So, don't put newlines in cache variables' values.
8375 # Ultrix sh set writes to stderr and can't be redirected directly,
8376 # and sets the high bit in the cache file unless we assign to the vars.
8377 {
8378   (set) 2>&1 |
8379     case `(ac_space=' '; set | grep ac_space) 2>&1` in
8380     *ac_space=\ *)
8381       # `set' does not quote correctly, so add quotes (double-quote
8382       # substitution turns \\\\ into \\, and sed turns \\ into \).
8383       sed -n \
8384         "s/'/'\\\\''/g;
8385           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8386       ;;
8387     *)
8388       # `set' quotes correctly as required by POSIX, so do not add quotes.
8389       sed -n \
8390         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8391       ;;
8392     esac;
8393 } |
8394   sed '
8395      t clear
8396      : clear
8397      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8398      t end
8399      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8400      : end' >>confcache
8401 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8402   if test -w $cache_file; then
8403     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8404     cat confcache >$cache_file
8405   else
8406     echo "not updating unwritable cache $cache_file"
8407   fi
8408 fi
8409 rm -f confcache
8410
8411 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8412 # Let make expand exec_prefix.
8413 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8414
8415 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8416 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8417 # trailing colons and then remove the whole line if VPATH becomes empty
8418 # (actually we leave an empty line to preserve line numbers).
8419 if test "x$srcdir" = x.; then
8420   ac_vpsub='/^[         ]*VPATH[        ]*=/{
8421 s/:*\$(srcdir):*/:/;
8422 s/:*\${srcdir}:*/:/;
8423 s/:*@srcdir@:*/:/;
8424 s/^\([^=]*=[    ]*\):*/\1/;
8425 s/:*$//;
8426 s/^[^=]*=[      ]*$//;
8427 }'
8428 fi
8429
8430 DEFS=-DHAVE_CONFIG_H
8431
8432 ac_libobjs=
8433 ac_ltlibobjs=
8434 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8435   # 1. Remove the extension, and $U if already installed.
8436   ac_i=`echo "$ac_i" |
8437          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8438   # 2. Add them.
8439   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8440   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8441 done
8442 LIBOBJS=$ac_libobjs
8443
8444 LTLIBOBJS=$ac_ltlibobjs
8445
8446
8447
8448 : ${CONFIG_STATUS=./config.status}
8449 ac_clean_files_save=$ac_clean_files
8450 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8451 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8452 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8453 cat >$CONFIG_STATUS <<_ACEOF
8454 #! $SHELL
8455 # Generated by $as_me.
8456 # Run this file to recreate the current configuration.
8457 # Compiler output produced by configure, useful for debugging
8458 # configure, is in config.log if it exists.
8459
8460 debug=false
8461 ac_cs_recheck=false
8462 ac_cs_silent=false
8463 SHELL=\${CONFIG_SHELL-$SHELL}
8464 _ACEOF
8465
8466 cat >>$CONFIG_STATUS <<\_ACEOF
8467 ## --------------------- ##
8468 ## M4sh Initialization.  ##
8469 ## --------------------- ##
8470
8471 # Be Bourne compatible
8472 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8473   emulate sh
8474   NULLCMD=:
8475   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8476   # is contrary to our usage.  Disable this feature.
8477   alias -g '${1+"$@"}'='"$@"'
8478 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8479   set -o posix
8480 fi
8481
8482 # Support unset when possible.
8483 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8484   as_unset=unset
8485 else
8486   as_unset=false
8487 fi
8488
8489
8490 # Work around bugs in pre-3.0 UWIN ksh.
8491 $as_unset ENV MAIL MAILPATH
8492 PS1='$ '
8493 PS2='> '
8494 PS4='+ '
8495
8496 # NLS nuisances.
8497 for as_var in \
8498   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8499   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8500   LC_TELEPHONE LC_TIME
8501 do
8502   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8503     eval $as_var=C; export $as_var
8504   else
8505     $as_unset $as_var
8506   fi
8507 done
8508
8509 # Required to use basename.
8510 if expr a : '\(a\)' >/dev/null 2>&1; then
8511   as_expr=expr
8512 else
8513   as_expr=false
8514 fi
8515
8516 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8517   as_basename=basename
8518 else
8519   as_basename=false
8520 fi
8521
8522
8523 # Name of the executable.
8524 as_me=`$as_basename "$0" ||
8525 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8526          X"$0" : 'X\(//\)$' \| \
8527          X"$0" : 'X\(/\)$' \| \
8528          .     : '\(.\)' 2>/dev/null ||
8529 echo X/"$0" |
8530     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8531           /^X\/\(\/\/\)$/{ s//\1/; q; }
8532           /^X\/\(\/\).*/{ s//\1/; q; }
8533           s/.*/./; q'`
8534
8535
8536 # PATH needs CR, and LINENO needs CR and PATH.
8537 # Avoid depending upon Character Ranges.
8538 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8539 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8540 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8541 as_cr_digits='0123456789'
8542 as_cr_alnum=$as_cr_Letters$as_cr_digits
8543
8544 # The user is always right.
8545 if test "${PATH_SEPARATOR+set}" != set; then
8546   echo "#! /bin/sh" >conf$$.sh
8547   echo  "exit 0"   >>conf$$.sh
8548   chmod +x conf$$.sh
8549   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8550     PATH_SEPARATOR=';'
8551   else
8552     PATH_SEPARATOR=:
8553   fi
8554   rm -f conf$$.sh
8555 fi
8556
8557
8558   as_lineno_1=$LINENO
8559   as_lineno_2=$LINENO
8560   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8561   test "x$as_lineno_1" != "x$as_lineno_2" &&
8562   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8563   # Find who we are.  Look in the path if we contain no path at all
8564   # relative or not.
8565   case $0 in
8566     *[\\/]* ) as_myself=$0 ;;
8567     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570   IFS=$as_save_IFS
8571   test -z "$as_dir" && as_dir=.
8572   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8573 done
8574
8575        ;;
8576   esac
8577   # We did not find ourselves, most probably we were run as `sh COMMAND'
8578   # in which case we are not to be found in the path.
8579   if test "x$as_myself" = x; then
8580     as_myself=$0
8581   fi
8582   if test ! -f "$as_myself"; then
8583     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8584 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8585    { (exit 1); exit 1; }; }
8586   fi
8587   case $CONFIG_SHELL in
8588   '')
8589     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8591 do
8592   IFS=$as_save_IFS
8593   test -z "$as_dir" && as_dir=.
8594   for as_base in sh bash ksh sh5; do
8595          case $as_dir in
8596          /*)
8597            if ("$as_dir/$as_base" -c '
8598   as_lineno_1=$LINENO
8599   as_lineno_2=$LINENO
8600   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8601   test "x$as_lineno_1" != "x$as_lineno_2" &&
8602   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8603              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8604              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8605              CONFIG_SHELL=$as_dir/$as_base
8606              export CONFIG_SHELL
8607              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8608            fi;;
8609          esac
8610        done
8611 done
8612 ;;
8613   esac
8614
8615   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8616   # uniformly replaced by the line number.  The first 'sed' inserts a
8617   # line-number line before each line; the second 'sed' does the real
8618   # work.  The second script uses 'N' to pair each line-number line
8619   # with the numbered line, and appends trailing '-' during
8620   # substitution so that $LINENO is not a special case at line end.
8621   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8622   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8623   sed '=' <$as_myself |
8624     sed '
8625       N
8626       s,$,-,
8627       : loop
8628       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8629       t loop
8630       s,-$,,
8631       s,^['$as_cr_digits']*\n,,
8632     ' >$as_me.lineno &&
8633   chmod +x $as_me.lineno ||
8634     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8635 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8636    { (exit 1); exit 1; }; }
8637
8638   # Don't try to exec as it changes $[0], causing all sort of problems
8639   # (the dirname of $[0] is not the place where we might find the
8640   # original and so on.  Autoconf is especially sensible to this).
8641   . ./$as_me.lineno
8642   # Exit status is that of the last command.
8643   exit
8644 }
8645
8646
8647 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8648   *c*,-n*) ECHO_N= ECHO_C='
8649 ' ECHO_T='      ' ;;
8650   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8651   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8652 esac
8653
8654 if expr a : '\(a\)' >/dev/null 2>&1; then
8655   as_expr=expr
8656 else
8657   as_expr=false
8658 fi
8659
8660 rm -f conf$$ conf$$.exe conf$$.file
8661 echo >conf$$.file
8662 if ln -s conf$$.file conf$$ 2>/dev/null; then
8663   # We could just check for DJGPP; but this test a) works b) is more generic
8664   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8665   if test -f conf$$.exe; then
8666     # Don't use ln at all; we don't have any links
8667     as_ln_s='cp -p'
8668   else
8669     as_ln_s='ln -s'
8670   fi
8671 elif ln conf$$.file conf$$ 2>/dev/null; then
8672   as_ln_s=ln
8673 else
8674   as_ln_s='cp -p'
8675 fi
8676 rm -f conf$$ conf$$.exe conf$$.file
8677
8678 if mkdir -p . 2>/dev/null; then
8679   as_mkdir_p=:
8680 else
8681   as_mkdir_p=false
8682 fi
8683
8684 as_executable_p="test -f"
8685
8686 # Sed expression to map a string onto a valid CPP name.
8687 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8688
8689 # Sed expression to map a string onto a valid variable name.
8690 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8691
8692
8693 # IFS
8694 # We need space, tab and new line, in precisely that order.
8695 as_nl='
8696 '
8697 IFS="   $as_nl"
8698
8699 # CDPATH.
8700 $as_unset CDPATH
8701
8702 exec 6>&1
8703
8704 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8705 # report actual input values of CONFIG_FILES etc. instead of their
8706 # values after options handling.  Logging --version etc. is OK.
8707 exec 5>>config.log
8708 {
8709   echo
8710   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8711 ## Running $as_me. ##
8712 _ASBOX
8713 } >&5
8714 cat >&5 <<_CSEOF
8715
8716 This file was extended by $as_me, which was
8717 generated by GNU Autoconf 2.57.  Invocation command line was
8718
8719   CONFIG_FILES    = $CONFIG_FILES
8720   CONFIG_HEADERS  = $CONFIG_HEADERS
8721   CONFIG_LINKS    = $CONFIG_LINKS
8722   CONFIG_COMMANDS = $CONFIG_COMMANDS
8723   $ $0 $@
8724
8725 _CSEOF
8726 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8727 echo >&5
8728 _ACEOF
8729
8730 # Files that config.status was made for.
8731 if test -n "$ac_config_files"; then
8732   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8733 fi
8734
8735 if test -n "$ac_config_headers"; then
8736   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8737 fi
8738
8739 if test -n "$ac_config_links"; then
8740   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8741 fi
8742
8743 if test -n "$ac_config_commands"; then
8744   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8745 fi
8746
8747 cat >>$CONFIG_STATUS <<\_ACEOF
8748
8749 ac_cs_usage="\
8750 \`$as_me' instantiates files from templates according to the
8751 current configuration.
8752
8753 Usage: $0 [OPTIONS] [FILE]...
8754
8755   -h, --help       print this help, then exit
8756   -V, --version    print version number, then exit
8757   -q, --quiet      do not print progress messages
8758   -d, --debug      don't remove temporary files
8759       --recheck    update $as_me by reconfiguring in the same conditions
8760   --file=FILE[:TEMPLATE]
8761                    instantiate the configuration file FILE
8762   --header=FILE[:TEMPLATE]
8763                    instantiate the configuration header FILE
8764
8765 Configuration files:
8766 $config_files
8767
8768 Configuration headers:
8769 $config_headers
8770
8771 Configuration commands:
8772 $config_commands
8773
8774 Report bugs to <bug-autoconf@gnu.org>."
8775 _ACEOF
8776
8777 cat >>$CONFIG_STATUS <<_ACEOF
8778 ac_cs_version="\\
8779 config.status
8780 configured by $0, generated by GNU Autoconf 2.57,
8781   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8782
8783 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8784 Free Software Foundation, Inc.
8785 This config.status script is free software; the Free Software Foundation
8786 gives unlimited permission to copy, distribute and modify it."
8787 srcdir=$srcdir
8788 INSTALL="$INSTALL"
8789 _ACEOF
8790
8791 cat >>$CONFIG_STATUS <<\_ACEOF
8792 # If no file are specified by the user, then we need to provide default
8793 # value.  By we need to know if files were specified by the user.
8794 ac_need_defaults=:
8795 while test $# != 0
8796 do
8797   case $1 in
8798   --*=*)
8799     ac_option=`expr "x$1" : 'x\([^=]*\)='`
8800     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8801     ac_shift=:
8802     ;;
8803   -*)
8804     ac_option=$1
8805     ac_optarg=$2
8806     ac_shift=shift
8807     ;;
8808   *) # This is not an option, so the user has probably given explicit
8809      # arguments.
8810      ac_option=$1
8811      ac_need_defaults=false;;
8812   esac
8813
8814   case $ac_option in
8815   # Handling of the options.
8816 _ACEOF
8817 cat >>$CONFIG_STATUS <<\_ACEOF
8818   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8819     ac_cs_recheck=: ;;
8820   --version | --vers* | -V )
8821     echo "$ac_cs_version"; exit 0 ;;
8822   --he | --h)
8823     # Conflict between --help and --header
8824     { { echo "$as_me:$LINENO: error: ambiguous option: $1
8825 Try \`$0 --help' for more information." >&5
8826 echo "$as_me: error: ambiguous option: $1
8827 Try \`$0 --help' for more information." >&2;}
8828    { (exit 1); exit 1; }; };;
8829   --help | --hel | -h )
8830     echo "$ac_cs_usage"; exit 0 ;;
8831   --debug | --d* | -d )
8832     debug=: ;;
8833   --file | --fil | --fi | --f )
8834     $ac_shift
8835     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8836     ac_need_defaults=false;;
8837   --header | --heade | --head | --hea )
8838     $ac_shift
8839     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8840     ac_need_defaults=false;;
8841   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8842   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8843     ac_cs_silent=: ;;
8844
8845   # This is an error.
8846   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8847 Try \`$0 --help' for more information." >&5
8848 echo "$as_me: error: unrecognized option: $1
8849 Try \`$0 --help' for more information." >&2;}
8850    { (exit 1); exit 1; }; } ;;
8851
8852   *) ac_config_targets="$ac_config_targets $1" ;;
8853
8854   esac
8855   shift
8856 done
8857
8858 ac_configure_extra_args=
8859
8860 if $ac_cs_silent; then
8861   exec 6>/dev/null
8862   ac_configure_extra_args="$ac_configure_extra_args --silent"
8863 fi
8864
8865 _ACEOF
8866 cat >>$CONFIG_STATUS <<_ACEOF
8867 if \$ac_cs_recheck; then
8868   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8869   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8870 fi
8871
8872 _ACEOF
8873
8874 cat >>$CONFIG_STATUS <<_ACEOF
8875 #
8876 # INIT-COMMANDS section.
8877 #
8878
8879 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8880     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
8881     # from automake.
8882     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8883     # Capture the value of LINGUAS because we need it to compute CATALOGS.
8884     LINGUAS="${LINGUAS-%UNSET%}"
8885
8886
8887 _ACEOF
8888
8889
8890
8891 cat >>$CONFIG_STATUS <<\_ACEOF
8892 for ac_config_target in $ac_config_targets
8893 do
8894   case "$ac_config_target" in
8895   # Handling of arguments.
8896   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8897   "cmail" ) CONFIG_FILES="$CONFIG_FILES cmail" ;;
8898   "xboard.texinfo" ) CONFIG_FILES="$CONFIG_FILES xboard.texinfo" ;;
8899   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8900   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8901   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8902   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8903   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8904 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8905    { (exit 1); exit 1; }; };;
8906   esac
8907 done
8908
8909 # If the user did not use the arguments to specify the items to instantiate,
8910 # then the envvar interface is used.  Set only those that are not.
8911 # We use the long form for the default assignment because of an extremely
8912 # bizarre bug on SunOS 4.1.3.
8913 if $ac_need_defaults; then
8914   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8915   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8916   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8917 fi
8918
8919 # Have a temporary directory for convenience.  Make it in the build tree
8920 # simply because there is no reason to put it here, and in addition,
8921 # creating and moving files from /tmp can sometimes cause problems.
8922 # Create a temporary directory, and hook for its removal unless debugging.
8923 $debug ||
8924 {
8925   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8926   trap '{ (exit 1); exit 1; }' 1 2 13 15
8927 }
8928
8929 # Create a (secure) tmp directory for tmp files.
8930
8931 {
8932   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8933   test -n "$tmp" && test -d "$tmp"
8934 }  ||
8935 {
8936   tmp=./confstat$$-$RANDOM
8937   (umask 077 && mkdir $tmp)
8938 } ||
8939 {
8940    echo "$me: cannot create a temporary directory in ." >&2
8941    { (exit 1); exit 1; }
8942 }
8943
8944 _ACEOF
8945
8946 cat >>$CONFIG_STATUS <<_ACEOF
8947
8948 #
8949 # CONFIG_FILES section.
8950 #
8951
8952 # No need to generate the scripts if there are no CONFIG_FILES.
8953 # This happens for instance when ./config.status config.h
8954 if test -n "\$CONFIG_FILES"; then
8955   # Protect against being on the right side of a sed subst in config.status.
8956   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8957    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8958 s,@SHELL@,$SHELL,;t t
8959 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8960 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8961 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8962 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8963 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8964 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8965 s,@exec_prefix@,$exec_prefix,;t t
8966 s,@prefix@,$prefix,;t t
8967 s,@program_transform_name@,$program_transform_name,;t t
8968 s,@bindir@,$bindir,;t t
8969 s,@sbindir@,$sbindir,;t t
8970 s,@libexecdir@,$libexecdir,;t t
8971 s,@datadir@,$datadir,;t t
8972 s,@sysconfdir@,$sysconfdir,;t t
8973 s,@sharedstatedir@,$sharedstatedir,;t t
8974 s,@localstatedir@,$localstatedir,;t t
8975 s,@libdir@,$libdir,;t t
8976 s,@includedir@,$includedir,;t t
8977 s,@oldincludedir@,$oldincludedir,;t t
8978 s,@infodir@,$infodir,;t t
8979 s,@mandir@,$mandir,;t t
8980 s,@build_alias@,$build_alias,;t t
8981 s,@host_alias@,$host_alias,;t t
8982 s,@target_alias@,$target_alias,;t t
8983 s,@DEFS@,$DEFS,;t t
8984 s,@ECHO_C@,$ECHO_C,;t t
8985 s,@ECHO_N@,$ECHO_N,;t t
8986 s,@ECHO_T@,$ECHO_T,;t t
8987 s,@LIBS@,$LIBS,;t t
8988 s,@CC@,$CC,;t t
8989 s,@CFLAGS@,$CFLAGS,;t t
8990 s,@LDFLAGS@,$LDFLAGS,;t t
8991 s,@CPPFLAGS@,$CPPFLAGS,;t t
8992 s,@ac_ct_CC@,$ac_ct_CC,;t t
8993 s,@EXEEXT@,$EXEEXT,;t t
8994 s,@OBJEXT@,$OBJEXT,;t t
8995 s,@CPP@,$CPP,;t t
8996 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8997 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8998 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8999 s,@LEX@,$LEX,;t t
9000 s,@LEXLIB@,$LEXLIB,;t t
9001 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9002 s,@RSH@,$RSH,;t t
9003 s,@NROFF@,$NROFF,;t t
9004 s,@NROFFFLAGS@,$NROFFFLAGS,;t t
9005 s,@AWKPATH@,$AWKPATH,;t t
9006 s,@PERLPATH@,$PERLPATH,;t t
9007 s,@XAW_LIBS@,$XAW_LIBS,;t t
9008 s,@EGREP@,$EGREP,;t t
9009 s,@X_CFLAGS@,$X_CFLAGS,;t t
9010 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9011 s,@X_LIBS@,$X_LIBS,;t t
9012 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9013 s,@build@,$build,;t t
9014 s,@build_cpu@,$build_cpu,;t t
9015 s,@build_vendor@,$build_vendor,;t t
9016 s,@build_os@,$build_os,;t t
9017 s,@host@,$host,;t t
9018 s,@host_cpu@,$host_cpu,;t t
9019 s,@host_vendor@,$host_vendor,;t t
9020 s,@host_os@,$host_os,;t t
9021 s,@SET_MAKE@,$SET_MAKE,;t t
9022 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9023 s,@USE_NLS@,$USE_NLS,;t t
9024 s,@MSGFMT@,$MSGFMT,;t t
9025 s,@GMSGFMT@,$GMSGFMT,;t t
9026 s,@XGETTEXT@,$XGETTEXT,;t t
9027 s,@MSGMERGE@,$MSGMERGE,;t t
9028 s,@LIBICONV@,$LIBICONV,;t t
9029 s,@LTLIBICONV@,$LTLIBICONV,;t t
9030 s,@INTLLIBS@,$INTLLIBS,;t t
9031 s,@LIBINTL@,$LIBINTL,;t t
9032 s,@LTLIBINTL@,$LTLIBINTL,;t t
9033 s,@POSUB@,$POSUB,;t t
9034 s,@PRE_XMULIB@,$PRE_XMULIB,;t t
9035 s,@POST_XMULIB@,$POST_XMULIB,;t t
9036 s,@CONF_CFLAGS@,$CONF_CFLAGS,;t t
9037 s,@CONF_LDFLAGS@,$CONF_LDFLAGS,;t t
9038 s,@ZIPPY_O@,$ZIPPY_O,;t t
9039 s,@ZIPPY_H@,$ZIPPY_H,;t t
9040 s,@PRODUCT@,$PRODUCT,;t t
9041 s,@VERSION@,$VERSION,;t t
9042 s,@PATCHLEVEL@,$PATCHLEVEL,;t t
9043 s,@LIBOBJS@,$LIBOBJS,;t t
9044 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9045 CEOF
9046
9047 _ACEOF
9048
9049   cat >>$CONFIG_STATUS <<\_ACEOF
9050   # Split the substitutions into bite-sized pieces for seds with
9051   # small command number limits, like on Digital OSF/1 and HP-UX.
9052   ac_max_sed_lines=48
9053   ac_sed_frag=1 # Number of current file.
9054   ac_beg=1 # First line for current file.
9055   ac_end=$ac_max_sed_lines # Line after last line for current file.
9056   ac_more_lines=:
9057   ac_sed_cmds=
9058   while $ac_more_lines; do
9059     if test $ac_beg -gt 1; then
9060       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9061     else
9062       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9063     fi
9064     if test ! -s $tmp/subs.frag; then
9065       ac_more_lines=false
9066     else
9067       # The purpose of the label and of the branching condition is to
9068       # speed up the sed processing (if there are no `@' at all, there
9069       # is no need to browse any of the substitutions).
9070       # These are the two extra sed commands mentioned above.
9071       (echo ':t
9072   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9073       if test -z "$ac_sed_cmds"; then
9074         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9075       else
9076         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9077       fi
9078       ac_sed_frag=`expr $ac_sed_frag + 1`
9079       ac_beg=$ac_end
9080       ac_end=`expr $ac_end + $ac_max_sed_lines`
9081     fi
9082   done
9083   if test -z "$ac_sed_cmds"; then
9084     ac_sed_cmds=cat
9085   fi
9086 fi # test -n "$CONFIG_FILES"
9087
9088 _ACEOF
9089 cat >>$CONFIG_STATUS <<\_ACEOF
9090 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9091   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9092   case $ac_file in
9093   - | *:- | *:-:* ) # input from stdin
9094         cat >$tmp/stdin
9095         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9096         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9097   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9098         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9099   * )   ac_file_in=$ac_file.in ;;
9100   esac
9101
9102   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9103   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9105          X"$ac_file" : 'X\(//\)[^/]' \| \
9106          X"$ac_file" : 'X\(//\)$' \| \
9107          X"$ac_file" : 'X\(/\)' \| \
9108          .     : '\(.\)' 2>/dev/null ||
9109 echo X"$ac_file" |
9110     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9111           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9112           /^X\(\/\/\)$/{ s//\1/; q; }
9113           /^X\(\/\).*/{ s//\1/; q; }
9114           s/.*/./; q'`
9115   { if $as_mkdir_p; then
9116     mkdir -p "$ac_dir"
9117   else
9118     as_dir="$ac_dir"
9119     as_dirs=
9120     while test ! -d "$as_dir"; do
9121       as_dirs="$as_dir $as_dirs"
9122       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9124          X"$as_dir" : 'X\(//\)[^/]' \| \
9125          X"$as_dir" : 'X\(//\)$' \| \
9126          X"$as_dir" : 'X\(/\)' \| \
9127          .     : '\(.\)' 2>/dev/null ||
9128 echo X"$as_dir" |
9129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9130           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9131           /^X\(\/\/\)$/{ s//\1/; q; }
9132           /^X\(\/\).*/{ s//\1/; q; }
9133           s/.*/./; q'`
9134     done
9135     test ! -n "$as_dirs" || mkdir $as_dirs
9136   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9138    { (exit 1); exit 1; }; }; }
9139
9140   ac_builddir=.
9141
9142 if test "$ac_dir" != .; then
9143   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9144   # A "../" for each directory in $ac_dir_suffix.
9145   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9146 else
9147   ac_dir_suffix= ac_top_builddir=
9148 fi
9149
9150 case $srcdir in
9151   .)  # No --srcdir option.  We are building in place.
9152     ac_srcdir=.
9153     if test -z "$ac_top_builddir"; then
9154        ac_top_srcdir=.
9155     else
9156        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9157     fi ;;
9158   [\\/]* | ?:[\\/]* )  # Absolute path.
9159     ac_srcdir=$srcdir$ac_dir_suffix;
9160     ac_top_srcdir=$srcdir ;;
9161   *) # Relative path.
9162     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9163     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9164 esac
9165 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9166 # absolute.
9167 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9168 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9169 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9170 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9171
9172
9173   case $INSTALL in
9174   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9175   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9176   esac
9177
9178   if test x"$ac_file" != x-; then
9179     { echo "$as_me:$LINENO: creating $ac_file" >&5
9180 echo "$as_me: creating $ac_file" >&6;}
9181     rm -f "$ac_file"
9182   fi
9183   # Let's still pretend it is `configure' which instantiates (i.e., don't
9184   # use $as_me), people would be surprised to read:
9185   #    /* config.h.  Generated by config.status.  */
9186   if test x"$ac_file" = x-; then
9187     configure_input=
9188   else
9189     configure_input="$ac_file.  "
9190   fi
9191   configure_input=$configure_input"Generated from `echo $ac_file_in |
9192                                      sed 's,.*/,,'` by configure."
9193
9194   # First look for the input files in the build tree, otherwise in the
9195   # src tree.
9196   ac_file_inputs=`IFS=:
9197     for f in $ac_file_in; do
9198       case $f in
9199       -) echo $tmp/stdin ;;
9200       [\\/$]*)
9201          # Absolute (can't be DOS-style, as IFS=:)
9202          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9203 echo "$as_me: error: cannot find input file: $f" >&2;}
9204    { (exit 1); exit 1; }; }
9205          echo $f;;
9206       *) # Relative
9207          if test -f "$f"; then
9208            # Build tree
9209            echo $f
9210          elif test -f "$srcdir/$f"; then
9211            # Source tree
9212            echo $srcdir/$f
9213          else
9214            # /dev/null tree
9215            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9216 echo "$as_me: error: cannot find input file: $f" >&2;}
9217    { (exit 1); exit 1; }; }
9218          fi;;
9219       esac
9220     done` || { (exit 1); exit 1; }
9221 _ACEOF
9222 cat >>$CONFIG_STATUS <<_ACEOF
9223   sed "$ac_vpsub
9224 $extrasub
9225 _ACEOF
9226 cat >>$CONFIG_STATUS <<\_ACEOF
9227 :t
9228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9229 s,@configure_input@,$configure_input,;t t
9230 s,@srcdir@,$ac_srcdir,;t t
9231 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9232 s,@top_srcdir@,$ac_top_srcdir,;t t
9233 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9234 s,@builddir@,$ac_builddir,;t t
9235 s,@abs_builddir@,$ac_abs_builddir,;t t
9236 s,@top_builddir@,$ac_top_builddir,;t t
9237 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9238 s,@INSTALL@,$ac_INSTALL,;t t
9239 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9240   rm -f $tmp/stdin
9241   if test x"$ac_file" != x-; then
9242     mv $tmp/out $ac_file
9243   else
9244     cat $tmp/out
9245     rm -f $tmp/out
9246   fi
9247
9248 done
9249 _ACEOF
9250 cat >>$CONFIG_STATUS <<\_ACEOF
9251
9252 #
9253 # CONFIG_HEADER section.
9254 #
9255
9256 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9257 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9258 #
9259 # ac_d sets the value in "#define NAME VALUE" lines.
9260 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9261 ac_dB='[        ].*$,\1#\2'
9262 ac_dC=' '
9263 ac_dD=',;t'
9264 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9265 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9266 ac_uB='$,\1#\2define\3'
9267 ac_uC=' '
9268 ac_uD=',;t'
9269
9270 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9271   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9272   case $ac_file in
9273   - | *:- | *:-:* ) # input from stdin
9274         cat >$tmp/stdin
9275         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9276         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9277   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9278         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9279   * )   ac_file_in=$ac_file.in ;;
9280   esac
9281
9282   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9283 echo "$as_me: creating $ac_file" >&6;}
9284
9285   # First look for the input files in the build tree, otherwise in the
9286   # src tree.
9287   ac_file_inputs=`IFS=:
9288     for f in $ac_file_in; do
9289       case $f in
9290       -) echo $tmp/stdin ;;
9291       [\\/$]*)
9292          # Absolute (can't be DOS-style, as IFS=:)
9293          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9294 echo "$as_me: error: cannot find input file: $f" >&2;}
9295    { (exit 1); exit 1; }; }
9296          echo $f;;
9297       *) # Relative
9298          if test -f "$f"; then
9299            # Build tree
9300            echo $f
9301          elif test -f "$srcdir/$f"; then
9302            # Source tree
9303            echo $srcdir/$f
9304          else
9305            # /dev/null tree
9306            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9307 echo "$as_me: error: cannot find input file: $f" >&2;}
9308    { (exit 1); exit 1; }; }
9309          fi;;
9310       esac
9311     done` || { (exit 1); exit 1; }
9312   # Remove the trailing spaces.
9313   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
9314
9315 _ACEOF
9316
9317 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9318 # `conftest.undefs', that substitutes the proper values into
9319 # config.h.in to produce config.h.  The first handles `#define'
9320 # templates, and the second `#undef' templates.
9321 # And first: Protect against being on the right side of a sed subst in
9322 # config.status.  Protect against being in an unquoted here document
9323 # in config.status.
9324 rm -f conftest.defines conftest.undefs
9325 # Using a here document instead of a string reduces the quoting nightmare.
9326 # Putting comments in sed scripts is not portable.
9327 #
9328 # `end' is used to avoid that the second main sed command (meant for
9329 # 0-ary CPP macros) applies to n-ary macro definitions.
9330 # See the Autoconf documentation for `clear'.
9331 cat >confdef2sed.sed <<\_ACEOF
9332 s/[\\&,]/\\&/g
9333 s,[\\$`],\\&,g
9334 t clear
9335 : clear
9336 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9337 t end
9338 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9339 : end
9340 _ACEOF
9341 # If some macros were called several times there might be several times
9342 # the same #defines, which is useless.  Nevertheless, we may not want to
9343 # sort them, since we want the *last* AC-DEFINE to be honored.
9344 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9345 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9346 rm -f confdef2sed.sed
9347
9348 # This sed command replaces #undef with comments.  This is necessary, for
9349 # example, in the case of _POSIX_SOURCE, which is predefined and required
9350 # on some systems where configure will not decide to define it.
9351 cat >>conftest.undefs <<\_ACEOF
9352 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9353 _ACEOF
9354
9355 # Break up conftest.defines because some shells have a limit on the size
9356 # of here documents, and old seds have small limits too (100 cmds).
9357 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9358 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9359 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9360 echo '  :' >>$CONFIG_STATUS
9361 rm -f conftest.tail
9362 while grep . conftest.defines >/dev/null
9363 do
9364   # Write a limited-size here document to $tmp/defines.sed.
9365   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9366   # Speed up: don't consider the non `#define' lines.
9367   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
9368   # Work around the forget-to-reset-the-flag bug.
9369   echo 't clr' >>$CONFIG_STATUS
9370   echo ': clr' >>$CONFIG_STATUS
9371   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9372   echo 'CEOF
9373   sed -f $tmp/defines.sed $tmp/in >$tmp/out
9374   rm -f $tmp/in
9375   mv $tmp/out $tmp/in
9376 ' >>$CONFIG_STATUS
9377   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9378   rm -f conftest.defines
9379   mv conftest.tail conftest.defines
9380 done
9381 rm -f conftest.defines
9382 echo '  fi # grep' >>$CONFIG_STATUS
9383 echo >>$CONFIG_STATUS
9384
9385 # Break up conftest.undefs because some shells have a limit on the size
9386 # of here documents, and old seds have small limits too (100 cmds).
9387 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9388 rm -f conftest.tail
9389 while grep . conftest.undefs >/dev/null
9390 do
9391   # Write a limited-size here document to $tmp/undefs.sed.
9392   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9393   # Speed up: don't consider the non `#undef'
9394   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9395   # Work around the forget-to-reset-the-flag bug.
9396   echo 't clr' >>$CONFIG_STATUS
9397   echo ': clr' >>$CONFIG_STATUS
9398   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9399   echo 'CEOF
9400   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9401   rm -f $tmp/in
9402   mv $tmp/out $tmp/in
9403 ' >>$CONFIG_STATUS
9404   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9405   rm -f conftest.undefs
9406   mv conftest.tail conftest.undefs
9407 done
9408 rm -f conftest.undefs
9409
9410 cat >>$CONFIG_STATUS <<\_ACEOF
9411   # Let's still pretend it is `configure' which instantiates (i.e., don't
9412   # use $as_me), people would be surprised to read:
9413   #    /* config.h.  Generated by config.status.  */
9414   if test x"$ac_file" = x-; then
9415     echo "/* Generated by configure.  */" >$tmp/config.h
9416   else
9417     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9418   fi
9419   cat $tmp/in >>$tmp/config.h
9420   rm -f $tmp/in
9421   if test x"$ac_file" != x-; then
9422     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9423       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9424 echo "$as_me: $ac_file is unchanged" >&6;}
9425     else
9426       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9428          X"$ac_file" : 'X\(//\)[^/]' \| \
9429          X"$ac_file" : 'X\(//\)$' \| \
9430          X"$ac_file" : 'X\(/\)' \| \
9431          .     : '\(.\)' 2>/dev/null ||
9432 echo X"$ac_file" |
9433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9434           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9435           /^X\(\/\/\)$/{ s//\1/; q; }
9436           /^X\(\/\).*/{ s//\1/; q; }
9437           s/.*/./; q'`
9438       { if $as_mkdir_p; then
9439     mkdir -p "$ac_dir"
9440   else
9441     as_dir="$ac_dir"
9442     as_dirs=
9443     while test ! -d "$as_dir"; do
9444       as_dirs="$as_dir $as_dirs"
9445       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9447          X"$as_dir" : 'X\(//\)[^/]' \| \
9448          X"$as_dir" : 'X\(//\)$' \| \
9449          X"$as_dir" : 'X\(/\)' \| \
9450          .     : '\(.\)' 2>/dev/null ||
9451 echo X"$as_dir" |
9452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9453           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9454           /^X\(\/\/\)$/{ s//\1/; q; }
9455           /^X\(\/\).*/{ s//\1/; q; }
9456           s/.*/./; q'`
9457     done
9458     test ! -n "$as_dirs" || mkdir $as_dirs
9459   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9460 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9461    { (exit 1); exit 1; }; }; }
9462
9463       rm -f $ac_file
9464       mv $tmp/config.h $ac_file
9465     fi
9466   else
9467     cat $tmp/config.h
9468     rm -f $tmp/config.h
9469   fi
9470 done
9471 _ACEOF
9472 cat >>$CONFIG_STATUS <<\_ACEOF
9473
9474 #
9475 # CONFIG_COMMANDS section.
9476 #
9477 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9478   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9479   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9480   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9481 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9482          X"$ac_dest" : 'X\(//\)[^/]' \| \
9483          X"$ac_dest" : 'X\(//\)$' \| \
9484          X"$ac_dest" : 'X\(/\)' \| \
9485          .     : '\(.\)' 2>/dev/null ||
9486 echo X"$ac_dest" |
9487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9488           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9489           /^X\(\/\/\)$/{ s//\1/; q; }
9490           /^X\(\/\).*/{ s//\1/; q; }
9491           s/.*/./; q'`
9492   ac_builddir=.
9493
9494 if test "$ac_dir" != .; then
9495   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9496   # A "../" for each directory in $ac_dir_suffix.
9497   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9498 else
9499   ac_dir_suffix= ac_top_builddir=
9500 fi
9501
9502 case $srcdir in
9503   .)  # No --srcdir option.  We are building in place.
9504     ac_srcdir=.
9505     if test -z "$ac_top_builddir"; then
9506        ac_top_srcdir=.
9507     else
9508        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9509     fi ;;
9510   [\\/]* | ?:[\\/]* )  # Absolute path.
9511     ac_srcdir=$srcdir$ac_dir_suffix;
9512     ac_top_srcdir=$srcdir ;;
9513   *) # Relative path.
9514     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9515     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9516 esac
9517 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9518 # absolute.
9519 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9520 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9521 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9522 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9523
9524
9525   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9526 echo "$as_me: executing $ac_dest commands" >&6;}
9527   case $ac_dest in
9528     default-1 )
9529     for ac_file in $CONFIG_FILES; do
9530       # Support "outfile[:infile[:infile...]]"
9531       case "$ac_file" in
9532         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9533       esac
9534       # PO directories have a Makefile.in generated from Makefile.in.in.
9535       case "$ac_file" in */Makefile.in)
9536         # Adjust a relative srcdir.
9537         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9538         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9539         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9540         # In autoconf-2.13 it is called $ac_given_srcdir.
9541         # In autoconf-2.50 it is called $srcdir.
9542         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9543         case "$ac_given_srcdir" in
9544           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9545           /*) top_srcdir="$ac_given_srcdir" ;;
9546           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
9547         esac
9548         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9549           rm -f "$ac_dir/POTFILES"
9550           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9551           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9552           POMAKEFILEDEPS="POTFILES.in"
9553           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9554           # on $ac_dir but don't depend on user-specified configuration
9555           # parameters.
9556           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9557             # The LINGUAS file contains the set of available languages.
9558             if test -n "$OBSOLETE_ALL_LINGUAS"; then
9559               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9560             fi
9561             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9562             # Hide the ALL_LINGUAS assigment from automake.
9563             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9564             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9565           else
9566             # The set of available languages was given in configure.in.
9567             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9568           fi
9569           case "$ac_given_srcdir" in
9570             .) srcdirpre= ;;
9571             *) srcdirpre='$(srcdir)/' ;;
9572           esac
9573           POFILES=
9574           GMOFILES=
9575           UPDATEPOFILES=
9576           DUMMYPOFILES=
9577           for lang in $ALL_LINGUAS; do
9578             POFILES="$POFILES $srcdirpre$lang.po"
9579             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9580             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9581             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9582           done
9583           # CATALOGS depends on both $ac_dir and the user's LINGUAS
9584           # environment variable.
9585           INST_LINGUAS=
9586           if test -n "$ALL_LINGUAS"; then
9587             for presentlang in $ALL_LINGUAS; do
9588               useit=no
9589               if test "%UNSET%" != "$LINGUAS"; then
9590                 desiredlanguages="$LINGUAS"
9591               else
9592                 desiredlanguages="$ALL_LINGUAS"
9593               fi
9594               for desiredlang in $desiredlanguages; do
9595                 # Use the presentlang catalog if desiredlang is
9596                 #   a. equal to presentlang, or
9597                 #   b. a variant of presentlang (because in this case,
9598                 #      presentlang can be used as a fallback for messages
9599                 #      which are not translated in the desiredlang catalog).
9600                 case "$desiredlang" in
9601                   "$presentlang"*) useit=yes;;
9602                 esac
9603               done
9604               if test $useit = yes; then
9605                 INST_LINGUAS="$INST_LINGUAS $presentlang"
9606               fi
9607             done
9608           fi
9609           CATALOGS=
9610           if test -n "$INST_LINGUAS"; then
9611             for lang in $INST_LINGUAS; do
9612               CATALOGS="$CATALOGS $lang.gmo"
9613             done
9614           fi
9615           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9616           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9617           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9618             if test -f "$f"; then
9619               case "$f" in
9620                 *.orig | *.bak | *~) ;;
9621                 *) cat "$f" >> "$ac_dir/Makefile" ;;
9622               esac
9623             fi
9624           done
9625         fi
9626         ;;
9627       esac
9628     done ;;
9629     default ) test -z "$CONFIG_HEADERS" || date > stamp-h
9630 chmod 755 cmail
9631  ;;
9632   esac
9633 done
9634 _ACEOF
9635
9636 cat >>$CONFIG_STATUS <<\_ACEOF
9637
9638 { (exit 0); exit 0; }
9639 _ACEOF
9640 chmod +x $CONFIG_STATUS
9641 ac_clean_files=$ac_clean_files_save
9642
9643
9644 # configure is writing to config.log, and then calls config.status.
9645 # config.status does its own redirection, appending to config.log.
9646 # Unfortunately, on DOS this fails, as config.log is still kept open
9647 # by configure, so config.status won't be able to write to it; its
9648 # output is simply discarded.  So we exec the FD to /dev/null,
9649 # effectively closing config.log, so it can be properly (re)opened and
9650 # appended to by config.status.  When coming back to configure, we
9651 # need to make the FD available again.
9652 if test "$no_create" != yes; then
9653   ac_cs_success=:
9654   ac_config_status_args=
9655   test "$silent" = yes &&
9656     ac_config_status_args="$ac_config_status_args --quiet"
9657   exec 5>/dev/null
9658   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9659   exec 5>>config.log
9660   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9661   # would make configure fail if this is the last instruction.
9662   $ac_cs_success || { (exit 1); exit 1; }
9663 fi
9664