source: main/tags/2.80/gsdl/configure@ 24527

Last change on this file since 24527 was 14169, checked in by mdewsnip, 17 years ago

Changed ICONV to iconv so this works on Solaris and other non-Linux machines, and fixed LDFLAGS so you can set it as an option to ./configure.

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