source: main/trunk/greenstone2/configure@ 21432

Last change on this file since 21432 was 21432, checked in by davidb, 11 years ago

Update to use of -m32, which is activated when compiling on a 64-bit machine. The requirement for needing to using -m32 is mg and mg++ (which currently only work with 32-bit sized data-types). If both --disable-mg and --disable-mgpp are specified this means that we don't need to use -m32. Configure files updated to detect this and 'cancel' the -m32 flag.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 239.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
311ac_subdirs_all="$ac_subdirs_all common-src"
312ac_subdirs_all="$ac_subdirs_all build-src"
313ac_subdirs_all="$ac_subdirs_all runtime-src"
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD ENABLE_JDBM USE_SQLITE USE_APACHE_HTTPD ENABLE_JNI ENABLE_MG ENABLE_MGPP ENABLE_LUCENE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case $ac_option in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
396
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
405
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
438
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
587
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
600
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
627
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
631 ;;
632
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
643 *)
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
674do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
737 fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CXX_set=${CXX+set}
772ac_env_CXX_value=$CXX
773ac_cv_env_CXX_set=${CXX+set}
774ac_cv_env_CXX_value=$CXX
775ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_env_CXXFLAGS_value=$CXXFLAGS
777ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
790 cat <<_ACEOF
791\`configure' configures this package to adapt to many kinds of systems.
792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE. See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810
811_ACEOF
812
813 cat <<_ACEOF
814Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
816 [$ac_default_prefix]
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 [PREFIX]
819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
840_ACEOF
841
842 cat <<\_ACEOF
843
844System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 --target=TARGET configure for building compilers for TARGET [HOST]
848_ACEOF
849fi
850
851if test -n "$ac_init_help"; then
852
853 cat <<\_ACEOF
854
855Optional Features:
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-corba Enable CORBA support
859 --enable-z3950 Enable Z39.50 client support
860 --disable-yaz Disable YAZ compilation
861 --disable-accentfold Disable Accent Folding for MGPP
862 --disable-jdbm Disable JDBM compilation
863 --disable-sqlite Disable SQLite support
864 --enable-apache-httpd Enable Apache httpd support
865 --enable-jni Enable JNI compilation
866 --disable-mg Disable MG compilation
867 --disable-mgpp Disable MGPP compilation
868 --disable-lucene Disable Lucene compilation
869
870Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-micodir Use installed MICO directory
874 --with-dmalloc use dmalloc, as in
875 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
876 --with-regex use older regex in lieu of GNU rx for matching
877
878Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 CXX C++ compiler command
886 CXXFLAGS C++ compiler flags
887 CPP C preprocessor
888
889Use these variables to override the choices made by `configure' or to help
890it to find libraries and programs with nonstandard names/locations.
891
892_ACEOF
893fi
894
895if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
901
902if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906else
907 ac_dir_suffix= ac_top_builddir=
908fi
909
910case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924esac
925
926# Do not use `cd foo && pwd` to compute absolute paths, because
927# the directories may not exist.
928case `pwd` in
929.) ac_abs_builddir="$ac_dir";;
930*)
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936esac
937case $ac_abs_builddir in
938.) ac_abs_top_builddir=${ac_top_builddir}.;;
939*)
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945esac
946case $ac_abs_builddir in
947.) ac_abs_srcdir=$ac_srcdir;;
948*)
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_top_srcdir=$ac_top_srcdir;;
957*)
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963esac
964
965 cd $ac_dir
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
968 echo
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
971 echo
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
975 echo
976 $ac_configure --help
977 else
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 fi
980 cd $ac_popdir
981 done
982fi
983
984test -n "$ac_init_help" && exit 0
985if $ac_init_version; then
986 cat <<\_ACEOF
987
988Copyright (C) 2003 Free Software Foundation, Inc.
989This configure script is free software; the Free Software Foundation
990gives unlimited permission to copy, distribute and modify it.
991_ACEOF
992 exit 0
993fi
994exec 5>config.log
995cat >&5 <<_ACEOF
996This file contains any messages produced by compilers while
997running configure, to aid debugging if configure makes a mistake.
998
999It was created by $as_me, which was
1000generated by GNU Autoconf 2.59. Invocation command line was
1001
1002 $ $0 $@
1003
1004_ACEOF
1005{
1006cat <<_ASUNAME
1007## --------- ##
1008## Platform. ##
1009## --------- ##
1010
1011hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016
1017/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019
1020/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027
1028_ASUNAME
1029
1030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031for as_dir in $PATH
1032do
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036done
1037
1038} >&5
1039
1040cat >&5 <<_ACEOF
1041
1042
1043## ----------- ##
1044## Core tests. ##
1045## ----------- ##
1046
1047_ACEOF
1048
1049
1050# Keep a trace of the command line.
1051# Strip out --no-create and --no-recursion so they do not pile up.
1052# Strip out --silent because we don't want to record it for future runs.
1053# Also quote any args containing shell meta-characters.
1054# Make two passes to allow for proper duplicate-argument suppression.
1055ac_configure_args=
1056ac_configure_args0=
1057ac_configure_args1=
1058ac_sep=
1059ac_must_keep_next=false
1060for ac_pass in 1 2
1061do
1062 for ac_arg
1063 do
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 2)
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1087 ;;
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1090 fi
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1094 ;;
1095 esac
1096 done
1097done
1098$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100
1101# When interrupted or exit'd, cleanup temporary files, and complete
1102# config.log. We remove comments because anyway the quotes in there
1103# would cause problems or look ugly.
1104# WARNING: Be sure not to use single quotes in there, as some shells,
1105# such as our DU 5.0 friend, will then `close' the trap.
1106trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1108 {
1109 echo
1110
1111 cat <<\_ASBOX
1112## ---------------- ##
1113## Cache variables. ##
1114## ---------------- ##
1115_ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
1118{
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 ;;
1126 *)
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 ;;
1130 esac;
1131}
1132 echo
1133
1134 cat <<\_ASBOX
1135## ----------------- ##
1136## Output variables. ##
1137## ----------------- ##
1138_ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1141 do
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1146
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149## ------------- ##
1150## Output files. ##
1151## ------------- ##
1152_ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1155 do
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1160 fi
1161
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164## ----------- ##
1165## confdefs.h. ##
1166## ----------- ##
1167_ASBOX
1168 echo
1169 sed "/^$/d" confdefs.h | sort
1170 echo
1171 fi
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 exit $exit_status
1179 ' 0
1180for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182done
1183ac_signal=0
1184
1185# confdefs.h avoids OS command line length limits that DEFS can exceed.
1186rm -rf conftest* confdefs.h
1187# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188echo >confdefs.h
1189
1190# Predefined preprocessor variables.
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_NAME "$PACKAGE_NAME"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_VERSION "$PACKAGE_VERSION"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_STRING "$PACKAGE_STRING"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214_ACEOF
1215
1216
1217# Let the site file select an alternate cache file if it wants to.
1218# Prefer explicitly selected file to automatically selected ones.
1219if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 fi
1225fi
1226for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1231 . "$ac_site_file"
1232 fi
1233done
1234
1235if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1245 fi
1246else
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1250fi
1251
1252# Check that the precious variables saved in the cache have kept the same
1253# value.
1254ac_cache_corrupted=false
1255for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1271 *)
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1280 fi;;
1281 esac
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 esac
1293 fi
1294done
1295if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1301fi
1302
1303ac_ext=c
1304ac_cpp='$CPP $CPPFLAGS'
1305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327 ac_config_headers="$ac_config_headers config.h"
1328
1329
1330PACKAGE=gsdl
1331VERSION=2.82-svn
1332cat >>confdefs.h <<_ACEOF
1333#define PACKAGE "$PACKAGE"
1334_ACEOF
1335
1336cat >>confdefs.h <<_ACEOF
1337#define VERSION "$VERSION"
1338_ACEOF
1339
1340
1341
1342
1343
1344USE_FASTCGI=0
1345if test USE_FASTCGI = 1; then
1346cat >>confdefs.h <<\_ACEOF
1347#define USE_FASTCGI 1
1348_ACEOF
1349
1350
1351fi
1352
1353if test USE_LANGACTION = 1; then
1354cat >>confdefs.h <<\_ACEOF
1355#define USE_LANGACTION 1
1356_ACEOF
1357
1358
1359fi
1360
1361# Check whether --enable-corba or --disable-corba was given.
1362if test "${enable_corba+set}" = set; then
1363 enableval="$enable_corba"
1364 USE_CORBA=1
1365else
1366 USE_CORBA=0
1367fi;
1368cat >>confdefs.h <<_ACEOF
1369#define USE_CORBA $USE_CORBA
1370_ACEOF
1371
1372
1373
1374
1375# Check whether --with-micodir or --without-micodir was given.
1376if test "${with_micodir+set}" = set; then
1377 withval="$with_micodir"
1378 MICO_DIR=$withval
1379else
1380 MICO_DIR="default"
1381fi;
1382cat >>confdefs.h <<_ACEOF
1383#define MICO_DIR "$MICO_DIR"
1384_ACEOF
1385
1386
1387
1388# Check whether --enable-z3950 or --disable-z3950 was given.
1389if test "${enable_z3950+set}" = set; then
1390 enableval="$enable_z3950"
1391 USE_Z3950=1
1392else
1393 USE_Z3950=0
1394fi;
1395if test USE_Z3950 = 1; then
1396cat >>confdefs.h <<\_ACEOF
1397#define USE_Z3950 $USE_Z3950
1398_ACEOF
1399
1400
1401fi
1402
1403# Check whether --enable-yaz or --disable-yaz was given.
1404if test "${enable_yaz+set}" = set; then
1405 enableval="$enable_yaz"
1406 USE_YAZ=0
1407else
1408 USE_YAZ=1
1409fi;
1410cat >>confdefs.h <<\_ACEOF
1411#define USE_YAZ $USE_YAZ
1412_ACEOF
1413
1414
1415
1416# Check whether --enable-accentfold or --disable-accentfold was given.
1417if test "${enable_accentfold+set}" = set; then
1418 enableval="$enable_accentfold"
1419 ENABLE_ACCENTFOLD=0
1420else
1421 ENABLE_ACCENTFOLD=1
1422fi;
1423cat >>confdefs.h <<\_ACEOF
1424#define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
1425_ACEOF
1426
1427
1428
1429# Check whether --enable-jdbm or --disable-jdbm was given.
1430if test "${enable_jdbm+set}" = set; then
1431 enableval="$enable_jdbm"
1432 ENABLE_JDBM=$enableval
1433else
1434 ENABLE_JDBM=yes
1435fi;
1436if test $ENABLE_JDBM = "yes" -o $ENABLE_JDBM = "1" ; then
1437 ENABLE_JDBM=1
1438 cat >>confdefs.h <<\_ACEOF
1439#define ENABLE_JDBM
1440_ACEOF
1441
1442else
1443 ENABLE_JDBM=0
1444fi
1445
1446
1447# Check whether --enable-sqlite or --disable-sqlite was given.
1448if test "${enable_sqlite+set}" = set; then
1449 enableval="$enable_sqlite"
1450 USE_SQLITE=0
1451else
1452 USE_SQLITE=1
1453fi;
1454cat >>confdefs.h <<\_ACEOF
1455#define USE_SQLITE $USE_SQLITE
1456_ACEOF
1457
1458
1459
1460if test -d runtime-src; then
1461 # Check whether --enable-apache-httpd or --disable-apache-httpd was given.
1462if test "${enable_apache_httpd+set}" = set; then
1463 enableval="$enable_apache_httpd"
1464 USE_APACHE_HTTPD=1
1465else
1466 USE_APACHE_HTTPD=0
1467fi;
1468 cat >>confdefs.h <<\_ACEOF
1469#define USE_APACHE_HTTPD $USE_APACHE_HTTPD
1470_ACEOF
1471
1472
1473fi
1474
1475# Check whether --enable-jni or --disable-jni was given.
1476if test "${enable_jni+set}" = set; then
1477 enableval="$enable_jni"
1478 ENABLE_JNI=$enableval
1479else
1480 ENABLE_JNI=no
1481fi;
1482if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
1483 ENABLE_JNI=1
1484 cat >>confdefs.h <<\_ACEOF
1485#define ENABLE_JNI
1486_ACEOF
1487
1488else
1489 ENABLE_JNI=0
1490fi
1491
1492
1493# Check whether --enable-mg or --disable-mg was given.
1494if test "${enable_mg+set}" = set; then
1495 enableval="$enable_mg"
1496 ENABLE_MG=$enableval
1497else
1498 ENABLE_MG=yes
1499fi;
1500if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
1501 ENABLE_MG=1
1502 cat >>confdefs.h <<\_ACEOF
1503#define ENABLE_MG
1504_ACEOF
1505
1506 else
1507 ENABLE_MG=0
1508 fi
1509
1510
1511
1512# Check whether --enable-mgpp or --disable-mgpp was given.
1513if test "${enable_mgpp+set}" = set; then
1514 enableval="$enable_mgpp"
1515 ENABLE_MGPP=$enableval
1516else
1517 ENABLE_MGPP=yes
1518fi;
1519if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
1520 ENABLE_MGPP=1
1521 cat >>confdefs.h <<\_ACEOF
1522#define ENABLE_MGPP
1523_ACEOF
1524
1525else
1526 ENABLE_MGPP=0
1527fi
1528
1529
1530# Check whether --enable-lucene or --disable-lucene was given.
1531if test "${enable_lucene+set}" = set; then
1532 enableval="$enable_lucene"
1533 ENABLE_LUCENE=$enableval
1534else
1535 ENABLE_LUCENE=yes
1536fi;
1537if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
1538 ENABLE_LUCENE=1
1539 cat >>confdefs.h <<\_ACEOF
1540#define ENABLE_LUCENE
1541_ACEOF
1542
1543else
1544 ENABLE_LUCENE=0
1545fi
1546
1547
1548
1549LDFLAGS=$LDFLAGS
1550
1551if test -z "$CFLAGS"; then
1552CFLAGS=-O2
1553fi
1554
1555
1556
1557ac_ext=c
1558ac_cpp='$CPP $CPPFLAGS'
1559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1561ac_compiler_gnu=$ac_cv_c_compiler_gnu
1562if test -n "$ac_tool_prefix"; then
1563 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1564set dummy ${ac_tool_prefix}gcc; ac_word=$2
1565echo "$as_me:$LINENO: checking for $ac_word" >&5
1566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567if test "${ac_cv_prog_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569else
1570 if test -n "$CC"; then
1571 ac_cv_prog_CC="$CC" # Let the user override the test.
1572else
1573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574for as_dir in $PATH
1575do
1576 IFS=$as_save_IFS
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582 break 2
1583 fi
1584done
1585done
1586
1587fi
1588fi
1589CC=$ac_cv_prog_CC
1590if test -n "$CC"; then
1591 echo "$as_me:$LINENO: result: $CC" >&5
1592echo "${ECHO_T}$CC" >&6
1593else
1594 echo "$as_me:$LINENO: result: no" >&5
1595echo "${ECHO_T}no" >&6
1596fi
1597
1598fi
1599if test -z "$ac_cv_prog_CC"; then
1600 ac_ct_CC=$CC
1601 # Extract the first word of "gcc", so it can be a program name with args.
1602set dummy gcc; ac_word=$2
1603echo "$as_me:$LINENO: checking for $ac_word" >&5
1604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608 if test -n "$ac_ct_CC"; then
1609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1610else
1611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612for as_dir in $PATH
1613do
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 ac_cv_prog_ac_ct_CC="gcc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1621 fi
1622done
1623done
1624
1625fi
1626fi
1627ac_ct_CC=$ac_cv_prog_ac_ct_CC
1628if test -n "$ac_ct_CC"; then
1629 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1630echo "${ECHO_T}$ac_ct_CC" >&6
1631else
1632 echo "$as_me:$LINENO: result: no" >&5
1633echo "${ECHO_T}no" >&6
1634fi
1635
1636 CC=$ac_ct_CC
1637else
1638 CC="$ac_cv_prog_CC"
1639fi
1640
1641if test -z "$CC"; then
1642 if test -n "$ac_tool_prefix"; then
1643 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1644set dummy ${ac_tool_prefix}cc; ac_word=$2
1645echo "$as_me:$LINENO: checking for $ac_word" >&5
1646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647if test "${ac_cv_prog_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649else
1650 if test -n "$CC"; then
1651 ac_cv_prog_CC="$CC" # Let the user override the test.
1652else
1653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654for as_dir in $PATH
1655do
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_CC="${ac_tool_prefix}cc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 break 2
1663 fi
1664done
1665done
1666
1667fi
1668fi
1669CC=$ac_cv_prog_CC
1670if test -n "$CC"; then
1671 echo "$as_me:$LINENO: result: $CC" >&5
1672echo "${ECHO_T}$CC" >&6
1673else
1674 echo "$as_me:$LINENO: result: no" >&5
1675echo "${ECHO_T}no" >&6
1676fi
1677
1678fi
1679if test -z "$ac_cv_prog_CC"; then
1680 ac_ct_CC=$CC
1681 # Extract the first word of "cc", so it can be a program name with args.
1682set dummy cc; ac_word=$2
1683echo "$as_me:$LINENO: checking for $ac_word" >&5
1684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687else
1688 if test -n "$ac_ct_CC"; then
1689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1690else
1691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692for as_dir in $PATH
1693do
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698 ac_cv_prog_ac_ct_CC="cc"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1701 fi
1702done
1703done
1704
1705fi
1706fi
1707ac_ct_CC=$ac_cv_prog_ac_ct_CC
1708if test -n "$ac_ct_CC"; then
1709 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1710echo "${ECHO_T}$ac_ct_CC" >&6
1711else
1712 echo "$as_me:$LINENO: result: no" >&5
1713echo "${ECHO_T}no" >&6
1714fi
1715
1716 CC=$ac_ct_CC
1717else
1718 CC="$ac_cv_prog_CC"
1719fi
1720
1721fi
1722if test -z "$CC"; then
1723 # Extract the first word of "cc", so it can be a program name with args.
1724set dummy cc; ac_word=$2
1725echo "$as_me:$LINENO: checking for $ac_word" >&5
1726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727if test "${ac_cv_prog_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729else
1730 if test -n "$CC"; then
1731 ac_cv_prog_CC="$CC" # Let the user override the test.
1732else
1733 ac_prog_rejected=no
1734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735for as_dir in $PATH
1736do
1737 IFS=$as_save_IFS
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1742 ac_prog_rejected=yes
1743 continue
1744 fi
1745 ac_cv_prog_CC="cc"
1746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747 break 2
1748 fi
1749done
1750done
1751
1752if test $ac_prog_rejected = yes; then
1753 # We found a bogon in the path, so make sure we never use it.
1754 set dummy $ac_cv_prog_CC
1755 shift
1756 if test $# != 0; then
1757 # We chose a different compiler from the bogus one.
1758 # However, it has the same basename, so the bogon will be chosen
1759 # first if we set CC to just the basename; use the full file name.
1760 shift
1761 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1762 fi
1763fi
1764fi
1765fi
1766CC=$ac_cv_prog_CC
1767if test -n "$CC"; then
1768 echo "$as_me:$LINENO: result: $CC" >&5
1769echo "${ECHO_T}$CC" >&6
1770else
1771 echo "$as_me:$LINENO: result: no" >&5
1772echo "${ECHO_T}no" >&6
1773fi
1774
1775fi
1776if test -z "$CC"; then
1777 if test -n "$ac_tool_prefix"; then
1778 for ac_prog in cl
1779 do
1780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1781set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1782echo "$as_me:$LINENO: checking for $ac_word" >&5
1783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784if test "${ac_cv_prog_CC+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1786else
1787 if test -n "$CC"; then
1788 ac_cv_prog_CC="$CC" # Let the user override the test.
1789else
1790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791for as_dir in $PATH
1792do
1793 IFS=$as_save_IFS
1794 test -z "$as_dir" && as_dir=.
1795 for ac_exec_ext in '' $ac_executable_extensions; do
1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1800 fi
1801done
1802done
1803
1804fi
1805fi
1806CC=$ac_cv_prog_CC
1807if test -n "$CC"; then
1808 echo "$as_me:$LINENO: result: $CC" >&5
1809echo "${ECHO_T}$CC" >&6
1810else
1811 echo "$as_me:$LINENO: result: no" >&5
1812echo "${ECHO_T}no" >&6
1813fi
1814
1815 test -n "$CC" && break
1816 done
1817fi
1818if test -z "$CC"; then
1819 ac_ct_CC=$CC
1820 for ac_prog in cl
1821do
1822 # Extract the first word of "$ac_prog", so it can be a program name with args.
1823set dummy $ac_prog; ac_word=$2
1824echo "$as_me:$LINENO: checking for $ac_word" >&5
1825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828else
1829 if test -n "$ac_ct_CC"; then
1830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1831else
1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833for as_dir in $PATH
1834do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_ac_ct_CC="$ac_prog"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1842 fi
1843done
1844done
1845
1846fi
1847fi
1848ac_ct_CC=$ac_cv_prog_ac_ct_CC
1849if test -n "$ac_ct_CC"; then
1850 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1851echo "${ECHO_T}$ac_ct_CC" >&6
1852else
1853 echo "$as_me:$LINENO: result: no" >&5
1854echo "${ECHO_T}no" >&6
1855fi
1856
1857 test -n "$ac_ct_CC" && break
1858done
1859
1860 CC=$ac_ct_CC
1861fi
1862
1863fi
1864
1865
1866test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1867See \`config.log' for more details." >&5
1868echo "$as_me: error: no acceptable C compiler found in \$PATH
1869See \`config.log' for more details." >&2;}
1870 { (exit 1); exit 1; }; }
1871
1872# Provide some information about the compiler.
1873echo "$as_me:$LINENO:" \
1874 "checking for C compiler version" >&5
1875ac_compiler=`set X $ac_compile; echo $2`
1876{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1877 (eval $ac_compiler --version </dev/null >&5) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }
1881{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1882 (eval $ac_compiler -v </dev/null >&5) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }
1886{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1887 (eval $ac_compiler -V </dev/null >&5) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }
1891
1892cat >conftest.$ac_ext <<_ACEOF
1893/* confdefs.h. */
1894_ACEOF
1895cat confdefs.h >>conftest.$ac_ext
1896cat >>conftest.$ac_ext <<_ACEOF
1897/* end confdefs.h. */
1898
1899int
1900main ()
1901{
1902
1903 ;
1904 return 0;
1905}
1906_ACEOF
1907ac_clean_files_save=$ac_clean_files
1908ac_clean_files="$ac_clean_files a.out a.exe b.out"
1909# Try to create an executable without -o first, disregard a.out.
1910# It will help us diagnose broken compilers, and finding out an intuition
1911# of exeext.
1912echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1913echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1914ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1915if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1916 (eval $ac_link_default) 2>&5
1917 ac_status=$?
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }; then
1920 # Find the output, starting from the most likely. This scheme is
1921# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1922# resort.
1923
1924# Be careful to initialize this variable, since it used to be cached.
1925# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1926ac_cv_exeext=
1927# b.out is created by i960 compilers.
1928for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1929do
1930 test -f "$ac_file" || continue
1931 case $ac_file in
1932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1933 ;;
1934 conftest.$ac_ext )
1935 # This is the source file.
1936 ;;
1937 [ab].out )
1938 # We found the default executable, but exeext='' is most
1939 # certainly right.
1940 break;;
1941 *.* )
1942 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1943 # FIXME: I believe we export ac_cv_exeext for Libtool,
1944 # but it would be cool to find out if it's true. Does anybody
1945 # maintain Libtool? --akim.
1946 export ac_cv_exeext
1947 break;;
1948 * )
1949 break;;
1950 esac
1951done
1952else
1953 echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
1956{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1957See \`config.log' for more details." >&5
1958echo "$as_me: error: C compiler cannot create executables
1959See \`config.log' for more details." >&2;}
1960 { (exit 77); exit 77; }; }
1961fi
1962
1963ac_exeext=$ac_cv_exeext
1964echo "$as_me:$LINENO: result: $ac_file" >&5
1965echo "${ECHO_T}$ac_file" >&6
1966
1967# Check the compiler produces executables we can run. If not, either
1968# the compiler is broken, or we cross compile.
1969echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1970echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1971# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1972# If not cross compiling, check that we can run a simple program.
1973if test "$cross_compiling" != yes; then
1974 if { ac_try='./$ac_file'
1975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1976 (eval $ac_try) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; }; then
1980 cross_compiling=no
1981 else
1982 if test "$cross_compiling" = maybe; then
1983 cross_compiling=yes
1984 else
1985 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1986If you meant to cross compile, use \`--host'.
1987See \`config.log' for more details." >&5
1988echo "$as_me: error: cannot run C compiled programs.
1989If you meant to cross compile, use \`--host'.
1990See \`config.log' for more details." >&2;}
1991 { (exit 1); exit 1; }; }
1992 fi
1993 fi
1994fi
1995echo "$as_me:$LINENO: result: yes" >&5
1996echo "${ECHO_T}yes" >&6
1997
1998rm -f a.out a.exe conftest$ac_cv_exeext b.out
1999ac_clean_files=$ac_clean_files_save
2000# Check the compiler produces executables we can run. If not, either
2001# the compiler is broken, or we cross compile.
2002echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2003echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2004echo "$as_me:$LINENO: result: $cross_compiling" >&5
2005echo "${ECHO_T}$cross_compiling" >&6
2006
2007echo "$as_me:$LINENO: checking for suffix of executables" >&5
2008echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2010 (eval $ac_link) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; then
2014 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2015# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2016# work properly (i.e., refer to `conftest.exe'), while it won't with
2017# `rm'.
2018for ac_file in conftest.exe conftest conftest.*; do
2019 test -f "$ac_file" || continue
2020 case $ac_file in
2021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2023 export ac_cv_exeext
2024 break;;
2025 * ) break;;
2026 esac
2027done
2028else
2029 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2030See \`config.log' for more details." >&5
2031echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2032See \`config.log' for more details." >&2;}
2033 { (exit 1); exit 1; }; }
2034fi
2035
2036rm -f conftest$ac_cv_exeext
2037echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2038echo "${ECHO_T}$ac_cv_exeext" >&6
2039
2040rm -f conftest.$ac_ext
2041EXEEXT=$ac_cv_exeext
2042ac_exeext=$EXEEXT
2043echo "$as_me:$LINENO: checking for suffix of object files" >&5
2044echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2045if test "${ac_cv_objext+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047else
2048 cat >conftest.$ac_ext <<_ACEOF
2049/* confdefs.h. */
2050_ACEOF
2051cat confdefs.h >>conftest.$ac_ext
2052cat >>conftest.$ac_ext <<_ACEOF
2053/* end confdefs.h. */
2054
2055int
2056main ()
2057{
2058
2059 ;
2060 return 0;
2061}
2062_ACEOF
2063rm -f conftest.o conftest.obj
2064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2065 (eval $ac_compile) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; then
2069 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2070 case $ac_file in
2071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2072 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2073 break;;
2074 esac
2075done
2076else
2077 echo "$as_me: failed program was:" >&5
2078sed 's/^/| /' conftest.$ac_ext >&5
2079
2080{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2081See \`config.log' for more details." >&5
2082echo "$as_me: error: cannot compute suffix of object files: cannot compile
2083See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2085fi
2086
2087rm -f conftest.$ac_cv_objext conftest.$ac_ext
2088fi
2089echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2090echo "${ECHO_T}$ac_cv_objext" >&6
2091OBJEXT=$ac_cv_objext
2092ac_objext=$OBJEXT
2093echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2094echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2095if test "${ac_cv_c_compiler_gnu+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098 cat >conftest.$ac_ext <<_ACEOF
2099/* confdefs.h. */
2100_ACEOF
2101cat confdefs.h >>conftest.$ac_ext
2102cat >>conftest.$ac_ext <<_ACEOF
2103/* end confdefs.h. */
2104
2105int
2106main ()
2107{
2108#ifndef __GNUC__
2109 choke me
2110#endif
2111
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116rm -f conftest.$ac_objext
2117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118 (eval $ac_compile) 2>conftest.er1
2119 ac_status=$?
2120 grep -v '^ *+' conftest.er1 >conftest.err
2121 rm -f conftest.er1
2122 cat conftest.err >&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); } &&
2125 { ac_try='test -z "$ac_c_werror_flag"
2126 || test ! -s conftest.err'
2127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2128 (eval $ac_try) 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }; } &&
2132 { ac_try='test -s conftest.$ac_objext'
2133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134 (eval $ac_try) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; }; then
2138 ac_compiler_gnu=yes
2139else
2140 echo "$as_me: failed program was:" >&5
2141sed 's/^/| /' conftest.$ac_ext >&5
2142
2143ac_compiler_gnu=no
2144fi
2145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2146ac_cv_c_compiler_gnu=$ac_compiler_gnu
2147
2148fi
2149echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2150echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2151GCC=`test $ac_compiler_gnu = yes && echo yes`
2152ac_test_CFLAGS=${CFLAGS+set}
2153ac_save_CFLAGS=$CFLAGS
2154CFLAGS="-g"
2155echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2156echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2157if test "${ac_cv_prog_cc_g+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
2160 cat >conftest.$ac_ext <<_ACEOF
2161/* confdefs.h. */
2162_ACEOF
2163cat confdefs.h >>conftest.$ac_ext
2164cat >>conftest.$ac_ext <<_ACEOF
2165/* end confdefs.h. */
2166
2167int
2168main ()
2169{
2170
2171 ;
2172 return 0;
2173}
2174_ACEOF
2175rm -f conftest.$ac_objext
2176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177 (eval $ac_compile) 2>conftest.er1
2178 ac_status=$?
2179 grep -v '^ *+' conftest.er1 >conftest.err
2180 rm -f conftest.er1
2181 cat conftest.err >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); } &&
2184 { ac_try='test -z "$ac_c_werror_flag"
2185 || test ! -s conftest.err'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; } &&
2191 { ac_try='test -s conftest.$ac_objext'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 (eval $ac_try) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; }; then
2197 ac_cv_prog_cc_g=yes
2198else
2199 echo "$as_me: failed program was:" >&5
2200sed 's/^/| /' conftest.$ac_ext >&5
2201
2202ac_cv_prog_cc_g=no
2203fi
2204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2205fi
2206echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2207echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2208if test "$ac_test_CFLAGS" = set; then
2209 CFLAGS=$ac_save_CFLAGS
2210elif test $ac_cv_prog_cc_g = yes; then
2211 if test "$GCC" = yes; then
2212 CFLAGS="-g -O2"
2213 else
2214 CFLAGS="-g"
2215 fi
2216else
2217 if test "$GCC" = yes; then
2218 CFLAGS="-O2"
2219 else
2220 CFLAGS=
2221 fi
2222fi
2223echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2224echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2225if test "${ac_cv_prog_cc_stdc+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
2228 ac_cv_prog_cc_stdc=no
2229ac_save_CC=$CC
2230cat >conftest.$ac_ext <<_ACEOF
2231/* confdefs.h. */
2232_ACEOF
2233cat confdefs.h >>conftest.$ac_ext
2234cat >>conftest.$ac_ext <<_ACEOF
2235/* end confdefs.h. */
2236#include <stdarg.h>
2237#include <stdio.h>
2238#include <sys/types.h>
2239#include <sys/stat.h>
2240/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2241struct buf { int x; };
2242FILE * (*rcsopen) (struct buf *, struct stat *, int);
2243static char *e (p, i)
2244 char **p;
2245 int i;
2246{
2247 return p[i];
2248}
2249static char *f (char * (*g) (char **, int), char **p, ...)
2250{
2251 char *s;
2252 va_list v;
2253 va_start (v,p);
2254 s = g (p, va_arg (v,int));
2255 va_end (v);
2256 return s;
2257}
2258
2259/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2260 function prototypes and stuff, but not '\xHH' hex character constants.
2261 These don't provoke an error unfortunately, instead are silently treated
2262 as 'x'. The following induces an error, until -std1 is added to get
2263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2264 array size at least. It's necessary to write '\x00'==0 to get something
2265 that's true only with -std1. */
2266int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2267
2268int test (int i, double x);
2269struct s1 {int (*f) (int a);};
2270struct s2 {int (*f) (double a);};
2271int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2272int argc;
2273char **argv;
2274int
2275main ()
2276{
2277return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2278 ;
2279 return 0;
2280}
2281_ACEOF
2282# Don't try gcc -ansi; that turns off useful extensions and
2283# breaks some systems' header files.
2284# AIX -qlanglvl=ansi
2285# Ultrix and OSF/1 -std1
2286# HP-UX 10.20 and later -Ae
2287# HP-UX older versions -Aa -D_HPUX_SOURCE
2288# SVR4 -Xc -D__EXTENSIONS__
2289for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2290do
2291 CC="$ac_save_CC $ac_arg"
2292 rm -f conftest.$ac_objext
2293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>conftest.er1
2295 ac_status=$?
2296 grep -v '^ *+' conftest.er1 >conftest.err
2297 rm -f conftest.er1
2298 cat conftest.err >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); } &&
2301 { ac_try='test -z "$ac_c_werror_flag"
2302 || test ! -s conftest.err'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; } &&
2308 { ac_try='test -s conftest.$ac_objext'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; }; then
2314 ac_cv_prog_cc_stdc=$ac_arg
2315break
2316else
2317 echo "$as_me: failed program was:" >&5
2318sed 's/^/| /' conftest.$ac_ext >&5
2319
2320fi
2321rm -f conftest.err conftest.$ac_objext
2322done
2323rm -f conftest.$ac_ext conftest.$ac_objext
2324CC=$ac_save_CC
2325
2326fi
2327
2328case "x$ac_cv_prog_cc_stdc" in
2329 x|xno)
2330 echo "$as_me:$LINENO: result: none needed" >&5
2331echo "${ECHO_T}none needed" >&6 ;;
2332 *)
2333 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2334echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2335 CC="$CC $ac_cv_prog_cc_stdc" ;;
2336esac
2337
2338# Some people use a C++ compiler to compile C. Since we use `exit',
2339# in C++ we need to declare it. In case someone uses the same compiler
2340# for both compiling C and C++ we need to have the C++ compiler decide
2341# the declaration of exit, since it's the most demanding environment.
2342cat >conftest.$ac_ext <<_ACEOF
2343#ifndef __cplusplus
2344 choke me
2345#endif
2346_ACEOF
2347rm -f conftest.$ac_objext
2348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>conftest.er1
2350 ac_status=$?
2351 grep -v '^ *+' conftest.er1 >conftest.err
2352 rm -f conftest.er1
2353 cat conftest.err >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } &&
2356 { ac_try='test -z "$ac_c_werror_flag"
2357 || test ! -s conftest.err'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2369 for ac_declaration in \
2370 '' \
2371 'extern "C" void std::exit (int) throw (); using std::exit;' \
2372 'extern "C" void std::exit (int); using std::exit;' \
2373 'extern "C" void exit (int) throw ();' \
2374 'extern "C" void exit (int);' \
2375 'void exit (int);'
2376do
2377 cat >conftest.$ac_ext <<_ACEOF
2378/* confdefs.h. */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h. */
2383$ac_declaration
2384#include <stdlib.h>
2385int
2386main ()
2387{
2388exit (42);
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393rm -f conftest.$ac_objext
2394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -z "$ac_c_werror_flag"
2403 || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest.$ac_objext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 :
2416else
2417 echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
2420continue
2421fi
2422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2423 cat >conftest.$ac_ext <<_ACEOF
2424/* confdefs.h. */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
2428/* end confdefs.h. */
2429$ac_declaration
2430int
2431main ()
2432{
2433exit (42);
2434 ;
2435 return 0;
2436}
2437_ACEOF
2438rm -f conftest.$ac_objext
2439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440 (eval $ac_compile) 2>conftest.er1
2441 ac_status=$?
2442 grep -v '^ *+' conftest.er1 >conftest.err
2443 rm -f conftest.er1
2444 cat conftest.err >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -z "$ac_c_werror_flag"
2448 || test ! -s conftest.err'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; } &&
2454 { ac_try='test -s conftest.$ac_objext'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2460 break
2461else
2462 echo "$as_me: failed program was:" >&5
2463sed 's/^/| /' conftest.$ac_ext >&5
2464
2465fi
2466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2467done
2468rm -f conftest*
2469if test -n "$ac_declaration"; then
2470 echo '#ifdef __cplusplus' >>confdefs.h
2471 echo $ac_declaration >>confdefs.h
2472 echo '#endif' >>confdefs.h
2473fi
2474
2475else
2476 echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479fi
2480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2481ac_ext=c
2482ac_cpp='$CPP $CPPFLAGS'
2483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486
2487ac_ext=cc
2488ac_cpp='$CXXCPP $CPPFLAGS'
2489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2492if test -n "$ac_tool_prefix"; then
2493 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2494 do
2495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2496set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2497echo "$as_me:$LINENO: checking for $ac_word" >&5
2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499if test "${ac_cv_prog_CXX+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502 if test -n "$CXX"; then
2503 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2504else
2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506for as_dir in $PATH
2507do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 break 2
2515 fi
2516done
2517done
2518
2519fi
2520fi
2521CXX=$ac_cv_prog_CXX
2522if test -n "$CXX"; then
2523 echo "$as_me:$LINENO: result: $CXX" >&5
2524echo "${ECHO_T}$CXX" >&6
2525else
2526 echo "$as_me:$LINENO: result: no" >&5
2527echo "${ECHO_T}no" >&6
2528fi
2529
2530 test -n "$CXX" && break
2531 done
2532fi
2533if test -z "$CXX"; then
2534 ac_ct_CXX=$CXX
2535 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2536do
2537 # Extract the first word of "$ac_prog", so it can be a program name with args.
2538set dummy $ac_prog; ac_word=$2
2539echo "$as_me:$LINENO: checking for $ac_word" >&5
2540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2541if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543else
2544 if test -n "$ac_ct_CXX"; then
2545 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2546else
2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH
2549do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554 ac_cv_prog_ac_ct_CXX="$ac_prog"
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2557 fi
2558done
2559done
2560
2561fi
2562fi
2563ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2564if test -n "$ac_ct_CXX"; then
2565 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2566echo "${ECHO_T}$ac_ct_CXX" >&6
2567else
2568 echo "$as_me:$LINENO: result: no" >&5
2569echo "${ECHO_T}no" >&6
2570fi
2571
2572 test -n "$ac_ct_CXX" && break
2573done
2574test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2575
2576 CXX=$ac_ct_CXX
2577fi
2578
2579
2580# Provide some information about the compiler.
2581echo "$as_me:$LINENO:" \
2582 "checking for C++ compiler version" >&5
2583ac_compiler=`set X $ac_compile; echo $2`
2584{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2585 (eval $ac_compiler --version </dev/null >&5) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }
2589{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2590 (eval $ac_compiler -v </dev/null >&5) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }
2594{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2595 (eval $ac_compiler -V </dev/null >&5) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }
2599
2600echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2601echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2602if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2604else
2605 cat >conftest.$ac_ext <<_ACEOF
2606/* confdefs.h. */
2607_ACEOF
2608cat confdefs.h >>conftest.$ac_ext
2609cat >>conftest.$ac_ext <<_ACEOF
2610/* end confdefs.h. */
2611
2612int
2613main ()
2614{
2615#ifndef __GNUC__
2616 choke me
2617#endif
2618
2619 ;
2620 return 0;
2621}
2622_ACEOF
2623rm -f conftest.$ac_objext
2624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625 (eval $ac_compile) 2>conftest.er1
2626 ac_status=$?
2627 grep -v '^ *+' conftest.er1 >conftest.err
2628 rm -f conftest.er1
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -z "$ac_cxx_werror_flag"
2633 || test ! -s conftest.err'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try='test -s conftest.$ac_objext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 ac_compiler_gnu=yes
2646else
2647 echo "$as_me: failed program was:" >&5
2648sed 's/^/| /' conftest.$ac_ext >&5
2649
2650ac_compiler_gnu=no
2651fi
2652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2653ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2654
2655fi
2656echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2657echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2658GXX=`test $ac_compiler_gnu = yes && echo yes`
2659ac_test_CXXFLAGS=${CXXFLAGS+set}
2660ac_save_CXXFLAGS=$CXXFLAGS
2661CXXFLAGS="-g"
2662echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2663echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2664if test "${ac_cv_prog_cxx_g+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666else
2667 cat >conftest.$ac_ext <<_ACEOF
2668/* confdefs.h. */
2669_ACEOF
2670cat confdefs.h >>conftest.$ac_ext
2671cat >>conftest.$ac_ext <<_ACEOF
2672/* end confdefs.h. */
2673
2674int
2675main ()
2676{
2677
2678 ;
2679 return 0;
2680}
2681_ACEOF
2682rm -f conftest.$ac_objext
2683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684 (eval $ac_compile) 2>conftest.er1
2685 ac_status=$?
2686 grep -v '^ *+' conftest.er1 >conftest.err
2687 rm -f conftest.er1
2688 cat conftest.err >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } &&
2691 { ac_try='test -z "$ac_cxx_werror_flag"
2692 || test ! -s conftest.err'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; } &&
2698 { ac_try='test -s conftest.$ac_objext'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 (eval $ac_try) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; }; then
2704 ac_cv_prog_cxx_g=yes
2705else
2706 echo "$as_me: failed program was:" >&5
2707sed 's/^/| /' conftest.$ac_ext >&5
2708
2709ac_cv_prog_cxx_g=no
2710fi
2711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2712fi
2713echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2714echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2715if test "$ac_test_CXXFLAGS" = set; then
2716 CXXFLAGS=$ac_save_CXXFLAGS
2717elif test $ac_cv_prog_cxx_g = yes; then
2718 if test "$GXX" = yes; then
2719 CXXFLAGS="-g -O2"
2720 else
2721 CXXFLAGS="-g"
2722 fi
2723else
2724 if test "$GXX" = yes; then
2725 CXXFLAGS="-O2"
2726 else
2727 CXXFLAGS=
2728 fi
2729fi
2730for ac_declaration in \
2731 '' \
2732 'extern "C" void std::exit (int) throw (); using std::exit;' \
2733 'extern "C" void std::exit (int); using std::exit;' \
2734 'extern "C" void exit (int) throw ();' \
2735 'extern "C" void exit (int);' \
2736 'void exit (int);'
2737do
2738 cat >conftest.$ac_ext <<_ACEOF
2739/* confdefs.h. */
2740_ACEOF
2741cat confdefs.h >>conftest.$ac_ext
2742cat >>conftest.$ac_ext <<_ACEOF
2743/* end confdefs.h. */
2744$ac_declaration
2745#include <stdlib.h>
2746int
2747main ()
2748{
2749exit (42);
2750 ;
2751 return 0;
2752}
2753_ACEOF
2754rm -f conftest.$ac_objext
2755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756 (eval $ac_compile) 2>conftest.er1
2757 ac_status=$?
2758 grep -v '^ *+' conftest.er1 >conftest.err
2759 rm -f conftest.er1
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -z "$ac_cxx_werror_flag"
2764 || test ! -s conftest.err'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; } &&
2770 { ac_try='test -s conftest.$ac_objext'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2776 :
2777else
2778 echo "$as_me: failed program was:" >&5
2779sed 's/^/| /' conftest.$ac_ext >&5
2780
2781continue
2782fi
2783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784 cat >conftest.$ac_ext <<_ACEOF
2785/* confdefs.h. */
2786_ACEOF
2787cat confdefs.h >>conftest.$ac_ext
2788cat >>conftest.$ac_ext <<_ACEOF
2789/* end confdefs.h. */
2790$ac_declaration
2791int
2792main ()
2793{
2794exit (42);
2795 ;
2796 return 0;
2797}
2798_ACEOF
2799rm -f conftest.$ac_objext
2800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>conftest.er1
2802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try='test -z "$ac_cxx_werror_flag"
2809 || test ! -s conftest.err'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; } &&
2815 { ac_try='test -s conftest.$ac_objext'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 break
2822else
2823 echo "$as_me: failed program was:" >&5
2824sed 's/^/| /' conftest.$ac_ext >&5
2825
2826fi
2827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2828done
2829rm -f conftest*
2830if test -n "$ac_declaration"; then
2831 echo '#ifdef __cplusplus' >>confdefs.h
2832 echo $ac_declaration >>confdefs.h
2833 echo '#endif' >>confdefs.h
2834fi
2835
2836ac_ext=c
2837ac_cpp='$CPP $CPPFLAGS'
2838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841
2842for ac_prog in gawk mawk nawk awk
2843do
2844 # Extract the first word of "$ac_prog", so it can be a program name with args.
2845set dummy $ac_prog; ac_word=$2
2846echo "$as_me:$LINENO: checking for $ac_word" >&5
2847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2848if test "${ac_cv_prog_AWK+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850else
2851 if test -n "$AWK"; then
2852 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2853else
2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_AWK="$ac_prog"
2862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 break 2
2864 fi
2865done
2866done
2867
2868fi
2869fi
2870AWK=$ac_cv_prog_AWK
2871if test -n "$AWK"; then
2872 echo "$as_me:$LINENO: result: $AWK" >&5
2873echo "${ECHO_T}$AWK" >&6
2874else
2875 echo "$as_me:$LINENO: result: no" >&5
2876echo "${ECHO_T}no" >&6
2877fi
2878
2879 test -n "$AWK" && break
2880done
2881
2882for ac_prog in 'bison -y' byacc
2883do
2884 # Extract the first word of "$ac_prog", so it can be a program name with args.
2885set dummy $ac_prog; ac_word=$2
2886echo "$as_me:$LINENO: checking for $ac_word" >&5
2887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888if test "${ac_cv_prog_YACC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890else
2891 if test -n "$YACC"; then
2892 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_YACC="$ac_prog"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905done
2906done
2907
2908fi
2909fi
2910YACC=$ac_cv_prog_YACC
2911if test -n "$YACC"; then
2912 echo "$as_me:$LINENO: result: $YACC" >&5
2913echo "${ECHO_T}$YACC" >&6
2914else
2915 echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6
2917fi
2918
2919 test -n "$YACC" && break
2920done
2921test -n "$YACC" || YACC="yacc"
2922
2923ac_aux_dir=
2924for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2925 if test -f $ac_dir/install-sh; then
2926 ac_aux_dir=$ac_dir
2927 ac_install_sh="$ac_aux_dir/install-sh -c"
2928 break
2929 elif test -f $ac_dir/install.sh; then
2930 ac_aux_dir=$ac_dir
2931 ac_install_sh="$ac_aux_dir/install.sh -c"
2932 break
2933 elif test -f $ac_dir/shtool; then
2934 ac_aux_dir=$ac_dir
2935 ac_install_sh="$ac_aux_dir/shtool install -c"
2936 break
2937 fi
2938done
2939if test -z "$ac_aux_dir"; then
2940 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2941echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2942 { (exit 1); exit 1; }; }
2943fi
2944ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2945ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2946ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2947
2948# Make sure we can run config.sub.
2949$ac_config_sub sun4 >/dev/null 2>&1 ||
2950 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2951echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2952 { (exit 1); exit 1; }; }
2953
2954echo "$as_me:$LINENO: checking build system type" >&5
2955echo $ECHO_N "checking build system type... $ECHO_C" >&6
2956if test "${ac_cv_build+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958else
2959 ac_cv_build_alias=$build_alias
2960test -z "$ac_cv_build_alias" &&
2961 ac_cv_build_alias=`$ac_config_guess`
2962test -z "$ac_cv_build_alias" &&
2963 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2964echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2965 { (exit 1); exit 1; }; }
2966ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2967 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2968echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2969 { (exit 1); exit 1; }; }
2970
2971fi
2972echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2973echo "${ECHO_T}$ac_cv_build" >&6
2974build=$ac_cv_build
2975build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2976build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2977build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2978
2979
2980echo "$as_me:$LINENO: checking host system type" >&5
2981echo $ECHO_N "checking host system type... $ECHO_C" >&6
2982if test "${ac_cv_host+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984else
2985 ac_cv_host_alias=$host_alias
2986test -z "$ac_cv_host_alias" &&
2987 ac_cv_host_alias=$ac_cv_build_alias
2988ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2989 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2990echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2991 { (exit 1); exit 1; }; }
2992
2993fi
2994echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2995echo "${ECHO_T}$ac_cv_host" >&6
2996host=$ac_cv_host
2997host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2998host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2999host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3000
3001
3002echo "$as_me:$LINENO: checking target system type" >&5
3003echo $ECHO_N "checking target system type... $ECHO_C" >&6
3004if test "${ac_cv_target+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3006else
3007 ac_cv_target_alias=$target_alias
3008test "x$ac_cv_target_alias" = "x" &&
3009 ac_cv_target_alias=$ac_cv_host_alias
3010ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3011 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3012echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3013 { (exit 1); exit 1; }; }
3014
3015fi
3016echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3017echo "${ECHO_T}$ac_cv_target" >&6
3018target=$ac_cv_target
3019target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3020target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3021target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3022
3023
3024# The aliases save the names the user supplied, while $host etc.
3025# will get canonicalized.
3026test -n "$target_alias" &&
3027 test "$program_prefix$program_suffix$program_transform_name" = \
3028 NONENONEs,x,x, &&
3029 program_prefix=${target_alias}-
3030# Find a good install program. We prefer a C program (faster),
3031# so one script is as good as another. But avoid the broken or
3032# incompatible versions:
3033# SysV /etc/install, /usr/sbin/install
3034# SunOS /usr/etc/install
3035# IRIX /sbin/install
3036# AIX /bin/install
3037# AmigaOS /C/install, which installs bootblocks on floppy discs
3038# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3039# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3040# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3041# OS/2's system install, which has a completely different semantic
3042# ./install, which can be erroneously created by make from ./install.sh.
3043echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3044echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3045if test -z "$INSTALL"; then
3046if test "${ac_cv_path_install+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 # Account for people who put trailing slashes in PATH elements.
3055case $as_dir/ in
3056 ./ | .// | /cC/* | \
3057 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3058 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3059 /usr/ucb/* ) ;;
3060 *)
3061 # OSF1 and SCO ODT 3.0 have their own names for install.
3062 # Don't use installbsd from OSF since it installs stuff as root
3063 # by default.
3064 for ac_prog in ginstall scoinst install; do
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3067 if test $ac_prog = install &&
3068 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3069 # AIX install. It has an incompatible calling convention.
3070 :
3071 elif test $ac_prog = install &&
3072 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3073 # program-specific install script used by HP pwplus--don't use.
3074 :
3075 else
3076 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3077 break 3
3078 fi
3079 fi
3080 done
3081 done
3082 ;;
3083esac
3084done
3085
3086
3087fi
3088 if test "${ac_cv_path_install+set}" = set; then
3089 INSTALL=$ac_cv_path_install
3090 else
3091 # As a last resort, use the slow shell script. We don't cache a
3092 # path for INSTALL within a source directory, because that will
3093 # break other packages using the cache if that directory is
3094 # removed, or if the path is relative.
3095 INSTALL=$ac_install_sh
3096 fi
3097fi
3098echo "$as_me:$LINENO: result: $INSTALL" >&5
3099echo "${ECHO_T}$INSTALL" >&6
3100
3101# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3102# It thinks the first close brace ends the variable substitution.
3103test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3104
3105test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3106
3107test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3108
3109echo "$as_me:$LINENO: checking whether ln -s works" >&5
3110echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3111LN_S=$as_ln_s
3112if test "$LN_S" = "ln -s"; then
3113 echo "$as_me:$LINENO: result: yes" >&5
3114echo "${ECHO_T}yes" >&6
3115else
3116 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3117echo "${ECHO_T}no, using $LN_S" >&6
3118fi
3119
3120echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3121echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3122set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3123if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125else
3126 cat >conftest.make <<\_ACEOF
3127all:
3128 @echo 'ac_maketemp="$(MAKE)"'
3129_ACEOF
3130# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3131eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3132if test -n "$ac_maketemp"; then
3133 eval ac_cv_prog_make_${ac_make}_set=yes
3134else
3135 eval ac_cv_prog_make_${ac_make}_set=no
3136fi
3137rm -f conftest.make
3138fi
3139if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3140 echo "$as_me:$LINENO: result: yes" >&5
3141echo "${ECHO_T}yes" >&6
3142 SET_MAKE=
3143else
3144 echo "$as_me:$LINENO: result: no" >&5
3145echo "${ECHO_T}no" >&6
3146 SET_MAKE="MAKE=${MAKE-make}"
3147fi
3148
3149if test -n "$ac_tool_prefix"; then
3150 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3151set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3152echo "$as_me:$LINENO: checking for $ac_word" >&5
3153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3154if test "${ac_cv_prog_RANLIB+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
3157 if test -n "$RANLIB"; then
3158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3170 fi
3171done
3172done
3173
3174fi
3175fi
3176RANLIB=$ac_cv_prog_RANLIB
3177if test -n "$RANLIB"; then
3178 echo "$as_me:$LINENO: result: $RANLIB" >&5
3179echo "${ECHO_T}$RANLIB" >&6
3180else
3181 echo "$as_me:$LINENO: result: no" >&5
3182echo "${ECHO_T}no" >&6
3183fi
3184
3185fi
3186if test -z "$ac_cv_prog_RANLIB"; then
3187 ac_ct_RANLIB=$RANLIB
3188 # Extract the first word of "ranlib", so it can be a program name with args.
3189set dummy ranlib; ac_word=$2
3190echo "$as_me:$LINENO: checking for $ac_word" >&5
3191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3192if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194else
3195 if test -n "$ac_ct_RANLIB"; then
3196 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3197else
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205 ac_cv_prog_ac_ct_RANLIB="ranlib"
3206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3208 fi
3209done
3210done
3211
3212 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3213fi
3214fi
3215ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3216if test -n "$ac_ct_RANLIB"; then
3217 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3218echo "${ECHO_T}$ac_ct_RANLIB" >&6
3219else
3220 echo "$as_me:$LINENO: result: no" >&5
3221echo "${ECHO_T}no" >&6
3222fi
3223
3224 RANLIB=$ac_ct_RANLIB
3225else
3226 RANLIB="$ac_cv_prog_RANLIB"
3227fi
3228
3229
3230echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
3231echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
3232arch_64bit=no
3233case "$host_cpu" in
3234x86_64) arch_64bit=yes ;;
3235esac
3236
3237if test "$arch_64bit" = yes; then
3238 echo "$as_me:$LINENO: result: yes" >&5
3239echo "${ECHO_T}yes" >&6
3240 if test -z "$COMPAT32BITFLAGS" ; then
3241 COMPAT32BITFLAGS="-m32"
3242 fi
3243else
3244 echo "$as_me:$LINENO: result: no" >&5
3245echo "${ECHO_T}no" >&6
3246 if test -z "$COMPAT32BITFLAGS" ; then
3247 COMPAT32BITFLAGS=
3248 fi
3249fi
3250
3251# Only need compat32bitflag if using MG or MGPP
3252if test "$ENABLE_MG" = "0" ; then
3253 COMPAT32BITFLAGS=
3254else
3255 if test "$ENABLE_MGPP" = "0" ; then
3256 COMPAT32BITFLAGS=
3257 fi
3258fi
3259
3260export COMPAT32BITFLAGS
3261
3262
3263
3264#moved CORBA MICO directory test to get version of MICO
3265if test $USE_CORBA = 1; then
3266
3267if test $MICO_DIR = "default"; then
3268#do something
3269MICO_INC="-I packages/mico/mico/include"
3270else
3271#build the micotest program
3272MICO_INC= ""
3273if test $MICO_DIR != yes; then
3274MICO_INC="-I $MICO_DIR"
3275fi
3276fi
3277
3278#get MICO_VER value
3279sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
3280sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
3281MICO_VER=`./micotest` || MICO_VER=2.3.5
3282sh -c "rm micotest"
3283sh -c "rm micotest.o"
3284
3285#do test of MICO_VER
3286if test MICO_VER != 0; then
3287cat >>confdefs.h <<\_ACEOF
3288#define MICO_VER 1
3289_ACEOF
3290
3291
3292fi
3293#end USE_CORBA test
3294fi
3295
3296
3297ac_ext=c
3298ac_cpp='$CPP $CPPFLAGS'
3299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3303echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3304# On Suns, sometimes $CPP names a directory.
3305if test -n "$CPP" && test -d "$CPP"; then
3306 CPP=
3307fi
3308if test -z "$CPP"; then
3309 if test "${ac_cv_prog_CPP+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
3312 # Double quotes because CPP needs to be expanded
3313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314 do
3315 ac_preproc_ok=false
3316for ac_c_preproc_warn_flag in '' yes
3317do
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
3320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 # <limits.h> exists even on freestanding compilers.
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp. "Syntax error" is here to catch this case.
3324 cat >conftest.$ac_ext <<_ACEOF
3325/* confdefs.h. */
3326_ACEOF
3327cat confdefs.h >>conftest.$ac_ext
3328cat >>conftest.$ac_ext <<_ACEOF
3329/* end confdefs.h. */
3330#ifdef __STDC__
3331# include <limits.h>
3332#else
3333# include <assert.h>
3334#endif
3335 Syntax error
3336_ACEOF
3337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } >/dev/null; then
3345 if test -s conftest.err; then
3346 ac_cpp_err=$ac_c_preproc_warn_flag
3347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3348 else
3349 ac_cpp_err=
3350 fi
3351else
3352 ac_cpp_err=yes
3353fi
3354if test -z "$ac_cpp_err"; then
3355 :
3356else
3357 echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 # Broken: fails on valid input.
3361continue
3362fi
3363rm -f conftest.err conftest.$ac_ext
3364
3365 # OK, works on sane cases. Now check whether non-existent headers
3366 # can be detected and how.
3367 cat >conftest.$ac_ext <<_ACEOF
3368/* confdefs.h. */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h. */
3373#include <ac_nonexistent.h>
3374_ACEOF
3375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3377 ac_status=$?
3378 grep -v '^ *+' conftest.er1 >conftest.err
3379 rm -f conftest.er1
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } >/dev/null; then
3383 if test -s conftest.err; then
3384 ac_cpp_err=$ac_c_preproc_warn_flag
3385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3386 else
3387 ac_cpp_err=
3388 fi
3389else
3390 ac_cpp_err=yes
3391fi
3392if test -z "$ac_cpp_err"; then
3393 # Broken: success on invalid input.
3394continue
3395else
3396 echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 # Passes both tests.
3400ac_preproc_ok=:
3401break
3402fi
3403rm -f conftest.err conftest.$ac_ext
3404
3405done
3406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407rm -f conftest.err conftest.$ac_ext
3408if $ac_preproc_ok; then
3409 break
3410fi
3411
3412 done
3413 ac_cv_prog_CPP=$CPP
3414
3415fi
3416 CPP=$ac_cv_prog_CPP
3417else
3418 ac_cv_prog_CPP=$CPP
3419fi
3420echo "$as_me:$LINENO: result: $CPP" >&5
3421echo "${ECHO_T}$CPP" >&6
3422ac_preproc_ok=false
3423for ac_c_preproc_warn_flag in '' yes
3424do
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
3437#ifdef __STDC__
3438# include <limits.h>
3439#else
3440# include <assert.h>
3441#endif
3442 Syntax error
3443_ACEOF
3444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 else
3456 ac_cpp_err=
3457 fi
3458else
3459 ac_cpp_err=yes
3460fi
3461if test -z "$ac_cpp_err"; then
3462 :
3463else
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 # Broken: fails on valid input.
3468continue
3469fi
3470rm -f conftest.err conftest.$ac_ext
3471
3472 # OK, works on sane cases. Now check whether non-existent headers
3473 # can be detected and how.
3474 cat >conftest.$ac_ext <<_ACEOF
3475/* confdefs.h. */
3476_ACEOF
3477cat confdefs.h >>conftest.$ac_ext
3478cat >>conftest.$ac_ext <<_ACEOF
3479/* end confdefs.h. */
3480#include <ac_nonexistent.h>
3481_ACEOF
3482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 else
3494 ac_cpp_err=
3495 fi
3496else
3497 ac_cpp_err=yes
3498fi
3499if test -z "$ac_cpp_err"; then
3500 # Broken: success on invalid input.
3501continue
3502else
3503 echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 # Passes both tests.
3507ac_preproc_ok=:
3508break
3509fi
3510rm -f conftest.err conftest.$ac_ext
3511
3512done
3513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514rm -f conftest.err conftest.$ac_ext
3515if $ac_preproc_ok; then
3516 :
3517else
3518 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3519See \`config.log' for more details." >&5
3520echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3521See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }
3523fi
3524
3525ac_ext=c
3526ac_cpp='$CPP $CPPFLAGS'
3527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530
3531
3532echo "$as_me:$LINENO: checking for egrep" >&5
3533echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3534if test "${ac_cv_prog_egrep+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536else
3537 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3538 then ac_cv_prog_egrep='grep -E'
3539 else ac_cv_prog_egrep='egrep'
3540 fi
3541fi
3542echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3543echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3544 EGREP=$ac_cv_prog_egrep
3545
3546
3547
3548echo "$as_me:$LINENO: checking for AIX" >&5
3549echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3550cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556#ifdef _AIX
3557 yes
3558#endif
3559
3560_ACEOF
3561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3562 $EGREP "yes" >/dev/null 2>&1; then
3563 echo "$as_me:$LINENO: result: yes" >&5
3564echo "${ECHO_T}yes" >&6
3565cat >>confdefs.h <<\_ACEOF
3566#define _ALL_SOURCE 1
3567_ACEOF
3568
3569else
3570 echo "$as_me:$LINENO: result: no" >&5
3571echo "${ECHO_T}no" >&6
3572fi
3573rm -f conftest*
3574
3575
3576echo "$as_me:$LINENO: checking for library containing strerror" >&5
3577echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3578if test "${ac_cv_search_strerror+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
3581 ac_func_search_save_LIBS=$LIBS
3582ac_cv_search_strerror=no
3583cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h. */
3589
3590/* Override any gcc2 internal prototype to avoid an error. */
3591#ifdef __cplusplus
3592extern "C"
3593#endif
3594/* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3596char strerror ();
3597int
3598main ()
3599{
3600strerror ();
3601 ;
3602 return 0;
3603}
3604_ACEOF
3605rm -f conftest.$ac_objext conftest$ac_exeext
3606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607 (eval $ac_link) 2>conftest.er1
3608 ac_status=$?
3609 grep -v '^ *+' conftest.er1 >conftest.err
3610 rm -f conftest.er1
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } &&
3614 { ac_try='test -z "$ac_c_werror_flag"
3615 || test ! -s conftest.err'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; } &&
3621 { ac_try='test -s conftest$ac_exeext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 (eval $ac_try) 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_cv_search_strerror="none required"
3628else
3629 echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632fi
3633rm -f conftest.err conftest.$ac_objext \
3634 conftest$ac_exeext conftest.$ac_ext
3635if test "$ac_cv_search_strerror" = no; then
3636 for ac_lib in cposix; do
3637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3638 cat >conftest.$ac_ext <<_ACEOF
3639/* confdefs.h. */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h. */
3644
3645/* Override any gcc2 internal prototype to avoid an error. */
3646#ifdef __cplusplus
3647extern "C"
3648#endif
3649/* We use char because int might match the return type of a gcc2
3650 builtin and then its argument prototype would still apply. */
3651char strerror ();
3652int
3653main ()
3654{
3655strerror ();
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext conftest$ac_exeext
3661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662 (eval $ac_link) 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest$ac_exeext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_search_strerror="-l$ac_lib"
3683break
3684else
3685 echo "$as_me: failed program was:" >&5
3686sed 's/^/| /' conftest.$ac_ext >&5
3687
3688fi
3689rm -f conftest.err conftest.$ac_objext \
3690 conftest$ac_exeext conftest.$ac_ext
3691 done
3692fi
3693LIBS=$ac_func_search_save_LIBS
3694fi
3695echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3696echo "${ECHO_T}$ac_cv_search_strerror" >&6
3697if test "$ac_cv_search_strerror" != no; then
3698 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3699
3700fi
3701
3702echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3703echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3704if test "${ac_cv_header_stdc+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
3707 cat >conftest.$ac_ext <<_ACEOF
3708/* confdefs.h. */
3709_ACEOF
3710cat confdefs.h >>conftest.$ac_ext
3711cat >>conftest.$ac_ext <<_ACEOF
3712/* end confdefs.h. */
3713#include <stdlib.h>
3714#include <stdarg.h>
3715#include <string.h>
3716#include <float.h>
3717
3718int
3719main ()
3720{
3721
3722 ;
3723 return 0;
3724}
3725_ACEOF
3726rm -f conftest.$ac_objext
3727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3728 (eval $ac_compile) 2>conftest.er1
3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } &&
3735 { ac_try='test -z "$ac_c_werror_flag"
3736 || test ! -s conftest.err'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; } &&
3742 { ac_try='test -s conftest.$ac_objext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_header_stdc=yes
3749else
3750 echo "$as_me: failed program was:" >&5
3751sed 's/^/| /' conftest.$ac_ext >&5
3752
3753ac_cv_header_stdc=no
3754fi
3755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3756
3757if test $ac_cv_header_stdc = yes; then
3758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3759 cat >conftest.$ac_ext <<_ACEOF
3760/* confdefs.h. */
3761_ACEOF
3762cat confdefs.h >>conftest.$ac_ext
3763cat >>conftest.$ac_ext <<_ACEOF
3764/* end confdefs.h. */
3765#include <string.h>
3766
3767_ACEOF
3768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 $EGREP "memchr" >/dev/null 2>&1; then
3770 :
3771else
3772 ac_cv_header_stdc=no
3773fi
3774rm -f conftest*
3775
3776fi
3777
3778if test $ac_cv_header_stdc = yes; then
3779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3780 cat >conftest.$ac_ext <<_ACEOF
3781/* confdefs.h. */
3782_ACEOF
3783cat confdefs.h >>conftest.$ac_ext
3784cat >>conftest.$ac_ext <<_ACEOF
3785/* end confdefs.h. */
3786#include <stdlib.h>
3787
3788_ACEOF
3789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3790 $EGREP "free" >/dev/null 2>&1; then
3791 :
3792else
3793 ac_cv_header_stdc=no
3794fi
3795rm -f conftest*
3796
3797fi
3798
3799if test $ac_cv_header_stdc = yes; then
3800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3801 if test "$cross_compiling" = yes; then
3802 :
3803else
3804 cat >conftest.$ac_ext <<_ACEOF
3805/* confdefs.h. */
3806_ACEOF
3807cat confdefs.h >>conftest.$ac_ext
3808cat >>conftest.$ac_ext <<_ACEOF
3809/* end confdefs.h. */
3810#include <ctype.h>
3811#if ((' ' & 0x0FF) == 0x020)
3812# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3813# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3814#else
3815# define ISLOWER(c) \
3816 (('a' <= (c) && (c) <= 'i') \
3817 || ('j' <= (c) && (c) <= 'r') \
3818 || ('s' <= (c) && (c) <= 'z'))
3819# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3820#endif
3821
3822#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3823int
3824main ()
3825{
3826 int i;
3827 for (i = 0; i < 256; i++)
3828 if (XOR (islower (i), ISLOWER (i))
3829 || toupper (i) != TOUPPER (i))
3830 exit(2);
3831 exit (0);
3832}
3833_ACEOF
3834rm -f conftest$ac_exeext
3835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836 (eval $ac_link) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 :
3846else
3847 echo "$as_me: program exited with status $ac_status" >&5
3848echo "$as_me: failed program was:" >&5
3849sed 's/^/| /' conftest.$ac_ext >&5
3850
3851( exit $ac_status )
3852ac_cv_header_stdc=no
3853fi
3854rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3855fi
3856fi
3857fi
3858echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3859echo "${ECHO_T}$ac_cv_header_stdc" >&6
3860if test $ac_cv_header_stdc = yes; then
3861
3862cat >>confdefs.h <<\_ACEOF
3863#define STDC_HEADERS 1
3864_ACEOF
3865
3866fi
3867
3868# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3879 inttypes.h stdint.h unistd.h
3880do
3881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3882echo "$as_me:$LINENO: checking for $ac_header" >&5
3883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3884if eval "test \"\${$as_ac_Header+set}\" = set"; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887 cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
3893$ac_includes_default
3894
3895#include <$ac_header>
3896_ACEOF
3897rm -f conftest.$ac_objext
3898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3899 (eval $ac_compile) 2>conftest.er1
3900 ac_status=$?
3901 grep -v '^ *+' conftest.er1 >conftest.err
3902 rm -f conftest.er1
3903 cat conftest.err >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } &&
3906 { ac_try='test -z "$ac_c_werror_flag"
3907 || test ! -s conftest.err'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; } &&
3913 { ac_try='test -s conftest.$ac_objext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 eval "$as_ac_Header=yes"
3920else
3921 echo "$as_me: failed program was:" >&5
3922sed 's/^/| /' conftest.$ac_ext >&5
3923
3924eval "$as_ac_Header=no"
3925fi
3926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3927fi
3928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3930if test `eval echo '${'$as_ac_Header'}'` = yes; then
3931 cat >>confdefs.h <<_ACEOF
3932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3933_ACEOF
3934
3935fi
3936
3937done
3938
3939
3940if test "${ac_cv_header_minix_config_h+set}" = set; then
3941 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3942echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3943if test "${ac_cv_header_minix_config_h+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945fi
3946echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3947echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3948else
3949 # Is the header compilable?
3950echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3951echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3952cat >conftest.$ac_ext <<_ACEOF
3953/* confdefs.h. */
3954_ACEOF
3955cat confdefs.h >>conftest.$ac_ext
3956cat >>conftest.$ac_ext <<_ACEOF
3957/* end confdefs.h. */
3958$ac_includes_default
3959#include <minix/config.h>
3960_ACEOF
3961rm -f conftest.$ac_objext
3962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3963 (eval $ac_compile) 2>conftest.er1
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
3970 { ac_try='test -z "$ac_c_werror_flag"
3971 || test ! -s conftest.err'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; } &&
3977 { ac_try='test -s conftest.$ac_objext'
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3983 ac_header_compiler=yes
3984else
3985 echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988ac_header_compiler=no
3989fi
3990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3992echo "${ECHO_T}$ac_header_compiler" >&6
3993
3994# Is the header present?
3995echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3996echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3997cat >conftest.$ac_ext <<_ACEOF
3998/* confdefs.h. */
3999_ACEOF
4000cat confdefs.h >>conftest.$ac_ext
4001cat >>conftest.$ac_ext <<_ACEOF
4002/* end confdefs.h. */
4003#include <minix/config.h>
4004_ACEOF
4005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } >/dev/null; then
4013 if test -s conftest.err; then
4014 ac_cpp_err=$ac_c_preproc_warn_flag
4015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4016 else
4017 ac_cpp_err=
4018 fi
4019else
4020 ac_cpp_err=yes
4021fi
4022if test -z "$ac_cpp_err"; then
4023 ac_header_preproc=yes
4024else
4025 echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028 ac_header_preproc=no
4029fi
4030rm -f conftest.err conftest.$ac_ext
4031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4032echo "${ECHO_T}$ac_header_preproc" >&6
4033
4034# So? What about this header?
4035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4036 yes:no: )
4037 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4038echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4039 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4040echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4041 ac_header_preproc=yes
4042 ;;
4043 no:yes:* )
4044 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4045echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4046 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4047echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4048 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4049echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4050 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4051echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4052 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4053echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4054 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4055echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4056 (
4057 cat <<\_ASBOX
4058## ------------------------------------------ ##
4059## Report this to the AC_PACKAGE_NAME lists. ##
4060## ------------------------------------------ ##
4061_ASBOX
4062 ) |
4063 sed "s/^/$as_me: WARNING: /" >&2
4064 ;;
4065esac
4066echo "$as_me:$LINENO: checking for minix/config.h" >&5
4067echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4068if test "${ac_cv_header_minix_config_h+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070else
4071 ac_cv_header_minix_config_h=$ac_header_preproc
4072fi
4073echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4074echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4075
4076fi
4077if test $ac_cv_header_minix_config_h = yes; then
4078 MINIX=yes
4079else
4080 MINIX=
4081fi
4082
4083
4084if test "$MINIX" = yes; then
4085
4086cat >>confdefs.h <<\_ACEOF
4087#define _POSIX_SOURCE 1
4088_ACEOF
4089
4090
4091cat >>confdefs.h <<\_ACEOF
4092#define _POSIX_1_SOURCE 2
4093_ACEOF
4094
4095
4096cat >>confdefs.h <<\_ACEOF
4097#define _MINIX 1
4098_ACEOF
4099
4100fi
4101
4102echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4103echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4104if test "${ac_cv_prog_cc_stdc+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
4107 ac_cv_prog_cc_stdc=no
4108ac_save_CFLAGS="$CFLAGS"
4109# Don't try gcc -ansi; that turns off useful extensions and
4110# breaks some systems' header files.
4111# AIX -qlanglvl=ansi
4112# Ultrix and OSF/1 -std1
4113# HP-UX -Aa -D_HPUX_SOURCE
4114# SVR4 -Xc
4115for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
4116do
4117 CFLAGS="$ac_save_CFLAGS $ac_arg"
4118 cat >conftest.$ac_ext <<_ACEOF
4119/* confdefs.h. */
4120_ACEOF
4121cat confdefs.h >>conftest.$ac_ext
4122cat >>conftest.$ac_ext <<_ACEOF
4123/* end confdefs.h. */
4124#if !defined(__STDC__) || __STDC__ != 1
4125choke me
4126#endif
4127
4128int
4129main ()
4130{
4131int test (int i, double x);
4132struct s1 {int (*f) (int a);};
4133struct s2 {int (*f) (double a);};
4134 ;
4135 return 0;
4136}
4137_ACEOF
4138rm -f conftest.$ac_objext
4139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140 (eval $ac_compile) 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_c_werror_flag"
4148 || test ! -s conftest.err'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 (eval $ac_try) 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4160 ac_cv_prog_cc_stdc="$ac_arg"; break
4161else
4162 echo "$as_me: failed program was:" >&5
4163sed 's/^/| /' conftest.$ac_ext >&5
4164
4165fi
4166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4167done
4168CFLAGS="$ac_save_CFLAGS"
4169
4170fi
4171
4172echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4173echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4174case "x$ac_cv_prog_cc_stdc" in
4175 x|xno) ;;
4176 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
4177esac
4178
4179
4180echo "$as_me:$LINENO: checking for function prototypes" >&5
4181echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4182if test "$ac_cv_prog_cc_stdc" != no; then
4183 echo "$as_me:$LINENO: result: yes" >&5
4184echo "${ECHO_T}yes" >&6
4185 cat >>confdefs.h <<\_ACEOF
4186#define PROTOTYPES 1
4187_ACEOF
4188
4189 U= ANSI2KNR=
4190else
4191 echo "$as_me:$LINENO: result: no" >&5
4192echo "${ECHO_T}no" >&6
4193 U=_ ANSI2KNR=ansi2knr
4194fi
4195
4196echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4197echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4198if test "${ac_cv_c_const+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201 cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207
4208int
4209main ()
4210{
4211/* FIXME: Include the comments suggested by Paul. */
4212#ifndef __cplusplus
4213 /* Ultrix mips cc rejects this. */
4214 typedef int charset[2];
4215 const charset x;
4216 /* SunOS 4.1.1 cc rejects this. */
4217 char const *const *ccp;
4218 char **p;
4219 /* NEC SVR4.0.2 mips cc rejects this. */
4220 struct point {int x, y;};
4221 static struct point const zero = {0,0};
4222 /* AIX XL C 1.02.0.0 rejects this.
4223 It does not let you subtract one const X* pointer from another in
4224 an arm of an if-expression whose if-part is not a constant
4225 expression */
4226 const char *g = "string";
4227 ccp = &g + (g ? g-g : 0);
4228 /* HPUX 7.0 cc rejects these. */
4229 ++ccp;
4230 p = (char**) ccp;
4231 ccp = (char const *const *) p;
4232 { /* SCO 3.2v4 cc rejects this. */
4233 char *t;
4234 char const *s = 0 ? (char *) 0 : (char const *) 0;
4235
4236 *t++ = 0;
4237 }
4238 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4239 int x[] = {25, 17};
4240 const int *foo = &x[0];
4241 ++foo;
4242 }
4243 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4244 typedef const int *iptr;
4245 iptr p = 0;
4246 ++p;
4247 }
4248 { /* AIX XL C 1.02.0.0 rejects this saying
4249 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4250 struct s { int j; const int *ap[3]; };
4251 struct s *b; b->j = 5;
4252 }
4253 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4254 const int foo = 10;
4255 }
4256#endif
4257
4258 ;
4259 return 0;
4260}
4261_ACEOF
4262rm -f conftest.$ac_objext
4263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264 (eval $ac_compile) 2>conftest.er1
4265 ac_status=$?
4266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_c_werror_flag"
4272 || test ! -s conftest.err'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_cv_c_const=yes
4285else
4286 echo "$as_me: failed program was:" >&5
4287sed 's/^/| /' conftest.$ac_ext >&5
4288
4289ac_cv_c_const=no
4290fi
4291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4292fi
4293echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4294echo "${ECHO_T}$ac_cv_c_const" >&6
4295if test $ac_cv_c_const = no; then
4296
4297cat >>confdefs.h <<\_ACEOF
4298#define const
4299_ACEOF
4300
4301fi
4302
4303echo "$as_me:$LINENO: checking for off_t" >&5
4304echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4305if test "${ac_cv_type_off_t+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307else
4308 cat >conftest.$ac_ext <<_ACEOF
4309/* confdefs.h. */
4310_ACEOF
4311cat confdefs.h >>conftest.$ac_ext
4312cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h. */
4314$ac_includes_default
4315int
4316main ()
4317{
4318if ((off_t *) 0)
4319 return 0;
4320if (sizeof (off_t))
4321 return 0;
4322 ;
4323 return 0;
4324}
4325_ACEOF
4326rm -f conftest.$ac_objext
4327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_type_off_t=yes
4349else
4350 echo "$as_me: failed program was:" >&5
4351sed 's/^/| /' conftest.$ac_ext >&5
4352
4353ac_cv_type_off_t=no
4354fi
4355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4356fi
4357echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4358echo "${ECHO_T}$ac_cv_type_off_t" >&6
4359if test $ac_cv_type_off_t = yes; then
4360 :
4361else
4362
4363cat >>confdefs.h <<_ACEOF
4364#define off_t long
4365_ACEOF
4366
4367fi
4368
4369echo "$as_me:$LINENO: checking for size_t" >&5
4370echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4371if test "${ac_cv_type_size_t+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373else
4374 cat >conftest.$ac_ext <<_ACEOF
4375/* confdefs.h. */
4376_ACEOF
4377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
4379/* end confdefs.h. */
4380$ac_includes_default
4381int
4382main ()
4383{
4384if ((size_t *) 0)
4385 return 0;
4386if (sizeof (size_t))
4387 return 0;
4388 ;
4389 return 0;
4390}
4391_ACEOF
4392rm -f conftest.$ac_objext
4393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394 (eval $ac_compile) 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -z "$ac_c_werror_flag"
4402 || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_cv_type_size_t=yes
4415else
4416 echo "$as_me: failed program was:" >&5
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
4419ac_cv_type_size_t=no
4420fi
4421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4422fi
4423echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4424echo "${ECHO_T}$ac_cv_type_size_t" >&6
4425if test $ac_cv_type_size_t = yes; then
4426 :
4427else
4428
4429cat >>confdefs.h <<_ACEOF
4430#define size_t unsigned
4431_ACEOF
4432
4433fi
4434
4435echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4436echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4437if test "${ac_cv_header_time+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439else
4440 cat >conftest.$ac_ext <<_ACEOF
4441/* confdefs.h. */
4442_ACEOF
4443cat confdefs.h >>conftest.$ac_ext
4444cat >>conftest.$ac_ext <<_ACEOF
4445/* end confdefs.h. */
4446#include <sys/types.h>
4447#include <sys/time.h>
4448#include <time.h>
4449
4450int
4451main ()
4452{
4453if ((struct tm *) 0)
4454return 0;
4455 ;
4456 return 0;
4457}
4458_ACEOF
4459rm -f conftest.$ac_objext
4460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4461 (eval $ac_compile) 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try='test -z "$ac_c_werror_flag"
4469 || test ! -s conftest.err'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; } &&
4475 { ac_try='test -s conftest.$ac_objext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 (eval $ac_try) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_cv_header_time=yes
4482else
4483 echo "$as_me: failed program was:" >&5
4484sed 's/^/| /' conftest.$ac_ext >&5
4485
4486ac_cv_header_time=no
4487fi
4488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4489fi
4490echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4491echo "${ECHO_T}$ac_cv_header_time" >&6
4492if test $ac_cv_header_time = yes; then
4493
4494cat >>confdefs.h <<\_ACEOF
4495#define TIME_WITH_SYS_TIME 1
4496_ACEOF
4497
4498fi
4499
4500echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4501echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4502if test "${ac_cv_struct_tm+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505 cat >conftest.$ac_ext <<_ACEOF
4506/* confdefs.h. */
4507_ACEOF
4508cat confdefs.h >>conftest.$ac_ext
4509cat >>conftest.$ac_ext <<_ACEOF
4510/* end confdefs.h. */
4511#include <sys/types.h>
4512#include <time.h>
4513
4514int
4515main ()
4516{
4517struct tm *tp; tp->tm_sec;
4518 ;
4519 return 0;
4520}
4521_ACEOF
4522rm -f conftest.$ac_objext
4523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4524 (eval $ac_compile) 2>conftest.er1
4525 ac_status=$?
4526 grep -v '^ *+' conftest.er1 >conftest.err
4527 rm -f conftest.er1
4528 cat conftest.err >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } &&
4531 { ac_try='test -z "$ac_c_werror_flag"
4532 || test ! -s conftest.err'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; } &&
4538 { ac_try='test -s conftest.$ac_objext'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 ac_cv_struct_tm=time.h
4545else
4546 echo "$as_me: failed program was:" >&5
4547sed 's/^/| /' conftest.$ac_ext >&5
4548
4549ac_cv_struct_tm=sys/time.h
4550fi
4551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4552fi
4553echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4554echo "${ECHO_T}$ac_cv_struct_tm" >&6
4555if test $ac_cv_struct_tm = sys/time.h; then
4556
4557cat >>confdefs.h <<\_ACEOF
4558#define TM_IN_SYS_TIME 1
4559_ACEOF
4560
4561fi
4562
4563
4564if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
4565cat >conftest.$ac_ext <<_ACEOF
4566/* confdefs.h. */
4567_ACEOF
4568cat confdefs.h >>conftest.$ac_ext
4569cat >>conftest.$ac_ext <<_ACEOF
4570/* end confdefs.h. */
4571#include <stdio.h>
4572
4573int
4574main ()
4575{
4576 FILE *rubbish = popen("yes", "r");
4577 ;
4578 return 0;
4579}
4580_ACEOF
4581rm -f conftest.$ac_objext
4582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>conftest.er1
4584 ac_status=$?
4585 grep -v '^ *+' conftest.er1 >conftest.err
4586 rm -f conftest.er1
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -z "$ac_c_werror_flag"
4591 || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 :
4604else
4605 echo "$as_me: failed program was:" >&5
4606sed 's/^/| /' conftest.$ac_ext >&5
4607
4608CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
4609fi
4610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611fi
4612
4613
4614
4615echo "$as_me:$LINENO: checking for main in -lg" >&5
4616echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
4617if test "${ac_cv_lib_g_main+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619else
4620 ac_check_lib_save_LIBS=$LIBS
4621LIBS="-lg $LIBS"
4622cat >conftest.$ac_ext <<_ACEOF
4623/* confdefs.h. */
4624_ACEOF
4625cat confdefs.h >>conftest.$ac_ext
4626cat >>conftest.$ac_ext <<_ACEOF
4627/* end confdefs.h. */
4628
4629
4630int
4631main ()
4632{
4633main ();
4634 ;
4635 return 0;
4636}
4637_ACEOF
4638rm -f conftest.$ac_objext conftest$ac_exeext
4639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4640 (eval $ac_link) 2>conftest.er1
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } &&
4647 { ac_try='test -z "$ac_c_werror_flag"
4648 || test ! -s conftest.err'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 (eval $ac_try) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; } &&
4654 { ac_try='test -s conftest$ac_exeext'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 ac_cv_lib_g_main=yes
4661else
4662 echo "$as_me: failed program was:" >&5
4663sed 's/^/| /' conftest.$ac_ext >&5
4664
4665ac_cv_lib_g_main=no
4666fi
4667rm -f conftest.err conftest.$ac_objext \
4668 conftest$ac_exeext conftest.$ac_ext
4669LIBS=$ac_check_lib_save_LIBS
4670fi
4671echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
4672echo "${ECHO_T}$ac_cv_lib_g_main" >&6
4673if test $ac_cv_lib_g_main = yes; then
4674 cat >>confdefs.h <<_ACEOF
4675#define HAVE_LIBG 1
4676_ACEOF
4677
4678 LIBS="-lg $LIBS"
4679
4680fi
4681ac_cv_lib_g=ac_cv_lib_g_main
4682
4683
4684echo "$as_me:$LINENO: checking for main in -lm" >&5
4685echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4686if test "${ac_cv_lib_m_main+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688else
4689 ac_check_lib_save_LIBS=$LIBS
4690LIBS="-lm $LIBS"
4691cat >conftest.$ac_ext <<_ACEOF
4692/* confdefs.h. */
4693_ACEOF
4694cat confdefs.h >>conftest.$ac_ext
4695cat >>conftest.$ac_ext <<_ACEOF
4696/* end confdefs.h. */
4697
4698
4699int
4700main ()
4701{
4702main ();
4703 ;
4704 return 0;
4705}
4706_ACEOF
4707rm -f conftest.$ac_objext conftest$ac_exeext
4708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4709 (eval $ac_link) 2>conftest.er1
4710 ac_status=$?
4711 grep -v '^ *+' conftest.er1 >conftest.err
4712 rm -f conftest.er1
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try='test -z "$ac_c_werror_flag"
4717 || test ! -s conftest.err'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; } &&
4723 { ac_try='test -s conftest$ac_exeext'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; }; then
4729 ac_cv_lib_m_main=yes
4730else
4731 echo "$as_me: failed program was:" >&5
4732sed 's/^/| /' conftest.$ac_ext >&5
4733
4734ac_cv_lib_m_main=no
4735fi
4736rm -f conftest.err conftest.$ac_objext \
4737 conftest$ac_exeext conftest.$ac_ext
4738LIBS=$ac_check_lib_save_LIBS
4739fi
4740echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4741echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4742if test $ac_cv_lib_m_main = yes; then
4743 cat >>confdefs.h <<_ACEOF
4744#define HAVE_LIBM 1
4745_ACEOF
4746
4747 LIBS="-lm $LIBS"
4748
4749fi
4750ac_cv_lib_m=ac_cv_lib_m_main
4751
4752
4753echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
4754echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
4755if test "${ac_cv_lib_crypt_main+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758 ac_check_lib_save_LIBS=$LIBS
4759LIBS="-lcrypt $LIBS"
4760cat >conftest.$ac_ext <<_ACEOF
4761/* confdefs.h. */
4762_ACEOF
4763cat confdefs.h >>conftest.$ac_ext
4764cat >>conftest.$ac_ext <<_ACEOF
4765/* end confdefs.h. */
4766
4767
4768int
4769main ()
4770{
4771main ();
4772 ;
4773 return 0;
4774}
4775_ACEOF
4776rm -f conftest.$ac_objext conftest$ac_exeext
4777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4778 (eval $ac_link) 2>conftest.er1
4779 ac_status=$?
4780 grep -v '^ *+' conftest.er1 >conftest.err
4781 rm -f conftest.er1
4782 cat conftest.err >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try='test -z "$ac_c_werror_flag"
4786 || test ! -s conftest.err'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 (eval $ac_try) 2>&5
4789 ac_status=$?
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; } &&
4792 { ac_try='test -s conftest$ac_exeext'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 (eval $ac_try) 2>&5
4795 ac_status=$?
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4798 ac_cv_lib_crypt_main=yes
4799else
4800 echo "$as_me: failed program was:" >&5
4801sed 's/^/| /' conftest.$ac_ext >&5
4802
4803ac_cv_lib_crypt_main=no
4804fi
4805rm -f conftest.err conftest.$ac_objext \
4806 conftest$ac_exeext conftest.$ac_ext
4807LIBS=$ac_check_lib_save_LIBS
4808fi
4809echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
4810echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
4811if test $ac_cv_lib_crypt_main = yes; then
4812 cat >>confdefs.h <<_ACEOF
4813#define HAVE_LIBCRYPT 1
4814_ACEOF
4815
4816 LIBS="-lcrypt $LIBS"
4817
4818fi
4819ac_cv_lib_crypt=ac_cv_lib_crypt_main
4820
4821#if test $ENABLE_ACCENTFOLD = 1; then
4822#AC_HAVE_LIBRARY(iconv)
4823#fi
4824
4825
4826
4827
4828
4829
4830ac_header_dirent=no
4831for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4832 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4833echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4834echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4835if eval "test \"\${$as_ac_Header+set}\" = set"; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837else
4838 cat >conftest.$ac_ext <<_ACEOF
4839/* confdefs.h. */
4840_ACEOF
4841cat confdefs.h >>conftest.$ac_ext
4842cat >>conftest.$ac_ext <<_ACEOF
4843/* end confdefs.h. */
4844#include <sys/types.h>
4845#include <$ac_hdr>
4846
4847int
4848main ()
4849{
4850if ((DIR *) 0)
4851return 0;
4852 ;
4853 return 0;
4854}
4855_ACEOF
4856rm -f conftest.$ac_objext
4857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_c_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 eval "$as_ac_Header=yes"
4879else
4880 echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883eval "$as_ac_Header=no"
4884fi
4885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886fi
4887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4889if test `eval echo '${'$as_ac_Header'}'` = yes; then
4890 cat >>confdefs.h <<_ACEOF
4891#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4892_ACEOF
4893
4894ac_header_dirent=$ac_hdr; break
4895fi
4896
4897done
4898# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4899if test $ac_header_dirent = dirent.h; then
4900 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4901echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4902if test "${ac_cv_search_opendir+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 ac_func_search_save_LIBS=$LIBS
4906ac_cv_search_opendir=no
4907cat >conftest.$ac_ext <<_ACEOF
4908/* confdefs.h. */
4909_ACEOF
4910cat confdefs.h >>conftest.$ac_ext
4911cat >>conftest.$ac_ext <<_ACEOF
4912/* end confdefs.h. */
4913
4914/* Override any gcc2 internal prototype to avoid an error. */
4915#ifdef __cplusplus
4916extern "C"
4917#endif
4918/* We use char because int might match the return type of a gcc2
4919 builtin and then its argument prototype would still apply. */
4920char opendir ();
4921int
4922main ()
4923{
4924opendir ();
4925 ;
4926 return 0;
4927}
4928_ACEOF
4929rm -f conftest.$ac_objext conftest$ac_exeext
4930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4931 (eval $ac_link) 2>conftest.er1
4932 ac_status=$?
4933 grep -v '^ *+' conftest.er1 >conftest.err
4934 rm -f conftest.er1
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } &&
4938 { ac_try='test -z "$ac_c_werror_flag"
4939 || test ! -s conftest.err'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 (eval $ac_try) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; } &&
4945 { ac_try='test -s conftest$ac_exeext'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 (eval $ac_try) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; }; then
4951 ac_cv_search_opendir="none required"
4952else
4953 echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956fi
4957rm -f conftest.err conftest.$ac_objext \
4958 conftest$ac_exeext conftest.$ac_ext
4959if test "$ac_cv_search_opendir" = no; then
4960 for ac_lib in dir; do
4961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4962 cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h. */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h. */
4968
4969/* Override any gcc2 internal prototype to avoid an error. */
4970#ifdef __cplusplus
4971extern "C"
4972#endif
4973/* We use char because int might match the return type of a gcc2
4974 builtin and then its argument prototype would still apply. */
4975char opendir ();
4976int
4977main ()
4978{
4979opendir ();
4980 ;
4981 return 0;
4982}
4983_ACEOF
4984rm -f conftest.$ac_objext conftest$ac_exeext
4985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4986 (eval $ac_link) 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } &&
4993 { ac_try='test -z "$ac_c_werror_flag"
4994 || test ! -s conftest.err'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 (eval $ac_try) 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; } &&
5000 { ac_try='test -s conftest$ac_exeext'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 (eval $ac_try) 2>&5
5003 ac_status=$?
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; }; then
5006 ac_cv_search_opendir="-l$ac_lib"
5007break
5008else
5009 echo "$as_me: failed program was:" >&5
5010sed 's/^/| /' conftest.$ac_ext >&5
5011
5012fi
5013rm -f conftest.err conftest.$ac_objext \
5014 conftest$ac_exeext conftest.$ac_ext
5015 done
5016fi
5017LIBS=$ac_func_search_save_LIBS
5018fi
5019echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5020echo "${ECHO_T}$ac_cv_search_opendir" >&6
5021if test "$ac_cv_search_opendir" != no; then
5022 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5023
5024fi
5025
5026else
5027 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5028echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5029if test "${ac_cv_search_opendir+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031else
5032 ac_func_search_save_LIBS=$LIBS
5033ac_cv_search_opendir=no
5034cat >conftest.$ac_ext <<_ACEOF
5035/* confdefs.h. */
5036_ACEOF
5037cat confdefs.h >>conftest.$ac_ext
5038cat >>conftest.$ac_ext <<_ACEOF
5039/* end confdefs.h. */
5040
5041/* Override any gcc2 internal prototype to avoid an error. */
5042#ifdef __cplusplus
5043extern "C"
5044#endif
5045/* We use char because int might match the return type of a gcc2
5046 builtin and then its argument prototype would still apply. */
5047char opendir ();
5048int
5049main ()
5050{
5051opendir ();
5052 ;
5053 return 0;
5054}
5055_ACEOF
5056rm -f conftest.$ac_objext conftest$ac_exeext
5057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5058 (eval $ac_link) 2>conftest.er1
5059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try='test -z "$ac_c_werror_flag"
5066 || test ! -s conftest.err'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 (eval $ac_try) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; } &&
5072 { ac_try='test -s conftest$ac_exeext'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 ac_cv_search_opendir="none required"
5079else
5080 echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
5083fi
5084rm -f conftest.err conftest.$ac_objext \
5085 conftest$ac_exeext conftest.$ac_ext
5086if test "$ac_cv_search_opendir" = no; then
5087 for ac_lib in x; do
5088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5089 cat >conftest.$ac_ext <<_ACEOF
5090/* confdefs.h. */
5091_ACEOF
5092cat confdefs.h >>conftest.$ac_ext
5093cat >>conftest.$ac_ext <<_ACEOF
5094/* end confdefs.h. */
5095
5096/* Override any gcc2 internal prototype to avoid an error. */
5097#ifdef __cplusplus
5098extern "C"
5099#endif
5100/* We use char because int might match the return type of a gcc2
5101 builtin and then its argument prototype would still apply. */
5102char opendir ();
5103int
5104main ()
5105{
5106opendir ();
5107 ;
5108 return 0;
5109}
5110_ACEOF
5111rm -f conftest.$ac_objext conftest$ac_exeext
5112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5113 (eval $ac_link) 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } &&
5120 { ac_try='test -z "$ac_c_werror_flag"
5121 || test ! -s conftest.err'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 (eval $ac_try) 2>&5
5124 ac_status=$?
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; } &&
5127 { ac_try='test -s conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 ac_cv_search_opendir="-l$ac_lib"
5134break
5135else
5136 echo "$as_me: failed program was:" >&5
5137sed 's/^/| /' conftest.$ac_ext >&5
5138
5139fi
5140rm -f conftest.err conftest.$ac_objext \
5141 conftest$ac_exeext conftest.$ac_ext
5142 done
5143fi
5144LIBS=$ac_func_search_save_LIBS
5145fi
5146echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5147echo "${ECHO_T}$ac_cv_search_opendir" >&6
5148if test "$ac_cv_search_opendir" != no; then
5149 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5150
5151fi
5152
5153fi
5154
5155echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5156echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5157if test "${ac_cv_header_stdc+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159else
5160 cat >conftest.$ac_ext <<_ACEOF
5161/* confdefs.h. */
5162_ACEOF
5163cat confdefs.h >>conftest.$ac_ext
5164cat >>conftest.$ac_ext <<_ACEOF
5165/* end confdefs.h. */
5166#include <stdlib.h>
5167#include <stdarg.h>
5168#include <string.h>
5169#include <float.h>
5170
5171int
5172main ()
5173{
5174
5175 ;
5176 return 0;
5177}
5178_ACEOF
5179rm -f conftest.$ac_objext
5180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_cv_header_stdc=yes
5202else
5203 echo "$as_me: failed program was:" >&5
5204sed 's/^/| /' conftest.$ac_ext >&5
5205
5206ac_cv_header_stdc=no
5207fi
5208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5209
5210if test $ac_cv_header_stdc = yes; then
5211 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5212 cat >conftest.$ac_ext <<_ACEOF
5213/* confdefs.h. */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h. */
5218#include <string.h>
5219
5220_ACEOF
5221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5222 $EGREP "memchr" >/dev/null 2>&1; then
5223 :
5224else
5225 ac_cv_header_stdc=no
5226fi
5227rm -f conftest*
5228
5229fi
5230
5231if test $ac_cv_header_stdc = yes; then
5232 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5233 cat >conftest.$ac_ext <<_ACEOF
5234/* confdefs.h. */
5235_ACEOF
5236cat confdefs.h >>conftest.$ac_ext
5237cat >>conftest.$ac_ext <<_ACEOF
5238/* end confdefs.h. */
5239#include <stdlib.h>
5240
5241_ACEOF
5242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5243 $EGREP "free" >/dev/null 2>&1; then
5244 :
5245else
5246 ac_cv_header_stdc=no
5247fi
5248rm -f conftest*
5249
5250fi
5251
5252if test $ac_cv_header_stdc = yes; then
5253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5254 if test "$cross_compiling" = yes; then
5255 :
5256else
5257 cat >conftest.$ac_ext <<_ACEOF
5258/* confdefs.h. */
5259_ACEOF
5260cat confdefs.h >>conftest.$ac_ext
5261cat >>conftest.$ac_ext <<_ACEOF
5262/* end confdefs.h. */
5263#include <ctype.h>
5264#if ((' ' & 0x0FF) == 0x020)
5265# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5266# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5267#else
5268# define ISLOWER(c) \
5269 (('a' <= (c) && (c) <= 'i') \
5270 || ('j' <= (c) && (c) <= 'r') \
5271 || ('s' <= (c) && (c) <= 'z'))
5272# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5273#endif
5274
5275#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5276int
5277main ()
5278{
5279 int i;
5280 for (i = 0; i < 256; i++)
5281 if (XOR (islower (i), ISLOWER (i))
5282 || toupper (i) != TOUPPER (i))
5283 exit(2);
5284 exit (0);
5285}
5286_ACEOF
5287rm -f conftest$ac_exeext
5288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5289 (eval $ac_link) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 (eval $ac_try) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5298 :
5299else
5300 echo "$as_me: program exited with status $ac_status" >&5
5301echo "$as_me: failed program was:" >&5
5302sed 's/^/| /' conftest.$ac_ext >&5
5303
5304( exit $ac_status )
5305ac_cv_header_stdc=no
5306fi
5307rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5308fi
5309fi
5310fi
5311echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5312echo "${ECHO_T}$ac_cv_header_stdc" >&6
5313if test $ac_cv_header_stdc = yes; then
5314
5315cat >>confdefs.h <<\_ACEOF
5316#define STDC_HEADERS 1
5317_ACEOF
5318
5319fi
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
5331do
5332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5333if eval "test \"\${$as_ac_Header+set}\" = set"; then
5334 echo "$as_me:$LINENO: checking for $ac_header" >&5
5335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5336if eval "test \"\${$as_ac_Header+set}\" = set"; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338fi
5339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5341else
5342 # Is the header compilable?
5343echo "$as_me:$LINENO: checking $ac_header usability" >&5
5344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5345cat >conftest.$ac_ext <<_ACEOF
5346/* confdefs.h. */
5347_ACEOF
5348cat confdefs.h >>conftest.$ac_ext
5349cat >>conftest.$ac_ext <<_ACEOF
5350/* end confdefs.h. */
5351$ac_includes_default
5352#include <$ac_header>
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_c_werror_flag"
5364 || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 ac_header_compiler=yes
5377else
5378 echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381ac_header_compiler=no
5382fi
5383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5385echo "${ECHO_T}$ac_header_compiler" >&6
5386
5387# Is the header present?
5388echo "$as_me:$LINENO: checking $ac_header presence" >&5
5389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5390cat >conftest.$ac_ext <<_ACEOF
5391/* confdefs.h. */
5392_ACEOF
5393cat confdefs.h >>conftest.$ac_ext
5394cat >>conftest.$ac_ext <<_ACEOF
5395/* end confdefs.h. */
5396#include <$ac_header>
5397_ACEOF
5398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5400 ac_status=$?
5401 grep -v '^ *+' conftest.er1 >conftest.err
5402 rm -f conftest.er1
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } >/dev/null; then
5406 if test -s conftest.err; then
5407 ac_cpp_err=$ac_c_preproc_warn_flag
5408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5409 else
5410 ac_cpp_err=
5411 fi
5412else
5413 ac_cpp_err=yes
5414fi
5415if test -z "$ac_cpp_err"; then
5416 ac_header_preproc=yes
5417else
5418 echo "$as_me: failed program was:" >&5
5419sed 's/^/| /' conftest.$ac_ext >&5
5420
5421 ac_header_preproc=no
5422fi
5423rm -f conftest.err conftest.$ac_ext
5424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5425echo "${ECHO_T}$ac_header_preproc" >&6
5426
5427# So? What about this header?
5428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5429 yes:no: )
5430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5434 ac_header_preproc=yes
5435 ;;
5436 no:yes:* )
5437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5440echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5444echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5449 (
5450 cat <<\_ASBOX
5451## ------------------------------------------ ##
5452## Report this to the AC_PACKAGE_NAME lists. ##
5453## ------------------------------------------ ##
5454_ASBOX
5455 ) |
5456 sed "s/^/$as_me: WARNING: /" >&2
5457 ;;
5458esac
5459echo "$as_me:$LINENO: checking for $ac_header" >&5
5460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5461if eval "test \"\${$as_ac_Header+set}\" = set"; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464 eval "$as_ac_Header=\$ac_header_preproc"
5465fi
5466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5468
5469fi
5470if test `eval echo '${'$as_ac_Header'}'` = yes; then
5471 cat >>confdefs.h <<_ACEOF
5472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5473_ACEOF
5474
5475fi
5476
5477done
5478
5479cat >conftest.$ac_ext <<_ACEOF
5480/* confdefs.h. */
5481_ACEOF
5482cat confdefs.h >>conftest.$ac_ext
5483cat >>conftest.$ac_ext <<_ACEOF
5484/* end confdefs.h. */
5485#include <stdio.h>
5486
5487_ACEOF
5488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5489 $EGREP "fread" >/dev/null 2>&1; then
5490 cat >>confdefs.h <<\_ACEOF
5491#define HAVE_FREAD_DECL 1
5492_ACEOF
5493
5494fi
5495rm -f conftest*
5496
5497cat >conftest.$ac_ext <<_ACEOF
5498/* confdefs.h. */
5499_ACEOF
5500cat confdefs.h >>conftest.$ac_ext
5501cat >>conftest.$ac_ext <<_ACEOF
5502/* end confdefs.h. */
5503#include <stdio.h>
5504
5505_ACEOF
5506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5507 $EGREP "fgetc" >/dev/null 2>&1; then
5508 cat >>confdefs.h <<\_ACEOF
5509#define HAVE_FGETC_DECL 1
5510_ACEOF
5511
5512fi
5513rm -f conftest*
5514
5515cat >conftest.$ac_ext <<_ACEOF
5516/* confdefs.h. */
5517_ACEOF
5518cat confdefs.h >>conftest.$ac_ext
5519cat >>conftest.$ac_ext <<_ACEOF
5520/* end confdefs.h. */
5521#include <sys/procfs.h>
5522
5523_ACEOF
5524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5525 $EGREP "pr_brksize" >/dev/null 2>&1; then
5526 cat >>confdefs.h <<\_ACEOF
5527#define HAVE_PR_BRKSIZE 1
5528_ACEOF
5529
5530fi
5531rm -f conftest*
5532
5533
5534# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5535# for constant arguments. Useless!
5536echo "$as_me:$LINENO: checking for working alloca.h" >&5
5537echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5538if test "${ac_cv_working_alloca_h+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541 cat >conftest.$ac_ext <<_ACEOF
5542/* confdefs.h. */
5543_ACEOF
5544cat confdefs.h >>conftest.$ac_ext
5545cat >>conftest.$ac_ext <<_ACEOF
5546/* end confdefs.h. */
5547#include <alloca.h>
5548int
5549main ()
5550{
5551char *p = (char *) alloca (2 * sizeof (int));
5552 ;
5553 return 0;
5554}
5555_ACEOF
5556rm -f conftest.$ac_objext conftest$ac_exeext
5557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5558 (eval $ac_link) 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest$ac_exeext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 ac_cv_working_alloca_h=yes
5579else
5580 echo "$as_me: failed program was:" >&5
5581sed 's/^/| /' conftest.$ac_ext >&5
5582
5583ac_cv_working_alloca_h=no
5584fi
5585rm -f conftest.err conftest.$ac_objext \
5586 conftest$ac_exeext conftest.$ac_ext
5587fi
5588echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5589echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5590if test $ac_cv_working_alloca_h = yes; then
5591
5592cat >>confdefs.h <<\_ACEOF
5593#define HAVE_ALLOCA_H 1
5594_ACEOF
5595
5596fi
5597
5598echo "$as_me:$LINENO: checking for alloca" >&5
5599echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5600if test "${ac_cv_func_alloca_works+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602else
5603 cat >conftest.$ac_ext <<_ACEOF
5604/* confdefs.h. */
5605_ACEOF
5606cat confdefs.h >>conftest.$ac_ext
5607cat >>conftest.$ac_ext <<_ACEOF
5608/* end confdefs.h. */
5609#ifdef __GNUC__
5610# define alloca __builtin_alloca
5611#else
5612# ifdef _MSC_VER
5613# include <malloc.h>
5614# define alloca _alloca
5615# else
5616# if HAVE_ALLOCA_H
5617# include <alloca.h>
5618# else
5619# ifdef _AIX
5620 #pragma alloca
5621# else
5622# ifndef alloca /* predefined by HP cc +Olibcalls */
5623char *alloca ();
5624# endif
5625# endif
5626# endif
5627# endif
5628#endif
5629
5630int
5631main ()
5632{
5633char *p = (char *) alloca (1);
5634 ;
5635 return 0;
5636}
5637_ACEOF
5638rm -f conftest.$ac_objext conftest$ac_exeext
5639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5640 (eval $ac_link) 2>conftest.er1
5641 ac_status=$?
5642 grep -v '^ *+' conftest.er1 >conftest.err
5643 rm -f conftest.er1
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try='test -z "$ac_c_werror_flag"
5648 || test ! -s conftest.err'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; } &&
5654 { ac_try='test -s conftest$ac_exeext'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 (eval $ac_try) 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5660 ac_cv_func_alloca_works=yes
5661else
5662 echo "$as_me: failed program was:" >&5
5663sed 's/^/| /' conftest.$ac_ext >&5
5664
5665ac_cv_func_alloca_works=no
5666fi
5667rm -f conftest.err conftest.$ac_objext \
5668 conftest$ac_exeext conftest.$ac_ext
5669fi
5670echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5671echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5672
5673if test $ac_cv_func_alloca_works = yes; then
5674
5675cat >>confdefs.h <<\_ACEOF
5676#define HAVE_ALLOCA 1
5677_ACEOF
5678
5679else
5680 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5681# that cause trouble. Some versions do not even contain alloca or
5682# contain a buggy version. If you still want to use their alloca,
5683# use ar to extract alloca.o from them instead of compiling alloca.c.
5684
5685ALLOCA=alloca.$ac_objext
5686
5687cat >>confdefs.h <<\_ACEOF
5688#define C_ALLOCA 1
5689_ACEOF
5690
5691
5692echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5693echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5694if test "${ac_cv_os_cray+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696else
5697 cat >conftest.$ac_ext <<_ACEOF
5698/* confdefs.h. */
5699_ACEOF
5700cat confdefs.h >>conftest.$ac_ext
5701cat >>conftest.$ac_ext <<_ACEOF
5702/* end confdefs.h. */
5703#if defined(CRAY) && ! defined(CRAY2)
5704webecray
5705#else
5706wenotbecray
5707#endif
5708
5709_ACEOF
5710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5711 $EGREP "webecray" >/dev/null 2>&1; then
5712 ac_cv_os_cray=yes
5713else
5714 ac_cv_os_cray=no
5715fi
5716rm -f conftest*
5717
5718fi
5719echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5720echo "${ECHO_T}$ac_cv_os_cray" >&6
5721if test $ac_cv_os_cray = yes; then
5722 for ac_func in _getb67 GETB67 getb67; do
5723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5724echo "$as_me:$LINENO: checking for $ac_func" >&5
5725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5726if eval "test \"\${$as_ac_var+set}\" = set"; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728else
5729 cat >conftest.$ac_ext <<_ACEOF
5730/* confdefs.h. */
5731_ACEOF
5732cat confdefs.h >>conftest.$ac_ext
5733cat >>conftest.$ac_ext <<_ACEOF
5734/* end confdefs.h. */
5735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5737#define $ac_func innocuous_$ac_func
5738
5739/* System header to define __stub macros and hopefully few prototypes,
5740 which can conflict with char $ac_func (); below.
5741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5742 <limits.h> exists even on freestanding compilers. */
5743
5744#ifdef __STDC__
5745# include <limits.h>
5746#else
5747# include <assert.h>
5748#endif
5749
5750#undef $ac_func
5751
5752/* Override any gcc2 internal prototype to avoid an error. */
5753#ifdef __cplusplus
5754extern "C"
5755{
5756#endif
5757/* We use char because int might match the return type of a gcc2
5758 builtin and then its argument prototype would still apply. */
5759char $ac_func ();
5760/* The GNU C library defines this for functions which it implements
5761 to always fail with ENOSYS. Some functions are actually named
5762 something starting with __ and the normal name is an alias. */
5763#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5764choke me
5765#else
5766char (*f) () = $ac_func;
5767#endif
5768#ifdef __cplusplus
5769}
5770#endif
5771
5772int
5773main ()
5774{
5775return f != $ac_func;
5776 ;
5777 return 0;
5778}
5779_ACEOF
5780rm -f conftest.$ac_objext conftest$ac_exeext
5781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782 (eval $ac_link) 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
5789 { ac_try='test -z "$ac_c_werror_flag"
5790 || test ! -s conftest.err'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 (eval $ac_try) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; } &&
5796 { ac_try='test -s conftest$ac_exeext'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 eval "$as_ac_var=yes"
5803else
5804 echo "$as_me: failed program was:" >&5
5805sed 's/^/| /' conftest.$ac_ext >&5
5806
5807eval "$as_ac_var=no"
5808fi
5809rm -f conftest.err conftest.$ac_objext \
5810 conftest$ac_exeext conftest.$ac_ext
5811fi
5812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5813echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5814if test `eval echo '${'$as_ac_var'}'` = yes; then
5815
5816cat >>confdefs.h <<_ACEOF
5817#define CRAY_STACKSEG_END $ac_func
5818_ACEOF
5819
5820 break
5821fi
5822
5823 done
5824fi
5825
5826echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5827echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5828if test "${ac_cv_c_stack_direction+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830else
5831 if test "$cross_compiling" = yes; then
5832 ac_cv_c_stack_direction=0
5833else
5834 cat >conftest.$ac_ext <<_ACEOF
5835/* confdefs.h. */
5836_ACEOF
5837cat confdefs.h >>conftest.$ac_ext
5838cat >>conftest.$ac_ext <<_ACEOF
5839/* end confdefs.h. */
5840int
5841find_stack_direction ()
5842{
5843 static char *addr = 0;
5844 auto char dummy;
5845 if (addr == 0)
5846 {
5847 addr = &dummy;
5848 return find_stack_direction ();
5849 }
5850 else
5851 return (&dummy > addr) ? 1 : -1;
5852}
5853
5854int
5855main ()
5856{
5857 exit (find_stack_direction () < 0);
5858}
5859_ACEOF
5860rm -f conftest$ac_exeext
5861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5862 (eval $ac_link) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 (eval $ac_try) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
5871 ac_cv_c_stack_direction=1
5872else
5873 echo "$as_me: program exited with status $ac_status" >&5
5874echo "$as_me: failed program was:" >&5
5875sed 's/^/| /' conftest.$ac_ext >&5
5876
5877( exit $ac_status )
5878ac_cv_c_stack_direction=-1
5879fi
5880rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5881fi
5882fi
5883echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5884echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5885
5886cat >>confdefs.h <<_ACEOF
5887#define STACK_DIRECTION $ac_cv_c_stack_direction
5888_ACEOF
5889
5890
5891fi
5892
5893if test $ac_cv_c_compiler_gnu = yes; then
5894 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5895echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
5896if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5898else
5899 ac_pattern="Autoconf.*'x'"
5900 cat >conftest.$ac_ext <<_ACEOF
5901/* confdefs.h. */
5902_ACEOF
5903cat confdefs.h >>conftest.$ac_ext
5904cat >>conftest.$ac_ext <<_ACEOF
5905/* end confdefs.h. */
5906#include <sgtty.h>
5907Autoconf TIOCGETP
5908_ACEOF
5909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5911 ac_cv_prog_gcc_traditional=yes
5912else
5913 ac_cv_prog_gcc_traditional=no
5914fi
5915rm -f conftest*
5916
5917
5918 if test $ac_cv_prog_gcc_traditional = no; then
5919 cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
5925#include <termio.h>
5926Autoconf TCGETA
5927_ACEOF
5928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5929 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5930 ac_cv_prog_gcc_traditional=yes
5931fi
5932rm -f conftest*
5933
5934 fi
5935fi
5936echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5937echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
5938 if test $ac_cv_prog_gcc_traditional = yes; then
5939 CC="$CC -traditional"
5940 fi
5941fi
5942
5943echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5944echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5945if test "${ac_cv_type_signal+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
5948 cat >conftest.$ac_ext <<_ACEOF
5949/* confdefs.h. */
5950_ACEOF
5951cat confdefs.h >>conftest.$ac_ext
5952cat >>conftest.$ac_ext <<_ACEOF
5953/* end confdefs.h. */
5954#include <sys/types.h>
5955#include <signal.h>
5956#ifdef signal
5957# undef signal
5958#endif
5959#ifdef __cplusplus
5960extern "C" void (*signal (int, void (*)(int)))(int);
5961#else
5962void (*signal ()) ();
5963#endif
5964
5965int
5966main ()
5967{
5968int i;
5969 ;
5970 return 0;
5971}
5972_ACEOF
5973rm -f conftest.$ac_objext
5974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -z "$ac_c_werror_flag"
5983 || test ! -s conftest.err'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 (eval $ac_try) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; } &&
5989 { ac_try='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_type_signal=void
5996else
5997 echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000ac_cv_type_signal=int
6001fi
6002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6003fi
6004echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6005echo "${ECHO_T}$ac_cv_type_signal" >&6
6006
6007cat >>confdefs.h <<_ACEOF
6008#define RETSIGTYPE $ac_cv_type_signal
6009_ACEOF
6010
6011
6012
6013for ac_func in vprintf
6014do
6015as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6016echo "$as_me:$LINENO: checking for $ac_func" >&5
6017echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6018if eval "test \"\${$as_ac_var+set}\" = set"; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020else
6021 cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h. */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h. */
6027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6029#define $ac_func innocuous_$ac_func
6030
6031/* System header to define __stub macros and hopefully few prototypes,
6032 which can conflict with char $ac_func (); below.
6033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6034 <limits.h> exists even on freestanding compilers. */
6035
6036#ifdef __STDC__
6037# include <limits.h>
6038#else
6039# include <assert.h>
6040#endif
6041
6042#undef $ac_func
6043
6044/* Override any gcc2 internal prototype to avoid an error. */
6045#ifdef __cplusplus
6046extern "C"
6047{
6048#endif
6049/* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6051char $ac_func ();
6052/* The GNU C library defines this for functions which it implements
6053 to always fail with ENOSYS. Some functions are actually named
6054 something starting with __ and the normal name is an alias. */
6055#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6056choke me
6057#else
6058char (*f) () = $ac_func;
6059#endif
6060#ifdef __cplusplus
6061}
6062#endif
6063
6064int
6065main ()
6066{
6067return f != $ac_func;
6068 ;
6069 return 0;
6070}
6071_ACEOF
6072rm -f conftest.$ac_objext conftest$ac_exeext
6073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6074 (eval $ac_link) 2>conftest.er1
6075 ac_status=$?
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -z "$ac_c_werror_flag"
6082 || test ! -s conftest.err'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; } &&
6088 { ac_try='test -s conftest$ac_exeext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 eval "$as_ac_var=yes"
6095else
6096 echo "$as_me: failed program was:" >&5
6097sed 's/^/| /' conftest.$ac_ext >&5
6098
6099eval "$as_ac_var=no"
6100fi
6101rm -f conftest.err conftest.$ac_objext \
6102 conftest$ac_exeext conftest.$ac_ext
6103fi
6104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6105echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6106if test `eval echo '${'$as_ac_var'}'` = yes; then
6107 cat >>confdefs.h <<_ACEOF
6108#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6109_ACEOF
6110
6111echo "$as_me:$LINENO: checking for _doprnt" >&5
6112echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6113if test "${ac_cv_func__doprnt+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6115else
6116 cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h. */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h. */
6122/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
6123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6124#define _doprnt innocuous__doprnt
6125
6126/* System header to define __stub macros and hopefully few prototypes,
6127 which can conflict with char _doprnt (); below.
6128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6129 <limits.h> exists even on freestanding compilers. */
6130
6131#ifdef __STDC__
6132# include <limits.h>
6133#else
6134# include <assert.h>
6135#endif
6136
6137#undef _doprnt
6138
6139/* Override any gcc2 internal prototype to avoid an error. */
6140#ifdef __cplusplus
6141extern "C"
6142{
6143#endif
6144/* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6146char _doprnt ();
6147/* The GNU C library defines this for functions which it implements
6148 to always fail with ENOSYS. Some functions are actually named
6149 something starting with __ and the normal name is an alias. */
6150#if defined (__stub__doprnt) || defined (__stub____doprnt)
6151choke me
6152#else
6153char (*f) () = _doprnt;
6154#endif
6155#ifdef __cplusplus
6156}
6157#endif
6158
6159int
6160main ()
6161{
6162return f != _doprnt;
6163 ;
6164 return 0;
6165}
6166_ACEOF
6167rm -f conftest.$ac_objext conftest$ac_exeext
6168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6169 (eval $ac_link) 2>conftest.er1
6170 ac_status=$?
6171 grep -v '^ *+' conftest.er1 >conftest.err
6172 rm -f conftest.er1
6173 cat conftest.err >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -z "$ac_c_werror_flag"
6177 || test ! -s conftest.err'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 (eval $ac_try) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; } &&
6183 { ac_try='test -s conftest$ac_exeext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 (eval $ac_try) 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 ac_cv_func__doprnt=yes
6190else
6191 echo "$as_me: failed program was:" >&5
6192sed 's/^/| /' conftest.$ac_ext >&5
6193
6194ac_cv_func__doprnt=no
6195fi
6196rm -f conftest.err conftest.$ac_objext \
6197 conftest$ac_exeext conftest.$ac_ext
6198fi
6199echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6200echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6201if test $ac_cv_func__doprnt = yes; then
6202
6203cat >>confdefs.h <<\_ACEOF
6204#define HAVE_DOPRNT 1
6205_ACEOF
6206
6207fi
6208
6209fi
6210done
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
6224do
6225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6226echo "$as_me:$LINENO: checking for $ac_func" >&5
6227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6228if eval "test \"\${$as_ac_var+set}\" = set"; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230else
6231 cat >conftest.$ac_ext <<_ACEOF
6232/* confdefs.h. */
6233_ACEOF
6234cat confdefs.h >>conftest.$ac_ext
6235cat >>conftest.$ac_ext <<_ACEOF
6236/* end confdefs.h. */
6237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6239#define $ac_func innocuous_$ac_func
6240
6241/* System header to define __stub macros and hopefully few prototypes,
6242 which can conflict with char $ac_func (); below.
6243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6244 <limits.h> exists even on freestanding compilers. */
6245
6246#ifdef __STDC__
6247# include <limits.h>
6248#else
6249# include <assert.h>
6250#endif
6251
6252#undef $ac_func
6253
6254/* Override any gcc2 internal prototype to avoid an error. */
6255#ifdef __cplusplus
6256extern "C"
6257{
6258#endif
6259/* We use char because int might match the return type of a gcc2
6260 builtin and then its argument prototype would still apply. */
6261char $ac_func ();
6262/* The GNU C library defines this for functions which it implements
6263 to always fail with ENOSYS. Some functions are actually named
6264 something starting with __ and the normal name is an alias. */
6265#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6266choke me
6267#else
6268char (*f) () = $ac_func;
6269#endif
6270#ifdef __cplusplus
6271}
6272#endif
6273
6274int
6275main ()
6276{
6277return f != $ac_func;
6278 ;
6279 return 0;
6280}
6281_ACEOF
6282rm -f conftest.$ac_objext conftest$ac_exeext
6283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6284 (eval $ac_link) 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } &&
6291 { ac_try='test -z "$ac_c_werror_flag"
6292 || test ! -s conftest.err'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest$ac_exeext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 eval "$as_ac_var=yes"
6305else
6306 echo "$as_me: failed program was:" >&5
6307sed 's/^/| /' conftest.$ac_ext >&5
6308
6309eval "$as_ac_var=no"
6310fi
6311rm -f conftest.err conftest.$ac_objext \
6312 conftest$ac_exeext conftest.$ac_ext
6313fi
6314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6315echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6316if test `eval echo '${'$as_ac_var'}'` = yes; then
6317 cat >>confdefs.h <<_ACEOF
6318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6319_ACEOF
6320
6321fi
6322done
6323
6324
6325
6326
6327for ac_func in ftruncate strstr strcasecmp
6328do
6329as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6330echo "$as_me:$LINENO: checking for $ac_func" >&5
6331echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6332if eval "test \"\${$as_ac_var+set}\" = set"; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335 cat >conftest.$ac_ext <<_ACEOF
6336/* confdefs.h. */
6337_ACEOF
6338cat confdefs.h >>conftest.$ac_ext
6339cat >>conftest.$ac_ext <<_ACEOF
6340/* end confdefs.h. */
6341/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6343#define $ac_func innocuous_$ac_func
6344
6345/* System header to define __stub macros and hopefully few prototypes,
6346 which can conflict with char $ac_func (); below.
6347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6348 <limits.h> exists even on freestanding compilers. */
6349
6350#ifdef __STDC__
6351# include <limits.h>
6352#else
6353# include <assert.h>
6354#endif
6355
6356#undef $ac_func
6357
6358/* Override any gcc2 internal prototype to avoid an error. */
6359#ifdef __cplusplus
6360extern "C"
6361{
6362#endif
6363/* We use char because int might match the return type of a gcc2
6364 builtin and then its argument prototype would still apply. */
6365char $ac_func ();
6366/* The GNU C library defines this for functions which it implements
6367 to always fail with ENOSYS. Some functions are actually named
6368 something starting with __ and the normal name is an alias. */
6369#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6370choke me
6371#else
6372char (*f) () = $ac_func;
6373#endif
6374#ifdef __cplusplus
6375}
6376#endif
6377
6378int
6379main ()
6380{
6381return f != $ac_func;
6382 ;
6383 return 0;
6384}
6385_ACEOF
6386rm -f conftest.$ac_objext conftest$ac_exeext
6387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6388 (eval $ac_link) 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -z "$ac_c_werror_flag"
6396 || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest$ac_exeext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 eval "$as_ac_var=yes"
6409else
6410 echo "$as_me: failed program was:" >&5
6411sed 's/^/| /' conftest.$ac_ext >&5
6412
6413eval "$as_ac_var=no"
6414fi
6415rm -f conftest.err conftest.$ac_objext \
6416 conftest$ac_exeext conftest.$ac_ext
6417fi
6418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6419echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6420if test `eval echo '${'$as_ac_var'}'` = yes; then
6421 cat >>confdefs.h <<_ACEOF
6422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6423_ACEOF
6424
6425else
6426 case $LIBOBJS in
6427 "$ac_func.$ac_objext" | \
6428 *" $ac_func.$ac_objext" | \
6429 "$ac_func.$ac_objext "* | \
6430 *" $ac_func.$ac_objext "* ) ;;
6431 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6432esac
6433
6434fi
6435done
6436
6437
6438
6439echo "$as_me:$LINENO: checking for textdomain" >&5
6440echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
6441if test "${ac_cv_func_textdomain+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444 cat >conftest.$ac_ext <<_ACEOF
6445/* confdefs.h. */
6446_ACEOF
6447cat confdefs.h >>conftest.$ac_ext
6448cat >>conftest.$ac_ext <<_ACEOF
6449/* end confdefs.h. */
6450/* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
6451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6452#define textdomain innocuous_textdomain
6453
6454/* System header to define __stub macros and hopefully few prototypes,
6455 which can conflict with char textdomain (); below.
6456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6457 <limits.h> exists even on freestanding compilers. */
6458
6459#ifdef __STDC__
6460# include <limits.h>
6461#else
6462# include <assert.h>
6463#endif
6464
6465#undef textdomain
6466
6467/* Override any gcc2 internal prototype to avoid an error. */
6468#ifdef __cplusplus
6469extern "C"
6470{
6471#endif
6472/* We use char because int might match the return type of a gcc2
6473 builtin and then its argument prototype would still apply. */
6474char textdomain ();
6475/* The GNU C library defines this for functions which it implements
6476 to always fail with ENOSYS. Some functions are actually named
6477 something starting with __ and the normal name is an alias. */
6478#if defined (__stub_textdomain) || defined (__stub___textdomain)
6479choke me
6480#else
6481char (*f) () = textdomain;
6482#endif
6483#ifdef __cplusplus
6484}
6485#endif
6486
6487int
6488main ()
6489{
6490return f != textdomain;
6491 ;
6492 return 0;
6493}
6494_ACEOF
6495rm -f conftest.$ac_objext conftest$ac_exeext
6496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6497 (eval $ac_link) 2>conftest.er1
6498 ac_status=$?
6499 grep -v '^ *+' conftest.er1 >conftest.err
6500 rm -f conftest.er1
6501 cat conftest.err >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } &&
6504 { ac_try='test -z "$ac_c_werror_flag"
6505 || test ! -s conftest.err'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; } &&
6511 { ac_try='test -s conftest$ac_exeext'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 (eval $ac_try) 2>&5
6514 ac_status=$?
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; }; then
6517 ac_cv_func_textdomain=yes
6518else
6519 echo "$as_me: failed program was:" >&5
6520sed 's/^/| /' conftest.$ac_ext >&5
6521
6522ac_cv_func_textdomain=no
6523fi
6524rm -f conftest.err conftest.$ac_objext \
6525 conftest$ac_exeext conftest.$ac_ext
6526fi
6527echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
6528echo "${ECHO_T}$ac_cv_func_textdomain" >&6
6529if test $ac_cv_func_textdomain = yes; then
6530 cat >>confdefs.h <<\_ACEOF
6531#define ENABLE_NLS 1
6532_ACEOF
6533
6534fi
6535
6536
6537# *** Custom checking (based on GNU tar configure.in) ***
6538# ---------------------------------------------------------------------------
6539echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
6540echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
6541if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
6542 echo "$as_me:$LINENO: result: yes" >&5
6543echo "${ECHO_T}yes" >&6
6544 case $LIBOBJS in
6545 "gmalloc.$ac_objext" | \
6546 *" gmalloc.$ac_objext" | \
6547 "gmalloc.$ac_objext "* | \
6548 *" gmalloc.$ac_objext "* ) ;;
6549 *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
6550esac
6551
6552 cat >>confdefs.h <<\_ACEOF
6553#define HAVE_VALLOC 1
6554_ACEOF
6555
6556else
6557 echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6
6559
6560for ac_func in valloc
6561do
6562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6563echo "$as_me:$LINENO: checking for $ac_func" >&5
6564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6565if eval "test \"\${$as_ac_var+set}\" = set"; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567else
6568 cat >conftest.$ac_ext <<_ACEOF
6569/* confdefs.h. */
6570_ACEOF
6571cat confdefs.h >>conftest.$ac_ext
6572cat >>conftest.$ac_ext <<_ACEOF
6573/* end confdefs.h. */
6574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6576#define $ac_func innocuous_$ac_func
6577
6578/* System header to define __stub macros and hopefully few prototypes,
6579 which can conflict with char $ac_func (); below.
6580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6581 <limits.h> exists even on freestanding compilers. */
6582
6583#ifdef __STDC__
6584# include <limits.h>
6585#else
6586# include <assert.h>
6587#endif
6588
6589#undef $ac_func
6590
6591/* Override any gcc2 internal prototype to avoid an error. */
6592#ifdef __cplusplus
6593extern "C"
6594{
6595#endif
6596/* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6598char $ac_func ();
6599/* The GNU C library defines this for functions which it implements
6600 to always fail with ENOSYS. Some functions are actually named
6601 something starting with __ and the normal name is an alias. */
6602#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6603choke me
6604#else
6605char (*f) () = $ac_func;
6606#endif
6607#ifdef __cplusplus
6608}
6609#endif
6610
6611int
6612main ()
6613{
6614return f != $ac_func;
6615 ;
6616 return 0;
6617}
6618_ACEOF
6619rm -f conftest.$ac_objext conftest$ac_exeext
6620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6621 (eval $ac_link) 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest$ac_exeext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 eval "$as_ac_var=yes"
6642else
6643 echo "$as_me: failed program was:" >&5
6644sed 's/^/| /' conftest.$ac_ext >&5
6645
6646eval "$as_ac_var=no"
6647fi
6648rm -f conftest.err conftest.$ac_objext \
6649 conftest$ac_exeext conftest.$ac_ext
6650fi
6651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6652echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6653if test `eval echo '${'$as_ac_var'}'` = yes; then
6654 cat >>confdefs.h <<_ACEOF
6655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6656_ACEOF
6657
6658fi
6659done
6660
6661fi
6662
6663# we cannot generate static libraries under Darwin
6664echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
6665echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
6666if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
6667 echo "$as_me:$LINENO: result: yes" >&5
6668echo "${ECHO_T}yes" >&6
6669 STATIC=""
6670else
6671 echo "$as_me:$LINENO: result: no" >&5
6672echo "${ECHO_T}no" >&6
6673 STATIC="-static "
6674fi
6675
6676
6677echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6678echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6679
6680# Check whether --with-dmalloc or --without-dmalloc was given.
6681if test "${with_dmalloc+set}" = set; then
6682 withval="$with_dmalloc"
6683 if test "$withval" = yes; then
6684 echo "$as_me:$LINENO: result: yes" >&5
6685echo "${ECHO_T}yes" >&6
6686 cat >>confdefs.h <<\_ACEOF
6687#define WITH_DMALLOC 1
6688_ACEOF
6689
6690 LIBS="$LIBS -ldmalloc"
6691 LDFLAGS="$LDFLAGS -g"
6692else
6693 echo "$as_me:$LINENO: result: no" >&5
6694echo "${ECHO_T}no" >&6
6695fi
6696else
6697 echo "$as_me:$LINENO: result: no" >&5
6698echo "${ECHO_T}no" >&6
6699fi;
6700
6701echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
6702echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
6703
6704# Check whether --with-regex or --without-regex was given.
6705if test "${with_regex+set}" = set; then
6706 withval="$with_regex"
6707 if test "$withval" = yes; then
6708 ac_with_regex=1
6709 echo "$as_me:$LINENO: result: regex" >&5
6710echo "${ECHO_T}regex" >&6
6711 cat >>confdefs.h <<\_ACEOF
6712#define WITH_REGEX 1
6713_ACEOF
6714
6715 case $LIBOBJS in
6716 "regex.$ac_objext" | \
6717 *" regex.$ac_objext" | \
6718 "regex.$ac_objext "* | \
6719 *" regex.$ac_objext "* ) ;;
6720 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
6721esac
6722
6723fi
6724fi;
6725if test -z "$ac_with_regex"; then
6726 echo "$as_me:$LINENO: result: rx" >&5
6727echo "${ECHO_T}rx" >&6
6728 echo "$as_me:$LINENO: checking for re_rx_search" >&5
6729echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
6730if test "${ac_cv_func_re_rx_search+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733 cat >conftest.$ac_ext <<_ACEOF
6734/* confdefs.h. */
6735_ACEOF
6736cat confdefs.h >>conftest.$ac_ext
6737cat >>conftest.$ac_ext <<_ACEOF
6738/* end confdefs.h. */
6739/* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
6740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6741#define re_rx_search innocuous_re_rx_search
6742
6743/* System header to define __stub macros and hopefully few prototypes,
6744 which can conflict with char re_rx_search (); below.
6745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6746 <limits.h> exists even on freestanding compilers. */
6747
6748#ifdef __STDC__
6749# include <limits.h>
6750#else
6751# include <assert.h>
6752#endif
6753
6754#undef re_rx_search
6755
6756/* Override any gcc2 internal prototype to avoid an error. */
6757#ifdef __cplusplus
6758extern "C"
6759{
6760#endif
6761/* We use char because int might match the return type of a gcc2
6762 builtin and then its argument prototype would still apply. */
6763char re_rx_search ();
6764/* The GNU C library defines this for functions which it implements
6765 to always fail with ENOSYS. Some functions are actually named
6766 something starting with __ and the normal name is an alias. */
6767#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
6768choke me
6769#else
6770char (*f) () = re_rx_search;
6771#endif
6772#ifdef __cplusplus
6773}
6774#endif
6775
6776int
6777main ()
6778{
6779return f != re_rx_search;
6780 ;
6781 return 0;
6782}
6783_ACEOF
6784rm -f conftest.$ac_objext conftest$ac_exeext
6785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6786 (eval $ac_link) 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } &&
6793 { ac_try='test -z "$ac_c_werror_flag"
6794 || test ! -s conftest.err'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 (eval $ac_try) 2>&5
6797 ac_status=$?
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; } &&
6800 { ac_try='test -s conftest$ac_exeext'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 (eval $ac_try) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; }; then
6806 ac_cv_func_re_rx_search=yes
6807else
6808 echo "$as_me: failed program was:" >&5
6809sed 's/^/| /' conftest.$ac_ext >&5
6810
6811ac_cv_func_re_rx_search=no
6812fi
6813rm -f conftest.err conftest.$ac_objext \
6814 conftest$ac_exeext conftest.$ac_ext
6815fi
6816echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
6817echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
6818if test $ac_cv_func_re_rx_search = yes; then
6819 :
6820else
6821 case $LIBOBJS in
6822 "rx.$ac_objext" | \
6823 *" rx.$ac_objext" | \
6824 "rx.$ac_objext "* | \
6825 *" rx.$ac_objext "* ) ;;
6826 *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
6827esac
6828
6829fi
6830
6831fi
6832
6833
6834# ---------------------------------------------------------------------------
6835if test "$ac_cv_func_alloca" = 'no'; then
6836 case $LIBOBJS in
6837 "xmalloc.$ac_objext" | \
6838 *" xmalloc.$ac_objext" | \
6839 "xmalloc.$ac_objext "* | \
6840 *" xmalloc.$ac_objext "* ) ;;
6841 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
6842esac
6843
6844 case $LIBOBJS in
6845 "error.$ac_objext" | \
6846 *" error.$ac_objext" | \
6847 "error.$ac_objext "* | \
6848 *" error.$ac_objext "* ) ;;
6849 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
6850esac
6851
6852fi
6853
6854
6855# ---------------------------------------------------------------------------
6856
6857ac_ext=cc
6858ac_cpp='$CXXCPP $CPPFLAGS'
6859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6862
6863
6864echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
6865echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
6866success="no"
6867pl_path="$PATH"
6868IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
6869for pl_dir in $pl_path; do
6870 test -z "$pl_dir" && pl_dir=.
6871 if test -x $pl_dir/perl; then
6872 success="yes"
6873 break
6874 fi
6875done
6876IFS="$pl_save_ifs"
6877
6878if test $success = "yes"; then
6879try=`perl configtest.pl` || try="0"
6880try=`expr $try \> 5.000`
6881if test $try = "1"; then
6882echo "$as_me:$LINENO: result: \"yes\"" >&5
6883echo "${ECHO_T}\"yes\"" >&6
6884else
6885success="no"
6886fi
6887fi
6888
6889if test $success = "no"; then
6890echo "$as_me:$LINENO: result: \"no\"" >&5
6891echo "${ECHO_T}\"no\"" >&6
6892{ { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
6893echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
6894 { (exit 1); exit 1; }; }
6895fi
6896
6897success=no
6898echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
6899echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
6900
6901
6902cat >conftest.$ac_ext <<_ACEOF
6903/* confdefs.h. */
6904_ACEOF
6905cat confdefs.h >>conftest.$ac_ext
6906cat >>conftest.$ac_ext <<_ACEOF
6907/* end confdefs.h. */
6908#include <vector>
6909
6910int
6911main ()
6912{
6913
6914 ;
6915 return 0;
6916}
6917_ACEOF
6918rm -f conftest.$ac_objext
6919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920 (eval $ac_compile) 2>conftest.er1
6921 ac_status=$?
6922 grep -v '^ *+' conftest.er1 >conftest.err
6923 rm -f conftest.er1
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } &&
6927 { ac_try='test -z "$ac_cxx_werror_flag"
6928 || test ! -s conftest.err'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 (eval $ac_try) 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; } &&
6934 { ac_try='test -s conftest.$ac_objext'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 (eval $ac_try) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; }; then
6940 success=yes
6941else
6942 echo "$as_me: failed program was:" >&5
6943sed 's/^/| /' conftest.$ac_ext >&5
6944
6945fi
6946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6947
6948if test $success = "no"; then
6949cat >conftest.$ac_ext <<_ACEOF
6950/* confdefs.h. */
6951_ACEOF
6952cat confdefs.h >>conftest.$ac_ext
6953cat >>conftest.$ac_ext <<_ACEOF
6954/* end confdefs.h. */
6955#include <vector.h>
6956
6957int
6958main ()
6959{
6960
6961 ;
6962 return 0;
6963}
6964_ACEOF
6965rm -f conftest.$ac_objext
6966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -z "$ac_cxx_werror_flag"
6975 || test ! -s conftest.err'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try='test -s conftest.$ac_objext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 success="yes"
6988else
6989 echo "$as_me: failed program was:" >&5
6990sed 's/^/| /' conftest.$ac_ext >&5
6991
6992fi
6993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6994fi
6995
6996if test $success = "no"; then
6997cat >conftest.$ac_ext <<_ACEOF
6998/* confdefs.h. */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h. */
7003#include <ospace\\std\\vector>
7004
7005int
7006main ()
7007{
7008
7009 ;
7010 return 0;
7011}
7012_ACEOF
7013rm -f conftest.$ac_objext
7014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015 (eval $ac_compile) 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_cxx_werror_flag"
7023 || test ! -s conftest.err'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 (eval $ac_try) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; } &&
7029 { ac_try='test -s conftest.$ac_objext'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; }; then
7035 success="yes"
7036else
7037 echo "$as_me: failed program was:" >&5
7038sed 's/^/| /' conftest.$ac_ext >&5
7039
7040fi
7041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7042fi
7043
7044if test $success = yes; then
7045echo "$as_me:$LINENO: result: \"no\"" >&5
7046echo "${ECHO_T}\"no\"" >&6
7047else
7048echo "$as_me:$LINENO: result: \"yes\"" >&5
7049echo "${ECHO_T}\"yes\"" >&6
7050{ { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
7051echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
7052 { (exit 1); exit 1; }; }
7053fi
7054
7055gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
7056# check for running bash under cygwin
7057 if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
7058 then
7059 gsdlos=windows
7060 fi
7061
7062
7063# check for endianness
7064echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7065echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7066if test "${ac_cv_c_bigendian+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068else
7069 # See if sys/param.h defines the BYTE_ORDER macro.
7070cat >conftest.$ac_ext <<_ACEOF
7071/* confdefs.h. */
7072_ACEOF
7073cat confdefs.h >>conftest.$ac_ext
7074cat >>conftest.$ac_ext <<_ACEOF
7075/* end confdefs.h. */
7076#include <sys/types.h>
7077#include <sys/param.h>
7078
7079int
7080main ()
7081{
7082#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7083 bogus endian macros
7084#endif
7085
7086 ;
7087 return 0;
7088}
7089_ACEOF
7090rm -f conftest.$ac_objext
7091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>conftest.er1
7093 ac_status=$?
7094 grep -v '^ *+' conftest.er1 >conftest.err
7095 rm -f conftest.er1
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try='test -z "$ac_cxx_werror_flag"
7100 || test ! -s conftest.err'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 (eval $ac_try) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; } &&
7106 { ac_try='test -s conftest.$ac_objext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 # It does; now see whether it defined to BIG_ENDIAN or not.
7113cat >conftest.$ac_ext <<_ACEOF
7114/* confdefs.h. */
7115_ACEOF
7116cat confdefs.h >>conftest.$ac_ext
7117cat >>conftest.$ac_ext <<_ACEOF
7118/* end confdefs.h. */
7119#include <sys/types.h>
7120#include <sys/param.h>
7121
7122int
7123main ()
7124{
7125#if BYTE_ORDER != BIG_ENDIAN
7126 not big endian
7127#endif
7128
7129 ;
7130 return 0;
7131}
7132_ACEOF
7133rm -f conftest.$ac_objext
7134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7135 (eval $ac_compile) 2>conftest.er1
7136 ac_status=$?
7137 grep -v '^ *+' conftest.er1 >conftest.err
7138 rm -f conftest.er1
7139 cat conftest.err >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } &&
7142 { ac_try='test -z "$ac_cxx_werror_flag"
7143 || test ! -s conftest.err'
7144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145 (eval $ac_try) 2>&5
7146 ac_status=$?
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); }; } &&
7149 { ac_try='test -s conftest.$ac_objext'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; }; then
7155 ac_cv_c_bigendian=yes
7156else
7157 echo "$as_me: failed program was:" >&5
7158sed 's/^/| /' conftest.$ac_ext >&5
7159
7160ac_cv_c_bigendian=no
7161fi
7162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7163else
7164 echo "$as_me: failed program was:" >&5
7165sed 's/^/| /' conftest.$ac_ext >&5
7166
7167# It does not; compile a test program.
7168if test "$cross_compiling" = yes; then
7169 # try to guess the endianness by grepping values into an object file
7170 ac_cv_c_bigendian=unknown
7171 cat >conftest.$ac_ext <<_ACEOF
7172/* confdefs.h. */
7173_ACEOF
7174cat confdefs.h >>conftest.$ac_ext
7175cat >>conftest.$ac_ext <<_ACEOF
7176/* end confdefs.h. */
7177short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7178short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7179void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7180short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7181short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7182void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7183int
7184main ()
7185{
7186 _ascii (); _ebcdic ();
7187 ;
7188 return 0;
7189}
7190_ACEOF
7191rm -f conftest.$ac_objext
7192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try='test -z "$ac_cxx_werror_flag"
7201 || test ! -s conftest.err'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; } &&
7207 { ac_try='test -s conftest.$ac_objext'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 (eval $ac_try) 2>&5
7210 ac_status=$?
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7213 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7214 ac_cv_c_bigendian=yes
7215fi
7216if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7217 if test "$ac_cv_c_bigendian" = unknown; then
7218 ac_cv_c_bigendian=no
7219 else
7220 # finding both strings is unlikely to happen, but who knows?
7221 ac_cv_c_bigendian=unknown
7222 fi
7223fi
7224else
7225 echo "$as_me: failed program was:" >&5
7226sed 's/^/| /' conftest.$ac_ext >&5
7227
7228fi
7229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7230else
7231 cat >conftest.$ac_ext <<_ACEOF
7232/* confdefs.h. */
7233_ACEOF
7234cat confdefs.h >>conftest.$ac_ext
7235cat >>conftest.$ac_ext <<_ACEOF
7236/* end confdefs.h. */
7237int
7238main ()
7239{
7240 /* Are we little or big endian? From Harbison&Steele. */
7241 union
7242 {
7243 long l;
7244 char c[sizeof (long)];
7245 } u;
7246 u.l = 1;
7247 exit (u.c[sizeof (long) - 1] == 1);
7248}
7249_ACEOF
7250rm -f conftest$ac_exeext
7251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7252 (eval $ac_link) 2>&5
7253 ac_status=$?
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 (eval $ac_try) 2>&5
7258 ac_status=$?
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7261 ac_cv_c_bigendian=no
7262else
7263 echo "$as_me: program exited with status $ac_status" >&5
7264echo "$as_me: failed program was:" >&5
7265sed 's/^/| /' conftest.$ac_ext >&5
7266
7267( exit $ac_status )
7268ac_cv_c_bigendian=yes
7269fi
7270rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7271fi
7272fi
7273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7274fi
7275echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7276echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7277case $ac_cv_c_bigendian in
7278 yes)
7279
7280cat >>confdefs.h <<\_ACEOF
7281#define WORDS_BIGENDIAN 1
7282_ACEOF
7283 ;;
7284 no)
7285 ;;
7286 *)
7287 { { echo "$as_me:$LINENO: error: unknown endianness
7288presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7289echo "$as_me: error: unknown endianness
7290presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7291 { (exit 1); exit 1; }; } ;;
7292esac
7293
7294# ---------------------------------------------------------------------------
7295if test "$ac_cv_func_alloca" = 'no'; then
7296 case $LIBOBJS in
7297 "xmalloc.o.$ac_objext" | \
7298 *" xmalloc.o.$ac_objext" | \
7299 "xmalloc.o.$ac_objext "* | \
7300 *" xmalloc.o.$ac_objext "* ) ;;
7301 *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
7302esac
7303
7304 case $LIBOBJS in
7305 "error.$ac_objext" | \
7306 *" error.$ac_objext" | \
7307 "error.$ac_objext "* | \
7308 *" error.$ac_objext "* ) ;;
7309 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
7310esac
7311
7312fi
7313
7314# ---------------------------------------------------------------------------
7315
7316moduleDirs=""
7317MODULEDIRS=""
7318if test -d modules ; then
7319 for x in `find modules -mindepth 1 -maxdepth 2`; do
7320 if test -d "$x"; then
7321 d="$x/Makefile.in"
7322 if test -e "$d"; then
7323 moduleDirs="$moduleDirs $x/Makefile"
7324 MODULEDIRS="$MODULEDIRS $x"
7325 fi
7326 fi
7327 done
7328 echo "Making $moduleDirs in modules directory"
7329
7330fi
7331
7332
7333# ---------------------------------------------------------------------------
7334
7335# indexers needs a bindir option to get the binaries into the right place
7336gsdlprefix=`pwd`
7337ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
7338
7339
7340subdirs="$subdirs common-src"
7341
7342
7343
7344subdirs="$subdirs build-src"
7345
7346
7347# the list of folders in the src folder
7348srclist="common-src/Makefile \
7349 build-src/Makefile"
7350
7351if test -d runtime-src; then
7352
7353
7354subdirs="$subdirs runtime-src"
7355
7356 srclist="$srclist \
7357 runtime-src/Makefile"
7358fi
7359
7360 ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
7361cat >confcache <<\_ACEOF
7362# This file is a shell script that caches the results of configure
7363# tests run on this system so they can be shared between configure
7364# scripts and configure runs, see configure's option --config-cache.
7365# It is not useful on other systems. If it contains results you don't
7366# want to keep, you may remove or edit it.
7367#
7368# config.status only pays attention to the cache file if you give it
7369# the --recheck option to rerun configure.
7370#
7371# `ac_cv_env_foo' variables (set or unset) will be overridden when
7372# loading this file, other *unset* `ac_cv_foo' will be assigned the
7373# following values.
7374
7375_ACEOF
7376
7377# The following way of writing the cache mishandles newlines in values,
7378# but we know of no workaround that is simple, portable, and efficient.
7379# So, don't put newlines in cache variables' values.
7380# Ultrix sh set writes to stderr and can't be redirected directly,
7381# and sets the high bit in the cache file unless we assign to the vars.
7382{
7383 (set) 2>&1 |
7384 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7385 *ac_space=\ *)
7386 # `set' does not quote correctly, so add quotes (double-quote
7387 # substitution turns \\\\ into \\, and sed turns \\ into \).
7388 sed -n \
7389 "s/'/'\\\\''/g;
7390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7391 ;;
7392 *)
7393 # `set' quotes correctly as required by POSIX, so do not add quotes.
7394 sed -n \
7395 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7396 ;;
7397 esac;
7398} |
7399 sed '
7400 t clear
7401 : clear
7402 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7403 t end
7404 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7405 : end' >>confcache
7406if diff $cache_file confcache >/dev/null 2>&1; then :; else
7407 if test -w $cache_file; then
7408 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7409 cat confcache >$cache_file
7410 else
7411 echo "not updating unwritable cache $cache_file"
7412 fi
7413fi
7414rm -f confcache
7415
7416test "x$prefix" = xNONE && prefix=$ac_default_prefix
7417# Let make expand exec_prefix.
7418test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7419
7420# VPATH may cause trouble with some makes, so we remove $(srcdir),
7421# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7422# trailing colons and then remove the whole line if VPATH becomes empty
7423# (actually we leave an empty line to preserve line numbers).
7424if test "x$srcdir" = x.; then
7425 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7426s/:*\$(srcdir):*/:/;
7427s/:*\${srcdir}:*/:/;
7428s/:*@srcdir@:*/:/;
7429s/^\([^=]*=[ ]*\):*/\1/;
7430s/:*$//;
7431s/^[^=]*=[ ]*$//;
7432}'
7433fi
7434
7435DEFS=-DHAVE_CONFIG_H
7436
7437ac_libobjs=
7438ac_ltlibobjs=
7439for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7440 # 1. Remove the extension, and $U if already installed.
7441 ac_i=`echo "$ac_i" |
7442 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7443 # 2. Add them.
7444 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7445 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7446done
7447LIBOBJS=$ac_libobjs
7448
7449LTLIBOBJS=$ac_ltlibobjs
7450
7451
7452
7453: ${CONFIG_STATUS=./config.status}
7454ac_clean_files_save=$ac_clean_files
7455ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7456{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7457echo "$as_me: creating $CONFIG_STATUS" >&6;}
7458cat >$CONFIG_STATUS <<_ACEOF
7459#! $SHELL
7460# Generated by $as_me.
7461# Run this file to recreate the current configuration.
7462# Compiler output produced by configure, useful for debugging
7463# configure, is in config.log if it exists.
7464
7465debug=false
7466ac_cs_recheck=false
7467ac_cs_silent=false
7468SHELL=\${CONFIG_SHELL-$SHELL}
7469_ACEOF
7470
7471cat >>$CONFIG_STATUS <<\_ACEOF
7472## --------------------- ##
7473## M4sh Initialization. ##
7474## --------------------- ##
7475
7476# Be Bourne compatible
7477if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7478 emulate sh
7479 NULLCMD=:
7480 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7481 # is contrary to our usage. Disable this feature.
7482 alias -g '${1+"$@"}'='"$@"'
7483elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7484 set -o posix
7485fi
7486DUALCASE=1; export DUALCASE # for MKS sh
7487
7488# Support unset when possible.
7489if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7490 as_unset=unset
7491else
7492 as_unset=false
7493fi
7494
7495
7496# Work around bugs in pre-3.0 UWIN ksh.
7497$as_unset ENV MAIL MAILPATH
7498PS1='$ '
7499PS2='> '
7500PS4='+ '
7501
7502# NLS nuisances.
7503for as_var in \
7504 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7505 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7506 LC_TELEPHONE LC_TIME
7507do
7508 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7509 eval $as_var=C; export $as_var
7510 else
7511 $as_unset $as_var
7512 fi
7513done
7514
7515# Required to use basename.
7516if expr a : '\(a\)' >/dev/null 2>&1; then
7517 as_expr=expr
7518else
7519 as_expr=false
7520fi
7521
7522if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7523 as_basename=basename
7524else
7525 as_basename=false
7526fi
7527
7528
7529# Name of the executable.
7530as_me=`$as_basename "$0" ||
7531$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7532 X"$0" : 'X\(//\)$' \| \
7533 X"$0" : 'X\(/\)$' \| \
7534 . : '\(.\)' 2>/dev/null ||
7535echo X/"$0" |
7536 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7537 /^X\/\(\/\/\)$/{ s//\1/; q; }
7538 /^X\/\(\/\).*/{ s//\1/; q; }
7539 s/.*/./; q'`
7540
7541
7542# PATH needs CR, and LINENO needs CR and PATH.
7543# Avoid depending upon Character Ranges.
7544as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7545as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7546as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7547as_cr_digits='0123456789'
7548as_cr_alnum=$as_cr_Letters$as_cr_digits
7549
7550# The user is always right.
7551if test "${PATH_SEPARATOR+set}" != set; then
7552 echo "#! /bin/sh" >conf$$.sh
7553 echo "exit 0" >>conf$$.sh
7554 chmod +x conf$$.sh
7555 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7556 PATH_SEPARATOR=';'
7557 else
7558 PATH_SEPARATOR=:
7559 fi
7560 rm -f conf$$.sh
7561fi
7562
7563
7564 as_lineno_1=$LINENO
7565 as_lineno_2=$LINENO
7566 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7567 test "x$as_lineno_1" != "x$as_lineno_2" &&
7568 test "x$as_lineno_3" = "x$as_lineno_2" || {
7569 # Find who we are. Look in the path if we contain no path at all
7570 # relative or not.
7571 case $0 in
7572 *[\\/]* ) as_myself=$0 ;;
7573 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7579done
7580
7581 ;;
7582 esac
7583 # We did not find ourselves, most probably we were run as `sh COMMAND'
7584 # in which case we are not to be found in the path.
7585 if test "x$as_myself" = x; then
7586 as_myself=$0
7587 fi
7588 if test ! -f "$as_myself"; then
7589 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7590echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7591 { (exit 1); exit 1; }; }
7592 fi
7593 case $CONFIG_SHELL in
7594 '')
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7597do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for as_base in sh bash ksh sh5; do
7601 case $as_dir in
7602 /*)
7603 if ("$as_dir/$as_base" -c '
7604 as_lineno_1=$LINENO
7605 as_lineno_2=$LINENO
7606 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7607 test "x$as_lineno_1" != "x$as_lineno_2" &&
7608 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7609 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7610 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7611 CONFIG_SHELL=$as_dir/$as_base
7612 export CONFIG_SHELL
7613 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7614 fi;;
7615 esac
7616 done
7617done
7618;;
7619 esac
7620
7621 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7622 # uniformly replaced by the line number. The first 'sed' inserts a
7623 # line-number line before each line; the second 'sed' does the real
7624 # work. The second script uses 'N' to pair each line-number line
7625 # with the numbered line, and appends trailing '-' during
7626 # substitution so that $LINENO is not a special case at line end.
7627 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7628 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7629 sed '=' <$as_myself |
7630 sed '
7631 N
7632 s,$,-,
7633 : loop
7634 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7635 t loop
7636 s,-$,,
7637 s,^['$as_cr_digits']*\n,,
7638 ' >$as_me.lineno &&
7639 chmod +x $as_me.lineno ||
7640 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7641echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7642 { (exit 1); exit 1; }; }
7643
7644 # Don't try to exec as it changes $[0], causing all sort of problems
7645 # (the dirname of $[0] is not the place where we might find the
7646 # original and so on. Autoconf is especially sensible to this).
7647 . ./$as_me.lineno
7648 # Exit status is that of the last command.
7649 exit
7650}
7651
7652
7653case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7654 *c*,-n*) ECHO_N= ECHO_C='
7655' ECHO_T=' ' ;;
7656 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7657 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7658esac
7659
7660if expr a : '\(a\)' >/dev/null 2>&1; then
7661 as_expr=expr
7662else
7663 as_expr=false
7664fi
7665
7666rm -f conf$$ conf$$.exe conf$$.file
7667echo >conf$$.file
7668if ln -s conf$$.file conf$$ 2>/dev/null; then
7669 # We could just check for DJGPP; but this test a) works b) is more generic
7670 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7671 if test -f conf$$.exe; then
7672 # Don't use ln at all; we don't have any links
7673 as_ln_s='cp -p'
7674 else
7675 as_ln_s='ln -s'
7676 fi
7677elif ln conf$$.file conf$$ 2>/dev/null; then
7678 as_ln_s=ln
7679else
7680 as_ln_s='cp -p'
7681fi
7682rm -f conf$$ conf$$.exe conf$$.file
7683
7684if mkdir -p . 2>/dev/null; then
7685 as_mkdir_p=:
7686else
7687 test -d ./-p && rmdir ./-p
7688 as_mkdir_p=false
7689fi
7690
7691as_executable_p="test -f"
7692
7693# Sed expression to map a string onto a valid CPP name.
7694as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7695
7696# Sed expression to map a string onto a valid variable name.
7697as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7698
7699
7700# IFS
7701# We need space, tab and new line, in precisely that order.
7702as_nl='
7703'
7704IFS=" $as_nl"
7705
7706# CDPATH.
7707$as_unset CDPATH
7708
7709exec 6>&1
7710
7711# Open the log real soon, to keep \$[0] and so on meaningful, and to
7712# report actual input values of CONFIG_FILES etc. instead of their
7713# values after options handling. Logging --version etc. is OK.
7714exec 5>>config.log
7715{
7716 echo
7717 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7718## Running $as_me. ##
7719_ASBOX
7720} >&5
7721cat >&5 <<_CSEOF
7722
7723This file was extended by $as_me, which was
7724generated by GNU Autoconf 2.59. Invocation command line was
7725
7726 CONFIG_FILES = $CONFIG_FILES
7727 CONFIG_HEADERS = $CONFIG_HEADERS
7728 CONFIG_LINKS = $CONFIG_LINKS
7729 CONFIG_COMMANDS = $CONFIG_COMMANDS
7730 $ $0 $@
7731
7732_CSEOF
7733echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7734echo >&5
7735_ACEOF
7736
7737# Files that config.status was made for.
7738if test -n "$ac_config_files"; then
7739 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7740fi
7741
7742if test -n "$ac_config_headers"; then
7743 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7744fi
7745
7746if test -n "$ac_config_links"; then
7747 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7748fi
7749
7750if test -n "$ac_config_commands"; then
7751 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7752fi
7753
7754cat >>$CONFIG_STATUS <<\_ACEOF
7755
7756ac_cs_usage="\
7757\`$as_me' instantiates files from templates according to the
7758current configuration.
7759
7760Usage: $0 [OPTIONS] [FILE]...
7761
7762 -h, --help print this help, then exit
7763 -V, --version print version number, then exit
7764 -q, --quiet do not print progress messages
7765 -d, --debug don't remove temporary files
7766 --recheck update $as_me by reconfiguring in the same conditions
7767 --file=FILE[:TEMPLATE]
7768 instantiate the configuration file FILE
7769 --header=FILE[:TEMPLATE]
7770 instantiate the configuration header FILE
7771
7772Configuration files:
7773$config_files
7774
7775Configuration headers:
7776$config_headers
7777
7778Report bugs to <bug-autoconf@gnu.org>."
7779_ACEOF
7780
7781cat >>$CONFIG_STATUS <<_ACEOF
7782ac_cs_version="\\
7783config.status
7784configured by $0, generated by GNU Autoconf 2.59,
7785 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7786
7787Copyright (C) 2003 Free Software Foundation, Inc.
7788This config.status script is free software; the Free Software Foundation
7789gives unlimited permission to copy, distribute and modify it."
7790srcdir=$srcdir
7791INSTALL="$INSTALL"
7792_ACEOF
7793
7794cat >>$CONFIG_STATUS <<\_ACEOF
7795# If no file are specified by the user, then we need to provide default
7796# value. By we need to know if files were specified by the user.
7797ac_need_defaults=:
7798while test $# != 0
7799do
7800 case $1 in
7801 --*=*)
7802 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7803 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7804 ac_shift=:
7805 ;;
7806 -*)
7807 ac_option=$1
7808 ac_optarg=$2
7809 ac_shift=shift
7810 ;;
7811 *) # This is not an option, so the user has probably given explicit
7812 # arguments.
7813 ac_option=$1
7814 ac_need_defaults=false;;
7815 esac
7816
7817 case $ac_option in
7818 # Handling of the options.
7819_ACEOF
7820cat >>$CONFIG_STATUS <<\_ACEOF
7821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7822 ac_cs_recheck=: ;;
7823 --version | --vers* | -V )
7824 echo "$ac_cs_version"; exit 0 ;;
7825 --he | --h)
7826 # Conflict between --help and --header
7827 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7828Try \`$0 --help' for more information." >&5
7829echo "$as_me: error: ambiguous option: $1
7830Try \`$0 --help' for more information." >&2;}
7831 { (exit 1); exit 1; }; };;
7832 --help | --hel | -h )
7833 echo "$ac_cs_usage"; exit 0 ;;
7834 --debug | --d* | -d )
7835 debug=: ;;
7836 --file | --fil | --fi | --f )
7837 $ac_shift
7838 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7839 ac_need_defaults=false;;
7840 --header | --heade | --head | --hea )
7841 $ac_shift
7842 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7843 ac_need_defaults=false;;
7844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7845 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7846 ac_cs_silent=: ;;
7847
7848 # This is an error.
7849 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7850Try \`$0 --help' for more information." >&5
7851echo "$as_me: error: unrecognized option: $1
7852Try \`$0 --help' for more information." >&2;}
7853 { (exit 1); exit 1; }; } ;;
7854
7855 *) ac_config_targets="$ac_config_targets $1" ;;
7856
7857 esac
7858 shift
7859done
7860
7861ac_configure_extra_args=
7862
7863if $ac_cs_silent; then
7864 exec 6>/dev/null
7865 ac_configure_extra_args="$ac_configure_extra_args --silent"
7866fi
7867
7868_ACEOF
7869cat >>$CONFIG_STATUS <<_ACEOF
7870if \$ac_cs_recheck; then
7871 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7872 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7873fi
7874
7875_ACEOF
7876
7877
7878
7879
7880
7881cat >>$CONFIG_STATUS <<\_ACEOF
7882for ac_config_target in $ac_config_targets
7883do
7884 case "$ac_config_target" in
7885 # Handling of arguments.
7886 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7887 "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
7888 "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
7889 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7890 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7891echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7892 { (exit 1); exit 1; }; };;
7893 esac
7894done
7895
7896# If the user did not use the arguments to specify the items to instantiate,
7897# then the envvar interface is used. Set only those that are not.
7898# We use the long form for the default assignment because of an extremely
7899# bizarre bug on SunOS 4.1.3.
7900if $ac_need_defaults; then
7901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7903fi
7904
7905# Have a temporary directory for convenience. Make it in the build tree
7906# simply because there is no reason to put it here, and in addition,
7907# creating and moving files from /tmp can sometimes cause problems.
7908# Create a temporary directory, and hook for its removal unless debugging.
7909$debug ||
7910{
7911 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7912 trap '{ (exit 1); exit 1; }' 1 2 13 15
7913}
7914
7915# Create a (secure) tmp directory for tmp files.
7916
7917{
7918 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7919 test -n "$tmp" && test -d "$tmp"
7920} ||
7921{
7922 tmp=./confstat$$-$RANDOM
7923 (umask 077 && mkdir $tmp)
7924} ||
7925{
7926 echo "$me: cannot create a temporary directory in ." >&2
7927 { (exit 1); exit 1; }
7928}
7929
7930_ACEOF
7931
7932cat >>$CONFIG_STATUS <<_ACEOF
7933
7934#
7935# CONFIG_FILES section.
7936#
7937
7938# No need to generate the scripts if there are no CONFIG_FILES.
7939# This happens for instance when ./config.status config.h
7940if test -n "\$CONFIG_FILES"; then
7941 # Protect against being on the right side of a sed subst in config.status.
7942 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7943 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7944s,@SHELL@,$SHELL,;t t
7945s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7946s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7947s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7948s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7949s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7950s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7951s,@exec_prefix@,$exec_prefix,;t t
7952s,@prefix@,$prefix,;t t
7953s,@program_transform_name@,$program_transform_name,;t t
7954s,@bindir@,$bindir,;t t
7955s,@sbindir@,$sbindir,;t t
7956s,@libexecdir@,$libexecdir,;t t
7957s,@datadir@,$datadir,;t t
7958s,@sysconfdir@,$sysconfdir,;t t
7959s,@sharedstatedir@,$sharedstatedir,;t t
7960s,@localstatedir@,$localstatedir,;t t
7961s,@libdir@,$libdir,;t t
7962s,@includedir@,$includedir,;t t
7963s,@oldincludedir@,$oldincludedir,;t t
7964s,@infodir@,$infodir,;t t
7965s,@mandir@,$mandir,;t t
7966s,@build_alias@,$build_alias,;t t
7967s,@host_alias@,$host_alias,;t t
7968s,@target_alias@,$target_alias,;t t
7969s,@DEFS@,$DEFS,;t t
7970s,@ECHO_C@,$ECHO_C,;t t
7971s,@ECHO_N@,$ECHO_N,;t t
7972s,@ECHO_T@,$ECHO_T,;t t
7973s,@LIBS@,$LIBS,;t t
7974s,@PACKAGE@,$PACKAGE,;t t
7975s,@VERSION@,$VERSION,;t t
7976s,@USE_FASTCGI@,$USE_FASTCGI,;t t
7977s,@USE_LANGACTION@,$USE_LANGACTION,;t t
7978s,@USE_CORBA@,$USE_CORBA,;t t
7979s,@MICO_DIR@,$MICO_DIR,;t t
7980s,@USE_Z3950@,$USE_Z3950,;t t
7981s,@USE_YAZ@,$USE_YAZ,;t t
7982s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
7983s,@ENABLE_JDBM@,$ENABLE_JDBM,;t t
7984s,@USE_SQLITE@,$USE_SQLITE,;t t
7985s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t
7986s,@ENABLE_JNI@,$ENABLE_JNI,;t t
7987s,@ENABLE_MG@,$ENABLE_MG,;t t
7988s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
7989s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
7990s,@LDFLAGS@,$LDFLAGS,;t t
7991s,@CFLAGS@,$CFLAGS,;t t
7992s,@CC@,$CC,;t t
7993s,@CPPFLAGS@,$CPPFLAGS,;t t
7994s,@ac_ct_CC@,$ac_ct_CC,;t t
7995s,@EXEEXT@,$EXEEXT,;t t
7996s,@OBJEXT@,$OBJEXT,;t t
7997s,@CXX@,$CXX,;t t
7998s,@CXXFLAGS@,$CXXFLAGS,;t t
7999s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8000s,@AWK@,$AWK,;t t
8001s,@YACC@,$YACC,;t t
8002s,@build@,$build,;t t
8003s,@build_cpu@,$build_cpu,;t t
8004s,@build_vendor@,$build_vendor,;t t
8005s,@build_os@,$build_os,;t t
8006s,@host@,$host,;t t
8007s,@host_cpu@,$host_cpu,;t t
8008s,@host_vendor@,$host_vendor,;t t
8009s,@host_os@,$host_os,;t t
8010s,@target@,$target,;t t
8011s,@target_cpu@,$target_cpu,;t t
8012s,@target_vendor@,$target_vendor,;t t
8013s,@target_os@,$target_os,;t t
8014s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8015s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8016s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8017s,@LN_S@,$LN_S,;t t
8018s,@SET_MAKE@,$SET_MAKE,;t t
8019s,@RANLIB@,$RANLIB,;t t
8020s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8021s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
8022s,@MICO_VER@,$MICO_VER,;t t
8023s,@CPP@,$CPP,;t t
8024s,@EGREP@,$EGREP,;t t
8025s,@U@,$U,;t t
8026s,@ANSI2KNR@,$ANSI2KNR,;t t
8027s,@ALLOCA@,$ALLOCA,;t t
8028s,@LIBOBJS@,$LIBOBJS,;t t
8029s,@STATIC@,$STATIC,;t t
8030s,@gsdlos@,$gsdlos,;t t
8031s,@MODULEDIRS@,$MODULEDIRS,;t t
8032s,@subdirs@,$subdirs,;t t
8033s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8034CEOF
8035
8036_ACEOF
8037
8038 cat >>$CONFIG_STATUS <<\_ACEOF
8039 # Split the substitutions into bite-sized pieces for seds with
8040 # small command number limits, like on Digital OSF/1 and HP-UX.
8041 ac_max_sed_lines=48
8042 ac_sed_frag=1 # Number of current file.
8043 ac_beg=1 # First line for current file.
8044 ac_end=$ac_max_sed_lines # Line after last line for current file.
8045 ac_more_lines=:
8046 ac_sed_cmds=
8047 while $ac_more_lines; do
8048 if test $ac_beg -gt 1; then
8049 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8050 else
8051 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8052 fi
8053 if test ! -s $tmp/subs.frag; then
8054 ac_more_lines=false
8055 else
8056 # The purpose of the label and of the branching condition is to
8057 # speed up the sed processing (if there are no `@' at all, there
8058 # is no need to browse any of the substitutions).
8059 # These are the two extra sed commands mentioned above.
8060 (echo ':t
8061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8062 if test -z "$ac_sed_cmds"; then
8063 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8064 else
8065 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8066 fi
8067 ac_sed_frag=`expr $ac_sed_frag + 1`
8068 ac_beg=$ac_end
8069 ac_end=`expr $ac_end + $ac_max_sed_lines`
8070 fi
8071 done
8072 if test -z "$ac_sed_cmds"; then
8073 ac_sed_cmds=cat
8074 fi
8075fi # test -n "$CONFIG_FILES"
8076
8077_ACEOF
8078cat >>$CONFIG_STATUS <<\_ACEOF
8079for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8080 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8081 case $ac_file in
8082 - | *:- | *:-:* ) # input from stdin
8083 cat >$tmp/stdin
8084 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8085 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8086 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8087 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8088 * ) ac_file_in=$ac_file.in ;;
8089 esac
8090
8091 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8092 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8093$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8094 X"$ac_file" : 'X\(//\)[^/]' \| \
8095 X"$ac_file" : 'X\(//\)$' \| \
8096 X"$ac_file" : 'X\(/\)' \| \
8097 . : '\(.\)' 2>/dev/null ||
8098echo X"$ac_file" |
8099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8101 /^X\(\/\/\)$/{ s//\1/; q; }
8102 /^X\(\/\).*/{ s//\1/; q; }
8103 s/.*/./; q'`
8104 { if $as_mkdir_p; then
8105 mkdir -p "$ac_dir"
8106 else
8107 as_dir="$ac_dir"
8108 as_dirs=
8109 while test ! -d "$as_dir"; do
8110 as_dirs="$as_dir $as_dirs"
8111 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8112$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8113 X"$as_dir" : 'X\(//\)[^/]' \| \
8114 X"$as_dir" : 'X\(//\)$' \| \
8115 X"$as_dir" : 'X\(/\)' \| \
8116 . : '\(.\)' 2>/dev/null ||
8117echo X"$as_dir" |
8118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8120 /^X\(\/\/\)$/{ s//\1/; q; }
8121 /^X\(\/\).*/{ s//\1/; q; }
8122 s/.*/./; q'`
8123 done
8124 test ! -n "$as_dirs" || mkdir $as_dirs
8125 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8126echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8127 { (exit 1); exit 1; }; }; }
8128
8129 ac_builddir=.
8130
8131if test "$ac_dir" != .; then
8132 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8133 # A "../" for each directory in $ac_dir_suffix.
8134 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8135else
8136 ac_dir_suffix= ac_top_builddir=
8137fi
8138
8139case $srcdir in
8140 .) # No --srcdir option. We are building in place.
8141 ac_srcdir=.
8142 if test -z "$ac_top_builddir"; then
8143 ac_top_srcdir=.
8144 else
8145 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8146 fi ;;
8147 [\\/]* | ?:[\\/]* ) # Absolute path.
8148 ac_srcdir=$srcdir$ac_dir_suffix;
8149 ac_top_srcdir=$srcdir ;;
8150 *) # Relative path.
8151 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8152 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8153esac
8154
8155# Do not use `cd foo && pwd` to compute absolute paths, because
8156# the directories may not exist.
8157case `pwd` in
8158.) ac_abs_builddir="$ac_dir";;
8159*)
8160 case "$ac_dir" in
8161 .) ac_abs_builddir=`pwd`;;
8162 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8163 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8164 esac;;
8165esac
8166case $ac_abs_builddir in
8167.) ac_abs_top_builddir=${ac_top_builddir}.;;
8168*)
8169 case ${ac_top_builddir}. in
8170 .) ac_abs_top_builddir=$ac_abs_builddir;;
8171 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8172 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8173 esac;;
8174esac
8175case $ac_abs_builddir in
8176.) ac_abs_srcdir=$ac_srcdir;;
8177*)
8178 case $ac_srcdir in
8179 .) ac_abs_srcdir=$ac_abs_builddir;;
8180 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8181 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8182 esac;;
8183esac
8184case $ac_abs_builddir in
8185.) ac_abs_top_srcdir=$ac_top_srcdir;;
8186*)
8187 case $ac_top_srcdir in
8188 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8189 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8190 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8191 esac;;
8192esac
8193
8194
8195 case $INSTALL in
8196 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8197 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8198 esac
8199
8200 if test x"$ac_file" != x-; then
8201 { echo "$as_me:$LINENO: creating $ac_file" >&5
8202echo "$as_me: creating $ac_file" >&6;}
8203 rm -f "$ac_file"
8204 fi
8205 # Let's still pretend it is `configure' which instantiates (i.e., don't
8206 # use $as_me), people would be surprised to read:
8207 # /* config.h. Generated by config.status. */
8208 if test x"$ac_file" = x-; then
8209 configure_input=
8210 else
8211 configure_input="$ac_file. "
8212 fi
8213 configure_input=$configure_input"Generated from `echo $ac_file_in |
8214 sed 's,.*/,,'` by configure."
8215
8216 # First look for the input files in the build tree, otherwise in the
8217 # src tree.
8218 ac_file_inputs=`IFS=:
8219 for f in $ac_file_in; do
8220 case $f in
8221 -) echo $tmp/stdin ;;
8222 [\\/$]*)
8223 # Absolute (can't be DOS-style, as IFS=:)
8224 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8225echo "$as_me: error: cannot find input file: $f" >&2;}
8226 { (exit 1); exit 1; }; }
8227 echo "$f";;
8228 *) # Relative
8229 if test -f "$f"; then
8230 # Build tree
8231 echo "$f"
8232 elif test -f "$srcdir/$f"; then
8233 # Source tree
8234 echo "$srcdir/$f"
8235 else
8236 # /dev/null tree
8237 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8238echo "$as_me: error: cannot find input file: $f" >&2;}
8239 { (exit 1); exit 1; }; }
8240 fi;;
8241 esac
8242 done` || { (exit 1); exit 1; }
8243_ACEOF
8244cat >>$CONFIG_STATUS <<_ACEOF
8245 sed "$ac_vpsub
8246$extrasub
8247_ACEOF
8248cat >>$CONFIG_STATUS <<\_ACEOF
8249:t
8250/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8251s,@configure_input@,$configure_input,;t t
8252s,@srcdir@,$ac_srcdir,;t t
8253s,@abs_srcdir@,$ac_abs_srcdir,;t t
8254s,@top_srcdir@,$ac_top_srcdir,;t t
8255s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8256s,@builddir@,$ac_builddir,;t t
8257s,@abs_builddir@,$ac_abs_builddir,;t t
8258s,@top_builddir@,$ac_top_builddir,;t t
8259s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8260s,@INSTALL@,$ac_INSTALL,;t t
8261" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8262 rm -f $tmp/stdin
8263 if test x"$ac_file" != x-; then
8264 mv $tmp/out $ac_file
8265 else
8266 cat $tmp/out
8267 rm -f $tmp/out
8268 fi
8269
8270done
8271_ACEOF
8272cat >>$CONFIG_STATUS <<\_ACEOF
8273
8274#
8275# CONFIG_HEADER section.
8276#
8277
8278# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8279# NAME is the cpp macro being defined and VALUE is the value it is being given.
8280#
8281# ac_d sets the value in "#define NAME VALUE" lines.
8282ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8283ac_dB='[ ].*$,\1#\2'
8284ac_dC=' '
8285ac_dD=',;t'
8286# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8287ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8288ac_uB='$,\1#\2define\3'
8289ac_uC=' '
8290ac_uD=',;t'
8291
8292for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8293 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8294 case $ac_file in
8295 - | *:- | *:-:* ) # input from stdin
8296 cat >$tmp/stdin
8297 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8298 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8299 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8300 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8301 * ) ac_file_in=$ac_file.in ;;
8302 esac
8303
8304 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8305echo "$as_me: creating $ac_file" >&6;}
8306
8307 # First look for the input files in the build tree, otherwise in the
8308 # src tree.
8309 ac_file_inputs=`IFS=:
8310 for f in $ac_file_in; do
8311 case $f in
8312 -) echo $tmp/stdin ;;
8313 [\\/$]*)
8314 # Absolute (can't be DOS-style, as IFS=:)
8315 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8316echo "$as_me: error: cannot find input file: $f" >&2;}
8317 { (exit 1); exit 1; }; }
8318 # Do quote $f, to prevent DOS paths from being IFS'd.
8319 echo "$f";;
8320 *) # Relative
8321 if test -f "$f"; then
8322 # Build tree
8323 echo "$f"
8324 elif test -f "$srcdir/$f"; then
8325 # Source tree
8326 echo "$srcdir/$f"
8327 else
8328 # /dev/null tree
8329 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8330echo "$as_me: error: cannot find input file: $f" >&2;}
8331 { (exit 1); exit 1; }; }
8332 fi;;
8333 esac
8334 done` || { (exit 1); exit 1; }
8335 # Remove the trailing spaces.
8336 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8337
8338_ACEOF
8339
8340# Transform confdefs.h into two sed scripts, `conftest.defines' and
8341# `conftest.undefs', that substitutes the proper values into
8342# config.h.in to produce config.h. The first handles `#define'
8343# templates, and the second `#undef' templates.
8344# And first: Protect against being on the right side of a sed subst in
8345# config.status. Protect against being in an unquoted here document
8346# in config.status.
8347rm -f conftest.defines conftest.undefs
8348# Using a here document instead of a string reduces the quoting nightmare.
8349# Putting comments in sed scripts is not portable.
8350#
8351# `end' is used to avoid that the second main sed command (meant for
8352# 0-ary CPP macros) applies to n-ary macro definitions.
8353# See the Autoconf documentation for `clear'.
8354cat >confdef2sed.sed <<\_ACEOF
8355s/[\\&,]/\\&/g
8356s,[\\$`],\\&,g
8357t clear
8358: clear
8359s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8360t end
8361s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8362: end
8363_ACEOF
8364# If some macros were called several times there might be several times
8365# the same #defines, which is useless. Nevertheless, we may not want to
8366# sort them, since we want the *last* AC-DEFINE to be honored.
8367uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8368sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8369rm -f confdef2sed.sed
8370
8371# This sed command replaces #undef with comments. This is necessary, for
8372# example, in the case of _POSIX_SOURCE, which is predefined and required
8373# on some systems where configure will not decide to define it.
8374cat >>conftest.undefs <<\_ACEOF
8375s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8376_ACEOF
8377
8378# Break up conftest.defines because some shells have a limit on the size
8379# of here documents, and old seds have small limits too (100 cmds).
8380echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8381echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8382echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8383echo ' :' >>$CONFIG_STATUS
8384rm -f conftest.tail
8385while grep . conftest.defines >/dev/null
8386do
8387 # Write a limited-size here document to $tmp/defines.sed.
8388 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8389 # Speed up: don't consider the non `#define' lines.
8390 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8391 # Work around the forget-to-reset-the-flag bug.
8392 echo 't clr' >>$CONFIG_STATUS
8393 echo ': clr' >>$CONFIG_STATUS
8394 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8395 echo 'CEOF
8396 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8397 rm -f $tmp/in
8398 mv $tmp/out $tmp/in
8399' >>$CONFIG_STATUS
8400 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8401 rm -f conftest.defines
8402 mv conftest.tail conftest.defines
8403done
8404rm -f conftest.defines
8405echo ' fi # grep' >>$CONFIG_STATUS
8406echo >>$CONFIG_STATUS
8407
8408# Break up conftest.undefs because some shells have a limit on the size
8409# of here documents, and old seds have small limits too (100 cmds).
8410echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8411rm -f conftest.tail
8412while grep . conftest.undefs >/dev/null
8413do
8414 # Write a limited-size here document to $tmp/undefs.sed.
8415 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8416 # Speed up: don't consider the non `#undef'
8417 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8418 # Work around the forget-to-reset-the-flag bug.
8419 echo 't clr' >>$CONFIG_STATUS
8420 echo ': clr' >>$CONFIG_STATUS
8421 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8422 echo 'CEOF
8423 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8424 rm -f $tmp/in
8425 mv $tmp/out $tmp/in
8426' >>$CONFIG_STATUS
8427 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8428 rm -f conftest.undefs
8429 mv conftest.tail conftest.undefs
8430done
8431rm -f conftest.undefs
8432
8433cat >>$CONFIG_STATUS <<\_ACEOF
8434 # Let's still pretend it is `configure' which instantiates (i.e., don't
8435 # use $as_me), people would be surprised to read:
8436 # /* config.h. Generated by config.status. */
8437 if test x"$ac_file" = x-; then
8438 echo "/* Generated by configure. */" >$tmp/config.h
8439 else
8440 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8441 fi
8442 cat $tmp/in >>$tmp/config.h
8443 rm -f $tmp/in
8444 if test x"$ac_file" != x-; then
8445 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8446 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8447echo "$as_me: $ac_file is unchanged" >&6;}
8448 else
8449 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8450$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8451 X"$ac_file" : 'X\(//\)[^/]' \| \
8452 X"$ac_file" : 'X\(//\)$' \| \
8453 X"$ac_file" : 'X\(/\)' \| \
8454 . : '\(.\)' 2>/dev/null ||
8455echo X"$ac_file" |
8456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8458 /^X\(\/\/\)$/{ s//\1/; q; }
8459 /^X\(\/\).*/{ s//\1/; q; }
8460 s/.*/./; q'`
8461 { if $as_mkdir_p; then
8462 mkdir -p "$ac_dir"
8463 else
8464 as_dir="$ac_dir"
8465 as_dirs=
8466 while test ! -d "$as_dir"; do
8467 as_dirs="$as_dir $as_dirs"
8468 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8470 X"$as_dir" : 'X\(//\)[^/]' \| \
8471 X"$as_dir" : 'X\(//\)$' \| \
8472 X"$as_dir" : 'X\(/\)' \| \
8473 . : '\(.\)' 2>/dev/null ||
8474echo X"$as_dir" |
8475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8477 /^X\(\/\/\)$/{ s//\1/; q; }
8478 /^X\(\/\).*/{ s//\1/; q; }
8479 s/.*/./; q'`
8480 done
8481 test ! -n "$as_dirs" || mkdir $as_dirs
8482 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8483echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8484 { (exit 1); exit 1; }; }; }
8485
8486 rm -f $ac_file
8487 mv $tmp/config.h $ac_file
8488 fi
8489 else
8490 cat $tmp/config.h
8491 rm -f $tmp/config.h
8492 fi
8493done
8494_ACEOF
8495
8496cat >>$CONFIG_STATUS <<\_ACEOF
8497
8498{ (exit 0); exit 0; }
8499_ACEOF
8500chmod +x $CONFIG_STATUS
8501ac_clean_files=$ac_clean_files_save
8502
8503
8504# configure is writing to config.log, and then calls config.status.
8505# config.status does its own redirection, appending to config.log.
8506# Unfortunately, on DOS this fails, as config.log is still kept open
8507# by configure, so config.status won't be able to write to it; its
8508# output is simply discarded. So we exec the FD to /dev/null,
8509# effectively closing config.log, so it can be properly (re)opened and
8510# appended to by config.status. When coming back to configure, we
8511# need to make the FD available again.
8512if test "$no_create" != yes; then
8513 ac_cs_success=:
8514 ac_config_status_args=
8515 test "$silent" = yes &&
8516 ac_config_status_args="$ac_config_status_args --quiet"
8517 exec 5>/dev/null
8518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8519 exec 5>>config.log
8520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8521 # would make configure fail if this is the last instruction.
8522 $ac_cs_success || { (exit 1); exit 1; }
8523fi
8524
8525#
8526# CONFIG_SUBDIRS section.
8527#
8528if test "$no_recursion" != yes; then
8529
8530 # Remove --cache-file and --srcdir arguments so they do not pile up.
8531 ac_sub_configure_args=
8532 ac_prev=
8533 for ac_arg in $ac_configure_args; do
8534 if test -n "$ac_prev"; then
8535 ac_prev=
8536 continue
8537 fi
8538 case $ac_arg in
8539 -cache-file | --cache-file | --cache-fil | --cache-fi \
8540 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8541 ac_prev=cache_file ;;
8542 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8543 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8544 | --c=*)
8545 ;;
8546 --config-cache | -C)
8547 ;;
8548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8549 ac_prev=srcdir ;;
8550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8551 ;;
8552 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8553 ac_prev=prefix ;;
8554 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8555 ;;
8556 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8557 esac
8558 done
8559
8560 # Always prepend --prefix to ensure using the same prefix
8561 # in subdir configurations.
8562 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8563
8564 ac_popdir=`pwd`
8565 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8566
8567 # Do not complain, so a configure script can configure whichever
8568 # parts of a large source tree are present.
8569 test -d $srcdir/$ac_dir || continue
8570
8571 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8572echo "$as_me: configuring in $ac_dir" >&6;}
8573 { if $as_mkdir_p; then
8574 mkdir -p "$ac_dir"
8575 else
8576 as_dir="$ac_dir"
8577 as_dirs=
8578 while test ! -d "$as_dir"; do
8579 as_dirs="$as_dir $as_dirs"
8580 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8581$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8582 X"$as_dir" : 'X\(//\)[^/]' \| \
8583 X"$as_dir" : 'X\(//\)$' \| \
8584 X"$as_dir" : 'X\(/\)' \| \
8585 . : '\(.\)' 2>/dev/null ||
8586echo X"$as_dir" |
8587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8589 /^X\(\/\/\)$/{ s//\1/; q; }
8590 /^X\(\/\).*/{ s//\1/; q; }
8591 s/.*/./; q'`
8592 done
8593 test ! -n "$as_dirs" || mkdir $as_dirs
8594 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8595echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8596 { (exit 1); exit 1; }; }; }
8597
8598 ac_builddir=.
8599
8600if test "$ac_dir" != .; then
8601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8602 # A "../" for each directory in $ac_dir_suffix.
8603 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8604else
8605 ac_dir_suffix= ac_top_builddir=
8606fi
8607
8608case $srcdir in
8609 .) # No --srcdir option. We are building in place.
8610 ac_srcdir=.
8611 if test -z "$ac_top_builddir"; then
8612 ac_top_srcdir=.
8613 else
8614 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8615 fi ;;
8616 [\\/]* | ?:[\\/]* ) # Absolute path.
8617 ac_srcdir=$srcdir$ac_dir_suffix;
8618 ac_top_srcdir=$srcdir ;;
8619 *) # Relative path.
8620 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8621 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8622esac
8623
8624# Do not use `cd foo && pwd` to compute absolute paths, because
8625# the directories may not exist.
8626case `pwd` in
8627.) ac_abs_builddir="$ac_dir";;
8628*)
8629 case "$ac_dir" in
8630 .) ac_abs_builddir=`pwd`;;
8631 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8632 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8633 esac;;
8634esac
8635case $ac_abs_builddir in
8636.) ac_abs_top_builddir=${ac_top_builddir}.;;
8637*)
8638 case ${ac_top_builddir}. in
8639 .) ac_abs_top_builddir=$ac_abs_builddir;;
8640 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8641 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8642 esac;;
8643esac
8644case $ac_abs_builddir in
8645.) ac_abs_srcdir=$ac_srcdir;;
8646*)
8647 case $ac_srcdir in
8648 .) ac_abs_srcdir=$ac_abs_builddir;;
8649 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8650 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8651 esac;;
8652esac
8653case $ac_abs_builddir in
8654.) ac_abs_top_srcdir=$ac_top_srcdir;;
8655*)
8656 case $ac_top_srcdir in
8657 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8658 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8659 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8660 esac;;
8661esac
8662
8663
8664 cd $ac_dir
8665
8666 # Check for guested configure; otherwise get Cygnus style configure.
8667 if test -f $ac_srcdir/configure.gnu; then
8668 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8669 elif test -f $ac_srcdir/configure; then
8670 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8671 elif test -f $ac_srcdir/configure.in; then
8672 ac_sub_configure=$ac_configure
8673 else
8674 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8675echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8676 ac_sub_configure=
8677 fi
8678
8679 # The recursion is here.
8680 if test -n "$ac_sub_configure"; then
8681 # Make the cache file name correct relative to the subdirectory.
8682 case $cache_file in
8683 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8684 *) # Relative path.
8685 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8686 esac
8687
8688 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8689echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8690 # The eval makes quoting arguments work.
8691 eval $ac_sub_configure $ac_sub_configure_args \
8692 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8693 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8694echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8695 { (exit 1); exit 1; }; }
8696 fi
8697
8698 cd $ac_popdir
8699 done
8700fi
8701
8702
8703
Note: See TracBrowser for help on using the repository browser.