source: gsdl/tags/gsdl-2_35a-distribution/gsdl/configure@ 14121

Last change on this file since 14121 was 2521, checked in by sjboddie, 23 years ago

no longer compile src/phind/host separately (it no longer exists)

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