]>
Commit | Line | Data |
---|---|---|
6a161fa9 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
4801580b | 3 | # Generated by GNU Autoconf 2.59 for GRUB 1.91. |
6a161fa9 | 4 | # |
3b1139cb | 5 | # Report bugs to <bug-grub@gnu.org>. |
6a161fa9 | 6 | # |
924b6140 | 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
6a161fa9 | 8 | # This configure script is free software; the Free Software Foundation |
9 | # gives unlimited permission to copy, distribute and modify it. | |
6a161fa9 | 10 | ## --------------------- ## |
11 | ## M4sh Initialization. ## | |
12 | ## --------------------- ## | |
13 | ||
14 | # Be Bourne compatible | |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16 | emulate sh | |
17 | NULLCMD=: | |
98d15063 | 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
6a161fa9 | 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
22 | set -o posix | |
23 | fi | |
924b6140 | 24 | DUALCASE=1; export DUALCASE # for MKS sh |
6a161fa9 | 25 | |
6a161fa9 | 26 | # Support unset when possible. |
924b6140 | 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6a161fa9 | 28 | as_unset=unset |
29 | else | |
30 | as_unset=false | |
31 | fi | |
32 | ||
98d15063 | 33 | |
34 | # Work around bugs in pre-3.0 UWIN ksh. | |
35 | $as_unset ENV MAIL MAILPATH | |
36 | PS1='$ ' | |
37 | PS2='> ' | |
38 | PS4='+ ' | |
39 | ||
40 | # NLS nuisances. | |
41 | for as_var in \ | |
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
44 | LC_TELEPHONE LC_TIME | |
45 | do | |
924b6140 | 46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
98d15063 | 47 | eval $as_var=C; export $as_var |
48 | else | |
49 | $as_unset $as_var | |
50 | fi | |
51 | done | |
52 | ||
53 | # Required to use basename. | |
54 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
55 | as_expr=expr | |
56 | else | |
57 | as_expr=false | |
58 | fi | |
59 | ||
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
61 | as_basename=basename | |
62 | else | |
63 | as_basename=false | |
64 | fi | |
6a161fa9 | 65 | |
66 | ||
67 | # Name of the executable. | |
98d15063 | 68 | as_me=`$as_basename "$0" || |
6a161fa9 | 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
70 | X"$0" : 'X\(//\)$' \| \ | |
71 | X"$0" : 'X\(/\)$' \| \ | |
72 | . : '\(.\)' 2>/dev/null || | |
73 | echo X/"$0" | | |
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
76 | /^X\/\(\/\).*/{ s//\1/; q; } | |
77 | s/.*/./; q'` | |
78 | ||
98d15063 | 79 | |
6a161fa9 | 80 | # PATH needs CR, and LINENO needs CR and PATH. |
81 | # Avoid depending upon Character Ranges. | |
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
85 | as_cr_digits='0123456789' | |
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
87 | ||
88 | # The user is always right. | |
89 | if test "${PATH_SEPARATOR+set}" != set; then | |
98d15063 | 90 | echo "#! /bin/sh" >conf$$.sh |
91 | echo "exit 0" >>conf$$.sh | |
92 | chmod +x conf$$.sh | |
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6a161fa9 | 94 | PATH_SEPARATOR=';' |
95 | else | |
96 | PATH_SEPARATOR=: | |
97 | fi | |
98d15063 | 98 | rm -f conf$$.sh |
6a161fa9 | 99 | fi |
100 | ||
101 | ||
102 | as_lineno_1=$LINENO | |
103 | as_lineno_2=$LINENO | |
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
105 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
107 | # Find who we are. Look in the path if we contain no path at all | |
108 | # relative or not. | |
109 | case $0 in | |
110 | *[\\/]* ) as_myself=$0 ;; | |
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
112 | for as_dir in $PATH | |
113 | do | |
114 | IFS=$as_save_IFS | |
115 | test -z "$as_dir" && as_dir=. | |
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
117 | done | |
118 | ||
119 | ;; | |
120 | esac | |
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
122 | # in which case we are not to be found in the path. | |
123 | if test "x$as_myself" = x; then | |
124 | as_myself=$0 | |
125 | fi | |
126 | if test ! -f "$as_myself"; then | |
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
128 | { (exit 1); exit 1; }; } | |
129 | fi | |
130 | case $CONFIG_SHELL in | |
131 | '') | |
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
134 | do | |
135 | IFS=$as_save_IFS | |
136 | test -z "$as_dir" && as_dir=. | |
137 | for as_base in sh bash ksh sh5; do | |
138 | case $as_dir in | |
139 | /*) | |
140 | if ("$as_dir/$as_base" -c ' | |
141 | as_lineno_1=$LINENO | |
142 | as_lineno_2=$LINENO | |
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
144 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
98d15063 | 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
6a161fa9 | 148 | CONFIG_SHELL=$as_dir/$as_base |
149 | export CONFIG_SHELL | |
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
151 | fi;; | |
152 | esac | |
153 | done | |
154 | done | |
155 | ;; | |
156 | esac | |
157 | ||
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
159 | # uniformly replaced by the line number. The first 'sed' inserts a | |
160 | # line-number line before each line; the second 'sed' does the real | |
161 | # work. The second script uses 'N' to pair each line-number line | |
162 | # with the numbered line, and appends trailing '-' during | |
163 | # substitution so that $LINENO is not a special case at line end. | |
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
166 | sed '=' <$as_myself | | |
167 | sed ' | |
168 | N | |
169 | s,$,-, | |
170 | : loop | |
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
172 | t loop | |
173 | s,-$,, | |
174 | s,^['$as_cr_digits']*\n,, | |
175 | ' >$as_me.lineno && | |
176 | chmod +x $as_me.lineno || | |
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
178 | { (exit 1); exit 1; }; } | |
179 | ||
180 | # Don't try to exec as it changes $[0], causing all sort of problems | |
181 | # (the dirname of $[0] is not the place where we might find the | |
182 | # original and so on. Autoconf is especially sensible to this). | |
183 | . ./$as_me.lineno | |
184 | # Exit status is that of the last command. | |
185 | exit | |
186 | } | |
187 | ||
188 | ||
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
190 | *c*,-n*) ECHO_N= ECHO_C=' | |
191 | ' ECHO_T=' ' ;; | |
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
194 | esac | |
195 | ||
196 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
197 | as_expr=expr | |
198 | else | |
199 | as_expr=false | |
200 | fi | |
201 | ||
202 | rm -f conf$$ conf$$.exe conf$$.file | |
203 | echo >conf$$.file | |
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
205 | # We could just check for DJGPP; but this test a) works b) is more generic | |
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
207 | if test -f conf$$.exe; then | |
208 | # Don't use ln at all; we don't have any links | |
209 | as_ln_s='cp -p' | |
210 | else | |
211 | as_ln_s='ln -s' | |
212 | fi | |
213 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
214 | as_ln_s=ln | |
215 | else | |
216 | as_ln_s='cp -p' | |
217 | fi | |
218 | rm -f conf$$ conf$$.exe conf$$.file | |
219 | ||
98d15063 | 220 | if mkdir -p . 2>/dev/null; then |
221 | as_mkdir_p=: | |
222 | else | |
924b6140 | 223 | test -d ./-p && rmdir ./-p |
98d15063 | 224 | as_mkdir_p=false |
225 | fi | |
226 | ||
6a161fa9 | 227 | as_executable_p="test -f" |
228 | ||
229 | # Sed expression to map a string onto a valid CPP name. | |
924b6140 | 230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
6a161fa9 | 231 | |
232 | # Sed expression to map a string onto a valid variable name. | |
924b6140 | 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
6a161fa9 | 234 | |
235 | ||
236 | # IFS | |
237 | # We need space, tab and new line, in precisely that order. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $as_nl" | |
241 | ||
242 | # CDPATH. | |
98d15063 | 243 | $as_unset CDPATH |
6a161fa9 | 244 | |
245 | ||
246 | # Name of the host. | |
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
248 | # so uname gets run too. | |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
250 | ||
251 | exec 6>&1 | |
252 | ||
253 | # | |
254 | # Initializations. | |
255 | # | |
256 | ac_default_prefix=/usr/local | |
98d15063 | 257 | ac_config_libobj_dir=. |
6a161fa9 | 258 | cross_compiling=no |
259 | subdirs= | |
260 | MFLAGS= | |
261 | MAKEFLAGS= | |
262 | SHELL=${CONFIG_SHELL-/bin/sh} | |
263 | ||
264 | # Maximum number of lines to put in a shell here document. | |
265 | # This variable seems obsolete. It should probably be removed, and | |
266 | # only ac_max_sed_lines should be used. | |
267 | : ${ac_max_here_lines=38} | |
268 | ||
269 | # Identity of this package. | |
3b1139cb | 270 | PACKAGE_NAME='GRUB' |
271 | PACKAGE_TARNAME='grub' | |
4801580b | 272 | PACKAGE_VERSION='1.91' |
273 | PACKAGE_STRING='GRUB 1.91' | |
3b1139cb | 274 | PACKAGE_BUGREPORT='bug-grub@gnu.org' |
6a161fa9 | 275 | |
4b13b216 | 276 | ac_unique_file="include/grub/dl.h" |
6a161fa9 | 277 | # Factoring default headers for most tests. |
278 | ac_includes_default="\ | |
279 | #include <stdio.h> | |
280 | #if HAVE_SYS_TYPES_H | |
281 | # include <sys/types.h> | |
282 | #endif | |
283 | #if HAVE_SYS_STAT_H | |
284 | # include <sys/stat.h> | |
285 | #endif | |
286 | #if STDC_HEADERS | |
287 | # include <stdlib.h> | |
288 | # include <stddef.h> | |
289 | #else | |
290 | # if HAVE_STDLIB_H | |
291 | # include <stdlib.h> | |
292 | # endif | |
293 | #endif | |
294 | #if HAVE_STRING_H | |
295 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
296 | # include <memory.h> | |
297 | # endif | |
298 | # include <string.h> | |
299 | #endif | |
300 | #if HAVE_STRINGS_H | |
301 | # include <strings.h> | |
302 | #endif | |
303 | #if HAVE_INTTYPES_H | |
304 | # include <inttypes.h> | |
305 | #else | |
306 | # if HAVE_STDINT_H | |
307 | # include <stdint.h> | |
308 | # endif | |
309 | #endif | |
310 | #if HAVE_UNISTD_H | |
311 | # include <unistd.h> | |
312 | #endif" | |
313 | ||
4ac9bd04 | 314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE OBJCOPY ac_ct_OBJCOPY STRIP ac_ct_STRIP NM ac_ct_NM LD ac_ct_LD RUBY BUILD_CC CPP EGREP LIBLZO LIBCURSES LIBOBJS LTLIBOBJS' |
98d15063 | 315 | ac_subst_files='' |
6a161fa9 | 316 | |
317 | # Initialize some variables set by options. | |
318 | ac_init_help= | |
319 | ac_init_version=false | |
320 | # The variables have the same names as the options, with | |
321 | # dashes changed to underlines. | |
322 | cache_file=/dev/null | |
323 | exec_prefix=NONE | |
324 | no_create= | |
325 | no_recursion= | |
326 | prefix=NONE | |
327 | program_prefix=NONE | |
328 | program_suffix=NONE | |
329 | program_transform_name=s,x,x, | |
330 | silent= | |
331 | site= | |
332 | srcdir= | |
333 | verbose= | |
334 | x_includes=NONE | |
335 | x_libraries=NONE | |
336 | ||
337 | # Installation directory options. | |
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
339 | # and all the variables that are supposed to be based on exec_prefix | |
340 | # by default will actually change. | |
341 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
342 | bindir='${exec_prefix}/bin' | |
343 | sbindir='${exec_prefix}/sbin' | |
344 | libexecdir='${exec_prefix}/libexec' | |
345 | datadir='${prefix}/share' | |
346 | sysconfdir='${prefix}/etc' | |
347 | sharedstatedir='${prefix}/com' | |
348 | localstatedir='${prefix}/var' | |
349 | libdir='${exec_prefix}/lib' | |
350 | includedir='${prefix}/include' | |
351 | oldincludedir='/usr/include' | |
352 | infodir='${prefix}/info' | |
353 | mandir='${prefix}/man' | |
354 | ||
355 | ac_prev= | |
356 | for ac_option | |
357 | do | |
358 | # If the previous option needs an argument, assign it. | |
359 | if test -n "$ac_prev"; then | |
360 | eval "$ac_prev=\$ac_option" | |
361 | ac_prev= | |
362 | continue | |
363 | fi | |
364 | ||
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
366 | ||
367 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
368 | ||
369 | case $ac_option in | |
370 | ||
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
372 | ac_prev=bindir ;; | |
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
374 | bindir=$ac_optarg ;; | |
375 | ||
376 | -build | --build | --buil | --bui | --bu) | |
377 | ac_prev=build_alias ;; | |
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
379 | build_alias=$ac_optarg ;; | |
380 | ||
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
383 | ac_prev=cache_file ;; | |
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
386 | cache_file=$ac_optarg ;; | |
387 | ||
388 | --config-cache | -C) | |
389 | cache_file=config.cache ;; | |
390 | ||
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
392 | ac_prev=datadir ;; | |
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
394 | | --da=*) | |
395 | datadir=$ac_optarg ;; | |
396 | ||
397 | -disable-* | --disable-*) | |
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
399 | # Reject names that are not valid shell variable names. | |
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
402 | { (exit 1); exit 1; }; } | |
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
404 | eval "enable_$ac_feature=no" ;; | |
405 | ||
406 | -enable-* | --enable-*) | |
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
408 | # Reject names that are not valid shell variable names. | |
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
411 | { (exit 1); exit 1; }; } | |
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
413 | case $ac_option in | |
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
415 | *) ac_optarg=yes ;; | |
416 | esac | |
417 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
418 | ||
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
421 | | --exec | --exe | --ex) | |
422 | ac_prev=exec_prefix ;; | |
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
425 | | --exec=* | --exe=* | --ex=*) | |
426 | exec_prefix=$ac_optarg ;; | |
427 | ||
428 | -gas | --gas | --ga | --g) | |
429 | # Obsolete; use --with-gas. | |
430 | with_gas=yes ;; | |
431 | ||
432 | -help | --help | --hel | --he | -h) | |
433 | ac_init_help=long ;; | |
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
435 | ac_init_help=recursive ;; | |
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
437 | ac_init_help=short ;; | |
438 | ||
439 | -host | --host | --hos | --ho) | |
440 | ac_prev=host_alias ;; | |
441 | -host=* | --host=* | --hos=* | --ho=*) | |
442 | host_alias=$ac_optarg ;; | |
443 | ||
444 | -includedir | --includedir | --includedi | --included | --include \ | |
445 | | --includ | --inclu | --incl | --inc) | |
446 | ac_prev=includedir ;; | |
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
449 | includedir=$ac_optarg ;; | |
450 | ||
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
452 | ac_prev=infodir ;; | |
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
454 | infodir=$ac_optarg ;; | |
455 | ||
456 | -libdir | --libdir | --libdi | --libd) | |
457 | ac_prev=libdir ;; | |
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
459 | libdir=$ac_optarg ;; | |
460 | ||
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
462 | | --libexe | --libex | --libe) | |
463 | ac_prev=libexecdir ;; | |
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
465 | | --libexe=* | --libex=* | --libe=*) | |
466 | libexecdir=$ac_optarg ;; | |
467 | ||
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
469 | | --localstate | --localstat | --localsta | --localst \ | |
470 | | --locals | --local | --loca | --loc | --lo) | |
471 | ac_prev=localstatedir ;; | |
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
475 | localstatedir=$ac_optarg ;; | |
476 | ||
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
478 | ac_prev=mandir ;; | |
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
480 | mandir=$ac_optarg ;; | |
481 | ||
482 | -nfp | --nfp | --nf) | |
483 | # Obsolete; use --without-fp. | |
484 | with_fp=no ;; | |
485 | ||
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
487 | | --no-cr | --no-c | -n) | |
488 | no_create=yes ;; | |
489 | ||
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
492 | no_recursion=yes ;; | |
493 | ||
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
496 | | --oldin | --oldi | --old | --ol | --o) | |
497 | ac_prev=oldincludedir ;; | |
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
501 | oldincludedir=$ac_optarg ;; | |
502 | ||
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
504 | ac_prev=prefix ;; | |
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
506 | prefix=$ac_optarg ;; | |
507 | ||
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
509 | | --program-pre | --program-pr | --program-p) | |
510 | ac_prev=program_prefix ;; | |
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
513 | program_prefix=$ac_optarg ;; | |
514 | ||
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
516 | | --program-suf | --program-su | --program-s) | |
517 | ac_prev=program_suffix ;; | |
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
520 | program_suffix=$ac_optarg ;; | |
521 | ||
522 | -program-transform-name | --program-transform-name \ | |
523 | | --program-transform-nam | --program-transform-na \ | |
524 | | --program-transform-n | --program-transform- \ | |
525 | | --program-transform | --program-transfor \ | |
526 | | --program-transfo | --program-transf \ | |
527 | | --program-trans | --program-tran \ | |
528 | | --progr-tra | --program-tr | --program-t) | |
529 | ac_prev=program_transform_name ;; | |
530 | -program-transform-name=* | --program-transform-name=* \ | |
531 | | --program-transform-nam=* | --program-transform-na=* \ | |
532 | | --program-transform-n=* | --program-transform-=* \ | |
533 | | --program-transform=* | --program-transfor=* \ | |
534 | | --program-transfo=* | --program-transf=* \ | |
535 | | --program-trans=* | --program-tran=* \ | |
536 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
537 | program_transform_name=$ac_optarg ;; | |
538 | ||
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
540 | | -silent | --silent | --silen | --sile | --sil) | |
541 | silent=yes ;; | |
542 | ||
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
544 | ac_prev=sbindir ;; | |
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
546 | | --sbi=* | --sb=*) | |
547 | sbindir=$ac_optarg ;; | |
548 | ||
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
551 | | --sharedst | --shareds | --shared | --share | --shar \ | |
552 | | --sha | --sh) | |
553 | ac_prev=sharedstatedir ;; | |
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
557 | | --sha=* | --sh=*) | |
558 | sharedstatedir=$ac_optarg ;; | |
559 | ||
560 | -site | --site | --sit) | |
561 | ac_prev=site ;; | |
562 | -site=* | --site=* | --sit=*) | |
563 | site=$ac_optarg ;; | |
564 | ||
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
566 | ac_prev=srcdir ;; | |
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
568 | srcdir=$ac_optarg ;; | |
569 | ||
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
571 | | --syscon | --sysco | --sysc | --sys | --sy) | |
572 | ac_prev=sysconfdir ;; | |
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
575 | sysconfdir=$ac_optarg ;; | |
576 | ||
577 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
578 | ac_prev=target_alias ;; | |
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
580 | target_alias=$ac_optarg ;; | |
581 | ||
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
583 | verbose=yes ;; | |
584 | ||
585 | -version | --version | --versio | --versi | --vers | -V) | |
586 | ac_init_version=: ;; | |
587 | ||
588 | -with-* | --with-*) | |
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
590 | # Reject names that are not valid shell variable names. | |
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
593 | { (exit 1); exit 1; }; } | |
594 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
595 | case $ac_option in | |
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
597 | *) ac_optarg=yes ;; | |
598 | esac | |
599 | eval "with_$ac_package='$ac_optarg'" ;; | |
600 | ||
601 | -without-* | --without-*) | |
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
603 | # Reject names that are not valid shell variable names. | |
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
606 | { (exit 1); exit 1; }; } | |
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
608 | eval "with_$ac_package=no" ;; | |
609 | ||
610 | --x) | |
611 | # Obsolete; use --with-x. | |
612 | with_x=yes ;; | |
613 | ||
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
615 | | --x-incl | --x-inc | --x-in | --x-i) | |
616 | ac_prev=x_includes ;; | |
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
619 | x_includes=$ac_optarg ;; | |
620 | ||
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
623 | ac_prev=x_libraries ;; | |
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
626 | x_libraries=$ac_optarg ;; | |
627 | ||
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
629 | Try \`$0 --help' for more information." >&2 | |
630 | { (exit 1); exit 1; }; } | |
631 | ;; | |
632 | ||
633 | *=*) | |
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
635 | # Reject names that are not valid shell variable names. | |
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
638 | { (exit 1); exit 1; }; } | |
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
640 | eval "$ac_envvar='$ac_optarg'" | |
641 | export $ac_envvar ;; | |
642 | ||
643 | *) | |
644 | # FIXME: should be removed in autoconf 3.0. | |
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
649 | ;; | |
650 | ||
651 | esac | |
652 | done | |
653 | ||
654 | if test -n "$ac_prev"; then | |
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
657 | { (exit 1); exit 1; }; } | |
658 | fi | |
659 | ||
660 | # Be sure to have absolute paths. | |
661 | for ac_var in exec_prefix prefix | |
662 | do | |
663 | eval ac_val=$`echo $ac_var` | |
664 | case $ac_val in | |
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
667 | { (exit 1); exit 1; }; };; | |
668 | esac | |
669 | done | |
670 | ||
671 | # Be sure to have absolute paths. | |
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
924b6140 | 673 | localstatedir libdir includedir oldincludedir infodir mandir |
6a161fa9 | 674 | do |
675 | eval ac_val=$`echo $ac_var` | |
676 | case $ac_val in | |
677 | [\\/$]* | ?:[\\/]* ) ;; | |
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
679 | { (exit 1); exit 1; }; };; | |
680 | esac | |
681 | done | |
682 | ||
683 | # There might be people who depend on the old broken behavior: `$host' | |
684 | # used to hold the argument of --host etc. | |
685 | # FIXME: To remove some day. | |
686 | build=$build_alias | |
687 | host=$host_alias | |
688 | target=$target_alias | |
689 | ||
690 | # FIXME: To remove some day. | |
691 | if test "x$host_alias" != x; then | |
692 | if test "x$build_alias" = x; then | |
693 | cross_compiling=maybe | |
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
695 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
696 | elif test "x$build_alias" != "x$host_alias"; then | |
697 | cross_compiling=yes | |
698 | fi | |
699 | fi | |
700 | ||
701 | ac_tool_prefix= | |
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
703 | ||
704 | test "$silent" = yes && exec 6>/dev/null | |
705 | ||
706 | ||
707 | # Find the source files, if location was not specified. | |
708 | if test -z "$srcdir"; then | |
709 | ac_srcdir_defaulted=yes | |
710 | # Try the directory containing this script, then its parent. | |
711 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
924b6140 | 713 | X"$0" : 'X\(//\)[^/]' \| \ |
714 | X"$0" : 'X\(//\)$' \| \ | |
715 | X"$0" : 'X\(/\)' \| \ | |
716 | . : '\(.\)' 2>/dev/null || | |
6a161fa9 | 717 | echo X"$0" | |
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
720 | /^X\(\/\/\)$/{ s//\1/; q; } | |
721 | /^X\(\/\).*/{ s//\1/; q; } | |
722 | s/.*/./; q'` | |
723 | srcdir=$ac_confdir | |
724 | if test ! -r $srcdir/$ac_unique_file; then | |
725 | srcdir=.. | |
726 | fi | |
727 | else | |
728 | ac_srcdir_defaulted=no | |
729 | fi | |
730 | if test ! -r $srcdir/$ac_unique_file; then | |
731 | if test "$ac_srcdir_defaulted" = yes; then | |
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
733 | { (exit 1); exit 1; }; } | |
734 | else | |
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
736 | { (exit 1); exit 1; }; } | |
737 | fi | |
738 | fi | |
98d15063 | 739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
741 | { (exit 1); exit 1; }; } | |
6a161fa9 | 742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
743 | ac_env_build_alias_set=${build_alias+set} | |
744 | ac_env_build_alias_value=$build_alias | |
745 | ac_cv_env_build_alias_set=${build_alias+set} | |
746 | ac_cv_env_build_alias_value=$build_alias | |
747 | ac_env_host_alias_set=${host_alias+set} | |
748 | ac_env_host_alias_value=$host_alias | |
749 | ac_cv_env_host_alias_set=${host_alias+set} | |
750 | ac_cv_env_host_alias_value=$host_alias | |
751 | ac_env_target_alias_set=${target_alias+set} | |
752 | ac_env_target_alias_value=$target_alias | |
753 | ac_cv_env_target_alias_set=${target_alias+set} | |
754 | ac_cv_env_target_alias_value=$target_alias | |
755 | ac_env_CC_set=${CC+set} | |
756 | ac_env_CC_value=$CC | |
757 | ac_cv_env_CC_set=${CC+set} | |
758 | ac_cv_env_CC_value=$CC | |
759 | ac_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_env_CFLAGS_value=$CFLAGS | |
761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_cv_env_CFLAGS_value=$CFLAGS | |
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_env_CPP_set=${CPP+set} | |
772 | ac_env_CPP_value=$CPP | |
773 | ac_cv_env_CPP_set=${CPP+set} | |
774 | ac_cv_env_CPP_value=$CPP | |
775 | ||
776 | # | |
777 | # Report the --help message. | |
778 | # | |
779 | if test "$ac_init_help" = "long"; then | |
780 | # Omit some internal or obsolete options to make the list less imposing. | |
781 | # This message is too long to be a string in the A/UX 3.1 sh. | |
782 | cat <<_ACEOF | |
4801580b | 783 | \`configure' configures GRUB 1.91 to adapt to many kinds of systems. |
6a161fa9 | 784 | |
785 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
786 | ||
787 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
788 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
789 | ||
790 | Defaults for the options are specified in brackets. | |
791 | ||
792 | Configuration: | |
793 | -h, --help display this help and exit | |
794 | --help=short display options specific to this package | |
795 | --help=recursive display the short help of all the included packages | |
796 | -V, --version display version information and exit | |
797 | -q, --quiet, --silent do not print \`checking...' messages | |
798 | --cache-file=FILE cache test results in FILE [disabled] | |
799 | -C, --config-cache alias for \`--cache-file=config.cache' | |
800 | -n, --no-create do not create output files | |
801 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
802 | ||
803 | _ACEOF | |
804 | ||
805 | cat <<_ACEOF | |
806 | Installation directories: | |
807 | --prefix=PREFIX install architecture-independent files in PREFIX | |
924b6140 | 808 | [$ac_default_prefix] |
6a161fa9 | 809 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
924b6140 | 810 | [PREFIX] |
6a161fa9 | 811 | |
812 | By default, \`make install' will install all the files in | |
813 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
814 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
815 | for instance \`--prefix=\$HOME'. | |
816 | ||
817 | For better control, use the options below. | |
818 | ||
819 | Fine tuning of the installation directories: | |
820 | --bindir=DIR user executables [EPREFIX/bin] | |
821 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
822 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
823 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
824 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
825 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
826 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
827 | --libdir=DIR object code libraries [EPREFIX/lib] | |
828 | --includedir=DIR C header files [PREFIX/include] | |
829 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
830 | --infodir=DIR info documentation [PREFIX/info] | |
831 | --mandir=DIR man documentation [PREFIX/man] | |
832 | _ACEOF | |
833 | ||
834 | cat <<\_ACEOF | |
835 | ||
836 | System types: | |
837 | --build=BUILD configure for building on BUILD [guessed] | |
838 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
839 | _ACEOF | |
840 | fi | |
841 | ||
842 | if test -n "$ac_init_help"; then | |
843 | case $ac_init_help in | |
4801580b | 844 | short | recursive ) echo "Configuration of GRUB 1.91:";; |
6a161fa9 | 845 | esac |
846 | cat <<\_ACEOF | |
847 | ||
a35eed7c | 848 | Optional Features: |
849 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
850 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
851 | --disable-largefile omit support for large files | |
852 | ||
6a161fa9 | 853 | Some influential environment variables: |
854 | CC C compiler command | |
855 | CFLAGS C compiler flags | |
856 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
857 | nonstandard directory <lib dir> | |
858 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
859 | headers in a nonstandard directory <include dir> | |
860 | CPP C preprocessor | |
861 | ||
862 | Use these variables to override the choices made by `configure' or to help | |
863 | it to find libraries and programs with nonstandard names/locations. | |
864 | ||
3b1139cb | 865 | Report bugs to <bug-grub@gnu.org>. |
6a161fa9 | 866 | _ACEOF |
867 | fi | |
868 | ||
869 | if test "$ac_init_help" = "recursive"; then | |
870 | # If there are subdirs, report their specific --help. | |
871 | ac_popdir=`pwd` | |
872 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
873 | test -d $ac_dir || continue | |
874 | ac_builddir=. | |
875 | ||
876 | if test "$ac_dir" != .; then | |
877 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
878 | # A "../" for each directory in $ac_dir_suffix. | |
879 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
880 | else | |
881 | ac_dir_suffix= ac_top_builddir= | |
882 | fi | |
883 | ||
884 | case $srcdir in | |
885 | .) # No --srcdir option. We are building in place. | |
886 | ac_srcdir=. | |
887 | if test -z "$ac_top_builddir"; then | |
888 | ac_top_srcdir=. | |
889 | else | |
890 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
891 | fi ;; | |
892 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
893 | ac_srcdir=$srcdir$ac_dir_suffix; | |
894 | ac_top_srcdir=$srcdir ;; | |
895 | *) # Relative path. | |
896 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
897 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
898 | esac | |
924b6140 | 899 | |
900 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
901 | # the directories may not exist. | |
902 | case `pwd` in | |
903 | .) ac_abs_builddir="$ac_dir";; | |
904 | *) | |
905 | case "$ac_dir" in | |
906 | .) ac_abs_builddir=`pwd`;; | |
907 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
908 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
909 | esac;; | |
910 | esac | |
911 | case $ac_abs_builddir in | |
912 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
913 | *) | |
914 | case ${ac_top_builddir}. in | |
915 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
916 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
917 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
918 | esac;; | |
919 | esac | |
920 | case $ac_abs_builddir in | |
921 | .) ac_abs_srcdir=$ac_srcdir;; | |
922 | *) | |
923 | case $ac_srcdir in | |
924 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
925 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
926 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
927 | esac;; | |
928 | esac | |
929 | case $ac_abs_builddir in | |
930 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
931 | *) | |
932 | case $ac_top_srcdir in | |
933 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
934 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
935 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
936 | esac;; | |
937 | esac | |
6a161fa9 | 938 | |
939 | cd $ac_dir | |
940 | # Check for guested configure; otherwise get Cygnus style configure. | |
941 | if test -f $ac_srcdir/configure.gnu; then | |
942 | echo | |
943 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
944 | elif test -f $ac_srcdir/configure; then | |
945 | echo | |
946 | $SHELL $ac_srcdir/configure --help=recursive | |
947 | elif test -f $ac_srcdir/configure.ac || | |
924b6140 | 948 | test -f $ac_srcdir/configure.in; then |
6a161fa9 | 949 | echo |
950 | $ac_configure --help | |
951 | else | |
952 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
953 | fi | |
4801580b | 954 | cd $ac_popdir |
6a161fa9 | 955 | done |
956 | fi | |
957 | ||
958 | test -n "$ac_init_help" && exit 0 | |
959 | if $ac_init_version; then | |
960 | cat <<\_ACEOF | |
4801580b | 961 | GRUB configure 1.91 |
924b6140 | 962 | generated by GNU Autoconf 2.59 |
6a161fa9 | 963 | |
924b6140 | 964 | Copyright (C) 2003 Free Software Foundation, Inc. |
6a161fa9 | 965 | This configure script is free software; the Free Software Foundation |
966 | gives unlimited permission to copy, distribute and modify it. | |
967 | _ACEOF | |
968 | exit 0 | |
969 | fi | |
970 | exec 5>config.log | |
971 | cat >&5 <<_ACEOF | |
972 | This file contains any messages produced by compilers while | |
973 | running configure, to aid debugging if configure makes a mistake. | |
974 | ||
4801580b | 975 | It was created by GRUB $as_me 1.91, which was |
924b6140 | 976 | generated by GNU Autoconf 2.59. Invocation command line was |
6a161fa9 | 977 | |
978 | $ $0 $@ | |
979 | ||
980 | _ACEOF | |
981 | { | |
982 | cat <<_ASUNAME | |
983 | ## --------- ## | |
984 | ## Platform. ## | |
985 | ## --------- ## | |
986 | ||
987 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
988 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
989 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
990 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
991 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
992 | ||
993 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
994 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
995 | ||
996 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
997 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
998 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
999 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1000 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1001 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1002 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1003 | ||
1004 | _ASUNAME | |
1005 | ||
1006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1007 | for as_dir in $PATH | |
1008 | do | |
1009 | IFS=$as_save_IFS | |
1010 | test -z "$as_dir" && as_dir=. | |
1011 | echo "PATH: $as_dir" | |
1012 | done | |
1013 | ||
1014 | } >&5 | |
1015 | ||
1016 | cat >&5 <<_ACEOF | |
1017 | ||
1018 | ||
1019 | ## ----------- ## | |
1020 | ## Core tests. ## | |
1021 | ## ----------- ## | |
1022 | ||
1023 | _ACEOF | |
1024 | ||
1025 | ||
1026 | # Keep a trace of the command line. | |
1027 | # Strip out --no-create and --no-recursion so they do not pile up. | |
98d15063 | 1028 | # Strip out --silent because we don't want to record it for future runs. |
6a161fa9 | 1029 | # Also quote any args containing shell meta-characters. |
98d15063 | 1030 | # Make two passes to allow for proper duplicate-argument suppression. |
6a161fa9 | 1031 | ac_configure_args= |
98d15063 | 1032 | ac_configure_args0= |
1033 | ac_configure_args1= | |
6a161fa9 | 1034 | ac_sep= |
98d15063 | 1035 | ac_must_keep_next=false |
1036 | for ac_pass in 1 2 | |
6a161fa9 | 1037 | do |
98d15063 | 1038 | for ac_arg |
1039 | do | |
1040 | case $ac_arg in | |
1041 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1042 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1043 | | -silent | --silent | --silen | --sile | --sil) | |
1044 | continue ;; | |
1045 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1046 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1047 | esac | |
1048 | case $ac_pass in | |
1049 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1050 | 2) | |
1051 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1052 | if test $ac_must_keep_next = true; then | |
924b6140 | 1053 | ac_must_keep_next=false # Got value, back to normal. |
98d15063 | 1054 | else |
924b6140 | 1055 | case $ac_arg in |
1056 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1057 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1058 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1059 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1060 | case "$ac_configure_args0 " in | |
1061 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1062 | esac | |
1063 | ;; | |
1064 | -* ) ac_must_keep_next=true ;; | |
1065 | esac | |
98d15063 | 1066 | fi |
1067 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1068 | # Get rid of the leading space. | |
1069 | ac_sep=" " | |
1070 | ;; | |
1071 | esac | |
1072 | done | |
6a161fa9 | 1073 | done |
98d15063 | 1074 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1075 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
6a161fa9 | 1076 | |
1077 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1078 | # config.log. We remove comments because anyway the quotes in there | |
1079 | # would cause problems or look ugly. | |
1080 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1081 | # such as our DU 5.0 friend, will then `close' the trap. | |
1082 | trap 'exit_status=$? | |
1083 | # Save into config.log some information that might help in debugging. | |
1084 | { | |
1085 | echo | |
98d15063 | 1086 | |
6a161fa9 | 1087 | cat <<\_ASBOX |
1088 | ## ---------------- ## | |
1089 | ## Cache variables. ## | |
1090 | ## ---------------- ## | |
1091 | _ASBOX | |
1092 | echo | |
1093 | # The following way of writing the cache mishandles newlines in values, | |
1094 | { | |
1095 | (set) 2>&1 | | |
1096 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1097 | *ac_space=\ *) | |
1098 | sed -n \ | |
924b6140 | 1099 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1100 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
6a161fa9 | 1101 | ;; |
1102 | *) | |
1103 | sed -n \ | |
924b6140 | 1104 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
6a161fa9 | 1105 | ;; |
1106 | esac; | |
1107 | } | |
1108 | echo | |
98d15063 | 1109 | |
1110 | cat <<\_ASBOX | |
1111 | ## ----------------- ## | |
1112 | ## Output variables. ## | |
1113 | ## ----------------- ## | |
1114 | _ASBOX | |
1115 | echo | |
1116 | for ac_var in $ac_subst_vars | |
1117 | do | |
1118 | eval ac_val=$`echo $ac_var` | |
1119 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1120 | done | sort | |
1121 | echo | |
1122 | ||
1123 | if test -n "$ac_subst_files"; then | |
1124 | cat <<\_ASBOX | |
1125 | ## ------------- ## | |
1126 | ## Output files. ## | |
1127 | ## ------------- ## | |
1128 | _ASBOX | |
1129 | echo | |
1130 | for ac_var in $ac_subst_files | |
1131 | do | |
1132 | eval ac_val=$`echo $ac_var` | |
924b6140 | 1133 | echo "$ac_var='"'"'$ac_val'"'"'" |
98d15063 | 1134 | done | sort |
1135 | echo | |
1136 | fi | |
1137 | ||
6a161fa9 | 1138 | if test -s confdefs.h; then |
1139 | cat <<\_ASBOX | |
1140 | ## ----------- ## | |
1141 | ## confdefs.h. ## | |
1142 | ## ----------- ## | |
1143 | _ASBOX | |
1144 | echo | |
98d15063 | 1145 | sed "/^$/d" confdefs.h | sort |
6a161fa9 | 1146 | echo |
1147 | fi | |
1148 | test "$ac_signal" != 0 && | |
1149 | echo "$as_me: caught signal $ac_signal" | |
1150 | echo "$as_me: exit $exit_status" | |
1151 | } >&5 | |
924b6140 | 1152 | rm -f core *.core && |
6a161fa9 | 1153 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1154 | exit $exit_status | |
1155 | ' 0 | |
1156 | for ac_signal in 1 2 13 15; do | |
1157 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1158 | done | |
1159 | ac_signal=0 | |
1160 | ||
1161 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1162 | rm -rf conftest* confdefs.h | |
1163 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1164 | echo >confdefs.h | |
1165 | ||
1166 | # Predefined preprocessor variables. | |
1167 | ||
1168 | cat >>confdefs.h <<_ACEOF | |
1169 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1170 | _ACEOF | |
1171 | ||
1172 | ||
1173 | cat >>confdefs.h <<_ACEOF | |
1174 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1175 | _ACEOF | |
1176 | ||
1177 | ||
1178 | cat >>confdefs.h <<_ACEOF | |
1179 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1180 | _ACEOF | |
1181 | ||
1182 | ||
1183 | cat >>confdefs.h <<_ACEOF | |
1184 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1185 | _ACEOF | |
1186 | ||
1187 | ||
1188 | cat >>confdefs.h <<_ACEOF | |
1189 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1190 | _ACEOF | |
1191 | ||
1192 | ||
1193 | # Let the site file select an alternate cache file if it wants to. | |
1194 | # Prefer explicitly selected file to automatically selected ones. | |
1195 | if test -z "$CONFIG_SITE"; then | |
1196 | if test "x$prefix" != xNONE; then | |
1197 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1198 | else | |
1199 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1200 | fi | |
1201 | fi | |
1202 | for ac_site_file in $CONFIG_SITE; do | |
1203 | if test -r "$ac_site_file"; then | |
1204 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1205 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1206 | sed 's/^/| /' "$ac_site_file" >&5 | |
1207 | . "$ac_site_file" | |
1208 | fi | |
1209 | done | |
1210 | ||
1211 | if test -r "$cache_file"; then | |
1212 | # Some versions of bash will fail to source /dev/null (special | |
1213 | # files actually), so we avoid doing that. | |
1214 | if test -f "$cache_file"; then | |
1215 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1216 | echo "$as_me: loading cache $cache_file" >&6;} | |
1217 | case $cache_file in | |
1218 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1219 | *) . ./$cache_file;; | |
1220 | esac | |
1221 | fi | |
1222 | else | |
1223 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1224 | echo "$as_me: creating cache $cache_file" >&6;} | |
1225 | >$cache_file | |
1226 | fi | |
1227 | ||
1228 | # Check that the precious variables saved in the cache have kept the same | |
1229 | # value. | |
1230 | ac_cache_corrupted=false | |
1231 | for ac_var in `(set) 2>&1 | | |
924b6140 | 1232 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
6a161fa9 | 1233 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1234 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1235 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1236 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1237 | case $ac_old_set,$ac_new_set in | |
1238 | set,) | |
1239 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1240 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1241 | ac_cache_corrupted=: ;; | |
1242 | ,set) | |
1243 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1244 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1245 | ac_cache_corrupted=: ;; | |
1246 | ,);; | |
1247 | *) | |
1248 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
924b6140 | 1249 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
6a161fa9 | 1250 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
924b6140 | 1251 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
6a161fa9 | 1252 | echo "$as_me: former value: $ac_old_val" >&2;} |
924b6140 | 1253 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
6a161fa9 | 1254 | echo "$as_me: current value: $ac_new_val" >&2;} |
924b6140 | 1255 | ac_cache_corrupted=: |
6a161fa9 | 1256 | fi;; |
1257 | esac | |
1258 | # Pass precious variables to config.status. | |
1259 | if test "$ac_new_set" = set; then | |
1260 | case $ac_new_val in | |
1261 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1262 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1263 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1264 | esac | |
1265 | case " $ac_configure_args " in | |
1266 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1267 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1268 | esac | |
1269 | fi | |
1270 | done | |
1271 | if $ac_cache_corrupted; then | |
1272 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1273 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1274 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1275 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1276 | { (exit 1); exit 1; }; } | |
1277 | fi | |
1278 | ||
1279 | ac_ext=c | |
1280 | ac_cpp='$CPP $CPPFLAGS' | |
1281 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1282 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1283 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1284 | ||
1285 | ||
1286 | ||
1287 | ||
1288 | ||
1289 | ||
1290 | ||
1291 | ||
1292 | ||
1293 | ||
1294 | ||
1295 | ||
1296 | ||
1297 | ||
1298 | ||
1299 | ||
1300 | ||
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
98d15063 | 1312 | |
1313 | ac_config_headers="$ac_config_headers config.h" | |
6a161fa9 | 1314 | |
1315 | ||
1316 | # Checks for build and host systems. | |
1317 | ac_aux_dir= | |
1318 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1319 | if test -f $ac_dir/install-sh; then | |
1320 | ac_aux_dir=$ac_dir | |
1321 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1322 | break | |
1323 | elif test -f $ac_dir/install.sh; then | |
1324 | ac_aux_dir=$ac_dir | |
1325 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1326 | break | |
1327 | elif test -f $ac_dir/shtool; then | |
1328 | ac_aux_dir=$ac_dir | |
1329 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1330 | break | |
1331 | fi | |
1332 | done | |
1333 | if test -z "$ac_aux_dir"; then | |
1334 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1335 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1336 | { (exit 1); exit 1; }; } | |
1337 | fi | |
1338 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1339 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1340 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1341 | ||
1342 | # Make sure we can run config.sub. | |
1343 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1344 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1345 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1346 | { (exit 1); exit 1; }; } | |
1347 | ||
1348 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1349 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1350 | if test "${ac_cv_build+set}" = set; then | |
1351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1352 | else | |
1353 | ac_cv_build_alias=$build_alias | |
1354 | test -z "$ac_cv_build_alias" && | |
1355 | ac_cv_build_alias=`$ac_config_guess` | |
1356 | test -z "$ac_cv_build_alias" && | |
1357 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1358 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1359 | { (exit 1); exit 1; }; } | |
1360 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1361 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1362 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1363 | { (exit 1); exit 1; }; } | |
1364 | ||
1365 | fi | |
1366 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1367 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1368 | build=$ac_cv_build | |
1369 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1370 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1371 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1372 | ||
1373 | ||
1374 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1375 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1376 | if test "${ac_cv_host+set}" = set; then | |
1377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1378 | else | |
1379 | ac_cv_host_alias=$host_alias | |
1380 | test -z "$ac_cv_host_alias" && | |
1381 | ac_cv_host_alias=$ac_cv_build_alias | |
1382 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1383 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1384 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1385 | { (exit 1); exit 1; }; } | |
1386 | ||
1387 | fi | |
1388 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1389 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1390 | host=$ac_cv_host | |
1391 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1392 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1393 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1394 | ||
1395 | ||
1396 | ||
1397 | case "$host_cpu" in | |
1398 | i[3456]86) host_cpu=i386 ;; | |
59b8208a | 1399 | x86_64) host_cpu=i386 amd64=1 ;; |
e56cdf21 | 1400 | powerpc) ;; |
e9211b5d | 1401 | sparc64) ;; |
6a161fa9 | 1402 | *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5 |
1403 | echo "$as_me: error: unsupported CPU type" >&2;} | |
1404 | { (exit 1); exit 1; }; } ;; | |
1405 | esac | |
1406 | ||
1407 | case "$host_cpu"-"$host_vendor" in | |
1408 | i386-*) host_vendor=pc ;; | |
e56cdf21 | 1409 | powerpc-*) host_vendor=ieee1275 ;; |
e9211b5d | 1410 | sparc64-*) host_vendor=ieee1275 ;; |
6a161fa9 | 1411 | *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5 |
1412 | echo "$as_me: error: unsupported machine type" >&2;} | |
1413 | { (exit 1); exit 1; }; } ;; | |
1414 | esac | |
1415 | ||
1416 | ||
1417 | ||
1418 | ||
1419 | # Checks for programs. | |
1420 | if test "x$CFLAGS" = x; then | |
1421 | default_CFLAGS=yes | |
1422 | fi | |
1423 | ||
1424 | ac_ext=c | |
1425 | ac_cpp='$CPP $CPPFLAGS' | |
1426 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1427 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1429 | if test -n "$ac_tool_prefix"; then | |
1430 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1431 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1432 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1434 | if test "${ac_cv_prog_CC+set}" = set; then | |
1435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1436 | else | |
1437 | if test -n "$CC"; then | |
1438 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1439 | else | |
1440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1441 | for as_dir in $PATH | |
1442 | do | |
1443 | IFS=$as_save_IFS | |
1444 | test -z "$as_dir" && as_dir=. | |
1445 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1446 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1447 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1449 | break 2 | |
1450 | fi | |
1451 | done | |
1452 | done | |
1453 | ||
1454 | fi | |
1455 | fi | |
1456 | CC=$ac_cv_prog_CC | |
1457 | if test -n "$CC"; then | |
1458 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1459 | echo "${ECHO_T}$CC" >&6 | |
1460 | else | |
1461 | echo "$as_me:$LINENO: result: no" >&5 | |
1462 | echo "${ECHO_T}no" >&6 | |
1463 | fi | |
1464 | ||
1465 | fi | |
1466 | if test -z "$ac_cv_prog_CC"; then | |
1467 | ac_ct_CC=$CC | |
1468 | # Extract the first word of "gcc", so it can be a program name with args. | |
1469 | set dummy gcc; ac_word=$2 | |
1470 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1472 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1474 | else | |
1475 | if test -n "$ac_ct_CC"; then | |
1476 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1477 | else | |
1478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1479 | for as_dir in $PATH | |
1480 | do | |
1481 | IFS=$as_save_IFS | |
1482 | test -z "$as_dir" && as_dir=. | |
1483 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1484 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1485 | ac_cv_prog_ac_ct_CC="gcc" | |
1486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1487 | break 2 | |
1488 | fi | |
1489 | done | |
1490 | done | |
1491 | ||
1492 | fi | |
1493 | fi | |
1494 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1495 | if test -n "$ac_ct_CC"; then | |
1496 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1497 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1498 | else | |
1499 | echo "$as_me:$LINENO: result: no" >&5 | |
1500 | echo "${ECHO_T}no" >&6 | |
1501 | fi | |
1502 | ||
1503 | CC=$ac_ct_CC | |
1504 | else | |
1505 | CC="$ac_cv_prog_CC" | |
1506 | fi | |
1507 | ||
1508 | if test -z "$CC"; then | |
1509 | if test -n "$ac_tool_prefix"; then | |
1510 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1511 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1512 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1514 | if test "${ac_cv_prog_CC+set}" = set; then | |
1515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1516 | else | |
1517 | if test -n "$CC"; then | |
1518 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1519 | else | |
1520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1521 | for as_dir in $PATH | |
1522 | do | |
1523 | IFS=$as_save_IFS | |
1524 | test -z "$as_dir" && as_dir=. | |
1525 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1526 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1527 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1529 | break 2 | |
1530 | fi | |
1531 | done | |
1532 | done | |
1533 | ||
1534 | fi | |
1535 | fi | |
1536 | CC=$ac_cv_prog_CC | |
1537 | if test -n "$CC"; then | |
1538 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1539 | echo "${ECHO_T}$CC" >&6 | |
1540 | else | |
1541 | echo "$as_me:$LINENO: result: no" >&5 | |
1542 | echo "${ECHO_T}no" >&6 | |
1543 | fi | |
1544 | ||
1545 | fi | |
1546 | if test -z "$ac_cv_prog_CC"; then | |
1547 | ac_ct_CC=$CC | |
1548 | # Extract the first word of "cc", so it can be a program name with args. | |
1549 | set dummy cc; ac_word=$2 | |
1550 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1552 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1554 | else | |
1555 | if test -n "$ac_ct_CC"; then | |
1556 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1557 | else | |
1558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1559 | for as_dir in $PATH | |
1560 | do | |
1561 | IFS=$as_save_IFS | |
1562 | test -z "$as_dir" && as_dir=. | |
1563 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1565 | ac_cv_prog_ac_ct_CC="cc" | |
1566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1567 | break 2 | |
1568 | fi | |
1569 | done | |
1570 | done | |
1571 | ||
1572 | fi | |
1573 | fi | |
1574 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1575 | if test -n "$ac_ct_CC"; then | |
1576 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1577 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1578 | else | |
1579 | echo "$as_me:$LINENO: result: no" >&5 | |
1580 | echo "${ECHO_T}no" >&6 | |
1581 | fi | |
1582 | ||
1583 | CC=$ac_ct_CC | |
1584 | else | |
1585 | CC="$ac_cv_prog_CC" | |
1586 | fi | |
1587 | ||
1588 | fi | |
1589 | if test -z "$CC"; then | |
1590 | # Extract the first word of "cc", so it can be a program name with args. | |
1591 | set dummy cc; ac_word=$2 | |
1592 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1594 | if test "${ac_cv_prog_CC+set}" = set; then | |
1595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1596 | else | |
1597 | if test -n "$CC"; then | |
1598 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1599 | else | |
1600 | ac_prog_rejected=no | |
1601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1602 | for as_dir in $PATH | |
1603 | do | |
1604 | IFS=$as_save_IFS | |
1605 | test -z "$as_dir" && as_dir=. | |
1606 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1607 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1608 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1609 | ac_prog_rejected=yes | |
1610 | continue | |
1611 | fi | |
1612 | ac_cv_prog_CC="cc" | |
1613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1614 | break 2 | |
1615 | fi | |
1616 | done | |
1617 | done | |
1618 | ||
1619 | if test $ac_prog_rejected = yes; then | |
1620 | # We found a bogon in the path, so make sure we never use it. | |
1621 | set dummy $ac_cv_prog_CC | |
1622 | shift | |
1623 | if test $# != 0; then | |
1624 | # We chose a different compiler from the bogus one. | |
1625 | # However, it has the same basename, so the bogon will be chosen | |
1626 | # first if we set CC to just the basename; use the full file name. | |
1627 | shift | |
98d15063 | 1628 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
6a161fa9 | 1629 | fi |
1630 | fi | |
1631 | fi | |
1632 | fi | |
1633 | CC=$ac_cv_prog_CC | |
1634 | if test -n "$CC"; then | |
1635 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1636 | echo "${ECHO_T}$CC" >&6 | |
1637 | else | |
1638 | echo "$as_me:$LINENO: result: no" >&5 | |
1639 | echo "${ECHO_T}no" >&6 | |
1640 | fi | |
1641 | ||
1642 | fi | |
1643 | if test -z "$CC"; then | |
1644 | if test -n "$ac_tool_prefix"; then | |
1645 | for ac_prog in cl | |
1646 | do | |
1647 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1648 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1651 | if test "${ac_cv_prog_CC+set}" = set; then | |
1652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1653 | else | |
1654 | if test -n "$CC"; then | |
1655 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1656 | else | |
1657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1658 | for as_dir in $PATH | |
1659 | do | |
1660 | IFS=$as_save_IFS | |
1661 | test -z "$as_dir" && as_dir=. | |
1662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1664 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1666 | break 2 | |
1667 | fi | |
1668 | done | |
1669 | done | |
1670 | ||
1671 | fi | |
1672 | fi | |
1673 | CC=$ac_cv_prog_CC | |
1674 | if test -n "$CC"; then | |
1675 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1676 | echo "${ECHO_T}$CC" >&6 | |
1677 | else | |
1678 | echo "$as_me:$LINENO: result: no" >&5 | |
1679 | echo "${ECHO_T}no" >&6 | |
1680 | fi | |
1681 | ||
1682 | test -n "$CC" && break | |
1683 | done | |
1684 | fi | |
1685 | if test -z "$CC"; then | |
1686 | ac_ct_CC=$CC | |
1687 | for ac_prog in cl | |
1688 | do | |
1689 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1690 | set dummy $ac_prog; ac_word=$2 | |
1691 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1693 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1695 | else | |
1696 | if test -n "$ac_ct_CC"; then | |
1697 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1698 | else | |
1699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1700 | for as_dir in $PATH | |
1701 | do | |
1702 | IFS=$as_save_IFS | |
1703 | test -z "$as_dir" && as_dir=. | |
1704 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1705 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1706 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1707 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1708 | break 2 | |
1709 | fi | |
1710 | done | |
1711 | done | |
1712 | ||
1713 | fi | |
1714 | fi | |
1715 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1716 | if test -n "$ac_ct_CC"; then | |
1717 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1718 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1719 | else | |
1720 | echo "$as_me:$LINENO: result: no" >&5 | |
1721 | echo "${ECHO_T}no" >&6 | |
1722 | fi | |
1723 | ||
1724 | test -n "$ac_ct_CC" && break | |
1725 | done | |
1726 | ||
1727 | CC=$ac_ct_CC | |
1728 | fi | |
1729 | ||
1730 | fi | |
1731 | ||
1732 | ||
98d15063 | 1733 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
1734 | See \`config.log' for more details." >&5 | |
1735 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1736 | See \`config.log' for more details." >&2;} | |
6a161fa9 | 1737 | { (exit 1); exit 1; }; } |
1738 | ||
1739 | # Provide some information about the compiler. | |
1740 | echo "$as_me:$LINENO:" \ | |
1741 | "checking for C compiler version" >&5 | |
1742 | ac_compiler=`set X $ac_compile; echo $2` | |
1743 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1744 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1745 | ac_status=$? | |
1746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1747 | (exit $ac_status); } | |
1748 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1749 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1750 | ac_status=$? | |
1751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1752 | (exit $ac_status); } | |
1753 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1754 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1755 | ac_status=$? | |
1756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1757 | (exit $ac_status); } | |
1758 | ||
1759 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 1760 | /* confdefs.h. */ |
1761 | _ACEOF | |
1762 | cat confdefs.h >>conftest.$ac_ext | |
1763 | cat >>conftest.$ac_ext <<_ACEOF | |
1764 | /* end confdefs.h. */ | |
6a161fa9 | 1765 | |
6a161fa9 | 1766 | int |
1767 | main () | |
1768 | { | |
1769 | ||
1770 | ; | |
1771 | return 0; | |
1772 | } | |
1773 | _ACEOF | |
1774 | ac_clean_files_save=$ac_clean_files | |
98d15063 | 1775 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
6a161fa9 | 1776 | # Try to create an executable without -o first, disregard a.out. |
1777 | # It will help us diagnose broken compilers, and finding out an intuition | |
1778 | # of exeext. | |
924b6140 | 1779 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1780 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
6a161fa9 | 1781 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1782 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1783 | (eval $ac_link_default) 2>&5 | |
1784 | ac_status=$? | |
1785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1786 | (exit $ac_status); }; then | |
1787 | # Find the output, starting from the most likely. This scheme is | |
1788 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1789 | # resort. | |
1790 | ||
1791 | # Be careful to initialize this variable, since it used to be cached. | |
1792 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1793 | ac_cv_exeext= | |
98d15063 | 1794 | # b.out is created by i960 compilers. |
1795 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1796 | do | |
1797 | test -f "$ac_file" || continue | |
6a161fa9 | 1798 | case $ac_file in |
98d15063 | 1799 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
924b6140 | 1800 | ;; |
98d15063 | 1801 | conftest.$ac_ext ) |
924b6140 | 1802 | # This is the source file. |
1803 | ;; | |
98d15063 | 1804 | [ab].out ) |
924b6140 | 1805 | # We found the default executable, but exeext='' is most |
1806 | # certainly right. | |
1807 | break;; | |
98d15063 | 1808 | *.* ) |
924b6140 | 1809 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1810 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1811 | # but it would be cool to find out if it's true. Does anybody | |
1812 | # maintain Libtool? --akim. | |
1813 | export ac_cv_exeext | |
1814 | break;; | |
98d15063 | 1815 | * ) |
924b6140 | 1816 | break;; |
6a161fa9 | 1817 | esac |
1818 | done | |
1819 | else | |
1820 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 1821 | sed 's/^/| /' conftest.$ac_ext >&5 |
1822 | ||
1823 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1824 | See \`config.log' for more details." >&5 | |
1825 | echo "$as_me: error: C compiler cannot create executables | |
1826 | See \`config.log' for more details." >&2;} | |
6a161fa9 | 1827 | { (exit 77); exit 77; }; } |
1828 | fi | |
1829 | ||
1830 | ac_exeext=$ac_cv_exeext | |
1831 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1832 | echo "${ECHO_T}$ac_file" >&6 | |
1833 | ||
1834 | # Check the compiler produces executables we can run. If not, either | |
1835 | # the compiler is broken, or we cross compile. | |
1836 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1837 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1838 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1839 | # If not cross compiling, check that we can run a simple program. | |
1840 | if test "$cross_compiling" != yes; then | |
1841 | if { ac_try='./$ac_file' | |
1842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1843 | (eval $ac_try) 2>&5 | |
1844 | ac_status=$? | |
1845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1846 | (exit $ac_status); }; }; then | |
1847 | cross_compiling=no | |
1848 | else | |
1849 | if test "$cross_compiling" = maybe; then | |
1850 | cross_compiling=yes | |
1851 | else | |
1852 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
98d15063 | 1853 | If you meant to cross compile, use \`--host'. |
1854 | See \`config.log' for more details." >&5 | |
6a161fa9 | 1855 | echo "$as_me: error: cannot run C compiled programs. |
98d15063 | 1856 | If you meant to cross compile, use \`--host'. |
1857 | See \`config.log' for more details." >&2;} | |
6a161fa9 | 1858 | { (exit 1); exit 1; }; } |
1859 | fi | |
1860 | fi | |
1861 | fi | |
1862 | echo "$as_me:$LINENO: result: yes" >&5 | |
1863 | echo "${ECHO_T}yes" >&6 | |
1864 | ||
98d15063 | 1865 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
6a161fa9 | 1866 | ac_clean_files=$ac_clean_files_save |
1867 | # Check the compiler produces executables we can run. If not, either | |
1868 | # the compiler is broken, or we cross compile. | |
1869 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1870 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1871 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1872 | echo "${ECHO_T}$cross_compiling" >&6 | |
1873 | ||
1874 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1875 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1877 | (eval $ac_link) 2>&5 | |
1878 | ac_status=$? | |
1879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1880 | (exit $ac_status); }; then | |
1881 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1882 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1883 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1884 | # `rm'. | |
98d15063 | 1885 | for ac_file in conftest.exe conftest conftest.*; do |
1886 | test -f "$ac_file" || continue | |
6a161fa9 | 1887 | case $ac_file in |
98d15063 | 1888 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
6a161fa9 | 1889 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
924b6140 | 1890 | export ac_cv_exeext |
1891 | break;; | |
6a161fa9 | 1892 | * ) break;; |
1893 | esac | |
1894 | done | |
1895 | else | |
98d15063 | 1896 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1897 | See \`config.log' for more details." >&5 | |
1898 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1899 | See \`config.log' for more details." >&2;} | |
6a161fa9 | 1900 | { (exit 1); exit 1; }; } |
1901 | fi | |
1902 | ||
1903 | rm -f conftest$ac_cv_exeext | |
1904 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1905 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1906 | ||
1907 | rm -f conftest.$ac_ext | |
1908 | EXEEXT=$ac_cv_exeext | |
1909 | ac_exeext=$EXEEXT | |
1910 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1911 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1912 | if test "${ac_cv_objext+set}" = set; then | |
1913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1914 | else | |
1915 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 1916 | /* confdefs.h. */ |
1917 | _ACEOF | |
1918 | cat confdefs.h >>conftest.$ac_ext | |
1919 | cat >>conftest.$ac_ext <<_ACEOF | |
1920 | /* end confdefs.h. */ | |
6a161fa9 | 1921 | |
6a161fa9 | 1922 | int |
1923 | main () | |
1924 | { | |
1925 | ||
1926 | ; | |
1927 | return 0; | |
1928 | } | |
1929 | _ACEOF | |
1930 | rm -f conftest.o conftest.obj | |
1931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1932 | (eval $ac_compile) 2>&5 | |
1933 | ac_status=$? | |
1934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1935 | (exit $ac_status); }; then | |
1936 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1937 | case $ac_file in | |
98d15063 | 1938 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
6a161fa9 | 1939 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1940 | break;; | |
1941 | esac | |
1942 | done | |
1943 | else | |
1944 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 1945 | sed 's/^/| /' conftest.$ac_ext >&5 |
1946 | ||
1947 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1948 | See \`config.log' for more details." >&5 | |
1949 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1950 | See \`config.log' for more details." >&2;} | |
6a161fa9 | 1951 | { (exit 1); exit 1; }; } |
1952 | fi | |
1953 | ||
1954 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1955 | fi | |
1956 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1957 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1958 | OBJEXT=$ac_cv_objext | |
1959 | ac_objext=$OBJEXT | |
1960 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1961 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1962 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1964 | else | |
1965 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 1966 | /* confdefs.h. */ |
1967 | _ACEOF | |
1968 | cat confdefs.h >>conftest.$ac_ext | |
1969 | cat >>conftest.$ac_ext <<_ACEOF | |
1970 | /* end confdefs.h. */ | |
6a161fa9 | 1971 | |
6a161fa9 | 1972 | int |
1973 | main () | |
1974 | { | |
1975 | #ifndef __GNUC__ | |
1976 | choke me | |
1977 | #endif | |
1978 | ||
1979 | ; | |
1980 | return 0; | |
1981 | } | |
1982 | _ACEOF | |
1983 | rm -f conftest.$ac_objext | |
1984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 1985 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 1986 | ac_status=$? |
924b6140 | 1987 | grep -v '^ *+' conftest.er1 >conftest.err |
1988 | rm -f conftest.er1 | |
1989 | cat conftest.err >&5 | |
6a161fa9 | 1990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1991 | (exit $ac_status); } && | |
4801580b | 1992 | { ac_try='test -z "$ac_c_werror_flag" |
1993 | || test ! -s conftest.err' | |
924b6140 | 1994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1995 | (eval $ac_try) 2>&5 | |
1996 | ac_status=$? | |
1997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1998 | (exit $ac_status); }; } && | |
1999 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 2000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2001 | (eval $ac_try) 2>&5 | |
2002 | ac_status=$? | |
2003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2004 | (exit $ac_status); }; }; then | |
2005 | ac_compiler_gnu=yes | |
2006 | else | |
2007 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 2008 | sed 's/^/| /' conftest.$ac_ext >&5 |
2009 | ||
6a161fa9 | 2010 | ac_compiler_gnu=no |
2011 | fi | |
924b6140 | 2012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 2013 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2014 | ||
2015 | fi | |
2016 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2017 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2018 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2019 | ac_test_CFLAGS=${CFLAGS+set} | |
2020 | ac_save_CFLAGS=$CFLAGS | |
2021 | CFLAGS="-g" | |
2022 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2023 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2024 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2026 | else | |
2027 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 2028 | /* confdefs.h. */ |
2029 | _ACEOF | |
2030 | cat confdefs.h >>conftest.$ac_ext | |
2031 | cat >>conftest.$ac_ext <<_ACEOF | |
2032 | /* end confdefs.h. */ | |
6a161fa9 | 2033 | |
6a161fa9 | 2034 | int |
2035 | main () | |
2036 | { | |
2037 | ||
2038 | ; | |
2039 | return 0; | |
2040 | } | |
2041 | _ACEOF | |
2042 | rm -f conftest.$ac_objext | |
2043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 2044 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 2045 | ac_status=$? |
924b6140 | 2046 | grep -v '^ *+' conftest.er1 >conftest.err |
2047 | rm -f conftest.er1 | |
2048 | cat conftest.err >&5 | |
6a161fa9 | 2049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2050 | (exit $ac_status); } && | |
4801580b | 2051 | { ac_try='test -z "$ac_c_werror_flag" |
2052 | || test ! -s conftest.err' | |
924b6140 | 2053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2054 | (eval $ac_try) 2>&5 | |
2055 | ac_status=$? | |
2056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2057 | (exit $ac_status); }; } && | |
2058 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 2059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2060 | (eval $ac_try) 2>&5 | |
2061 | ac_status=$? | |
2062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2063 | (exit $ac_status); }; }; then | |
2064 | ac_cv_prog_cc_g=yes | |
2065 | else | |
2066 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 2067 | sed 's/^/| /' conftest.$ac_ext >&5 |
2068 | ||
6a161fa9 | 2069 | ac_cv_prog_cc_g=no |
2070 | fi | |
924b6140 | 2071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 2072 | fi |
2073 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2074 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2075 | if test "$ac_test_CFLAGS" = set; then | |
2076 | CFLAGS=$ac_save_CFLAGS | |
2077 | elif test $ac_cv_prog_cc_g = yes; then | |
2078 | if test "$GCC" = yes; then | |
2079 | CFLAGS="-g -O2" | |
2080 | else | |
2081 | CFLAGS="-g" | |
2082 | fi | |
2083 | else | |
2084 | if test "$GCC" = yes; then | |
2085 | CFLAGS="-O2" | |
2086 | else | |
2087 | CFLAGS= | |
2088 | fi | |
2089 | fi | |
98d15063 | 2090 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2091 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2092 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2094 | else | |
2095 | ac_cv_prog_cc_stdc=no | |
2096 | ac_save_CC=$CC | |
2097 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 2098 | /* confdefs.h. */ |
2099 | _ACEOF | |
2100 | cat confdefs.h >>conftest.$ac_ext | |
2101 | cat >>conftest.$ac_ext <<_ACEOF | |
2102 | /* end confdefs.h. */ | |
2103 | #include <stdarg.h> | |
2104 | #include <stdio.h> | |
2105 | #include <sys/types.h> | |
2106 | #include <sys/stat.h> | |
2107 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2108 | struct buf { int x; }; | |
2109 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2110 | static char *e (p, i) | |
2111 | char **p; | |
2112 | int i; | |
2113 | { | |
2114 | return p[i]; | |
2115 | } | |
2116 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2117 | { | |
2118 | char *s; | |
2119 | va_list v; | |
2120 | va_start (v,p); | |
2121 | s = g (p, va_arg (v,int)); | |
2122 | va_end (v); | |
2123 | return s; | |
2124 | } | |
924b6140 | 2125 | |
2126 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2127 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2128 | These don't provoke an error unfortunately, instead are silently treated | |
2129 | as 'x'. The following induces an error, until -std1 is added to get | |
2130 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2131 | array size at least. It's necessary to write '\x00'==0 to get something | |
2132 | that's true only with -std1. */ | |
2133 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2134 | ||
98d15063 | 2135 | int test (int i, double x); |
2136 | struct s1 {int (*f) (int a);}; | |
2137 | struct s2 {int (*f) (double a);}; | |
2138 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2139 | int argc; | |
2140 | char **argv; | |
2141 | int | |
2142 | main () | |
2143 | { | |
2144 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2145 | ; | |
2146 | return 0; | |
2147 | } | |
2148 | _ACEOF | |
2149 | # Don't try gcc -ansi; that turns off useful extensions and | |
2150 | # breaks some systems' header files. | |
2151 | # AIX -qlanglvl=ansi | |
2152 | # Ultrix and OSF/1 -std1 | |
2153 | # HP-UX 10.20 and later -Ae | |
2154 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2155 | # SVR4 -Xc -D__EXTENSIONS__ | |
2156 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2157 | do | |
2158 | CC="$ac_save_CC $ac_arg" | |
2159 | rm -f conftest.$ac_objext | |
2160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 2161 | (eval $ac_compile) 2>conftest.er1 |
98d15063 | 2162 | ac_status=$? |
924b6140 | 2163 | grep -v '^ *+' conftest.er1 >conftest.err |
2164 | rm -f conftest.er1 | |
2165 | cat conftest.err >&5 | |
98d15063 | 2166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2167 | (exit $ac_status); } && | |
4801580b | 2168 | { ac_try='test -z "$ac_c_werror_flag" |
2169 | || test ! -s conftest.err' | |
924b6140 | 2170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2171 | (eval $ac_try) 2>&5 | |
2172 | ac_status=$? | |
2173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2174 | (exit $ac_status); }; } && | |
2175 | { ac_try='test -s conftest.$ac_objext' | |
98d15063 | 2176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2177 | (eval $ac_try) 2>&5 | |
2178 | ac_status=$? | |
2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2180 | (exit $ac_status); }; }; then | |
2181 | ac_cv_prog_cc_stdc=$ac_arg | |
2182 | break | |
2183 | else | |
2184 | echo "$as_me: failed program was:" >&5 | |
2185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2186 | ||
2187 | fi | |
924b6140 | 2188 | rm -f conftest.err conftest.$ac_objext |
98d15063 | 2189 | done |
2190 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2191 | CC=$ac_save_CC | |
2192 | ||
2193 | fi | |
2194 | ||
2195 | case "x$ac_cv_prog_cc_stdc" in | |
2196 | x|xno) | |
2197 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2198 | echo "${ECHO_T}none needed" >&6 ;; | |
2199 | *) | |
2200 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2201 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2202 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2203 | esac | |
2204 | ||
6a161fa9 | 2205 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2206 | # in C++ we need to declare it. In case someone uses the same compiler | |
2207 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2208 | # the declaration of exit, since it's the most demanding environment. | |
2209 | cat >conftest.$ac_ext <<_ACEOF | |
2210 | #ifndef __cplusplus | |
2211 | choke me | |
2212 | #endif | |
2213 | _ACEOF | |
2214 | rm -f conftest.$ac_objext | |
2215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 2216 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 2217 | ac_status=$? |
924b6140 | 2218 | grep -v '^ *+' conftest.er1 >conftest.err |
2219 | rm -f conftest.er1 | |
2220 | cat conftest.err >&5 | |
6a161fa9 | 2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2222 | (exit $ac_status); } && | |
4801580b | 2223 | { ac_try='test -z "$ac_c_werror_flag" |
2224 | || test ! -s conftest.err' | |
924b6140 | 2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2226 | (eval $ac_try) 2>&5 | |
2227 | ac_status=$? | |
2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2229 | (exit $ac_status); }; } && | |
2230 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2232 | (eval $ac_try) 2>&5 | |
2233 | ac_status=$? | |
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2235 | (exit $ac_status); }; }; then | |
2236 | for ac_declaration in \ | |
924b6140 | 2237 | '' \ |
6a161fa9 | 2238 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2239 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2240 | 'extern "C" void exit (int) throw ();' \ | |
2241 | 'extern "C" void exit (int);' \ | |
2242 | 'void exit (int);' | |
2243 | do | |
2244 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 2245 | /* confdefs.h. */ |
2246 | _ACEOF | |
2247 | cat confdefs.h >>conftest.$ac_ext | |
2248 | cat >>conftest.$ac_ext <<_ACEOF | |
2249 | /* end confdefs.h. */ | |
6a161fa9 | 2250 | $ac_declaration |
924b6140 | 2251 | #include <stdlib.h> |
6a161fa9 | 2252 | int |
2253 | main () | |
2254 | { | |
2255 | exit (42); | |
2256 | ; | |
2257 | return 0; | |
2258 | } | |
2259 | _ACEOF | |
2260 | rm -f conftest.$ac_objext | |
2261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 2262 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 2263 | ac_status=$? |
924b6140 | 2264 | grep -v '^ *+' conftest.er1 >conftest.err |
2265 | rm -f conftest.er1 | |
2266 | cat conftest.err >&5 | |
6a161fa9 | 2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2268 | (exit $ac_status); } && | |
4801580b | 2269 | { ac_try='test -z "$ac_c_werror_flag" |
2270 | || test ! -s conftest.err' | |
924b6140 | 2271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2272 | (eval $ac_try) 2>&5 | |
2273 | ac_status=$? | |
2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2275 | (exit $ac_status); }; } && | |
2276 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 2277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2278 | (eval $ac_try) 2>&5 | |
2279 | ac_status=$? | |
2280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2281 | (exit $ac_status); }; }; then | |
2282 | : | |
2283 | else | |
2284 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 2285 | sed 's/^/| /' conftest.$ac_ext >&5 |
2286 | ||
6a161fa9 | 2287 | continue |
2288 | fi | |
924b6140 | 2289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 2290 | cat >conftest.$ac_ext <<_ACEOF |
98d15063 | 2291 | /* confdefs.h. */ |
2292 | _ACEOF | |
2293 | cat confdefs.h >>conftest.$ac_ext | |
2294 | cat >>conftest.$ac_ext <<_ACEOF | |
2295 | /* end confdefs.h. */ | |
6a161fa9 | 2296 | $ac_declaration |
6a161fa9 | 2297 | int |
2298 | main () | |
2299 | { | |
2300 | exit (42); | |
2301 | ; | |
2302 | return 0; | |
2303 | } | |
2304 | _ACEOF | |
2305 | rm -f conftest.$ac_objext | |
2306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 2307 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 2308 | ac_status=$? |
924b6140 | 2309 | grep -v '^ *+' conftest.er1 >conftest.err |
2310 | rm -f conftest.er1 | |
2311 | cat conftest.err >&5 | |
6a161fa9 | 2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2313 | (exit $ac_status); } && | |
4801580b | 2314 | { ac_try='test -z "$ac_c_werror_flag" |
2315 | || test ! -s conftest.err' | |
924b6140 | 2316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2317 | (eval $ac_try) 2>&5 | |
2318 | ac_status=$? | |
2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2320 | (exit $ac_status); }; } && | |
2321 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 2322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2323 | (eval $ac_try) 2>&5 | |
2324 | ac_status=$? | |
2325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2326 | (exit $ac_status); }; }; then | |
2327 | break | |
2328 | else | |
2329 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 2330 | sed 's/^/| /' conftest.$ac_ext >&5 |
2331 | ||
6a161fa9 | 2332 | fi |
924b6140 | 2333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 2334 | done |
2335 | rm -f conftest* | |
2336 | if test -n "$ac_declaration"; then | |
2337 | echo '#ifdef __cplusplus' >>confdefs.h | |
2338 | echo $ac_declaration >>confdefs.h | |
2339 | echo '#endif' >>confdefs.h | |
2340 | fi | |
2341 | ||
2342 | else | |
2343 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 2344 | sed 's/^/| /' conftest.$ac_ext >&5 |
2345 | ||
6a161fa9 | 2346 | fi |
924b6140 | 2347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 2348 | ac_ext=c |
2349 | ac_cpp='$CPP $CPPFLAGS' | |
2350 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2351 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2352 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2353 | ||
2354 | ||
a35eed7c | 2355 | # Check whether --enable-largefile or --disable-largefile was given. |
2356 | if test "${enable_largefile+set}" = set; then | |
2357 | enableval="$enable_largefile" | |
2358 | ||
2359 | fi; | |
2360 | if test "$enable_largefile" != no; then | |
2361 | ||
2362 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
2363 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
2364 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
2365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2366 | else | |
2367 | ac_cv_sys_largefile_CC=no | |
2368 | if test "$GCC" != yes; then | |
2369 | ac_save_CC=$CC | |
2370 | while :; do | |
2371 | # IRIX 6.2 and later do not support large files by default, | |
2372 | # so use the C compiler's -n32 option if that helps. | |
924b6140 | 2373 | cat >conftest.$ac_ext <<_ACEOF |
a35eed7c | 2374 | /* confdefs.h. */ |
2375 | _ACEOF | |
2376 | cat confdefs.h >>conftest.$ac_ext | |
2377 | cat >>conftest.$ac_ext <<_ACEOF | |
2378 | /* end confdefs.h. */ | |
2379 | #include <sys/types.h> | |
2380 | /* Check that off_t can represent 2**63 - 1 correctly. | |
2381 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
2382 | since some C++ compilers masquerading as C compilers | |
2383 | incorrectly reject 9223372036854775807. */ | |
2384 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
2385 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
2386 | && LARGE_OFF_T % 2147483647 == 1) | |
2387 | ? 1 : -1]; | |
2388 | int | |
2389 | main () | |
2390 | { | |
2391 | ||
2392 | ; | |
2393 | return 0; | |
2394 | } | |
2395 | _ACEOF | |
2396 | rm -f conftest.$ac_objext | |
2397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 2398 | (eval $ac_compile) 2>conftest.er1 |
a35eed7c | 2399 | ac_status=$? |
924b6140 | 2400 | grep -v '^ *+' conftest.er1 >conftest.err |
2401 | rm -f conftest.er1 | |
2402 | cat conftest.err >&5 | |
a35eed7c | 2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2404 | (exit $ac_status); } && | |
4801580b | 2405 | { ac_try='test -z "$ac_c_werror_flag" |
2406 | || test ! -s conftest.err' | |
924b6140 | 2407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2408 | (eval $ac_try) 2>&5 | |
2409 | ac_status=$? | |
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2411 | (exit $ac_status); }; } && | |
2412 | { ac_try='test -s conftest.$ac_objext' | |
a35eed7c | 2413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2414 | (eval $ac_try) 2>&5 | |
2415 | ac_status=$? | |
2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2417 | (exit $ac_status); }; }; then | |
2418 | break | |
2419 | else | |
2420 | echo "$as_me: failed program was:" >&5 | |
2421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2422 | ||
2423 | fi | |
924b6140 | 2424 | rm -f conftest.err conftest.$ac_objext |
a35eed7c | 2425 | CC="$CC -n32" |
2426 | rm -f conftest.$ac_objext | |
2427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 2428 | (eval $ac_compile) 2>conftest.er1 |
a35eed7c | 2429 | ac_status=$? |
924b6140 | 2430 | grep -v '^ *+' conftest.er1 >conftest.err |
2431 | rm -f conftest.er1 | |
2432 | cat conftest.err >&5 | |
a35eed7c | 2433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2434 | (exit $ac_status); } && | |
4801580b | 2435 | { ac_try='test -z "$ac_c_werror_flag" |
2436 | || test ! -s conftest.err' | |
924b6140 | 2437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2438 | (eval $ac_try) 2>&5 | |
2439 | ac_status=$? | |
2440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2441 | (exit $ac_status); }; } && | |
2442 | { ac_try='test -s conftest.$ac_objext' | |
a35eed7c | 2443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2444 | (eval $ac_try) 2>&5 | |
2445 | ac_status=$? | |
2446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2447 | (exit $ac_status); }; }; then | |
2448 | ac_cv_sys_largefile_CC=' -n32'; break | |
2449 | else | |
2450 | echo "$as_me: failed program was:" >&5 | |
2451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2452 | ||
2453 | fi | |
924b6140 | 2454 | rm -f conftest.err conftest.$ac_objext |
2455 | break | |
a35eed7c | 2456 | done |
2457 | CC=$ac_save_CC | |
2458 | rm -f conftest.$ac_ext | |
2459 | fi | |
2460 | fi | |
2461 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
2462 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
2463 | if test "$ac_cv_sys_largefile_CC" != no; then | |
2464 | CC=$CC$ac_cv_sys_largefile_CC | |
2465 | fi | |
2466 | ||
2467 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
2468 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
2469 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
2470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2471 | else | |
2472 | while :; do | |
2473 | ac_cv_sys_file_offset_bits=no | |
2474 | cat >conftest.$ac_ext <<_ACEOF | |
a35eed7c | 2475 | /* confdefs.h. */ |
2476 | _ACEOF | |
2477 | cat confdefs.h >>conftest.$ac_ext | |
2478 | cat >>conftest.$ac_ext <<_ACEOF | |
2479 | /* end confdefs.h. */ | |
2480 | #include <sys/types.h> | |
2481 | /* Check that off_t can represent 2**63 - 1 correctly. | |
2482 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
2483 | since some C++ compilers masquerading as C compilers | |
2484 | incorrectly reject 9223372036854775807. */ | |
2485 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
2486 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
2487 | && LARGE_OFF_T % 2147483647 == 1) | |
2488 | ? 1 : -1]; | |
2489 | int | |
2490 | main () | |
2491 | { | |
2492 | ||
2493 | ; | |
2494 | return 0; | |
2495 | } | |
2496 | _ACEOF | |
2497 | rm -f conftest.$ac_objext | |
2498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 2499 | (eval $ac_compile) 2>conftest.er1 |
a35eed7c | 2500 | ac_status=$? |
924b6140 | 2501 | grep -v '^ *+' conftest.er1 >conftest.err |
2502 | rm -f conftest.er1 | |
2503 | cat conftest.err >&5 | |
a35eed7c | 2504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2505 | (exit $ac_status); } && | |
4801580b | 2506 | { ac_try='test -z "$ac_c_werror_flag" |
2507 | || test ! -s conftest.err' | |
924b6140 | 2508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2509 | (eval $ac_try) 2>&5 | |
2510 | ac_status=$? | |
2511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2512 | (exit $ac_status); }; } && | |
2513 | { ac_try='test -s conftest.$ac_objext' | |
a35eed7c | 2514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2515 | (eval $ac_try) 2>&5 | |
2516 | ac_status=$? | |
2517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2518 | (exit $ac_status); }; }; then | |
2519 | break | |
2520 | else | |
2521 | echo "$as_me: failed program was:" >&5 | |
2522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2523 | ||
2524 | fi | |
924b6140 | 2525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a35eed7c | 2526 | cat >conftest.$ac_ext <<_ACEOF |
a35eed7c | 2527 | /* confdefs.h. */ |
2528 | _ACEOF | |
2529 | cat confdefs.h >>conftest.$ac_ext | |
2530 | cat >>conftest.$ac_ext <<_ACEOF | |
2531 | /* end confdefs.h. */ | |
2532 | #define _FILE_OFFSET_BITS 64 | |
2533 | #include <sys/types.h> | |
2534 | /* Check that off_t can represent 2**63 - 1 correctly. | |
2535 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
2536 | since some C++ compilers masquerading as C compilers | |
2537 | incorrectly reject 9223372036854775807. */ | |
2538 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
2539 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
2540 | && LARGE_OFF_T % 2147483647 == 1) | |
2541 | ? 1 : -1]; | |
2542 | int | |
2543 | main () | |
2544 | { | |
2545 | ||
2546 | ; | |
2547 | return 0; | |
2548 | } | |
2549 | _ACEOF | |
2550 | rm -f conftest.$ac_objext | |
2551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 2552 | (eval $ac_compile) 2>conftest.er1 |
a35eed7c | 2553 | ac_status=$? |
924b6140 | 2554 | grep -v '^ *+' conftest.er1 >conftest.err |
2555 | rm -f conftest.er1 | |
2556 | cat conftest.err >&5 | |
a35eed7c | 2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2558 | (exit $ac_status); } && | |
4801580b | 2559 | { ac_try='test -z "$ac_c_werror_flag" |
2560 | || test ! -s conftest.err' | |
924b6140 | 2561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2562 | (eval $ac_try) 2>&5 | |
2563 | ac_status=$? | |
2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2565 | (exit $ac_status); }; } && | |
2566 | { ac_try='test -s conftest.$ac_objext' | |
a35eed7c | 2567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2568 | (eval $ac_try) 2>&5 | |
2569 | ac_status=$? | |
2570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2571 | (exit $ac_status); }; }; then | |
2572 | ac_cv_sys_file_offset_bits=64; break | |
2573 | else | |
2574 | echo "$as_me: failed program was:" >&5 | |
2575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2576 | ||
2577 | fi | |
924b6140 | 2578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a35eed7c | 2579 | break |
2580 | done | |
2581 | fi | |
2582 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
2583 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
2584 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
2585 | ||
2586 | cat >>confdefs.h <<_ACEOF | |
2587 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
2588 | _ACEOF | |
2589 | ||
2590 | fi | |
2591 | rm -f conftest* | |
2592 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
2593 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
2594 | if test "${ac_cv_sys_large_files+set}" = set; then | |
2595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2596 | else | |
2597 | while :; do | |
2598 | ac_cv_sys_large_files=no | |
2599 | cat >conftest.$ac_ext <<_ACEOF | |
a35eed7c | 2600 | /* confdefs.h. */ |
2601 | _ACEOF | |
2602 | cat confdefs.h >>conftest.$ac_ext | |
2603 | cat >>conftest.$ac_ext <<_ACEOF | |
2604 | /* end confdefs.h. */ | |
2605 | #include <sys/types.h> | |
2606 | /* Check that off_t can represent 2**63 - 1 correctly. | |
2607 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
2608 | since some C++ compilers masquerading as C compilers | |
2609 | incorrectly reject 9223372036854775807. */ | |
2610 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
2611 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
2612 | && LARGE_OFF_T % 2147483647 == 1) | |
2613 | ? 1 : -1]; | |
2614 | int | |
2615 | main () | |
2616 | { | |
2617 | ||
2618 | ; | |
2619 | return 0; | |
2620 | } | |
2621 | _ACEOF | |
2622 | rm -f conftest.$ac_objext | |
2623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 2624 | (eval $ac_compile) 2>conftest.er1 |
a35eed7c | 2625 | ac_status=$? |
924b6140 | 2626 | grep -v '^ *+' conftest.er1 >conftest.err |
2627 | rm -f conftest.er1 | |
2628 | cat conftest.err >&5 | |
a35eed7c | 2629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2630 | (exit $ac_status); } && | |
4801580b | 2631 | { ac_try='test -z "$ac_c_werror_flag" |
2632 | || test ! -s conftest.err' | |
924b6140 | 2633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2634 | (eval $ac_try) 2>&5 | |
2635 | ac_status=$? | |
2636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2637 | (exit $ac_status); }; } && | |
2638 | { ac_try='test -s conftest.$ac_objext' | |
a35eed7c | 2639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2640 | (eval $ac_try) 2>&5 | |
2641 | ac_status=$? | |
2642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2643 | (exit $ac_status); }; }; then | |
2644 | break | |
2645 | else | |
2646 | echo "$as_me: failed program was:" >&5 | |
2647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2648 | ||
2649 | fi | |
924b6140 | 2650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a35eed7c | 2651 | cat >conftest.$ac_ext <<_ACEOF |
a35eed7c | 2652 | /* confdefs.h. */ |
2653 | _ACEOF | |
2654 | cat confdefs.h >>conftest.$ac_ext | |
2655 | cat >>conftest.$ac_ext <<_ACEOF | |
2656 | /* end confdefs.h. */ | |
2657 | #define _LARGE_FILES 1 | |
2658 | #include <sys/types.h> | |
2659 | /* Check that off_t can represent 2**63 - 1 correctly. | |
2660 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
2661 | since some C++ compilers masquerading as C compilers | |
2662 | incorrectly reject 9223372036854775807. */ | |
2663 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
2664 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
2665 | && LARGE_OFF_T % 2147483647 == 1) | |
2666 | ? 1 : -1]; | |
2667 | int | |
2668 | main () | |
2669 | { | |
2670 | ||
2671 | ; | |
2672 | return 0; | |
2673 | } | |
2674 | _ACEOF | |
2675 | rm -f conftest.$ac_objext | |
2676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 2677 | (eval $ac_compile) 2>conftest.er1 |
a35eed7c | 2678 | ac_status=$? |
924b6140 | 2679 | grep -v '^ *+' conftest.er1 >conftest.err |
2680 | rm -f conftest.er1 | |
2681 | cat conftest.err >&5 | |
a35eed7c | 2682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2683 | (exit $ac_status); } && | |
4801580b | 2684 | { ac_try='test -z "$ac_c_werror_flag" |
2685 | || test ! -s conftest.err' | |
924b6140 | 2686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2687 | (eval $ac_try) 2>&5 | |
2688 | ac_status=$? | |
2689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2690 | (exit $ac_status); }; } && | |
2691 | { ac_try='test -s conftest.$ac_objext' | |
a35eed7c | 2692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2693 | (eval $ac_try) 2>&5 | |
2694 | ac_status=$? | |
2695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2696 | (exit $ac_status); }; }; then | |
2697 | ac_cv_sys_large_files=1; break | |
2698 | else | |
2699 | echo "$as_me: failed program was:" >&5 | |
2700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2701 | ||
2702 | fi | |
924b6140 | 2703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a35eed7c | 2704 | break |
2705 | done | |
2706 | fi | |
2707 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
2708 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
2709 | if test "$ac_cv_sys_large_files" != no; then | |
2710 | ||
2711 | cat >>confdefs.h <<_ACEOF | |
2712 | #define _LARGE_FILES $ac_cv_sys_large_files | |
2713 | _ACEOF | |
2714 | ||
2715 | fi | |
2716 | rm -f conftest* | |
2717 | fi | |
2718 | ||
2719 | ||
6a161fa9 | 2720 | # Must be GCC. |
2721 | test "x$GCC" = xyes || { { echo "$as_me:$LINENO: error: GCC is required" >&5 | |
2722 | echo "$as_me: error: GCC is required" >&2;} | |
2723 | { (exit 1); exit 1; }; } | |
2724 | ||
2725 | if test "x$default_CFLAGS" = xyes; then | |
2726 | # debug flags. | |
a5ffe966 | 2727 | tmp_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \ |
2728 | -Wundef -Wstrict-prototypes -g" | |
6a161fa9 | 2729 | |
2730 | # optimization flags. | |
a35eed7c | 2731 | echo "$as_me:$LINENO: checking whether optimization for size works" >&5 |
6a161fa9 | 2732 | echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6 |
2733 | if test "${size_flag+set}" = set; then | |
2734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2735 | else | |
2736 | ||
2737 | CFLAGS=-Os | |
98d15063 | 2738 | cat >conftest.$ac_ext <<_ACEOF |
98d15063 | 2739 | /* confdefs.h. */ |
2740 | _ACEOF | |
2741 | cat confdefs.h >>conftest.$ac_ext | |
2742 | cat >>conftest.$ac_ext <<_ACEOF | |
2743 | /* end confdefs.h. */ | |
6a161fa9 | 2744 | |
6a161fa9 | 2745 | int |
2746 | main () | |
2747 | { | |
2748 | ||
2749 | ; | |
2750 | return 0; | |
2751 | } | |
2752 | _ACEOF | |
2753 | rm -f conftest.$ac_objext | |
2754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 2755 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 2756 | ac_status=$? |
924b6140 | 2757 | grep -v '^ *+' conftest.er1 >conftest.err |
2758 | rm -f conftest.er1 | |
2759 | cat conftest.err >&5 | |
6a161fa9 | 2760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2761 | (exit $ac_status); } && | |
4801580b | 2762 | { ac_try='test -z "$ac_c_werror_flag" |
2763 | || test ! -s conftest.err' | |
924b6140 | 2764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2765 | (eval $ac_try) 2>&5 | |
2766 | ac_status=$? | |
2767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2768 | (exit $ac_status); }; } && | |
2769 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 2770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2771 | (eval $ac_try) 2>&5 | |
2772 | ac_status=$? | |
2773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2774 | (exit $ac_status); }; }; then | |
2775 | size_flag=yes | |
2776 | else | |
2777 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 2778 | sed 's/^/| /' conftest.$ac_ext >&5 |
2779 | ||
6a161fa9 | 2780 | size_flag=no |
2781 | fi | |
924b6140 | 2782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 2783 | |
2784 | fi | |
2785 | echo "$as_me:$LINENO: result: $size_flag" >&5 | |
2786 | echo "${ECHO_T}$size_flag" >&6 | |
2787 | if test "x$size_flag" = xyes; then | |
2788 | tmp_CFLAGS="$tmp_CFLAGS -Os" | |
2789 | else | |
2790 | tmp_CFLAGS="$tmp_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops" | |
2791 | fi | |
2792 | ||
2793 | # Force no alignment to save space on i386. | |
2794 | if test "x$host_cpu" = xi386; then | |
2795 | echo "$as_me:$LINENO: checking whether -falign-loops works" >&5 | |
2796 | echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6 | |
2797 | if test "${falign_loop_flag+set}" = set; then | |
2798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2799 | else | |
2800 | ||
2801 | CFLAGS="-falign-loops=1" | |
2802 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 2803 | /* confdefs.h. */ |
2804 | _ACEOF | |
2805 | cat confdefs.h >>conftest.$ac_ext | |
2806 | cat >>conftest.$ac_ext <<_ACEOF | |
2807 | /* end confdefs.h. */ | |
6a161fa9 | 2808 | |
6a161fa9 | 2809 | int |
2810 | main () | |
2811 | { | |
2812 | ||
2813 | ; | |
2814 | return 0; | |
2815 | } | |
2816 | _ACEOF | |
2817 | rm -f conftest.$ac_objext | |
2818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 2819 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 2820 | ac_status=$? |
924b6140 | 2821 | grep -v '^ *+' conftest.er1 >conftest.err |
2822 | rm -f conftest.er1 | |
2823 | cat conftest.err >&5 | |
6a161fa9 | 2824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2825 | (exit $ac_status); } && | |
4801580b | 2826 | { ac_try='test -z "$ac_c_werror_flag" |
2827 | || test ! -s conftest.err' | |
924b6140 | 2828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2829 | (eval $ac_try) 2>&5 | |
2830 | ac_status=$? | |
2831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2832 | (exit $ac_status); }; } && | |
2833 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 2834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2835 | (eval $ac_try) 2>&5 | |
2836 | ac_status=$? | |
2837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2838 | (exit $ac_status); }; }; then | |
2839 | falign_loop_flag=yes | |
2840 | else | |
2841 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 2842 | sed 's/^/| /' conftest.$ac_ext >&5 |
2843 | ||
6a161fa9 | 2844 | falign_loop_flag=no |
2845 | fi | |
924b6140 | 2846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 2847 | |
2848 | fi | |
2849 | echo "$as_me:$LINENO: result: $falign_loop_flag" >&5 | |
2850 | echo "${ECHO_T}$falign_loop_flag" >&6 | |
2851 | ||
2852 | if test "x$falign_loop_flag" = xyes; then | |
2853 | tmp_CFLAGS="$tmp_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1" | |
2854 | else | |
2855 | tmp_CFLAGS="$tmp_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1" | |
2856 | fi | |
2857 | fi | |
2858 | ||
59b8208a | 2859 | if test "x$amd64" = x1; then |
2860 | tmp_CFLAGS="$tmp_CFLAGS -m32" | |
2861 | fi | |
2862 | ||
6a161fa9 | 2863 | CFLAGS="$tmp_CFLAGS" |
2864 | fi | |
2865 | ||
2866 | ||
2867 | # Defined in aclocal.m4. | |
2868 | ||
2869 | echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5 | |
2870 | echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6 | |
4b13b216 | 2871 | if test "${grub_cv_asm_uscore+set}" = set; then |
6a161fa9 | 2872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2873 | else | |
2874 | cat > conftest.c <<\EOF | |
2875 | int | |
2876 | func (int *list) | |
2877 | { | |
2878 | *list = 0; | |
2879 | return *list; | |
2880 | } | |
2881 | EOF | |
2882 | ||
2883 | if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c' | |
2884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2885 | (eval $ac_try) 2>&5 | |
2886 | ac_status=$? | |
2887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2888 | (exit $ac_status); }; } && test -s conftest.s; then | |
2889 | true | |
2890 | else | |
2891 | { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5 | |
2892 | echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;} | |
2893 | { (exit 1); exit 1; }; } | |
2894 | fi | |
2895 | ||
2896 | if grep _func conftest.s >/dev/null 2>&1; then | |
4b13b216 | 2897 | grub_cv_asm_uscore=yes |
6a161fa9 | 2898 | else |
4b13b216 | 2899 | grub_cv_asm_uscore=no |
6a161fa9 | 2900 | fi |
2901 | ||
2902 | rm -f conftest* | |
2903 | fi | |
2904 | ||
2905 | ||
4b13b216 | 2906 | if test "x$grub_cv_asm_uscore" = xyes; then |
6a161fa9 | 2907 | |
2908 | cat >>confdefs.h <<_ACEOF | |
4b13b216 | 2909 | #define HAVE_ASM_USCORE $grub_cv_asm_uscore |
6a161fa9 | 2910 | _ACEOF |
2911 | ||
2912 | fi | |
2913 | ||
4b13b216 | 2914 | echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5 |
2915 | echo "${ECHO_T}$grub_cv_asm_uscore" >&6 | |
6a161fa9 | 2916 | |
e56cdf21 | 2917 | if test "x$host_cpu" = xi386; then |
6a161fa9 | 2918 | |
2919 | echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5 | |
2920 | echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6 | |
4b13b216 | 2921 | if test "${grub_cv_check_start_symbol+set}" = set; then |
6a161fa9 | 2922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2923 | else | |
2924 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 2925 | /* confdefs.h. */ |
2926 | _ACEOF | |
2927 | cat confdefs.h >>conftest.$ac_ext | |
2928 | cat >>conftest.$ac_ext <<_ACEOF | |
2929 | /* end confdefs.h. */ | |
6a161fa9 | 2930 | |
6a161fa9 | 2931 | int |
2932 | main () | |
2933 | { | |
2934 | asm ("incl start") | |
2935 | ; | |
2936 | return 0; | |
2937 | } | |
2938 | _ACEOF | |
2939 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
924b6140 | 2941 | (eval $ac_link) 2>conftest.er1 |
6a161fa9 | 2942 | ac_status=$? |
924b6140 | 2943 | grep -v '^ *+' conftest.er1 >conftest.err |
2944 | rm -f conftest.er1 | |
2945 | cat conftest.err >&5 | |
6a161fa9 | 2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2947 | (exit $ac_status); } && | |
4801580b | 2948 | { ac_try='test -z "$ac_c_werror_flag" |
2949 | || test ! -s conftest.err' | |
924b6140 | 2950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2951 | (eval $ac_try) 2>&5 | |
2952 | ac_status=$? | |
2953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2954 | (exit $ac_status); }; } && | |
2955 | { ac_try='test -s conftest$ac_exeext' | |
6a161fa9 | 2956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2957 | (eval $ac_try) 2>&5 | |
2958 | ac_status=$? | |
2959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2960 | (exit $ac_status); }; }; then | |
4b13b216 | 2961 | grub_cv_check_start_symbol=yes |
6a161fa9 | 2962 | else |
2963 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 2964 | sed 's/^/| /' conftest.$ac_ext >&5 |
2965 | ||
4b13b216 | 2966 | grub_cv_check_start_symbol=no |
6a161fa9 | 2967 | fi |
924b6140 | 2968 | rm -f conftest.err conftest.$ac_objext \ |
2969 | conftest$ac_exeext conftest.$ac_ext | |
6a161fa9 | 2970 | fi |
2971 | ||
2972 | ||
4b13b216 | 2973 | echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5 |
2974 | echo "${ECHO_T}$grub_cv_check_start_symbol" >&6 | |
6a161fa9 | 2975 | |
2976 | echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5 | |
2977 | echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6 | |
4b13b216 | 2978 | if test "${grub_cv_check_uscore_start_symbol+set}" = set; then |
6a161fa9 | 2979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2980 | else | |
2981 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 2982 | /* confdefs.h. */ |
2983 | _ACEOF | |
2984 | cat confdefs.h >>conftest.$ac_ext | |
2985 | cat >>conftest.$ac_ext <<_ACEOF | |
2986 | /* end confdefs.h. */ | |
6a161fa9 | 2987 | |
6a161fa9 | 2988 | int |
2989 | main () | |
2990 | { | |
2991 | asm ("incl _start") | |
2992 | ; | |
2993 | return 0; | |
2994 | } | |
2995 | _ACEOF | |
2996 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
924b6140 | 2998 | (eval $ac_link) 2>conftest.er1 |
6a161fa9 | 2999 | ac_status=$? |
924b6140 | 3000 | grep -v '^ *+' conftest.er1 >conftest.err |
3001 | rm -f conftest.er1 | |
3002 | cat conftest.err >&5 | |
6a161fa9 | 3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3004 | (exit $ac_status); } && | |
4801580b | 3005 | { ac_try='test -z "$ac_c_werror_flag" |
3006 | || test ! -s conftest.err' | |
924b6140 | 3007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3008 | (eval $ac_try) 2>&5 | |
3009 | ac_status=$? | |
3010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3011 | (exit $ac_status); }; } && | |
3012 | { ac_try='test -s conftest$ac_exeext' | |
6a161fa9 | 3013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3014 | (eval $ac_try) 2>&5 | |
3015 | ac_status=$? | |
3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3017 | (exit $ac_status); }; }; then | |
4b13b216 | 3018 | grub_cv_check_uscore_start_symbol=yes |
6a161fa9 | 3019 | else |
3020 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 3021 | sed 's/^/| /' conftest.$ac_ext >&5 |
3022 | ||
4b13b216 | 3023 | grub_cv_check_uscore_start_symbol=no |
6a161fa9 | 3024 | fi |
924b6140 | 3025 | rm -f conftest.err conftest.$ac_objext \ |
3026 | conftest$ac_exeext conftest.$ac_ext | |
6a161fa9 | 3027 | fi |
3028 | ||
3029 | ||
4b13b216 | 3030 | echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5 |
3031 | echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6 | |
6a161fa9 | 3032 | |
3033 | ||
3034 | ||
3035 | ||
4b13b216 | 3036 | if test "x$grub_cv_check_start_symbol" = xyes; then |
6a161fa9 | 3037 | cat >>confdefs.h <<\_ACEOF |
3038 | #define START_SYMBOL start | |
3039 | _ACEOF | |
3040 | ||
4b13b216 | 3041 | elif test "x$grub_cv_check_uscore_start_symbol" = xyes; then |
6a161fa9 | 3042 | cat >>confdefs.h <<\_ACEOF |
3043 | #define START_SYMBOL _start | |
3044 | _ACEOF | |
3045 | ||
3046 | else | |
3047 | { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5 | |
3048 | echo "$as_me: error: neither start nor _start is defined" >&2;} | |
3049 | { (exit 1); exit 1; }; } | |
3050 | fi | |
3051 | ||
3052 | ||
3053 | echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5 | |
3054 | echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6 | |
4b13b216 | 3055 | if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then |
6a161fa9 | 3056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3057 | else | |
3058 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 3059 | /* confdefs.h. */ |
3060 | _ACEOF | |
3061 | cat confdefs.h >>conftest.$ac_ext | |
3062 | cat >>conftest.$ac_ext <<_ACEOF | |
3063 | /* end confdefs.h. */ | |
6a161fa9 | 3064 | |
6a161fa9 | 3065 | int |
3066 | main () | |
3067 | { | |
3068 | asm ("incl __bss_start") | |
3069 | ; | |
3070 | return 0; | |
3071 | } | |
3072 | _ACEOF | |
3073 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
924b6140 | 3075 | (eval $ac_link) 2>conftest.er1 |
6a161fa9 | 3076 | ac_status=$? |
924b6140 | 3077 | grep -v '^ *+' conftest.er1 >conftest.err |
3078 | rm -f conftest.er1 | |
3079 | cat conftest.err >&5 | |
6a161fa9 | 3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3081 | (exit $ac_status); } && | |
4801580b | 3082 | { ac_try='test -z "$ac_c_werror_flag" |
3083 | || test ! -s conftest.err' | |
924b6140 | 3084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3085 | (eval $ac_try) 2>&5 | |
3086 | ac_status=$? | |
3087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3088 | (exit $ac_status); }; } && | |
3089 | { ac_try='test -s conftest$ac_exeext' | |
6a161fa9 | 3090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3091 | (eval $ac_try) 2>&5 | |
3092 | ac_status=$? | |
3093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3094 | (exit $ac_status); }; }; then | |
4b13b216 | 3095 | grub_cv_check_uscore_uscore_bss_start_symbol=yes |
6a161fa9 | 3096 | else |
3097 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 3098 | sed 's/^/| /' conftest.$ac_ext >&5 |
3099 | ||
4b13b216 | 3100 | grub_cv_check_uscore_uscore_bss_start_symbol=no |
6a161fa9 | 3101 | fi |
924b6140 | 3102 | rm -f conftest.err conftest.$ac_objext \ |
3103 | conftest$ac_exeext conftest.$ac_ext | |
6a161fa9 | 3104 | fi |
3105 | ||
3106 | ||
4b13b216 | 3107 | echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5 |
3108 | echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6 | |
6a161fa9 | 3109 | |
3110 | echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5 | |
3111 | echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6 | |
4b13b216 | 3112 | if test "${grub_cv_check_edata_symbol+set}" = set; then |
6a161fa9 | 3113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3114 | else | |
3115 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 3116 | /* confdefs.h. */ |
3117 | _ACEOF | |
3118 | cat confdefs.h >>conftest.$ac_ext | |
3119 | cat >>conftest.$ac_ext <<_ACEOF | |
3120 | /* end confdefs.h. */ | |
6a161fa9 | 3121 | |
6a161fa9 | 3122 | int |
3123 | main () | |
3124 | { | |
3125 | asm ("incl edata") | |
3126 | ; | |
3127 | return 0; | |
3128 | } | |
3129 | _ACEOF | |
3130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
924b6140 | 3132 | (eval $ac_link) 2>conftest.er1 |
6a161fa9 | 3133 | ac_status=$? |
924b6140 | 3134 | grep -v '^ *+' conftest.er1 >conftest.err |
3135 | rm -f conftest.er1 | |
3136 | cat conftest.err >&5 | |
6a161fa9 | 3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3138 | (exit $ac_status); } && | |
4801580b | 3139 | { ac_try='test -z "$ac_c_werror_flag" |
3140 | || test ! -s conftest.err' | |
924b6140 | 3141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3142 | (eval $ac_try) 2>&5 | |
3143 | ac_status=$? | |
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3145 | (exit $ac_status); }; } && | |
3146 | { ac_try='test -s conftest$ac_exeext' | |
6a161fa9 | 3147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3148 | (eval $ac_try) 2>&5 | |
3149 | ac_status=$? | |
3150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3151 | (exit $ac_status); }; }; then | |
4b13b216 | 3152 | grub_cv_check_edata_symbol=yes |
6a161fa9 | 3153 | else |
3154 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 3155 | sed 's/^/| /' conftest.$ac_ext >&5 |
3156 | ||
4b13b216 | 3157 | grub_cv_check_edata_symbol=no |
6a161fa9 | 3158 | fi |
924b6140 | 3159 | rm -f conftest.err conftest.$ac_objext \ |
3160 | conftest$ac_exeext conftest.$ac_ext | |
6a161fa9 | 3161 | fi |
3162 | ||
3163 | ||
4b13b216 | 3164 | echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5 |
3165 | echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6 | |
6a161fa9 | 3166 | |
3167 | echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5 | |
3168 | echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6 | |
4b13b216 | 3169 | if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then |
6a161fa9 | 3170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3171 | else | |
3172 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 3173 | /* confdefs.h. */ |
3174 | _ACEOF | |
3175 | cat confdefs.h >>conftest.$ac_ext | |
3176 | cat >>conftest.$ac_ext <<_ACEOF | |
3177 | /* end confdefs.h. */ | |
6a161fa9 | 3178 | |
6a161fa9 | 3179 | int |
3180 | main () | |
3181 | { | |
3182 | asm ("incl _edata") | |
3183 | ; | |
3184 | return 0; | |
3185 | } | |
3186 | _ACEOF | |
3187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
924b6140 | 3189 | (eval $ac_link) 2>conftest.er1 |
6a161fa9 | 3190 | ac_status=$? |
924b6140 | 3191 | grep -v '^ *+' conftest.er1 >conftest.err |
3192 | rm -f conftest.er1 | |
3193 | cat conftest.err >&5 | |
6a161fa9 | 3194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3195 | (exit $ac_status); } && | |
4801580b | 3196 | { ac_try='test -z "$ac_c_werror_flag" |
3197 | || test ! -s conftest.err' | |
924b6140 | 3198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3199 | (eval $ac_try) 2>&5 | |
3200 | ac_status=$? | |
3201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3202 | (exit $ac_status); }; } && | |
3203 | { ac_try='test -s conftest$ac_exeext' | |
6a161fa9 | 3204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3205 | (eval $ac_try) 2>&5 | |
3206 | ac_status=$? | |
3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3208 | (exit $ac_status); }; }; then | |
4b13b216 | 3209 | grub_cv_check_uscore_edata_symbol=yes |
6a161fa9 | 3210 | else |
3211 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 3212 | sed 's/^/| /' conftest.$ac_ext >&5 |
3213 | ||
4b13b216 | 3214 | grub_cv_check_uscore_edata_symbol=no |
6a161fa9 | 3215 | fi |
924b6140 | 3216 | rm -f conftest.err conftest.$ac_objext \ |
3217 | conftest$ac_exeext conftest.$ac_ext | |
6a161fa9 | 3218 | fi |
3219 | ||
3220 | ||
4b13b216 | 3221 | echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5 |
3222 | echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6 | |
6a161fa9 | 3223 | |
3224 | ||
3225 | ||
3226 | ||
4b13b216 | 3227 | if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then |
6a161fa9 | 3228 | cat >>confdefs.h <<\_ACEOF |
3229 | #define BSS_START_SYMBOL __bss_start | |
3230 | _ACEOF | |
3231 | ||
4b13b216 | 3232 | elif test "x$grub_cv_check_edata_symbol" = xyes; then |
6a161fa9 | 3233 | cat >>confdefs.h <<\_ACEOF |
3234 | #define BSS_START_SYMBOL edata | |
3235 | _ACEOF | |
3236 | ||
4b13b216 | 3237 | elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then |
6a161fa9 | 3238 | cat >>confdefs.h <<\_ACEOF |
3239 | #define BSS_START_SYMBOL _edata | |
3240 | _ACEOF | |
3241 | ||
3242 | else | |
3243 | { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5 | |
3244 | echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;} | |
3245 | { (exit 1); exit 1; }; } | |
3246 | fi | |
3247 | ||
3248 | ||
3249 | echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5 | |
3250 | echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6 | |
4b13b216 | 3251 | if test "${grub_cv_check_end_symbol+set}" = set; then |
6a161fa9 | 3252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3253 | else | |
3254 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 3255 | /* confdefs.h. */ |
3256 | _ACEOF | |
3257 | cat confdefs.h >>conftest.$ac_ext | |
3258 | cat >>conftest.$ac_ext <<_ACEOF | |
3259 | /* end confdefs.h. */ | |
6a161fa9 | 3260 | |
6a161fa9 | 3261 | int |
3262 | main () | |
3263 | { | |
3264 | asm ("incl end") | |
3265 | ; | |
3266 | return 0; | |
3267 | } | |
3268 | _ACEOF | |
3269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
924b6140 | 3271 | (eval $ac_link) 2>conftest.er1 |
6a161fa9 | 3272 | ac_status=$? |
924b6140 | 3273 | grep -v '^ *+' conftest.er1 >conftest.err |
3274 | rm -f conftest.er1 | |
3275 | cat conftest.err >&5 | |
6a161fa9 | 3276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3277 | (exit $ac_status); } && | |
4801580b | 3278 | { ac_try='test -z "$ac_c_werror_flag" |
3279 | || test ! -s conftest.err' | |
924b6140 | 3280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3281 | (eval $ac_try) 2>&5 | |
3282 | ac_status=$? | |
3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3284 | (exit $ac_status); }; } && | |
3285 | { ac_try='test -s conftest$ac_exeext' | |
6a161fa9 | 3286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3287 | (eval $ac_try) 2>&5 | |
3288 | ac_status=$? | |
3289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3290 | (exit $ac_status); }; }; then | |
4b13b216 | 3291 | grub_cv_check_end_symbol=yes |
6a161fa9 | 3292 | else |
3293 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 3294 | sed 's/^/| /' conftest.$ac_ext >&5 |
3295 | ||
4b13b216 | 3296 | grub_cv_check_end_symbol=no |
6a161fa9 | 3297 | fi |
924b6140 | 3298 | rm -f conftest.err conftest.$ac_objext \ |
3299 | conftest$ac_exeext conftest.$ac_ext | |
6a161fa9 | 3300 | fi |
3301 | ||
3302 | ||
4b13b216 | 3303 | echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5 |
3304 | echo "${ECHO_T}$grub_cv_check_end_symbol" >&6 | |
6a161fa9 | 3305 | |
3306 | echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5 | |
3307 | echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6 | |
4b13b216 | 3308 | if test "${grub_cv_check_uscore_end_symbol+set}" = set; then |
6a161fa9 | 3309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3310 | else | |
3311 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 3312 | /* confdefs.h. */ |
3313 | _ACEOF | |
3314 | cat confdefs.h >>conftest.$ac_ext | |
3315 | cat >>conftest.$ac_ext <<_ACEOF | |
3316 | /* end confdefs.h. */ | |
6a161fa9 | 3317 | |
6a161fa9 | 3318 | int |
3319 | main () | |
3320 | { | |
3321 | asm ("incl _end") | |
3322 | ; | |
3323 | return 0; | |
3324 | } | |
3325 | _ACEOF | |
3326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
924b6140 | 3328 | (eval $ac_link) 2>conftest.er1 |
6a161fa9 | 3329 | ac_status=$? |
924b6140 | 3330 | grep -v '^ *+' conftest.er1 >conftest.err |
3331 | rm -f conftest.er1 | |
3332 | cat conftest.err >&5 | |
6a161fa9 | 3333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3334 | (exit $ac_status); } && | |
4801580b | 3335 | { ac_try='test -z "$ac_c_werror_flag" |
3336 | || test ! -s conftest.err' | |
924b6140 | 3337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3338 | (eval $ac_try) 2>&5 | |
3339 | ac_status=$? | |
3340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3341 | (exit $ac_status); }; } && | |
3342 | { ac_try='test -s conftest$ac_exeext' | |
6a161fa9 | 3343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3344 | (eval $ac_try) 2>&5 | |
3345 | ac_status=$? | |
3346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3347 | (exit $ac_status); }; }; then | |
4b13b216 | 3348 | grub_cv_check_uscore_end_symbol=yes |
6a161fa9 | 3349 | else |
3350 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 3351 | sed 's/^/| /' conftest.$ac_ext >&5 |
3352 | ||
4b13b216 | 3353 | grub_cv_check_uscore_end_symbol=no |
6a161fa9 | 3354 | fi |
924b6140 | 3355 | rm -f conftest.err conftest.$ac_objext \ |
3356 | conftest$ac_exeext conftest.$ac_ext | |
6a161fa9 | 3357 | fi |
3358 | ||
3359 | ||
4b13b216 | 3360 | echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5 |
3361 | echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6 | |
6a161fa9 | 3362 | |
3363 | ||
3364 | ||
3365 | ||
4b13b216 | 3366 | if test "x$grub_cv_check_end_symbol" = xyes; then |
6a161fa9 | 3367 | cat >>confdefs.h <<\_ACEOF |
3368 | #define END_SYMBOL end | |
3369 | _ACEOF | |
3370 | ||
4b13b216 | 3371 | elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then |
6a161fa9 | 3372 | cat >>confdefs.h <<\_ACEOF |
3373 | #define END_SYMBOL _end | |
3374 | _ACEOF | |
3375 | ||
3376 | else | |
3377 | { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5 | |
3378 | echo "$as_me: error: neither end nor _end is defined" >&2;} | |
3379 | { (exit 1); exit 1; }; } | |
3380 | fi | |
3381 | ||
e56cdf21 | 3382 | fi |
6a161fa9 | 3383 | |
3384 | if test "x$host_cpu" = xi386; then | |
3385 | ||
3386 | echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5 | |
3387 | echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6 | |
4b13b216 | 3388 | if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then |
6a161fa9 | 3389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3390 | else | |
3391 | cat > conftest.s <<\EOF | |
3392 | .code16 | |
3393 | l1: addr32 movb %al, l1 | |
3394 | EOF | |
3395 | ||
3396 | if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s' | |
3397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3398 | (eval $ac_try) 2>&5 | |
3399 | ac_status=$? | |
3400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3401 | (exit $ac_status); }; } && test -s conftest.o; then | |
4b13b216 | 3402 | grub_cv_i386_asm_prefix_requirement=yes |
6a161fa9 | 3403 | else |
4b13b216 | 3404 | grub_cv_i386_asm_prefix_requirement=no |
6a161fa9 | 3405 | fi |
3406 | ||
3407 | rm -f conftest* | |
3408 | fi | |
3409 | ||
3410 | ||
4b13b216 | 3411 | if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then |
3412 | grub_tmp_addr32="addr32" | |
3413 | grub_tmp_data32="data32" | |
6a161fa9 | 3414 | else |
4b13b216 | 3415 | grub_tmp_addr32="addr32;" |
3416 | grub_tmp_data32="data32;" | |
6a161fa9 | 3417 | fi |
3418 | ||
3419 | ||
3420 | cat >>confdefs.h <<_ACEOF | |
4b13b216 | 3421 | #define ADDR32 $grub_tmp_addr32 |
6a161fa9 | 3422 | _ACEOF |
3423 | ||
3424 | ||
3425 | cat >>confdefs.h <<_ACEOF | |
4b13b216 | 3426 | #define DATA32 $grub_tmp_data32 |
6a161fa9 | 3427 | _ACEOF |
3428 | ||
3429 | ||
4b13b216 | 3430 | echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5 |
3431 | echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6 | |
6a161fa9 | 3432 | |
3433 | ||
3434 | echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5 | |
3435 | echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6 | |
4b13b216 | 3436 | if test "${grub_cv_i386_asm_addr32+set}" = set; then |
6a161fa9 | 3437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3438 | else | |
3439 | cat > conftest.s.in <<\EOF | |
3440 | .code16 | |
3441 | l1: @ADDR32@ movb %al, l1 | |
3442 | EOF | |
3443 | ||
4b13b216 | 3444 | if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then |
6a161fa9 | 3445 | sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s |
3446 | else | |
3447 | sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s | |
3448 | fi | |
3449 | ||
3450 | if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s' | |
3451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3452 | (eval $ac_try) 2>&5 | |
3453 | ac_status=$? | |
3454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3455 | (exit $ac_status); }; } && test -s conftest.o; then | |
4b13b216 | 3456 | grub_cv_i386_asm_addr32=yes |
6a161fa9 | 3457 | else |
4b13b216 | 3458 | grub_cv_i386_asm_addr32=no |
6a161fa9 | 3459 | fi |
3460 | ||
3461 | rm -f conftest* | |
3462 | fi | |
3463 | ||
3464 | ||
4b13b216 | 3465 | echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5 |
3466 | echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6 | |
6a161fa9 | 3467 | |
3468 | echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5 | |
3469 | echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6 | |
4b13b216 | 3470 | if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then |
6a161fa9 | 3471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3472 | else | |
3473 | cat > conftest.s <<\EOF | |
3474 | lcall *(offset) | |
3475 | offset: | |
3476 | .long 0 | |
3477 | .word 0 | |
3478 | EOF | |
3479 | ||
3480 | if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s' | |
3481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3482 | (eval $ac_try) 2>&5 | |
3483 | ac_status=$? | |
3484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3485 | (exit $ac_status); }; } && test -s conftest.o; then | |
4b13b216 | 3486 | grub_cv_i386_asm_absolute_without_asterisk=no |
6a161fa9 | 3487 | else |
4b13b216 | 3488 | grub_cv_i386_asm_absolute_without_asterisk=yes |
6a161fa9 | 3489 | fi |
3490 | ||
3491 | rm -f conftest* | |
3492 | fi | |
3493 | ||
3494 | ||
4b13b216 | 3495 | if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then |
6a161fa9 | 3496 | |
3497 | cat >>confdefs.h <<\_ACEOF | |
3498 | #define ABSOLUTE_WITHOUT_ASTERISK 1 | |
3499 | _ACEOF | |
3500 | ||
3501 | fi | |
3502 | ||
4b13b216 | 3503 | echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5 |
3504 | echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6 | |
5aded270 | 3505 | |
3506 | echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5 | |
3507 | echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6 | |
4b13b216 | 3508 | if test "${grub_cv_i386_check_nested_functions+set}" = set; then |
5aded270 | 3509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3510 | else | |
3511 | if test "$cross_compiling" = yes; then | |
3512 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
3513 | See \`config.log' for more details." >&5 | |
3514 | echo "$as_me: error: cannot run test program while cross compiling | |
3515 | See \`config.log' for more details." >&2;} | |
3516 | { (exit 1); exit 1; }; } | |
3517 | else | |
3518 | cat >conftest.$ac_ext <<_ACEOF | |
5aded270 | 3519 | /* confdefs.h. */ |
3520 | _ACEOF | |
3521 | cat confdefs.h >>conftest.$ac_ext | |
3522 | cat >>conftest.$ac_ext <<_ACEOF | |
3523 | /* end confdefs.h. */ | |
5aded270 | 3524 | |
e9c6f39b | 3525 | static int |
3526 | test (int *n) | |
3527 | { | |
3528 | return *n == -1; | |
3529 | } | |
3530 | ||
3531 | static int | |
3532 | testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c)) | |
5aded270 | 3533 | { |
e9c6f39b | 3534 | int a = 0; |
3535 | int b = 0; | |
3536 | int c = -1; | |
3537 | return hook (a, b, &c); | |
3538 | } | |
5aded270 | 3539 | |
e9c6f39b | 3540 | int |
3541 | main (void) | |
3542 | { | |
3543 | int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c) | |
5aded270 | 3544 | { |
e9c6f39b | 3545 | return a == b && test (c); |
5aded270 | 3546 | } |
e9c6f39b | 3547 | return testfunc (nestedfunc) ? 0 : 1; |
5aded270 | 3548 | } |
3549 | ||
3550 | _ACEOF | |
3551 | rm -f conftest$ac_exeext | |
3552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3553 | (eval $ac_link) 2>&5 | |
3554 | ac_status=$? | |
3555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3556 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3558 | (eval $ac_try) 2>&5 | |
3559 | ac_status=$? | |
3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3561 | (exit $ac_status); }; }; then | |
e9c6f39b | 3562 | grub_cv_i386_check_nested_functions=no |
5aded270 | 3563 | else |
3564 | echo "$as_me: program exited with status $ac_status" >&5 | |
3565 | echo "$as_me: failed program was:" >&5 | |
3566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3567 | ||
3568 | ( exit $ac_status ) | |
e9c6f39b | 3569 | grub_cv_i386_check_nested_functions=yes |
5aded270 | 3570 | fi |
924b6140 | 3571 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5aded270 | 3572 | fi |
3573 | fi | |
3574 | ||
3575 | ||
4b13b216 | 3576 | echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5 |
3577 | echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6 | |
5aded270 | 3578 | |
4b13b216 | 3579 | if test "x$grub_cv_i386_check_nested_functions" = xyes; then |
5aded270 | 3580 | |
3581 | cat >>confdefs.h <<\_ACEOF | |
3582 | #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2))) | |
3583 | _ACEOF | |
3584 | ||
3585 | else | |
3586 | ||
3587 | cat >>confdefs.h <<\_ACEOF | |
e9c6f39b | 3588 | #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2))) |
5aded270 | 3589 | _ACEOF |
3590 | ||
6a161fa9 | 3591 | fi |
3592 | ||
5aded270 | 3593 | else |
3594 | ||
3595 | cat >>confdefs.h <<\_ACEOF | |
3596 | #define NESTED_FUNC_ATTR | |
3597 | _ACEOF | |
3598 | ||
3599 | fi | |
6a161fa9 | 3600 | |
3601 | # Find a good install program. We prefer a C program (faster), | |
3602 | # so one script is as good as another. But avoid the broken or | |
3603 | # incompatible versions: | |
3604 | # SysV /etc/install, /usr/sbin/install | |
3605 | # SunOS /usr/etc/install | |
3606 | # IRIX /sbin/install | |
3607 | # AIX /bin/install | |
3608 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3609 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3610 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3611 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
924b6140 | 3612 | # OS/2's system install, which has a completely different semantic |
6a161fa9 | 3613 | # ./install, which can be erroneously created by make from ./install.sh. |
3614 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3615 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3616 | if test -z "$INSTALL"; then | |
3617 | if test "${ac_cv_path_install+set}" = set; then | |
3618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3619 | else | |
3620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3621 | for as_dir in $PATH | |
3622 | do | |
3623 | IFS=$as_save_IFS | |
3624 | test -z "$as_dir" && as_dir=. | |
3625 | # Account for people who put trailing slashes in PATH elements. | |
3626 | case $as_dir/ in | |
3627 | ./ | .// | /cC/* | \ | |
3628 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
924b6140 | 3629 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
6a161fa9 | 3630 | /usr/ucb/* ) ;; |
3631 | *) | |
3632 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3633 | # Don't use installbsd from OSF since it installs stuff as root | |
3634 | # by default. | |
3635 | for ac_prog in ginstall scoinst install; do | |
3636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
924b6140 | 3637 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3638 | if test $ac_prog = install && | |
3639 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3640 | # AIX install. It has an incompatible calling convention. | |
3641 | : | |
3642 | elif test $ac_prog = install && | |
3643 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3644 | # program-specific install script used by HP pwplus--don't use. | |
3645 | : | |
3646 | else | |
3647 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3648 | break 3 | |
3649 | fi | |
3650 | fi | |
6a161fa9 | 3651 | done |
3652 | done | |
3653 | ;; | |
3654 | esac | |
3655 | done | |
3656 | ||
3657 | ||
3658 | fi | |
3659 | if test "${ac_cv_path_install+set}" = set; then | |
3660 | INSTALL=$ac_cv_path_install | |
3661 | else | |
3662 | # As a last resort, use the slow shell script. We don't cache a | |
3663 | # path for INSTALL within a source directory, because that will | |
3664 | # break other packages using the cache if that directory is | |
3665 | # removed, or if the path is relative. | |
3666 | INSTALL=$ac_install_sh | |
3667 | fi | |
3668 | fi | |
3669 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3670 | echo "${ECHO_T}$INSTALL" >&6 | |
3671 | ||
3672 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3673 | # It thinks the first close brace ends the variable substitution. | |
3674 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3675 | ||
3676 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3677 | ||
3678 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3679 | ||
98d15063 | 3680 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3681 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
924b6140 | 3682 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
6a161fa9 | 3683 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
3684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3685 | else | |
3686 | cat >conftest.make <<\_ACEOF | |
3687 | all: | |
98d15063 | 3688 | @echo 'ac_maketemp="$(MAKE)"' |
6a161fa9 | 3689 | _ACEOF |
3690 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3691 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3692 | if test -n "$ac_maketemp"; then | |
3693 | eval ac_cv_prog_make_${ac_make}_set=yes | |
3694 | else | |
3695 | eval ac_cv_prog_make_${ac_make}_set=no | |
3696 | fi | |
3697 | rm -f conftest.make | |
3698 | fi | |
3699 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3700 | echo "$as_me:$LINENO: result: yes" >&5 | |
3701 | echo "${ECHO_T}yes" >&6 | |
3702 | SET_MAKE= | |
3703 | else | |
3704 | echo "$as_me:$LINENO: result: no" >&5 | |
3705 | echo "${ECHO_T}no" >&6 | |
3706 | SET_MAKE="MAKE=${MAKE-make}" | |
3707 | fi | |
3708 | ||
3709 | if test -n "$ac_tool_prefix"; then | |
3710 | # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args. | |
3711 | set dummy ${ac_tool_prefix}objcopy; ac_word=$2 | |
3712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3714 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then | |
3715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3716 | else | |
3717 | if test -n "$OBJCOPY"; then | |
3718 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
3719 | else | |
3720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3721 | for as_dir in $PATH | |
3722 | do | |
3723 | IFS=$as_save_IFS | |
3724 | test -z "$as_dir" && as_dir=. | |
3725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3726 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3727 | ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy" | |
3728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3729 | break 2 | |
3730 | fi | |
3731 | done | |
3732 | done | |
3733 | ||
3734 | fi | |
3735 | fi | |
3736 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
3737 | if test -n "$OBJCOPY"; then | |
3738 | echo "$as_me:$LINENO: result: $OBJCOPY" >&5 | |
3739 | echo "${ECHO_T}$OBJCOPY" >&6 | |
3740 | else | |
3741 | echo "$as_me:$LINENO: result: no" >&5 | |
3742 | echo "${ECHO_T}no" >&6 | |
3743 | fi | |
3744 | ||
3745 | fi | |
3746 | if test -z "$ac_cv_prog_OBJCOPY"; then | |
3747 | ac_ct_OBJCOPY=$OBJCOPY | |
3748 | # Extract the first word of "objcopy", so it can be a program name with args. | |
3749 | set dummy objcopy; ac_word=$2 | |
3750 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3752 | if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then | |
3753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3754 | else | |
3755 | if test -n "$ac_ct_OBJCOPY"; then | |
3756 | ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. | |
3757 | else | |
3758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3759 | for as_dir in $PATH | |
3760 | do | |
3761 | IFS=$as_save_IFS | |
3762 | test -z "$as_dir" && as_dir=. | |
3763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3764 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3765 | ac_cv_prog_ac_ct_OBJCOPY="objcopy" | |
3766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3767 | break 2 | |
3768 | fi | |
3769 | done | |
3770 | done | |
3771 | ||
3772 | fi | |
3773 | fi | |
3774 | ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY | |
3775 | if test -n "$ac_ct_OBJCOPY"; then | |
3776 | echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5 | |
3777 | echo "${ECHO_T}$ac_ct_OBJCOPY" >&6 | |
3778 | else | |
3779 | echo "$as_me:$LINENO: result: no" >&5 | |
3780 | echo "${ECHO_T}no" >&6 | |
3781 | fi | |
3782 | ||
3783 | OBJCOPY=$ac_ct_OBJCOPY | |
3784 | else | |
3785 | OBJCOPY="$ac_cv_prog_OBJCOPY" | |
3786 | fi | |
3787 | ||
3788 | echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5 | |
3789 | echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6 | |
4b13b216 | 3790 | if test "${grub_cv_prog_objcopy_absolute+set}" = set; then |
6a161fa9 | 3791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3792 | else | |
3793 | cat > conftest.c <<\EOF | |
3794 | void | |
3795 | cmain (void) | |
3796 | { | |
3797 | *((int *) 0x1000) = 2; | |
3798 | } | |
3799 | EOF | |
3800 | ||
3801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3802 | (eval $ac_compile) 2>&5 | |
3803 | ac_status=$? | |
3804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3805 | (exit $ac_status); } && test -s conftest.o; then : | |
3806 | else | |
3807 | { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5 | |
3808 | echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;} | |
3809 | { (exit 1); exit 1; }; } | |
3810 | fi | |
4b13b216 | 3811 | grub_cv_prog_objcopy_absolute=yes |
6a161fa9 | 3812 | for link_addr in 2000 8000 7C00; do |
3813 | if { ac_try='${CC-cc} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec' | |
3814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3815 | (eval $ac_try) 2>&5 | |
3816 | ac_status=$? | |
3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3818 | (exit $ac_status); }; }; then : | |
3819 | else | |
3820 | { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5 | |
3821 | echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;} | |
3822 | { (exit 1); exit 1; }; } | |
3823 | fi | |
3824 | if { ac_try='${OBJCOPY-objcopy} -O binary conftest.exec conftest' | |
3825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3826 | (eval $ac_try) 2>&5 | |
3827 | ac_status=$? | |
3828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3829 | (exit $ac_status); }; }; then : | |
3830 | else | |
3831 | { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5 | |
3832 | echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;} | |
3833 | { (exit 1); exit 1; }; } | |
3834 | fi | |
3835 | if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest' | |
3836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3837 | (eval $ac_try) 2>&5 | |
3838 | ac_status=$? | |
3839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3840 | (exit $ac_status); }; }; then | |
3841 | mv -f conftest conftest.old | |
3842 | else | |
4b13b216 | 3843 | grub_cv_prog_objcopy_absolute=no |
6a161fa9 | 3844 | break |
3845 | fi | |
3846 | done | |
3847 | rm -f conftest* | |
3848 | fi | |
3849 | ||
4b13b216 | 3850 | echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5 |
3851 | echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6 | |
6a161fa9 | 3852 | |
4b13b216 | 3853 | if test "x$grub_cv_prog_objcopy_absolute" = xno; then |
3854 | { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5 | |
3855 | echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;} | |
6a161fa9 | 3856 | { (exit 1); exit 1; }; } |
3857 | fi | |
3858 | ||
3859 | if test -n "$ac_tool_prefix"; then | |
3860 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3861 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3864 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3866 | else | |
3867 | if test -n "$STRIP"; then | |
3868 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3869 | else | |
3870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3871 | for as_dir in $PATH | |
3872 | do | |
3873 | IFS=$as_save_IFS | |
3874 | test -z "$as_dir" && as_dir=. | |
3875 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3877 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3879 | break 2 | |
3880 | fi | |
3881 | done | |
3882 | done | |
3883 | ||
3884 | fi | |
3885 | fi | |
3886 | STRIP=$ac_cv_prog_STRIP | |
3887 | if test -n "$STRIP"; then | |
3888 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
3889 | echo "${ECHO_T}$STRIP" >&6 | |
3890 | else | |
3891 | echo "$as_me:$LINENO: result: no" >&5 | |
3892 | echo "${ECHO_T}no" >&6 | |
3893 | fi | |
3894 | ||
3895 | fi | |
3896 | if test -z "$ac_cv_prog_STRIP"; then | |
3897 | ac_ct_STRIP=$STRIP | |
3898 | # Extract the first word of "strip", so it can be a program name with args. | |
3899 | set dummy strip; ac_word=$2 | |
3900 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3902 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3904 | else | |
3905 | if test -n "$ac_ct_STRIP"; then | |
3906 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3907 | else | |
3908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3909 | for as_dir in $PATH | |
3910 | do | |
3911 | IFS=$as_save_IFS | |
3912 | test -z "$as_dir" && as_dir=. | |
3913 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3914 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3915 | ac_cv_prog_ac_ct_STRIP="strip" | |
3916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3917 | break 2 | |
3918 | fi | |
3919 | done | |
3920 | done | |
3921 | ||
3922 | fi | |
3923 | fi | |
3924 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3925 | if test -n "$ac_ct_STRIP"; then | |
3926 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3927 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
3928 | else | |
3929 | echo "$as_me:$LINENO: result: no" >&5 | |
3930 | echo "${ECHO_T}no" >&6 | |
3931 | fi | |
3932 | ||
3933 | STRIP=$ac_ct_STRIP | |
3934 | else | |
3935 | STRIP="$ac_cv_prog_STRIP" | |
3936 | fi | |
3937 | ||
3938 | if test -n "$ac_tool_prefix"; then | |
3939 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
3940 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
3941 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3943 | if test "${ac_cv_prog_NM+set}" = set; then | |
3944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3945 | else | |
3946 | if test -n "$NM"; then | |
3947 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
3948 | else | |
3949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3950 | for as_dir in $PATH | |
3951 | do | |
3952 | IFS=$as_save_IFS | |
3953 | test -z "$as_dir" && as_dir=. | |
3954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3955 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3956 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
3957 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3958 | break 2 | |
3959 | fi | |
3960 | done | |
3961 | done | |
3962 | ||
3963 | fi | |
3964 | fi | |
3965 | NM=$ac_cv_prog_NM | |
3966 | if test -n "$NM"; then | |
3967 | echo "$as_me:$LINENO: result: $NM" >&5 | |
3968 | echo "${ECHO_T}$NM" >&6 | |
3969 | else | |
3970 | echo "$as_me:$LINENO: result: no" >&5 | |
3971 | echo "${ECHO_T}no" >&6 | |
3972 | fi | |
3973 | ||
3974 | fi | |
3975 | if test -z "$ac_cv_prog_NM"; then | |
3976 | ac_ct_NM=$NM | |
3977 | # Extract the first word of "nm", so it can be a program name with args. | |
3978 | set dummy nm; ac_word=$2 | |
3979 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3980 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3981 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
3982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3983 | else | |
3984 | if test -n "$ac_ct_NM"; then | |
3985 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
3986 | else | |
3987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3988 | for as_dir in $PATH | |
3989 | do | |
3990 | IFS=$as_save_IFS | |
3991 | test -z "$as_dir" && as_dir=. | |
3992 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3993 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3994 | ac_cv_prog_ac_ct_NM="nm" | |
3995 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3996 | break 2 | |
3997 | fi | |
3998 | done | |
3999 | done | |
4000 | ||
4001 | fi | |
4002 | fi | |
4003 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
4004 | if test -n "$ac_ct_NM"; then | |
4005 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
4006 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
4007 | else | |
4008 | echo "$as_me:$LINENO: result: no" >&5 | |
4009 | echo "${ECHO_T}no" >&6 | |
4010 | fi | |
4011 | ||
4012 | NM=$ac_ct_NM | |
4013 | else | |
4014 | NM="$ac_cv_prog_NM" | |
4015 | fi | |
4016 | ||
9962ed99 | 4017 | if test -n "$ac_tool_prefix"; then |
4018 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. | |
4019 | set dummy ${ac_tool_prefix}ld; ac_word=$2 | |
4020 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4021 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4022 | if test "${ac_cv_prog_LD+set}" = set; then | |
4023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4024 | else | |
4025 | if test -n "$LD"; then | |
4026 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
4027 | else | |
4028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4029 | for as_dir in $PATH | |
4030 | do | |
4031 | IFS=$as_save_IFS | |
4032 | test -z "$as_dir" && as_dir=. | |
4033 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4034 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4035 | ac_cv_prog_LD="${ac_tool_prefix}ld" | |
4036 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4037 | break 2 | |
4038 | fi | |
4039 | done | |
4040 | done | |
4041 | ||
4042 | fi | |
4043 | fi | |
4044 | LD=$ac_cv_prog_LD | |
4045 | if test -n "$LD"; then | |
4046 | echo "$as_me:$LINENO: result: $LD" >&5 | |
4047 | echo "${ECHO_T}$LD" >&6 | |
4048 | else | |
4049 | echo "$as_me:$LINENO: result: no" >&5 | |
4050 | echo "${ECHO_T}no" >&6 | |
4051 | fi | |
4052 | ||
4053 | fi | |
4054 | if test -z "$ac_cv_prog_LD"; then | |
4055 | ac_ct_LD=$LD | |
4056 | # Extract the first word of "ld", so it can be a program name with args. | |
4057 | set dummy ld; ac_word=$2 | |
4058 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4060 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then | |
4061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4062 | else | |
4063 | if test -n "$ac_ct_LD"; then | |
4064 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. | |
4065 | else | |
4066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4067 | for as_dir in $PATH | |
4068 | do | |
4069 | IFS=$as_save_IFS | |
4070 | test -z "$as_dir" && as_dir=. | |
4071 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4072 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4073 | ac_cv_prog_ac_ct_LD="ld" | |
4074 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4075 | break 2 | |
4076 | fi | |
4077 | done | |
4078 | done | |
4079 | ||
4080 | fi | |
4081 | fi | |
4082 | ac_ct_LD=$ac_cv_prog_ac_ct_LD | |
4083 | if test -n "$ac_ct_LD"; then | |
4084 | echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 | |
4085 | echo "${ECHO_T}$ac_ct_LD" >&6 | |
4086 | else | |
4087 | echo "$as_me:$LINENO: result: no" >&5 | |
4088 | echo "${ECHO_T}no" >&6 | |
4089 | fi | |
4090 | ||
4091 | LD=$ac_ct_LD | |
4092 | else | |
4093 | LD="$ac_cv_prog_LD" | |
4094 | fi | |
4095 | ||
6a161fa9 | 4096 | |
4097 | # This is not a "must". | |
4098 | # Extract the first word of "ruby", so it can be a program name with args. | |
4099 | set dummy ruby; ac_word=$2 | |
4100 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4101 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4102 | if test "${ac_cv_path_RUBY+set}" = set; then | |
4103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4104 | else | |
4105 | case $RUBY in | |
4106 | [\\/]* | ?:[\\/]*) | |
4107 | ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path. | |
4108 | ;; | |
4109 | *) | |
4110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4111 | for as_dir in $PATH | |
4112 | do | |
4113 | IFS=$as_save_IFS | |
4114 | test -z "$as_dir" && as_dir=. | |
4115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4116 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4117 | ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext" | |
4118 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4119 | break 2 | |
4120 | fi | |
4121 | done | |
4122 | done | |
4123 | ||
4124 | ;; | |
4125 | esac | |
4126 | fi | |
4127 | RUBY=$ac_cv_path_RUBY | |
4128 | ||
4129 | if test -n "$RUBY"; then | |
4130 | echo "$as_me:$LINENO: result: $RUBY" >&5 | |
4131 | echo "${ECHO_T}$RUBY" >&6 | |
4132 | else | |
4133 | echo "$as_me:$LINENO: result: no" >&5 | |
4134 | echo "${ECHO_T}no" >&6 | |
4135 | fi | |
4136 | ||
4137 | ||
4138 | # For cross-compiling. | |
121c1d83 | 4139 | if test "x$build" != "x$host"; then |
6a161fa9 | 4140 | for ac_prog in gcc egcs cc |
4141 | do | |
4142 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4143 | set dummy $ac_prog; ac_word=$2 | |
4144 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4146 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | |
4147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4148 | else | |
4149 | if test -n "$BUILD_CC"; then | |
4150 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
4151 | else | |
4152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4153 | for as_dir in $PATH | |
4154 | do | |
4155 | IFS=$as_save_IFS | |
4156 | test -z "$as_dir" && as_dir=. | |
4157 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4158 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4159 | ac_cv_prog_BUILD_CC="$ac_prog" | |
4160 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4161 | break 2 | |
4162 | fi | |
4163 | done | |
4164 | done | |
4165 | ||
4166 | fi | |
4167 | fi | |
4168 | BUILD_CC=$ac_cv_prog_BUILD_CC | |
4169 | if test -n "$BUILD_CC"; then | |
4170 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | |
4171 | echo "${ECHO_T}$BUILD_CC" >&6 | |
4172 | else | |
4173 | echo "$as_me:$LINENO: result: no" >&5 | |
4174 | echo "${ECHO_T}no" >&6 | |
4175 | fi | |
4176 | ||
4177 | test -n "$BUILD_CC" && break | |
4178 | done | |
4179 | test -n "$BUILD_CC" || BUILD_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set BUILD_CC manually." >&5 | |
4180 | echo "$as_me: error: none of gcc, egcs and cc is found. set BUILD_CC manually." >&2;} | |
4181 | { (exit 1); exit 1; }; }" | |
4182 | ||
e56cdf21 | 4183 | else |
4184 | BUILD_CC="$CC" | |
4185 | ||
6a161fa9 | 4186 | fi |
4187 | ||
4188 | # Test the C compiler for the build environment. | |
9962ed99 | 4189 | tmp_CC="$CC" |
4190 | tmp_CFLAGS="$CFLAGS" | |
59b8208a | 4191 | tmp_LDFLAGS="$LDFLAGS" |
9962ed99 | 4192 | tmp_CPPFLAGS="$CPPFLAGS" |
6a161fa9 | 4193 | CC="$BUILD_CC" |
9962ed99 | 4194 | CFLAGS="$BUILD_CFLAGS" |
4195 | CPPFLAGS="$BUILD_CPPFLAGS" | |
59b8208a | 4196 | LDFLAGS="$BUILD_LDDFLAGS" |
1f5ab428 | 4197 | |
4198 | # Identify characteristics of the build architecture. | |
6a161fa9 | 4199 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
4200 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
4201 | if test "${ac_cv_c_bigendian+set}" = set; then | |
4202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4203 | else | |
4204 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4205 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4206 | /* confdefs.h. */ |
4207 | _ACEOF | |
4208 | cat confdefs.h >>conftest.$ac_ext | |
4209 | cat >>conftest.$ac_ext <<_ACEOF | |
4210 | /* end confdefs.h. */ | |
6a161fa9 | 4211 | #include <sys/types.h> |
4212 | #include <sys/param.h> | |
4213 | ||
6a161fa9 | 4214 | int |
4215 | main () | |
4216 | { | |
4217 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
4218 | bogus endian macros | |
4219 | #endif | |
4220 | ||
4221 | ; | |
4222 | return 0; | |
4223 | } | |
4224 | _ACEOF | |
4225 | rm -f conftest.$ac_objext | |
4226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 4227 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 4228 | ac_status=$? |
924b6140 | 4229 | grep -v '^ *+' conftest.er1 >conftest.err |
4230 | rm -f conftest.er1 | |
4231 | cat conftest.err >&5 | |
6a161fa9 | 4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4233 | (exit $ac_status); } && | |
4801580b | 4234 | { ac_try='test -z "$ac_c_werror_flag" |
4235 | || test ! -s conftest.err' | |
924b6140 | 4236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4237 | (eval $ac_try) 2>&5 | |
4238 | ac_status=$? | |
4239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4240 | (exit $ac_status); }; } && | |
4241 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 4242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4243 | (eval $ac_try) 2>&5 | |
4244 | ac_status=$? | |
4245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4246 | (exit $ac_status); }; }; then | |
4247 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4248 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4249 | /* confdefs.h. */ |
4250 | _ACEOF | |
4251 | cat confdefs.h >>conftest.$ac_ext | |
4252 | cat >>conftest.$ac_ext <<_ACEOF | |
4253 | /* end confdefs.h. */ | |
6a161fa9 | 4254 | #include <sys/types.h> |
4255 | #include <sys/param.h> | |
4256 | ||
6a161fa9 | 4257 | int |
4258 | main () | |
4259 | { | |
4260 | #if BYTE_ORDER != BIG_ENDIAN | |
4261 | not big endian | |
4262 | #endif | |
4263 | ||
4264 | ; | |
4265 | return 0; | |
4266 | } | |
4267 | _ACEOF | |
4268 | rm -f conftest.$ac_objext | |
4269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 4270 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 4271 | ac_status=$? |
924b6140 | 4272 | grep -v '^ *+' conftest.er1 >conftest.err |
4273 | rm -f conftest.er1 | |
4274 | cat conftest.err >&5 | |
6a161fa9 | 4275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4276 | (exit $ac_status); } && | |
4801580b | 4277 | { ac_try='test -z "$ac_c_werror_flag" |
4278 | || test ! -s conftest.err' | |
924b6140 | 4279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4280 | (eval $ac_try) 2>&5 | |
4281 | ac_status=$? | |
4282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4283 | (exit $ac_status); }; } && | |
4284 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 4285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4286 | (eval $ac_try) 2>&5 | |
4287 | ac_status=$? | |
4288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4289 | (exit $ac_status); }; }; then | |
4290 | ac_cv_c_bigendian=yes | |
4291 | else | |
4292 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 4293 | sed 's/^/| /' conftest.$ac_ext >&5 |
4294 | ||
6a161fa9 | 4295 | ac_cv_c_bigendian=no |
4296 | fi | |
924b6140 | 4297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 4298 | else |
4299 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 4300 | sed 's/^/| /' conftest.$ac_ext >&5 |
4301 | ||
6a161fa9 | 4302 | # It does not; compile a test program. |
4303 | if test "$cross_compiling" = yes; then | |
98d15063 | 4304 | # try to guess the endianness by grepping values into an object file |
6a161fa9 | 4305 | ac_cv_c_bigendian=unknown |
4306 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4307 | /* confdefs.h. */ |
4308 | _ACEOF | |
4309 | cat confdefs.h >>conftest.$ac_ext | |
4310 | cat >>conftest.$ac_ext <<_ACEOF | |
4311 | /* end confdefs.h. */ | |
6a161fa9 | 4312 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
4313 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
4314 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
4315 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
4316 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
4317 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
6a161fa9 | 4318 | int |
4319 | main () | |
4320 | { | |
4321 | _ascii (); _ebcdic (); | |
4322 | ; | |
4323 | return 0; | |
4324 | } | |
4325 | _ACEOF | |
4326 | rm -f conftest.$ac_objext | |
4327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 4328 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 4329 | ac_status=$? |
924b6140 | 4330 | grep -v '^ *+' conftest.er1 >conftest.err |
4331 | rm -f conftest.er1 | |
4332 | cat conftest.err >&5 | |
6a161fa9 | 4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4334 | (exit $ac_status); } && | |
4801580b | 4335 | { ac_try='test -z "$ac_c_werror_flag" |
4336 | || test ! -s conftest.err' | |
924b6140 | 4337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4338 | (eval $ac_try) 2>&5 | |
4339 | ac_status=$? | |
4340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4341 | (exit $ac_status); }; } && | |
4342 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 4343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4344 | (eval $ac_try) 2>&5 | |
4345 | ac_status=$? | |
4346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4347 | (exit $ac_status); }; }; then | |
98d15063 | 4348 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
6a161fa9 | 4349 | ac_cv_c_bigendian=yes |
4350 | fi | |
98d15063 | 4351 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
6a161fa9 | 4352 | if test "$ac_cv_c_bigendian" = unknown; then |
4353 | ac_cv_c_bigendian=no | |
4354 | else | |
4355 | # finding both strings is unlikely to happen, but who knows? | |
4356 | ac_cv_c_bigendian=unknown | |
4357 | fi | |
4358 | fi | |
4359 | else | |
4360 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 4361 | sed 's/^/| /' conftest.$ac_ext >&5 |
4362 | ||
6a161fa9 | 4363 | fi |
924b6140 | 4364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 4365 | else |
4366 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4367 | /* confdefs.h. */ |
4368 | _ACEOF | |
4369 | cat confdefs.h >>conftest.$ac_ext | |
4370 | cat >>conftest.$ac_ext <<_ACEOF | |
4371 | /* end confdefs.h. */ | |
6a161fa9 | 4372 | int |
4373 | main () | |
4374 | { | |
4375 | /* Are we little or big endian? From Harbison&Steele. */ | |
4376 | union | |
4377 | { | |
4378 | long l; | |
4379 | char c[sizeof (long)]; | |
4380 | } u; | |
4381 | u.l = 1; | |
4382 | exit (u.c[sizeof (long) - 1] == 1); | |
4383 | } | |
4384 | _ACEOF | |
4385 | rm -f conftest$ac_exeext | |
4386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4387 | (eval $ac_link) 2>&5 | |
4388 | ac_status=$? | |
4389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4390 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4392 | (eval $ac_try) 2>&5 | |
4393 | ac_status=$? | |
4394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4395 | (exit $ac_status); }; }; then | |
4396 | ac_cv_c_bigendian=no | |
4397 | else | |
4398 | echo "$as_me: program exited with status $ac_status" >&5 | |
4399 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 4400 | sed 's/^/| /' conftest.$ac_ext >&5 |
4401 | ||
6a161fa9 | 4402 | ( exit $ac_status ) |
4403 | ac_cv_c_bigendian=yes | |
4404 | fi | |
924b6140 | 4405 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 4406 | fi |
4407 | fi | |
924b6140 | 4408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 4409 | fi |
4410 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
4411 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
4412 | case $ac_cv_c_bigendian in | |
4413 | yes) | |
4414 | ||
4415 | cat >>confdefs.h <<\_ACEOF | |
4416 | #define WORDS_BIGENDIAN 1 | |
4417 | _ACEOF | |
4418 | ;; | |
4419 | no) | |
4420 | ;; | |
4421 | *) | |
98d15063 | 4422 | { { echo "$as_me:$LINENO: error: unknown endianness |
6a161fa9 | 4423 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
98d15063 | 4424 | echo "$as_me: error: unknown endianness |
6a161fa9 | 4425 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
4426 | { (exit 1); exit 1; }; } ;; | |
4427 | esac | |
4428 | ||
4429 | ac_ext=c | |
4430 | ac_cpp='$CPP $CPPFLAGS' | |
4431 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4432 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4433 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4434 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4435 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4436 | # On Suns, sometimes $CPP names a directory. | |
4437 | if test -n "$CPP" && test -d "$CPP"; then | |
4438 | CPP= | |
4439 | fi | |
4440 | if test -z "$CPP"; then | |
4441 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4443 | else | |
4444 | # Double quotes because CPP needs to be expanded | |
4445 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4446 | do | |
4447 | ac_preproc_ok=false | |
4448 | for ac_c_preproc_warn_flag in '' yes | |
4449 | do | |
4450 | # Use a header file that comes with gcc, so configuring glibc | |
4451 | # with a fresh cross-compiler works. | |
98d15063 | 4452 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4453 | # <limits.h> exists even on freestanding compilers. | |
6a161fa9 | 4454 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4455 | # not just through cpp. "Syntax error" is here to catch this case. | |
4456 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4457 | /* confdefs.h. */ |
4458 | _ACEOF | |
4459 | cat confdefs.h >>conftest.$ac_ext | |
4460 | cat >>conftest.$ac_ext <<_ACEOF | |
4461 | /* end confdefs.h. */ | |
4462 | #ifdef __STDC__ | |
4463 | # include <limits.h> | |
4464 | #else | |
4465 | # include <assert.h> | |
4466 | #endif | |
924b6140 | 4467 | Syntax error |
6a161fa9 | 4468 | _ACEOF |
4469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4471 | ac_status=$? | |
98d15063 | 4472 | grep -v '^ *+' conftest.er1 >conftest.err |
6a161fa9 | 4473 | rm -f conftest.er1 |
4474 | cat conftest.err >&5 | |
4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4476 | (exit $ac_status); } >/dev/null; then | |
4477 | if test -s conftest.err; then | |
4478 | ac_cpp_err=$ac_c_preproc_warn_flag | |
924b6140 | 4479 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6a161fa9 | 4480 | else |
4481 | ac_cpp_err= | |
4482 | fi | |
4483 | else | |
4484 | ac_cpp_err=yes | |
4485 | fi | |
4486 | if test -z "$ac_cpp_err"; then | |
4487 | : | |
4488 | else | |
4489 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 4490 | sed 's/^/| /' conftest.$ac_ext >&5 |
4491 | ||
6a161fa9 | 4492 | # Broken: fails on valid input. |
4493 | continue | |
4494 | fi | |
4495 | rm -f conftest.err conftest.$ac_ext | |
4496 | ||
4497 | # OK, works on sane cases. Now check whether non-existent headers | |
4498 | # can be detected and how. | |
4499 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4500 | /* confdefs.h. */ |
4501 | _ACEOF | |
4502 | cat confdefs.h >>conftest.$ac_ext | |
4503 | cat >>conftest.$ac_ext <<_ACEOF | |
4504 | /* end confdefs.h. */ | |
6a161fa9 | 4505 | #include <ac_nonexistent.h> |
4506 | _ACEOF | |
4507 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4508 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4509 | ac_status=$? | |
98d15063 | 4510 | grep -v '^ *+' conftest.er1 >conftest.err |
6a161fa9 | 4511 | rm -f conftest.er1 |
4512 | cat conftest.err >&5 | |
4513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4514 | (exit $ac_status); } >/dev/null; then | |
4515 | if test -s conftest.err; then | |
4516 | ac_cpp_err=$ac_c_preproc_warn_flag | |
924b6140 | 4517 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6a161fa9 | 4518 | else |
4519 | ac_cpp_err= | |
4520 | fi | |
4521 | else | |
4522 | ac_cpp_err=yes | |
4523 | fi | |
4524 | if test -z "$ac_cpp_err"; then | |
4525 | # Broken: success on invalid input. | |
4526 | continue | |
4527 | else | |
4528 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 4529 | sed 's/^/| /' conftest.$ac_ext >&5 |
4530 | ||
6a161fa9 | 4531 | # Passes both tests. |
4532 | ac_preproc_ok=: | |
4533 | break | |
4534 | fi | |
4535 | rm -f conftest.err conftest.$ac_ext | |
4536 | ||
4537 | done | |
4538 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4539 | rm -f conftest.err conftest.$ac_ext | |
4540 | if $ac_preproc_ok; then | |
4541 | break | |
4542 | fi | |
4543 | ||
4544 | done | |
4545 | ac_cv_prog_CPP=$CPP | |
4546 | ||
4547 | fi | |
4548 | CPP=$ac_cv_prog_CPP | |
4549 | else | |
4550 | ac_cv_prog_CPP=$CPP | |
4551 | fi | |
4552 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4553 | echo "${ECHO_T}$CPP" >&6 | |
4554 | ac_preproc_ok=false | |
4555 | for ac_c_preproc_warn_flag in '' yes | |
4556 | do | |
4557 | # Use a header file that comes with gcc, so configuring glibc | |
4558 | # with a fresh cross-compiler works. | |
98d15063 | 4559 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4560 | # <limits.h> exists even on freestanding compilers. | |
6a161fa9 | 4561 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4562 | # not just through cpp. "Syntax error" is here to catch this case. | |
4563 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4564 | /* confdefs.h. */ |
4565 | _ACEOF | |
4566 | cat confdefs.h >>conftest.$ac_ext | |
4567 | cat >>conftest.$ac_ext <<_ACEOF | |
4568 | /* end confdefs.h. */ | |
4569 | #ifdef __STDC__ | |
4570 | # include <limits.h> | |
4571 | #else | |
4572 | # include <assert.h> | |
4573 | #endif | |
924b6140 | 4574 | Syntax error |
6a161fa9 | 4575 | _ACEOF |
4576 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4577 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4578 | ac_status=$? | |
98d15063 | 4579 | grep -v '^ *+' conftest.er1 >conftest.err |
6a161fa9 | 4580 | rm -f conftest.er1 |
4581 | cat conftest.err >&5 | |
4582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4583 | (exit $ac_status); } >/dev/null; then | |
4584 | if test -s conftest.err; then | |
4585 | ac_cpp_err=$ac_c_preproc_warn_flag | |
924b6140 | 4586 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6a161fa9 | 4587 | else |
4588 | ac_cpp_err= | |
4589 | fi | |
4590 | else | |
4591 | ac_cpp_err=yes | |
4592 | fi | |
4593 | if test -z "$ac_cpp_err"; then | |
4594 | : | |
4595 | else | |
4596 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 4597 | sed 's/^/| /' conftest.$ac_ext >&5 |
4598 | ||
6a161fa9 | 4599 | # Broken: fails on valid input. |
4600 | continue | |
4601 | fi | |
4602 | rm -f conftest.err conftest.$ac_ext | |
4603 | ||
4604 | # OK, works on sane cases. Now check whether non-existent headers | |
4605 | # can be detected and how. | |
4606 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4607 | /* confdefs.h. */ |
4608 | _ACEOF | |
4609 | cat confdefs.h >>conftest.$ac_ext | |
4610 | cat >>conftest.$ac_ext <<_ACEOF | |
4611 | /* end confdefs.h. */ | |
6a161fa9 | 4612 | #include <ac_nonexistent.h> |
4613 | _ACEOF | |
4614 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4615 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4616 | ac_status=$? | |
98d15063 | 4617 | grep -v '^ *+' conftest.er1 >conftest.err |
6a161fa9 | 4618 | rm -f conftest.er1 |
4619 | cat conftest.err >&5 | |
4620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4621 | (exit $ac_status); } >/dev/null; then | |
4622 | if test -s conftest.err; then | |
4623 | ac_cpp_err=$ac_c_preproc_warn_flag | |
924b6140 | 4624 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6a161fa9 | 4625 | else |
4626 | ac_cpp_err= | |
4627 | fi | |
4628 | else | |
4629 | ac_cpp_err=yes | |
4630 | fi | |
4631 | if test -z "$ac_cpp_err"; then | |
4632 | # Broken: success on invalid input. | |
4633 | continue | |
4634 | else | |
4635 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 4636 | sed 's/^/| /' conftest.$ac_ext >&5 |
4637 | ||
6a161fa9 | 4638 | # Passes both tests. |
4639 | ac_preproc_ok=: | |
4640 | break | |
4641 | fi | |
4642 | rm -f conftest.err conftest.$ac_ext | |
4643 | ||
4644 | done | |
4645 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4646 | rm -f conftest.err conftest.$ac_ext | |
4647 | if $ac_preproc_ok; then | |
4648 | : | |
4649 | else | |
98d15063 | 4650 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4651 | See \`config.log' for more details." >&5 | |
4652 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4653 | See \`config.log' for more details." >&2;} | |
6a161fa9 | 4654 | { (exit 1); exit 1; }; } |
4655 | fi | |
4656 | ||
4657 | ac_ext=c | |
4658 | ac_cpp='$CPP $CPPFLAGS' | |
4659 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4660 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4661 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4662 | ||
4663 | ||
98d15063 | 4664 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4665 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4666 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4668 | else | |
4669 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4670 | then ac_cv_prog_egrep='grep -E' | |
4671 | else ac_cv_prog_egrep='egrep' | |
4672 | fi | |
4673 | fi | |
4674 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4675 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4676 | EGREP=$ac_cv_prog_egrep | |
4677 | ||
4678 | ||
6a161fa9 | 4679 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4680 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4681 | if test "${ac_cv_header_stdc+set}" = set; then | |
4682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4683 | else | |
4684 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4685 | /* confdefs.h. */ |
4686 | _ACEOF | |
4687 | cat confdefs.h >>conftest.$ac_ext | |
4688 | cat >>conftest.$ac_ext <<_ACEOF | |
4689 | /* end confdefs.h. */ | |
6a161fa9 | 4690 | #include <stdlib.h> |
4691 | #include <stdarg.h> | |
4692 | #include <string.h> | |
4693 | #include <float.h> | |
4694 | ||
98d15063 | 4695 | int |
4696 | main () | |
4697 | { | |
4698 | ||
4699 | ; | |
4700 | return 0; | |
4701 | } | |
6a161fa9 | 4702 | _ACEOF |
98d15063 | 4703 | rm -f conftest.$ac_objext |
4704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 4705 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 4706 | ac_status=$? |
924b6140 | 4707 | grep -v '^ *+' conftest.er1 >conftest.err |
4708 | rm -f conftest.er1 | |
4709 | cat conftest.err >&5 | |
6a161fa9 | 4710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98d15063 | 4711 | (exit $ac_status); } && |
4801580b | 4712 | { ac_try='test -z "$ac_c_werror_flag" |
4713 | || test ! -s conftest.err' | |
924b6140 | 4714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4715 | (eval $ac_try) 2>&5 | |
4716 | ac_status=$? | |
4717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4718 | (exit $ac_status); }; } && | |
4719 | { ac_try='test -s conftest.$ac_objext' | |
98d15063 | 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); }; }; then | |
6a161fa9 | 4725 | ac_cv_header_stdc=yes |
4726 | else | |
4727 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 4728 | sed 's/^/| /' conftest.$ac_ext >&5 |
4729 | ||
4730 | ac_cv_header_stdc=no | |
6a161fa9 | 4731 | fi |
924b6140 | 4732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 4733 | |
4734 | if test $ac_cv_header_stdc = yes; then | |
4735 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4736 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4737 | /* confdefs.h. */ |
4738 | _ACEOF | |
4739 | cat confdefs.h >>conftest.$ac_ext | |
4740 | cat >>conftest.$ac_ext <<_ACEOF | |
4741 | /* end confdefs.h. */ | |
6a161fa9 | 4742 | #include <string.h> |
4743 | ||
4744 | _ACEOF | |
4745 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
98d15063 | 4746 | $EGREP "memchr" >/dev/null 2>&1; then |
6a161fa9 | 4747 | : |
4748 | else | |
4749 | ac_cv_header_stdc=no | |
4750 | fi | |
4751 | rm -f conftest* | |
4752 | ||
4753 | fi | |
4754 | ||
4755 | if test $ac_cv_header_stdc = yes; then | |
4756 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4757 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4758 | /* confdefs.h. */ |
4759 | _ACEOF | |
4760 | cat confdefs.h >>conftest.$ac_ext | |
4761 | cat >>conftest.$ac_ext <<_ACEOF | |
4762 | /* end confdefs.h. */ | |
6a161fa9 | 4763 | #include <stdlib.h> |
4764 | ||
4765 | _ACEOF | |
4766 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
98d15063 | 4767 | $EGREP "free" >/dev/null 2>&1; then |
6a161fa9 | 4768 | : |
4769 | else | |
4770 | ac_cv_header_stdc=no | |
4771 | fi | |
4772 | rm -f conftest* | |
4773 | ||
4774 | fi | |
4775 | ||
4776 | if test $ac_cv_header_stdc = yes; then | |
4777 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4778 | if test "$cross_compiling" = yes; then | |
4779 | : | |
4780 | else | |
4781 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4782 | /* confdefs.h. */ |
4783 | _ACEOF | |
4784 | cat confdefs.h >>conftest.$ac_ext | |
4785 | cat >>conftest.$ac_ext <<_ACEOF | |
4786 | /* end confdefs.h. */ | |
6a161fa9 | 4787 | #include <ctype.h> |
4788 | #if ((' ' & 0x0FF) == 0x020) | |
4789 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4790 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4791 | #else | |
98d15063 | 4792 | # define ISLOWER(c) \ |
924b6140 | 4793 | (('a' <= (c) && (c) <= 'i') \ |
4794 | || ('j' <= (c) && (c) <= 'r') \ | |
4795 | || ('s' <= (c) && (c) <= 'z')) | |
6a161fa9 | 4796 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4797 | #endif | |
4798 | ||
4799 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4800 | int | |
4801 | main () | |
4802 | { | |
4803 | int i; | |
4804 | for (i = 0; i < 256; i++) | |
4805 | if (XOR (islower (i), ISLOWER (i)) | |
924b6140 | 4806 | || toupper (i) != TOUPPER (i)) |
6a161fa9 | 4807 | exit(2); |
4808 | exit (0); | |
4809 | } | |
4810 | _ACEOF | |
4811 | rm -f conftest$ac_exeext | |
4812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4813 | (eval $ac_link) 2>&5 | |
4814 | ac_status=$? | |
4815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4816 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4818 | (eval $ac_try) 2>&5 | |
4819 | ac_status=$? | |
4820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4821 | (exit $ac_status); }; }; then | |
4822 | : | |
4823 | else | |
4824 | echo "$as_me: program exited with status $ac_status" >&5 | |
4825 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 4826 | sed 's/^/| /' conftest.$ac_ext >&5 |
4827 | ||
6a161fa9 | 4828 | ( exit $ac_status ) |
4829 | ac_cv_header_stdc=no | |
4830 | fi | |
924b6140 | 4831 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 4832 | fi |
4833 | fi | |
4834 | fi | |
4835 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4836 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4837 | if test $ac_cv_header_stdc = yes; then | |
4838 | ||
4839 | cat >>confdefs.h <<\_ACEOF | |
4840 | #define STDC_HEADERS 1 | |
4841 | _ACEOF | |
4842 | ||
4843 | fi | |
4844 | ||
4845 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4846 | ||
4847 | ||
4848 | ||
4849 | ||
4850 | ||
4851 | ||
4852 | ||
4853 | ||
4854 | ||
4855 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
924b6140 | 4856 | inttypes.h stdint.h unistd.h |
6a161fa9 | 4857 | do |
4858 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4859 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4861 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4863 | else | |
4864 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4865 | /* confdefs.h. */ |
4866 | _ACEOF | |
4867 | cat confdefs.h >>conftest.$ac_ext | |
4868 | cat >>conftest.$ac_ext <<_ACEOF | |
4869 | /* end confdefs.h. */ | |
6a161fa9 | 4870 | $ac_includes_default |
4871 | ||
4872 | #include <$ac_header> | |
4873 | _ACEOF | |
4874 | rm -f conftest.$ac_objext | |
4875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 4876 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 4877 | ac_status=$? |
924b6140 | 4878 | grep -v '^ *+' conftest.er1 >conftest.err |
4879 | rm -f conftest.er1 | |
4880 | cat conftest.err >&5 | |
6a161fa9 | 4881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4882 | (exit $ac_status); } && | |
4801580b | 4883 | { ac_try='test -z "$ac_c_werror_flag" |
4884 | || test ! -s conftest.err' | |
924b6140 | 4885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4886 | (eval $ac_try) 2>&5 | |
4887 | ac_status=$? | |
4888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4889 | (exit $ac_status); }; } && | |
4890 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 4891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4892 | (eval $ac_try) 2>&5 | |
4893 | ac_status=$? | |
4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4895 | (exit $ac_status); }; }; then | |
4896 | eval "$as_ac_Header=yes" | |
4897 | else | |
4898 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 4899 | sed 's/^/| /' conftest.$ac_ext >&5 |
4900 | ||
6a161fa9 | 4901 | eval "$as_ac_Header=no" |
4902 | fi | |
924b6140 | 4903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 4904 | fi |
4905 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4906 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4907 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4908 | cat >>confdefs.h <<_ACEOF | |
4909 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4910 | _ACEOF | |
4911 | ||
4912 | fi | |
4913 | ||
4914 | done | |
4915 | ||
4916 | ||
4917 | echo "$as_me:$LINENO: checking for void *" >&5 | |
4918 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
4919 | if test "${ac_cv_type_void_p+set}" = set; then | |
4920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4921 | else | |
4922 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4923 | /* confdefs.h. */ |
4924 | _ACEOF | |
4925 | cat confdefs.h >>conftest.$ac_ext | |
4926 | cat >>conftest.$ac_ext <<_ACEOF | |
4927 | /* end confdefs.h. */ | |
6a161fa9 | 4928 | $ac_includes_default |
6a161fa9 | 4929 | int |
4930 | main () | |
4931 | { | |
4932 | if ((void * *) 0) | |
4933 | return 0; | |
4934 | if (sizeof (void *)) | |
4935 | return 0; | |
4936 | ; | |
4937 | return 0; | |
4938 | } | |
4939 | _ACEOF | |
4940 | rm -f conftest.$ac_objext | |
4941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 4942 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 4943 | ac_status=$? |
924b6140 | 4944 | grep -v '^ *+' conftest.er1 >conftest.err |
4945 | rm -f conftest.er1 | |
4946 | cat conftest.err >&5 | |
6a161fa9 | 4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4948 | (exit $ac_status); } && | |
4801580b | 4949 | { ac_try='test -z "$ac_c_werror_flag" |
4950 | || test ! -s conftest.err' | |
924b6140 | 4951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4952 | (eval $ac_try) 2>&5 | |
4953 | ac_status=$? | |
4954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4955 | (exit $ac_status); }; } && | |
4956 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 4957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4958 | (eval $ac_try) 2>&5 | |
4959 | ac_status=$? | |
4960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4961 | (exit $ac_status); }; }; then | |
4962 | ac_cv_type_void_p=yes | |
4963 | else | |
4964 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 4965 | sed 's/^/| /' conftest.$ac_ext >&5 |
4966 | ||
6a161fa9 | 4967 | ac_cv_type_void_p=no |
4968 | fi | |
924b6140 | 4969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 4970 | fi |
4971 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
4972 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
4973 | ||
4974 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
4975 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
4976 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
4977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4978 | else | |
4979 | if test "$ac_cv_type_void_p" = yes; then | |
4980 | # The cast to unsigned long works around a bug in the HP C Compiler | |
4981 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
4982 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
4983 | # This bug is HP SR number 8606223364. | |
4984 | if test "$cross_compiling" = yes; then | |
4985 | # Depending upon the size, compute the lo and hi bounds. | |
4986 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 4987 | /* confdefs.h. */ |
4988 | _ACEOF | |
4989 | cat confdefs.h >>conftest.$ac_ext | |
4990 | cat >>conftest.$ac_ext <<_ACEOF | |
4991 | /* end confdefs.h. */ | |
6a161fa9 | 4992 | $ac_includes_default |
6a161fa9 | 4993 | int |
4994 | main () | |
4995 | { | |
4996 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
4997 | test_array [0] = 0 | |
4998 | ||
4999 | ; | |
5000 | return 0; | |
5001 | } | |
5002 | _ACEOF | |
5003 | rm -f conftest.$ac_objext | |
5004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 5005 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 5006 | ac_status=$? |
924b6140 | 5007 | grep -v '^ *+' conftest.er1 >conftest.err |
5008 | rm -f conftest.er1 | |
5009 | cat conftest.err >&5 | |
6a161fa9 | 5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5011 | (exit $ac_status); } && | |
4801580b | 5012 | { ac_try='test -z "$ac_c_werror_flag" |
5013 | || test ! -s conftest.err' | |
924b6140 | 5014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5015 | (eval $ac_try) 2>&5 | |
5016 | ac_status=$? | |
5017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5018 | (exit $ac_status); }; } && | |
5019 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 5020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5021 | (eval $ac_try) 2>&5 | |
5022 | ac_status=$? | |
5023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5024 | (exit $ac_status); }; }; then | |
5025 | ac_lo=0 ac_mid=0 | |
5026 | while :; do | |
5027 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 5028 | /* confdefs.h. */ |
5029 | _ACEOF | |
5030 | cat confdefs.h >>conftest.$ac_ext | |
5031 | cat >>conftest.$ac_ext <<_ACEOF | |
5032 | /* end confdefs.h. */ | |
6a161fa9 | 5033 | $ac_includes_default |
6a161fa9 | 5034 | int |
5035 | main () | |
5036 | { | |
5037 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
5038 | test_array [0] = 0 | |
5039 | ||
5040 | ; | |
5041 | return 0; | |
5042 | } | |
5043 | _ACEOF | |
5044 | rm -f conftest.$ac_objext | |
5045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 5046 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 5047 | ac_status=$? |
924b6140 | 5048 | grep -v '^ *+' conftest.er1 >conftest.err |
5049 | rm -f conftest.er1 | |
5050 | cat conftest.err >&5 | |
6a161fa9 | 5051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5052 | (exit $ac_status); } && | |
4801580b | 5053 | { ac_try='test -z "$ac_c_werror_flag" |
5054 | || test ! -s conftest.err' | |
924b6140 | 5055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5056 | (eval $ac_try) 2>&5 | |
5057 | ac_status=$? | |
5058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5059 | (exit $ac_status); }; } && | |
5060 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 5061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5062 | (eval $ac_try) 2>&5 | |
5063 | ac_status=$? | |
5064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5065 | (exit $ac_status); }; }; then | |
5066 | ac_hi=$ac_mid; break | |
5067 | else | |
5068 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5069 | sed 's/^/| /' conftest.$ac_ext >&5 |
5070 | ||
6a161fa9 | 5071 | ac_lo=`expr $ac_mid + 1` |
924b6140 | 5072 | if test $ac_lo -le $ac_mid; then |
5073 | ac_lo= ac_hi= | |
5074 | break | |
5075 | fi | |
5076 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6a161fa9 | 5077 | fi |
924b6140 | 5078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 5079 | done |
5080 | else | |
5081 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5082 | sed 's/^/| /' conftest.$ac_ext >&5 |
5083 | ||
6a161fa9 | 5084 | cat >conftest.$ac_ext <<_ACEOF |
98d15063 | 5085 | /* confdefs.h. */ |
5086 | _ACEOF | |
5087 | cat confdefs.h >>conftest.$ac_ext | |
5088 | cat >>conftest.$ac_ext <<_ACEOF | |
5089 | /* end confdefs.h. */ | |
6a161fa9 | 5090 | $ac_includes_default |
6a161fa9 | 5091 | int |
5092 | main () | |
5093 | { | |
5094 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
5095 | test_array [0] = 0 | |
5096 | ||
5097 | ; | |
5098 | return 0; | |
5099 | } | |
5100 | _ACEOF | |
5101 | rm -f conftest.$ac_objext | |
5102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 5103 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 5104 | ac_status=$? |
924b6140 | 5105 | grep -v '^ *+' conftest.er1 >conftest.err |
5106 | rm -f conftest.er1 | |
5107 | cat conftest.err >&5 | |
6a161fa9 | 5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5109 | (exit $ac_status); } && | |
4801580b | 5110 | { ac_try='test -z "$ac_c_werror_flag" |
5111 | || test ! -s conftest.err' | |
924b6140 | 5112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5113 | (eval $ac_try) 2>&5 | |
5114 | ac_status=$? | |
5115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5116 | (exit $ac_status); }; } && | |
5117 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 5118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5119 | (eval $ac_try) 2>&5 | |
5120 | ac_status=$? | |
5121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5122 | (exit $ac_status); }; }; then | |
5123 | ac_hi=-1 ac_mid=-1 | |
5124 | while :; do | |
5125 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 5126 | /* confdefs.h. */ |
5127 | _ACEOF | |
5128 | cat confdefs.h >>conftest.$ac_ext | |
5129 | cat >>conftest.$ac_ext <<_ACEOF | |
5130 | /* end confdefs.h. */ | |
6a161fa9 | 5131 | $ac_includes_default |
6a161fa9 | 5132 | int |
5133 | main () | |
5134 | { | |
5135 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
5136 | test_array [0] = 0 | |
5137 | ||
5138 | ; | |
5139 | return 0; | |
5140 | } | |
5141 | _ACEOF | |
5142 | rm -f conftest.$ac_objext | |
5143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 5144 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 5145 | ac_status=$? |
924b6140 | 5146 | grep -v '^ *+' conftest.er1 >conftest.err |
5147 | rm -f conftest.er1 | |
5148 | cat conftest.err >&5 | |
6a161fa9 | 5149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5150 | (exit $ac_status); } && | |
4801580b | 5151 | { ac_try='test -z "$ac_c_werror_flag" |
5152 | || test ! -s conftest.err' | |
924b6140 | 5153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5154 | (eval $ac_try) 2>&5 | |
5155 | ac_status=$? | |
5156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5157 | (exit $ac_status); }; } && | |
5158 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 5159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5160 | (eval $ac_try) 2>&5 | |
5161 | ac_status=$? | |
5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5163 | (exit $ac_status); }; }; then | |
5164 | ac_lo=$ac_mid; break | |
5165 | else | |
5166 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5167 | sed 's/^/| /' conftest.$ac_ext >&5 |
5168 | ||
6a161fa9 | 5169 | ac_hi=`expr '(' $ac_mid ')' - 1` |
924b6140 | 5170 | if test $ac_mid -le $ac_hi; then |
5171 | ac_lo= ac_hi= | |
5172 | break | |
5173 | fi | |
5174 | ac_mid=`expr 2 '*' $ac_mid` | |
6a161fa9 | 5175 | fi |
924b6140 | 5176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 5177 | done |
5178 | else | |
5179 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5180 | sed 's/^/| /' conftest.$ac_ext >&5 |
5181 | ||
6a161fa9 | 5182 | ac_lo= ac_hi= |
5183 | fi | |
924b6140 | 5184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 5185 | fi |
924b6140 | 5186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 5187 | # Binary search between lo and hi bounds. |
5188 | while test "x$ac_lo" != "x$ac_hi"; do | |
5189 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5190 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 5191 | /* confdefs.h. */ |
5192 | _ACEOF | |
5193 | cat confdefs.h >>conftest.$ac_ext | |
5194 | cat >>conftest.$ac_ext <<_ACEOF | |
5195 | /* end confdefs.h. */ | |
6a161fa9 | 5196 | $ac_includes_default |
6a161fa9 | 5197 | int |
5198 | main () | |
5199 | { | |
5200 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
5201 | test_array [0] = 0 | |
5202 | ||
5203 | ; | |
5204 | return 0; | |
5205 | } | |
5206 | _ACEOF | |
5207 | rm -f conftest.$ac_objext | |
5208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 5209 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 5210 | ac_status=$? |
924b6140 | 5211 | grep -v '^ *+' conftest.er1 >conftest.err |
5212 | rm -f conftest.er1 | |
5213 | cat conftest.err >&5 | |
6a161fa9 | 5214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5215 | (exit $ac_status); } && | |
4801580b | 5216 | { ac_try='test -z "$ac_c_werror_flag" |
5217 | || test ! -s conftest.err' | |
924b6140 | 5218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5219 | (eval $ac_try) 2>&5 | |
5220 | ac_status=$? | |
5221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5222 | (exit $ac_status); }; } && | |
5223 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 5224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5225 | (eval $ac_try) 2>&5 | |
5226 | ac_status=$? | |
5227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5228 | (exit $ac_status); }; }; then | |
5229 | ac_hi=$ac_mid | |
5230 | else | |
5231 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5232 | sed 's/^/| /' conftest.$ac_ext >&5 |
5233 | ||
6a161fa9 | 5234 | ac_lo=`expr '(' $ac_mid ')' + 1` |
5235 | fi | |
924b6140 | 5236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 5237 | done |
5238 | case $ac_lo in | |
5239 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
98d15063 | 5240 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
5241 | See \`config.log' for more details." >&5 | |
5242 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
5243 | See \`config.log' for more details." >&2;} | |
6a161fa9 | 5244 | { (exit 1); exit 1; }; } ;; |
5245 | esac | |
5246 | else | |
5247 | if test "$cross_compiling" = yes; then | |
4801580b | 5248 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
5249 | See \`config.log' for more details." >&5 | |
5250 | echo "$as_me: error: cannot run test program while cross compiling | |
5251 | See \`config.log' for more details." >&2;} | |
6a161fa9 | 5252 | { (exit 1); exit 1; }; } |
5253 | else | |
5254 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 5255 | /* confdefs.h. */ |
5256 | _ACEOF | |
5257 | cat confdefs.h >>conftest.$ac_ext | |
5258 | cat >>conftest.$ac_ext <<_ACEOF | |
5259 | /* end confdefs.h. */ | |
6a161fa9 | 5260 | $ac_includes_default |
5261 | long longval () { return (long) (sizeof (void *)); } | |
5262 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
5263 | #include <stdio.h> | |
5264 | #include <stdlib.h> | |
6a161fa9 | 5265 | int |
5266 | main () | |
5267 | { | |
5268 | ||
5269 | FILE *f = fopen ("conftest.val", "w"); | |
5270 | if (! f) | |
5271 | exit (1); | |
5272 | if (((long) (sizeof (void *))) < 0) | |
5273 | { | |
5274 | long i = longval (); | |
5275 | if (i != ((long) (sizeof (void *)))) | |
5276 | exit (1); | |
5277 | fprintf (f, "%ld\n", i); | |
5278 | } | |
5279 | else | |
5280 | { | |
5281 | unsigned long i = ulongval (); | |
5282 | if (i != ((long) (sizeof (void *)))) | |
5283 | exit (1); | |
5284 | fprintf (f, "%lu\n", i); | |
5285 | } | |
5286 | exit (ferror (f) || fclose (f) != 0); | |
5287 | ||
5288 | ; | |
5289 | return 0; | |
5290 | } | |
5291 | _ACEOF | |
5292 | rm -f conftest$ac_exeext | |
5293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5294 | (eval $ac_link) 2>&5 | |
5295 | ac_status=$? | |
5296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5297 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5299 | (eval $ac_try) 2>&5 | |
5300 | ac_status=$? | |
5301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5302 | (exit $ac_status); }; }; then | |
5303 | ac_cv_sizeof_void_p=`cat conftest.val` | |
5304 | else | |
5305 | echo "$as_me: program exited with status $ac_status" >&5 | |
5306 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5307 | sed 's/^/| /' conftest.$ac_ext >&5 |
5308 | ||
6a161fa9 | 5309 | ( exit $ac_status ) |
98d15063 | 5310 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
5311 | See \`config.log' for more details." >&5 | |
5312 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
5313 | See \`config.log' for more details." >&2;} | |
6a161fa9 | 5314 | { (exit 1); exit 1; }; } |
5315 | fi | |
924b6140 | 5316 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 5317 | fi |
5318 | fi | |
5319 | rm -f conftest.val | |
5320 | else | |
5321 | ac_cv_sizeof_void_p=0 | |
5322 | fi | |
5323 | fi | |
5324 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
5325 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
5326 | cat >>confdefs.h <<_ACEOF | |
5327 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
5328 | _ACEOF | |
5329 | ||
5330 | ||
5331 | echo "$as_me:$LINENO: checking for long" >&5 | |
5332 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
5333 | if test "${ac_cv_type_long+set}" = set; then | |
5334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5335 | else | |
5336 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 5337 | /* confdefs.h. */ |
5338 | _ACEOF | |
5339 | cat confdefs.h >>conftest.$ac_ext | |
5340 | cat >>conftest.$ac_ext <<_ACEOF | |
5341 | /* end confdefs.h. */ | |
6a161fa9 | 5342 | $ac_includes_default |
6a161fa9 | 5343 | int |
5344 | main () | |
5345 | { | |
5346 | if ((long *) 0) | |
5347 | return 0; | |
5348 | if (sizeof (long)) | |
5349 | return 0; | |
5350 | ; | |
5351 | return 0; | |
5352 | } | |
5353 | _ACEOF | |
5354 | rm -f conftest.$ac_objext | |
5355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 5356 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 5357 | ac_status=$? |
924b6140 | 5358 | grep -v '^ *+' conftest.er1 >conftest.err |
5359 | rm -f conftest.er1 | |
5360 | cat conftest.err >&5 | |
6a161fa9 | 5361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5362 | (exit $ac_status); } && | |
4801580b | 5363 | { ac_try='test -z "$ac_c_werror_flag" |
5364 | || test ! -s conftest.err' | |
924b6140 | 5365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5366 | (eval $ac_try) 2>&5 | |
5367 | ac_status=$? | |
5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5369 | (exit $ac_status); }; } && | |
5370 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 5371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5372 | (eval $ac_try) 2>&5 | |
5373 | ac_status=$? | |
5374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5375 | (exit $ac_status); }; }; then | |
5376 | ac_cv_type_long=yes | |
5377 | else | |
5378 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5379 | sed 's/^/| /' conftest.$ac_ext >&5 |
5380 | ||
6a161fa9 | 5381 | ac_cv_type_long=no |
5382 | fi | |
924b6140 | 5383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 5384 | fi |
5385 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
5386 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
5387 | ||
5388 | echo "$as_me:$LINENO: checking size of long" >&5 | |
5389 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
5390 | if test "${ac_cv_sizeof_long+set}" = set; then | |
5391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5392 | else | |
5393 | if test "$ac_cv_type_long" = yes; then | |
5394 | # The cast to unsigned long works around a bug in the HP C Compiler | |
5395 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5396 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5397 | # This bug is HP SR number 8606223364. | |
5398 | if test "$cross_compiling" = yes; then | |
5399 | # Depending upon the size, compute the lo and hi bounds. | |
5400 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 5401 | /* confdefs.h. */ |
5402 | _ACEOF | |
5403 | cat confdefs.h >>conftest.$ac_ext | |
5404 | cat >>conftest.$ac_ext <<_ACEOF | |
5405 | /* end confdefs.h. */ | |
6a161fa9 | 5406 | $ac_includes_default |
6a161fa9 | 5407 | int |
5408 | main () | |
5409 | { | |
5410 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
5411 | test_array [0] = 0 | |
5412 | ||
5413 | ; | |
5414 | return 0; | |
5415 | } | |
5416 | _ACEOF | |
5417 | rm -f conftest.$ac_objext | |
5418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 5419 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 5420 | ac_status=$? |
924b6140 | 5421 | grep -v '^ *+' conftest.er1 >conftest.err |
5422 | rm -f conftest.er1 | |
5423 | cat conftest.err >&5 | |
6a161fa9 | 5424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5425 | (exit $ac_status); } && | |
4801580b | 5426 | { ac_try='test -z "$ac_c_werror_flag" |
5427 | || test ! -s conftest.err' | |
924b6140 | 5428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5429 | (eval $ac_try) 2>&5 | |
5430 | ac_status=$? | |
5431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5432 | (exit $ac_status); }; } && | |
5433 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 5434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5435 | (eval $ac_try) 2>&5 | |
5436 | ac_status=$? | |
5437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5438 | (exit $ac_status); }; }; then | |
5439 | ac_lo=0 ac_mid=0 | |
5440 | while :; do | |
5441 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 5442 | /* confdefs.h. */ |
5443 | _ACEOF | |
5444 | cat confdefs.h >>conftest.$ac_ext | |
5445 | cat >>conftest.$ac_ext <<_ACEOF | |
5446 | /* end confdefs.h. */ | |
6a161fa9 | 5447 | $ac_includes_default |
6a161fa9 | 5448 | int |
5449 | main () | |
5450 | { | |
5451 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
5452 | test_array [0] = 0 | |
5453 | ||
5454 | ; | |
5455 | return 0; | |
5456 | } | |
5457 | _ACEOF | |
5458 | rm -f conftest.$ac_objext | |
5459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 5460 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 5461 | ac_status=$? |
924b6140 | 5462 | grep -v '^ *+' conftest.er1 >conftest.err |
5463 | rm -f conftest.er1 | |
5464 | cat conftest.err >&5 | |
6a161fa9 | 5465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5466 | (exit $ac_status); } && | |
4801580b | 5467 | { ac_try='test -z "$ac_c_werror_flag" |
5468 | || test ! -s conftest.err' | |
924b6140 | 5469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5470 | (eval $ac_try) 2>&5 | |
5471 | ac_status=$? | |
5472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5473 | (exit $ac_status); }; } && | |
5474 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 5475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5476 | (eval $ac_try) 2>&5 | |
5477 | ac_status=$? | |
5478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5479 | (exit $ac_status); }; }; then | |
5480 | ac_hi=$ac_mid; break | |
5481 | else | |
5482 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5483 | sed 's/^/| /' conftest.$ac_ext >&5 |
5484 | ||
6a161fa9 | 5485 | ac_lo=`expr $ac_mid + 1` |
924b6140 | 5486 | if test $ac_lo -le $ac_mid; then |
5487 | ac_lo= ac_hi= | |
5488 | break | |
5489 | fi | |
5490 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6a161fa9 | 5491 | fi |
924b6140 | 5492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 5493 | done |
5494 | else | |
5495 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5496 | sed 's/^/| /' conftest.$ac_ext >&5 |
5497 | ||
6a161fa9 | 5498 | cat >conftest.$ac_ext <<_ACEOF |
98d15063 | 5499 | /* confdefs.h. */ |
5500 | _ACEOF | |
5501 | cat confdefs.h >>conftest.$ac_ext | |
5502 | cat >>conftest.$ac_ext <<_ACEOF | |
5503 | /* end confdefs.h. */ | |
6a161fa9 | 5504 | $ac_includes_default |
6a161fa9 | 5505 | int |
5506 | main () | |
5507 | { | |
5508 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
5509 | test_array [0] = 0 | |
5510 | ||
5511 | ; | |
5512 | return 0; | |
5513 | } | |
5514 | _ACEOF | |
5515 | rm -f conftest.$ac_objext | |
5516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 5517 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 5518 | ac_status=$? |
924b6140 | 5519 | grep -v '^ *+' conftest.er1 >conftest.err |
5520 | rm -f conftest.er1 | |
5521 | cat conftest.err >&5 | |
6a161fa9 | 5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5523 | (exit $ac_status); } && | |
4801580b | 5524 | { ac_try='test -z "$ac_c_werror_flag" |
5525 | || test ! -s conftest.err' | |
924b6140 | 5526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5527 | (eval $ac_try) 2>&5 | |
5528 | ac_status=$? | |
5529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5530 | (exit $ac_status); }; } && | |
5531 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 5532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5533 | (eval $ac_try) 2>&5 | |
5534 | ac_status=$? | |
5535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5536 | (exit $ac_status); }; }; then | |
5537 | ac_hi=-1 ac_mid=-1 | |
5538 | while :; do | |
5539 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 5540 | /* confdefs.h. */ |
5541 | _ACEOF | |
5542 | cat confdefs.h >>conftest.$ac_ext | |
5543 | cat >>conftest.$ac_ext <<_ACEOF | |
5544 | /* end confdefs.h. */ | |
6a161fa9 | 5545 | $ac_includes_default |
6a161fa9 | 5546 | int |
5547 | main () | |
5548 | { | |
5549 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
5550 | test_array [0] = 0 | |
5551 | ||
5552 | ; | |
5553 | return 0; | |
5554 | } | |
5555 | _ACEOF | |
5556 | rm -f conftest.$ac_objext | |
5557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 5558 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 5559 | ac_status=$? |
924b6140 | 5560 | grep -v '^ *+' conftest.er1 >conftest.err |
5561 | rm -f conftest.er1 | |
5562 | cat conftest.err >&5 | |
6a161fa9 | 5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5564 | (exit $ac_status); } && | |
4801580b | 5565 | { ac_try='test -z "$ac_c_werror_flag" |
5566 | || test ! -s conftest.err' | |
924b6140 | 5567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5568 | (eval $ac_try) 2>&5 | |
5569 | ac_status=$? | |
5570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5571 | (exit $ac_status); }; } && | |
5572 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 5573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5574 | (eval $ac_try) 2>&5 | |
5575 | ac_status=$? | |
5576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5577 | (exit $ac_status); }; }; then | |
5578 | ac_lo=$ac_mid; break | |
5579 | else | |
5580 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5581 | sed 's/^/| /' conftest.$ac_ext >&5 |
5582 | ||
6a161fa9 | 5583 | ac_hi=`expr '(' $ac_mid ')' - 1` |
924b6140 | 5584 | if test $ac_mid -le $ac_hi; then |
5585 | ac_lo= ac_hi= | |
5586 | break | |
5587 | fi | |
5588 | ac_mid=`expr 2 '*' $ac_mid` | |
6a161fa9 | 5589 | fi |
924b6140 | 5590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 5591 | done |
5592 | else | |
5593 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5594 | sed 's/^/| /' conftest.$ac_ext >&5 |
5595 | ||
6a161fa9 | 5596 | ac_lo= ac_hi= |
5597 | fi | |
924b6140 | 5598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 5599 | fi |
924b6140 | 5600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 5601 | # Binary search between lo and hi bounds. |
5602 | while test "x$ac_lo" != "x$ac_hi"; do | |
5603 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5604 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 5605 | /* confdefs.h. */ |
5606 | _ACEOF | |
5607 | cat confdefs.h >>conftest.$ac_ext | |
5608 | cat >>conftest.$ac_ext <<_ACEOF | |
5609 | /* end confdefs.h. */ | |
6a161fa9 | 5610 | $ac_includes_default |
6a161fa9 | 5611 | int |
5612 | main () | |
5613 | { | |
5614 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
5615 | test_array [0] = 0 | |
5616 | ||
5617 | ; | |
5618 | return 0; | |
5619 | } | |
5620 | _ACEOF | |
5621 | rm -f conftest.$ac_objext | |
5622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
924b6140 | 5623 | (eval $ac_compile) 2>conftest.er1 |
6a161fa9 | 5624 | ac_status=$? |
924b6140 | 5625 | grep -v '^ *+' conftest.er1 >conftest.err |
5626 | rm -f conftest.er1 | |
5627 | cat conftest.err >&5 | |
6a161fa9 | 5628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5629 | (exit $ac_status); } && | |
4801580b | 5630 | { ac_try='test -z "$ac_c_werror_flag" |
5631 | || test ! -s conftest.err' | |
924b6140 | 5632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5633 | (eval $ac_try) 2>&5 | |
5634 | ac_status=$? | |
5635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5636 | (exit $ac_status); }; } && | |
5637 | { ac_try='test -s conftest.$ac_objext' | |
6a161fa9 | 5638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5639 | (eval $ac_try) 2>&5 | |
5640 | ac_status=$? | |
5641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5642 | (exit $ac_status); }; }; then | |
5643 | ac_hi=$ac_mid | |
5644 | else | |
5645 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5646 | sed 's/^/| /' conftest.$ac_ext >&5 |
5647 | ||
6a161fa9 | 5648 | ac_lo=`expr '(' $ac_mid ')' + 1` |
5649 | fi | |
924b6140 | 5650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 5651 | done |
5652 | case $ac_lo in | |
5653 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
98d15063 | 5654 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
5655 | See \`config.log' for more details." >&5 | |
5656 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
5657 | See \`config.log' for more details." >&2;} | |
6a161fa9 | 5658 | { (exit 1); exit 1; }; } ;; |
5659 | esac | |
5660 | else | |
5661 | if test "$cross_compiling" = yes; then | |
4801580b | 5662 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
5663 | See \`config.log' for more details." >&5 | |
5664 | echo "$as_me: error: cannot run test program while cross compiling | |
5665 | See \`config.log' for more details." >&2;} | |
6a161fa9 | 5666 | { (exit 1); exit 1; }; } |
5667 | else | |
5668 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 5669 | /* confdefs.h. */ |
5670 | _ACEOF | |
5671 | cat confdefs.h >>conftest.$ac_ext | |
5672 | cat >>conftest.$ac_ext <<_ACEOF | |
5673 | /* end confdefs.h. */ | |
6a161fa9 | 5674 | $ac_includes_default |
5675 | long longval () { return (long) (sizeof (long)); } | |
5676 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
5677 | #include <stdio.h> | |
5678 | #include <stdlib.h> | |
6a161fa9 | 5679 | int |
5680 | main () | |
5681 | { | |
5682 | ||
5683 | FILE *f = fopen ("conftest.val", "w"); | |
5684 | if (! f) | |
5685 | exit (1); | |
5686 | if (((long) (sizeof (long))) < 0) | |
5687 | { | |
5688 | long i = longval (); | |
5689 | if (i != ((long) (sizeof (long)))) | |
5690 | exit (1); | |
5691 | fprintf (f, "%ld\n", i); | |
5692 | } | |
5693 | else | |
5694 | { | |
5695 | unsigned long i = ulongval (); | |
5696 | if (i != ((long) (sizeof (long)))) | |
5697 | exit (1); | |
5698 | fprintf (f, "%lu\n", i); | |
5699 | } | |
5700 | exit (ferror (f) || fclose (f) != 0); | |
5701 | ||
5702 | ; | |
5703 | return 0; | |
5704 | } | |
5705 | _ACEOF | |
5706 | rm -f conftest$ac_exeext | |
5707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5708 | (eval $ac_link) 2>&5 | |
5709 | ac_status=$? | |
5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5711 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5713 | (eval $ac_try) 2>&5 | |
5714 | ac_status=$? | |
5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5716 | (exit $ac_status); }; }; then | |
5717 | ac_cv_sizeof_long=`cat conftest.val` | |
5718 | else | |
5719 | echo "$as_me: program exited with status $ac_status" >&5 | |
5720 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5721 | sed 's/^/| /' conftest.$ac_ext >&5 |
5722 | ||
6a161fa9 | 5723 | ( exit $ac_status ) |
98d15063 | 5724 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
5725 | See \`config.log' for more details." >&5 | |
5726 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
5727 | See \`config.log' for more details." >&2;} | |
6a161fa9 | 5728 | { (exit 1); exit 1; }; } |
5729 | fi | |
924b6140 | 5730 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6a161fa9 | 5731 | fi |
5732 | fi | |
5733 | rm -f conftest.val | |
5734 | else | |
5735 | ac_cv_sizeof_long=0 | |
5736 | fi | |
5737 | fi | |
5738 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
5739 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
5740 | cat >>confdefs.h <<_ACEOF | |
5741 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
5742 | _ACEOF | |
5743 | ||
5744 | ||
1f5ab428 | 5745 | |
e56cdf21 | 5746 | # Check LZO when compiling for the i386. |
5747 | if test "x$host_cpu" = xi386; then | |
4ac9bd04 | 5748 | # There are three possibilities. LZO version 2 installed with the name |
5749 | # liblzo2, with the name liblzo, and LZO version 1. | |
5750 | echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5 | |
5751 | echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6 | |
5752 | if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then | |
5753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5754 | else | |
5755 | ac_check_lib_save_LIBS=$LIBS | |
5756 | LIBS="-llzo2 $LIBS" | |
5757 | cat >conftest.$ac_ext <<_ACEOF | |
5758 | /* confdefs.h. */ | |
5759 | _ACEOF | |
5760 | cat confdefs.h >>conftest.$ac_ext | |
5761 | cat >>conftest.$ac_ext <<_ACEOF | |
5762 | /* end confdefs.h. */ | |
5763 | ||
5764 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5765 | #ifdef __cplusplus | |
5766 | extern "C" | |
5767 | #endif | |
5768 | /* We use char because int might match the return type of a gcc2 | |
5769 | builtin and then its argument prototype would still apply. */ | |
5770 | char __lzo_init_v2 (); | |
5771 | int | |
5772 | main () | |
5773 | { | |
5774 | __lzo_init_v2 (); | |
5775 | ; | |
5776 | return 0; | |
5777 | } | |
5778 | _ACEOF | |
5779 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5781 | (eval $ac_link) 2>conftest.er1 | |
5782 | ac_status=$? | |
5783 | grep -v '^ *+' conftest.er1 >conftest.err | |
5784 | rm -f conftest.er1 | |
5785 | cat conftest.err >&5 | |
5786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5787 | (exit $ac_status); } && | |
4801580b | 5788 | { ac_try='test -z "$ac_c_werror_flag" |
5789 | || test ! -s conftest.err' | |
4ac9bd04 | 5790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5791 | (eval $ac_try) 2>&5 | |
5792 | ac_status=$? | |
5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5794 | (exit $ac_status); }; } && | |
5795 | { ac_try='test -s conftest$ac_exeext' | |
5796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5797 | (eval $ac_try) 2>&5 | |
5798 | ac_status=$? | |
5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5800 | (exit $ac_status); }; }; then | |
5801 | ac_cv_lib_lzo2___lzo_init_v2=yes | |
5802 | else | |
5803 | echo "$as_me: failed program was:" >&5 | |
5804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5805 | ||
5806 | ac_cv_lib_lzo2___lzo_init_v2=no | |
5807 | fi | |
5808 | rm -f conftest.err conftest.$ac_objext \ | |
5809 | conftest$ac_exeext conftest.$ac_ext | |
5810 | LIBS=$ac_check_lib_save_LIBS | |
5811 | fi | |
5812 | echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5 | |
5813 | echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6 | |
5814 | if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then | |
5815 | LIBLZO="-llzo2" | |
5816 | else | |
5817 | echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5 | |
5818 | echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6 | |
5819 | if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then | |
5820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5821 | else | |
5822 | ac_check_lib_save_LIBS=$LIBS | |
5823 | LIBS="-llzo $LIBS" | |
5824 | cat >conftest.$ac_ext <<_ACEOF | |
5825 | /* confdefs.h. */ | |
5826 | _ACEOF | |
5827 | cat confdefs.h >>conftest.$ac_ext | |
5828 | cat >>conftest.$ac_ext <<_ACEOF | |
5829 | /* end confdefs.h. */ | |
1f5ab428 | 5830 | |
4ac9bd04 | 5831 | /* Override any gcc2 internal prototype to avoid an error. */ |
5832 | #ifdef __cplusplus | |
5833 | extern "C" | |
5834 | #endif | |
5835 | /* We use char because int might match the return type of a gcc2 | |
5836 | builtin and then its argument prototype would still apply. */ | |
5837 | char __lzo_init_v2 (); | |
5838 | int | |
5839 | main () | |
5840 | { | |
5841 | __lzo_init_v2 (); | |
5842 | ; | |
5843 | return 0; | |
5844 | } | |
5845 | _ACEOF | |
5846 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5848 | (eval $ac_link) 2>conftest.er1 | |
5849 | ac_status=$? | |
5850 | grep -v '^ *+' conftest.er1 >conftest.err | |
5851 | rm -f conftest.er1 | |
5852 | cat conftest.err >&5 | |
5853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5854 | (exit $ac_status); } && | |
4801580b | 5855 | { ac_try='test -z "$ac_c_werror_flag" |
5856 | || test ! -s conftest.err' | |
4ac9bd04 | 5857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5858 | (eval $ac_try) 2>&5 | |
5859 | ac_status=$? | |
5860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5861 | (exit $ac_status); }; } && | |
5862 | { ac_try='test -s conftest$ac_exeext' | |
5863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5864 | (eval $ac_try) 2>&5 | |
5865 | ac_status=$? | |
5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5867 | (exit $ac_status); }; }; then | |
5868 | ac_cv_lib_lzo___lzo_init_v2=yes | |
5869 | else | |
5870 | echo "$as_me: failed program was:" >&5 | |
5871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5872 | ||
5873 | ac_cv_lib_lzo___lzo_init_v2=no | |
5874 | fi | |
5875 | rm -f conftest.err conftest.$ac_objext \ | |
5876 | conftest$ac_exeext conftest.$ac_ext | |
5877 | LIBS=$ac_check_lib_save_LIBS | |
5878 | fi | |
5879 | echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5 | |
5880 | echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6 | |
5881 | if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then | |
5882 | LIBLZO="-llzo" | |
5883 | else | |
5884 | echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5 | |
1f5ab428 | 5885 | echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6 |
5886 | if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then | |
5887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5888 | else | |
5889 | ac_check_lib_save_LIBS=$LIBS | |
5890 | LIBS="-llzo $LIBS" | |
5891 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 5892 | /* confdefs.h. */ |
5893 | _ACEOF | |
5894 | cat confdefs.h >>conftest.$ac_ext | |
5895 | cat >>conftest.$ac_ext <<_ACEOF | |
5896 | /* end confdefs.h. */ | |
1f5ab428 | 5897 | |
5898 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5899 | #ifdef __cplusplus | |
5900 | extern "C" | |
5901 | #endif | |
5902 | /* We use char because int might match the return type of a gcc2 | |
5903 | builtin and then its argument prototype would still apply. */ | |
5904 | char __lzo_init2 (); | |
1f5ab428 | 5905 | int |
5906 | main () | |
5907 | { | |
5908 | __lzo_init2 (); | |
5909 | ; | |
5910 | return 0; | |
5911 | } | |
5912 | _ACEOF | |
5913 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
924b6140 | 5915 | (eval $ac_link) 2>conftest.er1 |
1f5ab428 | 5916 | ac_status=$? |
924b6140 | 5917 | grep -v '^ *+' conftest.er1 >conftest.err |
5918 | rm -f conftest.er1 | |
5919 | cat conftest.err >&5 | |
1f5ab428 | 5920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5921 | (exit $ac_status); } && | |
4801580b | 5922 | { ac_try='test -z "$ac_c_werror_flag" |
5923 | || test ! -s conftest.err' | |
924b6140 | 5924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5925 | (eval $ac_try) 2>&5 | |
5926 | ac_status=$? | |
5927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5928 | (exit $ac_status); }; } && | |
5929 | { ac_try='test -s conftest$ac_exeext' | |
1f5ab428 | 5930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5931 | (eval $ac_try) 2>&5 | |
5932 | ac_status=$? | |
5933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5934 | (exit $ac_status); }; }; then | |
5935 | ac_cv_lib_lzo___lzo_init2=yes | |
5936 | else | |
5937 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 5938 | sed 's/^/| /' conftest.$ac_ext >&5 |
5939 | ||
1f5ab428 | 5940 | ac_cv_lib_lzo___lzo_init2=no |
5941 | fi | |
924b6140 | 5942 | rm -f conftest.err conftest.$ac_objext \ |
5943 | conftest$ac_exeext conftest.$ac_ext | |
1f5ab428 | 5944 | LIBS=$ac_check_lib_save_LIBS |
5945 | fi | |
5946 | echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5 | |
5947 | echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6 | |
5948 | if test $ac_cv_lib_lzo___lzo_init2 = yes; then | |
4ac9bd04 | 5949 | LIBLZO="-llzo" |
1f5ab428 | 5950 | else |
5951 | { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5 | |
5952 | echo "$as_me: error: LZO library version 1.02 or later is required" >&2;} | |
5953 | { (exit 1); exit 1; }; } | |
5954 | fi | |
5955 | ||
4ac9bd04 | 5956 | fi |
5957 | ||
5958 | fi | |
5959 | ||
5960 | ||
5961 | LIBS="$LIBS $LIBLZO" | |
e56cdf21 | 5962 | echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5 |
1f5ab428 | 5963 | echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6 |
5964 | if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then | |
5965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5966 | else | |
5967 | cat >conftest.$ac_ext <<_ACEOF | |
98d15063 | 5968 | /* confdefs.h. */ |
5969 | _ACEOF | |
5970 | cat confdefs.h >>conftest.$ac_ext | |
5971 | cat >>conftest.$ac_ext <<_ACEOF | |
5972 | /* end confdefs.h. */ | |
924b6140 | 5973 | /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress. |
5974 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5975 | #define lzo1x_999_compress innocuous_lzo1x_999_compress | |
5976 | ||
1f5ab428 | 5977 | /* System header to define __stub macros and hopefully few prototypes, |
98d15063 | 5978 | which can conflict with char lzo1x_999_compress (); below. |
5979 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5980 | <limits.h> exists even on freestanding compilers. */ | |
924b6140 | 5981 | |
98d15063 | 5982 | #ifdef __STDC__ |
5983 | # include <limits.h> | |
5984 | #else | |
5985 | # include <assert.h> | |
5986 | #endif | |
924b6140 | 5987 | |
5988 | #undef lzo1x_999_compress | |
5989 | ||
1f5ab428 | 5990 | /* Override any gcc2 internal prototype to avoid an error. */ |
5991 | #ifdef __cplusplus | |
5992 | extern "C" | |
98d15063 | 5993 | { |
1f5ab428 | 5994 | #endif |
5995 | /* We use char because int might match the return type of a gcc2 | |
5996 | builtin and then its argument prototype would still apply. */ | |
5997 | char lzo1x_999_compress (); | |
1f5ab428 | 5998 | /* The GNU C library defines this for functions which it implements |
5999 | to always fail with ENOSYS. Some functions are actually named | |
6000 | something starting with __ and the normal name is an alias. */ | |
6001 | #if defined (__stub_lzo1x_999_compress) || defined (__stub___lzo1x_999_compress) | |
6002 | choke me | |
6003 | #else | |
98d15063 | 6004 | char (*f) () = lzo1x_999_compress; |
6005 | #endif | |
6006 | #ifdef __cplusplus | |
6007 | } | |
1f5ab428 | 6008 | #endif |
6009 | ||
98d15063 | 6010 | int |
6011 | main () | |
6012 | { | |
6013 | return f != lzo1x_999_compress; | |
1f5ab428 | 6014 | ; |
6015 | return 0; | |
6016 | } | |
6017 | _ACEOF | |
6018 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
924b6140 | 6020 | (eval $ac_link) 2>conftest.er1 |
1f5ab428 | 6021 | ac_status=$? |
924b6140 | 6022 | grep -v '^ *+' conftest.er1 >conftest.err |
6023 | rm -f conftest.er1 | |
6024 | cat conftest.err >&5 | |
1f5ab428 | 6025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6026 | (exit $ac_status); } && | |
4801580b | 6027 | { ac_try='test -z "$ac_c_werror_flag" |
6028 | || test ! -s conftest.err' | |
924b6140 | 6029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6030 | (eval $ac_try) 2>&5 | |
6031 | ac_status=$? | |
6032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6033 | (exit $ac_status); }; } && | |
6034 | { ac_try='test -s conftest$ac_exeext' | |
1f5ab428 | 6035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6036 | (eval $ac_try) 2>&5 | |
6037 | ac_status=$? | |
6038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6039 | (exit $ac_status); }; }; then | |
6040 | ac_cv_func_lzo1x_999_compress=yes | |
6041 | else | |
6042 | echo "$as_me: failed program was:" >&5 | |
98d15063 | 6043 | sed 's/^/| /' conftest.$ac_ext >&5 |
6044 | ||
1f5ab428 | 6045 | ac_cv_func_lzo1x_999_compress=no |
6046 | fi | |
924b6140 | 6047 | rm -f conftest.err conftest.$ac_objext \ |
6048 | conftest$ac_exeext conftest.$ac_ext | |
1f5ab428 | 6049 | fi |
6050 | echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5 | |
6051 | echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6 | |
6052 | if test $ac_cv_func_lzo1x_999_compress = yes; then | |
6053 | : | |
6054 | else | |
6055 | { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5 | |
6056 | echo "$as_me: error: LZO1X-999 must be enabled" >&2;} | |
6057 | { (exit 1); exit 1; }; } | |
6058 | fi | |
6059 | ||
4ac9bd04 | 6060 | |
6061 | # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h. | |
6062 | ||
6063 | ||
6064 | for ac_header in lzo/lzo1x.h lzo1x.h | |
6065 | do | |
6066 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6068 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6072 | fi | |
6073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6074 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6075 | else | |
6076 | # Is the header compilable? | |
6077 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6078 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6079 | cat >conftest.$ac_ext <<_ACEOF | |
6080 | /* confdefs.h. */ | |
6081 | _ACEOF | |
6082 | cat confdefs.h >>conftest.$ac_ext | |
6083 | cat >>conftest.$ac_ext <<_ACEOF | |
6084 | /* end confdefs.h. */ | |
6085 | $ac_includes_default | |
6086 | #include <$ac_header> | |
6087 | _ACEOF | |
6088 | rm -f conftest.$ac_objext | |
6089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6090 | (eval $ac_compile) 2>conftest.er1 | |
6091 | ac_status=$? | |
6092 | grep -v '^ *+' conftest.er1 >conftest.err | |
6093 | rm -f conftest.er1 | |
6094 | cat conftest.err >&5 | |
6095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6096 | (exit $ac_status); } && | |
4801580b | 6097 | { ac_try='test -z "$ac_c_werror_flag" |
6098 | || test ! -s conftest.err' | |
4ac9bd04 | 6099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6100 | (eval $ac_try) 2>&5 | |
6101 | ac_status=$? | |
6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6103 | (exit $ac_status); }; } && | |
6104 | { ac_try='test -s conftest.$ac_objext' | |
6105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6106 | (eval $ac_try) 2>&5 | |
6107 | ac_status=$? | |
6108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6109 | (exit $ac_status); }; }; then | |
6110 | ac_header_compiler=yes | |
6111 | else | |
6112 | echo "$as_me: failed program was:" >&5 | |
6113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6114 | ||
6115 | ac_header_compiler=no | |
6116 | fi | |
6117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6118 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6119 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6120 | ||
6121 | # Is the header present? | |
6122 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6124 | cat >conftest.$ac_ext <<_ACEOF | |
6125 | /* confdefs.h. */ | |
6126 | _ACEOF | |
6127 | cat confdefs.h >>conftest.$ac_ext | |
6128 | cat >>conftest.$ac_ext <<_ACEOF | |
6129 | /* end confdefs.h. */ | |
6130 | #include <$ac_header> | |
6131 | _ACEOF | |
6132 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6133 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6134 | ac_status=$? | |
6135 | grep -v '^ *+' conftest.er1 >conftest.err | |
6136 | rm -f conftest.er1 | |
6137 | cat conftest.err >&5 | |
6138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6139 | (exit $ac_status); } >/dev/null; then | |
6140 | if test -s conftest.err; then | |
6141 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6142 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6143 | else | |
6144 | ac_cpp_err= | |
6145 | fi | |
6146 | else | |
6147 | ac_cpp_err=yes | |
6148 | fi | |
6149 | if test -z "$ac_cpp_err"; then | |
6150 | ac_header_preproc=yes | |
6151 | else | |
6152 | echo "$as_me: failed program was:" >&5 | |
6153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6154 | ||
6155 | ac_header_preproc=no | |
6156 | fi | |
6157 | rm -f conftest.err conftest.$ac_ext | |
6158 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6159 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6160 | ||
6161 | # So? What about this header? | |
6162 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6163 | yes:no: ) | |
6164 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6165 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6167 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6168 | ac_header_preproc=yes | |
6169 | ;; | |
6170 | no:yes:* ) | |
6171 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6172 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6173 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6174 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6175 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6176 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6177 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6178 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6180 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6181 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6182 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6183 | ( | |
6184 | cat <<\_ASBOX | |
6185 | ## ------------------------------- ## | |
6186 | ## Report this to bug-grub@gnu.org ## | |
6187 | ## ------------------------------- ## | |
6188 | _ASBOX | |
6189 | ) | | |
6190 | sed "s/^/$as_me: WARNING: /" >&2 | |
6191 | ;; | |
6192 | esac | |
6193 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6195 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6197 | else | |
6198 | eval "$as_ac_Header=\$ac_header_preproc" | |
6199 | fi | |
6200 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6201 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6202 | ||
6203 | fi | |
6204 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6205 | cat >>confdefs.h <<_ACEOF | |
6206 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6207 | _ACEOF | |
6208 | ||
6209 | fi | |
6210 | ||
6211 | done | |
6212 | ||
e56cdf21 | 6213 | fi |
1f5ab428 | 6214 | |
f4917dfd | 6215 | # Check for curses. |
6216 | echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5 | |
6217 | echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6 | |
6218 | if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then | |
6219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6220 | else | |
6221 | ac_check_lib_save_LIBS=$LIBS | |
6222 | LIBS="-lncurses $LIBS" | |
6223 | cat >conftest.$ac_ext <<_ACEOF | |
6224 | /* confdefs.h. */ | |
6225 | _ACEOF | |
6226 | cat confdefs.h >>conftest.$ac_ext | |
6227 | cat >>conftest.$ac_ext <<_ACEOF | |
6228 | /* end confdefs.h. */ | |
6229 | ||
6230 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6231 | #ifdef __cplusplus | |
6232 | extern "C" | |
6233 | #endif | |
6234 | /* We use char because int might match the return type of a gcc2 | |
6235 | builtin and then its argument prototype would still apply. */ | |
6236 | char wgetch (); | |
6237 | int | |
6238 | main () | |
6239 | { | |
6240 | wgetch (); | |
6241 | ; | |
6242 | return 0; | |
6243 | } | |
6244 | _ACEOF | |
6245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6247 | (eval $ac_link) 2>conftest.er1 | |
6248 | ac_status=$? | |
6249 | grep -v '^ *+' conftest.er1 >conftest.err | |
6250 | rm -f conftest.er1 | |
6251 | cat conftest.err >&5 | |
6252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6253 | (exit $ac_status); } && | |
4801580b | 6254 | { ac_try='test -z "$ac_c_werror_flag" |
6255 | || test ! -s conftest.err' | |
f4917dfd | 6256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6257 | (eval $ac_try) 2>&5 | |
6258 | ac_status=$? | |
6259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6260 | (exit $ac_status); }; } && | |
6261 | { ac_try='test -s conftest$ac_exeext' | |
6262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6263 | (eval $ac_try) 2>&5 | |
6264 | ac_status=$? | |
6265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6266 | (exit $ac_status); }; }; then | |
6267 | ac_cv_lib_ncurses_wgetch=yes | |
6268 | else | |
6269 | echo "$as_me: failed program was:" >&5 | |
6270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6271 | ||
6272 | ac_cv_lib_ncurses_wgetch=no | |
6273 | fi | |
6274 | rm -f conftest.err conftest.$ac_objext \ | |
6275 | conftest$ac_exeext conftest.$ac_ext | |
6276 | LIBS=$ac_check_lib_save_LIBS | |
6277 | fi | |
6278 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5 | |
6279 | echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6 | |
6280 | if test $ac_cv_lib_ncurses_wgetch = yes; then | |
6281 | LIBCURSES="-lncurses" | |
6282 | else | |
6283 | echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5 | |
6284 | echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6 | |
6285 | if test "${ac_cv_lib_curses_wgetch+set}" = set; then | |
6286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6287 | else | |
6288 | ac_check_lib_save_LIBS=$LIBS | |
6289 | LIBS="-lcurses $LIBS" | |
6290 | cat >conftest.$ac_ext <<_ACEOF | |
6291 | /* confdefs.h. */ | |
6292 | _ACEOF | |
6293 | cat confdefs.h >>conftest.$ac_ext | |
6294 | cat >>conftest.$ac_ext <<_ACEOF | |
6295 | /* end confdefs.h. */ | |
6296 | ||
6297 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6298 | #ifdef __cplusplus | |
6299 | extern "C" | |
6300 | #endif | |
6301 | /* We use char because int might match the return type of a gcc2 | |
6302 | builtin and then its argument prototype would still apply. */ | |
6303 | char wgetch (); | |
6304 | int | |
6305 | main () | |
6306 | { | |
6307 | wgetch (); | |
6308 | ; | |
6309 | return 0; | |
6310 | } | |
6311 | _ACEOF | |
6312 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6314 | (eval $ac_link) 2>conftest.er1 | |
6315 | ac_status=$? | |
6316 | grep -v '^ *+' conftest.er1 >conftest.err | |
6317 | rm -f conftest.er1 | |
6318 | cat conftest.err >&5 | |
6319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6320 | (exit $ac_status); } && | |
4801580b | 6321 | { ac_try='test -z "$ac_c_werror_flag" |
6322 | || test ! -s conftest.err' | |
f4917dfd | 6323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6324 | (eval $ac_try) 2>&5 | |
6325 | ac_status=$? | |
6326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6327 | (exit $ac_status); }; } && | |
6328 | { ac_try='test -s conftest$ac_exeext' | |
6329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6330 | (eval $ac_try) 2>&5 | |
6331 | ac_status=$? | |
6332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6333 | (exit $ac_status); }; }; then | |
6334 | ac_cv_lib_curses_wgetch=yes | |
6335 | else | |
6336 | echo "$as_me: failed program was:" >&5 | |
6337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6338 | ||
6339 | ac_cv_lib_curses_wgetch=no | |
6340 | fi | |
6341 | rm -f conftest.err conftest.$ac_objext \ | |
6342 | conftest$ac_exeext conftest.$ac_ext | |
6343 | LIBS=$ac_check_lib_save_LIBS | |
6344 | fi | |
6345 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5 | |
6346 | echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6 | |
6347 | if test $ac_cv_lib_curses_wgetch = yes; then | |
6348 | LIBCURSES="-lcurses" | |
6349 | fi | |
6350 | ||
6351 | fi | |
6352 | ||
6353 | ||
6354 | ||
6355 | # Check for headers. | |
6356 | ||
6357 | ||
6358 | ||
6359 | for ac_header in ncurses/curses.h ncurses.h curses.h | |
6360 | do | |
6361 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6362 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6363 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6364 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6365 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6367 | fi | |
6368 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6369 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6370 | else | |
6371 | # Is the header compilable? | |
6372 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6373 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6374 | cat >conftest.$ac_ext <<_ACEOF | |
6375 | /* confdefs.h. */ | |
6376 | _ACEOF | |
6377 | cat confdefs.h >>conftest.$ac_ext | |
6378 | cat >>conftest.$ac_ext <<_ACEOF | |
6379 | /* end confdefs.h. */ | |
6380 | $ac_includes_default | |
6381 | #include <$ac_header> | |
6382 | _ACEOF | |
6383 | rm -f conftest.$ac_objext | |
6384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6385 | (eval $ac_compile) 2>conftest.er1 | |
6386 | ac_status=$? | |
6387 | grep -v '^ *+' conftest.er1 >conftest.err | |
6388 | rm -f conftest.er1 | |
6389 | cat conftest.err >&5 | |
6390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6391 | (exit $ac_status); } && | |
4801580b | 6392 | { ac_try='test -z "$ac_c_werror_flag" |
6393 | || test ! -s conftest.err' | |
f4917dfd | 6394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6395 | (eval $ac_try) 2>&5 | |
6396 | ac_status=$? | |
6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6398 | (exit $ac_status); }; } && | |
6399 | { ac_try='test -s conftest.$ac_objext' | |
6400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6401 | (eval $ac_try) 2>&5 | |
6402 | ac_status=$? | |
6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6404 | (exit $ac_status); }; }; then | |
6405 | ac_header_compiler=yes | |
6406 | else | |
6407 | echo "$as_me: failed program was:" >&5 | |
6408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6409 | ||
6410 | ac_header_compiler=no | |
6411 | fi | |
6412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6413 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6414 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6415 | ||
6416 | # Is the header present? | |
6417 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6418 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6419 | cat >conftest.$ac_ext <<_ACEOF | |
6420 | /* confdefs.h. */ | |
6421 | _ACEOF | |
6422 | cat confdefs.h >>conftest.$ac_ext | |
6423 | cat >>conftest.$ac_ext <<_ACEOF | |
6424 | /* end confdefs.h. */ | |
6425 | #include <$ac_header> | |
6426 | _ACEOF | |
6427 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6428 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6429 | ac_status=$? | |
6430 | grep -v '^ *+' conftest.er1 >conftest.err | |
6431 | rm -f conftest.er1 | |
6432 | cat conftest.err >&5 | |
6433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6434 | (exit $ac_status); } >/dev/null; then | |
6435 | if test -s conftest.err; then | |
6436 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6437 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6438 | else | |
6439 | ac_cpp_err= | |
6440 | fi | |
6441 | else | |
6442 | ac_cpp_err=yes | |
6443 | fi | |
6444 | if test -z "$ac_cpp_err"; then | |
6445 | ac_header_preproc=yes | |
6446 | else | |
6447 | echo "$as_me: failed program was:" >&5 | |
6448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6449 | ||
6450 | ac_header_preproc=no | |
6451 | fi | |
6452 | rm -f conftest.err conftest.$ac_ext | |
6453 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6454 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6455 | ||
6456 | # So? What about this header? | |
6457 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6458 | yes:no: ) | |
6459 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6460 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6462 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6463 | ac_header_preproc=yes | |
6464 | ;; | |
6465 | no:yes:* ) | |
6466 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6467 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6468 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6469 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6470 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6471 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6472 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6473 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6474 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6475 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6476 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6477 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6478 | ( | |
6479 | cat <<\_ASBOX | |
6480 | ## ------------------------------- ## | |
6481 | ## Report this to bug-grub@gnu.org ## | |
6482 | ## ------------------------------- ## | |
6483 | _ASBOX | |
6484 | ) | | |
6485 | sed "s/^/$as_me: WARNING: /" >&2 | |
6486 | ;; | |
6487 | esac | |
6488 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6490 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6492 | else | |
6493 | eval "$as_ac_Header=\$ac_header_preproc" | |
6494 | fi | |
6495 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6496 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6497 | ||
6498 | fi | |
6499 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6500 | cat >>confdefs.h <<_ACEOF | |
6501 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6502 | _ACEOF | |
6503 | ||
6504 | fi | |
6505 | ||
6506 | done | |
6507 | ||
6508 | ||
9962ed99 | 6509 | CC="$tmp_CC" |
6510 | CFLAGS="$tmp_CFLAGS" | |
6511 | CPPFLAGS="$tmp_CPPFLAGS" | |
6a161fa9 | 6512 | |
6513 | # Output files. | |
4b13b216 | 6514 | ac_config_links="$ac_config_links include/grub/cpu:include/grub/$host_cpu include/grub/machine:include/grub/$host_cpu/$host_vendor" |
6a161fa9 | 6515 | |
98d15063 | 6516 | ac_config_files="$ac_config_files Makefile" |
6a161fa9 | 6517 | |
98d15063 | 6518 | ac_config_files="$ac_config_files stamp-h" |
6a161fa9 | 6519 | |
6520 | cat >confcache <<\_ACEOF | |
6521 | # This file is a shell script that caches the results of configure | |
6522 | # tests run on this system so they can be shared between configure | |
6523 | # scripts and configure runs, see configure's option --config-cache. | |
6524 | # It is not useful on other systems. If it contains results you don't | |
6525 | # want to keep, you may remove or edit it. | |
6526 | # | |
6527 | # config.status only pays attention to the cache file if you give it | |
6528 | # the --recheck option to rerun configure. | |
6529 | # | |
98d15063 | 6530 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
6a161fa9 | 6531 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
6532 | # following values. | |
6533 | ||
6534 | _ACEOF | |
6535 | ||
6536 | # The following way of writing the cache mishandles newlines in values, | |
6537 | # but we know of no workaround that is simple, portable, and efficient. | |
6538 | # So, don't put newlines in cache variables' values. | |
6539 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6540 | # and sets the high bit in the cache file unless we assign to the vars. | |
6541 | { | |
6542 | (set) 2>&1 | | |
6543 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6544 | *ac_space=\ *) | |
6545 | # `set' does not quote correctly, so add quotes (double-quote | |
6546 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6547 | sed -n \ | |
924b6140 | 6548 | "s/'/'\\\\''/g; |
6549 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
6a161fa9 | 6550 | ;; |
6551 | *) | |
6552 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6553 | sed -n \ | |
924b6140 | 6554 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
6a161fa9 | 6555 | ;; |
6556 | esac; | |
6557 | } | | |
6558 | sed ' | |
6559 | t clear | |
6560 | : clear | |
6561 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
6562 | t end | |
6563 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
6564 | : end' >>confcache | |
98d15063 | 6565 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
6a161fa9 | 6566 | if test -w $cache_file; then |
6567 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
6568 | cat confcache >$cache_file | |
6569 | else | |
6570 | echo "not updating unwritable cache $cache_file" | |
6571 | fi | |
6572 | fi | |
6573 | rm -f confcache | |
6574 | ||
6575 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6576 | # Let make expand exec_prefix. | |
6577 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6578 | ||
6579 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
6580 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
6581 | # trailing colons and then remove the whole line if VPATH becomes empty | |
6582 | # (actually we leave an empty line to preserve line numbers). | |
6583 | if test "x$srcdir" = x.; then | |
924b6140 | 6584 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
6a161fa9 | 6585 | s/:*\$(srcdir):*/:/; |
6586 | s/:*\${srcdir}:*/:/; | |
6587 | s/:*@srcdir@:*/:/; | |
924b6140 | 6588 | s/^\([^=]*=[ ]*\):*/\1/; |
6a161fa9 | 6589 | s/:*$//; |
924b6140 | 6590 | s/^[^=]*=[ ]*$//; |
6a161fa9 | 6591 | }' |
6592 | fi | |
6593 | ||
6594 | DEFS=-DHAVE_CONFIG_H | |
6595 | ||
98d15063 | 6596 | ac_libobjs= |
6597 | ac_ltlibobjs= | |
6598 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6599 | # 1. Remove the extension, and $U if already installed. | |
6600 | ac_i=`echo "$ac_i" | | |
924b6140 | 6601 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
98d15063 | 6602 | # 2. Add them. |
6603 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
6604 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
6605 | done | |
6606 | LIBOBJS=$ac_libobjs | |
6607 | ||
6608 | LTLIBOBJS=$ac_ltlibobjs | |
6609 | ||
6610 | ||
6a161fa9 | 6611 | |
6612 | : ${CONFIG_STATUS=./config.status} | |
6613 | ac_clean_files_save=$ac_clean_files | |
6614 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6615 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
6616 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6617 | cat >$CONFIG_STATUS <<_ACEOF | |
6618 | #! $SHELL | |
6619 | # Generated by $as_me. | |
6620 | # Run this file to recreate the current configuration. | |
6621 | # Compiler output produced by configure, useful for debugging | |
6622 | # configure, is in config.log if it exists. | |
6623 | ||
6624 | debug=false | |
98d15063 | 6625 | ac_cs_recheck=false |
6626 | ac_cs_silent=false | |
6a161fa9 | 6627 | SHELL=\${CONFIG_SHELL-$SHELL} |
6628 | _ACEOF | |
6629 | ||
6630 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6a161fa9 | 6631 | ## --------------------- ## |
6632 | ## M4sh Initialization. ## | |
6633 | ## --------------------- ## | |
6634 | ||
6635 | # Be Bourne compatible | |
6636 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
6637 | emulate sh | |
6638 | NULLCMD=: | |
98d15063 | 6639 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
6640 | # is contrary to our usage. Disable this feature. | |
6641 | alias -g '${1+"$@"}'='"$@"' | |
6a161fa9 | 6642 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
6643 | set -o posix | |
6644 | fi | |
924b6140 | 6645 | DUALCASE=1; export DUALCASE # for MKS sh |
6a161fa9 | 6646 | |
6a161fa9 | 6647 | # Support unset when possible. |
924b6140 | 6648 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6a161fa9 | 6649 | as_unset=unset |
6650 | else | |
6651 | as_unset=false | |
6652 | fi | |
6653 | ||
98d15063 | 6654 | |
6655 | # Work around bugs in pre-3.0 UWIN ksh. | |
6656 | $as_unset ENV MAIL MAILPATH | |
6657 | PS1='$ ' | |
6658 | PS2='> ' | |
6659 | PS4='+ ' | |
6660 | ||
6661 | # NLS nuisances. | |
6662 | for as_var in \ | |
6663 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
6664 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
6665 | LC_TELEPHONE LC_TIME | |
6666 | do | |
924b6140 | 6667 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
98d15063 | 6668 | eval $as_var=C; export $as_var |
6669 | else | |
6670 | $as_unset $as_var | |
6671 | fi | |
6672 | done | |
6673 | ||
6674 | # Required to use basename. | |
6675 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
6676 | as_expr=expr | |
6677 | else | |
6678 | as_expr=false | |
6679 | fi | |
6680 | ||
6681 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
6682 | as_basename=basename | |
6683 | else | |
6684 | as_basename=false | |
6685 | fi | |
6a161fa9 | 6686 | |
6687 | ||
6688 | # Name of the executable. | |
98d15063 | 6689 | as_me=`$as_basename "$0" || |
6a161fa9 | 6690 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6691 | X"$0" : 'X\(//\)$' \| \ | |
6692 | X"$0" : 'X\(/\)$' \| \ | |
6693 | . : '\(.\)' 2>/dev/null || | |
6694 | echo X/"$0" | | |
6695 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
6696 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
6697 | /^X\/\(\/\).*/{ s//\1/; q; } | |
6698 | s/.*/./; q'` | |
6699 | ||
98d15063 | 6700 | |
6a161fa9 | 6701 | # PATH needs CR, and LINENO needs CR and PATH. |
6702 | # Avoid depending upon Character Ranges. | |
6703 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6704 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6705 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6706 | as_cr_digits='0123456789' | |
6707 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6708 | ||
6709 | # The user is always right. | |
6710 | if test "${PATH_SEPARATOR+set}" != set; then | |
98d15063 | 6711 | echo "#! /bin/sh" >conf$$.sh |
6712 | echo "exit 0" >>conf$$.sh | |
6713 | chmod +x conf$$.sh | |
6714 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6a161fa9 | 6715 | PATH_SEPARATOR=';' |
6716 | else | |
6717 | PATH_SEPARATOR=: | |
6718 | fi | |
98d15063 | 6719 | rm -f conf$$.sh |
6a161fa9 | 6720 | fi |
6721 | ||
6722 | ||
6723 | as_lineno_1=$LINENO | |
6724 | as_lineno_2=$LINENO | |
6725 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6726 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
6727 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
6728 | # Find who we are. Look in the path if we contain no path at all | |
6729 | # relative or not. | |
6730 | case $0 in | |
6731 | *[\\/]* ) as_myself=$0 ;; | |
6732 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6733 | for as_dir in $PATH | |
6734 | do | |
6735 | IFS=$as_save_IFS | |
6736 | test -z "$as_dir" && as_dir=. | |
6737 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6738 | done | |
6739 | ||
6740 | ;; | |
6741 | esac | |
6742 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6743 | # in which case we are not to be found in the path. | |
6744 | if test "x$as_myself" = x; then | |
6745 | as_myself=$0 | |
6746 | fi | |
6747 | if test ! -f "$as_myself"; then | |
6748 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
6749 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
6750 | { (exit 1); exit 1; }; } | |
6751 | fi | |
6752 | case $CONFIG_SHELL in | |
6753 | '') | |
6754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6755 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
6756 | do | |
6757 | IFS=$as_save_IFS | |
6758 | test -z "$as_dir" && as_dir=. | |
6759 | for as_base in sh bash ksh sh5; do | |
6760 | case $as_dir in | |
6761 | /*) | |
6762 | if ("$as_dir/$as_base" -c ' | |
6763 | as_lineno_1=$LINENO | |
6764 | as_lineno_2=$LINENO | |
6765 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6766 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
6767 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
98d15063 | 6768 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
6769 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
6a161fa9 | 6770 | CONFIG_SHELL=$as_dir/$as_base |
6771 | export CONFIG_SHELL | |
6772 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
6773 | fi;; | |
6774 | esac | |
6775 | done | |
6776 | done | |
6777 | ;; | |
6778 | esac | |
6779 | ||
6780 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
6781 | # uniformly replaced by the line number. The first 'sed' inserts a | |
6782 | # line-number line before each line; the second 'sed' does the real | |
6783 | # work. The second script uses 'N' to pair each line-number line | |
6784 | # with the numbered line, and appends trailing '-' during | |
6785 | # substitution so that $LINENO is not a special case at line end. | |
6786 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
6787 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
6788 | sed '=' <$as_myself | | |
6789 | sed ' | |
6790 | N | |
6791 | s,$,-, | |
6792 | : loop | |
6793 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
6794 | t loop | |
6795 | s,-$,, | |
6796 | s,^['$as_cr_digits']*\n,, | |
6797 | ' >$as_me.lineno && | |
6798 | chmod +x $as_me.lineno || | |
6799 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
6800 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
6801 | { (exit 1); exit 1; }; } | |
6802 | ||
6803 | # Don't try to exec as it changes $[0], causing all sort of problems | |
6804 | # (the dirname of $[0] is not the place where we might find the | |
6805 | # original and so on. Autoconf is especially sensible to this). | |
6806 | . ./$as_me.lineno | |
6807 | # Exit status is that of the last command. | |
6808 | exit | |
6809 | } | |
6810 | ||
6811 | ||
6812 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
6813 | *c*,-n*) ECHO_N= ECHO_C=' | |
6814 | ' ECHO_T=' ' ;; | |
6815 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
6816 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
6817 | esac | |
6818 | ||
6819 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
6820 | as_expr=expr | |
6821 | else | |
6822 | as_expr=false | |
6823 | fi | |
6824 | ||
6825 | rm -f conf$$ conf$$.exe conf$$.file | |
6826 | echo >conf$$.file | |
6827 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
6828 | # We could just check for DJGPP; but this test a) works b) is more generic | |
6829 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
6830 | if test -f conf$$.exe; then | |
6831 | # Don't use ln at all; we don't have any links | |
6832 | as_ln_s='cp -p' | |
6833 | else | |
6834 | as_ln_s='ln -s' | |
6835 | fi | |
6836 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
6837 | as_ln_s=ln | |
6838 | else | |
6839 | as_ln_s='cp -p' | |
6840 | fi | |
6841 | rm -f conf$$ conf$$.exe conf$$.file | |
6842 | ||
98d15063 | 6843 | if mkdir -p . 2>/dev/null; then |
6844 | as_mkdir_p=: | |
6845 | else | |
924b6140 | 6846 | test -d ./-p && rmdir ./-p |
98d15063 | 6847 | as_mkdir_p=false |
6848 | fi | |
6849 | ||
6a161fa9 | 6850 | as_executable_p="test -f" |
6851 | ||
6852 | # Sed expression to map a string onto a valid CPP name. | |
924b6140 | 6853 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
6a161fa9 | 6854 | |
6855 | # Sed expression to map a string onto a valid variable name. | |
924b6140 | 6856 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
6a161fa9 | 6857 | |
6858 | ||
6859 | # IFS | |
6860 | # We need space, tab and new line, in precisely that order. | |
6861 | as_nl=' | |
6862 | ' | |
6863 | IFS=" $as_nl" | |
6864 | ||
6865 | # CDPATH. | |
98d15063 | 6866 | $as_unset CDPATH |
6a161fa9 | 6867 | |
6868 | exec 6>&1 | |
6869 | ||
6870 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
6871 | # report actual input values of CONFIG_FILES etc. instead of their | |
6872 | # values after options handling. Logging --version etc. is OK. | |
6873 | exec 5>>config.log | |
6874 | { | |
6875 | echo | |
6876 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6877 | ## Running $as_me. ## | |
6878 | _ASBOX | |
6879 | } >&5 | |
6880 | cat >&5 <<_CSEOF | |
6881 | ||
4801580b | 6882 | This file was extended by GRUB $as_me 1.91, which was |
924b6140 | 6883 | generated by GNU Autoconf 2.59. Invocation command line was |
6a161fa9 | 6884 | |
6885 | CONFIG_FILES = $CONFIG_FILES | |
6886 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6887 | CONFIG_LINKS = $CONFIG_LINKS | |
6888 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6889 | $ $0 $@ | |
6890 | ||
6891 | _CSEOF | |
6892 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
6893 | echo >&5 | |
6894 | _ACEOF | |
6895 | ||
6896 | # Files that config.status was made for. | |
6897 | if test -n "$ac_config_files"; then | |
6898 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
6899 | fi | |
6900 | ||
6901 | if test -n "$ac_config_headers"; then | |
6902 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
6903 | fi | |
6904 | ||
6905 | if test -n "$ac_config_links"; then | |
6906 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
6907 | fi | |
6908 | ||
6909 | if test -n "$ac_config_commands"; then | |
6910 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
6911 | fi | |
6912 | ||
6913 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6914 | ||
6915 | ac_cs_usage="\ | |
6916 | \`$as_me' instantiates files from templates according to the | |
6917 | current configuration. | |
6918 | ||
6919 | Usage: $0 [OPTIONS] [FILE]... | |
6920 | ||
6921 | -h, --help print this help, then exit | |
6922 | -V, --version print version number, then exit | |
98d15063 | 6923 | -q, --quiet do not print progress messages |
6a161fa9 | 6924 | -d, --debug don't remove temporary files |
6925 | --recheck update $as_me by reconfiguring in the same conditions | |
6926 | --file=FILE[:TEMPLATE] | |
924b6140 | 6927 | instantiate the configuration file FILE |
6a161fa9 | 6928 | --header=FILE[:TEMPLATE] |
924b6140 | 6929 | instantiate the configuration header FILE |
6a161fa9 | 6930 | |
6931 | Configuration files: | |
6932 | $config_files | |
6933 | ||
6934 | Configuration headers: | |
6935 | $config_headers | |
6936 | ||
6937 | Configuration links: | |
6938 | $config_links | |
6939 | ||
6940 | Report bugs to <bug-autoconf@gnu.org>." | |
6941 | _ACEOF | |
6942 | ||
6943 | cat >>$CONFIG_STATUS <<_ACEOF | |
6944 | ac_cs_version="\\ | |
4801580b | 6945 | GRUB config.status 1.91 |
924b6140 | 6946 | configured by $0, generated by GNU Autoconf 2.59, |
6a161fa9 | 6947 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
6948 | ||
924b6140 | 6949 | Copyright (C) 2003 Free Software Foundation, Inc. |
6a161fa9 | 6950 | This config.status script is free software; the Free Software Foundation |
6951 | gives unlimited permission to copy, distribute and modify it." | |
6952 | srcdir=$srcdir | |
6953 | INSTALL="$INSTALL" | |
6954 | _ACEOF | |
6955 | ||
6956 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6957 | # If no file are specified by the user, then we need to provide default | |
6958 | # value. By we need to know if files were specified by the user. | |
6959 | ac_need_defaults=: | |
6960 | while test $# != 0 | |
6961 | do | |
6962 | case $1 in | |
6963 | --*=*) | |
6964 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
6965 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
98d15063 | 6966 | ac_shift=: |
6967 | ;; | |
6968 | -*) | |
6969 | ac_option=$1 | |
6970 | ac_optarg=$2 | |
6971 | ac_shift=shift | |
6a161fa9 | 6972 | ;; |
6a161fa9 | 6973 | *) # This is not an option, so the user has probably given explicit |
6974 | # arguments. | |
98d15063 | 6975 | ac_option=$1 |
6a161fa9 | 6976 | ac_need_defaults=false;; |
6977 | esac | |
6978 | ||
98d15063 | 6979 | case $ac_option in |
6a161fa9 | 6980 | # Handling of the options. |
6981 | _ACEOF | |
6a161fa9 | 6982 | cat >>$CONFIG_STATUS <<\_ACEOF |
98d15063 | 6983 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6984 | ac_cs_recheck=: ;; | |
6a161fa9 | 6985 | --version | --vers* | -V ) |
6986 | echo "$ac_cs_version"; exit 0 ;; | |
6987 | --he | --h) | |
6988 | # Conflict between --help and --header | |
6989 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
6990 | Try \`$0 --help' for more information." >&5 | |
6991 | echo "$as_me: error: ambiguous option: $1 | |
6992 | Try \`$0 --help' for more information." >&2;} | |
6993 | { (exit 1); exit 1; }; };; | |
6994 | --help | --hel | -h ) | |
6995 | echo "$ac_cs_usage"; exit 0 ;; | |
6996 | --debug | --d* | -d ) | |
6997 | debug=: ;; | |
6998 | --file | --fil | --fi | --f ) | |
98d15063 | 6999 | $ac_shift |
7000 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
6a161fa9 | 7001 | ac_need_defaults=false;; |
7002 | --header | --heade | --head | --hea ) | |
98d15063 | 7003 | $ac_shift |
7004 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
6a161fa9 | 7005 | ac_need_defaults=false;; |
98d15063 | 7006 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7007 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7008 | ac_cs_silent=: ;; | |
6a161fa9 | 7009 | |
7010 | # This is an error. | |
7011 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
7012 | Try \`$0 --help' for more information." >&5 | |
7013 | echo "$as_me: error: unrecognized option: $1 | |
7014 | Try \`$0 --help' for more information." >&2;} | |
7015 | { (exit 1); exit 1; }; } ;; | |
7016 | ||
7017 | *) ac_config_targets="$ac_config_targets $1" ;; | |
7018 | ||
7019 | esac | |
7020 | shift | |
7021 | done | |
7022 | ||
98d15063 | 7023 | ac_configure_extra_args= |
7024 | ||
7025 | if $ac_cs_silent; then | |
7026 | exec 6>/dev/null | |
7027 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7028 | fi | |
7029 | ||
7030 | _ACEOF | |
7031 | cat >>$CONFIG_STATUS <<_ACEOF | |
7032 | if \$ac_cs_recheck; then | |
7033 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
7034 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7035 | fi | |
7036 | ||
6a161fa9 | 7037 | _ACEOF |
7038 | ||
7039 | ||
7040 | ||
7041 | ||
7042 | ||
7043 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7044 | for ac_config_target in $ac_config_targets | |
7045 | do | |
7046 | case "$ac_config_target" in | |
7047 | # Handling of arguments. | |
7048 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7049 | "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;; | |
4b13b216 | 7050 | "include/grub/cpu" ) CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$host_cpu" ;; |
7051 | "include/grub/machine" ) CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$host_cpu/$host_vendor" ;; | |
6a161fa9 | 7052 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
7053 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
7054 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
7055 | { (exit 1); exit 1; }; };; | |
7056 | esac | |
7057 | done | |
7058 | ||
7059 | # If the user did not use the arguments to specify the items to instantiate, | |
7060 | # then the envvar interface is used. Set only those that are not. | |
7061 | # We use the long form for the default assignment because of an extremely | |
7062 | # bizarre bug on SunOS 4.1.3. | |
7063 | if $ac_need_defaults; then | |
7064 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7065 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7066 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
7067 | fi | |
7068 | ||
98d15063 | 7069 | # Have a temporary directory for convenience. Make it in the build tree |
7070 | # simply because there is no reason to put it here, and in addition, | |
7071 | # creating and moving files from /tmp can sometimes cause problems. | |
6a161fa9 | 7072 | # Create a temporary directory, and hook for its removal unless debugging. |
7073 | $debug || | |
7074 | { | |
7075 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7076 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
7077 | } | |
7078 | ||
7079 | # Create a (secure) tmp directory for tmp files. | |
98d15063 | 7080 | |
6a161fa9 | 7081 | { |
98d15063 | 7082 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
6a161fa9 | 7083 | test -n "$tmp" && test -d "$tmp" |
7084 | } || | |
7085 | { | |
98d15063 | 7086 | tmp=./confstat$$-$RANDOM |
6a161fa9 | 7087 | (umask 077 && mkdir $tmp) |
7088 | } || | |
7089 | { | |
98d15063 | 7090 | echo "$me: cannot create a temporary directory in ." >&2 |
6a161fa9 | 7091 | { (exit 1); exit 1; } |
7092 | } | |
7093 | ||
7094 | _ACEOF | |
7095 | ||
7096 | cat >>$CONFIG_STATUS <<_ACEOF | |
7097 | ||
7098 | # | |
7099 | # CONFIG_FILES section. | |
7100 | # | |
7101 | ||
7102 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7103 | # This happens for instance when ./config.status config.h | |
7104 | if test -n "\$CONFIG_FILES"; then | |
7105 | # Protect against being on the right side of a sed subst in config.status. | |
7106 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7107 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7108 | s,@SHELL@,$SHELL,;t t | |
7109 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
7110 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7111 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7112 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7113 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7114 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
7115 | s,@exec_prefix@,$exec_prefix,;t t | |
7116 | s,@prefix@,$prefix,;t t | |
7117 | s,@program_transform_name@,$program_transform_name,;t t | |
7118 | s,@bindir@,$bindir,;t t | |
7119 | s,@sbindir@,$sbindir,;t t | |
7120 | s,@libexecdir@,$libexecdir,;t t | |
7121 | s,@datadir@,$datadir,;t t | |
7122 | s,@sysconfdir@,$sysconfdir,;t t | |
7123 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7124 | s,@localstatedir@,$localstatedir,;t t | |
7125 | s,@libdir@,$libdir,;t t | |
7126 | s,@includedir@,$includedir,;t t | |
7127 | s,@oldincludedir@,$oldincludedir,;t t | |
7128 | s,@infodir@,$infodir,;t t | |
7129 | s,@mandir@,$mandir,;t t | |
7130 | s,@build_alias@,$build_alias,;t t | |
7131 | s,@host_alias@,$host_alias,;t t | |
7132 | s,@target_alias@,$target_alias,;t t | |
7133 | s,@DEFS@,$DEFS,;t t | |
7134 | s,@ECHO_C@,$ECHO_C,;t t | |
7135 | s,@ECHO_N@,$ECHO_N,;t t | |
7136 | s,@ECHO_T@,$ECHO_T,;t t | |
7137 | s,@LIBS@,$LIBS,;t t | |
7138 | s,@build@,$build,;t t | |
7139 | s,@build_cpu@,$build_cpu,;t t | |
7140 | s,@build_vendor@,$build_vendor,;t t | |
7141 | s,@build_os@,$build_os,;t t | |
7142 | s,@host@,$host,;t t | |
7143 | s,@host_cpu@,$host_cpu,;t t | |
7144 | s,@host_vendor@,$host_vendor,;t t | |
7145 | s,@host_os@,$host_os,;t t | |
7146 | s,@CC@,$CC,;t t | |
7147 | s,@CFLAGS@,$CFLAGS,;t t | |
7148 | s,@LDFLAGS@,$LDFLAGS,;t t | |
7149 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
7150 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
7151 | s,@EXEEXT@,$EXEEXT,;t t | |
7152 | s,@OBJEXT@,$OBJEXT,;t t | |
7153 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7154 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7155 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7156 | s,@SET_MAKE@,$SET_MAKE,;t t | |
7157 | s,@OBJCOPY@,$OBJCOPY,;t t | |
7158 | s,@ac_ct_OBJCOPY@,$ac_ct_OBJCOPY,;t t | |
7159 | s,@STRIP@,$STRIP,;t t | |
7160 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
7161 | s,@NM@,$NM,;t t | |
7162 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
9962ed99 | 7163 | s,@LD@,$LD,;t t |
7164 | s,@ac_ct_LD@,$ac_ct_LD,;t t | |
6a161fa9 | 7165 | s,@RUBY@,$RUBY,;t t |
7166 | s,@BUILD_CC@,$BUILD_CC,;t t | |
7167 | s,@CPP@,$CPP,;t t | |
98d15063 | 7168 | s,@EGREP@,$EGREP,;t t |
4ac9bd04 | 7169 | s,@LIBLZO@,$LIBLZO,;t t |
f4917dfd | 7170 | s,@LIBCURSES@,$LIBCURSES,;t t |
98d15063 | 7171 | s,@LIBOBJS@,$LIBOBJS,;t t |
7172 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
6a161fa9 | 7173 | CEOF |
7174 | ||
7175 | _ACEOF | |
7176 | ||
7177 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7178 | # Split the substitutions into bite-sized pieces for seds with | |
7179 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7180 | ac_max_sed_lines=48 | |
7181 | ac_sed_frag=1 # Number of current file. | |
7182 | ac_beg=1 # First line for current file. | |
7183 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7184 | ac_more_lines=: | |
7185 | ac_sed_cmds= | |
7186 | while $ac_more_lines; do | |
7187 | if test $ac_beg -gt 1; then | |
7188 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7189 | else | |
7190 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7191 | fi | |
7192 | if test ! -s $tmp/subs.frag; then | |
7193 | ac_more_lines=false | |
7194 | else | |
7195 | # The purpose of the label and of the branching condition is to | |
7196 | # speed up the sed processing (if there are no `@' at all, there | |
7197 | # is no need to browse any of the substitutions). | |
7198 | # These are the two extra sed commands mentioned above. | |
7199 | (echo ':t | |
7200 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7201 | if test -z "$ac_sed_cmds"; then | |
924b6140 | 7202 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
6a161fa9 | 7203 | else |
924b6140 | 7204 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
6a161fa9 | 7205 | fi |
7206 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7207 | ac_beg=$ac_end | |
7208 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
7209 | fi | |
7210 | done | |
7211 | if test -z "$ac_sed_cmds"; then | |
7212 | ac_sed_cmds=cat | |
7213 | fi | |
7214 | fi # test -n "$CONFIG_FILES" | |
7215 | ||
7216 | _ACEOF | |
7217 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7218 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
7219 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7220 | case $ac_file in | |
7221 | - | *:- | *:-:* ) # input from stdin | |
924b6140 | 7222 | cat >$tmp/stdin |
7223 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7224 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
6a161fa9 | 7225 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
924b6140 | 7226 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
6a161fa9 | 7227 | * ) ac_file_in=$ac_file.in ;; |
7228 | esac | |
7229 | ||
7230 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
7231 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7232 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
924b6140 | 7233 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7234 | X"$ac_file" : 'X\(//\)$' \| \ | |
7235 | X"$ac_file" : 'X\(/\)' \| \ | |
7236 | . : '\(.\)' 2>/dev/null || | |
6a161fa9 | 7237 | echo X"$ac_file" | |
7238 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7239 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7240 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7241 | /^X\(\/\).*/{ s//\1/; q; } | |
7242 | s/.*/./; q'` | |
98d15063 | 7243 | { if $as_mkdir_p; then |
7244 | mkdir -p "$ac_dir" | |
7245 | else | |
7246 | as_dir="$ac_dir" | |
7247 | as_dirs= | |
7248 | while test ! -d "$as_dir"; do | |
7249 | as_dirs="$as_dir $as_dirs" | |
7250 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7251 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
924b6140 | 7252 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
7253 | X"$as_dir" : 'X\(//\)$' \| \ | |
7254 | X"$as_dir" : 'X\(/\)' \| \ | |
7255 | . : '\(.\)' 2>/dev/null || | |
98d15063 | 7256 | echo X"$as_dir" | |
7257 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7258 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7259 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7260 | /^X\(\/\).*/{ s//\1/; q; } | |
7261 | s/.*/./; q'` | |
7262 | done | |
7263 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7264 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7265 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7266 | { (exit 1); exit 1; }; }; } | |
6a161fa9 | 7267 | |
7268 | ac_builddir=. | |
7269 | ||
7270 | if test "$ac_dir" != .; then | |
7271 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7272 | # A "../" for each directory in $ac_dir_suffix. | |
7273 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7274 | else | |
7275 | ac_dir_suffix= ac_top_builddir= | |
7276 | fi | |
7277 | ||
7278 | case $srcdir in | |
7279 | .) # No --srcdir option. We are building in place. | |
7280 | ac_srcdir=. | |
7281 | if test -z "$ac_top_builddir"; then | |
7282 | ac_top_srcdir=. | |
7283 | else | |
7284 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7285 | fi ;; | |
7286 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7287 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7288 | ac_top_srcdir=$srcdir ;; | |
7289 | *) # Relative path. | |
7290 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7291 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7292 | esac | |
924b6140 | 7293 | |
7294 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7295 | # the directories may not exist. | |
7296 | case `pwd` in | |
7297 | .) ac_abs_builddir="$ac_dir";; | |
7298 | *) | |
7299 | case "$ac_dir" in | |
7300 | .) ac_abs_builddir=`pwd`;; | |
7301 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7302 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7303 | esac;; | |
7304 | esac | |
7305 | case $ac_abs_builddir in | |
7306 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7307 | *) | |
7308 | case ${ac_top_builddir}. in | |
7309 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7310 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7311 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7312 | esac;; | |
7313 | esac | |
7314 | case $ac_abs_builddir in | |
7315 | .) ac_abs_srcdir=$ac_srcdir;; | |
7316 | *) | |
7317 | case $ac_srcdir in | |
7318 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7319 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7320 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7321 | esac;; | |
7322 | esac | |
7323 | case $ac_abs_builddir in | |
7324 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7325 | *) | |
7326 | case $ac_top_srcdir in | |
7327 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7328 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7329 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7330 | esac;; | |
7331 | esac | |
6a161fa9 | 7332 | |
7333 | ||
7334 | case $INSTALL in | |
7335 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7336 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
7337 | esac | |
7338 | ||
4801580b | 7339 | if test x"$ac_file" != x-; then |
7340 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7341 | echo "$as_me: creating $ac_file" >&6;} | |
7342 | rm -f "$ac_file" | |
7343 | fi | |
6a161fa9 | 7344 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
7345 | # use $as_me), people would be surprised to read: | |
7346 | # /* config.h. Generated by config.status. */ | |
7347 | if test x"$ac_file" = x-; then | |
7348 | configure_input= | |
7349 | else | |
7350 | configure_input="$ac_file. " | |
7351 | fi | |
7352 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
924b6140 | 7353 | sed 's,.*/,,'` by configure." |
6a161fa9 | 7354 | |
7355 | # First look for the input files in the build tree, otherwise in the | |
7356 | # src tree. | |
7357 | ac_file_inputs=`IFS=: | |
7358 | for f in $ac_file_in; do | |
7359 | case $f in | |
7360 | -) echo $tmp/stdin ;; | |
7361 | [\\/$]*) | |
924b6140 | 7362 | # Absolute (can't be DOS-style, as IFS=:) |
7363 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
6a161fa9 | 7364 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7365 | { (exit 1); exit 1; }; } | |
924b6140 | 7366 | echo "$f";; |
6a161fa9 | 7367 | *) # Relative |
924b6140 | 7368 | if test -f "$f"; then |
7369 | # Build tree | |
7370 | echo "$f" | |
7371 | elif test -f "$srcdir/$f"; then | |
7372 | # Source tree | |
7373 | echo "$srcdir/$f" | |
7374 | else | |
7375 | # /dev/null tree | |
7376 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
6a161fa9 | 7377 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7378 | { (exit 1); exit 1; }; } | |
924b6140 | 7379 | fi;; |
6a161fa9 | 7380 | esac |
7381 | done` || { (exit 1); exit 1; } | |
7382 | _ACEOF | |
7383 | cat >>$CONFIG_STATUS <<_ACEOF | |
7384 | sed "$ac_vpsub | |
7385 | $extrasub | |
7386 | _ACEOF | |
7387 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7388 | :t | |
7389 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7390 | s,@configure_input@,$configure_input,;t t | |
7391 | s,@srcdir@,$ac_srcdir,;t t | |
7392 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
7393 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
7394 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
7395 | s,@builddir@,$ac_builddir,;t t | |
7396 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
7397 | s,@top_builddir@,$ac_top_builddir,;t t | |
7398 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
7399 | s,@INSTALL@,$ac_INSTALL,;t t | |
7400 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7401 | rm -f $tmp/stdin | |
7402 | if test x"$ac_file" != x-; then | |
7403 | mv $tmp/out $ac_file | |
7404 | else | |
7405 | cat $tmp/out | |
7406 | rm -f $tmp/out | |
7407 | fi | |
7408 | ||
7409 | # Run the commands associated with the file. | |
7410 | case $ac_file in | |
7411 | stamp-h ) echo timestamp > stamp-h ;; | |
7412 | esac | |
7413 | done | |
7414 | _ACEOF | |
7415 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7416 | ||
7417 | # | |
7418 | # CONFIG_HEADER section. | |
7419 | # | |
7420 | ||
7421 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7422 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7423 | # | |
7424 | # ac_d sets the value in "#define NAME VALUE" lines. | |
924b6140 | 7425 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7426 | ac_dB='[ ].*$,\1#\2' | |
6a161fa9 | 7427 | ac_dC=' ' |
7428 | ac_dD=',;t' | |
7429 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
924b6140 | 7430 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
6a161fa9 | 7431 | ac_uB='$,\1#\2define\3' |
7432 | ac_uC=' ' | |
7433 | ac_uD=',;t' | |
7434 | ||
7435 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
7436 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7437 | case $ac_file in | |
7438 | - | *:- | *:-:* ) # input from stdin | |
924b6140 | 7439 | cat >$tmp/stdin |
7440 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7441 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
6a161fa9 | 7442 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
924b6140 | 7443 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
6a161fa9 | 7444 | * ) ac_file_in=$ac_file.in ;; |
7445 | esac | |
7446 | ||
7447 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7448 | echo "$as_me: creating $ac_file" >&6;} | |
7449 | ||
7450 | # First look for the input files in the build tree, otherwise in the | |
7451 | # src tree. | |
7452 | ac_file_inputs=`IFS=: | |
7453 | for f in $ac_file_in; do | |
7454 | case $f in | |
7455 | -) echo $tmp/stdin ;; | |
7456 | [\\/$]*) | |
924b6140 | 7457 | # Absolute (can't be DOS-style, as IFS=:) |
7458 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
6a161fa9 | 7459 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7460 | { (exit 1); exit 1; }; } | |
924b6140 | 7461 | # Do quote $f, to prevent DOS paths from being IFS'd. |
7462 | echo "$f";; | |
6a161fa9 | 7463 | *) # Relative |
924b6140 | 7464 | if test -f "$f"; then |
7465 | # Build tree | |
7466 | echo "$f" | |
7467 | elif test -f "$srcdir/$f"; then | |
7468 | # Source tree | |
7469 | echo "$srcdir/$f" | |
7470 | else | |
7471 | # /dev/null tree | |
7472 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
6a161fa9 | 7473 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7474 | { (exit 1); exit 1; }; } | |
924b6140 | 7475 | fi;; |
6a161fa9 | 7476 | esac |
7477 | done` || { (exit 1); exit 1; } | |
7478 | # Remove the trailing spaces. | |
924b6140 | 7479 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
6a161fa9 | 7480 | |
7481 | _ACEOF | |
7482 | ||
7483 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
7484 | # `conftest.undefs', that substitutes the proper values into | |
7485 | # config.h.in to produce config.h. The first handles `#define' | |
7486 | # templates, and the second `#undef' templates. | |
7487 | # And first: Protect against being on the right side of a sed subst in | |
7488 | # config.status. Protect against being in an unquoted here document | |
7489 | # in config.status. | |
7490 | rm -f conftest.defines conftest.undefs | |
7491 | # Using a here document instead of a string reduces the quoting nightmare. | |
7492 | # Putting comments in sed scripts is not portable. | |
7493 | # | |
7494 | # `end' is used to avoid that the second main sed command (meant for | |
7495 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
7496 | # See the Autoconf documentation for `clear'. | |
7497 | cat >confdef2sed.sed <<\_ACEOF | |
7498 | s/[\\&,]/\\&/g | |
7499 | s,[\\$`],\\&,g | |
7500 | t clear | |
7501 | : clear | |
924b6140 | 7502 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
6a161fa9 | 7503 | t end |
924b6140 | 7504 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
6a161fa9 | 7505 | : end |
7506 | _ACEOF | |
7507 | # If some macros were called several times there might be several times | |
7508 | # the same #defines, which is useless. Nevertheless, we may not want to | |
7509 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
7510 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
7511 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
7512 | rm -f confdef2sed.sed | |
7513 | ||
7514 | # This sed command replaces #undef with comments. This is necessary, for | |
7515 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7516 | # on some systems where configure will not decide to define it. | |
7517 | cat >>conftest.undefs <<\_ACEOF | |
924b6140 | 7518 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
6a161fa9 | 7519 | _ACEOF |
7520 | ||
7521 | # Break up conftest.defines because some shells have a limit on the size | |
7522 | # of here documents, and old seds have small limits too (100 cmds). | |
7523 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
924b6140 | 7524 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
6a161fa9 | 7525 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
7526 | echo ' :' >>$CONFIG_STATUS | |
7527 | rm -f conftest.tail | |
7528 | while grep . conftest.defines >/dev/null | |
7529 | do | |
7530 | # Write a limited-size here document to $tmp/defines.sed. | |
7531 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
7532 | # Speed up: don't consider the non `#define' lines. | |
924b6140 | 7533 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
6a161fa9 | 7534 | # Work around the forget-to-reset-the-flag bug. |
7535 | echo 't clr' >>$CONFIG_STATUS | |
7536 | echo ': clr' >>$CONFIG_STATUS | |
7537 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
7538 | echo 'CEOF | |
7539 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
7540 | rm -f $tmp/in | |
7541 | mv $tmp/out $tmp/in | |
7542 | ' >>$CONFIG_STATUS | |
7543 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
7544 | rm -f conftest.defines | |
7545 | mv conftest.tail conftest.defines | |
7546 | done | |
7547 | rm -f conftest.defines | |
98d15063 | 7548 | echo ' fi # grep' >>$CONFIG_STATUS |
6a161fa9 | 7549 | echo >>$CONFIG_STATUS |
7550 | ||
7551 | # Break up conftest.undefs because some shells have a limit on the size | |
7552 | # of here documents, and old seds have small limits too (100 cmds). | |
7553 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
7554 | rm -f conftest.tail | |
7555 | while grep . conftest.undefs >/dev/null | |
7556 | do | |
7557 | # Write a limited-size here document to $tmp/undefs.sed. | |
7558 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
7559 | # Speed up: don't consider the non `#undef' | |
924b6140 | 7560 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
6a161fa9 | 7561 | # Work around the forget-to-reset-the-flag bug. |
7562 | echo 't clr' >>$CONFIG_STATUS | |
7563 | echo ': clr' >>$CONFIG_STATUS | |
7564 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
7565 | echo 'CEOF | |
7566 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
7567 | rm -f $tmp/in | |
7568 | mv $tmp/out $tmp/in | |
7569 | ' >>$CONFIG_STATUS | |
7570 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
7571 | rm -f conftest.undefs | |
7572 | mv conftest.tail conftest.undefs | |
7573 | done | |
7574 | rm -f conftest.undefs | |
7575 | ||
7576 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7577 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7578 | # use $as_me), people would be surprised to read: | |
7579 | # /* config.h. Generated by config.status. */ | |
7580 | if test x"$ac_file" = x-; then | |
7581 | echo "/* Generated by configure. */" >$tmp/config.h | |
7582 | else | |
7583 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
7584 | fi | |
7585 | cat $tmp/in >>$tmp/config.h | |
7586 | rm -f $tmp/in | |
7587 | if test x"$ac_file" != x-; then | |
98d15063 | 7588 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
6a161fa9 | 7589 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
7590 | echo "$as_me: $ac_file is unchanged" >&6;} | |
7591 | else | |
7592 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7593 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
924b6140 | 7594 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7595 | X"$ac_file" : 'X\(//\)$' \| \ | |
7596 | X"$ac_file" : 'X\(/\)' \| \ | |
7597 | . : '\(.\)' 2>/dev/null || | |
6a161fa9 | 7598 | echo X"$ac_file" | |
7599 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7600 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7601 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7602 | /^X\(\/\).*/{ s//\1/; q; } | |
7603 | s/.*/./; q'` | |
98d15063 | 7604 | { if $as_mkdir_p; then |
7605 | mkdir -p "$ac_dir" | |
7606 | else | |
7607 | as_dir="$ac_dir" | |
7608 | as_dirs= | |
7609 | while test ! -d "$as_dir"; do | |
7610 | as_dirs="$as_dir $as_dirs" | |
7611 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7612 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
924b6140 | 7613 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
7614 | X"$as_dir" : 'X\(//\)$' \| \ | |
7615 | X"$as_dir" : 'X\(/\)' \| \ | |
7616 | . : '\(.\)' 2>/dev/null || | |
98d15063 | 7617 | echo X"$as_dir" | |
7618 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7619 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7620 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7621 | /^X\(\/\).*/{ s//\1/; q; } | |
7622 | s/.*/./; q'` | |
7623 | done | |
7624 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7625 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7626 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7627 | { (exit 1); exit 1; }; }; } | |
6a161fa9 | 7628 | |
7629 | rm -f $ac_file | |
7630 | mv $tmp/config.h $ac_file | |
7631 | fi | |
7632 | else | |
7633 | cat $tmp/config.h | |
7634 | rm -f $tmp/config.h | |
7635 | fi | |
7636 | done | |
7637 | _ACEOF | |
7638 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7639 | ||
7640 | # | |
7641 | # CONFIG_LINKS section. | |
7642 | # | |
7643 | ||
7644 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | |
7645 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
7646 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7647 | ||
7648 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 | |
7649 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
7650 | ||
7651 | if test ! -r $srcdir/$ac_source; then | |
7652 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 | |
7653 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
7654 | { (exit 1); exit 1; }; } | |
7655 | fi | |
7656 | rm -f $ac_dest | |
7657 | ||
7658 | # Make relative symlinks. | |
7659 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | |
7660 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
924b6140 | 7661 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
7662 | X"$ac_dest" : 'X\(//\)$' \| \ | |
7663 | X"$ac_dest" : 'X\(/\)' \| \ | |
7664 | . : '\(.\)' 2>/dev/null || | |
6a161fa9 | 7665 | echo X"$ac_dest" | |
7666 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7667 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7668 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7669 | /^X\(\/\).*/{ s//\1/; q; } | |
7670 | s/.*/./; q'` | |
98d15063 | 7671 | { if $as_mkdir_p; then |
7672 | mkdir -p "$ac_dest_dir" | |
7673 | else | |
7674 | as_dir="$ac_dest_dir" | |
7675 | as_dirs= | |
7676 | while test ! -d "$as_dir"; do | |
7677 | as_dirs="$as_dir $as_dirs" | |
7678 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7679 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
924b6140 | 7680 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
7681 | X"$as_dir" : 'X\(//\)$' \| \ | |
7682 | X"$as_dir" : 'X\(/\)' \| \ | |
7683 | . : '\(.\)' 2>/dev/null || | |
98d15063 | 7684 | echo X"$as_dir" | |
7685 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7686 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7687 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7688 | /^X\(\/\).*/{ s//\1/; q; } | |
7689 | s/.*/./; q'` | |
7690 | done | |
7691 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7692 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
7693 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
7694 | { (exit 1); exit 1; }; }; } | |
6a161fa9 | 7695 | |
7696 | ac_builddir=. | |
7697 | ||
7698 | if test "$ac_dest_dir" != .; then | |
7699 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
7700 | # A "../" for each directory in $ac_dir_suffix. | |
7701 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7702 | else | |
7703 | ac_dir_suffix= ac_top_builddir= | |
7704 | fi | |
7705 | ||
7706 | case $srcdir in | |
7707 | .) # No --srcdir option. We are building in place. | |
7708 | ac_srcdir=. | |
7709 | if test -z "$ac_top_builddir"; then | |
7710 | ac_top_srcdir=. | |
7711 | else | |
7712 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7713 | fi ;; | |
7714 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7715 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7716 | ac_top_srcdir=$srcdir ;; | |
7717 | *) # Relative path. | |
7718 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7719 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7720 | esac | |
924b6140 | 7721 | |
7722 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7723 | # the directories may not exist. | |
7724 | case `pwd` in | |
7725 | .) ac_abs_builddir="$ac_dest_dir";; | |
7726 | *) | |
7727 | case "$ac_dest_dir" in | |
7728 | .) ac_abs_builddir=`pwd`;; | |
7729 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
7730 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
7731 | esac;; | |
7732 | esac | |
7733 | case $ac_abs_builddir in | |
7734 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7735 | *) | |
7736 | case ${ac_top_builddir}. in | |
7737 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7738 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7739 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7740 | esac;; | |
7741 | esac | |
7742 | case $ac_abs_builddir in | |
7743 | .) ac_abs_srcdir=$ac_srcdir;; | |
7744 | *) | |
7745 | case $ac_srcdir in | |
7746 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7747 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7748 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7749 | esac;; | |
7750 | esac | |
7751 | case $ac_abs_builddir in | |
7752 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7753 | *) | |
7754 | case $ac_top_srcdir in | |
7755 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7756 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7757 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7758 | esac;; | |
7759 | esac | |
6a161fa9 | 7760 | |
7761 | ||
7762 | case $srcdir in | |
7763 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
7764 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | |
7765 | esac | |
7766 | ||
98d15063 | 7767 | # Try a symlink, then a hard link, then a copy. |
6a161fa9 | 7768 | ln -s $ac_rel_source $ac_dest 2>/dev/null || |
98d15063 | 7769 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
7770 | cp -p $srcdir/$ac_source $ac_dest || | |
7771 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
7772 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
6a161fa9 | 7773 | { (exit 1); exit 1; }; } |
7774 | done | |
7775 | _ACEOF | |
7776 | ||
7777 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7778 | ||
7779 | { (exit 0); exit 0; } | |
7780 | _ACEOF | |
7781 | chmod +x $CONFIG_STATUS | |
7782 | ac_clean_files=$ac_clean_files_save | |
7783 | ||
7784 | ||
7785 | # configure is writing to config.log, and then calls config.status. | |
7786 | # config.status does its own redirection, appending to config.log. | |
7787 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7788 | # by configure, so config.status won't be able to write to it; its | |
7789 | # output is simply discarded. So we exec the FD to /dev/null, | |
7790 | # effectively closing config.log, so it can be properly (re)opened and | |
7791 | # appended to by config.status. When coming back to configure, we | |
7792 | # need to make the FD available again. | |
7793 | if test "$no_create" != yes; then | |
7794 | ac_cs_success=: | |
98d15063 | 7795 | ac_config_status_args= |
7796 | test "$silent" = yes && | |
7797 | ac_config_status_args="$ac_config_status_args --quiet" | |
6a161fa9 | 7798 | exec 5>/dev/null |
98d15063 | 7799 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
6a161fa9 | 7800 | exec 5>>config.log |
7801 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7802 | # would make configure fail if this is the last instruction. | |
7803 | $ac_cs_success || { (exit 1); exit 1; } | |
7804 | fi | |
7805 |