source: trunk/gsdl/configure@ 8202

Last change on this file since 8202 was 8202, checked in by jrm21, 17 years ago

don't need host and target set anymore (since it works properly on darwin
now).

remove spaces around ' gettext ' in a test.

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