source: trunk/gsdl/configure@ 2279

Last change on this file since 2279 was 2279, checked in by jrm21, 23 years ago

configure now allows an argument to give a path to non-std location of gdbm library.
Other changes to allow darwin (Mac OS X) support include adding config.* to guess the system type.

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