source: main/trunk/gs2runtime/configure@ 21445

Last change on this file since 21445 was 21445, checked in by davidb, 14 years ago

autoconf generated file

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