source: trunk/third/enscript/configure @ 18541

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