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