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

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

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

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