source: gsdl/trunk/common-src/configure@ 20832

Last change on this file since 20832 was 20832, checked in by ak19, 15 years ago

Libiconv and libexpat are now compiled up during configure time rather than during Make. Committing files affected with adjustments related to this change, of which setup.bash adds the lib folder in common-src packages (generated by compiling libiconv) to the LD_LIBRARY_PATH for now. The last is probably not necessary since libiconv is generated as a static library (not shared).

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