]>
Commit | Line | Data |
---|---|---|
bd8757b3 | 1 | #! /bin/sh |
bd8757b3 | 2 | # Guess values for system-dependent variables and create Makefiles. |
8ab705be | 3 | # Generated by GNU Autoconf 2.59. |
bd8757b3 | 4 | # |
3beb1315 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
bd8757b3 APB |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
53d60c04 KC |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
3beb1315 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
53d60c04 KC |
23 | |
24 | # Support unset when possible. | |
3beb1315 | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
53d60c04 KC |
26 | as_unset=unset |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
3beb1315 | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
53d60c04 KC |
45 | eval $as_var=C; export $as_var |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
bd8757b3 | 185 | |
53d60c04 KC |
186 | |
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
3beb1315 | 221 | test -d ./-p && rmdir ./-p |
53d60c04 KC |
222 | as_mkdir_p=false |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
3beb1315 | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
53d60c04 KC |
229 | |
230 | # Sed expression to map a string onto a valid variable name. | |
3beb1315 | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
53d60c04 KC |
232 | |
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
bd8757b3 | 254 | ac_default_prefix=/usr/local |
53d60c04 KC |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="jartool.h" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
3c374d91 | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RM CP CHMOD MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT fastjar_warn_cflags CPP EGREP ZLIBS ZDEPS ZINCS GENINSRC_TRUE GENINSRC_FALSE gcc_version LIBOBJS LTLIBOBJS' |
53d60c04 | 313 | ac_subst_files='' |
bd8757b3 APB |
314 | |
315 | # Initialize some variables set by options. | |
53d60c04 KC |
316 | ac_init_help= |
317 | ac_init_version=false | |
bd8757b3 APB |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
53d60c04 | 320 | cache_file=/dev/null |
bd8757b3 | 321 | exec_prefix=NONE |
bd8757b3 | 322 | no_create= |
bd8757b3 APB |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
bd8757b3 APB |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
53d60c04 KC |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
bd8757b3 APB |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
bd8757b3 APB |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
bd8757b3 APB |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
53d60c04 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
bd8757b3 APB |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
53d60c04 | 367 | case $ac_option in |
bd8757b3 APB |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
53d60c04 | 372 | bindir=$ac_optarg ;; |
bd8757b3 APB |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
53d60c04 | 375 | ac_prev=build_alias ;; |
bd8757b3 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
53d60c04 | 377 | build_alias=$ac_optarg ;; |
bd8757b3 APB |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
53d60c04 KC |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
bd8757b3 APB |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
53d60c04 | 393 | datadir=$ac_optarg ;; |
bd8757b3 APB |
394 | |
395 | -disable-* | --disable-*) | |
53d60c04 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bd8757b3 | 397 | # Reject names that are not valid shell variable names. |
53d60c04 KC |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
bd8757b3 APB |
403 | |
404 | -enable-* | --enable-*) | |
53d60c04 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bd8757b3 | 406 | # Reject names that are not valid shell variable names. |
53d60c04 KC |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
bd8757b3 APB |
413 | *) ac_optarg=yes ;; |
414 | esac | |
53d60c04 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
bd8757b3 APB |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
53d60c04 | 424 | exec_prefix=$ac_optarg ;; |
bd8757b3 APB |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
53d60c04 KC |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
bd8757b3 APB |
436 | |
437 | -host | --host | --hos | --ho) | |
53d60c04 | 438 | ac_prev=host_alias ;; |
bd8757b3 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
53d60c04 | 440 | host_alias=$ac_optarg ;; |
bd8757b3 APB |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
53d60c04 | 447 | includedir=$ac_optarg ;; |
bd8757b3 APB |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
53d60c04 | 452 | infodir=$ac_optarg ;; |
bd8757b3 APB |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
53d60c04 | 457 | libdir=$ac_optarg ;; |
bd8757b3 APB |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
53d60c04 | 464 | libexecdir=$ac_optarg ;; |
bd8757b3 APB |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
53d60c04 | 473 | localstatedir=$ac_optarg ;; |
bd8757b3 APB |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
53d60c04 | 478 | mandir=$ac_optarg ;; |
bd8757b3 APB |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
53d60c04 | 485 | | --no-cr | --no-c | -n) |
bd8757b3 APB |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
53d60c04 | 499 | oldincludedir=$ac_optarg ;; |
bd8757b3 APB |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
53d60c04 | 504 | prefix=$ac_optarg ;; |
bd8757b3 APB |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
53d60c04 | 511 | program_prefix=$ac_optarg ;; |
bd8757b3 APB |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
53d60c04 | 518 | program_suffix=$ac_optarg ;; |
bd8757b3 APB |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
53d60c04 | 535 | program_transform_name=$ac_optarg ;; |
bd8757b3 APB |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
53d60c04 | 545 | sbindir=$ac_optarg ;; |
bd8757b3 APB |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
53d60c04 | 556 | sharedstatedir=$ac_optarg ;; |
bd8757b3 APB |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
53d60c04 | 561 | site=$ac_optarg ;; |
bd8757b3 APB |
562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
53d60c04 | 566 | srcdir=$ac_optarg ;; |
bd8757b3 APB |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
53d60c04 | 573 | sysconfdir=$ac_optarg ;; |
bd8757b3 APB |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
53d60c04 | 576 | ac_prev=target_alias ;; |
bd8757b3 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
53d60c04 | 578 | target_alias=$ac_optarg ;; |
bd8757b3 APB |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
53d60c04 KC |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
bd8757b3 APB |
585 | |
586 | -with-* | --with-*) | |
53d60c04 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bd8757b3 | 588 | # Reject names that are not valid shell variable names. |
53d60c04 KC |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
bd8757b3 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
53d60c04 KC |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
bd8757b3 APB |
595 | *) ac_optarg=yes ;; |
596 | esac | |
53d60c04 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
bd8757b3 APB |
598 | |
599 | -without-* | --without-*) | |
53d60c04 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bd8757b3 | 601 | # Reject names that are not valid shell variable names. |
53d60c04 KC |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
bd8757b3 APB |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
53d60c04 | 617 | x_includes=$ac_optarg ;; |
bd8757b3 APB |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
53d60c04 | 624 | x_libraries=$ac_optarg ;; |
bd8757b3 | 625 | |
53d60c04 KC |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
bd8757b3 APB |
629 | ;; |
630 | ||
53d60c04 KC |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
bd8757b3 | 641 | *) |
53d60c04 KC |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
bd8757b3 APB |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
53d60c04 KC |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
bd8757b3 | 656 | fi |
bd8757b3 | 657 | |
53d60c04 KC |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
bd8757b3 | 668 | |
53d60c04 KC |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
3beb1315 | 671 | localstatedir libdir includedir oldincludedir infodir mandir |
bd8757b3 | 672 | do |
53d60c04 KC |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
bd8757b3 APB |
678 | esac |
679 | done | |
680 | ||
53d60c04 KC |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
bd8757b3 | 698 | |
53d60c04 KC |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
bd8757b3 | 703 | |
bd8757b3 APB |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
53d60c04 KC |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3beb1315 HPN |
711 | X"$0" : 'X\(//\)[^/]' \| \ |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
53d60c04 KC |
715 | echo X"$0" | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
bd8757b3 APB |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
53d60c04 KC |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
bd8757b3 | 732 | else |
53d60c04 KC |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
bd8757b3 APB |
735 | fi |
736 | fi | |
53d60c04 KC |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
773 | ||
774 | # | |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
780 | cat <<_ACEOF | |
781 | \`configure' configures this package to adapt to many kinds of systems. | |
782 | ||
783 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
784 | ||
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
787 | ||
788 | Defaults for the options are specified in brackets. | |
789 | ||
790 | Configuration: | |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
3beb1315 | 806 | [$ac_default_prefix] |
53d60c04 | 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
3beb1315 | 808 | [PREFIX] |
53d60c04 KC |
809 | |
810 | By default, \`make install' will install all the files in | |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
814 | ||
815 | For better control, use the options below. | |
816 | ||
817 | Fine tuning of the installation directories: | |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
830 | _ACEOF | |
831 | ||
832 | cat <<\_ACEOF | |
833 | ||
834 | Program names: | |
835 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
836 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
837 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
838 | _ACEOF | |
839 | fi | |
840 | ||
841 | if test -n "$ac_init_help"; then | |
842 | ||
843 | cat <<\_ACEOF | |
844 | ||
845 | Optional Features: | |
846 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
847 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
608cb764 PB |
848 | --disable-dependency-tracking speeds up one-time build |
849 | --enable-dependency-tracking do not reject slow dependency extractors | |
850 | --enable-maintainer-mode enable make rules and dependencies not useful | |
851 | (and sometimes confusing) to the casual installer | |
040e098a KC |
852 | --enable-generated-files-in-srcdir |
853 | put copies of generated files in source dir | |
854 | intended for creating source tarballs for users | |
855 | without texinfo, perl, bison or flex. | |
53d60c04 KC |
856 | |
857 | Optional Packages: | |
858 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
859 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
860 | --with-system-zlib use installed libz | |
861 | ||
862 | Some influential environment variables: | |
863 | CC C compiler command | |
864 | CFLAGS C compiler flags | |
865 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
866 | nonstandard directory <lib dir> | |
867 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
868 | headers in a nonstandard directory <include dir> | |
869 | CPP C preprocessor | |
870 | ||
871 | Use these variables to override the choices made by `configure' or to help | |
872 | it to find libraries and programs with nonstandard names/locations. | |
873 | ||
874 | _ACEOF | |
875 | fi | |
876 | ||
877 | if test "$ac_init_help" = "recursive"; then | |
878 | # If there are subdirs, report their specific --help. | |
879 | ac_popdir=`pwd` | |
880 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
881 | test -d $ac_dir || continue | |
882 | ac_builddir=. | |
883 | ||
884 | if test "$ac_dir" != .; then | |
885 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
886 | # A "../" for each directory in $ac_dir_suffix. | |
887 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
888 | else | |
889 | ac_dir_suffix= ac_top_builddir= | |
890 | fi | |
891 | ||
892 | case $srcdir in | |
893 | .) # No --srcdir option. We are building in place. | |
894 | ac_srcdir=. | |
895 | if test -z "$ac_top_builddir"; then | |
896 | ac_top_srcdir=. | |
897 | else | |
898 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
899 | fi ;; | |
900 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
901 | ac_srcdir=$srcdir$ac_dir_suffix; | |
902 | ac_top_srcdir=$srcdir ;; | |
903 | *) # Relative path. | |
904 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
905 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
906 | esac | |
8ab705be KC |
907 | |
908 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
909 | # the directories may not exist. | |
910 | case `pwd` in | |
911 | .) ac_abs_builddir="$ac_dir";; | |
3beb1315 | 912 | *) |
8ab705be KC |
913 | case "$ac_dir" in |
914 | .) ac_abs_builddir=`pwd`;; | |
915 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
916 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
3beb1315 HPN |
917 | esac;; |
918 | esac | |
8ab705be | 919 | case $ac_abs_builddir in |
3beb1315 HPN |
920 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
921 | *) | |
922 | case ${ac_top_builddir}. in | |
8ab705be | 923 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
3beb1315 | 924 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
8ab705be | 925 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
3beb1315 HPN |
926 | esac;; |
927 | esac | |
8ab705be | 928 | case $ac_abs_builddir in |
3beb1315 HPN |
929 | .) ac_abs_srcdir=$ac_srcdir;; |
930 | *) | |
931 | case $ac_srcdir in | |
8ab705be | 932 | .) ac_abs_srcdir=$ac_abs_builddir;; |
3beb1315 | 933 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
8ab705be | 934 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
3beb1315 HPN |
935 | esac;; |
936 | esac | |
8ab705be | 937 | case $ac_abs_builddir in |
3beb1315 HPN |
938 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
939 | *) | |
940 | case $ac_top_srcdir in | |
8ab705be | 941 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
3beb1315 | 942 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
8ab705be | 943 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
3beb1315 HPN |
944 | esac;; |
945 | esac | |
53d60c04 KC |
946 | |
947 | cd $ac_dir | |
948 | # Check for guested configure; otherwise get Cygnus style configure. | |
949 | if test -f $ac_srcdir/configure.gnu; then | |
950 | echo | |
951 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
952 | elif test -f $ac_srcdir/configure; then | |
953 | echo | |
954 | $SHELL $ac_srcdir/configure --help=recursive | |
955 | elif test -f $ac_srcdir/configure.ac || | |
3beb1315 | 956 | test -f $ac_srcdir/configure.in; then |
53d60c04 KC |
957 | echo |
958 | $ac_configure --help | |
959 | else | |
960 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
961 | fi | |
79453222 | 962 | cd $ac_popdir |
53d60c04 KC |
963 | done |
964 | fi | |
965 | ||
966 | test -n "$ac_init_help" && exit 0 | |
967 | if $ac_init_version; then | |
968 | cat <<\_ACEOF | |
969 | ||
3beb1315 | 970 | Copyright (C) 2003 Free Software Foundation, Inc. |
53d60c04 KC |
971 | This configure script is free software; the Free Software Foundation |
972 | gives unlimited permission to copy, distribute and modify it. | |
973 | _ACEOF | |
974 | exit 0 | |
975 | fi | |
976 | exec 5>config.log | |
977 | cat >&5 <<_ACEOF | |
978 | This file contains any messages produced by compilers while | |
979 | running configure, to aid debugging if configure makes a mistake. | |
980 | ||
981 | It was created by $as_me, which was | |
8ab705be | 982 | generated by GNU Autoconf 2.59. Invocation command line was |
53d60c04 KC |
983 | |
984 | $ $0 $@ | |
985 | ||
986 | _ACEOF | |
987 | { | |
988 | cat <<_ASUNAME | |
989 | ## --------- ## | |
990 | ## Platform. ## | |
991 | ## --------- ## | |
992 | ||
993 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
994 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
995 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
996 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
997 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
998 | ||
999 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1000 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1001 | ||
1002 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1003 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1004 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1005 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1006 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1007 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1008 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1009 | ||
1010 | _ASUNAME | |
1011 | ||
1012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1013 | for as_dir in $PATH | |
1014 | do | |
1015 | IFS=$as_save_IFS | |
1016 | test -z "$as_dir" && as_dir=. | |
1017 | echo "PATH: $as_dir" | |
1018 | done | |
1019 | ||
1020 | } >&5 | |
1021 | ||
1022 | cat >&5 <<_ACEOF | |
1023 | ||
1024 | ||
1025 | ## ----------- ## | |
1026 | ## Core tests. ## | |
1027 | ## ----------- ## | |
1028 | ||
1029 | _ACEOF | |
1030 | ||
1031 | ||
1032 | # Keep a trace of the command line. | |
1033 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1034 | # Strip out --silent because we don't want to record it for future runs. | |
1035 | # Also quote any args containing shell meta-characters. | |
1036 | # Make two passes to allow for proper duplicate-argument suppression. | |
1037 | ac_configure_args= | |
1038 | ac_configure_args0= | |
1039 | ac_configure_args1= | |
1040 | ac_sep= | |
1041 | ac_must_keep_next=false | |
1042 | for ac_pass in 1 2 | |
1043 | do | |
1044 | for ac_arg | |
1045 | do | |
1046 | case $ac_arg in | |
1047 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1048 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1049 | | -silent | --silent | --silen | --sile | --sil) | |
1050 | continue ;; | |
1051 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1052 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1053 | esac | |
1054 | case $ac_pass in | |
1055 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1056 | 2) | |
1057 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1058 | if test $ac_must_keep_next = true; then | |
3beb1315 | 1059 | ac_must_keep_next=false # Got value, back to normal. |
53d60c04 | 1060 | else |
3beb1315 HPN |
1061 | case $ac_arg in |
1062 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1063 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1064 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1065 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1066 | case "$ac_configure_args0 " in | |
1067 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1068 | esac | |
1069 | ;; | |
1070 | -* ) ac_must_keep_next=true ;; | |
1071 | esac | |
53d60c04 KC |
1072 | fi |
1073 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1074 | # Get rid of the leading space. | |
1075 | ac_sep=" " | |
1076 | ;; | |
1077 | esac | |
1078 | done | |
1079 | done | |
1080 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1081 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1082 | ||
1083 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1084 | # config.log. We remove comments because anyway the quotes in there | |
1085 | # would cause problems or look ugly. | |
1086 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1087 | # such as our DU 5.0 friend, will then `close' the trap. | |
1088 | trap 'exit_status=$? | |
1089 | # Save into config.log some information that might help in debugging. | |
1090 | { | |
1091 | echo | |
1092 | ||
1093 | cat <<\_ASBOX | |
1094 | ## ---------------- ## | |
1095 | ## Cache variables. ## | |
1096 | ## ---------------- ## | |
1097 | _ASBOX | |
1098 | echo | |
1099 | # The following way of writing the cache mishandles newlines in values, | |
1100 | { | |
1101 | (set) 2>&1 | | |
1102 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1103 | *ac_space=\ *) | |
1104 | sed -n \ | |
3beb1315 HPN |
1105 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1106 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
53d60c04 KC |
1107 | ;; |
1108 | *) | |
1109 | sed -n \ | |
3beb1315 | 1110 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
53d60c04 KC |
1111 | ;; |
1112 | esac; | |
1113 | } | |
1114 | echo | |
1115 | ||
1116 | cat <<\_ASBOX | |
1117 | ## ----------------- ## | |
1118 | ## Output variables. ## | |
1119 | ## ----------------- ## | |
1120 | _ASBOX | |
1121 | echo | |
1122 | for ac_var in $ac_subst_vars | |
1123 | do | |
1124 | eval ac_val=$`echo $ac_var` | |
1125 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1126 | done | sort | |
1127 | echo | |
1128 | ||
1129 | if test -n "$ac_subst_files"; then | |
1130 | cat <<\_ASBOX | |
1131 | ## ------------- ## | |
1132 | ## Output files. ## | |
1133 | ## ------------- ## | |
1134 | _ASBOX | |
1135 | echo | |
1136 | for ac_var in $ac_subst_files | |
1137 | do | |
1138 | eval ac_val=$`echo $ac_var` | |
3beb1315 | 1139 | echo "$ac_var='"'"'$ac_val'"'"'" |
53d60c04 KC |
1140 | done | sort |
1141 | echo | |
1142 | fi | |
1143 | ||
1144 | if test -s confdefs.h; then | |
1145 | cat <<\_ASBOX | |
1146 | ## ----------- ## | |
1147 | ## confdefs.h. ## | |
1148 | ## ----------- ## | |
1149 | _ASBOX | |
1150 | echo | |
1151 | sed "/^$/d" confdefs.h | sort | |
1152 | echo | |
1153 | fi | |
1154 | test "$ac_signal" != 0 && | |
1155 | echo "$as_me: caught signal $ac_signal" | |
1156 | echo "$as_me: exit $exit_status" | |
1157 | } >&5 | |
3beb1315 | 1158 | rm -f core *.core && |
53d60c04 KC |
1159 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1160 | exit $exit_status | |
1161 | ' 0 | |
1162 | for ac_signal in 1 2 13 15; do | |
1163 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1164 | done | |
1165 | ac_signal=0 | |
1166 | ||
1167 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1168 | rm -rf conftest* confdefs.h | |
1169 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1170 | echo >confdefs.h | |
1171 | ||
1172 | # Predefined preprocessor variables. | |
1173 | ||
1174 | cat >>confdefs.h <<_ACEOF | |
1175 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1176 | _ACEOF | |
1177 | ||
1178 | ||
1179 | cat >>confdefs.h <<_ACEOF | |
1180 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1181 | _ACEOF | |
1182 | ||
1183 | ||
1184 | cat >>confdefs.h <<_ACEOF | |
1185 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1186 | _ACEOF | |
1187 | ||
bd8757b3 | 1188 | |
53d60c04 KC |
1189 | cat >>confdefs.h <<_ACEOF |
1190 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1191 | _ACEOF | |
1192 | ||
1193 | ||
1194 | cat >>confdefs.h <<_ACEOF | |
1195 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1196 | _ACEOF | |
1197 | ||
1198 | ||
1199 | # Let the site file select an alternate cache file if it wants to. | |
bd8757b3 | 1200 | # Prefer explicitly selected file to automatically selected ones. |
4977bab6 ZW |
1201 | if test -z "$CONFIG_SITE"; then |
1202 | if test "x$prefix" != xNONE; then | |
1203 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1204 | else | |
1205 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
b4258f06 | 1206 | fi |
bd8757b3 APB |
1207 | fi |
1208 | for ac_site_file in $CONFIG_SITE; do | |
1209 | if test -r "$ac_site_file"; then | |
53d60c04 KC |
1210 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1211 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1212 | sed 's/^/| /' "$ac_site_file" >&5 | |
bd8757b3 APB |
1213 | . "$ac_site_file" |
1214 | fi | |
1215 | done | |
1216 | ||
1217 | if test -r "$cache_file"; then | |
53d60c04 KC |
1218 | # Some versions of bash will fail to source /dev/null (special |
1219 | # files actually), so we avoid doing that. | |
1220 | if test -f "$cache_file"; then | |
1221 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1222 | echo "$as_me: loading cache $cache_file" >&6;} | |
1223 | case $cache_file in | |
1224 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1225 | *) . ./$cache_file;; | |
1226 | esac | |
1227 | fi | |
bd8757b3 | 1228 | else |
53d60c04 KC |
1229 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1230 | echo "$as_me: creating cache $cache_file" >&6;} | |
1231 | >$cache_file | |
1232 | fi | |
1233 | ||
1234 | # Check that the precious variables saved in the cache have kept the same | |
1235 | # value. | |
1236 | ac_cache_corrupted=false | |
1237 | for ac_var in `(set) 2>&1 | | |
3beb1315 | 1238 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
53d60c04 KC |
1239 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1240 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1241 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1242 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1243 | case $ac_old_set,$ac_new_set in | |
1244 | set,) | |
1245 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1246 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1247 | ac_cache_corrupted=: ;; | |
1248 | ,set) | |
1249 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1250 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1251 | ac_cache_corrupted=: ;; | |
1252 | ,);; | |
1253 | *) | |
1254 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
3beb1315 | 1255 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
53d60c04 | 1256 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
3beb1315 | 1257 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
53d60c04 | 1258 | echo "$as_me: former value: $ac_old_val" >&2;} |
3beb1315 | 1259 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
53d60c04 | 1260 | echo "$as_me: current value: $ac_new_val" >&2;} |
3beb1315 | 1261 | ac_cache_corrupted=: |
53d60c04 KC |
1262 | fi;; |
1263 | esac | |
1264 | # Pass precious variables to config.status. | |
1265 | if test "$ac_new_set" = set; then | |
1266 | case $ac_new_val in | |
1267 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1268 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1269 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1270 | esac | |
1271 | case " $ac_configure_args " in | |
1272 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1273 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1274 | esac | |
1275 | fi | |
1276 | done | |
1277 | if $ac_cache_corrupted; then | |
1278 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1279 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1280 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1281 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1282 | { (exit 1); exit 1; }; } | |
bd8757b3 APB |
1283 | fi |
1284 | ||
1285 | ac_ext=c | |
bd8757b3 | 1286 | ac_cpp='$CPP $CPPFLAGS' |
53d60c04 KC |
1287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bd8757b3 APB |
1290 | |
1291 | ||
53d60c04 KC |
1292 | |
1293 | ||
1294 | ||
1295 | ||
1296 | ||
1297 | ||
1298 | ||
1299 | ||
1300 | ||
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
3c374d91 | 1309 | am__api_version="1.9" |
bd8757b3 APB |
1310 | ac_aux_dir= |
1311 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1312 | if test -f $ac_dir/install-sh; then | |
1313 | ac_aux_dir=$ac_dir | |
1314 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1315 | break | |
1316 | elif test -f $ac_dir/install.sh; then | |
1317 | ac_aux_dir=$ac_dir | |
1318 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1319 | break | |
53d60c04 KC |
1320 | elif test -f $ac_dir/shtool; then |
1321 | ac_aux_dir=$ac_dir | |
1322 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1323 | break | |
bd8757b3 APB |
1324 | fi |
1325 | done | |
1326 | if test -z "$ac_aux_dir"; then | |
53d60c04 KC |
1327 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1328 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1329 | { (exit 1); exit 1; }; } | |
bd8757b3 | 1330 | fi |
53d60c04 KC |
1331 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1332 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1333 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
bd8757b3 APB |
1334 | |
1335 | # Find a good install program. We prefer a C program (faster), | |
1336 | # so one script is as good as another. But avoid the broken or | |
1337 | # incompatible versions: | |
1338 | # SysV /etc/install, /usr/sbin/install | |
1339 | # SunOS /usr/etc/install | |
1340 | # IRIX /sbin/install | |
1341 | # AIX /bin/install | |
53d60c04 | 1342 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
bd8757b3 APB |
1343 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1344 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1345 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3beb1315 | 1346 | # OS/2's system install, which has a completely different semantic |
bd8757b3 | 1347 | # ./install, which can be erroneously created by make from ./install.sh. |
53d60c04 KC |
1348 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1349 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
bd8757b3 | 1350 | if test -z "$INSTALL"; then |
53d60c04 KC |
1351 | if test "${ac_cv_path_install+set}" = set; then |
1352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1353 | else | |
1354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1355 | for as_dir in $PATH | |
1356 | do | |
1357 | IFS=$as_save_IFS | |
1358 | test -z "$as_dir" && as_dir=. | |
1359 | # Account for people who put trailing slashes in PATH elements. | |
1360 | case $as_dir/ in | |
1361 | ./ | .// | /cC/* | \ | |
1362 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3beb1315 | 1363 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
53d60c04 KC |
1364 | /usr/ucb/* ) ;; |
1365 | *) | |
1366 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1367 | # Don't use installbsd from OSF since it installs stuff as root | |
1368 | # by default. | |
1369 | for ac_prog in ginstall scoinst install; do | |
1370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3beb1315 HPN |
1371 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1372 | if test $ac_prog = install && | |
1373 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1374 | # AIX install. It has an incompatible calling convention. | |
1375 | : | |
1376 | elif test $ac_prog = install && | |
1377 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1378 | # program-specific install script used by HP pwplus--don't use. | |
1379 | : | |
1380 | else | |
1381 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1382 | break 3 | |
1383 | fi | |
1384 | fi | |
bd8757b3 | 1385 | done |
53d60c04 KC |
1386 | done |
1387 | ;; | |
1388 | esac | |
1389 | done | |
1390 | ||
bd8757b3 APB |
1391 | |
1392 | fi | |
1393 | if test "${ac_cv_path_install+set}" = set; then | |
53d60c04 | 1394 | INSTALL=$ac_cv_path_install |
bd8757b3 APB |
1395 | else |
1396 | # As a last resort, use the slow shell script. We don't cache a | |
1397 | # path for INSTALL within a source directory, because that will | |
1398 | # break other packages using the cache if that directory is | |
1399 | # removed, or if the path is relative. | |
53d60c04 | 1400 | INSTALL=$ac_install_sh |
bd8757b3 APB |
1401 | fi |
1402 | fi | |
53d60c04 KC |
1403 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1404 | echo "${ECHO_T}$INSTALL" >&6 | |
bd8757b3 APB |
1405 | |
1406 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1407 | # It thinks the first close brace ends the variable substitution. | |
1408 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1409 | ||
53d60c04 | 1410 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
bd8757b3 APB |
1411 | |
1412 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1413 | ||
53d60c04 KC |
1414 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1415 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
bd8757b3 APB |
1416 | # Just in case |
1417 | sleep 1 | |
53d60c04 | 1418 | echo timestamp > conftest.file |
bd8757b3 APB |
1419 | # Do `set' in a subshell so we don't clobber the current shell's |
1420 | # arguments. Must try -L first in case configure is actually a | |
1421 | # symlink; some systems play weird games with the mod time of symlinks | |
1422 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1423 | # directory). | |
1424 | if ( | |
53d60c04 | 1425 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
bd8757b3 APB |
1426 | if test "$*" = "X"; then |
1427 | # -L didn't work. | |
53d60c04 | 1428 | set X `ls -t $srcdir/configure conftest.file` |
bd8757b3 | 1429 | fi |
53d60c04 KC |
1430 | rm -f conftest.file |
1431 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1432 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
bd8757b3 APB |
1433 | |
1434 | # If neither matched, then we have a broken ls. This can happen | |
1435 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1436 | # broken ls alias from the environment. This has actually | |
1437 | # happened. Such a system could not be considered "sane". | |
53d60c04 KC |
1438 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1439 | alias in your environment" >&5 | |
1440 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1441 | alias in your environment" >&2;} | |
1442 | { (exit 1); exit 1; }; } | |
bd8757b3 APB |
1443 | fi |
1444 | ||
53d60c04 | 1445 | test "$2" = conftest.file |
bd8757b3 APB |
1446 | ) |
1447 | then | |
1448 | # Ok. | |
1449 | : | |
1450 | else | |
53d60c04 KC |
1451 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1452 | Check your system clock" >&5 | |
1453 | echo "$as_me: error: newly created file is older than distributed files! | |
1454 | Check your system clock" >&2;} | |
1455 | { (exit 1); exit 1; }; } | |
1456 | fi | |
1457 | echo "$as_me:$LINENO: result: yes" >&5 | |
1458 | echo "${ECHO_T}yes" >&6 | |
bd8757b3 | 1459 | test "$program_prefix" != NONE && |
53d60c04 | 1460 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
bd8757b3 APB |
1461 | # Use a double $ so make ignores it. |
1462 | test "$program_suffix" != NONE && | |
53d60c04 KC |
1463 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1464 | # Double any \ or $. echo might interpret backslashes. | |
1465 | # By default was `s,x,x', remove it if useless. | |
1466 | cat <<\_ACEOF >conftest.sed | |
1467 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1468 | _ACEOF | |
1469 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1470 | rm conftest.sed | |
1471 | ||
53d60c04 KC |
1472 | # expand $ac_aux_dir to an absolute path |
1473 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1474 | ||
1475 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1476 | # Use eval to expand $SHELL | |
1477 | if eval "$MISSING --run true"; then | |
1478 | am_missing_run="$MISSING --run " | |
1479 | else | |
1480 | am_missing_run= | |
1481 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1482 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1483 | fi | |
1484 | ||
608cb764 | 1485 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
3c374d91 KC |
1486 | # We used to keeping the `.' as first argument, in order to |
1487 | # allow $(mkdir_p) to be used without argument. As in | |
608cb764 | 1488 | # $(mkdir_p) $(somedir) |
3c374d91 KC |
1489 | # where $(somedir) is conditionally defined. However this is wrong |
1490 | # for two reasons: | |
1491 | # 1. if the package is installed by a user who cannot write `.' | |
1492 | # make install will fail, | |
1493 | # 2. the above comment should most certainly read | |
1494 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1495 | # so it does not work when $(somedir) is undefined and | |
1496 | # $(DESTDIR) is not. | |
1497 | # To support the latter case, we have to write | |
1498 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1499 | # so the `.' trick is pointless. | |
1500 | mkdir_p='mkdir -p --' | |
608cb764 PB |
1501 | else |
1502 | # On NextStep and OpenStep, the `mkdir' command does not | |
1503 | # recognize any option. It will interpret all options as | |
1504 | # directories to create, and then abort because `.' already | |
1505 | # exists. | |
1506 | for d in ./-p ./--version; | |
1507 | do | |
1508 | test -d $d && rmdir $d | |
1509 | done | |
1510 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1511 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1512 | mkdir_p='$(mkinstalldirs)' | |
1513 | else | |
1514 | mkdir_p='$(install_sh) -d' | |
1515 | fi | |
1516 | fi | |
1517 | ||
53d60c04 KC |
1518 | for ac_prog in gawk mawk nawk awk |
1519 | do | |
1520 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1521 | set dummy $ac_prog; ac_word=$2 | |
1522 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1524 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1526 | else | |
1527 | if test -n "$AWK"; then | |
1528 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1529 | else | |
1530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1531 | for as_dir in $PATH | |
1532 | do | |
1533 | IFS=$as_save_IFS | |
1534 | test -z "$as_dir" && as_dir=. | |
1535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1536 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1537 | ac_cv_prog_AWK="$ac_prog" | |
1538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1539 | break 2 | |
1540 | fi | |
1541 | done | |
1542 | done | |
1543 | ||
1544 | fi | |
1545 | fi | |
1546 | AWK=$ac_cv_prog_AWK | |
1547 | if test -n "$AWK"; then | |
1548 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1549 | echo "${ECHO_T}$AWK" >&6 | |
1550 | else | |
1551 | echo "$as_me:$LINENO: result: no" >&5 | |
1552 | echo "${ECHO_T}no" >&6 | |
1553 | fi | |
bd8757b3 | 1554 | |
53d60c04 KC |
1555 | test -n "$AWK" && break |
1556 | done | |
bd8757b3 | 1557 | |
53d60c04 KC |
1558 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1559 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3beb1315 | 1560 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
53d60c04 KC |
1561 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 1563 | else |
53d60c04 | 1564 | cat >conftest.make <<\_ACEOF |
bd8757b3 | 1565 | all: |
53d60c04 KC |
1566 | @echo 'ac_maketemp="$(MAKE)"' |
1567 | _ACEOF | |
bd8757b3 | 1568 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
53d60c04 | 1569 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
bd8757b3 APB |
1570 | if test -n "$ac_maketemp"; then |
1571 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1572 | else | |
1573 | eval ac_cv_prog_make_${ac_make}_set=no | |
1574 | fi | |
53d60c04 | 1575 | rm -f conftest.make |
bd8757b3 APB |
1576 | fi |
1577 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
53d60c04 KC |
1578 | echo "$as_me:$LINENO: result: yes" >&5 |
1579 | echo "${ECHO_T}yes" >&6 | |
bd8757b3 APB |
1580 | SET_MAKE= |
1581 | else | |
53d60c04 KC |
1582 | echo "$as_me:$LINENO: result: no" >&5 |
1583 | echo "${ECHO_T}no" >&6 | |
bd8757b3 APB |
1584 | SET_MAKE="MAKE=${MAKE-make}" |
1585 | fi | |
1586 | ||
53d60c04 KC |
1587 | rm -rf .tst 2>/dev/null |
1588 | mkdir .tst 2>/dev/null | |
1589 | if test -d .tst; then | |
1590 | am__leading_dot=. | |
1591 | else | |
1592 | am__leading_dot=_ | |
1593 | fi | |
1594 | rmdir .tst 2>/dev/null | |
bd8757b3 | 1595 | |
608cb764 | 1596 | # test to see if srcdir already configured |
53d60c04 KC |
1597 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
1598 | test -f $srcdir/config.status; then | |
1599 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1600 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1601 | { (exit 1); exit 1; }; } | |
1602 | fi | |
bd8757b3 | 1603 | |
53d60c04 KC |
1604 | # test whether we have cygpath |
1605 | if test -z "$CYGPATH_W"; then | |
1606 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1607 | CYGPATH_W='cygpath -w' | |
1608 | else | |
1609 | CYGPATH_W=echo | |
1610 | fi | |
bd8757b3 | 1611 | fi |
53d60c04 KC |
1612 | |
1613 | ||
1614 | # Define the identity of the package. | |
1615 | PACKAGE=fastjar | |
1616 | VERSION=0.92-gcc | |
1617 | ||
1618 | ||
1619 | cat >>confdefs.h <<_ACEOF | |
bd8757b3 | 1620 | #define PACKAGE "$PACKAGE" |
53d60c04 KC |
1621 | _ACEOF |
1622 | ||
bd8757b3 | 1623 | |
53d60c04 | 1624 | cat >>confdefs.h <<_ACEOF |
bd8757b3 | 1625 | #define VERSION "$VERSION" |
53d60c04 KC |
1626 | _ACEOF |
1627 | ||
1628 | # Some tools Automake needs. | |
1629 | ||
1630 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
bd8757b3 APB |
1631 | |
1632 | ||
53d60c04 | 1633 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
bd8757b3 | 1634 | |
53d60c04 KC |
1635 | |
1636 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1637 | ||
1638 | ||
1639 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1640 | ||
1641 | ||
1642 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1643 | ||
53d60c04 KC |
1644 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1645 | ||
1646 | # Installed binaries are usually stripped using `strip' when the user | |
1647 | # run `make install-strip'. However `strip' might not be the right | |
1648 | # tool to use in cross-compilation environments, therefore Automake | |
1649 | # will honor the `STRIP' environment variable to overrule this program. | |
1650 | if test "$cross_compiling" != no; then | |
1651 | if test -n "$ac_tool_prefix"; then | |
1652 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1653 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1654 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1656 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 1658 | else |
53d60c04 KC |
1659 | if test -n "$STRIP"; then |
1660 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1661 | else | |
1662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1663 | for as_dir in $PATH | |
1664 | do | |
1665 | IFS=$as_save_IFS | |
1666 | test -z "$as_dir" && as_dir=. | |
1667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1668 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1669 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1671 | break 2 | |
1672 | fi | |
1673 | done | |
1674 | done | |
bd8757b3 | 1675 | |
53d60c04 KC |
1676 | fi |
1677 | fi | |
1678 | STRIP=$ac_cv_prog_STRIP | |
1679 | if test -n "$STRIP"; then | |
1680 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1681 | echo "${ECHO_T}$STRIP" >&6 | |
bd8757b3 | 1682 | else |
53d60c04 KC |
1683 | echo "$as_me:$LINENO: result: no" >&5 |
1684 | echo "${ECHO_T}no" >&6 | |
bd8757b3 APB |
1685 | fi |
1686 | ||
bd8757b3 | 1687 | fi |
53d60c04 KC |
1688 | if test -z "$ac_cv_prog_STRIP"; then |
1689 | ac_ct_STRIP=$STRIP | |
1690 | # Extract the first word of "strip", so it can be a program name with args. | |
1691 | set dummy strip; ac_word=$2 | |
1692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1694 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1696 | else | |
1697 | if test -n "$ac_ct_STRIP"; then | |
1698 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1699 | else | |
1700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1701 | for as_dir in $PATH | |
1702 | do | |
1703 | IFS=$as_save_IFS | |
1704 | test -z "$as_dir" && as_dir=. | |
1705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1706 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1707 | ac_cv_prog_ac_ct_STRIP="strip" | |
1708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1709 | break 2 | |
1710 | fi | |
1711 | done | |
1712 | done | |
bd8757b3 | 1713 | |
53d60c04 KC |
1714 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
1715 | fi | |
1716 | fi | |
1717 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1718 | if test -n "$ac_ct_STRIP"; then | |
1719 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1720 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
bd8757b3 | 1721 | else |
53d60c04 KC |
1722 | echo "$as_me:$LINENO: result: no" >&5 |
1723 | echo "${ECHO_T}no" >&6 | |
bd8757b3 APB |
1724 | fi |
1725 | ||
53d60c04 | 1726 | STRIP=$ac_ct_STRIP |
bd8757b3 | 1727 | else |
53d60c04 | 1728 | STRIP="$ac_cv_prog_STRIP" |
bd8757b3 APB |
1729 | fi |
1730 | ||
53d60c04 KC |
1731 | fi |
1732 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
bd8757b3 | 1733 | |
53d60c04 KC |
1734 | # We need awk for the "check" target. The system "awk" is bad on |
1735 | # some platforms. | |
3c374d91 KC |
1736 | # Always define AMTAR for backward compatibility. |
1737 | ||
1738 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1739 | ||
1740 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1741 | ||
1742 | ||
bd8757b3 APB |
1743 | |
1744 | ||
1745 | ||
53d60c04 KC |
1746 | ac_config_headers="$ac_config_headers config.h" |
1747 | ||
1748 | ||
1749 | ac_ext=c | |
1750 | ac_cpp='$CPP $CPPFLAGS' | |
1751 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1752 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1753 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1754 | if test -n "$ac_tool_prefix"; then | |
1755 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1756 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1757 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1758 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1759 | if test "${ac_cv_prog_CC+set}" = set; then | |
1760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1761 | else | |
1762 | if test -n "$CC"; then | |
1763 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1764 | else | |
1765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1766 | for as_dir in $PATH | |
1767 | do | |
1768 | IFS=$as_save_IFS | |
1769 | test -z "$as_dir" && as_dir=. | |
1770 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1771 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1772 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1773 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1774 | break 2 | |
1775 | fi | |
1776 | done | |
1777 | done | |
1778 | ||
1779 | fi | |
1780 | fi | |
1781 | CC=$ac_cv_prog_CC | |
1782 | if test -n "$CC"; then | |
1783 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1784 | echo "${ECHO_T}$CC" >&6 | |
1785 | else | |
1786 | echo "$as_me:$LINENO: result: no" >&5 | |
1787 | echo "${ECHO_T}no" >&6 | |
1788 | fi | |
bd8757b3 | 1789 | |
53d60c04 KC |
1790 | fi |
1791 | if test -z "$ac_cv_prog_CC"; then | |
1792 | ac_ct_CC=$CC | |
1793 | # Extract the first word of "gcc", so it can be a program name with args. | |
bd8757b3 | 1794 | set dummy gcc; ac_word=$2 |
53d60c04 KC |
1795 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1796 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1797 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1799 | else | |
1800 | if test -n "$ac_ct_CC"; then | |
1801 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1802 | else | |
1803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1804 | for as_dir in $PATH | |
1805 | do | |
1806 | IFS=$as_save_IFS | |
1807 | test -z "$as_dir" && as_dir=. | |
1808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1809 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1810 | ac_cv_prog_ac_ct_CC="gcc" | |
1811 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1812 | break 2 | |
1813 | fi | |
1814 | done | |
1815 | done | |
1816 | ||
1817 | fi | |
1818 | fi | |
1819 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1820 | if test -n "$ac_ct_CC"; then | |
1821 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1822 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1823 | else | |
1824 | echo "$as_me:$LINENO: result: no" >&5 | |
1825 | echo "${ECHO_T}no" >&6 | |
1826 | fi | |
1827 | ||
1828 | CC=$ac_ct_CC | |
1829 | else | |
1830 | CC="$ac_cv_prog_CC" | |
1831 | fi | |
1832 | ||
1833 | if test -z "$CC"; then | |
1834 | if test -n "$ac_tool_prefix"; then | |
1835 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1836 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1837 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1839 | if test "${ac_cv_prog_CC+set}" = set; then | |
1840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 APB |
1841 | else |
1842 | if test -n "$CC"; then | |
1843 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1844 | else | |
53d60c04 KC |
1845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1846 | for as_dir in $PATH | |
1847 | do | |
1848 | IFS=$as_save_IFS | |
1849 | test -z "$as_dir" && as_dir=. | |
1850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1851 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1852 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1854 | break 2 | |
1855 | fi | |
1856 | done | |
1857 | done | |
1858 | ||
bd8757b3 APB |
1859 | fi |
1860 | fi | |
53d60c04 | 1861 | CC=$ac_cv_prog_CC |
bd8757b3 | 1862 | if test -n "$CC"; then |
53d60c04 KC |
1863 | echo "$as_me:$LINENO: result: $CC" >&5 |
1864 | echo "${ECHO_T}$CC" >&6 | |
1865 | else | |
1866 | echo "$as_me:$LINENO: result: no" >&5 | |
1867 | echo "${ECHO_T}no" >&6 | |
1868 | fi | |
1869 | ||
1870 | fi | |
1871 | if test -z "$ac_cv_prog_CC"; then | |
1872 | ac_ct_CC=$CC | |
1873 | # Extract the first word of "cc", so it can be a program name with args. | |
1874 | set dummy cc; ac_word=$2 | |
1875 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1876 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1877 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1879 | else | |
1880 | if test -n "$ac_ct_CC"; then | |
1881 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1882 | else | |
1883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1884 | for as_dir in $PATH | |
1885 | do | |
1886 | IFS=$as_save_IFS | |
1887 | test -z "$as_dir" && as_dir=. | |
1888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1890 | ac_cv_prog_ac_ct_CC="cc" | |
1891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1892 | break 2 | |
1893 | fi | |
1894 | done | |
1895 | done | |
1896 | ||
1897 | fi | |
1898 | fi | |
1899 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1900 | if test -n "$ac_ct_CC"; then | |
1901 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1902 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bd8757b3 | 1903 | else |
53d60c04 KC |
1904 | echo "$as_me:$LINENO: result: no" >&5 |
1905 | echo "${ECHO_T}no" >&6 | |
bd8757b3 APB |
1906 | fi |
1907 | ||
53d60c04 KC |
1908 | CC=$ac_ct_CC |
1909 | else | |
1910 | CC="$ac_cv_prog_CC" | |
1911 | fi | |
1912 | ||
1913 | fi | |
bd8757b3 APB |
1914 | if test -z "$CC"; then |
1915 | # Extract the first word of "cc", so it can be a program name with args. | |
1916 | set dummy cc; ac_word=$2 | |
53d60c04 KC |
1917 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1919 | if test "${ac_cv_prog_CC+set}" = set; then | |
1920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 APB |
1921 | else |
1922 | if test -n "$CC"; then | |
1923 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1924 | else | |
bd8757b3 | 1925 | ac_prog_rejected=no |
53d60c04 KC |
1926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1927 | for as_dir in $PATH | |
1928 | do | |
1929 | IFS=$as_save_IFS | |
1930 | test -z "$as_dir" && as_dir=. | |
1931 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1932 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1933 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1934 | ac_prog_rejected=yes | |
1935 | continue | |
1936 | fi | |
1937 | ac_cv_prog_CC="cc" | |
1938 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1939 | break 2 | |
1940 | fi | |
1941 | done | |
1942 | done | |
1943 | ||
bd8757b3 APB |
1944 | if test $ac_prog_rejected = yes; then |
1945 | # We found a bogon in the path, so make sure we never use it. | |
1946 | set dummy $ac_cv_prog_CC | |
1947 | shift | |
53d60c04 | 1948 | if test $# != 0; then |
bd8757b3 APB |
1949 | # We chose a different compiler from the bogus one. |
1950 | # However, it has the same basename, so the bogon will be chosen | |
1951 | # first if we set CC to just the basename; use the full file name. | |
1952 | shift | |
53d60c04 | 1953 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
bd8757b3 APB |
1954 | fi |
1955 | fi | |
1956 | fi | |
1957 | fi | |
53d60c04 | 1958 | CC=$ac_cv_prog_CC |
bd8757b3 | 1959 | if test -n "$CC"; then |
53d60c04 KC |
1960 | echo "$as_me:$LINENO: result: $CC" >&5 |
1961 | echo "${ECHO_T}$CC" >&6 | |
bd8757b3 | 1962 | else |
53d60c04 KC |
1963 | echo "$as_me:$LINENO: result: no" >&5 |
1964 | echo "${ECHO_T}no" >&6 | |
bd8757b3 APB |
1965 | fi |
1966 | ||
53d60c04 KC |
1967 | fi |
1968 | if test -z "$CC"; then | |
1969 | if test -n "$ac_tool_prefix"; then | |
1970 | for ac_prog in cl | |
1971 | do | |
1972 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1973 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1974 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1976 | if test "${ac_cv_prog_CC+set}" = set; then | |
1977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 APB |
1978 | else |
1979 | if test -n "$CC"; then | |
1980 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1981 | else | |
53d60c04 KC |
1982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1983 | for as_dir in $PATH | |
1984 | do | |
1985 | IFS=$as_save_IFS | |
1986 | test -z "$as_dir" && as_dir=. | |
1987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1988 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1989 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1990 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1991 | break 2 | |
1992 | fi | |
1993 | done | |
1994 | done | |
1995 | ||
bd8757b3 APB |
1996 | fi |
1997 | fi | |
53d60c04 | 1998 | CC=$ac_cv_prog_CC |
bd8757b3 | 1999 | if test -n "$CC"; then |
53d60c04 KC |
2000 | echo "$as_me:$LINENO: result: $CC" >&5 |
2001 | echo "${ECHO_T}$CC" >&6 | |
bd8757b3 | 2002 | else |
53d60c04 KC |
2003 | echo "$as_me:$LINENO: result: no" >&5 |
2004 | echo "${ECHO_T}no" >&6 | |
bd8757b3 APB |
2005 | fi |
2006 | ||
53d60c04 KC |
2007 | test -n "$CC" && break |
2008 | done | |
2009 | fi | |
2010 | if test -z "$CC"; then | |
2011 | ac_ct_CC=$CC | |
2012 | for ac_prog in cl | |
2013 | do | |
2014 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2015 | set dummy $ac_prog; ac_word=$2 | |
2016 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2018 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2020 | else | |
2021 | if test -n "$ac_ct_CC"; then | |
2022 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2023 | else | |
2024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2025 | for as_dir in $PATH | |
2026 | do | |
2027 | IFS=$as_save_IFS | |
2028 | test -z "$as_dir" && as_dir=. | |
2029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2030 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2031 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2032 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2033 | break 2 | |
2034 | fi | |
2035 | done | |
2036 | done | |
bd8757b3 | 2037 | |
53d60c04 KC |
2038 | fi |
2039 | fi | |
2040 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2041 | if test -n "$ac_ct_CC"; then | |
2042 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2043 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2044 | else | |
2045 | echo "$as_me:$LINENO: result: no" >&5 | |
2046 | echo "${ECHO_T}no" >&6 | |
2047 | fi | |
bd8757b3 | 2048 | |
53d60c04 KC |
2049 | test -n "$ac_ct_CC" && break |
2050 | done | |
bd8757b3 | 2051 | |
53d60c04 KC |
2052 | CC=$ac_ct_CC |
2053 | fi | |
2054 | ||
2055 | fi | |
2056 | ||
2057 | ||
2058 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2059 | See \`config.log' for more details." >&5 | |
2060 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2061 | See \`config.log' for more details." >&2;} | |
2062 | { (exit 1); exit 1; }; } | |
2063 | ||
2064 | # Provide some information about the compiler. | |
2065 | echo "$as_me:$LINENO:" \ | |
2066 | "checking for C compiler version" >&5 | |
2067 | ac_compiler=`set X $ac_compile; echo $2` | |
2068 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2069 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2070 | ac_status=$? | |
2071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2072 | (exit $ac_status); } | |
2073 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2074 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2075 | ac_status=$? | |
2076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2077 | (exit $ac_status); } | |
2078 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2079 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2080 | ac_status=$? | |
2081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2082 | (exit $ac_status); } | |
2083 | ||
2084 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
2085 | /* confdefs.h. */ |
2086 | _ACEOF | |
2087 | cat confdefs.h >>conftest.$ac_ext | |
2088 | cat >>conftest.$ac_ext <<_ACEOF | |
2089 | /* end confdefs.h. */ | |
2090 | ||
2091 | int | |
2092 | main () | |
2093 | { | |
2094 | ||
2095 | ; | |
2096 | return 0; | |
2097 | } | |
2098 | _ACEOF | |
2099 | ac_clean_files_save=$ac_clean_files | |
2100 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2101 | # Try to create an executable without -o first, disregard a.out. | |
2102 | # It will help us diagnose broken compilers, and finding out an intuition | |
2103 | # of exeext. | |
3beb1315 HPN |
2104 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2105 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
53d60c04 KC |
2106 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2107 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2108 | (eval $ac_link_default) 2>&5 | |
2109 | ac_status=$? | |
2110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2111 | (exit $ac_status); }; then | |
2112 | # Find the output, starting from the most likely. This scheme is | |
2113 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2114 | # resort. | |
2115 | ||
2116 | # Be careful to initialize this variable, since it used to be cached. | |
2117 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2118 | ac_cv_exeext= | |
2119 | # b.out is created by i960 compilers. | |
2120 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2121 | do | |
2122 | test -f "$ac_file" || continue | |
2123 | case $ac_file in | |
2124 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
3beb1315 | 2125 | ;; |
53d60c04 | 2126 | conftest.$ac_ext ) |
3beb1315 HPN |
2127 | # This is the source file. |
2128 | ;; | |
53d60c04 | 2129 | [ab].out ) |
3beb1315 HPN |
2130 | # We found the default executable, but exeext='' is most |
2131 | # certainly right. | |
2132 | break;; | |
53d60c04 | 2133 | *.* ) |
3beb1315 HPN |
2134 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2135 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2136 | # but it would be cool to find out if it's true. Does anybody | |
2137 | # maintain Libtool? --akim. | |
2138 | export ac_cv_exeext | |
2139 | break;; | |
53d60c04 | 2140 | * ) |
3beb1315 | 2141 | break;; |
53d60c04 KC |
2142 | esac |
2143 | done | |
2144 | else | |
2145 | echo "$as_me: failed program was:" >&5 | |
2146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2147 | ||
2148 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2149 | See \`config.log' for more details." >&5 | |
2150 | echo "$as_me: error: C compiler cannot create executables | |
2151 | See \`config.log' for more details." >&2;} | |
2152 | { (exit 77); exit 77; }; } | |
2153 | fi | |
2154 | ||
2155 | ac_exeext=$ac_cv_exeext | |
2156 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2157 | echo "${ECHO_T}$ac_file" >&6 | |
2158 | ||
2159 | # Check the compiler produces executables we can run. If not, either | |
2160 | # the compiler is broken, or we cross compile. | |
2161 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2162 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2163 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2164 | # If not cross compiling, check that we can run a simple program. | |
2165 | if test "$cross_compiling" != yes; then | |
2166 | if { ac_try='./$ac_file' | |
2167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2168 | (eval $ac_try) 2>&5 | |
2169 | ac_status=$? | |
2170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2171 | (exit $ac_status); }; }; then | |
2172 | cross_compiling=no | |
bd8757b3 | 2173 | else |
53d60c04 KC |
2174 | if test "$cross_compiling" = maybe; then |
2175 | cross_compiling=yes | |
2176 | else | |
2177 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2178 | If you meant to cross compile, use \`--host'. | |
2179 | See \`config.log' for more details." >&5 | |
2180 | echo "$as_me: error: cannot run C compiled programs. | |
2181 | If you meant to cross compile, use \`--host'. | |
2182 | See \`config.log' for more details." >&2;} | |
2183 | { (exit 1); exit 1; }; } | |
2184 | fi | |
bd8757b3 | 2185 | fi |
bd8757b3 | 2186 | fi |
53d60c04 KC |
2187 | echo "$as_me:$LINENO: result: yes" >&5 |
2188 | echo "${ECHO_T}yes" >&6 | |
2189 | ||
2190 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2191 | ac_clean_files=$ac_clean_files_save | |
2192 | # Check the compiler produces executables we can run. If not, either | |
2193 | # the compiler is broken, or we cross compile. | |
2194 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2195 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2196 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2197 | echo "${ECHO_T}$cross_compiling" >&6 | |
2198 | ||
2199 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2200 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2202 | (eval $ac_link) 2>&5 | |
2203 | ac_status=$? | |
2204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2205 | (exit $ac_status); }; then | |
2206 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2207 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2208 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2209 | # `rm'. | |
2210 | for ac_file in conftest.exe conftest conftest.*; do | |
2211 | test -f "$ac_file" || continue | |
2212 | case $ac_file in | |
2213 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2214 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3beb1315 HPN |
2215 | export ac_cv_exeext |
2216 | break;; | |
53d60c04 KC |
2217 | * ) break;; |
2218 | esac | |
2219 | done | |
bd8757b3 | 2220 | else |
53d60c04 KC |
2221 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2222 | See \`config.log' for more details." >&5 | |
2223 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2224 | See \`config.log' for more details." >&2;} | |
2225 | { (exit 1); exit 1; }; } | |
bd8757b3 APB |
2226 | fi |
2227 | ||
53d60c04 KC |
2228 | rm -f conftest$ac_cv_exeext |
2229 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2230 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
bd8757b3 | 2231 | |
53d60c04 KC |
2232 | rm -f conftest.$ac_ext |
2233 | EXEEXT=$ac_cv_exeext | |
2234 | ac_exeext=$EXEEXT | |
2235 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2236 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2237 | if test "${ac_cv_objext+set}" = set; then | |
2238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2239 | else | |
2240 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
2241 | /* confdefs.h. */ |
2242 | _ACEOF | |
2243 | cat confdefs.h >>conftest.$ac_ext | |
2244 | cat >>conftest.$ac_ext <<_ACEOF | |
2245 | /* end confdefs.h. */ | |
2246 | ||
2247 | int | |
2248 | main () | |
2249 | { | |
2250 | ||
2251 | ; | |
2252 | return 0; | |
2253 | } | |
2254 | _ACEOF | |
2255 | rm -f conftest.o conftest.obj | |
2256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2257 | (eval $ac_compile) 2>&5 | |
2258 | ac_status=$? | |
2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2260 | (exit $ac_status); }; then | |
2261 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2262 | case $ac_file in | |
2263 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2264 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2265 | break;; | |
2266 | esac | |
2267 | done | |
2268 | else | |
2269 | echo "$as_me: failed program was:" >&5 | |
2270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2271 | ||
2272 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2273 | See \`config.log' for more details." >&5 | |
2274 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2275 | See \`config.log' for more details." >&2;} | |
2276 | { (exit 1); exit 1; }; } | |
2277 | fi | |
2278 | ||
2279 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2280 | fi | |
2281 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2282 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2283 | OBJEXT=$ac_cv_objext | |
2284 | ac_objext=$OBJEXT | |
2285 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2286 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2287 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 2289 | else |
53d60c04 | 2290 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
2291 | /* confdefs.h. */ |
2292 | _ACEOF | |
2293 | cat confdefs.h >>conftest.$ac_ext | |
2294 | cat >>conftest.$ac_ext <<_ACEOF | |
2295 | /* end confdefs.h. */ | |
2296 | ||
2297 | int | |
2298 | main () | |
2299 | { | |
2300 | #ifndef __GNUC__ | |
2301 | choke me | |
2302 | #endif | |
2303 | ||
2304 | ; | |
2305 | return 0; | |
2306 | } | |
2307 | _ACEOF | |
2308 | rm -f conftest.$ac_objext | |
2309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 2310 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 2311 | ac_status=$? |
3beb1315 HPN |
2312 | grep -v '^ *+' conftest.er1 >conftest.err |
2313 | rm -f conftest.er1 | |
2314 | cat conftest.err >&5 | |
53d60c04 KC |
2315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2316 | (exit $ac_status); } && | |
79453222 KC |
2317 | { ac_try='test -z "$ac_c_werror_flag" |
2318 | || test ! -s conftest.err' | |
3beb1315 HPN |
2319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2320 | (eval $ac_try) 2>&5 | |
2321 | ac_status=$? | |
2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2323 | (exit $ac_status); }; } && | |
2324 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
2325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2326 | (eval $ac_try) 2>&5 | |
2327 | ac_status=$? | |
2328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2329 | (exit $ac_status); }; }; then | |
2330 | ac_compiler_gnu=yes | |
2331 | else | |
2332 | echo "$as_me: failed program was:" >&5 | |
2333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2334 | ||
2335 | ac_compiler_gnu=no | |
bd8757b3 | 2336 | fi |
3beb1315 | 2337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
53d60c04 | 2338 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
bd8757b3 | 2339 | |
53d60c04 KC |
2340 | fi |
2341 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2342 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2343 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2344 | ac_test_CFLAGS=${CFLAGS+set} | |
2345 | ac_save_CFLAGS=$CFLAGS | |
2346 | CFLAGS="-g" | |
2347 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2348 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2349 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 2351 | else |
53d60c04 | 2352 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
2353 | /* confdefs.h. */ |
2354 | _ACEOF | |
2355 | cat confdefs.h >>conftest.$ac_ext | |
2356 | cat >>conftest.$ac_ext <<_ACEOF | |
2357 | /* end confdefs.h. */ | |
2358 | ||
2359 | int | |
2360 | main () | |
2361 | { | |
2362 | ||
2363 | ; | |
2364 | return 0; | |
2365 | } | |
2366 | _ACEOF | |
2367 | rm -f conftest.$ac_objext | |
2368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 2369 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 2370 | ac_status=$? |
3beb1315 HPN |
2371 | grep -v '^ *+' conftest.er1 >conftest.err |
2372 | rm -f conftest.er1 | |
2373 | cat conftest.err >&5 | |
53d60c04 KC |
2374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2375 | (exit $ac_status); } && | |
79453222 KC |
2376 | { ac_try='test -z "$ac_c_werror_flag" |
2377 | || test ! -s conftest.err' | |
3beb1315 HPN |
2378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2379 | (eval $ac_try) 2>&5 | |
2380 | ac_status=$? | |
2381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2382 | (exit $ac_status); }; } && | |
2383 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
2384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2385 | (eval $ac_try) 2>&5 | |
2386 | ac_status=$? | |
2387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2388 | (exit $ac_status); }; }; then | |
bd8757b3 APB |
2389 | ac_cv_prog_cc_g=yes |
2390 | else | |
53d60c04 KC |
2391 | echo "$as_me: failed program was:" >&5 |
2392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bd8757b3 | 2393 | |
53d60c04 | 2394 | ac_cv_prog_cc_g=no |
bd8757b3 | 2395 | fi |
3beb1315 | 2396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
53d60c04 KC |
2397 | fi |
2398 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2399 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
bd8757b3 | 2400 | if test "$ac_test_CFLAGS" = set; then |
53d60c04 | 2401 | CFLAGS=$ac_save_CFLAGS |
bd8757b3 APB |
2402 | elif test $ac_cv_prog_cc_g = yes; then |
2403 | if test "$GCC" = yes; then | |
2404 | CFLAGS="-g -O2" | |
2405 | else | |
2406 | CFLAGS="-g" | |
2407 | fi | |
2408 | else | |
2409 | if test "$GCC" = yes; then | |
2410 | CFLAGS="-O2" | |
2411 | else | |
2412 | CFLAGS= | |
2413 | fi | |
2414 | fi | |
53d60c04 KC |
2415 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2416 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2417 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2419 | else | |
2420 | ac_cv_prog_cc_stdc=no | |
2421 | ac_save_CC=$CC | |
2422 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
2423 | /* confdefs.h. */ |
2424 | _ACEOF | |
2425 | cat confdefs.h >>conftest.$ac_ext | |
2426 | cat >>conftest.$ac_ext <<_ACEOF | |
2427 | /* end confdefs.h. */ | |
2428 | #include <stdarg.h> | |
2429 | #include <stdio.h> | |
2430 | #include <sys/types.h> | |
2431 | #include <sys/stat.h> | |
2432 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2433 | struct buf { int x; }; | |
2434 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2435 | static char *e (p, i) | |
2436 | char **p; | |
2437 | int i; | |
2438 | { | |
2439 | return p[i]; | |
2440 | } | |
2441 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2442 | { | |
2443 | char *s; | |
2444 | va_list v; | |
2445 | va_start (v,p); | |
2446 | s = g (p, va_arg (v,int)); | |
2447 | va_end (v); | |
2448 | return s; | |
2449 | } | |
3beb1315 HPN |
2450 | |
2451 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2452 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2453 | These don't provoke an error unfortunately, instead are silently treated | |
2454 | as 'x'. The following induces an error, until -std1 is added to get | |
2455 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2456 | array size at least. It's necessary to write '\x00'==0 to get something | |
2457 | that's true only with -std1. */ | |
2458 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2459 | ||
53d60c04 KC |
2460 | int test (int i, double x); |
2461 | struct s1 {int (*f) (int a);}; | |
2462 | struct s2 {int (*f) (double a);}; | |
2463 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2464 | int argc; | |
2465 | char **argv; | |
2466 | int | |
2467 | main () | |
2468 | { | |
2469 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2470 | ; | |
2471 | return 0; | |
2472 | } | |
2473 | _ACEOF | |
2474 | # Don't try gcc -ansi; that turns off useful extensions and | |
2475 | # breaks some systems' header files. | |
2476 | # AIX -qlanglvl=ansi | |
2477 | # Ultrix and OSF/1 -std1 | |
2478 | # HP-UX 10.20 and later -Ae | |
2479 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2480 | # SVR4 -Xc -D__EXTENSIONS__ | |
2481 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2482 | do | |
2483 | CC="$ac_save_CC $ac_arg" | |
2484 | rm -f conftest.$ac_objext | |
2485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 2486 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 2487 | ac_status=$? |
3beb1315 HPN |
2488 | grep -v '^ *+' conftest.er1 >conftest.err |
2489 | rm -f conftest.er1 | |
2490 | cat conftest.err >&5 | |
53d60c04 KC |
2491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2492 | (exit $ac_status); } && | |
79453222 KC |
2493 | { ac_try='test -z "$ac_c_werror_flag" |
2494 | || test ! -s conftest.err' | |
3beb1315 HPN |
2495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2496 | (eval $ac_try) 2>&5 | |
2497 | ac_status=$? | |
2498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2499 | (exit $ac_status); }; } && | |
2500 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
2501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2502 | (eval $ac_try) 2>&5 | |
2503 | ac_status=$? | |
2504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2505 | (exit $ac_status); }; }; then | |
2506 | ac_cv_prog_cc_stdc=$ac_arg | |
2507 | break | |
2508 | else | |
2509 | echo "$as_me: failed program was:" >&5 | |
2510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2511 | ||
2512 | fi | |
3beb1315 | 2513 | rm -f conftest.err conftest.$ac_objext |
53d60c04 KC |
2514 | done |
2515 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2516 | CC=$ac_save_CC | |
2517 | ||
2518 | fi | |
2519 | ||
2520 | case "x$ac_cv_prog_cc_stdc" in | |
2521 | x|xno) | |
2522 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2523 | echo "${ECHO_T}none needed" >&6 ;; | |
2524 | *) | |
2525 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2526 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2527 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2528 | esac | |
2529 | ||
2530 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2531 | # in C++ we need to declare it. In case someone uses the same compiler | |
2532 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2533 | # the declaration of exit, since it's the most demanding environment. | |
2534 | cat >conftest.$ac_ext <<_ACEOF | |
2535 | #ifndef __cplusplus | |
2536 | choke me | |
2537 | #endif | |
2538 | _ACEOF | |
2539 | rm -f conftest.$ac_objext | |
2540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 2541 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 2542 | ac_status=$? |
3beb1315 HPN |
2543 | grep -v '^ *+' conftest.er1 >conftest.err |
2544 | rm -f conftest.er1 | |
2545 | cat conftest.err >&5 | |
53d60c04 KC |
2546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2547 | (exit $ac_status); } && | |
79453222 KC |
2548 | { ac_try='test -z "$ac_c_werror_flag" |
2549 | || test ! -s conftest.err' | |
3beb1315 HPN |
2550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2551 | (eval $ac_try) 2>&5 | |
2552 | ac_status=$? | |
2553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2554 | (exit $ac_status); }; } && | |
2555 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
2556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2557 | (eval $ac_try) 2>&5 | |
2558 | ac_status=$? | |
2559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2560 | (exit $ac_status); }; }; then | |
2561 | for ac_declaration in \ | |
3beb1315 | 2562 | '' \ |
53d60c04 KC |
2563 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2564 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2565 | 'extern "C" void exit (int) throw ();' \ | |
2566 | 'extern "C" void exit (int);' \ | |
2567 | 'void exit (int);' | |
2568 | do | |
2569 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
2570 | /* confdefs.h. */ |
2571 | _ACEOF | |
2572 | cat confdefs.h >>conftest.$ac_ext | |
2573 | cat >>conftest.$ac_ext <<_ACEOF | |
2574 | /* end confdefs.h. */ | |
53d60c04 | 2575 | $ac_declaration |
3beb1315 | 2576 | #include <stdlib.h> |
53d60c04 KC |
2577 | int |
2578 | main () | |
2579 | { | |
2580 | exit (42); | |
2581 | ; | |
2582 | return 0; | |
2583 | } | |
2584 | _ACEOF | |
2585 | rm -f conftest.$ac_objext | |
2586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 2587 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 2588 | ac_status=$? |
3beb1315 HPN |
2589 | grep -v '^ *+' conftest.er1 >conftest.err |
2590 | rm -f conftest.er1 | |
2591 | cat conftest.err >&5 | |
53d60c04 KC |
2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2593 | (exit $ac_status); } && | |
79453222 KC |
2594 | { ac_try='test -z "$ac_c_werror_flag" |
2595 | || test ! -s conftest.err' | |
3beb1315 HPN |
2596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2597 | (eval $ac_try) 2>&5 | |
2598 | ac_status=$? | |
2599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2600 | (exit $ac_status); }; } && | |
2601 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
2602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2603 | (eval $ac_try) 2>&5 | |
2604 | ac_status=$? | |
2605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2606 | (exit $ac_status); }; }; then | |
2607 | : | |
2608 | else | |
2609 | echo "$as_me: failed program was:" >&5 | |
2610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2611 | ||
2612 | continue | |
2613 | fi | |
3beb1315 | 2614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
53d60c04 | 2615 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
2616 | /* confdefs.h. */ |
2617 | _ACEOF | |
2618 | cat confdefs.h >>conftest.$ac_ext | |
2619 | cat >>conftest.$ac_ext <<_ACEOF | |
2620 | /* end confdefs.h. */ | |
2621 | $ac_declaration | |
2622 | int | |
2623 | main () | |
2624 | { | |
2625 | exit (42); | |
2626 | ; | |
2627 | return 0; | |
2628 | } | |
2629 | _ACEOF | |
2630 | rm -f conftest.$ac_objext | |
2631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 2632 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 2633 | ac_status=$? |
3beb1315 HPN |
2634 | grep -v '^ *+' conftest.er1 >conftest.err |
2635 | rm -f conftest.er1 | |
2636 | cat conftest.err >&5 | |
53d60c04 KC |
2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2638 | (exit $ac_status); } && | |
79453222 KC |
2639 | { ac_try='test -z "$ac_c_werror_flag" |
2640 | || test ! -s conftest.err' | |
3beb1315 HPN |
2641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2642 | (eval $ac_try) 2>&5 | |
2643 | ac_status=$? | |
2644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2645 | (exit $ac_status); }; } && | |
2646 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
2647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2648 | (eval $ac_try) 2>&5 | |
2649 | ac_status=$? | |
2650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2651 | (exit $ac_status); }; }; then | |
2652 | break | |
2653 | else | |
2654 | echo "$as_me: failed program was:" >&5 | |
2655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2656 | ||
2657 | fi | |
3beb1315 | 2658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
53d60c04 KC |
2659 | done |
2660 | rm -f conftest* | |
2661 | if test -n "$ac_declaration"; then | |
2662 | echo '#ifdef __cplusplus' >>confdefs.h | |
2663 | echo $ac_declaration >>confdefs.h | |
2664 | echo '#endif' >>confdefs.h | |
2665 | fi | |
2666 | ||
2667 | else | |
2668 | echo "$as_me: failed program was:" >&5 | |
2669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2670 | ||
2671 | fi | |
3beb1315 | 2672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
53d60c04 KC |
2673 | ac_ext=c |
2674 | ac_cpp='$CPP $CPPFLAGS' | |
2675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2678 | DEPDIR="${am__leading_dot}deps" | |
2679 | ||
2680 | ac_config_commands="$ac_config_commands depfiles" | |
2681 | ||
2682 | ||
2683 | am_make=${MAKE-make} | |
2684 | cat > confinc << 'END' | |
2685 | am__doit: | |
2686 | @echo done | |
2687 | .PHONY: am__doit | |
2688 | END | |
2689 | # If we don't find an include directive, just comment out the code. | |
2690 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2691 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2692 | am__include="#" | |
2693 | am__quote= | |
2694 | _am_result=none | |
2695 | # First try GNU make style include. | |
2696 | echo "include confinc" > confmf | |
2697 | # We grep out `Entering directory' and `Leaving directory' | |
2698 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2699 | # In particular we don't look at `^make:' because GNU make might | |
2700 | # be invoked under some other name (usually "gmake"), in which | |
2701 | # case it prints its new name instead of `make'. | |
2702 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2703 | am__include=include | |
2704 | am__quote= | |
2705 | _am_result=GNU | |
2706 | fi | |
2707 | # Now try BSD make style include. | |
2708 | if test "$am__include" = "#"; then | |
2709 | echo '.include "confinc"' > confmf | |
2710 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2711 | am__include=.include | |
2712 | am__quote="\"" | |
2713 | _am_result=BSD | |
2714 | fi | |
2715 | fi | |
2716 | ||
2717 | ||
2718 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2719 | echo "${ECHO_T}$_am_result" >&6 | |
2720 | rm -f confinc confmf | |
2721 | ||
2722 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2723 | if test "${enable_dependency_tracking+set}" = set; then | |
2724 | enableval="$enable_dependency_tracking" | |
2725 | ||
2726 | fi; | |
2727 | if test "x$enable_dependency_tracking" != xno; then | |
2728 | am_depcomp="$ac_aux_dir/depcomp" | |
2729 | AMDEPBACKSLASH='\' | |
2730 | fi | |
2731 | ||
2732 | ||
2733 | if test "x$enable_dependency_tracking" != xno; then | |
2734 | AMDEP_TRUE= | |
2735 | AMDEP_FALSE='#' | |
2736 | else | |
2737 | AMDEP_TRUE='#' | |
2738 | AMDEP_FALSE= | |
2739 | fi | |
2740 | ||
2741 | ||
2742 | ||
2743 | ||
2744 | depcc="$CC" am_compiler_list= | |
2745 | ||
2746 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2747 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2748 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2750 | else | |
2751 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2752 | # We make a subdir and do the tests there. Otherwise we can end up | |
2753 | # making bogus files that we don't know about and never remove. For | |
2754 | # instance it was reported that on HP-UX the gcc test will end up | |
2755 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2756 | # in D'. | |
2757 | mkdir conftest.dir | |
2758 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2759 | # using a relative directory. | |
2760 | cp "$am_depcomp" conftest.dir | |
2761 | cd conftest.dir | |
2762 | # We will build objects and dependencies in a subdirectory because | |
2763 | # it helps to detect inapplicable dependency modes. For instance | |
2764 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2765 | # side effect of compilation, but ICC will put the dependencies in | |
2766 | # the current directory while Tru64 will put them in the object | |
2767 | # directory. | |
2768 | mkdir sub | |
2769 | ||
2770 | am_cv_CC_dependencies_compiler_type=none | |
2771 | if test "$am_compiler_list" = ""; then | |
2772 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2773 | fi | |
2774 | for depmode in $am_compiler_list; do | |
2775 | # Setup a source with many dependencies, because some compilers | |
2776 | # like to wrap large dependency lists on column 80 (with \), and | |
2777 | # we should not choose a depcomp mode which is confused by this. | |
2778 | # | |
2779 | # We need to recreate these files for each test, as the compiler may | |
2780 | # overwrite some of them when testing with obscure command lines. | |
2781 | # This happens at least with the AIX C compiler. | |
2782 | : > sub/conftest.c | |
2783 | for i in 1 2 3 4 5 6; do | |
2784 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
608cb764 PB |
2785 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
2786 | # Solaris 8's {/usr,}/bin/sh. | |
2787 | touch sub/conftst$i.h | |
53d60c04 KC |
2788 | done |
2789 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
2790 | ||
2791 | case $depmode in | |
2792 | nosideeffect) | |
2793 | # after this tag, mechanisms are not by side-effect, so they'll | |
2794 | # only be used when explicitly requested | |
2795 | if test "x$enable_dependency_tracking" = xyes; then | |
2796 | continue | |
2797 | else | |
2798 | break | |
2799 | fi | |
2800 | ;; | |
2801 | none) break ;; | |
2802 | esac | |
2803 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2804 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2805 | # handle `-M -o', and we need to detect this. | |
2806 | if depmode=$depmode \ | |
2807 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
2808 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
2809 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
2810 | >/dev/null 2>conftest.err && | |
2811 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
2812 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
2813 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2814 | # icc doesn't choke on unknown options, it will just issue warnings | |
608cb764 PB |
2815 | # or remarks (even with -Werror). So we grep stderr for any message |
2816 | # that says an option was ignored or not supported. | |
2817 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
2818 | # icc: Command line warning: ignoring option '-M'; no argument required | |
2819 | # The diagnosis changed in icc 8.0: | |
2820 | # icc: Command line remark: option '-MP' not supported | |
2821 | if (grep 'ignoring option' conftest.err || | |
2822 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
53d60c04 KC |
2823 | am_cv_CC_dependencies_compiler_type=$depmode |
2824 | break | |
2825 | fi | |
2826 | fi | |
2827 | done | |
2828 | ||
2829 | cd .. | |
2830 | rm -rf conftest.dir | |
2831 | else | |
2832 | am_cv_CC_dependencies_compiler_type=none | |
2833 | fi | |
2834 | ||
2835 | fi | |
2836 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
2837 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
2838 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
2839 | ||
2840 | ||
2841 | ||
2842 | if | |
2843 | test "x$enable_dependency_tracking" != xno \ | |
2844 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
2845 | am__fastdepCC_TRUE= | |
2846 | am__fastdepCC_FALSE='#' | |
2847 | else | |
2848 | am__fastdepCC_TRUE='#' | |
2849 | am__fastdepCC_FALSE= | |
2850 | fi | |
2851 | ||
bd8757b3 APB |
2852 | |
2853 | # Find a good install program. We prefer a C program (faster), | |
2854 | # so one script is as good as another. But avoid the broken or | |
2855 | # incompatible versions: | |
2856 | # SysV /etc/install, /usr/sbin/install | |
2857 | # SunOS /usr/etc/install | |
2858 | # IRIX /sbin/install | |
2859 | # AIX /bin/install | |
53d60c04 | 2860 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
bd8757b3 APB |
2861 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2862 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2863 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3beb1315 | 2864 | # OS/2's system install, which has a completely different semantic |
bd8757b3 | 2865 | # ./install, which can be erroneously created by make from ./install.sh. |
53d60c04 KC |
2866 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2867 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
bd8757b3 | 2868 | if test -z "$INSTALL"; then |
53d60c04 KC |
2869 | if test "${ac_cv_path_install+set}" = set; then |
2870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2871 | else | |
2872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2873 | for as_dir in $PATH | |
2874 | do | |
2875 | IFS=$as_save_IFS | |
2876 | test -z "$as_dir" && as_dir=. | |
2877 | # Account for people who put trailing slashes in PATH elements. | |
2878 | case $as_dir/ in | |
2879 | ./ | .// | /cC/* | \ | |
2880 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3beb1315 | 2881 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
53d60c04 KC |
2882 | /usr/ucb/* ) ;; |
2883 | *) | |
2884 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2885 | # Don't use installbsd from OSF since it installs stuff as root | |
2886 | # by default. | |
2887 | for ac_prog in ginstall scoinst install; do | |
2888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3beb1315 HPN |
2889 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2890 | if test $ac_prog = install && | |
2891 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2892 | # AIX install. It has an incompatible calling convention. | |
2893 | : | |
2894 | elif test $ac_prog = install && | |
2895 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2896 | # program-specific install script used by HP pwplus--don't use. | |
2897 | : | |
2898 | else | |
2899 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2900 | break 3 | |
2901 | fi | |
2902 | fi | |
bd8757b3 | 2903 | done |
53d60c04 KC |
2904 | done |
2905 | ;; | |
2906 | esac | |
2907 | done | |
2908 | ||
bd8757b3 APB |
2909 | |
2910 | fi | |
2911 | if test "${ac_cv_path_install+set}" = set; then | |
53d60c04 | 2912 | INSTALL=$ac_cv_path_install |
bd8757b3 APB |
2913 | else |
2914 | # As a last resort, use the slow shell script. We don't cache a | |
2915 | # path for INSTALL within a source directory, because that will | |
2916 | # break other packages using the cache if that directory is | |
2917 | # removed, or if the path is relative. | |
53d60c04 | 2918 | INSTALL=$ac_install_sh |
bd8757b3 APB |
2919 | fi |
2920 | fi | |
53d60c04 KC |
2921 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2922 | echo "${ECHO_T}$INSTALL" >&6 | |
bd8757b3 APB |
2923 | |
2924 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2925 | # It thinks the first close brace ends the variable substitution. | |
2926 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2927 | ||
53d60c04 | 2928 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
bd8757b3 APB |
2929 | |
2930 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2931 | ||
2932 | # Extract the first word of "rm", so it can be a program name with args. | |
2933 | set dummy rm; ac_word=$2 | |
53d60c04 KC |
2934 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2935 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2936 | if test "${ac_cv_path_RM+set}" = set; then | |
2937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 2938 | else |
53d60c04 KC |
2939 | case $RM in |
2940 | [\\/]* | ?:[\\/]*) | |
bd8757b3 APB |
2941 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
2942 | ;; | |
bd8757b3 | 2943 | *) |
53d60c04 KC |
2944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2945 | as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin" | |
2946 | for as_dir in $as_dummy | |
2947 | do | |
2948 | IFS=$as_save_IFS | |
2949 | test -z "$as_dir" && as_dir=. | |
2950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2951 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2952 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
2953 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2954 | break 2 | |
2955 | fi | |
2956 | done | |
2957 | done | |
2958 | ||
bd8757b3 APB |
2959 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm" |
2960 | ;; | |
2961 | esac | |
2962 | fi | |
53d60c04 KC |
2963 | RM=$ac_cv_path_RM |
2964 | ||
bd8757b3 | 2965 | if test -n "$RM"; then |
53d60c04 KC |
2966 | echo "$as_me:$LINENO: result: $RM" >&5 |
2967 | echo "${ECHO_T}$RM" >&6 | |
bd8757b3 | 2968 | else |
53d60c04 KC |
2969 | echo "$as_me:$LINENO: result: no" >&5 |
2970 | echo "${ECHO_T}no" >&6 | |
bd8757b3 APB |
2971 | fi |
2972 | ||
2973 | # Extract the first word of "cp", so it can be a program name with args. | |
2974 | set dummy cp; ac_word=$2 | |
53d60c04 KC |
2975 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2977 | if test "${ac_cv_path_CP+set}" = set; then | |
2978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 2979 | else |
53d60c04 KC |
2980 | case $CP in |
2981 | [\\/]* | ?:[\\/]*) | |
bd8757b3 APB |
2982 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
2983 | ;; | |
bd8757b3 | 2984 | *) |
53d60c04 KC |
2985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2986 | as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin" | |
2987 | for as_dir in $as_dummy | |
2988 | do | |
2989 | IFS=$as_save_IFS | |
2990 | test -z "$as_dir" && as_dir=. | |
2991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2992 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2993 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
2994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2995 | break 2 | |
2996 | fi | |
2997 | done | |
2998 | done | |
2999 | ||
bd8757b3 APB |
3000 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="/bin/cp" |
3001 | ;; | |
3002 | esac | |
3003 | fi | |
53d60c04 KC |
3004 | CP=$ac_cv_path_CP |
3005 | ||
bd8757b3 | 3006 | if test -n "$CP"; then |
53d60c04 KC |
3007 | echo "$as_me:$LINENO: result: $CP" >&5 |
3008 | echo "${ECHO_T}$CP" >&6 | |
bd8757b3 | 3009 | else |
53d60c04 KC |
3010 | echo "$as_me:$LINENO: result: no" >&5 |
3011 | echo "${ECHO_T}no" >&6 | |
bd8757b3 APB |
3012 | fi |
3013 | ||
3014 | # Extract the first word of "strip", so it can be a program name with args. | |
3015 | set dummy strip; ac_word=$2 | |
53d60c04 KC |
3016 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3018 | if test "${ac_cv_path_STRIP+set}" = set; then | |
3019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 3020 | else |
53d60c04 KC |
3021 | case $STRIP in |
3022 | [\\/]* | ?:[\\/]*) | |
bd8757b3 APB |
3023 | ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. |
3024 | ;; | |
bd8757b3 | 3025 | *) |
53d60c04 KC |
3026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3027 | as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin" | |
3028 | for as_dir in $as_dummy | |
3029 | do | |
3030 | IFS=$as_save_IFS | |
3031 | test -z "$as_dir" && as_dir=. | |
3032 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3033 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3034 | ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" | |
3035 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3036 | break 2 | |
3037 | fi | |
3038 | done | |
3039 | done | |
3040 | ||
bd8757b3 APB |
3041 | test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP="/usr/bin/strip" |
3042 | ;; | |
3043 | esac | |
3044 | fi | |
53d60c04 KC |
3045 | STRIP=$ac_cv_path_STRIP |
3046 | ||
bd8757b3 | 3047 | if test -n "$STRIP"; then |
53d60c04 KC |
3048 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3049 | echo "${ECHO_T}$STRIP" >&6 | |
bd8757b3 | 3050 | else |
53d60c04 KC |
3051 | echo "$as_me:$LINENO: result: no" >&5 |
3052 | echo "${ECHO_T}no" >&6 | |
bd8757b3 APB |
3053 | fi |
3054 | ||
3055 | # Extract the first word of "chmod", so it can be a program name with args. | |
3056 | set dummy chmod; ac_word=$2 | |
53d60c04 KC |
3057 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3059 | if test "${ac_cv_path_CHMOD+set}" = set; then | |
3060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 3061 | else |
53d60c04 KC |
3062 | case $CHMOD in |
3063 | [\\/]* | ?:[\\/]*) | |
bd8757b3 APB |
3064 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
3065 | ;; | |
bd8757b3 | 3066 | *) |
53d60c04 KC |
3067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3068 | as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin" | |
3069 | for as_dir in $as_dummy | |
3070 | do | |
3071 | IFS=$as_save_IFS | |
3072 | test -z "$as_dir" && as_dir=. | |
3073 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3074 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3075 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" | |
3076 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3077 | break 2 | |
3078 | fi | |
3079 | done | |
3080 | done | |
3081 | ||
bd8757b3 APB |
3082 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="/bin/chmod" |
3083 | ;; | |
3084 | esac | |
3085 | fi | |
53d60c04 | 3086 | CHMOD=$ac_cv_path_CHMOD |
645ca343 | 3087 | |
53d60c04 KC |
3088 | if test -n "$CHMOD"; then |
3089 | echo "$as_me:$LINENO: result: $CHMOD" >&5 | |
3090 | echo "${ECHO_T}$CHMOD" >&6 | |
645ca343 | 3091 | else |
53d60c04 KC |
3092 | echo "$as_me:$LINENO: result: no" >&5 |
3093 | echo "${ECHO_T}no" >&6 | |
645ca343 TT |
3094 | fi |
3095 | ||
645ca343 | 3096 | |
bd8757b3 | 3097 | |
53d60c04 KC |
3098 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3099 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
7a93476d TT |
3100 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
3101 | if test "${enable_maintainer_mode+set}" = set; then | |
3102 | enableval="$enable_maintainer_mode" | |
3103 | USE_MAINTAINER_MODE=$enableval | |
3104 | else | |
3105 | USE_MAINTAINER_MODE=no | |
53d60c04 KC |
3106 | fi; |
3107 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
3108 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
7a93476d | 3109 | |
7a93476d TT |
3110 | |
3111 | if test $USE_MAINTAINER_MODE = yes; then | |
3112 | MAINTAINER_MODE_TRUE= | |
3113 | MAINTAINER_MODE_FALSE='#' | |
3114 | else | |
3115 | MAINTAINER_MODE_TRUE='#' | |
3116 | MAINTAINER_MODE_FALSE= | |
3117 | fi | |
53d60c04 | 3118 | |
7a93476d | 3119 | MAINT=$MAINTAINER_MODE_TRUE |
7a93476d TT |
3120 | |
3121 | ||
53d60c04 KC |
3122 | |
3123 | if test "$GCC" = yes; then | |
3124 | fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings' | |
3125 | fi | |
3126 | ||
3127 | ||
3128 | ||
3129 | ||
3130 | ||
3131 | ||
37729557 KG |
3132 | |
3133 | ||
bd8757b3 | 3134 | ac_header_dirent=no |
53d60c04 KC |
3135 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
3136 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
3137 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3138 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
3139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3141 | else | |
3142 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
3143 | /* confdefs.h. */ |
3144 | _ACEOF | |
3145 | cat confdefs.h >>conftest.$ac_ext | |
3146 | cat >>conftest.$ac_ext <<_ACEOF | |
3147 | /* end confdefs.h. */ | |
bd8757b3 APB |
3148 | #include <sys/types.h> |
3149 | #include <$ac_hdr> | |
53d60c04 KC |
3150 | |
3151 | int | |
3152 | main () | |
3153 | { | |
3154 | if ((DIR *) 0) | |
3155 | return 0; | |
3156 | ; | |
3157 | return 0; | |
3158 | } | |
3159 | _ACEOF | |
3160 | rm -f conftest.$ac_objext | |
3161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 3162 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 3163 | ac_status=$? |
3beb1315 HPN |
3164 | grep -v '^ *+' conftest.er1 >conftest.err |
3165 | rm -f conftest.er1 | |
3166 | cat conftest.err >&5 | |
53d60c04 KC |
3167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3168 | (exit $ac_status); } && | |
79453222 KC |
3169 | { ac_try='test -z "$ac_c_werror_flag" |
3170 | || test ! -s conftest.err' | |
3beb1315 HPN |
3171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3172 | (eval $ac_try) 2>&5 | |
3173 | ac_status=$? | |
3174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3175 | (exit $ac_status); }; } && | |
3176 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
3177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3178 | (eval $ac_try) 2>&5 | |
3179 | ac_status=$? | |
3180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3181 | (exit $ac_status); }; }; then | |
3182 | eval "$as_ac_Header=yes" | |
bd8757b3 | 3183 | else |
53d60c04 KC |
3184 | echo "$as_me: failed program was:" >&5 |
3185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3186 | ||
3187 | eval "$as_ac_Header=no" | |
bd8757b3 | 3188 | fi |
3beb1315 | 3189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bd8757b3 | 3190 | fi |
53d60c04 KC |
3191 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3192 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3193 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3194 | cat >>confdefs.h <<_ACEOF | |
3195 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
3196 | _ACEOF | |
3197 | ||
3198 | ac_header_dirent=$ac_hdr; break | |
bd8757b3 | 3199 | fi |
53d60c04 | 3200 | |
bd8757b3 APB |
3201 | done |
3202 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3203 | if test $ac_header_dirent = dirent.h; then | |
53d60c04 KC |
3204 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3205 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
3206 | if test "${ac_cv_search_opendir+set}" = set; then | |
3207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3208 | else | |
3209 | ac_func_search_save_LIBS=$LIBS | |
3210 | ac_cv_search_opendir=no | |
3211 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
3212 | /* confdefs.h. */ |
3213 | _ACEOF | |
3214 | cat confdefs.h >>conftest.$ac_ext | |
3215 | cat >>conftest.$ac_ext <<_ACEOF | |
3216 | /* end confdefs.h. */ | |
3217 | ||
bd8757b3 | 3218 | /* Override any gcc2 internal prototype to avoid an error. */ |
53d60c04 KC |
3219 | #ifdef __cplusplus |
3220 | extern "C" | |
3221 | #endif | |
bd8757b3 | 3222 | /* We use char because int might match the return type of a gcc2 |
53d60c04 KC |
3223 | builtin and then its argument prototype would still apply. */ |
3224 | char opendir (); | |
3225 | int | |
3226 | main () | |
3227 | { | |
3228 | opendir (); | |
3229 | ; | |
3230 | return 0; | |
3231 | } | |
3232 | _ACEOF | |
3233 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3beb1315 | 3235 | (eval $ac_link) 2>conftest.er1 |
53d60c04 | 3236 | ac_status=$? |
3beb1315 HPN |
3237 | grep -v '^ *+' conftest.er1 >conftest.err |
3238 | rm -f conftest.er1 | |
3239 | cat conftest.err >&5 | |
53d60c04 KC |
3240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3241 | (exit $ac_status); } && | |
79453222 KC |
3242 | { ac_try='test -z "$ac_c_werror_flag" |
3243 | || test ! -s conftest.err' | |
3beb1315 HPN |
3244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3245 | (eval $ac_try) 2>&5 | |
3246 | ac_status=$? | |
3247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3248 | (exit $ac_status); }; } && | |
3249 | { ac_try='test -s conftest$ac_exeext' | |
53d60c04 KC |
3250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3251 | (eval $ac_try) 2>&5 | |
3252 | ac_status=$? | |
3253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3254 | (exit $ac_status); }; }; then | |
3255 | ac_cv_search_opendir="none required" | |
3256 | else | |
3257 | echo "$as_me: failed program was:" >&5 | |
3258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3259 | ||
3260 | fi | |
3beb1315 HPN |
3261 | rm -f conftest.err conftest.$ac_objext \ |
3262 | conftest$ac_exeext conftest.$ac_ext | |
53d60c04 KC |
3263 | if test "$ac_cv_search_opendir" = no; then |
3264 | for ac_lib in dir; do | |
3265 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3266 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
3267 | /* confdefs.h. */ |
3268 | _ACEOF | |
3269 | cat confdefs.h >>conftest.$ac_ext | |
3270 | cat >>conftest.$ac_ext <<_ACEOF | |
3271 | /* end confdefs.h. */ | |
bd8757b3 | 3272 | |
53d60c04 KC |
3273 | /* Override any gcc2 internal prototype to avoid an error. */ |
3274 | #ifdef __cplusplus | |
3275 | extern "C" | |
3276 | #endif | |
3277 | /* We use char because int might match the return type of a gcc2 | |
3278 | builtin and then its argument prototype would still apply. */ | |
3279 | char opendir (); | |
3280 | int | |
3281 | main () | |
3282 | { | |
3283 | opendir (); | |
3284 | ; | |
3285 | return 0; | |
3286 | } | |
3287 | _ACEOF | |
3288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3beb1315 | 3290 | (eval $ac_link) 2>conftest.er1 |
53d60c04 | 3291 | ac_status=$? |
3beb1315 HPN |
3292 | grep -v '^ *+' conftest.er1 >conftest.err |
3293 | rm -f conftest.er1 | |
3294 | cat conftest.err >&5 | |
53d60c04 KC |
3295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3296 | (exit $ac_status); } && | |
79453222 KC |
3297 | { ac_try='test -z "$ac_c_werror_flag" |
3298 | || test ! -s conftest.err' | |
3beb1315 HPN |
3299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3300 | (eval $ac_try) 2>&5 | |
3301 | ac_status=$? | |
3302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3303 | (exit $ac_status); }; } && | |
3304 | { ac_try='test -s conftest$ac_exeext' | |
53d60c04 KC |
3305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3306 | (eval $ac_try) 2>&5 | |
3307 | ac_status=$? | |
3308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3309 | (exit $ac_status); }; }; then | |
3310 | ac_cv_search_opendir="-l$ac_lib" | |
3311 | break | |
bd8757b3 | 3312 | else |
53d60c04 KC |
3313 | echo "$as_me: failed program was:" >&5 |
3314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bd8757b3 APB |
3315 | |
3316 | fi | |
3beb1315 HPN |
3317 | rm -f conftest.err conftest.$ac_objext \ |
3318 | conftest$ac_exeext conftest.$ac_ext | |
53d60c04 KC |
3319 | done |
3320 | fi | |
3321 | LIBS=$ac_func_search_save_LIBS | |
3322 | fi | |
3323 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
3324 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
3325 | if test "$ac_cv_search_opendir" != no; then | |
3326 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
3327 | ||
bd8757b3 APB |
3328 | fi |
3329 | ||
3330 | else | |
53d60c04 KC |
3331 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3332 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
3333 | if test "${ac_cv_search_opendir+set}" = set; then | |
3334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 3335 | else |
53d60c04 KC |
3336 | ac_func_search_save_LIBS=$LIBS |
3337 | ac_cv_search_opendir=no | |
3338 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
3339 | /* confdefs.h. */ |
3340 | _ACEOF | |
3341 | cat confdefs.h >>conftest.$ac_ext | |
3342 | cat >>conftest.$ac_ext <<_ACEOF | |
3343 | /* end confdefs.h. */ | |
3344 | ||
bd8757b3 | 3345 | /* Override any gcc2 internal prototype to avoid an error. */ |
53d60c04 KC |
3346 | #ifdef __cplusplus |
3347 | extern "C" | |
3348 | #endif | |
bd8757b3 | 3349 | /* We use char because int might match the return type of a gcc2 |
53d60c04 KC |
3350 | builtin and then its argument prototype would still apply. */ |
3351 | char opendir (); | |
3352 | int | |
3353 | main () | |
3354 | { | |
3355 | opendir (); | |
3356 | ; | |
3357 | return 0; | |
3358 | } | |
3359 | _ACEOF | |
3360 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3beb1315 | 3362 | (eval $ac_link) 2>conftest.er1 |
53d60c04 | 3363 | ac_status=$? |
3beb1315 HPN |
3364 | grep -v '^ *+' conftest.er1 >conftest.err |
3365 | rm -f conftest.er1 | |
3366 | cat conftest.err >&5 | |
53d60c04 KC |
3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3368 | (exit $ac_status); } && | |
79453222 KC |
3369 | { ac_try='test -z "$ac_c_werror_flag" |
3370 | || test ! -s conftest.err' | |
3beb1315 HPN |
3371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3372 | (eval $ac_try) 2>&5 | |
3373 | ac_status=$? | |
3374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3375 | (exit $ac_status); }; } && | |
3376 | { ac_try='test -s conftest$ac_exeext' | |
53d60c04 KC |
3377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3378 | (eval $ac_try) 2>&5 | |
3379 | ac_status=$? | |
3380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3381 | (exit $ac_status); }; }; then | |
3382 | ac_cv_search_opendir="none required" | |
3383 | else | |
3384 | echo "$as_me: failed program was:" >&5 | |
3385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3386 | ||
3387 | fi | |
3beb1315 HPN |
3388 | rm -f conftest.err conftest.$ac_objext \ |
3389 | conftest$ac_exeext conftest.$ac_ext | |
53d60c04 KC |
3390 | if test "$ac_cv_search_opendir" = no; then |
3391 | for ac_lib in x; do | |
3392 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3393 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
3394 | /* confdefs.h. */ |
3395 | _ACEOF | |
3396 | cat confdefs.h >>conftest.$ac_ext | |
3397 | cat >>conftest.$ac_ext <<_ACEOF | |
3398 | /* end confdefs.h. */ | |
bd8757b3 | 3399 | |
53d60c04 KC |
3400 | /* Override any gcc2 internal prototype to avoid an error. */ |
3401 | #ifdef __cplusplus | |
3402 | extern "C" | |
3403 | #endif | |
3404 | /* We use char because int might match the return type of a gcc2 | |
3405 | builtin and then its argument prototype would still apply. */ | |
3406 | char opendir (); | |
3407 | int | |
3408 | main () | |
3409 | { | |
3410 | opendir (); | |
3411 | ; | |
3412 | return 0; | |
3413 | } | |
3414 | _ACEOF | |
3415 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3beb1315 | 3417 | (eval $ac_link) 2>conftest.er1 |
53d60c04 | 3418 | ac_status=$? |
3beb1315 HPN |
3419 | grep -v '^ *+' conftest.er1 >conftest.err |
3420 | rm -f conftest.er1 | |
3421 | cat conftest.err >&5 | |
53d60c04 KC |
3422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3423 | (exit $ac_status); } && | |
79453222 KC |
3424 | { ac_try='test -z "$ac_c_werror_flag" |
3425 | || test ! -s conftest.err' | |
3beb1315 HPN |
3426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3427 | (eval $ac_try) 2>&5 | |
3428 | ac_status=$? | |
3429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3430 | (exit $ac_status); }; } && | |
3431 | { ac_try='test -s conftest$ac_exeext' | |
53d60c04 KC |
3432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3433 | (eval $ac_try) 2>&5 | |
3434 | ac_status=$? | |
3435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3436 | (exit $ac_status); }; }; then | |
3437 | ac_cv_search_opendir="-l$ac_lib" | |
3438 | break | |
bd8757b3 | 3439 | else |
53d60c04 KC |
3440 | echo "$as_me: failed program was:" >&5 |
3441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bd8757b3 APB |
3442 | |
3443 | fi | |
3beb1315 HPN |
3444 | rm -f conftest.err conftest.$ac_objext \ |
3445 | conftest$ac_exeext conftest.$ac_ext | |
53d60c04 KC |
3446 | done |
3447 | fi | |
3448 | LIBS=$ac_func_search_save_LIBS | |
3449 | fi | |
3450 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
3451 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
3452 | if test "$ac_cv_search_opendir" != no; then | |
3453 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
3454 | ||
bd8757b3 APB |
3455 | fi |
3456 | ||
3457 | fi | |
3458 | ||
53d60c04 KC |
3459 | ac_ext=c |
3460 | ac_cpp='$CPP $CPPFLAGS' | |
3461 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3462 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3463 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3464 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3465 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
bd8757b3 APB |
3466 | # On Suns, sometimes $CPP names a directory. |
3467 | if test -n "$CPP" && test -d "$CPP"; then | |
3468 | CPP= | |
3469 | fi | |
3470 | if test -z "$CPP"; then | |
53d60c04 KC |
3471 | if test "${ac_cv_prog_CPP+set}" = set; then |
3472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 3473 | else |
53d60c04 KC |
3474 | # Double quotes because CPP needs to be expanded |
3475 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3476 | do | |
3477 | ac_preproc_ok=false | |
3478 | for ac_c_preproc_warn_flag in '' yes | |
3479 | do | |
3480 | # Use a header file that comes with gcc, so configuring glibc | |
3481 | # with a fresh cross-compiler works. | |
3482 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3483 | # <limits.h> exists even on freestanding compilers. | |
bd8757b3 | 3484 | # On the NeXT, cc -E runs the code through the compiler's parser, |
53d60c04 KC |
3485 | # not just through cpp. "Syntax error" is here to catch this case. |
3486 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
3487 | /* confdefs.h. */ |
3488 | _ACEOF | |
3489 | cat confdefs.h >>conftest.$ac_ext | |
3490 | cat >>conftest.$ac_ext <<_ACEOF | |
3491 | /* end confdefs.h. */ | |
3492 | #ifdef __STDC__ | |
3493 | # include <limits.h> | |
3494 | #else | |
3495 | # include <assert.h> | |
3496 | #endif | |
3beb1315 | 3497 | Syntax error |
53d60c04 KC |
3498 | _ACEOF |
3499 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3500 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3501 | ac_status=$? | |
3502 | grep -v '^ *+' conftest.er1 >conftest.err | |
3503 | rm -f conftest.er1 | |
3504 | cat conftest.err >&5 | |
3505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3506 | (exit $ac_status); } >/dev/null; then | |
3507 | if test -s conftest.err; then | |
3508 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3beb1315 | 3509 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
53d60c04 KC |
3510 | else |
3511 | ac_cpp_err= | |
3512 | fi | |
bd8757b3 | 3513 | else |
53d60c04 KC |
3514 | ac_cpp_err=yes |
3515 | fi | |
3516 | if test -z "$ac_cpp_err"; then | |
bd8757b3 APB |
3517 | : |
3518 | else | |
53d60c04 KC |
3519 | echo "$as_me: failed program was:" >&5 |
3520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3521 | ||
3522 | # Broken: fails on valid input. | |
3523 | continue | |
3524 | fi | |
3525 | rm -f conftest.err conftest.$ac_ext | |
3526 | ||
3527 | # OK, works on sane cases. Now check whether non-existent headers | |
3528 | # can be detected and how. | |
3529 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
3530 | /* confdefs.h. */ |
3531 | _ACEOF | |
3532 | cat confdefs.h >>conftest.$ac_ext | |
3533 | cat >>conftest.$ac_ext <<_ACEOF | |
3534 | /* end confdefs.h. */ | |
3535 | #include <ac_nonexistent.h> | |
3536 | _ACEOF | |
3537 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3538 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3539 | ac_status=$? | |
3540 | grep -v '^ *+' conftest.er1 >conftest.err | |
3541 | rm -f conftest.er1 | |
3542 | cat conftest.err >&5 | |
3543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3544 | (exit $ac_status); } >/dev/null; then | |
3545 | if test -s conftest.err; then | |
3546 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3beb1315 | 3547 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
53d60c04 KC |
3548 | else |
3549 | ac_cpp_err= | |
3550 | fi | |
bd8757b3 | 3551 | else |
53d60c04 | 3552 | ac_cpp_err=yes |
bd8757b3 | 3553 | fi |
53d60c04 KC |
3554 | if test -z "$ac_cpp_err"; then |
3555 | # Broken: success on invalid input. | |
3556 | continue | |
3557 | else | |
3558 | echo "$as_me: failed program was:" >&5 | |
3559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3560 | ||
3561 | # Passes both tests. | |
3562 | ac_preproc_ok=: | |
3563 | break | |
bd8757b3 | 3564 | fi |
53d60c04 KC |
3565 | rm -f conftest.err conftest.$ac_ext |
3566 | ||
3567 | done | |
3568 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3569 | rm -f conftest.err conftest.$ac_ext | |
3570 | if $ac_preproc_ok; then | |
3571 | break | |
bd8757b3 | 3572 | fi |
53d60c04 KC |
3573 | |
3574 | done | |
3575 | ac_cv_prog_CPP=$CPP | |
3576 | ||
3577 | fi | |
3578 | CPP=$ac_cv_prog_CPP | |
3579 | else | |
3580 | ac_cv_prog_CPP=$CPP | |
3581 | fi | |
3582 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
3583 | echo "${ECHO_T}$CPP" >&6 | |
3584 | ac_preproc_ok=false | |
3585 | for ac_c_preproc_warn_flag in '' yes | |
3586 | do | |
3587 | # Use a header file that comes with gcc, so configuring glibc | |
3588 | # with a fresh cross-compiler works. | |
3589 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3590 | # <limits.h> exists even on freestanding compilers. | |
3591 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3592 | # not just through cpp. "Syntax error" is here to catch this case. | |
3593 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
3594 | /* confdefs.h. */ |
3595 | _ACEOF | |
3596 | cat confdefs.h >>conftest.$ac_ext | |
3597 | cat >>conftest.$ac_ext <<_ACEOF | |
3598 | /* end confdefs.h. */ | |
3599 | #ifdef __STDC__ | |
3600 | # include <limits.h> | |
3601 | #else | |
3602 | # include <assert.h> | |
3603 | #endif | |
3beb1315 | 3604 | Syntax error |
53d60c04 KC |
3605 | _ACEOF |
3606 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3607 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3608 | ac_status=$? | |
3609 | grep -v '^ *+' conftest.er1 >conftest.err | |
3610 | rm -f conftest.er1 | |
3611 | cat conftest.err >&5 | |
3612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3613 | (exit $ac_status); } >/dev/null; then | |
3614 | if test -s conftest.err; then | |
3615 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3beb1315 | 3616 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
53d60c04 KC |
3617 | else |
3618 | ac_cpp_err= | |
3619 | fi | |
3620 | else | |
3621 | ac_cpp_err=yes | |
3622 | fi | |
3623 | if test -z "$ac_cpp_err"; then | |
3624 | : | |
3625 | else | |
3626 | echo "$as_me: failed program was:" >&5 | |
3627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3628 | ||
3629 | # Broken: fails on valid input. | |
3630 | continue | |
3631 | fi | |
3632 | rm -f conftest.err conftest.$ac_ext | |
3633 | ||
3634 | # OK, works on sane cases. Now check whether non-existent headers | |
3635 | # can be detected and how. | |
3636 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
3637 | /* confdefs.h. */ |
3638 | _ACEOF | |
3639 | cat confdefs.h >>conftest.$ac_ext | |
3640 | cat >>conftest.$ac_ext <<_ACEOF | |
3641 | /* end confdefs.h. */ | |
3642 | #include <ac_nonexistent.h> | |
3643 | _ACEOF | |
3644 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3645 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3646 | ac_status=$? | |
3647 | grep -v '^ *+' conftest.er1 >conftest.err | |
3648 | rm -f conftest.er1 | |
3649 | cat conftest.err >&5 | |
3650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3651 | (exit $ac_status); } >/dev/null; then | |
3652 | if test -s conftest.err; then | |
3653 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3beb1315 | 3654 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
53d60c04 KC |
3655 | else |
3656 | ac_cpp_err= | |
3657 | fi | |
3658 | else | |
3659 | ac_cpp_err=yes | |
3660 | fi | |
3661 | if test -z "$ac_cpp_err"; then | |
3662 | # Broken: success on invalid input. | |
3663 | continue | |
3664 | else | |
3665 | echo "$as_me: failed program was:" >&5 | |
3666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3667 | ||
3668 | # Passes both tests. | |
3669 | ac_preproc_ok=: | |
3670 | break | |
bd8757b3 | 3671 | fi |
53d60c04 KC |
3672 | rm -f conftest.err conftest.$ac_ext |
3673 | ||
3674 | done | |
3675 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3676 | rm -f conftest.err conftest.$ac_ext | |
3677 | if $ac_preproc_ok; then | |
3678 | : | |
bd8757b3 | 3679 | else |
53d60c04 KC |
3680 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3681 | See \`config.log' for more details." >&5 | |
3682 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3683 | See \`config.log' for more details." >&2;} | |
3684 | { (exit 1); exit 1; }; } | |
bd8757b3 | 3685 | fi |
bd8757b3 | 3686 | |
53d60c04 KC |
3687 | ac_ext=c |
3688 | ac_cpp='$CPP $CPPFLAGS' | |
3689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3692 | ||
3693 | ||
3694 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3695 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3696 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 3698 | else |
53d60c04 KC |
3699 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3700 | then ac_cv_prog_egrep='grep -E' | |
3701 | else ac_cv_prog_egrep='egrep' | |
3702 | fi | |
3703 | fi | |
3704 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3705 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3706 | EGREP=$ac_cv_prog_egrep | |
3707 | ||
3708 | ||
3709 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3710 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3711 | if test "${ac_cv_header_stdc+set}" = set; then | |
3712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3713 | else | |
3714 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
3715 | /* confdefs.h. */ |
3716 | _ACEOF | |
3717 | cat confdefs.h >>conftest.$ac_ext | |
3718 | cat >>conftest.$ac_ext <<_ACEOF | |
3719 | /* end confdefs.h. */ | |
bd8757b3 APB |
3720 | #include <stdlib.h> |
3721 | #include <stdarg.h> | |
3722 | #include <string.h> | |
3723 | #include <float.h> | |
53d60c04 KC |
3724 | |
3725 | int | |
3726 | main () | |
3727 | { | |
3728 | ||
3729 | ; | |
3730 | return 0; | |
3731 | } | |
3732 | _ACEOF | |
3733 | rm -f conftest.$ac_objext | |
3734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 3735 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 3736 | ac_status=$? |
3beb1315 HPN |
3737 | grep -v '^ *+' conftest.er1 >conftest.err |
3738 | rm -f conftest.er1 | |
3739 | cat conftest.err >&5 | |
53d60c04 KC |
3740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3741 | (exit $ac_status); } && | |
79453222 KC |
3742 | { ac_try='test -z "$ac_c_werror_flag" |
3743 | || test ! -s conftest.err' | |
3beb1315 HPN |
3744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3745 | (eval $ac_try) 2>&5 | |
3746 | ac_status=$? | |
3747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3748 | (exit $ac_status); }; } && | |
3749 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
3750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3751 | (eval $ac_try) 2>&5 | |
3752 | ac_status=$? | |
3753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3754 | (exit $ac_status); }; }; then | |
bd8757b3 APB |
3755 | ac_cv_header_stdc=yes |
3756 | else | |
53d60c04 KC |
3757 | echo "$as_me: failed program was:" >&5 |
3758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3759 | ||
3760 | ac_cv_header_stdc=no | |
bd8757b3 | 3761 | fi |
3beb1315 | 3762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bd8757b3 APB |
3763 | |
3764 | if test $ac_cv_header_stdc = yes; then | |
3765 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
53d60c04 | 3766 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
3767 | /* confdefs.h. */ |
3768 | _ACEOF | |
3769 | cat confdefs.h >>conftest.$ac_ext | |
3770 | cat >>conftest.$ac_ext <<_ACEOF | |
3771 | /* end confdefs.h. */ | |
bd8757b3 | 3772 | #include <string.h> |
53d60c04 KC |
3773 | |
3774 | _ACEOF | |
bd8757b3 | 3775 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
53d60c04 | 3776 | $EGREP "memchr" >/dev/null 2>&1; then |
bd8757b3 APB |
3777 | : |
3778 | else | |
bd8757b3 APB |
3779 | ac_cv_header_stdc=no |
3780 | fi | |
3781 | rm -f conftest* | |
3782 | ||
3783 | fi | |
3784 | ||
3785 | if test $ac_cv_header_stdc = yes; then | |
3786 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
53d60c04 | 3787 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
3788 | /* confdefs.h. */ |
3789 | _ACEOF | |
3790 | cat confdefs.h >>conftest.$ac_ext | |
3791 | cat >>conftest.$ac_ext <<_ACEOF | |
3792 | /* end confdefs.h. */ | |
bd8757b3 | 3793 | #include <stdlib.h> |
53d60c04 KC |
3794 | |
3795 | _ACEOF | |
bd8757b3 | 3796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
53d60c04 | 3797 | $EGREP "free" >/dev/null 2>&1; then |
bd8757b3 APB |
3798 | : |
3799 | else | |
bd8757b3 APB |
3800 | ac_cv_header_stdc=no |
3801 | fi | |
3802 | rm -f conftest* | |
3803 | ||
3804 | fi | |
3805 | ||
3806 | if test $ac_cv_header_stdc = yes; then | |
3807 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
53d60c04 | 3808 | if test "$cross_compiling" = yes; then |
bd8757b3 APB |
3809 | : |
3810 | else | |
53d60c04 | 3811 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
3812 | /* confdefs.h. */ |
3813 | _ACEOF | |
3814 | cat confdefs.h >>conftest.$ac_ext | |
3815 | cat >>conftest.$ac_ext <<_ACEOF | |
3816 | /* end confdefs.h. */ | |
bd8757b3 | 3817 | #include <ctype.h> |
53d60c04 KC |
3818 | #if ((' ' & 0x0FF) == 0x020) |
3819 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3820 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3821 | #else | |
3822 | # define ISLOWER(c) \ | |
3beb1315 HPN |
3823 | (('a' <= (c) && (c) <= 'i') \ |
3824 | || ('j' <= (c) && (c) <= 'r') \ | |
3825 | || ('s' <= (c) && (c) <= 'z')) | |
53d60c04 KC |
3826 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3827 | #endif | |
bd8757b3 | 3828 | |
53d60c04 KC |
3829 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3830 | int | |
3831 | main () | |
3832 | { | |
3833 | int i; | |
3834 | for (i = 0; i < 256; i++) | |
3835 | if (XOR (islower (i), ISLOWER (i)) | |
3beb1315 | 3836 | || toupper (i) != TOUPPER (i)) |
53d60c04 KC |
3837 | exit(2); |
3838 | exit (0); | |
3839 | } | |
3840 | _ACEOF | |
3841 | rm -f conftest$ac_exeext | |
3842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3843 | (eval $ac_link) 2>&5 | |
3844 | ac_status=$? | |
3845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3846 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3848 | (eval $ac_try) 2>&5 | |
3849 | ac_status=$? | |
3850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3851 | (exit $ac_status); }; }; then | |
bd8757b3 APB |
3852 | : |
3853 | else | |
53d60c04 KC |
3854 | echo "$as_me: program exited with status $ac_status" >&5 |
3855 | echo "$as_me: failed program was:" >&5 | |
3856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3857 | ||
3858 | ( exit $ac_status ) | |
3859 | ac_cv_header_stdc=no | |
bd8757b3 | 3860 | fi |
3beb1315 | 3861 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bd8757b3 | 3862 | fi |
bd8757b3 APB |
3863 | fi |
3864 | fi | |
53d60c04 KC |
3865 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3866 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
bd8757b3 | 3867 | if test $ac_cv_header_stdc = yes; then |
53d60c04 KC |
3868 | |
3869 | cat >>confdefs.h <<\_ACEOF | |
bd8757b3 | 3870 | #define STDC_HEADERS 1 |
53d60c04 | 3871 | _ACEOF |
bd8757b3 APB |
3872 | |
3873 | fi | |
3874 | ||
53d60c04 KC |
3875 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
3876 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
3877 | if test "${ac_cv_struct_tm+set}" = set; then | |
3878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 3879 | else |
53d60c04 | 3880 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
3881 | /* confdefs.h. */ |
3882 | _ACEOF | |
3883 | cat confdefs.h >>conftest.$ac_ext | |
3884 | cat >>conftest.$ac_ext <<_ACEOF | |
3885 | /* end confdefs.h. */ | |
bd8757b3 APB |
3886 | #include <sys/types.h> |
3887 | #include <time.h> | |
53d60c04 KC |
3888 | |
3889 | int | |
3890 | main () | |
3891 | { | |
bd8757b3 | 3892 | struct tm *tp; tp->tm_sec; |
53d60c04 KC |
3893 | ; |
3894 | return 0; | |
3895 | } | |
3896 | _ACEOF | |
3897 | rm -f conftest.$ac_objext | |
3898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 3899 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 3900 | ac_status=$? |
3beb1315 HPN |
3901 | grep -v '^ *+' conftest.er1 >conftest.err |
3902 | rm -f conftest.er1 | |
3903 | cat conftest.err >&5 | |
53d60c04 KC |
3904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3905 | (exit $ac_status); } && | |
79453222 KC |
3906 | { ac_try='test -z "$ac_c_werror_flag" |
3907 | || test ! -s conftest.err' | |
3beb1315 HPN |
3908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3909 | (eval $ac_try) 2>&5 | |
3910 | ac_status=$? | |
3911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3912 | (exit $ac_status); }; } && | |
3913 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
3914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3915 | (eval $ac_try) 2>&5 | |
3916 | ac_status=$? | |
3917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3918 | (exit $ac_status); }; }; then | |
bd8757b3 APB |
3919 | ac_cv_struct_tm=time.h |
3920 | else | |
53d60c04 KC |
3921 | echo "$as_me: failed program was:" >&5 |
3922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3923 | ||
3924 | ac_cv_struct_tm=sys/time.h | |
bd8757b3 | 3925 | fi |
3beb1315 | 3926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bd8757b3 | 3927 | fi |
53d60c04 KC |
3928 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
3929 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
bd8757b3 | 3930 | if test $ac_cv_struct_tm = sys/time.h; then |
53d60c04 KC |
3931 | |
3932 | cat >>confdefs.h <<\_ACEOF | |
bd8757b3 | 3933 | #define TM_IN_SYS_TIME 1 |
53d60c04 | 3934 | _ACEOF |
bd8757b3 APB |
3935 | |
3936 | fi | |
3937 | ||
53d60c04 KC |
3938 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3939 | ||
3940 | ||
3941 | ||
3942 | ||
3943 | ||
3944 | ||
3945 | ||
3946 | ||
3947 | ||
3948 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3beb1315 | 3949 | inttypes.h stdint.h unistd.h |
bd8757b3 | 3950 | do |
53d60c04 KC |
3951 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3952 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3953 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3954 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3956 | else | |
3957 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
3958 | /* confdefs.h. */ |
3959 | _ACEOF | |
3960 | cat confdefs.h >>conftest.$ac_ext | |
3961 | cat >>conftest.$ac_ext <<_ACEOF | |
3962 | /* end confdefs.h. */ | |
3963 | $ac_includes_default | |
3964 | ||
3965 | #include <$ac_header> | |
3966 | _ACEOF | |
3967 | rm -f conftest.$ac_objext | |
3968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 3969 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 3970 | ac_status=$? |
3beb1315 HPN |
3971 | grep -v '^ *+' conftest.er1 >conftest.err |
3972 | rm -f conftest.er1 | |
3973 | cat conftest.err >&5 | |
53d60c04 KC |
3974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3975 | (exit $ac_status); } && | |
79453222 KC |
3976 | { ac_try='test -z "$ac_c_werror_flag" |
3977 | || test ! -s conftest.err' | |
3beb1315 HPN |
3978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3979 | (eval $ac_try) 2>&5 | |
3980 | ac_status=$? | |
3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3982 | (exit $ac_status); }; } && | |
3983 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
3984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3985 | (eval $ac_try) 2>&5 | |
3986 | ac_status=$? | |
3987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3988 | (exit $ac_status); }; }; then | |
3989 | eval "$as_ac_Header=yes" | |
3990 | else | |
3991 | echo "$as_me: failed program was:" >&5 | |
3992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3993 | ||
3994 | eval "$as_ac_Header=no" | |
bd8757b3 | 3995 | fi |
3beb1315 | 3996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bd8757b3 | 3997 | fi |
53d60c04 KC |
3998 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3999 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4000 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4001 | cat >>confdefs.h <<_ACEOF | |
4002 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4003 | _ACEOF | |
4004 | ||
4005 | fi | |
4006 | ||
4007 | done | |
4008 | ||
4009 | ||
4010 | ||
4011 | ||
4012 | ||
4013 | ||
4014 | ||
4015 | for ac_header in fcntl.h unistd.h sys/param.h stdlib.h limits.h | |
4016 | do | |
4017 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4018 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4019 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4020 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4021 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4023 | fi | |
4024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4025 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4026 | else | |
4027 | # Is the header compilable? | |
4028 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4029 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4030 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
4031 | /* confdefs.h. */ |
4032 | _ACEOF | |
4033 | cat confdefs.h >>conftest.$ac_ext | |
4034 | cat >>conftest.$ac_ext <<_ACEOF | |
4035 | /* end confdefs.h. */ | |
4036 | $ac_includes_default | |
4037 | #include <$ac_header> | |
4038 | _ACEOF | |
4039 | rm -f conftest.$ac_objext | |
4040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 4041 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 4042 | ac_status=$? |
3beb1315 HPN |
4043 | grep -v '^ *+' conftest.er1 >conftest.err |
4044 | rm -f conftest.er1 | |
4045 | cat conftest.err >&5 | |
53d60c04 KC |
4046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4047 | (exit $ac_status); } && | |
79453222 KC |
4048 | { ac_try='test -z "$ac_c_werror_flag" |
4049 | || test ! -s conftest.err' | |
3beb1315 HPN |
4050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4051 | (eval $ac_try) 2>&5 | |
4052 | ac_status=$? | |
4053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4054 | (exit $ac_status); }; } && | |
4055 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
4056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4057 | (eval $ac_try) 2>&5 | |
4058 | ac_status=$? | |
4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4060 | (exit $ac_status); }; }; then | |
4061 | ac_header_compiler=yes | |
4062 | else | |
4063 | echo "$as_me: failed program was:" >&5 | |
4064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4065 | ||
4066 | ac_header_compiler=no | |
4067 | fi | |
3beb1315 | 4068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
53d60c04 KC |
4069 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4070 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4071 | ||
4072 | # Is the header present? | |
4073 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4074 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4075 | cat >conftest.$ac_ext <<_ACEOF | |
53d60c04 KC |
4076 | /* confdefs.h. */ |
4077 | _ACEOF | |
4078 | cat confdefs.h >>conftest.$ac_ext | |
4079 | cat >>conftest.$ac_ext <<_ACEOF | |
4080 | /* end confdefs.h. */ | |
4081 | #include <$ac_header> | |
4082 | _ACEOF | |
4083 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4084 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4085 | ac_status=$? | |
4086 | grep -v '^ *+' conftest.er1 >conftest.err | |
4087 | rm -f conftest.er1 | |
4088 | cat conftest.err >&5 | |
4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4090 | (exit $ac_status); } >/dev/null; then | |
4091 | if test -s conftest.err; then | |
4092 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3beb1315 | 4093 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
53d60c04 KC |
4094 | else |
4095 | ac_cpp_err= | |
4096 | fi | |
4097 | else | |
4098 | ac_cpp_err=yes | |
4099 | fi | |
4100 | if test -z "$ac_cpp_err"; then | |
4101 | ac_header_preproc=yes | |
4102 | else | |
4103 | echo "$as_me: failed program was:" >&5 | |
4104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4105 | ||
4106 | ac_header_preproc=no | |
4107 | fi | |
4108 | rm -f conftest.err conftest.$ac_ext | |
4109 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4110 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4111 | ||
4112 | # So? What about this header? | |
3beb1315 HPN |
4113 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4114 | yes:no: ) | |
53d60c04 KC |
4115 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4116 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3beb1315 HPN |
4117 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4118 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4119 | ac_header_preproc=yes | |
53d60c04 | 4120 | ;; |
3beb1315 | 4121 | no:yes:* ) |
53d60c04 KC |
4122 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4123 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3beb1315 HPN |
4124 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4125 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4126 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4127 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4128 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4129 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
53d60c04 KC |
4130 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4131 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3beb1315 HPN |
4132 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4133 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
53d60c04 KC |
4134 | ( |
4135 | cat <<\_ASBOX | |
3beb1315 HPN |
4136 | ## ------------------------------------------ ## |
4137 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4138 | ## ------------------------------------------ ## | |
53d60c04 KC |
4139 | _ASBOX |
4140 | ) | | |
4141 | sed "s/^/$as_me: WARNING: /" >&2 | |
4142 | ;; | |
4143 | esac | |
4144 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4145 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4146 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 4148 | else |
3beb1315 | 4149 | eval "$as_ac_Header=\$ac_header_preproc" |
bd8757b3 | 4150 | fi |
53d60c04 KC |
4151 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4152 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4153 | ||
4154 | fi | |
4155 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4156 | cat >>confdefs.h <<_ACEOF | |
4157 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4158 | _ACEOF | |
4159 | ||
4160 | fi | |
4161 | ||
bd8757b3 APB |
4162 | done |
4163 | ||
4164 | ||
fab62285 BM |
4165 | |
4166 | ||
4167 | for ac_func in ftruncate _chsize | |
4168 | do | |
4169 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4170 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4171 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4172 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4174 | else | |
4175 | cat >conftest.$ac_ext <<_ACEOF | |
4176 | /* confdefs.h. */ | |
4177 | _ACEOF | |
4178 | cat confdefs.h >>conftest.$ac_ext | |
4179 | cat >>conftest.$ac_ext <<_ACEOF | |
4180 | /* end confdefs.h. */ | |
4181 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4182 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4183 | #define $ac_func innocuous_$ac_func | |
4184 | ||
4185 | /* System header to define __stub macros and hopefully few prototypes, | |
4186 | which can conflict with char $ac_func (); below. | |
4187 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4188 | <limits.h> exists even on freestanding compilers. */ | |
4189 | ||
4190 | #ifdef __STDC__ | |
4191 | # include <limits.h> | |
4192 | #else | |
4193 | # include <assert.h> | |
4194 | #endif | |
4195 | ||
4196 | #undef $ac_func | |
4197 | ||
4198 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4199 | #ifdef __cplusplus | |
4200 | extern "C" | |
4201 | { | |
4202 | #endif | |
4203 | /* We use char because int might match the return type of a gcc2 | |
4204 | builtin and then its argument prototype would still apply. */ | |
4205 | char $ac_func (); | |
4206 | /* The GNU C library defines this for functions which it implements | |
4207 | to always fail with ENOSYS. Some functions are actually named | |
4208 | something starting with __ and the normal name is an alias. */ | |
4209 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4210 | choke me | |
4211 | #else | |
4212 | char (*f) () = $ac_func; | |
4213 | #endif | |
4214 | #ifdef __cplusplus | |
4215 | } | |
4216 | #endif | |
4217 | ||
4218 | int | |
4219 | main () | |
4220 | { | |
4221 | return f != $ac_func; | |
4222 | ; | |
4223 | return 0; | |
4224 | } | |
4225 | _ACEOF | |
4226 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4227 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4228 | (eval $ac_link) 2>conftest.er1 | |
4229 | ac_status=$? | |
4230 | grep -v '^ *+' conftest.er1 >conftest.err | |
4231 | rm -f conftest.er1 | |
4232 | cat conftest.err >&5 | |
4233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4234 | (exit $ac_status); } && | |
4235 | { ac_try='test -z "$ac_c_werror_flag" | |
4236 | || test ! -s conftest.err' | |
4237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4238 | (eval $ac_try) 2>&5 | |
4239 | ac_status=$? | |
4240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4241 | (exit $ac_status); }; } && | |
4242 | { ac_try='test -s conftest$ac_exeext' | |
4243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4244 | (eval $ac_try) 2>&5 | |
4245 | ac_status=$? | |
4246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4247 | (exit $ac_status); }; }; then | |
4248 | eval "$as_ac_var=yes" | |
4249 | else | |
4250 | echo "$as_me: failed program was:" >&5 | |
4251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4252 | ||
4253 | eval "$as_ac_var=no" | |
4254 | fi | |
4255 | rm -f conftest.err conftest.$ac_objext \ | |
4256 | conftest$ac_exeext conftest.$ac_ext | |
4257 | fi | |
4258 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4259 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4260 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4261 | cat >>confdefs.h <<_ACEOF | |
4262 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4263 | _ACEOF | |
4264 | ||
4265 | fi | |
4266 | done | |
4267 | ||
4268 | ||
53d60c04 KC |
4269 | echo "$as_me:$LINENO: checking for off_t" >&5 |
4270 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
4271 | if test "${ac_cv_type_off_t+set}" = set; then | |
4272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 4273 | else |
53d60c04 | 4274 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
4275 | /* confdefs.h. */ |
4276 | _ACEOF | |
4277 | cat confdefs.h >>conftest.$ac_ext | |
4278 | cat >>conftest.$ac_ext <<_ACEOF | |
4279 | /* end confdefs.h. */ | |
4280 | $ac_includes_default | |
4281 | int | |
4282 | main () | |
4283 | { | |
4284 | if ((off_t *) 0) | |
4285 | return 0; | |
4286 | if (sizeof (off_t)) | |
4287 | return 0; | |
4288 | ; | |
4289 | return 0; | |
4290 | } | |
4291 | _ACEOF | |
4292 | rm -f conftest.$ac_objext | |
4293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 4294 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 4295 | ac_status=$? |
3beb1315 HPN |
4296 | grep -v '^ *+' conftest.er1 >conftest.err |
4297 | rm -f conftest.er1 | |
4298 | cat conftest.err >&5 | |
53d60c04 KC |
4299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4300 | (exit $ac_status); } && | |
79453222 KC |
4301 | { ac_try='test -z "$ac_c_werror_flag" |
4302 | || test ! -s conftest.err' | |
3beb1315 HPN |
4303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4304 | (eval $ac_try) 2>&5 | |
4305 | ac_status=$? | |
4306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4307 | (exit $ac_status); }; } && | |
4308 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
4309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4310 | (eval $ac_try) 2>&5 | |
4311 | ac_status=$? | |
4312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4313 | (exit $ac_status); }; }; then | |
bd8757b3 APB |
4314 | ac_cv_type_off_t=yes |
4315 | else | |
53d60c04 KC |
4316 | echo "$as_me: failed program was:" >&5 |
4317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bd8757b3 | 4318 | |
53d60c04 KC |
4319 | ac_cv_type_off_t=no |
4320 | fi | |
3beb1315 | 4321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bd8757b3 | 4322 | fi |
53d60c04 KC |
4323 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
4324 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
4325 | if test $ac_cv_type_off_t = yes; then | |
4326 | : | |
4327 | else | |
4328 | ||
4329 | cat >>confdefs.h <<_ACEOF | |
bd8757b3 | 4330 | #define off_t long |
53d60c04 | 4331 | _ACEOF |
bd8757b3 APB |
4332 | |
4333 | fi | |
4334 | ||
53d60c04 KC |
4335 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
4336 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
4337 | if test "${ac_cv_struct_tm+set}" = set; then | |
4338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 4339 | else |
53d60c04 | 4340 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
4341 | /* confdefs.h. */ |
4342 | _ACEOF | |
4343 | cat confdefs.h >>conftest.$ac_ext | |
4344 | cat >>conftest.$ac_ext <<_ACEOF | |
4345 | /* end confdefs.h. */ | |
bd8757b3 APB |
4346 | #include <sys/types.h> |
4347 | #include <time.h> | |
53d60c04 KC |
4348 | |
4349 | int | |
4350 | main () | |
4351 | { | |
bd8757b3 | 4352 | struct tm *tp; tp->tm_sec; |
53d60c04 KC |
4353 | ; |
4354 | return 0; | |
4355 | } | |
4356 | _ACEOF | |
4357 | rm -f conftest.$ac_objext | |
4358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 4359 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 4360 | ac_status=$? |
3beb1315 HPN |
4361 | grep -v '^ *+' conftest.er1 >conftest.err |
4362 | rm -f conftest.er1 | |
4363 | cat conftest.err >&5 | |
53d60c04 KC |
4364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4365 | (exit $ac_status); } && | |
79453222 KC |
4366 | { ac_try='test -z "$ac_c_werror_flag" |
4367 | || test ! -s conftest.err' | |
3beb1315 HPN |
4368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4369 | (eval $ac_try) 2>&5 | |
4370 | ac_status=$? | |
4371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4372 | (exit $ac_status); }; } && | |
4373 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
4374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4375 | (eval $ac_try) 2>&5 | |
4376 | ac_status=$? | |
4377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4378 | (exit $ac_status); }; }; then | |
bd8757b3 APB |
4379 | ac_cv_struct_tm=time.h |
4380 | else | |
53d60c04 KC |
4381 | echo "$as_me: failed program was:" >&5 |
4382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4383 | ||
4384 | ac_cv_struct_tm=sys/time.h | |
bd8757b3 | 4385 | fi |
3beb1315 | 4386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bd8757b3 | 4387 | fi |
53d60c04 KC |
4388 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
4389 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
bd8757b3 | 4390 | if test $ac_cv_struct_tm = sys/time.h; then |
53d60c04 KC |
4391 | |
4392 | cat >>confdefs.h <<\_ACEOF | |
bd8757b3 | 4393 | #define TM_IN_SYS_TIME 1 |
53d60c04 | 4394 | _ACEOF |
bd8757b3 APB |
4395 | |
4396 | fi | |
4397 | ||
4398 | ||
b4258f06 | 4399 | # mkdir takes a single argument on some systems. |
53d60c04 KC |
4400 | echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5 |
4401 | echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6 | |
4402 | if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then | |
4403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b4258f06 | 4404 | else |
53d60c04 | 4405 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
4406 | /* confdefs.h. */ |
4407 | _ACEOF | |
4408 | cat confdefs.h >>conftest.$ac_ext | |
4409 | cat >>conftest.$ac_ext <<_ACEOF | |
4410 | /* end confdefs.h. */ | |
b4258f06 RM |
4411 | |
4412 | #include <sys/types.h> | |
4413 | #ifdef HAVE_SYS_STAT_H | |
4414 | # include <sys/stat.h> | |
4415 | #endif | |
4416 | #ifdef HAVE_UNISTD_H | |
4417 | # include <unistd.h> | |
4418 | #endif | |
4419 | #ifdef HAVE_DIRECT_H | |
4420 | # include <direct.h> | |
4421 | #endif | |
53d60c04 KC |
4422 | int |
4423 | main () | |
4424 | { | |
b4258f06 | 4425 | mkdir ("foo", 0); |
53d60c04 KC |
4426 | ; |
4427 | return 0; | |
4428 | } | |
4429 | _ACEOF | |
4430 | rm -f conftest.$ac_objext | |
4431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 4432 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 4433 | ac_status=$? |
3beb1315 HPN |
4434 | grep -v '^ *+' conftest.er1 >conftest.err |
4435 | rm -f conftest.er1 | |
4436 | cat conftest.err >&5 | |
53d60c04 KC |
4437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4438 | (exit $ac_status); } && | |
79453222 KC |
4439 | { ac_try='test -z "$ac_c_werror_flag" |
4440 | || test ! -s conftest.err' | |
3beb1315 HPN |
4441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4442 | (eval $ac_try) 2>&5 | |
4443 | ac_status=$? | |
4444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4445 | (exit $ac_status); }; } && | |
4446 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
4447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4448 | (eval $ac_try) 2>&5 | |
4449 | ac_status=$? | |
4450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4451 | (exit $ac_status); }; }; then | |
b4258f06 RM |
4452 | gcc_cv_mkdir_takes_one_arg=no |
4453 | else | |
53d60c04 KC |
4454 | echo "$as_me: failed program was:" >&5 |
4455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4456 | ||
4457 | gcc_cv_mkdir_takes_one_arg=yes | |
b4258f06 | 4458 | fi |
3beb1315 | 4459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b4258f06 | 4460 | fi |
53d60c04 KC |
4461 | echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5 |
4462 | echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6 | |
b4258f06 | 4463 | if test $gcc_cv_mkdir_takes_one_arg = yes ; then |
53d60c04 KC |
4464 | |
4465 | cat >>confdefs.h <<\_ACEOF | |
b4258f06 | 4466 | #define MKDIR_TAKES_ONE_ARG 1 |
53d60c04 | 4467 | _ACEOF |
b4258f06 RM |
4468 | |
4469 | fi | |
4470 | ||
4471 | ||
53d60c04 KC |
4472 | echo "$as_me:$LINENO: checking size of char" >&5 |
4473 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
4474 | if test "${ac_cv_sizeof_char+set}" = set; then | |
4475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 4476 | else |
4977bab6 | 4477 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. |
53d60c04 | 4478 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
4479 | /* confdefs.h. */ |
4480 | _ACEOF | |
4481 | cat confdefs.h >>conftest.$ac_ext | |
4482 | cat >>conftest.$ac_ext <<_ACEOF | |
4483 | /* end confdefs.h. */ | |
bd8757b3 | 4484 | #include "confdefs.h" |
824030c6 GK |
4485 | #include <sys/types.h> |
4486 | ||
4487 | ||
53d60c04 KC |
4488 | int |
4489 | main () | |
4490 | { | |
824030c6 | 4491 | switch (0) case 0: case (sizeof (char) == $ac_size):; |
53d60c04 KC |
4492 | ; |
4493 | return 0; | |
4494 | } | |
4495 | _ACEOF | |
4496 | rm -f conftest.$ac_objext | |
4497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 4498 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 4499 | ac_status=$? |
3beb1315 HPN |
4500 | grep -v '^ *+' conftest.er1 >conftest.err |
4501 | rm -f conftest.er1 | |
4502 | cat conftest.err >&5 | |
53d60c04 KC |
4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4504 | (exit $ac_status); } && | |
79453222 KC |
4505 | { ac_try='test -z "$ac_c_werror_flag" |
4506 | || test ! -s conftest.err' | |
3beb1315 HPN |
4507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4508 | (eval $ac_try) 2>&5 | |
4509 | ac_status=$? | |
4510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4511 | (exit $ac_status); }; } && | |
4512 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
4513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4514 | (eval $ac_try) 2>&5 | |
4515 | ac_status=$? | |
4516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4517 | (exit $ac_status); }; }; then | |
824030c6 | 4518 | ac_cv_sizeof_char=$ac_size |
bd8757b3 | 4519 | else |
53d60c04 KC |
4520 | echo "$as_me: failed program was:" >&5 |
4521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4522 | ||
bd8757b3 | 4523 | fi |
3beb1315 | 4524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
824030c6 GK |
4525 | if test x$ac_cv_sizeof_char != x ; then break; fi |
4526 | done | |
4527 | ||
bd8757b3 APB |
4528 | fi |
4529 | ||
824030c6 | 4530 | if test x$ac_cv_sizeof_char = x ; then |
53d60c04 KC |
4531 | { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5 |
4532 | echo "$as_me: error: cannot determine a size for char" >&2;} | |
4533 | { (exit 1); exit 1; }; } | |
bd8757b3 | 4534 | fi |
53d60c04 KC |
4535 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
4536 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
4537 | ||
4538 | cat >>confdefs.h <<_ACEOF | |
bd8757b3 | 4539 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
53d60c04 | 4540 | _ACEOF |
bd8757b3 APB |
4541 | |
4542 | ||
53d60c04 KC |
4543 | echo "$as_me:$LINENO: checking size of short" >&5 |
4544 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
4545 | if test "${ac_cv_sizeof_short+set}" = set; then | |
4546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 4547 | else |
4977bab6 | 4548 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. |
53d60c04 | 4549 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
4550 | /* confdefs.h. */ |
4551 | _ACEOF | |
4552 | cat confdefs.h >>conftest.$ac_ext | |
4553 | cat >>conftest.$ac_ext <<_ACEOF | |
4554 | /* end confdefs.h. */ | |
bd8757b3 | 4555 | #include "confdefs.h" |
824030c6 GK |
4556 | #include <sys/types.h> |
4557 | ||
4558 | ||
53d60c04 KC |
4559 | int |
4560 | main () | |
4561 | { | |
824030c6 | 4562 | switch (0) case 0: case (sizeof (short) == $ac_size):; |
53d60c04 KC |
4563 | ; |
4564 | return 0; | |
4565 | } | |
4566 | _ACEOF | |
4567 | rm -f conftest.$ac_objext | |
4568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 4569 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 4570 | ac_status=$? |
3beb1315 HPN |
4571 | grep -v '^ *+' conftest.er1 >conftest.err |
4572 | rm -f conftest.er1 | |
4573 | cat conftest.err >&5 | |
53d60c04 KC |
4574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4575 | (exit $ac_status); } && | |
79453222 KC |
4576 | { ac_try='test -z "$ac_c_werror_flag" |
4577 | || test ! -s conftest.err' | |
3beb1315 HPN |
4578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4579 | (eval $ac_try) 2>&5 | |
4580 | ac_status=$? | |
4581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4582 | (exit $ac_status); }; } && | |
4583 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
4584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4585 | (eval $ac_try) 2>&5 | |
4586 | ac_status=$? | |
4587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4588 | (exit $ac_status); }; }; then | |
824030c6 | 4589 | ac_cv_sizeof_short=$ac_size |
bd8757b3 | 4590 | else |
53d60c04 KC |
4591 | echo "$as_me: failed program was:" >&5 |
4592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4593 | ||
bd8757b3 | 4594 | fi |
3beb1315 | 4595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
824030c6 GK |
4596 | if test x$ac_cv_sizeof_short != x ; then break; fi |
4597 | done | |
4598 | ||
bd8757b3 APB |
4599 | fi |
4600 | ||
824030c6 | 4601 | if test x$ac_cv_sizeof_short = x ; then |
53d60c04 KC |
4602 | { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5 |
4603 | echo "$as_me: error: cannot determine a size for short" >&2;} | |
4604 | { (exit 1); exit 1; }; } | |
bd8757b3 | 4605 | fi |
53d60c04 KC |
4606 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
4607 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
4608 | ||
4609 | cat >>confdefs.h <<_ACEOF | |
bd8757b3 | 4610 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
53d60c04 | 4611 | _ACEOF |
bd8757b3 APB |
4612 | |
4613 | ||
53d60c04 KC |
4614 | echo "$as_me:$LINENO: checking size of int" >&5 |
4615 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
4616 | if test "${ac_cv_sizeof_int+set}" = set; then | |
4617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 4618 | else |
4977bab6 | 4619 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. |
53d60c04 | 4620 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
4621 | /* confdefs.h. */ |
4622 | _ACEOF | |
4623 | cat confdefs.h >>conftest.$ac_ext | |
4624 | cat >>conftest.$ac_ext <<_ACEOF | |
4625 | /* end confdefs.h. */ | |
bd8757b3 | 4626 | #include "confdefs.h" |
824030c6 GK |
4627 | #include <sys/types.h> |
4628 | ||
4629 | ||
53d60c04 KC |
4630 | int |
4631 | main () | |
4632 | { | |
824030c6 | 4633 | switch (0) case 0: case (sizeof (int) == $ac_size):; |
53d60c04 KC |
4634 | ; |
4635 | return 0; | |
4636 | } | |
4637 | _ACEOF | |
4638 | rm -f conftest.$ac_objext | |
4639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 4640 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 4641 | ac_status=$? |
3beb1315 HPN |
4642 | grep -v '^ *+' conftest.er1 >conftest.err |
4643 | rm -f conftest.er1 | |
4644 | cat conftest.err >&5 | |
53d60c04 KC |
4645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4646 | (exit $ac_status); } && | |
79453222 KC |
4647 | { ac_try='test -z "$ac_c_werror_flag" |
4648 | || test ! -s conftest.err' | |
3beb1315 HPN |
4649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4650 | (eval $ac_try) 2>&5 | |
4651 | ac_status=$? | |
4652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4653 | (exit $ac_status); }; } && | |
4654 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
4655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4656 | (eval $ac_try) 2>&5 | |
4657 | ac_status=$? | |
4658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4659 | (exit $ac_status); }; }; then | |
824030c6 | 4660 | ac_cv_sizeof_int=$ac_size |
bd8757b3 | 4661 | else |
53d60c04 KC |
4662 | echo "$as_me: failed program was:" >&5 |
4663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4664 | ||
bd8757b3 | 4665 | fi |
3beb1315 | 4666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
824030c6 GK |
4667 | if test x$ac_cv_sizeof_int != x ; then break; fi |
4668 | done | |
4669 | ||
bd8757b3 APB |
4670 | fi |
4671 | ||
824030c6 | 4672 | if test x$ac_cv_sizeof_int = x ; then |
53d60c04 KC |
4673 | { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5 |
4674 | echo "$as_me: error: cannot determine a size for int" >&2;} | |
4675 | { (exit 1); exit 1; }; } | |
bd8757b3 | 4676 | fi |
53d60c04 KC |
4677 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
4678 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
4679 | ||
4680 | cat >>confdefs.h <<_ACEOF | |
bd8757b3 | 4681 | #define SIZEOF_INT $ac_cv_sizeof_int |
53d60c04 | 4682 | _ACEOF |
bd8757b3 APB |
4683 | |
4684 | ||
53d60c04 KC |
4685 | echo "$as_me:$LINENO: checking size of long" >&5 |
4686 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
4687 | if test "${ac_cv_sizeof_long+set}" = set; then | |
4688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 4689 | else |
4977bab6 | 4690 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. |
53d60c04 | 4691 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
4692 | /* confdefs.h. */ |
4693 | _ACEOF | |
4694 | cat confdefs.h >>conftest.$ac_ext | |
4695 | cat >>conftest.$ac_ext <<_ACEOF | |
4696 | /* end confdefs.h. */ | |
bd8757b3 | 4697 | #include "confdefs.h" |
824030c6 GK |
4698 | #include <sys/types.h> |
4699 | ||
4700 | ||
53d60c04 KC |
4701 | int |
4702 | main () | |
4703 | { | |
824030c6 | 4704 | switch (0) case 0: case (sizeof (long) == $ac_size):; |
53d60c04 KC |
4705 | ; |
4706 | return 0; | |
4707 | } | |
4708 | _ACEOF | |
4709 | rm -f conftest.$ac_objext | |
4710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 4711 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 4712 | ac_status=$? |
3beb1315 HPN |
4713 | grep -v '^ *+' conftest.er1 >conftest.err |
4714 | rm -f conftest.er1 | |
4715 | cat conftest.err >&5 | |
53d60c04 KC |
4716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4717 | (exit $ac_status); } && | |
79453222 KC |
4718 | { ac_try='test -z "$ac_c_werror_flag" |
4719 | || test ! -s conftest.err' | |
3beb1315 HPN |
4720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4721 | (eval $ac_try) 2>&5 | |
4722 | ac_status=$? | |
4723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4724 | (exit $ac_status); }; } && | |
4725 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
4726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4727 | (eval $ac_try) 2>&5 | |
4728 | ac_status=$? | |
4729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4730 | (exit $ac_status); }; }; then | |
824030c6 | 4731 | ac_cv_sizeof_long=$ac_size |
bd8757b3 | 4732 | else |
53d60c04 KC |
4733 | echo "$as_me: failed program was:" >&5 |
4734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4735 | ||
bd8757b3 | 4736 | fi |
3beb1315 | 4737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
824030c6 GK |
4738 | if test x$ac_cv_sizeof_long != x ; then break; fi |
4739 | done | |
4740 | ||
bd8757b3 APB |
4741 | fi |
4742 | ||
824030c6 | 4743 | if test x$ac_cv_sizeof_long = x ; then |
53d60c04 KC |
4744 | { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5 |
4745 | echo "$as_me: error: cannot determine a size for long" >&2;} | |
4746 | { (exit 1); exit 1; }; } | |
bd8757b3 | 4747 | fi |
53d60c04 KC |
4748 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
4749 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
4750 | ||
4751 | cat >>confdefs.h <<_ACEOF | |
bd8757b3 | 4752 | #define SIZEOF_LONG $ac_cv_sizeof_long |
53d60c04 | 4753 | _ACEOF |
bd8757b3 APB |
4754 | |
4755 | ||
79453222 KC |
4756 | echo "$as_me:$LINENO: checking for long long" >&5 |
4757 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
4758 | if test "${ac_cv_type_long_long+set}" = set; then | |
4759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4760 | else | |
4761 | cat >conftest.$ac_ext <<_ACEOF | |
4762 | /* confdefs.h. */ | |
4763 | _ACEOF | |
4764 | cat confdefs.h >>conftest.$ac_ext | |
4765 | cat >>conftest.$ac_ext <<_ACEOF | |
4766 | /* end confdefs.h. */ | |
4767 | $ac_includes_default | |
4768 | int | |
4769 | main () | |
4770 | { | |
4771 | if ((long long *) 0) | |
4772 | return 0; | |
4773 | if (sizeof (long long)) | |
4774 | return 0; | |
4775 | ; | |
4776 | return 0; | |
4777 | } | |
4778 | _ACEOF | |
4779 | rm -f conftest.$ac_objext | |
4780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4781 | (eval $ac_compile) 2>conftest.er1 | |
4782 | ac_status=$? | |
4783 | grep -v '^ *+' conftest.er1 >conftest.err | |
4784 | rm -f conftest.er1 | |
4785 | cat conftest.err >&5 | |
4786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4787 | (exit $ac_status); } && | |
4788 | { ac_try='test -z "$ac_c_werror_flag" | |
4789 | || test ! -s conftest.err' | |
4790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4791 | (eval $ac_try) 2>&5 | |
4792 | ac_status=$? | |
4793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4794 | (exit $ac_status); }; } && | |
4795 | { ac_try='test -s conftest.$ac_objext' | |
4796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4797 | (eval $ac_try) 2>&5 | |
4798 | ac_status=$? | |
4799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4800 | (exit $ac_status); }; }; then | |
4801 | ac_cv_type_long_long=yes | |
4802 | else | |
4803 | echo "$as_me: failed program was:" >&5 | |
4804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4805 | ||
4806 | ac_cv_type_long_long=no | |
4807 | fi | |
4808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4809 | fi | |
4810 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
4811 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
4812 | if test $ac_cv_type_long_long = yes; then | |
4813 | ||
4814 | cat >>confdefs.h <<_ACEOF | |
4815 | #define HAVE_LONG_LONG 1 | |
4816 | _ACEOF | |
4817 | ||
53d60c04 KC |
4818 | echo "$as_me:$LINENO: checking size of long long" >&5 |
4819 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
4820 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
4821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 4822 | else |
4977bab6 | 4823 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. |
53d60c04 | 4824 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
4825 | /* confdefs.h. */ |
4826 | _ACEOF | |
4827 | cat confdefs.h >>conftest.$ac_ext | |
4828 | cat >>conftest.$ac_ext <<_ACEOF | |
4829 | /* end confdefs.h. */ | |
bd8757b3 | 4830 | #include "confdefs.h" |
824030c6 GK |
4831 | #include <sys/types.h> |
4832 | ||
4833 | ||
53d60c04 KC |
4834 | int |
4835 | main () | |
4836 | { | |
824030c6 | 4837 | switch (0) case 0: case (sizeof (long long) == $ac_size):; |
53d60c04 KC |
4838 | ; |
4839 | return 0; | |
4840 | } | |
4841 | _ACEOF | |
4842 | rm -f conftest.$ac_objext | |
4843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 4844 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 4845 | ac_status=$? |
3beb1315 HPN |
4846 | grep -v '^ *+' conftest.er1 >conftest.err |
4847 | rm -f conftest.er1 | |
4848 | cat conftest.err >&5 | |
53d60c04 KC |
4849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4850 | (exit $ac_status); } && | |
79453222 KC |
4851 | { ac_try='test -z "$ac_c_werror_flag" |
4852 | || test ! -s conftest.err' | |
3beb1315 HPN |
4853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4854 | (eval $ac_try) 2>&5 | |
4855 | ac_status=$? | |
4856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4857 | (exit $ac_status); }; } && | |
4858 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
4859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4860 | (eval $ac_try) 2>&5 | |
4861 | ac_status=$? | |
4862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4863 | (exit $ac_status); }; }; then | |
824030c6 | 4864 | ac_cv_sizeof_long_long=$ac_size |
bd8757b3 | 4865 | else |
53d60c04 KC |
4866 | echo "$as_me: failed program was:" >&5 |
4867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4868 | ||
bd8757b3 | 4869 | fi |
3beb1315 | 4870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
824030c6 GK |
4871 | if test x$ac_cv_sizeof_long_long != x ; then break; fi |
4872 | done | |
4873 | ||
bd8757b3 APB |
4874 | fi |
4875 | ||
824030c6 | 4876 | if test x$ac_cv_sizeof_long_long = x ; then |
53d60c04 KC |
4877 | { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5 |
4878 | echo "$as_me: error: cannot determine a size for long long" >&2;} | |
4879 | { (exit 1); exit 1; }; } | |
bd8757b3 | 4880 | fi |
53d60c04 KC |
4881 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
4882 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
4883 | ||
4884 | cat >>confdefs.h <<_ACEOF | |
bd8757b3 | 4885 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
53d60c04 | 4886 | _ACEOF |
bd8757b3 APB |
4887 | |
4888 | ||
79453222 KC |
4889 | fi |
4890 | ||
bd8757b3 | 4891 | |
53d60c04 KC |
4892 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
4893 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
4894 | if test "${ac_cv_c_bigendian+set}" = set; then | |
4895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bd8757b3 | 4896 | else |
4977bab6 ZW |
4897 | ac_cv_c_bigendian=unknown |
4898 | # See if sys/param.h defines the BYTE_ORDER macro. | |
53d60c04 | 4899 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
4900 | /* confdefs.h. */ |
4901 | _ACEOF | |
4902 | cat confdefs.h >>conftest.$ac_ext | |
4903 | cat >>conftest.$ac_ext <<_ACEOF | |
4904 | /* end confdefs.h. */ | |
4977bab6 ZW |
4905 | #include <sys/types.h> |
4906 | #include <sys/param.h> | |
53d60c04 KC |
4907 | int |
4908 | main () | |
4909 | { | |
bd8757b3 | 4910 | |
4977bab6 ZW |
4911 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
4912 | bogus endian macros | |
bd8757b3 | 4913 | #endif |
53d60c04 KC |
4914 | ; |
4915 | return 0; | |
4916 | } | |
4917 | _ACEOF | |
4918 | rm -f conftest.$ac_objext | |
4919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 4920 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 4921 | ac_status=$? |
3beb1315 HPN |
4922 | grep -v '^ *+' conftest.er1 >conftest.err |
4923 | rm -f conftest.er1 | |
4924 | cat conftest.err >&5 | |
53d60c04 KC |
4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4926 | (exit $ac_status); } && | |
79453222 KC |
4927 | { ac_try='test -z "$ac_c_werror_flag" |
4928 | || test ! -s conftest.err' | |
3beb1315 HPN |
4929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4930 | (eval $ac_try) 2>&5 | |
4931 | ac_status=$? | |
4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4933 | (exit $ac_status); }; } && | |
4934 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
4935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4936 | (eval $ac_try) 2>&5 | |
4937 | ac_status=$? | |
4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4939 | (exit $ac_status); }; }; then | |
4977bab6 | 4940 | # It does; now see whether it defined to BIG_ENDIAN or not. |
53d60c04 | 4941 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
4942 | /* confdefs.h. */ |
4943 | _ACEOF | |
4944 | cat confdefs.h >>conftest.$ac_ext | |
4945 | cat >>conftest.$ac_ext <<_ACEOF | |
4946 | /* end confdefs.h. */ | |
4977bab6 ZW |
4947 | #include <sys/types.h> |
4948 | #include <sys/param.h> | |
53d60c04 KC |
4949 | int |
4950 | main () | |
4951 | { | |
4977bab6 ZW |
4952 | |
4953 | #if BYTE_ORDER != BIG_ENDIAN | |
4954 | not big endian | |
824030c6 | 4955 | #endif |
53d60c04 KC |
4956 | ; |
4957 | return 0; | |
4958 | } | |
4959 | _ACEOF | |
4960 | rm -f conftest.$ac_objext | |
4961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3beb1315 | 4962 | (eval $ac_compile) 2>conftest.er1 |
53d60c04 | 4963 | ac_status=$? |
3beb1315 HPN |
4964 | grep -v '^ *+' conftest.er1 >conftest.err |
4965 | rm -f conftest.er1 | |
4966 | cat conftest.err >&5 | |
53d60c04 KC |
4967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4968 | (exit $ac_status); } && | |
79453222 KC |
4969 | { ac_try='test -z "$ac_c_werror_flag" |
4970 | || test ! -s conftest.err' | |
3beb1315 HPN |
4971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4972 | (eval $ac_try) 2>&5 | |
4973 | ac_status=$? | |
4974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4975 | (exit $ac_status); }; } && | |
4976 | { ac_try='test -s conftest.$ac_objext' | |
53d60c04 KC |
4977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4978 | (eval $ac_try) 2>&5 | |
4979 | ac_status=$? | |
4980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4981 | (exit $ac_status); }; }; then | |
4977bab6 ZW |
4982 | ac_cv_c_bigendian=yes |
4983 | else | |
53d60c04 KC |
4984 | echo "$as_me: failed program was:" >&5 |
4985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4986 | ||
4987 | ac_cv_c_bigendian=no | |
4977bab6 | 4988 | fi |
3beb1315 | 4989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4977bab6 | 4990 | else |
53d60c04 KC |
4991 | echo "$as_me: failed program was:" >&5 |
4992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4993 | ||
4977bab6 | 4994 | fi |
3beb1315 | 4995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4977bab6 ZW |
4996 | if test $ac_cv_c_bigendian = unknown; then |
4997 | if test "$cross_compiling" = yes; then | |
53d60c04 | 4998 | echo $ac_n "cross-compiling... " 2>&6 |
4977bab6 | 4999 | else |
53d60c04 | 5000 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
5001 | /* confdefs.h. */ |
5002 | _ACEOF | |
5003 | cat confdefs.h >>conftest.$ac_ext | |
5004 | cat >>conftest.$ac_ext <<_ACEOF | |
5005 | /* end confdefs.h. */ | |
4977bab6 ZW |
5006 | main () { |
5007 | /* Are we little or big endian? From Harbison&Steele. */ | |
5008 | union | |
5009 | { | |
5010 | long l; | |
5011 | char c[sizeof (long)]; | |
5012 | } u; | |
5013 | u.l = 1; | |
5014 | exit (u.c[sizeof (long) - 1] == 1); | |
5015 | } | |
53d60c04 KC |
5016 | _ACEOF |
5017 | rm -f conftest$ac_exeext | |
5018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5019 | (eval $ac_link) 2>&5 | |
5020 | ac_status=$? | |
5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5022 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5024 | (eval $ac_try) 2>&5 | |
5025 | ac_status=$? | |
5026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5027 | (exit $ac_status); }; }; then | |
4977bab6 ZW |
5028 | ac_cv_c_bigendian=no |
5029 | else | |
53d60c04 KC |
5030 | echo "$as_me: program exited with status $ac_status" >&5 |
5031 | echo "$as_me: failed program was:" >&5 | |
5032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5033 | ||
5034 | ( exit $ac_status ) | |
5035 | ac_cv_c_bigendian=yes | |
4977bab6 | 5036 | fi |
3beb1315 | 5037 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bd8757b3 | 5038 | fi |
4977bab6 ZW |
5039 | fi |
5040 | fi | |
53d60c04 KC |
5041 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
5042 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
4977bab6 | 5043 | if test $ac_cv_c_bigendian = unknown; then |
53d60c04 KC |
5044 | echo "$as_me:$LINENO: checking to probe for byte ordering" >&5 |
5045 | echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6 | |
4977bab6 ZW |
5046 | |
5047 | cat >conftest.c <<EOF | |
5048 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5049 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5050 | void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; } | |
5051 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5052 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5053 | void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; } | |
5054 | int main() { _ascii (); _ebcdic (); return 0; } | |
5055 | EOF | |
5056 | if test -f conftest.c ; then | |
3beb1315 | 5057 | if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then |
4977bab6 ZW |
5058 | if test `grep -l BIGenDianSyS conftest.o` ; then |
5059 | echo $ac_n ' big endian probe OK, ' 1>&6 | |
5060 | ac_cv_c_bigendian=yes | |
5061 | fi | |
5062 | if test `grep -l LiTTleEnDian conftest.o` ; then | |
5063 | echo $ac_n ' little endian probe OK, ' 1>&6 | |
5064 | if test $ac_cv_c_bigendian = yes ; then | |
5065 | ac_cv_c_bigendian=unknown; | |
5066 | else | |
5067 | ac_cv_c_bigendian=no | |
5068 | fi | |
5069 | fi | |
5070 | echo $ac_n 'guessing bigendian ... ' >&6 | |
5071 | fi | |
5072 | fi | |
53d60c04 KC |
5073 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
5074 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
bd8757b3 | 5075 | fi |
4977bab6 | 5076 | if test $ac_cv_c_bigendian = yes; then |
53d60c04 KC |
5077 | |
5078 | cat >>confdefs.h <<\_ACEOF | |
4977bab6 | 5079 | #define WORDS_BIGENDIAN 1 |
53d60c04 | 5080 | _ACEOF |
bd8757b3 | 5081 | |
53d60c04 KC |
5082 | |
5083 | cat >>confdefs.h <<\_ACEOF | |
4977bab6 | 5084 | #define HOST_WORDS_BIG_ENDIAN 1 |
53d60c04 | 5085 | _ACEOF |
4977bab6 ZW |
5086 | |
5087 | BYTEORDER=4321 | |
5088 | else | |
5089 | BYTEORDER=1234 | |
5090 | fi | |
53d60c04 KC |
5091 | |
5092 | cat >>confdefs.h <<_ACEOF | |
4977bab6 | 5093 | #define BYTEORDER $BYTEORDER |
53d60c04 | 5094 | _ACEOF |
bd8757b3 | 5095 | |
4977bab6 | 5096 | if test $ac_cv_c_bigendian = unknown; then |
3beb1315 HPN |
5097 | { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5 |
5098 | echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;} | |
5099 | { (exit 1); exit 1; }; } | |
bd8757b3 APB |
5100 | fi |
5101 | ||
5102 | ||
53d60c04 | 5103 | |
d475215a TT |
5104 | # Check whether --with-system-zlib or --without-system-zlib was given. |
5105 | if test "${with_system_zlib+set}" = set; then | |
5106 | withval="$with_system_zlib" | |
d475215a | 5107 | |
53d60c04 | 5108 | fi; |
d475215a TT |
5109 | |
5110 | ZLIBS= | |
5111 | ZDEPS= | |
5112 | ZINCS= | |
5113 | use_zlib=maybe | |
5114 | if test "$with_system_zlib" = yes; then | |
53d60c04 KC |
5115 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
5116 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
5117 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
5118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d475215a | 5119 | else |
53d60c04 | 5120 | ac_check_lib_save_LIBS=$LIBS |
d475215a | 5121 | LIBS="-lz $LIBS" |
53d60c04 | 5122 | cat >conftest.$ac_ext <<_ACEOF |
53d60c04 KC |
5123 | /* confdefs.h. */ |
5124 | _ACEOF | |
5125 | cat confdefs.h >>conftest.$ac_ext | |
5126 | cat >>conftest.$ac_ext <<_ACEOF | |
5127 | /* end confdefs.h. */ | |
5128 | ||
d475215a | 5129 | /* Override any gcc2 internal prototype to avoid an error. */ |
53d60c04 KC |
5130 | #ifdef __cplusplus |
5131 | extern "C" | |
5132 | #endif | |
d475215a | 5133 | /* We use char because int might match the return type of a gcc2 |
53d60c04 KC |
5134 | builtin and then its argument prototype would still apply. */ |
5135 | char deflate (); | |
5136 | int | |
5137 | main () | |
5138 | { | |
5139 | deflate (); | |
5140 | ; | |
5141 | return 0; | |
5142 | } | |
5143 | _ACEOF | |
5144 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3beb1315 | 5146 | (eval $ac_link) 2>conftest.er1 |
53d60c04 | 5147 | ac_status=$? |
3beb1315 HPN |
5148 | grep -v '^ *+' conftest.er1 >conftest.err |
5149 | rm -f conftest.er1 | |
5150 | cat conftest.err >&5 | |
53d60c04 KC |
5151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5152 | (exit $ac_status); } && | |
79453222 KC |
5153 | { ac_try='test -z "$ac_c_werror_flag" |
5154 | || test ! -s conftest.err' | |
3beb1315 HPN |
5155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5156 | (eval $ac_try) 2>&5 | |
5157 | ac_status=$? | |
5158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5159 | (exit $ac_status); }; } && | |
5160 | { ac_try='test -s conftest$ac_exeext' | |
53d60c04 KC |
5161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5162 | (eval $ac_try) 2>&5 | |
5163 | ac_status=$? | |
5164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5165 | (exit $ac_status); }; }; then | |
5166 | ac_cv_lib_z_deflate=yes | |
d475215a | 5167 | else |
53d60c04 KC |
5168 | echo "$as_me: failed program was:" >&5 |
5169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d475215a | 5170 | |
53d60c04 KC |
5171 | ac_cv_lib_z_deflate=no |
5172 | fi | |
3beb1315 HPN |
5173 | rm -f conftest.err conftest.$ac_objext \ |
5174 | conftest$ac_exeext conftest.$ac_ext | |
53d60c04 | 5175 | LIBS=$ac_check_lib_save_LIBS |
d475215a | 5176 | fi |
53d60c04 KC |
5177 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 |
5178 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
5179 | if test $ac_cv_lib_z_deflate = yes; then | |
d475215a TT |
5180 | ZLIBS=-lz |
5181 | else | |
53d60c04 | 5182 | use_zlib=no |
d475215a TT |
5183 | fi |
5184 | ||
5185 | else | |
5186 | use_zlib=no | |
5187 | fi | |
5188 | ||
5189 | if test "$use_zlib" = no; then | |
5190 | # Brain dead way to find tree's zlib. | |
5191 | ZDEPS='$(top_builddir)/../zlib/libz.a' | |
5192 | ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir" | |
5193 | ZINCS='-I$(top_srcdir)/../zlib' | |
5194 | fi | |
bd8757b3 APB |
5195 | |
5196 | ||
5197 | ||
5198 | ||
040e098a KC |
5199 | # GCC LOCAL CHANGE |
5200 | # We would like to our source tree to be readonly. However when releases or | |
5201 | # pre-releases are generated, the man pages need to be included as they are | |
5202 | # converted from the texi files via perl which we don't require end users to | |
5203 | # have installed. | |
5204 | # Therefore we have --enable-generated-files-in-srcdir to do just that. | |
5205 | ||
5206 | echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5 | |
5207 | echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6 | |
5208 | # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given. | |
5209 | if test "${enable_generated_files_in_srcdir+set}" = set; then | |
5210 | enableval="$enable_generated_files_in_srcdir" | |
5211 | generated_files_in_srcdir=$enableval | |
5212 | else | |
5213 | generated_files_in_srcdir=no | |
5214 | fi; | |
5215 | ||
5216 | echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5 | |
5217 | echo "${ECHO_T}$generated_files_in_srcdir" >&6 | |
5218 | ||
5219 | ||
5220 | if test x$generated_files_in_srcdir = xyes; then | |
5221 | GENINSRC_TRUE= | |
5222 | GENINSRC_FALSE='#' | |
5223 | else | |
5224 | GENINSRC_TRUE='#' | |
5225 | GENINSRC_FALSE= | |
5226 | fi | |
5227 | ||
5228 | ||
42ac7b6d MK |
5229 | # Get the version trigger filename from the toplevel |
5230 | if test "${with_gcc_version_trigger+set}" = set; then | |
5231 | gcc_version_trigger=$with_gcc_version_trigger | |
5232 | else | |
5233 | gcc_version_trigger=${srcdir}/version.c | |
5234 | fi | |
5235 | gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'` | |
5236 | gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'` | |
5237 | ||
5238 | ||
53d60c04 KC |
5239 | ac_config_files="$ac_config_files Makefile install-defs.sh" |
5240 | cat >confcache <<\_ACEOF | |
bd8757b3 APB |
5241 | # This file is a shell script that caches the results of configure |
5242 | # tests run on this system so they can be shared between configure | |
53d60c04 KC |
5243 | # scripts and configure runs, see configure's option --config-cache. |
5244 | # It is not useful on other systems. If it contains results you don't | |
5245 | # want to keep, you may remove or edit it. | |
bd8757b3 | 5246 | # |
53d60c04 KC |
5247 | # config.status only pays attention to the cache file if you give it |
5248 | # the --recheck option to rerun configure. | |
bd8757b3 | 5249 | # |
53d60c04 KC |
5250 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
5251 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
5252 | # following values. | |
5253 | ||
5254 | _ACEOF | |
5255 | ||
bd8757b3 APB |
5256 | # The following way of writing the cache mishandles newlines in values, |
5257 | # but we know of no workaround that is simple, portable, and efficient. | |
5258 | # So, don't put newlines in cache variables' values. | |
5259 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5260 | # and sets the high bit in the cache file unless we assign to the vars. | |
53d60c04 KC |
5261 | { |
5262 | (set) 2>&1 | | |
5263 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5264 | *ac_space=\ *) | |
5265 | # `set' does not quote correctly, so add quotes (double-quote | |
5266 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
5267 | sed -n \ | |
3beb1315 HPN |
5268 | "s/'/'\\\\''/g; |
5269 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
53d60c04 KC |
5270 | ;; |
5271 | *) | |
5272 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5273 | sed -n \ | |
3beb1315 | 5274 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
53d60c04 KC |
5275 | ;; |
5276 | esac; | |
5277 | } | | |
5278 | sed ' | |
5279 | t clear | |
5280 | : clear | |
5281 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
5282 | t end | |
5283 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
5284 | : end' >>confcache | |
5285 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
bd8757b3 | 5286 | if test -w $cache_file; then |
53d60c04 KC |
5287 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
5288 | cat confcache >$cache_file | |
bd8757b3 APB |
5289 | else |
5290 | echo "not updating unwritable cache $cache_file" | |
5291 | fi | |
5292 | fi | |
5293 | rm -f confcache | |
5294 | ||
bd8757b3 APB |
5295 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
5296 | # Let make expand exec_prefix. | |
5297 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5298 | ||
53d60c04 KC |
5299 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
5300 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
5301 | # trailing colons and then remove the whole line if VPATH becomes empty | |
5302 | # (actually we leave an empty line to preserve line numbers). | |
bd8757b3 | 5303 | if test "x$srcdir" = x.; then |
3beb1315 | 5304 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
53d60c04 KC |
5305 | s/:*\$(srcdir):*/:/; |
5306 | s/:*\${srcdir}:*/:/; | |
5307 | s/:*@srcdir@:*/:/; | |
3beb1315 | 5308 | s/^\([^=]*=[ ]*\):*/\1/; |
53d60c04 | 5309 | s/:*$//; |
3beb1315 | 5310 | s/^[^=]*=[ ]*$//; |
53d60c04 | 5311 | }' |
bd8757b3 APB |
5312 | fi |
5313 | ||
bd8757b3 APB |
5314 | DEFS=-DHAVE_CONFIG_H |
5315 | ||
53d60c04 KC |
5316 | ac_libobjs= |
5317 | ac_ltlibobjs= | |
5318 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
5319 | # 1. Remove the extension, and $U if already installed. | |
5320 | ac_i=`echo "$ac_i" | | |
3beb1315 | 5321 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
53d60c04 KC |
5322 | # 2. Add them. |
5323 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
5324 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
5325 | done | |
5326 | LIBOBJS=$ac_libobjs | |
bd8757b3 | 5327 | |
53d60c04 KC |
5328 | LTLIBOBJS=$ac_ltlibobjs |
5329 | ||
5330 | ||
5331 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
5332 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
5333 | Usually this means the macro was only invoked conditionally." >&5 | |
5334 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
5335 | Usually this means the macro was only invoked conditionally." >&2;} | |
5336 | { (exit 1); exit 1; }; } | |
5337 | fi | |
5338 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
5339 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
5340 | Usually this means the macro was only invoked conditionally." >&5 | |
5341 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
5342 | Usually this means the macro was only invoked conditionally." >&2;} | |
5343 | { (exit 1); exit 1; }; } | |
5344 | fi | |
5345 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
5346 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
5347 | Usually this means the macro was only invoked conditionally." >&5 | |
5348 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
5349 | Usually this means the macro was only invoked conditionally." >&2;} | |
5350 | { (exit 1); exit 1; }; } | |
5351 | fi | |
040e098a KC |
5352 | if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then |
5353 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined. | |
5354 | Usually this means the macro was only invoked conditionally." >&5 | |
5355 | echo "$as_me: error: conditional \"GENINSRC\" was never defined. | |
5356 | Usually this means the macro was only invoked conditionally." >&2;} | |
5357 | { (exit 1); exit 1; }; } | |
5358 | fi | |
53d60c04 KC |
5359 | |
5360 | : ${CONFIG_STATUS=./config.status} | |
5361 | ac_clean_files_save=$ac_clean_files | |
5362 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5363 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
5364 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
5365 | cat >$CONFIG_STATUS <<_ACEOF | |
5366 | #! $SHELL | |
5367 | # Generated by $as_me. | |
bd8757b3 | 5368 | # Run this file to recreate the current configuration. |
bd8757b3 | 5369 | # Compiler output produced by configure, useful for debugging |
53d60c04 KC |
5370 | # configure, is in config.log if it exists. |
5371 | ||
5372 | debug=false | |
5373 | ac_cs_recheck=false | |
5374 | ac_cs_silent=false | |
5375 | SHELL=\${CONFIG_SHELL-$SHELL} | |
5376 | _ACEOF | |
5377 | ||
5378 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5379 | ## --------------------- ## | |
5380 | ## M4sh Initialization. ## | |
5381 | ## --------------------- ## | |
5382 | ||
5383 | # Be Bourne compatible | |
5384 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
5385 | emulate sh | |
5386 | NULLCMD=: | |
5387 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
5388 | # is contrary to our usage. Disable this feature. | |
5389 | alias -g '${1+"$@"}'='"$@"' | |
5390 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
5391 | set -o posix | |
5392 | fi | |
3beb1315 | 5393 | DUALCASE=1; export DUALCASE # for MKS sh |
53d60c04 KC |
5394 | |
5395 | # Support unset when possible. | |
3beb1315 | 5396 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
53d60c04 KC |
5397 | as_unset=unset |
5398 | else | |
5399 | as_unset=false | |
5400 | fi | |
bd8757b3 | 5401 | |
53d60c04 KC |
5402 | |
5403 | # Work around bugs in pre-3.0 UWIN ksh. | |
5404 | $as_unset ENV MAIL MAILPATH | |
5405 | PS1='$ ' | |
5406 | PS2='> ' | |
5407 | PS4='+ ' | |
5408 | ||
5409 | # NLS nuisances. | |
5410 | for as_var in \ | |
5411 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
5412 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
5413 | LC_TELEPHONE LC_TIME | |
bd8757b3 | 5414 | do |
3beb1315 | 5415 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
53d60c04 KC |
5416 | eval $as_var=C; export $as_var |
5417 | else | |
5418 | $as_unset $as_var | |
5419 | fi | |
bd8757b3 APB |
5420 | done |
5421 | ||
53d60c04 KC |
5422 | # Required to use basename. |
5423 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
5424 | as_expr=expr | |
5425 | else | |
5426 | as_expr=false | |
5427 | fi | |
bd8757b3 | 5428 | |
53d60c04 KC |
5429 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
5430 | as_basename=basename | |
5431 | else | |
5432 | as_basename=false | |
5433 | fi | |
5434 | ||
5435 | ||
5436 | # Name of the executable. | |
5437 | as_me=`$as_basename "$0" || | |
5438 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
5439 | X"$0" : 'X\(//\)$' \| \ | |
5440 | X"$0" : 'X\(/\)$' \| \ | |
5441 | . : '\(.\)' 2>/dev/null || | |
5442 | echo X/"$0" | | |
5443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
5444 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
5445 | /^X\/\(\/\).*/{ s//\1/; q; } | |
5446 | s/.*/./; q'` | |
5447 | ||
5448 | ||
5449 | # PATH needs CR, and LINENO needs CR and PATH. | |
5450 | # Avoid depending upon Character Ranges. | |
5451 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
5452 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
5453 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
5454 | as_cr_digits='0123456789' | |
5455 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
5456 | ||
5457 | # The user is always right. | |
5458 | if test "${PATH_SEPARATOR+set}" != set; then | |
5459 | echo "#! /bin/sh" >conf$$.sh | |
5460 | echo "exit 0" >>conf$$.sh | |
5461 | chmod +x conf$$.sh | |
5462 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5463 | PATH_SEPARATOR=';' | |
5464 | else | |
5465 | PATH_SEPARATOR=: | |
5466 | fi | |
5467 | rm -f conf$$.sh | |
5468 | fi | |
bd8757b3 | 5469 | |
bd8757b3 | 5470 | |
53d60c04 KC |
5471 | as_lineno_1=$LINENO |
5472 | as_lineno_2=$LINENO | |
5473 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
5474 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
5475 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
5476 | # Find who we are. Look in the path if we contain no path at all | |
5477 | # relative or not. | |
5478 | case $0 in | |
5479 | *[\\/]* ) as_myself=$0 ;; | |
5480 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5481 | for as_dir in $PATH | |
5482 | do | |
5483 | IFS=$as_save_IFS | |
5484 | test -z "$as_dir" && as_dir=. | |
5485 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
5486 | done | |
bd8757b3 | 5487 | |
53d60c04 KC |
5488 | ;; |
5489 | esac | |
5490 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
5491 | # in which case we are not to be found in the path. | |
5492 | if test "x$as_myself" = x; then | |
5493 | as_myself=$0 | |
5494 | fi | |
5495 | if test ! -f "$as_myself"; then | |
5496 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
5497 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
5498 | { (exit 1); exit 1; }; } | |
bd8757b3 | 5499 | fi |
53d60c04 KC |
5500 | case $CONFIG_SHELL in |
5501 | '') | |
5502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5503 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
5504 | do | |
5505 | IFS=$as_save_IFS | |
5506 | test -z "$as_dir" && as_dir=. | |
5507 | for as_base in sh bash ksh sh5; do | |
5508 | case $as_dir in | |
5509 | /*) | |
5510 | if ("$as_dir/$as_base" -c ' | |
5511 | as_lineno_1=$LINENO | |
5512 | as_lineno_2=$LINENO | |
5513 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
5514 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
5515 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
5516 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
5517 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
5518 | CONFIG_SHELL=$as_dir/$as_base | |
5519 | export CONFIG_SHELL | |
5520 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
5521 | fi;; | |
5522 | esac | |
5523 | done | |
5524 | done | |
5525 | ;; | |
5526 | esac | |
5527 | ||
5528 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
5529 | # uniformly replaced by the line number. The first 'sed' inserts a | |
5530 | # line-number line before each line; the second 'sed' does the real | |
5531 | # work. The second script uses 'N' to pair each line-number line | |
5532 | # with the numbered line, and appends trailing '-' during | |
5533 | # substitution so that $LINENO is not a special case at line end. | |
5534 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
5535 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
5536 | sed '=' <$as_myself | | |
5537 | sed ' | |
5538 | N | |
5539 | s,$,-, | |
5540 | : loop | |
5541 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
5542 | t loop | |
5543 | s,-$,, | |
5544 | s,^['$as_cr_digits']*\n,, | |
5545 | ' >$as_me.lineno && | |
5546 | chmod +x $as_me.lineno || | |
5547 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
5548 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
5549 | { (exit 1); exit 1; }; } | |
5550 | ||
5551 | # Don't try to exec as it changes $[0], causing all sort of problems | |
5552 | # (the dirname of $[0] is not the place where we might find the | |
5553 | # original and so on. Autoconf is especially sensible to this). | |
5554 | . ./$as_me.lineno | |
5555 | # Exit status is that of the last command. | |
5556 | exit | |
5557 | } | |
5558 | ||
5559 | ||
5560 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
5561 | *c*,-n*) ECHO_N= ECHO_C=' | |
5562 | ' ECHO_T=' ' ;; | |
5563 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
5564 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
5565 | esac | |
5566 | ||
5567 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
5568 | as_expr=expr | |
5569 | else | |
5570 | as_expr=false | |
5571 | fi | |
5572 | ||
5573 | rm -f conf$$ conf$$.exe conf$$.file | |
5574 | echo >conf$$.file | |
5575 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5576 | # We could just check for DJGPP; but this test a) works b) is more generic | |
5577 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
5578 | if test -f conf$$.exe; then | |
5579 | # Don't use ln at all; we don't have any links | |
5580 | as_ln_s='cp -p' | |
bd8757b3 | 5581 | else |
53d60c04 | 5582 | as_ln_s='ln -s' |
bd8757b3 | 5583 | fi |
53d60c04 KC |
5584 | elif ln conf$$.file conf$$ 2>/dev/null; then |
5585 | as_ln_s=ln | |
5586 | else | |
5587 | as_ln_s='cp -p' | |
5588 | fi | |
5589 | rm -f conf$$ conf$$.exe conf$$.file | |
5590 | ||
5591 | if mkdir -p . 2>/dev/null; then | |
5592 | as_mkdir_p=: | |
5593 | else | |
3beb1315 | 5594 | test -d ./-p && rmdir ./-p |
53d60c04 KC |
5595 | as_mkdir_p=false |
5596 | fi | |
5597 | ||
5598 | as_executable_p="test -f" | |
5599 | ||
5600 | # Sed expression to map a string onto a valid CPP name. | |
3beb1315 | 5601 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
53d60c04 KC |
5602 | |
5603 | # Sed expression to map a string onto a valid variable name. | |
3beb1315 | 5604 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
53d60c04 KC |
5605 | |
5606 | ||
5607 | # IFS | |
5608 | # We need space, tab and new line, in precisely that order. | |
5609 | as_nl=' | |
5610 | ' | |
5611 | IFS=" $as_nl" | |
5612 | ||
5613 | # CDPATH. | |
5614 | $as_unset CDPATH | |
5615 | ||
5616 | exec 6>&1 | |
5617 | ||
5618 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
5619 | # report actual input values of CONFIG_FILES etc. instead of their | |
5620 | # values after options handling. Logging --version etc. is OK. | |
5621 | exec 5>>config.log | |
5622 | { | |
5623 | echo | |
5624 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
5625 | ## Running $as_me. ## | |
5626 | _ASBOX | |
5627 | } >&5 | |
5628 | cat >&5 <<_CSEOF | |
5629 | ||
5630 | This file was extended by $as_me, which was | |
8ab705be | 5631 | generated by GNU Autoconf 2.59. Invocation command line was |
53d60c04 KC |
5632 | |
5633 | CONFIG_FILES = $CONFIG_FILES | |
5634 | CONFIG_HEADERS = $CONFIG_HEADERS | |
5635 | CONFIG_LINKS = $CONFIG_LINKS | |
5636 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
5637 | $ $0 $@ | |
5638 | ||
5639 | _CSEOF | |
5640 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
5641 | echo >&5 | |
5642 | _ACEOF | |
5643 | ||
5644 | # Files that config.status was made for. | |
5645 | if test -n "$ac_config_files"; then | |
5646 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
5647 | fi | |
5648 | ||
5649 | if test -n "$ac_config_headers"; then | |
5650 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
5651 | fi | |
5652 | ||
5653 | if test -n "$ac_config_links"; then | |
5654 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
5655 | fi | |
5656 | ||
5657 | if test -n "$ac_config_commands"; then | |
5658 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
5659 | fi | |
5660 | ||
5661 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5662 | ||
5663 | ac_cs_usage="\ | |
5664 | \`$as_me' instantiates files from templates according to the | |
5665 | current configuration. | |
5666 | ||
5667 | Usage: $0 [OPTIONS] [FILE]... | |
5668 | ||
5669 | -h, --help print this help, then exit | |
5670 | -V, --version print version number, then exit | |
5671 | -q, --quiet do not print progress messages | |
5672 | -d, --debug don't remove temporary files | |
5673 | --recheck update $as_me by reconfiguring in the same conditions | |
5674 | --file=FILE[:TEMPLATE] | |
3beb1315 | 5675 | instantiate the configuration file FILE |
53d60c04 | 5676 | --header=FILE[:TEMPLATE] |
3beb1315 | 5677 | instantiate the configuration header FILE |
53d60c04 KC |
5678 | |
5679 | Configuration files: | |
5680 | $config_files | |
5681 | ||
5682 | Configuration headers: | |
5683 | $config_headers | |
5684 | ||
5685 | Configuration commands: | |
5686 | $config_commands | |
5687 | ||
5688 | Report bugs to <bug-autoconf@gnu.org>." | |
5689 | _ACEOF | |
5690 | ||
5691 | cat >>$CONFIG_STATUS <<_ACEOF | |
5692 | ac_cs_version="\\ | |
5693 | config.status | |
8ab705be | 5694 | configured by $0, generated by GNU Autoconf 2.59, |
53d60c04 KC |
5695 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
5696 | ||
3beb1315 | 5697 | Copyright (C) 2003 Free Software Foundation, Inc. |
53d60c04 KC |
5698 | This config.status script is free software; the Free Software Foundation |
5699 | gives unlimited permission to copy, distribute and modify it." | |
5700 | srcdir=$srcdir | |
5701 | INSTALL="$INSTALL" | |
5702 | _ACEOF | |
5703 | ||
5704 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5705 | # If no file are specified by the user, then we need to provide default | |
5706 | # value. By we need to know if files were specified by the user. | |
5707 | ac_need_defaults=: | |
5708 | while test $# != 0 | |
5709 | do | |
5710 | case $1 in | |
5711 | --*=*) | |
5712 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
5713 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
5714 | ac_shift=: | |
5715 | ;; | |
5716 | -*) | |
5717 | ac_option=$1 | |
5718 | ac_optarg=$2 | |
5719 | ac_shift=shift | |
5720 | ;; | |
5721 | *) # This is not an option, so the user has probably given explicit | |
5722 | # arguments. | |
5723 | ac_option=$1 | |
5724 | ac_need_defaults=false;; | |
5725 | esac | |
5726 | ||
5727 | case $ac_option in | |
5728 | # Handling of the options. | |
5729 | _ACEOF | |
5730 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5731 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
5732 | ac_cs_recheck=: ;; | |
5733 | --version | --vers* | -V ) | |
5734 | echo "$ac_cs_version"; exit 0 ;; | |
5735 | --he | --h) | |
5736 | # Conflict between --help and --header | |
5737 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
5738 | Try \`$0 --help' for more information." >&5 | |
5739 | echo "$as_me: error: ambiguous option: $1 | |
5740 | Try \`$0 --help' for more information." >&2;} | |
5741 | { (exit 1); exit 1; }; };; | |
5742 | --help | --hel | -h ) | |
5743 | echo "$ac_cs_usage"; exit 0 ;; | |
5744 | --debug | --d* | -d ) | |
5745 | debug=: ;; | |
5746 | --file | --fil | --fi | --f ) | |
5747 | $ac_shift | |
5748 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
5749 | ac_need_defaults=false;; | |
5750 | --header | --heade | --head | --hea ) | |
5751 | $ac_shift | |
5752 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
5753 | ac_need_defaults=false;; | |
5754 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
5755 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
5756 | ac_cs_silent=: ;; | |
5757 | ||
5758 | # This is an error. | |
5759 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
5760 | Try \`$0 --help' for more information." >&5 | |
5761 | echo "$as_me: error: unrecognized option: $1 | |
5762 | Try \`$0 --help' for more information." >&2;} | |
5763 | { (exit 1); exit 1; }; } ;; | |
5764 | ||
5765 | *) ac_config_targets="$ac_config_targets $1" ;; | |
5766 | ||
5767 | esac | |
5768 | shift | |
bd8757b3 | 5769 | done |
53d60c04 KC |
5770 | |
5771 | ac_configure_extra_args= | |
5772 | ||
5773 | if $ac_cs_silent; then | |
5774 | exec 6>/dev/null | |
5775 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
5776 | fi | |
5777 | ||
5778 | _ACEOF | |
5779 | cat >>$CONFIG_STATUS <<_ACEOF | |
5780 | if \$ac_cs_recheck; then | |
5781 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
5782 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
bd8757b3 | 5783 | fi |
bd8757b3 | 5784 | |
53d60c04 | 5785 | _ACEOF |
bd8757b3 | 5786 | |
53d60c04 KC |
5787 | cat >>$CONFIG_STATUS <<_ACEOF |
5788 | # | |
5789 | # INIT-COMMANDS section. | |
5790 | # | |
5791 | ||
5792 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
5793 | ||
5794 | _ACEOF | |
5795 | ||
5796 | ||
5797 | ||
5798 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5799 | for ac_config_target in $ac_config_targets | |
5800 | do | |
5801 | case "$ac_config_target" in | |
5802 | # Handling of arguments. | |
5803 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
5804 | "install-defs.sh" ) CONFIG_FILES="$CONFIG_FILES install-defs.sh" ;; | |
5805 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
5806 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
5807 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
5808 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
5809 | { (exit 1); exit 1; }; };; | |
bd8757b3 | 5810 | esac |
53d60c04 | 5811 | done |
bd8757b3 | 5812 | |
53d60c04 KC |
5813 | # If the user did not use the arguments to specify the items to instantiate, |
5814 | # then the envvar interface is used. Set only those that are not. | |
5815 | # We use the long form for the default assignment because of an extremely | |
5816 | # bizarre bug on SunOS 4.1.3. | |
5817 | if $ac_need_defaults; then | |
5818 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
5819 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
5820 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
5821 | fi | |
5822 | ||
5823 | # Have a temporary directory for convenience. Make it in the build tree | |
5824 | # simply because there is no reason to put it here, and in addition, | |
5825 | # creating and moving files from /tmp can sometimes cause problems. | |
5826 | # Create a temporary directory, and hook for its removal unless debugging. | |
5827 | $debug || | |
5828 | { | |
5829 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
5830 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
5831 | } | |
bd8757b3 | 5832 | |
53d60c04 KC |
5833 | # Create a (secure) tmp directory for tmp files. |
5834 | ||
5835 | { | |
5836 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
5837 | test -n "$tmp" && test -d "$tmp" | |
5838 | } || | |
5839 | { | |
5840 | tmp=./confstat$$-$RANDOM | |
5841 | (umask 077 && mkdir $tmp) | |
5842 | } || | |
5843 | { | |
5844 | echo "$me: cannot create a temporary directory in ." >&2 | |
5845 | { (exit 1); exit 1; } | |
5846 | } | |
5847 | ||
5848 | _ACEOF | |
5849 | ||
5850 | cat >>$CONFIG_STATUS <<_ACEOF | |
5851 | ||
5852 | # | |
5853 | # CONFIG_FILES section. | |
5854 | # | |
5855 | ||
5856 | # No need to generate the scripts if there are no CONFIG_FILES. | |
5857 | # This happens for instance when ./config.status config.h | |
5858 | if test -n "\$CONFIG_FILES"; then | |
5859 | # Protect against being on the right side of a sed subst in config.status. | |
5860 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
5861 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
5862 | s,@SHELL@,$SHELL,;t t | |
5863 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
5864 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
5865 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
5866 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
5867 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
5868 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
5869 | s,@exec_prefix@,$exec_prefix,;t t | |
5870 | s,@prefix@,$prefix,;t t | |
5871 | s,@program_transform_name@,$program_transform_name,;t t | |
5872 | s,@bindir@,$bindir,;t t | |
5873 | s,@sbindir@,$sbindir,;t t | |
5874 | s,@libexecdir@,$libexecdir,;t t | |
5875 | s,@datadir@,$datadir,;t t | |
5876 | s,@sysconfdir@,$sysconfdir,;t t | |
5877 | s,@sharedstatedir@,$sharedstatedir,;t t | |
5878 | s,@localstatedir@,$localstatedir,;t t | |
5879 | s,@libdir@,$libdir,;t t | |
5880 | s,@includedir@,$includedir,;t t | |
5881 | s,@oldincludedir@,$oldincludedir,;t t | |
5882 | s,@infodir@,$infodir,;t t | |
5883 | s,@mandir@,$mandir,;t t | |
5884 | s,@build_alias@,$build_alias,;t t | |
5885 | s,@host_alias@,$host_alias,;t t | |
5886 | s,@target_alias@,$target_alias,;t t | |
5887 | s,@DEFS@,$DEFS,;t t | |
5888 | s,@ECHO_C@,$ECHO_C,;t t | |
5889 | s,@ECHO_N@,$ECHO_N,;t t | |
5890 | s,@ECHO_T@,$ECHO_T,;t t | |
5891 | s,@LIBS@,$LIBS,;t t | |
5892 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
5893 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
5894 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
5895 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
5896 | s,@PACKAGE@,$PACKAGE,;t t | |
5897 | s,@VERSION@,$VERSION,;t t | |
5898 | s,@ACLOCAL@,$ACLOCAL,;t t | |
5899 | s,@AUTOCONF@,$AUTOCONF,;t t | |
5900 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
5901 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
5902 | s,@MAKEINFO@,$MAKEINFO,;t t | |
53d60c04 KC |
5903 | s,@install_sh@,$install_sh,;t t |
5904 | s,@STRIP@,$STRIP,;t t | |
5905 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
5906 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
608cb764 | 5907 | s,@mkdir_p@,$mkdir_p,;t t |
53d60c04 KC |
5908 | s,@AWK@,$AWK,;t t |
5909 | s,@SET_MAKE@,$SET_MAKE,;t t | |
5910 | s,@am__leading_dot@,$am__leading_dot,;t t | |
3c374d91 KC |
5911 | s,@AMTAR@,$AMTAR,;t t |
5912 | s,@am__tar@,$am__tar,;t t | |
5913 | s,@am__untar@,$am__untar,;t t | |
53d60c04 KC |
5914 | s,@CC@,$CC,;t t |
5915 | s,@CFLAGS@,$CFLAGS,;t t | |
5916 | s,@LDFLAGS@,$LDFLAGS,;t t | |
5917 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
5918 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
5919 | s,@EXEEXT@,$EXEEXT,;t t | |
5920 | s,@OBJEXT@,$OBJEXT,;t t | |
5921 | s,@DEPDIR@,$DEPDIR,;t t | |
5922 | s,@am__include@,$am__include,;t t | |
5923 | s,@am__quote@,$am__quote,;t t | |
5924 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
5925 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
5926 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
5927 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
5928 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
5929 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
5930 | s,@RM@,$RM,;t t | |
5931 | s,@CP@,$CP,;t t | |
5932 | s,@CHMOD@,$CHMOD,;t t | |
5933 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
5934 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
5935 | s,@MAINT@,$MAINT,;t t | |
5936 | s,@fastjar_warn_cflags@,$fastjar_warn_cflags,;t t | |
5937 | s,@CPP@,$CPP,;t t | |
5938 | s,@EGREP@,$EGREP,;t t | |
5939 | s,@ZLIBS@,$ZLIBS,;t t | |
5940 | s,@ZDEPS@,$ZDEPS,;t t | |
5941 | s,@ZINCS@,$ZINCS,;t t | |
040e098a KC |
5942 | s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t |
5943 | s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t | |
53d60c04 KC |
5944 | s,@gcc_version@,$gcc_version,;t t |
5945 | s,@LIBOBJS@,$LIBOBJS,;t t | |
5946 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
5947 | CEOF | |
5948 | ||
5949 | _ACEOF | |
5950 | ||
5951 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5952 | # Split the substitutions into bite-sized pieces for seds with | |
5953 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
5954 | ac_max_sed_lines=48 | |
5955 | ac_sed_frag=1 # Number of current file. | |
5956 | ac_beg=1 # First line for current file. | |
5957 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
5958 | ac_more_lines=: | |
5959 | ac_sed_cmds= | |
5960 | while $ac_more_lines; do | |
5961 | if test $ac_beg -gt 1; then | |
5962 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
5963 | else | |
5964 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
5965 | fi | |
5966 | if test ! -s $tmp/subs.frag; then | |
5967 | ac_more_lines=false | |
5968 | else | |
5969 | # The purpose of the label and of the branching condition is to | |
5970 | # speed up the sed processing (if there are no `@' at all, there | |
5971 | # is no need to browse any of the substitutions). | |
5972 | # These are the two extra sed commands mentioned above. | |
5973 | (echo ':t | |
5974 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
5975 | if test -z "$ac_sed_cmds"; then | |
3beb1315 | 5976 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
53d60c04 | 5977 | else |
3beb1315 | 5978 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
53d60c04 KC |
5979 | fi |
5980 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
5981 | ac_beg=$ac_end | |
5982 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
5983 | fi | |
5984 | done | |
5985 | if test -z "$ac_sed_cmds"; then | |
5986 | ac_sed_cmds=cat | |
bd8757b3 | 5987 | fi |
53d60c04 | 5988 | fi # test -n "$CONFIG_FILES" |
bd8757b3 | 5989 | |
53d60c04 KC |
5990 | _ACEOF |
5991 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5992 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
5993 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5994 | case $ac_file in | |
5995 | - | *:- | *:-:* ) # input from stdin | |
3beb1315 HPN |
5996 | cat >$tmp/stdin |
5997 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
5998 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
53d60c04 | 5999 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
3beb1315 | 6000 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
53d60c04 | 6001 | * ) ac_file_in=$ac_file.in ;; |
bd8757b3 APB |
6002 | esac |
6003 | ||
53d60c04 KC |
6004 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
6005 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
6006 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3beb1315 HPN |
6007 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
6008 | X"$ac_file" : 'X\(//\)$' \| \ | |
6009 | X"$ac_file" : 'X\(/\)' \| \ | |
6010 | . : '\(.\)' 2>/dev/null || | |
53d60c04 KC |
6011 | echo X"$ac_file" | |
6012 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6013 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6014 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6015 | /^X\(\/\).*/{ s//\1/; q; } | |
6016 | s/.*/./; q'` | |
6017 | { if $as_mkdir_p; then | |
6018 | mkdir -p "$ac_dir" | |
6019 | else | |
6020 | as_dir="$ac_dir" | |
6021 | as_dirs= | |
6022 | while test ! -d "$as_dir"; do | |
6023 | as_dirs="$as_dir $as_dirs" | |
6024 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6025 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3beb1315 HPN |
6026 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
6027 | X"$as_dir" : 'X\(//\)$' \| \ | |
6028 | X"$as_dir" : 'X\(/\)' \| \ | |
6029 | . : '\(.\)' 2>/dev/null || | |
53d60c04 KC |
6030 | echo X"$as_dir" | |
6031 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6032 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6033 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6034 | /^X\(\/\).*/{ s//\1/; q; } | |
6035 | s/.*/./; q'` | |
6036 | done | |
6037 | test ! -n "$as_dirs" || mkdir $as_dirs | |
6038 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
6039 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
6040 | { (exit 1); exit 1; }; }; } | |
6041 | ||
6042 | ac_builddir=. | |
6043 | ||
6044 | if test "$ac_dir" != .; then | |
6045 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
6046 | # A "../" for each directory in $ac_dir_suffix. | |
6047 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
6048 | else | |
6049 | ac_dir_suffix= ac_top_builddir= | |
6050 | fi | |
6051 | ||
6052 | case $srcdir in | |
6053 | .) # No --srcdir option. We are building in place. | |
6054 | ac_srcdir=. | |
6055 | if test -z "$ac_top_builddir"; then | |
6056 | ac_top_srcdir=. | |
6057 | else | |
6058 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
6059 | fi ;; | |
6060 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
6061 | ac_srcdir=$srcdir$ac_dir_suffix; | |
6062 | ac_top_srcdir=$srcdir ;; | |
6063 | *) # Relative path. | |
6064 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
6065 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6066 | esac | |
8ab705be KC |
6067 | |
6068 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
6069 | # the directories may not exist. | |
6070 | case `pwd` in | |
6071 | .) ac_abs_builddir="$ac_dir";; | |
3beb1315 | 6072 | *) |
8ab705be KC |
6073 | case "$ac_dir" in |
6074 | .) ac_abs_builddir=`pwd`;; | |
6075 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
6076 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
3beb1315 HPN |
6077 | esac;; |
6078 | esac | |
8ab705be | 6079 | case $ac_abs_builddir in |
3beb1315 HPN |
6080 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
6081 | *) | |
6082 | case ${ac_top_builddir}. in | |
8ab705be | 6083 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
3beb1315 | 6084 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
8ab705be | 6085 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
3beb1315 HPN |
6086 | esac;; |
6087 | esac | |
8ab705be | 6088 | case $ac_abs_builddir in |
3beb1315 HPN |
6089 | .) ac_abs_srcdir=$ac_srcdir;; |
6090 | *) | |
6091 | case $ac_srcdir in | |
8ab705be | 6092 | .) ac_abs_srcdir=$ac_abs_builddir;; |
3beb1315 | 6093 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
8ab705be | 6094 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
3beb1315 HPN |
6095 | esac;; |
6096 | esac | |
8ab705be | 6097 | case $ac_abs_builddir in |
3beb1315 HPN |
6098 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
6099 | *) | |
6100 | case $ac_top_srcdir in | |
8ab705be | 6101 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
3beb1315 | 6102 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
8ab705be | 6103 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
3beb1315 HPN |
6104 | esac;; |
6105 | esac | |
bd8757b3 | 6106 | |
53d60c04 KC |
6107 | |
6108 | case $INSTALL in | |
6109 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
6110 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
bd8757b3 APB |
6111 | esac |
6112 | ||
79453222 KC |
6113 | if test x"$ac_file" != x-; then |
6114 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
6115 | echo "$as_me: creating $ac_file" >&6;} | |
6116 | rm -f "$ac_file" | |
6117 | fi | |
53d60c04 KC |
6118 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
6119 | # use $as_me), people would be surprised to read: | |
6120 | # /* config.h. Generated by config.status. */ | |
6121 | if test x"$ac_file" = x-; then | |
6122 | configure_input= | |
6123 | else | |
6124 | configure_input="$ac_file. " | |
6125 | fi | |
6126 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
3beb1315 | 6127 | sed 's,.*/,,'` by configure." |
53d60c04 KC |
6128 | |
6129 | # First look for the input files in the build tree, otherwise in the | |
6130 | # src tree. | |
6131 | ac_file_inputs=`IFS=: | |
6132 | for f in $ac_file_in; do | |
6133 | case $f in | |
6134 | -) echo $tmp/stdin ;; | |
6135 | [\\/$]*) | |
3beb1315 HPN |
6136 | # Absolute (can't be DOS-style, as IFS=:) |
6137 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
53d60c04 KC |
6138 | echo "$as_me: error: cannot find input file: $f" >&2;} |
6139 | { (exit 1); exit 1; }; } | |
3beb1315 | 6140 | echo "$f";; |
53d60c04 | 6141 | *) # Relative |
3beb1315 HPN |
6142 | if test -f "$f"; then |
6143 | # Build tree | |
6144 | echo "$f" | |
6145 | elif test -f "$srcdir/$f"; then | |
6146 | # Source tree | |
6147 | echo "$srcdir/$f" | |
6148 | else | |
6149 | # /dev/null tree | |
6150 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
53d60c04 KC |
6151 | echo "$as_me: error: cannot find input file: $f" >&2;} |
6152 | { (exit 1); exit 1; }; } | |
3beb1315 | 6153 | fi;; |
53d60c04 KC |
6154 | esac |
6155 | done` || { (exit 1); exit 1; } | |
6156 | _ACEOF | |
6157 | cat >>$CONFIG_STATUS <<_ACEOF | |
6158 | sed "$ac_vpsub | |
6159 | $extrasub | |
6160 | _ACEOF | |
6161 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6162 | :t | |
6163 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
6164 | s,@configure_input@,$configure_input,;t t | |
6165 | s,@srcdir@,$ac_srcdir,;t t | |
6166 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
6167 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
6168 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
6169 | s,@builddir@,$ac_builddir,;t t | |
6170 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
6171 | s,@top_builddir@,$ac_top_builddir,;t t | |
6172 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
6173 | s,@INSTALL@,$ac_INSTALL,;t t | |
6174 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
6175 | rm -f $tmp/stdin | |
6176 | if test x"$ac_file" != x-; then | |
6177 | mv $tmp/out $ac_file | |
6178 | else | |
6179 | cat $tmp/out | |
6180 | rm -f $tmp/out | |
6181 | fi | |
6182 | ||
6183 | done | |
6184 | _ACEOF | |
6185 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6186 | ||
6187 | # | |
6188 | # CONFIG_HEADER section. | |
6189 | # | |
bd8757b3 APB |
6190 | |
6191 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
6192 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
6193 | # | |
6194 | # ac_d sets the value in "#define NAME VALUE" lines. | |
3beb1315 HPN |
6195 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
6196 | ac_dB='[ ].*$,\1#\2' | |
53d60c04 KC |
6197 | ac_dC=' ' |
6198 | ac_dD=',;t' | |
6199 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
3beb1315 | 6200 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
53d60c04 | 6201 | ac_uB='$,\1#\2define\3' |
bd8757b3 | 6202 | ac_uC=' ' |
53d60c04 KC |
6203 | ac_uD=',;t' |
6204 | ||
6205 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
bd8757b3 | 6206 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
53d60c04 KC |
6207 | case $ac_file in |
6208 | - | *:- | *:-:* ) # input from stdin | |
3beb1315 HPN |
6209 | cat >$tmp/stdin |
6210 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
6211 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
53d60c04 | 6212 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
3beb1315 | 6213 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
53d60c04 | 6214 | * ) ac_file_in=$ac_file.in ;; |
bd8757b3 APB |
6215 | esac |
6216 | ||
53d60c04 KC |
6217 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
6218 | echo "$as_me: creating $ac_file" >&6;} | |
6219 | ||
6220 | # First look for the input files in the build tree, otherwise in the | |
6221 | # src tree. | |
6222 | ac_file_inputs=`IFS=: | |
6223 | for f in $ac_file_in; do | |
6224 | case $f in | |
6225 | -) echo $tmp/stdin ;; | |
6226 | [\\/$]*) | |
3beb1315 HPN |
6227 | # Absolute (can't be DOS-style, as IFS=:) |
6228 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
53d60c04 KC |
6229 | echo "$as_me: error: cannot find input file: $f" >&2;} |
6230 | { (exit 1); exit 1; }; } | |
3beb1315 HPN |
6231 | # Do quote $f, to prevent DOS paths from being IFS'd. |
6232 | echo "$f";; | |
53d60c04 | 6233 | *) # Relative |
3beb1315 HPN |
6234 | if test -f "$f"; then |
6235 | # Build tree | |
6236 | echo "$f" | |
6237 | elif test -f "$srcdir/$f"; then | |
6238 | # Source tree | |
6239 | echo "$srcdir/$f" | |
6240 | else | |
6241 | # /dev/null tree | |
6242 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
53d60c04 KC |
6243 | echo "$as_me: error: cannot find input file: $f" >&2;} |
6244 | { (exit 1); exit 1; }; } | |
3beb1315 | 6245 | fi;; |
53d60c04 KC |
6246 | esac |
6247 | done` || { (exit 1); exit 1; } | |
6248 | # Remove the trailing spaces. | |
3beb1315 | 6249 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
53d60c04 KC |
6250 | |
6251 | _ACEOF | |
6252 | ||
6253 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
6254 | # `conftest.undefs', that substitutes the proper values into | |
6255 | # config.h.in to produce config.h. The first handles `#define' | |
6256 | # templates, and the second `#undef' templates. | |
6257 | # And first: Protect against being on the right side of a sed subst in | |
6258 | # config.status. Protect against being in an unquoted here document | |
6259 | # in config.status. | |
6260 | rm -f conftest.defines conftest.undefs | |
6261 | # Using a here document instead of a string reduces the quoting nightmare. | |
6262 | # Putting comments in sed scripts is not portable. | |
6263 | # | |
6264 | # `end' is used to avoid that the second main sed command (meant for | |
6265 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
6266 | # See the Autoconf documentation for `clear'. | |
6267 | cat >confdef2sed.sed <<\_ACEOF | |
6268 | s/[\\&,]/\\&/g | |
6269 | s,[\\$`],\\&,g | |
6270 | t clear | |
6271 | : clear | |
3beb1315 | 6272 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
53d60c04 | 6273 | t end |
3beb1315 | 6274 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
53d60c04 KC |
6275 | : end |
6276 | _ACEOF | |
6277 | # If some macros were called several times there might be several times | |
6278 | # the same #defines, which is useless. Nevertheless, we may not want to | |
6279 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
6280 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
6281 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
6282 | rm -f confdef2sed.sed | |
bd8757b3 APB |
6283 | |
6284 | # This sed command replaces #undef with comments. This is necessary, for | |
6285 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
6286 | # on some systems where configure will not decide to define it. | |
53d60c04 | 6287 | cat >>conftest.undefs <<\_ACEOF |
3beb1315 | 6288 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
53d60c04 KC |
6289 | _ACEOF |
6290 | ||
6291 | # Break up conftest.defines because some shells have a limit on the size | |
6292 | # of here documents, and old seds have small limits too (100 cmds). | |
6293 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
3beb1315 | 6294 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
53d60c04 KC |
6295 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
6296 | echo ' :' >>$CONFIG_STATUS | |
6297 | rm -f conftest.tail | |
6298 | while grep . conftest.defines >/dev/null | |
6299 | do | |
6300 | # Write a limited-size here document to $tmp/defines.sed. | |
6301 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
6302 | # Speed up: don't consider the non `#define' lines. | |
3beb1315 | 6303 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
53d60c04 KC |
6304 | # Work around the forget-to-reset-the-flag bug. |
6305 | echo 't clr' >>$CONFIG_STATUS | |
6306 | echo ': clr' >>$CONFIG_STATUS | |
6307 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
6308 | echo 'CEOF | |
6309 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
6310 | rm -f $tmp/in | |
6311 | mv $tmp/out $tmp/in | |
6312 | ' >>$CONFIG_STATUS | |
6313 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
6314 | rm -f conftest.defines | |
6315 | mv conftest.tail conftest.defines | |
6316 | done | |
6317 | rm -f conftest.defines | |
6318 | echo ' fi # grep' >>$CONFIG_STATUS | |
6319 | echo >>$CONFIG_STATUS | |
bd8757b3 | 6320 | |
53d60c04 KC |
6321 | # Break up conftest.undefs because some shells have a limit on the size |
6322 | # of here documents, and old seds have small limits too (100 cmds). | |
6323 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
bd8757b3 | 6324 | rm -f conftest.tail |
53d60c04 | 6325 | while grep . conftest.undefs >/dev/null |
bd8757b3 | 6326 | do |
53d60c04 KC |
6327 | # Write a limited-size here document to $tmp/undefs.sed. |
6328 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
6329 | # Speed up: don't consider the non `#undef' | |
3beb1315 | 6330 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
53d60c04 KC |
6331 | # Work around the forget-to-reset-the-flag bug. |
6332 | echo 't clr' >>$CONFIG_STATUS | |
6333 | echo ': clr' >>$CONFIG_STATUS | |
6334 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
bd8757b3 | 6335 | echo 'CEOF |
53d60c04 KC |
6336 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
6337 | rm -f $tmp/in | |
6338 | mv $tmp/out $tmp/in | |
6339 | ' >>$CONFIG_STATUS | |
6340 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
6341 | rm -f conftest.undefs | |
6342 | mv conftest.tail conftest.undefs | |
6343 | done | |
6344 | rm -f conftest.undefs | |
6345 | ||
6346 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6347 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
6348 | # use $as_me), people would be surprised to read: | |
6349 | # /* config.h. Generated by config.status. */ | |
6350 | if test x"$ac_file" = x-; then | |
6351 | echo "/* Generated by configure. */" >$tmp/config.h | |
6352 | else | |
6353 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
6354 | fi | |
6355 | cat $tmp/in >>$tmp/config.h | |
6356 | rm -f $tmp/in | |
6357 | if test x"$ac_file" != x-; then | |
6358 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
6359 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
6360 | echo "$as_me: $ac_file is unchanged" >&6;} | |
6361 | else | |
6362 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
6363 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3beb1315 HPN |
6364 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
6365 | X"$ac_file" : 'X\(//\)$' \| \ | |
6366 | X"$ac_file" : 'X\(/\)' \| \ | |
6367 | . : '\(.\)' 2>/dev/null || | |
53d60c04 KC |
6368 | echo X"$ac_file" | |
6369 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6370 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6371 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6372 | /^X\(\/\).*/{ s//\1/; q; } | |
6373 | s/.*/./; q'` | |
6374 | { if $as_mkdir_p; then | |
6375 | mkdir -p "$ac_dir" | |
bd8757b3 | 6376 | else |
53d60c04 KC |
6377 | as_dir="$ac_dir" |
6378 | as_dirs= | |
6379 | while test ! -d "$as_dir"; do | |
6380 | as_dirs="$as_dir $as_dirs" | |
6381 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6382 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3beb1315 HPN |
6383 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
6384 | X"$as_dir" : 'X\(//\)$' \| \ | |
6385 | X"$as_dir" : 'X\(/\)' \| \ | |
6386 | . : '\(.\)' 2>/dev/null || | |
53d60c04 KC |
6387 | echo X"$as_dir" | |
6388 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6389 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6390 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6391 | /^X\(\/\).*/{ s//\1/; q; } | |
6392 | s/.*/./; q'` | |
6393 | done | |
6394 | test ! -n "$as_dirs" || mkdir $as_dirs | |
6395 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
6396 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
6397 | { (exit 1); exit 1; }; }; } | |
6398 | ||
6399 | rm -f $ac_file | |
6400 | mv $tmp/config.h $ac_file | |
bd8757b3 | 6401 | fi |
53d60c04 KC |
6402 | else |
6403 | cat $tmp/config.h | |
6404 | rm -f $tmp/config.h | |
bd8757b3 | 6405 | fi |
53d60c04 KC |
6406 | # Compute $ac_file's index in $config_headers. |
6407 | _am_stamp_count=1 | |
6408 | for _am_header in $config_headers :; do | |
6409 | case $_am_header in | |
6410 | $ac_file | $ac_file:* ) | |
6411 | break ;; | |
6412 | * ) | |
6413 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
6414 | esac | |
6415 | done | |
6416 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
6417 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3beb1315 HPN |
6418 | X$ac_file : 'X\(//\)[^/]' \| \ |
6419 | X$ac_file : 'X\(//\)$' \| \ | |
6420 | X$ac_file : 'X\(/\)' \| \ | |
6421 | . : '\(.\)' 2>/dev/null || | |
53d60c04 KC |
6422 | echo X$ac_file | |
6423 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6424 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6425 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6426 | /^X\(\/\).*/{ s//\1/; q; } | |
6427 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
6428 | done | |
6429 | _ACEOF | |
6430 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bd8757b3 | 6431 | |
53d60c04 KC |
6432 | # |
6433 | # CONFIG_COMMANDS section. | |
6434 | # | |
6435 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
6436 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
6437 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
6438 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
6439 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3beb1315 HPN |
6440 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
6441 | X"$ac_dest" : 'X\(//\)$' \| \ | |
6442 | X"$ac_dest" : 'X\(/\)' \| \ | |
6443 | . : '\(.\)' 2>/dev/null || | |
53d60c04 KC |
6444 | echo X"$ac_dest" | |
6445 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6446 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6447 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6448 | /^X\(\/\).*/{ s//\1/; q; } | |
6449 | s/.*/./; q'` | |
3beb1315 HPN |
6450 | { if $as_mkdir_p; then |
6451 | mkdir -p "$ac_dir" | |
6452 | else | |
6453 | as_dir="$ac_dir" | |
6454 | as_dirs= | |
6455 | while test ! -d "$as_dir"; do | |
6456 | as_dirs="$as_dir $as_dirs" | |
6457 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6458 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6459 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6460 | X"$as_dir" : 'X\(//\)$' \| \ | |
6461 | X"$as_dir" : 'X\(/\)' \| \ | |
6462 | . : '\(.\)' 2>/dev/null || | |
6463 | echo X"$as_dir" | | |
6464 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6465 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6466 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6467 | /^X\(\/\).*/{ s//\1/; q; } | |
6468 | s/.*/./; q'` | |
6469 | done | |
6470 | test ! -n "$as_dirs" || mkdir $as_dirs | |
6471 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
6472 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
6473 | { (exit 1); exit 1; }; }; } | |
6474 | ||
53d60c04 KC |
6475 | ac_builddir=. |
6476 | ||
6477 | if test "$ac_dir" != .; then | |
6478 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
6479 | # A "../" for each directory in $ac_dir_suffix. | |
6480 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
6481 | else | |
6482 | ac_dir_suffix= ac_top_builddir= | |
6483 | fi | |
6484 | ||
6485 | case $srcdir in | |
6486 | .) # No --srcdir option. We are building in place. | |
6487 | ac_srcdir=. | |
6488 | if test -z "$ac_top_builddir"; then | |
6489 | ac_top_srcdir=. | |
6490 | else | |
6491 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
6492 | fi ;; | |
6493 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
6494 | ac_srcdir=$srcdir$ac_dir_suffix; | |
6495 | ac_top_srcdir=$srcdir ;; | |
6496 | *) # Relative path. | |
6497 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
6498 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6499 | esac | |
8ab705be KC |
6500 | |
6501 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
6502 | # the directories may not exist. | |
6503 | case `pwd` in | |
6504 | .) ac_abs_builddir="$ac_dir";; | |
3beb1315 | 6505 | *) |
8ab705be KC |
6506 | case "$ac_dir" in |
6507 | .) ac_abs_builddir=`pwd`;; | |
6508 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
6509 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
3beb1315 HPN |
6510 | esac;; |
6511 | esac | |
8ab705be | 6512 | case $ac_abs_builddir in |
3beb1315 HPN |
6513 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
6514 | *) | |
6515 | case ${ac_top_builddir}. in | |
8ab705be | 6516 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
3beb1315 | 6517 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
8ab705be | 6518 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
3beb1315 HPN |
6519 | esac;; |
6520 | esac | |
8ab705be | 6521 | case $ac_abs_builddir in |
3beb1315 HPN |
6522 | .) ac_abs_srcdir=$ac_srcdir;; |
6523 | *) | |
6524 | case $ac_srcdir in | |
8ab705be | 6525 | .) ac_abs_srcdir=$ac_abs_builddir;; |
3beb1315 | 6526 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
8ab705be | 6527 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
3beb1315 HPN |
6528 | esac;; |
6529 | esac | |
8ab705be | 6530 | case $ac_abs_builddir in |
3beb1315 HPN |
6531 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
6532 | *) | |
6533 | case $ac_top_srcdir in | |
8ab705be | 6534 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
3beb1315 | 6535 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
8ab705be | 6536 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
3beb1315 HPN |
6537 | esac;; |
6538 | esac | |
53d60c04 KC |
6539 | |
6540 | ||
6541 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
6542 | echo "$as_me: executing $ac_dest commands" >&6;} | |
6543 | case $ac_dest in | |
6544 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
6545 | # Strip MF so we end up with the name of the file. | |
6546 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
6547 | # Check whether this is an Automake generated Makefile or not. | |
6548 | # We used to match only the files named `Makefile.in', but | |
6549 | # some people rename them; so instead we look at the file content. | |
6550 | # Grep'ing the first line is not enough: some people post-process | |
6551 | # each Makefile.in and add a new line on top of each file to say so. | |
6552 | # So let's grep whole file. | |
6553 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
6554 | dirpart=`(dirname "$mf") 2>/dev/null || | |
6555 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3beb1315 HPN |
6556 | X"$mf" : 'X\(//\)[^/]' \| \ |
6557 | X"$mf" : 'X\(//\)$' \| \ | |
6558 | X"$mf" : 'X\(/\)' \| \ | |
6559 | . : '\(.\)' 2>/dev/null || | |
53d60c04 KC |
6560 | echo X"$mf" | |
6561 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6562 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6563 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6564 | /^X\(\/\).*/{ s//\1/; q; } | |
6565 | s/.*/./; q'` | |
6566 | else | |
6567 | continue | |
6568 | fi | |
3c374d91 KC |
6569 | # Extract the definition of DEPDIR, am__include, and am__quote |
6570 | # from the Makefile without running `make'. | |
608cb764 | 6571 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
53d60c04 | 6572 | test -z "$DEPDIR" && continue |
3c374d91 KC |
6573 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
6574 | test -z "am__include" && continue | |
6575 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
53d60c04 | 6576 | # When using ansi2knr, U may be empty or an underscore; expand it |
608cb764 | 6577 | U=`sed -n 's/^U = //p' < "$mf"` |
3c374d91 KC |
6578 | # Find all dependency output files, they are included files with |
6579 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
6580 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
6581 | # expansion. | |
6582 | for file in `sed -n " | |
6583 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
53d60c04 KC |
6584 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
6585 | # Make sure the directory exists. | |
6586 | test -f "$dirpart/$file" && continue | |
6587 | fdir=`(dirname "$file") 2>/dev/null || | |
6588 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3beb1315 HPN |
6589 | X"$file" : 'X\(//\)[^/]' \| \ |
6590 | X"$file" : 'X\(//\)$' \| \ | |
6591 | X"$file" : 'X\(/\)' \| \ | |
6592 | . : '\(.\)' 2>/dev/null || | |
53d60c04 KC |
6593 | echo X"$file" | |
6594 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6595 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6596 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6597 | /^X\(\/\).*/{ s//\1/; q; } | |
6598 | s/.*/./; q'` | |
6599 | { if $as_mkdir_p; then | |
6600 | mkdir -p $dirpart/$fdir | |
6601 | else | |
6602 | as_dir=$dirpart/$fdir | |
6603 | as_dirs= | |
6604 | while test ! -d "$as_dir"; do | |
6605 | as_dirs="$as_dir $as_dirs" | |
6606 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6607 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3beb1315 HPN |
6608 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
6609 | X"$as_dir" : 'X\(//\)$' \| \ | |
6610 | X"$as_dir" : 'X\(/\)' \| \ | |
6611 | . : '\(.\)' 2>/dev/null || | |
53d60c04 KC |
6612 | echo X"$as_dir" | |
6613 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6614 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6615 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6616 | /^X\(\/\).*/{ s//\1/; q; } | |
6617 | s/.*/./; q'` | |
6618 | done | |
6619 | test ! -n "$as_dirs" || mkdir $as_dirs | |
6620 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
6621 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
6622 | { (exit 1); exit 1; }; }; } | |
bd8757b3 | 6623 | |
53d60c04 KC |
6624 | # echo "creating $dirpart/$file" |
6625 | echo '# dummy' > "$dirpart/$file" | |
6626 | done | |
6627 | done | |
6628 | ;; | |
6629 | esac | |
6630 | done | |
6631 | _ACEOF | |
bd8757b3 | 6632 | |
53d60c04 | 6633 | cat >>$CONFIG_STATUS <<\_ACEOF |
bd8757b3 | 6634 | |
53d60c04 KC |
6635 | { (exit 0); exit 0; } |
6636 | _ACEOF | |
bd8757b3 | 6637 | chmod +x $CONFIG_STATUS |
53d60c04 KC |
6638 | ac_clean_files=$ac_clean_files_save |
6639 | ||
6640 | ||
6641 | # configure is writing to config.log, and then calls config.status. | |
6642 | # config.status does its own redirection, appending to config.log. | |
6643 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
6644 | # by configure, so config.status won't be able to write to it; its | |
6645 | # output is simply discarded. So we exec the FD to /dev/null, | |
6646 | # effectively closing config.log, so it can be properly (re)opened and | |
6647 | # appended to by config.status. When coming back to configure, we | |
6648 | # need to make the FD available again. | |
6649 | if test "$no_create" != yes; then | |
6650 | ac_cs_success=: | |
6651 | ac_config_status_args= | |
6652 | test "$silent" = yes && | |
6653 | ac_config_status_args="$ac_config_status_args --quiet" | |
6654 | exec 5>/dev/null | |
6655 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
6656 | exec 5>>config.log | |
6657 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
6658 | # would make configure fail if this is the last instruction. | |
6659 | $ac_cs_success || { (exit 1); exit 1; } | |
6660 | fi | |
bd8757b3 | 6661 |