source: trunk/gsdl/configure@ 1927

Last change on this file since 1927 was 1860, checked in by cs025, 23 years ago

Included CORBA branch for first time

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