source: tags/gsdl-2_70u-distribution/gsdl/src/mgpp/configure@ 11745

Last change on this file since 11745 was 10850, checked in by kjdon, 19 years ago

changed LIBOBJS=... to AC_LIBOBJ. added in test for endianness

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