source: indexers/trunk/mgpp/configure@ 15560

Last change on this file since 15560 was 15560, checked in by davidb, 14 years ago

Addition of COMPAT32BITFLAGS so mg and mgpp can compile on a 64-bit machine

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