source: main/trunk/greenstone3/src/packages/javagdbm/configure@ 21433

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

Extra logic to COMPAT32BIT flag added for when mg and mgpp not enabled

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 154.5 KB
Line 
1#! /bin/sh
2# From configure.in Revision: 18343 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59.
5#
6# Copyright (C) 2003 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23DUALCASE=1; export DUALCASE # for MKS sh
24
25# Support unset when possible.
26if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27 as_unset=unset
28else
29 as_unset=false
30fi
31
32
33# Work around bugs in pre-3.0 UWIN ksh.
34$as_unset ENV MAIL MAILPATH
35PS1='$ '
36PS2='> '
37PS4='+ '
38
39# NLS nuisances.
40for as_var in \
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43 LC_TELEPHONE LC_TIME
44do
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
47 else
48 $as_unset $as_var
49 fi
50done
51
52# Required to use basename.
53if expr a : '\(a\)' >/dev/null 2>&1; then
54 as_expr=expr
55else
56 as_expr=false
57fi
58
59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60 as_basename=basename
61else
62 as_basename=false
63fi
64
65
66# Name of the executable.
67as_me=`$as_basename "$0" ||
68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
72echo X/"$0" |
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
76 s/.*/./; q'`
77
78
79# PATH needs CR, and LINENO needs CR and PATH.
80# Avoid depending upon Character Ranges.
81as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84as_cr_digits='0123456789'
85as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87# The user is always right.
88if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
91 chmod +x conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93 PATH_SEPARATOR=';'
94 else
95 PATH_SEPARATOR=:
96 fi
97 rm -f conf$$.sh
98fi
99
100
101 as_lineno_1=$LINENO
102 as_lineno_2=$LINENO
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
107 # relative or not.
108 case $0 in
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111for as_dir in $PATH
112do
113 IFS=$as_save_IFS
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116done
117
118 ;;
119 esac
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
123 as_myself=$0
124 fi
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
128 fi
129 case $CONFIG_SHELL in
130 '')
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133do
134 IFS=$as_save_IFS
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
137 case $as_dir in
138 /*)
139 if ("$as_dir/$as_base" -c '
140 as_lineno_1=$LINENO
141 as_lineno_2=$LINENO
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
148 export CONFIG_SHELL
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150 fi;;
151 esac
152 done
153done
154;;
155 esac
156
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
166 sed '
167 N
168 s,$,-,
169 : loop
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 t loop
172 s,-$,,
173 s,^['$as_cr_digits']*\n,,
174 ' >$as_me.lineno &&
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
178
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
182 . ./$as_me.lineno
183 # Exit status is that of the last command.
184 exit
185}
186
187
188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
190' ECHO_T=' ' ;;
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193esac
194
195if expr a : '\(a\)' >/dev/null 2>&1; then
196 as_expr=expr
197else
198 as_expr=false
199fi
200
201rm -f conf$$ conf$$.exe conf$$.file
202echo >conf$$.file
203if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
208 as_ln_s='cp -p'
209 else
210 as_ln_s='ln -s'
211 fi
212elif ln conf$$.file conf$$ 2>/dev/null; then
213 as_ln_s=ln
214else
215 as_ln_s='cp -p'
216fi
217rm -f conf$$ conf$$.exe conf$$.file
218
219if mkdir -p . 2>/dev/null; then
220 as_mkdir_p=:
221else
222 test -d ./-p && rmdir ./-p
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
244
245# Name of the host.
246# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247# so uname gets run too.
248ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250exec 6>&1
251
252#
253# Initializations.
254#
255ac_default_prefix=/usr/local
256ac_config_libobj_dir=.
257cross_compiling=no
258subdirs=
259MFLAGS=
260MAKEFLAGS=
261SHELL=${CONFIG_SHELL-/bin/sh}
262
263# Maximum number of lines to put in a shell here document.
264# This variable seems obsolete. It should probably be removed, and
265# only ac_max_sed_lines should be used.
266: ${ac_max_here_lines=38}
267
268# Identity of this package.
269PACKAGE_NAME=
270PACKAGE_TARNAME=
271PACKAGE_VERSION=
272PACKAGE_STRING=
273PACKAGE_BUGREPORT=
274
275ac_unique_file="jni/gdbmjava.c"
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S COMPAT32BITFLAGS CPP EGREP JAVA_HOME javagdbm_cv_path_javah javagdbm_cv_path_java GDBM_LIBPATH GDBM_INCLUDE PKG JNIINC JNISUFFIX JNIFLAGS LIBOBJS 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_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE. See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804 cat <<_ACEOF
805Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831_ACEOF
832
833 cat <<\_ACEOF
834
835System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 --target=TARGET configure for building compilers for TARGET [HOST]
839_ACEOF
840fi
841
842if test -n "$ac_init_help"; then
843
844 cat <<\_ACEOF
845
846Optional Packages:
847 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
848 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
849 --with-gdbm=dir Use local gdbm library and headers
850
851Some influential environment variables:
852 CC C compiler command
853 CFLAGS C compiler flags
854 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
855 nonstandard directory <lib dir>
856 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
857 headers in a nonstandard directory <include dir>
858 CPP C preprocessor
859
860Use these variables to override the choices made by `configure' or to help
861it to find libraries and programs with nonstandard names/locations.
862
863_ACEOF
864fi
865
866if test "$ac_init_help" = "recursive"; then
867 # If there are subdirs, report their specific --help.
868 ac_popdir=`pwd`
869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
870 test -d $ac_dir || continue
871 ac_builddir=.
872
873if test "$ac_dir" != .; then
874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
875 # A "../" for each directory in $ac_dir_suffix.
876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877else
878 ac_dir_suffix= ac_top_builddir=
879fi
880
881case $srcdir in
882 .) # No --srcdir option. We are building in place.
883 ac_srcdir=.
884 if test -z "$ac_top_builddir"; then
885 ac_top_srcdir=.
886 else
887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888 fi ;;
889 [\\/]* | ?:[\\/]* ) # Absolute path.
890 ac_srcdir=$srcdir$ac_dir_suffix;
891 ac_top_srcdir=$srcdir ;;
892 *) # Relative path.
893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
894 ac_top_srcdir=$ac_top_builddir$srcdir ;;
895esac
896
897# Do not use `cd foo && pwd` to compute absolute paths, because
898# the directories may not exist.
899case `pwd` in
900.) ac_abs_builddir="$ac_dir";;
901*)
902 case "$ac_dir" in
903 .) ac_abs_builddir=`pwd`;;
904 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
905 *) ac_abs_builddir=`pwd`/"$ac_dir";;
906 esac;;
907esac
908case $ac_abs_builddir in
909.) ac_abs_top_builddir=${ac_top_builddir}.;;
910*)
911 case ${ac_top_builddir}. in
912 .) ac_abs_top_builddir=$ac_abs_builddir;;
913 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
914 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
915 esac;;
916esac
917case $ac_abs_builddir in
918.) ac_abs_srcdir=$ac_srcdir;;
919*)
920 case $ac_srcdir in
921 .) ac_abs_srcdir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
923 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
924 esac;;
925esac
926case $ac_abs_builddir in
927.) ac_abs_top_srcdir=$ac_top_srcdir;;
928*)
929 case $ac_top_srcdir in
930 .) ac_abs_top_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
932 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
933 esac;;
934esac
935
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 fi
951 cd $ac_popdir
952 done
953fi
954
955test -n "$ac_init_help" && exit 0
956if $ac_init_version; then
957 cat <<\_ACEOF
958
959Copyright (C) 2003 Free Software Foundation, Inc.
960This configure script is free software; the Free Software Foundation
961gives unlimited permission to copy, distribute and modify it.
962_ACEOF
963 exit 0
964fi
965exec 5>config.log
966cat >&5 <<_ACEOF
967This file contains any messages produced by compilers while
968running configure, to aid debugging if configure makes a mistake.
969
970It was created by $as_me, which was
971generated by GNU Autoconf 2.59. Invocation command line was
972
973 $ $0 $@
974
975_ACEOF
976{
977cat <<_ASUNAME
978## --------- ##
979## Platform. ##
980## --------- ##
981
982hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983uname -m = `(uname -m) 2>/dev/null || echo unknown`
984uname -r = `(uname -r) 2>/dev/null || echo unknown`
985uname -s = `(uname -s) 2>/dev/null || echo unknown`
986uname -v = `(uname -v) 2>/dev/null || echo unknown`
987
988/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990
991/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
998
999_ASUNAME
1000
1001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002for as_dir in $PATH
1003do
1004 IFS=$as_save_IFS
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1007done
1008
1009} >&5
1010
1011cat >&5 <<_ACEOF
1012
1013
1014## ----------- ##
1015## Core tests. ##
1016## ----------- ##
1017
1018_ACEOF
1019
1020
1021# Keep a trace of the command line.
1022# Strip out --no-create and --no-recursion so they do not pile up.
1023# Strip out --silent because we don't want to record it for future runs.
1024# Also quote any args containing shell meta-characters.
1025# Make two passes to allow for proper duplicate-argument suppression.
1026ac_configure_args=
1027ac_configure_args0=
1028ac_configure_args1=
1029ac_sep=
1030ac_must_keep_next=false
1031for ac_pass in 1 2
1032do
1033 for ac_arg
1034 do
1035 case $ac_arg in
1036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1039 continue ;;
1040 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1041 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1042 esac
1043 case $ac_pass in
1044 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1045 2)
1046 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1047 if test $ac_must_keep_next = true; then
1048 ac_must_keep_next=false # Got value, back to normal.
1049 else
1050 case $ac_arg in
1051 *=* | --config-cache | -C | -disable-* | --disable-* \
1052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1054 | -with-* | --with-* | -without-* | --without-* | --x)
1055 case "$ac_configure_args0 " in
1056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1057 esac
1058 ;;
1059 -* ) ac_must_keep_next=true ;;
1060 esac
1061 fi
1062 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1063 # Get rid of the leading space.
1064 ac_sep=" "
1065 ;;
1066 esac
1067 done
1068done
1069$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1070$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1071
1072# When interrupted or exit'd, cleanup temporary files, and complete
1073# config.log. We remove comments because anyway the quotes in there
1074# would cause problems or look ugly.
1075# WARNING: Be sure not to use single quotes in there, as some shells,
1076# such as our DU 5.0 friend, will then `close' the trap.
1077trap 'exit_status=$?
1078 # Save into config.log some information that might help in debugging.
1079 {
1080 echo
1081
1082 cat <<\_ASBOX
1083## ---------------- ##
1084## Cache variables. ##
1085## ---------------- ##
1086_ASBOX
1087 echo
1088 # The following way of writing the cache mishandles newlines in values,
1089{
1090 (set) 2>&1 |
1091 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1092 *ac_space=\ *)
1093 sed -n \
1094 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1096 ;;
1097 *)
1098 sed -n \
1099 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1100 ;;
1101 esac;
1102}
1103 echo
1104
1105 cat <<\_ASBOX
1106## ----------------- ##
1107## Output variables. ##
1108## ----------------- ##
1109_ASBOX
1110 echo
1111 for ac_var in $ac_subst_vars
1112 do
1113 eval ac_val=$`echo $ac_var`
1114 echo "$ac_var='"'"'$ac_val'"'"'"
1115 done | sort
1116 echo
1117
1118 if test -n "$ac_subst_files"; then
1119 cat <<\_ASBOX
1120## ------------- ##
1121## Output files. ##
1122## ------------- ##
1123_ASBOX
1124 echo
1125 for ac_var in $ac_subst_files
1126 do
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1129 done | sort
1130 echo
1131 fi
1132
1133 if test -s confdefs.h; then
1134 cat <<\_ASBOX
1135## ----------- ##
1136## confdefs.h. ##
1137## ----------- ##
1138_ASBOX
1139 echo
1140 sed "/^$/d" confdefs.h | sort
1141 echo
1142 fi
1143 test "$ac_signal" != 0 &&
1144 echo "$as_me: caught signal $ac_signal"
1145 echo "$as_me: exit $exit_status"
1146 } >&5
1147 rm -f core *.core &&
1148 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1149 exit $exit_status
1150 ' 0
1151for ac_signal in 1 2 13 15; do
1152 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1153done
1154ac_signal=0
1155
1156# confdefs.h avoids OS command line length limits that DEFS can exceed.
1157rm -rf conftest* confdefs.h
1158# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1159echo >confdefs.h
1160
1161# Predefined preprocessor variables.
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_NAME "$PACKAGE_NAME"
1165_ACEOF
1166
1167
1168cat >>confdefs.h <<_ACEOF
1169#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1170_ACEOF
1171
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_VERSION "$PACKAGE_VERSION"
1175_ACEOF
1176
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_STRING "$PACKAGE_STRING"
1180_ACEOF
1181
1182
1183cat >>confdefs.h <<_ACEOF
1184#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1185_ACEOF
1186
1187
1188# Let the site file select an alternate cache file if it wants to.
1189# Prefer explicitly selected file to automatically selected ones.
1190if test -z "$CONFIG_SITE"; then
1191 if test "x$prefix" != xNONE; then
1192 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1193 else
1194 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1195 fi
1196fi
1197for ac_site_file in $CONFIG_SITE; do
1198 if test -r "$ac_site_file"; then
1199 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1200echo "$as_me: loading site script $ac_site_file" >&6;}
1201 sed 's/^/| /' "$ac_site_file" >&5
1202 . "$ac_site_file"
1203 fi
1204done
1205
1206if test -r "$cache_file"; then
1207 # Some versions of bash will fail to source /dev/null (special
1208 # files actually), so we avoid doing that.
1209 if test -f "$cache_file"; then
1210 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1211echo "$as_me: loading cache $cache_file" >&6;}
1212 case $cache_file in
1213 [\\/]* | ?:[\\/]* ) . $cache_file;;
1214 *) . ./$cache_file;;
1215 esac
1216 fi
1217else
1218 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1219echo "$as_me: creating cache $cache_file" >&6;}
1220 >$cache_file
1221fi
1222
1223# Check that the precious variables saved in the cache have kept the same
1224# value.
1225ac_cache_corrupted=false
1226for ac_var in `(set) 2>&1 |
1227 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1228 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1229 eval ac_new_set=\$ac_env_${ac_var}_set
1230 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1231 eval ac_new_val="\$ac_env_${ac_var}_value"
1232 case $ac_old_set,$ac_new_set in
1233 set,)
1234 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1235echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1236 ac_cache_corrupted=: ;;
1237 ,set)
1238 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1239echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1240 ac_cache_corrupted=: ;;
1241 ,);;
1242 *)
1243 if test "x$ac_old_val" != "x$ac_new_val"; then
1244 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1245echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1246 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1247echo "$as_me: former value: $ac_old_val" >&2;}
1248 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1249echo "$as_me: current value: $ac_new_val" >&2;}
1250 ac_cache_corrupted=:
1251 fi;;
1252 esac
1253 # Pass precious variables to config.status.
1254 if test "$ac_new_set" = set; then
1255 case $ac_new_val in
1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1258 *) ac_arg=$ac_var=$ac_new_val ;;
1259 esac
1260 case " $ac_configure_args " in
1261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1262 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1263 esac
1264 fi
1265done
1266if $ac_cache_corrupted; then
1267 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1268echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1269 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1270echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1271 { (exit 1); exit 1; }; }
1272fi
1273
1274ac_ext=c
1275ac_cpp='$CPP $CPPFLAGS'
1276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1278ac_compiler_gnu=$ac_cv_c_compiler_gnu
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300# Check whether --with-gdbm or --without-gdbm was given.
1301if test "${with_gdbm+set}" = set; then
1302 withval="$with_gdbm"
1303 gdbmdir=$withval
1304fi;
1305
1306ac_aux_dir=
1307for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1308 if test -f $ac_dir/install-sh; then
1309 ac_aux_dir=$ac_dir
1310 ac_install_sh="$ac_aux_dir/install-sh -c"
1311 break
1312 elif test -f $ac_dir/install.sh; then
1313 ac_aux_dir=$ac_dir
1314 ac_install_sh="$ac_aux_dir/install.sh -c"
1315 break
1316 elif test -f $ac_dir/shtool; then
1317 ac_aux_dir=$ac_dir
1318 ac_install_sh="$ac_aux_dir/shtool install -c"
1319 break
1320 fi
1321done
1322if test -z "$ac_aux_dir"; then
1323 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1324echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1325 { (exit 1); exit 1; }; }
1326fi
1327ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1328ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1329ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1330
1331# Make sure we can run config.sub.
1332$ac_config_sub sun4 >/dev/null 2>&1 ||
1333 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1334echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1335 { (exit 1); exit 1; }; }
1336
1337echo "$as_me:$LINENO: checking build system type" >&5
1338echo $ECHO_N "checking build system type... $ECHO_C" >&6
1339if test "${ac_cv_build+set}" = set; then
1340 echo $ECHO_N "(cached) $ECHO_C" >&6
1341else
1342 ac_cv_build_alias=$build_alias
1343test -z "$ac_cv_build_alias" &&
1344 ac_cv_build_alias=`$ac_config_guess`
1345test -z "$ac_cv_build_alias" &&
1346 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1347echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1348 { (exit 1); exit 1; }; }
1349ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1351echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1352 { (exit 1); exit 1; }; }
1353
1354fi
1355echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1356echo "${ECHO_T}$ac_cv_build" >&6
1357build=$ac_cv_build
1358build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1361
1362
1363echo "$as_me:$LINENO: checking host system type" >&5
1364echo $ECHO_N "checking host system type... $ECHO_C" >&6
1365if test "${ac_cv_host+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1367else
1368 ac_cv_host_alias=$host_alias
1369test -z "$ac_cv_host_alias" &&
1370 ac_cv_host_alias=$ac_cv_build_alias
1371ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1372 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1373echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1374 { (exit 1); exit 1; }; }
1375
1376fi
1377echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1378echo "${ECHO_T}$ac_cv_host" >&6
1379host=$ac_cv_host
1380host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1383
1384
1385echo "$as_me:$LINENO: checking target system type" >&5
1386echo $ECHO_N "checking target system type... $ECHO_C" >&6
1387if test "${ac_cv_target+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1389else
1390 ac_cv_target_alias=$target_alias
1391test "x$ac_cv_target_alias" = "x" &&
1392 ac_cv_target_alias=$ac_cv_host_alias
1393ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1394 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1395echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1396 { (exit 1); exit 1; }; }
1397
1398fi
1399echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1400echo "${ECHO_T}$ac_cv_target" >&6
1401target=$ac_cv_target
1402target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405
1406
1407# The aliases save the names the user supplied, while $host etc.
1408# will get canonicalized.
1409test -n "$target_alias" &&
1410 test "$program_prefix$program_suffix$program_transform_name" = \
1411 NONENONEs,x,x, &&
1412 program_prefix=${target_alias}-
1413
1414# TODO: allow the user to specify whether they want a debugging
1415# library or not?
1416
1417# check for compilers and other tools
1418ac_ext=c
1419ac_cpp='$CPP $CPPFLAGS'
1420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1422ac_compiler_gnu=$ac_cv_c_compiler_gnu
1423if test -n "$ac_tool_prefix"; then
1424 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1425set dummy ${ac_tool_prefix}gcc; ac_word=$2
1426echo "$as_me:$LINENO: checking for $ac_word" >&5
1427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428if test "${ac_cv_prog_CC+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431 if test -n "$CC"; then
1432 ac_cv_prog_CC="$CC" # Let the user override the test.
1433else
1434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435for as_dir in $PATH
1436do
1437 IFS=$as_save_IFS
1438 test -z "$as_dir" && as_dir=.
1439 for ac_exec_ext in '' $ac_executable_extensions; do
1440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443 break 2
1444 fi
1445done
1446done
1447
1448fi
1449fi
1450CC=$ac_cv_prog_CC
1451if test -n "$CC"; then
1452 echo "$as_me:$LINENO: result: $CC" >&5
1453echo "${ECHO_T}$CC" >&6
1454else
1455 echo "$as_me:$LINENO: result: no" >&5
1456echo "${ECHO_T}no" >&6
1457fi
1458
1459fi
1460if test -z "$ac_cv_prog_CC"; then
1461 ac_ct_CC=$CC
1462 # Extract the first word of "gcc", so it can be a program name with args.
1463set dummy gcc; ac_word=$2
1464echo "$as_me:$LINENO: checking for $ac_word" >&5
1465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468else
1469 if test -n "$ac_ct_CC"; then
1470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1471else
1472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_ac_ct_CC="gcc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 break 2
1482 fi
1483done
1484done
1485
1486fi
1487fi
1488ac_ct_CC=$ac_cv_prog_ac_ct_CC
1489if test -n "$ac_ct_CC"; then
1490 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1491echo "${ECHO_T}$ac_ct_CC" >&6
1492else
1493 echo "$as_me:$LINENO: result: no" >&5
1494echo "${ECHO_T}no" >&6
1495fi
1496
1497 CC=$ac_ct_CC
1498else
1499 CC="$ac_cv_prog_CC"
1500fi
1501
1502if test -z "$CC"; then
1503 if test -n "$ac_tool_prefix"; then
1504 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1505set dummy ${ac_tool_prefix}cc; ac_word=$2
1506echo "$as_me:$LINENO: checking for $ac_word" >&5
1507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508if test "${ac_cv_prog_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 if test -n "$CC"; then
1512 ac_cv_prog_CC="$CC" # Let the user override the test.
1513else
1514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515for as_dir in $PATH
1516do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_CC="${ac_tool_prefix}cc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
1524 fi
1525done
1526done
1527
1528fi
1529fi
1530CC=$ac_cv_prog_CC
1531if test -n "$CC"; then
1532 echo "$as_me:$LINENO: result: $CC" >&5
1533echo "${ECHO_T}$CC" >&6
1534else
1535 echo "$as_me:$LINENO: result: no" >&5
1536echo "${ECHO_T}no" >&6
1537fi
1538
1539fi
1540if test -z "$ac_cv_prog_CC"; then
1541 ac_ct_CC=$CC
1542 # Extract the first word of "cc", so it can be a program name with args.
1543set dummy cc; ac_word=$2
1544echo "$as_me:$LINENO: checking for $ac_word" >&5
1545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 if test -n "$ac_ct_CC"; then
1550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1551else
1552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553for as_dir in $PATH
1554do
1555 IFS=$as_save_IFS
1556 test -z "$as_dir" && as_dir=.
1557 for ac_exec_ext in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_ac_ct_CC="cc"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 break 2
1562 fi
1563done
1564done
1565
1566fi
1567fi
1568ac_ct_CC=$ac_cv_prog_ac_ct_CC
1569if test -n "$ac_ct_CC"; then
1570 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1571echo "${ECHO_T}$ac_ct_CC" >&6
1572else
1573 echo "$as_me:$LINENO: result: no" >&5
1574echo "${ECHO_T}no" >&6
1575fi
1576
1577 CC=$ac_ct_CC
1578else
1579 CC="$ac_cv_prog_CC"
1580fi
1581
1582fi
1583if test -z "$CC"; then
1584 # Extract the first word of "cc", so it can be a program name with args.
1585set dummy cc; ac_word=$2
1586echo "$as_me:$LINENO: checking for $ac_word" >&5
1587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588if test "${ac_cv_prog_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590else
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC="$CC" # Let the user override the test.
1593else
1594 ac_prog_rejected=no
1595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596for as_dir in $PATH
1597do
1598 IFS=$as_save_IFS
1599 test -z "$as_dir" && as_dir=.
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1603 ac_prog_rejected=yes
1604 continue
1605 fi
1606 ac_cv_prog_CC="cc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1609 fi
1610done
1611done
1612
1613if test $ac_prog_rejected = yes; then
1614 # We found a bogon in the path, so make sure we never use it.
1615 set dummy $ac_cv_prog_CC
1616 shift
1617 if test $# != 0; then
1618 # We chose a different compiler from the bogus one.
1619 # However, it has the same basename, so the bogon will be chosen
1620 # first if we set CC to just the basename; use the full file name.
1621 shift
1622 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1623 fi
1624fi
1625fi
1626fi
1627CC=$ac_cv_prog_CC
1628if test -n "$CC"; then
1629 echo "$as_me:$LINENO: result: $CC" >&5
1630echo "${ECHO_T}$CC" >&6
1631else
1632 echo "$as_me:$LINENO: result: no" >&5
1633echo "${ECHO_T}no" >&6
1634fi
1635
1636fi
1637if test -z "$CC"; then
1638 if test -n "$ac_tool_prefix"; then
1639 for ac_prog in cl
1640 do
1641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648 if test -n "$CC"; then
1649 ac_cv_prog_CC="$CC" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2
1661 fi
1662done
1663done
1664
1665fi
1666fi
1667CC=$ac_cv_prog_CC
1668if test -n "$CC"; then
1669 echo "$as_me:$LINENO: result: $CC" >&5
1670echo "${ECHO_T}$CC" >&6
1671else
1672 echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
1674fi
1675
1676 test -n "$CC" && break
1677 done
1678fi
1679if test -z "$CC"; then
1680 ac_ct_CC=$CC
1681 for ac_prog in cl
1682do
1683 # Extract the first word of "$ac_prog", so it can be a program name with args.
1684set dummy $ac_prog; ac_word=$2
1685echo "$as_me:$LINENO: checking for $ac_word" >&5
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689else
1690 if test -n "$ac_ct_CC"; then
1691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1692else
1693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_ac_ct_CC="$ac_prog"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 break 2
1703 fi
1704done
1705done
1706
1707fi
1708fi
1709ac_ct_CC=$ac_cv_prog_ac_ct_CC
1710if test -n "$ac_ct_CC"; then
1711 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1712echo "${ECHO_T}$ac_ct_CC" >&6
1713else
1714 echo "$as_me:$LINENO: result: no" >&5
1715echo "${ECHO_T}no" >&6
1716fi
1717
1718 test -n "$ac_ct_CC" && break
1719done
1720
1721 CC=$ac_ct_CC
1722fi
1723
1724fi
1725
1726
1727test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1728See \`config.log' for more details." >&5
1729echo "$as_me: error: no acceptable C compiler found in \$PATH
1730See \`config.log' for more details." >&2;}
1731 { (exit 1); exit 1; }; }
1732
1733# Provide some information about the compiler.
1734echo "$as_me:$LINENO:" \
1735 "checking for C compiler version" >&5
1736ac_compiler=`set X $ac_compile; echo $2`
1737{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1738 (eval $ac_compiler --version </dev/null >&5) 2>&5
1739 ac_status=$?
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }
1742{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1743 (eval $ac_compiler -v </dev/null >&5) 2>&5
1744 ac_status=$?
1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746 (exit $ac_status); }
1747{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1748 (eval $ac_compiler -V </dev/null >&5) 2>&5
1749 ac_status=$?
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752
1753cat >conftest.$ac_ext <<_ACEOF
1754/* confdefs.h. */
1755_ACEOF
1756cat confdefs.h >>conftest.$ac_ext
1757cat >>conftest.$ac_ext <<_ACEOF
1758/* end confdefs.h. */
1759
1760int
1761main ()
1762{
1763
1764 ;
1765 return 0;
1766}
1767_ACEOF
1768ac_clean_files_save=$ac_clean_files
1769ac_clean_files="$ac_clean_files a.out a.exe b.out"
1770# Try to create an executable without -o first, disregard a.out.
1771# It will help us diagnose broken compilers, and finding out an intuition
1772# of exeext.
1773echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1774echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1775ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1776if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1777 (eval $ac_link_default) 2>&5
1778 ac_status=$?
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }; then
1781 # Find the output, starting from the most likely. This scheme is
1782# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1783# resort.
1784
1785# Be careful to initialize this variable, since it used to be cached.
1786# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1787ac_cv_exeext=
1788# b.out is created by i960 compilers.
1789for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1790do
1791 test -f "$ac_file" || continue
1792 case $ac_file in
1793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1794 ;;
1795 conftest.$ac_ext )
1796 # This is the source file.
1797 ;;
1798 [ab].out )
1799 # We found the default executable, but exeext='' is most
1800 # certainly right.
1801 break;;
1802 *.* )
1803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1804 # FIXME: I believe we export ac_cv_exeext for Libtool,
1805 # but it would be cool to find out if it's true. Does anybody
1806 # maintain Libtool? --akim.
1807 export ac_cv_exeext
1808 break;;
1809 * )
1810 break;;
1811 esac
1812done
1813else
1814 echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1818See \`config.log' for more details." >&5
1819echo "$as_me: error: C compiler cannot create executables
1820See \`config.log' for more details." >&2;}
1821 { (exit 77); exit 77; }; }
1822fi
1823
1824ac_exeext=$ac_cv_exeext
1825echo "$as_me:$LINENO: result: $ac_file" >&5
1826echo "${ECHO_T}$ac_file" >&6
1827
1828# Check the compiler produces executables we can run. If not, either
1829# the compiler is broken, or we cross compile.
1830echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1831echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1832# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1833# If not cross compiling, check that we can run a simple program.
1834if test "$cross_compiling" != yes; then
1835 if { ac_try='./$ac_file'
1836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837 (eval $ac_try) 2>&5
1838 ac_status=$?
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1841 cross_compiling=no
1842 else
1843 if test "$cross_compiling" = maybe; then
1844 cross_compiling=yes
1845 else
1846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1847If you meant to cross compile, use \`--host'.
1848See \`config.log' for more details." >&5
1849echo "$as_me: error: cannot run C compiled programs.
1850If you meant to cross compile, use \`--host'.
1851See \`config.log' for more details." >&2;}
1852 { (exit 1); exit 1; }; }
1853 fi
1854 fi
1855fi
1856echo "$as_me:$LINENO: result: yes" >&5
1857echo "${ECHO_T}yes" >&6
1858
1859rm -f a.out a.exe conftest$ac_cv_exeext b.out
1860ac_clean_files=$ac_clean_files_save
1861# Check the compiler produces executables we can run. If not, either
1862# the compiler is broken, or we cross compile.
1863echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1864echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1865echo "$as_me:$LINENO: result: $cross_compiling" >&5
1866echo "${ECHO_T}$cross_compiling" >&6
1867
1868echo "$as_me:$LINENO: checking for suffix of executables" >&5
1869echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1871 (eval $ac_link) 2>&5
1872 ac_status=$?
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }; then
1875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1876# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1877# work properly (i.e., refer to `conftest.exe'), while it won't with
1878# `rm'.
1879for ac_file in conftest.exe conftest conftest.*; do
1880 test -f "$ac_file" || continue
1881 case $ac_file in
1882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1884 export ac_cv_exeext
1885 break;;
1886 * ) break;;
1887 esac
1888done
1889else
1890 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1891See \`config.log' for more details." >&5
1892echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1893See \`config.log' for more details." >&2;}
1894 { (exit 1); exit 1; }; }
1895fi
1896
1897rm -f conftest$ac_cv_exeext
1898echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1899echo "${ECHO_T}$ac_cv_exeext" >&6
1900
1901rm -f conftest.$ac_ext
1902EXEEXT=$ac_cv_exeext
1903ac_exeext=$EXEEXT
1904echo "$as_me:$LINENO: checking for suffix of object files" >&5
1905echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1906if test "${ac_cv_objext+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908else
1909 cat >conftest.$ac_ext <<_ACEOF
1910/* confdefs.h. */
1911_ACEOF
1912cat confdefs.h >>conftest.$ac_ext
1913cat >>conftest.$ac_ext <<_ACEOF
1914/* end confdefs.h. */
1915
1916int
1917main ()
1918{
1919
1920 ;
1921 return 0;
1922}
1923_ACEOF
1924rm -f conftest.o conftest.obj
1925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926 (eval $ac_compile) 2>&5
1927 ac_status=$?
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }; then
1930 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1931 case $ac_file in
1932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1933 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1934 break;;
1935 esac
1936done
1937else
1938 echo "$as_me: failed program was:" >&5
1939sed 's/^/| /' conftest.$ac_ext >&5
1940
1941{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1942See \`config.log' for more details." >&5
1943echo "$as_me: error: cannot compute suffix of object files: cannot compile
1944See \`config.log' for more details." >&2;}
1945 { (exit 1); exit 1; }; }
1946fi
1947
1948rm -f conftest.$ac_cv_objext conftest.$ac_ext
1949fi
1950echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1951echo "${ECHO_T}$ac_cv_objext" >&6
1952OBJEXT=$ac_cv_objext
1953ac_objext=$OBJEXT
1954echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1955echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1956if test "${ac_cv_c_compiler_gnu+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958else
1959 cat >conftest.$ac_ext <<_ACEOF
1960/* confdefs.h. */
1961_ACEOF
1962cat confdefs.h >>conftest.$ac_ext
1963cat >>conftest.$ac_ext <<_ACEOF
1964/* end confdefs.h. */
1965
1966int
1967main ()
1968{
1969#ifndef __GNUC__
1970 choke me
1971#endif
1972
1973 ;
1974 return 0;
1975}
1976_ACEOF
1977rm -f conftest.$ac_objext
1978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979 (eval $ac_compile) 2>conftest.er1
1980 ac_status=$?
1981 grep -v '^ *+' conftest.er1 >conftest.err
1982 rm -f conftest.er1
1983 cat conftest.err >&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); } &&
1986 { ac_try='test -z "$ac_c_werror_flag"
1987 || test ! -s conftest.err'
1988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989 (eval $ac_try) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }; } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 ac_compiler_gnu=yes
2000else
2001 echo "$as_me: failed program was:" >&5
2002sed 's/^/| /' conftest.$ac_ext >&5
2003
2004ac_compiler_gnu=no
2005fi
2006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2007ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008
2009fi
2010echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012GCC=`test $ac_compiler_gnu = yes && echo yes`
2013ac_test_CFLAGS=${CFLAGS+set}
2014ac_save_CFLAGS=$CFLAGS
2015CFLAGS="-g"
2016echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018if test "${ac_cv_prog_cc_g+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020else
2021 cat >conftest.$ac_ext <<_ACEOF
2022/* confdefs.h. */
2023_ACEOF
2024cat confdefs.h >>conftest.$ac_ext
2025cat >>conftest.$ac_ext <<_ACEOF
2026/* end confdefs.h. */
2027
2028int
2029main ()
2030{
2031
2032 ;
2033 return 0;
2034}
2035_ACEOF
2036rm -f conftest.$ac_objext
2037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>conftest.er1
2039 ac_status=$?
2040 grep -v '^ *+' conftest.er1 >conftest.err
2041 rm -f conftest.er1
2042 cat conftest.err >&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); } &&
2045 { ac_try='test -z "$ac_c_werror_flag"
2046 || test ! -s conftest.err'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048 (eval $ac_try) 2>&5
2049 ac_status=$?
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; } &&
2052 { ac_try='test -s conftest.$ac_objext'
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 (eval $ac_try) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; }; then
2058 ac_cv_prog_cc_g=yes
2059else
2060 echo "$as_me: failed program was:" >&5
2061sed 's/^/| /' conftest.$ac_ext >&5
2062
2063ac_cv_prog_cc_g=no
2064fi
2065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2066fi
2067echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2068echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2069if test "$ac_test_CFLAGS" = set; then
2070 CFLAGS=$ac_save_CFLAGS
2071elif test $ac_cv_prog_cc_g = yes; then
2072 if test "$GCC" = yes; then
2073 CFLAGS="-g -O2"
2074 else
2075 CFLAGS="-g"
2076 fi
2077else
2078 if test "$GCC" = yes; then
2079 CFLAGS="-O2"
2080 else
2081 CFLAGS=
2082 fi
2083fi
2084echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2085echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2086if test "${ac_cv_prog_cc_stdc+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2088else
2089 ac_cv_prog_cc_stdc=no
2090ac_save_CC=$CC
2091cat >conftest.$ac_ext <<_ACEOF
2092/* confdefs.h. */
2093_ACEOF
2094cat confdefs.h >>conftest.$ac_ext
2095cat >>conftest.$ac_ext <<_ACEOF
2096/* end confdefs.h. */
2097#include <stdarg.h>
2098#include <stdio.h>
2099#include <sys/types.h>
2100#include <sys/stat.h>
2101/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2102struct buf { int x; };
2103FILE * (*rcsopen) (struct buf *, struct stat *, int);
2104static char *e (p, i)
2105 char **p;
2106 int i;
2107{
2108 return p[i];
2109}
2110static char *f (char * (*g) (char **, int), char **p, ...)
2111{
2112 char *s;
2113 va_list v;
2114 va_start (v,p);
2115 s = g (p, va_arg (v,int));
2116 va_end (v);
2117 return s;
2118}
2119
2120/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2121 function prototypes and stuff, but not '\xHH' hex character constants.
2122 These don't provoke an error unfortunately, instead are silently treated
2123 as 'x'. The following induces an error, until -std1 is added to get
2124 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2125 array size at least. It's necessary to write '\x00'==0 to get something
2126 that's true only with -std1. */
2127int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2128
2129int test (int i, double x);
2130struct s1 {int (*f) (int a);};
2131struct s2 {int (*f) (double a);};
2132int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2133int argc;
2134char **argv;
2135int
2136main ()
2137{
2138return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143# Don't try gcc -ansi; that turns off useful extensions and
2144# breaks some systems' header files.
2145# AIX -qlanglvl=ansi
2146# Ultrix and OSF/1 -std1
2147# HP-UX 10.20 and later -Ae
2148# HP-UX older versions -Aa -D_HPUX_SOURCE
2149# SVR4 -Xc -D__EXTENSIONS__
2150for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2151do
2152 CC="$ac_save_CC $ac_arg"
2153 rm -f conftest.$ac_objext
2154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155 (eval $ac_compile) 2>conftest.er1
2156 ac_status=$?
2157 grep -v '^ *+' conftest.er1 >conftest.err
2158 rm -f conftest.er1
2159 cat conftest.err >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); } &&
2162 { ac_try='test -z "$ac_c_werror_flag"
2163 || test ! -s conftest.err'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; } &&
2169 { ac_try='test -s conftest.$ac_objext'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2175 ac_cv_prog_cc_stdc=$ac_arg
2176break
2177else
2178 echo "$as_me: failed program was:" >&5
2179sed 's/^/| /' conftest.$ac_ext >&5
2180
2181fi
2182rm -f conftest.err conftest.$ac_objext
2183done
2184rm -f conftest.$ac_ext conftest.$ac_objext
2185CC=$ac_save_CC
2186
2187fi
2188
2189case "x$ac_cv_prog_cc_stdc" in
2190 x|xno)
2191 echo "$as_me:$LINENO: result: none needed" >&5
2192echo "${ECHO_T}none needed" >&6 ;;
2193 *)
2194 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2195echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2196 CC="$CC $ac_cv_prog_cc_stdc" ;;
2197esac
2198
2199# Some people use a C++ compiler to compile C. Since we use `exit',
2200# in C++ we need to declare it. In case someone uses the same compiler
2201# for both compiling C and C++ we need to have the C++ compiler decide
2202# the declaration of exit, since it's the most demanding environment.
2203cat >conftest.$ac_ext <<_ACEOF
2204#ifndef __cplusplus
2205 choke me
2206#endif
2207_ACEOF
2208rm -f conftest.$ac_objext
2209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>conftest.er1
2211 ac_status=$?
2212 grep -v '^ *+' conftest.er1 >conftest.err
2213 rm -f conftest.er1
2214 cat conftest.err >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); } &&
2217 { ac_try='test -z "$ac_c_werror_flag"
2218 || test ! -s conftest.err'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 for ac_declaration in \
2231 '' \
2232 'extern "C" void std::exit (int) throw (); using std::exit;' \
2233 'extern "C" void std::exit (int); using std::exit;' \
2234 'extern "C" void exit (int) throw ();' \
2235 'extern "C" void exit (int);' \
2236 'void exit (int);'
2237do
2238 cat >conftest.$ac_ext <<_ACEOF
2239/* confdefs.h. */
2240_ACEOF
2241cat confdefs.h >>conftest.$ac_ext
2242cat >>conftest.$ac_ext <<_ACEOF
2243/* end confdefs.h. */
2244$ac_declaration
2245#include <stdlib.h>
2246int
2247main ()
2248{
2249exit (42);
2250 ;
2251 return 0;
2252}
2253_ACEOF
2254rm -f conftest.$ac_objext
2255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2257 ac_status=$?
2258 grep -v '^ *+' conftest.er1 >conftest.err
2259 rm -f conftest.er1
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag"
2264 || test ! -s conftest.err'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; } &&
2270 { ac_try='test -s conftest.$ac_objext'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 :
2277else
2278 echo "$as_me: failed program was:" >&5
2279sed 's/^/| /' conftest.$ac_ext >&5
2280
2281continue
2282fi
2283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2284 cat >conftest.$ac_ext <<_ACEOF
2285/* confdefs.h. */
2286_ACEOF
2287cat confdefs.h >>conftest.$ac_ext
2288cat >>conftest.$ac_ext <<_ACEOF
2289/* end confdefs.h. */
2290$ac_declaration
2291int
2292main ()
2293{
2294exit (42);
2295 ;
2296 return 0;
2297}
2298_ACEOF
2299rm -f conftest.$ac_objext
2300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>conftest.er1
2302 ac_status=$?
2303 grep -v '^ *+' conftest.er1 >conftest.err
2304 rm -f conftest.er1
2305 cat conftest.err >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); } &&
2308 { ac_try='test -z "$ac_c_werror_flag"
2309 || test ! -s conftest.err'
2310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 (eval $ac_try) 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; } &&
2315 { ac_try='test -s conftest.$ac_objext'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; }; then
2321 break
2322else
2323 echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326fi
2327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328done
2329rm -f conftest*
2330if test -n "$ac_declaration"; then
2331 echo '#ifdef __cplusplus' >>confdefs.h
2332 echo $ac_declaration >>confdefs.h
2333 echo '#endif' >>confdefs.h
2334fi
2335
2336else
2337 echo "$as_me: failed program was:" >&5
2338sed 's/^/| /' conftest.$ac_ext >&5
2339
2340fi
2341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342ac_ext=c
2343ac_cpp='$CPP $CPPFLAGS'
2344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347
2348# Find a good install program. We prefer a C program (faster),
2349# so one script is as good as another. But avoid the broken or
2350# incompatible versions:
2351# SysV /etc/install, /usr/sbin/install
2352# SunOS /usr/etc/install
2353# IRIX /sbin/install
2354# AIX /bin/install
2355# AmigaOS /C/install, which installs bootblocks on floppy discs
2356# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2357# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2358# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2359# OS/2's system install, which has a completely different semantic
2360# ./install, which can be erroneously created by make from ./install.sh.
2361echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2362echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2363if test -z "$INSTALL"; then
2364if test "${ac_cv_path_install+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368for as_dir in $PATH
2369do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 # Account for people who put trailing slashes in PATH elements.
2373case $as_dir/ in
2374 ./ | .// | /cC/* | \
2375 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2376 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2377 /usr/ucb/* ) ;;
2378 *)
2379 # OSF1 and SCO ODT 3.0 have their own names for install.
2380 # Don't use installbsd from OSF since it installs stuff as root
2381 # by default.
2382 for ac_prog in ginstall scoinst install; do
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2385 if test $ac_prog = install &&
2386 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2387 # AIX install. It has an incompatible calling convention.
2388 :
2389 elif test $ac_prog = install &&
2390 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2391 # program-specific install script used by HP pwplus--don't use.
2392 :
2393 else
2394 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2395 break 3
2396 fi
2397 fi
2398 done
2399 done
2400 ;;
2401esac
2402done
2403
2404
2405fi
2406 if test "${ac_cv_path_install+set}" = set; then
2407 INSTALL=$ac_cv_path_install
2408 else
2409 # As a last resort, use the slow shell script. We don't cache a
2410 # path for INSTALL within a source directory, because that will
2411 # break other packages using the cache if that directory is
2412 # removed, or if the path is relative.
2413 INSTALL=$ac_install_sh
2414 fi
2415fi
2416echo "$as_me:$LINENO: result: $INSTALL" >&5
2417echo "${ECHO_T}$INSTALL" >&6
2418
2419# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2420# It thinks the first close brace ends the variable substitution.
2421test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2422
2423test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2424
2425test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2426
2427echo "$as_me:$LINENO: checking whether ln -s works" >&5
2428echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2429LN_S=$as_ln_s
2430if test "$LN_S" = "ln -s"; then
2431 echo "$as_me:$LINENO: result: yes" >&5
2432echo "${ECHO_T}yes" >&6
2433else
2434 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2435echo "${ECHO_T}no, using $LN_S" >&6
2436fi
2437
2438
2439echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
2440echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
2441arch_64bit=no
2442case "$host_cpu" in
2443x86_64) arch_64bit=yes ;;
2444esac
2445
2446if test "$arch_64bit" = yes; then
2447 echo "$as_me:$LINENO: result: yes" >&5
2448echo "${ECHO_T}yes" >&6
2449 if test -z "$COMPAT32BITFLAGS" ; then
2450 COMPAT32BITFLAGS="-m32"
2451 fi
2452else
2453 echo "$as_me:$LINENO: result: no" >&5
2454echo "${ECHO_T}no" >&6
2455 if test -z "$COMPAT32BITFLAGS" ; then
2456 COMPAT32BITFLAGS=
2457 fi
2458fi
2459
2460# Only need compat32bitflag if using MG or MGPP
2461if test "$ENABLE_MG" = "0" ; then
2462 COMPAT32BITFLAGS=
2463else
2464 if test "$ENABLE_MGPP" = "0" ; then
2465 COMPAT32BITFLAGS=
2466 fi
2467fi
2468
2469export COMPAT32BITFLAGS
2470
2471
2472
2473
2474
2475ac_ext=c
2476ac_cpp='$CPP $CPPFLAGS'
2477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479ac_compiler_gnu=$ac_cv_c_compiler_gnu
2480echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2481echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2482# On Suns, sometimes $CPP names a directory.
2483if test -n "$CPP" && test -d "$CPP"; then
2484 CPP=
2485fi
2486if test -z "$CPP"; then
2487 if test "${ac_cv_prog_CPP+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490 # Double quotes because CPP needs to be expanded
2491 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2492 do
2493 ac_preproc_ok=false
2494for ac_c_preproc_warn_flag in '' yes
2495do
2496 # Use a header file that comes with gcc, so configuring glibc
2497 # with a fresh cross-compiler works.
2498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2499 # <limits.h> exists even on freestanding compilers.
2500 # On the NeXT, cc -E runs the code through the compiler's parser,
2501 # not just through cpp. "Syntax error" is here to catch this case.
2502 cat >conftest.$ac_ext <<_ACEOF
2503/* confdefs.h. */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h. */
2508#ifdef __STDC__
2509# include <limits.h>
2510#else
2511# include <assert.h>
2512#endif
2513 Syntax error
2514_ACEOF
2515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2517 ac_status=$?
2518 grep -v '^ *+' conftest.er1 >conftest.err
2519 rm -f conftest.er1
2520 cat conftest.err >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } >/dev/null; then
2523 if test -s conftest.err; then
2524 ac_cpp_err=$ac_c_preproc_warn_flag
2525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2526 else
2527 ac_cpp_err=
2528 fi
2529else
2530 ac_cpp_err=yes
2531fi
2532if test -z "$ac_cpp_err"; then
2533 :
2534else
2535 echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 # Broken: fails on valid input.
2539continue
2540fi
2541rm -f conftest.err conftest.$ac_ext
2542
2543 # OK, works on sane cases. Now check whether non-existent headers
2544 # can be detected and how.
2545 cat >conftest.$ac_ext <<_ACEOF
2546/* confdefs.h. */
2547_ACEOF
2548cat confdefs.h >>conftest.$ac_ext
2549cat >>conftest.$ac_ext <<_ACEOF
2550/* end confdefs.h. */
2551#include <ac_nonexistent.h>
2552_ACEOF
2553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2555 ac_status=$?
2556 grep -v '^ *+' conftest.er1 >conftest.err
2557 rm -f conftest.er1
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } >/dev/null; then
2561 if test -s conftest.err; then
2562 ac_cpp_err=$ac_c_preproc_warn_flag
2563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2564 else
2565 ac_cpp_err=
2566 fi
2567else
2568 ac_cpp_err=yes
2569fi
2570if test -z "$ac_cpp_err"; then
2571 # Broken: success on invalid input.
2572continue
2573else
2574 echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 # Passes both tests.
2578ac_preproc_ok=:
2579break
2580fi
2581rm -f conftest.err conftest.$ac_ext
2582
2583done
2584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2585rm -f conftest.err conftest.$ac_ext
2586if $ac_preproc_ok; then
2587 break
2588fi
2589
2590 done
2591 ac_cv_prog_CPP=$CPP
2592
2593fi
2594 CPP=$ac_cv_prog_CPP
2595else
2596 ac_cv_prog_CPP=$CPP
2597fi
2598echo "$as_me:$LINENO: result: $CPP" >&5
2599echo "${ECHO_T}$CPP" >&6
2600ac_preproc_ok=false
2601for ac_c_preproc_warn_flag in '' yes
2602do
2603 # Use a header file that comes with gcc, so configuring glibc
2604 # with a fresh cross-compiler works.
2605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2606 # <limits.h> exists even on freestanding compilers.
2607 # On the NeXT, cc -E runs the code through the compiler's parser,
2608 # not just through cpp. "Syntax error" is here to catch this case.
2609 cat >conftest.$ac_ext <<_ACEOF
2610/* confdefs.h. */
2611_ACEOF
2612cat confdefs.h >>conftest.$ac_ext
2613cat >>conftest.$ac_ext <<_ACEOF
2614/* end confdefs.h. */
2615#ifdef __STDC__
2616# include <limits.h>
2617#else
2618# include <assert.h>
2619#endif
2620 Syntax error
2621_ACEOF
2622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } >/dev/null; then
2630 if test -s conftest.err; then
2631 ac_cpp_err=$ac_c_preproc_warn_flag
2632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2633 else
2634 ac_cpp_err=
2635 fi
2636else
2637 ac_cpp_err=yes
2638fi
2639if test -z "$ac_cpp_err"; then
2640 :
2641else
2642 echo "$as_me: failed program was:" >&5
2643sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 # Broken: fails on valid input.
2646continue
2647fi
2648rm -f conftest.err conftest.$ac_ext
2649
2650 # OK, works on sane cases. Now check whether non-existent headers
2651 # can be detected and how.
2652 cat >conftest.$ac_ext <<_ACEOF
2653/* confdefs.h. */
2654_ACEOF
2655cat confdefs.h >>conftest.$ac_ext
2656cat >>conftest.$ac_ext <<_ACEOF
2657/* end confdefs.h. */
2658#include <ac_nonexistent.h>
2659_ACEOF
2660if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2662 ac_status=$?
2663 grep -v '^ *+' conftest.er1 >conftest.err
2664 rm -f conftest.er1
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } >/dev/null; then
2668 if test -s conftest.err; then
2669 ac_cpp_err=$ac_c_preproc_warn_flag
2670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2671 else
2672 ac_cpp_err=
2673 fi
2674else
2675 ac_cpp_err=yes
2676fi
2677if test -z "$ac_cpp_err"; then
2678 # Broken: success on invalid input.
2679continue
2680else
2681 echo "$as_me: failed program was:" >&5
2682sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 # Passes both tests.
2685ac_preproc_ok=:
2686break
2687fi
2688rm -f conftest.err conftest.$ac_ext
2689
2690done
2691# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2692rm -f conftest.err conftest.$ac_ext
2693if $ac_preproc_ok; then
2694 :
2695else
2696 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2697See \`config.log' for more details." >&5
2698echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2699See \`config.log' for more details." >&2;}
2700 { (exit 1); exit 1; }; }
2701fi
2702
2703ac_ext=c
2704ac_cpp='$CPP $CPPFLAGS'
2705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708
2709
2710echo "$as_me:$LINENO: checking for egrep" >&5
2711echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2712if test "${ac_cv_prog_egrep+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714else
2715 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2716 then ac_cv_prog_egrep='grep -E'
2717 else ac_cv_prog_egrep='egrep'
2718 fi
2719fi
2720echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2721echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2722 EGREP=$ac_cv_prog_egrep
2723
2724
2725echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2726echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2727if test "${ac_cv_header_stdc+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729else
2730 cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h. */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h. */
2736#include <stdlib.h>
2737#include <stdarg.h>
2738#include <string.h>
2739#include <float.h>
2740
2741int
2742main ()
2743{
2744
2745 ;
2746 return 0;
2747}
2748_ACEOF
2749rm -f conftest.$ac_objext
2750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>conftest.er1
2752 ac_status=$?
2753 grep -v '^ *+' conftest.er1 >conftest.err
2754 rm -f conftest.er1
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -z "$ac_c_werror_flag"
2759 || test ! -s conftest.err'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 (eval $ac_try) 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; } &&
2765 { ac_try='test -s conftest.$ac_objext'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 ac_cv_header_stdc=yes
2772else
2773 echo "$as_me: failed program was:" >&5
2774sed 's/^/| /' conftest.$ac_ext >&5
2775
2776ac_cv_header_stdc=no
2777fi
2778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2779
2780if test $ac_cv_header_stdc = yes; then
2781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2782 cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h. */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h. */
2788#include <string.h>
2789
2790_ACEOF
2791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2792 $EGREP "memchr" >/dev/null 2>&1; then
2793 :
2794else
2795 ac_cv_header_stdc=no
2796fi
2797rm -f conftest*
2798
2799fi
2800
2801if test $ac_cv_header_stdc = yes; then
2802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2803 cat >conftest.$ac_ext <<_ACEOF
2804/* confdefs.h. */
2805_ACEOF
2806cat confdefs.h >>conftest.$ac_ext
2807cat >>conftest.$ac_ext <<_ACEOF
2808/* end confdefs.h. */
2809#include <stdlib.h>
2810
2811_ACEOF
2812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2813 $EGREP "free" >/dev/null 2>&1; then
2814 :
2815else
2816 ac_cv_header_stdc=no
2817fi
2818rm -f conftest*
2819
2820fi
2821
2822if test $ac_cv_header_stdc = yes; then
2823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2824 if test "$cross_compiling" = yes; then
2825 :
2826else
2827 cat >conftest.$ac_ext <<_ACEOF
2828/* confdefs.h. */
2829_ACEOF
2830cat confdefs.h >>conftest.$ac_ext
2831cat >>conftest.$ac_ext <<_ACEOF
2832/* end confdefs.h. */
2833#include <ctype.h>
2834#if ((' ' & 0x0FF) == 0x020)
2835# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2836# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2837#else
2838# define ISLOWER(c) \
2839 (('a' <= (c) && (c) <= 'i') \
2840 || ('j' <= (c) && (c) <= 'r') \
2841 || ('s' <= (c) && (c) <= 'z'))
2842# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2843#endif
2844
2845#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2846int
2847main ()
2848{
2849 int i;
2850 for (i = 0; i < 256; i++)
2851 if (XOR (islower (i), ISLOWER (i))
2852 || toupper (i) != TOUPPER (i))
2853 exit(2);
2854 exit (0);
2855}
2856_ACEOF
2857rm -f conftest$ac_exeext
2858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2859 (eval $ac_link) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 :
2869else
2870 echo "$as_me: program exited with status $ac_status" >&5
2871echo "$as_me: failed program was:" >&5
2872sed 's/^/| /' conftest.$ac_ext >&5
2873
2874( exit $ac_status )
2875ac_cv_header_stdc=no
2876fi
2877rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2878fi
2879fi
2880fi
2881echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2882echo "${ECHO_T}$ac_cv_header_stdc" >&6
2883if test $ac_cv_header_stdc = yes; then
2884
2885cat >>confdefs.h <<\_ACEOF
2886#define STDC_HEADERS 1
2887_ACEOF
2888
2889fi
2890
2891# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2902 inttypes.h stdint.h unistd.h
2903do
2904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2905echo "$as_me:$LINENO: checking for $ac_header" >&5
2906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2907if eval "test \"\${$as_ac_Header+set}\" = set"; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
2910 cat >conftest.$ac_ext <<_ACEOF
2911/* confdefs.h. */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h. */
2916$ac_includes_default
2917
2918#include <$ac_header>
2919_ACEOF
2920rm -f conftest.$ac_objext
2921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>conftest.er1
2923 ac_status=$?
2924 grep -v '^ *+' conftest.er1 >conftest.err
2925 rm -f conftest.er1
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -z "$ac_c_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 eval "$as_ac_Header=yes"
2943else
2944 echo "$as_me: failed program was:" >&5
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
2947eval "$as_ac_Header=no"
2948fi
2949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2950fi
2951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2953if test `eval echo '${'$as_ac_Header'}'` = yes; then
2954 cat >>confdefs.h <<_ACEOF
2955#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2956_ACEOF
2957
2958fi
2959
2960done
2961
2962
2963echo "$as_me:$LINENO: checking for void *" >&5
2964echo $ECHO_N "checking for void *... $ECHO_C" >&6
2965if test "${ac_cv_type_void_p+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967else
2968 cat >conftest.$ac_ext <<_ACEOF
2969/* confdefs.h. */
2970_ACEOF
2971cat confdefs.h >>conftest.$ac_ext
2972cat >>conftest.$ac_ext <<_ACEOF
2973/* end confdefs.h. */
2974$ac_includes_default
2975int
2976main ()
2977{
2978if ((void * *) 0)
2979 return 0;
2980if (sizeof (void *))
2981 return 0;
2982 ;
2983 return 0;
2984}
2985_ACEOF
2986rm -f conftest.$ac_objext
2987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2988 (eval $ac_compile) 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } &&
2995 { ac_try='test -z "$ac_c_werror_flag"
2996 || test ! -s conftest.err'
2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 (eval $ac_try) 2>&5
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 (eval $ac_try) 2>&5
3005 ac_status=$?
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3008 ac_cv_type_void_p=yes
3009else
3010 echo "$as_me: failed program was:" >&5
3011sed 's/^/| /' conftest.$ac_ext >&5
3012
3013ac_cv_type_void_p=no
3014fi
3015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3016fi
3017echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3018echo "${ECHO_T}$ac_cv_type_void_p" >&6
3019
3020echo "$as_me:$LINENO: checking size of void *" >&5
3021echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3022if test "${ac_cv_sizeof_void_p+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025 if test "$ac_cv_type_void_p" = yes; then
3026 # The cast to unsigned long works around a bug in the HP C Compiler
3027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3029 # This bug is HP SR number 8606223364.
3030 if test "$cross_compiling" = yes; then
3031 # Depending upon the size, compute the lo and hi bounds.
3032cat >conftest.$ac_ext <<_ACEOF
3033/* confdefs.h. */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h. */
3038$ac_includes_default
3039int
3040main ()
3041{
3042static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3043test_array [0] = 0
3044
3045 ;
3046 return 0;
3047}
3048_ACEOF
3049rm -f conftest.$ac_objext
3050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051 (eval $ac_compile) 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag"
3059 || test ! -s conftest.err'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; } &&
3065 { ac_try='test -s conftest.$ac_objext'
3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 (eval $ac_try) 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3071 ac_lo=0 ac_mid=0
3072 while :; do
3073 cat >conftest.$ac_ext <<_ACEOF
3074/* confdefs.h. */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h. */
3079$ac_includes_default
3080int
3081main ()
3082{
3083static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3084test_array [0] = 0
3085
3086 ;
3087 return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext
3091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -z "$ac_c_werror_flag"
3100 || test ! -s conftest.err'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 (eval $ac_try) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 (eval $ac_try) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3112 ac_hi=$ac_mid; break
3113else
3114 echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117ac_lo=`expr $ac_mid + 1`
3118 if test $ac_lo -le $ac_mid; then
3119 ac_lo= ac_hi=
3120 break
3121 fi
3122 ac_mid=`expr 2 '*' $ac_mid + 1`
3123fi
3124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3125 done
3126else
3127 echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h. */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h. */
3136$ac_includes_default
3137int
3138main ()
3139{
3140static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3141test_array [0] = 0
3142
3143 ;
3144 return 0;
3145}
3146_ACEOF
3147rm -f conftest.$ac_objext
3148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149 (eval $ac_compile) 2>conftest.er1
3150 ac_status=$?
3151 grep -v '^ *+' conftest.er1 >conftest.err
3152 rm -f conftest.er1
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -z "$ac_c_werror_flag"
3157 || test ! -s conftest.err'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 (eval $ac_try) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; } &&
3163 { ac_try='test -s conftest.$ac_objext'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 (eval $ac_try) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 ac_hi=-1 ac_mid=-1
3170 while :; do
3171 cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
3177$ac_includes_default
3178int
3179main ()
3180{
3181static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3182test_array [0] = 0
3183
3184 ;
3185 return 0;
3186}
3187_ACEOF
3188rm -f conftest.$ac_objext
3189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190 (eval $ac_compile) 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -z "$ac_c_werror_flag"
3198 || test ! -s conftest.err'
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 (eval $ac_try) 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 (eval $ac_try) 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3210 ac_lo=$ac_mid; break
3211else
3212 echo "$as_me: failed program was:" >&5
3213sed 's/^/| /' conftest.$ac_ext >&5
3214
3215ac_hi=`expr '(' $ac_mid ')' - 1`
3216 if test $ac_mid -le $ac_hi; then
3217 ac_lo= ac_hi=
3218 break
3219 fi
3220 ac_mid=`expr 2 '*' $ac_mid`
3221fi
3222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3223 done
3224else
3225 echo "$as_me: failed program was:" >&5
3226sed 's/^/| /' conftest.$ac_ext >&5
3227
3228ac_lo= ac_hi=
3229fi
3230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3231fi
3232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3233# Binary search between lo and hi bounds.
3234while test "x$ac_lo" != "x$ac_hi"; do
3235 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3236 cat >conftest.$ac_ext <<_ACEOF
3237/* confdefs.h. */
3238_ACEOF
3239cat confdefs.h >>conftest.$ac_ext
3240cat >>conftest.$ac_ext <<_ACEOF
3241/* end confdefs.h. */
3242$ac_includes_default
3243int
3244main ()
3245{
3246static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3247test_array [0] = 0
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_hi=$ac_mid
3276else
3277 echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280ac_lo=`expr '(' $ac_mid ')' + 1`
3281fi
3282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283done
3284case $ac_lo in
3285?*) ac_cv_sizeof_void_p=$ac_lo;;
3286'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3287See \`config.log' for more details." >&5
3288echo "$as_me: error: cannot compute sizeof (void *), 77
3289See \`config.log' for more details." >&2;}
3290 { (exit 1); exit 1; }; } ;;
3291esac
3292else
3293 if test "$cross_compiling" = yes; then
3294 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3295See \`config.log' for more details." >&5
3296echo "$as_me: error: cannot run test program while cross compiling
3297See \`config.log' for more details." >&2;}
3298 { (exit 1); exit 1; }; }
3299else
3300 cat >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$ac_includes_default
3307long longval () { return (long) (sizeof (void *)); }
3308unsigned long ulongval () { return (long) (sizeof (void *)); }
3309#include <stdio.h>
3310#include <stdlib.h>
3311int
3312main ()
3313{
3314
3315 FILE *f = fopen ("conftest.val", "w");
3316 if (! f)
3317 exit (1);
3318 if (((long) (sizeof (void *))) < 0)
3319 {
3320 long i = longval ();
3321 if (i != ((long) (sizeof (void *))))
3322 exit (1);
3323 fprintf (f, "%ld\n", i);
3324 }
3325 else
3326 {
3327 unsigned long i = ulongval ();
3328 if (i != ((long) (sizeof (void *))))
3329 exit (1);
3330 fprintf (f, "%lu\n", i);
3331 }
3332 exit (ferror (f) || fclose (f) != 0);
3333
3334 ;
3335 return 0;
3336}
3337_ACEOF
3338rm -f conftest$ac_exeext
3339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3340 (eval $ac_link) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_cv_sizeof_void_p=`cat conftest.val`
3350else
3351 echo "$as_me: program exited with status $ac_status" >&5
3352echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355( exit $ac_status )
3356{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3357See \`config.log' for more details." >&5
3358echo "$as_me: error: cannot compute sizeof (void *), 77
3359See \`config.log' for more details." >&2;}
3360 { (exit 1); exit 1; }; }
3361fi
3362rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3363fi
3364fi
3365rm -f conftest.val
3366else
3367 ac_cv_sizeof_void_p=0
3368fi
3369fi
3370echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3371echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3372cat >>confdefs.h <<_ACEOF
3373#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3374_ACEOF
3375
3376
3377echo "$as_me:$LINENO: checking for int" >&5
3378echo $ECHO_N "checking for int... $ECHO_C" >&6
3379if test "${ac_cv_type_int+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381else
3382 cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h. */
3388$ac_includes_default
3389int
3390main ()
3391{
3392if ((int *) 0)
3393 return 0;
3394if (sizeof (int))
3395 return 0;
3396 ;
3397 return 0;
3398}
3399_ACEOF
3400rm -f conftest.$ac_objext
3401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3402 (eval $ac_compile) 2>conftest.er1
3403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } &&
3409 { ac_try='test -z "$ac_c_werror_flag"
3410 || test ! -s conftest.err'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 (eval $ac_try) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; } &&
3416 { ac_try='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 (eval $ac_try) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 ac_cv_type_int=yes
3423else
3424 echo "$as_me: failed program was:" >&5
3425sed 's/^/| /' conftest.$ac_ext >&5
3426
3427ac_cv_type_int=no
3428fi
3429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3430fi
3431echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3432echo "${ECHO_T}$ac_cv_type_int" >&6
3433
3434echo "$as_me:$LINENO: checking size of int" >&5
3435echo $ECHO_N "checking size of int... $ECHO_C" >&6
3436if test "${ac_cv_sizeof_int+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439 if test "$ac_cv_type_int" = yes; then
3440 # The cast to unsigned long works around a bug in the HP C Compiler
3441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3443 # This bug is HP SR number 8606223364.
3444 if test "$cross_compiling" = yes; then
3445 # Depending upon the size, compute the lo and hi bounds.
3446cat >conftest.$ac_ext <<_ACEOF
3447/* confdefs.h. */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
3451/* end confdefs.h. */
3452$ac_includes_default
3453int
3454main ()
3455{
3456static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3457test_array [0] = 0
3458
3459 ;
3460 return 0;
3461}
3462_ACEOF
3463rm -f conftest.$ac_objext
3464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } &&
3472 { ac_try='test -z "$ac_c_werror_flag"
3473 || test ! -s conftest.err'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; } &&
3479 { ac_try='test -s conftest.$ac_objext'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 (eval $ac_try) 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 ac_lo=0 ac_mid=0
3486 while :; do
3487 cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h. */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h. */
3493$ac_includes_default
3494int
3495main ()
3496{
3497static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3498test_array [0] = 0
3499
3500 ;
3501 return 0;
3502}
3503_ACEOF
3504rm -f conftest.$ac_objext
3505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506 (eval $ac_compile) 2>conftest.er1
3507 ac_status=$?
3508 grep -v '^ *+' conftest.er1 >conftest.err
3509 rm -f conftest.er1
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -z "$ac_c_werror_flag"
3514 || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 ac_hi=$ac_mid; break
3527else
3528 echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531ac_lo=`expr $ac_mid + 1`
3532 if test $ac_lo -le $ac_mid; then
3533 ac_lo= ac_hi=
3534 break
3535 fi
3536 ac_mid=`expr 2 '*' $ac_mid + 1`
3537fi
3538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3539 done
3540else
3541 echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544cat >conftest.$ac_ext <<_ACEOF
3545/* confdefs.h. */
3546_ACEOF
3547cat confdefs.h >>conftest.$ac_ext
3548cat >>conftest.$ac_ext <<_ACEOF
3549/* end confdefs.h. */
3550$ac_includes_default
3551int
3552main ()
3553{
3554static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3555test_array [0] = 0
3556
3557 ;
3558 return 0;
3559}
3560_ACEOF
3561rm -f conftest.$ac_objext
3562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 ac_hi=-1 ac_mid=-1
3584 while :; do
3585 cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h. */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h. */
3591$ac_includes_default
3592int
3593main ()
3594{
3595static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3596test_array [0] = 0
3597
3598 ;
3599 return 0;
3600}
3601_ACEOF
3602rm -f conftest.$ac_objext
3603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604 (eval $ac_compile) 2>conftest.er1
3605 ac_status=$?
3606 grep -v '^ *+' conftest.er1 >conftest.err
3607 rm -f conftest.er1
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -z "$ac_c_werror_flag"
3612 || test ! -s conftest.err'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; } &&
3618 { ac_try='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_lo=$ac_mid; break
3625else
3626 echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629ac_hi=`expr '(' $ac_mid ')' - 1`
3630 if test $ac_mid -le $ac_hi; then
3631 ac_lo= ac_hi=
3632 break
3633 fi
3634 ac_mid=`expr 2 '*' $ac_mid`
3635fi
3636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 done
3638else
3639 echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642ac_lo= ac_hi=
3643fi
3644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3645fi
3646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647# Binary search between lo and hi bounds.
3648while test "x$ac_lo" != "x$ac_hi"; do
3649 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3650 cat >conftest.$ac_ext <<_ACEOF
3651/* confdefs.h. */
3652_ACEOF
3653cat confdefs.h >>conftest.$ac_ext
3654cat >>conftest.$ac_ext <<_ACEOF
3655/* end confdefs.h. */
3656$ac_includes_default
3657int
3658main ()
3659{
3660static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3661test_array [0] = 0
3662
3663 ;
3664 return 0;
3665}
3666_ACEOF
3667rm -f conftest.$ac_objext
3668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3669 (eval $ac_compile) 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -z "$ac_c_werror_flag"
3677 || test ! -s conftest.err'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; } &&
3683 { ac_try='test -s conftest.$ac_objext'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 ac_hi=$ac_mid
3690else
3691 echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
3694ac_lo=`expr '(' $ac_mid ')' + 1`
3695fi
3696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3697done
3698case $ac_lo in
3699?*) ac_cv_sizeof_int=$ac_lo;;
3700'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3701See \`config.log' for more details." >&5
3702echo "$as_me: error: cannot compute sizeof (int), 77
3703See \`config.log' for more details." >&2;}
3704 { (exit 1); exit 1; }; } ;;
3705esac
3706else
3707 if test "$cross_compiling" = yes; then
3708 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3709See \`config.log' for more details." >&5
3710echo "$as_me: error: cannot run test program while cross compiling
3711See \`config.log' for more details." >&2;}
3712 { (exit 1); exit 1; }; }
3713else
3714 cat >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$ac_includes_default
3721long longval () { return (long) (sizeof (int)); }
3722unsigned long ulongval () { return (long) (sizeof (int)); }
3723#include <stdio.h>
3724#include <stdlib.h>
3725int
3726main ()
3727{
3728
3729 FILE *f = fopen ("conftest.val", "w");
3730 if (! f)
3731 exit (1);
3732 if (((long) (sizeof (int))) < 0)
3733 {
3734 long i = longval ();
3735 if (i != ((long) (sizeof (int))))
3736 exit (1);
3737 fprintf (f, "%ld\n", i);
3738 }
3739 else
3740 {
3741 unsigned long i = ulongval ();
3742 if (i != ((long) (sizeof (int))))
3743 exit (1);
3744 fprintf (f, "%lu\n", i);
3745 }
3746 exit (ferror (f) || fclose (f) != 0);
3747
3748 ;
3749 return 0;
3750}
3751_ACEOF
3752rm -f conftest$ac_exeext
3753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3754 (eval $ac_link) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 (eval $ac_try) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3763 ac_cv_sizeof_int=`cat conftest.val`
3764else
3765 echo "$as_me: program exited with status $ac_status" >&5
3766echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769( exit $ac_status )
3770{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3771See \`config.log' for more details." >&5
3772echo "$as_me: error: cannot compute sizeof (int), 77
3773See \`config.log' for more details." >&2;}
3774 { (exit 1); exit 1; }; }
3775fi
3776rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3777fi
3778fi
3779rm -f conftest.val
3780else
3781 ac_cv_sizeof_int=0
3782fi
3783fi
3784echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3785echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3786cat >>confdefs.h <<_ACEOF
3787#define SIZEOF_INT $ac_cv_sizeof_int
3788_ACEOF
3789
3790
3791echo "$as_me:$LINENO: checking for long" >&5
3792echo $ECHO_N "checking for long... $ECHO_C" >&6
3793if test "${ac_cv_type_long+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795else
3796 cat >conftest.$ac_ext <<_ACEOF
3797/* confdefs.h. */
3798_ACEOF
3799cat confdefs.h >>conftest.$ac_ext
3800cat >>conftest.$ac_ext <<_ACEOF
3801/* end confdefs.h. */
3802$ac_includes_default
3803int
3804main ()
3805{
3806if ((long *) 0)
3807 return 0;
3808if (sizeof (long))
3809 return 0;
3810 ;
3811 return 0;
3812}
3813_ACEOF
3814rm -f conftest.$ac_objext
3815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
3823 { ac_try='test -z "$ac_c_werror_flag"
3824 || test ! -s conftest.err'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_cv_type_long=yes
3837else
3838 echo "$as_me: failed program was:" >&5
3839sed 's/^/| /' conftest.$ac_ext >&5
3840
3841ac_cv_type_long=no
3842fi
3843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3844fi
3845echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3846echo "${ECHO_T}$ac_cv_type_long" >&6
3847
3848echo "$as_me:$LINENO: checking size of long" >&5
3849echo $ECHO_N "checking size of long... $ECHO_C" >&6
3850if test "${ac_cv_sizeof_long+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852else
3853 if test "$ac_cv_type_long" = yes; then
3854 # The cast to unsigned long works around a bug in the HP C Compiler
3855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3857 # This bug is HP SR number 8606223364.
3858 if test "$cross_compiling" = yes; then
3859 # Depending upon the size, compute the lo and hi bounds.
3860cat >conftest.$ac_ext <<_ACEOF
3861/* confdefs.h. */
3862_ACEOF
3863cat confdefs.h >>conftest.$ac_ext
3864cat >>conftest.$ac_ext <<_ACEOF
3865/* end confdefs.h. */
3866$ac_includes_default
3867int
3868main ()
3869{
3870static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3871test_array [0] = 0
3872
3873 ;
3874 return 0;
3875}
3876_ACEOF
3877rm -f conftest.$ac_objext
3878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3879 (eval $ac_compile) 2>conftest.er1
3880 ac_status=$?
3881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } &&
3886 { ac_try='test -z "$ac_c_werror_flag"
3887 || test ! -s conftest.err'
3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 (eval $ac_try) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; } &&
3893 { ac_try='test -s conftest.$ac_objext'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 (eval $ac_try) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 ac_lo=0 ac_mid=0
3900 while :; do
3901 cat >conftest.$ac_ext <<_ACEOF
3902/* confdefs.h. */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h. */
3907$ac_includes_default
3908int
3909main ()
3910{
3911static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3912test_array [0] = 0
3913
3914 ;
3915 return 0;
3916}
3917_ACEOF
3918rm -f conftest.$ac_objext
3919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3920 (eval $ac_compile) 2>conftest.er1
3921 ac_status=$?
3922 grep -v '^ *+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -z "$ac_c_werror_flag"
3928 || test ! -s conftest.err'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; } &&
3934 { ac_try='test -s conftest.$ac_objext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 (eval $ac_try) 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 ac_hi=$ac_mid; break
3941else
3942 echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945ac_lo=`expr $ac_mid + 1`
3946 if test $ac_lo -le $ac_mid; then
3947 ac_lo= ac_hi=
3948 break
3949 fi
3950 ac_mid=`expr 2 '*' $ac_mid + 1`
3951fi
3952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3953 done
3954else
3955 echo "$as_me: failed program was:" >&5
3956sed 's/^/| /' conftest.$ac_ext >&5
3957
3958cat >conftest.$ac_ext <<_ACEOF
3959/* confdefs.h. */
3960_ACEOF
3961cat confdefs.h >>conftest.$ac_ext
3962cat >>conftest.$ac_ext <<_ACEOF
3963/* end confdefs.h. */
3964$ac_includes_default
3965int
3966main ()
3967{
3968static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
3969test_array [0] = 0
3970
3971 ;
3972 return 0;
3973}
3974_ACEOF
3975rm -f conftest.$ac_objext
3976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977 (eval $ac_compile) 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag"
3985 || test ! -s conftest.err'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 (eval $ac_try) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; } &&
3991 { ac_try='test -s conftest.$ac_objext'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 ac_hi=-1 ac_mid=-1
3998 while :; do
3999 cat >conftest.$ac_ext <<_ACEOF
4000/* confdefs.h. */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h. */
4005$ac_includes_default
4006int
4007main ()
4008{
4009static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4010test_array [0] = 0
4011
4012 ;
4013 return 0;
4014}
4015_ACEOF
4016rm -f conftest.$ac_objext
4017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_c_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_lo=$ac_mid; break
4039else
4040 echo "$as_me: failed program was:" >&5
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
4043ac_hi=`expr '(' $ac_mid ')' - 1`
4044 if test $ac_mid -le $ac_hi; then
4045 ac_lo= ac_hi=
4046 break
4047 fi
4048 ac_mid=`expr 2 '*' $ac_mid`
4049fi
4050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051 done
4052else
4053 echo "$as_me: failed program was:" >&5
4054sed 's/^/| /' conftest.$ac_ext >&5
4055
4056ac_lo= ac_hi=
4057fi
4058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4059fi
4060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4061# Binary search between lo and hi bounds.
4062while test "x$ac_lo" != "x$ac_hi"; do
4063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4064 cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h. */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h. */
4070$ac_includes_default
4071int
4072main ()
4073{
4074static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4075test_array [0] = 0
4076
4077 ;
4078 return 0;
4079}
4080_ACEOF
4081rm -f conftest.$ac_objext
4082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083 (eval $ac_compile) 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag"
4091 || test ! -s conftest.err'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 (eval $ac_try) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; } &&
4097 { ac_try='test -s conftest.$ac_objext'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 (eval $ac_try) 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 ac_hi=$ac_mid
4104else
4105 echo "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
4107
4108ac_lo=`expr '(' $ac_mid ')' + 1`
4109fi
4110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4111done
4112case $ac_lo in
4113?*) ac_cv_sizeof_long=$ac_lo;;
4114'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4115See \`config.log' for more details." >&5
4116echo "$as_me: error: cannot compute sizeof (long), 77
4117See \`config.log' for more details." >&2;}
4118 { (exit 1); exit 1; }; } ;;
4119esac
4120else
4121 if test "$cross_compiling" = yes; then
4122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4123See \`config.log' for more details." >&5
4124echo "$as_me: error: cannot run test program while cross compiling
4125See \`config.log' for more details." >&2;}
4126 { (exit 1); exit 1; }; }
4127else
4128 cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h. */
4134$ac_includes_default
4135long longval () { return (long) (sizeof (long)); }
4136unsigned long ulongval () { return (long) (sizeof (long)); }
4137#include <stdio.h>
4138#include <stdlib.h>
4139int
4140main ()
4141{
4142
4143 FILE *f = fopen ("conftest.val", "w");
4144 if (! f)
4145 exit (1);
4146 if (((long) (sizeof (long))) < 0)
4147 {
4148 long i = longval ();
4149 if (i != ((long) (sizeof (long))))
4150 exit (1);
4151 fprintf (f, "%ld\n", i);
4152 }
4153 else
4154 {
4155 unsigned long i = ulongval ();
4156 if (i != ((long) (sizeof (long))))
4157 exit (1);
4158 fprintf (f, "%lu\n", i);
4159 }
4160 exit (ferror (f) || fclose (f) != 0);
4161
4162 ;
4163 return 0;
4164}
4165_ACEOF
4166rm -f conftest$ac_exeext
4167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4168 (eval $ac_link) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 (eval $ac_try) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_sizeof_long=`cat conftest.val`
4178else
4179 echo "$as_me: program exited with status $ac_status" >&5
4180echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183( exit $ac_status )
4184{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4185See \`config.log' for more details." >&5
4186echo "$as_me: error: cannot compute sizeof (long), 77
4187See \`config.log' for more details." >&2;}
4188 { (exit 1); exit 1; }; }
4189fi
4190rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4191fi
4192fi
4193rm -f conftest.val
4194else
4195 ac_cv_sizeof_long=0
4196fi
4197fi
4198echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4199echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4200cat >>confdefs.h <<_ACEOF
4201#define SIZEOF_LONG $ac_cv_sizeof_long
4202_ACEOF
4203
4204
4205
4206######## check for the JDK and tools within the JDK
4207######## look in the JAVA_HOME environment variable at configure-time
4208echo "$as_me:$LINENO: checking for the JDK" >&5
4209echo $ECHO_N "checking for the JDK... $ECHO_C" >&6
4210if test "z$JAVA_HOME" != z &&
4211 test -d $JAVA_HOME &&
4212 test -d $JAVA_HOME/include
4213then
4214
4215 echo "$as_me:$LINENO: result: found in $JAVA_HOME" >&5
4216echo "${ECHO_T}found in $JAVA_HOME" >&6
4217else
4218 { { echo "$as_me:$LINENO: error: not found in \$JAVA_HOME" >&5
4219echo "$as_me: error: not found in \$JAVA_HOME" >&2;}
4220 { (exit 1); exit 1; }; }
4221fi
4222
4223# TODO: Check for specific header files in the JDK, or
4224# functions/definitions within those headers?
4225
4226# TODO: guess which include directory to use under the JDK
4227
4228# Extract the first word of "javah", so it can be a program name with args.
4229set dummy javah; ac_word=$2
4230echo "$as_me:$LINENO: checking for $ac_word" >&5
4231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4232if test "${ac_cv_path_javagdbm_cv_path_javah+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234else
4235 case $javagdbm_cv_path_javah in
4236 [\\/]* | ?:[\\/]*)
4237 ac_cv_path_javagdbm_cv_path_javah="$javagdbm_cv_path_javah" # Let the user override the test with a path.
4238 ;;
4239 *)
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241for as_dir in $PATH
4242do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247 ac_cv_path_javagdbm_cv_path_javah="$as_dir/$ac_word$ac_exec_ext"
4248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4250 fi
4251done
4252done
4253
4254 test -z "$ac_cv_path_javagdbm_cv_path_javah" && ac_cv_path_javagdbm_cv_path_javah="missing_javah"
4255 ;;
4256esac
4257fi
4258javagdbm_cv_path_javah=$ac_cv_path_javagdbm_cv_path_javah
4259
4260if test -n "$javagdbm_cv_path_javah"; then
4261 echo "$as_me:$LINENO: result: $javagdbm_cv_path_javah" >&5
4262echo "${ECHO_T}$javagdbm_cv_path_javah" >&6
4263else
4264 echo "$as_me:$LINENO: result: no" >&5
4265echo "${ECHO_T}no" >&6
4266fi
4267
4268if test "$javagdbm_cv_path_javah" = missing_javah; then
4269 { { echo "$as_me:$LINENO: error: javah not found." >&5
4270echo "$as_me: error: javah not found." >&2;}
4271 { (exit 1); exit 1; }; }
4272fi
4273
4274# Extract the first word of "java", so it can be a program name with args.
4275set dummy java; ac_word=$2
4276echo "$as_me:$LINENO: checking for $ac_word" >&5
4277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278if test "${ac_cv_path_javagdbm_cv_path_java+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
4281 case $javagdbm_cv_path_java in
4282 [\\/]* | ?:[\\/]*)
4283 ac_cv_path_javagdbm_cv_path_java="$javagdbm_cv_path_java" # Let the user override the test with a path.
4284 ;;
4285 *)
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH
4288do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293 ac_cv_path_javagdbm_cv_path_java="$as_dir/$ac_word$ac_exec_ext"
4294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4296 fi
4297done
4298done
4299
4300 test -z "$ac_cv_path_javagdbm_cv_path_java" && ac_cv_path_javagdbm_cv_path_java="missing"
4301 ;;
4302esac
4303fi
4304javagdbm_cv_path_java=$ac_cv_path_javagdbm_cv_path_java
4305
4306if test -n "$javagdbm_cv_path_java"; then
4307 echo "$as_me:$LINENO: result: $javagdbm_cv_path_java" >&5
4308echo "${ECHO_T}$javagdbm_cv_path_java" >&6
4309else
4310 echo "$as_me:$LINENO: result: no" >&5
4311echo "${ECHO_T}no" >&6
4312fi
4313
4314if test "$javagdbm_cv_path_java" = missing; then
4315 { { echo "$as_me:$LINENO: error: java not found." >&5
4316echo "$as_me: error: java not found." >&2;}
4317 { (exit 1); exit 1; }; }
4318fi
4319
4320# check for gdbm library
4321#AC_CHECK_LIB(gdbm, gdbm_open, [javagdbm_cv_lib_gdbm="-lgdbm"],
4322# [javagdbm_cv_lib_gdbm=no])
4323#if test "$javagdbm_cv_lib_gdbm" = "no"; then
4324# AC_MSG_ERROR([no native gdbm library found.])
4325#fi
4326#LIBS="$javagdbm_cv_lib_gdbm"
4327
4328# gdbm stuff copied from gsdl [kjdon]
4329
4330
4331echo "$as_me:$LINENO: checking that the GDBM library is available" >&5
4332echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6
4333if test ! -z "$gdbmdir" ; then
4334 # look in given directory for header file
4335 if test -r $gdbmdir/include/gdbm.h ; then
4336 GDBM_INCLUDE="-I$gdbmdir/include" ;
4337 elif test -r $gdbmdir/gdbm.h ; then
4338 GDBM_INCLUDE="-I$gdbmdir" ;
4339 fi
4340
4341 # look in given directory for library
4342 if test -r $gdbmdir/libgdbm.a ; then
4343 GDBM_LIBPATH="-L$gdbmdir" ;
4344 elif test -r $gdbmdir/lib/libgdbm.a ; then
4345 GDBM_LIBPATH="-L$gdbmdir/lib" ;
4346 elif test -r $gdbmdir/.libs/libgdbm.a ; then
4347 GDBM_LIBPATH="-L$gdbmdir/.libs" ;
4348 fi
4349
4350 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
4351 echo "$as_me:$LINENO: result: $gdbmdir" >&5
4352echo "${ECHO_T}$gdbmdir" >&6 ;
4353 else
4354 echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
4355echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;
4356 echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&5
4357echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6
4358 fi
4359fi
4360
4361# look in default path and in /usr/local
4362if test -z "$GDBM_INCLUDE" ; then
4363 # try in system directory
4364 cat >conftest.$ac_ext <<_ACEOF
4365/* confdefs.h. */
4366_ACEOF
4367cat confdefs.h >>conftest.$ac_ext
4368cat >>conftest.$ac_ext <<_ACEOF
4369/* end confdefs.h. */
4370#include <gdbm.h>
4371
4372int
4373main ()
4374{
4375
4376 ;
4377 return 0;
4378}
4379_ACEOF
4380rm -f conftest.$ac_objext
4381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382 (eval $ac_compile) 2>conftest.er1
4383 ac_status=$?
4384 grep -v '^ *+' conftest.er1 >conftest.err
4385 rm -f conftest.er1
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -z "$ac_c_werror_flag"
4390 || test ! -s conftest.err'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; } &&
4396 { ac_try='test -s conftest.$ac_objext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 success=yes
4403else
4404 echo "$as_me: failed program was:" >&5
4405sed 's/^/| /' conftest.$ac_ext >&5
4406
4407success=no
4408
4409fi
4410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4411
4412 if test $success = "no"; then
4413# last chance - look in /usr/local (eg FreeBSD)
4414 GDBM_LIBPATH=-L/usr/local/lib
4415 GDBM_INCLUDE=-I/usr/local/include
4416 ac_save_CXXFLAGS="$CXXFLAGS"
4417 ac_save_LIBS="$LIBS"
4418 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
4419 LIBS="$LIBS -L/usr/local/lib -lgdbm"
4420 cat >conftest.$ac_ext <<_ACEOF
4421/* confdefs.h. */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h. */
4426#include <gdbm.h>
4427#include <stdio.h>
4428
4429int
4430main ()
4431{
4432printf("%s",gdbm_version);
4433 ;
4434 return 0;
4435}
4436_ACEOF
4437rm -f conftest.$ac_objext conftest$ac_exeext
4438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4439 (eval $ac_link) 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -z "$ac_c_werror_flag"
4447 || test ! -s conftest.err'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try='test -s conftest$ac_exeext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 success=/usr/local
4460else
4461 echo "$as_me: failed program was:" >&5
4462sed 's/^/| /' conftest.$ac_ext >&5
4463
4464success=no
4465
4466fi
4467rm -f conftest.err conftest.$ac_objext \
4468 conftest$ac_exeext conftest.$ac_ext
4469 CXXFLAGS=$ac_save_CXXFLAGS
4470 LIBS=$ac_save_LIBS
4471 fi
4472
4473 echo "$as_me:$LINENO: result: $success" >&5
4474echo "${ECHO_T}$success" >&6
4475 if test $success = "no"; then
4476 { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&5
4477echo "$as_me: error: GDBM Library not available - cannot install" >&2;}
4478 { (exit 1); exit 1; }; }
4479 fi
4480fi
4481cat >>confdefs.h <<\_ACEOF
4482#define HAVE_LIBGDBM 1
4483_ACEOF
4484
4485
4486
4487
4488
4489########## set compiler options
4490# TODO: is there a more appropriate way to guess which switches to use
4491# with which systems/compilers?
4492CFLAGS="-Wall -O2 -fpic"
4493PKG="au.com.pharos.gdbm"
4494
4495
4496
4497
4498# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
4499# a non-standard Path
4500# is there a better way to do this??
4501echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
4502echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
4503# set defaults
4504JNIINC=""
4505JNISUFFIX="so"
4506JNIFLAGS="-shared"
4507
4508if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
4509 echo "$as_me:$LINENO: result: Darwin" >&5
4510echo "${ECHO_T}Darwin" >&6
4511 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
4512 JNISUFFIX="jnilib"
4513 JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
4514fi
4515if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
4516 echo "$as_me:$LINENO: result: Solaris" >&5
4517echo "${ECHO_T}Solaris" >&6
4518 JNIINC="-I\$(JAVA_HOME)/include/solaris "
4519fi
4520if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
4521 echo "$as_me:$LINENO: result: Linux" >&5
4522echo "${ECHO_T}Linux" >&6
4523 JNIINC="-I\$(JAVA_HOME)/include/linux "
4524fi
4525
4526
4527
4528
4529
4530# write the output
4531 ac_config_files="$ac_config_files Makefile jni/Makefile java/Makefile"
4532cat >confcache <<\_ACEOF
4533# This file is a shell script that caches the results of configure
4534# tests run on this system so they can be shared between configure
4535# scripts and configure runs, see configure's option --config-cache.
4536# It is not useful on other systems. If it contains results you don't
4537# want to keep, you may remove or edit it.
4538#
4539# config.status only pays attention to the cache file if you give it
4540# the --recheck option to rerun configure.
4541#
4542# `ac_cv_env_foo' variables (set or unset) will be overridden when
4543# loading this file, other *unset* `ac_cv_foo' will be assigned the
4544# following values.
4545
4546_ACEOF
4547
4548# The following way of writing the cache mishandles newlines in values,
4549# but we know of no workaround that is simple, portable, and efficient.
4550# So, don't put newlines in cache variables' values.
4551# Ultrix sh set writes to stderr and can't be redirected directly,
4552# and sets the high bit in the cache file unless we assign to the vars.
4553{
4554 (set) 2>&1 |
4555 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4556 *ac_space=\ *)
4557 # `set' does not quote correctly, so add quotes (double-quote
4558 # substitution turns \\\\ into \\, and sed turns \\ into \).
4559 sed -n \
4560 "s/'/'\\\\''/g;
4561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4562 ;;
4563 *)
4564 # `set' quotes correctly as required by POSIX, so do not add quotes.
4565 sed -n \
4566 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4567 ;;
4568 esac;
4569} |
4570 sed '
4571 t clear
4572 : clear
4573 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4574 t end
4575 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4576 : end' >>confcache
4577if diff $cache_file confcache >/dev/null 2>&1; then :; else
4578 if test -w $cache_file; then
4579 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4580 cat confcache >$cache_file
4581 else
4582 echo "not updating unwritable cache $cache_file"
4583 fi
4584fi
4585rm -f confcache
4586
4587test "x$prefix" = xNONE && prefix=$ac_default_prefix
4588# Let make expand exec_prefix.
4589test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4590
4591# VPATH may cause trouble with some makes, so we remove $(srcdir),
4592# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4593# trailing colons and then remove the whole line if VPATH becomes empty
4594# (actually we leave an empty line to preserve line numbers).
4595if test "x$srcdir" = x.; then
4596 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4597s/:*\$(srcdir):*/:/;
4598s/:*\${srcdir}:*/:/;
4599s/:*@srcdir@:*/:/;
4600s/^\([^=]*=[ ]*\):*/\1/;
4601s/:*$//;
4602s/^[^=]*=[ ]*$//;
4603}'
4604fi
4605
4606# Transform confdefs.h into DEFS.
4607# Protect against shell expansion while executing Makefile rules.
4608# Protect against Makefile macro expansion.
4609#
4610# If the first sed substitution is executed (which looks for macros that
4611# take arguments), then we branch to the quote section. Otherwise,
4612# look for a macro that doesn't take arguments.
4613cat >confdef2opt.sed <<\_ACEOF
4614t clear
4615: clear
4616s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4617t quote
4618s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4619t quote
4620d
4621: quote
4622s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4623s,\[,\\&,g
4624s,\],\\&,g
4625s,\$,$$,g
4626p
4627_ACEOF
4628# We use echo to avoid assuming a particular line-breaking character.
4629# The extra dot is to prevent the shell from consuming trailing
4630# line-breaks from the sub-command output. A line-break within
4631# single-quotes doesn't work because, if this script is created in a
4632# platform that uses two characters for line-breaks (e.g., DOS), tr
4633# would break.
4634ac_LF_and_DOT=`echo; echo .`
4635DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4636rm -f confdef2opt.sed
4637
4638
4639ac_libobjs=
4640ac_ltlibobjs=
4641for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4642 # 1. Remove the extension, and $U if already installed.
4643 ac_i=`echo "$ac_i" |
4644 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4645 # 2. Add them.
4646 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4647 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4648done
4649LIBOBJS=$ac_libobjs
4650
4651LTLIBOBJS=$ac_ltlibobjs
4652
4653
4654
4655: ${CONFIG_STATUS=./config.status}
4656ac_clean_files_save=$ac_clean_files
4657ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4658{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4659echo "$as_me: creating $CONFIG_STATUS" >&6;}
4660cat >$CONFIG_STATUS <<_ACEOF
4661#! $SHELL
4662# Generated by $as_me.
4663# Run this file to recreate the current configuration.
4664# Compiler output produced by configure, useful for debugging
4665# configure, is in config.log if it exists.
4666
4667debug=false
4668ac_cs_recheck=false
4669ac_cs_silent=false
4670SHELL=\${CONFIG_SHELL-$SHELL}
4671_ACEOF
4672
4673cat >>$CONFIG_STATUS <<\_ACEOF
4674## --------------------- ##
4675## M4sh Initialization. ##
4676## --------------------- ##
4677
4678# Be Bourne compatible
4679if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4680 emulate sh
4681 NULLCMD=:
4682 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4683 # is contrary to our usage. Disable this feature.
4684 alias -g '${1+"$@"}'='"$@"'
4685elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4686 set -o posix
4687fi
4688DUALCASE=1; export DUALCASE # for MKS sh
4689
4690# Support unset when possible.
4691if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4692 as_unset=unset
4693else
4694 as_unset=false
4695fi
4696
4697
4698# Work around bugs in pre-3.0 UWIN ksh.
4699$as_unset ENV MAIL MAILPATH
4700PS1='$ '
4701PS2='> '
4702PS4='+ '
4703
4704# NLS nuisances.
4705for as_var in \
4706 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4707 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4708 LC_TELEPHONE LC_TIME
4709do
4710 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4711 eval $as_var=C; export $as_var
4712 else
4713 $as_unset $as_var
4714 fi
4715done
4716
4717# Required to use basename.
4718if expr a : '\(a\)' >/dev/null 2>&1; then
4719 as_expr=expr
4720else
4721 as_expr=false
4722fi
4723
4724if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4725 as_basename=basename
4726else
4727 as_basename=false
4728fi
4729
4730
4731# Name of the executable.
4732as_me=`$as_basename "$0" ||
4733$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4734 X"$0" : 'X\(//\)$' \| \
4735 X"$0" : 'X\(/\)$' \| \
4736 . : '\(.\)' 2>/dev/null ||
4737echo X/"$0" |
4738 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4739 /^X\/\(\/\/\)$/{ s//\1/; q; }
4740 /^X\/\(\/\).*/{ s//\1/; q; }
4741 s/.*/./; q'`
4742
4743
4744# PATH needs CR, and LINENO needs CR and PATH.
4745# Avoid depending upon Character Ranges.
4746as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4747as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4748as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4749as_cr_digits='0123456789'
4750as_cr_alnum=$as_cr_Letters$as_cr_digits
4751
4752# The user is always right.
4753if test "${PATH_SEPARATOR+set}" != set; then
4754 echo "#! /bin/sh" >conf$$.sh
4755 echo "exit 0" >>conf$$.sh
4756 chmod +x conf$$.sh
4757 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4758 PATH_SEPARATOR=';'
4759 else
4760 PATH_SEPARATOR=:
4761 fi
4762 rm -f conf$$.sh
4763fi
4764
4765
4766 as_lineno_1=$LINENO
4767 as_lineno_2=$LINENO
4768 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4769 test "x$as_lineno_1" != "x$as_lineno_2" &&
4770 test "x$as_lineno_3" = "x$as_lineno_2" || {
4771 # Find who we are. Look in the path if we contain no path at all
4772 # relative or not.
4773 case $0 in
4774 *[\\/]* ) as_myself=$0 ;;
4775 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776for as_dir in $PATH
4777do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4781done
4782
4783 ;;
4784 esac
4785 # We did not find ourselves, most probably we were run as `sh COMMAND'
4786 # in which case we are not to be found in the path.
4787 if test "x$as_myself" = x; then
4788 as_myself=$0
4789 fi
4790 if test ! -f "$as_myself"; then
4791 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4792echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4793 { (exit 1); exit 1; }; }
4794 fi
4795 case $CONFIG_SHELL in
4796 '')
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4799do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for as_base in sh bash ksh sh5; do
4803 case $as_dir in
4804 /*)
4805 if ("$as_dir/$as_base" -c '
4806 as_lineno_1=$LINENO
4807 as_lineno_2=$LINENO
4808 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4809 test "x$as_lineno_1" != "x$as_lineno_2" &&
4810 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4811 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4812 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4813 CONFIG_SHELL=$as_dir/$as_base
4814 export CONFIG_SHELL
4815 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4816 fi;;
4817 esac
4818 done
4819done
4820;;
4821 esac
4822
4823 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4824 # uniformly replaced by the line number. The first 'sed' inserts a
4825 # line-number line before each line; the second 'sed' does the real
4826 # work. The second script uses 'N' to pair each line-number line
4827 # with the numbered line, and appends trailing '-' during
4828 # substitution so that $LINENO is not a special case at line end.
4829 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4830 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4831 sed '=' <$as_myself |
4832 sed '
4833 N
4834 s,$,-,
4835 : loop
4836 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4837 t loop
4838 s,-$,,
4839 s,^['$as_cr_digits']*\n,,
4840 ' >$as_me.lineno &&
4841 chmod +x $as_me.lineno ||
4842 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4843echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4844 { (exit 1); exit 1; }; }
4845
4846 # Don't try to exec as it changes $[0], causing all sort of problems
4847 # (the dirname of $[0] is not the place where we might find the
4848 # original and so on. Autoconf is especially sensible to this).
4849 . ./$as_me.lineno
4850 # Exit status is that of the last command.
4851 exit
4852}
4853
4854
4855case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4856 *c*,-n*) ECHO_N= ECHO_C='
4857' ECHO_T=' ' ;;
4858 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4859 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4860esac
4861
4862if expr a : '\(a\)' >/dev/null 2>&1; then
4863 as_expr=expr
4864else
4865 as_expr=false
4866fi
4867
4868rm -f conf$$ conf$$.exe conf$$.file
4869echo >conf$$.file
4870if ln -s conf$$.file conf$$ 2>/dev/null; then
4871 # We could just check for DJGPP; but this test a) works b) is more generic
4872 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4873 if test -f conf$$.exe; then
4874 # Don't use ln at all; we don't have any links
4875 as_ln_s='cp -p'
4876 else
4877 as_ln_s='ln -s'
4878 fi
4879elif ln conf$$.file conf$$ 2>/dev/null; then
4880 as_ln_s=ln
4881else
4882 as_ln_s='cp -p'
4883fi
4884rm -f conf$$ conf$$.exe conf$$.file
4885
4886if mkdir -p . 2>/dev/null; then
4887 as_mkdir_p=:
4888else
4889 test -d ./-p && rmdir ./-p
4890 as_mkdir_p=false
4891fi
4892
4893as_executable_p="test -f"
4894
4895# Sed expression to map a string onto a valid CPP name.
4896as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4897
4898# Sed expression to map a string onto a valid variable name.
4899as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4900
4901
4902# IFS
4903# We need space, tab and new line, in precisely that order.
4904as_nl='
4905'
4906IFS=" $as_nl"
4907
4908# CDPATH.
4909$as_unset CDPATH
4910
4911exec 6>&1
4912
4913# Open the log real soon, to keep \$[0] and so on meaningful, and to
4914# report actual input values of CONFIG_FILES etc. instead of their
4915# values after options handling. Logging --version etc. is OK.
4916exec 5>>config.log
4917{
4918 echo
4919 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4920## Running $as_me. ##
4921_ASBOX
4922} >&5
4923cat >&5 <<_CSEOF
4924
4925This file was extended by $as_me, which was
4926generated by GNU Autoconf 2.59. Invocation command line was
4927
4928 CONFIG_FILES = $CONFIG_FILES
4929 CONFIG_HEADERS = $CONFIG_HEADERS
4930 CONFIG_LINKS = $CONFIG_LINKS
4931 CONFIG_COMMANDS = $CONFIG_COMMANDS
4932 $ $0 $@
4933
4934_CSEOF
4935echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4936echo >&5
4937_ACEOF
4938
4939# Files that config.status was made for.
4940if test -n "$ac_config_files"; then
4941 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4942fi
4943
4944if test -n "$ac_config_headers"; then
4945 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4946fi
4947
4948if test -n "$ac_config_links"; then
4949 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4950fi
4951
4952if test -n "$ac_config_commands"; then
4953 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4954fi
4955
4956cat >>$CONFIG_STATUS <<\_ACEOF
4957
4958ac_cs_usage="\
4959\`$as_me' instantiates files from templates according to the
4960current configuration.
4961
4962Usage: $0 [OPTIONS] [FILE]...
4963
4964 -h, --help print this help, then exit
4965 -V, --version print version number, then exit
4966 -q, --quiet do not print progress messages
4967 -d, --debug don't remove temporary files
4968 --recheck update $as_me by reconfiguring in the same conditions
4969 --file=FILE[:TEMPLATE]
4970 instantiate the configuration file FILE
4971
4972Configuration files:
4973$config_files
4974
4975Report bugs to <[email protected]>."
4976_ACEOF
4977
4978cat >>$CONFIG_STATUS <<_ACEOF
4979ac_cs_version="\\
4980config.status
4981configured by $0, generated by GNU Autoconf 2.59,
4982 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4983
4984Copyright (C) 2003 Free Software Foundation, Inc.
4985This config.status script is free software; the Free Software Foundation
4986gives unlimited permission to copy, distribute and modify it."
4987srcdir=$srcdir
4988INSTALL="$INSTALL"
4989_ACEOF
4990
4991cat >>$CONFIG_STATUS <<\_ACEOF
4992# If no file are specified by the user, then we need to provide default
4993# value. By we need to know if files were specified by the user.
4994ac_need_defaults=:
4995while test $# != 0
4996do
4997 case $1 in
4998 --*=*)
4999 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5000 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5001 ac_shift=:
5002 ;;
5003 -*)
5004 ac_option=$1
5005 ac_optarg=$2
5006 ac_shift=shift
5007 ;;
5008 *) # This is not an option, so the user has probably given explicit
5009 # arguments.
5010 ac_option=$1
5011 ac_need_defaults=false;;
5012 esac
5013
5014 case $ac_option in
5015 # Handling of the options.
5016_ACEOF
5017cat >>$CONFIG_STATUS <<\_ACEOF
5018 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5019 ac_cs_recheck=: ;;
5020 --version | --vers* | -V )
5021 echo "$ac_cs_version"; exit 0 ;;
5022 --he | --h)
5023 # Conflict between --help and --header
5024 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5025Try \`$0 --help' for more information." >&5
5026echo "$as_me: error: ambiguous option: $1
5027Try \`$0 --help' for more information." >&2;}
5028 { (exit 1); exit 1; }; };;
5029 --help | --hel | -h )
5030 echo "$ac_cs_usage"; exit 0 ;;
5031 --debug | --d* | -d )
5032 debug=: ;;
5033 --file | --fil | --fi | --f )
5034 $ac_shift
5035 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5036 ac_need_defaults=false;;
5037 --header | --heade | --head | --hea )
5038 $ac_shift
5039 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5040 ac_need_defaults=false;;
5041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5042 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5043 ac_cs_silent=: ;;
5044
5045 # This is an error.
5046 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5047Try \`$0 --help' for more information." >&5
5048echo "$as_me: error: unrecognized option: $1
5049Try \`$0 --help' for more information." >&2;}
5050 { (exit 1); exit 1; }; } ;;
5051
5052 *) ac_config_targets="$ac_config_targets $1" ;;
5053
5054 esac
5055 shift
5056done
5057
5058ac_configure_extra_args=
5059
5060if $ac_cs_silent; then
5061 exec 6>/dev/null
5062 ac_configure_extra_args="$ac_configure_extra_args --silent"
5063fi
5064
5065_ACEOF
5066cat >>$CONFIG_STATUS <<_ACEOF
5067if \$ac_cs_recheck; then
5068 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5069 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5070fi
5071
5072_ACEOF
5073
5074
5075
5076
5077
5078cat >>$CONFIG_STATUS <<\_ACEOF
5079for ac_config_target in $ac_config_targets
5080do
5081 case "$ac_config_target" in
5082 # Handling of arguments.
5083 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5084 "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
5085 "java/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
5086 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5087echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5088 { (exit 1); exit 1; }; };;
5089 esac
5090done
5091
5092# If the user did not use the arguments to specify the items to instantiate,
5093# then the envvar interface is used. Set only those that are not.
5094# We use the long form for the default assignment because of an extremely
5095# bizarre bug on SunOS 4.1.3.
5096if $ac_need_defaults; then
5097 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5098fi
5099
5100# Have a temporary directory for convenience. Make it in the build tree
5101# simply because there is no reason to put it here, and in addition,
5102# creating and moving files from /tmp can sometimes cause problems.
5103# Create a temporary directory, and hook for its removal unless debugging.
5104$debug ||
5105{
5106 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5107 trap '{ (exit 1); exit 1; }' 1 2 13 15
5108}
5109
5110# Create a (secure) tmp directory for tmp files.
5111
5112{
5113 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5114 test -n "$tmp" && test -d "$tmp"
5115} ||
5116{
5117 tmp=./confstat$$-$RANDOM
5118 (umask 077 && mkdir $tmp)
5119} ||
5120{
5121 echo "$me: cannot create a temporary directory in ." >&2
5122 { (exit 1); exit 1; }
5123}
5124
5125_ACEOF
5126
5127cat >>$CONFIG_STATUS <<_ACEOF
5128
5129#
5130# CONFIG_FILES section.
5131#
5132
5133# No need to generate the scripts if there are no CONFIG_FILES.
5134# This happens for instance when ./config.status config.h
5135if test -n "\$CONFIG_FILES"; then
5136 # Protect against being on the right side of a sed subst in config.status.
5137 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5138 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5139s,@SHELL@,$SHELL,;t t
5140s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5141s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5142s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5143s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5144s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5145s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5146s,@exec_prefix@,$exec_prefix,;t t
5147s,@prefix@,$prefix,;t t
5148s,@program_transform_name@,$program_transform_name,;t t
5149s,@bindir@,$bindir,;t t
5150s,@sbindir@,$sbindir,;t t
5151s,@libexecdir@,$libexecdir,;t t
5152s,@datadir@,$datadir,;t t
5153s,@sysconfdir@,$sysconfdir,;t t
5154s,@sharedstatedir@,$sharedstatedir,;t t
5155s,@localstatedir@,$localstatedir,;t t
5156s,@libdir@,$libdir,;t t
5157s,@includedir@,$includedir,;t t
5158s,@oldincludedir@,$oldincludedir,;t t
5159s,@infodir@,$infodir,;t t
5160s,@mandir@,$mandir,;t t
5161s,@build_alias@,$build_alias,;t t
5162s,@host_alias@,$host_alias,;t t
5163s,@target_alias@,$target_alias,;t t
5164s,@DEFS@,$DEFS,;t t
5165s,@ECHO_C@,$ECHO_C,;t t
5166s,@ECHO_N@,$ECHO_N,;t t
5167s,@ECHO_T@,$ECHO_T,;t t
5168s,@LIBS@,$LIBS,;t t
5169s,@build@,$build,;t t
5170s,@build_cpu@,$build_cpu,;t t
5171s,@build_vendor@,$build_vendor,;t t
5172s,@build_os@,$build_os,;t t
5173s,@host@,$host,;t t
5174s,@host_cpu@,$host_cpu,;t t
5175s,@host_vendor@,$host_vendor,;t t
5176s,@host_os@,$host_os,;t t
5177s,@target@,$target,;t t
5178s,@target_cpu@,$target_cpu,;t t
5179s,@target_vendor@,$target_vendor,;t t
5180s,@target_os@,$target_os,;t t
5181s,@CC@,$CC,;t t
5182s,@CFLAGS@,$CFLAGS,;t t
5183s,@LDFLAGS@,$LDFLAGS,;t t
5184s,@CPPFLAGS@,$CPPFLAGS,;t t
5185s,@ac_ct_CC@,$ac_ct_CC,;t t
5186s,@EXEEXT@,$EXEEXT,;t t
5187s,@OBJEXT@,$OBJEXT,;t t
5188s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5189s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5190s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5191s,@LN_S@,$LN_S,;t t
5192s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
5193s,@CPP@,$CPP,;t t
5194s,@EGREP@,$EGREP,;t t
5195s,@JAVA_HOME@,$JAVA_HOME,;t t
5196s,@javagdbm_cv_path_javah@,$javagdbm_cv_path_javah,;t t
5197s,@javagdbm_cv_path_java@,$javagdbm_cv_path_java,;t t
5198s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t
5199s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t
5200s,@PKG@,$PKG,;t t
5201s,@JNIINC@,$JNIINC,;t t
5202s,@JNISUFFIX@,$JNISUFFIX,;t t
5203s,@JNIFLAGS@,$JNIFLAGS,;t t
5204s,@LIBOBJS@,$LIBOBJS,;t t
5205s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5206CEOF
5207
5208_ACEOF
5209
5210 cat >>$CONFIG_STATUS <<\_ACEOF
5211 # Split the substitutions into bite-sized pieces for seds with
5212 # small command number limits, like on Digital OSF/1 and HP-UX.
5213 ac_max_sed_lines=48
5214 ac_sed_frag=1 # Number of current file.
5215 ac_beg=1 # First line for current file.
5216 ac_end=$ac_max_sed_lines # Line after last line for current file.
5217 ac_more_lines=:
5218 ac_sed_cmds=
5219 while $ac_more_lines; do
5220 if test $ac_beg -gt 1; then
5221 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5222 else
5223 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5224 fi
5225 if test ! -s $tmp/subs.frag; then
5226 ac_more_lines=false
5227 else
5228 # The purpose of the label and of the branching condition is to
5229 # speed up the sed processing (if there are no `@' at all, there
5230 # is no need to browse any of the substitutions).
5231 # These are the two extra sed commands mentioned above.
5232 (echo ':t
5233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5234 if test -z "$ac_sed_cmds"; then
5235 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5236 else
5237 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5238 fi
5239 ac_sed_frag=`expr $ac_sed_frag + 1`
5240 ac_beg=$ac_end
5241 ac_end=`expr $ac_end + $ac_max_sed_lines`
5242 fi
5243 done
5244 if test -z "$ac_sed_cmds"; then
5245 ac_sed_cmds=cat
5246 fi
5247fi # test -n "$CONFIG_FILES"
5248
5249_ACEOF
5250cat >>$CONFIG_STATUS <<\_ACEOF
5251for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5253 case $ac_file in
5254 - | *:- | *:-:* ) # input from stdin
5255 cat >$tmp/stdin
5256 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5258 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5260 * ) ac_file_in=$ac_file.in ;;
5261 esac
5262
5263 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5264 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5265$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5266 X"$ac_file" : 'X\(//\)[^/]' \| \
5267 X"$ac_file" : 'X\(//\)$' \| \
5268 X"$ac_file" : 'X\(/\)' \| \
5269 . : '\(.\)' 2>/dev/null ||
5270echo X"$ac_file" |
5271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5273 /^X\(\/\/\)$/{ s//\1/; q; }
5274 /^X\(\/\).*/{ s//\1/; q; }
5275 s/.*/./; q'`
5276 { if $as_mkdir_p; then
5277 mkdir -p "$ac_dir"
5278 else
5279 as_dir="$ac_dir"
5280 as_dirs=
5281 while test ! -d "$as_dir"; do
5282 as_dirs="$as_dir $as_dirs"
5283 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5284$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5285 X"$as_dir" : 'X\(//\)[^/]' \| \
5286 X"$as_dir" : 'X\(//\)$' \| \
5287 X"$as_dir" : 'X\(/\)' \| \
5288 . : '\(.\)' 2>/dev/null ||
5289echo X"$as_dir" |
5290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5292 /^X\(\/\/\)$/{ s//\1/; q; }
5293 /^X\(\/\).*/{ s//\1/; q; }
5294 s/.*/./; q'`
5295 done
5296 test ! -n "$as_dirs" || mkdir $as_dirs
5297 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5298echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5299 { (exit 1); exit 1; }; }; }
5300
5301 ac_builddir=.
5302
5303if test "$ac_dir" != .; then
5304 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5305 # A "../" for each directory in $ac_dir_suffix.
5306 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5307else
5308 ac_dir_suffix= ac_top_builddir=
5309fi
5310
5311case $srcdir in
5312 .) # No --srcdir option. We are building in place.
5313 ac_srcdir=.
5314 if test -z "$ac_top_builddir"; then
5315 ac_top_srcdir=.
5316 else
5317 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5318 fi ;;
5319 [\\/]* | ?:[\\/]* ) # Absolute path.
5320 ac_srcdir=$srcdir$ac_dir_suffix;
5321 ac_top_srcdir=$srcdir ;;
5322 *) # Relative path.
5323 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5324 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5325esac
5326
5327# Do not use `cd foo && pwd` to compute absolute paths, because
5328# the directories may not exist.
5329case `pwd` in
5330.) ac_abs_builddir="$ac_dir";;
5331*)
5332 case "$ac_dir" in
5333 .) ac_abs_builddir=`pwd`;;
5334 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5335 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5336 esac;;
5337esac
5338case $ac_abs_builddir in
5339.) ac_abs_top_builddir=${ac_top_builddir}.;;
5340*)
5341 case ${ac_top_builddir}. in
5342 .) ac_abs_top_builddir=$ac_abs_builddir;;
5343 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5344 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5345 esac;;
5346esac
5347case $ac_abs_builddir in
5348.) ac_abs_srcdir=$ac_srcdir;;
5349*)
5350 case $ac_srcdir in
5351 .) ac_abs_srcdir=$ac_abs_builddir;;
5352 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5353 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5354 esac;;
5355esac
5356case $ac_abs_builddir in
5357.) ac_abs_top_srcdir=$ac_top_srcdir;;
5358*)
5359 case $ac_top_srcdir in
5360 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5361 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5362 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5363 esac;;
5364esac
5365
5366
5367 case $INSTALL in
5368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5369 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5370 esac
5371
5372 if test x"$ac_file" != x-; then
5373 { echo "$as_me:$LINENO: creating $ac_file" >&5
5374echo "$as_me: creating $ac_file" >&6;}
5375 rm -f "$ac_file"
5376 fi
5377 # Let's still pretend it is `configure' which instantiates (i.e., don't
5378 # use $as_me), people would be surprised to read:
5379 # /* config.h. Generated by config.status. */
5380 if test x"$ac_file" = x-; then
5381 configure_input=
5382 else
5383 configure_input="$ac_file. "
5384 fi
5385 configure_input=$configure_input"Generated from `echo $ac_file_in |
5386 sed 's,.*/,,'` by configure."
5387
5388 # First look for the input files in the build tree, otherwise in the
5389 # src tree.
5390 ac_file_inputs=`IFS=:
5391 for f in $ac_file_in; do
5392 case $f in
5393 -) echo $tmp/stdin ;;
5394 [\\/$]*)
5395 # Absolute (can't be DOS-style, as IFS=:)
5396 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5397echo "$as_me: error: cannot find input file: $f" >&2;}
5398 { (exit 1); exit 1; }; }
5399 echo "$f";;
5400 *) # Relative
5401 if test -f "$f"; then
5402 # Build tree
5403 echo "$f"
5404 elif test -f "$srcdir/$f"; then
5405 # Source tree
5406 echo "$srcdir/$f"
5407 else
5408 # /dev/null tree
5409 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5410echo "$as_me: error: cannot find input file: $f" >&2;}
5411 { (exit 1); exit 1; }; }
5412 fi;;
5413 esac
5414 done` || { (exit 1); exit 1; }
5415_ACEOF
5416cat >>$CONFIG_STATUS <<_ACEOF
5417 sed "$ac_vpsub
5418$extrasub
5419_ACEOF
5420cat >>$CONFIG_STATUS <<\_ACEOF
5421:t
5422/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5423s,@configure_input@,$configure_input,;t t
5424s,@srcdir@,$ac_srcdir,;t t
5425s,@abs_srcdir@,$ac_abs_srcdir,;t t
5426s,@top_srcdir@,$ac_top_srcdir,;t t
5427s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5428s,@builddir@,$ac_builddir,;t t
5429s,@abs_builddir@,$ac_abs_builddir,;t t
5430s,@top_builddir@,$ac_top_builddir,;t t
5431s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5432s,@INSTALL@,$ac_INSTALL,;t t
5433" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5434 rm -f $tmp/stdin
5435 if test x"$ac_file" != x-; then
5436 mv $tmp/out $ac_file
5437 else
5438 cat $tmp/out
5439 rm -f $tmp/out
5440 fi
5441
5442done
5443_ACEOF
5444
5445cat >>$CONFIG_STATUS <<\_ACEOF
5446
5447{ (exit 0); exit 0; }
5448_ACEOF
5449chmod +x $CONFIG_STATUS
5450ac_clean_files=$ac_clean_files_save
5451
5452
5453# configure is writing to config.log, and then calls config.status.
5454# config.status does its own redirection, appending to config.log.
5455# Unfortunately, on DOS this fails, as config.log is still kept open
5456# by configure, so config.status won't be able to write to it; its
5457# output is simply discarded. So we exec the FD to /dev/null,
5458# effectively closing config.log, so it can be properly (re)opened and
5459# appended to by config.status. When coming back to configure, we
5460# need to make the FD available again.
5461if test "$no_create" != yes; then
5462 ac_cs_success=:
5463 ac_config_status_args=
5464 test "$silent" = yes &&
5465 ac_config_status_args="$ac_config_status_args --quiet"
5466 exec 5>/dev/null
5467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5468 exec 5>>config.log
5469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5470 # would make configure fail if this is the last instruction.
5471 $ac_cs_success || { (exit 1); exit 1; }
5472fi
5473
Note: See TracBrowser for help on using the repository browser.