source: main/trunk/greenstone2/common-src/configure@ 24874

Last change on this file since 24874 was 24874, checked in by ak19, 12 years ago

Third set of commits to do with the migration of cgi-bin into common-src, so that upon make install, common-src\cgi-bin will be installed in cgi-bin\GSDLOS(GSDLARCH). The first commit was of changes to files in cgi-bin itself. The second commit was moving cgi-bin. This one involves changes to all the files referring to cgi-bin where this needs to be changed to cgi-bin\OS_and_ARCH.

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