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