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