source: trunk/third/sed/configure @ 17271

Revision 17271, 79.0 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17270, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.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:
14ac_help="$ac_help
15  --with-regex=REGEX-LIB  specify an alternative regex implementation"
16
17# Initialize some variables set by options.
18# The variables have the same names as the options, with
19# dashes changed to underlines.
20build=NONE
21cache_file=./config.cache
22exec_prefix=NONE
23host=NONE
24no_create=
25nonopt=NONE
26no_recursion=
27prefix=NONE
28program_prefix=NONE
29program_suffix=NONE
30program_transform_name=s,x,x,
31silent=
32site=
33srcdir=
34target=NONE
35verbose=
36x_includes=NONE
37x_libraries=NONE
38bindir='${exec_prefix}/bin'
39sbindir='${exec_prefix}/sbin'
40libexecdir='${exec_prefix}/libexec'
41datadir='${prefix}/share'
42sysconfdir='${prefix}/etc'
43sharedstatedir='${prefix}/com'
44localstatedir='${prefix}/var'
45libdir='${exec_prefix}/lib'
46includedir='${prefix}/include'
47oldincludedir='/usr/include'
48infodir='${prefix}/info'
49mandir='${prefix}/man'
50
51# Initialize some other variables.
52subdirs=
53MFLAGS= MAKEFLAGS=
54# Maximum number of lines to put in a shell here document.
55ac_max_here_lines=12
56
57ac_prev=
58for ac_option
59do
60
61  # If the previous option needs an argument, assign it.
62  if test -n "$ac_prev"; then
63    eval "$ac_prev=\$ac_option"
64    ac_prev=
65    continue
66  fi
67
68  case "$ac_option" in
69  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
70  *) ac_optarg= ;;
71  esac
72
73  # Accept the important Cygnus configure options, so we can diagnose typos.
74
75  case "$ac_option" in
76
77  -bindir | --bindir | --bindi | --bind | --bin | --bi)
78    ac_prev=bindir ;;
79  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80    bindir="$ac_optarg" ;;
81
82  -build | --build | --buil | --bui | --bu)
83    ac_prev=build ;;
84  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85    build="$ac_optarg" ;;
86
87  -cache-file | --cache-file | --cache-fil | --cache-fi \
88  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89    ac_prev=cache_file ;;
90  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92    cache_file="$ac_optarg" ;;
93
94  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95    ac_prev=datadir ;;
96  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97  | --da=*)
98    datadir="$ac_optarg" ;;
99
100  -disable-* | --disable-*)
101    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
102    # Reject names that are not valid shell variable names.
103    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105    fi
106    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107    eval "enable_${ac_feature}=no" ;;
108
109  -enable-* | --enable-*)
110    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111    # Reject names that are not valid shell variable names.
112    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114    fi
115    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116    case "$ac_option" in
117      *=*) ;;
118      *) ac_optarg=yes ;;
119    esac
120    eval "enable_${ac_feature}='$ac_optarg'" ;;
121
122  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124  | --exec | --exe | --ex)
125    ac_prev=exec_prefix ;;
126  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128  | --exec=* | --exe=* | --ex=*)
129    exec_prefix="$ac_optarg" ;;
130
131  -gas | --gas | --ga | --g)
132    # Obsolete; use --with-gas.
133    with_gas=yes ;;
134
135  -help | --help | --hel | --he)
136    # Omit some internal or obsolete options to make the list less imposing.
137    # This message is too long to be a string in the A/UX 3.1 sh.
138    cat << EOF
139Usage: configure [options] [host]
140Options: [defaults in brackets after descriptions]
141Configuration:
142  --cache-file=FILE       cache test results in FILE
143  --help                  print this message
144  --no-create             do not create output files
145  --quiet, --silent       do not print \`checking...' messages
146  --version               print the version of autoconf that created configure
147Directory and file names:
148  --prefix=PREFIX         install architecture-independent files in PREFIX
149                          [$ac_default_prefix]
150  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
151                          [same as prefix]
152  --bindir=DIR            user executables in DIR [EPREFIX/bin]
153  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
154  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
155  --datadir=DIR           read-only architecture-independent data in DIR
156                          [PREFIX/share]
157  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
158  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
159                          [PREFIX/com]
160  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
161  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
162  --includedir=DIR        C header files in DIR [PREFIX/include]
163  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
164  --infodir=DIR           info documentation in DIR [PREFIX/info]
165  --mandir=DIR            man documentation in DIR [PREFIX/man]
166  --srcdir=DIR            find the sources in DIR [configure dir or ..]
167  --program-prefix=PREFIX prepend PREFIX to installed program names
168  --program-suffix=SUFFIX append SUFFIX to installed program names
169  --program-transform-name=PROGRAM
170                          run sed PROGRAM on installed program names
171EOF
172    cat << EOF
173Host type:
174  --build=BUILD           configure for building on BUILD [BUILD=HOST]
175  --host=HOST             configure for HOST [guessed]
176  --target=TARGET         configure for TARGET [TARGET=HOST]
177Features and packages:
178  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
179  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
180  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
181  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
182  --x-includes=DIR        X include files are in DIR
183  --x-libraries=DIR       X library files are in DIR
184EOF
185    if test -n "$ac_help"; then
186      echo "--enable and --with options recognized:$ac_help"
187    fi
188    exit 0 ;;
189
190  -host | --host | --hos | --ho)
191    ac_prev=host ;;
192  -host=* | --host=* | --hos=* | --ho=*)
193    host="$ac_optarg" ;;
194
195  -includedir | --includedir | --includedi | --included | --include \
196  | --includ | --inclu | --incl | --inc)
197    ac_prev=includedir ;;
198  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
199  | --includ=* | --inclu=* | --incl=* | --inc=*)
200    includedir="$ac_optarg" ;;
201
202  -infodir | --infodir | --infodi | --infod | --info | --inf)
203    ac_prev=infodir ;;
204  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
205    infodir="$ac_optarg" ;;
206
207  -libdir | --libdir | --libdi | --libd)
208    ac_prev=libdir ;;
209  -libdir=* | --libdir=* | --libdi=* | --libd=*)
210    libdir="$ac_optarg" ;;
211
212  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
213  | --libexe | --libex | --libe)
214    ac_prev=libexecdir ;;
215  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
216  | --libexe=* | --libex=* | --libe=*)
217    libexecdir="$ac_optarg" ;;
218
219  -localstatedir | --localstatedir | --localstatedi | --localstated \
220  | --localstate | --localstat | --localsta | --localst \
221  | --locals | --local | --loca | --loc | --lo)
222    ac_prev=localstatedir ;;
223  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
224  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
225  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
226    localstatedir="$ac_optarg" ;;
227
228  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229    ac_prev=mandir ;;
230  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
231    mandir="$ac_optarg" ;;
232
233  -nfp | --nfp | --nf)
234    # Obsolete; use --without-fp.
235    with_fp=no ;;
236
237  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
238  | --no-cr | --no-c)
239    no_create=yes ;;
240
241  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
242  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
243    no_recursion=yes ;;
244
245  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
246  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
247  | --oldin | --oldi | --old | --ol | --o)
248    ac_prev=oldincludedir ;;
249  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
250  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
251  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
252    oldincludedir="$ac_optarg" ;;
253
254  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255    ac_prev=prefix ;;
256  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
257    prefix="$ac_optarg" ;;
258
259  -program-prefix | --program-prefix | --program-prefi | --program-pref \
260  | --program-pre | --program-pr | --program-p)
261    ac_prev=program_prefix ;;
262  -program-prefix=* | --program-prefix=* | --program-prefi=* \
263  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
264    program_prefix="$ac_optarg" ;;
265
266  -program-suffix | --program-suffix | --program-suffi | --program-suff \
267  | --program-suf | --program-su | --program-s)
268    ac_prev=program_suffix ;;
269  -program-suffix=* | --program-suffix=* | --program-suffi=* \
270  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
271    program_suffix="$ac_optarg" ;;
272
273  -program-transform-name | --program-transform-name \
274  | --program-transform-nam | --program-transform-na \
275  | --program-transform-n | --program-transform- \
276  | --program-transform | --program-transfor \
277  | --program-transfo | --program-transf \
278  | --program-trans | --program-tran \
279  | --progr-tra | --program-tr | --program-t)
280    ac_prev=program_transform_name ;;
281  -program-transform-name=* | --program-transform-name=* \
282  | --program-transform-nam=* | --program-transform-na=* \
283  | --program-transform-n=* | --program-transform-=* \
284  | --program-transform=* | --program-transfor=* \
285  | --program-transfo=* | --program-transf=* \
286  | --program-trans=* | --program-tran=* \
287  | --progr-tra=* | --program-tr=* | --program-t=*)
288    program_transform_name="$ac_optarg" ;;
289
290  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
291  | -silent | --silent | --silen | --sile | --sil)
292    silent=yes ;;
293
294  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295    ac_prev=sbindir ;;
296  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297  | --sbi=* | --sb=*)
298    sbindir="$ac_optarg" ;;
299
300  -sharedstatedir | --sharedstatedir | --sharedstatedi \
301  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
302  | --sharedst | --shareds | --shared | --share | --shar \
303  | --sha | --sh)
304    ac_prev=sharedstatedir ;;
305  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
306  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
307  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308  | --sha=* | --sh=*)
309    sharedstatedir="$ac_optarg" ;;
310
311  -site | --site | --sit)
312    ac_prev=site ;;
313  -site=* | --site=* | --sit=*)
314    site="$ac_optarg" ;;
315
316  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317    ac_prev=srcdir ;;
318  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
319    srcdir="$ac_optarg" ;;
320
321  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
322  | --syscon | --sysco | --sysc | --sys | --sy)
323    ac_prev=sysconfdir ;;
324  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
325  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
326    sysconfdir="$ac_optarg" ;;
327
328  -target | --target | --targe | --targ | --tar | --ta | --t)
329    ac_prev=target ;;
330  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
331    target="$ac_optarg" ;;
332
333  -v | -verbose | --verbose | --verbos | --verbo | --verb)
334    verbose=yes ;;
335
336  -version | --version | --versio | --versi | --vers)
337    echo "configure generated by autoconf version 2.12"
338    exit 0 ;;
339
340  -with-* | --with-*)
341    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
342    # Reject names that are not valid shell variable names.
343    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
344      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345    fi
346    ac_package=`echo $ac_package| sed 's/-/_/g'`
347    case "$ac_option" in
348      *=*) ;;
349      *) ac_optarg=yes ;;
350    esac
351    eval "with_${ac_package}='$ac_optarg'" ;;
352
353  -without-* | --without-*)
354    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
355    # Reject names that are not valid shell variable names.
356    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
357      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358    fi
359    ac_package=`echo $ac_package| sed 's/-/_/g'`
360    eval "with_${ac_package}=no" ;;
361
362  --x)
363    # Obsolete; use --with-x.
364    with_x=yes ;;
365
366  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
367  | --x-incl | --x-inc | --x-in | --x-i)
368    ac_prev=x_includes ;;
369  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
370  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
371    x_includes="$ac_optarg" ;;
372
373  -x-libraries | --x-libraries | --x-librarie | --x-librari \
374  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
375    ac_prev=x_libraries ;;
376  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
377  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
378    x_libraries="$ac_optarg" ;;
379
380  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
381    ;;
382
383  *)
384    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
385      echo "configure: warning: $ac_option: invalid host type" 1>&2
386    fi
387    if test "x$nonopt" != xNONE; then
388      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
389    fi
390    nonopt="$ac_option"
391    ;;
392
393  esac
394done
395
396if test -n "$ac_prev"; then
397  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
398fi
399
400trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401
402# File descriptor usage:
403# 0 standard input
404# 1 file creation
405# 2 errors and warnings
406# 3 some systems may open it to /dev/tty
407# 4 used on the Kubota Titan
408# 6 checking for... messages and results
409# 5 compiler messages saved in config.log
410if test "$silent" = yes; then
411  exec 6>/dev/null
412else
413  exec 6>&1
414fi
415exec 5>./config.log
416
417echo "\
418This file contains any messages produced by compilers while
419running configure, to aid debugging if configure makes a mistake.
420" 1>&5
421
422# Strip out --no-create and --no-recursion so they do not pile up.
423# Also quote any args containing shell metacharacters.
424ac_configure_args=
425for ac_arg
426do
427  case "$ac_arg" in
428  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
429  | --no-cr | --no-c) ;;
430  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
431  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
432  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
433  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
434  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
435  esac
436done
437
438# NLS nuisances.
439# Only set these to C if already set.  These must not be set unconditionally
440# because not all systems understand e.g. LANG=C (notably SCO).
441# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
442# Non-C LC_CTYPE values break the ctype check.
443if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
444if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
445if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
446if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
447
448# confdefs.h avoids OS command line length limits that DEFS can exceed.
449rm -rf conftest* confdefs.h
450# AIX cpp loses on an empty file, so make sure it contains at least a newline.
451echo > confdefs.h
452
453# A filename unique to this package, relative to the directory that
454# configure is in, which we can look for to find out if srcdir is correct.
455ac_unique_file=sed/sed.c
456
457# Find the source files, if location was not specified.
458if test -z "$srcdir"; then
459  ac_srcdir_defaulted=yes
460  # Try the directory containing this script, then its parent.
461  ac_prog=$0
462  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
463  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464  srcdir=$ac_confdir
465  if test ! -r $srcdir/$ac_unique_file; then
466    srcdir=..
467  fi
468else
469  ac_srcdir_defaulted=no
470fi
471if test ! -r $srcdir/$ac_unique_file; then
472  if test "$ac_srcdir_defaulted" = yes; then
473    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474  else
475    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
476  fi
477fi
478srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479
480# Prefer explicitly selected file to automatically selected ones.
481if test -z "$CONFIG_SITE"; then
482  if test "x$prefix" != xNONE; then
483    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
484  else
485    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
486  fi
487fi
488for ac_site_file in $CONFIG_SITE; do
489  if test -r "$ac_site_file"; then
490    echo "loading site script $ac_site_file"
491    . "$ac_site_file"
492  fi
493done
494
495if test -r "$cache_file"; then
496  echo "loading cache $cache_file"
497  . $cache_file
498else
499  echo "creating cache $cache_file"
500  > $cache_file
501fi
502
503ac_ext=c
504# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
505ac_cpp='$CPP $CPPFLAGS'
506ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
507ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
508cross_compiling=$ac_cv_prog_cc_cross
509
510if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
511  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
512  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
513    ac_n= ac_c='
514' ac_t='        '
515  else
516    ac_n=-n ac_c= ac_t=
517  fi
518else
519  ac_n= ac_c='\c' ac_t=
520fi
521
522
523
524
525
526ac_aux_dir=
527for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
528  if test -f $ac_dir/install-sh; then
529    ac_aux_dir=$ac_dir
530    ac_install_sh="$ac_aux_dir/install-sh -c"
531    break
532  elif test -f $ac_dir/install.sh; then
533    ac_aux_dir=$ac_dir
534    ac_install_sh="$ac_aux_dir/install.sh -c"
535    break
536  fi
537done
538if test -z "$ac_aux_dir"; then
539  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
540fi
541ac_config_guess=$ac_aux_dir/config.guess
542ac_config_sub=$ac_aux_dir/config.sub
543ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
544
545# Find a good install program.  We prefer a C program (faster),
546# so one script is as good as another.  But avoid the broken or
547# incompatible versions:
548# SysV /etc/install, /usr/sbin/install
549# SunOS /usr/etc/install
550# IRIX /sbin/install
551# AIX /bin/install
552# AFS /usr/afsws/bin/install, which mishandles nonexistent args
553# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
554# ./install, which can be erroneously created by make from ./install.sh.
555echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
556echo "configure:557: checking for a BSD compatible install" >&5
557if test -z "$INSTALL"; then
558if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
559  echo $ac_n "(cached) $ac_c" 1>&6
560else
561    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
562  for ac_dir in $PATH; do
563    # Account for people who put trailing slashes in PATH elements.
564    case "$ac_dir/" in
565    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
566    *)
567      # OSF1 and SCO ODT 3.0 have their own names for install.
568      for ac_prog in ginstall installbsd scoinst install; do
569        if test -f $ac_dir/$ac_prog; then
570          if test $ac_prog = install &&
571            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
572            # AIX install.  It has an incompatible calling convention.
573            # OSF/1 installbsd also uses dspmsg, but is usable.
574            :
575          else
576            ac_cv_path_install="$ac_dir/$ac_prog -c"
577            break 2
578          fi
579        fi
580      done
581      ;;
582    esac
583  done
584  IFS="$ac_save_IFS"
585
586fi
587  if test "${ac_cv_path_install+set}" = set; then
588    INSTALL="$ac_cv_path_install"
589  else
590    # As a last resort, use the slow shell script.  We don't cache a
591    # path for INSTALL within a source directory, because that will
592    # break other packages using the cache if that directory is
593    # removed, or if the path is relative.
594    INSTALL="$ac_install_sh"
595  fi
596fi
597echo "$ac_t""$INSTALL" 1>&6
598
599# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
600# It thinks the first close brace ends the variable substitution.
601test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
602
603test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
604
605
606test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
607
608echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
609echo "configure:610: checking whether build environment is sane" >&5
610# Just in case
611sleep 1
612echo timestamp > conftestfile
613# Do `set' in a subshell so we don't clobber the current shell's
614# arguments.  Must try -L first in case configure is actually a
615# symlink; some systems play weird games with the mod time of symlinks
616# (eg FreeBSD returns the mod time of the symlink's containing
617# directory).
618if (
619   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
620   if test "$*" = "X"; then
621      # -L didn't work.
622      set X `ls -t $srcdir/configure conftestfile`
623   fi
624   if test "$*" != "X $srcdir/configure conftestfile" \
625      && test "$*" != "X conftestfile $srcdir/configure"; then
626
627      # If neither matched, then we have a broken ls.  This can happen
628      # if, for instance, CONFIG_SHELL is bash and it inherits a
629      # broken ls alias from the environment.  This has actually
630      # happened.  Such a system could not be considered "sane".
631      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
632alias in your environment" 1>&2; exit 1; }
633   fi
634
635   test "$2" = conftestfile
636   )
637then
638   # Ok.
639   :
640else
641   { echo "configure: error: newly created file is older than distributed files!
642Check your system clock" 1>&2; exit 1; }
643fi
644rm -f conftest*
645echo "$ac_t""yes" 1>&6
646if test "$program_transform_name" = s,x,x,; then
647  program_transform_name=
648else
649  # Double any \ or $.  echo might interpret backslashes.
650  cat <<\EOF_SED > conftestsed
651s,\\,\\\\,g; s,\$,$$,g
652EOF_SED
653  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
654  rm -f conftestsed
655fi
656test "$program_prefix" != NONE &&
657  program_transform_name="s,^,${program_prefix},; $program_transform_name"
658# Use a double $ so make ignores it.
659test "$program_suffix" != NONE &&
660  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
661
662# sed with no file args requires a program.
663test "$program_transform_name" = "" && program_transform_name="s,x,x,"
664
665echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
666echo "configure:667: checking whether ${MAKE-make} sets \${MAKE}" >&5
667set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
668if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
669  echo $ac_n "(cached) $ac_c" 1>&6
670else
671  cat > conftestmake <<\EOF
672all:
673        @echo 'ac_maketemp="${MAKE}"'
674EOF
675# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
676eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
677if test -n "$ac_maketemp"; then
678  eval ac_cv_prog_make_${ac_make}_set=yes
679else
680  eval ac_cv_prog_make_${ac_make}_set=no
681fi
682rm -f conftestmake
683fi
684if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
685  echo "$ac_t""yes" 1>&6
686  SET_MAKE=
687else
688  echo "$ac_t""no" 1>&6
689  SET_MAKE="MAKE=${MAKE-make}"
690fi
691
692
693PACKAGE=sed
694
695VERSION=3.02
696
697if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
698  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
699fi
700cat >> confdefs.h <<EOF
701#define PACKAGE "$PACKAGE"
702EOF
703
704cat >> confdefs.h <<EOF
705#define VERSION "$VERSION"
706EOF
707
708
709
710missing_dir=`cd $ac_aux_dir && pwd`
711echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
712echo "configure:713: checking for working aclocal" >&5
713# Run test in a subshell; some versions of sh will print an error if
714# an executable is not found, even if stderr is redirected.
715# Redirect stdin to placate older versions of autoconf.  Sigh.
716if (aclocal --version) < /dev/null > /dev/null 2>&1; then
717   ACLOCAL=aclocal
718   echo "$ac_t""found" 1>&6
719else
720   ACLOCAL="$missing_dir/missing aclocal"
721   echo "$ac_t""missing" 1>&6
722fi
723
724echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
725echo "configure:726: checking for working autoconf" >&5
726# Run test in a subshell; some versions of sh will print an error if
727# an executable is not found, even if stderr is redirected.
728# Redirect stdin to placate older versions of autoconf.  Sigh.
729if (autoconf --version) < /dev/null > /dev/null 2>&1; then
730   AUTOCONF=autoconf
731   echo "$ac_t""found" 1>&6
732else
733   AUTOCONF="$missing_dir/missing autoconf"
734   echo "$ac_t""missing" 1>&6
735fi
736
737echo $ac_n "checking for working automake""... $ac_c" 1>&6
738echo "configure:739: checking for working automake" >&5
739# Run test in a subshell; some versions of sh will print an error if
740# an executable is not found, even if stderr is redirected.
741# Redirect stdin to placate older versions of autoconf.  Sigh.
742if (automake --version) < /dev/null > /dev/null 2>&1; then
743   AUTOMAKE=automake
744   echo "$ac_t""found" 1>&6
745else
746   AUTOMAKE="$missing_dir/missing automake"
747   echo "$ac_t""missing" 1>&6
748fi
749
750echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
751echo "configure:752: checking for working autoheader" >&5
752# Run test in a subshell; some versions of sh will print an error if
753# an executable is not found, even if stderr is redirected.
754# Redirect stdin to placate older versions of autoconf.  Sigh.
755if (autoheader --version) < /dev/null > /dev/null 2>&1; then
756   AUTOHEADER=autoheader
757   echo "$ac_t""found" 1>&6
758else
759   AUTOHEADER="$missing_dir/missing autoheader"
760   echo "$ac_t""missing" 1>&6
761fi
762
763echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
764echo "configure:765: checking for working makeinfo" >&5
765# Run test in a subshell; some versions of sh will print an error if
766# an executable is not found, even if stderr is redirected.
767# Redirect stdin to placate older versions of autoconf.  Sigh.
768if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
769   MAKEINFO=makeinfo
770   echo "$ac_t""found" 1>&6
771else
772   MAKEINFO="$missing_dir/missing makeinfo"
773   echo "$ac_t""missing" 1>&6
774fi
775
776
777# Extract the first word of "gcc", so it can be a program name with args.
778set dummy gcc; ac_word=$2
779echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
780echo "configure:781: checking for $ac_word" >&5
781if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
782  echo $ac_n "(cached) $ac_c" 1>&6
783else
784  if test -n "$CC"; then
785  ac_cv_prog_CC="$CC" # Let the user override the test.
786else
787  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
788  for ac_dir in $PATH; do
789    test -z "$ac_dir" && ac_dir=.
790    if test -f $ac_dir/$ac_word; then
791      ac_cv_prog_CC="gcc"
792      break
793    fi
794  done
795  IFS="$ac_save_ifs"
796fi
797fi
798CC="$ac_cv_prog_CC"
799if test -n "$CC"; then
800  echo "$ac_t""$CC" 1>&6
801else
802  echo "$ac_t""no" 1>&6
803fi
804
805if test -z "$CC"; then
806  # Extract the first word of "cc", so it can be a program name with args.
807set dummy cc; ac_word=$2
808echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
809echo "configure:810: checking for $ac_word" >&5
810if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
811  echo $ac_n "(cached) $ac_c" 1>&6
812else
813  if test -n "$CC"; then
814  ac_cv_prog_CC="$CC" # Let the user override the test.
815else
816  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
817  ac_prog_rejected=no
818  for ac_dir in $PATH; do
819    test -z "$ac_dir" && ac_dir=.
820    if test -f $ac_dir/$ac_word; then
821      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
822        ac_prog_rejected=yes
823        continue
824      fi
825      ac_cv_prog_CC="cc"
826      break
827    fi
828  done
829  IFS="$ac_save_ifs"
830if test $ac_prog_rejected = yes; then
831  # We found a bogon in the path, so make sure we never use it.
832  set dummy $ac_cv_prog_CC
833  shift
834  if test $# -gt 0; then
835    # We chose a different compiler from the bogus one.
836    # However, it has the same basename, so the bogon will be chosen
837    # first if we set CC to just the basename; use the full file name.
838    shift
839    set dummy "$ac_dir/$ac_word" "$@"
840    shift
841    ac_cv_prog_CC="$@"
842  fi
843fi
844fi
845fi
846CC="$ac_cv_prog_CC"
847if test -n "$CC"; then
848  echo "$ac_t""$CC" 1>&6
849else
850  echo "$ac_t""no" 1>&6
851fi
852
853  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
854fi
855
856echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
857echo "configure:858: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
858
859ac_ext=c
860# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
861ac_cpp='$CPP $CPPFLAGS'
862ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
863ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
864cross_compiling=$ac_cv_prog_cc_cross
865
866cat > conftest.$ac_ext <<EOF
867#line 868 "configure"
868#include "confdefs.h"
869main(){return(0);}
870EOF
871if { (eval echo configure:872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
872  ac_cv_prog_cc_works=yes
873  # If we can't run a trivial program, we are probably using a cross compiler.
874  if (./conftest; exit) 2>/dev/null; then
875    ac_cv_prog_cc_cross=no
876  else
877    ac_cv_prog_cc_cross=yes
878  fi
879else
880  echo "configure: failed program was:" >&5
881  cat conftest.$ac_ext >&5
882  ac_cv_prog_cc_works=no
883fi
884rm -fr conftest*
885
886echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
887if test $ac_cv_prog_cc_works = no; then
888  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
889fi
890echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
891echo "configure:892: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
892echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
893cross_compiling=$ac_cv_prog_cc_cross
894
895echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
896echo "configure:897: checking whether we are using GNU C" >&5
897if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
898  echo $ac_n "(cached) $ac_c" 1>&6
899else
900  cat > conftest.c <<EOF
901#ifdef __GNUC__
902  yes;
903#endif
904EOF
905if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
906  ac_cv_prog_gcc=yes
907else
908  ac_cv_prog_gcc=no
909fi
910fi
911
912echo "$ac_t""$ac_cv_prog_gcc" 1>&6
913
914if test $ac_cv_prog_gcc = yes; then
915  GCC=yes
916  ac_test_CFLAGS="${CFLAGS+set}"
917  ac_save_CFLAGS="$CFLAGS"
918  CFLAGS=
919  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
920echo "configure:921: checking whether ${CC-cc} accepts -g" >&5
921if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
922  echo $ac_n "(cached) $ac_c" 1>&6
923else
924  echo 'void f(){}' > conftest.c
925if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
926  ac_cv_prog_cc_g=yes
927else
928  ac_cv_prog_cc_g=no
929fi
930rm -f conftest*
931
932fi
933
934echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
935  if test "$ac_test_CFLAGS" = set; then
936    CFLAGS="$ac_save_CFLAGS"
937  elif test $ac_cv_prog_cc_g = yes; then
938    CFLAGS="-g -O2"
939  else
940    CFLAGS="-O2"
941  fi
942else
943  GCC=
944  test "${CFLAGS+set}" = set || CFLAGS="-g"
945fi
946
947# Extract the first word of "ranlib", so it can be a program name with args.
948set dummy ranlib; ac_word=$2
949echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
950echo "configure:951: checking for $ac_word" >&5
951if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
952  echo $ac_n "(cached) $ac_c" 1>&6
953else
954  if test -n "$RANLIB"; then
955  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
956else
957  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
958  for ac_dir in $PATH; do
959    test -z "$ac_dir" && ac_dir=.
960    if test -f $ac_dir/$ac_word; then
961      ac_cv_prog_RANLIB="ranlib"
962      break
963    fi
964  done
965  IFS="$ac_save_ifs"
966  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
967fi
968fi
969RANLIB="$ac_cv_prog_RANLIB"
970if test -n "$RANLIB"; then
971  echo "$ac_t""$RANLIB" 1>&6
972else
973  echo "$ac_t""no" 1>&6
974fi
975
976
977# If available, prefer support for large files unless the user specified
978# one of the CPPFLAGS, LDFLAGS, or LIBS variables.
979echo $ac_n "checking whether large file support needs explicit enabling""... $ac_c" 1>&6
980echo "configure:981: checking whether large file support needs explicit enabling" >&5
981ac_getconfs=''
982ac_result=yes
983ac_set=''
984ac_shellvars='CPPFLAGS LDFLAGS LIBS'
985for ac_shellvar in $ac_shellvars; do
986  case $ac_shellvar in
987  CPPFLAGS) ac_lfsvar=LFS_CFLAGS ;;
988  *) ac_lfsvar=LFS_$ac_shellvar ;;
989  esac
990  eval test '"${'$ac_shellvar'+set}"' = set && ac_set=$ac_shellvar
991  (getconf $ac_lfsvar) >/dev/null 2>&1 || { ac_result=no; break; }
992  ac_getconf=`getconf $ac_lfsvar`
993  ac_getconfs=$ac_getconfs$ac_getconf
994  eval ac_test_$ac_shellvar=\$ac_getconf
995done
996case "$ac_result$ac_getconfs" in
997yes) ac_result=no ;;
998esac
999case "$ac_result$ac_set" in
1000yes?*) ac_result="yes, but $ac_set is already set, so use its settings"
1001esac
1002echo "$ac_t""$ac_result" 1>&6
1003case $ac_result in
1004yes)
1005  for ac_shellvar in $ac_shellvars; do
1006    eval $ac_shellvar=\$ac_test_$ac_shellvar
1007  done ;;
1008esac
1009
1010echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1011echo "configure:1012: checking how to run the C preprocessor" >&5
1012# On Suns, sometimes $CPP names a directory.
1013if test -n "$CPP" && test -d "$CPP"; then
1014  CPP=
1015fi
1016if test -z "$CPP"; then
1017if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1018  echo $ac_n "(cached) $ac_c" 1>&6
1019else
1020    # This must be in double quotes, not single quotes, because CPP may get
1021  # substituted into the Makefile and "${CC-cc}" will confuse make.
1022  CPP="${CC-cc} -E"
1023  # On the NeXT, cc -E runs the code through the compiler's parser,
1024  # not just through cpp.
1025  cat > conftest.$ac_ext <<EOF
1026#line 1027 "configure"
1027#include "confdefs.h"
1028#include <assert.h>
1029Syntax Error
1030EOF
1031ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1032{ (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1033ac_err=`grep -v '^ *+' conftest.out`
1034if test -z "$ac_err"; then
1035  :
1036else
1037  echo "$ac_err" >&5
1038  echo "configure: failed program was:" >&5
1039  cat conftest.$ac_ext >&5
1040  rm -rf conftest*
1041  CPP="${CC-cc} -E -traditional-cpp"
1042  cat > conftest.$ac_ext <<EOF
1043#line 1044 "configure"
1044#include "confdefs.h"
1045#include <assert.h>
1046Syntax Error
1047EOF
1048ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1049{ (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1050ac_err=`grep -v '^ *+' conftest.out`
1051if test -z "$ac_err"; then
1052  :
1053else
1054  echo "$ac_err" >&5
1055  echo "configure: failed program was:" >&5
1056  cat conftest.$ac_ext >&5
1057  rm -rf conftest*
1058  CPP=/lib/cpp
1059fi
1060rm -f conftest*
1061fi
1062rm -f conftest*
1063  ac_cv_prog_CPP="$CPP"
1064fi
1065  CPP="$ac_cv_prog_CPP"
1066else
1067  ac_cv_prog_CPP="$CPP"
1068fi
1069echo "$ac_t""$CPP" 1>&6
1070
1071ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1072echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1073echo "configure:1074: checking for minix/config.h" >&5
1074if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1075  echo $ac_n "(cached) $ac_c" 1>&6
1076else
1077  cat > conftest.$ac_ext <<EOF
1078#line 1079 "configure"
1079#include "confdefs.h"
1080#include <minix/config.h>
1081EOF
1082ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1083{ (eval echo configure:1084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1084ac_err=`grep -v '^ *+' conftest.out`
1085if test -z "$ac_err"; then
1086  rm -rf conftest*
1087  eval "ac_cv_header_$ac_safe=yes"
1088else
1089  echo "$ac_err" >&5
1090  echo "configure: failed program was:" >&5
1091  cat conftest.$ac_ext >&5
1092  rm -rf conftest*
1093  eval "ac_cv_header_$ac_safe=no"
1094fi
1095rm -f conftest*
1096fi
1097if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1098  echo "$ac_t""yes" 1>&6
1099  MINIX=yes
1100else
1101  echo "$ac_t""no" 1>&6
1102MINIX=
1103fi
1104
1105if test "$MINIX" = yes; then
1106  cat >> confdefs.h <<\EOF
1107#define _POSIX_SOURCE 1
1108EOF
1109
1110  cat >> confdefs.h <<\EOF
1111#define _POSIX_1_SOURCE 2
1112EOF
1113
1114  cat >> confdefs.h <<\EOF
1115#define _MINIX 1
1116EOF
1117
1118fi
1119
1120echo $ac_n "checking for AIX""... $ac_c" 1>&6
1121echo "configure:1122: checking for AIX" >&5
1122cat > conftest.$ac_ext <<EOF
1123#line 1124 "configure"
1124#include "confdefs.h"
1125#ifdef _AIX
1126  yes
1127#endif
1128
1129EOF
1130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1131  egrep "yes" >/dev/null 2>&1; then
1132  rm -rf conftest*
1133  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1134#define _ALL_SOURCE 1
1135EOF
1136
1137else
1138  rm -rf conftest*
1139  echo "$ac_t""no" 1>&6
1140fi
1141rm -f conftest*
1142
1143
1144echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1145echo "configure:1146: checking for strerror in -lcposix" >&5
1146ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1147if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1148  echo $ac_n "(cached) $ac_c" 1>&6
1149else
1150  ac_save_LIBS="$LIBS"
1151LIBS="-lcposix  $LIBS"
1152cat > conftest.$ac_ext <<EOF
1153#line 1154 "configure"
1154#include "confdefs.h"
1155/* Override any gcc2 internal prototype to avoid an error.  */
1156/* We use char because int might match the return type of a gcc2
1157    builtin and then its argument prototype would still apply.  */
1158char strerror();
1159
1160int main() {
1161strerror()
1162; return 0; }
1163EOF
1164if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1165  rm -rf conftest*
1166  eval "ac_cv_lib_$ac_lib_var=yes"
1167else
1168  echo "configure: failed program was:" >&5
1169  cat conftest.$ac_ext >&5
1170  rm -rf conftest*
1171  eval "ac_cv_lib_$ac_lib_var=no"
1172fi
1173rm -f conftest*
1174LIBS="$ac_save_LIBS"
1175
1176fi
1177if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1178  echo "$ac_t""yes" 1>&6
1179    ac_tr_lib=HAVE_LIB`echo cposix | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1180    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1181  cat >> confdefs.h <<EOF
1182#define $ac_tr_lib 1
1183EOF
1184
1185  LIBS="-lcposix $LIBS"
1186
1187else
1188  echo "$ac_t""no" 1>&6
1189fi
1190
1191
1192echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1193echo "configure:1194: checking for ANSI C header files" >&5
1194if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1195  echo $ac_n "(cached) $ac_c" 1>&6
1196else
1197  cat > conftest.$ac_ext <<EOF
1198#line 1199 "configure"
1199#include "confdefs.h"
1200#include <stdlib.h>
1201#include <stdarg.h>
1202#include <string.h>
1203#include <float.h>
1204EOF
1205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1206{ (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1207ac_err=`grep -v '^ *+' conftest.out`
1208if test -z "$ac_err"; then
1209  rm -rf conftest*
1210  ac_cv_header_stdc=yes
1211else
1212  echo "$ac_err" >&5
1213  echo "configure: failed program was:" >&5
1214  cat conftest.$ac_ext >&5
1215  rm -rf conftest*
1216  ac_cv_header_stdc=no
1217fi
1218rm -f conftest*
1219
1220if test $ac_cv_header_stdc = yes; then
1221  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1222cat > conftest.$ac_ext <<EOF
1223#line 1224 "configure"
1224#include "confdefs.h"
1225#include <string.h>
1226EOF
1227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1228  egrep "memchr" >/dev/null 2>&1; then
1229  :
1230else
1231  rm -rf conftest*
1232  ac_cv_header_stdc=no
1233fi
1234rm -f conftest*
1235
1236fi
1237
1238if test $ac_cv_header_stdc = yes; then
1239  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1240cat > conftest.$ac_ext <<EOF
1241#line 1242 "configure"
1242#include "confdefs.h"
1243#include <stdlib.h>
1244EOF
1245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1246  egrep "free" >/dev/null 2>&1; then
1247  :
1248else
1249  rm -rf conftest*
1250  ac_cv_header_stdc=no
1251fi
1252rm -f conftest*
1253
1254fi
1255
1256if test $ac_cv_header_stdc = yes; then
1257  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1258if test "$cross_compiling" = yes; then
1259  :
1260else
1261  cat > conftest.$ac_ext <<EOF
1262#line 1263 "configure"
1263#include "confdefs.h"
1264#include <ctype.h>
1265#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1266#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1267#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1268int main () { int i; for (i = 0; i < 256; i++)
1269if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1270exit (0); }
1271
1272EOF
1273if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1274then
1275  :
1276else
1277  echo "configure: failed program was:" >&5
1278  cat conftest.$ac_ext >&5
1279  rm -fr conftest*
1280  ac_cv_header_stdc=no
1281fi
1282rm -fr conftest*
1283fi
1284
1285fi
1286fi
1287
1288echo "$ac_t""$ac_cv_header_stdc" 1>&6
1289if test $ac_cv_header_stdc = yes; then
1290  cat >> confdefs.h <<\EOF
1291#define STDC_HEADERS 1
1292EOF
1293
1294fi
1295
1296for ac_hdr in string.h stdlib.h limits.h unistd.h memory.h sys/types.h
1297do
1298ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1299echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1300echo "configure:1301: checking for $ac_hdr" >&5
1301if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1302  echo $ac_n "(cached) $ac_c" 1>&6
1303else
1304  cat > conftest.$ac_ext <<EOF
1305#line 1306 "configure"
1306#include "confdefs.h"
1307#include <$ac_hdr>
1308EOF
1309ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1310{ (eval echo configure:1311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1311ac_err=`grep -v '^ *+' conftest.out`
1312if test -z "$ac_err"; then
1313  rm -rf conftest*
1314  eval "ac_cv_header_$ac_safe=yes"
1315else
1316  echo "$ac_err" >&5
1317  echo "configure: failed program was:" >&5
1318  cat conftest.$ac_ext >&5
1319  rm -rf conftest*
1320  eval "ac_cv_header_$ac_safe=no"
1321fi
1322rm -f conftest*
1323fi
1324if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1325  echo "$ac_t""yes" 1>&6
1326    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1327  cat >> confdefs.h <<EOF
1328#define $ac_tr_hdr 1
1329EOF
1330 
1331else
1332  echo "$ac_t""no" 1>&6
1333fi
1334done
1335
1336echo $ac_n "checking for working const""... $ac_c" 1>&6
1337echo "configure:1338: checking for working const" >&5
1338if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1339  echo $ac_n "(cached) $ac_c" 1>&6
1340else
1341  cat > conftest.$ac_ext <<EOF
1342#line 1343 "configure"
1343#include "confdefs.h"
1344
1345int main() {
1346
1347/* Ultrix mips cc rejects this.  */
1348typedef int charset[2]; const charset x;
1349/* SunOS 4.1.1 cc rejects this.  */
1350char const *const *ccp;
1351char **p;
1352/* NEC SVR4.0.2 mips cc rejects this.  */
1353struct point {int x, y;};
1354static struct point const zero = {0,0};
1355/* AIX XL C 1.02.0.0 rejects this.
1356   It does not let you subtract one const X* pointer from another in an arm
1357   of an if-expression whose if-part is not a constant expression */
1358const char *g = "string";
1359ccp = &g + (g ? g-g : 0);
1360/* HPUX 7.0 cc rejects these. */
1361++ccp;
1362p = (char**) ccp;
1363ccp = (char const *const *) p;
1364{ /* SCO 3.2v4 cc rejects this.  */
1365  char *t;
1366  char const *s = 0 ? (char *) 0 : (char const *) 0;
1367
1368  *t++ = 0;
1369}
1370{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1371  int x[] = {25, 17};
1372  const int *foo = &x[0];
1373  ++foo;
1374}
1375{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1376  typedef const int *iptr;
1377  iptr p = 0;
1378  ++p;
1379}
1380{ /* AIX XL C 1.02.0.0 rejects this saying
1381     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1382  struct s { int j; const int *ap[3]; };
1383  struct s *b; b->j = 5;
1384}
1385{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1386  const int foo = 10;
1387}
1388
1389; return 0; }
1390EOF
1391if { (eval echo configure:1392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1392  rm -rf conftest*
1393  ac_cv_c_const=yes
1394else
1395  echo "configure: failed program was:" >&5
1396  cat conftest.$ac_ext >&5
1397  rm -rf conftest*
1398  ac_cv_c_const=no
1399fi
1400rm -f conftest*
1401fi
1402
1403echo "$ac_t""$ac_cv_c_const" 1>&6
1404if test $ac_cv_c_const = no; then
1405  cat >> confdefs.h <<\EOF
1406#define const
1407EOF
1408
1409fi
1410
1411echo $ac_n "checking for size_t""... $ac_c" 1>&6
1412echo "configure:1413: checking for size_t" >&5
1413if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1414  echo $ac_n "(cached) $ac_c" 1>&6
1415else
1416  cat > conftest.$ac_ext <<EOF
1417#line 1418 "configure"
1418#include "confdefs.h"
1419#include <sys/types.h>
1420#if STDC_HEADERS
1421#include <stdlib.h>
1422#include <stddef.h>
1423#endif
1424EOF
1425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1426  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1427  rm -rf conftest*
1428  ac_cv_type_size_t=yes
1429else
1430  rm -rf conftest*
1431  ac_cv_type_size_t=no
1432fi
1433rm -f conftest*
1434
1435fi
1436echo "$ac_t""$ac_cv_type_size_t" 1>&6
1437if test $ac_cv_type_size_t = no; then
1438  cat >> confdefs.h <<\EOF
1439#define size_t unsigned
1440EOF
1441
1442fi
1443
1444
1445echo $ac_n "checking which regex library to use""... $ac_c" 1>&6
1446echo "configure:1447: checking which regex library to use" >&5
1447ac_regex_lib=lib/regex.o
1448# Check whether --with-regex or --without-regex was given.
1449if test "${with_regex+set}" = set; then
1450  withval="$with_regex"
1451  case "$withval" in yes|no) ;; *) ac_regex_lib="$withval" ;; esac
1452fi
1453
1454case "$ac_regex_lib" in
1455  lib/regex.o) LIBOBJS="$LIBOBJS regex.o" ;;
1456  ""|no) ;;
1457  *) LIBS="$LIBS $ac_regex_lib" ;;
1458esac
1459case "$ac_regex_lib" in
1460  "") echo "$ac_t""using system's regex" 1>&6 ;;
1461  *)  echo "$ac_t""using $ac_regex_lib" 1>&6  ;;
1462esac
1463
1464case " $LIBOBJS " in
1465  *\ regex.o\ *)
1466    ac_cv_func_regnexec=yes
1467    ac_cv_func_regexec=yes
1468    cat >> confdefs.h <<\EOF
1469#define HAVE_REGNEXEC 1
1470#define HAVE_REGEXEC 1
1471EOF
1472    cat >> confdefs.h <<\EOF
1473#define USE_REGEX_GNU_H 1
1474EOF
1475
1476    ;;
1477  *)
1478    for ac_hdr in regex.h
1479do
1480ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1481echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1482echo "configure:1483: checking for $ac_hdr" >&5
1483if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1484  echo $ac_n "(cached) $ac_c" 1>&6
1485else
1486  cat > conftest.$ac_ext <<EOF
1487#line 1488 "configure"
1488#include "confdefs.h"
1489#include <$ac_hdr>
1490EOF
1491ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1492{ (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1493ac_err=`grep -v '^ *+' conftest.out`
1494if test -z "$ac_err"; then
1495  rm -rf conftest*
1496  eval "ac_cv_header_$ac_safe=yes"
1497else
1498  echo "$ac_err" >&5
1499  echo "configure: failed program was:" >&5
1500  cat conftest.$ac_ext >&5
1501  rm -rf conftest*
1502  eval "ac_cv_header_$ac_safe=no"
1503fi
1504rm -f conftest*
1505fi
1506if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1507  echo "$ac_t""yes" 1>&6
1508    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1509  cat >> confdefs.h <<EOF
1510#define $ac_tr_hdr 1
1511EOF
1512 
1513else
1514  echo "$ac_t""no" 1>&6
1515fi
1516done
1517
1518    case "$ac_cv_header_regex_h" in
1519      yes) ;;
1520      *)
1521        { echo "configure: error: <regex.h> header is required for use with non-default regex implementation" 1>&2; exit 1; }
1522        ;;
1523    esac
1524    for ac_func in regnexec regexec
1525do
1526echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1527echo "configure:1528: checking for $ac_func" >&5
1528if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1529  echo $ac_n "(cached) $ac_c" 1>&6
1530else
1531  cat > conftest.$ac_ext <<EOF
1532#line 1533 "configure"
1533#include "confdefs.h"
1534/* System header to define __stub macros and hopefully few prototypes,
1535    which can conflict with char $ac_func(); below.  */
1536#include <assert.h>
1537/* Override any gcc2 internal prototype to avoid an error.  */
1538/* We use char because int might match the return type of a gcc2
1539    builtin and then its argument prototype would still apply.  */
1540char $ac_func();
1541
1542int main() {
1543
1544/* The GNU C library defines this for functions which it implements
1545    to always fail with ENOSYS.  Some functions are actually named
1546    something starting with __ and the normal name is an alias.  */
1547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1548choke me
1549#else
1550$ac_func();
1551#endif
1552
1553; return 0; }
1554EOF
1555if { (eval echo configure:1556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1556  rm -rf conftest*
1557  eval "ac_cv_func_$ac_func=yes"
1558else
1559  echo "configure: failed program was:" >&5
1560  cat conftest.$ac_ext >&5
1561  rm -rf conftest*
1562  eval "ac_cv_func_$ac_func=no"
1563fi
1564rm -f conftest*
1565fi
1566
1567if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1568  echo "$ac_t""yes" 1>&6
1569    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1570  cat >> confdefs.h <<EOF
1571#define $ac_tr_func 1
1572EOF
1573 
1574else
1575  echo "$ac_t""no" 1>&6
1576fi
1577done
1578
1579    ;;
1580esac
1581case "$ac_cv_func_regnexec $ac_cv_func_regexec" in
1582  *yes*) ;;
1583  *) { echo "configure: error: at least one of regexec() or regnexec() must be supported" 1>&2; exit 1; } ;;
1584esac
1585
1586# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1587# for constant arguments.  Useless!
1588echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1589echo "configure:1590: checking for working alloca.h" >&5
1590if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1591  echo $ac_n "(cached) $ac_c" 1>&6
1592else
1593  cat > conftest.$ac_ext <<EOF
1594#line 1595 "configure"
1595#include "confdefs.h"
1596#include <alloca.h>
1597int main() {
1598char *p = alloca(2 * sizeof(int));
1599; return 0; }
1600EOF
1601if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1602  rm -rf conftest*
1603  ac_cv_header_alloca_h=yes
1604else
1605  echo "configure: failed program was:" >&5
1606  cat conftest.$ac_ext >&5
1607  rm -rf conftest*
1608  ac_cv_header_alloca_h=no
1609fi
1610rm -f conftest*
1611fi
1612
1613echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1614if test $ac_cv_header_alloca_h = yes; then
1615  cat >> confdefs.h <<\EOF
1616#define HAVE_ALLOCA_H 1
1617EOF
1618
1619fi
1620
1621echo $ac_n "checking for alloca""... $ac_c" 1>&6
1622echo "configure:1623: checking for alloca" >&5
1623if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1624  echo $ac_n "(cached) $ac_c" 1>&6
1625else
1626  cat > conftest.$ac_ext <<EOF
1627#line 1628 "configure"
1628#include "confdefs.h"
1629
1630#ifdef __GNUC__
1631# define alloca __builtin_alloca
1632#else
1633# if HAVE_ALLOCA_H
1634#  include <alloca.h>
1635# else
1636#  ifdef _AIX
1637 #pragma alloca
1638#  else
1639#   ifndef alloca /* predefined by HP cc +Olibcalls */
1640char *alloca ();
1641#   endif
1642#  endif
1643# endif
1644#endif
1645
1646int main() {
1647char *p = (char *) alloca(1);
1648; return 0; }
1649EOF
1650if { (eval echo configure:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1651  rm -rf conftest*
1652  ac_cv_func_alloca_works=yes
1653else
1654  echo "configure: failed program was:" >&5
1655  cat conftest.$ac_ext >&5
1656  rm -rf conftest*
1657  ac_cv_func_alloca_works=no
1658fi
1659rm -f conftest*
1660fi
1661
1662echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1663if test $ac_cv_func_alloca_works = yes; then
1664  cat >> confdefs.h <<\EOF
1665#define HAVE_ALLOCA 1
1666EOF
1667
1668fi
1669
1670if test $ac_cv_func_alloca_works = no; then
1671  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1672  # that cause trouble.  Some versions do not even contain alloca or
1673  # contain a buggy version.  If you still want to use their alloca,
1674  # use ar to extract alloca.o from them instead of compiling alloca.c.
1675  ALLOCA=alloca.o
1676  cat >> confdefs.h <<\EOF
1677#define C_ALLOCA 1
1678EOF
1679
1680
1681echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1682echo "configure:1683: checking whether alloca needs Cray hooks" >&5
1683if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1684  echo $ac_n "(cached) $ac_c" 1>&6
1685else
1686  cat > conftest.$ac_ext <<EOF
1687#line 1688 "configure"
1688#include "confdefs.h"
1689#if defined(CRAY) && ! defined(CRAY2)
1690webecray
1691#else
1692wenotbecray
1693#endif
1694
1695EOF
1696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1697  egrep "webecray" >/dev/null 2>&1; then
1698  rm -rf conftest*
1699  ac_cv_os_cray=yes
1700else
1701  rm -rf conftest*
1702  ac_cv_os_cray=no
1703fi
1704rm -f conftest*
1705
1706fi
1707
1708echo "$ac_t""$ac_cv_os_cray" 1>&6
1709if test $ac_cv_os_cray = yes; then
1710for ac_func in _getb67 GETB67 getb67; do
1711  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1712echo "configure:1713: checking for $ac_func" >&5
1713if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1714  echo $ac_n "(cached) $ac_c" 1>&6
1715else
1716  cat > conftest.$ac_ext <<EOF
1717#line 1718 "configure"
1718#include "confdefs.h"
1719/* System header to define __stub macros and hopefully few prototypes,
1720    which can conflict with char $ac_func(); below.  */
1721#include <assert.h>
1722/* Override any gcc2 internal prototype to avoid an error.  */
1723/* We use char because int might match the return type of a gcc2
1724    builtin and then its argument prototype would still apply.  */
1725char $ac_func();
1726
1727int main() {
1728
1729/* The GNU C library defines this for functions which it implements
1730    to always fail with ENOSYS.  Some functions are actually named
1731    something starting with __ and the normal name is an alias.  */
1732#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1733choke me
1734#else
1735$ac_func();
1736#endif
1737
1738; return 0; }
1739EOF
1740if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1741  rm -rf conftest*
1742  eval "ac_cv_func_$ac_func=yes"
1743else
1744  echo "configure: failed program was:" >&5
1745  cat conftest.$ac_ext >&5
1746  rm -rf conftest*
1747  eval "ac_cv_func_$ac_func=no"
1748fi
1749rm -f conftest*
1750fi
1751
1752if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1753  echo "$ac_t""yes" 1>&6
1754  cat >> confdefs.h <<EOF
1755#define CRAY_STACKSEG_END $ac_func
1756EOF
1757
1758  break
1759else
1760  echo "$ac_t""no" 1>&6
1761fi
1762
1763done
1764fi
1765
1766echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1767echo "configure:1768: checking stack direction for C alloca" >&5
1768if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1769  echo $ac_n "(cached) $ac_c" 1>&6
1770else
1771  if test "$cross_compiling" = yes; then
1772  ac_cv_c_stack_direction=0
1773else
1774  cat > conftest.$ac_ext <<EOF
1775#line 1776 "configure"
1776#include "confdefs.h"
1777find_stack_direction ()
1778{
1779  static char *addr = 0;
1780  auto char dummy;
1781  if (addr == 0)
1782    {
1783      addr = &dummy;
1784      return find_stack_direction ();
1785    }
1786  else
1787    return (&dummy > addr) ? 1 : -1;
1788}
1789main ()
1790{
1791  exit (find_stack_direction() < 0);
1792}
1793EOF
1794if { (eval echo configure:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1795then
1796  ac_cv_c_stack_direction=1
1797else
1798  echo "configure: failed program was:" >&5
1799  cat conftest.$ac_ext >&5
1800  rm -fr conftest*
1801  ac_cv_c_stack_direction=-1
1802fi
1803rm -fr conftest*
1804fi
1805
1806fi
1807
1808echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1809cat >> confdefs.h <<EOF
1810#define STACK_DIRECTION $ac_cv_c_stack_direction
1811EOF
1812
1813fi
1814
1815for ac_hdr in unistd.h
1816do
1817ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1818echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1819echo "configure:1820: checking for $ac_hdr" >&5
1820if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1821  echo $ac_n "(cached) $ac_c" 1>&6
1822else
1823  cat > conftest.$ac_ext <<EOF
1824#line 1825 "configure"
1825#include "confdefs.h"
1826#include <$ac_hdr>
1827EOF
1828ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1829{ (eval echo configure:1830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1830ac_err=`grep -v '^ *+' conftest.out`
1831if test -z "$ac_err"; then
1832  rm -rf conftest*
1833  eval "ac_cv_header_$ac_safe=yes"
1834else
1835  echo "$ac_err" >&5
1836  echo "configure: failed program was:" >&5
1837  cat conftest.$ac_ext >&5
1838  rm -rf conftest*
1839  eval "ac_cv_header_$ac_safe=no"
1840fi
1841rm -f conftest*
1842fi
1843if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1844  echo "$ac_t""yes" 1>&6
1845    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1846  cat >> confdefs.h <<EOF
1847#define $ac_tr_hdr 1
1848EOF
1849 
1850else
1851  echo "$ac_t""no" 1>&6
1852fi
1853done
1854
1855for ac_func in getpagesize
1856do
1857echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1858echo "configure:1859: checking for $ac_func" >&5
1859if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1860  echo $ac_n "(cached) $ac_c" 1>&6
1861else
1862  cat > conftest.$ac_ext <<EOF
1863#line 1864 "configure"
1864#include "confdefs.h"
1865/* System header to define __stub macros and hopefully few prototypes,
1866    which can conflict with char $ac_func(); below.  */
1867#include <assert.h>
1868/* Override any gcc2 internal prototype to avoid an error.  */
1869/* We use char because int might match the return type of a gcc2
1870    builtin and then its argument prototype would still apply.  */
1871char $ac_func();
1872
1873int main() {
1874
1875/* The GNU C library defines this for functions which it implements
1876    to always fail with ENOSYS.  Some functions are actually named
1877    something starting with __ and the normal name is an alias.  */
1878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1879choke me
1880#else
1881$ac_func();
1882#endif
1883
1884; return 0; }
1885EOF
1886if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1887  rm -rf conftest*
1888  eval "ac_cv_func_$ac_func=yes"
1889else
1890  echo "configure: failed program was:" >&5
1891  cat conftest.$ac_ext >&5
1892  rm -rf conftest*
1893  eval "ac_cv_func_$ac_func=no"
1894fi
1895rm -f conftest*
1896fi
1897
1898if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1899  echo "$ac_t""yes" 1>&6
1900    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1901  cat >> confdefs.h <<EOF
1902#define $ac_tr_func 1
1903EOF
1904 
1905else
1906  echo "$ac_t""no" 1>&6
1907fi
1908done
1909
1910echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1911echo "configure:1912: checking for working mmap" >&5
1912if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1913  echo $ac_n "(cached) $ac_c" 1>&6
1914else
1915  if test "$cross_compiling" = yes; then
1916  ac_cv_func_mmap_fixed_mapped=no
1917else
1918  cat > conftest.$ac_ext <<EOF
1919#line 1920 "configure"
1920#include "confdefs.h"
1921
1922/* Thanks to Mike Haertel and Jim Avera for this test.
1923   Here is a matrix of mmap possibilities:
1924        mmap private not fixed
1925        mmap private fixed at somewhere currently unmapped
1926        mmap private fixed at somewhere already mapped
1927        mmap shared not fixed
1928        mmap shared fixed at somewhere currently unmapped
1929        mmap shared fixed at somewhere already mapped
1930   For private mappings, we should verify that changes cannot be read()
1931   back from the file, nor mmap's back from the file at a different
1932   address.  (There have been systems where private was not correctly
1933   implemented like the infamous i386 svr4.0, and systems where the
1934   VM page cache was not coherent with the filesystem buffer cache
1935   like early versions of FreeBSD and possibly contemporary NetBSD.)
1936   For shared mappings, we should conversely verify that changes get
1937   propogated back to all the places they're supposed to be.
1938
1939   Grep wants private fixed already mapped.
1940   The main things grep needs to know about mmap are:
1941   * does it exist and is it safe to write into the mmap'd area
1942   * how to use it (BSD variants)  */
1943#include <sys/types.h>
1944#include <fcntl.h>
1945#include <sys/mman.h>
1946
1947/* This mess was copied from the GNU getpagesize.h.  */
1948#ifndef HAVE_GETPAGESIZE
1949# ifdef HAVE_UNISTD_H
1950#  include <unistd.h>
1951# endif
1952
1953/* Assume that all systems that can run configure have sys/param.h.  */
1954# ifndef HAVE_SYS_PARAM_H
1955#  define HAVE_SYS_PARAM_H 1
1956# endif
1957
1958# ifdef _SC_PAGESIZE
1959#  define getpagesize() sysconf(_SC_PAGESIZE)
1960# else /* no _SC_PAGESIZE */
1961#  ifdef HAVE_SYS_PARAM_H
1962#   include <sys/param.h>
1963#   ifdef EXEC_PAGESIZE
1964#    define getpagesize() EXEC_PAGESIZE
1965#   else /* no EXEC_PAGESIZE */
1966#    ifdef NBPG
1967#     define getpagesize() NBPG * CLSIZE
1968#     ifndef CLSIZE
1969#      define CLSIZE 1
1970#     endif /* no CLSIZE */
1971#    else /* no NBPG */
1972#     ifdef NBPC
1973#      define getpagesize() NBPC
1974#     else /* no NBPC */
1975#      ifdef PAGESIZE
1976#       define getpagesize() PAGESIZE
1977#      endif /* PAGESIZE */
1978#     endif /* no NBPC */
1979#    endif /* no NBPG */
1980#   endif /* no EXEC_PAGESIZE */
1981#  else /* no HAVE_SYS_PARAM_H */
1982#   define getpagesize() 8192   /* punt totally */
1983#  endif /* no HAVE_SYS_PARAM_H */
1984# endif /* no _SC_PAGESIZE */
1985
1986#endif /* no HAVE_GETPAGESIZE */
1987
1988#ifdef __cplusplus
1989extern "C" { void *malloc(unsigned); }
1990#else
1991char *malloc();
1992#endif
1993
1994int
1995main()
1996{
1997        char *data, *data2, *data3;
1998        int i, pagesize;
1999        int fd;
2000
2001        pagesize = getpagesize();
2002
2003        /*
2004         * First, make a file with some known garbage in it.
2005         */
2006        data = malloc(pagesize);
2007        if (!data)
2008                exit(1);
2009        for (i = 0; i < pagesize; ++i)
2010                *(data + i) = rand();
2011        umask(0);
2012        fd = creat("conftestmmap", 0600);
2013        if (fd < 0)
2014                exit(1);
2015        if (write(fd, data, pagesize) != pagesize)
2016                exit(1);
2017        close(fd);
2018
2019        /*
2020         * Next, try to mmap the file at a fixed address which
2021         * already has something else allocated at it.  If we can,
2022         * also make sure that we see the same garbage.
2023         */
2024        fd = open("conftestmmap", O_RDWR);
2025        if (fd < 0)
2026                exit(1);
2027        data2 = malloc(2 * pagesize);
2028        if (!data2)
2029                exit(1);
2030        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2031        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2032            MAP_PRIVATE | MAP_FIXED, fd, 0L))
2033                exit(1);
2034        for (i = 0; i < pagesize; ++i)
2035                if (*(data + i) != *(data2 + i))
2036                        exit(1);
2037
2038        /*
2039         * Finally, make sure that changes to the mapped area
2040         * do not percolate back to the file as seen by read().
2041         * (This is a bug on some variants of i386 svr4.0.)
2042         */
2043        for (i = 0; i < pagesize; ++i)
2044                *(data2 + i) = *(data2 + i) + 1;
2045        data3 = malloc(pagesize);
2046        if (!data3)
2047                exit(1);
2048        if (read(fd, data3, pagesize) != pagesize)
2049                exit(1);
2050        for (i = 0; i < pagesize; ++i)
2051                if (*(data + i) != *(data3 + i))
2052                        exit(1);
2053        close(fd);
2054        unlink("conftestmmap");
2055        exit(0);
2056}
2057
2058EOF
2059if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2060then
2061  ac_cv_func_mmap_fixed_mapped=yes
2062else
2063  echo "configure: failed program was:" >&5
2064  cat conftest.$ac_ext >&5
2065  rm -fr conftest*
2066  ac_cv_func_mmap_fixed_mapped=no
2067fi
2068rm -fr conftest*
2069fi
2070
2071fi
2072
2073echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2074if test $ac_cv_func_mmap_fixed_mapped = yes; then
2075  cat >> confdefs.h <<\EOF
2076#define HAVE_MMAP 1
2077EOF
2078
2079fi
2080
2081echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2082echo "configure:2083: checking for vprintf" >&5
2083if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2084  echo $ac_n "(cached) $ac_c" 1>&6
2085else
2086  cat > conftest.$ac_ext <<EOF
2087#line 2088 "configure"
2088#include "confdefs.h"
2089/* System header to define __stub macros and hopefully few prototypes,
2090    which can conflict with char vprintf(); below.  */
2091#include <assert.h>
2092/* Override any gcc2 internal prototype to avoid an error.  */
2093/* We use char because int might match the return type of a gcc2
2094    builtin and then its argument prototype would still apply.  */
2095char vprintf();
2096
2097int main() {
2098
2099/* The GNU C library defines this for functions which it implements
2100    to always fail with ENOSYS.  Some functions are actually named
2101    something starting with __ and the normal name is an alias.  */
2102#if defined (__stub_vprintf) || defined (__stub___vprintf)
2103choke me
2104#else
2105vprintf();
2106#endif
2107
2108; return 0; }
2109EOF
2110if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2111  rm -rf conftest*
2112  eval "ac_cv_func_vprintf=yes"
2113else
2114  echo "configure: failed program was:" >&5
2115  cat conftest.$ac_ext >&5
2116  rm -rf conftest*
2117  eval "ac_cv_func_vprintf=no"
2118fi
2119rm -f conftest*
2120fi
2121
2122if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2123  echo "$ac_t""yes" 1>&6
2124  cat >> confdefs.h <<\EOF
2125#define HAVE_VPRINTF 1
2126EOF
2127
2128else
2129  echo "$ac_t""no" 1>&6
2130fi
2131
2132if test "$ac_cv_func_vprintf" != yes; then
2133echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2134echo "configure:2135: checking for _doprnt" >&5
2135if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2136  echo $ac_n "(cached) $ac_c" 1>&6
2137else
2138  cat > conftest.$ac_ext <<EOF
2139#line 2140 "configure"
2140#include "confdefs.h"
2141/* System header to define __stub macros and hopefully few prototypes,
2142    which can conflict with char _doprnt(); below.  */
2143#include <assert.h>
2144/* Override any gcc2 internal prototype to avoid an error.  */
2145/* We use char because int might match the return type of a gcc2
2146    builtin and then its argument prototype would still apply.  */
2147char _doprnt();
2148
2149int main() {
2150
2151/* The GNU C library defines this for functions which it implements
2152    to always fail with ENOSYS.  Some functions are actually named
2153    something starting with __ and the normal name is an alias.  */
2154#if defined (__stub__doprnt) || defined (__stub____doprnt)
2155choke me
2156#else
2157_doprnt();
2158#endif
2159
2160; return 0; }
2161EOF
2162if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2163  rm -rf conftest*
2164  eval "ac_cv_func__doprnt=yes"
2165else
2166  echo "configure: failed program was:" >&5
2167  cat conftest.$ac_ext >&5
2168  rm -rf conftest*
2169  eval "ac_cv_func__doprnt=no"
2170fi
2171rm -f conftest*
2172fi
2173
2174if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2175  echo "$ac_t""yes" 1>&6
2176  cat >> confdefs.h <<\EOF
2177#define HAVE_DOPRNT 1
2178EOF
2179
2180else
2181  echo "$ac_t""no" 1>&6
2182fi
2183
2184fi
2185
2186
2187for ac_func in memchr memcmp memmove strerror
2188do
2189echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2190echo "configure:2191: checking for $ac_func" >&5
2191if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2192  echo $ac_n "(cached) $ac_c" 1>&6
2193else
2194  cat > conftest.$ac_ext <<EOF
2195#line 2196 "configure"
2196#include "confdefs.h"
2197/* System header to define __stub macros and hopefully few prototypes,
2198    which can conflict with char $ac_func(); below.  */
2199#include <assert.h>
2200/* Override any gcc2 internal prototype to avoid an error.  */
2201/* We use char because int might match the return type of a gcc2
2202    builtin and then its argument prototype would still apply.  */
2203char $ac_func();
2204
2205int main() {
2206
2207/* The GNU C library defines this for functions which it implements
2208    to always fail with ENOSYS.  Some functions are actually named
2209    something starting with __ and the normal name is an alias.  */
2210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2211choke me
2212#else
2213$ac_func();
2214#endif
2215
2216; return 0; }
2217EOF
2218if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2219  rm -rf conftest*
2220  eval "ac_cv_func_$ac_func=yes"
2221else
2222  echo "configure: failed program was:" >&5
2223  cat conftest.$ac_ext >&5
2224  rm -rf conftest*
2225  eval "ac_cv_func_$ac_func=no"
2226fi
2227rm -f conftest*
2228fi
2229
2230if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2231  echo "$ac_t""yes" 1>&6
2232    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2233  cat >> confdefs.h <<EOF
2234#define $ac_tr_func 1
2235EOF
2236 
2237else
2238  echo "$ac_t""no" 1>&6
2239LIBOBJS="$LIBOBJS ${ac_func}.o"
2240fi
2241done
2242
2243
2244for ac_func in isatty  bcopy bzero isascii memcpy
2245do
2246echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2247echo "configure:2248: checking for $ac_func" >&5
2248if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2249  echo $ac_n "(cached) $ac_c" 1>&6
2250else
2251  cat > conftest.$ac_ext <<EOF
2252#line 2253 "configure"
2253#include "confdefs.h"
2254/* System header to define __stub macros and hopefully few prototypes,
2255    which can conflict with char $ac_func(); below.  */
2256#include <assert.h>
2257/* Override any gcc2 internal prototype to avoid an error.  */
2258/* We use char because int might match the return type of a gcc2
2259    builtin and then its argument prototype would still apply.  */
2260char $ac_func();
2261
2262int main() {
2263
2264/* The GNU C library defines this for functions which it implements
2265    to always fail with ENOSYS.  Some functions are actually named
2266    something starting with __ and the normal name is an alias.  */
2267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2268choke me
2269#else
2270$ac_func();
2271#endif
2272
2273; return 0; }
2274EOF
2275if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2276  rm -rf conftest*
2277  eval "ac_cv_func_$ac_func=yes"
2278else
2279  echo "configure: failed program was:" >&5
2280  cat conftest.$ac_ext >&5
2281  rm -rf conftest*
2282  eval "ac_cv_func_$ac_func=no"
2283fi
2284rm -f conftest*
2285fi
2286
2287if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2288  echo "$ac_t""yes" 1>&6
2289    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2290  cat >> confdefs.h <<EOF
2291#define $ac_tr_func 1
2292EOF
2293 
2294else
2295  echo "$ac_t""no" 1>&6
2296fi
2297done
2298
2299
2300if test "$program_transform_name" = s,x,x,; then
2301  program_transform_name=
2302else
2303  # Double any \ or $.  echo might interpret backslashes.
2304  cat <<\EOF_SED > conftestsed
2305s,\\,\\\\,g; s,\$,$$,g
2306EOF_SED
2307  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2308  rm -f conftestsed
2309fi
2310test "$program_prefix" != NONE &&
2311  program_transform_name="s,^,${program_prefix},; $program_transform_name"
2312# Use a double $ so make ignores it.
2313test "$program_suffix" != NONE &&
2314  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2315
2316# sed with no file args requires a program.
2317test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2318
2319trap '' 1 2 15
2320cat > confcache <<\EOF
2321# This file is a shell script that caches the results of configure
2322# tests run on this system so they can be shared between configure
2323# scripts and configure runs.  It is not useful on other systems.
2324# If it contains results you don't want to keep, you may remove or edit it.
2325#
2326# By default, configure uses ./config.cache as the cache file,
2327# creating it if it does not exist already.  You can give configure
2328# the --cache-file=FILE option to use a different cache file; that is
2329# what configure does when it calls configure scripts in
2330# subdirectories, so they share the cache.
2331# Giving --cache-file=/dev/null disables caching, for debugging configure.
2332# config.status only pays attention to the cache file if you give it the
2333# --recheck option to rerun configure.
2334#
2335EOF
2336# The following way of writing the cache mishandles newlines in values,
2337# but we know of no workaround that is simple, portable, and efficient.
2338# So, don't put newlines in cache variables' values.
2339# Ultrix sh set writes to stderr and can't be redirected directly,
2340# and sets the high bit in the cache file unless we assign to the vars.
2341(set) 2>&1 |
2342  case `(ac_space=' '; set) 2>&1` in
2343  *ac_space=\ *)
2344    # `set' does not quote correctly, so add quotes (double-quote substitution
2345    # turns \\\\ into \\, and sed turns \\ into \).
2346    sed -n \
2347      -e "s/'/'\\\\''/g" \
2348      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2349    ;;
2350  *)
2351    # `set' quotes correctly as required by POSIX, so do not add quotes.
2352    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2353    ;;
2354  esac >> confcache
2355if cmp -s $cache_file confcache; then
2356  :
2357else
2358  if test -w $cache_file; then
2359    echo "updating cache $cache_file"
2360    cat confcache > $cache_file
2361  else
2362    echo "not updating unwritable cache $cache_file"
2363  fi
2364fi
2365rm -f confcache
2366
2367trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2368
2369test "x$prefix" = xNONE && prefix=$ac_default_prefix
2370# Let make expand exec_prefix.
2371test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2372
2373# Any assignment to VPATH causes Sun make to only execute
2374# the first set of double-colon rules, so remove it if not needed.
2375# If there is a colon in the path, we need to keep it.
2376if test "x$srcdir" = x.; then
2377  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2378fi
2379
2380trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2381
2382DEFS=-DHAVE_CONFIG_H
2383
2384# Without the "./", some shells look in PATH for config.status.
2385: ${CONFIG_STATUS=./config.status}
2386
2387echo creating $CONFIG_STATUS
2388rm -f $CONFIG_STATUS
2389cat > $CONFIG_STATUS <<EOF
2390#! /bin/sh
2391# Generated automatically by configure.
2392# Run this file to recreate the current configuration.
2393# This directory was configured as follows,
2394# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2395#
2396# $0 $ac_configure_args
2397#
2398# Compiler output produced by configure, useful for debugging
2399# configure, is in ./config.log if it exists.
2400
2401ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2402for ac_option
2403do
2404  case "\$ac_option" in
2405  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2406    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2407    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2408  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2409    echo "$CONFIG_STATUS generated by autoconf version 2.12"
2410    exit 0 ;;
2411  -help | --help | --hel | --he | --h)
2412    echo "\$ac_cs_usage"; exit 0 ;;
2413  *) echo "\$ac_cs_usage"; exit 1 ;;
2414  esac
2415done
2416
2417ac_given_srcdir=$srcdir
2418ac_given_INSTALL="$INSTALL"
2419
2420trap 'rm -fr `echo "Makefile djgpp/Makefile doc/Makefile lib/Makefile sed/Makefile testsuite/Makefile
2421 config.h:config_h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2422EOF
2423cat >> $CONFIG_STATUS <<EOF
2424
2425# Protect against being on the right side of a sed subst in config.status.
2426sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2427 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2428$ac_vpsub
2429$extrasub
2430s%@CFLAGS@%$CFLAGS%g
2431s%@CPPFLAGS@%$CPPFLAGS%g
2432s%@CXXFLAGS@%$CXXFLAGS%g
2433s%@DEFS@%$DEFS%g
2434s%@LDFLAGS@%$LDFLAGS%g
2435s%@LIBS@%$LIBS%g
2436s%@exec_prefix@%$exec_prefix%g
2437s%@prefix@%$prefix%g
2438s%@program_transform_name@%$program_transform_name%g
2439s%@bindir@%$bindir%g
2440s%@sbindir@%$sbindir%g
2441s%@libexecdir@%$libexecdir%g
2442s%@datadir@%$datadir%g
2443s%@sysconfdir@%$sysconfdir%g
2444s%@sharedstatedir@%$sharedstatedir%g
2445s%@localstatedir@%$localstatedir%g
2446s%@libdir@%$libdir%g
2447s%@includedir@%$includedir%g
2448s%@oldincludedir@%$oldincludedir%g
2449s%@infodir@%$infodir%g
2450s%@mandir@%$mandir%g
2451s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2452s%@INSTALL_DATA@%$INSTALL_DATA%g
2453s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2454s%@PACKAGE@%$PACKAGE%g
2455s%@VERSION@%$VERSION%g
2456s%@ACLOCAL@%$ACLOCAL%g
2457s%@AUTOCONF@%$AUTOCONF%g
2458s%@AUTOMAKE@%$AUTOMAKE%g
2459s%@AUTOHEADER@%$AUTOHEADER%g
2460s%@MAKEINFO@%$MAKEINFO%g
2461s%@SET_MAKE@%$SET_MAKE%g
2462s%@CC@%$CC%g
2463s%@RANLIB@%$RANLIB%g
2464s%@CPP@%$CPP%g
2465s%@ALLOCA@%$ALLOCA%g
2466s%@LIBOBJS@%$LIBOBJS%g
2467
2468CEOF
2469EOF
2470
2471cat >> $CONFIG_STATUS <<\EOF
2472
2473# Split the substitutions into bite-sized pieces for seds with
2474# small command number limits, like on Digital OSF/1 and HP-UX.
2475ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2476ac_file=1 # Number of current file.
2477ac_beg=1 # First line for current file.
2478ac_end=$ac_max_sed_cmds # Line after last line for current file.
2479ac_more_lines=:
2480ac_sed_cmds=""
2481while $ac_more_lines; do
2482  if test $ac_beg -gt 1; then
2483    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2484  else
2485    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2486  fi
2487  if test ! -s conftest.s$ac_file; then
2488    ac_more_lines=false
2489    rm -f conftest.s$ac_file
2490  else
2491    if test -z "$ac_sed_cmds"; then
2492      ac_sed_cmds="sed -f conftest.s$ac_file"
2493    else
2494      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2495    fi
2496    ac_file=`expr $ac_file + 1`
2497    ac_beg=$ac_end
2498    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2499  fi
2500done
2501if test -z "$ac_sed_cmds"; then
2502  ac_sed_cmds=cat
2503fi
2504EOF
2505
2506cat >> $CONFIG_STATUS <<EOF
2507
2508CONFIG_FILES=\${CONFIG_FILES-"Makefile djgpp/Makefile doc/Makefile lib/Makefile sed/Makefile testsuite/Makefile
2509"}
2510EOF
2511cat >> $CONFIG_STATUS <<\EOF
2512for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2513  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2514  case "$ac_file" in
2515  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2516       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2517  *) ac_file_in="${ac_file}.in" ;;
2518  esac
2519
2520  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2521
2522  # Remove last slash and all that follows it.  Not all systems have dirname.
2523  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2524  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2525    # The file is in a subdirectory.
2526    test ! -d "$ac_dir" && mkdir "$ac_dir"
2527    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2528    # A "../" for each directory in $ac_dir_suffix.
2529    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2530  else
2531    ac_dir_suffix= ac_dots=
2532  fi
2533
2534  case "$ac_given_srcdir" in
2535  .)  srcdir=.
2536      if test -z "$ac_dots"; then top_srcdir=.
2537      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2538  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2539  *) # Relative path.
2540    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2541    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2542  esac
2543
2544  case "$ac_given_INSTALL" in
2545  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2546  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2547  esac
2548
2549  echo creating "$ac_file"
2550  rm -f "$ac_file"
2551  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2552  case "$ac_file" in
2553  *Makefile*) ac_comsub="1i\\
2554# $configure_input" ;;
2555  *) ac_comsub= ;;
2556  esac
2557
2558  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2559  sed -e "$ac_comsub
2560s%@configure_input@%$configure_input%g
2561s%@srcdir@%$srcdir%g
2562s%@top_srcdir@%$top_srcdir%g
2563s%@INSTALL@%$INSTALL%g
2564" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2565fi; done
2566rm -f conftest.s*
2567
2568# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2569# NAME is the cpp macro being defined and VALUE is the value it is being given.
2570#
2571# ac_d sets the value in "#define NAME VALUE" lines.
2572ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2573ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2574ac_dC='\3'
2575ac_dD='%g'
2576# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2577ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2578ac_uB='\([      ]\)%\1#\2define\3'
2579ac_uC=' '
2580ac_uD='\4%g'
2581# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2582ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2583ac_eB='$%\1#\2define\3'
2584ac_eC=' '
2585ac_eD='%g'
2586
2587if test "${CONFIG_HEADERS+set}" != set; then
2588EOF
2589cat >> $CONFIG_STATUS <<EOF
2590  CONFIG_HEADERS="config.h:config_h.in"
2591EOF
2592cat >> $CONFIG_STATUS <<\EOF
2593fi
2594for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2595  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2596  case "$ac_file" in
2597  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2598       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2599  *) ac_file_in="${ac_file}.in" ;;
2600  esac
2601
2602  echo creating $ac_file
2603
2604  rm -f conftest.frag conftest.in conftest.out
2605  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2606  cat $ac_file_inputs > conftest.in
2607
2608EOF
2609
2610# Transform confdefs.h into a sed script conftest.vals that substitutes
2611# the proper values into config.h.in to produce config.h.  And first:
2612# Protect against being on the right side of a sed subst in config.status.
2613# Protect against being in an unquoted here document in config.status.
2614rm -f conftest.vals
2615cat > conftest.hdr <<\EOF
2616s/[\\&%]/\\&/g
2617s%[\\$`]%\\&%g
2618s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2619s%ac_d%ac_u%gp
2620s%ac_u%ac_e%gp
2621EOF
2622sed -n -f conftest.hdr confdefs.h > conftest.vals
2623rm -f conftest.hdr
2624
2625# This sed command replaces #undef with comments.  This is necessary, for
2626# example, in the case of _POSIX_SOURCE, which is predefined and required
2627# on some systems where configure will not decide to define it.
2628cat >> conftest.vals <<\EOF
2629s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2630EOF
2631
2632# Break up conftest.vals because some shells have a limit on
2633# the size of here documents, and old seds have small limits too.
2634
2635rm -f conftest.tail
2636while :
2637do
2638  ac_lines=`grep -c . conftest.vals`
2639  # grep -c gives empty output for an empty file on some AIX systems.
2640  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2641  # Write a limited-size here document to conftest.frag.
2642  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2643  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2644  echo 'CEOF
2645  sed -f conftest.frag conftest.in > conftest.out
2646  rm -f conftest.in
2647  mv conftest.out conftest.in
2648' >> $CONFIG_STATUS
2649  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2650  rm -f conftest.vals
2651  mv conftest.tail conftest.vals
2652done
2653rm -f conftest.vals
2654
2655cat >> $CONFIG_STATUS <<\EOF
2656  rm -f conftest.frag conftest.h
2657  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2658  cat conftest.in >> conftest.h
2659  rm -f conftest.in
2660  if cmp -s $ac_file conftest.h 2>/dev/null; then
2661    echo "$ac_file is unchanged"
2662    rm -f conftest.h
2663  else
2664    # Remove last slash and all that follows it.  Not all systems have dirname.
2665      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2666      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2667      # The file is in a subdirectory.
2668      test ! -d "$ac_dir" && mkdir "$ac_dir"
2669    fi
2670    rm -f $ac_file
2671    mv conftest.h $ac_file
2672  fi
2673fi; done
2674
2675EOF
2676cat >> $CONFIG_STATUS <<EOF
2677
2678
2679EOF
2680cat >> $CONFIG_STATUS <<\EOF
2681test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2682
2683exit 0
2684EOF
2685chmod +x $CONFIG_STATUS
2686rm -fr confdefs* $ac_clean_files
2687test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2688
Note: See TracBrowser for help on using the repository browser.