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