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