source: gsdl/tags/gsdl-211/gsdl/configure@ 14121

Last change on this file since 14121 was 818, checked in by cs025, 24 years ago

Updated to respond properly to stderror presence

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