aclocal.m4: Deleted. Can be generated with `aclocal'.
[enscript.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.1.1.1 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 for enscript 1.6.4.
5 #
6 # Report bugs to <mtr@iki.fi>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='enscript'
271 PACKAGE_TARNAME='enscript'
272 PACKAGE_VERSION='1.6.4'
273 PACKAGE_STRING='enscript 1.6.4'
274 PACKAGE_BUGREPORT='mtr@iki.fi'
275
276 ac_unique_file="src/gsint.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR ALLOCA LIBOBJS RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT MEDIA SPOOLER PSLEVEL MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB PERL LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780   # Omit some internal or obsolete options to make the list less imposing.
781   # This message is too long to be a string in the A/UX 3.1 sh.
782   cat <<_ACEOF
783 \`configure' configures enscript 1.6.4 to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833
834   cat <<\_ACEOF
835
836 Program names:
837   --program-prefix=PREFIX            prepend PREFIX to installed program names
838   --program-suffix=SUFFIX            append SUFFIX to installed program names
839   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
840
841 System types:
842   --build=BUILD     configure for building on BUILD [guessed]
843   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
844 _ACEOF
845 fi
846
847 if test -n "$ac_init_help"; then
848   case $ac_init_help in
849      short | recursive ) echo "Configuration of enscript 1.6.4:";;
850    esac
851   cat <<\_ACEOF
852
853 Optional Features:
854   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
855   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
856   --disable-dependency-tracking Speeds up one-time builds
857   --enable-dependency-tracking  Do not reject slow dependency extractors
858   --enable-debug          enable debugging
859   --disable-rpath         do not hardcode runtime library paths
860   --disable-nls           do not use Native Language Support
861
862 Optional Packages:
863   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
864   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
865   --with-cc(=CC)          use system's native compiler (or compiler CC)
866   --with-media(=MEDIA)    use output media Letter (MEDIA), default is A4
867   --with-spooler=SPOOLER  set the printer spooler command
868   --with-ps-level=LEVEL   set the PostScript language level to LEVEL
869   --with-gnu-ld           assume the C compiler uses GNU ld default=no
870   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
871   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
872   --with-included-gettext use the GNU gettext library included here
873   --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
874   --without-libintl-prefix     don't search for libintl in includedir and libdir
875
876 Some influential environment variables:
877   CC          C compiler command
878   CFLAGS      C compiler flags
879   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
880               nonstandard directory <lib dir>
881   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
882               headers in a nonstandard directory <include dir>
883   CPP         C preprocessor
884
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
887
888 Report bugs to <mtr@iki.fi>.
889 _ACEOF
890 fi
891
892 if test "$ac_init_help" = "recursive"; then
893   # If there are subdirs, report their specific --help.
894   ac_popdir=`pwd`
895   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896     test -d $ac_dir || continue
897     ac_builddir=.
898
899 if test "$ac_dir" != .; then
900   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901   # A "../" for each directory in $ac_dir_suffix.
902   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 else
904   ac_dir_suffix= ac_top_builddir=
905 fi
906
907 case $srcdir in
908   .)  # No --srcdir option.  We are building in place.
909     ac_srcdir=.
910     if test -z "$ac_top_builddir"; then
911        ac_top_srcdir=.
912     else
913        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914     fi ;;
915   [\\/]* | ?:[\\/]* )  # Absolute path.
916     ac_srcdir=$srcdir$ac_dir_suffix;
917     ac_top_srcdir=$srcdir ;;
918   *) # Relative path.
919     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920     ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 esac
922 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
923 # absolute.
924 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
925 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
926 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
927 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
928
929     cd $ac_dir
930     # Check for guested configure; otherwise get Cygnus style configure.
931     if test -f $ac_srcdir/configure.gnu; then
932       echo
933       $SHELL $ac_srcdir/configure.gnu  --help=recursive
934     elif test -f $ac_srcdir/configure; then
935       echo
936       $SHELL $ac_srcdir/configure  --help=recursive
937     elif test -f $ac_srcdir/configure.ac ||
938            test -f $ac_srcdir/configure.in; then
939       echo
940       $ac_configure --help
941     else
942       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943     fi
944     cd $ac_popdir
945   done
946 fi
947
948 test -n "$ac_init_help" && exit 0
949 if $ac_init_version; then
950   cat <<\_ACEOF
951 enscript configure 1.6.4
952 generated by GNU Autoconf 2.57
953
954 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
955 Free Software Foundation, Inc.
956 This configure script is free software; the Free Software Foundation
957 gives unlimited permission to copy, distribute and modify it.
958 _ACEOF
959   exit 0
960 fi
961 exec 5>config.log
962 cat >&5 <<_ACEOF
963 This file contains any messages produced by compilers while
964 running configure, to aid debugging if configure makes a mistake.
965
966 It was created by enscript $as_me 1.6.4, which was
967 generated by GNU Autoconf 2.57.  Invocation command line was
968
969   $ $0 $@
970
971 _ACEOF
972 {
973 cat <<_ASUNAME
974 ## --------- ##
975 ## Platform. ##
976 ## --------- ##
977
978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
983
984 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
985 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
986
987 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
988 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
989 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
990 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
991 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
992 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
993 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
994
995 _ASUNAME
996
997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
998 for as_dir in $PATH
999 do
1000   IFS=$as_save_IFS
1001   test -z "$as_dir" && as_dir=.
1002   echo "PATH: $as_dir"
1003 done
1004
1005 } >&5
1006
1007 cat >&5 <<_ACEOF
1008
1009
1010 ## ----------- ##
1011 ## Core tests. ##
1012 ## ----------- ##
1013
1014 _ACEOF
1015
1016
1017 # Keep a trace of the command line.
1018 # Strip out --no-create and --no-recursion so they do not pile up.
1019 # Strip out --silent because we don't want to record it for future runs.
1020 # Also quote any args containing shell meta-characters.
1021 # Make two passes to allow for proper duplicate-argument suppression.
1022 ac_configure_args=
1023 ac_configure_args0=
1024 ac_configure_args1=
1025 ac_sep=
1026 ac_must_keep_next=false
1027 for ac_pass in 1 2
1028 do
1029   for ac_arg
1030   do
1031     case $ac_arg in
1032     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1033     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034     | -silent | --silent | --silen | --sile | --sil)
1035       continue ;;
1036     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1038     esac
1039     case $ac_pass in
1040     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1041     2)
1042       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1043       if test $ac_must_keep_next = true; then
1044         ac_must_keep_next=false # Got value, back to normal.
1045       else
1046         case $ac_arg in
1047           *=* | --config-cache | -C | -disable-* | --disable-* \
1048           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1049           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1050           | -with-* | --with-* | -without-* | --without-* | --x)
1051             case "$ac_configure_args0 " in
1052               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1053             esac
1054             ;;
1055           -* ) ac_must_keep_next=true ;;
1056         esac
1057       fi
1058       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059       # Get rid of the leading space.
1060       ac_sep=" "
1061       ;;
1062     esac
1063   done
1064 done
1065 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1066 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1067
1068 # When interrupted or exit'd, cleanup temporary files, and complete
1069 # config.log.  We remove comments because anyway the quotes in there
1070 # would cause problems or look ugly.
1071 # WARNING: Be sure not to use single quotes in there, as some shells,
1072 # such as our DU 5.0 friend, will then `close' the trap.
1073 trap 'exit_status=$?
1074   # Save into config.log some information that might help in debugging.
1075   {
1076     echo
1077
1078     cat <<\_ASBOX
1079 ## ---------------- ##
1080 ## Cache variables. ##
1081 ## ---------------- ##
1082 _ASBOX
1083     echo
1084     # The following way of writing the cache mishandles newlines in values,
1085 {
1086   (set) 2>&1 |
1087     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1088     *ac_space=\ *)
1089       sed -n \
1090         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1091           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1092       ;;
1093     *)
1094       sed -n \
1095         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1096       ;;
1097     esac;
1098 }
1099     echo
1100
1101     cat <<\_ASBOX
1102 ## ----------------- ##
1103 ## Output variables. ##
1104 ## ----------------- ##
1105 _ASBOX
1106     echo
1107     for ac_var in $ac_subst_vars
1108     do
1109       eval ac_val=$`echo $ac_var`
1110       echo "$ac_var='"'"'$ac_val'"'"'"
1111     done | sort
1112     echo
1113
1114     if test -n "$ac_subst_files"; then
1115       cat <<\_ASBOX
1116 ## ------------- ##
1117 ## Output files. ##
1118 ## ------------- ##
1119 _ASBOX
1120       echo
1121       for ac_var in $ac_subst_files
1122       do
1123         eval ac_val=$`echo $ac_var`
1124         echo "$ac_var='"'"'$ac_val'"'"'"
1125       done | sort
1126       echo
1127     fi
1128
1129     if test -s confdefs.h; then
1130       cat <<\_ASBOX
1131 ## ----------- ##
1132 ## confdefs.h. ##
1133 ## ----------- ##
1134 _ASBOX
1135       echo
1136       sed "/^$/d" confdefs.h | sort
1137       echo
1138     fi
1139     test "$ac_signal" != 0 &&
1140       echo "$as_me: caught signal $ac_signal"
1141     echo "$as_me: exit $exit_status"
1142   } >&5
1143   rm -f core core.* *.core &&
1144   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1145     exit $exit_status
1146      ' 0
1147 for ac_signal in 1 2 13 15; do
1148   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1149 done
1150 ac_signal=0
1151
1152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1153 rm -rf conftest* confdefs.h
1154 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1155 echo >confdefs.h
1156
1157 # Predefined preprocessor variables.
1158
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_NAME "$PACKAGE_NAME"
1161 _ACEOF
1162
1163
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1166 _ACEOF
1167
1168
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1171 _ACEOF
1172
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_STRING "$PACKAGE_STRING"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1181 _ACEOF
1182
1183
1184 # Let the site file select an alternate cache file if it wants to.
1185 # Prefer explicitly selected file to automatically selected ones.
1186 if test -z "$CONFIG_SITE"; then
1187   if test "x$prefix" != xNONE; then
1188     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1189   else
1190     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1191   fi
1192 fi
1193 for ac_site_file in $CONFIG_SITE; do
1194   if test -r "$ac_site_file"; then
1195     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1196 echo "$as_me: loading site script $ac_site_file" >&6;}
1197     sed 's/^/| /' "$ac_site_file" >&5
1198     . "$ac_site_file"
1199   fi
1200 done
1201
1202 if test -r "$cache_file"; then
1203   # Some versions of bash will fail to source /dev/null (special
1204   # files actually), so we avoid doing that.
1205   if test -f "$cache_file"; then
1206     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1207 echo "$as_me: loading cache $cache_file" >&6;}
1208     case $cache_file in
1209       [\\/]* | ?:[\\/]* ) . $cache_file;;
1210       *)                      . ./$cache_file;;
1211     esac
1212   fi
1213 else
1214   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1215 echo "$as_me: creating cache $cache_file" >&6;}
1216   >$cache_file
1217 fi
1218
1219 # Check that the precious variables saved in the cache have kept the same
1220 # value.
1221 ac_cache_corrupted=false
1222 for ac_var in `(set) 2>&1 |
1223                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1224   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1225   eval ac_new_set=\$ac_env_${ac_var}_set
1226   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1227   eval ac_new_val="\$ac_env_${ac_var}_value"
1228   case $ac_old_set,$ac_new_set in
1229     set,)
1230       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1231 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1232       ac_cache_corrupted=: ;;
1233     ,set)
1234       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1236       ac_cache_corrupted=: ;;
1237     ,);;
1238     *)
1239       if test "x$ac_old_val" != "x$ac_new_val"; then
1240         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1241 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1242         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1243 echo "$as_me:   former value:  $ac_old_val" >&2;}
1244         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1245 echo "$as_me:   current value: $ac_new_val" >&2;}
1246         ac_cache_corrupted=:
1247       fi;;
1248   esac
1249   # Pass precious variables to config.status.
1250   if test "$ac_new_set" = set; then
1251     case $ac_new_val in
1252     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1254     *) ac_arg=$ac_var=$ac_new_val ;;
1255     esac
1256     case " $ac_configure_args " in
1257       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1258       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1259     esac
1260   fi
1261 done
1262 if $ac_cache_corrupted; then
1263   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1264 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1265   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1266 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1267    { (exit 1); exit 1; }; }
1268 fi
1269
1270 ac_ext=c
1271 ac_cpp='$CPP $CPPFLAGS'
1272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306 am__api_version="1.7"
1307 ac_aux_dir=
1308 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1309   if test -f $ac_dir/install-sh; then
1310     ac_aux_dir=$ac_dir
1311     ac_install_sh="$ac_aux_dir/install-sh -c"
1312     break
1313   elif test -f $ac_dir/install.sh; then
1314     ac_aux_dir=$ac_dir
1315     ac_install_sh="$ac_aux_dir/install.sh -c"
1316     break
1317   elif test -f $ac_dir/shtool; then
1318     ac_aux_dir=$ac_dir
1319     ac_install_sh="$ac_aux_dir/shtool install -c"
1320     break
1321   fi
1322 done
1323 if test -z "$ac_aux_dir"; then
1324   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1325 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1326    { (exit 1); exit 1; }; }
1327 fi
1328 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1329 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1330 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1331
1332 # Find a good install program.  We prefer a C program (faster),
1333 # so one script is as good as another.  But avoid the broken or
1334 # incompatible versions:
1335 # SysV /etc/install, /usr/sbin/install
1336 # SunOS /usr/etc/install
1337 # IRIX /sbin/install
1338 # AIX /bin/install
1339 # AmigaOS /C/install, which installs bootblocks on floppy discs
1340 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1341 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1342 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1343 # ./install, which can be erroneously created by make from ./install.sh.
1344 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1345 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1346 if test -z "$INSTALL"; then
1347 if test "${ac_cv_path_install+set}" = set; then
1348   echo $ECHO_N "(cached) $ECHO_C" >&6
1349 else
1350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1351 for as_dir in $PATH
1352 do
1353   IFS=$as_save_IFS
1354   test -z "$as_dir" && as_dir=.
1355   # Account for people who put trailing slashes in PATH elements.
1356 case $as_dir/ in
1357   ./ | .// | /cC/* | \
1358   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1359   /usr/ucb/* ) ;;
1360   *)
1361     # OSF1 and SCO ODT 3.0 have their own names for install.
1362     # Don't use installbsd from OSF since it installs stuff as root
1363     # by default.
1364     for ac_prog in ginstall scoinst install; do
1365       for ac_exec_ext in '' $ac_executable_extensions; do
1366         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1367           if test $ac_prog = install &&
1368             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1369             # AIX install.  It has an incompatible calling convention.
1370             :
1371           elif test $ac_prog = install &&
1372             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1373             # program-specific install script used by HP pwplus--don't use.
1374             :
1375           else
1376             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1377             break 3
1378           fi
1379         fi
1380       done
1381     done
1382     ;;
1383 esac
1384 done
1385
1386
1387 fi
1388   if test "${ac_cv_path_install+set}" = set; then
1389     INSTALL=$ac_cv_path_install
1390   else
1391     # As a last resort, use the slow shell script.  We don't cache a
1392     # path for INSTALL within a source directory, because that will
1393     # break other packages using the cache if that directory is
1394     # removed, or if the path is relative.
1395     INSTALL=$ac_install_sh
1396   fi
1397 fi
1398 echo "$as_me:$LINENO: result: $INSTALL" >&5
1399 echo "${ECHO_T}$INSTALL" >&6
1400
1401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1402 # It thinks the first close brace ends the variable substitution.
1403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1404
1405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1406
1407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1408
1409 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1410 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1411 # Just in case
1412 sleep 1
1413 echo timestamp > conftest.file
1414 # Do `set' in a subshell so we don't clobber the current shell's
1415 # arguments.  Must try -L first in case configure is actually a
1416 # symlink; some systems play weird games with the mod time of symlinks
1417 # (eg FreeBSD returns the mod time of the symlink's containing
1418 # directory).
1419 if (
1420    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1421    if test "$*" = "X"; then
1422       # -L didn't work.
1423       set X `ls -t $srcdir/configure conftest.file`
1424    fi
1425    rm -f conftest.file
1426    if test "$*" != "X $srcdir/configure conftest.file" \
1427       && test "$*" != "X conftest.file $srcdir/configure"; then
1428
1429       # If neither matched, then we have a broken ls.  This can happen
1430       # if, for instance, CONFIG_SHELL is bash and it inherits a
1431       # broken ls alias from the environment.  This has actually
1432       # happened.  Such a system could not be considered "sane".
1433       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1434 alias in your environment" >&5
1435 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1436 alias in your environment" >&2;}
1437    { (exit 1); exit 1; }; }
1438    fi
1439
1440    test "$2" = conftest.file
1441    )
1442 then
1443    # Ok.
1444    :
1445 else
1446    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1447 Check your system clock" >&5
1448 echo "$as_me: error: newly created file is older than distributed files!
1449 Check your system clock" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452 echo "$as_me:$LINENO: result: yes" >&5
1453 echo "${ECHO_T}yes" >&6
1454 test "$program_prefix" != NONE &&
1455   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1456 # Use a double $ so make ignores it.
1457 test "$program_suffix" != NONE &&
1458   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1459 # Double any \ or $.  echo might interpret backslashes.
1460 # By default was `s,x,x', remove it if useless.
1461 cat <<\_ACEOF >conftest.sed
1462 s/[\\$]/&&/g;s/;s,x,x,$//
1463 _ACEOF
1464 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1465 rm conftest.sed
1466
1467
1468 # expand $ac_aux_dir to an absolute path
1469 am_aux_dir=`cd $ac_aux_dir && pwd`
1470
1471 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1472 # Use eval to expand $SHELL
1473 if eval "$MISSING --run true"; then
1474   am_missing_run="$MISSING --run "
1475 else
1476   am_missing_run=
1477   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1478 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1479 fi
1480
1481 for ac_prog in gawk mawk nawk awk
1482 do
1483   # Extract the first word of "$ac_prog", so it can be a program name with args.
1484 set dummy $ac_prog; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_AWK+set}" = set; then
1488   echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490   if test -n "$AWK"; then
1491   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1492 else
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1495 do
1496   IFS=$as_save_IFS
1497   test -z "$as_dir" && as_dir=.
1498   for ac_exec_ext in '' $ac_executable_extensions; do
1499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500     ac_cv_prog_AWK="$ac_prog"
1501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502     break 2
1503   fi
1504 done
1505 done
1506
1507 fi
1508 fi
1509 AWK=$ac_cv_prog_AWK
1510 if test -n "$AWK"; then
1511   echo "$as_me:$LINENO: result: $AWK" >&5
1512 echo "${ECHO_T}$AWK" >&6
1513 else
1514   echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1516 fi
1517
1518   test -n "$AWK" && break
1519 done
1520
1521 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1522 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1523 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1524 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1525   echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527   cat >conftest.make <<\_ACEOF
1528 all:
1529         @echo 'ac_maketemp="$(MAKE)"'
1530 _ACEOF
1531 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1532 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1533 if test -n "$ac_maketemp"; then
1534   eval ac_cv_prog_make_${ac_make}_set=yes
1535 else
1536   eval ac_cv_prog_make_${ac_make}_set=no
1537 fi
1538 rm -f conftest.make
1539 fi
1540 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1541   echo "$as_me:$LINENO: result: yes" >&5
1542 echo "${ECHO_T}yes" >&6
1543   SET_MAKE=
1544 else
1545   echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1547   SET_MAKE="MAKE=${MAKE-make}"
1548 fi
1549
1550  # test to see if srcdir already configured
1551 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1552    test -f $srcdir/config.status; then
1553   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1554 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1555    { (exit 1); exit 1; }; }
1556 fi
1557
1558 # test whether we have cygpath
1559 if test -z "$CYGPATH_W"; then
1560   if (cygpath --version) >/dev/null 2>/dev/null; then
1561     CYGPATH_W='cygpath -w'
1562   else
1563     CYGPATH_W=echo
1564   fi
1565 fi
1566
1567
1568 # Define the identity of the package.
1569  PACKAGE=enscript
1570  VERSION=1.6.4
1571
1572
1573 cat >>confdefs.h <<_ACEOF
1574 #define PACKAGE "$PACKAGE"
1575 _ACEOF
1576
1577
1578 cat >>confdefs.h <<_ACEOF
1579 #define VERSION "$VERSION"
1580 _ACEOF
1581
1582 # Some tools Automake needs.
1583
1584 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1585
1586
1587 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1588
1589
1590 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1591
1592
1593 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1594
1595
1596 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1597
1598
1599 AMTAR=${AMTAR-"${am_missing_run}tar"}
1600
1601 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1602
1603 # Installed binaries are usually stripped using `strip' when the user
1604 # run `make install-strip'.  However `strip' might not be the right
1605 # tool to use in cross-compilation environments, therefore Automake
1606 # will honor the `STRIP' environment variable to overrule this program.
1607 if test "$cross_compiling" != no; then
1608   if test -n "$ac_tool_prefix"; then
1609   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}strip; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_STRIP+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   if test -n "$STRIP"; then
1617   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622   IFS=$as_save_IFS
1623   test -z "$as_dir" && as_dir=.
1624   for ac_exec_ext in '' $ac_executable_extensions; do
1625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628     break 2
1629   fi
1630 done
1631 done
1632
1633 fi
1634 fi
1635 STRIP=$ac_cv_prog_STRIP
1636 if test -n "$STRIP"; then
1637   echo "$as_me:$LINENO: result: $STRIP" >&5
1638 echo "${ECHO_T}$STRIP" >&6
1639 else
1640   echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1642 fi
1643
1644 fi
1645 if test -z "$ac_cv_prog_STRIP"; then
1646   ac_ct_STRIP=$STRIP
1647   # Extract the first word of "strip", so it can be a program name with args.
1648 set dummy strip; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$ac_ct_STRIP"; then
1655   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660   IFS=$as_save_IFS
1661   test -z "$as_dir" && as_dir=.
1662   for ac_exec_ext in '' $ac_executable_extensions; do
1663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664     ac_cv_prog_ac_ct_STRIP="strip"
1665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666     break 2
1667   fi
1668 done
1669 done
1670
1671   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1672 fi
1673 fi
1674 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1675 if test -n "$ac_ct_STRIP"; then
1676   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1677 echo "${ECHO_T}$ac_ct_STRIP" >&6
1678 else
1679   echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683   STRIP=$ac_ct_STRIP
1684 else
1685   STRIP="$ac_cv_prog_STRIP"
1686 fi
1687
1688 fi
1689 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1690
1691 # We need awk for the "check" target.  The system "awk" is bad on
1692 # some platforms.
1693
1694
1695
1696           ac_config_headers="$ac_config_headers config.h"
1697
1698
1699
1700
1701 # Find a good install program.  We prefer a C program (faster),
1702 # so one script is as good as another.  But avoid the broken or
1703 # incompatible versions:
1704 # SysV /etc/install, /usr/sbin/install
1705 # SunOS /usr/etc/install
1706 # IRIX /sbin/install
1707 # AIX /bin/install
1708 # AmigaOS /C/install, which installs bootblocks on floppy discs
1709 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1710 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1711 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1712 # ./install, which can be erroneously created by make from ./install.sh.
1713 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1715 if test -z "$INSTALL"; then
1716 if test "${ac_cv_path_install+set}" = set; then
1717   echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722   IFS=$as_save_IFS
1723   test -z "$as_dir" && as_dir=.
1724   # Account for people who put trailing slashes in PATH elements.
1725 case $as_dir/ in
1726   ./ | .// | /cC/* | \
1727   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1728   /usr/ucb/* ) ;;
1729   *)
1730     # OSF1 and SCO ODT 3.0 have their own names for install.
1731     # Don't use installbsd from OSF since it installs stuff as root
1732     # by default.
1733     for ac_prog in ginstall scoinst install; do
1734       for ac_exec_ext in '' $ac_executable_extensions; do
1735         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1736           if test $ac_prog = install &&
1737             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738             # AIX install.  It has an incompatible calling convention.
1739             :
1740           elif test $ac_prog = install &&
1741             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1742             # program-specific install script used by HP pwplus--don't use.
1743             :
1744           else
1745             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1746             break 3
1747           fi
1748         fi
1749       done
1750     done
1751     ;;
1752 esac
1753 done
1754
1755
1756 fi
1757   if test "${ac_cv_path_install+set}" = set; then
1758     INSTALL=$ac_cv_path_install
1759   else
1760     # As a last resort, use the slow shell script.  We don't cache a
1761     # path for INSTALL within a source directory, because that will
1762     # break other packages using the cache if that directory is
1763     # removed, or if the path is relative.
1764     INSTALL=$ac_install_sh
1765   fi
1766 fi
1767 echo "$as_me:$LINENO: result: $INSTALL" >&5
1768 echo "${ECHO_T}$INSTALL" >&6
1769
1770 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1771 # It thinks the first close brace ends the variable substitution.
1772 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1773
1774 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1775
1776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1777
1778
1779
1780 # Check whether --with-cc or --without-cc was given.
1781 if test "${with_cc+set}" = set; then
1782   withval="$with_cc"
1783   if test "X$withval" != "Xno"; then
1784     if test "X$withval" = "Xyes"; then
1785       CC='cc'
1786     else
1787       CC=$withval
1788     fi
1789     CFLAGS="$CFLAGS -I/usr/local/include"
1790     LDFLAGS="$LDFLAGS -L/usr/local/lib"
1791     echo "using compiler CC=$CC"
1792   fi
1793
1794 fi;
1795
1796 if test "X$CC" = "X"; then
1797   ac_ext=c
1798 ac_cpp='$CPP $CPPFLAGS'
1799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1802 if test -n "$ac_tool_prefix"; then
1803   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_CC+set}" = set; then
1808   echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810   if test -n "$CC"; then
1811   ac_cv_prog_CC="$CC" # Let the user override the test.
1812 else
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 for as_dir in $PATH
1815 do
1816   IFS=$as_save_IFS
1817   test -z "$as_dir" && as_dir=.
1818   for ac_exec_ext in '' $ac_executable_extensions; do
1819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822     break 2
1823   fi
1824 done
1825 done
1826
1827 fi
1828 fi
1829 CC=$ac_cv_prog_CC
1830 if test -n "$CC"; then
1831   echo "$as_me:$LINENO: result: $CC" >&5
1832 echo "${ECHO_T}$CC" >&6
1833 else
1834   echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1836 fi
1837
1838 fi
1839 if test -z "$ac_cv_prog_CC"; then
1840   ac_ct_CC=$CC
1841   # Extract the first word of "gcc", so it can be a program name with args.
1842 set dummy gcc; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1846   echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848   if test -n "$ac_ct_CC"; then
1849   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1850 else
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1853 do
1854   IFS=$as_save_IFS
1855   test -z "$as_dir" && as_dir=.
1856   for ac_exec_ext in '' $ac_executable_extensions; do
1857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858     ac_cv_prog_ac_ct_CC="gcc"
1859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860     break 2
1861   fi
1862 done
1863 done
1864
1865 fi
1866 fi
1867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1868 if test -n "$ac_ct_CC"; then
1869   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1870 echo "${ECHO_T}$ac_ct_CC" >&6
1871 else
1872   echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1874 fi
1875
1876   CC=$ac_ct_CC
1877 else
1878   CC="$ac_cv_prog_CC"
1879 fi
1880
1881 if test -z "$CC"; then
1882   if test -n "$ac_tool_prefix"; then
1883   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1884 set dummy ${ac_tool_prefix}cc; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_CC+set}" = set; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   if test -n "$CC"; then
1891   ac_cv_prog_CC="$CC" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896   IFS=$as_save_IFS
1897   test -z "$as_dir" && as_dir=.
1898   for ac_exec_ext in '' $ac_executable_extensions; do
1899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900     ac_cv_prog_CC="${ac_tool_prefix}cc"
1901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902     break 2
1903   fi
1904 done
1905 done
1906
1907 fi
1908 fi
1909 CC=$ac_cv_prog_CC
1910 if test -n "$CC"; then
1911   echo "$as_me:$LINENO: result: $CC" >&5
1912 echo "${ECHO_T}$CC" >&6
1913 else
1914   echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1916 fi
1917
1918 fi
1919 if test -z "$ac_cv_prog_CC"; then
1920   ac_ct_CC=$CC
1921   # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   if test -n "$ac_ct_CC"; then
1929   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1933 do
1934   IFS=$as_save_IFS
1935   test -z "$as_dir" && as_dir=.
1936   for ac_exec_ext in '' $ac_executable_extensions; do
1937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938     ac_cv_prog_ac_ct_CC="cc"
1939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940     break 2
1941   fi
1942 done
1943 done
1944
1945 fi
1946 fi
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6
1951 else
1952   echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1954 fi
1955
1956   CC=$ac_ct_CC
1957 else
1958   CC="$ac_cv_prog_CC"
1959 fi
1960
1961 fi
1962 if test -z "$CC"; then
1963   # Extract the first word of "cc", so it can be a program name with args.
1964 set dummy cc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$CC"; then
1971   ac_cv_prog_CC="$CC" # Let the user override the test.
1972 else
1973   ac_prog_rejected=no
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977   IFS=$as_save_IFS
1978   test -z "$as_dir" && as_dir=.
1979   for ac_exec_ext in '' $ac_executable_extensions; do
1980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1982        ac_prog_rejected=yes
1983        continue
1984      fi
1985     ac_cv_prog_CC="cc"
1986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987     break 2
1988   fi
1989 done
1990 done
1991
1992 if test $ac_prog_rejected = yes; then
1993   # We found a bogon in the path, so make sure we never use it.
1994   set dummy $ac_cv_prog_CC
1995   shift
1996   if test $# != 0; then
1997     # We chose a different compiler from the bogus one.
1998     # However, it has the same basename, so the bogon will be chosen
1999     # first if we set CC to just the basename; use the full file name.
2000     shift
2001     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2002   fi
2003 fi
2004 fi
2005 fi
2006 CC=$ac_cv_prog_CC
2007 if test -n "$CC"; then
2008   echo "$as_me:$LINENO: result: $CC" >&5
2009 echo "${ECHO_T}$CC" >&6
2010 else
2011   echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2013 fi
2014
2015 fi
2016 if test -z "$CC"; then
2017   if test -n "$ac_tool_prefix"; then
2018   for ac_prog in cl
2019   do
2020     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_CC+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   if test -n "$CC"; then
2028   ac_cv_prog_CC="$CC" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2032 do
2033   IFS=$as_save_IFS
2034   test -z "$as_dir" && as_dir=.
2035   for ac_exec_ext in '' $ac_executable_extensions; do
2036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039     break 2
2040   fi
2041 done
2042 done
2043
2044 fi
2045 fi
2046 CC=$ac_cv_prog_CC
2047 if test -n "$CC"; then
2048   echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6
2050 else
2051   echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2053 fi
2054
2055     test -n "$CC" && break
2056   done
2057 fi
2058 if test -z "$CC"; then
2059   ac_ct_CC=$CC
2060   for ac_prog in cl
2061 do
2062   # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy $ac_prog; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067   echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069   if test -n "$ac_ct_CC"; then
2070   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2074 do
2075   IFS=$as_save_IFS
2076   test -z "$as_dir" && as_dir=.
2077   for ac_exec_ext in '' $ac_executable_extensions; do
2078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079     ac_cv_prog_ac_ct_CC="$ac_prog"
2080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081     break 2
2082   fi
2083 done
2084 done
2085
2086 fi
2087 fi
2088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089 if test -n "$ac_ct_CC"; then
2090   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091 echo "${ECHO_T}$ac_ct_CC" >&6
2092 else
2093   echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2095 fi
2096
2097   test -n "$ac_ct_CC" && break
2098 done
2099
2100   CC=$ac_ct_CC
2101 fi
2102
2103 fi
2104
2105
2106 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: no acceptable C compiler found in \$PATH
2109 See \`config.log' for more details." >&2;}
2110    { (exit 1); exit 1; }; }
2111
2112 # Provide some information about the compiler.
2113 echo "$as_me:$LINENO:" \
2114      "checking for C compiler version" >&5
2115 ac_compiler=`set X $ac_compile; echo $2`
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2117   (eval $ac_compiler --version </dev/null >&5) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2122   (eval $ac_compiler -v </dev/null >&5) 2>&5
2123   ac_status=$?
2124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125   (exit $ac_status); }
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2127   (eval $ac_compiler -V </dev/null >&5) 2>&5
2128   ac_status=$?
2129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130   (exit $ac_status); }
2131
2132 cat >conftest.$ac_ext <<_ACEOF
2133 #line $LINENO "configure"
2134 /* confdefs.h.  */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h.  */
2139
2140 int
2141 main ()
2142 {
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2152 # of exeext.
2153 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2154 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2157   (eval $ac_link_default) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; then
2161   # Find the output, starting from the most likely.  This scheme is
2162 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2163 # resort.
2164
2165 # Be careful to initialize this variable, since it used to be cached.
2166 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2167 ac_cv_exeext=
2168 # b.out is created by i960 compilers.
2169 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2170 do
2171   test -f "$ac_file" || continue
2172   case $ac_file in
2173     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2174         ;;
2175     conftest.$ac_ext )
2176         # This is the source file.
2177         ;;
2178     [ab].out )
2179         # We found the default executable, but exeext='' is most
2180         # certainly right.
2181         break;;
2182     *.* )
2183         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184         # FIXME: I believe we export ac_cv_exeext for Libtool,
2185         # but it would be cool to find out if it's true.  Does anybody
2186         # maintain Libtool? --akim.
2187         export ac_cv_exeext
2188         break;;
2189     * )
2190         break;;
2191   esac
2192 done
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201    { (exit 77); exit 77; }; }
2202 fi
2203
2204 ac_exeext=$ac_cv_exeext
2205 echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6
2207
2208 # Check the compiler produces executables we can run.  If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215   if { ac_try='./$ac_file'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; }; then
2221     cross_compiling=no
2222   else
2223     if test "$cross_compiling" = maybe; then
2224         cross_compiling=yes
2225     else
2226         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&2;}
2232    { (exit 1); exit 1; }; }
2233     fi
2234   fi
2235 fi
2236 echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6
2238
2239 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2240 ac_clean_files=$ac_clean_files_save
2241 # Check the compiler produces executables we can run.  If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2244 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2245 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2246 echo "${ECHO_T}$cross_compiling" >&6
2247
2248 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2249 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2251   (eval $ac_link) 2>&5
2252   ac_status=$?
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); }; then
2255   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2258 # `rm'.
2259 for ac_file in conftest.exe conftest conftest.*; do
2260   test -f "$ac_file" || continue
2261   case $ac_file in
2262     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2263     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264           export ac_cv_exeext
2265           break;;
2266     * ) break;;
2267   esac
2268 done
2269 else
2270   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275 fi
2276
2277 rm -f conftest$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6
2280
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2283 ac_exeext=$EXEEXT
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   cat >conftest.$ac_ext <<_ACEOF
2290 #line $LINENO "configure"
2291 /* confdefs.h.  */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h.  */
2296
2297 int
2298 main ()
2299 {
2300
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.o conftest.obj
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }; then
2311   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312   case $ac_file in
2313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2314     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2315        break;;
2316   esac
2317 done
2318 else
2319   echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&2;}
2326    { (exit 1); exit 1; }; }
2327 fi
2328
2329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2330 fi
2331 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332 echo "${ECHO_T}$ac_cv_objext" >&6
2333 OBJEXT=$ac_cv_objext
2334 ac_objext=$OBJEXT
2335 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2337 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2342 /* confdefs.h.  */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h.  */
2347
2348 int
2349 main ()
2350 {
2351 #ifndef __GNUC__
2352        choke me
2353 #endif
2354
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361   (eval $ac_compile) 2>&5
2362   ac_status=$?
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); } &&
2365          { ac_try='test -s conftest.$ac_objext'
2366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367   (eval $ac_try) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }; }; then
2371   ac_compiler_gnu=yes
2372 else
2373   echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 ac_compiler_gnu=no
2377 fi
2378 rm -f conftest.$ac_objext conftest.$ac_ext
2379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2380
2381 fi
2382 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2383 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2384 GCC=`test $ac_compiler_gnu = yes && echo yes`
2385 ac_test_CFLAGS=${CFLAGS+set}
2386 ac_save_CFLAGS=$CFLAGS
2387 CFLAGS="-g"
2388 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2389 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2390 if test "${ac_cv_prog_cc_g+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   cat >conftest.$ac_ext <<_ACEOF
2394 #line $LINENO "configure"
2395 /* confdefs.h.  */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h.  */
2400
2401 int
2402 main ()
2403 {
2404
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411   (eval $ac_compile) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); } &&
2415          { ac_try='test -s conftest.$ac_objext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   ac_cv_prog_cc_g=yes
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 ac_cv_prog_cc_g=no
2427 fi
2428 rm -f conftest.$ac_objext conftest.$ac_ext
2429 fi
2430 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2431 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2432 if test "$ac_test_CFLAGS" = set; then
2433   CFLAGS=$ac_save_CFLAGS
2434 elif test $ac_cv_prog_cc_g = yes; then
2435   if test "$GCC" = yes; then
2436     CFLAGS="-g -O2"
2437   else
2438     CFLAGS="-g"
2439   fi
2440 else
2441   if test "$GCC" = yes; then
2442     CFLAGS="-O2"
2443   else
2444     CFLAGS=
2445   fi
2446 fi
2447 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2448 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2449 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   ac_cv_prog_cc_stdc=no
2453 ac_save_CC=$CC
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461 #include <stdarg.h>
2462 #include <stdio.h>
2463 #include <sys/types.h>
2464 #include <sys/stat.h>
2465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2466 struct buf { int x; };
2467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2468 static char *e (p, i)
2469      char **p;
2470      int i;
2471 {
2472   return p[i];
2473 }
2474 static char *f (char * (*g) (char **, int), char **p, ...)
2475 {
2476   char *s;
2477   va_list v;
2478   va_start (v,p);
2479   s = g (p, va_arg (v,int));
2480   va_end (v);
2481   return s;
2482 }
2483 int test (int i, double x);
2484 struct s1 {int (*f) (int a);};
2485 struct s2 {int (*f) (double a);};
2486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2487 int argc;
2488 char **argv;
2489 int
2490 main ()
2491 {
2492 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2493   ;
2494   return 0;
2495 }
2496 _ACEOF
2497 # Don't try gcc -ansi; that turns off useful extensions and
2498 # breaks some systems' header files.
2499 # AIX                   -qlanglvl=ansi
2500 # Ultrix and OSF/1      -std1
2501 # HP-UX 10.20 and later -Ae
2502 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2503 # SVR4                  -Xc -D__EXTENSIONS__
2504 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 do
2506   CC="$ac_save_CC $ac_arg"
2507   rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509   (eval $ac_compile) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); } &&
2513          { ac_try='test -s conftest.$ac_objext'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; }; then
2519   ac_cv_prog_cc_stdc=$ac_arg
2520 break
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 fi
2526 rm -f conftest.$ac_objext
2527 done
2528 rm -f conftest.$ac_ext conftest.$ac_objext
2529 CC=$ac_save_CC
2530
2531 fi
2532
2533 case "x$ac_cv_prog_cc_stdc" in
2534   x|xno)
2535     echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2537   *)
2538     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540     CC="$CC $ac_cv_prog_cc_stdc" ;;
2541 esac
2542
2543 # Some people use a C++ compiler to compile C.  Since we use `exit',
2544 # in C++ we need to declare it.  In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.$ac_ext <<_ACEOF
2548 #ifndef __cplusplus
2549   choke me
2550 #endif
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554   (eval $ac_compile) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -s conftest.$ac_objext'
2559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560   (eval $ac_try) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; }; then
2564   for ac_declaration in \
2565    ''\
2566    '#include <stdlib.h>' \
2567    'extern "C" void std::exit (int) throw (); using std::exit;' \
2568    'extern "C" void std::exit (int); using std::exit;' \
2569    'extern "C" void exit (int) throw ();' \
2570    'extern "C" void exit (int);' \
2571    'void exit (int);'
2572 do
2573   cat >conftest.$ac_ext <<_ACEOF
2574 #line $LINENO "configure"
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580 #include <stdlib.h>
2581 $ac_declaration
2582 int
2583 main ()
2584 {
2585 exit (42);
2586   ;
2587   return 0;
2588 }
2589 _ACEOF
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592   (eval $ac_compile) 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); } &&
2596          { ac_try='test -s conftest.$ac_objext'
2597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598   (eval $ac_try) 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; }; then
2602   :
2603 else
2604   echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607 continue
2608 fi
2609 rm -f conftest.$ac_objext conftest.$ac_ext
2610   cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 /* confdefs.h.  */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h.  */
2617 $ac_declaration
2618 int
2619 main ()
2620 {
2621 exit (42);
2622   ;
2623   return 0;
2624 }
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628   (eval $ac_compile) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } &&
2632          { ac_try='test -s conftest.$ac_objext'
2633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634   (eval $ac_try) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; }; then
2638   break
2639 else
2640   echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 fi
2644 rm -f conftest.$ac_objext conftest.$ac_ext
2645 done
2646 rm -f conftest*
2647 if test -n "$ac_declaration"; then
2648   echo '#ifdef __cplusplus' >>confdefs.h
2649   echo $ac_declaration      >>confdefs.h
2650   echo '#endif'             >>confdefs.h
2651 fi
2652
2653 else
2654   echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2656
2657 fi
2658 rm -f conftest.$ac_objext conftest.$ac_ext
2659 ac_ext=c
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 rm -f .deps 2>/dev/null
2665 mkdir .deps 2>/dev/null
2666 if test -d .deps; then
2667   DEPDIR=.deps
2668 else
2669   # MS-DOS does not allow filenames that begin with a dot.
2670   DEPDIR=_deps
2671 fi
2672 rmdir .deps 2>/dev/null
2673
2674
2675           ac_config_commands="$ac_config_commands depfiles"
2676
2677
2678 am_make=${MAKE-make}
2679 cat > confinc << 'END'
2680 doit:
2681         @echo done
2682 END
2683 # If we don't find an include directive, just comment out the code.
2684 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2685 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2686 am__include="#"
2687 am__quote=
2688 _am_result=none
2689 # First try GNU make style include.
2690 echo "include confinc" > confmf
2691 # We grep out `Entering directory' and `Leaving directory'
2692 # messages which can occur if `w' ends up in MAKEFLAGS.
2693 # In particular we don't look at `^make:' because GNU make might
2694 # be invoked under some other name (usually "gmake"), in which
2695 # case it prints its new name instead of `make'.
2696 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2697    am__include=include
2698    am__quote=
2699    _am_result=GNU
2700 fi
2701 # Now try BSD make style include.
2702 if test "$am__include" = "#"; then
2703    echo '.include "confinc"' > confmf
2704    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2705       am__include=.include
2706       am__quote="\""
2707       _am_result=BSD
2708    fi
2709 fi
2710
2711
2712 echo "$as_me:$LINENO: result: $_am_result" >&5
2713 echo "${ECHO_T}$_am_result" >&6
2714 rm -f confinc confmf
2715
2716 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2717 if test "${enable_dependency_tracking+set}" = set; then
2718   enableval="$enable_dependency_tracking"
2719
2720 fi;
2721 if test "x$enable_dependency_tracking" != xno; then
2722   am_depcomp="$ac_aux_dir/depcomp"
2723   AMDEPBACKSLASH='\'
2724 fi
2725
2726
2727 if test "x$enable_dependency_tracking" != xno; then
2728   AMDEP_TRUE=
2729   AMDEP_FALSE='#'
2730 else
2731   AMDEP_TRUE='#'
2732   AMDEP_FALSE=
2733 fi
2734
2735
2736
2737
2738 depcc="$CC"   am_compiler_list=
2739
2740 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2741 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2742 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2743   echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2746   # We make a subdir and do the tests there.  Otherwise we can end up
2747   # making bogus files that we don't know about and never remove.  For
2748   # instance it was reported that on HP-UX the gcc test will end up
2749   # making a dummy file named `D' -- because `-MD' means `put the output
2750   # in D'.
2751   mkdir conftest.dir
2752   # Copy depcomp to subdir because otherwise we won't find it if we're
2753   # using a relative directory.
2754   cp "$am_depcomp" conftest.dir
2755   cd conftest.dir
2756
2757   am_cv_CC_dependencies_compiler_type=none
2758   if test "$am_compiler_list" = ""; then
2759      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2760   fi
2761   for depmode in $am_compiler_list; do
2762     # We need to recreate these files for each test, as the compiler may
2763     # overwrite some of them when testing with obscure command lines.
2764     # This happens at least with the AIX C compiler.
2765     echo '#include "conftest.h"' > conftest.c
2766     echo 'int i;' > conftest.h
2767     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2768
2769     case $depmode in
2770     nosideeffect)
2771       # after this tag, mechanisms are not by side-effect, so they'll
2772       # only be used when explicitly requested
2773       if test "x$enable_dependency_tracking" = xyes; then
2774         continue
2775       else
2776         break
2777       fi
2778       ;;
2779     none) break ;;
2780     esac
2781     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2782     # mode.  It turns out that the SunPro C++ compiler does not properly
2783     # handle `-M -o', and we need to detect this.
2784     if depmode=$depmode \
2785        source=conftest.c object=conftest.o \
2786        depfile=conftest.Po tmpdepfile=conftest.TPo \
2787        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2788        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2789        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2790       am_cv_CC_dependencies_compiler_type=$depmode
2791       break
2792     fi
2793   done
2794
2795   cd ..
2796   rm -rf conftest.dir
2797 else
2798   am_cv_CC_dependencies_compiler_type=none
2799 fi
2800
2801 fi
2802 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2803 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2805
2806
2807
2808 if
2809   test "x$enable_dependency_tracking" != xno \
2810   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2811   am__fastdepCC_TRUE=
2812   am__fastdepCC_FALSE='#'
2813 else
2814   am__fastdepCC_TRUE='#'
2815   am__fastdepCC_FALSE=
2816 fi
2817
2818
2819 fi
2820
2821
2822
2823         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2824 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2825 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2826   echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828   ac_check_lib_save_LIBS=$LIBS
2829 LIBS="-lcposix  $LIBS"
2830 cat >conftest.$ac_ext <<_ACEOF
2831 #line $LINENO "configure"
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837
2838 /* Override any gcc2 internal prototype to avoid an error.  */
2839 #ifdef __cplusplus
2840 extern "C"
2841 #endif
2842 /* We use char because int might match the return type of a gcc2
2843    builtin and then its argument prototype would still apply.  */
2844 char strerror ();
2845 int
2846 main ()
2847 {
2848 strerror ();
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 rm -f conftest.$ac_objext conftest$ac_exeext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2855   (eval $ac_link) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); } &&
2859          { ac_try='test -s conftest$ac_exeext'
2860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861   (eval $ac_try) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); }; }; then
2865   ac_cv_lib_cposix_strerror=yes
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 ac_cv_lib_cposix_strerror=no
2871 fi
2872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2873 LIBS=$ac_check_lib_save_LIBS
2874 fi
2875 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2876 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2877 if test $ac_cv_lib_cposix_strerror = yes; then
2878   LIBS="$LIBS -lcposix"
2879 fi
2880
2881
2882
2883
2884
2885
2886 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2887 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2888 if test "${am_cv_prog_cc_stdc+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891   am_cv_prog_cc_stdc=no
2892 ac_save_CC="$CC"
2893 # Don't try gcc -ansi; that turns off useful extensions and
2894 # breaks some systems' header files.
2895 # AIX                   -qlanglvl=ansi
2896 # Ultrix and OSF/1      -std1
2897 # HP-UX 10.20 and later -Ae
2898 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2899 # SVR4                  -Xc -D__EXTENSIONS__
2900 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2901 do
2902   CC="$ac_save_CC $ac_arg"
2903   cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910 #include <stdarg.h>
2911 #include <stdio.h>
2912 #include <sys/types.h>
2913 #include <sys/stat.h>
2914 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2915 struct buf { int x; };
2916 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2917 static char *e (p, i)
2918      char **p;
2919      int i;
2920 {
2921   return p[i];
2922 }
2923 static char *f (char * (*g) (char **, int), char **p, ...)
2924 {
2925   char *s;
2926   va_list v;
2927   va_start (v,p);
2928   s = g (p, va_arg (v,int));
2929   va_end (v);
2930   return s;
2931 }
2932 int test (int i, double x);
2933 struct s1 {int (*f) (int a);};
2934 struct s2 {int (*f) (double a);};
2935 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2936 int argc;
2937 char **argv;
2938
2939 int
2940 main ()
2941 {
2942
2943 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2944
2945   ;
2946   return 0;
2947 }
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951   (eval $ac_compile) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } &&
2955          { ac_try='test -s conftest.$ac_objext'
2956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957   (eval $ac_try) 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }; }; then
2961   am_cv_prog_cc_stdc="$ac_arg"; break
2962 else
2963   echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 fi
2967 rm -f conftest.$ac_objext conftest.$ac_ext
2968 done
2969 CC="$ac_save_CC"
2970
2971 fi
2972
2973 if test -z "$am_cv_prog_cc_stdc"; then
2974   echo "$as_me:$LINENO: result: none needed" >&5
2975 echo "${ECHO_T}none needed" >&6
2976 else
2977   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2978 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2979 fi
2980 case "x$am_cv_prog_cc_stdc" in
2981   x|xno) ;;
2982   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2983 esac
2984
2985 ac_ext=c
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2991 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2992 # On Suns, sometimes $CPP names a directory.
2993 if test -n "$CPP" && test -d "$CPP"; then
2994   CPP=
2995 fi
2996 if test -z "$CPP"; then
2997   if test "${ac_cv_prog_CPP+set}" = set; then
2998   echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000       # Double quotes because CPP needs to be expanded
3001     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3002     do
3003       ac_preproc_ok=false
3004 for ac_c_preproc_warn_flag in '' yes
3005 do
3006   # Use a header file that comes with gcc, so configuring glibc
3007   # with a fresh cross-compiler works.
3008   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3009   # <limits.h> exists even on freestanding compilers.
3010   # On the NeXT, cc -E runs the code through the compiler's parser,
3011   # not just through cpp. "Syntax error" is here to catch this case.
3012   cat >conftest.$ac_ext <<_ACEOF
3013 #line $LINENO "configure"
3014 /* confdefs.h.  */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h.  */
3019 #ifdef __STDC__
3020 # include <limits.h>
3021 #else
3022 # include <assert.h>
3023 #endif
3024                      Syntax error
3025 _ACEOF
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } >/dev/null; then
3034   if test -s conftest.err; then
3035     ac_cpp_err=$ac_c_preproc_warn_flag
3036   else
3037     ac_cpp_err=
3038   fi
3039 else
3040   ac_cpp_err=yes
3041 fi
3042 if test -z "$ac_cpp_err"; then
3043   :
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048   # Broken: fails on valid input.
3049 continue
3050 fi
3051 rm -f conftest.err conftest.$ac_ext
3052
3053   # OK, works on sane cases.  Now check whether non-existent headers
3054   # can be detected and how.
3055   cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3057 /* confdefs.h.  */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h.  */
3062 #include <ac_nonexistent.h>
3063 _ACEOF
3064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066   ac_status=$?
3067   grep -v '^ *+' conftest.er1 >conftest.err
3068   rm -f conftest.er1
3069   cat conftest.err >&5
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } >/dev/null; then
3072   if test -s conftest.err; then
3073     ac_cpp_err=$ac_c_preproc_warn_flag
3074   else
3075     ac_cpp_err=
3076   fi
3077 else
3078   ac_cpp_err=yes
3079 fi
3080 if test -z "$ac_cpp_err"; then
3081   # Broken: success on invalid input.
3082 continue
3083 else
3084   echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087   # Passes both tests.
3088 ac_preproc_ok=:
3089 break
3090 fi
3091 rm -f conftest.err conftest.$ac_ext
3092
3093 done
3094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3095 rm -f conftest.err conftest.$ac_ext
3096 if $ac_preproc_ok; then
3097   break
3098 fi
3099
3100     done
3101     ac_cv_prog_CPP=$CPP
3102
3103 fi
3104   CPP=$ac_cv_prog_CPP
3105 else
3106   ac_cv_prog_CPP=$CPP
3107 fi
3108 echo "$as_me:$LINENO: result: $CPP" >&5
3109 echo "${ECHO_T}$CPP" >&6
3110 ac_preproc_ok=false
3111 for ac_c_preproc_warn_flag in '' yes
3112 do
3113   # Use a header file that comes with gcc, so configuring glibc
3114   # with a fresh cross-compiler works.
3115   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3116   # <limits.h> exists even on freestanding compilers.
3117   # On the NeXT, cc -E runs the code through the compiler's parser,
3118   # not just through cpp. "Syntax error" is here to catch this case.
3119   cat >conftest.$ac_ext <<_ACEOF
3120 #line $LINENO "configure"
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126 #ifdef __STDC__
3127 # include <limits.h>
3128 #else
3129 # include <assert.h>
3130 #endif
3131                      Syntax error
3132 _ACEOF
3133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135   ac_status=$?
3136   grep -v '^ *+' conftest.er1 >conftest.err
3137   rm -f conftest.er1
3138   cat conftest.err >&5
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } >/dev/null; then
3141   if test -s conftest.err; then
3142     ac_cpp_err=$ac_c_preproc_warn_flag
3143   else
3144     ac_cpp_err=
3145   fi
3146 else
3147   ac_cpp_err=yes
3148 fi
3149 if test -z "$ac_cpp_err"; then
3150   :
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155   # Broken: fails on valid input.
3156 continue
3157 fi
3158 rm -f conftest.err conftest.$ac_ext
3159
3160   # OK, works on sane cases.  Now check whether non-existent headers
3161   # can be detected and how.
3162   cat >conftest.$ac_ext <<_ACEOF
3163 #line $LINENO "configure"
3164 /* confdefs.h.  */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h.  */
3169 #include <ac_nonexistent.h>
3170 _ACEOF
3171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3172   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3173   ac_status=$?
3174   grep -v '^ *+' conftest.er1 >conftest.err
3175   rm -f conftest.er1
3176   cat conftest.err >&5
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } >/dev/null; then
3179   if test -s conftest.err; then
3180     ac_cpp_err=$ac_c_preproc_warn_flag
3181   else
3182     ac_cpp_err=
3183   fi
3184 else
3185   ac_cpp_err=yes
3186 fi
3187 if test -z "$ac_cpp_err"; then
3188   # Broken: success on invalid input.
3189 continue
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194   # Passes both tests.
3195 ac_preproc_ok=:
3196 break
3197 fi
3198 rm -f conftest.err conftest.$ac_ext
3199
3200 done
3201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3202 rm -f conftest.err conftest.$ac_ext
3203 if $ac_preproc_ok; then
3204   :
3205 else
3206   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3207 See \`config.log' for more details." >&5
3208 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3209 See \`config.log' for more details." >&2;}
3210    { (exit 1); exit 1; }; }
3211 fi
3212
3213 ac_ext=c
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218
3219
3220 echo "$as_me:$LINENO: checking for egrep" >&5
3221 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3222 if test "${ac_cv_prog_egrep+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3226     then ac_cv_prog_egrep='grep -E'
3227     else ac_cv_prog_egrep='egrep'
3228     fi
3229 fi
3230 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3231 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3232  EGREP=$ac_cv_prog_egrep
3233
3234
3235 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3246                   inttypes.h stdint.h unistd.h
3247 do
3248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3249 echo "$as_me:$LINENO: checking for $ac_header" >&5
3250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   cat >conftest.$ac_ext <<_ACEOF
3255 #line $LINENO "configure"
3256 /* confdefs.h.  */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h.  */
3261 $ac_includes_default
3262
3263 #include <$ac_header>
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267   (eval $ac_compile) 2>&5
3268   ac_status=$?
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); } &&
3271          { ac_try='test -s conftest.$ac_objext'
3272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273   (eval $ac_try) 2>&5
3274   ac_status=$?
3275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276   (exit $ac_status); }; }; then
3277   eval "$as_ac_Header=yes"
3278 else
3279   echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 eval "$as_ac_Header=no"
3283 fi
3284 rm -f conftest.$ac_objext conftest.$ac_ext
3285 fi
3286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3289   cat >>confdefs.h <<_ACEOF
3290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3291 _ACEOF
3292
3293 fi
3294
3295 done
3296
3297
3298
3299
3300 echo "$as_me:$LINENO: checking for function prototypes" >&5
3301 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3302 if test "$am_cv_prog_cc_stdc" != no; then
3303   echo "$as_me:$LINENO: result: yes" >&5
3304 echo "${ECHO_T}yes" >&6
3305
3306 cat >>confdefs.h <<\_ACEOF
3307 #define PROTOTYPES 1
3308 _ACEOF
3309
3310   U= ANSI2KNR=
3311 else
3312   echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3314   U=_ ANSI2KNR=./ansi2knr
3315 fi
3316 # Ensure some checks needed by ansi2knr itself.
3317 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3319 if test "${ac_cv_header_stdc+set}" = set; then
3320   echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322   cat >conftest.$ac_ext <<_ACEOF
3323 #line $LINENO "configure"
3324 /* confdefs.h.  */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h.  */
3329 #include <stdlib.h>
3330 #include <stdarg.h>
3331 #include <string.h>
3332 #include <float.h>
3333
3334 int
3335 main ()
3336 {
3337
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_stdc=yes
3355 else
3356   echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359 ac_cv_header_stdc=no
3360 fi
3361 rm -f conftest.$ac_objext conftest.$ac_ext
3362
3363 if test $ac_cv_header_stdc = yes; then
3364   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3365   cat >conftest.$ac_ext <<_ACEOF
3366 #line $LINENO "configure"
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372 #include <string.h>
3373
3374 _ACEOF
3375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3376   $EGREP "memchr" >/dev/null 2>&1; then
3377   :
3378 else
3379   ac_cv_header_stdc=no
3380 fi
3381 rm -f conftest*
3382
3383 fi
3384
3385 if test $ac_cv_header_stdc = yes; then
3386   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3387   cat >conftest.$ac_ext <<_ACEOF
3388 #line $LINENO "configure"
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #include <stdlib.h>
3395
3396 _ACEOF
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398   $EGREP "free" >/dev/null 2>&1; then
3399   :
3400 else
3401   ac_cv_header_stdc=no
3402 fi
3403 rm -f conftest*
3404
3405 fi
3406
3407 if test $ac_cv_header_stdc = yes; then
3408   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3409   if test "$cross_compiling" = yes; then
3410   :
3411 else
3412   cat >conftest.$ac_ext <<_ACEOF
3413 #line $LINENO "configure"
3414 /* confdefs.h.  */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h.  */
3419 #include <ctype.h>
3420 #if ((' ' & 0x0FF) == 0x020)
3421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3423 #else
3424 # define ISLOWER(c) \
3425                    (('a' <= (c) && (c) <= 'i') \
3426                      || ('j' <= (c) && (c) <= 'r') \
3427                      || ('s' <= (c) && (c) <= 'z'))
3428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3429 #endif
3430
3431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3432 int
3433 main ()
3434 {
3435   int i;
3436   for (i = 0; i < 256; i++)
3437     if (XOR (islower (i), ISLOWER (i))
3438         || toupper (i) != TOUPPER (i))
3439       exit(2);
3440   exit (0);
3441 }
3442 _ACEOF
3443 rm -f conftest$ac_exeext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3445   (eval $ac_link) 2>&5
3446   ac_status=$?
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450   (eval $ac_try) 2>&5
3451   ac_status=$?
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); }; }; then
3454   :
3455 else
3456   echo "$as_me: program exited with status $ac_status" >&5
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 ( exit $ac_status )
3461 ac_cv_header_stdc=no
3462 fi
3463 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3464 fi
3465 fi
3466 fi
3467 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3468 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3469 if test $ac_cv_header_stdc = yes; then
3470
3471 cat >>confdefs.h <<\_ACEOF
3472 #define STDC_HEADERS 1
3473 _ACEOF
3474
3475 fi
3476
3477
3478 for ac_header in string.h
3479 do
3480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3482   echo "$as_me:$LINENO: checking for $ac_header" >&5
3483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485   echo $ECHO_N "(cached) $ECHO_C" >&6
3486 fi
3487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3489 else
3490   # Is the header compilable?
3491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3493 cat >conftest.$ac_ext <<_ACEOF
3494 #line $LINENO "configure"
3495 /* confdefs.h.  */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h.  */
3500 $ac_includes_default
3501 #include <$ac_header>
3502 _ACEOF
3503 rm -f conftest.$ac_objext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3505   (eval $ac_compile) 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } &&
3509          { ac_try='test -s conftest.$ac_objext'
3510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511   (eval $ac_try) 2>&5
3512   ac_status=$?
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); }; }; then
3515   ac_header_compiler=yes
3516 else
3517   echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 ac_header_compiler=no
3521 fi
3522 rm -f conftest.$ac_objext conftest.$ac_ext
3523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3524 echo "${ECHO_T}$ac_header_compiler" >&6
3525
3526 # Is the header present?
3527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3529 cat >conftest.$ac_ext <<_ACEOF
3530 #line $LINENO "configure"
3531 /* confdefs.h.  */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h.  */
3536 #include <$ac_header>
3537 _ACEOF
3538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3539   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3540   ac_status=$?
3541   grep -v '^ *+' conftest.er1 >conftest.err
3542   rm -f conftest.er1
3543   cat conftest.err >&5
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } >/dev/null; then
3546   if test -s conftest.err; then
3547     ac_cpp_err=$ac_c_preproc_warn_flag
3548   else
3549     ac_cpp_err=
3550   fi
3551 else
3552   ac_cpp_err=yes
3553 fi
3554 if test -z "$ac_cpp_err"; then
3555   ac_header_preproc=yes
3556 else
3557   echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560   ac_header_preproc=no
3561 fi
3562 rm -f conftest.err conftest.$ac_ext
3563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3564 echo "${ECHO_T}$ac_header_preproc" >&6
3565
3566 # So?  What about this header?
3567 case $ac_header_compiler:$ac_header_preproc in
3568   yes:no )
3569     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3573     (
3574       cat <<\_ASBOX
3575 ## ------------------------------------ ##
3576 ## Report this to bug-autoconf@gnu.org. ##
3577 ## ------------------------------------ ##
3578 _ASBOX
3579     ) |
3580       sed "s/^/$as_me: WARNING:     /" >&2
3581     ;;
3582   no:yes )
3583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3585     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3589     (
3590       cat <<\_ASBOX
3591 ## ------------------------------------ ##
3592 ## Report this to bug-autoconf@gnu.org. ##
3593 ## ------------------------------------ ##
3594 _ASBOX
3595     ) |
3596       sed "s/^/$as_me: WARNING:     /" >&2
3597     ;;
3598 esac
3599 echo "$as_me:$LINENO: checking for $ac_header" >&5
3600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3602   echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604   eval "$as_ac_Header=$ac_header_preproc"
3605 fi
3606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3608
3609 fi
3610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3611   cat >>confdefs.h <<_ACEOF
3612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3613 _ACEOF
3614
3615 fi
3616
3617 done
3618
3619
3620
3621 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3622 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3623 if test "${ac_cv_c_const+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   cat >conftest.$ac_ext <<_ACEOF
3627 #line $LINENO "configure"
3628 /* confdefs.h.  */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h.  */
3633
3634 int
3635 main ()
3636 {
3637 /* FIXME: Include the comments suggested by Paul. */
3638 #ifndef __cplusplus
3639   /* Ultrix mips cc rejects this.  */
3640   typedef int charset[2];
3641   const charset x;
3642   /* SunOS 4.1.1 cc rejects this.  */
3643   char const *const *ccp;
3644   char **p;
3645   /* NEC SVR4.0.2 mips cc rejects this.  */
3646   struct point {int x, y;};
3647   static struct point const zero = {0,0};
3648   /* AIX XL C 1.02.0.0 rejects this.
3649      It does not let you subtract one const X* pointer from another in
3650      an arm of an if-expression whose if-part is not a constant
3651      expression */
3652   const char *g = "string";
3653   ccp = &g + (g ? g-g : 0);
3654   /* HPUX 7.0 cc rejects these. */
3655   ++ccp;
3656   p = (char**) ccp;
3657   ccp = (char const *const *) p;
3658   { /* SCO 3.2v4 cc rejects this.  */
3659     char *t;
3660     char const *s = 0 ? (char *) 0 : (char const *) 0;
3661
3662     *t++ = 0;
3663   }
3664   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3665     int x[] = {25, 17};
3666     const int *foo = &x[0];
3667     ++foo;
3668   }
3669   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3670     typedef const int *iptr;
3671     iptr p = 0;
3672     ++p;
3673   }
3674   { /* AIX XL C 1.02.0.0 rejects this saying
3675        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3676     struct s { int j; const int *ap[3]; };
3677     struct s *b; b->j = 5;
3678   }
3679   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3680     const int foo = 10;
3681   }
3682 #endif
3683
3684   ;
3685   return 0;
3686 }
3687 _ACEOF
3688 rm -f conftest.$ac_objext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690   (eval $ac_compile) 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); } &&
3694          { ac_try='test -s conftest.$ac_objext'
3695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696   (eval $ac_try) 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; }; then
3700   ac_cv_c_const=yes
3701 else
3702   echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 ac_cv_c_const=no
3706 fi
3707 rm -f conftest.$ac_objext conftest.$ac_ext
3708 fi
3709 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3710 echo "${ECHO_T}$ac_cv_c_const" >&6
3711 if test $ac_cv_c_const = no; then
3712
3713 cat >>confdefs.h <<\_ACEOF
3714 #define const
3715 _ACEOF
3716
3717 fi
3718
3719 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3720 # for constant arguments.  Useless!
3721 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3722 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3723 if test "${ac_cv_working_alloca_h+set}" = set; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   cat >conftest.$ac_ext <<_ACEOF
3727 #line $LINENO "configure"
3728 /* confdefs.h.  */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h.  */
3733 #include <alloca.h>
3734 int
3735 main ()
3736 {
3737 char *p = (char *) alloca (2 * sizeof (int));
3738   ;
3739   return 0;
3740 }
3741 _ACEOF
3742 rm -f conftest.$ac_objext conftest$ac_exeext
3743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3744   (eval $ac_link) 2>&5
3745   ac_status=$?
3746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747   (exit $ac_status); } &&
3748          { ac_try='test -s conftest$ac_exeext'
3749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750   (eval $ac_try) 2>&5
3751   ac_status=$?
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); }; }; then
3754   ac_cv_working_alloca_h=yes
3755 else
3756   echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3758
3759 ac_cv_working_alloca_h=no
3760 fi
3761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3762 fi
3763 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3764 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3765 if test $ac_cv_working_alloca_h = yes; then
3766
3767 cat >>confdefs.h <<\_ACEOF
3768 #define HAVE_ALLOCA_H 1
3769 _ACEOF
3770
3771 fi
3772
3773 echo "$as_me:$LINENO: checking for alloca" >&5
3774 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3775 if test "${ac_cv_func_alloca_works+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   cat >conftest.$ac_ext <<_ACEOF
3779 #line $LINENO "configure"
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785 #ifdef __GNUC__
3786 # define alloca __builtin_alloca
3787 #else
3788 # ifdef _MSC_VER
3789 #  include <malloc.h>
3790 #  define alloca _alloca
3791 # else
3792 #  if HAVE_ALLOCA_H
3793 #   include <alloca.h>
3794 #  else
3795 #   ifdef _AIX
3796  #pragma alloca
3797 #   else
3798 #    ifndef alloca /* predefined by HP cc +Olibcalls */
3799 char *alloca ();
3800 #    endif
3801 #   endif
3802 #  endif
3803 # endif
3804 #endif
3805
3806 int
3807 main ()
3808 {
3809 char *p = (char *) alloca (1);
3810   ;
3811   return 0;
3812 }
3813 _ACEOF
3814 rm -f conftest.$ac_objext conftest$ac_exeext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3816   (eval $ac_link) 2>&5
3817   ac_status=$?
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); } &&
3820          { ac_try='test -s conftest$ac_exeext'
3821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822   (eval $ac_try) 2>&5
3823   ac_status=$?
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); }; }; then
3826   ac_cv_func_alloca_works=yes
3827 else
3828   echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3830
3831 ac_cv_func_alloca_works=no
3832 fi
3833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3834 fi
3835 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3836 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3837
3838 if test $ac_cv_func_alloca_works = yes; then
3839
3840 cat >>confdefs.h <<\_ACEOF
3841 #define HAVE_ALLOCA 1
3842 _ACEOF
3843
3844 else
3845   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3846 # that cause trouble.  Some versions do not even contain alloca or
3847 # contain a buggy version.  If you still want to use their alloca,
3848 # use ar to extract alloca.o from them instead of compiling alloca.c.
3849
3850 ALLOCA=alloca.$ac_objext
3851
3852 cat >>confdefs.h <<\_ACEOF
3853 #define C_ALLOCA 1
3854 _ACEOF
3855
3856
3857 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3858 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3859 if test "${ac_cv_os_cray+set}" = set; then
3860   echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862   cat >conftest.$ac_ext <<_ACEOF
3863 #line $LINENO "configure"
3864 /* confdefs.h.  */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h.  */
3869 #if defined(CRAY) && ! defined(CRAY2)
3870 webecray
3871 #else
3872 wenotbecray
3873 #endif
3874
3875 _ACEOF
3876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3877   $EGREP "webecray" >/dev/null 2>&1; then
3878   ac_cv_os_cray=yes
3879 else
3880   ac_cv_os_cray=no
3881 fi
3882 rm -f conftest*
3883
3884 fi
3885 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3886 echo "${ECHO_T}$ac_cv_os_cray" >&6
3887 if test $ac_cv_os_cray = yes; then
3888   for ac_func in _getb67 GETB67 getb67; do
3889     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3890 echo "$as_me:$LINENO: checking for $ac_func" >&5
3891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3892 if eval "test \"\${$as_ac_var+set}\" = set"; then
3893   echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895   cat >conftest.$ac_ext <<_ACEOF
3896 #line $LINENO "configure"
3897 /* confdefs.h.  */
3898 _ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h.  */
3902 /* System header to define __stub macros and hopefully few prototypes,
3903     which can conflict with char $ac_func (); below.
3904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3905     <limits.h> exists even on freestanding compilers.  */
3906 #ifdef __STDC__
3907 # include <limits.h>
3908 #else
3909 # include <assert.h>
3910 #endif
3911 /* Override any gcc2 internal prototype to avoid an error.  */
3912 #ifdef __cplusplus
3913 extern "C"
3914 {
3915 #endif
3916 /* We use char because int might match the return type of a gcc2
3917    builtin and then its argument prototype would still apply.  */
3918 char $ac_func ();
3919 /* The GNU C library defines this for functions which it implements
3920     to always fail with ENOSYS.  Some functions are actually named
3921     something starting with __ and the normal name is an alias.  */
3922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3923 choke me
3924 #else
3925 char (*f) () = $ac_func;
3926 #endif
3927 #ifdef __cplusplus
3928 }
3929 #endif
3930
3931 int
3932 main ()
3933 {
3934 return f != $ac_func;
3935   ;
3936   return 0;
3937 }
3938 _ACEOF
3939 rm -f conftest.$ac_objext conftest$ac_exeext
3940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3941   (eval $ac_link) 2>&5
3942   ac_status=$?
3943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); } &&
3945          { ac_try='test -s conftest$ac_exeext'
3946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947   (eval $ac_try) 2>&5
3948   ac_status=$?
3949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950   (exit $ac_status); }; }; then
3951   eval "$as_ac_var=yes"
3952 else
3953   echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956 eval "$as_ac_var=no"
3957 fi
3958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3959 fi
3960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3962 if test `eval echo '${'$as_ac_var'}'` = yes; then
3963
3964 cat >>confdefs.h <<_ACEOF
3965 #define CRAY_STACKSEG_END $ac_func
3966 _ACEOF
3967
3968     break
3969 fi
3970
3971   done
3972 fi
3973
3974 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3975 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3976 if test "${ac_cv_c_stack_direction+set}" = set; then
3977   echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979   if test "$cross_compiling" = yes; then
3980   ac_cv_c_stack_direction=0
3981 else
3982   cat >conftest.$ac_ext <<_ACEOF
3983 #line $LINENO "configure"
3984 /* confdefs.h.  */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h.  */
3989 int
3990 find_stack_direction ()
3991 {
3992   static char *addr = 0;
3993   auto char dummy;
3994   if (addr == 0)
3995     {
3996       addr = &dummy;
3997       return find_stack_direction ();
3998     }
3999   else
4000     return (&dummy > addr) ? 1 : -1;
4001 }
4002
4003 int
4004 main ()
4005 {
4006   exit (find_stack_direction () < 0);
4007 }
4008 _ACEOF
4009 rm -f conftest$ac_exeext
4010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4011   (eval $ac_link) 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016   (eval $ac_try) 2>&5
4017   ac_status=$?
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); }; }; then
4020   ac_cv_c_stack_direction=1
4021 else
4022   echo "$as_me: program exited with status $ac_status" >&5
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4025
4026 ( exit $ac_status )
4027 ac_cv_c_stack_direction=-1
4028 fi
4029 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4030 fi
4031 fi
4032 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4033 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4034
4035 cat >>confdefs.h <<_ACEOF
4036 #define STACK_DIRECTION $ac_cv_c_stack_direction
4037 _ACEOF
4038
4039
4040 fi
4041
4042
4043 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4044 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4045 if test "${ac_cv_header_stdc+set}" = set; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   cat >conftest.$ac_ext <<_ACEOF
4049 #line $LINENO "configure"
4050 /* confdefs.h.  */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h.  */
4055 #include <stdlib.h>
4056 #include <stdarg.h>
4057 #include <string.h>
4058 #include <float.h>
4059
4060 int
4061 main ()
4062 {
4063
4064   ;
4065   return 0;
4066 }
4067 _ACEOF
4068 rm -f conftest.$ac_objext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070   (eval $ac_compile) 2>&5
4071   ac_status=$?
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); } &&
4074          { ac_try='test -s conftest.$ac_objext'
4075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076   (eval $ac_try) 2>&5
4077   ac_status=$?
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); }; }; then
4080   ac_cv_header_stdc=yes
4081 else
4082   echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4084
4085 ac_cv_header_stdc=no
4086 fi
4087 rm -f conftest.$ac_objext conftest.$ac_ext
4088
4089 if test $ac_cv_header_stdc = yes; then
4090   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4091   cat >conftest.$ac_ext <<_ACEOF
4092 #line $LINENO "configure"
4093 /* confdefs.h.  */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h.  */
4098 #include <string.h>
4099
4100 _ACEOF
4101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4102   $EGREP "memchr" >/dev/null 2>&1; then
4103   :
4104 else
4105   ac_cv_header_stdc=no
4106 fi
4107 rm -f conftest*
4108
4109 fi
4110
4111 if test $ac_cv_header_stdc = yes; then
4112   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4113   cat >conftest.$ac_ext <<_ACEOF
4114 #line $LINENO "configure"
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 #include <stdlib.h>
4121
4122 _ACEOF
4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124   $EGREP "free" >/dev/null 2>&1; then
4125   :
4126 else
4127   ac_cv_header_stdc=no
4128 fi
4129 rm -f conftest*
4130
4131 fi
4132
4133 if test $ac_cv_header_stdc = yes; then
4134   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4135   if test "$cross_compiling" = yes; then
4136   :
4137 else
4138   cat >conftest.$ac_ext <<_ACEOF
4139 #line $LINENO "configure"
4140 /* confdefs.h.  */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h.  */
4145 #include <ctype.h>
4146 #if ((' ' & 0x0FF) == 0x020)
4147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4149 #else
4150 # define ISLOWER(c) \
4151                    (('a' <= (c) && (c) <= 'i') \
4152                      || ('j' <= (c) && (c) <= 'r') \
4153                      || ('s' <= (c) && (c) <= 'z'))
4154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4155 #endif
4156
4157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4158 int
4159 main ()
4160 {
4161   int i;
4162   for (i = 0; i < 256; i++)
4163     if (XOR (islower (i), ISLOWER (i))
4164         || toupper (i) != TOUPPER (i))
4165       exit(2);
4166   exit (0);
4167 }
4168 _ACEOF
4169 rm -f conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171   (eval $ac_link) 2>&5
4172   ac_status=$?
4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176   (eval $ac_try) 2>&5
4177   ac_status=$?
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); }; }; then
4180   :
4181 else
4182   echo "$as_me: program exited with status $ac_status" >&5
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4185
4186 ( exit $ac_status )
4187 ac_cv_header_stdc=no
4188 fi
4189 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4190 fi
4191 fi
4192 fi
4193 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4194 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4195 if test $ac_cv_header_stdc = yes; then
4196
4197 cat >>confdefs.h <<\_ACEOF
4198 #define STDC_HEADERS 1
4199 _ACEOF
4200
4201 fi
4202
4203
4204
4205
4206
4207
4208
4209 for ac_header in string.h stdlib.h unistd.h stdarg.h math.h pwd.h
4210 do
4211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4213   echo "$as_me:$LINENO: checking for $ac_header" >&5
4214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4216   echo $ECHO_N "(cached) $ECHO_C" >&6
4217 fi
4218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4220 else
4221   # Is the header compilable?
4222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4224 cat >conftest.$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4226 /* confdefs.h.  */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h.  */
4231 $ac_includes_default
4232 #include <$ac_header>
4233 _ACEOF
4234 rm -f conftest.$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236   (eval $ac_compile) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); } &&
4240          { ac_try='test -s conftest.$ac_objext'
4241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242   (eval $ac_try) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; }; then
4246   ac_header_compiler=yes
4247 else
4248   echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 ac_header_compiler=no
4252 fi
4253 rm -f conftest.$ac_objext conftest.$ac_ext
4254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4255 echo "${ECHO_T}$ac_header_compiler" >&6
4256
4257 # Is the header present?
4258 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4260 cat >conftest.$ac_ext <<_ACEOF
4261 #line $LINENO "configure"
4262 /* confdefs.h.  */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h.  */
4267 #include <$ac_header>
4268 _ACEOF
4269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4271   ac_status=$?
4272   grep -v '^ *+' conftest.er1 >conftest.err
4273   rm -f conftest.er1
4274   cat conftest.err >&5
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); } >/dev/null; then
4277   if test -s conftest.err; then
4278     ac_cpp_err=$ac_c_preproc_warn_flag
4279   else
4280     ac_cpp_err=
4281   fi
4282 else
4283   ac_cpp_err=yes
4284 fi
4285 if test -z "$ac_cpp_err"; then
4286   ac_header_preproc=yes
4287 else
4288   echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291   ac_header_preproc=no
4292 fi
4293 rm -f conftest.err conftest.$ac_ext
4294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4295 echo "${ECHO_T}$ac_header_preproc" >&6
4296
4297 # So?  What about this header?
4298 case $ac_header_compiler:$ac_header_preproc in
4299   yes:no )
4300     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4304     (
4305       cat <<\_ASBOX
4306 ## ------------------------------------ ##
4307 ## Report this to bug-autoconf@gnu.org. ##
4308 ## ------------------------------------ ##
4309 _ASBOX
4310     ) |
4311       sed "s/^/$as_me: WARNING:     /" >&2
4312     ;;
4313   no:yes )
4314     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4316     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4320     (
4321       cat <<\_ASBOX
4322 ## ------------------------------------ ##
4323 ## Report this to bug-autoconf@gnu.org. ##
4324 ## ------------------------------------ ##
4325 _ASBOX
4326     ) |
4327       sed "s/^/$as_me: WARNING:     /" >&2
4328     ;;
4329 esac
4330 echo "$as_me:$LINENO: checking for $ac_header" >&5
4331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   eval "$as_ac_Header=$ac_header_preproc"
4336 fi
4337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4339
4340 fi
4341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4342   cat >>confdefs.h <<_ACEOF
4343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4344 _ACEOF
4345
4346 fi
4347
4348 done
4349
4350
4351
4352 for ac_header in sys/types.h sys/stat.h
4353 do
4354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4356   echo "$as_me:$LINENO: checking for $ac_header" >&5
4357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 fi
4361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4363 else
4364   # Is the header compilable?
4365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4367 cat >conftest.$ac_ext <<_ACEOF
4368 #line $LINENO "configure"
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374 $ac_includes_default
4375 #include <$ac_header>
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379   (eval $ac_compile) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); } &&
4383          { ac_try='test -s conftest.$ac_objext'
4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385   (eval $ac_try) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; }; then
4389   ac_header_compiler=yes
4390 else
4391   echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4393
4394 ac_header_compiler=no
4395 fi
4396 rm -f conftest.$ac_objext conftest.$ac_ext
4397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4398 echo "${ECHO_T}$ac_header_compiler" >&6
4399
4400 # Is the header present?
4401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4403 cat >conftest.$ac_ext <<_ACEOF
4404 #line $LINENO "configure"
4405 /* confdefs.h.  */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h.  */
4410 #include <$ac_header>
4411 _ACEOF
4412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4414   ac_status=$?
4415   grep -v '^ *+' conftest.er1 >conftest.err
4416   rm -f conftest.er1
4417   cat conftest.err >&5
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); } >/dev/null; then
4420   if test -s conftest.err; then
4421     ac_cpp_err=$ac_c_preproc_warn_flag
4422   else
4423     ac_cpp_err=
4424   fi
4425 else
4426   ac_cpp_err=yes
4427 fi
4428 if test -z "$ac_cpp_err"; then
4429   ac_header_preproc=yes
4430 else
4431   echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434   ac_header_preproc=no
4435 fi
4436 rm -f conftest.err conftest.$ac_ext
4437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4438 echo "${ECHO_T}$ac_header_preproc" >&6
4439
4440 # So?  What about this header?
4441 case $ac_header_compiler:$ac_header_preproc in
4442   yes:no )
4443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4447     (
4448       cat <<\_ASBOX
4449 ## ------------------------------------ ##
4450 ## Report this to bug-autoconf@gnu.org. ##
4451 ## ------------------------------------ ##
4452 _ASBOX
4453     ) |
4454       sed "s/^/$as_me: WARNING:     /" >&2
4455     ;;
4456   no:yes )
4457     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4459     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4463     (
4464       cat <<\_ASBOX
4465 ## ------------------------------------ ##
4466 ## Report this to bug-autoconf@gnu.org. ##
4467 ## ------------------------------------ ##
4468 _ASBOX
4469     ) |
4470       sed "s/^/$as_me: WARNING:     /" >&2
4471     ;;
4472 esac
4473 echo "$as_me:$LINENO: checking for $ac_header" >&5
4474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4476   echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478   eval "$as_ac_Header=$ac_header_preproc"
4479 fi
4480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4482
4483 fi
4484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4485   cat >>confdefs.h <<_ACEOF
4486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487 _ACEOF
4488
4489 fi
4490
4491 done
4492
4493
4494
4495
4496 for ac_func in strchr getcwd
4497 do
4498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4499 echo "$as_me:$LINENO: checking for $ac_func" >&5
4500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4501 if eval "test \"\${$as_ac_var+set}\" = set"; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   cat >conftest.$ac_ext <<_ACEOF
4505 #line $LINENO "configure"
4506 /* confdefs.h.  */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h.  */
4511 /* System header to define __stub macros and hopefully few prototypes,
4512     which can conflict with char $ac_func (); below.
4513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4514     <limits.h> exists even on freestanding compilers.  */
4515 #ifdef __STDC__
4516 # include <limits.h>
4517 #else
4518 # include <assert.h>
4519 #endif
4520 /* Override any gcc2 internal prototype to avoid an error.  */
4521 #ifdef __cplusplus
4522 extern "C"
4523 {
4524 #endif
4525 /* We use char because int might match the return type of a gcc2
4526    builtin and then its argument prototype would still apply.  */
4527 char $ac_func ();
4528 /* The GNU C library defines this for functions which it implements
4529     to always fail with ENOSYS.  Some functions are actually named
4530     something starting with __ and the normal name is an alias.  */
4531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4532 choke me
4533 #else
4534 char (*f) () = $ac_func;
4535 #endif
4536 #ifdef __cplusplus
4537 }
4538 #endif
4539
4540 int
4541 main ()
4542 {
4543 return f != $ac_func;
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550   (eval $ac_link) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } &&
4554          { ac_try='test -s conftest$ac_exeext'
4555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556   (eval $ac_try) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; }; then
4560   eval "$as_ac_var=yes"
4561 else
4562   echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565 eval "$as_ac_var=no"
4566 fi
4567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4568 fi
4569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4571 if test `eval echo '${'$as_ac_var'}'` = yes; then
4572   cat >>confdefs.h <<_ACEOF
4573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4574 _ACEOF
4575
4576 fi
4577 done
4578
4579
4580
4581
4582
4583 for ac_func in strerror memmove memcpy strtoul
4584 do
4585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4586 echo "$as_me:$LINENO: checking for $ac_func" >&5
4587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4588 if eval "test \"\${$as_ac_var+set}\" = set"; then
4589   echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591   cat >conftest.$ac_ext <<_ACEOF
4592 #line $LINENO "configure"
4593 /* confdefs.h.  */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h.  */
4598 /* System header to define __stub macros and hopefully few prototypes,
4599     which can conflict with char $ac_func (); below.
4600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4601     <limits.h> exists even on freestanding compilers.  */
4602 #ifdef __STDC__
4603 # include <limits.h>
4604 #else
4605 # include <assert.h>
4606 #endif
4607 /* Override any gcc2 internal prototype to avoid an error.  */
4608 #ifdef __cplusplus
4609 extern "C"
4610 {
4611 #endif
4612 /* We use char because int might match the return type of a gcc2
4613    builtin and then its argument prototype would still apply.  */
4614 char $ac_func ();
4615 /* The GNU C library defines this for functions which it implements
4616     to always fail with ENOSYS.  Some functions are actually named
4617     something starting with __ and the normal name is an alias.  */
4618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4619 choke me
4620 #else
4621 char (*f) () = $ac_func;
4622 #endif
4623 #ifdef __cplusplus
4624 }
4625 #endif
4626
4627 int
4628 main ()
4629 {
4630 return f != $ac_func;
4631   ;
4632   return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest.$ac_objext conftest$ac_exeext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4637   (eval $ac_link) 2>&5
4638   ac_status=$?
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); } &&
4641          { ac_try='test -s conftest$ac_exeext'
4642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643   (eval $ac_try) 2>&5
4644   ac_status=$?
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); }; }; then
4647   eval "$as_ac_var=yes"
4648 else
4649   echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4651
4652 eval "$as_ac_var=no"
4653 fi
4654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4655 fi
4656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4658 if test `eval echo '${'$as_ac_var'}'` = yes; then
4659   cat >>confdefs.h <<_ACEOF
4660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4661 _ACEOF
4662
4663 else
4664   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4665 fi
4666 done
4667
4668
4669
4670 for ac_func in vprintf
4671 do
4672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4673 echo "$as_me:$LINENO: checking for $ac_func" >&5
4674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4675 if eval "test \"\${$as_ac_var+set}\" = set"; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   cat >conftest.$ac_ext <<_ACEOF
4679 #line $LINENO "configure"
4680 /* confdefs.h.  */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h.  */
4685 /* System header to define __stub macros and hopefully few prototypes,
4686     which can conflict with char $ac_func (); below.
4687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4688     <limits.h> exists even on freestanding compilers.  */
4689 #ifdef __STDC__
4690 # include <limits.h>
4691 #else
4692 # include <assert.h>
4693 #endif
4694 /* Override any gcc2 internal prototype to avoid an error.  */
4695 #ifdef __cplusplus
4696 extern "C"
4697 {
4698 #endif
4699 /* We use char because int might match the return type of a gcc2
4700    builtin and then its argument prototype would still apply.  */
4701 char $ac_func ();
4702 /* The GNU C library defines this for functions which it implements
4703     to always fail with ENOSYS.  Some functions are actually named
4704     something starting with __ and the normal name is an alias.  */
4705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4706 choke me
4707 #else
4708 char (*f) () = $ac_func;
4709 #endif
4710 #ifdef __cplusplus
4711 }
4712 #endif
4713
4714 int
4715 main ()
4716 {
4717 return f != $ac_func;
4718   ;
4719   return 0;
4720 }
4721 _ACEOF
4722 rm -f conftest.$ac_objext conftest$ac_exeext
4723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4724   (eval $ac_link) 2>&5
4725   ac_status=$?
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); } &&
4728          { ac_try='test -s conftest$ac_exeext'
4729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730   (eval $ac_try) 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }; }; then
4734   eval "$as_ac_var=yes"
4735 else
4736   echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739 eval "$as_ac_var=no"
4740 fi
4741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4742 fi
4743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4745 if test `eval echo '${'$as_ac_var'}'` = yes; then
4746   cat >>confdefs.h <<_ACEOF
4747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4748 _ACEOF
4749
4750 echo "$as_me:$LINENO: checking for _doprnt" >&5
4751 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4752 if test "${ac_cv_func__doprnt+set}" = set; then
4753   echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755   cat >conftest.$ac_ext <<_ACEOF
4756 #line $LINENO "configure"
4757 /* confdefs.h.  */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h.  */
4762 /* System header to define __stub macros and hopefully few prototypes,
4763     which can conflict with char _doprnt (); below.
4764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4765     <limits.h> exists even on freestanding compilers.  */
4766 #ifdef __STDC__
4767 # include <limits.h>
4768 #else
4769 # include <assert.h>
4770 #endif
4771 /* Override any gcc2 internal prototype to avoid an error.  */
4772 #ifdef __cplusplus
4773 extern "C"
4774 {
4775 #endif
4776 /* We use char because int might match the return type of a gcc2
4777    builtin and then its argument prototype would still apply.  */
4778 char _doprnt ();
4779 /* The GNU C library defines this for functions which it implements
4780     to always fail with ENOSYS.  Some functions are actually named
4781     something starting with __ and the normal name is an alias.  */
4782 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4783 choke me
4784 #else
4785 char (*f) () = _doprnt;
4786 #endif
4787 #ifdef __cplusplus
4788 }
4789 #endif
4790
4791 int
4792 main ()
4793 {
4794 return f != _doprnt;
4795   ;
4796   return 0;
4797 }
4798 _ACEOF
4799 rm -f conftest.$ac_objext conftest$ac_exeext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4801   (eval $ac_link) 2>&5
4802   ac_status=$?
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); } &&
4805          { ac_try='test -s conftest$ac_exeext'
4806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807   (eval $ac_try) 2>&5
4808   ac_status=$?
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); }; }; then
4811   ac_cv_func__doprnt=yes
4812 else
4813   echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816 ac_cv_func__doprnt=no
4817 fi
4818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4819 fi
4820 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4821 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4822 if test $ac_cv_func__doprnt = yes; then
4823
4824 cat >>confdefs.h <<\_ACEOF
4825 #define HAVE_DOPRNT 1
4826 _ACEOF
4827
4828 fi
4829
4830 fi
4831 done
4832
4833
4834
4835
4836 echo "$as_me:$LINENO: checking for main in -lsun" >&5
4837 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
4838 if test "${ac_cv_lib_sun_main+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   ac_check_lib_save_LIBS=$LIBS
4842 LIBS="-lsun  $LIBS"
4843 cat >conftest.$ac_ext <<_ACEOF
4844 #line $LINENO "configure"
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850
4851
4852 int
4853 main ()
4854 {
4855 main ();
4856   ;
4857   return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862   (eval $ac_link) 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); } &&
4866          { ac_try='test -s conftest$ac_exeext'
4867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868   (eval $ac_try) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; }; then
4872   ac_cv_lib_sun_main=yes
4873 else
4874   echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4876
4877 ac_cv_lib_sun_main=no
4878 fi
4879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4880 LIBS=$ac_check_lib_save_LIBS
4881 fi
4882 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
4883 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
4884 if test $ac_cv_lib_sun_main = yes; then
4885   cat >>confdefs.h <<_ACEOF
4886 #define HAVE_LIBSUN 1
4887 _ACEOF
4888
4889   LIBS="-lsun $LIBS"
4890
4891 fi
4892
4893
4894 echo "$as_me:$LINENO: checking for gethostname" >&5
4895 echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
4896 if test "${ac_cv_func_gethostname+set}" = set; then
4897   echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899   cat >conftest.$ac_ext <<_ACEOF
4900 #line $LINENO "configure"
4901 /* confdefs.h.  */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h.  */
4906 /* System header to define __stub macros and hopefully few prototypes,
4907     which can conflict with char gethostname (); below.
4908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4909     <limits.h> exists even on freestanding compilers.  */
4910 #ifdef __STDC__
4911 # include <limits.h>
4912 #else
4913 # include <assert.h>
4914 #endif
4915 /* Override any gcc2 internal prototype to avoid an error.  */
4916 #ifdef __cplusplus
4917 extern "C"
4918 {
4919 #endif
4920 /* We use char because int might match the return type of a gcc2
4921    builtin and then its argument prototype would still apply.  */
4922 char gethostname ();
4923 /* The GNU C library defines this for functions which it implements
4924     to always fail with ENOSYS.  Some functions are actually named
4925     something starting with __ and the normal name is an alias.  */
4926 #if defined (__stub_gethostname) || defined (__stub___gethostname)
4927 choke me
4928 #else
4929 char (*f) () = gethostname;
4930 #endif
4931 #ifdef __cplusplus
4932 }
4933 #endif
4934
4935 int
4936 main ()
4937 {
4938 return f != gethostname;
4939   ;
4940   return 0;
4941 }
4942 _ACEOF
4943 rm -f conftest.$ac_objext conftest$ac_exeext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945   (eval $ac_link) 2>&5
4946   ac_status=$?
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); } &&
4949          { ac_try='test -s conftest$ac_exeext'
4950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951   (eval $ac_try) 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); }; }; then
4955   ac_cv_func_gethostname=yes
4956 else
4957   echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 ac_cv_func_gethostname=no
4961 fi
4962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4963 fi
4964 echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
4965 echo "${ECHO_T}$ac_cv_func_gethostname" >&6
4966 if test $ac_cv_func_gethostname = yes; then
4967   :
4968 else
4969
4970   echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
4971 echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6
4972 if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   ac_check_lib_save_LIBS=$LIBS
4976 LIBS="-lnsl  $LIBS"
4977 cat >conftest.$ac_ext <<_ACEOF
4978 #line $LINENO "configure"
4979 /* confdefs.h.  */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h.  */
4984
4985 /* Override any gcc2 internal prototype to avoid an error.  */
4986 #ifdef __cplusplus
4987 extern "C"
4988 #endif
4989 /* We use char because int might match the return type of a gcc2
4990    builtin and then its argument prototype would still apply.  */
4991 char gethostname ();
4992 int
4993 main ()
4994 {
4995 gethostname ();
4996   ;
4997   return 0;
4998 }
4999 _ACEOF
5000 rm -f conftest.$ac_objext conftest$ac_exeext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5002   (eval $ac_link) 2>&5
5003   ac_status=$?
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); } &&
5006          { ac_try='test -s conftest$ac_exeext'
5007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008   (eval $ac_try) 2>&5
5009   ac_status=$?
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); }; }; then
5012   ac_cv_lib_nsl_gethostname=yes
5013 else
5014   echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5016
5017 ac_cv_lib_nsl_gethostname=no
5018 fi
5019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5020 LIBS=$ac_check_lib_save_LIBS
5021 fi
5022 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
5023 echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6
5024 if test $ac_cv_lib_nsl_gethostname = yes; then
5025   LIBS="$LIBS -lnsl"
5026 else
5027
5028
5029 echo "$as_me:$LINENO: checking for gethostname in -lsocket" >&5
5030 echo $ECHO_N "checking for gethostname in -lsocket... $ECHO_C" >&6
5031 if test "${ac_cv_lib_socket_gethostname+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   ac_check_lib_save_LIBS=$LIBS
5035 LIBS="-lsocket  $LIBS"
5036 cat >conftest.$ac_ext <<_ACEOF
5037 #line $LINENO "configure"
5038 /* confdefs.h.  */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h.  */
5043
5044 /* Override any gcc2 internal prototype to avoid an error.  */
5045 #ifdef __cplusplus
5046 extern "C"
5047 #endif
5048 /* We use char because int might match the return type of a gcc2
5049    builtin and then its argument prototype would still apply.  */
5050 char gethostname ();
5051 int
5052 main ()
5053 {
5054 gethostname ();
5055   ;
5056   return 0;
5057 }
5058 _ACEOF
5059 rm -f conftest.$ac_objext conftest$ac_exeext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5061   (eval $ac_link) 2>&5
5062   ac_status=$?
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); } &&
5065          { ac_try='test -s conftest$ac_exeext'
5066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067   (eval $ac_try) 2>&5
5068   ac_status=$?
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); }; }; then
5071   ac_cv_lib_socket_gethostname=yes
5072 else
5073   echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5075
5076 ac_cv_lib_socket_gethostname=no
5077 fi
5078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5079 LIBS=$ac_check_lib_save_LIBS
5080 fi
5081 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostname" >&5
5082 echo "${ECHO_T}$ac_cv_lib_socket_gethostname" >&6
5083 if test $ac_cv_lib_socket_gethostname = yes; then
5084   cat >>confdefs.h <<_ACEOF
5085 #define HAVE_LIBSOCKET 1
5086 _ACEOF
5087
5088   LIBS="-lsocket $LIBS"
5089
5090 fi
5091
5092
5093 fi
5094
5095
5096 fi
5097
5098
5099 if test -n "$ac_tool_prefix"; then
5100   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5101 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5102 echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5104 if test "${ac_cv_prog_RANLIB+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   if test -n "$RANLIB"; then
5108   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5109 else
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113   IFS=$as_save_IFS
5114   test -z "$as_dir" && as_dir=.
5115   for ac_exec_ext in '' $ac_executable_extensions; do
5116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119     break 2
5120   fi
5121 done
5122 done
5123
5124 fi
5125 fi
5126 RANLIB=$ac_cv_prog_RANLIB
5127 if test -n "$RANLIB"; then
5128   echo "$as_me:$LINENO: result: $RANLIB" >&5
5129 echo "${ECHO_T}$RANLIB" >&6
5130 else
5131   echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6
5133 fi
5134
5135 fi
5136 if test -z "$ac_cv_prog_RANLIB"; then
5137   ac_ct_RANLIB=$RANLIB
5138   # Extract the first word of "ranlib", so it can be a program name with args.
5139 set dummy ranlib; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   if test -n "$ac_ct_RANLIB"; then
5146   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151   IFS=$as_save_IFS
5152   test -z "$as_dir" && as_dir=.
5153   for ac_exec_ext in '' $ac_executable_extensions; do
5154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155     ac_cv_prog_ac_ct_RANLIB="ranlib"
5156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157     break 2
5158   fi
5159 done
5160 done
5161
5162   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5163 fi
5164 fi
5165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5166 if test -n "$ac_ct_RANLIB"; then
5167   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5168 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5169 else
5170   echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6
5172 fi
5173
5174   RANLIB=$ac_ct_RANLIB
5175 else
5176   RANLIB="$ac_cv_prog_RANLIB"
5177 fi
5178
5179 for ac_prog in 'bison -y' byacc
5180 do
5181   # Extract the first word of "$ac_prog", so it can be a program name with args.
5182 set dummy $ac_prog; ac_word=$2
5183 echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185 if test "${ac_cv_prog_YACC+set}" = set; then
5186   echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188   if test -n "$YACC"; then
5189   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194   IFS=$as_save_IFS
5195   test -z "$as_dir" && as_dir=.
5196   for ac_exec_ext in '' $ac_executable_extensions; do
5197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198     ac_cv_prog_YACC="$ac_prog"
5199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200     break 2
5201   fi
5202 done
5203 done
5204
5205 fi
5206 fi
5207 YACC=$ac_cv_prog_YACC
5208 if test -n "$YACC"; then
5209   echo "$as_me:$LINENO: result: $YACC" >&5
5210 echo "${ECHO_T}$YACC" >&6
5211 else
5212   echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6
5214 fi
5215
5216   test -n "$YACC" && break
5217 done
5218 test -n "$YACC" || YACC="yacc"
5219
5220 for ac_prog in flex lex
5221 do
5222   # Extract the first word of "$ac_prog", so it can be a program name with args.
5223 set dummy $ac_prog; ac_word=$2
5224 echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5226 if test "${ac_cv_prog_LEX+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229   if test -n "$LEX"; then
5230   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235   IFS=$as_save_IFS
5236   test -z "$as_dir" && as_dir=.
5237   for ac_exec_ext in '' $ac_executable_extensions; do
5238   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239     ac_cv_prog_LEX="$ac_prog"
5240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241     break 2
5242   fi
5243 done
5244 done
5245
5246 fi
5247 fi
5248 LEX=$ac_cv_prog_LEX
5249 if test -n "$LEX"; then
5250   echo "$as_me:$LINENO: result: $LEX" >&5
5251 echo "${ECHO_T}$LEX" >&6
5252 else
5253   echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6
5255 fi
5256
5257   test -n "$LEX" && break
5258 done
5259 test -n "$LEX" || LEX=":"
5260
5261 if test -z "$LEXLIB"
5262 then
5263   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5264 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5265 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268   ac_check_lib_save_LIBS=$LIBS
5269 LIBS="-lfl  $LIBS"
5270 cat >conftest.$ac_ext <<_ACEOF
5271 #line $LINENO "configure"
5272 /* confdefs.h.  */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h.  */
5277
5278 /* Override any gcc2 internal prototype to avoid an error.  */
5279 #ifdef __cplusplus
5280 extern "C"
5281 #endif
5282 /* We use char because int might match the return type of a gcc2
5283    builtin and then its argument prototype would still apply.  */
5284 char yywrap ();
5285 int
5286 main ()
5287 {
5288 yywrap ();
5289   ;
5290   return 0;
5291 }
5292 _ACEOF
5293 rm -f conftest.$ac_objext conftest$ac_exeext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5295   (eval $ac_link) 2>&5
5296   ac_status=$?
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); } &&
5299          { ac_try='test -s conftest$ac_exeext'
5300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301   (eval $ac_try) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }; }; then
5305   ac_cv_lib_fl_yywrap=yes
5306 else
5307   echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5309
5310 ac_cv_lib_fl_yywrap=no
5311 fi
5312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5313 LIBS=$ac_check_lib_save_LIBS
5314 fi
5315 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5316 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5317 if test $ac_cv_lib_fl_yywrap = yes; then
5318   LEXLIB="-lfl"
5319 else
5320   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5321 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5322 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325   ac_check_lib_save_LIBS=$LIBS
5326 LIBS="-ll  $LIBS"
5327 cat >conftest.$ac_ext <<_ACEOF
5328 #line $LINENO "configure"
5329 /* confdefs.h.  */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h.  */
5334
5335 /* Override any gcc2 internal prototype to avoid an error.  */
5336 #ifdef __cplusplus
5337 extern "C"
5338 #endif
5339 /* We use char because int might match the return type of a gcc2
5340    builtin and then its argument prototype would still apply.  */
5341 char yywrap ();
5342 int
5343 main ()
5344 {
5345 yywrap ();
5346   ;
5347   return 0;
5348 }
5349 _ACEOF
5350 rm -f conftest.$ac_objext conftest$ac_exeext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5352   (eval $ac_link) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); } &&
5356          { ac_try='test -s conftest$ac_exeext'
5357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358   (eval $ac_try) 2>&5
5359   ac_status=$?
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); }; }; then
5362   ac_cv_lib_l_yywrap=yes
5363 else
5364   echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5366
5367 ac_cv_lib_l_yywrap=no
5368 fi
5369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5370 LIBS=$ac_check_lib_save_LIBS
5371 fi
5372 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5373 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5374 if test $ac_cv_lib_l_yywrap = yes; then
5375   LEXLIB="-ll"
5376 fi
5377
5378 fi
5379
5380 fi
5381
5382 if test "x$LEX" != "x:"; then
5383   echo "$as_me:$LINENO: checking lex output file root" >&5
5384 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5385 if test "${ac_cv_prog_lex_root+set}" = set; then
5386   echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388   # The minimal lex program is just a single line: %%.  But some broken lexes
5389 # (Solaris, I think it was) want two %% lines, so accommodate them.
5390 cat >conftest.l <<_ACEOF
5391 %%
5392 %%
5393 _ACEOF
5394 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5395   (eval $LEX conftest.l) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }
5399 if test -f lex.yy.c; then
5400   ac_cv_prog_lex_root=lex.yy
5401 elif test -f lexyy.c; then
5402   ac_cv_prog_lex_root=lexyy
5403 else
5404   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5405 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5406    { (exit 1); exit 1; }; }
5407 fi
5408 fi
5409 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5410 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5411 rm -f conftest.l
5412 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5413
5414 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5415 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5416 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5417   echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419   # POSIX says lex can declare yytext either as a pointer or an array; the
5420 # default is implementation-dependent. Figure out which it is, since
5421 # not all implementations provide the %pointer and %array declarations.
5422 ac_cv_prog_lex_yytext_pointer=no
5423 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5424 ac_save_LIBS=$LIBS
5425 LIBS="$LIBS $LEXLIB"
5426 cat >conftest.$ac_ext <<_ACEOF
5427 `cat $LEX_OUTPUT_ROOT.c`
5428 _ACEOF
5429 rm -f conftest.$ac_objext conftest$ac_exeext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5431   (eval $ac_link) 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); } &&
5435          { ac_try='test -s conftest$ac_exeext'
5436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437   (eval $ac_try) 2>&5
5438   ac_status=$?
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); }; }; then
5441   ac_cv_prog_lex_yytext_pointer=yes
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 fi
5447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5448 LIBS=$ac_save_LIBS
5449 rm -f "${LEX_OUTPUT_ROOT}.c"
5450
5451 fi
5452 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5453 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5454 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5455
5456 cat >>confdefs.h <<\_ACEOF
5457 #define YYTEXT_POINTER 1
5458 _ACEOF
5459
5460 fi
5461
5462 fi
5463 if test "$LEX" = :; then
5464   LEX=${am_missing_run}flex
5465 fi
5466
5467 # Check whether --enable-debug or --disable-debug was given.
5468 if test "${enable_debug+set}" = set; then
5469   enableval="$enable_debug"
5470
5471   echo enabling debugging
5472   if test -n "$GCC"; then
5473     CFLAGS="$CFLAGS -Wall"
5474   fi
5475
5476 fi;
5477
5478
5479
5480 # Check whether --with-media or --without-media was given.
5481 if test "${with_media+set}" = set; then
5482   withval="$with_media"
5483   if test "X$withval" != "Xno"; then
5484     if test "X$withval" = "Xyes"; then
5485       ac_cv_value_media='Letter'
5486     else
5487       ac_cv_value_media=$withval
5488     fi
5489   else
5490     ac_cv_value_media=${MEDIA-A4}
5491   fi
5492 else
5493   ac_cv_value_media=${MEDIA-A4}
5494
5495 fi;
5496 MEDIA=$ac_cv_value_media
5497
5498
5499
5500 # Extract the first word of "lpr", so it can be a program name with args.
5501 set dummy lpr; ac_word=$2
5502 echo "$as_me:$LINENO: checking for $ac_word" >&5
5503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5504 if test "${ac_cv_prog_SPOOLER+set}" = set; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507   if test -n "$SPOOLER"; then
5508   ac_cv_prog_SPOOLER="$SPOOLER" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513   IFS=$as_save_IFS
5514   test -z "$as_dir" && as_dir=.
5515   for ac_exec_ext in '' $ac_executable_extensions; do
5516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517     ac_cv_prog_SPOOLER="lpr"
5518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519     break 2
5520   fi
5521 done
5522 done
5523
5524 fi
5525 fi
5526 SPOOLER=$ac_cv_prog_SPOOLER
5527 if test -n "$SPOOLER"; then
5528   echo "$as_me:$LINENO: result: $SPOOLER" >&5
5529 echo "${ECHO_T}$SPOOLER" >&6
5530 else
5531   echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6
5533 fi
5534
5535 # Extract the first word of "lp", so it can be a program name with args.
5536 set dummy lp; ac_word=$2
5537 echo "$as_me:$LINENO: checking for $ac_word" >&5
5538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5539 if test "${ac_cv_prog_SPOOLER+set}" = set; then
5540   echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542   if test -n "$SPOOLER"; then
5543   ac_cv_prog_SPOOLER="$SPOOLER" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548   IFS=$as_save_IFS
5549   test -z "$as_dir" && as_dir=.
5550   for ac_exec_ext in '' $ac_executable_extensions; do
5551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552     ac_cv_prog_SPOOLER="lp"
5553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5554     break 2
5555   fi
5556 done
5557 done
5558
5559 fi
5560 fi
5561 SPOOLER=$ac_cv_prog_SPOOLER
5562 if test -n "$SPOOLER"; then
5563   echo "$as_me:$LINENO: result: $SPOOLER" >&5
5564 echo "${ECHO_T}$SPOOLER" >&6
5565 else
5566   echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6
5568 fi
5569
5570
5571
5572 # Check whether --with-spooler or --without-spooler was given.
5573 if test "${with_spooler+set}" = set; then
5574   withval="$with_spooler"
5575   if test "X$withval" != "Xno"; then
5576     SPOOLER=$withval
5577   fi
5578
5579 fi;
5580
5581 if test "X$SPOOLER" = "X"; then
5582   SPOOLER=lpr
5583 fi
5584
5585 PSLEVEL="2"
5586
5587 # Check whether --with-ps-level or --without-ps-level was given.
5588 if test "${with_ps_level+set}" = set; then
5589   withval="$with_ps_level"
5590   if test "X$withval" != "Xno"; then
5591     PSLEVEL=$withval
5592   fi
5593
5594 fi;
5595
5596
5597 ALL_LINGUAS="de es fi fr nl ru sl"
5598
5599         MKINSTALLDIRS=
5600   if test -n "$ac_aux_dir"; then
5601     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5602   fi
5603   if test -z "$MKINSTALLDIRS"; then
5604     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5605   fi
5606
5607
5608
5609
5610
5611         # Extract the first word of "msgfmt", so it can be a program name with args.
5612 set dummy msgfmt; ac_word=$2
5613 echo "$as_me:$LINENO: checking for $ac_word" >&5
5614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5615 if test "${ac_cv_path_MSGFMT+set}" = set; then
5616   echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618   case "$MSGFMT" in
5619   /*)
5620   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5621   ;;
5622   *)
5623   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5624   for ac_dir in $PATH; do
5625     test -z "$ac_dir" && ac_dir=.
5626     if test -f $ac_dir/$ac_word; then
5627       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5628      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5629         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5630         break
5631       fi
5632     fi
5633   done
5634   IFS="$ac_save_ifs"
5635   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5636   ;;
5637 esac
5638 fi
5639 MSGFMT="$ac_cv_path_MSGFMT"
5640 if test "$MSGFMT" != ":"; then
5641   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5642 echo "${ECHO_T}$MSGFMT" >&6
5643 else
5644   echo "$as_me:$LINENO: result: no" >&5
5645 echo "${ECHO_T}no" >&6
5646 fi
5647
5648   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5649 set dummy gmsgfmt; ac_word=$2
5650 echo "$as_me:$LINENO: checking for $ac_word" >&5
5651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5652 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5653   echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655   case $GMSGFMT in
5656   [\\/]* | ?:[\\/]*)
5657   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5658   ;;
5659   *)
5660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5662 do
5663   IFS=$as_save_IFS
5664   test -z "$as_dir" && as_dir=.
5665   for ac_exec_ext in '' $ac_executable_extensions; do
5666   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669     break 2
5670   fi
5671 done
5672 done
5673
5674   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5675   ;;
5676 esac
5677 fi
5678 GMSGFMT=$ac_cv_path_GMSGFMT
5679
5680 if test -n "$GMSGFMT"; then
5681   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5682 echo "${ECHO_T}$GMSGFMT" >&6
5683 else
5684   echo "$as_me:$LINENO: result: no" >&5
5685 echo "${ECHO_T}no" >&6
5686 fi
5687
5688
5689         # Extract the first word of "xgettext", so it can be a program name with args.
5690 set dummy xgettext; ac_word=$2
5691 echo "$as_me:$LINENO: checking for $ac_word" >&5
5692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5693 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   case "$XGETTEXT" in
5697   /*)
5698   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5699   ;;
5700   *)
5701   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5702   for ac_dir in $PATH; do
5703     test -z "$ac_dir" && ac_dir=.
5704     if test -f $ac_dir/$ac_word; then
5705       if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
5706      (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5707         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5708         break
5709       fi
5710     fi
5711   done
5712   IFS="$ac_save_ifs"
5713   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5714   ;;
5715 esac
5716 fi
5717 XGETTEXT="$ac_cv_path_XGETTEXT"
5718 if test "$XGETTEXT" != ":"; then
5719   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5720 echo "${ECHO_T}$XGETTEXT" >&6
5721 else
5722   echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6
5724 fi
5725
5726     rm -f messages.po
5727
5728     # Extract the first word of "msgmerge", so it can be a program name with args.
5729 set dummy msgmerge; ac_word=$2
5730 echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5733   echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735   case "$MSGMERGE" in
5736   /*)
5737   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5738   ;;
5739   *)
5740   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5741   for ac_dir in $PATH; do
5742     test -z "$ac_dir" && ac_dir=.
5743     if test -f $ac_dir/$ac_word; then
5744       if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5745         ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
5746         break
5747       fi
5748     fi
5749   done
5750   IFS="$ac_save_ifs"
5751   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5752   ;;
5753 esac
5754 fi
5755 MSGMERGE="$ac_cv_path_MSGMERGE"
5756 if test "$MSGMERGE" != ":"; then
5757   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5758 echo "${ECHO_T}$MSGMERGE" >&6
5759 else
5760   echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6
5762 fi
5763
5764
5765       if test "$GMSGFMT" != ":"; then
5766             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5767        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5768       : ;
5769     else
5770       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5771       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5772 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5773       GMSGFMT=":"
5774     fi
5775   fi
5776
5777       if test "$XGETTEXT" != ":"; then
5778             if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
5779        (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5780       : ;
5781     else
5782       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5783 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5784       XGETTEXT=":"
5785     fi
5786         rm -f messages.po
5787   fi
5788
5789             ac_config_commands="$ac_config_commands default-1"
5790
5791
5792 # Make sure we can run config.sub.
5793 $ac_config_sub sun4 >/dev/null 2>&1 ||
5794   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5795 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5796    { (exit 1); exit 1; }; }
5797
5798 echo "$as_me:$LINENO: checking build system type" >&5
5799 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5800 if test "${ac_cv_build+set}" = set; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   ac_cv_build_alias=$build_alias
5804 test -z "$ac_cv_build_alias" &&
5805   ac_cv_build_alias=`$ac_config_guess`
5806 test -z "$ac_cv_build_alias" &&
5807   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5808 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5809    { (exit 1); exit 1; }; }
5810 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5811   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5812 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5813    { (exit 1); exit 1; }; }
5814
5815 fi
5816 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5817 echo "${ECHO_T}$ac_cv_build" >&6
5818 build=$ac_cv_build
5819 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5820 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5821 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5822
5823
5824 echo "$as_me:$LINENO: checking host system type" >&5
5825 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5826 if test "${ac_cv_host+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   ac_cv_host_alias=$host_alias
5830 test -z "$ac_cv_host_alias" &&
5831   ac_cv_host_alias=$ac_cv_build_alias
5832 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5833   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5834 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5835    { (exit 1); exit 1; }; }
5836
5837 fi
5838 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5839 echo "${ECHO_T}$ac_cv_host" >&6
5840 host=$ac_cv_host
5841 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5842 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5843 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5844
5845
5846 echo "$as_me:$LINENO: checking for inline" >&5
5847 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5848 if test "${ac_cv_c_inline+set}" = set; then
5849   echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851   ac_cv_c_inline=no
5852 for ac_kw in inline __inline__ __inline; do
5853   cat >conftest.$ac_ext <<_ACEOF
5854 #line $LINENO "configure"
5855 /* confdefs.h.  */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h.  */
5860 #ifndef __cplusplus
5861 typedef int foo_t;
5862 static $ac_kw foo_t static_foo () {return 0; }
5863 $ac_kw foo_t foo () {return 0; }
5864 #endif
5865
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869   (eval $ac_compile) 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } &&
5873          { ac_try='test -s conftest.$ac_objext'
5874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875   (eval $ac_try) 2>&5
5876   ac_status=$?
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); }; }; then
5879   ac_cv_c_inline=$ac_kw; break
5880 else
5881   echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884 fi
5885 rm -f conftest.$ac_objext conftest.$ac_ext
5886 done
5887
5888 fi
5889 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5890 echo "${ECHO_T}$ac_cv_c_inline" >&6
5891 case $ac_cv_c_inline in
5892   inline | yes) ;;
5893   no)
5894 cat >>confdefs.h <<\_ACEOF
5895 #define inline
5896 _ACEOF
5897  ;;
5898   *)  cat >>confdefs.h <<_ACEOF
5899 #define inline $ac_cv_c_inline
5900 _ACEOF
5901  ;;
5902 esac
5903
5904 echo "$as_me:$LINENO: checking for off_t" >&5
5905 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5906 if test "${ac_cv_type_off_t+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   cat >conftest.$ac_ext <<_ACEOF
5910 #line $LINENO "configure"
5911 /* confdefs.h.  */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h.  */
5916 $ac_includes_default
5917 int
5918 main ()
5919 {
5920 if ((off_t *) 0)
5921   return 0;
5922 if (sizeof (off_t))
5923   return 0;
5924   ;
5925   return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930   (eval $ac_compile) 2>&5
5931   ac_status=$?
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); } &&
5934          { ac_try='test -s conftest.$ac_objext'
5935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936   (eval $ac_try) 2>&5
5937   ac_status=$?
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); }; }; then
5940   ac_cv_type_off_t=yes
5941 else
5942   echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 ac_cv_type_off_t=no
5946 fi
5947 rm -f conftest.$ac_objext conftest.$ac_ext
5948 fi
5949 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5950 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5951 if test $ac_cv_type_off_t = yes; then
5952   :
5953 else
5954
5955 cat >>confdefs.h <<_ACEOF
5956 #define off_t long
5957 _ACEOF
5958
5959 fi
5960
5961 echo "$as_me:$LINENO: checking for size_t" >&5
5962 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5963 if test "${ac_cv_type_size_t+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966   cat >conftest.$ac_ext <<_ACEOF
5967 #line $LINENO "configure"
5968 /* confdefs.h.  */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h.  */
5973 $ac_includes_default
5974 int
5975 main ()
5976 {
5977 if ((size_t *) 0)
5978   return 0;
5979 if (sizeof (size_t))
5980   return 0;
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987   (eval $ac_compile) 2>&5
5988   ac_status=$?
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); } &&
5991          { ac_try='test -s conftest.$ac_objext'
5992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993   (eval $ac_try) 2>&5
5994   ac_status=$?
5995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996   (exit $ac_status); }; }; then
5997   ac_cv_type_size_t=yes
5998 else
5999   echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 ac_cv_type_size_t=no
6003 fi
6004 rm -f conftest.$ac_objext conftest.$ac_ext
6005 fi
6006 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6007 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6008 if test $ac_cv_type_size_t = yes; then
6009   :
6010 else
6011
6012 cat >>confdefs.h <<_ACEOF
6013 #define size_t unsigned
6014 _ACEOF
6015
6016 fi
6017
6018
6019
6020 for ac_header in stdlib.h unistd.h
6021 do
6022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6024   echo "$as_me:$LINENO: checking for $ac_header" >&5
6025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 fi
6029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6031 else
6032   # Is the header compilable?
6033 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6035 cat >conftest.$ac_ext <<_ACEOF
6036 #line $LINENO "configure"
6037 /* confdefs.h.  */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h.  */
6042 $ac_includes_default
6043 #include <$ac_header>
6044 _ACEOF
6045 rm -f conftest.$ac_objext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047   (eval $ac_compile) 2>&5
6048   ac_status=$?
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); } &&
6051          { ac_try='test -s conftest.$ac_objext'
6052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053   (eval $ac_try) 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); }; }; then
6057   ac_header_compiler=yes
6058 else
6059   echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 ac_header_compiler=no
6063 fi
6064 rm -f conftest.$ac_objext conftest.$ac_ext
6065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6066 echo "${ECHO_T}$ac_header_compiler" >&6
6067
6068 # Is the header present?
6069 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6071 cat >conftest.$ac_ext <<_ACEOF
6072 #line $LINENO "configure"
6073 /* confdefs.h.  */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h.  */
6078 #include <$ac_header>
6079 _ACEOF
6080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6082   ac_status=$?
6083   grep -v '^ *+' conftest.er1 >conftest.err
6084   rm -f conftest.er1
6085   cat conftest.err >&5
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); } >/dev/null; then
6088   if test -s conftest.err; then
6089     ac_cpp_err=$ac_c_preproc_warn_flag
6090   else
6091     ac_cpp_err=
6092   fi
6093 else
6094   ac_cpp_err=yes
6095 fi
6096 if test -z "$ac_cpp_err"; then
6097   ac_header_preproc=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102   ac_header_preproc=no
6103 fi
6104 rm -f conftest.err conftest.$ac_ext
6105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6106 echo "${ECHO_T}$ac_header_preproc" >&6
6107
6108 # So?  What about this header?
6109 case $ac_header_compiler:$ac_header_preproc in
6110   yes:no )
6111     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6115     (
6116       cat <<\_ASBOX
6117 ## ------------------------------------ ##
6118 ## Report this to bug-autoconf@gnu.org. ##
6119 ## ------------------------------------ ##
6120 _ASBOX
6121     ) |
6122       sed "s/^/$as_me: WARNING:     /" >&2
6123     ;;
6124   no:yes )
6125     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6127     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6131     (
6132       cat <<\_ASBOX
6133 ## ------------------------------------ ##
6134 ## Report this to bug-autoconf@gnu.org. ##
6135 ## ------------------------------------ ##
6136 _ASBOX
6137     ) |
6138       sed "s/^/$as_me: WARNING:     /" >&2
6139     ;;
6140 esac
6141 echo "$as_me:$LINENO: checking for $ac_header" >&5
6142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6144   echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146   eval "$as_ac_Header=$ac_header_preproc"
6147 fi
6148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6150
6151 fi
6152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6153   cat >>confdefs.h <<_ACEOF
6154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6155 _ACEOF
6156
6157 fi
6158
6159 done
6160
6161
6162 for ac_func in getpagesize
6163 do
6164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6165 echo "$as_me:$LINENO: checking for $ac_func" >&5
6166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6167 if eval "test \"\${$as_ac_var+set}\" = set"; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170   cat >conftest.$ac_ext <<_ACEOF
6171 #line $LINENO "configure"
6172 /* confdefs.h.  */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h.  */
6177 /* System header to define __stub macros and hopefully few prototypes,
6178     which can conflict with char $ac_func (); below.
6179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6180     <limits.h> exists even on freestanding compilers.  */
6181 #ifdef __STDC__
6182 # include <limits.h>
6183 #else
6184 # include <assert.h>
6185 #endif
6186 /* Override any gcc2 internal prototype to avoid an error.  */
6187 #ifdef __cplusplus
6188 extern "C"
6189 {
6190 #endif
6191 /* We use char because int might match the return type of a gcc2
6192    builtin and then its argument prototype would still apply.  */
6193 char $ac_func ();
6194 /* The GNU C library defines this for functions which it implements
6195     to always fail with ENOSYS.  Some functions are actually named
6196     something starting with __ and the normal name is an alias.  */
6197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6198 choke me
6199 #else
6200 char (*f) () = $ac_func;
6201 #endif
6202 #ifdef __cplusplus
6203 }
6204 #endif
6205
6206 int
6207 main ()
6208 {
6209 return f != $ac_func;
6210   ;
6211   return 0;
6212 }
6213 _ACEOF
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6216   (eval $ac_link) 2>&5
6217   ac_status=$?
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } &&
6220          { ac_try='test -s conftest$ac_exeext'
6221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222   (eval $ac_try) 2>&5
6223   ac_status=$?
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); }; }; then
6226   eval "$as_ac_var=yes"
6227 else
6228   echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6230
6231 eval "$as_ac_var=no"
6232 fi
6233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6234 fi
6235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6237 if test `eval echo '${'$as_ac_var'}'` = yes; then
6238   cat >>confdefs.h <<_ACEOF
6239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6240 _ACEOF
6241
6242 fi
6243 done
6244
6245 echo "$as_me:$LINENO: checking for working mmap" >&5
6246 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6247 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   if test "$cross_compiling" = yes; then
6251   ac_cv_func_mmap_fixed_mapped=no
6252 else
6253   cat >conftest.$ac_ext <<_ACEOF
6254 #line $LINENO "configure"
6255 /* confdefs.h.  */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h.  */
6260 $ac_includes_default
6261 /* malloc might have been renamed as rpl_malloc. */
6262 #undef malloc
6263
6264 /* Thanks to Mike Haertel and Jim Avera for this test.
6265    Here is a matrix of mmap possibilities:
6266         mmap private not fixed
6267         mmap private fixed at somewhere currently unmapped
6268         mmap private fixed at somewhere already mapped
6269         mmap shared not fixed
6270         mmap shared fixed at somewhere currently unmapped
6271         mmap shared fixed at somewhere already mapped
6272    For private mappings, we should verify that changes cannot be read()
6273    back from the file, nor mmap's back from the file at a different
6274    address.  (There have been systems where private was not correctly
6275    implemented like the infamous i386 svr4.0, and systems where the
6276    VM page cache was not coherent with the file system buffer cache
6277    like early versions of FreeBSD and possibly contemporary NetBSD.)
6278    For shared mappings, we should conversely verify that changes get
6279    propagated back to all the places they're supposed to be.
6280
6281    Grep wants private fixed already mapped.
6282    The main things grep needs to know about mmap are:
6283    * does it exist and is it safe to write into the mmap'd area
6284    * how to use it (BSD variants)  */
6285
6286 #include <fcntl.h>
6287 #include <sys/mman.h>
6288
6289 #if !STDC_HEADERS && !HAVE_STDLIB_H
6290 char *malloc ();
6291 #endif
6292
6293 /* This mess was copied from the GNU getpagesize.h.  */
6294 #if !HAVE_GETPAGESIZE
6295 /* Assume that all systems that can run configure have sys/param.h.  */
6296 # if !HAVE_SYS_PARAM_H
6297 #  define HAVE_SYS_PARAM_H 1
6298 # endif
6299
6300 # ifdef _SC_PAGESIZE
6301 #  define getpagesize() sysconf(_SC_PAGESIZE)
6302 # else /* no _SC_PAGESIZE */
6303 #  if HAVE_SYS_PARAM_H
6304 #   include <sys/param.h>
6305 #   ifdef EXEC_PAGESIZE
6306 #    define getpagesize() EXEC_PAGESIZE
6307 #   else /* no EXEC_PAGESIZE */
6308 #    ifdef NBPG
6309 #     define getpagesize() NBPG * CLSIZE
6310 #     ifndef CLSIZE
6311 #      define CLSIZE 1
6312 #     endif /* no CLSIZE */
6313 #    else /* no NBPG */
6314 #     ifdef NBPC
6315 #      define getpagesize() NBPC
6316 #     else /* no NBPC */
6317 #      ifdef PAGESIZE
6318 #       define getpagesize() PAGESIZE
6319 #      endif /* PAGESIZE */
6320 #     endif /* no NBPC */
6321 #    endif /* no NBPG */
6322 #   endif /* no EXEC_PAGESIZE */
6323 #  else /* no HAVE_SYS_PARAM_H */
6324 #   define getpagesize() 8192   /* punt totally */
6325 #  endif /* no HAVE_SYS_PARAM_H */
6326 # endif /* no _SC_PAGESIZE */
6327
6328 #endif /* no HAVE_GETPAGESIZE */
6329
6330 int
6331 main ()
6332 {
6333   char *data, *data2, *data3;
6334   int i, pagesize;
6335   int fd;
6336
6337   pagesize = getpagesize ();
6338
6339   /* First, make a file with some known garbage in it. */
6340   data = (char *) malloc (pagesize);
6341   if (!data)
6342     exit (1);
6343   for (i = 0; i < pagesize; ++i)
6344     *(data + i) = rand ();
6345   umask (0);
6346   fd = creat ("conftest.mmap", 0600);
6347   if (fd < 0)
6348     exit (1);
6349   if (write (fd, data, pagesize) != pagesize)
6350     exit (1);
6351   close (fd);
6352
6353   /* Next, try to mmap the file at a fixed address which already has
6354      something else allocated at it.  If we can, also make sure that
6355      we see the same garbage.  */
6356   fd = open ("conftest.mmap", O_RDWR);
6357   if (fd < 0)
6358     exit (1);
6359   data2 = (char *) malloc (2 * pagesize);
6360   if (!data2)
6361     exit (1);
6362   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6363   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6364                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6365     exit (1);
6366   for (i = 0; i < pagesize; ++i)
6367     if (*(data + i) != *(data2 + i))
6368       exit (1);
6369
6370   /* Finally, make sure that changes to the mapped area do not
6371      percolate back to the file as seen by read().  (This is a bug on
6372      some variants of i386 svr4.0.)  */
6373   for (i = 0; i < pagesize; ++i)
6374     *(data2 + i) = *(data2 + i) + 1;
6375   data3 = (char *) malloc (pagesize);
6376   if (!data3)
6377     exit (1);
6378   if (read (fd, data3, pagesize) != pagesize)
6379     exit (1);
6380   for (i = 0; i < pagesize; ++i)
6381     if (*(data + i) != *(data3 + i))
6382       exit (1);
6383   close (fd);
6384   exit (0);
6385 }
6386 _ACEOF
6387 rm -f conftest$ac_exeext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389   (eval $ac_link) 2>&5
6390   ac_status=$?
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394   (eval $ac_try) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); }; }; then
6398   ac_cv_func_mmap_fixed_mapped=yes
6399 else
6400   echo "$as_me: program exited with status $ac_status" >&5
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404 ( exit $ac_status )
6405 ac_cv_func_mmap_fixed_mapped=no
6406 fi
6407 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6408 fi
6409 fi
6410 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6411 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6412 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6413
6414 cat >>confdefs.h <<\_ACEOF
6415 #define HAVE_MMAP 1
6416 _ACEOF
6417
6418 fi
6419 rm -f conftest.mmap
6420
6421
6422     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6423 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6424 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6425   echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427   cat >conftest.$ac_ext <<_ACEOF
6428 #line $LINENO "configure"
6429 /* confdefs.h.  */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h.  */
6434
6435 #include <features.h>
6436 #ifdef __GNU_LIBRARY__
6437  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6438   Lucky GNU user
6439  #endif
6440 #endif
6441
6442 _ACEOF
6443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6444   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6445   ac_cv_gnu_library_2_1=yes
6446 else
6447   ac_cv_gnu_library_2_1=no
6448 fi
6449 rm -f conftest*
6450
6451
6452
6453 fi
6454 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6455 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6456
6457     GLIBC21="$ac_cv_gnu_library_2_1"
6458
6459
6460
6461
6462   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6463 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
6464 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6465   echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467
6468       if test "$cross_compiling" = yes; then
6469
6470           # Guess based on the CPU.
6471           case "$host_cpu" in
6472             alpha* | i3456786 | m68k | s390*)
6473               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6474             *)
6475               gt_cv_int_divbyzero_sigfpe="guessing no";;
6476           esac
6477
6478 else
6479   cat >conftest.$ac_ext <<_ACEOF
6480 #line $LINENO "configure"
6481 /* confdefs.h.  */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h.  */
6486
6487 #include <stdlib.h>
6488 #include <signal.h>
6489
6490 static void
6491 #ifdef __cplusplus
6492 sigfpe_handler (int sig)
6493 #else
6494 sigfpe_handler (sig) int sig;
6495 #endif
6496 {
6497   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6498   exit (sig != SIGFPE);
6499 }
6500
6501 int x = 1;
6502 int y = 0;
6503 int z;
6504 int nan;
6505
6506 int main ()
6507 {
6508   signal (SIGFPE, sigfpe_handler);
6509 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6510 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6511   signal (SIGTRAP, sigfpe_handler);
6512 #endif
6513 /* Linux/SPARC yields signal SIGILL.  */
6514 #if defined (__sparc__) && defined (__linux__)
6515   signal (SIGILL, sigfpe_handler);
6516 #endif
6517
6518   z = x / y;
6519   nan = y / y;
6520   exit (1);
6521 }
6522
6523 _ACEOF
6524 rm -f conftest$ac_exeext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6526   (eval $ac_link) 2>&5
6527   ac_status=$?
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531   (eval $ac_try) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); }; }; then
6535   gt_cv_int_divbyzero_sigfpe=yes
6536 else
6537   echo "$as_me: program exited with status $ac_status" >&5
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541 ( exit $ac_status )
6542 gt_cv_int_divbyzero_sigfpe=no
6543 fi
6544 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6545 fi
6546
6547 fi
6548 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6549 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
6550   case "$gt_cv_int_divbyzero_sigfpe" in
6551     *yes) value=1;;
6552     *) value=0;;
6553   esac
6554
6555 cat >>confdefs.h <<_ACEOF
6556 #define INTDIV0_RAISES_SIGFPE $value
6557 _ACEOF
6558
6559
6560
6561   echo "$as_me:$LINENO: checking for inttypes.h" >&5
6562 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6563 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 /* confdefs.h.  */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h.  */
6573 #include <sys/types.h>
6574 #include <inttypes.h>
6575 int
6576 main ()
6577 {
6578 uintmax_t i = (uintmax_t) -1;
6579   ;
6580   return 0;
6581 }
6582 _ACEOF
6583 rm -f conftest.$ac_objext
6584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6585   (eval $ac_compile) 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); } &&
6589          { ac_try='test -s conftest.$ac_objext'
6590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591   (eval $ac_try) 2>&5
6592   ac_status=$?
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); }; }; then
6595   jm_ac_cv_header_inttypes_h=yes
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 jm_ac_cv_header_inttypes_h=no
6601 fi
6602 rm -f conftest.$ac_objext conftest.$ac_ext
6603 fi
6604 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6605 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
6606   if test $jm_ac_cv_header_inttypes_h = yes; then
6607
6608 cat >>confdefs.h <<_ACEOF
6609 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6610 _ACEOF
6611
6612   fi
6613
6614
6615   echo "$as_me:$LINENO: checking for stdint.h" >&5
6616 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6617 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   cat >conftest.$ac_ext <<_ACEOF
6621 #line $LINENO "configure"
6622 /* confdefs.h.  */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h.  */
6627 #include <sys/types.h>
6628 #include <stdint.h>
6629 int
6630 main ()
6631 {
6632 uintmax_t i = (uintmax_t) -1;
6633   ;
6634   return 0;
6635 }
6636 _ACEOF
6637 rm -f conftest.$ac_objext
6638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6639   (eval $ac_compile) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); } &&
6643          { ac_try='test -s conftest.$ac_objext'
6644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645   (eval $ac_try) 2>&5
6646   ac_status=$?
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); }; }; then
6649   jm_ac_cv_header_stdint_h=yes
6650 else
6651   echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654 jm_ac_cv_header_stdint_h=no
6655 fi
6656 rm -f conftest.$ac_objext conftest.$ac_ext
6657 fi
6658 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6659 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
6660   if test $jm_ac_cv_header_stdint_h = yes; then
6661
6662 cat >>confdefs.h <<_ACEOF
6663 #define HAVE_STDINT_H_WITH_UINTMAX 1
6664 _ACEOF
6665
6666   fi
6667
6668
6669   echo "$as_me:$LINENO: checking for unsigned long long" >&5
6670 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6671 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6672   echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674   cat >conftest.$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6676 /* confdefs.h.  */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h.  */
6681 unsigned long long ull = 1; int i = 63;
6682 int
6683 main ()
6684 {
6685 unsigned long long ullmax = (unsigned long long) -1;
6686      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6687   ;
6688   return 0;
6689 }
6690 _ACEOF
6691 rm -f conftest.$ac_objext conftest$ac_exeext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6693   (eval $ac_link) 2>&5
6694   ac_status=$?
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); } &&
6697          { ac_try='test -s conftest$ac_exeext'
6698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699   (eval $ac_try) 2>&5
6700   ac_status=$?
6701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702   (exit $ac_status); }; }; then
6703   ac_cv_type_unsigned_long_long=yes
6704 else
6705   echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6707
6708 ac_cv_type_unsigned_long_long=no
6709 fi
6710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6711 fi
6712 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6713 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6714   if test $ac_cv_type_unsigned_long_long = yes; then
6715
6716 cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_UNSIGNED_LONG_LONG 1
6718 _ACEOF
6719
6720   fi
6721
6722
6723
6724
6725   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6726
6727     test $ac_cv_type_unsigned_long_long = yes \
6728       && ac_type='unsigned long long' \
6729       || ac_type='unsigned long'
6730
6731 cat >>confdefs.h <<_ACEOF
6732 #define uintmax_t $ac_type
6733 _ACEOF
6734
6735   fi
6736
6737
6738   echo "$as_me:$LINENO: checking for inttypes.h" >&5
6739 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6740 if test "${gt_cv_header_inttypes_h+set}" = set; then
6741   echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743
6744     cat >conftest.$ac_ext <<_ACEOF
6745 #line $LINENO "configure"
6746 /* confdefs.h.  */
6747 _ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h.  */
6751 #include <sys/types.h>
6752 #include <inttypes.h>
6753 int
6754 main ()
6755 {
6756
6757   ;
6758   return 0;
6759 }
6760 _ACEOF
6761 rm -f conftest.$ac_objext
6762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6763   (eval $ac_compile) 2>&5
6764   ac_status=$?
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); } &&
6767          { ac_try='test -s conftest.$ac_objext'
6768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769   (eval $ac_try) 2>&5
6770   ac_status=$?
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); }; }; then
6773   gt_cv_header_inttypes_h=yes
6774 else
6775   echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6777
6778 gt_cv_header_inttypes_h=no
6779 fi
6780 rm -f conftest.$ac_objext conftest.$ac_ext
6781
6782 fi
6783 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6784 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6785   if test $gt_cv_header_inttypes_h = yes; then
6786
6787 cat >>confdefs.h <<_ACEOF
6788 #define HAVE_INTTYPES_H 1
6789 _ACEOF
6790
6791   fi
6792
6793
6794
6795   if test $gt_cv_header_inttypes_h = yes; then
6796     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6797 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6798 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6799   echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801
6802         cat >conftest.$ac_ext <<_ACEOF
6803 #line $LINENO "configure"
6804 /* confdefs.h.  */
6805 _ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h.  */
6809 #include <inttypes.h>
6810 #ifdef PRId32
6811 char *p = PRId32;
6812 #endif
6813
6814 int
6815 main ()
6816 {
6817
6818   ;
6819   return 0;
6820 }
6821 _ACEOF
6822 rm -f conftest.$ac_objext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824   (eval $ac_compile) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); } &&
6828          { ac_try='test -s conftest.$ac_objext'
6829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830   (eval $ac_try) 2>&5
6831   ac_status=$?
6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833   (exit $ac_status); }; }; then
6834   gt_cv_inttypes_pri_broken=no
6835 else
6836   echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6838
6839 gt_cv_inttypes_pri_broken=yes
6840 fi
6841 rm -f conftest.$ac_objext conftest.$ac_ext
6842
6843 fi
6844 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6845 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6846   fi
6847   if test "$gt_cv_inttypes_pri_broken" = yes; then
6848
6849 cat >>confdefs.h <<_ACEOF
6850 #define PRI_MACROS_BROKEN 1
6851 _ACEOF
6852
6853   fi
6854
6855
6856       if test "X$prefix" = "XNONE"; then
6857     acl_final_prefix="$ac_default_prefix"
6858   else
6859     acl_final_prefix="$prefix"
6860   fi
6861   if test "X$exec_prefix" = "XNONE"; then
6862     acl_final_exec_prefix='${prefix}'
6863   else
6864     acl_final_exec_prefix="$exec_prefix"
6865   fi
6866   acl_save_prefix="$prefix"
6867   prefix="$acl_final_prefix"
6868   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6869   prefix="$acl_save_prefix"
6870
6871
6872 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6873 if test "${with_gnu_ld+set}" = set; then
6874   withval="$with_gnu_ld"
6875   test "$withval" = no || with_gnu_ld=yes
6876 else
6877   with_gnu_ld=no
6878 fi;
6879 ac_prog=ld
6880 if test "$GCC" = yes; then
6881   # Check if gcc -print-prog-name=ld gives a path.
6882   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6883 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6884   case $host in
6885   *-*-mingw*)
6886     # gcc leaves a trailing carriage return which upsets mingw
6887     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6888   *)
6889     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6890   esac
6891   case $ac_prog in
6892     # Accept absolute paths.
6893     [\\/]* | [A-Za-z]:[\\/]*)
6894       re_direlt='/[^/][^/]*/\.\./'
6895       # Canonicalize the path of ld
6896       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6897       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6898         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6899       done
6900       test -z "$LD" && LD="$ac_prog"
6901       ;;
6902   "")
6903     # If it fails, then pretend we aren't using GCC.
6904     ac_prog=ld
6905     ;;
6906   *)
6907     # If it is relative, then search for the first ld in PATH.
6908     with_gnu_ld=unknown
6909     ;;
6910   esac
6911 elif test "$with_gnu_ld" = yes; then
6912   echo "$as_me:$LINENO: checking for GNU ld" >&5
6913 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6914 else
6915   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6916 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6917 fi
6918 if test "${acl_cv_path_LD+set}" = set; then
6919   echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921   if test -z "$LD"; then
6922   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6923   for ac_dir in $PATH; do
6924     test -z "$ac_dir" && ac_dir=.
6925     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6926       acl_cv_path_LD="$ac_dir/$ac_prog"
6927       # Check to see if the program is GNU ld.  I'd rather use --version,
6928       # but apparently some GNU ld's only accept -v.
6929       # Break only if it was the GNU/non-GNU ld that we prefer.
6930       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6931         test "$with_gnu_ld" != no && break
6932       else
6933         test "$with_gnu_ld" != yes && break
6934       fi
6935     fi
6936   done
6937   IFS="$ac_save_ifs"
6938 else
6939   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6940 fi
6941 fi
6942
6943 LD="$acl_cv_path_LD"
6944 if test -n "$LD"; then
6945   echo "$as_me:$LINENO: result: $LD" >&5
6946 echo "${ECHO_T}$LD" >&6
6947 else
6948   echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6
6950 fi
6951 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6952 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6953    { (exit 1); exit 1; }; }
6954 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6955 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6956 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6957   echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6960 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6961   acl_cv_prog_gnu_ld=yes
6962 else
6963   acl_cv_prog_gnu_ld=no
6964 fi
6965 fi
6966 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6967 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6968 with_gnu_ld=$acl_cv_prog_gnu_ld
6969
6970
6971
6972                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6973 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6974 if test "${acl_cv_rpath+set}" = set; then
6975   echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977
6978     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6979     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6980     . ./conftest.sh
6981     rm -f ./conftest.sh
6982     acl_cv_rpath=done
6983
6984 fi
6985 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6986 echo "${ECHO_T}$acl_cv_rpath" >&6
6987   wl="$acl_cv_wl"
6988   libext="$acl_cv_libext"
6989   shlibext="$acl_cv_shlibext"
6990   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6991   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6992   hardcode_direct="$acl_cv_hardcode_direct"
6993   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6994   sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
6995   sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
6996     # Check whether --enable-rpath or --disable-rpath was given.
6997 if test "${enable_rpath+set}" = set; then
6998   enableval="$enable_rpath"
6999   :
7000 else
7001   enable_rpath=yes
7002 fi;
7003
7004
7005
7006
7007
7008
7009
7010     use_additional=yes
7011
7012   acl_save_prefix="$prefix"
7013   prefix="$acl_final_prefix"
7014   acl_save_exec_prefix="$exec_prefix"
7015   exec_prefix="$acl_final_exec_prefix"
7016
7017     eval additional_includedir=\"$includedir\"
7018     eval additional_libdir=\"$libdir\"
7019
7020   exec_prefix="$acl_save_exec_prefix"
7021   prefix="$acl_save_prefix"
7022
7023
7024 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7025 if test "${with_libiconv_prefix+set}" = set; then
7026   withval="$with_libiconv_prefix"
7027
7028     if test "X$withval" = "Xno"; then
7029       use_additional=no
7030     else
7031       if test "X$withval" = "X"; then
7032
7033   acl_save_prefix="$prefix"
7034   prefix="$acl_final_prefix"
7035   acl_save_exec_prefix="$exec_prefix"
7036   exec_prefix="$acl_final_exec_prefix"
7037
7038           eval additional_includedir=\"$includedir\"
7039           eval additional_libdir=\"$libdir\"
7040
7041   exec_prefix="$acl_save_exec_prefix"
7042   prefix="$acl_save_prefix"
7043
7044       else
7045         additional_includedir="$withval/include"
7046         additional_libdir="$withval/lib"
7047       fi
7048     fi
7049
7050 fi;
7051       LIBICONV=
7052   LTLIBICONV=
7053   INCICONV=
7054   rpathdirs=
7055   ltrpathdirs=
7056   names_already_handled=
7057   names_next_round='iconv '
7058   while test -n "$names_next_round"; do
7059     names_this_round="$names_next_round"
7060     names_next_round=
7061     for name in $names_this_round; do
7062       already_handled=
7063       for n in $names_already_handled; do
7064         if test "$n" = "$name"; then
7065           already_handled=yes
7066           break
7067         fi
7068       done
7069       if test -z "$already_handled"; then
7070         names_already_handled="$names_already_handled $name"
7071                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7072         eval value=\"\$HAVE_LIB$uppername\"
7073         if test -n "$value"; then
7074           if test "$value" = yes; then
7075             eval value=\"\$LIB$uppername\"
7076             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7077             eval value=\"\$LTLIB$uppername\"
7078             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7079           else
7080                                     :
7081           fi
7082         else
7083                               found_dir=
7084           found_la=
7085           found_so=
7086           found_a=
7087           if test $use_additional = yes; then
7088             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7089               found_dir="$additional_libdir"
7090               found_so="$additional_libdir/lib$name.$shlibext"
7091               if test -f "$additional_libdir/lib$name.la"; then
7092                 found_la="$additional_libdir/lib$name.la"
7093               fi
7094             else
7095               if test -f "$additional_libdir/lib$name.$libext"; then
7096                 found_dir="$additional_libdir"
7097                 found_a="$additional_libdir/lib$name.$libext"
7098                 if test -f "$additional_libdir/lib$name.la"; then
7099                   found_la="$additional_libdir/lib$name.la"
7100                 fi
7101               fi
7102             fi
7103           fi
7104           if test "X$found_dir" = "X"; then
7105             for x in $LDFLAGS $LTLIBICONV; do
7106
7107   acl_save_prefix="$prefix"
7108   prefix="$acl_final_prefix"
7109   acl_save_exec_prefix="$exec_prefix"
7110   exec_prefix="$acl_final_exec_prefix"
7111   eval x=\"$x\"
7112   exec_prefix="$acl_save_exec_prefix"
7113   prefix="$acl_save_prefix"
7114
7115               case "$x" in
7116                 -L*)
7117                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7118                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7119                     found_dir="$dir"
7120                     found_so="$dir/lib$name.$shlibext"
7121                     if test -f "$dir/lib$name.la"; then
7122                       found_la="$dir/lib$name.la"
7123                     fi
7124                   else
7125                     if test -f "$dir/lib$name.$libext"; then
7126                       found_dir="$dir"
7127                       found_a="$dir/lib$name.$libext"
7128                       if test -f "$dir/lib$name.la"; then
7129                         found_la="$dir/lib$name.la"
7130                       fi
7131                     fi
7132                   fi
7133                   ;;
7134               esac
7135               if test "X$found_dir" != "X"; then
7136                 break
7137               fi
7138             done
7139           fi
7140           if test "X$found_dir" != "X"; then
7141                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7142             if test "X$found_so" != "X"; then
7143                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7144                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7145               else
7146                                                                                 haveit=
7147                 for x in $ltrpathdirs; do
7148                   if test "X$x" = "X$found_dir"; then
7149                     haveit=yes
7150                     break
7151                   fi
7152                 done
7153                 if test -z "$haveit"; then
7154                   ltrpathdirs="$ltrpathdirs $found_dir"
7155                 fi
7156                                 if test "$hardcode_direct" = yes; then
7157                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7158                 else
7159                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7160                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7161                                                             haveit=
7162                     for x in $rpathdirs; do
7163                       if test "X$x" = "X$found_dir"; then
7164                         haveit=yes
7165                         break
7166                       fi
7167                     done
7168                     if test -z "$haveit"; then
7169                       rpathdirs="$rpathdirs $found_dir"
7170                     fi
7171                   else
7172                                                                                 haveit=
7173                     for x in $LDFLAGS $LIBICONV; do
7174
7175   acl_save_prefix="$prefix"
7176   prefix="$acl_final_prefix"
7177   acl_save_exec_prefix="$exec_prefix"
7178   exec_prefix="$acl_final_exec_prefix"
7179   eval x=\"$x\"
7180   exec_prefix="$acl_save_exec_prefix"
7181   prefix="$acl_save_prefix"
7182
7183                       if test "X$x" = "X-L$found_dir"; then
7184                         haveit=yes
7185                         break
7186                       fi
7187                     done
7188                     if test -z "$haveit"; then
7189                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7190                     fi
7191                     if test "$hardcode_minus_L" != no; then
7192                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7193                     else
7194                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7195                     fi
7196                   fi
7197                 fi
7198               fi
7199             else
7200               if test "X$found_a" != "X"; then
7201                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7202               else
7203                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7204               fi
7205             fi
7206                         additional_includedir=
7207             case "$found_dir" in
7208               */lib | */lib/)
7209                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7210                 additional_includedir="$basedir/include"
7211                 ;;
7212             esac
7213             if test "X$additional_includedir" != "X"; then
7214                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7215                 haveit=
7216                 if test "X$additional_includedir" = "X/usr/local/include"; then
7217                   if test -n "$GCC"; then
7218                     case $host_os in
7219                       linux*) haveit=yes;;
7220                     esac
7221                   fi
7222                 fi
7223                 if test -z "$haveit"; then
7224                   for x in $CPPFLAGS $INCICONV; do
7225
7226   acl_save_prefix="$prefix"
7227   prefix="$acl_final_prefix"
7228   acl_save_exec_prefix="$exec_prefix"
7229   exec_prefix="$acl_final_exec_prefix"
7230   eval x=\"$x\"
7231   exec_prefix="$acl_save_exec_prefix"
7232   prefix="$acl_save_prefix"
7233
7234                     if test "X$x" = "X-I$additional_includedir"; then
7235                       haveit=yes
7236                       break
7237                     fi
7238                   done
7239                   if test -z "$haveit"; then
7240                     if test -d "$additional_includedir"; then
7241                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7242                     fi
7243                   fi
7244                 fi
7245               fi
7246             fi
7247                         if test -n "$found_la"; then
7248                                                         save_libdir="$libdir"
7249               case "$found_la" in
7250                 */* | *\\*) . "$found_la" ;;
7251                 *) . "./$found_la" ;;
7252               esac
7253               libdir="$save_libdir"
7254                             for dep in $dependency_libs; do
7255                 case "$dep" in
7256                   -L*)
7257                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7258                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7259                       haveit=
7260                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7261                         if test -n "$GCC"; then
7262                           case $host_os in
7263                             linux*) haveit=yes;;
7264                           esac
7265                         fi
7266                       fi
7267                       if test -z "$haveit"; then
7268                         haveit=
7269                         for x in $LDFLAGS $LIBICONV; do
7270
7271   acl_save_prefix="$prefix"
7272   prefix="$acl_final_prefix"
7273   acl_save_exec_prefix="$exec_prefix"
7274   exec_prefix="$acl_final_exec_prefix"
7275   eval x=\"$x\"
7276   exec_prefix="$acl_save_exec_prefix"
7277   prefix="$acl_save_prefix"
7278
7279                           if test "X$x" = "X-L$additional_libdir"; then
7280                             haveit=yes
7281                             break
7282                           fi
7283                         done
7284                         if test -z "$haveit"; then
7285                           if test -d "$additional_libdir"; then
7286                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7287                           fi
7288                         fi
7289                         haveit=
7290                         for x in $LDFLAGS $LTLIBICONV; do
7291
7292   acl_save_prefix="$prefix"
7293   prefix="$acl_final_prefix"
7294   acl_save_exec_prefix="$exec_prefix"
7295   exec_prefix="$acl_final_exec_prefix"
7296   eval x=\"$x\"
7297   exec_prefix="$acl_save_exec_prefix"
7298   prefix="$acl_save_prefix"
7299
7300                           if test "X$x" = "X-L$additional_libdir"; then
7301                             haveit=yes
7302                             break
7303                           fi
7304                         done
7305                         if test -z "$haveit"; then
7306                           if test -d "$additional_libdir"; then
7307                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7308                           fi
7309                         fi
7310                       fi
7311                     fi
7312                     ;;
7313                   -R*)
7314                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7315                     if test "$enable_rpath" != no; then
7316                                                                   haveit=
7317                       for x in $rpathdirs; do
7318                         if test "X$x" = "X$dir"; then
7319                           haveit=yes
7320                           break
7321                         fi
7322                       done
7323                       if test -z "$haveit"; then
7324                         rpathdirs="$rpathdirs $dir"
7325                       fi
7326                                                                   haveit=
7327                       for x in $ltrpathdirs; do
7328                         if test "X$x" = "X$dir"; then
7329                           haveit=yes
7330                           break
7331                         fi
7332                       done
7333                       if test -z "$haveit"; then
7334                         ltrpathdirs="$ltrpathdirs $dir"
7335                       fi
7336                     fi
7337                     ;;
7338                   -l*)
7339                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7340                     ;;
7341                   *.la)
7342                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7343                     ;;
7344                   *)
7345                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7346                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7347                     ;;
7348                 esac
7349               done
7350             fi
7351           else
7352                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7353             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7354           fi
7355         fi
7356       fi
7357     done
7358   done
7359   if test "X$rpathdirs" != "X"; then
7360     if test -n "$hardcode_libdir_separator"; then
7361                         alldirs=
7362       for found_dir in $rpathdirs; do
7363         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7364       done
7365             acl_save_libdir="$libdir"
7366       libdir="$alldirs"
7367       eval flag=\"$hardcode_libdir_flag_spec\"
7368       libdir="$acl_save_libdir"
7369       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7370     else
7371             for found_dir in $rpathdirs; do
7372         acl_save_libdir="$libdir"
7373         libdir="$found_dir"
7374         eval flag=\"$hardcode_libdir_flag_spec\"
7375         libdir="$acl_save_libdir"
7376         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7377       done
7378     fi
7379   fi
7380   if test "X$ltrpathdirs" != "X"; then
7381             for found_dir in $ltrpathdirs; do
7382       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7383     done
7384   fi
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7400 stdlib.h string.h unistd.h sys/param.h
7401 do
7402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7404   echo "$as_me:$LINENO: checking for $ac_header" >&5
7405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 fi
7409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7411 else
7412   # Is the header compilable?
7413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7415 cat >conftest.$ac_ext <<_ACEOF
7416 #line $LINENO "configure"
7417 /* confdefs.h.  */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h.  */
7422 $ac_includes_default
7423 #include <$ac_header>
7424 _ACEOF
7425 rm -f conftest.$ac_objext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427   (eval $ac_compile) 2>&5
7428   ac_status=$?
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); } &&
7431          { ac_try='test -s conftest.$ac_objext'
7432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433   (eval $ac_try) 2>&5
7434   ac_status=$?
7435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); }; }; then
7437   ac_header_compiler=yes
7438 else
7439   echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7441
7442 ac_header_compiler=no
7443 fi
7444 rm -f conftest.$ac_objext conftest.$ac_ext
7445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7446 echo "${ECHO_T}$ac_header_compiler" >&6
7447
7448 # Is the header present?
7449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7451 cat >conftest.$ac_ext <<_ACEOF
7452 #line $LINENO "configure"
7453 /* confdefs.h.  */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h.  */
7458 #include <$ac_header>
7459 _ACEOF
7460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7462   ac_status=$?
7463   grep -v '^ *+' conftest.er1 >conftest.err
7464   rm -f conftest.er1
7465   cat conftest.err >&5
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); } >/dev/null; then
7468   if test -s conftest.err; then
7469     ac_cpp_err=$ac_c_preproc_warn_flag
7470   else
7471     ac_cpp_err=
7472   fi
7473 else
7474   ac_cpp_err=yes
7475 fi
7476 if test -z "$ac_cpp_err"; then
7477   ac_header_preproc=yes
7478 else
7479   echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7481
7482   ac_header_preproc=no
7483 fi
7484 rm -f conftest.err conftest.$ac_ext
7485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7486 echo "${ECHO_T}$ac_header_preproc" >&6
7487
7488 # So?  What about this header?
7489 case $ac_header_compiler:$ac_header_preproc in
7490   yes:no )
7491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7495     (
7496       cat <<\_ASBOX
7497 ## ------------------------------------ ##
7498 ## Report this to bug-autoconf@gnu.org. ##
7499 ## ------------------------------------ ##
7500 _ASBOX
7501     ) |
7502       sed "s/^/$as_me: WARNING:     /" >&2
7503     ;;
7504   no:yes )
7505     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7507     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7511     (
7512       cat <<\_ASBOX
7513 ## ------------------------------------ ##
7514 ## Report this to bug-autoconf@gnu.org. ##
7515 ## ------------------------------------ ##
7516 _ASBOX
7517     ) |
7518       sed "s/^/$as_me: WARNING:     /" >&2
7519     ;;
7520 esac
7521 echo "$as_me:$LINENO: checking for $ac_header" >&5
7522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7524   echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526   eval "$as_ac_Header=$ac_header_preproc"
7527 fi
7528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7530
7531 fi
7532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7533   cat >>confdefs.h <<_ACEOF
7534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7535 _ACEOF
7536
7537 fi
7538
7539 done
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
7563 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
7564 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7565 do
7566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7567 echo "$as_me:$LINENO: checking for $ac_func" >&5
7568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7569 if eval "test \"\${$as_ac_var+set}\" = set"; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   cat >conftest.$ac_ext <<_ACEOF
7573 #line $LINENO "configure"
7574 /* confdefs.h.  */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h.  */
7579 /* System header to define __stub macros and hopefully few prototypes,
7580     which can conflict with char $ac_func (); below.
7581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7582     <limits.h> exists even on freestanding compilers.  */
7583 #ifdef __STDC__
7584 # include <limits.h>
7585 #else
7586 # include <assert.h>
7587 #endif
7588 /* Override any gcc2 internal prototype to avoid an error.  */
7589 #ifdef __cplusplus
7590 extern "C"
7591 {
7592 #endif
7593 /* We use char because int might match the return type of a gcc2
7594    builtin and then its argument prototype would still apply.  */
7595 char $ac_func ();
7596 /* The GNU C library defines this for functions which it implements
7597     to always fail with ENOSYS.  Some functions are actually named
7598     something starting with __ and the normal name is an alias.  */
7599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7600 choke me
7601 #else
7602 char (*f) () = $ac_func;
7603 #endif
7604 #ifdef __cplusplus
7605 }
7606 #endif
7607
7608 int
7609 main ()
7610 {
7611 return f != $ac_func;
7612   ;
7613   return 0;
7614 }
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618   (eval $ac_link) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } &&
7622          { ac_try='test -s conftest$ac_exeext'
7623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624   (eval $ac_try) 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); }; }; then
7628   eval "$as_ac_var=yes"
7629 else
7630   echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 eval "$as_ac_var=no"
7634 fi
7635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7636 fi
7637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7639 if test `eval echo '${'$as_ac_var'}'` = yes; then
7640   cat >>confdefs.h <<_ACEOF
7641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7642 _ACEOF
7643
7644 fi
7645 done
7646
7647
7648
7649
7650
7651
7652
7653           am_save_CPPFLAGS="$CPPFLAGS"
7654
7655   for element in $INCICONV; do
7656     haveit=
7657     for x in $CPPFLAGS; do
7658
7659   acl_save_prefix="$prefix"
7660   prefix="$acl_final_prefix"
7661   acl_save_exec_prefix="$exec_prefix"
7662   exec_prefix="$acl_final_exec_prefix"
7663   eval x=\"$x\"
7664   exec_prefix="$acl_save_exec_prefix"
7665   prefix="$acl_save_prefix"
7666
7667       if test "X$x" = "X$element"; then
7668         haveit=yes
7669         break
7670       fi
7671     done
7672     if test -z "$haveit"; then
7673       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7674     fi
7675   done
7676
7677
7678   echo "$as_me:$LINENO: checking for iconv" >&5
7679 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7680 if test "${am_cv_func_iconv+set}" = set; then
7681   echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683
7684     am_cv_func_iconv="no, consider installing GNU libiconv"
7685     am_cv_lib_iconv=no
7686     cat >conftest.$ac_ext <<_ACEOF
7687 #line $LINENO "configure"
7688 /* confdefs.h.  */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h.  */
7693 #include <stdlib.h>
7694 #include <iconv.h>
7695 int
7696 main ()
7697 {
7698 iconv_t cd = iconv_open("","");
7699        iconv(cd,NULL,NULL,NULL,NULL);
7700        iconv_close(cd);
7701   ;
7702   return 0;
7703 }
7704 _ACEOF
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707   (eval $ac_link) 2>&5
7708   ac_status=$?
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); } &&
7711          { ac_try='test -s conftest$ac_exeext'
7712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713   (eval $ac_try) 2>&5
7714   ac_status=$?
7715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716   (exit $ac_status); }; }; then
7717   am_cv_func_iconv=yes
7718 else
7719   echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7721
7722 fi
7723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7724     if test "$am_cv_func_iconv" != yes; then
7725       am_save_LIBS="$LIBS"
7726       LIBS="$LIBS $LIBICONV"
7727       cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7729 /* confdefs.h.  */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h.  */
7734 #include <stdlib.h>
7735 #include <iconv.h>
7736 int
7737 main ()
7738 {
7739 iconv_t cd = iconv_open("","");
7740          iconv(cd,NULL,NULL,NULL,NULL);
7741          iconv_close(cd);
7742   ;
7743   return 0;
7744 }
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748   (eval $ac_link) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } &&
7752          { ac_try='test -s conftest$ac_exeext'
7753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754   (eval $ac_try) 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); }; }; then
7758   am_cv_lib_iconv=yes
7759         am_cv_func_iconv=yes
7760 else
7761   echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7763
7764 fi
7765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7766       LIBS="$am_save_LIBS"
7767     fi
7768
7769 fi
7770 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7771 echo "${ECHO_T}$am_cv_func_iconv" >&6
7772   if test "$am_cv_func_iconv" = yes; then
7773
7774 cat >>confdefs.h <<\_ACEOF
7775 #define HAVE_ICONV 1
7776 _ACEOF
7777
7778   fi
7779   if test "$am_cv_lib_iconv" = yes; then
7780     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7781 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7782     echo "$as_me:$LINENO: result: $LIBICONV" >&5
7783 echo "${ECHO_T}$LIBICONV" >&6
7784   else
7785             CPPFLAGS="$am_save_CPPFLAGS"
7786     LIBICONV=
7787     LTLIBICONV=
7788   fi
7789
7790
7791
7792   if test "$am_cv_func_iconv" = yes; then
7793     echo "$as_me:$LINENO: checking for iconv declaration" >&5
7794 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7795     if test "${am_cv_proto_iconv+set}" = set; then
7796   echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798
7799       cat >conftest.$ac_ext <<_ACEOF
7800 #line $LINENO "configure"
7801 /* confdefs.h.  */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h.  */
7806
7807 #include <stdlib.h>
7808 #include <iconv.h>
7809 extern
7810 #ifdef __cplusplus
7811 "C"
7812 #endif
7813 #if defined(__STDC__) || defined(__cplusplus)
7814 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7815 #else
7816 size_t iconv();
7817 #endif
7818
7819 int
7820 main ()
7821 {
7822
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829   (eval $ac_compile) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); } &&
7833          { ac_try='test -s conftest.$ac_objext'
7834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835   (eval $ac_try) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; }; then
7839   am_cv_proto_iconv_arg1=""
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844 am_cv_proto_iconv_arg1="const"
7845 fi
7846 rm -f conftest.$ac_objext conftest.$ac_ext
7847       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7848 fi
7849
7850     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7851     echo "$as_me:$LINENO: result: ${ac_t:-
7852          }$am_cv_proto_iconv" >&5
7853 echo "${ECHO_T}${ac_t:-
7854          }$am_cv_proto_iconv" >&6
7855
7856 cat >>confdefs.h <<_ACEOF
7857 #define ICONV_CONST $am_cv_proto_iconv_arg1
7858 _ACEOF
7859
7860   fi
7861
7862
7863   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7864 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7865 if test "${am_cv_langinfo_codeset+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868   cat >conftest.$ac_ext <<_ACEOF
7869 #line $LINENO "configure"
7870 /* confdefs.h.  */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h.  */
7875 #include <langinfo.h>
7876 int
7877 main ()
7878 {
7879 char* cs = nl_langinfo(CODESET);
7880   ;
7881   return 0;
7882 }
7883 _ACEOF
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886   (eval $ac_link) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); } &&
7890          { ac_try='test -s conftest$ac_exeext'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; }; then
7896   am_cv_langinfo_codeset=yes
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 am_cv_langinfo_codeset=no
7902 fi
7903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7904
7905 fi
7906 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7907 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7908   if test $am_cv_langinfo_codeset = yes; then
7909
7910 cat >>confdefs.h <<\_ACEOF
7911 #define HAVE_LANGINFO_CODESET 1
7912 _ACEOF
7913
7914   fi
7915
7916   if test $ac_cv_header_locale_h = yes; then
7917
7918   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7919 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7920 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923   cat >conftest.$ac_ext <<_ACEOF
7924 #line $LINENO "configure"
7925 /* confdefs.h.  */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h.  */
7930 #include <locale.h>
7931 int
7932 main ()
7933 {
7934 return LC_MESSAGES
7935   ;
7936   return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941   (eval $ac_link) 2>&5
7942   ac_status=$?
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); } &&
7945          { ac_try='test -s conftest$ac_exeext'
7946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947   (eval $ac_try) 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }; }; then
7951   am_cv_val_LC_MESSAGES=yes
7952 else
7953   echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956 am_cv_val_LC_MESSAGES=no
7957 fi
7958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7959 fi
7960 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7961 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7962   if test $am_cv_val_LC_MESSAGES = yes; then
7963
7964 cat >>confdefs.h <<\_ACEOF
7965 #define HAVE_LC_MESSAGES 1
7966 _ACEOF
7967
7968   fi
7969
7970   fi
7971
7972                       for ac_prog in bison
7973 do
7974   # Extract the first word of "$ac_prog", so it can be a program name with args.
7975 set dummy $ac_prog; ac_word=$2
7976 echo "$as_me:$LINENO: checking for $ac_word" >&5
7977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7978 if test "${ac_cv_prog_INTLBISON+set}" = set; then
7979   echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981   if test -n "$INTLBISON"; then
7982   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987   IFS=$as_save_IFS
7988   test -z "$as_dir" && as_dir=.
7989   for ac_exec_ext in '' $ac_executable_extensions; do
7990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7991     ac_cv_prog_INTLBISON="$ac_prog"
7992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7993     break 2
7994   fi
7995 done
7996 done
7997
7998 fi
7999 fi
8000 INTLBISON=$ac_cv_prog_INTLBISON
8001 if test -n "$INTLBISON"; then
8002   echo "$as_me:$LINENO: result: $INTLBISON" >&5
8003 echo "${ECHO_T}$INTLBISON" >&6
8004 else
8005   echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6
8007 fi
8008
8009   test -n "$INTLBISON" && break
8010 done
8011
8012   if test -z "$INTLBISON"; then
8013     ac_verc_fail=yes
8014   else
8015         echo "$as_me:$LINENO: checking version of bison" >&5
8016 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8017     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8018     case $ac_prog_version in
8019       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8020       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8021          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8022       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8023     esac
8024     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8025 echo "${ECHO_T}$ac_prog_version" >&6
8026   fi
8027   if test $ac_verc_fail = yes; then
8028     INTLBISON=:
8029   fi
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8046 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8047     # Check whether --enable-nls or --disable-nls was given.
8048 if test "${enable_nls+set}" = set; then
8049   enableval="$enable_nls"
8050   USE_NLS=$enableval
8051 else
8052   USE_NLS=yes
8053 fi;
8054   echo "$as_me:$LINENO: result: $USE_NLS" >&5
8055 echo "${ECHO_T}$USE_NLS" >&6
8056
8057
8058
8059     BUILD_INCLUDED_LIBINTL=no
8060     USE_INCLUDED_LIBINTL=no
8061
8062   LIBINTL=
8063   LTLIBINTL=
8064   POSUB=
8065
8066     if test "$USE_NLS" = "yes"; then
8067     gt_use_preinstalled_gnugettext=no
8068
8069       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8070 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8071
8072 # Check whether --with-included-gettext or --without-included-gettext was given.
8073 if test "${with_included_gettext+set}" = set; then
8074   withval="$with_included_gettext"
8075   nls_cv_force_use_gnu_gettext=$withval
8076 else
8077   nls_cv_force_use_gnu_gettext=no
8078 fi;
8079       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8080 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8081
8082       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8083       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8084
8085
8086
8087
8088
8089
8090         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8091 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8092 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
8093   echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095   cat >conftest.$ac_ext <<_ACEOF
8096 #line $LINENO "configure"
8097 /* confdefs.h.  */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h.  */
8102 #include <libintl.h>
8103 extern int _nl_msg_cat_cntr;
8104 extern int *_nl_domain_bindings;
8105 int
8106 main ()
8107 {
8108 bindtextdomain ("", "");
8109 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8110   ;
8111   return 0;
8112 }
8113 _ACEOF
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8116   (eval $ac_link) 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); } &&
8120          { ac_try='test -s conftest$ac_exeext'
8121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122   (eval $ac_try) 2>&5
8123   ac_status=$?
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); }; }; then
8126   gt_cv_func_gnugettext1_libc=yes
8127 else
8128   echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8130
8131 gt_cv_func_gnugettext1_libc=no
8132 fi
8133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8134 fi
8135 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
8136 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
8137
8138         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8139
8140
8141
8142     use_additional=yes
8143
8144   acl_save_prefix="$prefix"
8145   prefix="$acl_final_prefix"
8146   acl_save_exec_prefix="$exec_prefix"
8147   exec_prefix="$acl_final_exec_prefix"
8148
8149     eval additional_includedir=\"$includedir\"
8150     eval additional_libdir=\"$libdir\"
8151
8152   exec_prefix="$acl_save_exec_prefix"
8153   prefix="$acl_save_prefix"
8154
8155
8156 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8157 if test "${with_libintl_prefix+set}" = set; then
8158   withval="$with_libintl_prefix"
8159
8160     if test "X$withval" = "Xno"; then
8161       use_additional=no
8162     else
8163       if test "X$withval" = "X"; then
8164
8165   acl_save_prefix="$prefix"
8166   prefix="$acl_final_prefix"
8167   acl_save_exec_prefix="$exec_prefix"
8168   exec_prefix="$acl_final_exec_prefix"
8169
8170           eval additional_includedir=\"$includedir\"
8171           eval additional_libdir=\"$libdir\"
8172
8173   exec_prefix="$acl_save_exec_prefix"
8174   prefix="$acl_save_prefix"
8175
8176       else
8177         additional_includedir="$withval/include"
8178         additional_libdir="$withval/lib"
8179       fi
8180     fi
8181
8182 fi;
8183       LIBINTL=
8184   LTLIBINTL=
8185   INCINTL=
8186   rpathdirs=
8187   ltrpathdirs=
8188   names_already_handled=
8189   names_next_round='intl '
8190   while test -n "$names_next_round"; do
8191     names_this_round="$names_next_round"
8192     names_next_round=
8193     for name in $names_this_round; do
8194       already_handled=
8195       for n in $names_already_handled; do
8196         if test "$n" = "$name"; then
8197           already_handled=yes
8198           break
8199         fi
8200       done
8201       if test -z "$already_handled"; then
8202         names_already_handled="$names_already_handled $name"
8203                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8204         eval value=\"\$HAVE_LIB$uppername\"
8205         if test -n "$value"; then
8206           if test "$value" = yes; then
8207             eval value=\"\$LIB$uppername\"
8208             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8209             eval value=\"\$LTLIB$uppername\"
8210             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8211           else
8212                                     :
8213           fi
8214         else
8215                               found_dir=
8216           found_la=
8217           found_so=
8218           found_a=
8219           if test $use_additional = yes; then
8220             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8221               found_dir="$additional_libdir"
8222               found_so="$additional_libdir/lib$name.$shlibext"
8223               if test -f "$additional_libdir/lib$name.la"; then
8224                 found_la="$additional_libdir/lib$name.la"
8225               fi
8226             else
8227               if test -f "$additional_libdir/lib$name.$libext"; then
8228                 found_dir="$additional_libdir"
8229                 found_a="$additional_libdir/lib$name.$libext"
8230                 if test -f "$additional_libdir/lib$name.la"; then
8231                   found_la="$additional_libdir/lib$name.la"
8232                 fi
8233               fi
8234             fi
8235           fi
8236           if test "X$found_dir" = "X"; then
8237             for x in $LDFLAGS $LTLIBINTL; do
8238
8239   acl_save_prefix="$prefix"
8240   prefix="$acl_final_prefix"
8241   acl_save_exec_prefix="$exec_prefix"
8242   exec_prefix="$acl_final_exec_prefix"
8243   eval x=\"$x\"
8244   exec_prefix="$acl_save_exec_prefix"
8245   prefix="$acl_save_prefix"
8246
8247               case "$x" in
8248                 -L*)
8249                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8250                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8251                     found_dir="$dir"
8252                     found_so="$dir/lib$name.$shlibext"
8253                     if test -f "$dir/lib$name.la"; then
8254                       found_la="$dir/lib$name.la"
8255                     fi
8256                   else
8257                     if test -f "$dir/lib$name.$libext"; then
8258                       found_dir="$dir"
8259                       found_a="$dir/lib$name.$libext"
8260                       if test -f "$dir/lib$name.la"; then
8261                         found_la="$dir/lib$name.la"
8262                       fi
8263                     fi
8264                   fi
8265                   ;;
8266               esac
8267               if test "X$found_dir" != "X"; then
8268                 break
8269               fi
8270             done
8271           fi
8272           if test "X$found_dir" != "X"; then
8273                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8274             if test "X$found_so" != "X"; then
8275                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8276                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8277               else
8278                                                                                 haveit=
8279                 for x in $ltrpathdirs; do
8280                   if test "X$x" = "X$found_dir"; then
8281                     haveit=yes
8282                     break
8283                   fi
8284                 done
8285                 if test -z "$haveit"; then
8286                   ltrpathdirs="$ltrpathdirs $found_dir"
8287                 fi
8288                                 if test "$hardcode_direct" = yes; then
8289                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8290                 else
8291                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8292                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8293                                                             haveit=
8294                     for x in $rpathdirs; do
8295                       if test "X$x" = "X$found_dir"; then
8296                         haveit=yes
8297                         break
8298                       fi
8299                     done
8300                     if test -z "$haveit"; then
8301                       rpathdirs="$rpathdirs $found_dir"
8302                     fi
8303                   else
8304                                                                                 haveit=
8305                     for x in $LDFLAGS $LIBINTL; do
8306
8307   acl_save_prefix="$prefix"
8308   prefix="$acl_final_prefix"
8309   acl_save_exec_prefix="$exec_prefix"
8310   exec_prefix="$acl_final_exec_prefix"
8311   eval x=\"$x\"
8312   exec_prefix="$acl_save_exec_prefix"
8313   prefix="$acl_save_prefix"
8314
8315                       if test "X$x" = "X-L$found_dir"; then
8316                         haveit=yes
8317                         break
8318                       fi
8319                     done
8320                     if test -z "$haveit"; then
8321                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8322                     fi
8323                     if test "$hardcode_minus_L" != no; then
8324                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8325                     else
8326                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8327                     fi
8328                   fi
8329                 fi
8330               fi
8331             else
8332               if test "X$found_a" != "X"; then
8333                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8334               else
8335                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8336               fi
8337             fi
8338                         additional_includedir=
8339             case "$found_dir" in
8340               */lib | */lib/)
8341                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8342                 additional_includedir="$basedir/include"
8343                 ;;
8344             esac
8345             if test "X$additional_includedir" != "X"; then
8346                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8347                 haveit=
8348                 if test "X$additional_includedir" = "X/usr/local/include"; then
8349                   if test -n "$GCC"; then
8350                     case $host_os in
8351                       linux*) haveit=yes;;
8352                     esac
8353                   fi
8354                 fi
8355                 if test -z "$haveit"; then
8356                   for x in $CPPFLAGS $INCINTL; do
8357
8358   acl_save_prefix="$prefix"
8359   prefix="$acl_final_prefix"
8360   acl_save_exec_prefix="$exec_prefix"
8361   exec_prefix="$acl_final_exec_prefix"
8362   eval x=\"$x\"
8363   exec_prefix="$acl_save_exec_prefix"
8364   prefix="$acl_save_prefix"
8365
8366                     if test "X$x" = "X-I$additional_includedir"; then
8367                       haveit=yes
8368                       break
8369                     fi
8370                   done
8371                   if test -z "$haveit"; then
8372                     if test -d "$additional_includedir"; then
8373                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8374                     fi
8375                   fi
8376                 fi
8377               fi
8378             fi
8379                         if test -n "$found_la"; then
8380                                                         save_libdir="$libdir"
8381               case "$found_la" in
8382                 */* | *\\*) . "$found_la" ;;
8383                 *) . "./$found_la" ;;
8384               esac
8385               libdir="$save_libdir"
8386                             for dep in $dependency_libs; do
8387                 case "$dep" in
8388                   -L*)
8389                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8390                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8391                       haveit=
8392                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8393                         if test -n "$GCC"; then
8394                           case $host_os in
8395                             linux*) haveit=yes;;
8396                           esac
8397                         fi
8398                       fi
8399                       if test -z "$haveit"; then
8400                         haveit=
8401                         for x in $LDFLAGS $LIBINTL; do
8402
8403   acl_save_prefix="$prefix"
8404   prefix="$acl_final_prefix"
8405   acl_save_exec_prefix="$exec_prefix"
8406   exec_prefix="$acl_final_exec_prefix"
8407   eval x=\"$x\"
8408   exec_prefix="$acl_save_exec_prefix"
8409   prefix="$acl_save_prefix"
8410
8411                           if test "X$x" = "X-L$additional_libdir"; then
8412                             haveit=yes
8413                             break
8414                           fi
8415                         done
8416                         if test -z "$haveit"; then
8417                           if test -d "$additional_libdir"; then
8418                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8419                           fi
8420                         fi
8421                         haveit=
8422                         for x in $LDFLAGS $LTLIBINTL; do
8423
8424   acl_save_prefix="$prefix"
8425   prefix="$acl_final_prefix"
8426   acl_save_exec_prefix="$exec_prefix"
8427   exec_prefix="$acl_final_exec_prefix"
8428   eval x=\"$x\"
8429   exec_prefix="$acl_save_exec_prefix"
8430   prefix="$acl_save_prefix"
8431
8432                           if test "X$x" = "X-L$additional_libdir"; then
8433                             haveit=yes
8434                             break
8435                           fi
8436                         done
8437                         if test -z "$haveit"; then
8438                           if test -d "$additional_libdir"; then
8439                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8440                           fi
8441                         fi
8442                       fi
8443                     fi
8444                     ;;
8445                   -R*)
8446                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8447                     if test "$enable_rpath" != no; then
8448                                                                   haveit=
8449                       for x in $rpathdirs; do
8450                         if test "X$x" = "X$dir"; then
8451                           haveit=yes
8452                           break
8453                         fi
8454                       done
8455                       if test -z "$haveit"; then
8456                         rpathdirs="$rpathdirs $dir"
8457                       fi
8458                                                                   haveit=
8459                       for x in $ltrpathdirs; do
8460                         if test "X$x" = "X$dir"; then
8461                           haveit=yes
8462                           break
8463                         fi
8464                       done
8465                       if test -z "$haveit"; then
8466                         ltrpathdirs="$ltrpathdirs $dir"
8467                       fi
8468                     fi
8469                     ;;
8470                   -l*)
8471                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8472                     ;;
8473                   *.la)
8474                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8475                     ;;
8476                   *)
8477                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8478                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8479                     ;;
8480                 esac
8481               done
8482             fi
8483           else
8484                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8485             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8486           fi
8487         fi
8488       fi
8489     done
8490   done
8491   if test "X$rpathdirs" != "X"; then
8492     if test -n "$hardcode_libdir_separator"; then
8493                         alldirs=
8494       for found_dir in $rpathdirs; do
8495         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8496       done
8497             acl_save_libdir="$libdir"
8498       libdir="$alldirs"
8499       eval flag=\"$hardcode_libdir_flag_spec\"
8500       libdir="$acl_save_libdir"
8501       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8502     else
8503             for found_dir in $rpathdirs; do
8504         acl_save_libdir="$libdir"
8505         libdir="$found_dir"
8506         eval flag=\"$hardcode_libdir_flag_spec\"
8507         libdir="$acl_save_libdir"
8508         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8509       done
8510     fi
8511   fi
8512   if test "X$ltrpathdirs" != "X"; then
8513             for found_dir in $ltrpathdirs; do
8514       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8515     done
8516   fi
8517
8518           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8519 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8520 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   gt_save_CPPFLAGS="$CPPFLAGS"
8524             CPPFLAGS="$CPPFLAGS $INCINTL"
8525             gt_save_LIBS="$LIBS"
8526             LIBS="$LIBS $LIBINTL"
8527                         cat >conftest.$ac_ext <<_ACEOF
8528 #line $LINENO "configure"
8529 /* confdefs.h.  */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h.  */
8534 #include <libintl.h>
8535 extern int _nl_msg_cat_cntr;
8536 extern
8537 #ifdef __cplusplus
8538 "C"
8539 #endif
8540 const char *_nl_expand_alias ();
8541 int
8542 main ()
8543 {
8544 bindtextdomain ("", "");
8545 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8546   ;
8547   return 0;
8548 }
8549 _ACEOF
8550 rm -f conftest.$ac_objext conftest$ac_exeext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552   (eval $ac_link) 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); } &&
8556          { ac_try='test -s conftest$ac_exeext'
8557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558   (eval $ac_try) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); }; }; then
8562   gt_cv_func_gnugettext1_libintl=yes
8563 else
8564   echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8566
8567 gt_cv_func_gnugettext1_libintl=no
8568 fi
8569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8570                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
8571               LIBS="$LIBS $LIBICONV"
8572               cat >conftest.$ac_ext <<_ACEOF
8573 #line $LINENO "configure"
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579 #include <libintl.h>
8580 extern int _nl_msg_cat_cntr;
8581 extern
8582 #ifdef __cplusplus
8583 "C"
8584 #endif
8585 const char *_nl_expand_alias ();
8586 int
8587 main ()
8588 {
8589 bindtextdomain ("", "");
8590 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8591   ;
8592   return 0;
8593 }
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597   (eval $ac_link) 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); } &&
8601          { ac_try='test -s conftest$ac_exeext'
8602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603   (eval $ac_try) 2>&5
8604   ac_status=$?
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); }; }; then
8607   LIBINTL="$LIBINTL $LIBICONV"
8608                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8609                 gt_cv_func_gnugettext1_libintl=yes
8610
8611 else
8612   echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8614
8615 fi
8616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8617             fi
8618             CPPFLAGS="$gt_save_CPPFLAGS"
8619             LIBS="$gt_save_LIBS"
8620 fi
8621 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
8622 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
8623         fi
8624
8625                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8626            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8627                 && test "$PACKAGE" != gettext; }; then
8628           gt_use_preinstalled_gnugettext=yes
8629         else
8630                     LIBINTL=
8631           LTLIBINTL=
8632           INCINTL=
8633         fi
8634
8635
8636         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8637                               nls_cv_use_gnu_gettext=yes
8638         fi
8639       fi
8640
8641       if test "$nls_cv_use_gnu_gettext" = "yes"; then
8642                 INTLOBJS="\$(GETTOBJS)"
8643         BUILD_INCLUDED_LIBINTL=yes
8644         USE_INCLUDED_LIBINTL=yes
8645         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
8646         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
8647         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8648       fi
8649
8650       if test "$gt_use_preinstalled_gnugettext" = "yes" \
8651          || test "$nls_cv_use_gnu_gettext" = "yes"; then
8652                 CATOBJEXT=.gmo
8653       fi
8654
8655
8656     if test "$gt_use_preinstalled_gnugettext" = "yes" \
8657        || test "$nls_cv_use_gnu_gettext" = "yes"; then
8658
8659 cat >>confdefs.h <<\_ACEOF
8660 #define ENABLE_NLS 1
8661 _ACEOF
8662
8663     else
8664       USE_NLS=no
8665     fi
8666   fi
8667
8668   if test "$USE_NLS" = "yes"; then
8669
8670     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8671       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8672         echo "$as_me:$LINENO: checking how to link with libintl" >&5
8673 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
8674         echo "$as_me:$LINENO: result: $LIBINTL" >&5
8675 echo "${ECHO_T}$LIBINTL" >&6
8676
8677   for element in $INCINTL; do
8678     haveit=
8679     for x in $CPPFLAGS; do
8680
8681   acl_save_prefix="$prefix"
8682   prefix="$acl_final_prefix"
8683   acl_save_exec_prefix="$exec_prefix"
8684   exec_prefix="$acl_final_exec_prefix"
8685   eval x=\"$x\"
8686   exec_prefix="$acl_save_exec_prefix"
8687   prefix="$acl_save_prefix"
8688
8689       if test "X$x" = "X$element"; then
8690         haveit=yes
8691         break
8692       fi
8693     done
8694     if test -z "$haveit"; then
8695       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8696     fi
8697   done
8698
8699       fi
8700
8701
8702 cat >>confdefs.h <<\_ACEOF
8703 #define HAVE_GETTEXT 1
8704 _ACEOF
8705
8706
8707 cat >>confdefs.h <<\_ACEOF
8708 #define HAVE_DCGETTEXT 1
8709 _ACEOF
8710
8711     fi
8712
8713         POSUB=po
8714   fi
8715
8716
8717             if test "$PACKAGE" = gettext; then
8718       BUILD_INCLUDED_LIBINTL=yes
8719     fi
8720
8721
8722
8723
8724
8725
8726         nls_cv_header_intl=
8727     nls_cv_header_libgt=
8728
8729         DATADIRNAME=share
8730
8731
8732         INSTOBJEXT=.mo
8733
8734
8735         GENCAT=gencat
8736
8737
8738         INTL_LIBTOOL_SUFFIX_PREFIX=
8739
8740
8741
8742     INTLLIBS="$LIBINTL"
8743
8744
8745
8746
8747
8748
8749
8750 cat >>confdefs.h <<_ACEOF
8751 #define PATH_SEPARATOR ':'
8752 _ACEOF
8753
8754 cat >>confdefs.h <<_ACEOF
8755 #define PATH_SEPARATOR_STR ":"
8756 _ACEOF
8757
8758
8759
8760
8761 # Extract the first word of "perl", so it can be a program name with args.
8762 set dummy perl; ac_word=$2
8763 echo "$as_me:$LINENO: checking for $ac_word" >&5
8764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8765 if test "${ac_cv_path_PERL+set}" = set; then
8766   echo $ECHO_N "(cached) $ECHO_C" >&6
8767 else
8768   case $PERL in
8769   [\\/]* | ?:[\\/]*)
8770   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8771   ;;
8772   *)
8773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $PATH
8775 do
8776   IFS=$as_save_IFS
8777   test -z "$as_dir" && as_dir=.
8778   for ac_exec_ext in '' $ac_executable_extensions; do
8779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8780     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8782     break 2
8783   fi
8784 done
8785 done
8786
8787   ;;
8788 esac
8789 fi
8790 PERL=$ac_cv_path_PERL
8791
8792 if test -n "$PERL"; then
8793   echo "$as_me:$LINENO: result: $PERL" >&5
8794 echo "${ECHO_T}$PERL" >&6
8795 else
8796   echo "$as_me:$LINENO: result: no" >&5
8797 echo "${ECHO_T}no" >&6
8798 fi
8799
8800
8801
8802
8803
8804
8805                                                                                                                                                                           ac_config_files="$ac_config_files Makefile po/Makefile.in m4/Makefile intl/Makefile po/Makefile compat/Makefile afm/Makefile afmlib/Makefile src/Makefile src/tests/Makefile lib/Makefile scripts/Makefile states/Makefile states/hl/Makefile states/tests/Makefile docs/Makefile w32/Makefile"
8806
8807           ac_config_commands="$ac_config_commands default"
8808
8809 cat >confcache <<\_ACEOF
8810 # This file is a shell script that caches the results of configure
8811 # tests run on this system so they can be shared between configure
8812 # scripts and configure runs, see configure's option --config-cache.
8813 # It is not useful on other systems.  If it contains results you don't
8814 # want to keep, you may remove or edit it.
8815 #
8816 # config.status only pays attention to the cache file if you give it
8817 # the --recheck option to rerun configure.
8818 #
8819 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8820 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8821 # following values.
8822
8823 _ACEOF
8824
8825 # The following way of writing the cache mishandles newlines in values,
8826 # but we know of no workaround that is simple, portable, and efficient.
8827 # So, don't put newlines in cache variables' values.
8828 # Ultrix sh set writes to stderr and can't be redirected directly,
8829 # and sets the high bit in the cache file unless we assign to the vars.
8830 {
8831   (set) 2>&1 |
8832     case `(ac_space=' '; set | grep ac_space) 2>&1` in
8833     *ac_space=\ *)
8834       # `set' does not quote correctly, so add quotes (double-quote
8835       # substitution turns \\\\ into \\, and sed turns \\ into \).
8836       sed -n \
8837         "s/'/'\\\\''/g;
8838           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8839       ;;
8840     *)
8841       # `set' quotes correctly as required by POSIX, so do not add quotes.
8842       sed -n \
8843         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8844       ;;
8845     esac;
8846 } |
8847   sed '
8848      t clear
8849      : clear
8850      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8851      t end
8852      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8853      : end' >>confcache
8854 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8855   if test -w $cache_file; then
8856     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8857     cat confcache >$cache_file
8858   else
8859     echo "not updating unwritable cache $cache_file"
8860   fi
8861 fi
8862 rm -f confcache
8863
8864 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8865 # Let make expand exec_prefix.
8866 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8867
8868 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8869 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8870 # trailing colons and then remove the whole line if VPATH becomes empty
8871 # (actually we leave an empty line to preserve line numbers).
8872 if test "x$srcdir" = x.; then
8873   ac_vpsub='/^[         ]*VPATH[        ]*=/{
8874 s/:*\$(srcdir):*/:/;
8875 s/:*\${srcdir}:*/:/;
8876 s/:*@srcdir@:*/:/;
8877 s/^\([^=]*=[    ]*\):*/\1/;
8878 s/:*$//;
8879 s/^[^=]*=[      ]*$//;
8880 }'
8881 fi
8882
8883 DEFS=-DHAVE_CONFIG_H
8884
8885 ac_libobjs=
8886 ac_ltlibobjs=
8887 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8888   # 1. Remove the extension, and $U if already installed.
8889   ac_i=`echo "$ac_i" |
8890          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8891   # 2. Add them.
8892   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8893   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8894 done
8895 LIBOBJS=$ac_libobjs
8896
8897 LTLIBOBJS=$ac_ltlibobjs
8898
8899
8900 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8901   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8902 Usually this means the macro was only invoked conditionally." >&5
8903 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8904 Usually this means the macro was only invoked conditionally." >&2;}
8905    { (exit 1); exit 1; }; }
8906 fi
8907 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8908   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8909 Usually this means the macro was only invoked conditionally." >&5
8910 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8911 Usually this means the macro was only invoked conditionally." >&2;}
8912    { (exit 1); exit 1; }; }
8913 fi
8914
8915 : ${CONFIG_STATUS=./config.status}
8916 ac_clean_files_save=$ac_clean_files
8917 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8918 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8919 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8920 cat >$CONFIG_STATUS <<_ACEOF
8921 #! $SHELL
8922 # Generated by $as_me.
8923 # Run this file to recreate the current configuration.
8924 # Compiler output produced by configure, useful for debugging
8925 # configure, is in config.log if it exists.
8926
8927 debug=false
8928 ac_cs_recheck=false
8929 ac_cs_silent=false
8930 SHELL=\${CONFIG_SHELL-$SHELL}
8931 _ACEOF
8932
8933 cat >>$CONFIG_STATUS <<\_ACEOF
8934 ## --------------------- ##
8935 ## M4sh Initialization.  ##
8936 ## --------------------- ##
8937
8938 # Be Bourne compatible
8939 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8940   emulate sh
8941   NULLCMD=:
8942   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8943   # is contrary to our usage.  Disable this feature.
8944   alias -g '${1+"$@"}'='"$@"'
8945 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8946   set -o posix
8947 fi
8948
8949 # Support unset when possible.
8950 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8951   as_unset=unset
8952 else
8953   as_unset=false
8954 fi
8955
8956
8957 # Work around bugs in pre-3.0 UWIN ksh.
8958 $as_unset ENV MAIL MAILPATH
8959 PS1='$ '
8960 PS2='> '
8961 PS4='+ '
8962
8963 # NLS nuisances.
8964 for as_var in \
8965   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8966   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8967   LC_TELEPHONE LC_TIME
8968 do
8969   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8970     eval $as_var=C; export $as_var
8971   else
8972     $as_unset $as_var
8973   fi
8974 done
8975
8976 # Required to use basename.
8977 if expr a : '\(a\)' >/dev/null 2>&1; then
8978   as_expr=expr
8979 else
8980   as_expr=false
8981 fi
8982
8983 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8984   as_basename=basename
8985 else
8986   as_basename=false
8987 fi
8988
8989
8990 # Name of the executable.
8991 as_me=`$as_basename "$0" ||
8992 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8993          X"$0" : 'X\(//\)$' \| \
8994          X"$0" : 'X\(/\)$' \| \
8995          .     : '\(.\)' 2>/dev/null ||
8996 echo X/"$0" |
8997     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8998           /^X\/\(\/\/\)$/{ s//\1/; q; }
8999           /^X\/\(\/\).*/{ s//\1/; q; }
9000           s/.*/./; q'`
9001
9002
9003 # PATH needs CR, and LINENO needs CR and PATH.
9004 # Avoid depending upon Character Ranges.
9005 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9006 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9007 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9008 as_cr_digits='0123456789'
9009 as_cr_alnum=$as_cr_Letters$as_cr_digits
9010
9011 # The user is always right.
9012 if test "${PATH_SEPARATOR+set}" != set; then
9013   echo "#! /bin/sh" >conf$$.sh
9014   echo  "exit 0"   >>conf$$.sh
9015   chmod +x conf$$.sh
9016   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9017     PATH_SEPARATOR=';'
9018   else
9019     PATH_SEPARATOR=:
9020   fi
9021   rm -f conf$$.sh
9022 fi
9023
9024
9025   as_lineno_1=$LINENO
9026   as_lineno_2=$LINENO
9027   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9028   test "x$as_lineno_1" != "x$as_lineno_2" &&
9029   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9030   # Find who we are.  Look in the path if we contain no path at all
9031   # relative or not.
9032   case $0 in
9033     *[\\/]* ) as_myself=$0 ;;
9034     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035 for as_dir in $PATH
9036 do
9037   IFS=$as_save_IFS
9038   test -z "$as_dir" && as_dir=.
9039   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9040 done
9041
9042        ;;
9043   esac
9044   # We did not find ourselves, most probably we were run as `sh COMMAND'
9045   # in which case we are not to be found in the path.
9046   if test "x$as_myself" = x; then
9047     as_myself=$0
9048   fi
9049   if test ! -f "$as_myself"; then
9050     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9051 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9052    { (exit 1); exit 1; }; }
9053   fi
9054   case $CONFIG_SHELL in
9055   '')
9056     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9058 do
9059   IFS=$as_save_IFS
9060   test -z "$as_dir" && as_dir=.
9061   for as_base in sh bash ksh sh5; do
9062          case $as_dir in
9063          /*)
9064            if ("$as_dir/$as_base" -c '
9065   as_lineno_1=$LINENO
9066   as_lineno_2=$LINENO
9067   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9068   test "x$as_lineno_1" != "x$as_lineno_2" &&
9069   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9070              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9071              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9072              CONFIG_SHELL=$as_dir/$as_base
9073              export CONFIG_SHELL
9074              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9075            fi;;
9076          esac
9077        done
9078 done
9079 ;;
9080   esac
9081
9082   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9083   # uniformly replaced by the line number.  The first 'sed' inserts a
9084   # line-number line before each line; the second 'sed' does the real
9085   # work.  The second script uses 'N' to pair each line-number line
9086   # with the numbered line, and appends trailing '-' during
9087   # substitution so that $LINENO is not a special case at line end.
9088   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9089   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9090   sed '=' <$as_myself |
9091     sed '
9092       N
9093       s,$,-,
9094       : loop
9095       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9096       t loop
9097       s,-$,,
9098       s,^['$as_cr_digits']*\n,,
9099     ' >$as_me.lineno &&
9100   chmod +x $as_me.lineno ||
9101     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9102 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9103    { (exit 1); exit 1; }; }
9104
9105   # Don't try to exec as it changes $[0], causing all sort of problems
9106   # (the dirname of $[0] is not the place where we might find the
9107   # original and so on.  Autoconf is especially sensible to this).
9108   . ./$as_me.lineno
9109   # Exit status is that of the last command.
9110   exit
9111 }
9112
9113
9114 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9115   *c*,-n*) ECHO_N= ECHO_C='
9116 ' ECHO_T='      ' ;;
9117   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9118   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9119 esac
9120
9121 if expr a : '\(a\)' >/dev/null 2>&1; then
9122   as_expr=expr
9123 else
9124   as_expr=false
9125 fi
9126
9127 rm -f conf$$ conf$$.exe conf$$.file
9128 echo >conf$$.file
9129 if ln -s conf$$.file conf$$ 2>/dev/null; then
9130   # We could just check for DJGPP; but this test a) works b) is more generic
9131   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9132   if test -f conf$$.exe; then
9133     # Don't use ln at all; we don't have any links
9134     as_ln_s='cp -p'
9135   else
9136     as_ln_s='ln -s'
9137   fi
9138 elif ln conf$$.file conf$$ 2>/dev/null; then
9139   as_ln_s=ln
9140 else
9141   as_ln_s='cp -p'
9142 fi
9143 rm -f conf$$ conf$$.exe conf$$.file
9144
9145 if mkdir -p . 2>/dev/null; then
9146   as_mkdir_p=:
9147 else
9148   as_mkdir_p=false
9149 fi
9150
9151 as_executable_p="test -f"
9152
9153 # Sed expression to map a string onto a valid CPP name.
9154 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9155
9156 # Sed expression to map a string onto a valid variable name.
9157 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9158
9159
9160 # IFS
9161 # We need space, tab and new line, in precisely that order.
9162 as_nl='
9163 '
9164 IFS="   $as_nl"
9165
9166 # CDPATH.
9167 $as_unset CDPATH
9168
9169 exec 6>&1
9170
9171 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9172 # report actual input values of CONFIG_FILES etc. instead of their
9173 # values after options handling.  Logging --version etc. is OK.
9174 exec 5>>config.log
9175 {
9176   echo
9177   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9178 ## Running $as_me. ##
9179 _ASBOX
9180 } >&5
9181 cat >&5 <<_CSEOF
9182
9183 This file was extended by enscript $as_me 1.6.4, which was
9184 generated by GNU Autoconf 2.57.  Invocation command line was
9185
9186   CONFIG_FILES    = $CONFIG_FILES
9187   CONFIG_HEADERS  = $CONFIG_HEADERS
9188   CONFIG_LINKS    = $CONFIG_LINKS
9189   CONFIG_COMMANDS = $CONFIG_COMMANDS
9190   $ $0 $@
9191
9192 _CSEOF
9193 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9194 echo >&5
9195 _ACEOF
9196
9197 # Files that config.status was made for.
9198 if test -n "$ac_config_files"; then
9199   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9200 fi
9201
9202 if test -n "$ac_config_headers"; then
9203   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9204 fi
9205
9206 if test -n "$ac_config_links"; then
9207   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9208 fi
9209
9210 if test -n "$ac_config_commands"; then
9211   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9212 fi
9213
9214 cat >>$CONFIG_STATUS <<\_ACEOF
9215
9216 ac_cs_usage="\
9217 \`$as_me' instantiates files from templates according to the
9218 current configuration.
9219
9220 Usage: $0 [OPTIONS] [FILE]...
9221
9222   -h, --help       print this help, then exit
9223   -V, --version    print version number, then exit
9224   -q, --quiet      do not print progress messages
9225   -d, --debug      don't remove temporary files
9226       --recheck    update $as_me by reconfiguring in the same conditions
9227   --file=FILE[:TEMPLATE]
9228                    instantiate the configuration file FILE
9229   --header=FILE[:TEMPLATE]
9230                    instantiate the configuration header FILE
9231
9232 Configuration files:
9233 $config_files
9234
9235 Configuration headers:
9236 $config_headers
9237
9238 Configuration commands:
9239 $config_commands
9240
9241 Report bugs to <bug-autoconf@gnu.org>."
9242 _ACEOF
9243
9244 cat >>$CONFIG_STATUS <<_ACEOF
9245 ac_cs_version="\\
9246 enscript config.status 1.6.4
9247 configured by $0, generated by GNU Autoconf 2.57,
9248   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9249
9250 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9251 Free Software Foundation, Inc.
9252 This config.status script is free software; the Free Software Foundation
9253 gives unlimited permission to copy, distribute and modify it."
9254 srcdir=$srcdir
9255 INSTALL="$INSTALL"
9256 _ACEOF
9257
9258 cat >>$CONFIG_STATUS <<\_ACEOF
9259 # If no file are specified by the user, then we need to provide default
9260 # value.  By we need to know if files were specified by the user.
9261 ac_need_defaults=:
9262 while test $# != 0
9263 do
9264   case $1 in
9265   --*=*)
9266     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9267     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9268     ac_shift=:
9269     ;;
9270   -*)
9271     ac_option=$1
9272     ac_optarg=$2
9273     ac_shift=shift
9274     ;;
9275   *) # This is not an option, so the user has probably given explicit
9276      # arguments.
9277      ac_option=$1
9278      ac_need_defaults=false;;
9279   esac
9280
9281   case $ac_option in
9282   # Handling of the options.
9283 _ACEOF
9284 cat >>$CONFIG_STATUS <<\_ACEOF
9285   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9286     ac_cs_recheck=: ;;
9287   --version | --vers* | -V )
9288     echo "$ac_cs_version"; exit 0 ;;
9289   --he | --h)
9290     # Conflict between --help and --header
9291     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9292 Try \`$0 --help' for more information." >&5
9293 echo "$as_me: error: ambiguous option: $1
9294 Try \`$0 --help' for more information." >&2;}
9295    { (exit 1); exit 1; }; };;
9296   --help | --hel | -h )
9297     echo "$ac_cs_usage"; exit 0 ;;
9298   --debug | --d* | -d )
9299     debug=: ;;
9300   --file | --fil | --fi | --f )
9301     $ac_shift
9302     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9303     ac_need_defaults=false;;
9304   --header | --heade | --head | --hea )
9305     $ac_shift
9306     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9307     ac_need_defaults=false;;
9308   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9309   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9310     ac_cs_silent=: ;;
9311
9312   # This is an error.
9313   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9314 Try \`$0 --help' for more information." >&5
9315 echo "$as_me: error: unrecognized option: $1
9316 Try \`$0 --help' for more information." >&2;}
9317    { (exit 1); exit 1; }; } ;;
9318
9319   *) ac_config_targets="$ac_config_targets $1" ;;
9320
9321   esac
9322   shift
9323 done
9324
9325 ac_configure_extra_args=
9326
9327 if $ac_cs_silent; then
9328   exec 6>/dev/null
9329   ac_configure_extra_args="$ac_configure_extra_args --silent"
9330 fi
9331
9332 _ACEOF
9333 cat >>$CONFIG_STATUS <<_ACEOF
9334 if \$ac_cs_recheck; then
9335   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9336   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9337 fi
9338
9339 _ACEOF
9340
9341 cat >>$CONFIG_STATUS <<_ACEOF
9342 #
9343 # INIT-COMMANDS section.
9344 #
9345
9346 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9347 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9348     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9349     # from automake.
9350     eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
9351     # Capture the value of LINGUAS because we need it to compute CATALOGS.
9352     LINGUAS="${LINGUAS-%UNSET%}"
9353
9354
9355
9356 _ACEOF
9357
9358
9359
9360 cat >>$CONFIG_STATUS <<\_ACEOF
9361 for ac_config_target in $ac_config_targets
9362 do
9363   case "$ac_config_target" in
9364   # Handling of arguments.
9365   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9366   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9367   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9368   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
9369   "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
9370   "compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
9371   "afm/Makefile" ) CONFIG_FILES="$CONFIG_FILES afm/Makefile" ;;
9372   "afmlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES afmlib/Makefile" ;;
9373   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9374   "src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
9375   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9376   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
9377   "states/Makefile" ) CONFIG_FILES="$CONFIG_FILES states/Makefile" ;;
9378   "states/hl/Makefile" ) CONFIG_FILES="$CONFIG_FILES states/hl/Makefile" ;;
9379   "states/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES states/tests/Makefile" ;;
9380   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
9381   "w32/Makefile" ) CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
9382   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9383   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9384   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9385   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9386   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9387 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9388    { (exit 1); exit 1; }; };;
9389   esac
9390 done
9391
9392 # If the user did not use the arguments to specify the items to instantiate,
9393 # then the envvar interface is used.  Set only those that are not.
9394 # We use the long form for the default assignment because of an extremely
9395 # bizarre bug on SunOS 4.1.3.
9396 if $ac_need_defaults; then
9397   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9398   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9399   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9400 fi
9401
9402 # Have a temporary directory for convenience.  Make it in the build tree
9403 # simply because there is no reason to put it here, and in addition,
9404 # creating and moving files from /tmp can sometimes cause problems.
9405 # Create a temporary directory, and hook for its removal unless debugging.
9406 $debug ||
9407 {
9408   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9409   trap '{ (exit 1); exit 1; }' 1 2 13 15
9410 }
9411
9412 # Create a (secure) tmp directory for tmp files.
9413
9414 {
9415   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9416   test -n "$tmp" && test -d "$tmp"
9417 }  ||
9418 {
9419   tmp=./confstat$$-$RANDOM
9420   (umask 077 && mkdir $tmp)
9421 } ||
9422 {
9423    echo "$me: cannot create a temporary directory in ." >&2
9424    { (exit 1); exit 1; }
9425 }
9426
9427 _ACEOF
9428
9429 cat >>$CONFIG_STATUS <<_ACEOF
9430
9431 #
9432 # CONFIG_FILES section.
9433 #
9434
9435 # No need to generate the scripts if there are no CONFIG_FILES.
9436 # This happens for instance when ./config.status config.h
9437 if test -n "\$CONFIG_FILES"; then
9438   # Protect against being on the right side of a sed subst in config.status.
9439   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9440    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9441 s,@SHELL@,$SHELL,;t t
9442 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9443 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9444 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9445 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9446 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9447 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9448 s,@exec_prefix@,$exec_prefix,;t t
9449 s,@prefix@,$prefix,;t t
9450 s,@program_transform_name@,$program_transform_name,;t t
9451 s,@bindir@,$bindir,;t t
9452 s,@sbindir@,$sbindir,;t t
9453 s,@libexecdir@,$libexecdir,;t t
9454 s,@datadir@,$datadir,;t t
9455 s,@sysconfdir@,$sysconfdir,;t t
9456 s,@sharedstatedir@,$sharedstatedir,;t t
9457 s,@localstatedir@,$localstatedir,;t t
9458 s,@libdir@,$libdir,;t t
9459 s,@includedir@,$includedir,;t t
9460 s,@oldincludedir@,$oldincludedir,;t t
9461 s,@infodir@,$infodir,;t t
9462 s,@mandir@,$mandir,;t t
9463 s,@build_alias@,$build_alias,;t t
9464 s,@host_alias@,$host_alias,;t t
9465 s,@target_alias@,$target_alias,;t t
9466 s,@DEFS@,$DEFS,;t t
9467 s,@ECHO_C@,$ECHO_C,;t t
9468 s,@ECHO_N@,$ECHO_N,;t t
9469 s,@ECHO_T@,$ECHO_T,;t t
9470 s,@LIBS@,$LIBS,;t t
9471 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9472 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9473 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9474 s,@CYGPATH_W@,$CYGPATH_W,;t t
9475 s,@PACKAGE@,$PACKAGE,;t t
9476 s,@VERSION@,$VERSION,;t t
9477 s,@ACLOCAL@,$ACLOCAL,;t t
9478 s,@AUTOCONF@,$AUTOCONF,;t t
9479 s,@AUTOMAKE@,$AUTOMAKE,;t t
9480 s,@AUTOHEADER@,$AUTOHEADER,;t t
9481 s,@MAKEINFO@,$MAKEINFO,;t t
9482 s,@AMTAR@,$AMTAR,;t t
9483 s,@install_sh@,$install_sh,;t t
9484 s,@STRIP@,$STRIP,;t t
9485 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9486 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9487 s,@AWK@,$AWK,;t t
9488 s,@SET_MAKE@,$SET_MAKE,;t t
9489 s,@CC@,$CC,;t t
9490 s,@CFLAGS@,$CFLAGS,;t t
9491 s,@LDFLAGS@,$LDFLAGS,;t t
9492 s,@CPPFLAGS@,$CPPFLAGS,;t t
9493 s,@ac_ct_CC@,$ac_ct_CC,;t t
9494 s,@EXEEXT@,$EXEEXT,;t t
9495 s,@OBJEXT@,$OBJEXT,;t t
9496 s,@DEPDIR@,$DEPDIR,;t t
9497 s,@am__include@,$am__include,;t t
9498 s,@am__quote@,$am__quote,;t t
9499 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9500 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9501 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9502 s,@CCDEPMODE@,$CCDEPMODE,;t t
9503 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9504 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9505 s,@CPP@,$CPP,;t t
9506 s,@EGREP@,$EGREP,;t t
9507 s,@U@,$U,;t t
9508 s,@ANSI2KNR@,$ANSI2KNR,;t t
9509 s,@ALLOCA@,$ALLOCA,;t t
9510 s,@LIBOBJS@,$LIBOBJS,;t t
9511 s,@RANLIB@,$RANLIB,;t t
9512 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9513 s,@YACC@,$YACC,;t t
9514 s,@LEX@,$LEX,;t t
9515 s,@LEXLIB@,$LEXLIB,;t t
9516 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9517 s,@MEDIA@,$MEDIA,;t t
9518 s,@SPOOLER@,$SPOOLER,;t t
9519 s,@PSLEVEL@,$PSLEVEL,;t t
9520 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9521 s,@MSGFMT@,$MSGFMT,;t t
9522 s,@GMSGFMT@,$GMSGFMT,;t t
9523 s,@XGETTEXT@,$XGETTEXT,;t t
9524 s,@MSGMERGE@,$MSGMERGE,;t t
9525 s,@build@,$build,;t t
9526 s,@build_cpu@,$build_cpu,;t t
9527 s,@build_vendor@,$build_vendor,;t t
9528 s,@build_os@,$build_os,;t t
9529 s,@host@,$host,;t t
9530 s,@host_cpu@,$host_cpu,;t t
9531 s,@host_vendor@,$host_vendor,;t t
9532 s,@host_os@,$host_os,;t t
9533 s,@GLIBC21@,$GLIBC21,;t t
9534 s,@LIBICONV@,$LIBICONV,;t t
9535 s,@LTLIBICONV@,$LTLIBICONV,;t t
9536 s,@INTLBISON@,$INTLBISON,;t t
9537 s,@USE_NLS@,$USE_NLS,;t t
9538 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9539 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9540 s,@CATOBJEXT@,$CATOBJEXT,;t t
9541 s,@INTLOBJS@,$INTLOBJS,;t t
9542 s,@DATADIRNAME@,$DATADIRNAME,;t t
9543 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9544 s,@GENCAT@,$GENCAT,;t t
9545 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9546 s,@INTLLIBS@,$INTLLIBS,;t t
9547 s,@LIBINTL@,$LIBINTL,;t t
9548 s,@LTLIBINTL@,$LTLIBINTL,;t t
9549 s,@POSUB@,$POSUB,;t t
9550 s,@PERL@,$PERL,;t t
9551 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9552 CEOF
9553
9554 _ACEOF
9555
9556   cat >>$CONFIG_STATUS <<\_ACEOF
9557   # Split the substitutions into bite-sized pieces for seds with
9558   # small command number limits, like on Digital OSF/1 and HP-UX.
9559   ac_max_sed_lines=48
9560   ac_sed_frag=1 # Number of current file.
9561   ac_beg=1 # First line for current file.
9562   ac_end=$ac_max_sed_lines # Line after last line for current file.
9563   ac_more_lines=:
9564   ac_sed_cmds=
9565   while $ac_more_lines; do
9566     if test $ac_beg -gt 1; then
9567       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9568     else
9569       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9570     fi
9571     if test ! -s $tmp/subs.frag; then
9572       ac_more_lines=false
9573     else
9574       # The purpose of the label and of the branching condition is to
9575       # speed up the sed processing (if there are no `@' at all, there
9576       # is no need to browse any of the substitutions).
9577       # These are the two extra sed commands mentioned above.
9578       (echo ':t
9579   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9580       if test -z "$ac_sed_cmds"; then
9581         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9582       else
9583         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9584       fi
9585       ac_sed_frag=`expr $ac_sed_frag + 1`
9586       ac_beg=$ac_end
9587       ac_end=`expr $ac_end + $ac_max_sed_lines`
9588     fi
9589   done
9590   if test -z "$ac_sed_cmds"; then
9591     ac_sed_cmds=cat
9592   fi
9593 fi # test -n "$CONFIG_FILES"
9594
9595 _ACEOF
9596 cat >>$CONFIG_STATUS <<\_ACEOF
9597 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9598   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9599   case $ac_file in
9600   - | *:- | *:-:* ) # input from stdin
9601         cat >$tmp/stdin
9602         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9603         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9604   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9605         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9606   * )   ac_file_in=$ac_file.in ;;
9607   esac
9608
9609   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9610   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9612          X"$ac_file" : 'X\(//\)[^/]' \| \
9613          X"$ac_file" : 'X\(//\)$' \| \
9614          X"$ac_file" : 'X\(/\)' \| \
9615          .     : '\(.\)' 2>/dev/null ||
9616 echo X"$ac_file" |
9617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9618           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9619           /^X\(\/\/\)$/{ s//\1/; q; }
9620           /^X\(\/\).*/{ s//\1/; q; }
9621           s/.*/./; q'`
9622   { if $as_mkdir_p; then
9623     mkdir -p "$ac_dir"
9624   else
9625     as_dir="$ac_dir"
9626     as_dirs=
9627     while test ! -d "$as_dir"; do
9628       as_dirs="$as_dir $as_dirs"
9629       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9631          X"$as_dir" : 'X\(//\)[^/]' \| \
9632          X"$as_dir" : 'X\(//\)$' \| \
9633          X"$as_dir" : 'X\(/\)' \| \
9634          .     : '\(.\)' 2>/dev/null ||
9635 echo X"$as_dir" |
9636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9637           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9638           /^X\(\/\/\)$/{ s//\1/; q; }
9639           /^X\(\/\).*/{ s//\1/; q; }
9640           s/.*/./; q'`
9641     done
9642     test ! -n "$as_dirs" || mkdir $as_dirs
9643   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9644 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9645    { (exit 1); exit 1; }; }; }
9646
9647   ac_builddir=.
9648
9649 if test "$ac_dir" != .; then
9650   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9651   # A "../" for each directory in $ac_dir_suffix.
9652   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9653 else
9654   ac_dir_suffix= ac_top_builddir=
9655 fi
9656
9657 case $srcdir in
9658   .)  # No --srcdir option.  We are building in place.
9659     ac_srcdir=.
9660     if test -z "$ac_top_builddir"; then
9661        ac_top_srcdir=.
9662     else
9663        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9664     fi ;;
9665   [\\/]* | ?:[\\/]* )  # Absolute path.
9666     ac_srcdir=$srcdir$ac_dir_suffix;
9667     ac_top_srcdir=$srcdir ;;
9668   *) # Relative path.
9669     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9670     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9671 esac
9672 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9673 # absolute.
9674 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9675 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9676 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9677 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9678
9679
9680   case $INSTALL in
9681   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9682   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9683   esac
9684
9685   if test x"$ac_file" != x-; then
9686     { echo "$as_me:$LINENO: creating $ac_file" >&5
9687 echo "$as_me: creating $ac_file" >&6;}
9688     rm -f "$ac_file"
9689   fi
9690   # Let's still pretend it is `configure' which instantiates (i.e., don't
9691   # use $as_me), people would be surprised to read:
9692   #    /* config.h.  Generated by config.status.  */
9693   if test x"$ac_file" = x-; then
9694     configure_input=
9695   else
9696     configure_input="$ac_file.  "
9697   fi
9698   configure_input=$configure_input"Generated from `echo $ac_file_in |
9699                                      sed 's,.*/,,'` by configure."
9700
9701   # First look for the input files in the build tree, otherwise in the
9702   # src tree.
9703   ac_file_inputs=`IFS=:
9704     for f in $ac_file_in; do
9705       case $f in
9706       -) echo $tmp/stdin ;;
9707       [\\/$]*)
9708          # Absolute (can't be DOS-style, as IFS=:)
9709          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9710 echo "$as_me: error: cannot find input file: $f" >&2;}
9711    { (exit 1); exit 1; }; }
9712          echo $f;;
9713       *) # Relative
9714          if test -f "$f"; then
9715            # Build tree
9716            echo $f
9717          elif test -f "$srcdir/$f"; then
9718            # Source tree
9719            echo $srcdir/$f
9720          else
9721            # /dev/null tree
9722            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9723 echo "$as_me: error: cannot find input file: $f" >&2;}
9724    { (exit 1); exit 1; }; }
9725          fi;;
9726       esac
9727     done` || { (exit 1); exit 1; }
9728 _ACEOF
9729 cat >>$CONFIG_STATUS <<_ACEOF
9730   sed "$ac_vpsub
9731 $extrasub
9732 _ACEOF
9733 cat >>$CONFIG_STATUS <<\_ACEOF
9734 :t
9735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9736 s,@configure_input@,$configure_input,;t t
9737 s,@srcdir@,$ac_srcdir,;t t
9738 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9739 s,@top_srcdir@,$ac_top_srcdir,;t t
9740 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9741 s,@builddir@,$ac_builddir,;t t
9742 s,@abs_builddir@,$ac_abs_builddir,;t t
9743 s,@top_builddir@,$ac_top_builddir,;t t
9744 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9745 s,@INSTALL@,$ac_INSTALL,;t t
9746 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9747   rm -f $tmp/stdin
9748   if test x"$ac_file" != x-; then
9749     mv $tmp/out $ac_file
9750   else
9751     cat $tmp/out
9752     rm -f $tmp/out
9753   fi
9754
9755 done
9756 _ACEOF
9757 cat >>$CONFIG_STATUS <<\_ACEOF
9758
9759 #
9760 # CONFIG_HEADER section.
9761 #
9762
9763 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9764 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9765 #
9766 # ac_d sets the value in "#define NAME VALUE" lines.
9767 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9768 ac_dB='[        ].*$,\1#\2'
9769 ac_dC=' '
9770 ac_dD=',;t'
9771 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9772 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9773 ac_uB='$,\1#\2define\3'
9774 ac_uC=' '
9775 ac_uD=',;t'
9776
9777 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9778   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9779   case $ac_file in
9780   - | *:- | *:-:* ) # input from stdin
9781         cat >$tmp/stdin
9782         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9783         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9784   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9785         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9786   * )   ac_file_in=$ac_file.in ;;
9787   esac
9788
9789   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9790 echo "$as_me: creating $ac_file" >&6;}
9791
9792   # First look for the input files in the build tree, otherwise in the
9793   # src tree.
9794   ac_file_inputs=`IFS=:
9795     for f in $ac_file_in; do
9796       case $f in
9797       -) echo $tmp/stdin ;;
9798       [\\/$]*)
9799          # Absolute (can't be DOS-style, as IFS=:)
9800          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9801 echo "$as_me: error: cannot find input file: $f" >&2;}
9802    { (exit 1); exit 1; }; }
9803          echo $f;;
9804       *) # Relative
9805          if test -f "$f"; then
9806            # Build tree
9807            echo $f
9808          elif test -f "$srcdir/$f"; then
9809            # Source tree
9810            echo $srcdir/$f
9811          else
9812            # /dev/null tree
9813            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9814 echo "$as_me: error: cannot find input file: $f" >&2;}
9815    { (exit 1); exit 1; }; }
9816          fi;;
9817       esac
9818     done` || { (exit 1); exit 1; }
9819   # Remove the trailing spaces.
9820   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
9821
9822 _ACEOF
9823
9824 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9825 # `conftest.undefs', that substitutes the proper values into
9826 # config.h.in to produce config.h.  The first handles `#define'
9827 # templates, and the second `#undef' templates.
9828 # And first: Protect against being on the right side of a sed subst in
9829 # config.status.  Protect against being in an unquoted here document
9830 # in config.status.
9831 rm -f conftest.defines conftest.undefs
9832 # Using a here document instead of a string reduces the quoting nightmare.
9833 # Putting comments in sed scripts is not portable.
9834 #
9835 # `end' is used to avoid that the second main sed command (meant for
9836 # 0-ary CPP macros) applies to n-ary macro definitions.
9837 # See the Autoconf documentation for `clear'.
9838 cat >confdef2sed.sed <<\_ACEOF
9839 s/[\\&,]/\\&/g
9840 s,[\\$`],\\&,g
9841 t clear
9842 : clear
9843 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9844 t end
9845 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9846 : end
9847 _ACEOF
9848 # If some macros were called several times there might be several times
9849 # the same #defines, which is useless.  Nevertheless, we may not want to
9850 # sort them, since we want the *last* AC-DEFINE to be honored.
9851 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9852 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9853 rm -f confdef2sed.sed
9854
9855 # This sed command replaces #undef with comments.  This is necessary, for
9856 # example, in the case of _POSIX_SOURCE, which is predefined and required
9857 # on some systems where configure will not decide to define it.
9858 cat >>conftest.undefs <<\_ACEOF
9859 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9860 _ACEOF
9861
9862 # Break up conftest.defines because some shells have a limit on the size
9863 # of here documents, and old seds have small limits too (100 cmds).
9864 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9865 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9866 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9867 echo '  :' >>$CONFIG_STATUS
9868 rm -f conftest.tail
9869 while grep . conftest.defines >/dev/null
9870 do
9871   # Write a limited-size here document to $tmp/defines.sed.
9872   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9873   # Speed up: don't consider the non `#define' lines.
9874   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
9875   # Work around the forget-to-reset-the-flag bug.
9876   echo 't clr' >>$CONFIG_STATUS
9877   echo ': clr' >>$CONFIG_STATUS
9878   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9879   echo 'CEOF
9880   sed -f $tmp/defines.sed $tmp/in >$tmp/out
9881   rm -f $tmp/in
9882   mv $tmp/out $tmp/in
9883 ' >>$CONFIG_STATUS
9884   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9885   rm -f conftest.defines
9886   mv conftest.tail conftest.defines
9887 done
9888 rm -f conftest.defines
9889 echo '  fi # grep' >>$CONFIG_STATUS
9890 echo >>$CONFIG_STATUS
9891
9892 # Break up conftest.undefs because some shells have a limit on the size
9893 # of here documents, and old seds have small limits too (100 cmds).
9894 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9895 rm -f conftest.tail
9896 while grep . conftest.undefs >/dev/null
9897 do
9898   # Write a limited-size here document to $tmp/undefs.sed.
9899   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9900   # Speed up: don't consider the non `#undef'
9901   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9902   # Work around the forget-to-reset-the-flag bug.
9903   echo 't clr' >>$CONFIG_STATUS
9904   echo ': clr' >>$CONFIG_STATUS
9905   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9906   echo 'CEOF
9907   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9908   rm -f $tmp/in
9909   mv $tmp/out $tmp/in
9910 ' >>$CONFIG_STATUS
9911   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9912   rm -f conftest.undefs
9913   mv conftest.tail conftest.undefs
9914 done
9915 rm -f conftest.undefs
9916
9917 cat >>$CONFIG_STATUS <<\_ACEOF
9918   # Let's still pretend it is `configure' which instantiates (i.e., don't
9919   # use $as_me), people would be surprised to read:
9920   #    /* config.h.  Generated by config.status.  */
9921   if test x"$ac_file" = x-; then
9922     echo "/* Generated by configure.  */" >$tmp/config.h
9923   else
9924     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9925   fi
9926   cat $tmp/in >>$tmp/config.h
9927   rm -f $tmp/in
9928   if test x"$ac_file" != x-; then
9929     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9930       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9931 echo "$as_me: $ac_file is unchanged" >&6;}
9932     else
9933       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9934 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9935          X"$ac_file" : 'X\(//\)[^/]' \| \
9936          X"$ac_file" : 'X\(//\)$' \| \
9937          X"$ac_file" : 'X\(/\)' \| \
9938          .     : '\(.\)' 2>/dev/null ||
9939 echo X"$ac_file" |
9940     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9941           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9942           /^X\(\/\/\)$/{ s//\1/; q; }
9943           /^X\(\/\).*/{ s//\1/; q; }
9944           s/.*/./; q'`
9945       { if $as_mkdir_p; then
9946     mkdir -p "$ac_dir"
9947   else
9948     as_dir="$ac_dir"
9949     as_dirs=
9950     while test ! -d "$as_dir"; do
9951       as_dirs="$as_dir $as_dirs"
9952       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9954          X"$as_dir" : 'X\(//\)[^/]' \| \
9955          X"$as_dir" : 'X\(//\)$' \| \
9956          X"$as_dir" : 'X\(/\)' \| \
9957          .     : '\(.\)' 2>/dev/null ||
9958 echo X"$as_dir" |
9959     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9960           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9961           /^X\(\/\/\)$/{ s//\1/; q; }
9962           /^X\(\/\).*/{ s//\1/; q; }
9963           s/.*/./; q'`
9964     done
9965     test ! -n "$as_dirs" || mkdir $as_dirs
9966   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9967 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9968    { (exit 1); exit 1; }; }; }
9969
9970       rm -f $ac_file
9971       mv $tmp/config.h $ac_file
9972     fi
9973   else
9974     cat $tmp/config.h
9975     rm -f $tmp/config.h
9976   fi
9977 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
9978 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9979 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9980          X$ac_file : 'X\(//\)[^/]' \| \
9981          X$ac_file : 'X\(//\)$' \| \
9982          X$ac_file : 'X\(/\)' \| \
9983          .     : '\(.\)' 2>/dev/null ||
9984 echo X$ac_file |
9985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9986           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9987           /^X\(\/\/\)$/{ s//\1/; q; }
9988           /^X\(\/\).*/{ s//\1/; q; }
9989           s/.*/./; q'`/stamp-h$_am_stamp_count
9990 done
9991 _ACEOF
9992 cat >>$CONFIG_STATUS <<\_ACEOF
9993
9994 #
9995 # CONFIG_COMMANDS section.
9996 #
9997 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9998   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9999   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10000   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10001 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10002          X"$ac_dest" : 'X\(//\)[^/]' \| \
10003          X"$ac_dest" : 'X\(//\)$' \| \
10004          X"$ac_dest" : 'X\(/\)' \| \
10005          .     : '\(.\)' 2>/dev/null ||
10006 echo X"$ac_dest" |
10007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10008           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10009           /^X\(\/\/\)$/{ s//\1/; q; }
10010           /^X\(\/\).*/{ s//\1/; q; }
10011           s/.*/./; q'`
10012   ac_builddir=.
10013
10014 if test "$ac_dir" != .; then
10015   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10016   # A "../" for each directory in $ac_dir_suffix.
10017   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10018 else
10019   ac_dir_suffix= ac_top_builddir=
10020 fi
10021
10022 case $srcdir in
10023   .)  # No --srcdir option.  We are building in place.
10024     ac_srcdir=.
10025     if test -z "$ac_top_builddir"; then
10026        ac_top_srcdir=.
10027     else
10028        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10029     fi ;;
10030   [\\/]* | ?:[\\/]* )  # Absolute path.
10031     ac_srcdir=$srcdir$ac_dir_suffix;
10032     ac_top_srcdir=$srcdir ;;
10033   *) # Relative path.
10034     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10035     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10036 esac
10037 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10038 # absolute.
10039 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10040 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10041 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10042 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10043
10044
10045   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10046 echo "$as_me: executing $ac_dest commands" >&6;}
10047   case $ac_dest in
10048     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10049   # Strip MF so we end up with the name of the file.
10050   mf=`echo "$mf" | sed -e 's/:.*$//'`
10051   # Check whether this is an Automake generated Makefile or not.
10052   # We used to match only the files named `Makefile.in', but
10053   # some people rename them; so instead we look at the file content.
10054   # Grep'ing the first line is not enough: some people post-process
10055   # each Makefile.in and add a new line on top of each file to say so.
10056   # So let's grep whole file.
10057   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10058     dirpart=`(dirname "$mf") 2>/dev/null ||
10059 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10060          X"$mf" : 'X\(//\)[^/]' \| \
10061          X"$mf" : 'X\(//\)$' \| \
10062          X"$mf" : 'X\(/\)' \| \
10063          .     : '\(.\)' 2>/dev/null ||
10064 echo X"$mf" |
10065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10066           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10067           /^X\(\/\/\)$/{ s//\1/; q; }
10068           /^X\(\/\).*/{ s//\1/; q; }
10069           s/.*/./; q'`
10070   else
10071     continue
10072   fi
10073   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10074   # Extract the definition of DEP_FILES from the Makefile without
10075   # running `make'.
10076   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10077   test -z "$DEPDIR" && continue
10078   # When using ansi2knr, U may be empty or an underscore; expand it
10079   U=`sed -n -e '/^U = / s///p' < "$mf"`
10080   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10081   # We invoke sed twice because it is the simplest approach to
10082   # changing $(DEPDIR) to its actual value in the expansion.
10083   for file in `sed -n -e '
10084     /^DEP_FILES = .*\\\\$/ {
10085       s/^DEP_FILES = //
10086       :loop
10087         s/\\\\$//
10088         p
10089         n
10090         /\\\\$/ b loop
10091       p
10092     }
10093     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10094        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10095     # Make sure the directory exists.
10096     test -f "$dirpart/$file" && continue
10097     fdir=`(dirname "$file") 2>/dev/null ||
10098 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10099          X"$file" : 'X\(//\)[^/]' \| \
10100          X"$file" : 'X\(//\)$' \| \
10101          X"$file" : 'X\(/\)' \| \
10102          .     : '\(.\)' 2>/dev/null ||
10103 echo X"$file" |
10104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10105           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10106           /^X\(\/\/\)$/{ s//\1/; q; }
10107           /^X\(\/\).*/{ s//\1/; q; }
10108           s/.*/./; q'`
10109     { if $as_mkdir_p; then
10110     mkdir -p $dirpart/$fdir
10111   else
10112     as_dir=$dirpart/$fdir
10113     as_dirs=
10114     while test ! -d "$as_dir"; do
10115       as_dirs="$as_dir $as_dirs"
10116       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10118          X"$as_dir" : 'X\(//\)[^/]' \| \
10119          X"$as_dir" : 'X\(//\)$' \| \
10120          X"$as_dir" : 'X\(/\)' \| \
10121          .     : '\(.\)' 2>/dev/null ||
10122 echo X"$as_dir" |
10123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10124           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10125           /^X\(\/\/\)$/{ s//\1/; q; }
10126           /^X\(\/\).*/{ s//\1/; q; }
10127           s/.*/./; q'`
10128     done
10129     test ! -n "$as_dirs" || mkdir $as_dirs
10130   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10131 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10132    { (exit 1); exit 1; }; }; }
10133
10134     # echo "creating $dirpart/$file"
10135     echo '# dummy' > "$dirpart/$file"
10136   done
10137 done
10138  ;;
10139     default-1 )
10140     for ac_file in $CONFIG_FILES; do
10141       # Support "outfile[:infile[:infile...]]"
10142       case "$ac_file" in
10143         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10144       esac
10145       # PO directories have a Makefile.in generated from Makefile.in.in.
10146       case "$ac_file" in */Makefile.in)
10147         # Adjust a relative srcdir.
10148         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10149         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10150         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10151         # In autoconf-2.13 it is called $ac_given_srcdir.
10152         # In autoconf-2.50 it is called $srcdir.
10153         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10154         case "$ac_given_srcdir" in
10155           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10156           /*) top_srcdir="$ac_given_srcdir" ;;
10157           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10158         esac
10159         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10160           rm -f "$ac_dir/POTFILES"
10161           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10162           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10163           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10164           # on $ac_dir but don't depend on user-specified configuration
10165           # parameters.
10166           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10167             # The LINGUAS file contains the set of available languages.
10168             if test -n "$ALL_LINGUAS"; then
10169               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10170             fi
10171             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10172             # Hide the ALL_LINGUAS assigment from automake.
10173             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10174           fi
10175           case "$ac_given_srcdir" in
10176             .) srcdirpre= ;;
10177             *) srcdirpre='$(srcdir)/' ;;
10178           esac
10179           POFILES=
10180           GMOFILES=
10181           UPDATEPOFILES=
10182           DUMMYPOFILES=
10183           for lang in $ALL_LINGUAS; do
10184             POFILES="$POFILES $srcdirpre$lang.po"
10185             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10186             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10187             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10188           done
10189           # CATALOGS depends on both $ac_dir and the user's LINGUAS
10190           # environment variable.
10191           INST_LINGUAS=
10192           if test -n "$ALL_LINGUAS"; then
10193             for presentlang in $ALL_LINGUAS; do
10194               useit=no
10195               if test "%UNSET%" != "$LINGUAS"; then
10196                 desiredlanguages="$LINGUAS"
10197               else
10198                 desiredlanguages="$ALL_LINGUAS"
10199               fi
10200               for desiredlang in $desiredlanguages; do
10201                 # Use the presentlang catalog if desiredlang is
10202                 #   a. equal to presentlang, or
10203                 #   b. a variant of presentlang (because in this case,
10204                 #      presentlang can be used as a fallback for messages
10205                 #      which are not translated in the desiredlang catalog).
10206                 case "$desiredlang" in
10207                   "$presentlang"*) useit=yes;;
10208                 esac
10209               done
10210               if test $useit = yes; then
10211                 INST_LINGUAS="$INST_LINGUAS $presentlang"
10212               fi
10213             done
10214           fi
10215           CATALOGS=
10216           if test -n "$INST_LINGUAS"; then
10217             for lang in $INST_LINGUAS; do
10218               CATALOGS="$CATALOGS $lang.gmo"
10219             done
10220           fi
10221           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10222           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" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10223           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10224             if test -f "$f"; then
10225               case "$f" in
10226                 *.orig | *.bak | *~) ;;
10227                 *) cat "$f" >> "$ac_dir/Makefile" ;;
10228               esac
10229             fi
10230           done
10231         fi
10232         ;;
10233       esac
10234     done ;;
10235     default )  echo timestamp > stamp-h  ;;
10236   esac
10237 done
10238 _ACEOF
10239
10240 cat >>$CONFIG_STATUS <<\_ACEOF
10241
10242 { (exit 0); exit 0; }
10243 _ACEOF
10244 chmod +x $CONFIG_STATUS
10245 ac_clean_files=$ac_clean_files_save
10246
10247
10248 # configure is writing to config.log, and then calls config.status.
10249 # config.status does its own redirection, appending to config.log.
10250 # Unfortunately, on DOS this fails, as config.log is still kept open
10251 # by configure, so config.status won't be able to write to it; its
10252 # output is simply discarded.  So we exec the FD to /dev/null,
10253 # effectively closing config.log, so it can be properly (re)opened and
10254 # appended to by config.status.  When coming back to configure, we
10255 # need to make the FD available again.
10256 if test "$no_create" != yes; then
10257   ac_cs_success=:
10258   ac_config_status_args=
10259   test "$silent" = yes &&
10260     ac_config_status_args="$ac_config_status_args --quiet"
10261   exec 5>/dev/null
10262   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10263   exec 5>>config.log
10264   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10265   # would make configure fail if this is the last instruction.
10266   $ac_cs_success || { (exit 1); exit 1; }
10267 fi
10268
10269
10270 echo ""
10271
10272 echo "Enscript is now configured to your system with the following"
10273 echo "user-definable options.  Please, check that they are correct and"
10274 echo "match to your system's properties."
10275 echo ""
10276 echo "Option     Change with configure's option   Current value"
10277 echo "---------------------------------------------------------"
10278 echo "Media      --with-media=MEDIA               $MEDIA"
10279 echo "Spooler    --with-spooler=SPOOLER           $SPOOLER"
10280 echo "PS level   --with-ps-level=LEVEL            $PSLEVEL"
10281 echo ""