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

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

GSDLARCH used in Linux makefiles when working out the cgi-bin path (now cgi-bin\GSDL_OS_ARCH) to install the binaries into.

  • Property svn:executable set to *
File size: 253.6 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 gsdlarch 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 gsdlarch='64'
3783 fi
3784else
3785 echo "$as_me:$LINENO: result: no" >&5
3786echo "${ECHO_T}no" >&6
3787 if test -z "$COMPAT32BITFLAGS" ; then
3788 COMPAT32BITFLAGS=
3789 gsdlarch='32'
3790 fi
3791fi
3792
3793# Only need compat32bitflag if using MG or MGPP
3794if test "$ENABLE_MG" = "0" ; then
3795 COMPAT32BITFLAGS=
3796else
3797 if test "$ENABLE_MGPP" = "0" ; then
3798 COMPAT32BITFLAGS=
3799 fi
3800fi
3801
3802export COMPAT32BITFLAGS
3803
3804
3805
3806#moved CORBA MICO directory test to get version of MICO
3807if test $USE_CORBA = 1; then
3808
3809if test $MICO_DIR = "default"; then
3810#do something
3811MICO_INC="-I packages/mico/mico/include"
3812else
3813#build the micotest program
3814MICO_INC= ""
3815if test $MICO_DIR != yes; then
3816MICO_INC="-I $MICO_DIR"
3817fi
3818fi
3819
3820#get MICO_VER value
3821sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
3822sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
3823MICO_VER=`./micotest` || MICO_VER=2.3.5
3824sh -c "rm micotest"
3825sh -c "rm micotest.o"
3826
3827#do test of MICO_VER
3828if test MICO_VER != 0; then
3829cat >>confdefs.h <<\_ACEOF
3830#define MICO_VER 1
3831_ACEOF
3832
3833
3834fi
3835#end USE_CORBA test
3836fi
3837
3838
3839ac_ext=c
3840ac_cpp='$CPP $CPPFLAGS'
3841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3845echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3846# On Suns, sometimes $CPP names a directory.
3847if test -n "$CPP" && test -d "$CPP"; then
3848 CPP=
3849fi
3850if test -z "$CPP"; then
3851 if test "${ac_cv_prog_CPP+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853else
3854 # Double quotes because CPP needs to be expanded
3855 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3856 do
3857 ac_preproc_ok=false
3858for ac_c_preproc_warn_flag in '' yes
3859do
3860 # Use a header file that comes with gcc, so configuring glibc
3861 # with a fresh cross-compiler works.
3862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3863 # <limits.h> exists even on freestanding compilers.
3864 # On the NeXT, cc -E runs the code through the compiler's parser,
3865 # not just through cpp. "Syntax error" is here to catch this case.
3866 cat >conftest.$ac_ext <<_ACEOF
3867/* confdefs.h. */
3868_ACEOF
3869cat confdefs.h >>conftest.$ac_ext
3870cat >>conftest.$ac_ext <<_ACEOF
3871/* end confdefs.h. */
3872#ifdef __STDC__
3873# include <limits.h>
3874#else
3875# include <assert.h>
3876#endif
3877 Syntax error
3878_ACEOF
3879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } >/dev/null; then
3887 if test -s conftest.err; then
3888 ac_cpp_err=$ac_c_preproc_warn_flag
3889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3890 else
3891 ac_cpp_err=
3892 fi
3893else
3894 ac_cpp_err=yes
3895fi
3896if test -z "$ac_cpp_err"; then
3897 :
3898else
3899 echo "$as_me: failed program was:" >&5
3900sed 's/^/| /' conftest.$ac_ext >&5
3901
3902 # Broken: fails on valid input.
3903continue
3904fi
3905rm -f conftest.err conftest.$ac_ext
3906
3907 # OK, works on sane cases. Now check whether non-existent headers
3908 # can be detected and how.
3909 cat >conftest.$ac_ext <<_ACEOF
3910/* confdefs.h. */
3911_ACEOF
3912cat confdefs.h >>conftest.$ac_ext
3913cat >>conftest.$ac_ext <<_ACEOF
3914/* end confdefs.h. */
3915#include <ac_nonexistent.h>
3916_ACEOF
3917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3919 ac_status=$?
3920 grep -v '^ *+' conftest.er1 >conftest.err
3921 rm -f conftest.er1
3922 cat conftest.err >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } >/dev/null; then
3925 if test -s conftest.err; then
3926 ac_cpp_err=$ac_c_preproc_warn_flag
3927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3928 else
3929 ac_cpp_err=
3930 fi
3931else
3932 ac_cpp_err=yes
3933fi
3934if test -z "$ac_cpp_err"; then
3935 # Broken: success on invalid input.
3936continue
3937else
3938 echo "$as_me: failed program was:" >&5
3939sed 's/^/| /' conftest.$ac_ext >&5
3940
3941 # Passes both tests.
3942ac_preproc_ok=:
3943break
3944fi
3945rm -f conftest.err conftest.$ac_ext
3946
3947done
3948# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3949rm -f conftest.err conftest.$ac_ext
3950if $ac_preproc_ok; then
3951 break
3952fi
3953
3954 done
3955 ac_cv_prog_CPP=$CPP
3956
3957fi
3958 CPP=$ac_cv_prog_CPP
3959else
3960 ac_cv_prog_CPP=$CPP
3961fi
3962echo "$as_me:$LINENO: result: $CPP" >&5
3963echo "${ECHO_T}$CPP" >&6
3964ac_preproc_ok=false
3965for ac_c_preproc_warn_flag in '' yes
3966do
3967 # Use a header file that comes with gcc, so configuring glibc
3968 # with a fresh cross-compiler works.
3969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3970 # <limits.h> exists even on freestanding compilers.
3971 # On the NeXT, cc -E runs the code through the compiler's parser,
3972 # not just through cpp. "Syntax error" is here to catch this case.
3973 cat >conftest.$ac_ext <<_ACEOF
3974/* confdefs.h. */
3975_ACEOF
3976cat confdefs.h >>conftest.$ac_ext
3977cat >>conftest.$ac_ext <<_ACEOF
3978/* end confdefs.h. */
3979#ifdef __STDC__
3980# include <limits.h>
3981#else
3982# include <assert.h>
3983#endif
3984 Syntax error
3985_ACEOF
3986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } >/dev/null; then
3994 if test -s conftest.err; then
3995 ac_cpp_err=$ac_c_preproc_warn_flag
3996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3997 else
3998 ac_cpp_err=
3999 fi
4000else
4001 ac_cpp_err=yes
4002fi
4003if test -z "$ac_cpp_err"; then
4004 :
4005else
4006 echo "$as_me: failed program was:" >&5
4007sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 # Broken: fails on valid input.
4010continue
4011fi
4012rm -f conftest.err conftest.$ac_ext
4013
4014 # OK, works on sane cases. Now check whether non-existent headers
4015 # can be detected and how.
4016 cat >conftest.$ac_ext <<_ACEOF
4017/* confdefs.h. */
4018_ACEOF
4019cat confdefs.h >>conftest.$ac_ext
4020cat >>conftest.$ac_ext <<_ACEOF
4021/* end confdefs.h. */
4022#include <ac_nonexistent.h>
4023_ACEOF
4024if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } >/dev/null; then
4032 if test -s conftest.err; then
4033 ac_cpp_err=$ac_c_preproc_warn_flag
4034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4035 else
4036 ac_cpp_err=
4037 fi
4038else
4039 ac_cpp_err=yes
4040fi
4041if test -z "$ac_cpp_err"; then
4042 # Broken: success on invalid input.
4043continue
4044else
4045 echo "$as_me: failed program was:" >&5
4046sed 's/^/| /' conftest.$ac_ext >&5
4047
4048 # Passes both tests.
4049ac_preproc_ok=:
4050break
4051fi
4052rm -f conftest.err conftest.$ac_ext
4053
4054done
4055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4056rm -f conftest.err conftest.$ac_ext
4057if $ac_preproc_ok; then
4058 :
4059else
4060 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4061See \`config.log' for more details." >&5
4062echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4063See \`config.log' for more details." >&2;}
4064 { (exit 1); exit 1; }; }
4065fi
4066
4067ac_ext=c
4068ac_cpp='$CPP $CPPFLAGS'
4069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072
4073
4074echo "$as_me:$LINENO: checking for egrep" >&5
4075echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4076if test "${ac_cv_prog_egrep+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078else
4079 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4080 then ac_cv_prog_egrep='grep -E'
4081 else ac_cv_prog_egrep='egrep'
4082 fi
4083fi
4084echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4085echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4086 EGREP=$ac_cv_prog_egrep
4087
4088
4089
4090echo "$as_me:$LINENO: checking for AIX" >&5
4091echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4092cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h. */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h. */
4098#ifdef _AIX
4099 yes
4100#endif
4101
4102_ACEOF
4103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4104 $EGREP "yes" >/dev/null 2>&1; then
4105 echo "$as_me:$LINENO: result: yes" >&5
4106echo "${ECHO_T}yes" >&6
4107cat >>confdefs.h <<\_ACEOF
4108#define _ALL_SOURCE 1
4109_ACEOF
4110
4111else
4112 echo "$as_me:$LINENO: result: no" >&5
4113echo "${ECHO_T}no" >&6
4114fi
4115rm -f conftest*
4116
4117
4118echo "$as_me:$LINENO: checking for library containing strerror" >&5
4119echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4120if test "${ac_cv_search_strerror+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123 ac_func_search_save_LIBS=$LIBS
4124ac_cv_search_strerror=no
4125cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h. */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
4130/* end confdefs.h. */
4131
4132/* Override any gcc2 internal prototype to avoid an error. */
4133#ifdef __cplusplus
4134extern "C"
4135#endif
4136/* We use char because int might match the return type of a gcc2
4137 builtin and then its argument prototype would still apply. */
4138char strerror ();
4139int
4140main ()
4141{
4142strerror ();
4143 ;
4144 return 0;
4145}
4146_ACEOF
4147rm -f conftest.$ac_objext conftest$ac_exeext
4148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4149 (eval $ac_link) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_c_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest$ac_exeext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 ac_cv_search_strerror="none required"
4170else
4171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
4173
4174fi
4175rm -f conftest.err conftest.$ac_objext \
4176 conftest$ac_exeext conftest.$ac_ext
4177if test "$ac_cv_search_strerror" = no; then
4178 for ac_lib in cposix; do
4179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4180 cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h. */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
4185/* end confdefs.h. */
4186
4187/* Override any gcc2 internal prototype to avoid an error. */
4188#ifdef __cplusplus
4189extern "C"
4190#endif
4191/* We use char because int might match the return type of a gcc2
4192 builtin and then its argument prototype would still apply. */
4193char strerror ();
4194int
4195main ()
4196{
4197strerror ();
4198 ;
4199 return 0;
4200}
4201_ACEOF
4202rm -f conftest.$ac_objext conftest$ac_exeext
4203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204 (eval $ac_link) 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -z "$ac_c_werror_flag"
4212 || test ! -s conftest.err'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 (eval $ac_try) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest$ac_exeext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_cv_search_strerror="-l$ac_lib"
4225break
4226else
4227 echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230fi
4231rm -f conftest.err conftest.$ac_objext \
4232 conftest$ac_exeext conftest.$ac_ext
4233 done
4234fi
4235LIBS=$ac_func_search_save_LIBS
4236fi
4237echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4238echo "${ECHO_T}$ac_cv_search_strerror" >&6
4239if test "$ac_cv_search_strerror" != no; then
4240 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4241
4242fi
4243
4244echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4245echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4246if test "${ac_cv_header_stdc+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249 cat >conftest.$ac_ext <<_ACEOF
4250/* confdefs.h. */
4251_ACEOF
4252cat confdefs.h >>conftest.$ac_ext
4253cat >>conftest.$ac_ext <<_ACEOF
4254/* end confdefs.h. */
4255#include <stdlib.h>
4256#include <stdarg.h>
4257#include <string.h>
4258#include <float.h>
4259
4260int
4261main ()
4262{
4263
4264 ;
4265 return 0;
4266}
4267_ACEOF
4268rm -f conftest.$ac_objext
4269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag"
4278 || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_header_stdc=yes
4291else
4292 echo "$as_me: failed program was:" >&5
4293sed 's/^/| /' conftest.$ac_ext >&5
4294
4295ac_cv_header_stdc=no
4296fi
4297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4298
4299if test $ac_cv_header_stdc = yes; then
4300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4301 cat >conftest.$ac_ext <<_ACEOF
4302/* confdefs.h. */
4303_ACEOF
4304cat confdefs.h >>conftest.$ac_ext
4305cat >>conftest.$ac_ext <<_ACEOF
4306/* end confdefs.h. */
4307#include <string.h>
4308
4309_ACEOF
4310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311 $EGREP "memchr" >/dev/null 2>&1; then
4312 :
4313else
4314 ac_cv_header_stdc=no
4315fi
4316rm -f conftest*
4317
4318fi
4319
4320if test $ac_cv_header_stdc = yes; then
4321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4322 cat >conftest.$ac_ext <<_ACEOF
4323/* confdefs.h. */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
4327/* end confdefs.h. */
4328#include <stdlib.h>
4329
4330_ACEOF
4331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4332 $EGREP "free" >/dev/null 2>&1; then
4333 :
4334else
4335 ac_cv_header_stdc=no
4336fi
4337rm -f conftest*
4338
4339fi
4340
4341if test $ac_cv_header_stdc = yes; then
4342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4343 if test "$cross_compiling" = yes; then
4344 :
4345else
4346 cat >conftest.$ac_ext <<_ACEOF
4347/* confdefs.h. */
4348_ACEOF
4349cat confdefs.h >>conftest.$ac_ext
4350cat >>conftest.$ac_ext <<_ACEOF
4351/* end confdefs.h. */
4352#include <ctype.h>
4353#if ((' ' & 0x0FF) == 0x020)
4354# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4355# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4356#else
4357# define ISLOWER(c) \
4358 (('a' <= (c) && (c) <= 'i') \
4359 || ('j' <= (c) && (c) <= 'r') \
4360 || ('s' <= (c) && (c) <= 'z'))
4361# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4362#endif
4363
4364#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4365int
4366main ()
4367{
4368 int i;
4369 for (i = 0; i < 256; i++)
4370 if (XOR (islower (i), ISLOWER (i))
4371 || toupper (i) != TOUPPER (i))
4372 exit(2);
4373 exit (0);
4374}
4375_ACEOF
4376rm -f conftest$ac_exeext
4377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4378 (eval $ac_link) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 (eval $ac_try) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 :
4388else
4389 echo "$as_me: program exited with status $ac_status" >&5
4390echo "$as_me: failed program was:" >&5
4391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393( exit $ac_status )
4394ac_cv_header_stdc=no
4395fi
4396rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4397fi
4398fi
4399fi
4400echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4401echo "${ECHO_T}$ac_cv_header_stdc" >&6
4402if test $ac_cv_header_stdc = yes; then
4403
4404cat >>confdefs.h <<\_ACEOF
4405#define STDC_HEADERS 1
4406_ACEOF
4407
4408fi
4409
4410# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4421 inttypes.h stdint.h unistd.h
4422do
4423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4424echo "$as_me:$LINENO: checking for $ac_header" >&5
4425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4426if eval "test \"\${$as_ac_Header+set}\" = set"; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4428else
4429 cat >conftest.$ac_ext <<_ACEOF
4430/* confdefs.h. */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
4434/* end confdefs.h. */
4435$ac_includes_default
4436
4437#include <$ac_header>
4438_ACEOF
4439rm -f conftest.$ac_objext
4440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441 (eval $ac_compile) 2>conftest.er1
4442 ac_status=$?
4443 grep -v '^ *+' conftest.er1 >conftest.err
4444 rm -f conftest.er1
4445 cat conftest.err >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -z "$ac_c_werror_flag"
4449 || test ! -s conftest.err'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 (eval $ac_try) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; } &&
4455 { ac_try='test -s conftest.$ac_objext'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 (eval $ac_try) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 eval "$as_ac_Header=yes"
4462else
4463 echo "$as_me: failed program was:" >&5
4464sed 's/^/| /' conftest.$ac_ext >&5
4465
4466eval "$as_ac_Header=no"
4467fi
4468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4469fi
4470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4472if test `eval echo '${'$as_ac_Header'}'` = yes; then
4473 cat >>confdefs.h <<_ACEOF
4474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475_ACEOF
4476
4477fi
4478
4479done
4480
4481
4482if test "${ac_cv_header_minix_config_h+set}" = set; then
4483 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4484echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4485if test "${ac_cv_header_minix_config_h+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487fi
4488echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4489echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4490else
4491 # Is the header compilable?
4492echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4493echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4494cat >conftest.$ac_ext <<_ACEOF
4495/* confdefs.h. */
4496_ACEOF
4497cat confdefs.h >>conftest.$ac_ext
4498cat >>conftest.$ac_ext <<_ACEOF
4499/* end confdefs.h. */
4500$ac_includes_default
4501#include <minix/config.h>
4502_ACEOF
4503rm -f conftest.$ac_objext
4504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>conftest.er1
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -z "$ac_c_werror_flag"
4513 || test ! -s conftest.err'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; } &&
4519 { ac_try='test -s conftest.$ac_objext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 (eval $ac_try) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4525 ac_header_compiler=yes
4526else
4527 echo "$as_me: failed program was:" >&5
4528sed 's/^/| /' conftest.$ac_ext >&5
4529
4530ac_header_compiler=no
4531fi
4532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4533echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4534echo "${ECHO_T}$ac_header_compiler" >&6
4535
4536# Is the header present?
4537echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4538echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4539cat >conftest.$ac_ext <<_ACEOF
4540/* confdefs.h. */
4541_ACEOF
4542cat confdefs.h >>conftest.$ac_ext
4543cat >>conftest.$ac_ext <<_ACEOF
4544/* end confdefs.h. */
4545#include <minix/config.h>
4546_ACEOF
4547if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4549 ac_status=$?
4550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } >/dev/null; then
4555 if test -s conftest.err; then
4556 ac_cpp_err=$ac_c_preproc_warn_flag
4557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4558 else
4559 ac_cpp_err=
4560 fi
4561else
4562 ac_cpp_err=yes
4563fi
4564if test -z "$ac_cpp_err"; then
4565 ac_header_preproc=yes
4566else
4567 echo "$as_me: failed program was:" >&5
4568sed 's/^/| /' conftest.$ac_ext >&5
4569
4570 ac_header_preproc=no
4571fi
4572rm -f conftest.err conftest.$ac_ext
4573echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4574echo "${ECHO_T}$ac_header_preproc" >&6
4575
4576# So? What about this header?
4577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4578 yes:no: )
4579 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4580echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4581 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4582echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4583 ac_header_preproc=yes
4584 ;;
4585 no:yes:* )
4586 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4587echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4588 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4589echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4590 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4591echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4592 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4593echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4595echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4597echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4598 (
4599 cat <<\_ASBOX
4600## ------------------------------------------ ##
4601## Report this to the AC_PACKAGE_NAME lists. ##
4602## ------------------------------------------ ##
4603_ASBOX
4604 ) |
4605 sed "s/^/$as_me: WARNING: /" >&2
4606 ;;
4607esac
4608echo "$as_me:$LINENO: checking for minix/config.h" >&5
4609echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4610if test "${ac_cv_header_minix_config_h+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613 ac_cv_header_minix_config_h=$ac_header_preproc
4614fi
4615echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4616echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4617
4618fi
4619if test $ac_cv_header_minix_config_h = yes; then
4620 MINIX=yes
4621else
4622 MINIX=
4623fi
4624
4625
4626if test "$MINIX" = yes; then
4627
4628cat >>confdefs.h <<\_ACEOF
4629#define _POSIX_SOURCE 1
4630_ACEOF
4631
4632
4633cat >>confdefs.h <<\_ACEOF
4634#define _POSIX_1_SOURCE 2
4635_ACEOF
4636
4637
4638cat >>confdefs.h <<\_ACEOF
4639#define _MINIX 1
4640_ACEOF
4641
4642fi
4643
4644echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4645echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4646if test "${ac_cv_prog_cc_stdc+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649 ac_cv_prog_cc_stdc=no
4650ac_save_CFLAGS="$CFLAGS"
4651# Don't try gcc -ansi; that turns off useful extensions and
4652# breaks some systems' header files.
4653# AIX -qlanglvl=ansi
4654# Ultrix and OSF/1 -std1
4655# HP-UX -Aa -D_HPUX_SOURCE
4656# SVR4 -Xc
4657for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
4658do
4659 CFLAGS="$ac_save_CFLAGS $ac_arg"
4660 cat >conftest.$ac_ext <<_ACEOF
4661/* confdefs.h. */
4662_ACEOF
4663cat confdefs.h >>conftest.$ac_ext
4664cat >>conftest.$ac_ext <<_ACEOF
4665/* end confdefs.h. */
4666#if !defined(__STDC__) || __STDC__ != 1
4667choke me
4668#endif
4669
4670int
4671main ()
4672{
4673int test (int i, double x);
4674struct s1 {int (*f) (int a);};
4675struct s2 {int (*f) (double a);};
4676 ;
4677 return 0;
4678}
4679_ACEOF
4680rm -f conftest.$ac_objext
4681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682 (eval $ac_compile) 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_c_werror_flag"
4690 || test ! -s conftest.err'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; } &&
4696 { ac_try='test -s conftest.$ac_objext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 ac_cv_prog_cc_stdc="$ac_arg"; break
4703else
4704 echo "$as_me: failed program was:" >&5
4705sed 's/^/| /' conftest.$ac_ext >&5
4706
4707fi
4708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4709done
4710CFLAGS="$ac_save_CFLAGS"
4711
4712fi
4713
4714echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4715echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4716case "x$ac_cv_prog_cc_stdc" in
4717 x|xno) ;;
4718 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
4719esac
4720
4721
4722echo "$as_me:$LINENO: checking for function prototypes" >&5
4723echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4724if test "$ac_cv_prog_cc_stdc" != no; then
4725 echo "$as_me:$LINENO: result: yes" >&5
4726echo "${ECHO_T}yes" >&6
4727 cat >>confdefs.h <<\_ACEOF
4728#define PROTOTYPES 1
4729_ACEOF
4730
4731 U= ANSI2KNR=
4732else
4733 echo "$as_me:$LINENO: result: no" >&5
4734echo "${ECHO_T}no" >&6
4735 U=_ ANSI2KNR=ansi2knr
4736fi
4737
4738echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4739echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4740if test "${ac_cv_c_const+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742else
4743 cat >conftest.$ac_ext <<_ACEOF
4744/* confdefs.h. */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h. */
4749
4750int
4751main ()
4752{
4753/* FIXME: Include the comments suggested by Paul. */
4754#ifndef __cplusplus
4755 /* Ultrix mips cc rejects this. */
4756 typedef int charset[2];
4757 const charset x;
4758 /* SunOS 4.1.1 cc rejects this. */
4759 char const *const *ccp;
4760 char **p;
4761 /* NEC SVR4.0.2 mips cc rejects this. */
4762 struct point {int x, y;};
4763 static struct point const zero = {0,0};
4764 /* AIX XL C 1.02.0.0 rejects this.
4765 It does not let you subtract one const X* pointer from another in
4766 an arm of an if-expression whose if-part is not a constant
4767 expression */
4768 const char *g = "string";
4769 ccp = &g + (g ? g-g : 0);
4770 /* HPUX 7.0 cc rejects these. */
4771 ++ccp;
4772 p = (char**) ccp;
4773 ccp = (char const *const *) p;
4774 { /* SCO 3.2v4 cc rejects this. */
4775 char *t;
4776 char const *s = 0 ? (char *) 0 : (char const *) 0;
4777
4778 *t++ = 0;
4779 }
4780 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4781 int x[] = {25, 17};
4782 const int *foo = &x[0];
4783 ++foo;
4784 }
4785 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4786 typedef const int *iptr;
4787 iptr p = 0;
4788 ++p;
4789 }
4790 { /* AIX XL C 1.02.0.0 rejects this saying
4791 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4792 struct s { int j; const int *ap[3]; };
4793 struct s *b; b->j = 5;
4794 }
4795 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4796 const int foo = 10;
4797 }
4798#endif
4799
4800 ;
4801 return 0;
4802}
4803_ACEOF
4804rm -f conftest.$ac_objext
4805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try='test -z "$ac_c_werror_flag"
4814 || test ! -s conftest.err'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 (eval $ac_try) 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; } &&
4820 { ac_try='test -s conftest.$ac_objext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 ac_cv_c_const=yes
4827else
4828 echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831ac_cv_c_const=no
4832fi
4833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4834fi
4835echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4836echo "${ECHO_T}$ac_cv_c_const" >&6
4837if test $ac_cv_c_const = no; then
4838
4839cat >>confdefs.h <<\_ACEOF
4840#define const
4841_ACEOF
4842
4843fi
4844
4845echo "$as_me:$LINENO: checking for off_t" >&5
4846echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4847if test "${ac_cv_type_off_t+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4849else
4850 cat >conftest.$ac_ext <<_ACEOF
4851/* confdefs.h. */
4852_ACEOF
4853cat confdefs.h >>conftest.$ac_ext
4854cat >>conftest.$ac_ext <<_ACEOF
4855/* end confdefs.h. */
4856$ac_includes_default
4857int
4858main ()
4859{
4860if ((off_t *) 0)
4861 return 0;
4862if (sizeof (off_t))
4863 return 0;
4864 ;
4865 return 0;
4866}
4867_ACEOF
4868rm -f conftest.$ac_objext
4869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870 (eval $ac_compile) 2>conftest.er1
4871 ac_status=$?
4872 grep -v '^ *+' conftest.er1 >conftest.err
4873 rm -f conftest.er1
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } &&
4877 { ac_try='test -z "$ac_c_werror_flag"
4878 || test ! -s conftest.err'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 (eval $ac_try) 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; } &&
4884 { ac_try='test -s conftest.$ac_objext'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 ac_cv_type_off_t=yes
4891else
4892 echo "$as_me: failed program was:" >&5
4893sed 's/^/| /' conftest.$ac_ext >&5
4894
4895ac_cv_type_off_t=no
4896fi
4897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4898fi
4899echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4900echo "${ECHO_T}$ac_cv_type_off_t" >&6
4901if test $ac_cv_type_off_t = yes; then
4902 :
4903else
4904
4905cat >>confdefs.h <<_ACEOF
4906#define off_t long
4907_ACEOF
4908
4909fi
4910
4911echo "$as_me:$LINENO: checking for size_t" >&5
4912echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4913if test "${ac_cv_type_size_t+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915else
4916 cat >conftest.$ac_ext <<_ACEOF
4917/* confdefs.h. */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h. */
4922$ac_includes_default
4923int
4924main ()
4925{
4926if ((size_t *) 0)
4927 return 0;
4928if (sizeof (size_t))
4929 return 0;
4930 ;
4931 return 0;
4932}
4933_ACEOF
4934rm -f conftest.$ac_objext
4935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try='test -z "$ac_c_werror_flag"
4944 || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 ac_cv_type_size_t=yes
4957else
4958 echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
4961ac_cv_type_size_t=no
4962fi
4963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4964fi
4965echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4966echo "${ECHO_T}$ac_cv_type_size_t" >&6
4967if test $ac_cv_type_size_t = yes; then
4968 :
4969else
4970
4971cat >>confdefs.h <<_ACEOF
4972#define size_t unsigned
4973_ACEOF
4974
4975fi
4976
4977echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4978echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4979if test "${ac_cv_header_time+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982 cat >conftest.$ac_ext <<_ACEOF
4983/* confdefs.h. */
4984_ACEOF
4985cat confdefs.h >>conftest.$ac_ext
4986cat >>conftest.$ac_ext <<_ACEOF
4987/* end confdefs.h. */
4988#include <sys/types.h>
4989#include <sys/time.h>
4990#include <time.h>
4991
4992int
4993main ()
4994{
4995if ((struct tm *) 0)
4996return 0;
4997 ;
4998 return 0;
4999}
5000_ACEOF
5001rm -f conftest.$ac_objext
5002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003 (eval $ac_compile) 2>conftest.er1
5004 ac_status=$?
5005 grep -v '^ *+' conftest.er1 >conftest.err
5006 rm -f conftest.er1
5007 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -z "$ac_c_werror_flag"
5011 || test ! -s conftest.err'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 (eval $ac_try) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; } &&
5017 { ac_try='test -s conftest.$ac_objext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 ac_cv_header_time=yes
5024else
5025 echo "$as_me: failed program was:" >&5
5026sed 's/^/| /' conftest.$ac_ext >&5
5027
5028ac_cv_header_time=no
5029fi
5030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5031fi
5032echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5033echo "${ECHO_T}$ac_cv_header_time" >&6
5034if test $ac_cv_header_time = yes; then
5035
5036cat >>confdefs.h <<\_ACEOF
5037#define TIME_WITH_SYS_TIME 1
5038_ACEOF
5039
5040fi
5041
5042echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5043echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5044if test "${ac_cv_struct_tm+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047 cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h. */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h. */
5053#include <sys/types.h>
5054#include <time.h>
5055
5056int
5057main ()
5058{
5059struct tm *tp; tp->tm_sec;
5060 ;
5061 return 0;
5062}
5063_ACEOF
5064rm -f conftest.$ac_objext
5065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>conftest.er1
5067 ac_status=$?
5068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try='test -z "$ac_c_werror_flag"
5074 || test ! -s conftest.err'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; } &&
5080 { ac_try='test -s conftest.$ac_objext'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 (eval $ac_try) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 ac_cv_struct_tm=time.h
5087else
5088 echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091ac_cv_struct_tm=sys/time.h
5092fi
5093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094fi
5095echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5096echo "${ECHO_T}$ac_cv_struct_tm" >&6
5097if test $ac_cv_struct_tm = sys/time.h; then
5098
5099cat >>confdefs.h <<\_ACEOF
5100#define TM_IN_SYS_TIME 1
5101_ACEOF
5102
5103fi
5104
5105
5106if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
5107cat >conftest.$ac_ext <<_ACEOF
5108/* confdefs.h. */
5109_ACEOF
5110cat confdefs.h >>conftest.$ac_ext
5111cat >>conftest.$ac_ext <<_ACEOF
5112/* end confdefs.h. */
5113#include <stdio.h>
5114
5115int
5116main ()
5117{
5118 FILE *rubbish = popen("yes", "r");
5119 ;
5120 return 0;
5121}
5122_ACEOF
5123rm -f conftest.$ac_objext
5124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125 (eval $ac_compile) 2>conftest.er1
5126 ac_status=$?
5127 grep -v '^ *+' conftest.er1 >conftest.err
5128 rm -f conftest.er1
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } &&
5132 { ac_try='test -z "$ac_c_werror_flag"
5133 || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 (eval $ac_try) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try='test -s conftest.$ac_objext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 :
5146else
5147 echo "$as_me: failed program was:" >&5
5148sed 's/^/| /' conftest.$ac_ext >&5
5149
5150CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
5151fi
5152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5153fi
5154
5155
5156
5157echo "$as_me:$LINENO: checking for main in -lg" >&5
5158echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
5159if test "${ac_cv_lib_g_main+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161else
5162 ac_check_lib_save_LIBS=$LIBS
5163LIBS="-lg $LIBS"
5164cat >conftest.$ac_ext <<_ACEOF
5165/* confdefs.h. */
5166_ACEOF
5167cat confdefs.h >>conftest.$ac_ext
5168cat >>conftest.$ac_ext <<_ACEOF
5169/* end confdefs.h. */
5170
5171
5172int
5173main ()
5174{
5175main ();
5176 ;
5177 return 0;
5178}
5179_ACEOF
5180rm -f conftest.$ac_objext conftest$ac_exeext
5181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5182 (eval $ac_link) 2>conftest.er1
5183 ac_status=$?
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } &&
5189 { ac_try='test -z "$ac_c_werror_flag"
5190 || test ! -s conftest.err'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; } &&
5196 { ac_try='test -s conftest$ac_exeext'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 (eval $ac_try) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; }; then
5202 ac_cv_lib_g_main=yes
5203else
5204 echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
5207ac_cv_lib_g_main=no
5208fi
5209rm -f conftest.err conftest.$ac_objext \
5210 conftest$ac_exeext conftest.$ac_ext
5211LIBS=$ac_check_lib_save_LIBS
5212fi
5213echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
5214echo "${ECHO_T}$ac_cv_lib_g_main" >&6
5215if test $ac_cv_lib_g_main = yes; then
5216 cat >>confdefs.h <<_ACEOF
5217#define HAVE_LIBG 1
5218_ACEOF
5219
5220 LIBS="-lg $LIBS"
5221
5222fi
5223ac_cv_lib_g=ac_cv_lib_g_main
5224
5225
5226echo "$as_me:$LINENO: checking for main in -lm" >&5
5227echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5228if test "${ac_cv_lib_m_main+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231 ac_check_lib_save_LIBS=$LIBS
5232LIBS="-lm $LIBS"
5233cat >conftest.$ac_ext <<_ACEOF
5234/* confdefs.h. */
5235_ACEOF
5236cat confdefs.h >>conftest.$ac_ext
5237cat >>conftest.$ac_ext <<_ACEOF
5238/* end confdefs.h. */
5239
5240
5241int
5242main ()
5243{
5244main ();
5245 ;
5246 return 0;
5247}
5248_ACEOF
5249rm -f conftest.$ac_objext conftest$ac_exeext
5250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5251 (eval $ac_link) 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -z "$ac_c_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 (eval $ac_try) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest$ac_exeext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 (eval $ac_try) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_lib_m_main=yes
5272else
5273 echo "$as_me: failed program was:" >&5
5274sed 's/^/| /' conftest.$ac_ext >&5
5275
5276ac_cv_lib_m_main=no
5277fi
5278rm -f conftest.err conftest.$ac_objext \
5279 conftest$ac_exeext conftest.$ac_ext
5280LIBS=$ac_check_lib_save_LIBS
5281fi
5282echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5283echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5284if test $ac_cv_lib_m_main = yes; then
5285 cat >>confdefs.h <<_ACEOF
5286#define HAVE_LIBM 1
5287_ACEOF
5288
5289 LIBS="-lm $LIBS"
5290
5291fi
5292ac_cv_lib_m=ac_cv_lib_m_main
5293
5294
5295echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
5296echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
5297if test "${ac_cv_lib_crypt_main+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299else
5300 ac_check_lib_save_LIBS=$LIBS
5301LIBS="-lcrypt $LIBS"
5302cat >conftest.$ac_ext <<_ACEOF
5303/* confdefs.h. */
5304_ACEOF
5305cat confdefs.h >>conftest.$ac_ext
5306cat >>conftest.$ac_ext <<_ACEOF
5307/* end confdefs.h. */
5308
5309
5310int
5311main ()
5312{
5313main ();
5314 ;
5315 return 0;
5316}
5317_ACEOF
5318rm -f conftest.$ac_objext conftest$ac_exeext
5319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5320 (eval $ac_link) 2>conftest.er1
5321 ac_status=$?
5322 grep -v '^ *+' conftest.er1 >conftest.err
5323 rm -f conftest.er1
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } &&
5327 { ac_try='test -z "$ac_c_werror_flag"
5328 || test ! -s conftest.err'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 (eval $ac_try) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; } &&
5334 { ac_try='test -s conftest$ac_exeext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 (eval $ac_try) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5340 ac_cv_lib_crypt_main=yes
5341else
5342 echo "$as_me: failed program was:" >&5
5343sed 's/^/| /' conftest.$ac_ext >&5
5344
5345ac_cv_lib_crypt_main=no
5346fi
5347rm -f conftest.err conftest.$ac_objext \
5348 conftest$ac_exeext conftest.$ac_ext
5349LIBS=$ac_check_lib_save_LIBS
5350fi
5351echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
5352echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
5353if test $ac_cv_lib_crypt_main = yes; then
5354 cat >>confdefs.h <<_ACEOF
5355#define HAVE_LIBCRYPT 1
5356_ACEOF
5357
5358 LIBS="-lcrypt $LIBS"
5359
5360fi
5361ac_cv_lib_crypt=ac_cv_lib_crypt_main
5362
5363#if test $ENABLE_ACCENTFOLD = 1; then
5364#AC_HAVE_LIBRARY(iconv)
5365#fi
5366
5367
5368
5369
5370
5371
5372ac_header_dirent=no
5373for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5374 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5375echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5376echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5377if eval "test \"\${$as_ac_Header+set}\" = set"; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5379else
5380 cat >conftest.$ac_ext <<_ACEOF
5381/* confdefs.h. */
5382_ACEOF
5383cat confdefs.h >>conftest.$ac_ext
5384cat >>conftest.$ac_ext <<_ACEOF
5385/* end confdefs.h. */
5386#include <sys/types.h>
5387#include <$ac_hdr>
5388
5389int
5390main ()
5391{
5392if ((DIR *) 0)
5393return 0;
5394 ;
5395 return 0;
5396}
5397_ACEOF
5398rm -f conftest.$ac_objext
5399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400 (eval $ac_compile) 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -z "$ac_c_werror_flag"
5408 || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 (eval $ac_try) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest.$ac_objext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 (eval $ac_try) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 eval "$as_ac_Header=yes"
5421else
5422 echo "$as_me: failed program was:" >&5
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
5425eval "$as_ac_Header=no"
5426fi
5427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5428fi
5429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5431if test `eval echo '${'$as_ac_Header'}'` = yes; then
5432 cat >>confdefs.h <<_ACEOF
5433#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5434_ACEOF
5435
5436ac_header_dirent=$ac_hdr; break
5437fi
5438
5439done
5440# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5441if test $ac_header_dirent = dirent.h; then
5442 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5443echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5444if test "${ac_cv_search_opendir+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447 ac_func_search_save_LIBS=$LIBS
5448ac_cv_search_opendir=no
5449cat >conftest.$ac_ext <<_ACEOF
5450/* confdefs.h. */
5451_ACEOF
5452cat confdefs.h >>conftest.$ac_ext
5453cat >>conftest.$ac_ext <<_ACEOF
5454/* end confdefs.h. */
5455
5456/* Override any gcc2 internal prototype to avoid an error. */
5457#ifdef __cplusplus
5458extern "C"
5459#endif
5460/* We use char because int might match the return type of a gcc2
5461 builtin and then its argument prototype would still apply. */
5462char opendir ();
5463int
5464main ()
5465{
5466opendir ();
5467 ;
5468 return 0;
5469}
5470_ACEOF
5471rm -f conftest.$ac_objext conftest$ac_exeext
5472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473 (eval $ac_link) 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_c_werror_flag"
5481 || test ! -s conftest.err'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 (eval $ac_try) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; } &&
5487 { ac_try='test -s conftest$ac_exeext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 (eval $ac_try) 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_search_opendir="none required"
5494else
5495 echo "$as_me: failed program was:" >&5
5496sed 's/^/| /' conftest.$ac_ext >&5
5497
5498fi
5499rm -f conftest.err conftest.$ac_objext \
5500 conftest$ac_exeext conftest.$ac_ext
5501if test "$ac_cv_search_opendir" = no; then
5502 for ac_lib in dir; do
5503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5504 cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h. */
5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h. */
5510
5511/* Override any gcc2 internal prototype to avoid an error. */
5512#ifdef __cplusplus
5513extern "C"
5514#endif
5515/* We use char because int might match the return type of a gcc2
5516 builtin and then its argument prototype would still apply. */
5517char opendir ();
5518int
5519main ()
5520{
5521opendir ();
5522 ;
5523 return 0;
5524}
5525_ACEOF
5526rm -f conftest.$ac_objext conftest$ac_exeext
5527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528 (eval $ac_link) 2>conftest.er1
5529 ac_status=$?
5530 grep -v '^ *+' conftest.er1 >conftest.err
5531 rm -f conftest.er1
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } &&
5535 { ac_try='test -z "$ac_c_werror_flag"
5536 || test ! -s conftest.err'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 (eval $ac_try) 2>&5
5539 ac_status=$?
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; } &&
5542 { ac_try='test -s conftest$ac_exeext'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 (eval $ac_try) 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5548 ac_cv_search_opendir="-l$ac_lib"
5549break
5550else
5551 echo "$as_me: failed program was:" >&5
5552sed 's/^/| /' conftest.$ac_ext >&5
5553
5554fi
5555rm -f conftest.err conftest.$ac_objext \
5556 conftest$ac_exeext conftest.$ac_ext
5557 done
5558fi
5559LIBS=$ac_func_search_save_LIBS
5560fi
5561echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5562echo "${ECHO_T}$ac_cv_search_opendir" >&6
5563if test "$ac_cv_search_opendir" != no; then
5564 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5565
5566fi
5567
5568else
5569 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5570echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5571if test "${ac_cv_search_opendir+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573else
5574 ac_func_search_save_LIBS=$LIBS
5575ac_cv_search_opendir=no
5576cat >conftest.$ac_ext <<_ACEOF
5577/* confdefs.h. */
5578_ACEOF
5579cat confdefs.h >>conftest.$ac_ext
5580cat >>conftest.$ac_ext <<_ACEOF
5581/* end confdefs.h. */
5582
5583/* Override any gcc2 internal prototype to avoid an error. */
5584#ifdef __cplusplus
5585extern "C"
5586#endif
5587/* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5589char opendir ();
5590int
5591main ()
5592{
5593opendir ();
5594 ;
5595 return 0;
5596}
5597_ACEOF
5598rm -f conftest.$ac_objext conftest$ac_exeext
5599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>conftest.er1
5601 ac_status=$?
5602 grep -v '^ *+' conftest.er1 >conftest.err
5603 rm -f conftest.er1
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try='test -z "$ac_c_werror_flag"
5608 || test ! -s conftest.err'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 (eval $ac_try) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; } &&
5614 { ac_try='test -s conftest$ac_exeext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 (eval $ac_try) 2>&5
5617 ac_status=$?
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 ac_cv_search_opendir="none required"
5621else
5622 echo "$as_me: failed program was:" >&5
5623sed 's/^/| /' conftest.$ac_ext >&5
5624
5625fi
5626rm -f conftest.err conftest.$ac_objext \
5627 conftest$ac_exeext conftest.$ac_ext
5628if test "$ac_cv_search_opendir" = no; then
5629 for ac_lib in x; do
5630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5631 cat >conftest.$ac_ext <<_ACEOF
5632/* confdefs.h. */
5633_ACEOF
5634cat confdefs.h >>conftest.$ac_ext
5635cat >>conftest.$ac_ext <<_ACEOF
5636/* end confdefs.h. */
5637
5638/* Override any gcc2 internal prototype to avoid an error. */
5639#ifdef __cplusplus
5640extern "C"
5641#endif
5642/* We use char because int might match the return type of a gcc2
5643 builtin and then its argument prototype would still apply. */
5644char opendir ();
5645int
5646main ()
5647{
5648opendir ();
5649 ;
5650 return 0;
5651}
5652_ACEOF
5653rm -f conftest.$ac_objext conftest$ac_exeext
5654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try='test -z "$ac_c_werror_flag"
5663 || test ! -s conftest.err'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 (eval $ac_try) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; } &&
5669 { ac_try='test -s conftest$ac_exeext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_cv_search_opendir="-l$ac_lib"
5676break
5677else
5678 echo "$as_me: failed program was:" >&5
5679sed 's/^/| /' conftest.$ac_ext >&5
5680
5681fi
5682rm -f conftest.err conftest.$ac_objext \
5683 conftest$ac_exeext conftest.$ac_ext
5684 done
5685fi
5686LIBS=$ac_func_search_save_LIBS
5687fi
5688echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5689echo "${ECHO_T}$ac_cv_search_opendir" >&6
5690if test "$ac_cv_search_opendir" != no; then
5691 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5692
5693fi
5694
5695fi
5696
5697echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5698echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5699if test "${ac_cv_header_stdc+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702 cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h. */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h. */
5708#include <stdlib.h>
5709#include <stdarg.h>
5710#include <string.h>
5711#include <float.h>
5712
5713int
5714main ()
5715{
5716
5717 ;
5718 return 0;
5719}
5720_ACEOF
5721rm -f conftest.$ac_objext
5722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -z "$ac_c_werror_flag"
5731 || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest.$ac_objext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_cv_header_stdc=yes
5744else
5745 echo "$as_me: failed program was:" >&5
5746sed 's/^/| /' conftest.$ac_ext >&5
5747
5748ac_cv_header_stdc=no
5749fi
5750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5751
5752if test $ac_cv_header_stdc = yes; then
5753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5754 cat >conftest.$ac_ext <<_ACEOF
5755/* confdefs.h. */
5756_ACEOF
5757cat confdefs.h >>conftest.$ac_ext
5758cat >>conftest.$ac_ext <<_ACEOF
5759/* end confdefs.h. */
5760#include <string.h>
5761
5762_ACEOF
5763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5764 $EGREP "memchr" >/dev/null 2>&1; then
5765 :
5766else
5767 ac_cv_header_stdc=no
5768fi
5769rm -f conftest*
5770
5771fi
5772
5773if test $ac_cv_header_stdc = yes; then
5774 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5775 cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h. */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h. */
5781#include <stdlib.h>
5782
5783_ACEOF
5784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5785 $EGREP "free" >/dev/null 2>&1; then
5786 :
5787else
5788 ac_cv_header_stdc=no
5789fi
5790rm -f conftest*
5791
5792fi
5793
5794if test $ac_cv_header_stdc = yes; then
5795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5796 if test "$cross_compiling" = yes; then
5797 :
5798else
5799 cat >conftest.$ac_ext <<_ACEOF
5800/* confdefs.h. */
5801_ACEOF
5802cat confdefs.h >>conftest.$ac_ext
5803cat >>conftest.$ac_ext <<_ACEOF
5804/* end confdefs.h. */
5805#include <ctype.h>
5806#if ((' ' & 0x0FF) == 0x020)
5807# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5808# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5809#else
5810# define ISLOWER(c) \
5811 (('a' <= (c) && (c) <= 'i') \
5812 || ('j' <= (c) && (c) <= 'r') \
5813 || ('s' <= (c) && (c) <= 'z'))
5814# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5815#endif
5816
5817#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5818int
5819main ()
5820{
5821 int i;
5822 for (i = 0; i < 256; i++)
5823 if (XOR (islower (i), ISLOWER (i))
5824 || toupper (i) != TOUPPER (i))
5825 exit(2);
5826 exit (0);
5827}
5828_ACEOF
5829rm -f conftest$ac_exeext
5830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5831 (eval $ac_link) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 (eval $ac_try) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5840 :
5841else
5842 echo "$as_me: program exited with status $ac_status" >&5
5843echo "$as_me: failed program was:" >&5
5844sed 's/^/| /' conftest.$ac_ext >&5
5845
5846( exit $ac_status )
5847ac_cv_header_stdc=no
5848fi
5849rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5850fi
5851fi
5852fi
5853echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5854echo "${ECHO_T}$ac_cv_header_stdc" >&6
5855if test $ac_cv_header_stdc = yes; then
5856
5857cat >>confdefs.h <<\_ACEOF
5858#define STDC_HEADERS 1
5859_ACEOF
5860
5861fi
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
5873do
5874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5875if eval "test \"\${$as_ac_Header+set}\" = set"; then
5876 echo "$as_me:$LINENO: checking for $ac_header" >&5
5877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5878if eval "test \"\${$as_ac_Header+set}\" = set"; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5880fi
5881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5882echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5883else
5884 # Is the header compilable?
5885echo "$as_me:$LINENO: checking $ac_header usability" >&5
5886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5887cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h. */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h. */
5893$ac_includes_default
5894#include <$ac_header>
5895_ACEOF
5896rm -f conftest.$ac_objext
5897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag"
5906 || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 (eval $ac_try) 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try='test -s conftest.$ac_objext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_header_compiler=yes
5919else
5920 echo "$as_me: failed program was:" >&5
5921sed 's/^/| /' conftest.$ac_ext >&5
5922
5923ac_header_compiler=no
5924fi
5925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5926echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5927echo "${ECHO_T}$ac_header_compiler" >&6
5928
5929# Is the header present?
5930echo "$as_me:$LINENO: checking $ac_header presence" >&5
5931echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5932cat >conftest.$ac_ext <<_ACEOF
5933/* confdefs.h. */
5934_ACEOF
5935cat confdefs.h >>conftest.$ac_ext
5936cat >>conftest.$ac_ext <<_ACEOF
5937/* end confdefs.h. */
5938#include <$ac_header>
5939_ACEOF
5940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } >/dev/null; then
5948 if test -s conftest.err; then
5949 ac_cpp_err=$ac_c_preproc_warn_flag
5950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5951 else
5952 ac_cpp_err=
5953 fi
5954else
5955 ac_cpp_err=yes
5956fi
5957if test -z "$ac_cpp_err"; then
5958 ac_header_preproc=yes
5959else
5960 echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 ac_header_preproc=no
5964fi
5965rm -f conftest.err conftest.$ac_ext
5966echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5967echo "${ECHO_T}$ac_header_preproc" >&6
5968
5969# So? What about this header?
5970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5971 yes:no: )
5972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5976 ac_header_preproc=yes
5977 ;;
5978 no:yes:* )
5979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5991 (
5992 cat <<\_ASBOX
5993## ------------------------------------------ ##
5994## Report this to the AC_PACKAGE_NAME lists. ##
5995## ------------------------------------------ ##
5996_ASBOX
5997 ) |
5998 sed "s/^/$as_me: WARNING: /" >&2
5999 ;;
6000esac
6001echo "$as_me:$LINENO: checking for $ac_header" >&5
6002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6003if eval "test \"\${$as_ac_Header+set}\" = set"; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005else
6006 eval "$as_ac_Header=\$ac_header_preproc"
6007fi
6008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6010
6011fi
6012if test `eval echo '${'$as_ac_Header'}'` = yes; then
6013 cat >>confdefs.h <<_ACEOF
6014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6015_ACEOF
6016
6017fi
6018
6019done
6020
6021cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h. */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h. */
6027#include <stdio.h>
6028
6029_ACEOF
6030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6031 $EGREP "fread" >/dev/null 2>&1; then
6032 cat >>confdefs.h <<\_ACEOF
6033#define HAVE_FREAD_DECL 1
6034_ACEOF
6035
6036fi
6037rm -f conftest*
6038
6039cat >conftest.$ac_ext <<_ACEOF
6040/* confdefs.h. */
6041_ACEOF
6042cat confdefs.h >>conftest.$ac_ext
6043cat >>conftest.$ac_ext <<_ACEOF
6044/* end confdefs.h. */
6045#include <stdio.h>
6046
6047_ACEOF
6048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6049 $EGREP "fgetc" >/dev/null 2>&1; then
6050 cat >>confdefs.h <<\_ACEOF
6051#define HAVE_FGETC_DECL 1
6052_ACEOF
6053
6054fi
6055rm -f conftest*
6056
6057cat >conftest.$ac_ext <<_ACEOF
6058/* confdefs.h. */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h. */
6063#include <sys/procfs.h>
6064
6065_ACEOF
6066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 $EGREP "pr_brksize" >/dev/null 2>&1; then
6068 cat >>confdefs.h <<\_ACEOF
6069#define HAVE_PR_BRKSIZE 1
6070_ACEOF
6071
6072fi
6073rm -f conftest*
6074
6075
6076# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6077# for constant arguments. Useless!
6078echo "$as_me:$LINENO: checking for working alloca.h" >&5
6079echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6080if test "${ac_cv_working_alloca_h+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082else
6083 cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h. */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h. */
6089#include <alloca.h>
6090int
6091main ()
6092{
6093char *p = (char *) alloca (2 * sizeof (int));
6094 ;
6095 return 0;
6096}
6097_ACEOF
6098rm -f conftest.$ac_objext conftest$ac_exeext
6099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6100 (eval $ac_link) 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -z "$ac_c_werror_flag"
6108 || test ! -s conftest.err'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_working_alloca_h=yes
6121else
6122 echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125ac_cv_working_alloca_h=no
6126fi
6127rm -f conftest.err conftest.$ac_objext \
6128 conftest$ac_exeext conftest.$ac_ext
6129fi
6130echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6131echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6132if test $ac_cv_working_alloca_h = yes; then
6133
6134cat >>confdefs.h <<\_ACEOF
6135#define HAVE_ALLOCA_H 1
6136_ACEOF
6137
6138fi
6139
6140echo "$as_me:$LINENO: checking for alloca" >&5
6141echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6142if test "${ac_cv_func_alloca_works+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145 cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151#ifdef __GNUC__
6152# define alloca __builtin_alloca
6153#else
6154# ifdef _MSC_VER
6155# include <malloc.h>
6156# define alloca _alloca
6157# else
6158# if HAVE_ALLOCA_H
6159# include <alloca.h>
6160# else
6161# ifdef _AIX
6162 #pragma alloca
6163# else
6164# ifndef alloca /* predefined by HP cc +Olibcalls */
6165char *alloca ();
6166# endif
6167# endif
6168# endif
6169# endif
6170#endif
6171
6172int
6173main ()
6174{
6175char *p = (char *) alloca (1);
6176 ;
6177 return 0;
6178}
6179_ACEOF
6180rm -f conftest.$ac_objext conftest$ac_exeext
6181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6182 (eval $ac_link) 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try='test -z "$ac_c_werror_flag"
6190 || test ! -s conftest.err'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; } &&
6196 { ac_try='test -s conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_cv_func_alloca_works=yes
6203else
6204 echo "$as_me: failed program was:" >&5
6205sed 's/^/| /' conftest.$ac_ext >&5
6206
6207ac_cv_func_alloca_works=no
6208fi
6209rm -f conftest.err conftest.$ac_objext \
6210 conftest$ac_exeext conftest.$ac_ext
6211fi
6212echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6213echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6214
6215if test $ac_cv_func_alloca_works = yes; then
6216
6217cat >>confdefs.h <<\_ACEOF
6218#define HAVE_ALLOCA 1
6219_ACEOF
6220
6221else
6222 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6223# that cause trouble. Some versions do not even contain alloca or
6224# contain a buggy version. If you still want to use their alloca,
6225# use ar to extract alloca.o from them instead of compiling alloca.c.
6226
6227ALLOCA=alloca.$ac_objext
6228
6229cat >>confdefs.h <<\_ACEOF
6230#define C_ALLOCA 1
6231_ACEOF
6232
6233
6234echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6235echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6236if test "${ac_cv_os_cray+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239 cat >conftest.$ac_ext <<_ACEOF
6240/* confdefs.h. */
6241_ACEOF
6242cat confdefs.h >>conftest.$ac_ext
6243cat >>conftest.$ac_ext <<_ACEOF
6244/* end confdefs.h. */
6245#if defined(CRAY) && ! defined(CRAY2)
6246webecray
6247#else
6248wenotbecray
6249#endif
6250
6251_ACEOF
6252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6253 $EGREP "webecray" >/dev/null 2>&1; then
6254 ac_cv_os_cray=yes
6255else
6256 ac_cv_os_cray=no
6257fi
6258rm -f conftest*
6259
6260fi
6261echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6262echo "${ECHO_T}$ac_cv_os_cray" >&6
6263if test $ac_cv_os_cray = yes; then
6264 for ac_func in _getb67 GETB67 getb67; do
6265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6266echo "$as_me:$LINENO: checking for $ac_func" >&5
6267echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6268if eval "test \"\${$as_ac_var+set}\" = set"; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271 cat >conftest.$ac_ext <<_ACEOF
6272/* confdefs.h. */
6273_ACEOF
6274cat confdefs.h >>conftest.$ac_ext
6275cat >>conftest.$ac_ext <<_ACEOF
6276/* end confdefs.h. */
6277/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6279#define $ac_func innocuous_$ac_func
6280
6281/* System header to define __stub macros and hopefully few prototypes,
6282 which can conflict with char $ac_func (); below.
6283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6284 <limits.h> exists even on freestanding compilers. */
6285
6286#ifdef __STDC__
6287# include <limits.h>
6288#else
6289# include <assert.h>
6290#endif
6291
6292#undef $ac_func
6293
6294/* Override any gcc2 internal prototype to avoid an error. */
6295#ifdef __cplusplus
6296extern "C"
6297{
6298#endif
6299/* We use char because int might match the return type of a gcc2
6300 builtin and then its argument prototype would still apply. */
6301char $ac_func ();
6302/* The GNU C library defines this for functions which it implements
6303 to always fail with ENOSYS. Some functions are actually named
6304 something starting with __ and the normal name is an alias. */
6305#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6306choke me
6307#else
6308char (*f) () = $ac_func;
6309#endif
6310#ifdef __cplusplus
6311}
6312#endif
6313
6314int
6315main ()
6316{
6317return f != $ac_func;
6318 ;
6319 return 0;
6320}
6321_ACEOF
6322rm -f conftest.$ac_objext conftest$ac_exeext
6323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6324 (eval $ac_link) 2>conftest.er1
6325 ac_status=$?
6326 grep -v '^ *+' conftest.er1 >conftest.err
6327 rm -f conftest.er1
6328 cat conftest.err >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
6331 { ac_try='test -z "$ac_c_werror_flag"
6332 || test ! -s conftest.err'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; } &&
6338 { ac_try='test -s conftest$ac_exeext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 (eval $ac_try) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 eval "$as_ac_var=yes"
6345else
6346 echo "$as_me: failed program was:" >&5
6347sed 's/^/| /' conftest.$ac_ext >&5
6348
6349eval "$as_ac_var=no"
6350fi
6351rm -f conftest.err conftest.$ac_objext \
6352 conftest$ac_exeext conftest.$ac_ext
6353fi
6354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6355echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6356if test `eval echo '${'$as_ac_var'}'` = yes; then
6357
6358cat >>confdefs.h <<_ACEOF
6359#define CRAY_STACKSEG_END $ac_func
6360_ACEOF
6361
6362 break
6363fi
6364
6365 done
6366fi
6367
6368echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6369echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6370if test "${ac_cv_c_stack_direction+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372else
6373 if test "$cross_compiling" = yes; then
6374 ac_cv_c_stack_direction=0
6375else
6376 cat >conftest.$ac_ext <<_ACEOF
6377/* confdefs.h. */
6378_ACEOF
6379cat confdefs.h >>conftest.$ac_ext
6380cat >>conftest.$ac_ext <<_ACEOF
6381/* end confdefs.h. */
6382int
6383find_stack_direction ()
6384{
6385 static char *addr = 0;
6386 auto char dummy;
6387 if (addr == 0)
6388 {
6389 addr = &dummy;
6390 return find_stack_direction ();
6391 }
6392 else
6393 return (&dummy > addr) ? 1 : -1;
6394}
6395
6396int
6397main ()
6398{
6399 exit (find_stack_direction () < 0);
6400}
6401_ACEOF
6402rm -f conftest$ac_exeext
6403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6404 (eval $ac_link) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413 ac_cv_c_stack_direction=1
6414else
6415 echo "$as_me: program exited with status $ac_status" >&5
6416echo "$as_me: failed program was:" >&5
6417sed 's/^/| /' conftest.$ac_ext >&5
6418
6419( exit $ac_status )
6420ac_cv_c_stack_direction=-1
6421fi
6422rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6423fi
6424fi
6425echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6426echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6427
6428cat >>confdefs.h <<_ACEOF
6429#define STACK_DIRECTION $ac_cv_c_stack_direction
6430_ACEOF
6431
6432
6433fi
6434
6435if test $ac_cv_c_compiler_gnu = yes; then
6436 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6437echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6438if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6440else
6441 ac_pattern="Autoconf.*'x'"
6442 cat >conftest.$ac_ext <<_ACEOF
6443/* confdefs.h. */
6444_ACEOF
6445cat confdefs.h >>conftest.$ac_ext
6446cat >>conftest.$ac_ext <<_ACEOF
6447/* end confdefs.h. */
6448#include <sgtty.h>
6449Autoconf TIOCGETP
6450_ACEOF
6451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452 $EGREP "$ac_pattern" >/dev/null 2>&1; then
6453 ac_cv_prog_gcc_traditional=yes
6454else
6455 ac_cv_prog_gcc_traditional=no
6456fi
6457rm -f conftest*
6458
6459
6460 if test $ac_cv_prog_gcc_traditional = no; then
6461 cat >conftest.$ac_ext <<_ACEOF
6462/* confdefs.h. */
6463_ACEOF
6464cat confdefs.h >>conftest.$ac_ext
6465cat >>conftest.$ac_ext <<_ACEOF
6466/* end confdefs.h. */
6467#include <termio.h>
6468Autoconf TCGETA
6469_ACEOF
6470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6471 $EGREP "$ac_pattern" >/dev/null 2>&1; then
6472 ac_cv_prog_gcc_traditional=yes
6473fi
6474rm -f conftest*
6475
6476 fi
6477fi
6478echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6479echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
6480 if test $ac_cv_prog_gcc_traditional = yes; then
6481 CC="$CC -traditional"
6482 fi
6483fi
6484
6485echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6486echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6487if test "${ac_cv_type_signal+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489else
6490 cat >conftest.$ac_ext <<_ACEOF
6491/* confdefs.h. */
6492_ACEOF
6493cat confdefs.h >>conftest.$ac_ext
6494cat >>conftest.$ac_ext <<_ACEOF
6495/* end confdefs.h. */
6496#include <sys/types.h>
6497#include <signal.h>
6498#ifdef signal
6499# undef signal
6500#endif
6501#ifdef __cplusplus
6502extern "C" void (*signal (int, void (*)(int)))(int);
6503#else
6504void (*signal ()) ();
6505#endif
6506
6507int
6508main ()
6509{
6510int i;
6511 ;
6512 return 0;
6513}
6514_ACEOF
6515rm -f conftest.$ac_objext
6516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_c_werror_flag"
6525 || test ! -s conftest.err'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try='test -s conftest.$ac_objext'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 ac_cv_type_signal=void
6538else
6539 echo "$as_me: failed program was:" >&5
6540sed 's/^/| /' conftest.$ac_ext >&5
6541
6542ac_cv_type_signal=int
6543fi
6544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6545fi
6546echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6547echo "${ECHO_T}$ac_cv_type_signal" >&6
6548
6549cat >>confdefs.h <<_ACEOF
6550#define RETSIGTYPE $ac_cv_type_signal
6551_ACEOF
6552
6553
6554
6555for ac_func in vprintf
6556do
6557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6558echo "$as_me:$LINENO: checking for $ac_func" >&5
6559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6560if eval "test \"\${$as_ac_var+set}\" = set"; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562else
6563 cat >conftest.$ac_ext <<_ACEOF
6564/* confdefs.h. */
6565_ACEOF
6566cat confdefs.h >>conftest.$ac_ext
6567cat >>conftest.$ac_ext <<_ACEOF
6568/* end confdefs.h. */
6569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6571#define $ac_func innocuous_$ac_func
6572
6573/* System header to define __stub macros and hopefully few prototypes,
6574 which can conflict with char $ac_func (); below.
6575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6576 <limits.h> exists even on freestanding compilers. */
6577
6578#ifdef __STDC__
6579# include <limits.h>
6580#else
6581# include <assert.h>
6582#endif
6583
6584#undef $ac_func
6585
6586/* Override any gcc2 internal prototype to avoid an error. */
6587#ifdef __cplusplus
6588extern "C"
6589{
6590#endif
6591/* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6593char $ac_func ();
6594/* The GNU C library defines this for functions which it implements
6595 to always fail with ENOSYS. Some functions are actually named
6596 something starting with __ and the normal name is an alias. */
6597#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6598choke me
6599#else
6600char (*f) () = $ac_func;
6601#endif
6602#ifdef __cplusplus
6603}
6604#endif
6605
6606int
6607main ()
6608{
6609return f != $ac_func;
6610 ;
6611 return 0;
6612}
6613_ACEOF
6614rm -f conftest.$ac_objext conftest$ac_exeext
6615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6616 (eval $ac_link) 2>conftest.er1
6617 ac_status=$?
6618 grep -v '^ *+' conftest.er1 >conftest.err
6619 rm -f conftest.er1
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } &&
6623 { ac_try='test -z "$ac_c_werror_flag"
6624 || test ! -s conftest.err'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 (eval $ac_try) 2>&5
6627 ac_status=$?
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; } &&
6630 { ac_try='test -s conftest$ac_exeext'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 (eval $ac_try) 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 eval "$as_ac_var=yes"
6637else
6638 echo "$as_me: failed program was:" >&5
6639sed 's/^/| /' conftest.$ac_ext >&5
6640
6641eval "$as_ac_var=no"
6642fi
6643rm -f conftest.err conftest.$ac_objext \
6644 conftest$ac_exeext conftest.$ac_ext
6645fi
6646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6647echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6648if test `eval echo '${'$as_ac_var'}'` = yes; then
6649 cat >>confdefs.h <<_ACEOF
6650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6651_ACEOF
6652
6653echo "$as_me:$LINENO: checking for _doprnt" >&5
6654echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6655if test "${ac_cv_func__doprnt+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6657else
6658 cat >conftest.$ac_ext <<_ACEOF
6659/* confdefs.h. */
6660_ACEOF
6661cat confdefs.h >>conftest.$ac_ext
6662cat >>conftest.$ac_ext <<_ACEOF
6663/* end confdefs.h. */
6664/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
6665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6666#define _doprnt innocuous__doprnt
6667
6668/* System header to define __stub macros and hopefully few prototypes,
6669 which can conflict with char _doprnt (); below.
6670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6671 <limits.h> exists even on freestanding compilers. */
6672
6673#ifdef __STDC__
6674# include <limits.h>
6675#else
6676# include <assert.h>
6677#endif
6678
6679#undef _doprnt
6680
6681/* Override any gcc2 internal prototype to avoid an error. */
6682#ifdef __cplusplus
6683extern "C"
6684{
6685#endif
6686/* We use char because int might match the return type of a gcc2
6687 builtin and then its argument prototype would still apply. */
6688char _doprnt ();
6689/* The GNU C library defines this for functions which it implements
6690 to always fail with ENOSYS. Some functions are actually named
6691 something starting with __ and the normal name is an alias. */
6692#if defined (__stub__doprnt) || defined (__stub____doprnt)
6693choke me
6694#else
6695char (*f) () = _doprnt;
6696#endif
6697#ifdef __cplusplus
6698}
6699#endif
6700
6701int
6702main ()
6703{
6704return f != _doprnt;
6705 ;
6706 return 0;
6707}
6708_ACEOF
6709rm -f conftest.$ac_objext conftest$ac_exeext
6710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6711 (eval $ac_link) 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try='test -z "$ac_c_werror_flag"
6719 || test ! -s conftest.err'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 (eval $ac_try) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; } &&
6725 { ac_try='test -s conftest$ac_exeext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6731 ac_cv_func__doprnt=yes
6732else
6733 echo "$as_me: failed program was:" >&5
6734sed 's/^/| /' conftest.$ac_ext >&5
6735
6736ac_cv_func__doprnt=no
6737fi
6738rm -f conftest.err conftest.$ac_objext \
6739 conftest$ac_exeext conftest.$ac_ext
6740fi
6741echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6742echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6743if test $ac_cv_func__doprnt = yes; then
6744
6745cat >>confdefs.h <<\_ACEOF
6746#define HAVE_DOPRNT 1
6747_ACEOF
6748
6749fi
6750
6751fi
6752done
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
6766do
6767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6768echo "$as_me:$LINENO: checking for $ac_func" >&5
6769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6770if eval "test \"\${$as_ac_var+set}\" = set"; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772else
6773 cat >conftest.$ac_ext <<_ACEOF
6774/* confdefs.h. */
6775_ACEOF
6776cat confdefs.h >>conftest.$ac_ext
6777cat >>conftest.$ac_ext <<_ACEOF
6778/* end confdefs.h. */
6779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6781#define $ac_func innocuous_$ac_func
6782
6783/* System header to define __stub macros and hopefully few prototypes,
6784 which can conflict with char $ac_func (); below.
6785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6786 <limits.h> exists even on freestanding compilers. */
6787
6788#ifdef __STDC__
6789# include <limits.h>
6790#else
6791# include <assert.h>
6792#endif
6793
6794#undef $ac_func
6795
6796/* Override any gcc2 internal prototype to avoid an error. */
6797#ifdef __cplusplus
6798extern "C"
6799{
6800#endif
6801/* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6803char $ac_func ();
6804/* The GNU C library defines this for functions which it implements
6805 to always fail with ENOSYS. Some functions are actually named
6806 something starting with __ and the normal name is an alias. */
6807#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6808choke me
6809#else
6810char (*f) () = $ac_func;
6811#endif
6812#ifdef __cplusplus
6813}
6814#endif
6815
6816int
6817main ()
6818{
6819return f != $ac_func;
6820 ;
6821 return 0;
6822}
6823_ACEOF
6824rm -f conftest.$ac_objext conftest$ac_exeext
6825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826 (eval $ac_link) 2>conftest.er1
6827 ac_status=$?
6828 grep -v '^ *+' conftest.er1 >conftest.err
6829 rm -f conftest.er1
6830 cat conftest.err >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try='test -z "$ac_c_werror_flag"
6834 || test ! -s conftest.err'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 (eval $ac_try) 2>&5
6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; } &&
6840 { ac_try='test -s conftest$ac_exeext'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 (eval $ac_try) 2>&5
6843 ac_status=$?
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; }; then
6846 eval "$as_ac_var=yes"
6847else
6848 echo "$as_me: failed program was:" >&5
6849sed 's/^/| /' conftest.$ac_ext >&5
6850
6851eval "$as_ac_var=no"
6852fi
6853rm -f conftest.err conftest.$ac_objext \
6854 conftest$ac_exeext conftest.$ac_ext
6855fi
6856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6857echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6858if test `eval echo '${'$as_ac_var'}'` = yes; then
6859 cat >>confdefs.h <<_ACEOF
6860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6861_ACEOF
6862
6863fi
6864done
6865
6866
6867
6868
6869for ac_func in ftruncate strstr strcasecmp
6870do
6871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6872echo "$as_me:$LINENO: checking for $ac_func" >&5
6873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6874if eval "test \"\${$as_ac_var+set}\" = set"; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877 cat >conftest.$ac_ext <<_ACEOF
6878/* confdefs.h. */
6879_ACEOF
6880cat confdefs.h >>conftest.$ac_ext
6881cat >>conftest.$ac_ext <<_ACEOF
6882/* end confdefs.h. */
6883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6885#define $ac_func innocuous_$ac_func
6886
6887/* System header to define __stub macros and hopefully few prototypes,
6888 which can conflict with char $ac_func (); below.
6889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6890 <limits.h> exists even on freestanding compilers. */
6891
6892#ifdef __STDC__
6893# include <limits.h>
6894#else
6895# include <assert.h>
6896#endif
6897
6898#undef $ac_func
6899
6900/* Override any gcc2 internal prototype to avoid an error. */
6901#ifdef __cplusplus
6902extern "C"
6903{
6904#endif
6905/* We use char because int might match the return type of a gcc2
6906 builtin and then its argument prototype would still apply. */
6907char $ac_func ();
6908/* The GNU C library defines this for functions which it implements
6909 to always fail with ENOSYS. Some functions are actually named
6910 something starting with __ and the normal name is an alias. */
6911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6912choke me
6913#else
6914char (*f) () = $ac_func;
6915#endif
6916#ifdef __cplusplus
6917}
6918#endif
6919
6920int
6921main ()
6922{
6923return f != $ac_func;
6924 ;
6925 return 0;
6926}
6927_ACEOF
6928rm -f conftest.$ac_objext conftest$ac_exeext
6929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6930 (eval $ac_link) 2>conftest.er1
6931 ac_status=$?
6932 grep -v '^ *+' conftest.er1 >conftest.err
6933 rm -f conftest.er1
6934 cat conftest.err >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); } &&
6937 { ac_try='test -z "$ac_c_werror_flag"
6938 || test ! -s conftest.err'
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 (eval $ac_try) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; } &&
6944 { ac_try='test -s conftest$ac_exeext'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 (eval $ac_try) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; }; then
6950 eval "$as_ac_var=yes"
6951else
6952 echo "$as_me: failed program was:" >&5
6953sed 's/^/| /' conftest.$ac_ext >&5
6954
6955eval "$as_ac_var=no"
6956fi
6957rm -f conftest.err conftest.$ac_objext \
6958 conftest$ac_exeext conftest.$ac_ext
6959fi
6960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6961echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6962if test `eval echo '${'$as_ac_var'}'` = yes; then
6963 cat >>confdefs.h <<_ACEOF
6964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6965_ACEOF
6966
6967else
6968 case $LIBOBJS in
6969 "$ac_func.$ac_objext" | \
6970 *" $ac_func.$ac_objext" | \
6971 "$ac_func.$ac_objext "* | \
6972 *" $ac_func.$ac_objext "* ) ;;
6973 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6974esac
6975
6976fi
6977done
6978
6979
6980
6981echo "$as_me:$LINENO: checking for textdomain" >&5
6982echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
6983if test "${ac_cv_func_textdomain+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985else
6986 cat >conftest.$ac_ext <<_ACEOF
6987/* confdefs.h. */
6988_ACEOF
6989cat confdefs.h >>conftest.$ac_ext
6990cat >>conftest.$ac_ext <<_ACEOF
6991/* end confdefs.h. */
6992/* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
6993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6994#define textdomain innocuous_textdomain
6995
6996/* System header to define __stub macros and hopefully few prototypes,
6997 which can conflict with char textdomain (); below.
6998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999 <limits.h> exists even on freestanding compilers. */
7000
7001#ifdef __STDC__
7002# include <limits.h>
7003#else
7004# include <assert.h>
7005#endif
7006
7007#undef textdomain
7008
7009/* Override any gcc2 internal prototype to avoid an error. */
7010#ifdef __cplusplus
7011extern "C"
7012{
7013#endif
7014/* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7016char textdomain ();
7017/* The GNU C library defines this for functions which it implements
7018 to always fail with ENOSYS. Some functions are actually named
7019 something starting with __ and the normal name is an alias. */
7020#if defined (__stub_textdomain) || defined (__stub___textdomain)
7021choke me
7022#else
7023char (*f) () = textdomain;
7024#endif
7025#ifdef __cplusplus
7026}
7027#endif
7028
7029int
7030main ()
7031{
7032return f != textdomain;
7033 ;
7034 return 0;
7035}
7036_ACEOF
7037rm -f conftest.$ac_objext conftest$ac_exeext
7038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039 (eval $ac_link) 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
7046 { ac_try='test -z "$ac_c_werror_flag"
7047 || test ! -s conftest.err'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 (eval $ac_try) 2>&5
7050 ac_status=$?
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; } &&
7053 { ac_try='test -s conftest$ac_exeext'
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 (eval $ac_try) 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; }; then
7059 ac_cv_func_textdomain=yes
7060else
7061 echo "$as_me: failed program was:" >&5
7062sed 's/^/| /' conftest.$ac_ext >&5
7063
7064ac_cv_func_textdomain=no
7065fi
7066rm -f conftest.err conftest.$ac_objext \
7067 conftest$ac_exeext conftest.$ac_ext
7068fi
7069echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
7070echo "${ECHO_T}$ac_cv_func_textdomain" >&6
7071if test $ac_cv_func_textdomain = yes; then
7072 cat >>confdefs.h <<\_ACEOF
7073#define ENABLE_NLS 1
7074_ACEOF
7075
7076fi
7077
7078
7079# *** Custom checking (based on GNU tar configure.in) ***
7080# ---------------------------------------------------------------------------
7081echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
7082echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
7083if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
7084 echo "$as_me:$LINENO: result: yes" >&5
7085echo "${ECHO_T}yes" >&6
7086 case $LIBOBJS in
7087 "gmalloc.$ac_objext" | \
7088 *" gmalloc.$ac_objext" | \
7089 "gmalloc.$ac_objext "* | \
7090 *" gmalloc.$ac_objext "* ) ;;
7091 *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
7092esac
7093
7094 cat >>confdefs.h <<\_ACEOF
7095#define HAVE_VALLOC 1
7096_ACEOF
7097
7098else
7099 echo "$as_me:$LINENO: result: no" >&5
7100echo "${ECHO_T}no" >&6
7101
7102for ac_func in valloc
7103do
7104as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7105echo "$as_me:$LINENO: checking for $ac_func" >&5
7106echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7107if eval "test \"\${$as_ac_var+set}\" = set"; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110 cat >conftest.$ac_ext <<_ACEOF
7111/* confdefs.h. */
7112_ACEOF
7113cat confdefs.h >>conftest.$ac_ext
7114cat >>conftest.$ac_ext <<_ACEOF
7115/* end confdefs.h. */
7116/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7118#define $ac_func innocuous_$ac_func
7119
7120/* System header to define __stub macros and hopefully few prototypes,
7121 which can conflict with char $ac_func (); below.
7122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7123 <limits.h> exists even on freestanding compilers. */
7124
7125#ifdef __STDC__
7126# include <limits.h>
7127#else
7128# include <assert.h>
7129#endif
7130
7131#undef $ac_func
7132
7133/* Override any gcc2 internal prototype to avoid an error. */
7134#ifdef __cplusplus
7135extern "C"
7136{
7137#endif
7138/* We use char because int might match the return type of a gcc2
7139 builtin and then its argument prototype would still apply. */
7140char $ac_func ();
7141/* The GNU C library defines this for functions which it implements
7142 to always fail with ENOSYS. Some functions are actually named
7143 something starting with __ and the normal name is an alias. */
7144#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7145choke me
7146#else
7147char (*f) () = $ac_func;
7148#endif
7149#ifdef __cplusplus
7150}
7151#endif
7152
7153int
7154main ()
7155{
7156return f != $ac_func;
7157 ;
7158 return 0;
7159}
7160_ACEOF
7161rm -f conftest.$ac_objext conftest$ac_exeext
7162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7163 (eval $ac_link) 2>conftest.er1
7164 ac_status=$?
7165 grep -v '^ *+' conftest.er1 >conftest.err
7166 rm -f conftest.er1
7167 cat conftest.err >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } &&
7170 { ac_try='test -z "$ac_c_werror_flag"
7171 || test ! -s conftest.err'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 (eval $ac_try) 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; } &&
7177 { ac_try='test -s conftest$ac_exeext'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179 (eval $ac_try) 2>&5
7180 ac_status=$?
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 eval "$as_ac_var=yes"
7184else
7185 echo "$as_me: failed program was:" >&5
7186sed 's/^/| /' conftest.$ac_ext >&5
7187
7188eval "$as_ac_var=no"
7189fi
7190rm -f conftest.err conftest.$ac_objext \
7191 conftest$ac_exeext conftest.$ac_ext
7192fi
7193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7194echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7195if test `eval echo '${'$as_ac_var'}'` = yes; then
7196 cat >>confdefs.h <<_ACEOF
7197#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7198_ACEOF
7199
7200fi
7201done
7202
7203fi
7204
7205# we cannot generate static libraries under Darwin
7206echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
7207echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
7208if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
7209 echo "$as_me:$LINENO: result: yes" >&5
7210echo "${ECHO_T}yes" >&6
7211 STATIC=""
7212else
7213 echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6
7215 STATIC="-static "
7216fi
7217
7218
7219echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
7220echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
7221
7222# Check whether --with-dmalloc or --without-dmalloc was given.
7223if test "${with_dmalloc+set}" = set; then
7224 withval="$with_dmalloc"
7225 if test "$withval" = yes; then
7226 echo "$as_me:$LINENO: result: yes" >&5
7227echo "${ECHO_T}yes" >&6
7228 cat >>confdefs.h <<\_ACEOF
7229#define WITH_DMALLOC 1
7230_ACEOF
7231
7232 LIBS="$LIBS -ldmalloc"
7233 LDFLAGS="$LDFLAGS -g"
7234else
7235 echo "$as_me:$LINENO: result: no" >&5
7236echo "${ECHO_T}no" >&6
7237fi
7238else
7239 echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6
7241fi;
7242
7243echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
7244echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
7245
7246# Check whether --with-regex or --without-regex was given.
7247if test "${with_regex+set}" = set; then
7248 withval="$with_regex"
7249 if test "$withval" = yes; then
7250 ac_with_regex=1
7251 echo "$as_me:$LINENO: result: regex" >&5
7252echo "${ECHO_T}regex" >&6
7253 cat >>confdefs.h <<\_ACEOF
7254#define WITH_REGEX 1
7255_ACEOF
7256
7257 case $LIBOBJS in
7258 "regex.$ac_objext" | \
7259 *" regex.$ac_objext" | \
7260 "regex.$ac_objext "* | \
7261 *" regex.$ac_objext "* ) ;;
7262 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
7263esac
7264
7265fi
7266fi;
7267if test -z "$ac_with_regex"; then
7268 echo "$as_me:$LINENO: result: rx" >&5
7269echo "${ECHO_T}rx" >&6
7270 echo "$as_me:$LINENO: checking for re_rx_search" >&5
7271echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
7272if test "${ac_cv_func_re_rx_search+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7274else
7275 cat >conftest.$ac_ext <<_ACEOF
7276/* confdefs.h. */
7277_ACEOF
7278cat confdefs.h >>conftest.$ac_ext
7279cat >>conftest.$ac_ext <<_ACEOF
7280/* end confdefs.h. */
7281/* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
7282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7283#define re_rx_search innocuous_re_rx_search
7284
7285/* System header to define __stub macros and hopefully few prototypes,
7286 which can conflict with char re_rx_search (); below.
7287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7288 <limits.h> exists even on freestanding compilers. */
7289
7290#ifdef __STDC__
7291# include <limits.h>
7292#else
7293# include <assert.h>
7294#endif
7295
7296#undef re_rx_search
7297
7298/* Override any gcc2 internal prototype to avoid an error. */
7299#ifdef __cplusplus
7300extern "C"
7301{
7302#endif
7303/* We use char because int might match the return type of a gcc2
7304 builtin and then its argument prototype would still apply. */
7305char re_rx_search ();
7306/* The GNU C library defines this for functions which it implements
7307 to always fail with ENOSYS. Some functions are actually named
7308 something starting with __ and the normal name is an alias. */
7309#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
7310choke me
7311#else
7312char (*f) () = re_rx_search;
7313#endif
7314#ifdef __cplusplus
7315}
7316#endif
7317
7318int
7319main ()
7320{
7321return f != re_rx_search;
7322 ;
7323 return 0;
7324}
7325_ACEOF
7326rm -f conftest.$ac_objext conftest$ac_exeext
7327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7328 (eval $ac_link) 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try='test -z "$ac_c_werror_flag"
7336 || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 (eval $ac_try) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try='test -s conftest$ac_exeext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_cv_func_re_rx_search=yes
7349else
7350 echo "$as_me: failed program was:" >&5
7351sed 's/^/| /' conftest.$ac_ext >&5
7352
7353ac_cv_func_re_rx_search=no
7354fi
7355rm -f conftest.err conftest.$ac_objext \
7356 conftest$ac_exeext conftest.$ac_ext
7357fi
7358echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
7359echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
7360if test $ac_cv_func_re_rx_search = yes; then
7361 :
7362else
7363 case $LIBOBJS in
7364 "rx.$ac_objext" | \
7365 *" rx.$ac_objext" | \
7366 "rx.$ac_objext "* | \
7367 *" rx.$ac_objext "* ) ;;
7368 *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
7369esac
7370
7371fi
7372
7373fi
7374
7375
7376# ---------------------------------------------------------------------------
7377if test "$ac_cv_func_alloca" = 'no'; then
7378 case $LIBOBJS in
7379 "xmalloc.$ac_objext" | \
7380 *" xmalloc.$ac_objext" | \
7381 "xmalloc.$ac_objext "* | \
7382 *" xmalloc.$ac_objext "* ) ;;
7383 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
7384esac
7385
7386 case $LIBOBJS in
7387 "error.$ac_objext" | \
7388 *" error.$ac_objext" | \
7389 "error.$ac_objext "* | \
7390 *" error.$ac_objext "* ) ;;
7391 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
7392esac
7393
7394fi
7395
7396
7397# ---------------------------------------------------------------------------
7398
7399ac_ext=cc
7400ac_cpp='$CXXCPP $CPPFLAGS'
7401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7404
7405
7406success=no
7407echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
7408echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
7409
7410
7411cat >conftest.$ac_ext <<_ACEOF
7412/* confdefs.h. */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h. */
7417#include <vector>
7418
7419int
7420main ()
7421{
7422
7423 ;
7424 return 0;
7425}
7426_ACEOF
7427rm -f conftest.$ac_objext
7428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7429 (eval $ac_compile) 2>conftest.er1
7430 ac_status=$?
7431 grep -v '^ *+' conftest.er1 >conftest.err
7432 rm -f conftest.er1
7433 cat conftest.err >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } &&
7436 { ac_try='test -z "$ac_cxx_werror_flag"
7437 || test ! -s conftest.err'
7438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 (eval $ac_try) 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; } &&
7443 { ac_try='test -s conftest.$ac_objext'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
7449 success=yes
7450else
7451 echo "$as_me: failed program was:" >&5
7452sed 's/^/| /' conftest.$ac_ext >&5
7453
7454fi
7455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7456
7457if test $success = "no"; then
7458cat >conftest.$ac_ext <<_ACEOF
7459/* confdefs.h. */
7460_ACEOF
7461cat confdefs.h >>conftest.$ac_ext
7462cat >>conftest.$ac_ext <<_ACEOF
7463/* end confdefs.h. */
7464#include <vector.h>
7465
7466int
7467main ()
7468{
7469
7470 ;
7471 return 0;
7472}
7473_ACEOF
7474rm -f conftest.$ac_objext
7475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7476 (eval $ac_compile) 2>conftest.er1
7477 ac_status=$?
7478 grep -v '^ *+' conftest.er1 >conftest.err
7479 rm -f conftest.er1
7480 cat conftest.err >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } &&
7483 { ac_try='test -z "$ac_cxx_werror_flag"
7484 || test ! -s conftest.err'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; } &&
7490 { ac_try='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 (eval $ac_try) 2>&5
7493 ac_status=$?
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 success="yes"
7497else
7498 echo "$as_me: failed program was:" >&5
7499sed 's/^/| /' conftest.$ac_ext >&5
7500
7501fi
7502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7503fi
7504
7505if test $success = "no"; then
7506cat >conftest.$ac_ext <<_ACEOF
7507/* confdefs.h. */
7508_ACEOF
7509cat confdefs.h >>conftest.$ac_ext
7510cat >>conftest.$ac_ext <<_ACEOF
7511/* end confdefs.h. */
7512#include <ospace\\std\\vector>
7513
7514int
7515main ()
7516{
7517
7518 ;
7519 return 0;
7520}
7521_ACEOF
7522rm -f conftest.$ac_objext
7523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7524 (eval $ac_compile) 2>conftest.er1
7525 ac_status=$?
7526 grep -v '^ *+' conftest.er1 >conftest.err
7527 rm -f conftest.er1
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } &&
7531 { ac_try='test -z "$ac_cxx_werror_flag"
7532 || test ! -s conftest.err'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 (eval $ac_try) 2>&5
7535 ac_status=$?
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; } &&
7538 { ac_try='test -s conftest.$ac_objext'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 (eval $ac_try) 2>&5
7541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; }; then
7544 success="yes"
7545else
7546 echo "$as_me: failed program was:" >&5
7547sed 's/^/| /' conftest.$ac_ext >&5
7548
7549fi
7550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7551fi
7552
7553if test $success = yes; then
7554echo "$as_me:$LINENO: result: \"no\"" >&5
7555echo "${ECHO_T}\"no\"" >&6
7556else
7557echo "$as_me:$LINENO: result: \"yes\"" >&5
7558echo "${ECHO_T}\"yes\"" >&6
7559{ { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
7560echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
7561 { (exit 1); exit 1; }; }
7562fi
7563
7564gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
7565# check for running bash under cygwin
7566 if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
7567 then
7568 gsdlos=windows
7569 fi
7570
7571
7572# Make gsdlarch empty if the OS bit value (32 or 64) is not used in naming
7573# directories already or if common-src is compiled up on its own.
7574# E.g. 32/64 bit won't be used in the SVN version if only bin/linux exists.
7575if test -d "../bin/$gsdlos" -o ! -f "../setup.bash" ; then
7576 gsdlarch=""
7577fi
7578
7579
7580# check for endianness
7581echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7582echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7583if test "${ac_cv_c_bigendian+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7585else
7586 # See if sys/param.h defines the BYTE_ORDER macro.
7587cat >conftest.$ac_ext <<_ACEOF
7588/* confdefs.h. */
7589_ACEOF
7590cat confdefs.h >>conftest.$ac_ext
7591cat >>conftest.$ac_ext <<_ACEOF
7592/* end confdefs.h. */
7593#include <sys/types.h>
7594#include <sys/param.h>
7595
7596int
7597main ()
7598{
7599#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7600 bogus endian macros
7601#endif
7602
7603 ;
7604 return 0;
7605}
7606_ACEOF
7607rm -f conftest.$ac_objext
7608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7609 (eval $ac_compile) 2>conftest.er1
7610 ac_status=$?
7611 grep -v '^ *+' conftest.er1 >conftest.err
7612 rm -f conftest.er1
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } &&
7616 { ac_try='test -z "$ac_cxx_werror_flag"
7617 || test ! -s conftest.err'
7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619 (eval $ac_try) 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; } &&
7623 { ac_try='test -s conftest.$ac_objext'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 (eval $ac_try) 2>&5
7626 ac_status=$?
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; }; then
7629 # It does; now see whether it defined to BIG_ENDIAN or not.
7630cat >conftest.$ac_ext <<_ACEOF
7631/* confdefs.h. */
7632_ACEOF
7633cat confdefs.h >>conftest.$ac_ext
7634cat >>conftest.$ac_ext <<_ACEOF
7635/* end confdefs.h. */
7636#include <sys/types.h>
7637#include <sys/param.h>
7638
7639int
7640main ()
7641{
7642#if BYTE_ORDER != BIG_ENDIAN
7643 not big endian
7644#endif
7645
7646 ;
7647 return 0;
7648}
7649_ACEOF
7650rm -f conftest.$ac_objext
7651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652 (eval $ac_compile) 2>conftest.er1
7653 ac_status=$?
7654 grep -v '^ *+' conftest.er1 >conftest.err
7655 rm -f conftest.er1
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } &&
7659 { ac_try='test -z "$ac_cxx_werror_flag"
7660 || test ! -s conftest.err'
7661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 (eval $ac_try) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; } &&
7666 { ac_try='test -s conftest.$ac_objext'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 ac_cv_c_bigendian=yes
7673else
7674 echo "$as_me: failed program was:" >&5
7675sed 's/^/| /' conftest.$ac_ext >&5
7676
7677ac_cv_c_bigendian=no
7678fi
7679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7680else
7681 echo "$as_me: failed program was:" >&5
7682sed 's/^/| /' conftest.$ac_ext >&5
7683
7684# It does not; compile a test program.
7685if test "$cross_compiling" = yes; then
7686 # try to guess the endianness by grepping values into an object file
7687 ac_cv_c_bigendian=unknown
7688 cat >conftest.$ac_ext <<_ACEOF
7689/* confdefs.h. */
7690_ACEOF
7691cat confdefs.h >>conftest.$ac_ext
7692cat >>conftest.$ac_ext <<_ACEOF
7693/* end confdefs.h. */
7694short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7695short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7696void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7697short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7698short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7699void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7700int
7701main ()
7702{
7703 _ascii (); _ebcdic ();
7704 ;
7705 return 0;
7706}
7707_ACEOF
7708rm -f conftest.$ac_objext
7709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710 (eval $ac_compile) 2>conftest.er1
7711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
7717 { ac_try='test -z "$ac_cxx_werror_flag"
7718 || test ! -s conftest.err'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 (eval $ac_try) 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; } &&
7724 { ac_try='test -s conftest.$ac_objext'
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7730 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7731 ac_cv_c_bigendian=yes
7732fi
7733if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7734 if test "$ac_cv_c_bigendian" = unknown; then
7735 ac_cv_c_bigendian=no
7736 else
7737 # finding both strings is unlikely to happen, but who knows?
7738 ac_cv_c_bigendian=unknown
7739 fi
7740fi
7741else
7742 echo "$as_me: failed program was:" >&5
7743sed 's/^/| /' conftest.$ac_ext >&5
7744
7745fi
7746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7747else
7748 cat >conftest.$ac_ext <<_ACEOF
7749/* confdefs.h. */
7750_ACEOF
7751cat confdefs.h >>conftest.$ac_ext
7752cat >>conftest.$ac_ext <<_ACEOF
7753/* end confdefs.h. */
7754int
7755main ()
7756{
7757 /* Are we little or big endian? From Harbison&Steele. */
7758 union
7759 {
7760 long l;
7761 char c[sizeof (long)];
7762 } u;
7763 u.l = 1;
7764 exit (u.c[sizeof (long) - 1] == 1);
7765}
7766_ACEOF
7767rm -f conftest$ac_exeext
7768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7769 (eval $ac_link) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 (eval $ac_try) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778 ac_cv_c_bigendian=no
7779else
7780 echo "$as_me: program exited with status $ac_status" >&5
7781echo "$as_me: failed program was:" >&5
7782sed 's/^/| /' conftest.$ac_ext >&5
7783
7784( exit $ac_status )
7785ac_cv_c_bigendian=yes
7786fi
7787rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7788fi
7789fi
7790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7791fi
7792echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7793echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7794case $ac_cv_c_bigendian in
7795 yes)
7796
7797cat >>confdefs.h <<\_ACEOF
7798#define WORDS_BIGENDIAN 1
7799_ACEOF
7800 ;;
7801 no)
7802 ;;
7803 *)
7804 { { echo "$as_me:$LINENO: error: unknown endianness
7805presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7806echo "$as_me: error: unknown endianness
7807presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7808 { (exit 1); exit 1; }; } ;;
7809esac
7810
7811# ---------------------------------------------------------------------------
7812if test "$ac_cv_func_alloca" = 'no'; then
7813 case $LIBOBJS in
7814 "xmalloc.o.$ac_objext" | \
7815 *" xmalloc.o.$ac_objext" | \
7816 "xmalloc.o.$ac_objext "* | \
7817 *" xmalloc.o.$ac_objext "* ) ;;
7818 *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
7819esac
7820
7821 case $LIBOBJS in
7822 "error.$ac_objext" | \
7823 *" error.$ac_objext" | \
7824 "error.$ac_objext "* | \
7825 *" error.$ac_objext "* ) ;;
7826 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
7827esac
7828
7829fi
7830
7831# ---------------------------------------------------------------------------
7832
7833
7834moduleDirs=""
7835MODULEDIRS=""
7836if test -d modules ; then
7837 for x in `find modules -mindepth 1 -maxdepth 2`; do
7838 if test -d "$x"; then
7839 d="$x/Makefile.in"
7840 if test -e "$d"; then
7841 moduleDirs="$moduleDirs $x/Makefile"
7842 MODULEDIRS="$MODULEDIRS $x"
7843 fi
7844 fi
7845 done
7846 echo "Making $moduleDirs in modules directory"
7847
7848fi
7849
7850
7851# ---------------------------------------------------------------------------
7852
7853
7854
7855subdirs="$subdirs packages"
7856
7857
7858commonsrcprefix=`pwd`
7859ac_configure_args="$ac_configure_args --with-libiconv-prefix=$commonsrcprefix/packages/iconv"
7860
7861
7862subdirs="$subdirs indexers"
7863
7864
7865# the list of folders in the src folder
7866srclist="cgi-bin/Makefile \
7867 src/lib/Makefile \
7868 src/gdbmedit/db2txt/Makefile \
7869 src/gdbmedit/txt2db/Makefile \
7870 src/gdbmedit/gdbmget/Makefile \
7871 src/gdbmedit/gdbmset/Makefile \
7872 src/gdbmedit/gdbmkeys/Makefile \
7873 src/gdbmedit/gdbmdel/Makefile \
7874 src/getpw/Makefile \
7875 src/jdbmedit/Makefile"
7876
7877 ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
7878cat >confcache <<\_ACEOF
7879# This file is a shell script that caches the results of configure
7880# tests run on this system so they can be shared between configure
7881# scripts and configure runs, see configure's option --config-cache.
7882# It is not useful on other systems. If it contains results you don't
7883# want to keep, you may remove or edit it.
7884#
7885# config.status only pays attention to the cache file if you give it
7886# the --recheck option to rerun configure.
7887#
7888# `ac_cv_env_foo' variables (set or unset) will be overridden when
7889# loading this file, other *unset* `ac_cv_foo' will be assigned the
7890# following values.
7891
7892_ACEOF
7893
7894# The following way of writing the cache mishandles newlines in values,
7895# but we know of no workaround that is simple, portable, and efficient.
7896# So, don't put newlines in cache variables' values.
7897# Ultrix sh set writes to stderr and can't be redirected directly,
7898# and sets the high bit in the cache file unless we assign to the vars.
7899{
7900 (set) 2>&1 |
7901 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7902 *ac_space=\ *)
7903 # `set' does not quote correctly, so add quotes (double-quote
7904 # substitution turns \\\\ into \\, and sed turns \\ into \).
7905 sed -n \
7906 "s/'/'\\\\''/g;
7907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7908 ;;
7909 *)
7910 # `set' quotes correctly as required by POSIX, so do not add quotes.
7911 sed -n \
7912 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7913 ;;
7914 esac;
7915} |
7916 sed '
7917 t clear
7918 : clear
7919 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7920 t end
7921 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7922 : end' >>confcache
7923if diff $cache_file confcache >/dev/null 2>&1; then :; else
7924 if test -w $cache_file; then
7925 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7926 cat confcache >$cache_file
7927 else
7928 echo "not updating unwritable cache $cache_file"
7929 fi
7930fi
7931rm -f confcache
7932
7933test "x$prefix" = xNONE && prefix=$ac_default_prefix
7934# Let make expand exec_prefix.
7935test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7936
7937# VPATH may cause trouble with some makes, so we remove $(srcdir),
7938# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7939# trailing colons and then remove the whole line if VPATH becomes empty
7940# (actually we leave an empty line to preserve line numbers).
7941if test "x$srcdir" = x.; then
7942 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7943s/:*\$(srcdir):*/:/;
7944s/:*\${srcdir}:*/:/;
7945s/:*@srcdir@:*/:/;
7946s/^\([^=]*=[ ]*\):*/\1/;
7947s/:*$//;
7948s/^[^=]*=[ ]*$//;
7949}'
7950fi
7951
7952DEFS=-DHAVE_CONFIG_H
7953
7954ac_libobjs=
7955ac_ltlibobjs=
7956for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7957 # 1. Remove the extension, and $U if already installed.
7958 ac_i=`echo "$ac_i" |
7959 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7960 # 2. Add them.
7961 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7962 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7963done
7964LIBOBJS=$ac_libobjs
7965
7966LTLIBOBJS=$ac_ltlibobjs
7967
7968
7969
7970: ${CONFIG_STATUS=./config.status}
7971ac_clean_files_save=$ac_clean_files
7972ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7973{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7974echo "$as_me: creating $CONFIG_STATUS" >&6;}
7975cat >$CONFIG_STATUS <<_ACEOF
7976#! $SHELL
7977# Generated by $as_me.
7978# Run this file to recreate the current configuration.
7979# Compiler output produced by configure, useful for debugging
7980# configure, is in config.log if it exists.
7981
7982debug=false
7983ac_cs_recheck=false
7984ac_cs_silent=false
7985SHELL=\${CONFIG_SHELL-$SHELL}
7986_ACEOF
7987
7988cat >>$CONFIG_STATUS <<\_ACEOF
7989## --------------------- ##
7990## M4sh Initialization. ##
7991## --------------------- ##
7992
7993# Be Bourne compatible
7994if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7995 emulate sh
7996 NULLCMD=:
7997 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7998 # is contrary to our usage. Disable this feature.
7999 alias -g '${1+"$@"}'='"$@"'
8000elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8001 set -o posix
8002fi
8003DUALCASE=1; export DUALCASE # for MKS sh
8004
8005# Support unset when possible.
8006if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8007 as_unset=unset
8008else
8009 as_unset=false
8010fi
8011
8012
8013# Work around bugs in pre-3.0 UWIN ksh.
8014$as_unset ENV MAIL MAILPATH
8015PS1='$ '
8016PS2='> '
8017PS4='+ '
8018
8019# NLS nuisances.
8020for as_var in \
8021 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8022 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8023 LC_TELEPHONE LC_TIME
8024do
8025 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8026 eval $as_var=C; export $as_var
8027 else
8028 $as_unset $as_var
8029 fi
8030done
8031
8032# Required to use basename.
8033if expr a : '\(a\)' >/dev/null 2>&1; then
8034 as_expr=expr
8035else
8036 as_expr=false
8037fi
8038
8039if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8040 as_basename=basename
8041else
8042 as_basename=false
8043fi
8044
8045
8046# Name of the executable.
8047as_me=`$as_basename "$0" ||
8048$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8049 X"$0" : 'X\(//\)$' \| \
8050 X"$0" : 'X\(/\)$' \| \
8051 . : '\(.\)' 2>/dev/null ||
8052echo X/"$0" |
8053 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8054 /^X\/\(\/\/\)$/{ s//\1/; q; }
8055 /^X\/\(\/\).*/{ s//\1/; q; }
8056 s/.*/./; q'`
8057
8058
8059# PATH needs CR, and LINENO needs CR and PATH.
8060# Avoid depending upon Character Ranges.
8061as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8062as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8063as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8064as_cr_digits='0123456789'
8065as_cr_alnum=$as_cr_Letters$as_cr_digits
8066
8067# The user is always right.
8068if test "${PATH_SEPARATOR+set}" != set; then
8069 echo "#! /bin/sh" >conf$$.sh
8070 echo "exit 0" >>conf$$.sh
8071 chmod +x conf$$.sh
8072 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8073 PATH_SEPARATOR=';'
8074 else
8075 PATH_SEPARATOR=:
8076 fi
8077 rm -f conf$$.sh
8078fi
8079
8080
8081 as_lineno_1=$LINENO
8082 as_lineno_2=$LINENO
8083 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8084 test "x$as_lineno_1" != "x$as_lineno_2" &&
8085 test "x$as_lineno_3" = "x$as_lineno_2" || {
8086 # Find who we are. Look in the path if we contain no path at all
8087 # relative or not.
8088 case $0 in
8089 *[\\/]* ) as_myself=$0 ;;
8090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091for as_dir in $PATH
8092do
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
8095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8096done
8097
8098 ;;
8099 esac
8100 # We did not find ourselves, most probably we were run as `sh COMMAND'
8101 # in which case we are not to be found in the path.
8102 if test "x$as_myself" = x; then
8103 as_myself=$0
8104 fi
8105 if test ! -f "$as_myself"; then
8106 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8107echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8108 { (exit 1); exit 1; }; }
8109 fi
8110 case $CONFIG_SHELL in
8111 '')
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8114do
8115 IFS=$as_save_IFS
8116 test -z "$as_dir" && as_dir=.
8117 for as_base in sh bash ksh sh5; do
8118 case $as_dir in
8119 /*)
8120 if ("$as_dir/$as_base" -c '
8121 as_lineno_1=$LINENO
8122 as_lineno_2=$LINENO
8123 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8124 test "x$as_lineno_1" != "x$as_lineno_2" &&
8125 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8126 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8127 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8128 CONFIG_SHELL=$as_dir/$as_base
8129 export CONFIG_SHELL
8130 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8131 fi;;
8132 esac
8133 done
8134done
8135;;
8136 esac
8137
8138 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8139 # uniformly replaced by the line number. The first 'sed' inserts a
8140 # line-number line before each line; the second 'sed' does the real
8141 # work. The second script uses 'N' to pair each line-number line
8142 # with the numbered line, and appends trailing '-' during
8143 # substitution so that $LINENO is not a special case at line end.
8144 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8145 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8146 sed '=' <$as_myself |
8147 sed '
8148 N
8149 s,$,-,
8150 : loop
8151 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8152 t loop
8153 s,-$,,
8154 s,^['$as_cr_digits']*\n,,
8155 ' >$as_me.lineno &&
8156 chmod +x $as_me.lineno ||
8157 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8158echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8159 { (exit 1); exit 1; }; }
8160
8161 # Don't try to exec as it changes $[0], causing all sort of problems
8162 # (the dirname of $[0] is not the place where we might find the
8163 # original and so on. Autoconf is especially sensible to this).
8164 . ./$as_me.lineno
8165 # Exit status is that of the last command.
8166 exit
8167}
8168
8169
8170case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8171 *c*,-n*) ECHO_N= ECHO_C='
8172' ECHO_T=' ' ;;
8173 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8174 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8175esac
8176
8177if expr a : '\(a\)' >/dev/null 2>&1; then
8178 as_expr=expr
8179else
8180 as_expr=false
8181fi
8182
8183rm -f conf$$ conf$$.exe conf$$.file
8184echo >conf$$.file
8185if ln -s conf$$.file conf$$ 2>/dev/null; then
8186 # We could just check for DJGPP; but this test a) works b) is more generic
8187 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8188 if test -f conf$$.exe; then
8189 # Don't use ln at all; we don't have any links
8190 as_ln_s='cp -p'
8191 else
8192 as_ln_s='ln -s'
8193 fi
8194elif ln conf$$.file conf$$ 2>/dev/null; then
8195 as_ln_s=ln
8196else
8197 as_ln_s='cp -p'
8198fi
8199rm -f conf$$ conf$$.exe conf$$.file
8200
8201if mkdir -p . 2>/dev/null; then
8202 as_mkdir_p=:
8203else
8204 test -d ./-p && rmdir ./-p
8205 as_mkdir_p=false
8206fi
8207
8208as_executable_p="test -f"
8209
8210# Sed expression to map a string onto a valid CPP name.
8211as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8212
8213# Sed expression to map a string onto a valid variable name.
8214as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8215
8216
8217# IFS
8218# We need space, tab and new line, in precisely that order.
8219as_nl='
8220'
8221IFS=" $as_nl"
8222
8223# CDPATH.
8224$as_unset CDPATH
8225
8226exec 6>&1
8227
8228# Open the log real soon, to keep \$[0] and so on meaningful, and to
8229# report actual input values of CONFIG_FILES etc. instead of their
8230# values after options handling. Logging --version etc. is OK.
8231exec 5>>config.log
8232{
8233 echo
8234 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8235## Running $as_me. ##
8236_ASBOX
8237} >&5
8238cat >&5 <<_CSEOF
8239
8240This file was extended by $as_me, which was
8241generated by GNU Autoconf 2.59. Invocation command line was
8242
8243 CONFIG_FILES = $CONFIG_FILES
8244 CONFIG_HEADERS = $CONFIG_HEADERS
8245 CONFIG_LINKS = $CONFIG_LINKS
8246 CONFIG_COMMANDS = $CONFIG_COMMANDS
8247 $ $0 $@
8248
8249_CSEOF
8250echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8251echo >&5
8252_ACEOF
8253
8254# Files that config.status was made for.
8255if test -n "$ac_config_files"; then
8256 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8257fi
8258
8259if test -n "$ac_config_headers"; then
8260 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8261fi
8262
8263if test -n "$ac_config_links"; then
8264 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8265fi
8266
8267if test -n "$ac_config_commands"; then
8268 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8269fi
8270
8271cat >>$CONFIG_STATUS <<\_ACEOF
8272
8273ac_cs_usage="\
8274\`$as_me' instantiates files from templates according to the
8275current configuration.
8276
8277Usage: $0 [OPTIONS] [FILE]...
8278
8279 -h, --help print this help, then exit
8280 -V, --version print version number, then exit
8281 -q, --quiet do not print progress messages
8282 -d, --debug don't remove temporary files
8283 --recheck update $as_me by reconfiguring in the same conditions
8284 --file=FILE[:TEMPLATE]
8285 instantiate the configuration file FILE
8286 --header=FILE[:TEMPLATE]
8287 instantiate the configuration header FILE
8288
8289Configuration files:
8290$config_files
8291
8292Configuration headers:
8293$config_headers
8294
8295Report bugs to <[email protected]>."
8296_ACEOF
8297
8298cat >>$CONFIG_STATUS <<_ACEOF
8299ac_cs_version="\\
8300config.status
8301configured by $0, generated by GNU Autoconf 2.59,
8302 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8303
8304Copyright (C) 2003 Free Software Foundation, Inc.
8305This config.status script is free software; the Free Software Foundation
8306gives unlimited permission to copy, distribute and modify it."
8307srcdir=$srcdir
8308INSTALL="$INSTALL"
8309_ACEOF
8310
8311cat >>$CONFIG_STATUS <<\_ACEOF
8312# If no file are specified by the user, then we need to provide default
8313# value. By we need to know if files were specified by the user.
8314ac_need_defaults=:
8315while test $# != 0
8316do
8317 case $1 in
8318 --*=*)
8319 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8320 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8321 ac_shift=:
8322 ;;
8323 -*)
8324 ac_option=$1
8325 ac_optarg=$2
8326 ac_shift=shift
8327 ;;
8328 *) # This is not an option, so the user has probably given explicit
8329 # arguments.
8330 ac_option=$1
8331 ac_need_defaults=false;;
8332 esac
8333
8334 case $ac_option in
8335 # Handling of the options.
8336_ACEOF
8337cat >>$CONFIG_STATUS <<\_ACEOF
8338 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8339 ac_cs_recheck=: ;;
8340 --version | --vers* | -V )
8341 echo "$ac_cs_version"; exit 0 ;;
8342 --he | --h)
8343 # Conflict between --help and --header
8344 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8345Try \`$0 --help' for more information." >&5
8346echo "$as_me: error: ambiguous option: $1
8347Try \`$0 --help' for more information." >&2;}
8348 { (exit 1); exit 1; }; };;
8349 --help | --hel | -h )
8350 echo "$ac_cs_usage"; exit 0 ;;
8351 --debug | --d* | -d )
8352 debug=: ;;
8353 --file | --fil | --fi | --f )
8354 $ac_shift
8355 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8356 ac_need_defaults=false;;
8357 --header | --heade | --head | --hea )
8358 $ac_shift
8359 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8360 ac_need_defaults=false;;
8361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8362 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8363 ac_cs_silent=: ;;
8364
8365 # This is an error.
8366 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8367Try \`$0 --help' for more information." >&5
8368echo "$as_me: error: unrecognized option: $1
8369Try \`$0 --help' for more information." >&2;}
8370 { (exit 1); exit 1; }; } ;;
8371
8372 *) ac_config_targets="$ac_config_targets $1" ;;
8373
8374 esac
8375 shift
8376done
8377
8378ac_configure_extra_args=
8379
8380if $ac_cs_silent; then
8381 exec 6>/dev/null
8382 ac_configure_extra_args="$ac_configure_extra_args --silent"
8383fi
8384
8385_ACEOF
8386cat >>$CONFIG_STATUS <<_ACEOF
8387if \$ac_cs_recheck; then
8388 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8389 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8390fi
8391
8392_ACEOF
8393
8394
8395
8396
8397
8398cat >>$CONFIG_STATUS <<\_ACEOF
8399for ac_config_target in $ac_config_targets
8400do
8401 case "$ac_config_target" in
8402 # Handling of arguments.
8403 "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
8404 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8405 "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
8406 "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
8407 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8408 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8409echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8410 { (exit 1); exit 1; }; };;
8411 esac
8412done
8413
8414# If the user did not use the arguments to specify the items to instantiate,
8415# then the envvar interface is used. Set only those that are not.
8416# We use the long form for the default assignment because of an extremely
8417# bizarre bug on SunOS 4.1.3.
8418if $ac_need_defaults; then
8419 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8420 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8421fi
8422
8423# Have a temporary directory for convenience. Make it in the build tree
8424# simply because there is no reason to put it here, and in addition,
8425# creating and moving files from /tmp can sometimes cause problems.
8426# Create a temporary directory, and hook for its removal unless debugging.
8427$debug ||
8428{
8429 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8430 trap '{ (exit 1); exit 1; }' 1 2 13 15
8431}
8432
8433# Create a (secure) tmp directory for tmp files.
8434
8435{
8436 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8437 test -n "$tmp" && test -d "$tmp"
8438} ||
8439{
8440 tmp=./confstat$$-$RANDOM
8441 (umask 077 && mkdir $tmp)
8442} ||
8443{
8444 echo "$me: cannot create a temporary directory in ." >&2
8445 { (exit 1); exit 1; }
8446}
8447
8448_ACEOF
8449
8450cat >>$CONFIG_STATUS <<_ACEOF
8451
8452#
8453# CONFIG_FILES section.
8454#
8455
8456# No need to generate the scripts if there are no CONFIG_FILES.
8457# This happens for instance when ./config.status config.h
8458if test -n "\$CONFIG_FILES"; then
8459 # Protect against being on the right side of a sed subst in config.status.
8460 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8461 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8462s,@SHELL@,$SHELL,;t t
8463s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8464s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8465s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8466s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8467s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8468s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8469s,@exec_prefix@,$exec_prefix,;t t
8470s,@prefix@,$prefix,;t t
8471s,@program_transform_name@,$program_transform_name,;t t
8472s,@bindir@,$bindir,;t t
8473s,@sbindir@,$sbindir,;t t
8474s,@libexecdir@,$libexecdir,;t t
8475s,@datadir@,$datadir,;t t
8476s,@sysconfdir@,$sysconfdir,;t t
8477s,@sharedstatedir@,$sharedstatedir,;t t
8478s,@localstatedir@,$localstatedir,;t t
8479s,@libdir@,$libdir,;t t
8480s,@includedir@,$includedir,;t t
8481s,@oldincludedir@,$oldincludedir,;t t
8482s,@infodir@,$infodir,;t t
8483s,@mandir@,$mandir,;t t
8484s,@build_alias@,$build_alias,;t t
8485s,@host_alias@,$host_alias,;t t
8486s,@target_alias@,$target_alias,;t t
8487s,@DEFS@,$DEFS,;t t
8488s,@ECHO_C@,$ECHO_C,;t t
8489s,@ECHO_N@,$ECHO_N,;t t
8490s,@ECHO_T@,$ECHO_T,;t t
8491s,@LIBS@,$LIBS,;t t
8492s,@PACKAGE@,$PACKAGE,;t t
8493s,@VERSION@,$VERSION,;t t
8494s,@USE_FASTCGI@,$USE_FASTCGI,;t t
8495s,@USE_LANGACTION@,$USE_LANGACTION,;t t
8496s,@USE_CORBA@,$USE_CORBA,;t t
8497s,@MICO_DIR@,$MICO_DIR,;t t
8498s,@USE_Z3950@,$USE_Z3950,;t t
8499s,@USE_YAZ@,$USE_YAZ,;t t
8500s,@ENABLE_JAVA@,$ENABLE_JAVA,;t t
8501s,@USE_JDBM@,$USE_JDBM,;t t
8502s,@USE_GDBM@,$USE_GDBM,;t t
8503s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
8504s,@USE_SQLITE@,$USE_SQLITE,;t t
8505s,@ENABLE_JNI@,$ENABLE_JNI,;t t
8506s,@ENABLE_MG@,$ENABLE_MG,;t t
8507s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
8508s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
8509s,@LDFLAGS@,$LDFLAGS,;t t
8510s,@CFLAGS@,$CFLAGS,;t t
8511s,@CC@,$CC,;t t
8512s,@CPPFLAGS@,$CPPFLAGS,;t t
8513s,@ac_ct_CC@,$ac_ct_CC,;t t
8514s,@EXEEXT@,$EXEEXT,;t t
8515s,@OBJEXT@,$OBJEXT,;t t
8516s,@CXX@,$CXX,;t t
8517s,@CXXFLAGS@,$CXXFLAGS,;t t
8518s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8519s,@JAVA@,$JAVA,;t t
8520s,@uudecode@,$uudecode,;t t
8521s,@JAVAC@,$JAVAC,;t t
8522s,@JAVACFLAGS@,$JAVACFLAGS,;t t
8523s,@AWK@,$AWK,;t t
8524s,@YACC@,$YACC,;t t
8525s,@build@,$build,;t t
8526s,@build_cpu@,$build_cpu,;t t
8527s,@build_vendor@,$build_vendor,;t t
8528s,@build_os@,$build_os,;t t
8529s,@host@,$host,;t t
8530s,@host_cpu@,$host_cpu,;t t
8531s,@host_vendor@,$host_vendor,;t t
8532s,@host_os@,$host_os,;t t
8533s,@target@,$target,;t t
8534s,@target_cpu@,$target_cpu,;t t
8535s,@target_vendor@,$target_vendor,;t t
8536s,@target_os@,$target_os,;t t
8537s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8538s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8539s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8540s,@LN_S@,$LN_S,;t t
8541s,@SET_MAKE@,$SET_MAKE,;t t
8542s,@RANLIB@,$RANLIB,;t t
8543s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8544s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
8545s,@MICO_VER@,$MICO_VER,;t t
8546s,@CPP@,$CPP,;t t
8547s,@EGREP@,$EGREP,;t t
8548s,@U@,$U,;t t
8549s,@ANSI2KNR@,$ANSI2KNR,;t t
8550s,@ALLOCA@,$ALLOCA,;t t
8551s,@LIBOBJS@,$LIBOBJS,;t t
8552s,@STATIC@,$STATIC,;t t
8553s,@gsdlos@,$gsdlos,;t t
8554s,@gsdlarch@,$gsdlarch,;t t
8555s,@MODULEDIRS@,$MODULEDIRS,;t t
8556s,@subdirs@,$subdirs,;t t
8557s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8558CEOF
8559
8560_ACEOF
8561
8562 cat >>$CONFIG_STATUS <<\_ACEOF
8563 # Split the substitutions into bite-sized pieces for seds with
8564 # small command number limits, like on Digital OSF/1 and HP-UX.
8565 ac_max_sed_lines=48
8566 ac_sed_frag=1 # Number of current file.
8567 ac_beg=1 # First line for current file.
8568 ac_end=$ac_max_sed_lines # Line after last line for current file.
8569 ac_more_lines=:
8570 ac_sed_cmds=
8571 while $ac_more_lines; do
8572 if test $ac_beg -gt 1; then
8573 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8574 else
8575 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8576 fi
8577 if test ! -s $tmp/subs.frag; then
8578 ac_more_lines=false
8579 else
8580 # The purpose of the label and of the branching condition is to
8581 # speed up the sed processing (if there are no `@' at all, there
8582 # is no need to browse any of the substitutions).
8583 # These are the two extra sed commands mentioned above.
8584 (echo ':t
8585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8586 if test -z "$ac_sed_cmds"; then
8587 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8588 else
8589 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8590 fi
8591 ac_sed_frag=`expr $ac_sed_frag + 1`
8592 ac_beg=$ac_end
8593 ac_end=`expr $ac_end + $ac_max_sed_lines`
8594 fi
8595 done
8596 if test -z "$ac_sed_cmds"; then
8597 ac_sed_cmds=cat
8598 fi
8599fi # test -n "$CONFIG_FILES"
8600
8601_ACEOF
8602cat >>$CONFIG_STATUS <<\_ACEOF
8603for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8604 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8605 case $ac_file in
8606 - | *:- | *:-:* ) # input from stdin
8607 cat >$tmp/stdin
8608 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8609 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8610 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8612 * ) ac_file_in=$ac_file.in ;;
8613 esac
8614
8615 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8616 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8617$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8618 X"$ac_file" : 'X\(//\)[^/]' \| \
8619 X"$ac_file" : 'X\(//\)$' \| \
8620 X"$ac_file" : 'X\(/\)' \| \
8621 . : '\(.\)' 2>/dev/null ||
8622echo X"$ac_file" |
8623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8625 /^X\(\/\/\)$/{ s//\1/; q; }
8626 /^X\(\/\).*/{ s//\1/; q; }
8627 s/.*/./; q'`
8628 { if $as_mkdir_p; then
8629 mkdir -p "$ac_dir"
8630 else
8631 as_dir="$ac_dir"
8632 as_dirs=
8633 while test ! -d "$as_dir"; do
8634 as_dirs="$as_dir $as_dirs"
8635 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8636$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8637 X"$as_dir" : 'X\(//\)[^/]' \| \
8638 X"$as_dir" : 'X\(//\)$' \| \
8639 X"$as_dir" : 'X\(/\)' \| \
8640 . : '\(.\)' 2>/dev/null ||
8641echo X"$as_dir" |
8642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8644 /^X\(\/\/\)$/{ s//\1/; q; }
8645 /^X\(\/\).*/{ s//\1/; q; }
8646 s/.*/./; q'`
8647 done
8648 test ! -n "$as_dirs" || mkdir $as_dirs
8649 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8650echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8651 { (exit 1); exit 1; }; }; }
8652
8653 ac_builddir=.
8654
8655if test "$ac_dir" != .; then
8656 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8657 # A "../" for each directory in $ac_dir_suffix.
8658 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8659else
8660 ac_dir_suffix= ac_top_builddir=
8661fi
8662
8663case $srcdir in
8664 .) # No --srcdir option. We are building in place.
8665 ac_srcdir=.
8666 if test -z "$ac_top_builddir"; then
8667 ac_top_srcdir=.
8668 else
8669 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8670 fi ;;
8671 [\\/]* | ?:[\\/]* ) # Absolute path.
8672 ac_srcdir=$srcdir$ac_dir_suffix;
8673 ac_top_srcdir=$srcdir ;;
8674 *) # Relative path.
8675 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8676 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8677esac
8678
8679# Do not use `cd foo && pwd` to compute absolute paths, because
8680# the directories may not exist.
8681case `pwd` in
8682.) ac_abs_builddir="$ac_dir";;
8683*)
8684 case "$ac_dir" in
8685 .) ac_abs_builddir=`pwd`;;
8686 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8687 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8688 esac;;
8689esac
8690case $ac_abs_builddir in
8691.) ac_abs_top_builddir=${ac_top_builddir}.;;
8692*)
8693 case ${ac_top_builddir}. in
8694 .) ac_abs_top_builddir=$ac_abs_builddir;;
8695 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8696 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8697 esac;;
8698esac
8699case $ac_abs_builddir in
8700.) ac_abs_srcdir=$ac_srcdir;;
8701*)
8702 case $ac_srcdir in
8703 .) ac_abs_srcdir=$ac_abs_builddir;;
8704 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8705 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8706 esac;;
8707esac
8708case $ac_abs_builddir in
8709.) ac_abs_top_srcdir=$ac_top_srcdir;;
8710*)
8711 case $ac_top_srcdir in
8712 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8713 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8714 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8715 esac;;
8716esac
8717
8718
8719 case $INSTALL in
8720 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8721 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8722 esac
8723
8724 if test x"$ac_file" != x-; then
8725 { echo "$as_me:$LINENO: creating $ac_file" >&5
8726echo "$as_me: creating $ac_file" >&6;}
8727 rm -f "$ac_file"
8728 fi
8729 # Let's still pretend it is `configure' which instantiates (i.e., don't
8730 # use $as_me), people would be surprised to read:
8731 # /* config.h. Generated by config.status. */
8732 if test x"$ac_file" = x-; then
8733 configure_input=
8734 else
8735 configure_input="$ac_file. "
8736 fi
8737 configure_input=$configure_input"Generated from `echo $ac_file_in |
8738 sed 's,.*/,,'` by configure."
8739
8740 # First look for the input files in the build tree, otherwise in the
8741 # src tree.
8742 ac_file_inputs=`IFS=:
8743 for f in $ac_file_in; do
8744 case $f in
8745 -) echo $tmp/stdin ;;
8746 [\\/$]*)
8747 # Absolute (can't be DOS-style, as IFS=:)
8748 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8749echo "$as_me: error: cannot find input file: $f" >&2;}
8750 { (exit 1); exit 1; }; }
8751 echo "$f";;
8752 *) # Relative
8753 if test -f "$f"; then
8754 # Build tree
8755 echo "$f"
8756 elif test -f "$srcdir/$f"; then
8757 # Source tree
8758 echo "$srcdir/$f"
8759 else
8760 # /dev/null tree
8761 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8762echo "$as_me: error: cannot find input file: $f" >&2;}
8763 { (exit 1); exit 1; }; }
8764 fi;;
8765 esac
8766 done` || { (exit 1); exit 1; }
8767_ACEOF
8768cat >>$CONFIG_STATUS <<_ACEOF
8769 sed "$ac_vpsub
8770$extrasub
8771_ACEOF
8772cat >>$CONFIG_STATUS <<\_ACEOF
8773:t
8774/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8775s,@configure_input@,$configure_input,;t t
8776s,@srcdir@,$ac_srcdir,;t t
8777s,@abs_srcdir@,$ac_abs_srcdir,;t t
8778s,@top_srcdir@,$ac_top_srcdir,;t t
8779s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8780s,@builddir@,$ac_builddir,;t t
8781s,@abs_builddir@,$ac_abs_builddir,;t t
8782s,@top_builddir@,$ac_top_builddir,;t t
8783s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8784s,@INSTALL@,$ac_INSTALL,;t t
8785" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8786 rm -f $tmp/stdin
8787 if test x"$ac_file" != x-; then
8788 mv $tmp/out $ac_file
8789 else
8790 cat $tmp/out
8791 rm -f $tmp/out
8792 fi
8793
8794done
8795_ACEOF
8796cat >>$CONFIG_STATUS <<\_ACEOF
8797
8798#
8799# CONFIG_HEADER section.
8800#
8801
8802# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8803# NAME is the cpp macro being defined and VALUE is the value it is being given.
8804#
8805# ac_d sets the value in "#define NAME VALUE" lines.
8806ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8807ac_dB='[ ].*$,\1#\2'
8808ac_dC=' '
8809ac_dD=',;t'
8810# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8811ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8812ac_uB='$,\1#\2define\3'
8813ac_uC=' '
8814ac_uD=',;t'
8815
8816for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8817 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8818 case $ac_file in
8819 - | *:- | *:-:* ) # input from stdin
8820 cat >$tmp/stdin
8821 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8822 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8823 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8824 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8825 * ) ac_file_in=$ac_file.in ;;
8826 esac
8827
8828 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8829echo "$as_me: creating $ac_file" >&6;}
8830
8831 # First look for the input files in the build tree, otherwise in the
8832 # src tree.
8833 ac_file_inputs=`IFS=:
8834 for f in $ac_file_in; do
8835 case $f in
8836 -) echo $tmp/stdin ;;
8837 [\\/$]*)
8838 # Absolute (can't be DOS-style, as IFS=:)
8839 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8840echo "$as_me: error: cannot find input file: $f" >&2;}
8841 { (exit 1); exit 1; }; }
8842 # Do quote $f, to prevent DOS paths from being IFS'd.
8843 echo "$f";;
8844 *) # Relative
8845 if test -f "$f"; then
8846 # Build tree
8847 echo "$f"
8848 elif test -f "$srcdir/$f"; then
8849 # Source tree
8850 echo "$srcdir/$f"
8851 else
8852 # /dev/null tree
8853 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8854echo "$as_me: error: cannot find input file: $f" >&2;}
8855 { (exit 1); exit 1; }; }
8856 fi;;
8857 esac
8858 done` || { (exit 1); exit 1; }
8859 # Remove the trailing spaces.
8860 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8861
8862_ACEOF
8863
8864# Transform confdefs.h into two sed scripts, `conftest.defines' and
8865# `conftest.undefs', that substitutes the proper values into
8866# config.h.in to produce config.h. The first handles `#define'
8867# templates, and the second `#undef' templates.
8868# And first: Protect against being on the right side of a sed subst in
8869# config.status. Protect against being in an unquoted here document
8870# in config.status.
8871rm -f conftest.defines conftest.undefs
8872# Using a here document instead of a string reduces the quoting nightmare.
8873# Putting comments in sed scripts is not portable.
8874#
8875# `end' is used to avoid that the second main sed command (meant for
8876# 0-ary CPP macros) applies to n-ary macro definitions.
8877# See the Autoconf documentation for `clear'.
8878cat >confdef2sed.sed <<\_ACEOF
8879s/[\\&,]/\\&/g
8880s,[\\$`],\\&,g
8881t clear
8882: clear
8883s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8884t end
8885s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8886: end
8887_ACEOF
8888# If some macros were called several times there might be several times
8889# the same #defines, which is useless. Nevertheless, we may not want to
8890# sort them, since we want the *last* AC-DEFINE to be honored.
8891uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8892sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8893rm -f confdef2sed.sed
8894
8895# This sed command replaces #undef with comments. This is necessary, for
8896# example, in the case of _POSIX_SOURCE, which is predefined and required
8897# on some systems where configure will not decide to define it.
8898cat >>conftest.undefs <<\_ACEOF
8899s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8900_ACEOF
8901
8902# Break up conftest.defines because some shells have a limit on the size
8903# of here documents, and old seds have small limits too (100 cmds).
8904echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8905echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8906echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8907echo ' :' >>$CONFIG_STATUS
8908rm -f conftest.tail
8909while grep . conftest.defines >/dev/null
8910do
8911 # Write a limited-size here document to $tmp/defines.sed.
8912 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8913 # Speed up: don't consider the non `#define' lines.
8914 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8915 # Work around the forget-to-reset-the-flag bug.
8916 echo 't clr' >>$CONFIG_STATUS
8917 echo ': clr' >>$CONFIG_STATUS
8918 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8919 echo 'CEOF
8920 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8921 rm -f $tmp/in
8922 mv $tmp/out $tmp/in
8923' >>$CONFIG_STATUS
8924 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8925 rm -f conftest.defines
8926 mv conftest.tail conftest.defines
8927done
8928rm -f conftest.defines
8929echo ' fi # grep' >>$CONFIG_STATUS
8930echo >>$CONFIG_STATUS
8931
8932# Break up conftest.undefs because some shells have a limit on the size
8933# of here documents, and old seds have small limits too (100 cmds).
8934echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8935rm -f conftest.tail
8936while grep . conftest.undefs >/dev/null
8937do
8938 # Write a limited-size here document to $tmp/undefs.sed.
8939 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8940 # Speed up: don't consider the non `#undef'
8941 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8942 # Work around the forget-to-reset-the-flag bug.
8943 echo 't clr' >>$CONFIG_STATUS
8944 echo ': clr' >>$CONFIG_STATUS
8945 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8946 echo 'CEOF
8947 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8948 rm -f $tmp/in
8949 mv $tmp/out $tmp/in
8950' >>$CONFIG_STATUS
8951 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8952 rm -f conftest.undefs
8953 mv conftest.tail conftest.undefs
8954done
8955rm -f conftest.undefs
8956
8957cat >>$CONFIG_STATUS <<\_ACEOF
8958 # Let's still pretend it is `configure' which instantiates (i.e., don't
8959 # use $as_me), people would be surprised to read:
8960 # /* config.h. Generated by config.status. */
8961 if test x"$ac_file" = x-; then
8962 echo "/* Generated by configure. */" >$tmp/config.h
8963 else
8964 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8965 fi
8966 cat $tmp/in >>$tmp/config.h
8967 rm -f $tmp/in
8968 if test x"$ac_file" != x-; then
8969 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8970 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8971echo "$as_me: $ac_file is unchanged" >&6;}
8972 else
8973 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8974$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8975 X"$ac_file" : 'X\(//\)[^/]' \| \
8976 X"$ac_file" : 'X\(//\)$' \| \
8977 X"$ac_file" : 'X\(/\)' \| \
8978 . : '\(.\)' 2>/dev/null ||
8979echo X"$ac_file" |
8980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8981 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8982 /^X\(\/\/\)$/{ s//\1/; q; }
8983 /^X\(\/\).*/{ s//\1/; q; }
8984 s/.*/./; q'`
8985 { if $as_mkdir_p; then
8986 mkdir -p "$ac_dir"
8987 else
8988 as_dir="$ac_dir"
8989 as_dirs=
8990 while test ! -d "$as_dir"; do
8991 as_dirs="$as_dir $as_dirs"
8992 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8993$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8994 X"$as_dir" : 'X\(//\)[^/]' \| \
8995 X"$as_dir" : 'X\(//\)$' \| \
8996 X"$as_dir" : 'X\(/\)' \| \
8997 . : '\(.\)' 2>/dev/null ||
8998echo X"$as_dir" |
8999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9001 /^X\(\/\/\)$/{ s//\1/; q; }
9002 /^X\(\/\).*/{ s//\1/; q; }
9003 s/.*/./; q'`
9004 done
9005 test ! -n "$as_dirs" || mkdir $as_dirs
9006 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9007echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9008 { (exit 1); exit 1; }; }; }
9009
9010 rm -f $ac_file
9011 mv $tmp/config.h $ac_file
9012 fi
9013 else
9014 cat $tmp/config.h
9015 rm -f $tmp/config.h
9016 fi
9017done
9018_ACEOF
9019
9020cat >>$CONFIG_STATUS <<\_ACEOF
9021
9022{ (exit 0); exit 0; }
9023_ACEOF
9024chmod +x $CONFIG_STATUS
9025ac_clean_files=$ac_clean_files_save
9026
9027
9028# configure is writing to config.log, and then calls config.status.
9029# config.status does its own redirection, appending to config.log.
9030# Unfortunately, on DOS this fails, as config.log is still kept open
9031# by configure, so config.status won't be able to write to it; its
9032# output is simply discarded. So we exec the FD to /dev/null,
9033# effectively closing config.log, so it can be properly (re)opened and
9034# appended to by config.status. When coming back to configure, we
9035# need to make the FD available again.
9036if test "$no_create" != yes; then
9037 ac_cs_success=:
9038 ac_config_status_args=
9039 test "$silent" = yes &&
9040 ac_config_status_args="$ac_config_status_args --quiet"
9041 exec 5>/dev/null
9042 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9043 exec 5>>config.log
9044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9045 # would make configure fail if this is the last instruction.
9046 $ac_cs_success || { (exit 1); exit 1; }
9047fi
9048
9049#
9050# CONFIG_SUBDIRS section.
9051#
9052if test "$no_recursion" != yes; then
9053
9054 # Remove --cache-file and --srcdir arguments so they do not pile up.
9055 ac_sub_configure_args=
9056 ac_prev=
9057 for ac_arg in $ac_configure_args; do
9058 if test -n "$ac_prev"; then
9059 ac_prev=
9060 continue
9061 fi
9062 case $ac_arg in
9063 -cache-file | --cache-file | --cache-fil | --cache-fi \
9064 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9065 ac_prev=cache_file ;;
9066 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9067 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9068 | --c=*)
9069 ;;
9070 --config-cache | -C)
9071 ;;
9072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9073 ac_prev=srcdir ;;
9074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9075 ;;
9076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9077 ac_prev=prefix ;;
9078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9079 ;;
9080 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9081 esac
9082 done
9083
9084 # Always prepend --prefix to ensure using the same prefix
9085 # in subdir configurations.
9086 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
9087
9088 ac_popdir=`pwd`
9089 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9090
9091 # Do not complain, so a configure script can configure whichever
9092 # parts of a large source tree are present.
9093 test -d $srcdir/$ac_dir || continue
9094
9095 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
9096echo "$as_me: configuring in $ac_dir" >&6;}
9097 { if $as_mkdir_p; then
9098 mkdir -p "$ac_dir"
9099 else
9100 as_dir="$ac_dir"
9101 as_dirs=
9102 while test ! -d "$as_dir"; do
9103 as_dirs="$as_dir $as_dirs"
9104 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9105$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9106 X"$as_dir" : 'X\(//\)[^/]' \| \
9107 X"$as_dir" : 'X\(//\)$' \| \
9108 X"$as_dir" : 'X\(/\)' \| \
9109 . : '\(.\)' 2>/dev/null ||
9110echo X"$as_dir" |
9111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9113 /^X\(\/\/\)$/{ s//\1/; q; }
9114 /^X\(\/\).*/{ s//\1/; q; }
9115 s/.*/./; q'`
9116 done
9117 test ! -n "$as_dirs" || mkdir $as_dirs
9118 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9119echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9120 { (exit 1); exit 1; }; }; }
9121
9122 ac_builddir=.
9123
9124if test "$ac_dir" != .; then
9125 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9126 # A "../" for each directory in $ac_dir_suffix.
9127 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9128else
9129 ac_dir_suffix= ac_top_builddir=
9130fi
9131
9132case $srcdir in
9133 .) # No --srcdir option. We are building in place.
9134 ac_srcdir=.
9135 if test -z "$ac_top_builddir"; then
9136 ac_top_srcdir=.
9137 else
9138 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9139 fi ;;
9140 [\\/]* | ?:[\\/]* ) # Absolute path.
9141 ac_srcdir=$srcdir$ac_dir_suffix;
9142 ac_top_srcdir=$srcdir ;;
9143 *) # Relative path.
9144 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9145 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9146esac
9147
9148# Do not use `cd foo && pwd` to compute absolute paths, because
9149# the directories may not exist.
9150case `pwd` in
9151.) ac_abs_builddir="$ac_dir";;
9152*)
9153 case "$ac_dir" in
9154 .) ac_abs_builddir=`pwd`;;
9155 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9156 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9157 esac;;
9158esac
9159case $ac_abs_builddir in
9160.) ac_abs_top_builddir=${ac_top_builddir}.;;
9161*)
9162 case ${ac_top_builddir}. in
9163 .) ac_abs_top_builddir=$ac_abs_builddir;;
9164 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9165 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9166 esac;;
9167esac
9168case $ac_abs_builddir in
9169.) ac_abs_srcdir=$ac_srcdir;;
9170*)
9171 case $ac_srcdir in
9172 .) ac_abs_srcdir=$ac_abs_builddir;;
9173 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9174 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9175 esac;;
9176esac
9177case $ac_abs_builddir in
9178.) ac_abs_top_srcdir=$ac_top_srcdir;;
9179*)
9180 case $ac_top_srcdir in
9181 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9182 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9183 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9184 esac;;
9185esac
9186
9187
9188 cd $ac_dir
9189
9190 # Check for guested configure; otherwise get Cygnus style configure.
9191 if test -f $ac_srcdir/configure.gnu; then
9192 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
9193 elif test -f $ac_srcdir/configure; then
9194 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
9195 elif test -f $ac_srcdir/configure.in; then
9196 ac_sub_configure=$ac_configure
9197 else
9198 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9199echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9200 ac_sub_configure=
9201 fi
9202
9203 # The recursion is here.
9204 if test -n "$ac_sub_configure"; then
9205 # Make the cache file name correct relative to the subdirectory.
9206 case $cache_file in
9207 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9208 *) # Relative path.
9209 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
9210 esac
9211
9212 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9213echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9214 # The eval makes quoting arguments work.
9215 eval $ac_sub_configure $ac_sub_configure_args \
9216 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
9217 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9218echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9219 { (exit 1); exit 1; }; }
9220 fi
9221
9222 cd $ac_popdir
9223 done
9224fi
9225
9226
9227
Note: See TracBrowser for help on using the repository browser.