source: main/tags/2.81rc/gsdl/common-src/configure@ 21188

Last change on this file since 21188 was 16595, checked in by oranfry, 16 years ago

Removed perl test as this in done in build-src's configure

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