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