source: trunk/gsdl/configure@ 788

Last change on this file since 788 was 788, checked in by sjboddie, 24 years ago

fixed strerr bug

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