source: indexers/trunk/mg/configure@ 19835

Last change on this file since 19835 was 19835, checked in by mdewsnip, 15 years ago

Now touches the src/text/bool_parser.c file to prevent problems with the bool_paser.y file sometimes having a later timestamp when checked out. If this isn't done it tries to regenerate the bool_parser.c file from bool_parser.y, and this fails if you don't have the right packages installed (yacc etc.)

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