source: indexers/trunk/mgpp/configure@ 14170

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

Changed ICONV to iconv so this works on Solaris and other non-Linux machines.

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