source: main/trunk/greenstone2/common-src/indexers/mg/configure@ 22058

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

Changes to makefiles to 1. incorporate USE_GDBM and USE_JDBM flags (and USE_SQLITE) in most places so that the DEFINES variable is set at all times. This is necessary to ensure that all classes that contain objects with gdbm and jdbm members are of a consistent size. Else we've had experience with Greenstone crashing with memory errors (to do with the similar ENABLE_indexer flags). 2. ENABLE_JDBM is now USE_JDBM. 3. Not everything works now. It still compiles the default way, but the disable-gdbm flag is causing trouble when compiling argdb in recpt since it uses that.

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