source: gsdl/trunk/build-src/configure@ 16571

Last change on this file since 16571 was 16571, checked in by davidb, 16 years ago

Further tailoring of directories for new build/runtime split

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