source: trunk/gsdl/configure@ 12601

Last change on this file since 12601 was 12492, checked in by kjdon, 18 years ago

added a new flag: disable-yaz. yaz is now compiled by default (for use with downloading in GLI), but z3950 support in greenstone library is still left under the control of --enable-z3950. the disable-yaz flag turns off the compilation of yaz for those compiling from source if they don't need it

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