source: main/trunk/greenstone2/runtime-src/configure@ 24901

Last change on this file since 24901 was 24901, checked in by ak19, 12 years ago

GSDLARCH used in Linux makefiles when working out the cgi-bin path (now cgi-bin\GSDL_OS_ARCH) to install the binaries into.

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