source: trunk/mgpp/configure@ 13482

Last change on this file since 13482 was 13482, checked in by shaoqun, 17 years ago

added the supports for accentfolding

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