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

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

Undoing the commits of 22058 to the indexer folder: USE_GDBM, USE_JDBM are not relevant here (or USE_SQLITE).

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