OSDN Git Service

* acinclude.m4: Bring back changes lost during merge.
[pf3gnuchains/gcc-fork.git] / texinfo / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-maintainer-mode enable make rules and dependencies not useful
16                           (and sometimes confusing) to the casual installer"
17 ac_help="$ac_help
18   --disable-nls           do not use Native Language Support"
19 ac_help="$ac_help
20   --with-included-gettext use the GNU gettext library included here"
21 ac_help="$ac_help
22   --with-catgets          use catgets functions if available"
23
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
27 build=NONE
28 cache_file=./config.cache
29 exec_prefix=NONE
30 host=NONE
31 no_create=
32 nonopt=NONE
33 no_recursion=
34 prefix=NONE
35 program_prefix=NONE
36 program_suffix=NONE
37 program_transform_name=s,x,x,
38 silent=
39 site=
40 srcdir=
41 target=NONE
42 verbose=
43 x_includes=NONE
44 x_libraries=NONE
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
57
58 # Initialize some other variables.
59 subdirs=
60 MFLAGS= MAKEFLAGS=
61 SHELL=${CONFIG_SHELL-/bin/sh}
62 # Maximum number of lines to put in a shell here document.
63 ac_max_here_lines=12
64
65 ac_prev=
66 for ac_option
67 do
68
69   # If the previous option needs an argument, assign it.
70   if test -n "$ac_prev"; then
71     eval "$ac_prev=\$ac_option"
72     ac_prev=
73     continue
74   fi
75
76   case "$ac_option" in
77   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78   *) ac_optarg= ;;
79   esac
80
81   # Accept the important Cygnus configure options, so we can diagnose typos.
82
83   case "$ac_option" in
84
85   -bindir | --bindir | --bindi | --bind | --bin | --bi)
86     ac_prev=bindir ;;
87   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88     bindir="$ac_optarg" ;;
89
90   -build | --build | --buil | --bui | --bu)
91     ac_prev=build ;;
92   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
93     build="$ac_optarg" ;;
94
95   -cache-file | --cache-file | --cache-fil | --cache-fi \
96   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97     ac_prev=cache_file ;;
98   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100     cache_file="$ac_optarg" ;;
101
102   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103     ac_prev=datadir ;;
104   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105   | --da=*)
106     datadir="$ac_optarg" ;;
107
108   -disable-* | --disable-*)
109     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110     # Reject names that are not valid shell variable names.
111     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113     fi
114     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115     eval "enable_${ac_feature}=no" ;;
116
117   -enable-* | --enable-*)
118     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119     # Reject names that are not valid shell variable names.
120     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122     fi
123     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124     case "$ac_option" in
125       *=*) ;;
126       *) ac_optarg=yes ;;
127     esac
128     eval "enable_${ac_feature}='$ac_optarg'" ;;
129
130   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132   | --exec | --exe | --ex)
133     ac_prev=exec_prefix ;;
134   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136   | --exec=* | --exe=* | --ex=*)
137     exec_prefix="$ac_optarg" ;;
138
139   -gas | --gas | --ga | --g)
140     # Obsolete; use --with-gas.
141     with_gas=yes ;;
142
143   -help | --help | --hel | --he)
144     # Omit some internal or obsolete options to make the list less imposing.
145     # This message is too long to be a string in the A/UX 3.1 sh.
146     cat << EOF
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
149 Configuration:
150   --cache-file=FILE       cache test results in FILE
151   --help                  print this message
152   --no-create             do not create output files
153   --quiet, --silent       do not print \`checking...' messages
154   --version               print the version of autoconf that created configure
155 Directory and file names:
156   --prefix=PREFIX         install architecture-independent files in PREFIX
157                           [$ac_default_prefix]
158   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
159                           [same as prefix]
160   --bindir=DIR            user executables in DIR [EPREFIX/bin]
161   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
162   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
163   --datadir=DIR           read-only architecture-independent data in DIR
164                           [PREFIX/share]
165   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
166   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
167                           [PREFIX/com]
168   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
169   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
170   --includedir=DIR        C header files in DIR [PREFIX/include]
171   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
172   --infodir=DIR           info documentation in DIR [PREFIX/info]
173   --mandir=DIR            man documentation in DIR [PREFIX/man]
174   --srcdir=DIR            find the sources in DIR [configure dir or ..]
175   --program-prefix=PREFIX prepend PREFIX to installed program names
176   --program-suffix=SUFFIX append SUFFIX to installed program names
177   --program-transform-name=PROGRAM
178                           run sed PROGRAM on installed program names
179 EOF
180     cat << EOF
181 Host type:
182   --build=BUILD           configure for building on BUILD [BUILD=HOST]
183   --host=HOST             configure for HOST [guessed]
184   --target=TARGET         configure for TARGET [TARGET=HOST]
185 Features and packages:
186   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
187   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
188   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
189   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
190   --x-includes=DIR        X include files are in DIR
191   --x-libraries=DIR       X library files are in DIR
192 EOF
193     if test -n "$ac_help"; then
194       echo "--enable and --with options recognized:$ac_help"
195     fi
196     exit 0 ;;
197
198   -host | --host | --hos | --ho)
199     ac_prev=host ;;
200   -host=* | --host=* | --hos=* | --ho=*)
201     host="$ac_optarg" ;;
202
203   -includedir | --includedir | --includedi | --included | --include \
204   | --includ | --inclu | --incl | --inc)
205     ac_prev=includedir ;;
206   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
207   | --includ=* | --inclu=* | --incl=* | --inc=*)
208     includedir="$ac_optarg" ;;
209
210   -infodir | --infodir | --infodi | --infod | --info | --inf)
211     ac_prev=infodir ;;
212   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
213     infodir="$ac_optarg" ;;
214
215   -libdir | --libdir | --libdi | --libd)
216     ac_prev=libdir ;;
217   -libdir=* | --libdir=* | --libdi=* | --libd=*)
218     libdir="$ac_optarg" ;;
219
220   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
221   | --libexe | --libex | --libe)
222     ac_prev=libexecdir ;;
223   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
224   | --libexe=* | --libex=* | --libe=*)
225     libexecdir="$ac_optarg" ;;
226
227   -localstatedir | --localstatedir | --localstatedi | --localstated \
228   | --localstate | --localstat | --localsta | --localst \
229   | --locals | --local | --loca | --loc | --lo)
230     ac_prev=localstatedir ;;
231   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
232   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
233   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
234     localstatedir="$ac_optarg" ;;
235
236   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
237     ac_prev=mandir ;;
238   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
239     mandir="$ac_optarg" ;;
240
241   -nfp | --nfp | --nf)
242     # Obsolete; use --without-fp.
243     with_fp=no ;;
244
245   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246   | --no-cr | --no-c)
247     no_create=yes ;;
248
249   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
250   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
251     no_recursion=yes ;;
252
253   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
254   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
255   | --oldin | --oldi | --old | --ol | --o)
256     ac_prev=oldincludedir ;;
257   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
258   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
259   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
260     oldincludedir="$ac_optarg" ;;
261
262   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
263     ac_prev=prefix ;;
264   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
265     prefix="$ac_optarg" ;;
266
267   -program-prefix | --program-prefix | --program-prefi | --program-pref \
268   | --program-pre | --program-pr | --program-p)
269     ac_prev=program_prefix ;;
270   -program-prefix=* | --program-prefix=* | --program-prefi=* \
271   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
272     program_prefix="$ac_optarg" ;;
273
274   -program-suffix | --program-suffix | --program-suffi | --program-suff \
275   | --program-suf | --program-su | --program-s)
276     ac_prev=program_suffix ;;
277   -program-suffix=* | --program-suffix=* | --program-suffi=* \
278   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
279     program_suffix="$ac_optarg" ;;
280
281   -program-transform-name | --program-transform-name \
282   | --program-transform-nam | --program-transform-na \
283   | --program-transform-n | --program-transform- \
284   | --program-transform | --program-transfor \
285   | --program-transfo | --program-transf \
286   | --program-trans | --program-tran \
287   | --progr-tra | --program-tr | --program-t)
288     ac_prev=program_transform_name ;;
289   -program-transform-name=* | --program-transform-name=* \
290   | --program-transform-nam=* | --program-transform-na=* \
291   | --program-transform-n=* | --program-transform-=* \
292   | --program-transform=* | --program-transfor=* \
293   | --program-transfo=* | --program-transf=* \
294   | --program-trans=* | --program-tran=* \
295   | --progr-tra=* | --program-tr=* | --program-t=*)
296     program_transform_name="$ac_optarg" ;;
297
298   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
299   | -silent | --silent | --silen | --sile | --sil)
300     silent=yes ;;
301
302   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
303     ac_prev=sbindir ;;
304   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
305   | --sbi=* | --sb=*)
306     sbindir="$ac_optarg" ;;
307
308   -sharedstatedir | --sharedstatedir | --sharedstatedi \
309   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310   | --sharedst | --shareds | --shared | --share | --shar \
311   | --sha | --sh)
312     ac_prev=sharedstatedir ;;
313   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
314   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
315   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
316   | --sha=* | --sh=*)
317     sharedstatedir="$ac_optarg" ;;
318
319   -site | --site | --sit)
320     ac_prev=site ;;
321   -site=* | --site=* | --sit=*)
322     site="$ac_optarg" ;;
323
324   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325     ac_prev=srcdir ;;
326   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327     srcdir="$ac_optarg" ;;
328
329   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330   | --syscon | --sysco | --sysc | --sys | --sy)
331     ac_prev=sysconfdir ;;
332   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334     sysconfdir="$ac_optarg" ;;
335
336   -target | --target | --targe | --targ | --tar | --ta | --t)
337     ac_prev=target ;;
338   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339     target="$ac_optarg" ;;
340
341   -v | -verbose | --verbose | --verbos | --verbo | --verb)
342     verbose=yes ;;
343
344   -version | --version | --versio | --versi | --vers)
345     echo "configure generated by autoconf version 2.12.1"
346     exit 0 ;;
347
348   -with-* | --with-*)
349     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350     # Reject names that are not valid shell variable names.
351     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353     fi
354     ac_package=`echo $ac_package| sed 's/-/_/g'`
355     case "$ac_option" in
356       *=*) ;;
357       *) ac_optarg=yes ;;
358     esac
359     eval "with_${ac_package}='$ac_optarg'" ;;
360
361   -without-* | --without-*)
362     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
363     # Reject names that are not valid shell variable names.
364     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366     fi
367     ac_package=`echo $ac_package| sed 's/-/_/g'`
368     eval "with_${ac_package}=no" ;;
369
370   --x)
371     # Obsolete; use --with-x.
372     with_x=yes ;;
373
374   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375   | --x-incl | --x-inc | --x-in | --x-i)
376     ac_prev=x_includes ;;
377   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379     x_includes="$ac_optarg" ;;
380
381   -x-libraries | --x-libraries | --x-librarie | --x-librari \
382   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383     ac_prev=x_libraries ;;
384   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386     x_libraries="$ac_optarg" ;;
387
388   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389     ;;
390
391   *)
392     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393       echo "configure: warning: $ac_option: invalid host type" 1>&2
394     fi
395     if test "x$nonopt" != xNONE; then
396       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397     fi
398     nonopt="$ac_option"
399     ;;
400
401   esac
402 done
403
404 if test -n "$ac_prev"; then
405   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 fi
407
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409
410 # File descriptor usage:
411 # 0 standard input
412 # 1 file creation
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
419   exec 6>/dev/null
420 else
421   exec 6>&1
422 fi
423 exec 5>./config.log
424
425 echo "\
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
428 " 1>&5
429
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
432 ac_configure_args=
433 for ac_arg
434 do
435   case "$ac_arg" in
436   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437   | --no-cr | --no-c) ;;
438   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
443   esac
444 done
445
446 # NLS nuisances.
447 # Only set these to C if already set.  These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
452 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
455
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 echo > confdefs.h
460
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file=makeinfo/makeinfo.c
464
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467   ac_srcdir_defaulted=yes
468   # Try the directory containing this script, then its parent.
469   ac_prog=$0
470   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
472   srcdir=$ac_confdir
473   if test ! -r $srcdir/$ac_unique_file; then
474     srcdir=..
475   fi
476 else
477   ac_srcdir_defaulted=no
478 fi
479 if test ! -r $srcdir/$ac_unique_file; then
480   if test "$ac_srcdir_defaulted" = yes; then
481     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482   else
483     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484   fi
485 fi
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490   if test "x$prefix" != xNONE; then
491     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
492   else
493     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
494   fi
495 fi
496 for ac_site_file in $CONFIG_SITE; do
497   if test -r "$ac_site_file"; then
498     echo "loading site script $ac_site_file"
499     . "$ac_site_file"
500   fi
501 done
502
503 if test -r "$cache_file"; then
504   echo "loading cache $cache_file"
505   . $cache_file
506 else
507   echo "creating cache $cache_file"
508   > $cache_file
509 fi
510
511 ac_ext=c
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='$CPP $CPPFLAGS'
514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling=$ac_cv_prog_cc_cross
517
518 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
521     ac_n= ac_c='
522 ' ac_t='        '
523   else
524     ac_n=-n ac_c= ac_t=
525   fi
526 else
527   ac_n= ac_c='\c' ac_t=
528 fi
529
530
531
532
533
534
535 ac_aux_dir=
536 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
537   if test -f $ac_dir/install-sh; then
538     ac_aux_dir=$ac_dir
539     ac_install_sh="$ac_aux_dir/install-sh -c"
540     break
541   elif test -f $ac_dir/install.sh; then
542     ac_aux_dir=$ac_dir
543     ac_install_sh="$ac_aux_dir/install.sh -c"
544     break
545   fi
546 done
547 if test -z "$ac_aux_dir"; then
548   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
549 fi
550 ac_config_guess=$ac_aux_dir/config.guess
551 ac_config_sub=$ac_aux_dir/config.sub
552 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
553
554 # Find a good install program.  We prefer a C program (faster),
555 # so one script is as good as another.  But avoid the broken or
556 # incompatible versions:
557 # SysV /etc/install, /usr/sbin/install
558 # SunOS /usr/etc/install
559 # IRIX /sbin/install
560 # AIX /bin/install
561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
563 # ./install, which can be erroneously created by make from ./install.sh.
564 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
565 echo "configure:566: checking for a BSD compatible install" >&5
566 if test -z "$INSTALL"; then
567 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
568   echo $ac_n "(cached) $ac_c" 1>&6
569 else
570     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
571   for ac_dir in $PATH; do
572     # Account for people who put trailing slashes in PATH elements.
573     case "$ac_dir/" in
574     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
575     *)
576       # OSF1 and SCO ODT 3.0 have their own names for install.
577       for ac_prog in ginstall installbsd scoinst install; do
578         if test -f $ac_dir/$ac_prog; then
579           if test $ac_prog = install &&
580             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
581             # AIX install.  It has an incompatible calling convention.
582             # OSF/1 installbsd also uses dspmsg, but is usable.
583             :
584           else
585             ac_cv_path_install="$ac_dir/$ac_prog -c"
586             break 2
587           fi
588         fi
589       done
590       ;;
591     esac
592   done
593   IFS="$ac_save_IFS"
594
595 fi
596   if test "${ac_cv_path_install+set}" = set; then
597     INSTALL="$ac_cv_path_install"
598   else
599     # As a last resort, use the slow shell script.  We don't cache a
600     # path for INSTALL within a source directory, because that will
601     # break other packages using the cache if that directory is
602     # removed, or if the path is relative.
603     INSTALL="$ac_install_sh"
604   fi
605 fi
606 echo "$ac_t""$INSTALL" 1>&6
607
608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
609 # It thinks the first close brace ends the variable substitution.
610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
611
612 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
613
614
615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
616
617 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
618 echo "configure:619: checking whether build environment is sane" >&5
619 # Just in case
620 sleep 1
621 echo timestamp > conftestfile
622 # Do `set' in a subshell so we don't clobber the current shell's
623 # arguments.  Must try -L first in case configure is actually a
624 # symlink; some systems play weird games with the mod time of symlinks
625 # (eg FreeBSD returns the mod time of the symlink's containing
626 # directory).
627 if (
628    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
629    if test "$*" = "X"; then
630       # -L didn't work.
631       set X `ls -t $srcdir/configure conftestfile`
632    fi
633    if test "$*" != "X $srcdir/configure conftestfile" \
634       && test "$*" != "X conftestfile $srcdir/configure"; then
635
636       # If neither matched, then we have a broken ls.  This can happen
637       # if, for instance, CONFIG_SHELL is bash and it inherits a
638       # broken ls alias from the environment.  This has actually
639       # happened.  Such a system could not be considered "sane".
640       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
641 alias in your environment" 1>&2; exit 1; }
642    fi
643
644    test "$2" = conftestfile
645    )
646 then
647    # Ok.
648    :
649 else
650    { echo "configure: error: newly created file is older than distributed files!
651 Check your system clock" 1>&2; exit 1; }
652 fi
653 rm -f conftest*
654 echo "$ac_t""yes" 1>&6
655 if test "$program_transform_name" = s,x,x,; then
656   program_transform_name=
657 else
658   # Double any \ or $.  echo might interpret backslashes.
659   cat <<\EOF_SED > conftestsed
660 s,\\,\\\\,g; s,\$,$$,g
661 EOF_SED
662   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
663   rm -f conftestsed
664 fi
665 test "$program_prefix" != NONE &&
666   program_transform_name="s,^,${program_prefix},; $program_transform_name"
667 # Use a double $ so make ignores it.
668 test "$program_suffix" != NONE &&
669   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
670
671 # sed with no file args requires a program.
672 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
673
674 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
675 echo "configure:676: checking whether ${MAKE-make} sets \${MAKE}" >&5
676 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
677 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
678   echo $ac_n "(cached) $ac_c" 1>&6
679 else
680   cat > conftestmake <<\EOF
681 all:
682         @echo 'ac_maketemp="${MAKE}"'
683 EOF
684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
685 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
686 if test -n "$ac_maketemp"; then
687   eval ac_cv_prog_make_${ac_make}_set=yes
688 else
689   eval ac_cv_prog_make_${ac_make}_set=no
690 fi
691 rm -f conftestmake
692 fi
693 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
694   echo "$ac_t""yes" 1>&6
695   SET_MAKE=
696 else
697   echo "$ac_t""no" 1>&6
698   SET_MAKE="MAKE=${MAKE-make}"
699 fi
700
701
702 PACKAGE=texinfo
703
704 VERSION=3.12
705
706 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
707   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
708 fi
709 cat >> confdefs.h <<EOF
710 #define PACKAGE "$PACKAGE"
711 EOF
712
713 cat >> confdefs.h <<EOF
714 #define VERSION "$VERSION"
715 EOF
716
717
718
719 missing_dir=`cd $ac_aux_dir && pwd`
720 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
721 echo "configure:722: checking for working aclocal" >&5
722 # Run test in a subshell; some versions of sh will print an error if
723 # an executable is not found, even if stderr is redirected.
724 # Redirect stdin to placate older versions of autoconf.  Sigh.
725 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
726    ACLOCAL=aclocal
727    echo "$ac_t""found" 1>&6
728 else
729    ACLOCAL="$missing_dir/missing aclocal"
730    echo "$ac_t""missing" 1>&6
731 fi
732
733 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
734 echo "configure:735: checking for working autoconf" >&5
735 # Run test in a subshell; some versions of sh will print an error if
736 # an executable is not found, even if stderr is redirected.
737 # Redirect stdin to placate older versions of autoconf.  Sigh.
738 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
739    AUTOCONF=autoconf
740    echo "$ac_t""found" 1>&6
741 else
742    AUTOCONF="$missing_dir/missing autoconf"
743    echo "$ac_t""missing" 1>&6
744 fi
745
746 echo $ac_n "checking for working automake""... $ac_c" 1>&6
747 echo "configure:748: checking for working automake" >&5
748 # Run test in a subshell; some versions of sh will print an error if
749 # an executable is not found, even if stderr is redirected.
750 # Redirect stdin to placate older versions of autoconf.  Sigh.
751 if (automake --version) < /dev/null > /dev/null 2>&1; then
752    AUTOMAKE=automake
753    echo "$ac_t""found" 1>&6
754 else
755    AUTOMAKE="$missing_dir/missing automake"
756    echo "$ac_t""missing" 1>&6
757 fi
758
759 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
760 echo "configure:761: checking for working autoheader" >&5
761 # Run test in a subshell; some versions of sh will print an error if
762 # an executable is not found, even if stderr is redirected.
763 # Redirect stdin to placate older versions of autoconf.  Sigh.
764 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
765    AUTOHEADER=autoheader
766    echo "$ac_t""found" 1>&6
767 else
768    AUTOHEADER="$missing_dir/missing autoheader"
769    echo "$ac_t""missing" 1>&6
770 fi
771
772 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
773 echo "configure:774: checking for working makeinfo" >&5
774 # Run test in a subshell; some versions of sh will print an error if
775 # an executable is not found, even if stderr is redirected.
776 # Redirect stdin to placate older versions of autoconf.  Sigh.
777 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
778    MAKEINFO=makeinfo
779    echo "$ac_t""found" 1>&6
780 else
781    MAKEINFO="$missing_dir/missing makeinfo"
782    echo "$ac_t""missing" 1>&6
783 fi
784
785
786
787 # Extract the first word of "gcc", so it can be a program name with args.
788 set dummy gcc; ac_word=$2
789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
790 echo "configure:791: checking for $ac_word" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
792   echo $ac_n "(cached) $ac_c" 1>&6
793 else
794   if test -n "$CC"; then
795   ac_cv_prog_CC="$CC" # Let the user override the test.
796 else
797   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
798   for ac_dir in $PATH; do
799     test -z "$ac_dir" && ac_dir=.
800     if test -f $ac_dir/$ac_word; then
801       ac_cv_prog_CC="gcc"
802       break
803     fi
804   done
805   IFS="$ac_save_ifs"
806 fi
807 fi
808 CC="$ac_cv_prog_CC"
809 if test -n "$CC"; then
810   echo "$ac_t""$CC" 1>&6
811 else
812   echo "$ac_t""no" 1>&6
813 fi
814
815 if test -z "$CC"; then
816   # Extract the first word of "cc", so it can be a program name with args.
817 set dummy cc; ac_word=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 echo "configure:820: checking for $ac_word" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
821   echo $ac_n "(cached) $ac_c" 1>&6
822 else
823   if test -n "$CC"; then
824   ac_cv_prog_CC="$CC" # Let the user override the test.
825 else
826   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
827   ac_prog_rejected=no
828   for ac_dir in $PATH; do
829     test -z "$ac_dir" && ac_dir=.
830     if test -f $ac_dir/$ac_word; then
831       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
832         ac_prog_rejected=yes
833         continue
834       fi
835       ac_cv_prog_CC="cc"
836       break
837     fi
838   done
839   IFS="$ac_save_ifs"
840 if test $ac_prog_rejected = yes; then
841   # We found a bogon in the path, so make sure we never use it.
842   set dummy $ac_cv_prog_CC
843   shift
844   if test $# -gt 0; then
845     # We chose a different compiler from the bogus one.
846     # However, it has the same basename, so the bogon will be chosen
847     # first if we set CC to just the basename; use the full file name.
848     shift
849     set dummy "$ac_dir/$ac_word" "$@"
850     shift
851     ac_cv_prog_CC="$@"
852   fi
853 fi
854 fi
855 fi
856 CC="$ac_cv_prog_CC"
857 if test -n "$CC"; then
858   echo "$ac_t""$CC" 1>&6
859 else
860   echo "$ac_t""no" 1>&6
861 fi
862
863   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
864 fi
865
866 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
867 echo "configure:868: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
868
869 ac_ext=c
870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
871 ac_cpp='$CPP $CPPFLAGS'
872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
873 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
874 cross_compiling=$ac_cv_prog_cc_cross
875
876 cat > conftest.$ac_ext <<EOF
877 #line 878 "configure"
878 #include "confdefs.h"
879 main(){return(0);}
880 EOF
881 if { (eval echo configure:882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
882   ac_cv_prog_cc_works=yes
883   # If we can't run a trivial program, we are probably using a cross compiler.
884   if (./conftest; exit) 2>/dev/null; then
885     ac_cv_prog_cc_cross=no
886   else
887     ac_cv_prog_cc_cross=yes
888   fi
889 else
890   echo "configure: failed program was:" >&5
891   cat conftest.$ac_ext >&5
892   ac_cv_prog_cc_works=no
893 fi
894 rm -fr conftest*
895
896 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
897 if test $ac_cv_prog_cc_works = no; then
898   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
899 fi
900 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
901 echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
902 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
903 cross_compiling=$ac_cv_prog_cc_cross
904
905 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
906 echo "configure:907: checking whether we are using GNU C" >&5
907 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
908   echo $ac_n "(cached) $ac_c" 1>&6
909 else
910   cat > conftest.c <<EOF
911 #ifdef __GNUC__
912   yes;
913 #endif
914 EOF
915 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
916   ac_cv_prog_gcc=yes
917 else
918   ac_cv_prog_gcc=no
919 fi
920 fi
921
922 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
923
924 if test $ac_cv_prog_gcc = yes; then
925   GCC=yes
926   ac_test_CFLAGS="${CFLAGS+set}"
927   ac_save_CFLAGS="$CFLAGS"
928   CFLAGS=
929   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
930 echo "configure:931: checking whether ${CC-cc} accepts -g" >&5
931 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
932   echo $ac_n "(cached) $ac_c" 1>&6
933 else
934   echo 'void f(){}' > conftest.c
935 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
936   ac_cv_prog_cc_g=yes
937 else
938   ac_cv_prog_cc_g=no
939 fi
940 rm -f conftest*
941
942 fi
943
944 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
945   if test "$ac_test_CFLAGS" = set; then
946     CFLAGS="$ac_save_CFLAGS"
947   elif test $ac_cv_prog_cc_g = yes; then
948     CFLAGS="-g -O2"
949   else
950     CFLAGS="-O2"
951   fi
952 else
953   GCC=
954   test "${CFLAGS+set}" = set || CFLAGS="-g"
955 fi
956
957 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
958 echo "configure:959: checking how to run the C preprocessor" >&5
959 # On Suns, sometimes $CPP names a directory.
960 if test -n "$CPP" && test -d "$CPP"; then
961   CPP=
962 fi
963 if test -z "$CPP"; then
964 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
965   echo $ac_n "(cached) $ac_c" 1>&6
966 else
967     # This must be in double quotes, not single quotes, because CPP may get
968   # substituted into the Makefile and "${CC-cc}" will confuse make.
969   CPP="${CC-cc} -E"
970   # On the NeXT, cc -E runs the code through the compiler's parser,
971   # not just through cpp.
972   cat > conftest.$ac_ext <<EOF
973 #line 974 "configure"
974 #include "confdefs.h"
975 #include <assert.h>
976 Syntax Error
977 EOF
978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
979 { (eval echo configure:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
980 ac_err=`grep -v '^ *+' conftest.out`
981 if test -z "$ac_err"; then
982   :
983 else
984   echo "$ac_err" >&5
985   echo "configure: failed program was:" >&5
986   cat conftest.$ac_ext >&5
987   rm -rf conftest*
988   CPP="${CC-cc} -E -traditional-cpp"
989   cat > conftest.$ac_ext <<EOF
990 #line 991 "configure"
991 #include "confdefs.h"
992 #include <assert.h>
993 Syntax Error
994 EOF
995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
996 { (eval echo configure:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
997 ac_err=`grep -v '^ *+' conftest.out`
998 if test -z "$ac_err"; then
999   :
1000 else
1001   echo "$ac_err" >&5
1002   echo "configure: failed program was:" >&5
1003   cat conftest.$ac_ext >&5
1004   rm -rf conftest*
1005   CPP=/lib/cpp
1006 fi
1007 rm -f conftest*
1008 fi
1009 rm -f conftest*
1010   ac_cv_prog_CPP="$CPP"
1011 fi
1012   CPP="$ac_cv_prog_CPP"
1013 else
1014   ac_cv_prog_CPP="$CPP"
1015 fi
1016 echo "$ac_t""$CPP" 1>&6
1017
1018 if test $ac_cv_prog_gcc = yes; then
1019     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1020 echo "configure:1021: checking whether ${CC-cc} needs -traditional" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1022   echo $ac_n "(cached) $ac_c" 1>&6
1023 else
1024     ac_pattern="Autoconf.*'x'"
1025   cat > conftest.$ac_ext <<EOF
1026 #line 1027 "configure"
1027 #include "confdefs.h"
1028 #include <sgtty.h>
1029 Autoconf TIOCGETP
1030 EOF
1031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1032   egrep "$ac_pattern" >/dev/null 2>&1; then
1033   rm -rf conftest*
1034   ac_cv_prog_gcc_traditional=yes
1035 else
1036   rm -rf conftest*
1037   ac_cv_prog_gcc_traditional=no
1038 fi
1039 rm -f conftest*
1040
1041
1042   if test $ac_cv_prog_gcc_traditional = no; then
1043     cat > conftest.$ac_ext <<EOF
1044 #line 1045 "configure"
1045 #include "confdefs.h"
1046 #include <termio.h>
1047 Autoconf TCGETA
1048 EOF
1049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1050   egrep "$ac_pattern" >/dev/null 2>&1; then
1051   rm -rf conftest*
1052   ac_cv_prog_gcc_traditional=yes
1053 fi
1054 rm -f conftest*
1055
1056   fi
1057 fi
1058
1059 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1060   if test $ac_cv_prog_gcc_traditional = yes; then
1061     CC="$CC -traditional"
1062   fi
1063 fi
1064
1065 # Find a good install program.  We prefer a C program (faster),
1066 # so one script is as good as another.  But avoid the broken or
1067 # incompatible versions:
1068 # SysV /etc/install, /usr/sbin/install
1069 # SunOS /usr/etc/install
1070 # IRIX /sbin/install
1071 # AIX /bin/install
1072 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1073 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1074 # ./install, which can be erroneously created by make from ./install.sh.
1075 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1076 echo "configure:1077: checking for a BSD compatible install" >&5
1077 if test -z "$INSTALL"; then
1078 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1079   echo $ac_n "(cached) $ac_c" 1>&6
1080 else
1081     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1082   for ac_dir in $PATH; do
1083     # Account for people who put trailing slashes in PATH elements.
1084     case "$ac_dir/" in
1085     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1086     *)
1087       # OSF1 and SCO ODT 3.0 have their own names for install.
1088       for ac_prog in ginstall scoinst install; do
1089         if test -f $ac_dir/$ac_prog; then
1090           if test $ac_prog = install &&
1091             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1092             # AIX install.  It has an incompatible calling convention.
1093             # OSF/1 installbsd also uses dspmsg, but is usable.
1094             :
1095           else
1096             ac_cv_path_install="$ac_dir/$ac_prog -c"
1097             break 2
1098           fi
1099         fi
1100       done
1101       ;;
1102     esac
1103   done
1104   IFS="$ac_save_IFS"
1105
1106 fi
1107   if test "${ac_cv_path_install+set}" = set; then
1108     INSTALL="$ac_cv_path_install"
1109   else
1110     # As a last resort, use the slow shell script.  We don't cache a
1111     # path for INSTALL within a source directory, because that will
1112     # break other packages using the cache if that directory is
1113     # removed, or if the path is relative.
1114     INSTALL="$ac_install_sh"
1115   fi
1116 fi
1117 echo "$ac_t""$INSTALL" 1>&6
1118
1119 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1120 # It thinks the first close brace ends the variable substitution.
1121 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1122
1123 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1124
1125 # Extract the first word of "ranlib", so it can be a program name with args.
1126 set dummy ranlib; ac_word=$2
1127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_word" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1130   echo $ac_n "(cached) $ac_c" 1>&6
1131 else
1132   if test -n "$RANLIB"; then
1133   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1134 else
1135   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1136   for ac_dir in $PATH; do
1137     test -z "$ac_dir" && ac_dir=.
1138     if test -f $ac_dir/$ac_word; then
1139       ac_cv_prog_RANLIB="ranlib"
1140       break
1141     fi
1142   done
1143   IFS="$ac_save_ifs"
1144   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1145 fi
1146 fi
1147 RANLIB="$ac_cv_prog_RANLIB"
1148 if test -n "$RANLIB"; then
1149   echo "$ac_t""$RANLIB" 1>&6
1150 else
1151   echo "$ac_t""no" 1>&6
1152 fi
1153
1154
1155 # We do this for the sake of a more helpful warning in doc/Makefile.
1156 TEXMF='$(datadir)/texmf'
1157 # Extract the first word of "texconfig", so it can be a program name with args.
1158 set dummy texconfig; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_TEXCONFIG'+set}'`\" = set"; then
1162   echo $ac_n "(cached) $ac_c" 1>&6
1163 else
1164   if test -n "$TEXCONFIG"; then
1165   ac_cv_prog_TEXCONFIG="$TEXCONFIG" # Let the user override the test.
1166 else
1167   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1168   for ac_dir in $PATH; do
1169     test -z "$ac_dir" && ac_dir=.
1170     if test -f $ac_dir/$ac_word; then
1171       ac_cv_prog_TEXCONFIG="true"
1172       break
1173     fi
1174   done
1175   IFS="$ac_save_ifs"
1176   test -z "$ac_cv_prog_TEXCONFIG" && ac_cv_prog_TEXCONFIG="false"
1177 fi
1178 fi
1179 TEXCONFIG="$ac_cv_prog_TEXCONFIG"
1180 if test -n "$TEXCONFIG"; then
1181   echo "$ac_t""$TEXCONFIG" 1>&6
1182 else
1183   echo "$ac_t""no" 1>&6
1184 fi
1185
1186 $TEXCONFIG && eval `texconfig conf </dev/null | grep '^TEXMF='`
1187
1188
1189 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1190 echo "configure:1191: checking for POSIXized ISC" >&5
1191 if test -d /etc/conf/kconfig.d &&
1192   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1193 then
1194   echo "$ac_t""yes" 1>&6
1195   ISC=yes # If later tests want to check for ISC.
1196   cat >> confdefs.h <<\EOF
1197 #define _POSIX_SOURCE 1
1198 EOF
1199
1200   if test "$GCC" = yes; then
1201     CC="$CC -posix"
1202   else
1203     CC="$CC -Xp"
1204   fi
1205 else
1206   echo "$ac_t""no" 1>&6
1207   ISC=
1208 fi
1209
1210 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1211 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1212 echo "configure:1213: checking for minix/config.h" >&5
1213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1214   echo $ac_n "(cached) $ac_c" 1>&6
1215 else
1216   cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1219 #include <minix/config.h>
1220 EOF
1221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1222 { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1223 ac_err=`grep -v '^ *+' conftest.out`
1224 if test -z "$ac_err"; then
1225   rm -rf conftest*
1226   eval "ac_cv_header_$ac_safe=yes"
1227 else
1228   echo "$ac_err" >&5
1229   echo "configure: failed program was:" >&5
1230   cat conftest.$ac_ext >&5
1231   rm -rf conftest*
1232   eval "ac_cv_header_$ac_safe=no"
1233 fi
1234 rm -f conftest*
1235 fi
1236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1237   echo "$ac_t""yes" 1>&6
1238   MINIX=yes
1239 else
1240   echo "$ac_t""no" 1>&6
1241 MINIX=
1242 fi
1243
1244 if test "$MINIX" = yes; then
1245   cat >> confdefs.h <<\EOF
1246 #define _POSIX_SOURCE 1
1247 EOF
1248
1249   cat >> confdefs.h <<\EOF
1250 #define _POSIX_1_SOURCE 2
1251 EOF
1252
1253   cat >> confdefs.h <<\EOF
1254 #define _MINIX 1
1255 EOF
1256
1257 fi
1258
1259
1260 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether to enable maintainer-specific portions of Makefiles" >&5
1262     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1263 if test "${enable_maintainer_mode+set}" = set; then
1264   enableval="$enable_maintainer_mode"
1265   USE_MAINTAINER_MODE=$enableval
1266 else
1267   USE_MAINTAINER_MODE=no
1268 fi
1269
1270   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1271   if test $USE_MAINTAINER_MODE = yes; then
1272     MAINT=
1273   else
1274     MAINT='#M#'
1275   fi
1276   
1277
1278 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1279 echo "configure:1280: checking for Cygwin32 environment" >&5
1280 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1281   echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283   cat > conftest.$ac_ext <<EOF
1284 #line 1285 "configure"
1285 #include "confdefs.h"
1286
1287 int main() {
1288 return __CYGWIN32__;
1289 ; return 0; }
1290 EOF
1291 if { (eval echo configure:1292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1292   rm -rf conftest*
1293   am_cv_cygwin32=yes
1294 else
1295   echo "configure: failed program was:" >&5
1296   cat conftest.$ac_ext >&5
1297   rm -rf conftest*
1298   am_cv_cygwin32=no
1299 fi
1300 rm -f conftest*
1301 rm -f conftest*
1302 fi
1303
1304 echo "$ac_t""$am_cv_cygwin32" 1>&6
1305 CYGWIN32=
1306 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1307 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1308 echo "configure:1309: checking for Mingw32 environment" >&5
1309 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1310   echo $ac_n "(cached) $ac_c" 1>&6
1311 else
1312   cat > conftest.$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1315
1316 int main() {
1317 return __MINGW32__;
1318 ; return 0; }
1319 EOF
1320 if { (eval echo configure:1321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1321   rm -rf conftest*
1322   am_cv_mingw32=yes
1323 else
1324   echo "configure: failed program was:" >&5
1325   cat conftest.$ac_ext >&5
1326   rm -rf conftest*
1327   am_cv_mingw32=no
1328 fi
1329 rm -f conftest*
1330 rm -f conftest*
1331 fi
1332
1333 echo "$ac_t""$am_cv_mingw32" 1>&6
1334 MINGW32=
1335 test "$am_cv_mingw32" = yes && MINGW32=yes
1336
1337
1338 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1339 echo "configure:1340: checking for executable suffix" >&5
1340 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1341   echo $ac_n "(cached) $ac_c" 1>&6
1342 else
1343   if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
1344 am_cv_exeext=.exe
1345 else
1346 cat > am_c_test.c << 'EOF'
1347 int main() {
1348 /* Nothing needed here */
1349 }
1350 EOF
1351 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1352 am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1353 rm -f am_c_test*
1354 fi
1355
1356 test x"${am_cv_exeext}" = x && am_cv_exeext=no
1357 fi
1358 EXEEXT=""
1359 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1360 echo "$ac_t""${am_cv_exeext}" 1>&6
1361
1362
1363 echo $ac_n "checking for gzdopen in -lz""... $ac_c" 1>&6
1364 echo "configure:1365: checking for gzdopen in -lz" >&5
1365 ac_lib_var=`echo z'_'gzdopen | sed 'y%./+-%__p_%'`
1366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1367   echo $ac_n "(cached) $ac_c" 1>&6
1368 else
1369   ac_save_LIBS="$LIBS"
1370 LIBS="-lz  $LIBS"
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 /* Override any gcc2 internal prototype to avoid an error.  */
1375 /* We use char because int might match the return type of a gcc2
1376     builtin and then its argument prototype would still apply.  */
1377 char gzdopen();
1378
1379 int main() {
1380 gzdopen()
1381 ; return 0; }
1382 EOF
1383 if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1384   rm -rf conftest*
1385   eval "ac_cv_lib_$ac_lib_var=yes"
1386 else
1387   echo "configure: failed program was:" >&5
1388   cat conftest.$ac_ext >&5
1389   rm -rf conftest*
1390   eval "ac_cv_lib_$ac_lib_var=no"
1391 fi
1392 rm -f conftest*
1393 LIBS="$ac_save_LIBS"
1394
1395 fi
1396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1397   echo "$ac_t""yes" 1>&6
1398     ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1399     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1400   cat >> confdefs.h <<EOF
1401 #define $ac_tr_lib 1
1402 EOF
1403
1404   LIBS="-lz $LIBS"
1405
1406 else
1407   echo "$ac_t""no" 1>&6
1408 fi
1409
1410
1411 # Needed on sysV68 for sigblock, sigsetmask.  But check for it in libc first.
1412 echo $ac_n "checking for sigblock""... $ac_c" 1>&6
1413 echo "configure:1414: checking for sigblock" >&5
1414 if eval "test \"`echo '$''{'ac_cv_func_sigblock'+set}'`\" = set"; then
1415   echo $ac_n "(cached) $ac_c" 1>&6
1416 else
1417   cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1420 /* System header to define __stub macros and hopefully few prototypes,
1421     which can conflict with char sigblock(); below.  */
1422 #include <assert.h>
1423 /* Override any gcc2 internal prototype to avoid an error.  */
1424 /* We use char because int might match the return type of a gcc2
1425     builtin and then its argument prototype would still apply.  */
1426 char sigblock();
1427
1428 int main() {
1429
1430 /* The GNU C library defines this for functions which it implements
1431     to always fail with ENOSYS.  Some functions are actually named
1432     something starting with __ and the normal name is an alias.  */
1433 #if defined (__stub_sigblock) || defined (__stub___sigblock)
1434 choke me
1435 #else
1436 sigblock();
1437 #endif
1438
1439 ; return 0; }
1440 EOF
1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1442   rm -rf conftest*
1443   eval "ac_cv_func_sigblock=yes"
1444 else
1445   echo "configure: failed program was:" >&5
1446   cat conftest.$ac_ext >&5
1447   rm -rf conftest*
1448   eval "ac_cv_func_sigblock=no"
1449 fi
1450 rm -f conftest*
1451 fi
1452
1453 if eval "test \"`echo '$ac_cv_func_'sigblock`\" = yes"; then
1454   echo "$ac_t""yes" 1>&6
1455   :
1456 else
1457   echo "$ac_t""no" 1>&6
1458 echo $ac_n "checking for sigblock in -lbsd""... $ac_c" 1>&6
1459 echo "configure:1460: checking for sigblock in -lbsd" >&5
1460 ac_lib_var=`echo bsd'_'sigblock | sed 'y%./+-%__p_%'`
1461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1462   echo $ac_n "(cached) $ac_c" 1>&6
1463 else
1464   ac_save_LIBS="$LIBS"
1465 LIBS="-lbsd  $LIBS"
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1469 /* Override any gcc2 internal prototype to avoid an error.  */
1470 /* We use char because int might match the return type of a gcc2
1471     builtin and then its argument prototype would still apply.  */
1472 char sigblock();
1473
1474 int main() {
1475 sigblock()
1476 ; return 0; }
1477 EOF
1478 if { (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1479   rm -rf conftest*
1480   eval "ac_cv_lib_$ac_lib_var=yes"
1481 else
1482   echo "configure: failed program was:" >&5
1483   cat conftest.$ac_ext >&5
1484   rm -rf conftest*
1485   eval "ac_cv_lib_$ac_lib_var=no"
1486 fi
1487 rm -f conftest*
1488 LIBS="$ac_save_LIBS"
1489
1490 fi
1491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1492   echo "$ac_t""yes" 1>&6
1493     ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/^a-zA-Z0-9_/_/g' \
1494     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1495   cat >> confdefs.h <<EOF
1496 #define $ac_tr_lib 1
1497 EOF
1498
1499   LIBS="-lbsd $LIBS"
1500
1501 else
1502   echo "$ac_t""no" 1>&6
1503 fi
1504
1505 fi
1506
1507
1508 # Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
1509 # rather ncurses.  So we check for it.
1510 TERMLIBS=
1511 for termlib in ncurses curses termcap terminfo termlib ; do
1512    echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
1513 echo "configure:1514: checking for tputs in -l${termlib}" >&5
1514 ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
1515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1516   echo $ac_n "(cached) $ac_c" 1>&6
1517 else
1518   ac_save_LIBS="$LIBS"
1519 LIBS="-l${termlib}  $LIBS"
1520 cat > conftest.$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1523 /* Override any gcc2 internal prototype to avoid an error.  */
1524 /* We use char because int might match the return type of a gcc2
1525     builtin and then its argument prototype would still apply.  */
1526 char tputs();
1527
1528 int main() {
1529 tputs()
1530 ; return 0; }
1531 EOF
1532 if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1533   rm -rf conftest*
1534   eval "ac_cv_lib_$ac_lib_var=yes"
1535 else
1536   echo "configure: failed program was:" >&5
1537   cat conftest.$ac_ext >&5
1538   rm -rf conftest*
1539   eval "ac_cv_lib_$ac_lib_var=no"
1540 fi
1541 rm -f conftest*
1542 LIBS="$ac_save_LIBS"
1543
1544 fi
1545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1546   echo "$ac_t""yes" 1>&6
1547   TERMLIBS="${TERMLIBS} -l${termlib}"; break
1548 else
1549   echo "$ac_t""no" 1>&6
1550 fi
1551
1552 done
1553
1554
1555 if test "x$termlib" = xncurses; then
1556     for ac_hdr in ncurses/termcap.h
1557 do
1558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1560 echo "configure:1561: checking for $ac_hdr" >&5
1561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1562   echo $ac_n "(cached) $ac_c" 1>&6
1563 else
1564   cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1567 #include <$ac_hdr>
1568 EOF
1569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1570 { (eval echo configure:1571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1571 ac_err=`grep -v '^ *+' conftest.out`
1572 if test -z "$ac_err"; then
1573   rm -rf conftest*
1574   eval "ac_cv_header_$ac_safe=yes"
1575 else
1576   echo "$ac_err" >&5
1577   echo "configure: failed program was:" >&5
1578   cat conftest.$ac_ext >&5
1579   rm -rf conftest*
1580   eval "ac_cv_header_$ac_safe=no"
1581 fi
1582 rm -f conftest*
1583 fi
1584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1585   echo "$ac_t""yes" 1>&6
1586     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1587   cat >> confdefs.h <<EOF
1588 #define $ac_tr_hdr 1
1589 EOF
1590  
1591 else
1592   echo "$ac_t""no" 1>&6
1593 fi
1594 done
1595
1596 fi
1597 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1598 echo "configure:1599: checking for ANSI C header files" >&5
1599 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1600   echo $ac_n "(cached) $ac_c" 1>&6
1601 else
1602   cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 #include <stdlib.h>
1606 #include <stdarg.h>
1607 #include <string.h>
1608 #include <float.h>
1609 EOF
1610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1611 { (eval echo configure:1612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1612 ac_err=`grep -v '^ *+' conftest.out`
1613 if test -z "$ac_err"; then
1614   rm -rf conftest*
1615   ac_cv_header_stdc=yes
1616 else
1617   echo "$ac_err" >&5
1618   echo "configure: failed program was:" >&5
1619   cat conftest.$ac_ext >&5
1620   rm -rf conftest*
1621   ac_cv_header_stdc=no
1622 fi
1623 rm -f conftest*
1624
1625 if test $ac_cv_header_stdc = yes; then
1626   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1627 cat > conftest.$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1630 #include <string.h>
1631 EOF
1632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1633   egrep "memchr" >/dev/null 2>&1; then
1634   :
1635 else
1636   rm -rf conftest*
1637   ac_cv_header_stdc=no
1638 fi
1639 rm -f conftest*
1640
1641 fi
1642
1643 if test $ac_cv_header_stdc = yes; then
1644   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1645 cat > conftest.$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1648 #include <stdlib.h>
1649 EOF
1650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1651   egrep "free" >/dev/null 2>&1; then
1652   :
1653 else
1654   rm -rf conftest*
1655   ac_cv_header_stdc=no
1656 fi
1657 rm -f conftest*
1658
1659 fi
1660
1661 if test $ac_cv_header_stdc = yes; then
1662   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1663 if test "$cross_compiling" = yes; then
1664   :
1665 else
1666   cat > conftest.$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1669 #include <ctype.h>
1670 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1671 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1673 int main () { int i; for (i = 0; i < 256; i++)
1674 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1675 exit (0); }
1676
1677 EOF
1678 if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1679 then
1680   :
1681 else
1682   echo "configure: failed program was:" >&5
1683   cat conftest.$ac_ext >&5
1684   rm -fr conftest*
1685   ac_cv_header_stdc=no
1686 fi
1687 rm -fr conftest*
1688 fi
1689
1690 fi
1691 fi
1692
1693 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1694 if test $ac_cv_header_stdc = yes; then
1695   cat >> confdefs.h <<\EOF
1696 #define STDC_HEADERS 1
1697 EOF
1698
1699 fi
1700
1701 for ac_hdr in fcntl.h pwd.h string.h strings.h termcap.h termio.h \
1702   termios.h unistd.h \
1703   sys/fcntl.h sys/file.h sys/ptem.h sys/time.h sys/ttold.h sys/wait.h
1704 do
1705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1707 echo "configure:1708: checking for $ac_hdr" >&5
1708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1709   echo $ac_n "(cached) $ac_c" 1>&6
1710 else
1711   cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 #include <$ac_hdr>
1715 EOF
1716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1717 { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1718 ac_err=`grep -v '^ *+' conftest.out`
1719 if test -z "$ac_err"; then
1720   rm -rf conftest*
1721   eval "ac_cv_header_$ac_safe=yes"
1722 else
1723   echo "$ac_err" >&5
1724   echo "configure: failed program was:" >&5
1725   cat conftest.$ac_ext >&5
1726   rm -rf conftest*
1727   eval "ac_cv_header_$ac_safe=no"
1728 fi
1729 rm -f conftest*
1730 fi
1731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1732   echo "$ac_t""yes" 1>&6
1733     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1734   cat >> confdefs.h <<EOF
1735 #define $ac_tr_hdr 1
1736 EOF
1737  
1738 else
1739   echo "$ac_t""no" 1>&6
1740 fi
1741 done
1742
1743
1744 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1745 echo "configure:1746: checking for off_t" >&5
1746 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1747   echo $ac_n "(cached) $ac_c" 1>&6
1748 else
1749   cat > conftest.$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1752 #include <sys/types.h>
1753 #if STDC_HEADERS
1754 #include <stdlib.h>
1755 #include <stddef.h>
1756 #endif
1757 EOF
1758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1759   egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1760   rm -rf conftest*
1761   ac_cv_type_off_t=yes
1762 else
1763   rm -rf conftest*
1764   ac_cv_type_off_t=no
1765 fi
1766 rm -f conftest*
1767
1768 fi
1769 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1770 if test $ac_cv_type_off_t = no; then
1771   cat >> confdefs.h <<\EOF
1772 #define off_t long
1773 EOF
1774
1775 fi
1776
1777 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1778 echo "configure:1779: checking return type of signal handlers" >&5
1779 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1780   echo $ac_n "(cached) $ac_c" 1>&6
1781 else
1782   cat > conftest.$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1785 #include <sys/types.h>
1786 #include <signal.h>
1787 #ifdef signal
1788 #undef signal
1789 #endif
1790 #ifdef __cplusplus
1791 extern "C" void (*signal (int, void (*)(int)))(int);
1792 #else
1793 void (*signal ()) ();
1794 #endif
1795
1796 int main() {
1797 int i;
1798 ; return 0; }
1799 EOF
1800 if { (eval echo configure:1801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1801   rm -rf conftest*
1802   ac_cv_type_signal=void
1803 else
1804   echo "configure: failed program was:" >&5
1805   cat conftest.$ac_ext >&5
1806   rm -rf conftest*
1807   ac_cv_type_signal=int
1808 fi
1809 rm -f conftest*
1810 fi
1811
1812 echo "$ac_t""$ac_cv_type_signal" 1>&6
1813 cat >> confdefs.h <<EOF
1814 #define RETSIGTYPE $ac_cv_type_signal
1815 EOF
1816
1817
1818 echo $ac_n "checking for working const""... $ac_c" 1>&6
1819 echo "configure:1820: checking for working const" >&5
1820 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1821   echo $ac_n "(cached) $ac_c" 1>&6
1822 else
1823   cat > conftest.$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1826
1827 int main() {
1828
1829 /* Ultrix mips cc rejects this.  */
1830 typedef int charset[2]; const charset x;
1831 /* SunOS 4.1.1 cc rejects this.  */
1832 char const *const *ccp;
1833 char **p;
1834 /* NEC SVR4.0.2 mips cc rejects this.  */
1835 struct point {int x, y;};
1836 static struct point const zero = {0,0};
1837 /* AIX XL C 1.02.0.0 rejects this.
1838    It does not let you subtract one const X* pointer from another in an arm
1839    of an if-expression whose if-part is not a constant expression */
1840 const char *g = "string";
1841 ccp = &g + (g ? g-g : 0);
1842 /* HPUX 7.0 cc rejects these. */
1843 ++ccp;
1844 p = (char**) ccp;
1845 ccp = (char const *const *) p;
1846 { /* SCO 3.2v4 cc rejects this.  */
1847   char *t;
1848   char const *s = 0 ? (char *) 0 : (char const *) 0;
1849
1850   *t++ = 0;
1851 }
1852 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1853   int x[] = {25, 17};
1854   const int *foo = &x[0];
1855   ++foo;
1856 }
1857 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1858   typedef const int *iptr;
1859   iptr p = 0;
1860   ++p;
1861 }
1862 { /* AIX XL C 1.02.0.0 rejects this saying
1863      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1864   struct s { int j; const int *ap[3]; };
1865   struct s *b; b->j = 5;
1866 }
1867 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1868   const int foo = 10;
1869 }
1870
1871 ; return 0; }
1872 EOF
1873 if { (eval echo configure:1874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1874   rm -rf conftest*
1875   ac_cv_c_const=yes
1876 else
1877   echo "configure: failed program was:" >&5
1878   cat conftest.$ac_ext >&5
1879   rm -rf conftest*
1880   ac_cv_c_const=no
1881 fi
1882 rm -f conftest*
1883 fi
1884
1885 echo "$ac_t""$ac_cv_c_const" 1>&6
1886 if test $ac_cv_c_const = no; then
1887   cat >> confdefs.h <<\EOF
1888 #define const 
1889 EOF
1890
1891 fi
1892
1893 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1894 echo "configure:1895: checking whether struct tm is in sys/time.h or time.h" >&5
1895 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1896   echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898   cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1901 #include <sys/types.h>
1902 #include <time.h>
1903 int main() {
1904 struct tm *tp; tp->tm_sec;
1905 ; return 0; }
1906 EOF
1907 if { (eval echo configure:1908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1908   rm -rf conftest*
1909   ac_cv_struct_tm=time.h
1910 else
1911   echo "configure: failed program was:" >&5
1912   cat conftest.$ac_ext >&5
1913   rm -rf conftest*
1914   ac_cv_struct_tm=sys/time.h
1915 fi
1916 rm -f conftest*
1917 fi
1918
1919 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1920 if test $ac_cv_struct_tm = sys/time.h; then
1921   cat >> confdefs.h <<\EOF
1922 #define TM_IN_SYS_TIME 1
1923 EOF
1924
1925 fi
1926
1927
1928 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1929 # for constant arguments.  Useless!
1930 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1931 echo "configure:1932: checking for working alloca.h" >&5
1932 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1933   echo $ac_n "(cached) $ac_c" 1>&6
1934 else
1935   cat > conftest.$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1938 #include <alloca.h>
1939 int main() {
1940 char *p = alloca(2 * sizeof(int));
1941 ; return 0; }
1942 EOF
1943 if { (eval echo configure:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1944   rm -rf conftest*
1945   ac_cv_header_alloca_h=yes
1946 else
1947   echo "configure: failed program was:" >&5
1948   cat conftest.$ac_ext >&5
1949   rm -rf conftest*
1950   ac_cv_header_alloca_h=no
1951 fi
1952 rm -f conftest*
1953 fi
1954
1955 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1956 if test $ac_cv_header_alloca_h = yes; then
1957   cat >> confdefs.h <<\EOF
1958 #define HAVE_ALLOCA_H 1
1959 EOF
1960
1961 fi
1962
1963 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1964 echo "configure:1965: checking for alloca" >&5
1965 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1966   echo $ac_n "(cached) $ac_c" 1>&6
1967 else
1968   cat > conftest.$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1971
1972 #ifdef __GNUC__
1973 # define alloca __builtin_alloca
1974 #else
1975 # if HAVE_ALLOCA_H
1976 #  include <alloca.h>
1977 # else
1978 #  ifdef _AIX
1979  #pragma alloca
1980 #  else
1981 #   ifndef alloca /* predefined by HP cc +Olibcalls */
1982 char *alloca ();
1983 #   endif
1984 #  endif
1985 # endif
1986 #endif
1987
1988 int main() {
1989 char *p = (char *) alloca(1);
1990 ; return 0; }
1991 EOF
1992 if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1993   rm -rf conftest*
1994   ac_cv_func_alloca_works=yes
1995 else
1996   echo "configure: failed program was:" >&5
1997   cat conftest.$ac_ext >&5
1998   rm -rf conftest*
1999   ac_cv_func_alloca_works=no
2000 fi
2001 rm -f conftest*
2002 fi
2003
2004 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2005 if test $ac_cv_func_alloca_works = yes; then
2006   cat >> confdefs.h <<\EOF
2007 #define HAVE_ALLOCA 1
2008 EOF
2009
2010 fi
2011
2012 if test $ac_cv_func_alloca_works = no; then
2013   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2014   # that cause trouble.  Some versions do not even contain alloca or
2015   # contain a buggy version.  If you still want to use their alloca,
2016   # use ar to extract alloca.o from them instead of compiling alloca.c.
2017   ALLOCA=alloca.o
2018   cat >> confdefs.h <<\EOF
2019 #define C_ALLOCA 1
2020 EOF
2021
2022
2023 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether alloca needs Cray hooks" >&5
2025 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2026   echo $ac_n "(cached) $ac_c" 1>&6
2027 else
2028   cat > conftest.$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 #if defined(CRAY) && ! defined(CRAY2)
2032 webecray
2033 #else
2034 wenotbecray
2035 #endif
2036
2037 EOF
2038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2039   egrep "webecray" >/dev/null 2>&1; then
2040   rm -rf conftest*
2041   ac_cv_os_cray=yes
2042 else
2043   rm -rf conftest*
2044   ac_cv_os_cray=no
2045 fi
2046 rm -f conftest*
2047
2048 fi
2049
2050 echo "$ac_t""$ac_cv_os_cray" 1>&6
2051 if test $ac_cv_os_cray = yes; then
2052 for ac_func in _getb67 GETB67 getb67; do
2053   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2054 echo "configure:2055: checking for $ac_func" >&5
2055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2056   echo $ac_n "(cached) $ac_c" 1>&6
2057 else
2058   cat > conftest.$ac_ext <<EOF
2059 #line 2060 "configure"
2060 #include "confdefs.h"
2061 /* System header to define __stub macros and hopefully few prototypes,
2062     which can conflict with char $ac_func(); below.  */
2063 #include <assert.h>
2064 /* Override any gcc2 internal prototype to avoid an error.  */
2065 /* We use char because int might match the return type of a gcc2
2066     builtin and then its argument prototype would still apply.  */
2067 char $ac_func();
2068
2069 int main() {
2070
2071 /* The GNU C library defines this for functions which it implements
2072     to always fail with ENOSYS.  Some functions are actually named
2073     something starting with __ and the normal name is an alias.  */
2074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2075 choke me
2076 #else
2077 $ac_func();
2078 #endif
2079
2080 ; return 0; }
2081 EOF
2082 if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2083   rm -rf conftest*
2084   eval "ac_cv_func_$ac_func=yes"
2085 else
2086   echo "configure: failed program was:" >&5
2087   cat conftest.$ac_ext >&5
2088   rm -rf conftest*
2089   eval "ac_cv_func_$ac_func=no"
2090 fi
2091 rm -f conftest*
2092 fi
2093
2094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2095   echo "$ac_t""yes" 1>&6
2096   cat >> confdefs.h <<EOF
2097 #define CRAY_STACKSEG_END $ac_func
2098 EOF
2099
2100   break
2101 else
2102   echo "$ac_t""no" 1>&6
2103 fi
2104
2105 done
2106 fi
2107
2108 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2109 echo "configure:2110: checking stack direction for C alloca" >&5
2110 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2111   echo $ac_n "(cached) $ac_c" 1>&6
2112 else
2113   if test "$cross_compiling" = yes; then
2114   ac_cv_c_stack_direction=0
2115 else
2116   cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2119 find_stack_direction ()
2120 {
2121   static char *addr = 0;
2122   auto char dummy;
2123   if (addr == 0)
2124     {
2125       addr = &dummy;
2126       return find_stack_direction ();
2127     }
2128   else
2129     return (&dummy > addr) ? 1 : -1;
2130 }
2131 main ()
2132 {
2133   exit (find_stack_direction() < 0);
2134 }
2135 EOF
2136 if { (eval echo configure:2137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2137 then
2138   ac_cv_c_stack_direction=1
2139 else
2140   echo "configure: failed program was:" >&5
2141   cat conftest.$ac_ext >&5
2142   rm -fr conftest*
2143   ac_cv_c_stack_direction=-1
2144 fi
2145 rm -fr conftest*
2146 fi
2147
2148 fi
2149
2150 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2151 cat >> confdefs.h <<EOF
2152 #define STACK_DIRECTION $ac_cv_c_stack_direction
2153 EOF
2154
2155 fi
2156
2157 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2158 echo "configure:2159: checking for vprintf" >&5
2159 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2160   echo $ac_n "(cached) $ac_c" 1>&6
2161 else
2162   cat > conftest.$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2165 /* System header to define __stub macros and hopefully few prototypes,
2166     which can conflict with char vprintf(); below.  */
2167 #include <assert.h>
2168 /* Override any gcc2 internal prototype to avoid an error.  */
2169 /* We use char because int might match the return type of a gcc2
2170     builtin and then its argument prototype would still apply.  */
2171 char vprintf();
2172
2173 int main() {
2174
2175 /* The GNU C library defines this for functions which it implements
2176     to always fail with ENOSYS.  Some functions are actually named
2177     something starting with __ and the normal name is an alias.  */
2178 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2179 choke me
2180 #else
2181 vprintf();
2182 #endif
2183
2184 ; return 0; }
2185 EOF
2186 if { (eval echo configure:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2187   rm -rf conftest*
2188   eval "ac_cv_func_vprintf=yes"
2189 else
2190   echo "configure: failed program was:" >&5
2191   cat conftest.$ac_ext >&5
2192   rm -rf conftest*
2193   eval "ac_cv_func_vprintf=no"
2194 fi
2195 rm -f conftest*
2196 fi
2197
2198 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2199   echo "$ac_t""yes" 1>&6
2200   cat >> confdefs.h <<\EOF
2201 #define HAVE_VPRINTF 1
2202 EOF
2203
2204 else
2205   echo "$ac_t""no" 1>&6
2206 fi
2207
2208 if test "$ac_cv_func_vprintf" != yes; then
2209 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2210 echo "configure:2211: checking for _doprnt" >&5
2211 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2212   echo $ac_n "(cached) $ac_c" 1>&6
2213 else
2214   cat > conftest.$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2217 /* System header to define __stub macros and hopefully few prototypes,
2218     which can conflict with char _doprnt(); below.  */
2219 #include <assert.h>
2220 /* Override any gcc2 internal prototype to avoid an error.  */
2221 /* We use char because int might match the return type of a gcc2
2222     builtin and then its argument prototype would still apply.  */
2223 char _doprnt();
2224
2225 int main() {
2226
2227 /* The GNU C library defines this for functions which it implements
2228     to always fail with ENOSYS.  Some functions are actually named
2229     something starting with __ and the normal name is an alias.  */
2230 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2231 choke me
2232 #else
2233 _doprnt();
2234 #endif
2235
2236 ; return 0; }
2237 EOF
2238 if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2239   rm -rf conftest*
2240   eval "ac_cv_func__doprnt=yes"
2241 else
2242   echo "configure: failed program was:" >&5
2243   cat conftest.$ac_ext >&5
2244   rm -rf conftest*
2245   eval "ac_cv_func__doprnt=no"
2246 fi
2247 rm -f conftest*
2248 fi
2249
2250 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2251   echo "$ac_t""yes" 1>&6
2252   cat >> confdefs.h <<\EOF
2253 #define HAVE_DOPRNT 1
2254 EOF
2255
2256 else
2257   echo "$ac_t""no" 1>&6
2258 fi
2259
2260 fi
2261
2262 if test "$ac_cv_c_cross" = no; then
2263   echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
2264 echo "configure:2265: checking whether setvbuf arguments are reversed" >&5
2265 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
2266   echo $ac_n "(cached) $ac_c" 1>&6
2267 else
2268   if test "$cross_compiling" = yes; then
2269     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2270 else
2271   cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 #include <stdio.h>
2275 /* If setvbuf has the reversed format, exit 0. */
2276 main () {
2277   /* This call has the arguments reversed.
2278      A reversed system may check and see that the address of main
2279      is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
2280   if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
2281     exit(1);
2282   putc('\r', stdout);
2283   exit(0);                      /* Non-reversed systems segv here.  */
2284 }
2285 EOF
2286 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2287 then
2288   ac_cv_func_setvbuf_reversed=yes
2289 else
2290   echo "configure: failed program was:" >&5
2291   cat conftest.$ac_ext >&5
2292   rm -fr conftest*
2293   ac_cv_func_setvbuf_reversed=no
2294 fi
2295 rm -fr conftest*
2296 fi
2297
2298 rm -f core core.* *.core
2299 fi
2300
2301 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
2302 if test $ac_cv_func_setvbuf_reversed = yes; then
2303   cat >> confdefs.h <<\EOF
2304 #define SETVBUF_REVERSED 1
2305 EOF
2306
2307 fi
2308
2309 fi
2310 for ac_func in setvbuf getcwd memset bzero strchr strcasecmp \
2311   sigprocmask sigsetmask
2312 do
2313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_func" >&5
2315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2316   echo $ac_n "(cached) $ac_c" 1>&6
2317 else
2318   cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 /* System header to define __stub macros and hopefully few prototypes,
2322     which can conflict with char $ac_func(); below.  */
2323 #include <assert.h>
2324 /* Override any gcc2 internal prototype to avoid an error.  */
2325 /* We use char because int might match the return type of a gcc2
2326     builtin and then its argument prototype would still apply.  */
2327 char $ac_func();
2328
2329 int main() {
2330
2331 /* The GNU C library defines this for functions which it implements
2332     to always fail with ENOSYS.  Some functions are actually named
2333     something starting with __ and the normal name is an alias.  */
2334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2335 choke me
2336 #else
2337 $ac_func();
2338 #endif
2339
2340 ; return 0; }
2341 EOF
2342 if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2343   rm -rf conftest*
2344   eval "ac_cv_func_$ac_func=yes"
2345 else
2346   echo "configure: failed program was:" >&5
2347   cat conftest.$ac_ext >&5
2348   rm -rf conftest*
2349   eval "ac_cv_func_$ac_func=no"
2350 fi
2351 rm -f conftest*
2352 fi
2353
2354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2355   echo "$ac_t""yes" 1>&6
2356     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2357   cat >> confdefs.h <<EOF
2358 #define $ac_tr_func 1
2359 EOF
2360  
2361 else
2362   echo "$ac_t""no" 1>&6
2363 fi
2364 done
2365
2366 for ac_func in memcpy memmove strdup strerror
2367 do
2368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2369 echo "configure:2370: checking for $ac_func" >&5
2370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2371   echo $ac_n "(cached) $ac_c" 1>&6
2372 else
2373   cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2376 /* System header to define __stub macros and hopefully few prototypes,
2377     which can conflict with char $ac_func(); below.  */
2378 #include <assert.h>
2379 /* Override any gcc2 internal prototype to avoid an error.  */
2380 /* We use char because int might match the return type of a gcc2
2381     builtin and then its argument prototype would still apply.  */
2382 char $ac_func();
2383
2384 int main() {
2385
2386 /* The GNU C library defines this for functions which it implements
2387     to always fail with ENOSYS.  Some functions are actually named
2388     something starting with __ and the normal name is an alias.  */
2389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2390 choke me
2391 #else
2392 $ac_func();
2393 #endif
2394
2395 ; return 0; }
2396 EOF
2397 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2398   rm -rf conftest*
2399   eval "ac_cv_func_$ac_func=yes"
2400 else
2401   echo "configure: failed program was:" >&5
2402   cat conftest.$ac_ext >&5
2403   rm -rf conftest*
2404   eval "ac_cv_func_$ac_func=no"
2405 fi
2406 rm -f conftest*
2407 fi
2408
2409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2410   echo "$ac_t""yes" 1>&6
2411     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2412   cat >> confdefs.h <<EOF
2413 #define $ac_tr_func 1
2414 EOF
2415  
2416 else
2417   echo "$ac_t""no" 1>&6
2418 LIBOBJS="$LIBOBJS ${ac_func}.o"
2419 fi
2420 done
2421
2422
2423
2424 ALL_LINGUAS="de fr"
2425 echo $ac_n "checking for inline""... $ac_c" 1>&6
2426 echo "configure:2427: checking for inline" >&5
2427 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2428   echo $ac_n "(cached) $ac_c" 1>&6
2429 else
2430   ac_cv_c_inline=no
2431 for ac_kw in inline __inline__ __inline; do
2432   cat > conftest.$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2435
2436 int main() {
2437 } $ac_kw foo() {
2438 ; return 0; }
2439 EOF
2440 if { (eval echo configure:2441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2441   rm -rf conftest*
2442   ac_cv_c_inline=$ac_kw; break
2443 else
2444   echo "configure: failed program was:" >&5
2445   cat conftest.$ac_ext >&5
2446 fi
2447 rm -f conftest*
2448 done
2449
2450 fi
2451
2452 echo "$ac_t""$ac_cv_c_inline" 1>&6
2453 case "$ac_cv_c_inline" in
2454   inline | yes) ;;
2455   no) cat >> confdefs.h <<\EOF
2456 #define inline 
2457 EOF
2458  ;;
2459   *)  cat >> confdefs.h <<EOF
2460 #define inline $ac_cv_c_inline
2461 EOF
2462  ;;
2463 esac
2464
2465 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2466 echo "configure:2467: checking for size_t" >&5
2467 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2468   echo $ac_n "(cached) $ac_c" 1>&6
2469 else
2470   cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 #include <sys/types.h>
2474 #if STDC_HEADERS
2475 #include <stdlib.h>
2476 #include <stddef.h>
2477 #endif
2478 EOF
2479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2480   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2481   rm -rf conftest*
2482   ac_cv_type_size_t=yes
2483 else
2484   rm -rf conftest*
2485   ac_cv_type_size_t=no
2486 fi
2487 rm -f conftest*
2488
2489 fi
2490 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2491 if test $ac_cv_type_size_t = no; then
2492   cat >> confdefs.h <<\EOF
2493 #define size_t unsigned
2494 EOF
2495
2496 fi
2497
2498 for ac_hdr in unistd.h
2499 do
2500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2502 echo "configure:2503: checking for $ac_hdr" >&5
2503 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2504   echo $ac_n "(cached) $ac_c" 1>&6
2505 else
2506   cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2509 #include <$ac_hdr>
2510 EOF
2511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2512 { (eval echo configure:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2513 ac_err=`grep -v '^ *+' conftest.out`
2514 if test -z "$ac_err"; then
2515   rm -rf conftest*
2516   eval "ac_cv_header_$ac_safe=yes"
2517 else
2518   echo "$ac_err" >&5
2519   echo "configure: failed program was:" >&5
2520   cat conftest.$ac_ext >&5
2521   rm -rf conftest*
2522   eval "ac_cv_header_$ac_safe=no"
2523 fi
2524 rm -f conftest*
2525 fi
2526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2527   echo "$ac_t""yes" 1>&6
2528     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2529   cat >> confdefs.h <<EOF
2530 #define $ac_tr_hdr 1
2531 EOF
2532  
2533 else
2534   echo "$ac_t""no" 1>&6
2535 fi
2536 done
2537
2538 for ac_func in getpagesize
2539 do
2540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2541 echo "configure:2542: checking for $ac_func" >&5
2542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2543   echo $ac_n "(cached) $ac_c" 1>&6
2544 else
2545   cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 /* System header to define __stub macros and hopefully few prototypes,
2549     which can conflict with char $ac_func(); below.  */
2550 #include <assert.h>
2551 /* Override any gcc2 internal prototype to avoid an error.  */
2552 /* We use char because int might match the return type of a gcc2
2553     builtin and then its argument prototype would still apply.  */
2554 char $ac_func();
2555
2556 int main() {
2557
2558 /* The GNU C library defines this for functions which it implements
2559     to always fail with ENOSYS.  Some functions are actually named
2560     something starting with __ and the normal name is an alias.  */
2561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2562 choke me
2563 #else
2564 $ac_func();
2565 #endif
2566
2567 ; return 0; }
2568 EOF
2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2570   rm -rf conftest*
2571   eval "ac_cv_func_$ac_func=yes"
2572 else
2573   echo "configure: failed program was:" >&5
2574   cat conftest.$ac_ext >&5
2575   rm -rf conftest*
2576   eval "ac_cv_func_$ac_func=no"
2577 fi
2578 rm -f conftest*
2579 fi
2580
2581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2582   echo "$ac_t""yes" 1>&6
2583     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2584   cat >> confdefs.h <<EOF
2585 #define $ac_tr_func 1
2586 EOF
2587  
2588 else
2589   echo "$ac_t""no" 1>&6
2590 fi
2591 done
2592
2593 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2594 echo "configure:2595: checking for working mmap" >&5
2595 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2596   echo $ac_n "(cached) $ac_c" 1>&6
2597 else
2598   if test "$cross_compiling" = yes; then
2599   ac_cv_func_mmap_fixed_mapped=no
2600 else
2601   cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2604
2605 /* Thanks to Mike Haertel and Jim Avera for this test.
2606    Here is a matrix of mmap possibilities:
2607         mmap private not fixed
2608         mmap private fixed at somewhere currently unmapped
2609         mmap private fixed at somewhere already mapped
2610         mmap shared not fixed
2611         mmap shared fixed at somewhere currently unmapped
2612         mmap shared fixed at somewhere already mapped
2613    For private mappings, we should verify that changes cannot be read()
2614    back from the file, nor mmap's back from the file at a different
2615    address.  (There have been systems where private was not correctly
2616    implemented like the infamous i386 svr4.0, and systems where the
2617    VM page cache was not coherent with the filesystem buffer cache
2618    like early versions of FreeBSD and possibly contemporary NetBSD.)
2619    For shared mappings, we should conversely verify that changes get
2620    propogated back to all the places they're supposed to be.
2621
2622    Grep wants private fixed already mapped.
2623    The main things grep needs to know about mmap are:
2624    * does it exist and is it safe to write into the mmap'd area
2625    * how to use it (BSD variants)  */
2626 #include <sys/types.h>
2627 #include <fcntl.h>
2628 #include <sys/mman.h>
2629
2630 /* This mess was copied from the GNU getpagesize.h.  */
2631 #ifndef HAVE_GETPAGESIZE
2632 # ifdef HAVE_UNISTD_H
2633 #  include <unistd.h>
2634 # endif
2635
2636 /* Assume that all systems that can run configure have sys/param.h.  */
2637 # ifndef HAVE_SYS_PARAM_H
2638 #  define HAVE_SYS_PARAM_H 1
2639 # endif
2640
2641 # ifdef _SC_PAGESIZE
2642 #  define getpagesize() sysconf(_SC_PAGESIZE)
2643 # else /* no _SC_PAGESIZE */
2644 #  ifdef HAVE_SYS_PARAM_H
2645 #   include <sys/param.h>
2646 #   ifdef EXEC_PAGESIZE
2647 #    define getpagesize() EXEC_PAGESIZE
2648 #   else /* no EXEC_PAGESIZE */
2649 #    ifdef NBPG
2650 #     define getpagesize() NBPG * CLSIZE
2651 #     ifndef CLSIZE
2652 #      define CLSIZE 1
2653 #     endif /* no CLSIZE */
2654 #    else /* no NBPG */
2655 #     ifdef NBPC
2656 #      define getpagesize() NBPC
2657 #     else /* no NBPC */
2658 #      ifdef PAGESIZE
2659 #       define getpagesize() PAGESIZE
2660 #      endif /* PAGESIZE */
2661 #     endif /* no NBPC */
2662 #    endif /* no NBPG */
2663 #   endif /* no EXEC_PAGESIZE */
2664 #  else /* no HAVE_SYS_PARAM_H */
2665 #   define getpagesize() 8192   /* punt totally */
2666 #  endif /* no HAVE_SYS_PARAM_H */
2667 # endif /* no _SC_PAGESIZE */
2668
2669 #endif /* no HAVE_GETPAGESIZE */
2670
2671 #ifdef __cplusplus
2672 extern "C" { void *malloc(unsigned); }
2673 #else
2674 char *malloc();
2675 #endif
2676
2677 int
2678 main()
2679 {
2680         char *data, *data2, *data3;
2681         int i, pagesize;
2682         int fd;
2683
2684         pagesize = getpagesize();
2685
2686         /*
2687          * First, make a file with some known garbage in it.
2688          */
2689         data = malloc(pagesize);
2690         if (!data)
2691                 exit(1);
2692         for (i = 0; i < pagesize; ++i)
2693                 *(data + i) = rand();
2694         umask(0);
2695         fd = creat("conftestmmap", 0600);
2696         if (fd < 0)
2697                 exit(1);
2698         if (write(fd, data, pagesize) != pagesize)
2699                 exit(1);
2700         close(fd);
2701
2702         /*
2703          * Next, try to mmap the file at a fixed address which
2704          * already has something else allocated at it.  If we can,
2705          * also make sure that we see the same garbage.
2706          */
2707         fd = open("conftestmmap", O_RDWR);
2708         if (fd < 0)
2709                 exit(1);
2710         data2 = malloc(2 * pagesize);
2711         if (!data2)
2712                 exit(1);
2713         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2714         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2715             MAP_PRIVATE | MAP_FIXED, fd, 0L))
2716                 exit(1);
2717         for (i = 0; i < pagesize; ++i)
2718                 if (*(data + i) != *(data2 + i))
2719                         exit(1);
2720
2721         /*
2722          * Finally, make sure that changes to the mapped area
2723          * do not percolate back to the file as seen by read().
2724          * (This is a bug on some variants of i386 svr4.0.)
2725          */
2726         for (i = 0; i < pagesize; ++i)
2727                 *(data2 + i) = *(data2 + i) + 1;
2728         data3 = malloc(pagesize);
2729         if (!data3)
2730                 exit(1);
2731         if (read(fd, data3, pagesize) != pagesize)
2732                 exit(1);
2733         for (i = 0; i < pagesize; ++i)
2734                 if (*(data + i) != *(data3 + i))
2735                         exit(1);
2736         close(fd);
2737         unlink("conftestmmap");
2738         exit(0);
2739 }
2740
2741 EOF
2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2743 then
2744   ac_cv_func_mmap_fixed_mapped=yes
2745 else
2746   echo "configure: failed program was:" >&5
2747   cat conftest.$ac_ext >&5
2748   rm -fr conftest*
2749   ac_cv_func_mmap_fixed_mapped=no
2750 fi
2751 rm -fr conftest*
2752 fi
2753
2754 fi
2755
2756 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2757 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2758   cat >> confdefs.h <<\EOF
2759 #define HAVE_MMAP 1
2760 EOF
2761
2762 fi
2763
2764                               
2765    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2766 unistd.h values.h sys/param.h
2767 do
2768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2770 echo "configure:2771: checking for $ac_hdr" >&5
2771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2772   echo $ac_n "(cached) $ac_c" 1>&6
2773 else
2774   cat > conftest.$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2777 #include <$ac_hdr>
2778 EOF
2779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2780 { (eval echo configure:2781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2781 ac_err=`grep -v '^ *+' conftest.out`
2782 if test -z "$ac_err"; then
2783   rm -rf conftest*
2784   eval "ac_cv_header_$ac_safe=yes"
2785 else
2786   echo "$ac_err" >&5
2787   echo "configure: failed program was:" >&5
2788   cat conftest.$ac_ext >&5
2789   rm -rf conftest*
2790   eval "ac_cv_header_$ac_safe=no"
2791 fi
2792 rm -f conftest*
2793 fi
2794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2795   echo "$ac_t""yes" 1>&6
2796     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2797   cat >> confdefs.h <<EOF
2798 #define $ac_tr_hdr 1
2799 EOF
2800  
2801 else
2802   echo "$ac_t""no" 1>&6
2803 fi
2804 done
2805
2806    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2807 __argz_count __argz_stringify __argz_next
2808 do
2809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2810 echo "configure:2811: checking for $ac_func" >&5
2811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2812   echo $ac_n "(cached) $ac_c" 1>&6
2813 else
2814   cat > conftest.$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2817 /* System header to define __stub macros and hopefully few prototypes,
2818     which can conflict with char $ac_func(); below.  */
2819 #include <assert.h>
2820 /* Override any gcc2 internal prototype to avoid an error.  */
2821 /* We use char because int might match the return type of a gcc2
2822     builtin and then its argument prototype would still apply.  */
2823 char $ac_func();
2824
2825 int main() {
2826
2827 /* The GNU C library defines this for functions which it implements
2828     to always fail with ENOSYS.  Some functions are actually named
2829     something starting with __ and the normal name is an alias.  */
2830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2831 choke me
2832 #else
2833 $ac_func();
2834 #endif
2835
2836 ; return 0; }
2837 EOF
2838 if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2839   rm -rf conftest*
2840   eval "ac_cv_func_$ac_func=yes"
2841 else
2842   echo "configure: failed program was:" >&5
2843   cat conftest.$ac_ext >&5
2844   rm -rf conftest*
2845   eval "ac_cv_func_$ac_func=no"
2846 fi
2847 rm -f conftest*
2848 fi
2849
2850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2851   echo "$ac_t""yes" 1>&6
2852     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2853   cat >> confdefs.h <<EOF
2854 #define $ac_tr_func 1
2855 EOF
2856  
2857 else
2858   echo "$ac_t""no" 1>&6
2859 fi
2860 done
2861
2862
2863    if test "${ac_cv_func_stpcpy+set}" != "set"; then
2864      for ac_func in stpcpy
2865 do
2866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_func" >&5
2868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2869   echo $ac_n "(cached) $ac_c" 1>&6
2870 else
2871   cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 /* System header to define __stub macros and hopefully few prototypes,
2875     which can conflict with char $ac_func(); below.  */
2876 #include <assert.h>
2877 /* Override any gcc2 internal prototype to avoid an error.  */
2878 /* We use char because int might match the return type of a gcc2
2879     builtin and then its argument prototype would still apply.  */
2880 char $ac_func();
2881
2882 int main() {
2883
2884 /* The GNU C library defines this for functions which it implements
2885     to always fail with ENOSYS.  Some functions are actually named
2886     something starting with __ and the normal name is an alias.  */
2887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2888 choke me
2889 #else
2890 $ac_func();
2891 #endif
2892
2893 ; return 0; }
2894 EOF
2895 if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2896   rm -rf conftest*
2897   eval "ac_cv_func_$ac_func=yes"
2898 else
2899   echo "configure: failed program was:" >&5
2900   cat conftest.$ac_ext >&5
2901   rm -rf conftest*
2902   eval "ac_cv_func_$ac_func=no"
2903 fi
2904 rm -f conftest*
2905 fi
2906
2907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2908   echo "$ac_t""yes" 1>&6
2909     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2910   cat >> confdefs.h <<EOF
2911 #define $ac_tr_func 1
2912 EOF
2913  
2914 else
2915   echo "$ac_t""no" 1>&6
2916 fi
2917 done
2918
2919    fi
2920    if test "${ac_cv_func_stpcpy}" = "yes"; then
2921      cat >> confdefs.h <<\EOF
2922 #define HAVE_STPCPY 1
2923 EOF
2924
2925    fi
2926
2927    if test $ac_cv_header_locale_h = yes; then
2928     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2929 echo "configure:2930: checking for LC_MESSAGES" >&5
2930 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2931   echo $ac_n "(cached) $ac_c" 1>&6
2932 else
2933   cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2936 #include <locale.h>
2937 int main() {
2938 return LC_MESSAGES
2939 ; return 0; }
2940 EOF
2941 if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2942   rm -rf conftest*
2943   am_cv_val_LC_MESSAGES=yes
2944 else
2945   echo "configure: failed program was:" >&5
2946   cat conftest.$ac_ext >&5
2947   rm -rf conftest*
2948   am_cv_val_LC_MESSAGES=no
2949 fi
2950 rm -f conftest*
2951 fi
2952
2953 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2954     if test $am_cv_val_LC_MESSAGES = yes; then
2955       cat >> confdefs.h <<\EOF
2956 #define HAVE_LC_MESSAGES 1
2957 EOF
2958
2959     fi
2960   fi
2961    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2962 echo "configure:2963: checking whether NLS is requested" >&5
2963         # Check whether --enable-nls or --disable-nls was given.
2964 if test "${enable_nls+set}" = set; then
2965   enableval="$enable_nls"
2966   USE_NLS=$enableval
2967 else
2968   USE_NLS=yes
2969 fi
2970
2971     echo "$ac_t""$USE_NLS" 1>&6
2972     
2973
2974     USE_INCLUDED_LIBINTL=no
2975
2976         if test "$USE_NLS" = "yes"; then
2977       cat >> confdefs.h <<\EOF
2978 #define ENABLE_NLS 1
2979 EOF
2980
2981       echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2982 echo "configure:2983: checking whether included gettext is requested" >&5
2983       # Check whether --with-included-gettext or --without-included-gettext was given.
2984 if test "${with_included_gettext+set}" = set; then
2985   withval="$with_included_gettext"
2986   nls_cv_force_use_gnu_gettext=$withval
2987 else
2988   nls_cv_force_use_gnu_gettext=no
2989 fi
2990
2991       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2992
2993       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2994       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2995                                         nls_cv_header_intl=
2996         nls_cv_header_libgt=
2997         CATOBJEXT=NONE
2998
2999         ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3000 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3001 echo "configure:3002: checking for libintl.h" >&5
3002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3003   echo $ac_n "(cached) $ac_c" 1>&6
3004 else
3005   cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 #include <libintl.h>
3009 EOF
3010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3011 { (eval echo configure:3012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3012 ac_err=`grep -v '^ *+' conftest.out`
3013 if test -z "$ac_err"; then
3014   rm -rf conftest*
3015   eval "ac_cv_header_$ac_safe=yes"
3016 else
3017   echo "$ac_err" >&5
3018   echo "configure: failed program was:" >&5
3019   cat conftest.$ac_ext >&5
3020   rm -rf conftest*
3021   eval "ac_cv_header_$ac_safe=no"
3022 fi
3023 rm -f conftest*
3024 fi
3025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3026   echo "$ac_t""yes" 1>&6
3027   echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3028 echo "configure:3029: checking for gettext in libc" >&5
3029 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3030   echo $ac_n "(cached) $ac_c" 1>&6
3031 else
3032   cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 #include <libintl.h>
3036 int main() {
3037 return (int) gettext ("")
3038 ; return 0; }
3039 EOF
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3041   rm -rf conftest*
3042   gt_cv_func_gettext_libc=yes
3043 else
3044   echo "configure: failed program was:" >&5
3045   cat conftest.$ac_ext >&5
3046   rm -rf conftest*
3047   gt_cv_func_gettext_libc=no
3048 fi
3049 rm -f conftest*
3050 fi
3051
3052 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3053
3054            if test "$gt_cv_func_gettext_libc" != "yes"; then
3055              echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3056 echo "configure:3057: checking for bindtextdomain in -lintl" >&5
3057 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3059   echo $ac_n "(cached) $ac_c" 1>&6
3060 else
3061   ac_save_LIBS="$LIBS"
3062 LIBS="-lintl  $LIBS"
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3066 /* Override any gcc2 internal prototype to avoid an error.  */
3067 /* We use char because int might match the return type of a gcc2
3068     builtin and then its argument prototype would still apply.  */
3069 char bindtextdomain();
3070
3071 int main() {
3072 bindtextdomain()
3073 ; return 0; }
3074 EOF
3075 if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3076   rm -rf conftest*
3077   eval "ac_cv_lib_$ac_lib_var=yes"
3078 else
3079   echo "configure: failed program was:" >&5
3080   cat conftest.$ac_ext >&5
3081   rm -rf conftest*
3082   eval "ac_cv_lib_$ac_lib_var=no"
3083 fi
3084 rm -f conftest*
3085 LIBS="$ac_save_LIBS"
3086
3087 fi
3088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3089   echo "$ac_t""yes" 1>&6
3090   echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3091 echo "configure:3092: checking for gettext in libintl" >&5
3092 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3093   echo $ac_n "(cached) $ac_c" 1>&6
3094 else
3095   cat > conftest.$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3098
3099 int main() {
3100 return (int) gettext ("")
3101 ; return 0; }
3102 EOF
3103 if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3104   rm -rf conftest*
3105   gt_cv_func_gettext_libintl=yes
3106 else
3107   echo "configure: failed program was:" >&5
3108   cat conftest.$ac_ext >&5
3109   rm -rf conftest*
3110   gt_cv_func_gettext_libintl=no
3111 fi
3112 rm -f conftest*
3113 fi
3114
3115 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3116 else
3117   echo "$ac_t""no" 1>&6
3118 fi
3119
3120            fi
3121
3122            if test "$gt_cv_func_gettext_libc" = "yes" \
3123               || test "$gt_cv_func_gettext_libintl" = "yes"; then
3124               cat >> confdefs.h <<\EOF
3125 #define HAVE_GETTEXT 1
3126 EOF
3127
3128               # Extract the first word of "msgfmt", so it can be a program name with args.
3129 set dummy msgfmt; ac_word=$2
3130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3131 echo "configure:3132: checking for $ac_word" >&5
3132 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3133   echo $ac_n "(cached) $ac_c" 1>&6
3134 else
3135   case "$MSGFMT" in
3136   /*)
3137   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3138   ;;
3139   *)
3140   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3141   for ac_dir in $PATH; do
3142     test -z "$ac_dir" && ac_dir=.
3143     if test -f $ac_dir/$ac_word; then
3144       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3145         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3146         break
3147       fi
3148     fi
3149   done
3150   IFS="$ac_save_ifs"
3151   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3152   ;;
3153 esac
3154 fi
3155 MSGFMT="$ac_cv_path_MSGFMT"
3156 if test -n "$MSGFMT"; then
3157   echo "$ac_t""$MSGFMT" 1>&6
3158 else
3159   echo "$ac_t""no" 1>&6
3160 fi
3161               if test "$MSGFMT" != "no"; then
3162                 for ac_func in dcgettext
3163 do
3164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3165 echo "configure:3166: checking for $ac_func" >&5
3166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3167   echo $ac_n "(cached) $ac_c" 1>&6
3168 else
3169   cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3172 /* System header to define __stub macros and hopefully few prototypes,
3173     which can conflict with char $ac_func(); below.  */
3174 #include <assert.h>
3175 /* Override any gcc2 internal prototype to avoid an error.  */
3176 /* We use char because int might match the return type of a gcc2
3177     builtin and then its argument prototype would still apply.  */
3178 char $ac_func();
3179
3180 int main() {
3181
3182 /* The GNU C library defines this for functions which it implements
3183     to always fail with ENOSYS.  Some functions are actually named
3184     something starting with __ and the normal name is an alias.  */
3185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3186 choke me
3187 #else
3188 $ac_func();
3189 #endif
3190
3191 ; return 0; }
3192 EOF
3193 if { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3194   rm -rf conftest*
3195   eval "ac_cv_func_$ac_func=yes"
3196 else
3197   echo "configure: failed program was:" >&5
3198   cat conftest.$ac_ext >&5
3199   rm -rf conftest*
3200   eval "ac_cv_func_$ac_func=no"
3201 fi
3202 rm -f conftest*
3203 fi
3204
3205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3206   echo "$ac_t""yes" 1>&6
3207     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3208   cat >> confdefs.h <<EOF
3209 #define $ac_tr_func 1
3210 EOF
3211  
3212 else
3213   echo "$ac_t""no" 1>&6
3214 fi
3215 done
3216
3217                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3218 set dummy gmsgfmt; ac_word=$2
3219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_word" >&5
3221 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3222   echo $ac_n "(cached) $ac_c" 1>&6
3223 else
3224   case "$GMSGFMT" in
3225   /*)
3226   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3227   ;;
3228   ?:/*)                  
3229   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3230   ;;
3231   *)
3232   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3233   for ac_dir in $PATH; do
3234     test -z "$ac_dir" && ac_dir=.
3235     if test -f $ac_dir/$ac_word; then
3236       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3237       break
3238     fi
3239   done
3240   IFS="$ac_save_ifs"
3241   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3242   ;;
3243 esac
3244 fi
3245 GMSGFMT="$ac_cv_path_GMSGFMT"
3246 if test -n "$GMSGFMT"; then
3247   echo "$ac_t""$GMSGFMT" 1>&6
3248 else
3249   echo "$ac_t""no" 1>&6
3250 fi
3251
3252                 # Extract the first word of "xgettext", so it can be a program name with args.
3253 set dummy xgettext; ac_word=$2
3254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3255 echo "configure:3256: checking for $ac_word" >&5
3256 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3257   echo $ac_n "(cached) $ac_c" 1>&6
3258 else
3259   case "$XGETTEXT" in
3260   /*)
3261   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3262   ;;
3263   *)
3264   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3265   for ac_dir in $PATH; do
3266     test -z "$ac_dir" && ac_dir=.
3267     if test -f $ac_dir/$ac_word; then
3268       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3269         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3270         break
3271       fi
3272     fi
3273   done
3274   IFS="$ac_save_ifs"
3275   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3276   ;;
3277 esac
3278 fi
3279 XGETTEXT="$ac_cv_path_XGETTEXT"
3280 if test -n "$XGETTEXT"; then
3281   echo "$ac_t""$XGETTEXT" 1>&6
3282 else
3283   echo "$ac_t""no" 1>&6
3284 fi
3285
3286                 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289
3290 int main() {
3291 extern int _nl_msg_cat_cntr;
3292                                return _nl_msg_cat_cntr
3293 ; return 0; }
3294 EOF
3295 if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3296   rm -rf conftest*
3297   CATOBJEXT=.gmo
3298                    DATADIRNAME=share
3299 else
3300   echo "configure: failed program was:" >&5
3301   cat conftest.$ac_ext >&5
3302   rm -rf conftest*
3303   CATOBJEXT=.mo
3304                    DATADIRNAME=lib
3305 fi
3306 rm -f conftest*
3307                 INSTOBJEXT=.mo
3308               fi
3309             fi
3310         
3311 else
3312   echo "$ac_t""no" 1>&6
3313 fi
3314
3315
3316         if test "$CATOBJEXT" = "NONE"; then
3317           echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
3318 echo "configure:3319: checking whether catgets can be used" >&5
3319           # Check whether --with-catgets or --without-catgets was given.
3320 if test "${with_catgets+set}" = set; then
3321   withval="$with_catgets"
3322   nls_cv_use_catgets=$withval
3323 else
3324   nls_cv_use_catgets=no
3325 fi
3326
3327           echo "$ac_t""$nls_cv_use_catgets" 1>&6
3328
3329           if test "$nls_cv_use_catgets" = "yes"; then
3330                     echo $ac_n "checking for main in -li""... $ac_c" 1>&6
3331 echo "configure:3332: checking for main in -li" >&5
3332 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
3333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3334   echo $ac_n "(cached) $ac_c" 1>&6
3335 else
3336   ac_save_LIBS="$LIBS"
3337 LIBS="-li  $LIBS"
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341
3342 int main() {
3343 main()
3344 ; return 0; }
3345 EOF
3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3347   rm -rf conftest*
3348   eval "ac_cv_lib_$ac_lib_var=yes"
3349 else
3350   echo "configure: failed program was:" >&5
3351   cat conftest.$ac_ext >&5
3352   rm -rf conftest*
3353   eval "ac_cv_lib_$ac_lib_var=no"
3354 fi
3355 rm -f conftest*
3356 LIBS="$ac_save_LIBS"
3357
3358 fi
3359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3360   echo "$ac_t""yes" 1>&6
3361     ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3362     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3363   cat >> confdefs.h <<EOF
3364 #define $ac_tr_lib 1
3365 EOF
3366
3367   LIBS="-li $LIBS"
3368
3369 else
3370   echo "$ac_t""no" 1>&6
3371 fi
3372
3373             echo $ac_n "checking for catgets""... $ac_c" 1>&6
3374 echo "configure:3375: checking for catgets" >&5
3375 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
3376   echo $ac_n "(cached) $ac_c" 1>&6
3377 else
3378   cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 /* System header to define __stub macros and hopefully few prototypes,
3382     which can conflict with char catgets(); below.  */
3383 #include <assert.h>
3384 /* Override any gcc2 internal prototype to avoid an error.  */
3385 /* We use char because int might match the return type of a gcc2
3386     builtin and then its argument prototype would still apply.  */
3387 char catgets();
3388
3389 int main() {
3390
3391 /* The GNU C library defines this for functions which it implements
3392     to always fail with ENOSYS.  Some functions are actually named
3393     something starting with __ and the normal name is an alias.  */
3394 #if defined (__stub_catgets) || defined (__stub___catgets)
3395 choke me
3396 #else
3397 catgets();
3398 #endif
3399
3400 ; return 0; }
3401 EOF
3402 if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3403   rm -rf conftest*
3404   eval "ac_cv_func_catgets=yes"
3405 else
3406   echo "configure: failed program was:" >&5
3407   cat conftest.$ac_ext >&5
3408   rm -rf conftest*
3409   eval "ac_cv_func_catgets=no"
3410 fi
3411 rm -f conftest*
3412 fi
3413
3414 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3415   echo "$ac_t""yes" 1>&6
3416   cat >> confdefs.h <<\EOF
3417 #define HAVE_CATGETS 1
3418 EOF
3419
3420                INTLOBJS="\$(CATOBJS)"
3421                # Extract the first word of "gencat", so it can be a program name with args.
3422 set dummy gencat; ac_word=$2
3423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3424 echo "configure:3425: checking for $ac_word" >&5
3425 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3426   echo $ac_n "(cached) $ac_c" 1>&6
3427 else
3428   case "$GENCAT" in
3429   /*)
3430   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3431   ;;
3432   ?:/*)                  
3433   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3434   ;;
3435   *)
3436   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3437   for ac_dir in $PATH; do
3438     test -z "$ac_dir" && ac_dir=.
3439     if test -f $ac_dir/$ac_word; then
3440       ac_cv_path_GENCAT="$ac_dir/$ac_word"
3441       break
3442     fi
3443   done
3444   IFS="$ac_save_ifs"
3445   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3446   ;;
3447 esac
3448 fi
3449 GENCAT="$ac_cv_path_GENCAT"
3450 if test -n "$GENCAT"; then
3451   echo "$ac_t""$GENCAT" 1>&6
3452 else
3453   echo "$ac_t""no" 1>&6
3454 fi
3455                if test "$GENCAT" != "no"; then
3456                  # Extract the first word of "gmsgfmt", so it can be a program name with args.
3457 set dummy gmsgfmt; ac_word=$2
3458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3459 echo "configure:3460: checking for $ac_word" >&5
3460 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3461   echo $ac_n "(cached) $ac_c" 1>&6
3462 else
3463   case "$GMSGFMT" in
3464   /*)
3465   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3466   ;;
3467   ?:/*)                  
3468   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3469   ;;
3470   *)
3471   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3472   for ac_dir in $PATH; do
3473     test -z "$ac_dir" && ac_dir=.
3474     if test -f $ac_dir/$ac_word; then
3475       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3476       break
3477     fi
3478   done
3479   IFS="$ac_save_ifs"
3480   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3481   ;;
3482 esac
3483 fi
3484 GMSGFMT="$ac_cv_path_GMSGFMT"
3485 if test -n "$GMSGFMT"; then
3486   echo "$ac_t""$GMSGFMT" 1>&6
3487 else
3488   echo "$ac_t""no" 1>&6
3489 fi
3490
3491                  if test "$GMSGFMT" = "no"; then
3492                    # Extract the first word of "msgfmt", so it can be a program name with args.
3493 set dummy msgfmt; ac_word=$2
3494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3495 echo "configure:3496: checking for $ac_word" >&5
3496 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3497   echo $ac_n "(cached) $ac_c" 1>&6
3498 else
3499   case "$GMSGFMT" in
3500   /*)
3501   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3502   ;;
3503   *)
3504   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3505   for ac_dir in $PATH; do
3506     test -z "$ac_dir" && ac_dir=.
3507     if test -f $ac_dir/$ac_word; then
3508       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3509         ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3510         break
3511       fi
3512     fi
3513   done
3514   IFS="$ac_save_ifs"
3515   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3516   ;;
3517 esac
3518 fi
3519 GMSGFMT="$ac_cv_path_GMSGFMT"
3520 if test -n "$GMSGFMT"; then
3521   echo "$ac_t""$GMSGFMT" 1>&6
3522 else
3523   echo "$ac_t""no" 1>&6
3524 fi
3525
3526                  fi
3527                  # Extract the first word of "xgettext", so it can be a program name with args.
3528 set dummy xgettext; ac_word=$2
3529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3530 echo "configure:3531: checking for $ac_word" >&5
3531 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3532   echo $ac_n "(cached) $ac_c" 1>&6
3533 else
3534   case "$XGETTEXT" in
3535   /*)
3536   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3537   ;;
3538   *)
3539   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3540   for ac_dir in $PATH; do
3541     test -z "$ac_dir" && ac_dir=.
3542     if test -f $ac_dir/$ac_word; then
3543       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3544         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3545         break
3546       fi
3547     fi
3548   done
3549   IFS="$ac_save_ifs"
3550   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3551   ;;
3552 esac
3553 fi
3554 XGETTEXT="$ac_cv_path_XGETTEXT"
3555 if test -n "$XGETTEXT"; then
3556   echo "$ac_t""$XGETTEXT" 1>&6
3557 else
3558   echo "$ac_t""no" 1>&6
3559 fi
3560
3561                  USE_INCLUDED_LIBINTL=yes
3562                  CATOBJEXT=.cat
3563                  INSTOBJEXT=.cat
3564                  DATADIRNAME=lib
3565                  INTLDEPS='$(top_builddir)/intl/libintl.a'
3566                  INTLLIBS=$INTLDEPS
3567                  LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3568                  nls_cv_header_intl=intl/libintl.h
3569                  nls_cv_header_libgt=intl/libgettext.h
3570                fi
3571 else
3572   echo "$ac_t""no" 1>&6
3573 fi
3574
3575           fi
3576         fi
3577
3578         if test "$CATOBJEXT" = "NONE"; then
3579                           nls_cv_use_gnu_gettext=yes
3580         fi
3581       fi
3582
3583       if test "$nls_cv_use_gnu_gettext" = "yes"; then
3584                 INTLOBJS="\$(GETTOBJS)"
3585         # Extract the first word of "msgfmt", so it can be a program name with args.
3586 set dummy msgfmt; ac_word=$2
3587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3588 echo "configure:3589: checking for $ac_word" >&5
3589 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3590   echo $ac_n "(cached) $ac_c" 1>&6
3591 else
3592   case "$MSGFMT" in
3593   /*)
3594   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3595   ;;
3596   *)
3597   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3598   for ac_dir in $PATH; do
3599     test -z "$ac_dir" && ac_dir=.
3600     if test -f $ac_dir/$ac_word; then
3601       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3602         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3603         break
3604       fi
3605     fi
3606   done
3607   IFS="$ac_save_ifs"
3608   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3609   ;;
3610 esac
3611 fi
3612 MSGFMT="$ac_cv_path_MSGFMT"
3613 if test -n "$MSGFMT"; then
3614   echo "$ac_t""$MSGFMT" 1>&6
3615 else
3616   echo "$ac_t""no" 1>&6
3617 fi
3618
3619         # Extract the first word of "gmsgfmt", so it can be a program name with args.
3620 set dummy gmsgfmt; ac_word=$2
3621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3622 echo "configure:3623: checking for $ac_word" >&5
3623 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3624   echo $ac_n "(cached) $ac_c" 1>&6
3625 else
3626   case "$GMSGFMT" in
3627   /*)
3628   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3629   ;;
3630   ?:/*)                  
3631   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3632   ;;
3633   *)
3634   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3635   for ac_dir in $PATH; do
3636     test -z "$ac_dir" && ac_dir=.
3637     if test -f $ac_dir/$ac_word; then
3638       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3639       break
3640     fi
3641   done
3642   IFS="$ac_save_ifs"
3643   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3644   ;;
3645 esac
3646 fi
3647 GMSGFMT="$ac_cv_path_GMSGFMT"
3648 if test -n "$GMSGFMT"; then
3649   echo "$ac_t""$GMSGFMT" 1>&6
3650 else
3651   echo "$ac_t""no" 1>&6
3652 fi
3653
3654         # Extract the first word of "xgettext", so it can be a program name with args.
3655 set dummy xgettext; ac_word=$2
3656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3657 echo "configure:3658: checking for $ac_word" >&5
3658 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3659   echo $ac_n "(cached) $ac_c" 1>&6
3660 else
3661   case "$XGETTEXT" in
3662   /*)
3663   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3664   ;;
3665   *)
3666   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3667   for ac_dir in $PATH; do
3668     test -z "$ac_dir" && ac_dir=.
3669     if test -f $ac_dir/$ac_word; then
3670       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3671         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3672         break
3673       fi
3674     fi
3675   done
3676   IFS="$ac_save_ifs"
3677   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3678   ;;
3679 esac
3680 fi
3681 XGETTEXT="$ac_cv_path_XGETTEXT"
3682 if test -n "$XGETTEXT"; then
3683   echo "$ac_t""$XGETTEXT" 1>&6
3684 else
3685   echo "$ac_t""no" 1>&6
3686 fi
3687
3688         
3689         USE_INCLUDED_LIBINTL=yes
3690         CATOBJEXT=.gmo
3691         INSTOBJEXT=.mo
3692         DATADIRNAME=share
3693         INTLDEPS='$(top_builddir)/intl/libintl.a'
3694         INTLLIBS=$INTLDEPS
3695         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3696         nls_cv_header_intl=intl/libintl.h
3697         nls_cv_header_libgt=intl/libgettext.h
3698       fi
3699
3700             if test "$XGETTEXT" != ":"; then
3701                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3702           : ;
3703         else
3704           echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3705           XGETTEXT=":"
3706         fi
3707       fi
3708
3709       # We need to process the po/ directory.
3710       POSUB=po
3711     else
3712       DATADIRNAME=share
3713       nls_cv_header_intl=intl/libintl.h
3714       nls_cv_header_libgt=intl/libgettext.h
3715     fi
3716
3717     # If this is used in GNU gettext we have to set USE_NLS to `yes'
3718     # because some of the sources are only built for this goal.
3719     if test "$PACKAGE" = gettext; then
3720       USE_NLS=yes
3721       USE_INCLUDED_LIBINTL=yes
3722     fi
3723
3724                 for lang in $ALL_LINGUAS; do
3725       GMOFILES="$GMOFILES $lang.gmo"
3726       POFILES="$POFILES $lang.po"
3727     done
3728
3729         
3730     
3731     
3732     
3733     
3734     
3735     
3736     
3737     
3738     
3739     
3740   
3741
3742    if test "x$CATOBJEXT" != "x"; then
3743      if test "x$ALL_LINGUAS" = "x"; then
3744        LINGUAS=
3745      else
3746        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3747 echo "configure:3748: checking for catalogs to be installed" >&5
3748        NEW_LINGUAS=
3749        for lang in ${LINGUAS=$ALL_LINGUAS}; do
3750          case "$ALL_LINGUAS" in
3751           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3752          esac
3753        done
3754        LINGUAS=$NEW_LINGUAS
3755        echo "$ac_t""$LINGUAS" 1>&6
3756      fi
3757
3758           if test -n "$LINGUAS"; then
3759        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3760      fi
3761    fi
3762
3763             if test $ac_cv_header_locale_h = yes; then
3764      INCLUDE_LOCALE_H="#include <locale.h>"
3765    else
3766      INCLUDE_LOCALE_H="\
3767 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
3768    fi
3769    
3770
3771             test -d intl || mkdir intl
3772    if test "$CATOBJEXT" = ".cat"; then
3773      ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3774 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3775 echo "configure:3776: checking for linux/version.h" >&5
3776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3777   echo $ac_n "(cached) $ac_c" 1>&6
3778 else
3779   cat > conftest.$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782 #include <linux/version.h>
3783 EOF
3784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3785 { (eval echo configure:3786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3786 ac_err=`grep -v '^ *+' conftest.out`
3787 if test -z "$ac_err"; then
3788   rm -rf conftest*
3789   eval "ac_cv_header_$ac_safe=yes"
3790 else
3791   echo "$ac_err" >&5
3792   echo "configure: failed program was:" >&5
3793   cat conftest.$ac_ext >&5
3794   rm -rf conftest*
3795   eval "ac_cv_header_$ac_safe=no"
3796 fi
3797 rm -f conftest*
3798 fi
3799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3800   echo "$ac_t""yes" 1>&6
3801   msgformat=linux
3802 else
3803   echo "$ac_t""no" 1>&6
3804 msgformat=xopen
3805 fi
3806
3807
3808                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3809    fi
3810       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3811      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3812
3813             if test "$PACKAGE" = "gettext"; then
3814      GT_NO="#NO#"
3815      GT_YES=
3816    else
3817      GT_NO=
3818      GT_YES="#YES#"
3819    fi
3820    
3821    
3822
3823             MKINSTALLDIRS=
3824    if test -n "$ac_aux_dir"; then
3825      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3826    fi
3827    if test -z "$MKINSTALLDIRS"; then
3828      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3829    fi
3830    
3831
3832       l=
3833    
3834
3835          test -d po || mkdir po
3836    if test "x$srcdir" != "x."; then
3837      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3838        posrcprefix="$srcdir/"
3839      else
3840        posrcprefix="../$srcdir/"
3841      fi
3842    else
3843      posrcprefix="../"
3844    fi
3845    rm -f po/POTFILES
3846    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3847         < $srcdir/po/POTFILES.in > po/POTFILES
3848   
3849
3850
3851 trap '' 1 2 15
3852 cat > confcache <<\EOF
3853 # This file is a shell script that caches the results of configure
3854 # tests run on this system so they can be shared between configure
3855 # scripts and configure runs.  It is not useful on other systems.
3856 # If it contains results you don't want to keep, you may remove or edit it.
3857 #
3858 # By default, configure uses ./config.cache as the cache file,
3859 # creating it if it does not exist already.  You can give configure
3860 # the --cache-file=FILE option to use a different cache file; that is
3861 # what configure does when it calls configure scripts in
3862 # subdirectories, so they share the cache.
3863 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3864 # config.status only pays attention to the cache file if you give it the
3865 # --recheck option to rerun configure.
3866 #
3867 EOF
3868 # The following way of writing the cache mishandles newlines in values,
3869 # but we know of no workaround that is simple, portable, and efficient.
3870 # So, don't put newlines in cache variables' values.
3871 # Ultrix sh set writes to stderr and can't be redirected directly,
3872 # and sets the high bit in the cache file unless we assign to the vars.
3873 (set) 2>&1 |
3874   case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3875   *ac_space=\ *)
3876     # `set' does not quote correctly, so add quotes (double-quote substitution
3877     # turns \\\\ into \\, and sed turns \\ into \).
3878     sed -n \
3879       -e "s/'/'\\\\''/g" \
3880       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3881     ;;
3882   *)
3883     # `set' quotes correctly as required by POSIX, so do not add quotes.
3884     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3885     ;;
3886   esac >> confcache
3887 if cmp -s $cache_file confcache; then
3888   :
3889 else
3890   if test -w $cache_file; then
3891     echo "updating cache $cache_file"
3892     cat confcache > $cache_file
3893   else
3894     echo "not updating unwritable cache $cache_file"
3895   fi
3896 fi
3897 rm -f confcache
3898
3899 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3900
3901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3902 # Let make expand exec_prefix.
3903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3904
3905 # Any assignment to VPATH causes Sun make to only execute
3906 # the first set of double-colon rules, so remove it if not needed.
3907 # If there is a colon in the path, we need to keep it.
3908 if test "x$srcdir" = x.; then
3909   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3910 fi
3911
3912 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3913
3914 DEFS=-DHAVE_CONFIG_H
3915
3916 # Without the "./", some shells look in PATH for config.status.
3917 : ${CONFIG_STATUS=./config.status}
3918
3919 echo creating $CONFIG_STATUS
3920 rm -f $CONFIG_STATUS
3921 cat > $CONFIG_STATUS <<EOF
3922 #! /bin/sh
3923 # Generated automatically by configure.
3924 # Run this file to recreate the current configuration.
3925 # This directory was configured as follows,
3926 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3927 #
3928 # $0 $ac_configure_args
3929 #
3930 # Compiler output produced by configure, useful for debugging
3931 # configure, is in ./config.log if it exists.
3932
3933 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3934 for ac_option
3935 do
3936   case "\$ac_option" in
3937   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3938     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3939     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3940   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3941     echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3942     exit 0 ;;
3943   -help | --help | --hel | --he | --h)
3944     echo "\$ac_cs_usage"; exit 0 ;;
3945   *) echo "\$ac_cs_usage"; exit 1 ;;
3946   esac
3947 done
3948
3949 ac_given_srcdir=$srcdir
3950 ac_given_INSTALL="$INSTALL"
3951
3952 trap 'rm -fr `echo "Makefile             \
3953            doc/Makefile         \
3954            info/Makefile        \
3955            intl/Makefile        \
3956            lib/Makefile         \
3957            makeinfo/Makefile    \
3958            po/Makefile.in       \
3959            util/Makefile        \
3960             config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3961 EOF
3962 cat >> $CONFIG_STATUS <<EOF
3963
3964 # Protect against being on the right side of a sed subst in config.status.
3965 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3966  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3967 $ac_vpsub
3968 $extrasub
3969 s%@SHELL@%$SHELL%g
3970 s%@CFLAGS@%$CFLAGS%g
3971 s%@CPPFLAGS@%$CPPFLAGS%g
3972 s%@CXXFLAGS@%$CXXFLAGS%g
3973 s%@DEFS@%$DEFS%g
3974 s%@LDFLAGS@%$LDFLAGS%g
3975 s%@LIBS@%$LIBS%g
3976 s%@exec_prefix@%$exec_prefix%g
3977 s%@prefix@%$prefix%g
3978 s%@program_transform_name@%$program_transform_name%g
3979 s%@bindir@%$bindir%g
3980 s%@sbindir@%$sbindir%g
3981 s%@libexecdir@%$libexecdir%g
3982 s%@datadir@%$datadir%g
3983 s%@sysconfdir@%$sysconfdir%g
3984 s%@sharedstatedir@%$sharedstatedir%g
3985 s%@localstatedir@%$localstatedir%g
3986 s%@libdir@%$libdir%g
3987 s%@includedir@%$includedir%g
3988 s%@oldincludedir@%$oldincludedir%g
3989 s%@infodir@%$infodir%g
3990 s%@mandir@%$mandir%g
3991 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3992 s%@INSTALL_DATA@%$INSTALL_DATA%g
3993 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3994 s%@PACKAGE@%$PACKAGE%g
3995 s%@VERSION@%$VERSION%g
3996 s%@ACLOCAL@%$ACLOCAL%g
3997 s%@AUTOCONF@%$AUTOCONF%g
3998 s%@AUTOMAKE@%$AUTOMAKE%g
3999 s%@AUTOHEADER@%$AUTOHEADER%g
4000 s%@MAKEINFO@%$MAKEINFO%g
4001 s%@SET_MAKE@%$SET_MAKE%g
4002 s%@CC@%$CC%g
4003 s%@CPP@%$CPP%g
4004 s%@INSTALL@%$INSTALL%g
4005 s%@RANLIB@%$RANLIB%g
4006 s%@TEXCONFIG@%$TEXCONFIG%g
4007 s%@TEXMF@%$TEXMF%g
4008 s%@MAINT@%$MAINT%g
4009 s%@EXEEXT@%$EXEEXT%g
4010 s%@TERMLIBS@%$TERMLIBS%g
4011 s%@ALLOCA@%$ALLOCA%g
4012 s%@LIBOBJS@%$LIBOBJS%g
4013 s%@USE_NLS@%$USE_NLS%g
4014 s%@MSGFMT@%$MSGFMT%g
4015 s%@GMSGFMT@%$GMSGFMT%g
4016 s%@XGETTEXT@%$XGETTEXT%g
4017 s%@GENCAT@%$GENCAT%g
4018 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4019 s%@CATALOGS@%$CATALOGS%g
4020 s%@CATOBJEXT@%$CATOBJEXT%g
4021 s%@DATADIRNAME@%$DATADIRNAME%g
4022 s%@GMOFILES@%$GMOFILES%g
4023 s%@INSTOBJEXT@%$INSTOBJEXT%g
4024 s%@INTLDEPS@%$INTLDEPS%g
4025 s%@INTLLIBS@%$INTLLIBS%g
4026 s%@INTLOBJS@%$INTLOBJS%g
4027 s%@POFILES@%$POFILES%g
4028 s%@POSUB@%$POSUB%g
4029 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4030 s%@GT_NO@%$GT_NO%g
4031 s%@GT_YES@%$GT_YES%g
4032 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4033 s%@l@%$l%g
4034
4035 CEOF
4036 EOF
4037
4038 cat >> $CONFIG_STATUS <<\EOF
4039
4040 # Split the substitutions into bite-sized pieces for seds with
4041 # small command number limits, like on Digital OSF/1 and HP-UX.
4042 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4043 ac_file=1 # Number of current file.
4044 ac_beg=1 # First line for current file.
4045 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4046 ac_more_lines=:
4047 ac_sed_cmds=""
4048 while $ac_more_lines; do
4049   if test $ac_beg -gt 1; then
4050     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4051   else
4052     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4053   fi
4054   if test ! -s conftest.s$ac_file; then
4055     ac_more_lines=false
4056     rm -f conftest.s$ac_file
4057   else
4058     if test -z "$ac_sed_cmds"; then
4059       ac_sed_cmds="sed -f conftest.s$ac_file"
4060     else
4061       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4062     fi
4063     ac_file=`expr $ac_file + 1`
4064     ac_beg=$ac_end
4065     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4066   fi
4067 done
4068 if test -z "$ac_sed_cmds"; then
4069   ac_sed_cmds=cat
4070 fi
4071 EOF
4072
4073 cat >> $CONFIG_STATUS <<EOF
4074
4075 CONFIG_FILES=\${CONFIG_FILES-"Makefile             \
4076            doc/Makefile         \
4077            info/Makefile        \
4078            intl/Makefile        \
4079            lib/Makefile         \
4080            makeinfo/Makefile    \
4081            po/Makefile.in       \
4082            util/Makefile        \
4083            "}
4084 EOF
4085 cat >> $CONFIG_STATUS <<\EOF
4086 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4087   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4088   case "$ac_file" in
4089   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4090        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4091   *) ac_file_in="${ac_file}.in" ;;
4092   esac
4093
4094   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4095
4096   # Remove last slash and all that follows it.  Not all systems have dirname.
4097   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4098   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4099     # The file is in a subdirectory.
4100     test ! -d "$ac_dir" && mkdir "$ac_dir"
4101     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4102     # A "../" for each directory in $ac_dir_suffix.
4103     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4104   else
4105     ac_dir_suffix= ac_dots=
4106   fi
4107
4108   case "$ac_given_srcdir" in
4109   .)  srcdir=.
4110       if test -z "$ac_dots"; then top_srcdir=.
4111       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4112   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4113   *) # Relative path.
4114     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4115     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4116   esac
4117
4118   case "$ac_given_INSTALL" in
4119   [/$]*) INSTALL="$ac_given_INSTALL" ;;
4120   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4121   esac
4122
4123   echo creating "$ac_file"
4124   rm -f "$ac_file"
4125   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4126   case "$ac_file" in
4127   *Makefile*) ac_comsub="1i\\
4128 # $configure_input" ;;
4129   *) ac_comsub= ;;
4130   esac
4131
4132   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4133   sed -e "$ac_comsub
4134 s%@configure_input@%$configure_input%g
4135 s%@srcdir@%$srcdir%g
4136 s%@top_srcdir@%$top_srcdir%g
4137 s%@INSTALL@%$INSTALL%g
4138 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4139 fi; done
4140 rm -f conftest.s*
4141
4142 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4143 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4144 #
4145 # ac_d sets the value in "#define NAME VALUE" lines.
4146 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4147 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4148 ac_dC='\3'
4149 ac_dD='%g'
4150 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4151 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4152 ac_uB='\([      ]\)%\1#\2define\3'
4153 ac_uC=' '
4154 ac_uD='\4%g'
4155 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4156 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4157 ac_eB='$%\1#\2define\3'
4158 ac_eC=' '
4159 ac_eD='%g'
4160
4161 if test "${CONFIG_HEADERS+set}" != set; then
4162 EOF
4163 cat >> $CONFIG_STATUS <<EOF
4164   CONFIG_HEADERS="config.h"
4165 EOF
4166 cat >> $CONFIG_STATUS <<\EOF
4167 fi
4168 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4169   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4170   case "$ac_file" in
4171   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4172        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4173   *) ac_file_in="${ac_file}.in" ;;
4174   esac
4175
4176   echo creating $ac_file
4177
4178   rm -f conftest.frag conftest.in conftest.out
4179   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4180   cat $ac_file_inputs > conftest.in
4181
4182 EOF
4183
4184 # Transform confdefs.h into a sed script conftest.vals that substitutes
4185 # the proper values into config.h.in to produce config.h.  And first:
4186 # Protect against being on the right side of a sed subst in config.status.
4187 # Protect against being in an unquoted here document in config.status.
4188 rm -f conftest.vals
4189 cat > conftest.hdr <<\EOF
4190 s/[\\&%]/\\&/g
4191 s%[\\$`]%\\&%g
4192 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4193 s%ac_d%ac_u%gp
4194 s%ac_u%ac_e%gp
4195 EOF
4196 sed -n -f conftest.hdr confdefs.h > conftest.vals
4197 rm -f conftest.hdr
4198
4199 # This sed command replaces #undef with comments.  This is necessary, for
4200 # example, in the case of _POSIX_SOURCE, which is predefined and required
4201 # on some systems where configure will not decide to define it.
4202 cat >> conftest.vals <<\EOF
4203 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4204 EOF
4205
4206 # Break up conftest.vals because some shells have a limit on
4207 # the size of here documents, and old seds have small limits too.
4208
4209 rm -f conftest.tail
4210 while :
4211 do
4212   ac_lines=`grep -c . conftest.vals`
4213   # grep -c gives empty output for an empty file on some AIX systems.
4214   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4215   # Write a limited-size here document to conftest.frag.
4216   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4217   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4218   echo 'CEOF
4219   sed -f conftest.frag conftest.in > conftest.out
4220   rm -f conftest.in
4221   mv conftest.out conftest.in
4222 ' >> $CONFIG_STATUS
4223   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4224   rm -f conftest.vals
4225   mv conftest.tail conftest.vals
4226 done
4227 rm -f conftest.vals
4228
4229 cat >> $CONFIG_STATUS <<\EOF
4230   rm -f conftest.frag conftest.h
4231   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4232   cat conftest.in >> conftest.h
4233   rm -f conftest.in
4234   if cmp -s $ac_file conftest.h 2>/dev/null; then
4235     echo "$ac_file is unchanged"
4236     rm -f conftest.h
4237   else
4238     # Remove last slash and all that follows it.  Not all systems have dirname.
4239       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4240       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4241       # The file is in a subdirectory.
4242       test ! -d "$ac_dir" && mkdir "$ac_dir"
4243     fi
4244     rm -f $ac_file
4245     mv conftest.h $ac_file
4246   fi
4247 fi; done
4248
4249 EOF
4250
4251 cat >> $CONFIG_STATUS <<EOF
4252 ac_sources="$nls_cv_header_libgt"
4253 ac_dests="$nls_cv_header_intl"
4254 EOF
4255
4256 cat >> $CONFIG_STATUS <<\EOF
4257 srcdir=$ac_given_srcdir
4258 while test -n "$ac_sources"; do
4259   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4260   set $ac_sources; ac_source=$1; shift; ac_sources=$*
4261
4262   echo "linking $srcdir/$ac_source to $ac_dest"
4263
4264   if test ! -r $srcdir/$ac_source; then
4265     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4266   fi
4267   rm -f $ac_dest
4268
4269   # Make relative symlinks.
4270   # Remove last slash and all that follows it.  Not all systems have dirname.
4271   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4272   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4273     # The dest file is in a subdirectory.
4274     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4275     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4276     # A "../" for each directory in $ac_dest_dir_suffix.
4277     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4278   else
4279     ac_dest_dir_suffix= ac_dots=
4280   fi
4281
4282   case "$srcdir" in
4283   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4284   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4285   esac
4286
4287   # Make a symlink if possible; otherwise try a hard link.
4288   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4289     ln $srcdir/$ac_source $ac_dest; then :
4290   else
4291     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4292   fi
4293 done
4294 EOF
4295 cat >> $CONFIG_STATUS <<EOF
4296
4297
4298 EOF
4299 cat >> $CONFIG_STATUS <<\EOF
4300 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4301 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile
4302 exit 0
4303 EOF
4304 chmod +x $CONFIG_STATUS
4305 rm -fr confdefs* $ac_clean_files
4306 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4307