source: main/tags/2.26/niupepa/configure

Last change on this file was 1077, checked in by sjboddie, 21 years ago

added configuration stuff for niupepa collection receptionist

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