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

Last change on this file since 21326 was 20854, checked in by ak19, 14 years ago

Katherine has made changes to the toplevel configure.in and runtime-src configure.in (and their configure) files to fix the recent problem of Oran and Dr Bainbridge's code changes not working together: Oran's code successfully got the libexpat and libiconv libraries statically linked into library.cgi while Dr Bainbridge got the apache web server code to statically link successfully against the libiconv library in common-src. However, Oran's changes when included would cause compilation to fail to generate the apache-httpd output folder (it wasn't being compiled up in fact). Katherine's changes now allow it all to work together.

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