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