source: main/tags/3.01/gs2build-extra/configure@ 21112

Last change on this file since 21112 was 10864, checked in by kjdon, 18 years ago

something went wrong with last autoconf, so redid it (in gs2build directory)

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