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

Last change on this file since 21365 was 21365, checked in by ak19, 14 years ago

New configuration and compilation flag ENABLE_JNI added which will be disabled by default for GS2 since in general GS doesn't need mg and mgpp compiled up with jni. GS3's build.xml will need to explicitly set ENABLE_JNI to compile mg and mgpp with jni.

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