source: trunk/gs2build-extra/configure@ 13731

Last change on this file since 13731 was 13731, checked in by kjdon, 17 years ago

changes to use new indexers repository and not mg/mgpp from gs2

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