]>
Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
b7026657 AC |
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 | ## --------------------- ## | |
c906108c | 11 | |
b7026657 AC |
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 | |
c906108c | 23 | |
b7026657 AC |
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 | |
c906108c SS |
30 | |
31 | ||
b7026657 AC |
32 | # Work around bugs in pre-3.0 UWIN ksh. |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
c906108c | 37 | |
b7026657 AC |
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 | |
c906108c | 50 | |
b7026657 AC |
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 | |
c906108c | 57 | |
b7026657 AC |
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 | |
c906108c SS |
63 | |
64 | ||
b7026657 AC |
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'` | |
c906108c SS |
76 | |
77 | ||
b7026657 AC |
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 | |
c906108c | 85 | |
b7026657 AC |
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 | |
c906108c SS |
98 | |
99 | ||
b7026657 AC |
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 | |
c906108c | 116 | |
b7026657 AC |
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 | |
c906108c | 155 | |
b7026657 AC |
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 | } | |
c906108c SS |
185 | |
186 | ||
b7026657 AC |
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 | |
c906108c | 193 | |
b7026657 AC |
194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
c906108c | 199 | |
b7026657 AC |
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 | |
c906108c | 217 | |
b7026657 AC |
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 | |
c906108c | 224 | |
b7026657 | 225 | as_executable_p="test -f" |
c906108c | 226 | |
b7026657 AC |
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'" | |
c906108c | 229 | |
b7026657 AC |
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'" | |
c906108c SS |
232 | |
233 | ||
b7026657 AC |
234 | # IFS |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
c906108c | 239 | |
b7026657 AC |
240 | # CDPATH. |
241 | $as_unset CDPATH | |
c906108c SS |
242 | |
243 | ||
b7026657 AC |
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` | |
c906108c | 248 | |
b7026657 | 249 | exec 6>&1 |
c906108c | 250 | |
c906108c | 251 | # |
b7026657 | 252 | # Initializations. |
c906108c | 253 | # |
b7026657 AC |
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} | |
c906108c | 261 | |
b7026657 AC |
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" | |
c906108c | 311 | |
b7026657 AC |
312 | ac_subst_vars='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 SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile CGEN_MAINT cgendir cgen traps_obj sim_extra_cflags cgen_breaks LIBOBJS LTLIBOBJS' |
313 | ac_subst_files='' | |
c906108c SS |
314 | |
315 | # Initialize some variables set by options. | |
b7026657 AC |
316 | ac_init_help= |
317 | ac_init_version=false | |
c906108c SS |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
b7026657 | 320 | cache_file=/dev/null |
c906108c | 321 | exec_prefix=NONE |
c906108c | 322 | no_create= |
c906108c SS |
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= | |
c906108c SS |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
b7026657 AC |
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. | |
c906108c SS |
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 | ||
c906108c SS |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
c906108c SS |
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 | ||
b7026657 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
b7026657 | 367 | case $ac_option in |
c906108c SS |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 372 | bindir=$ac_optarg ;; |
c906108c SS |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 375 | ac_prev=build_alias ;; |
c906108c | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 377 | build_alias=$ac_optarg ;; |
c906108c SS |
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=*) | |
b7026657 AC |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
c906108c SS |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
b7026657 | 393 | datadir=$ac_optarg ;; |
c906108c SS |
394 | |
395 | -disable-* | --disable-*) | |
b7026657 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 397 | # Reject names that are not valid shell variable names. |
b7026657 AC |
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" ;; | |
c906108c SS |
403 | |
404 | -enable-* | --enable-*) | |
b7026657 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 406 | # Reject names that are not valid shell variable names. |
b7026657 AC |
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"`;; | |
c906108c SS |
413 | *) ac_optarg=yes ;; |
414 | esac | |
b7026657 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
c906108c SS |
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=*) | |
b7026657 | 424 | exec_prefix=$ac_optarg ;; |
c906108c SS |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
b7026657 AC |
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 ;; | |
c906108c SS |
436 | |
437 | -host | --host | --hos | --ho) | |
b7026657 | 438 | ac_prev=host_alias ;; |
c906108c | 439 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 440 | host_alias=$ac_optarg ;; |
c906108c SS |
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=*) | |
b7026657 | 447 | includedir=$ac_optarg ;; |
c906108c SS |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 452 | infodir=$ac_optarg ;; |
c906108c SS |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 457 | libdir=$ac_optarg ;; |
c906108c SS |
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=*) | |
b7026657 | 464 | libexecdir=$ac_optarg ;; |
c906108c SS |
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=*) | |
b7026657 | 473 | localstatedir=$ac_optarg ;; |
c906108c SS |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 478 | mandir=$ac_optarg ;; |
c906108c SS |
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 \ | |
b7026657 | 485 | | --no-cr | --no-c | -n) |
c906108c SS |
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=*) | |
b7026657 | 499 | oldincludedir=$ac_optarg ;; |
c906108c SS |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 504 | prefix=$ac_optarg ;; |
c906108c SS |
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=*) | |
b7026657 | 511 | program_prefix=$ac_optarg ;; |
c906108c SS |
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=*) | |
b7026657 | 518 | program_suffix=$ac_optarg ;; |
c906108c SS |
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=*) | |
b7026657 | 535 | program_transform_name=$ac_optarg ;; |
c906108c SS |
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=*) | |
b7026657 | 545 | sbindir=$ac_optarg ;; |
c906108c SS |
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=*) | |
b7026657 | 556 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
b7026657 | 561 | site=$ac_optarg ;; |
afb2cbbd | 562 | |
c906108c SS |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 566 | srcdir=$ac_optarg ;; |
c906108c SS |
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=*) | |
b7026657 | 573 | sysconfdir=$ac_optarg ;; |
c906108c SS |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 576 | ac_prev=target_alias ;; |
c906108c | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 578 | target_alias=$ac_optarg ;; |
c906108c SS |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
b7026657 AC |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
c906108c SS |
585 | |
586 | -with-* | --with-*) | |
b7026657 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 588 | # Reject names that are not valid shell variable names. |
b7026657 AC |
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; }; } | |
c906108c | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
b7026657 AC |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
595 | *) ac_optarg=yes ;; |
596 | esac | |
b7026657 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
c906108c SS |
598 | |
599 | -without-* | --without-*) | |
b7026657 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 601 | # Reject names that are not valid shell variable names. |
b7026657 AC |
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" ;; | |
c906108c SS |
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=*) | |
b7026657 | 617 | x_includes=$ac_optarg ;; |
c906108c SS |
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=*) | |
b7026657 | 624 | x_libraries=$ac_optarg ;; |
c906108c | 625 | |
b7026657 AC |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
c906108c SS |
629 | ;; |
630 | ||
b7026657 AC |
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 | ||
c906108c | 641 | *) |
b7026657 AC |
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} | |
c906108c SS |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
b7026657 AC |
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; }; } | |
c906108c | 656 | fi |
c906108c | 657 | |
b7026657 AC |
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 | |
c906108c | 668 | |
b7026657 AC |
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 | |
c906108c | 672 | do |
b7026657 AC |
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; }; };; | |
c906108c SS |
678 | esac |
679 | done | |
680 | ||
b7026657 AC |
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 | |
c906108c | 698 | |
b7026657 AC |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 703 | |
c906108c SS |
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. | |
b7026657 AC |
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'` | |
c906108c SS |
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 | |
b7026657 AC |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
c906108c | 732 | else |
b7026657 AC |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
c906108c SS |
735 | fi |
736 | fi | |
b7026657 AC |
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 | |
c906108c | 773 | |
b7026657 AC |
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. | |
c906108c | 782 | |
b7026657 | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
c906108c | 784 | |
b7026657 AC |
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. | |
c906108c | 787 | |
b7026657 | 788 | Defaults for the options are specified in brackets. |
c906108c | 789 | |
b7026657 AC |
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] | |
c906108c | 809 | |
b7026657 AC |
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'. | |
c906108c | 814 | |
b7026657 AC |
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 | |
c906108c | 844 | fi |
b7026657 AC |
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] | |
853 | --disable-nls do not use Native Language Support | |
854 | --enable-maintainer-mode Enable developer functionality. | |
855 | --enable-sim-bswap Use Host specific BSWAP instruction. | |
856 | --enable-sim-cflags=opts Extra CFLAGS for use in building simulator | |
857 | --enable-sim-debug=opts Enable debugging flags | |
858 | --enable-sim-stdio Specify whether to use stdio for console input/output. | |
859 | --enable-sim-trace=opts Enable tracing flags | |
860 | --enable-sim-profile=opts Enable profiling flags | |
861 | --enable-sim-endian=endian Specify target byte endian orientation. | |
862 | --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses. | |
863 | --enable-sim-hostendian=end Specify host byte endian orientation. | |
864 | --enable-sim-scache=size Specify simulator execution cache size. | |
865 | --enable-sim-default-model=model Specify default model to simulate. | |
866 | --enable-sim-environment=environment Specify mixed, user, virtual or operating environment. | |
867 | --enable-sim-inline=inlines Specify which functions should be inlined. | |
868 | --enable-cgen-maint=DIR build cgen generated files | |
869 | ||
870 | Optional Packages: | |
871 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
872 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
873 | --with-included-gettext use the GNU gettext library included here | |
874 | ||
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 | |
c906108c SS |
888 | fi |
889 | ||
b7026657 AC |
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=. | |
c906108c | 896 | |
b7026657 AC |
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'` | |
c906108c | 901 | else |
b7026657 | 902 | ac_dir_suffix= ac_top_builddir= |
c906108c SS |
903 | fi |
904 | ||
b7026657 AC |
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 | |
c906108c | 977 | fi |
b7026657 AC |
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 | ||
1323 | # Make sure we can run config.sub. | |
1324 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1325 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1326 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1327 | { (exit 1); exit 1; }; } | |
1328 | ||
1329 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1330 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1331 | if test "${ac_cv_build+set}" = set; then | |
1332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1333 | else | |
1334 | ac_cv_build_alias=$build_alias | |
1335 | test -z "$ac_cv_build_alias" && | |
1336 | ac_cv_build_alias=`$ac_config_guess` | |
1337 | test -z "$ac_cv_build_alias" && | |
1338 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1339 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1340 | { (exit 1); exit 1; }; } | |
1341 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1342 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1343 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1344 | { (exit 1); exit 1; }; } | |
1345 | ||
1346 | fi | |
1347 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1348 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1349 | build=$ac_cv_build | |
1350 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1351 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1352 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1353 | ||
1354 | ||
1355 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1356 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1357 | if test "${ac_cv_host+set}" = set; then | |
1358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1359 | else | |
1360 | ac_cv_host_alias=$host_alias | |
1361 | test -z "$ac_cv_host_alias" && | |
1362 | ac_cv_host_alias=$ac_cv_build_alias | |
1363 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1364 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1365 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1366 | { (exit 1); exit 1; }; } | |
1367 | ||
1368 | fi | |
1369 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1370 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1371 | host=$ac_cv_host | |
1372 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1373 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1374 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1375 | ||
1376 | ||
1377 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1378 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1379 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1380 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1382 | else | |
1383 | cat >conftest.make <<\_ACEOF | |
1384 | all: | |
1385 | @echo 'ac_maketemp="$(MAKE)"' | |
1386 | _ACEOF | |
1387 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1388 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1389 | if test -n "$ac_maketemp"; then | |
1390 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1391 | else | |
1392 | eval ac_cv_prog_make_${ac_make}_set=no | |
1393 | fi | |
1394 | rm -f conftest.make | |
1395 | fi | |
1396 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1397 | echo "$as_me:$LINENO: result: yes" >&5 | |
1398 | echo "${ECHO_T}yes" >&6 | |
1399 | SET_MAKE= | |
1400 | else | |
1401 | echo "$as_me:$LINENO: result: no" >&5 | |
1402 | echo "${ECHO_T}no" >&6 | |
1403 | SET_MAKE="MAKE=${MAKE-make}" | |
1404 | fi | |
1405 | ||
1406 | ||
1407 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
1408 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
1409 | if test "${ac_cv_search_strerror+set}" = set; then | |
1410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1411 | else | |
1412 | ac_func_search_save_LIBS=$LIBS | |
1413 | ac_cv_search_strerror=no | |
1414 | cat >conftest.$ac_ext <<_ACEOF | |
1415 | /* confdefs.h. */ | |
1416 | _ACEOF | |
1417 | cat confdefs.h >>conftest.$ac_ext | |
1418 | cat >>conftest.$ac_ext <<_ACEOF | |
1419 | /* end confdefs.h. */ | |
1420 | ||
1421 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1422 | #ifdef __cplusplus | |
1423 | extern "C" | |
1424 | #endif | |
1425 | /* We use char because int might match the return type of a gcc2 | |
1426 | builtin and then its argument prototype would still apply. */ | |
1427 | char strerror (); | |
1428 | int | |
1429 | main () | |
1430 | { | |
1431 | strerror (); | |
1432 | ; | |
1433 | return 0; | |
1434 | } | |
1435 | _ACEOF | |
1436 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1438 | (eval $ac_link) 2>conftest.er1 | |
1439 | ac_status=$? | |
1440 | grep -v '^ *+' conftest.er1 >conftest.err | |
1441 | rm -f conftest.er1 | |
1442 | cat conftest.err >&5 | |
1443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1444 | (exit $ac_status); } && | |
1445 | { ac_try='test -z "$ac_c_werror_flag" | |
1446 | || test ! -s conftest.err' | |
1447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1448 | (eval $ac_try) 2>&5 | |
1449 | ac_status=$? | |
1450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1451 | (exit $ac_status); }; } && | |
1452 | { ac_try='test -s conftest$ac_exeext' | |
1453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1454 | (eval $ac_try) 2>&5 | |
1455 | ac_status=$? | |
1456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1457 | (exit $ac_status); }; }; then | |
1458 | ac_cv_search_strerror="none required" | |
1459 | else | |
1460 | echo "$as_me: failed program was:" >&5 | |
1461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1462 | ||
1463 | fi | |
1464 | rm -f conftest.err conftest.$ac_objext \ | |
1465 | conftest$ac_exeext conftest.$ac_ext | |
1466 | if test "$ac_cv_search_strerror" = no; then | |
1467 | for ac_lib in cposix; do | |
1468 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
1469 | cat >conftest.$ac_ext <<_ACEOF | |
1470 | /* confdefs.h. */ | |
1471 | _ACEOF | |
1472 | cat confdefs.h >>conftest.$ac_ext | |
1473 | cat >>conftest.$ac_ext <<_ACEOF | |
1474 | /* end confdefs.h. */ | |
1475 | ||
1476 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1477 | #ifdef __cplusplus | |
1478 | extern "C" | |
1479 | #endif | |
1480 | /* We use char because int might match the return type of a gcc2 | |
1481 | builtin and then its argument prototype would still apply. */ | |
1482 | char strerror (); | |
1483 | int | |
1484 | main () | |
1485 | { | |
1486 | strerror (); | |
1487 | ; | |
1488 | return 0; | |
1489 | } | |
1490 | _ACEOF | |
1491 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1493 | (eval $ac_link) 2>conftest.er1 | |
1494 | ac_status=$? | |
1495 | grep -v '^ *+' conftest.er1 >conftest.err | |
1496 | rm -f conftest.er1 | |
1497 | cat conftest.err >&5 | |
1498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1499 | (exit $ac_status); } && | |
1500 | { ac_try='test -z "$ac_c_werror_flag" | |
1501 | || test ! -s conftest.err' | |
1502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1503 | (eval $ac_try) 2>&5 | |
1504 | ac_status=$? | |
1505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1506 | (exit $ac_status); }; } && | |
1507 | { ac_try='test -s conftest$ac_exeext' | |
1508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1509 | (eval $ac_try) 2>&5 | |
1510 | ac_status=$? | |
1511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1512 | (exit $ac_status); }; }; then | |
1513 | ac_cv_search_strerror="-l$ac_lib" | |
1514 | break | |
1515 | else | |
1516 | echo "$as_me: failed program was:" >&5 | |
1517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1518 | ||
1519 | fi | |
1520 | rm -f conftest.err conftest.$ac_objext \ | |
1521 | conftest$ac_exeext conftest.$ac_ext | |
1522 | done | |
1523 | fi | |
1524 | LIBS=$ac_func_search_save_LIBS | |
1525 | fi | |
1526 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
1527 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
1528 | if test "$ac_cv_search_strerror" != no; then | |
1529 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
1530 | ||
1531 | fi | |
1532 | ||
1533 | ac_ext=c | |
1534 | ac_cpp='$CPP $CPPFLAGS' | |
1535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1538 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
1539 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
1540 | # On Suns, sometimes $CPP names a directory. | |
1541 | if test -n "$CPP" && test -d "$CPP"; then | |
1542 | CPP= | |
1543 | fi | |
1544 | if test -z "$CPP"; then | |
1545 | if test "${ac_cv_prog_CPP+set}" = set; then | |
1546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1547 | else | |
1548 | # Double quotes because CPP needs to be expanded | |
1549 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
1550 | do | |
1551 | ac_preproc_ok=false | |
1552 | for ac_c_preproc_warn_flag in '' yes | |
1553 | do | |
1554 | # Use a header file that comes with gcc, so configuring glibc | |
1555 | # with a fresh cross-compiler works. | |
1556 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1557 | # <limits.h> exists even on freestanding compilers. | |
1558 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1559 | # not just through cpp. "Syntax error" is here to catch this case. | |
1560 | cat >conftest.$ac_ext <<_ACEOF | |
1561 | /* confdefs.h. */ | |
1562 | _ACEOF | |
1563 | cat confdefs.h >>conftest.$ac_ext | |
1564 | cat >>conftest.$ac_ext <<_ACEOF | |
1565 | /* end confdefs.h. */ | |
1566 | #ifdef __STDC__ | |
1567 | # include <limits.h> | |
1568 | #else | |
1569 | # include <assert.h> | |
1570 | #endif | |
1571 | Syntax error | |
1572 | _ACEOF | |
1573 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1574 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1575 | ac_status=$? | |
1576 | grep -v '^ *+' conftest.er1 >conftest.err | |
1577 | rm -f conftest.er1 | |
1578 | cat conftest.err >&5 | |
1579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1580 | (exit $ac_status); } >/dev/null; then | |
1581 | if test -s conftest.err; then | |
1582 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1583 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1584 | else | |
1585 | ac_cpp_err= | |
1586 | fi | |
1587 | else | |
1588 | ac_cpp_err=yes | |
1589 | fi | |
1590 | if test -z "$ac_cpp_err"; then | |
1591 | : | |
1592 | else | |
1593 | echo "$as_me: failed program was:" >&5 | |
1594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1595 | ||
1596 | # Broken: fails on valid input. | |
1597 | continue | |
1598 | fi | |
1599 | rm -f conftest.err conftest.$ac_ext | |
1600 | ||
1601 | # OK, works on sane cases. Now check whether non-existent headers | |
1602 | # can be detected and how. | |
1603 | cat >conftest.$ac_ext <<_ACEOF | |
1604 | /* confdefs.h. */ | |
1605 | _ACEOF | |
1606 | cat confdefs.h >>conftest.$ac_ext | |
1607 | cat >>conftest.$ac_ext <<_ACEOF | |
1608 | /* end confdefs.h. */ | |
1609 | #include <ac_nonexistent.h> | |
1610 | _ACEOF | |
1611 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1612 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1613 | ac_status=$? | |
1614 | grep -v '^ *+' conftest.er1 >conftest.err | |
1615 | rm -f conftest.er1 | |
1616 | cat conftest.err >&5 | |
1617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1618 | (exit $ac_status); } >/dev/null; then | |
1619 | if test -s conftest.err; then | |
1620 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1621 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1622 | else | |
1623 | ac_cpp_err= | |
1624 | fi | |
1625 | else | |
1626 | ac_cpp_err=yes | |
1627 | fi | |
1628 | if test -z "$ac_cpp_err"; then | |
1629 | # Broken: success on invalid input. | |
1630 | continue | |
1631 | else | |
1632 | echo "$as_me: failed program was:" >&5 | |
1633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1634 | ||
1635 | # Passes both tests. | |
1636 | ac_preproc_ok=: | |
1637 | break | |
1638 | fi | |
1639 | rm -f conftest.err conftest.$ac_ext | |
1640 | ||
1641 | done | |
1642 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
1643 | rm -f conftest.err conftest.$ac_ext | |
1644 | if $ac_preproc_ok; then | |
1645 | break | |
1646 | fi | |
1647 | ||
1648 | done | |
1649 | ac_cv_prog_CPP=$CPP | |
1650 | ||
1651 | fi | |
1652 | CPP=$ac_cv_prog_CPP | |
1653 | else | |
1654 | ac_cv_prog_CPP=$CPP | |
1655 | fi | |
1656 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
1657 | echo "${ECHO_T}$CPP" >&6 | |
1658 | ac_preproc_ok=false | |
1659 | for ac_c_preproc_warn_flag in '' yes | |
1660 | do | |
1661 | # Use a header file that comes with gcc, so configuring glibc | |
1662 | # with a fresh cross-compiler works. | |
1663 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1664 | # <limits.h> exists even on freestanding compilers. | |
1665 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1666 | # not just through cpp. "Syntax error" is here to catch this case. | |
1667 | cat >conftest.$ac_ext <<_ACEOF | |
1668 | /* confdefs.h. */ | |
1669 | _ACEOF | |
1670 | cat confdefs.h >>conftest.$ac_ext | |
1671 | cat >>conftest.$ac_ext <<_ACEOF | |
1672 | /* end confdefs.h. */ | |
1673 | #ifdef __STDC__ | |
1674 | # include <limits.h> | |
1675 | #else | |
1676 | # include <assert.h> | |
1677 | #endif | |
1678 | Syntax error | |
1679 | _ACEOF | |
1680 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1681 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1682 | ac_status=$? | |
1683 | grep -v '^ *+' conftest.er1 >conftest.err | |
1684 | rm -f conftest.er1 | |
1685 | cat conftest.err >&5 | |
1686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1687 | (exit $ac_status); } >/dev/null; then | |
1688 | if test -s conftest.err; then | |
1689 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1690 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1691 | else | |
1692 | ac_cpp_err= | |
1693 | fi | |
1694 | else | |
1695 | ac_cpp_err=yes | |
1696 | fi | |
1697 | if test -z "$ac_cpp_err"; then | |
1698 | : | |
1699 | else | |
1700 | echo "$as_me: failed program was:" >&5 | |
1701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1702 | ||
1703 | # Broken: fails on valid input. | |
1704 | continue | |
1705 | fi | |
1706 | rm -f conftest.err conftest.$ac_ext | |
1707 | ||
1708 | # OK, works on sane cases. Now check whether non-existent headers | |
1709 | # can be detected and how. | |
1710 | cat >conftest.$ac_ext <<_ACEOF | |
1711 | /* confdefs.h. */ | |
1712 | _ACEOF | |
1713 | cat confdefs.h >>conftest.$ac_ext | |
1714 | cat >>conftest.$ac_ext <<_ACEOF | |
1715 | /* end confdefs.h. */ | |
1716 | #include <ac_nonexistent.h> | |
1717 | _ACEOF | |
1718 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1719 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1720 | ac_status=$? | |
1721 | grep -v '^ *+' conftest.er1 >conftest.err | |
1722 | rm -f conftest.er1 | |
1723 | cat conftest.err >&5 | |
1724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1725 | (exit $ac_status); } >/dev/null; then | |
1726 | if test -s conftest.err; then | |
1727 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1728 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1729 | else | |
1730 | ac_cpp_err= | |
1731 | fi | |
1732 | else | |
1733 | ac_cpp_err=yes | |
1734 | fi | |
1735 | if test -z "$ac_cpp_err"; then | |
1736 | # Broken: success on invalid input. | |
1737 | continue | |
1738 | else | |
1739 | echo "$as_me: failed program was:" >&5 | |
1740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1741 | ||
1742 | # Passes both tests. | |
1743 | ac_preproc_ok=: | |
1744 | break | |
1745 | fi | |
1746 | rm -f conftest.err conftest.$ac_ext | |
1747 | ||
1748 | done | |
1749 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
1750 | rm -f conftest.err conftest.$ac_ext | |
1751 | if $ac_preproc_ok; then | |
1752 | : | |
1753 | else | |
1754 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
1755 | See \`config.log' for more details." >&5 | |
1756 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
1757 | See \`config.log' for more details." >&2;} | |
1758 | { (exit 1); exit 1; }; } | |
1759 | fi | |
1760 | ||
1761 | ac_ext=c | |
1762 | ac_cpp='$CPP $CPPFLAGS' | |
1763 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1764 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1765 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1766 | ||
1767 | ||
1768 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
1769 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
1770 | if test "${ac_cv_prog_egrep+set}" = set; then | |
1771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1772 | else | |
1773 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
1774 | then ac_cv_prog_egrep='grep -E' | |
1775 | else ac_cv_prog_egrep='egrep' | |
1776 | fi | |
1777 | fi | |
1778 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
1779 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
1780 | EGREP=$ac_cv_prog_egrep | |
1781 | ||
1782 | ||
1783 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
1784 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
1785 | if test "${ac_cv_header_stdc+set}" = set; then | |
1786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1787 | else | |
1788 | cat >conftest.$ac_ext <<_ACEOF | |
1789 | /* confdefs.h. */ | |
1790 | _ACEOF | |
1791 | cat confdefs.h >>conftest.$ac_ext | |
1792 | cat >>conftest.$ac_ext <<_ACEOF | |
1793 | /* end confdefs.h. */ | |
1794 | #include <stdlib.h> | |
1795 | #include <stdarg.h> | |
1796 | #include <string.h> | |
1797 | #include <float.h> | |
1798 | ||
1799 | int | |
1800 | main () | |
1801 | { | |
1802 | ||
1803 | ; | |
1804 | return 0; | |
1805 | } | |
1806 | _ACEOF | |
1807 | rm -f conftest.$ac_objext | |
1808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1809 | (eval $ac_compile) 2>conftest.er1 | |
1810 | ac_status=$? | |
1811 | grep -v '^ *+' conftest.er1 >conftest.err | |
1812 | rm -f conftest.er1 | |
1813 | cat conftest.err >&5 | |
1814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1815 | (exit $ac_status); } && | |
1816 | { ac_try='test -z "$ac_c_werror_flag" | |
1817 | || test ! -s conftest.err' | |
1818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1819 | (eval $ac_try) 2>&5 | |
1820 | ac_status=$? | |
1821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1822 | (exit $ac_status); }; } && | |
1823 | { ac_try='test -s conftest.$ac_objext' | |
1824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1825 | (eval $ac_try) 2>&5 | |
1826 | ac_status=$? | |
1827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1828 | (exit $ac_status); }; }; then | |
1829 | ac_cv_header_stdc=yes | |
1830 | else | |
1831 | echo "$as_me: failed program was:" >&5 | |
1832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1833 | ||
1834 | ac_cv_header_stdc=no | |
1835 | fi | |
1836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c SS |
1837 | |
1838 | if test $ac_cv_header_stdc = yes; then | |
1839 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b7026657 AC |
1840 | cat >conftest.$ac_ext <<_ACEOF |
1841 | /* confdefs.h. */ | |
1842 | _ACEOF | |
1843 | cat confdefs.h >>conftest.$ac_ext | |
1844 | cat >>conftest.$ac_ext <<_ACEOF | |
1845 | /* end confdefs.h. */ | |
c906108c | 1846 | #include <string.h> |
b7026657 AC |
1847 | |
1848 | _ACEOF | |
c906108c | 1849 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 1850 | $EGREP "memchr" >/dev/null 2>&1; then |
c906108c SS |
1851 | : |
1852 | else | |
c906108c SS |
1853 | ac_cv_header_stdc=no |
1854 | fi | |
1855 | rm -f conftest* | |
1856 | ||
1857 | fi | |
1858 | ||
1859 | if test $ac_cv_header_stdc = yes; then | |
1860 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b7026657 AC |
1861 | cat >conftest.$ac_ext <<_ACEOF |
1862 | /* confdefs.h. */ | |
1863 | _ACEOF | |
1864 | cat confdefs.h >>conftest.$ac_ext | |
1865 | cat >>conftest.$ac_ext <<_ACEOF | |
1866 | /* end confdefs.h. */ | |
c906108c | 1867 | #include <stdlib.h> |
b7026657 AC |
1868 | |
1869 | _ACEOF | |
c906108c | 1870 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 1871 | $EGREP "free" >/dev/null 2>&1; then |
c906108c SS |
1872 | : |
1873 | else | |
c906108c SS |
1874 | ac_cv_header_stdc=no |
1875 | fi | |
1876 | rm -f conftest* | |
1877 | ||
1878 | fi | |
1879 | ||
1880 | if test $ac_cv_header_stdc = yes; then | |
1881 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b7026657 | 1882 | if test "$cross_compiling" = yes; then |
c906108c SS |
1883 | : |
1884 | else | |
b7026657 AC |
1885 | cat >conftest.$ac_ext <<_ACEOF |
1886 | /* confdefs.h. */ | |
1887 | _ACEOF | |
1888 | cat confdefs.h >>conftest.$ac_ext | |
1889 | cat >>conftest.$ac_ext <<_ACEOF | |
1890 | /* end confdefs.h. */ | |
c906108c | 1891 | #include <ctype.h> |
b7026657 AC |
1892 | #if ((' ' & 0x0FF) == 0x020) |
1893 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1894 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1895 | #else | |
1896 | # define ISLOWER(c) \ | |
1897 | (('a' <= (c) && (c) <= 'i') \ | |
1898 | || ('j' <= (c) && (c) <= 'r') \ | |
1899 | || ('s' <= (c) && (c) <= 'z')) | |
1900 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
1901 | #endif | |
c906108c | 1902 | |
b7026657 AC |
1903 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1904 | int | |
1905 | main () | |
1906 | { | |
1907 | int i; | |
1908 | for (i = 0; i < 256; i++) | |
1909 | if (XOR (islower (i), ISLOWER (i)) | |
1910 | || toupper (i) != TOUPPER (i)) | |
1911 | exit(2); | |
1912 | exit (0); | |
1913 | } | |
1914 | _ACEOF | |
1915 | rm -f conftest$ac_exeext | |
1916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1917 | (eval $ac_link) 2>&5 | |
1918 | ac_status=$? | |
1919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1920 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
1921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1922 | (eval $ac_try) 2>&5 | |
1923 | ac_status=$? | |
1924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1925 | (exit $ac_status); }; }; then | |
c906108c SS |
1926 | : |
1927 | else | |
b7026657 AC |
1928 | echo "$as_me: program exited with status $ac_status" >&5 |
1929 | echo "$as_me: failed program was:" >&5 | |
1930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1931 | ||
1932 | ( exit $ac_status ) | |
1933 | ac_cv_header_stdc=no | |
c906108c | 1934 | fi |
b7026657 | 1935 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 1936 | fi |
c906108c SS |
1937 | fi |
1938 | fi | |
b7026657 AC |
1939 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
1940 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
c906108c | 1941 | if test $ac_cv_header_stdc = yes; then |
b7026657 AC |
1942 | |
1943 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 1944 | #define STDC_HEADERS 1 |
b7026657 AC |
1945 | _ACEOF |
1946 | ||
1947 | fi | |
1948 | ||
1949 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
1950 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
1951 | if test "${ac_cv_c_const+set}" = set; then | |
1952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1953 | else | |
1954 | cat >conftest.$ac_ext <<_ACEOF | |
1955 | /* confdefs.h. */ | |
1956 | _ACEOF | |
1957 | cat confdefs.h >>conftest.$ac_ext | |
1958 | cat >>conftest.$ac_ext <<_ACEOF | |
1959 | /* end confdefs.h. */ | |
1960 | ||
1961 | int | |
1962 | main () | |
1963 | { | |
1964 | /* FIXME: Include the comments suggested by Paul. */ | |
1965 | #ifndef __cplusplus | |
1966 | /* Ultrix mips cc rejects this. */ | |
1967 | typedef int charset[2]; | |
1968 | const charset x; | |
1969 | /* SunOS 4.1.1 cc rejects this. */ | |
1970 | char const *const *ccp; | |
1971 | char **p; | |
1972 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
1973 | struct point {int x, y;}; | |
1974 | static struct point const zero = {0,0}; | |
1975 | /* AIX XL C 1.02.0.0 rejects this. | |
1976 | It does not let you subtract one const X* pointer from another in | |
1977 | an arm of an if-expression whose if-part is not a constant | |
1978 | expression */ | |
1979 | const char *g = "string"; | |
1980 | ccp = &g + (g ? g-g : 0); | |
1981 | /* HPUX 7.0 cc rejects these. */ | |
1982 | ++ccp; | |
1983 | p = (char**) ccp; | |
1984 | ccp = (char const *const *) p; | |
1985 | { /* SCO 3.2v4 cc rejects this. */ | |
1986 | char *t; | |
1987 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
1988 | ||
1989 | *t++ = 0; | |
1990 | } | |
1991 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
1992 | int x[] = {25, 17}; | |
1993 | const int *foo = &x[0]; | |
1994 | ++foo; | |
1995 | } | |
1996 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
1997 | typedef const int *iptr; | |
1998 | iptr p = 0; | |
1999 | ++p; | |
2000 | } | |
2001 | { /* AIX XL C 1.02.0.0 rejects this saying | |
2002 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
2003 | struct s { int j; const int *ap[3]; }; | |
2004 | struct s *b; b->j = 5; | |
2005 | } | |
2006 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
2007 | const int foo = 10; | |
2008 | } | |
2009 | #endif | |
c906108c | 2010 | |
b7026657 AC |
2011 | ; |
2012 | return 0; | |
2013 | } | |
2014 | _ACEOF | |
2015 | rm -f conftest.$ac_objext | |
2016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2017 | (eval $ac_compile) 2>conftest.er1 | |
2018 | ac_status=$? | |
2019 | grep -v '^ *+' conftest.er1 >conftest.err | |
2020 | rm -f conftest.er1 | |
2021 | cat conftest.err >&5 | |
2022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2023 | (exit $ac_status); } && | |
2024 | { ac_try='test -z "$ac_c_werror_flag" | |
2025 | || test ! -s conftest.err' | |
2026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2027 | (eval $ac_try) 2>&5 | |
2028 | ac_status=$? | |
2029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2030 | (exit $ac_status); }; } && | |
2031 | { ac_try='test -s conftest.$ac_objext' | |
2032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2033 | (eval $ac_try) 2>&5 | |
2034 | ac_status=$? | |
2035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2036 | (exit $ac_status); }; }; then | |
c906108c SS |
2037 | ac_cv_c_const=yes |
2038 | else | |
b7026657 AC |
2039 | echo "$as_me: failed program was:" >&5 |
2040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2041 | ||
2042 | ac_cv_c_const=no | |
c906108c | 2043 | fi |
b7026657 | 2044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 2045 | fi |
b7026657 AC |
2046 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
2047 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
c906108c | 2048 | if test $ac_cv_c_const = no; then |
b7026657 AC |
2049 | |
2050 | cat >>confdefs.h <<\_ACEOF | |
2051 | #define const | |
2052 | _ACEOF | |
c906108c SS |
2053 | |
2054 | fi | |
2055 | ||
b7026657 AC |
2056 | echo "$as_me:$LINENO: checking for inline" >&5 |
2057 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
2058 | if test "${ac_cv_c_inline+set}" = set; then | |
2059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2060 | else |
2061 | ac_cv_c_inline=no | |
2062 | for ac_kw in inline __inline__ __inline; do | |
b7026657 AC |
2063 | cat >conftest.$ac_ext <<_ACEOF |
2064 | /* confdefs.h. */ | |
2065 | _ACEOF | |
2066 | cat confdefs.h >>conftest.$ac_ext | |
2067 | cat >>conftest.$ac_ext <<_ACEOF | |
2068 | /* end confdefs.h. */ | |
2069 | #ifndef __cplusplus | |
2070 | typedef int foo_t; | |
2071 | static $ac_kw foo_t static_foo () {return 0; } | |
2072 | $ac_kw foo_t foo () {return 0; } | |
2073 | #endif | |
2074 | ||
2075 | _ACEOF | |
2076 | rm -f conftest.$ac_objext | |
2077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2078 | (eval $ac_compile) 2>conftest.er1 | |
2079 | ac_status=$? | |
2080 | grep -v '^ *+' conftest.er1 >conftest.err | |
2081 | rm -f conftest.er1 | |
2082 | cat conftest.err >&5 | |
2083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2084 | (exit $ac_status); } && | |
2085 | { ac_try='test -z "$ac_c_werror_flag" | |
2086 | || test ! -s conftest.err' | |
2087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2088 | (eval $ac_try) 2>&5 | |
2089 | ac_status=$? | |
2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2091 | (exit $ac_status); }; } && | |
2092 | { ac_try='test -s conftest.$ac_objext' | |
2093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2094 | (eval $ac_try) 2>&5 | |
2095 | ac_status=$? | |
2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2097 | (exit $ac_status); }; }; then | |
c906108c SS |
2098 | ac_cv_c_inline=$ac_kw; break |
2099 | else | |
b7026657 AC |
2100 | echo "$as_me: failed program was:" >&5 |
2101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2102 | ||
c906108c | 2103 | fi |
b7026657 | 2104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
2105 | done |
2106 | ||
2107 | fi | |
b7026657 AC |
2108 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
2109 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
2110 | ||
c906108c | 2111 | |
b7026657 | 2112 | case $ac_cv_c_inline in |
c906108c | 2113 | inline | yes) ;; |
b7026657 AC |
2114 | *) |
2115 | case $ac_cv_c_inline in | |
2116 | no) ac_val=;; | |
2117 | *) ac_val=$ac_cv_c_inline;; | |
2118 | esac | |
2119 | cat >>confdefs.h <<_ACEOF | |
2120 | #ifndef __cplusplus | |
2121 | #define inline $ac_val | |
2122 | #endif | |
2123 | _ACEOF | |
2124 | ;; | |
c906108c SS |
2125 | esac |
2126 | ||
b7026657 AC |
2127 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
2128 | ||
2129 | ||
2130 | ||
2131 | ||
2132 | ||
2133 | ||
2134 | ||
2135 | ||
2136 | ||
2137 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
2138 | inttypes.h stdint.h unistd.h | |
2139 | do | |
2140 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
2141 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2142 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2143 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2145 | else | |
2146 | cat >conftest.$ac_ext <<_ACEOF | |
2147 | /* confdefs.h. */ | |
2148 | _ACEOF | |
2149 | cat confdefs.h >>conftest.$ac_ext | |
2150 | cat >>conftest.$ac_ext <<_ACEOF | |
2151 | /* end confdefs.h. */ | |
2152 | $ac_includes_default | |
2153 | ||
2154 | #include <$ac_header> | |
2155 | _ACEOF | |
2156 | rm -f conftest.$ac_objext | |
2157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2158 | (eval $ac_compile) 2>conftest.er1 | |
2159 | ac_status=$? | |
2160 | grep -v '^ *+' conftest.er1 >conftest.err | |
2161 | rm -f conftest.er1 | |
2162 | cat conftest.err >&5 | |
2163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2164 | (exit $ac_status); } && | |
2165 | { ac_try='test -z "$ac_c_werror_flag" | |
2166 | || test ! -s conftest.err' | |
2167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2168 | (eval $ac_try) 2>&5 | |
2169 | ac_status=$? | |
2170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2171 | (exit $ac_status); }; } && | |
2172 | { ac_try='test -s conftest.$ac_objext' | |
2173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2174 | (eval $ac_try) 2>&5 | |
2175 | ac_status=$? | |
2176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2177 | (exit $ac_status); }; }; then | |
2178 | eval "$as_ac_Header=yes" | |
2179 | else | |
2180 | echo "$as_me: failed program was:" >&5 | |
2181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2182 | ||
2183 | eval "$as_ac_Header=no" | |
2184 | fi | |
2185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2186 | fi | |
2187 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2188 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2189 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2190 | cat >>confdefs.h <<_ACEOF | |
2191 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2192 | _ACEOF | |
2193 | ||
2194 | fi | |
2195 | ||
2196 | done | |
2197 | ||
2198 | ||
2199 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
2200 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
2201 | if test "${ac_cv_type_off_t+set}" = set; then | |
2202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2203 | else |
b7026657 AC |
2204 | cat >conftest.$ac_ext <<_ACEOF |
2205 | /* confdefs.h. */ | |
2206 | _ACEOF | |
2207 | cat confdefs.h >>conftest.$ac_ext | |
2208 | cat >>conftest.$ac_ext <<_ACEOF | |
2209 | /* end confdefs.h. */ | |
2210 | $ac_includes_default | |
2211 | int | |
2212 | main () | |
2213 | { | |
2214 | if ((off_t *) 0) | |
2215 | return 0; | |
2216 | if (sizeof (off_t)) | |
2217 | return 0; | |
2218 | ; | |
2219 | return 0; | |
2220 | } | |
2221 | _ACEOF | |
2222 | rm -f conftest.$ac_objext | |
2223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2224 | (eval $ac_compile) 2>conftest.er1 | |
2225 | ac_status=$? | |
2226 | grep -v '^ *+' conftest.er1 >conftest.err | |
2227 | rm -f conftest.er1 | |
2228 | cat conftest.err >&5 | |
2229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2230 | (exit $ac_status); } && | |
2231 | { ac_try='test -z "$ac_c_werror_flag" | |
2232 | || test ! -s conftest.err' | |
2233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2234 | (eval $ac_try) 2>&5 | |
2235 | ac_status=$? | |
2236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2237 | (exit $ac_status); }; } && | |
2238 | { ac_try='test -s conftest.$ac_objext' | |
2239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2240 | (eval $ac_try) 2>&5 | |
2241 | ac_status=$? | |
2242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2243 | (exit $ac_status); }; }; then | |
c906108c SS |
2244 | ac_cv_type_off_t=yes |
2245 | else | |
b7026657 AC |
2246 | echo "$as_me: failed program was:" >&5 |
2247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2248 | |
b7026657 AC |
2249 | ac_cv_type_off_t=no |
2250 | fi | |
2251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 2252 | fi |
b7026657 AC |
2253 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
2254 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
2255 | if test $ac_cv_type_off_t = yes; then | |
2256 | : | |
2257 | else | |
2258 | ||
2259 | cat >>confdefs.h <<_ACEOF | |
c906108c | 2260 | #define off_t long |
b7026657 | 2261 | _ACEOF |
c906108c SS |
2262 | |
2263 | fi | |
2264 | ||
b7026657 AC |
2265 | echo "$as_me:$LINENO: checking for size_t" >&5 |
2266 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
2267 | if test "${ac_cv_type_size_t+set}" = set; then | |
2268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2269 | else |
b7026657 AC |
2270 | cat >conftest.$ac_ext <<_ACEOF |
2271 | /* confdefs.h. */ | |
2272 | _ACEOF | |
2273 | cat confdefs.h >>conftest.$ac_ext | |
2274 | cat >>conftest.$ac_ext <<_ACEOF | |
2275 | /* end confdefs.h. */ | |
2276 | $ac_includes_default | |
2277 | int | |
2278 | main () | |
2279 | { | |
2280 | if ((size_t *) 0) | |
2281 | return 0; | |
2282 | if (sizeof (size_t)) | |
2283 | return 0; | |
2284 | ; | |
2285 | return 0; | |
2286 | } | |
2287 | _ACEOF | |
2288 | rm -f conftest.$ac_objext | |
2289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2290 | (eval $ac_compile) 2>conftest.er1 | |
2291 | ac_status=$? | |
2292 | grep -v '^ *+' conftest.er1 >conftest.err | |
2293 | rm -f conftest.er1 | |
2294 | cat conftest.err >&5 | |
2295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2296 | (exit $ac_status); } && | |
2297 | { ac_try='test -z "$ac_c_werror_flag" | |
2298 | || test ! -s conftest.err' | |
2299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2300 | (eval $ac_try) 2>&5 | |
2301 | ac_status=$? | |
2302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2303 | (exit $ac_status); }; } && | |
2304 | { ac_try='test -s conftest.$ac_objext' | |
2305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2306 | (eval $ac_try) 2>&5 | |
2307 | ac_status=$? | |
2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2309 | (exit $ac_status); }; }; then | |
c906108c SS |
2310 | ac_cv_type_size_t=yes |
2311 | else | |
b7026657 AC |
2312 | echo "$as_me: failed program was:" >&5 |
2313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2314 | |
b7026657 | 2315 | ac_cv_type_size_t=no |
c906108c | 2316 | fi |
b7026657 AC |
2317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2318 | fi | |
2319 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
2320 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
2321 | if test $ac_cv_type_size_t = yes; then | |
2322 | : | |
2323 | else | |
2324 | ||
2325 | cat >>confdefs.h <<_ACEOF | |
c906108c | 2326 | #define size_t unsigned |
b7026657 | 2327 | _ACEOF |
c906108c SS |
2328 | |
2329 | fi | |
2330 | ||
2331 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
2332 | # for constant arguments. Useless! | |
b7026657 AC |
2333 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
2334 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
2335 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
2336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2337 | else | |
2338 | cat >conftest.$ac_ext <<_ACEOF | |
2339 | /* confdefs.h. */ | |
2340 | _ACEOF | |
2341 | cat confdefs.h >>conftest.$ac_ext | |
2342 | cat >>conftest.$ac_ext <<_ACEOF | |
2343 | /* end confdefs.h. */ | |
c906108c | 2344 | #include <alloca.h> |
b7026657 AC |
2345 | int |
2346 | main () | |
2347 | { | |
2348 | char *p = (char *) alloca (2 * sizeof (int)); | |
2349 | ; | |
2350 | return 0; | |
2351 | } | |
2352 | _ACEOF | |
2353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2355 | (eval $ac_link) 2>conftest.er1 | |
2356 | ac_status=$? | |
2357 | grep -v '^ *+' conftest.er1 >conftest.err | |
2358 | rm -f conftest.er1 | |
2359 | cat conftest.err >&5 | |
2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2361 | (exit $ac_status); } && | |
2362 | { ac_try='test -z "$ac_c_werror_flag" | |
2363 | || test ! -s conftest.err' | |
2364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2365 | (eval $ac_try) 2>&5 | |
2366 | ac_status=$? | |
2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2368 | (exit $ac_status); }; } && | |
2369 | { ac_try='test -s conftest$ac_exeext' | |
2370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2371 | (eval $ac_try) 2>&5 | |
2372 | ac_status=$? | |
2373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2374 | (exit $ac_status); }; }; then | |
2375 | ac_cv_working_alloca_h=yes | |
2376 | else | |
2377 | echo "$as_me: failed program was:" >&5 | |
2378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2379 | ||
2380 | ac_cv_working_alloca_h=no | |
2381 | fi | |
2382 | rm -f conftest.err conftest.$ac_objext \ | |
2383 | conftest$ac_exeext conftest.$ac_ext | |
2384 | fi | |
2385 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
2386 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
2387 | if test $ac_cv_working_alloca_h = yes; then | |
2388 | ||
2389 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 2390 | #define HAVE_ALLOCA_H 1 |
b7026657 | 2391 | _ACEOF |
c906108c SS |
2392 | |
2393 | fi | |
2394 | ||
b7026657 AC |
2395 | echo "$as_me:$LINENO: checking for alloca" >&5 |
2396 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
2397 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
2398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2399 | else |
b7026657 AC |
2400 | cat >conftest.$ac_ext <<_ACEOF |
2401 | /* confdefs.h. */ | |
2402 | _ACEOF | |
2403 | cat confdefs.h >>conftest.$ac_ext | |
2404 | cat >>conftest.$ac_ext <<_ACEOF | |
2405 | /* end confdefs.h. */ | |
c906108c SS |
2406 | #ifdef __GNUC__ |
2407 | # define alloca __builtin_alloca | |
2408 | #else | |
2409 | # ifdef _MSC_VER | |
2410 | # include <malloc.h> | |
2411 | # define alloca _alloca | |
2412 | # else | |
2413 | # if HAVE_ALLOCA_H | |
2414 | # include <alloca.h> | |
2415 | # else | |
2416 | # ifdef _AIX | |
2417 | #pragma alloca | |
2418 | # else | |
2419 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
2420 | char *alloca (); | |
2421 | # endif | |
2422 | # endif | |
2423 | # endif | |
2424 | # endif | |
2425 | #endif | |
2426 | ||
b7026657 AC |
2427 | int |
2428 | main () | |
2429 | { | |
2430 | char *p = (char *) alloca (1); | |
2431 | ; | |
2432 | return 0; | |
2433 | } | |
2434 | _ACEOF | |
2435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2437 | (eval $ac_link) 2>conftest.er1 | |
2438 | ac_status=$? | |
2439 | grep -v '^ *+' conftest.er1 >conftest.err | |
2440 | rm -f conftest.er1 | |
2441 | cat conftest.err >&5 | |
2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2443 | (exit $ac_status); } && | |
2444 | { ac_try='test -z "$ac_c_werror_flag" | |
2445 | || test ! -s conftest.err' | |
2446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2447 | (eval $ac_try) 2>&5 | |
2448 | ac_status=$? | |
2449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2450 | (exit $ac_status); }; } && | |
2451 | { ac_try='test -s conftest$ac_exeext' | |
2452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2453 | (eval $ac_try) 2>&5 | |
2454 | ac_status=$? | |
2455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2456 | (exit $ac_status); }; }; then | |
c906108c SS |
2457 | ac_cv_func_alloca_works=yes |
2458 | else | |
b7026657 AC |
2459 | echo "$as_me: failed program was:" >&5 |
2460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2461 | ||
2462 | ac_cv_func_alloca_works=no | |
c906108c | 2463 | fi |
b7026657 AC |
2464 | rm -f conftest.err conftest.$ac_objext \ |
2465 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 2466 | fi |
b7026657 AC |
2467 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
2468 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
c906108c | 2469 | |
c906108c | 2470 | if test $ac_cv_func_alloca_works = yes; then |
c906108c | 2471 | |
b7026657 AC |
2472 | cat >>confdefs.h <<\_ACEOF |
2473 | #define HAVE_ALLOCA 1 | |
2474 | _ACEOF | |
c906108c | 2475 | |
b7026657 | 2476 | else |
c906108c | 2477 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
b7026657 AC |
2478 | # that cause trouble. Some versions do not even contain alloca or |
2479 | # contain a buggy version. If you still want to use their alloca, | |
2480 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
2481 | ||
2482 | ALLOCA=alloca.$ac_objext | |
2483 | ||
2484 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 2485 | #define C_ALLOCA 1 |
b7026657 | 2486 | _ACEOF |
c906108c SS |
2487 | |
2488 | ||
b7026657 AC |
2489 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
2490 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
2491 | if test "${ac_cv_os_cray+set}" = set; then | |
2492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2493 | else |
b7026657 AC |
2494 | cat >conftest.$ac_ext <<_ACEOF |
2495 | /* confdefs.h. */ | |
2496 | _ACEOF | |
2497 | cat confdefs.h >>conftest.$ac_ext | |
2498 | cat >>conftest.$ac_ext <<_ACEOF | |
2499 | /* end confdefs.h. */ | |
c906108c SS |
2500 | #if defined(CRAY) && ! defined(CRAY2) |
2501 | webecray | |
2502 | #else | |
2503 | wenotbecray | |
2504 | #endif | |
2505 | ||
b7026657 | 2506 | _ACEOF |
c906108c | 2507 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 2508 | $EGREP "webecray" >/dev/null 2>&1; then |
c906108c SS |
2509 | ac_cv_os_cray=yes |
2510 | else | |
c906108c SS |
2511 | ac_cv_os_cray=no |
2512 | fi | |
2513 | rm -f conftest* | |
2514 | ||
2515 | fi | |
b7026657 AC |
2516 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
2517 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
c906108c | 2518 | if test $ac_cv_os_cray = yes; then |
b7026657 AC |
2519 | for ac_func in _getb67 GETB67 getb67; do |
2520 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
2521 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
2522 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
2523 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
2524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2525 | else | |
2526 | cat >conftest.$ac_ext <<_ACEOF | |
2527 | /* confdefs.h. */ | |
2528 | _ACEOF | |
2529 | cat confdefs.h >>conftest.$ac_ext | |
2530 | cat >>conftest.$ac_ext <<_ACEOF | |
2531 | /* end confdefs.h. */ | |
2532 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
2533 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2534 | #define $ac_func innocuous_$ac_func | |
2535 | ||
c906108c | 2536 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
2537 | which can conflict with char $ac_func (); below. |
2538 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2539 | <limits.h> exists even on freestanding compilers. */ | |
2540 | ||
2541 | #ifdef __STDC__ | |
2542 | # include <limits.h> | |
2543 | #else | |
2544 | # include <assert.h> | |
2545 | #endif | |
c906108c | 2546 | |
b7026657 | 2547 | #undef $ac_func |
c906108c | 2548 | |
b7026657 AC |
2549 | /* Override any gcc2 internal prototype to avoid an error. */ |
2550 | #ifdef __cplusplus | |
2551 | extern "C" | |
2552 | { | |
2553 | #endif | |
2554 | /* We use char because int might match the return type of a gcc2 | |
2555 | builtin and then its argument prototype would still apply. */ | |
2556 | char $ac_func (); | |
c906108c SS |
2557 | /* The GNU C library defines this for functions which it implements |
2558 | to always fail with ENOSYS. Some functions are actually named | |
2559 | something starting with __ and the normal name is an alias. */ | |
2560 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2561 | choke me | |
2562 | #else | |
b7026657 AC |
2563 | char (*f) () = $ac_func; |
2564 | #endif | |
2565 | #ifdef __cplusplus | |
2566 | } | |
c906108c SS |
2567 | #endif |
2568 | ||
b7026657 AC |
2569 | int |
2570 | main () | |
2571 | { | |
2572 | return f != $ac_func; | |
2573 | ; | |
2574 | return 0; | |
2575 | } | |
2576 | _ACEOF | |
2577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2579 | (eval $ac_link) 2>conftest.er1 | |
2580 | ac_status=$? | |
2581 | grep -v '^ *+' conftest.er1 >conftest.err | |
2582 | rm -f conftest.er1 | |
2583 | cat conftest.err >&5 | |
2584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2585 | (exit $ac_status); } && | |
2586 | { ac_try='test -z "$ac_c_werror_flag" | |
2587 | || test ! -s conftest.err' | |
2588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2589 | (eval $ac_try) 2>&5 | |
2590 | ac_status=$? | |
2591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2592 | (exit $ac_status); }; } && | |
2593 | { ac_try='test -s conftest$ac_exeext' | |
2594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2595 | (eval $ac_try) 2>&5 | |
2596 | ac_status=$? | |
2597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2598 | (exit $ac_status); }; }; then | |
2599 | eval "$as_ac_var=yes" | |
2600 | else | |
2601 | echo "$as_me: failed program was:" >&5 | |
2602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2603 | ||
2604 | eval "$as_ac_var=no" | |
2605 | fi | |
2606 | rm -f conftest.err conftest.$ac_objext \ | |
2607 | conftest$ac_exeext conftest.$ac_ext | |
2608 | fi | |
2609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
2610 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
2611 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
2612 | ||
2613 | cat >>confdefs.h <<_ACEOF | |
c906108c | 2614 | #define CRAY_STACKSEG_END $ac_func |
b7026657 | 2615 | _ACEOF |
c906108c | 2616 | |
b7026657 | 2617 | break |
c906108c SS |
2618 | fi |
2619 | ||
b7026657 | 2620 | done |
c906108c SS |
2621 | fi |
2622 | ||
b7026657 AC |
2623 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
2624 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
2625 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
2626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2627 | else |
2628 | if test "$cross_compiling" = yes; then | |
2629 | ac_cv_c_stack_direction=0 | |
2630 | else | |
b7026657 AC |
2631 | cat >conftest.$ac_ext <<_ACEOF |
2632 | /* confdefs.h. */ | |
2633 | _ACEOF | |
2634 | cat confdefs.h >>conftest.$ac_ext | |
2635 | cat >>conftest.$ac_ext <<_ACEOF | |
2636 | /* end confdefs.h. */ | |
2637 | int | |
c906108c SS |
2638 | find_stack_direction () |
2639 | { | |
2640 | static char *addr = 0; | |
2641 | auto char dummy; | |
2642 | if (addr == 0) | |
2643 | { | |
2644 | addr = &dummy; | |
2645 | return find_stack_direction (); | |
2646 | } | |
2647 | else | |
2648 | return (&dummy > addr) ? 1 : -1; | |
2649 | } | |
b7026657 AC |
2650 | |
2651 | int | |
c906108c SS |
2652 | main () |
2653 | { | |
b7026657 | 2654 | exit (find_stack_direction () < 0); |
c906108c | 2655 | } |
b7026657 AC |
2656 | _ACEOF |
2657 | rm -f conftest$ac_exeext | |
2658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2659 | (eval $ac_link) 2>&5 | |
2660 | ac_status=$? | |
2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2662 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2664 | (eval $ac_try) 2>&5 | |
2665 | ac_status=$? | |
2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2667 | (exit $ac_status); }; }; then | |
c906108c SS |
2668 | ac_cv_c_stack_direction=1 |
2669 | else | |
b7026657 AC |
2670 | echo "$as_me: program exited with status $ac_status" >&5 |
2671 | echo "$as_me: failed program was:" >&5 | |
2672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2673 | ||
2674 | ( exit $ac_status ) | |
2675 | ac_cv_c_stack_direction=-1 | |
c906108c | 2676 | fi |
b7026657 | 2677 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 2678 | fi |
c906108c | 2679 | fi |
b7026657 AC |
2680 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
2681 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
c906108c | 2682 | |
b7026657 | 2683 | cat >>confdefs.h <<_ACEOF |
c906108c | 2684 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
b7026657 AC |
2685 | _ACEOF |
2686 | ||
c906108c SS |
2687 | |
2688 | fi | |
2689 | ||
b7026657 AC |
2690 | |
2691 | ||
2692 | for ac_header in stdlib.h unistd.h | |
c906108c | 2693 | do |
b7026657 AC |
2694 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2695 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2696 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2697 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2698 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2700 | fi | |
2701 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2702 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2703 | else | |
2704 | # Is the header compilable? | |
2705 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
2706 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
2707 | cat >conftest.$ac_ext <<_ACEOF | |
2708 | /* confdefs.h. */ | |
2709 | _ACEOF | |
2710 | cat confdefs.h >>conftest.$ac_ext | |
2711 | cat >>conftest.$ac_ext <<_ACEOF | |
2712 | /* end confdefs.h. */ | |
2713 | $ac_includes_default | |
2714 | #include <$ac_header> | |
2715 | _ACEOF | |
2716 | rm -f conftest.$ac_objext | |
2717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2718 | (eval $ac_compile) 2>conftest.er1 | |
2719 | ac_status=$? | |
2720 | grep -v '^ *+' conftest.er1 >conftest.err | |
2721 | rm -f conftest.er1 | |
2722 | cat conftest.err >&5 | |
2723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2724 | (exit $ac_status); } && | |
2725 | { ac_try='test -z "$ac_c_werror_flag" | |
2726 | || test ! -s conftest.err' | |
2727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2728 | (eval $ac_try) 2>&5 | |
2729 | ac_status=$? | |
2730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2731 | (exit $ac_status); }; } && | |
2732 | { ac_try='test -s conftest.$ac_objext' | |
2733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2734 | (eval $ac_try) 2>&5 | |
2735 | ac_status=$? | |
2736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2737 | (exit $ac_status); }; }; then | |
2738 | ac_header_compiler=yes | |
2739 | else | |
2740 | echo "$as_me: failed program was:" >&5 | |
2741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2742 | ||
2743 | ac_header_compiler=no | |
2744 | fi | |
2745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2746 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
2747 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
2748 | ||
2749 | # Is the header present? | |
2750 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
2751 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
2752 | cat >conftest.$ac_ext <<_ACEOF | |
2753 | /* confdefs.h. */ | |
2754 | _ACEOF | |
2755 | cat confdefs.h >>conftest.$ac_ext | |
2756 | cat >>conftest.$ac_ext <<_ACEOF | |
2757 | /* end confdefs.h. */ | |
2758 | #include <$ac_header> | |
2759 | _ACEOF | |
2760 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2761 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2762 | ac_status=$? | |
2763 | grep -v '^ *+' conftest.er1 >conftest.err | |
2764 | rm -f conftest.er1 | |
2765 | cat conftest.err >&5 | |
2766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2767 | (exit $ac_status); } >/dev/null; then | |
2768 | if test -s conftest.err; then | |
2769 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2770 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2771 | else | |
2772 | ac_cpp_err= | |
2773 | fi | |
2774 | else | |
2775 | ac_cpp_err=yes | |
c906108c | 2776 | fi |
b7026657 AC |
2777 | if test -z "$ac_cpp_err"; then |
2778 | ac_header_preproc=yes | |
2779 | else | |
2780 | echo "$as_me: failed program was:" >&5 | |
2781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2782 | ||
2783 | ac_header_preproc=no | |
c906108c | 2784 | fi |
b7026657 AC |
2785 | rm -f conftest.err conftest.$ac_ext |
2786 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
2787 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
2788 | ||
2789 | # So? What about this header? | |
2790 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
2791 | yes:no: ) | |
2792 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2793 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2794 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
2795 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
2796 | ac_header_preproc=yes | |
2797 | ;; | |
2798 | no:yes:* ) | |
2799 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
2800 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
2801 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
2802 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
2803 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
2804 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
2805 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
2806 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
2807 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
2808 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
2809 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
2810 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
2811 | ( | |
2812 | cat <<\_ASBOX | |
2813 | ## ------------------------------------------ ## | |
2814 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
2815 | ## ------------------------------------------ ## | |
2816 | _ASBOX | |
2817 | ) | | |
2818 | sed "s/^/$as_me: WARNING: /" >&2 | |
2819 | ;; | |
2820 | esac | |
2821 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2822 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2825 | else |
b7026657 AC |
2826 | eval "$as_ac_Header=\$ac_header_preproc" |
2827 | fi | |
2828 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2829 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2830 | ||
2831 | fi | |
2832 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2833 | cat >>confdefs.h <<_ACEOF | |
2834 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2835 | _ACEOF | |
2836 | ||
c906108c | 2837 | fi |
b7026657 | 2838 | |
c906108c SS |
2839 | done |
2840 | ||
b7026657 | 2841 | |
c906108c SS |
2842 | for ac_func in getpagesize |
2843 | do | |
b7026657 AC |
2844 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2845 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
2846 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
2847 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
2848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2849 | else | |
2850 | cat >conftest.$ac_ext <<_ACEOF | |
2851 | /* confdefs.h. */ | |
2852 | _ACEOF | |
2853 | cat confdefs.h >>conftest.$ac_ext | |
2854 | cat >>conftest.$ac_ext <<_ACEOF | |
2855 | /* end confdefs.h. */ | |
2856 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
2857 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2858 | #define $ac_func innocuous_$ac_func | |
2859 | ||
c906108c | 2860 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
2861 | which can conflict with char $ac_func (); below. |
2862 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2863 | <limits.h> exists even on freestanding compilers. */ | |
2864 | ||
2865 | #ifdef __STDC__ | |
2866 | # include <limits.h> | |
2867 | #else | |
2868 | # include <assert.h> | |
2869 | #endif | |
c906108c | 2870 | |
b7026657 | 2871 | #undef $ac_func |
c906108c | 2872 | |
b7026657 AC |
2873 | /* Override any gcc2 internal prototype to avoid an error. */ |
2874 | #ifdef __cplusplus | |
2875 | extern "C" | |
2876 | { | |
2877 | #endif | |
2878 | /* We use char because int might match the return type of a gcc2 | |
2879 | builtin and then its argument prototype would still apply. */ | |
2880 | char $ac_func (); | |
c906108c SS |
2881 | /* The GNU C library defines this for functions which it implements |
2882 | to always fail with ENOSYS. Some functions are actually named | |
2883 | something starting with __ and the normal name is an alias. */ | |
2884 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2885 | choke me | |
2886 | #else | |
b7026657 AC |
2887 | char (*f) () = $ac_func; |
2888 | #endif | |
2889 | #ifdef __cplusplus | |
2890 | } | |
c906108c SS |
2891 | #endif |
2892 | ||
b7026657 AC |
2893 | int |
2894 | main () | |
2895 | { | |
2896 | return f != $ac_func; | |
2897 | ; | |
2898 | return 0; | |
2899 | } | |
2900 | _ACEOF | |
2901 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2903 | (eval $ac_link) 2>conftest.er1 | |
2904 | ac_status=$? | |
2905 | grep -v '^ *+' conftest.er1 >conftest.err | |
2906 | rm -f conftest.er1 | |
2907 | cat conftest.err >&5 | |
2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2909 | (exit $ac_status); } && | |
2910 | { ac_try='test -z "$ac_c_werror_flag" | |
2911 | || test ! -s conftest.err' | |
2912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2913 | (eval $ac_try) 2>&5 | |
2914 | ac_status=$? | |
2915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2916 | (exit $ac_status); }; } && | |
2917 | { ac_try='test -s conftest$ac_exeext' | |
2918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2919 | (eval $ac_try) 2>&5 | |
2920 | ac_status=$? | |
2921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2922 | (exit $ac_status); }; }; then | |
2923 | eval "$as_ac_var=yes" | |
2924 | else | |
2925 | echo "$as_me: failed program was:" >&5 | |
2926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2927 | ||
2928 | eval "$as_ac_var=no" | |
2929 | fi | |
2930 | rm -f conftest.err conftest.$ac_objext \ | |
2931 | conftest$ac_exeext conftest.$ac_ext | |
2932 | fi | |
2933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
2934 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
2935 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
2936 | cat >>confdefs.h <<_ACEOF | |
2937 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
2938 | _ACEOF | |
c906108c | 2939 | |
c906108c SS |
2940 | fi |
2941 | done | |
2942 | ||
b7026657 AC |
2943 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
2944 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
2945 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
2946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2947 | else |
2948 | if test "$cross_compiling" = yes; then | |
2949 | ac_cv_func_mmap_fixed_mapped=no | |
2950 | else | |
b7026657 AC |
2951 | cat >conftest.$ac_ext <<_ACEOF |
2952 | /* confdefs.h. */ | |
2953 | _ACEOF | |
2954 | cat confdefs.h >>conftest.$ac_ext | |
2955 | cat >>conftest.$ac_ext <<_ACEOF | |
2956 | /* end confdefs.h. */ | |
2957 | $ac_includes_default | |
2958 | /* malloc might have been renamed as rpl_malloc. */ | |
2959 | #undef malloc | |
c906108c SS |
2960 | |
2961 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
2962 | Here is a matrix of mmap possibilities: | |
2963 | mmap private not fixed | |
2964 | mmap private fixed at somewhere currently unmapped | |
2965 | mmap private fixed at somewhere already mapped | |
2966 | mmap shared not fixed | |
2967 | mmap shared fixed at somewhere currently unmapped | |
2968 | mmap shared fixed at somewhere already mapped | |
2969 | For private mappings, we should verify that changes cannot be read() | |
2970 | back from the file, nor mmap's back from the file at a different | |
2971 | address. (There have been systems where private was not correctly | |
2972 | implemented like the infamous i386 svr4.0, and systems where the | |
b7026657 | 2973 | VM page cache was not coherent with the file system buffer cache |
c906108c SS |
2974 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
2975 | For shared mappings, we should conversely verify that changes get | |
b7026657 | 2976 | propagated back to all the places they're supposed to be. |
c906108c SS |
2977 | |
2978 | Grep wants private fixed already mapped. | |
2979 | The main things grep needs to know about mmap are: | |
2980 | * does it exist and is it safe to write into the mmap'd area | |
2981 | * how to use it (BSD variants) */ | |
b7026657 | 2982 | |
c906108c SS |
2983 | #include <fcntl.h> |
2984 | #include <sys/mman.h> | |
2985 | ||
b7026657 AC |
2986 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
2987 | char *malloc (); | |
2988 | #endif | |
c906108c | 2989 | |
b7026657 AC |
2990 | /* This mess was copied from the GNU getpagesize.h. */ |
2991 | #if !HAVE_GETPAGESIZE | |
c906108c | 2992 | /* Assume that all systems that can run configure have sys/param.h. */ |
b7026657 | 2993 | # if !HAVE_SYS_PARAM_H |
c906108c SS |
2994 | # define HAVE_SYS_PARAM_H 1 |
2995 | # endif | |
2996 | ||
2997 | # ifdef _SC_PAGESIZE | |
2998 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
2999 | # else /* no _SC_PAGESIZE */ | |
b7026657 | 3000 | # if HAVE_SYS_PARAM_H |
c906108c SS |
3001 | # include <sys/param.h> |
3002 | # ifdef EXEC_PAGESIZE | |
3003 | # define getpagesize() EXEC_PAGESIZE | |
3004 | # else /* no EXEC_PAGESIZE */ | |
3005 | # ifdef NBPG | |
3006 | # define getpagesize() NBPG * CLSIZE | |
3007 | # ifndef CLSIZE | |
3008 | # define CLSIZE 1 | |
3009 | # endif /* no CLSIZE */ | |
3010 | # else /* no NBPG */ | |
3011 | # ifdef NBPC | |
3012 | # define getpagesize() NBPC | |
3013 | # else /* no NBPC */ | |
3014 | # ifdef PAGESIZE | |
3015 | # define getpagesize() PAGESIZE | |
3016 | # endif /* PAGESIZE */ | |
3017 | # endif /* no NBPC */ | |
3018 | # endif /* no NBPG */ | |
3019 | # endif /* no EXEC_PAGESIZE */ | |
3020 | # else /* no HAVE_SYS_PARAM_H */ | |
3021 | # define getpagesize() 8192 /* punt totally */ | |
3022 | # endif /* no HAVE_SYS_PARAM_H */ | |
3023 | # endif /* no _SC_PAGESIZE */ | |
3024 | ||
3025 | #endif /* no HAVE_GETPAGESIZE */ | |
3026 | ||
c906108c | 3027 | int |
b7026657 | 3028 | main () |
c906108c | 3029 | { |
b7026657 AC |
3030 | char *data, *data2, *data3; |
3031 | int i, pagesize; | |
3032 | int fd; | |
3033 | ||
3034 | pagesize = getpagesize (); | |
3035 | ||
3036 | /* First, make a file with some known garbage in it. */ | |
3037 | data = (char *) malloc (pagesize); | |
3038 | if (!data) | |
3039 | exit (1); | |
3040 | for (i = 0; i < pagesize; ++i) | |
3041 | *(data + i) = rand (); | |
3042 | umask (0); | |
3043 | fd = creat ("conftest.mmap", 0600); | |
3044 | if (fd < 0) | |
3045 | exit (1); | |
3046 | if (write (fd, data, pagesize) != pagesize) | |
3047 | exit (1); | |
3048 | close (fd); | |
3049 | ||
3050 | /* Next, try to mmap the file at a fixed address which already has | |
3051 | something else allocated at it. If we can, also make sure that | |
3052 | we see the same garbage. */ | |
3053 | fd = open ("conftest.mmap", O_RDWR); | |
3054 | if (fd < 0) | |
3055 | exit (1); | |
3056 | data2 = (char *) malloc (2 * pagesize); | |
3057 | if (!data2) | |
3058 | exit (1); | |
3059 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
3060 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
3061 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
3062 | exit (1); | |
3063 | for (i = 0; i < pagesize; ++i) | |
3064 | if (*(data + i) != *(data2 + i)) | |
3065 | exit (1); | |
3066 | ||
3067 | /* Finally, make sure that changes to the mapped area do not | |
3068 | percolate back to the file as seen by read(). (This is a bug on | |
3069 | some variants of i386 svr4.0.) */ | |
3070 | for (i = 0; i < pagesize; ++i) | |
3071 | *(data2 + i) = *(data2 + i) + 1; | |
3072 | data3 = (char *) malloc (pagesize); | |
3073 | if (!data3) | |
3074 | exit (1); | |
3075 | if (read (fd, data3, pagesize) != pagesize) | |
3076 | exit (1); | |
3077 | for (i = 0; i < pagesize; ++i) | |
3078 | if (*(data + i) != *(data3 + i)) | |
3079 | exit (1); | |
3080 | close (fd); | |
3081 | exit (0); | |
c906108c | 3082 | } |
b7026657 AC |
3083 | _ACEOF |
3084 | rm -f conftest$ac_exeext | |
3085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3086 | (eval $ac_link) 2>&5 | |
3087 | ac_status=$? | |
3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3091 | (eval $ac_try) 2>&5 | |
3092 | ac_status=$? | |
3093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3094 | (exit $ac_status); }; }; then | |
c906108c SS |
3095 | ac_cv_func_mmap_fixed_mapped=yes |
3096 | else | |
b7026657 AC |
3097 | echo "$as_me: program exited with status $ac_status" >&5 |
3098 | echo "$as_me: failed program was:" >&5 | |
3099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3100 | |
b7026657 AC |
3101 | ( exit $ac_status ) |
3102 | ac_cv_func_mmap_fixed_mapped=no | |
c906108c | 3103 | fi |
b7026657 | 3104 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
cd0fc7c3 | 3105 | fi |
cd0fc7c3 | 3106 | fi |
b7026657 AC |
3107 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
3108 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
3109 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
cd0fc7c3 | 3110 | |
b7026657 AC |
3111 | cat >>confdefs.h <<\_ACEOF |
3112 | #define HAVE_MMAP 1 | |
3113 | _ACEOF | |
cd0fc7c3 | 3114 | |
cd0fc7c3 | 3115 | fi |
b7026657 | 3116 | rm -f conftest.mmap |
cd0fc7c3 | 3117 | |
c906108c SS |
3118 | |
3119 | # autoconf.info says this should be called right after AC_INIT. | |
b7026657 | 3120 | ac_config_headers="$ac_config_headers config.h:config.in" |
c906108c SS |
3121 | |
3122 | ||
3123 | ac_aux_dir= | |
3124 | for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do | |
3125 | if test -f $ac_dir/install-sh; then | |
3126 | ac_aux_dir=$ac_dir | |
3127 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3128 | break | |
3129 | elif test -f $ac_dir/install.sh; then | |
3130 | ac_aux_dir=$ac_dir | |
3131 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3132 | break | |
b7026657 AC |
3133 | elif test -f $ac_dir/shtool; then |
3134 | ac_aux_dir=$ac_dir | |
3135 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3136 | break | |
c906108c SS |
3137 | fi |
3138 | done | |
3139 | if test -z "$ac_aux_dir"; then | |
b7026657 AC |
3140 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&5 |
3141 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&2;} | |
3142 | { (exit 1); exit 1; }; } | |
c906108c | 3143 | fi |
b7026657 AC |
3144 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
3145 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
3146 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
3147 | ||
3148 | echo "$as_me:$LINENO: checking target system type" >&5 | |
3149 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
3150 | if test "${ac_cv_target+set}" = set; then | |
3151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3152 | else | |
3153 | ac_cv_target_alias=$target_alias | |
3154 | test "x$ac_cv_target_alias" = "x" && | |
3155 | ac_cv_target_alias=$ac_cv_host_alias | |
3156 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
3157 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
3158 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
3159 | { (exit 1); exit 1; }; } | |
c906108c | 3160 | |
b7026657 AC |
3161 | fi |
3162 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
3163 | echo "${ECHO_T}$ac_cv_target" >&6 | |
3164 | target=$ac_cv_target | |
3165 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3166 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3167 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 3168 | |
c906108c SS |
3169 | |
3170 | # The aliases save the names the user supplied, while $host etc. | |
3171 | # will get canonicalized. | |
b7026657 AC |
3172 | test -n "$target_alias" && |
3173 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3174 | NONENONEs,x,x, && | |
3175 | program_prefix=${target_alias}- | |
3176 | test "$program_prefix" != NONE && | |
3177 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
3178 | # Use a double $ so make ignores it. | |
3179 | test "$program_suffix" != NONE && | |
3180 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
3181 | # Double any \ or $. echo might interpret backslashes. | |
3182 | # By default was `s,x,x', remove it if useless. | |
3183 | cat <<\_ACEOF >conftest.sed | |
3184 | s/[\\$]/&&/g;s/;s,x,x,$// | |
3185 | _ACEOF | |
3186 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
3187 | rm conftest.sed | |
c906108c | 3188 | |
b7026657 AC |
3189 | ac_ext=c |
3190 | ac_cpp='$CPP $CPPFLAGS' | |
3191 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3192 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3193 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3194 | if test -n "$ac_tool_prefix"; then | |
3195 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3196 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3197 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3199 | if test "${ac_cv_prog_CC+set}" = set; then | |
3200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3201 | else | |
3202 | if test -n "$CC"; then | |
3203 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3204 | else | |
3205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3206 | for as_dir in $PATH | |
3207 | do | |
3208 | IFS=$as_save_IFS | |
3209 | test -z "$as_dir" && as_dir=. | |
3210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3211 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3212 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3213 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3214 | break 2 | |
3215 | fi | |
3216 | done | |
3217 | done | |
c906108c | 3218 | |
b7026657 AC |
3219 | fi |
3220 | fi | |
3221 | CC=$ac_cv_prog_CC | |
3222 | if test -n "$CC"; then | |
3223 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3224 | echo "${ECHO_T}$CC" >&6 | |
3225 | else | |
3226 | echo "$as_me:$LINENO: result: no" >&5 | |
3227 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3228 | fi |
3229 | ||
b7026657 AC |
3230 | fi |
3231 | if test -z "$ac_cv_prog_CC"; then | |
3232 | ac_ct_CC=$CC | |
3233 | # Extract the first word of "gcc", so it can be a program name with args. | |
3234 | set dummy gcc; ac_word=$2 | |
3235 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3236 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3237 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3239 | else | |
3240 | if test -n "$ac_ct_CC"; then | |
3241 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3242 | else | |
3243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3244 | for as_dir in $PATH | |
3245 | do | |
3246 | IFS=$as_save_IFS | |
3247 | test -z "$as_dir" && as_dir=. | |
3248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3249 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3250 | ac_cv_prog_ac_ct_CC="gcc" | |
3251 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3252 | break 2 | |
3253 | fi | |
3254 | done | |
3255 | done | |
c906108c | 3256 | |
b7026657 AC |
3257 | fi |
3258 | fi | |
3259 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3260 | if test -n "$ac_ct_CC"; then | |
3261 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3262 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3263 | else | |
3264 | echo "$as_me:$LINENO: result: no" >&5 | |
3265 | echo "${ECHO_T}no" >&6 | |
3266 | fi | |
c906108c | 3267 | |
b7026657 AC |
3268 | CC=$ac_ct_CC |
3269 | else | |
3270 | CC="$ac_cv_prog_CC" | |
3271 | fi | |
c906108c | 3272 | |
b7026657 AC |
3273 | if test -z "$CC"; then |
3274 | if test -n "$ac_tool_prefix"; then | |
3275 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3276 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3277 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3279 | if test "${ac_cv_prog_CC+set}" = set; then | |
3280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3281 | else | |
3282 | if test -n "$CC"; then | |
3283 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3284 | else | |
3285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3286 | for as_dir in $PATH | |
3287 | do | |
3288 | IFS=$as_save_IFS | |
3289 | test -z "$as_dir" && as_dir=. | |
3290 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3291 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3292 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3293 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3294 | break 2 | |
3295 | fi | |
3296 | done | |
3297 | done | |
c906108c | 3298 | |
b7026657 AC |
3299 | fi |
3300 | fi | |
3301 | CC=$ac_cv_prog_CC | |
3302 | if test -n "$CC"; then | |
3303 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3304 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 3305 | else |
b7026657 AC |
3306 | echo "$as_me:$LINENO: result: no" >&5 |
3307 | echo "${ECHO_T}no" >&6 | |
c906108c | 3308 | fi |
c906108c | 3309 | |
b7026657 AC |
3310 | fi |
3311 | if test -z "$ac_cv_prog_CC"; then | |
3312 | ac_ct_CC=$CC | |
3313 | # Extract the first word of "cc", so it can be a program name with args. | |
3314 | set dummy cc; ac_word=$2 | |
3315 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3317 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3319 | else |
b7026657 AC |
3320 | if test -n "$ac_ct_CC"; then |
3321 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
c906108c | 3322 | else |
b7026657 AC |
3323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3324 | for as_dir in $PATH | |
3325 | do | |
3326 | IFS=$as_save_IFS | |
3327 | test -z "$as_dir" && as_dir=. | |
3328 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3329 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3330 | ac_cv_prog_ac_ct_CC="cc" | |
3331 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3332 | break 2 | |
3333 | fi | |
3334 | done | |
3335 | done | |
3336 | ||
c906108c SS |
3337 | fi |
3338 | fi | |
b7026657 AC |
3339 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3340 | if test -n "$ac_ct_CC"; then | |
3341 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3342 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3343 | else | |
3344 | echo "$as_me:$LINENO: result: no" >&5 | |
3345 | echo "${ECHO_T}no" >&6 | |
3346 | fi | |
3347 | ||
3348 | CC=$ac_ct_CC | |
c906108c | 3349 | else |
b7026657 | 3350 | CC="$ac_cv_prog_CC" |
c906108c SS |
3351 | fi |
3352 | ||
b7026657 | 3353 | fi |
c906108c SS |
3354 | if test -z "$CC"; then |
3355 | # Extract the first word of "cc", so it can be a program name with args. | |
3356 | set dummy cc; ac_word=$2 | |
b7026657 AC |
3357 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3359 | if test "${ac_cv_prog_CC+set}" = set; then | |
3360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
3361 | else |
3362 | if test -n "$CC"; then | |
3363 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3364 | else | |
c906108c | 3365 | ac_prog_rejected=no |
b7026657 AC |
3366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3367 | for as_dir in $PATH | |
3368 | do | |
3369 | IFS=$as_save_IFS | |
3370 | test -z "$as_dir" && as_dir=. | |
3371 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3372 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3373 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3374 | ac_prog_rejected=yes | |
3375 | continue | |
3376 | fi | |
3377 | ac_cv_prog_CC="cc" | |
3378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3379 | break 2 | |
3380 | fi | |
3381 | done | |
3382 | done | |
3383 | ||
c906108c SS |
3384 | if test $ac_prog_rejected = yes; then |
3385 | # We found a bogon in the path, so make sure we never use it. | |
3386 | set dummy $ac_cv_prog_CC | |
3387 | shift | |
b7026657 | 3388 | if test $# != 0; then |
c906108c SS |
3389 | # We chose a different compiler from the bogus one. |
3390 | # However, it has the same basename, so the bogon will be chosen | |
3391 | # first if we set CC to just the basename; use the full file name. | |
3392 | shift | |
b7026657 | 3393 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
3394 | fi |
3395 | fi | |
3396 | fi | |
3397 | fi | |
b7026657 | 3398 | CC=$ac_cv_prog_CC |
c906108c | 3399 | if test -n "$CC"; then |
b7026657 AC |
3400 | echo "$as_me:$LINENO: result: $CC" >&5 |
3401 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 3402 | else |
b7026657 AC |
3403 | echo "$as_me:$LINENO: result: no" >&5 |
3404 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3405 | fi |
3406 | ||
b7026657 AC |
3407 | fi |
3408 | if test -z "$CC"; then | |
3409 | if test -n "$ac_tool_prefix"; then | |
3410 | for ac_prog in cl | |
3411 | do | |
3412 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3413 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3414 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3416 | if test "${ac_cv_prog_CC+set}" = set; then | |
3417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
3418 | else |
3419 | if test -n "$CC"; then | |
3420 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3421 | else | |
b7026657 AC |
3422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3423 | for as_dir in $PATH | |
3424 | do | |
3425 | IFS=$as_save_IFS | |
3426 | test -z "$as_dir" && as_dir=. | |
3427 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3428 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3429 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3431 | break 2 | |
3432 | fi | |
3433 | done | |
3434 | done | |
3435 | ||
c906108c SS |
3436 | fi |
3437 | fi | |
b7026657 | 3438 | CC=$ac_cv_prog_CC |
c906108c | 3439 | if test -n "$CC"; then |
b7026657 AC |
3440 | echo "$as_me:$LINENO: result: $CC" >&5 |
3441 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 3442 | else |
b7026657 AC |
3443 | echo "$as_me:$LINENO: result: no" >&5 |
3444 | echo "${ECHO_T}no" >&6 | |
c906108c | 3445 | fi |
b7026657 AC |
3446 | |
3447 | test -n "$CC" && break | |
3448 | done | |
3449 | fi | |
3450 | if test -z "$CC"; then | |
3451 | ac_ct_CC=$CC | |
3452 | for ac_prog in cl | |
3453 | do | |
3454 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3455 | set dummy $ac_prog; ac_word=$2 | |
3456 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3458 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3460 | else | |
3461 | if test -n "$ac_ct_CC"; then | |
3462 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3463 | else | |
3464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3465 | for as_dir in $PATH | |
3466 | do | |
3467 | IFS=$as_save_IFS | |
3468 | test -z "$as_dir" && as_dir=. | |
3469 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3470 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3471 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3473 | break 2 | |
c906108c | 3474 | fi |
b7026657 AC |
3475 | done |
3476 | done | |
3477 | ||
3478 | fi | |
3479 | fi | |
3480 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3481 | if test -n "$ac_ct_CC"; then | |
3482 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3483 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3484 | else | |
3485 | echo "$as_me:$LINENO: result: no" >&5 | |
3486 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3487 | fi |
3488 | ||
b7026657 AC |
3489 | test -n "$ac_ct_CC" && break |
3490 | done | |
c906108c | 3491 | |
b7026657 AC |
3492 | CC=$ac_ct_CC |
3493 | fi | |
3494 | ||
3495 | fi | |
3496 | ||
3497 | ||
3498 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
3499 | See \`config.log' for more details." >&5 | |
3500 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3501 | See \`config.log' for more details." >&2;} | |
3502 | { (exit 1); exit 1; }; } | |
3503 | ||
3504 | # Provide some information about the compiler. | |
3505 | echo "$as_me:$LINENO:" \ | |
3506 | "checking for C compiler version" >&5 | |
3507 | ac_compiler=`set X $ac_compile; echo $2` | |
3508 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3509 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3510 | ac_status=$? | |
3511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3512 | (exit $ac_status); } | |
3513 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3514 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3515 | ac_status=$? | |
3516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3517 | (exit $ac_status); } | |
3518 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3519 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3520 | ac_status=$? | |
3521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3522 | (exit $ac_status); } | |
3523 | ||
3524 | cat >conftest.$ac_ext <<_ACEOF | |
3525 | /* confdefs.h. */ | |
3526 | _ACEOF | |
3527 | cat confdefs.h >>conftest.$ac_ext | |
3528 | cat >>conftest.$ac_ext <<_ACEOF | |
3529 | /* end confdefs.h. */ | |
3530 | ||
3531 | int | |
3532 | main () | |
3533 | { | |
3534 | ||
3535 | ; | |
3536 | return 0; | |
3537 | } | |
3538 | _ACEOF | |
3539 | ac_clean_files_save=$ac_clean_files | |
3540 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
3541 | # Try to create an executable without -o first, disregard a.out. | |
3542 | # It will help us diagnose broken compilers, and finding out an intuition | |
3543 | # of exeext. | |
3544 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
3545 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
3546 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3547 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
3548 | (eval $ac_link_default) 2>&5 | |
3549 | ac_status=$? | |
3550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3551 | (exit $ac_status); }; then | |
3552 | # Find the output, starting from the most likely. This scheme is | |
3553 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
3554 | # resort. | |
3555 | ||
3556 | # Be careful to initialize this variable, since it used to be cached. | |
3557 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
3558 | ac_cv_exeext= | |
3559 | # b.out is created by i960 compilers. | |
3560 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
3561 | do | |
3562 | test -f "$ac_file" || continue | |
3563 | case $ac_file in | |
3564 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
3565 | ;; | |
3566 | conftest.$ac_ext ) | |
3567 | # This is the source file. | |
3568 | ;; | |
3569 | [ab].out ) | |
3570 | # We found the default executable, but exeext='' is most | |
3571 | # certainly right. | |
3572 | break;; | |
3573 | *.* ) | |
3574 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3575 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
3576 | # but it would be cool to find out if it's true. Does anybody | |
3577 | # maintain Libtool? --akim. | |
3578 | export ac_cv_exeext | |
3579 | break;; | |
3580 | * ) | |
3581 | break;; | |
3582 | esac | |
3583 | done | |
3584 | else | |
3585 | echo "$as_me: failed program was:" >&5 | |
3586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3587 | ||
3588 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
3589 | See \`config.log' for more details." >&5 | |
3590 | echo "$as_me: error: C compiler cannot create executables | |
3591 | See \`config.log' for more details." >&2;} | |
3592 | { (exit 77); exit 77; }; } | |
3593 | fi | |
3594 | ||
3595 | ac_exeext=$ac_cv_exeext | |
3596 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3597 | echo "${ECHO_T}$ac_file" >&6 | |
3598 | ||
3599 | # Check the compiler produces executables we can run. If not, either | |
3600 | # the compiler is broken, or we cross compile. | |
3601 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
3602 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
3603 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3604 | # If not cross compiling, check that we can run a simple program. | |
3605 | if test "$cross_compiling" != yes; then | |
3606 | if { ac_try='./$ac_file' | |
3607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3608 | (eval $ac_try) 2>&5 | |
3609 | ac_status=$? | |
3610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3611 | (exit $ac_status); }; }; then | |
3612 | cross_compiling=no | |
c906108c | 3613 | else |
b7026657 AC |
3614 | if test "$cross_compiling" = maybe; then |
3615 | cross_compiling=yes | |
3616 | else | |
3617 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3618 | If you meant to cross compile, use \`--host'. | |
3619 | See \`config.log' for more details." >&5 | |
3620 | echo "$as_me: error: cannot run C compiled programs. | |
3621 | If you meant to cross compile, use \`--host'. | |
3622 | See \`config.log' for more details." >&2;} | |
3623 | { (exit 1); exit 1; }; } | |
3624 | fi | |
c906108c | 3625 | fi |
b7026657 AC |
3626 | fi |
3627 | echo "$as_me:$LINENO: result: yes" >&5 | |
3628 | echo "${ECHO_T}yes" >&6 | |
3629 | ||
3630 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
3631 | ac_clean_files=$ac_clean_files_save | |
3632 | # Check the compiler produces executables we can run. If not, either | |
3633 | # the compiler is broken, or we cross compile. | |
3634 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3635 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
3636 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3637 | echo "${ECHO_T}$cross_compiling" >&6 | |
3638 | ||
3639 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3640 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3642 | (eval $ac_link) 2>&5 | |
3643 | ac_status=$? | |
3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3645 | (exit $ac_status); }; then | |
3646 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3647 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3648 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3649 | # `rm'. | |
3650 | for ac_file in conftest.exe conftest conftest.*; do | |
3651 | test -f "$ac_file" || continue | |
3652 | case $ac_file in | |
3653 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
3654 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3655 | export ac_cv_exeext | |
3656 | break;; | |
3657 | * ) break;; | |
3658 | esac | |
3659 | done | |
c906108c | 3660 | else |
b7026657 AC |
3661 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3662 | See \`config.log' for more details." >&5 | |
3663 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3664 | See \`config.log' for more details." >&2;} | |
3665 | { (exit 1); exit 1; }; } | |
c906108c | 3666 | fi |
c906108c | 3667 | |
b7026657 AC |
3668 | rm -f conftest$ac_cv_exeext |
3669 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3670 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 3671 | |
b7026657 AC |
3672 | rm -f conftest.$ac_ext |
3673 | EXEEXT=$ac_cv_exeext | |
3674 | ac_exeext=$EXEEXT | |
3675 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3676 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
3677 | if test "${ac_cv_objext+set}" = set; then | |
3678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3679 | else | |
3680 | cat >conftest.$ac_ext <<_ACEOF | |
3681 | /* confdefs.h. */ | |
3682 | _ACEOF | |
3683 | cat confdefs.h >>conftest.$ac_ext | |
3684 | cat >>conftest.$ac_ext <<_ACEOF | |
3685 | /* end confdefs.h. */ | |
c906108c | 3686 | |
b7026657 AC |
3687 | int |
3688 | main () | |
3689 | { | |
c906108c | 3690 | |
b7026657 AC |
3691 | ; |
3692 | return 0; | |
3693 | } | |
3694 | _ACEOF | |
3695 | rm -f conftest.o conftest.obj | |
3696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3697 | (eval $ac_compile) 2>&5 | |
3698 | ac_status=$? | |
3699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3700 | (exit $ac_status); }; then | |
3701 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3702 | case $ac_file in | |
3703 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
3704 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3705 | break;; | |
3706 | esac | |
3707 | done | |
c906108c | 3708 | else |
b7026657 AC |
3709 | echo "$as_me: failed program was:" >&5 |
3710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3711 | ||
3712 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3713 | See \`config.log' for more details." >&5 | |
3714 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3715 | See \`config.log' for more details." >&2;} | |
3716 | { (exit 1); exit 1; }; } | |
c906108c SS |
3717 | fi |
3718 | ||
b7026657 AC |
3719 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3720 | fi | |
3721 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3722 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
3723 | OBJEXT=$ac_cv_objext | |
3724 | ac_objext=$OBJEXT | |
3725 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3726 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3727 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3729 | else |
b7026657 AC |
3730 | cat >conftest.$ac_ext <<_ACEOF |
3731 | /* confdefs.h. */ | |
3732 | _ACEOF | |
3733 | cat confdefs.h >>conftest.$ac_ext | |
3734 | cat >>conftest.$ac_ext <<_ACEOF | |
3735 | /* end confdefs.h. */ | |
3736 | ||
3737 | int | |
3738 | main () | |
3739 | { | |
3740 | #ifndef __GNUC__ | |
3741 | choke me | |
3742 | #endif | |
3743 | ||
3744 | ; | |
3745 | return 0; | |
3746 | } | |
3747 | _ACEOF | |
3748 | rm -f conftest.$ac_objext | |
3749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3750 | (eval $ac_compile) 2>conftest.er1 | |
3751 | ac_status=$? | |
3752 | grep -v '^ *+' conftest.er1 >conftest.err | |
3753 | rm -f conftest.er1 | |
3754 | cat conftest.err >&5 | |
3755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3756 | (exit $ac_status); } && | |
3757 | { ac_try='test -z "$ac_c_werror_flag" | |
3758 | || test ! -s conftest.err' | |
3759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3760 | (eval $ac_try) 2>&5 | |
3761 | ac_status=$? | |
3762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3763 | (exit $ac_status); }; } && | |
3764 | { ac_try='test -s conftest.$ac_objext' | |
3765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3766 | (eval $ac_try) 2>&5 | |
3767 | ac_status=$? | |
3768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3769 | (exit $ac_status); }; }; then | |
3770 | ac_compiler_gnu=yes | |
3771 | else | |
3772 | echo "$as_me: failed program was:" >&5 | |
3773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3774 | ||
3775 | ac_compiler_gnu=no | |
3776 | fi | |
3777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3778 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3779 | ||
3780 | fi | |
3781 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3782 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3783 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3784 | ac_test_CFLAGS=${CFLAGS+set} | |
3785 | ac_save_CFLAGS=$CFLAGS | |
3786 | CFLAGS="-g" | |
3787 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3788 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3789 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3791 | else | |
3792 | cat >conftest.$ac_ext <<_ACEOF | |
3793 | /* confdefs.h. */ | |
3794 | _ACEOF | |
3795 | cat confdefs.h >>conftest.$ac_ext | |
3796 | cat >>conftest.$ac_ext <<_ACEOF | |
3797 | /* end confdefs.h. */ | |
3798 | ||
3799 | int | |
3800 | main () | |
3801 | { | |
3802 | ||
3803 | ; | |
3804 | return 0; | |
3805 | } | |
3806 | _ACEOF | |
3807 | rm -f conftest.$ac_objext | |
3808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3809 | (eval $ac_compile) 2>conftest.er1 | |
3810 | ac_status=$? | |
3811 | grep -v '^ *+' conftest.er1 >conftest.err | |
3812 | rm -f conftest.er1 | |
3813 | cat conftest.err >&5 | |
3814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3815 | (exit $ac_status); } && | |
3816 | { ac_try='test -z "$ac_c_werror_flag" | |
3817 | || test ! -s conftest.err' | |
3818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3819 | (eval $ac_try) 2>&5 | |
3820 | ac_status=$? | |
3821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3822 | (exit $ac_status); }; } && | |
3823 | { ac_try='test -s conftest.$ac_objext' | |
3824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3825 | (eval $ac_try) 2>&5 | |
3826 | ac_status=$? | |
3827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3828 | (exit $ac_status); }; }; then | |
c906108c SS |
3829 | ac_cv_prog_cc_g=yes |
3830 | else | |
b7026657 AC |
3831 | echo "$as_me: failed program was:" >&5 |
3832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3833 | |
b7026657 | 3834 | ac_cv_prog_cc_g=no |
c906108c | 3835 | fi |
b7026657 AC |
3836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3837 | fi | |
3838 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3839 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 3840 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 3841 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
3842 | elif test $ac_cv_prog_cc_g = yes; then |
3843 | if test "$GCC" = yes; then | |
3844 | CFLAGS="-g -O2" | |
3845 | else | |
3846 | CFLAGS="-g" | |
3847 | fi | |
3848 | else | |
3849 | if test "$GCC" = yes; then | |
3850 | CFLAGS="-O2" | |
3851 | else | |
3852 | CFLAGS= | |
3853 | fi | |
3854 | fi | |
b7026657 AC |
3855 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3856 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3857 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3859 | else | |
3860 | ac_cv_prog_cc_stdc=no | |
3861 | ac_save_CC=$CC | |
3862 | cat >conftest.$ac_ext <<_ACEOF | |
3863 | /* confdefs.h. */ | |
3864 | _ACEOF | |
3865 | cat confdefs.h >>conftest.$ac_ext | |
3866 | cat >>conftest.$ac_ext <<_ACEOF | |
3867 | /* end confdefs.h. */ | |
3868 | #include <stdarg.h> | |
3869 | #include <stdio.h> | |
3870 | #include <sys/types.h> | |
3871 | #include <sys/stat.h> | |
3872 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3873 | struct buf { int x; }; | |
3874 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3875 | static char *e (p, i) | |
3876 | char **p; | |
3877 | int i; | |
3878 | { | |
3879 | return p[i]; | |
3880 | } | |
3881 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3882 | { | |
3883 | char *s; | |
3884 | va_list v; | |
3885 | va_start (v,p); | |
3886 | s = g (p, va_arg (v,int)); | |
3887 | va_end (v); | |
3888 | return s; | |
3889 | } | |
3890 | ||
3891 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3892 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3893 | These don't provoke an error unfortunately, instead are silently treated | |
3894 | as 'x'. The following induces an error, until -std1 is added to get | |
3895 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3896 | array size at least. It's necessary to write '\x00'==0 to get something | |
3897 | that's true only with -std1. */ | |
3898 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3899 | ||
3900 | int test (int i, double x); | |
3901 | struct s1 {int (*f) (int a);}; | |
3902 | struct s2 {int (*f) (double a);}; | |
3903 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3904 | int argc; | |
3905 | char **argv; | |
3906 | int | |
3907 | main () | |
3908 | { | |
3909 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3910 | ; | |
3911 | return 0; | |
3912 | } | |
3913 | _ACEOF | |
3914 | # Don't try gcc -ansi; that turns off useful extensions and | |
3915 | # breaks some systems' header files. | |
3916 | # AIX -qlanglvl=ansi | |
3917 | # Ultrix and OSF/1 -std1 | |
3918 | # HP-UX 10.20 and later -Ae | |
3919 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3920 | # SVR4 -Xc -D__EXTENSIONS__ | |
3921 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3922 | do | |
3923 | CC="$ac_save_CC $ac_arg" | |
3924 | rm -f conftest.$ac_objext | |
3925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3926 | (eval $ac_compile) 2>conftest.er1 | |
3927 | ac_status=$? | |
3928 | grep -v '^ *+' conftest.er1 >conftest.err | |
3929 | rm -f conftest.er1 | |
3930 | cat conftest.err >&5 | |
3931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3932 | (exit $ac_status); } && | |
3933 | { ac_try='test -z "$ac_c_werror_flag" | |
3934 | || test ! -s conftest.err' | |
3935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3936 | (eval $ac_try) 2>&5 | |
3937 | ac_status=$? | |
3938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3939 | (exit $ac_status); }; } && | |
3940 | { ac_try='test -s conftest.$ac_objext' | |
3941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3942 | (eval $ac_try) 2>&5 | |
3943 | ac_status=$? | |
3944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3945 | (exit $ac_status); }; }; then | |
3946 | ac_cv_prog_cc_stdc=$ac_arg | |
3947 | break | |
3948 | else | |
3949 | echo "$as_me: failed program was:" >&5 | |
3950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3951 | ||
3952 | fi | |
3953 | rm -f conftest.err conftest.$ac_objext | |
3954 | done | |
3955 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3956 | CC=$ac_save_CC | |
3957 | ||
3958 | fi | |
3959 | ||
3960 | case "x$ac_cv_prog_cc_stdc" in | |
3961 | x|xno) | |
3962 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3963 | echo "${ECHO_T}none needed" >&6 ;; | |
3964 | *) | |
3965 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3966 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3967 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3968 | esac | |
3969 | ||
3970 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
3971 | # in C++ we need to declare it. In case someone uses the same compiler | |
3972 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3973 | # the declaration of exit, since it's the most demanding environment. | |
3974 | cat >conftest.$ac_ext <<_ACEOF | |
3975 | #ifndef __cplusplus | |
3976 | choke me | |
3977 | #endif | |
3978 | _ACEOF | |
3979 | rm -f conftest.$ac_objext | |
3980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3981 | (eval $ac_compile) 2>conftest.er1 | |
3982 | ac_status=$? | |
3983 | grep -v '^ *+' conftest.er1 >conftest.err | |
3984 | rm -f conftest.er1 | |
3985 | cat conftest.err >&5 | |
3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3987 | (exit $ac_status); } && | |
3988 | { ac_try='test -z "$ac_c_werror_flag" | |
3989 | || test ! -s conftest.err' | |
3990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3991 | (eval $ac_try) 2>&5 | |
3992 | ac_status=$? | |
3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3994 | (exit $ac_status); }; } && | |
3995 | { ac_try='test -s conftest.$ac_objext' | |
3996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3997 | (eval $ac_try) 2>&5 | |
3998 | ac_status=$? | |
3999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4000 | (exit $ac_status); }; }; then | |
4001 | for ac_declaration in \ | |
4002 | '' \ | |
4003 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4004 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4005 | 'extern "C" void exit (int) throw ();' \ | |
4006 | 'extern "C" void exit (int);' \ | |
4007 | 'void exit (int);' | |
4008 | do | |
4009 | cat >conftest.$ac_ext <<_ACEOF | |
4010 | /* confdefs.h. */ | |
4011 | _ACEOF | |
4012 | cat confdefs.h >>conftest.$ac_ext | |
4013 | cat >>conftest.$ac_ext <<_ACEOF | |
4014 | /* end confdefs.h. */ | |
4015 | $ac_declaration | |
4016 | #include <stdlib.h> | |
4017 | int | |
4018 | main () | |
4019 | { | |
4020 | exit (42); | |
4021 | ; | |
4022 | return 0; | |
4023 | } | |
4024 | _ACEOF | |
4025 | rm -f conftest.$ac_objext | |
4026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4027 | (eval $ac_compile) 2>conftest.er1 | |
4028 | ac_status=$? | |
4029 | grep -v '^ *+' conftest.er1 >conftest.err | |
4030 | rm -f conftest.er1 | |
4031 | cat conftest.err >&5 | |
4032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4033 | (exit $ac_status); } && | |
4034 | { ac_try='test -z "$ac_c_werror_flag" | |
4035 | || test ! -s conftest.err' | |
4036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4037 | (eval $ac_try) 2>&5 | |
4038 | ac_status=$? | |
4039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4040 | (exit $ac_status); }; } && | |
4041 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
4047 | : | |
4048 | else | |
4049 | echo "$as_me: failed program was:" >&5 | |
4050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4051 | ||
4052 | continue | |
4053 | fi | |
4054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4055 | cat >conftest.$ac_ext <<_ACEOF | |
4056 | /* confdefs.h. */ | |
4057 | _ACEOF | |
4058 | cat confdefs.h >>conftest.$ac_ext | |
4059 | cat >>conftest.$ac_ext <<_ACEOF | |
4060 | /* end confdefs.h. */ | |
4061 | $ac_declaration | |
4062 | int | |
4063 | main () | |
4064 | { | |
4065 | exit (42); | |
4066 | ; | |
4067 | return 0; | |
4068 | } | |
4069 | _ACEOF | |
4070 | rm -f conftest.$ac_objext | |
4071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4072 | (eval $ac_compile) 2>conftest.er1 | |
4073 | ac_status=$? | |
4074 | grep -v '^ *+' conftest.er1 >conftest.err | |
4075 | rm -f conftest.er1 | |
4076 | cat conftest.err >&5 | |
4077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4078 | (exit $ac_status); } && | |
4079 | { ac_try='test -z "$ac_c_werror_flag" | |
4080 | || test ! -s conftest.err' | |
4081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4082 | (eval $ac_try) 2>&5 | |
4083 | ac_status=$? | |
4084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4085 | (exit $ac_status); }; } && | |
4086 | { ac_try='test -s conftest.$ac_objext' | |
4087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4088 | (eval $ac_try) 2>&5 | |
4089 | ac_status=$? | |
4090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4091 | (exit $ac_status); }; }; then | |
4092 | break | |
4093 | else | |
4094 | echo "$as_me: failed program was:" >&5 | |
4095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4096 | ||
4097 | fi | |
4098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4099 | done | |
4100 | rm -f conftest* | |
4101 | if test -n "$ac_declaration"; then | |
4102 | echo '#ifdef __cplusplus' >>confdefs.h | |
4103 | echo $ac_declaration >>confdefs.h | |
4104 | echo '#endif' >>confdefs.h | |
4105 | fi | |
4106 | ||
4107 | else | |
4108 | echo "$as_me: failed program was:" >&5 | |
4109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4110 | ||
4111 | fi | |
4112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4113 | ac_ext=c | |
4114 | ac_cpp='$CPP $CPPFLAGS' | |
4115 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4116 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4117 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
4118 | |
4119 | # Find a good install program. We prefer a C program (faster), | |
4120 | # so one script is as good as another. But avoid the broken or | |
4121 | # incompatible versions: | |
4122 | # SysV /etc/install, /usr/sbin/install | |
4123 | # SunOS /usr/etc/install | |
4124 | # IRIX /sbin/install | |
4125 | # AIX /bin/install | |
b7026657 | 4126 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c906108c SS |
4127 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4128 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4129 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b7026657 | 4130 | # OS/2's system install, which has a completely different semantic |
c906108c | 4131 | # ./install, which can be erroneously created by make from ./install.sh. |
b7026657 AC |
4132 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4133 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
c906108c | 4134 | if test -z "$INSTALL"; then |
b7026657 AC |
4135 | if test "${ac_cv_path_install+set}" = set; then |
4136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4137 | else |
b7026657 AC |
4138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4139 | for as_dir in $PATH | |
4140 | do | |
4141 | IFS=$as_save_IFS | |
4142 | test -z "$as_dir" && as_dir=. | |
4143 | # Account for people who put trailing slashes in PATH elements. | |
4144 | case $as_dir/ in | |
4145 | ./ | .// | /cC/* | \ | |
4146 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4147 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4148 | /usr/ucb/* ) ;; | |
4149 | *) | |
4150 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4151 | # Don't use installbsd from OSF since it installs stuff as root | |
4152 | # by default. | |
4153 | for ac_prog in ginstall scoinst install; do | |
4154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4155 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
c906108c | 4156 | if test $ac_prog = install && |
b7026657 | 4157 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
c906108c SS |
4158 | # AIX install. It has an incompatible calling convention. |
4159 | : | |
b7026657 AC |
4160 | elif test $ac_prog = install && |
4161 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4162 | # program-specific install script used by HP pwplus--don't use. | |
4163 | : | |
c906108c | 4164 | else |
b7026657 AC |
4165 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4166 | break 3 | |
c906108c SS |
4167 | fi |
4168 | fi | |
4169 | done | |
b7026657 AC |
4170 | done |
4171 | ;; | |
4172 | esac | |
4173 | done | |
4174 | ||
c906108c SS |
4175 | |
4176 | fi | |
4177 | if test "${ac_cv_path_install+set}" = set; then | |
b7026657 | 4178 | INSTALL=$ac_cv_path_install |
c906108c SS |
4179 | else |
4180 | # As a last resort, use the slow shell script. We don't cache a | |
4181 | # path for INSTALL within a source directory, because that will | |
4182 | # break other packages using the cache if that directory is | |
4183 | # removed, or if the path is relative. | |
b7026657 | 4184 | INSTALL=$ac_install_sh |
c906108c SS |
4185 | fi |
4186 | fi | |
b7026657 AC |
4187 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4188 | echo "${ECHO_T}$INSTALL" >&6 | |
c906108c SS |
4189 | |
4190 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4191 | # It thinks the first close brace ends the variable substitution. | |
4192 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4193 | ||
b7026657 | 4194 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
cd0fc7c3 | 4195 | |
c906108c SS |
4196 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4197 | ||
4198 | ||
4199 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
4200 | if test "x$cross_compiling" = "xno"; then | |
4201 | CC_FOR_BUILD='$(CC)' | |
4202 | else | |
4203 | CC_FOR_BUILD=gcc | |
4204 | fi | |
4205 | ||
4206 | ||
4207 | ||
4208 | ||
4209 | AR=${AR-ar} | |
4210 | ||
b7026657 AC |
4211 | if test -n "$ac_tool_prefix"; then |
4212 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4213 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4214 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4215 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4216 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
4218 | else |
4219 | if test -n "$RANLIB"; then | |
4220 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4221 | else | |
b7026657 AC |
4222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4223 | for as_dir in $PATH | |
4224 | do | |
4225 | IFS=$as_save_IFS | |
4226 | test -z "$as_dir" && as_dir=. | |
4227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4228 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4229 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4230 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4231 | break 2 | |
4232 | fi | |
4233 | done | |
4234 | done | |
4235 | ||
c906108c SS |
4236 | fi |
4237 | fi | |
b7026657 | 4238 | RANLIB=$ac_cv_prog_RANLIB |
c906108c | 4239 | if test -n "$RANLIB"; then |
b7026657 AC |
4240 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4241 | echo "${ECHO_T}$RANLIB" >&6 | |
4242 | else | |
4243 | echo "$as_me:$LINENO: result: no" >&5 | |
4244 | echo "${ECHO_T}no" >&6 | |
4245 | fi | |
4246 | ||
4247 | fi | |
4248 | if test -z "$ac_cv_prog_RANLIB"; then | |
4249 | ac_ct_RANLIB=$RANLIB | |
4250 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4251 | set dummy ranlib; ac_word=$2 | |
4252 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4254 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4256 | else | |
4257 | if test -n "$ac_ct_RANLIB"; then | |
4258 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4259 | else | |
4260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4261 | for as_dir in $PATH | |
4262 | do | |
4263 | IFS=$as_save_IFS | |
4264 | test -z "$as_dir" && as_dir=. | |
4265 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4266 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4267 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4269 | break 2 | |
4270 | fi | |
4271 | done | |
4272 | done | |
4273 | ||
4274 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4275 | fi | |
4276 | fi | |
4277 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4278 | if test -n "$ac_ct_RANLIB"; then | |
4279 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4280 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
c906108c | 4281 | else |
b7026657 AC |
4282 | echo "$as_me:$LINENO: result: no" >&5 |
4283 | echo "${ECHO_T}no" >&6 | |
4284 | fi | |
4285 | ||
4286 | RANLIB=$ac_ct_RANLIB | |
4287 | else | |
4288 | RANLIB="$ac_cv_prog_RANLIB" | |
c906108c SS |
4289 | fi |
4290 | ||
4291 | ||
4292 | ALL_LINGUAS= | |
b7026657 AC |
4293 | |
4294 | ||
4295 | ||
4296 | ||
4297 | ||
4298 | ||
4299 | ||
4300 | ||
4301 | ||
4302 | ||
4303 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
c906108c SS |
4304 | unistd.h values.h sys/param.h |
4305 | do | |
b7026657 AC |
4306 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4307 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4308 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4309 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4310 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4312 | fi | |
4313 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4314 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4315 | else | |
4316 | # Is the header compilable? | |
4317 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4318 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4319 | cat >conftest.$ac_ext <<_ACEOF | |
4320 | /* confdefs.h. */ | |
4321 | _ACEOF | |
4322 | cat confdefs.h >>conftest.$ac_ext | |
4323 | cat >>conftest.$ac_ext <<_ACEOF | |
4324 | /* end confdefs.h. */ | |
4325 | $ac_includes_default | |
4326 | #include <$ac_header> | |
4327 | _ACEOF | |
4328 | rm -f conftest.$ac_objext | |
4329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4330 | (eval $ac_compile) 2>conftest.er1 | |
4331 | ac_status=$? | |
4332 | grep -v '^ *+' conftest.er1 >conftest.err | |
4333 | rm -f conftest.er1 | |
4334 | cat conftest.err >&5 | |
4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4336 | (exit $ac_status); } && | |
4337 | { ac_try='test -z "$ac_c_werror_flag" | |
4338 | || test ! -s conftest.err' | |
4339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4340 | (eval $ac_try) 2>&5 | |
4341 | ac_status=$? | |
4342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4343 | (exit $ac_status); }; } && | |
4344 | { ac_try='test -s conftest.$ac_objext' | |
4345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4346 | (eval $ac_try) 2>&5 | |
4347 | ac_status=$? | |
4348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4349 | (exit $ac_status); }; }; then | |
4350 | ac_header_compiler=yes | |
4351 | else | |
4352 | echo "$as_me: failed program was:" >&5 | |
4353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4354 | ||
4355 | ac_header_compiler=no | |
4356 | fi | |
4357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4358 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4359 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4360 | ||
4361 | # Is the header present? | |
4362 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4363 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4364 | cat >conftest.$ac_ext <<_ACEOF | |
4365 | /* confdefs.h. */ | |
4366 | _ACEOF | |
4367 | cat confdefs.h >>conftest.$ac_ext | |
4368 | cat >>conftest.$ac_ext <<_ACEOF | |
4369 | /* end confdefs.h. */ | |
4370 | #include <$ac_header> | |
4371 | _ACEOF | |
4372 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4373 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4374 | ac_status=$? | |
4375 | grep -v '^ *+' conftest.er1 >conftest.err | |
4376 | rm -f conftest.er1 | |
4377 | cat conftest.err >&5 | |
4378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4379 | (exit $ac_status); } >/dev/null; then | |
4380 | if test -s conftest.err; then | |
4381 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4382 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4383 | else | |
4384 | ac_cpp_err= | |
4385 | fi | |
4386 | else | |
4387 | ac_cpp_err=yes | |
c906108c | 4388 | fi |
b7026657 AC |
4389 | if test -z "$ac_cpp_err"; then |
4390 | ac_header_preproc=yes | |
4391 | else | |
4392 | echo "$as_me: failed program was:" >&5 | |
4393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4394 | ||
4395 | ac_header_preproc=no | |
c906108c | 4396 | fi |
b7026657 AC |
4397 | rm -f conftest.err conftest.$ac_ext |
4398 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4399 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4400 | ||
4401 | # So? What about this header? | |
4402 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4403 | yes:no: ) | |
4404 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4405 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4406 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4407 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4408 | ac_header_preproc=yes | |
4409 | ;; | |
4410 | no:yes:* ) | |
4411 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4412 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4413 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4414 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4415 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4416 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4417 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4418 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4419 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4420 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4421 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4422 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4423 | ( | |
4424 | cat <<\_ASBOX | |
4425 | ## ------------------------------------------ ## | |
4426 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4427 | ## ------------------------------------------ ## | |
4428 | _ASBOX | |
4429 | ) | | |
4430 | sed "s/^/$as_me: WARNING: /" >&2 | |
4431 | ;; | |
4432 | esac | |
4433 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4434 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4435 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4437 | else |
b7026657 AC |
4438 | eval "$as_ac_Header=\$ac_header_preproc" |
4439 | fi | |
4440 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4441 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4442 | ||
4443 | fi | |
4444 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4445 | cat >>confdefs.h <<_ACEOF | |
4446 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4447 | _ACEOF | |
4448 | ||
c906108c | 4449 | fi |
b7026657 | 4450 | |
c906108c SS |
4451 | done |
4452 | ||
b7026657 AC |
4453 | |
4454 | ||
4455 | ||
4456 | ||
4457 | ||
4458 | ||
4459 | ||
4460 | ||
4461 | ||
4462 | ||
4463 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
c906108c SS |
4464 | __argz_count __argz_stringify __argz_next |
4465 | do | |
b7026657 AC |
4466 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4467 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4468 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4469 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4471 | else | |
4472 | cat >conftest.$ac_ext <<_ACEOF | |
4473 | /* confdefs.h. */ | |
4474 | _ACEOF | |
4475 | cat confdefs.h >>conftest.$ac_ext | |
4476 | cat >>conftest.$ac_ext <<_ACEOF | |
4477 | /* end confdefs.h. */ | |
4478 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4479 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4480 | #define $ac_func innocuous_$ac_func | |
4481 | ||
c906108c | 4482 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4483 | which can conflict with char $ac_func (); below. |
4484 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4485 | <limits.h> exists even on freestanding compilers. */ | |
4486 | ||
4487 | #ifdef __STDC__ | |
4488 | # include <limits.h> | |
4489 | #else | |
4490 | # include <assert.h> | |
4491 | #endif | |
c906108c | 4492 | |
b7026657 | 4493 | #undef $ac_func |
c906108c | 4494 | |
b7026657 AC |
4495 | /* Override any gcc2 internal prototype to avoid an error. */ |
4496 | #ifdef __cplusplus | |
4497 | extern "C" | |
4498 | { | |
4499 | #endif | |
4500 | /* We use char because int might match the return type of a gcc2 | |
4501 | builtin and then its argument prototype would still apply. */ | |
4502 | char $ac_func (); | |
c906108c SS |
4503 | /* The GNU C library defines this for functions which it implements |
4504 | to always fail with ENOSYS. Some functions are actually named | |
4505 | something starting with __ and the normal name is an alias. */ | |
4506 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4507 | choke me | |
4508 | #else | |
b7026657 AC |
4509 | char (*f) () = $ac_func; |
4510 | #endif | |
4511 | #ifdef __cplusplus | |
4512 | } | |
c906108c SS |
4513 | #endif |
4514 | ||
b7026657 AC |
4515 | int |
4516 | main () | |
4517 | { | |
4518 | return f != $ac_func; | |
4519 | ; | |
4520 | return 0; | |
4521 | } | |
4522 | _ACEOF | |
4523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4525 | (eval $ac_link) 2>conftest.er1 | |
4526 | ac_status=$? | |
4527 | grep -v '^ *+' conftest.er1 >conftest.err | |
4528 | rm -f conftest.er1 | |
4529 | cat conftest.err >&5 | |
4530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4531 | (exit $ac_status); } && | |
4532 | { ac_try='test -z "$ac_c_werror_flag" | |
4533 | || test ! -s conftest.err' | |
4534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4535 | (eval $ac_try) 2>&5 | |
4536 | ac_status=$? | |
4537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4538 | (exit $ac_status); }; } && | |
4539 | { ac_try='test -s conftest$ac_exeext' | |
4540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4541 | (eval $ac_try) 2>&5 | |
4542 | ac_status=$? | |
4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4544 | (exit $ac_status); }; }; then | |
4545 | eval "$as_ac_var=yes" | |
4546 | else | |
4547 | echo "$as_me: failed program was:" >&5 | |
4548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4549 | ||
4550 | eval "$as_ac_var=no" | |
4551 | fi | |
4552 | rm -f conftest.err conftest.$ac_objext \ | |
4553 | conftest$ac_exeext conftest.$ac_ext | |
4554 | fi | |
4555 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4556 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4557 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4558 | cat >>confdefs.h <<_ACEOF | |
4559 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4560 | _ACEOF | |
c906108c | 4561 | |
c906108c SS |
4562 | fi |
4563 | done | |
4564 | ||
4565 | ||
4566 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
b7026657 AC |
4567 | |
4568 | for ac_func in stpcpy | |
c906108c | 4569 | do |
b7026657 AC |
4570 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4571 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4572 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4573 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4575 | else | |
4576 | cat >conftest.$ac_ext <<_ACEOF | |
4577 | /* confdefs.h. */ | |
4578 | _ACEOF | |
4579 | cat confdefs.h >>conftest.$ac_ext | |
4580 | cat >>conftest.$ac_ext <<_ACEOF | |
4581 | /* end confdefs.h. */ | |
4582 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4583 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4584 | #define $ac_func innocuous_$ac_func | |
4585 | ||
c906108c | 4586 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4587 | which can conflict with char $ac_func (); below. |
4588 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4589 | <limits.h> exists even on freestanding compilers. */ | |
4590 | ||
4591 | #ifdef __STDC__ | |
4592 | # include <limits.h> | |
4593 | #else | |
4594 | # include <assert.h> | |
4595 | #endif | |
c906108c | 4596 | |
b7026657 | 4597 | #undef $ac_func |
c906108c | 4598 | |
b7026657 AC |
4599 | /* Override any gcc2 internal prototype to avoid an error. */ |
4600 | #ifdef __cplusplus | |
4601 | extern "C" | |
4602 | { | |
4603 | #endif | |
4604 | /* We use char because int might match the return type of a gcc2 | |
4605 | builtin and then its argument prototype would still apply. */ | |
4606 | char $ac_func (); | |
c906108c SS |
4607 | /* The GNU C library defines this for functions which it implements |
4608 | to always fail with ENOSYS. Some functions are actually named | |
4609 | something starting with __ and the normal name is an alias. */ | |
4610 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4611 | choke me | |
4612 | #else | |
b7026657 AC |
4613 | char (*f) () = $ac_func; |
4614 | #endif | |
4615 | #ifdef __cplusplus | |
4616 | } | |
c906108c SS |
4617 | #endif |
4618 | ||
b7026657 AC |
4619 | int |
4620 | main () | |
4621 | { | |
4622 | return f != $ac_func; | |
4623 | ; | |
4624 | return 0; | |
4625 | } | |
4626 | _ACEOF | |
4627 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4628 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4629 | (eval $ac_link) 2>conftest.er1 | |
4630 | ac_status=$? | |
4631 | grep -v '^ *+' conftest.er1 >conftest.err | |
4632 | rm -f conftest.er1 | |
4633 | cat conftest.err >&5 | |
4634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4635 | (exit $ac_status); } && | |
4636 | { ac_try='test -z "$ac_c_werror_flag" | |
4637 | || test ! -s conftest.err' | |
4638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4639 | (eval $ac_try) 2>&5 | |
4640 | ac_status=$? | |
4641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4642 | (exit $ac_status); }; } && | |
4643 | { ac_try='test -s conftest$ac_exeext' | |
4644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4645 | (eval $ac_try) 2>&5 | |
4646 | ac_status=$? | |
4647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4648 | (exit $ac_status); }; }; then | |
4649 | eval "$as_ac_var=yes" | |
4650 | else | |
4651 | echo "$as_me: failed program was:" >&5 | |
4652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4653 | ||
4654 | eval "$as_ac_var=no" | |
4655 | fi | |
4656 | rm -f conftest.err conftest.$ac_objext \ | |
4657 | conftest$ac_exeext conftest.$ac_ext | |
4658 | fi | |
4659 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4660 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4661 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4662 | cat >>confdefs.h <<_ACEOF | |
4663 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4664 | _ACEOF | |
c906108c | 4665 | |
c906108c SS |
4666 | fi |
4667 | done | |
4668 | ||
4669 | fi | |
4670 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
b7026657 | 4671 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4672 | #define HAVE_STPCPY 1 |
b7026657 | 4673 | _ACEOF |
c906108c SS |
4674 | |
4675 | fi | |
4676 | ||
4677 | if test $ac_cv_header_locale_h = yes; then | |
b7026657 AC |
4678 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
4679 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
4680 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
4681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4682 | else | |
4683 | cat >conftest.$ac_ext <<_ACEOF | |
4684 | /* confdefs.h. */ | |
4685 | _ACEOF | |
4686 | cat confdefs.h >>conftest.$ac_ext | |
4687 | cat >>conftest.$ac_ext <<_ACEOF | |
4688 | /* end confdefs.h. */ | |
c906108c | 4689 | #include <locale.h> |
b7026657 AC |
4690 | int |
4691 | main () | |
4692 | { | |
c906108c | 4693 | return LC_MESSAGES |
b7026657 AC |
4694 | ; |
4695 | return 0; | |
4696 | } | |
4697 | _ACEOF | |
4698 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4700 | (eval $ac_link) 2>conftest.er1 | |
4701 | ac_status=$? | |
4702 | grep -v '^ *+' conftest.er1 >conftest.err | |
4703 | rm -f conftest.er1 | |
4704 | cat conftest.err >&5 | |
4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4706 | (exit $ac_status); } && | |
4707 | { ac_try='test -z "$ac_c_werror_flag" | |
4708 | || test ! -s conftest.err' | |
4709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4710 | (eval $ac_try) 2>&5 | |
4711 | ac_status=$? | |
4712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4713 | (exit $ac_status); }; } && | |
4714 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
c906108c SS |
4720 | am_cv_val_LC_MESSAGES=yes |
4721 | else | |
b7026657 AC |
4722 | echo "$as_me: failed program was:" >&5 |
4723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4724 | ||
4725 | am_cv_val_LC_MESSAGES=no | |
c906108c | 4726 | fi |
b7026657 AC |
4727 | rm -f conftest.err conftest.$ac_objext \ |
4728 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 4729 | fi |
b7026657 AC |
4730 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
4731 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
c906108c | 4732 | if test $am_cv_val_LC_MESSAGES = yes; then |
b7026657 | 4733 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4734 | #define HAVE_LC_MESSAGES 1 |
b7026657 | 4735 | _ACEOF |
c906108c SS |
4736 | |
4737 | fi | |
4738 | fi | |
b7026657 AC |
4739 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
4740 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
c906108c SS |
4741 | # Check whether --enable-nls or --disable-nls was given. |
4742 | if test "${enable_nls+set}" = set; then | |
4743 | enableval="$enable_nls" | |
4744 | USE_NLS=$enableval | |
4745 | else | |
4746 | USE_NLS=yes | |
b7026657 AC |
4747 | fi; |
4748 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
4749 | echo "${ECHO_T}$USE_NLS" >&6 | |
c906108c | 4750 | |
c906108c SS |
4751 | |
4752 | USE_INCLUDED_LIBINTL=no | |
4753 | ||
4754 | if test "$USE_NLS" = "yes"; then | |
b7026657 | 4755 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4756 | #define ENABLE_NLS 1 |
b7026657 AC |
4757 | _ACEOF |
4758 | ||
4759 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 | |
4760 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
c906108c | 4761 | |
b7026657 | 4762 | # Check whether --with-included-gettext or --without-included-gettext was given. |
c906108c SS |
4763 | if test "${with_included_gettext+set}" = set; then |
4764 | withval="$with_included_gettext" | |
4765 | nls_cv_force_use_gnu_gettext=$withval | |
4766 | else | |
4767 | nls_cv_force_use_gnu_gettext=no | |
b7026657 AC |
4768 | fi; |
4769 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
4770 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
c906108c SS |
4771 | |
4772 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
4773 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
4774 | nls_cv_header_intl= | |
4775 | nls_cv_header_libgt= | |
4776 | CATOBJEXT=NONE | |
4777 | ||
b7026657 AC |
4778 | if test "${ac_cv_header_libintl_h+set}" = set; then |
4779 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4780 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4781 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4783 | fi | |
4784 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4785 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4786 | else | |
4787 | # Is the header compilable? | |
4788 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
4789 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
4790 | cat >conftest.$ac_ext <<_ACEOF | |
4791 | /* confdefs.h. */ | |
4792 | _ACEOF | |
4793 | cat confdefs.h >>conftest.$ac_ext | |
4794 | cat >>conftest.$ac_ext <<_ACEOF | |
4795 | /* end confdefs.h. */ | |
4796 | $ac_includes_default | |
4797 | #include <libintl.h> | |
4798 | _ACEOF | |
4799 | rm -f conftest.$ac_objext | |
4800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4801 | (eval $ac_compile) 2>conftest.er1 | |
4802 | ac_status=$? | |
4803 | grep -v '^ *+' conftest.er1 >conftest.err | |
4804 | rm -f conftest.er1 | |
4805 | cat conftest.err >&5 | |
4806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4807 | (exit $ac_status); } && | |
4808 | { ac_try='test -z "$ac_c_werror_flag" | |
4809 | || test ! -s conftest.err' | |
4810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4811 | (eval $ac_try) 2>&5 | |
4812 | ac_status=$? | |
4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4814 | (exit $ac_status); }; } && | |
4815 | { ac_try='test -s conftest.$ac_objext' | |
4816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4817 | (eval $ac_try) 2>&5 | |
4818 | ac_status=$? | |
4819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4820 | (exit $ac_status); }; }; then | |
4821 | ac_header_compiler=yes | |
4822 | else | |
4823 | echo "$as_me: failed program was:" >&5 | |
4824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4825 | ||
4826 | ac_header_compiler=no | |
4827 | fi | |
4828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4829 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4830 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4831 | ||
4832 | # Is the header present? | |
4833 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
4834 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
4835 | cat >conftest.$ac_ext <<_ACEOF | |
4836 | /* confdefs.h. */ | |
4837 | _ACEOF | |
4838 | cat confdefs.h >>conftest.$ac_ext | |
4839 | cat >>conftest.$ac_ext <<_ACEOF | |
4840 | /* end confdefs.h. */ | |
c906108c | 4841 | #include <libintl.h> |
b7026657 AC |
4842 | _ACEOF |
4843 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4844 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4845 | ac_status=$? | |
4846 | grep -v '^ *+' conftest.er1 >conftest.err | |
4847 | rm -f conftest.er1 | |
4848 | cat conftest.err >&5 | |
4849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4850 | (exit $ac_status); } >/dev/null; then | |
4851 | if test -s conftest.err; then | |
4852 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4853 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4854 | else | |
4855 | ac_cpp_err= | |
4856 | fi | |
4857 | else | |
4858 | ac_cpp_err=yes | |
c906108c | 4859 | fi |
b7026657 AC |
4860 | if test -z "$ac_cpp_err"; then |
4861 | ac_header_preproc=yes | |
4862 | else | |
4863 | echo "$as_me: failed program was:" >&5 | |
4864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4865 | ||
4866 | ac_header_preproc=no | |
4867 | fi | |
4868 | rm -f conftest.err conftest.$ac_ext | |
4869 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4870 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4871 | ||
4872 | # So? What about this header? | |
4873 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4874 | yes:no: ) | |
4875 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4876 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4877 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
4878 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
4879 | ac_header_preproc=yes | |
4880 | ;; | |
4881 | no:yes:* ) | |
4882 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
4883 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
4884 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
4885 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
4886 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
4887 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
4888 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4889 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4890 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
4891 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
4892 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
4893 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
4894 | ( | |
4895 | cat <<\_ASBOX | |
4896 | ## ------------------------------------------ ## | |
4897 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4898 | ## ------------------------------------------ ## | |
4899 | _ASBOX | |
4900 | ) | | |
4901 | sed "s/^/$as_me: WARNING: /" >&2 | |
4902 | ;; | |
4903 | esac | |
4904 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4905 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4906 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4908 | else | |
4909 | ac_cv_header_libintl_h=$ac_header_preproc | |
4910 | fi | |
4911 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4912 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4913 | ||
c906108c | 4914 | fi |
b7026657 AC |
4915 | if test $ac_cv_header_libintl_h = yes; then |
4916 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
4917 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
4918 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
4919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4920 | else |
b7026657 AC |
4921 | cat >conftest.$ac_ext <<_ACEOF |
4922 | /* confdefs.h. */ | |
4923 | _ACEOF | |
4924 | cat confdefs.h >>conftest.$ac_ext | |
4925 | cat >>conftest.$ac_ext <<_ACEOF | |
4926 | /* end confdefs.h. */ | |
c906108c | 4927 | #include <libintl.h> |
b7026657 AC |
4928 | int |
4929 | main () | |
4930 | { | |
c906108c | 4931 | return (int) gettext ("") |
b7026657 AC |
4932 | ; |
4933 | return 0; | |
4934 | } | |
4935 | _ACEOF | |
4936 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4938 | (eval $ac_link) 2>conftest.er1 | |
4939 | ac_status=$? | |
4940 | grep -v '^ *+' conftest.er1 >conftest.err | |
4941 | rm -f conftest.er1 | |
4942 | cat conftest.err >&5 | |
4943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4944 | (exit $ac_status); } && | |
4945 | { ac_try='test -z "$ac_c_werror_flag" | |
4946 | || test ! -s conftest.err' | |
4947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4948 | (eval $ac_try) 2>&5 | |
4949 | ac_status=$? | |
4950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4951 | (exit $ac_status); }; } && | |
4952 | { ac_try='test -s conftest$ac_exeext' | |
4953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4954 | (eval $ac_try) 2>&5 | |
4955 | ac_status=$? | |
4956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4957 | (exit $ac_status); }; }; then | |
c906108c SS |
4958 | gt_cv_func_gettext_libc=yes |
4959 | else | |
b7026657 AC |
4960 | echo "$as_me: failed program was:" >&5 |
4961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4962 | ||
4963 | gt_cv_func_gettext_libc=no | |
c906108c | 4964 | fi |
b7026657 AC |
4965 | rm -f conftest.err conftest.$ac_objext \ |
4966 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 4967 | fi |
b7026657 AC |
4968 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
4969 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
c906108c SS |
4970 | |
4971 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
b7026657 AC |
4972 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
4973 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
4974 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
4975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4976 | else |
b7026657 | 4977 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 4978 | LIBS="-lintl $LIBS" |
b7026657 AC |
4979 | cat >conftest.$ac_ext <<_ACEOF |
4980 | /* confdefs.h. */ | |
4981 | _ACEOF | |
4982 | cat confdefs.h >>conftest.$ac_ext | |
4983 | cat >>conftest.$ac_ext <<_ACEOF | |
4984 | /* end confdefs.h. */ | |
4985 | ||
c906108c | 4986 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
4987 | #ifdef __cplusplus |
4988 | extern "C" | |
4989 | #endif | |
c906108c | 4990 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
4991 | builtin and then its argument prototype would still apply. */ |
4992 | char bindtextdomain (); | |
4993 | int | |
4994 | main () | |
4995 | { | |
4996 | bindtextdomain (); | |
4997 | ; | |
4998 | return 0; | |
4999 | } | |
5000 | _ACEOF | |
5001 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5003 | (eval $ac_link) 2>conftest.er1 | |
5004 | ac_status=$? | |
5005 | grep -v '^ *+' conftest.er1 >conftest.err | |
5006 | rm -f conftest.er1 | |
5007 | cat conftest.err >&5 | |
5008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5009 | (exit $ac_status); } && | |
5010 | { ac_try='test -z "$ac_c_werror_flag" | |
5011 | || test ! -s conftest.err' | |
5012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5013 | (eval $ac_try) 2>&5 | |
5014 | ac_status=$? | |
5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5016 | (exit $ac_status); }; } && | |
5017 | { ac_try='test -s conftest$ac_exeext' | |
5018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5019 | (eval $ac_try) 2>&5 | |
5020 | ac_status=$? | |
5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5022 | (exit $ac_status); }; }; then | |
5023 | ac_cv_lib_intl_bindtextdomain=yes | |
5024 | else | |
5025 | echo "$as_me: failed program was:" >&5 | |
5026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5027 | ||
5028 | ac_cv_lib_intl_bindtextdomain=no | |
5029 | fi | |
5030 | rm -f conftest.err conftest.$ac_objext \ | |
5031 | conftest$ac_exeext conftest.$ac_ext | |
5032 | LIBS=$ac_check_lib_save_LIBS | |
5033 | fi | |
5034 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
5035 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
5036 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
5037 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
5038 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
5039 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
5040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5041 | else | |
5042 | cat >conftest.$ac_ext <<_ACEOF | |
5043 | /* confdefs.h. */ | |
5044 | _ACEOF | |
5045 | cat confdefs.h >>conftest.$ac_ext | |
5046 | cat >>conftest.$ac_ext <<_ACEOF | |
5047 | /* end confdefs.h. */ | |
c906108c | 5048 | |
b7026657 AC |
5049 | int |
5050 | main () | |
5051 | { | |
c906108c | 5052 | return (int) gettext ("") |
b7026657 AC |
5053 | ; |
5054 | return 0; | |
5055 | } | |
5056 | _ACEOF | |
5057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5059 | (eval $ac_link) 2>conftest.er1 | |
5060 | ac_status=$? | |
5061 | grep -v '^ *+' conftest.er1 >conftest.err | |
5062 | rm -f conftest.er1 | |
5063 | cat conftest.err >&5 | |
5064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5065 | (exit $ac_status); } && | |
5066 | { ac_try='test -z "$ac_c_werror_flag" | |
5067 | || test ! -s conftest.err' | |
5068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5069 | (eval $ac_try) 2>&5 | |
5070 | ac_status=$? | |
5071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5072 | (exit $ac_status); }; } && | |
5073 | { ac_try='test -s conftest$ac_exeext' | |
5074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5075 | (eval $ac_try) 2>&5 | |
5076 | ac_status=$? | |
5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5078 | (exit $ac_status); }; }; then | |
c906108c SS |
5079 | gt_cv_func_gettext_libintl=yes |
5080 | else | |
b7026657 AC |
5081 | echo "$as_me: failed program was:" >&5 |
5082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5083 | ||
5084 | gt_cv_func_gettext_libintl=no | |
c906108c | 5085 | fi |
b7026657 AC |
5086 | rm -f conftest.err conftest.$ac_objext \ |
5087 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 5088 | fi |
b7026657 AC |
5089 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
5090 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
c906108c SS |
5091 | fi |
5092 | ||
5093 | fi | |
5094 | ||
5095 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
5096 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
b7026657 | 5097 | cat >>confdefs.h <<\_ACEOF |
c906108c | 5098 | #define HAVE_GETTEXT 1 |
b7026657 | 5099 | _ACEOF |
c906108c SS |
5100 | |
5101 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5102 | set dummy msgfmt; ac_word=$2 | |
b7026657 AC |
5103 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5105 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5107 | else |
5108 | case "$MSGFMT" in | |
5109 | /*) | |
5110 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5111 | ;; | |
5112 | *) | |
5113 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5114 | for ac_dir in $PATH; do | |
5115 | test -z "$ac_dir" && ac_dir=. | |
5116 | if test -f $ac_dir/$ac_word; then | |
5117 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5118 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5119 | break | |
5120 | fi | |
5121 | fi | |
5122 | done | |
5123 | IFS="$ac_save_ifs" | |
5124 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
5125 | ;; | |
5126 | esac | |
5127 | fi | |
5128 | MSGFMT="$ac_cv_path_MSGFMT" | |
5129 | if test -n "$MSGFMT"; then | |
b7026657 AC |
5130 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5131 | echo "${ECHO_T}$MSGFMT" >&6 | |
c906108c | 5132 | else |
b7026657 AC |
5133 | echo "$as_me:$LINENO: result: no" >&5 |
5134 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5135 | fi |
5136 | if test "$MSGFMT" != "no"; then | |
b7026657 AC |
5137 | |
5138 | for ac_func in dcgettext | |
c906108c | 5139 | do |
b7026657 AC |
5140 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5141 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5142 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5143 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5145 | else | |
5146 | cat >conftest.$ac_ext <<_ACEOF | |
5147 | /* confdefs.h. */ | |
5148 | _ACEOF | |
5149 | cat confdefs.h >>conftest.$ac_ext | |
5150 | cat >>conftest.$ac_ext <<_ACEOF | |
5151 | /* end confdefs.h. */ | |
5152 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5153 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5154 | #define $ac_func innocuous_$ac_func | |
5155 | ||
c906108c | 5156 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
5157 | which can conflict with char $ac_func (); below. |
5158 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5159 | <limits.h> exists even on freestanding compilers. */ | |
5160 | ||
5161 | #ifdef __STDC__ | |
5162 | # include <limits.h> | |
5163 | #else | |
5164 | # include <assert.h> | |
5165 | #endif | |
c906108c | 5166 | |
b7026657 | 5167 | #undef $ac_func |
c906108c | 5168 | |
b7026657 AC |
5169 | /* Override any gcc2 internal prototype to avoid an error. */ |
5170 | #ifdef __cplusplus | |
5171 | extern "C" | |
5172 | { | |
5173 | #endif | |
5174 | /* We use char because int might match the return type of a gcc2 | |
5175 | builtin and then its argument prototype would still apply. */ | |
5176 | char $ac_func (); | |
c906108c SS |
5177 | /* The GNU C library defines this for functions which it implements |
5178 | to always fail with ENOSYS. Some functions are actually named | |
5179 | something starting with __ and the normal name is an alias. */ | |
5180 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5181 | choke me | |
5182 | #else | |
b7026657 AC |
5183 | char (*f) () = $ac_func; |
5184 | #endif | |
5185 | #ifdef __cplusplus | |
5186 | } | |
c906108c SS |
5187 | #endif |
5188 | ||
b7026657 AC |
5189 | int |
5190 | main () | |
5191 | { | |
5192 | return f != $ac_func; | |
5193 | ; | |
5194 | return 0; | |
5195 | } | |
5196 | _ACEOF | |
5197 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5199 | (eval $ac_link) 2>conftest.er1 | |
5200 | ac_status=$? | |
5201 | grep -v '^ *+' conftest.er1 >conftest.err | |
5202 | rm -f conftest.er1 | |
5203 | cat conftest.err >&5 | |
5204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5205 | (exit $ac_status); } && | |
5206 | { ac_try='test -z "$ac_c_werror_flag" | |
5207 | || test ! -s conftest.err' | |
5208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5209 | (eval $ac_try) 2>&5 | |
5210 | ac_status=$? | |
5211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5212 | (exit $ac_status); }; } && | |
5213 | { ac_try='test -s conftest$ac_exeext' | |
5214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5215 | (eval $ac_try) 2>&5 | |
5216 | ac_status=$? | |
5217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5218 | (exit $ac_status); }; }; then | |
5219 | eval "$as_ac_var=yes" | |
5220 | else | |
5221 | echo "$as_me: failed program was:" >&5 | |
5222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5223 | ||
5224 | eval "$as_ac_var=no" | |
5225 | fi | |
5226 | rm -f conftest.err conftest.$ac_objext \ | |
5227 | conftest$ac_exeext conftest.$ac_ext | |
5228 | fi | |
5229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5230 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5231 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5232 | cat >>confdefs.h <<_ACEOF | |
5233 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5234 | _ACEOF | |
c906108c | 5235 | |
c906108c SS |
5236 | fi |
5237 | done | |
5238 | ||
5239 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5240 | set dummy gmsgfmt; ac_word=$2 | |
b7026657 AC |
5241 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5243 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 5245 | else |
b7026657 AC |
5246 | case $GMSGFMT in |
5247 | [\\/]* | ?:[\\/]*) | |
c906108c SS |
5248 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5249 | ;; | |
c906108c | 5250 | *) |
b7026657 AC |
5251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5252 | for as_dir in $PATH | |
5253 | do | |
5254 | IFS=$as_save_IFS | |
5255 | test -z "$as_dir" && as_dir=. | |
5256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5257 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5258 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5260 | break 2 | |
5261 | fi | |
5262 | done | |
5263 | done | |
5264 | ||
c906108c SS |
5265 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5266 | ;; | |
5267 | esac | |
5268 | fi | |
b7026657 AC |
5269 | GMSGFMT=$ac_cv_path_GMSGFMT |
5270 | ||
c906108c | 5271 | if test -n "$GMSGFMT"; then |
b7026657 AC |
5272 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5273 | echo "${ECHO_T}$GMSGFMT" >&6 | |
c906108c | 5274 | else |
b7026657 AC |
5275 | echo "$as_me:$LINENO: result: no" >&5 |
5276 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5277 | fi |
5278 | ||
5279 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5280 | set dummy xgettext; ac_word=$2 | |
b7026657 AC |
5281 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5283 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5285 | else |
5286 | case "$XGETTEXT" in | |
5287 | /*) | |
5288 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5289 | ;; | |
5290 | *) | |
5291 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5292 | for ac_dir in $PATH; do | |
5293 | test -z "$ac_dir" && ac_dir=. | |
5294 | if test -f $ac_dir/$ac_word; then | |
5295 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5296 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5297 | break | |
5298 | fi | |
5299 | fi | |
5300 | done | |
5301 | IFS="$ac_save_ifs" | |
5302 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5303 | ;; | |
5304 | esac | |
5305 | fi | |
5306 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5307 | if test -n "$XGETTEXT"; then | |
b7026657 AC |
5308 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5309 | echo "${ECHO_T}$XGETTEXT" >&6 | |
c906108c | 5310 | else |
b7026657 AC |
5311 | echo "$as_me:$LINENO: result: no" >&5 |
5312 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5313 | fi |
5314 | ||
b7026657 AC |
5315 | cat >conftest.$ac_ext <<_ACEOF |
5316 | /* confdefs.h. */ | |
5317 | _ACEOF | |
5318 | cat confdefs.h >>conftest.$ac_ext | |
5319 | cat >>conftest.$ac_ext <<_ACEOF | |
5320 | /* end confdefs.h. */ | |
c906108c | 5321 | |
b7026657 AC |
5322 | int |
5323 | main () | |
5324 | { | |
c906108c SS |
5325 | extern int _nl_msg_cat_cntr; |
5326 | return _nl_msg_cat_cntr | |
b7026657 AC |
5327 | ; |
5328 | return 0; | |
5329 | } | |
5330 | _ACEOF | |
5331 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5333 | (eval $ac_link) 2>conftest.er1 | |
5334 | ac_status=$? | |
5335 | grep -v '^ *+' conftest.er1 >conftest.err | |
5336 | rm -f conftest.er1 | |
5337 | cat conftest.err >&5 | |
5338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5339 | (exit $ac_status); } && | |
5340 | { ac_try='test -z "$ac_c_werror_flag" | |
5341 | || test ! -s conftest.err' | |
5342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5343 | (eval $ac_try) 2>&5 | |
5344 | ac_status=$? | |
5345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5346 | (exit $ac_status); }; } && | |
5347 | { ac_try='test -s conftest$ac_exeext' | |
5348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5349 | (eval $ac_try) 2>&5 | |
5350 | ac_status=$? | |
5351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5352 | (exit $ac_status); }; }; then | |
c906108c SS |
5353 | CATOBJEXT=.gmo |
5354 | DATADIRNAME=share | |
5355 | else | |
b7026657 AC |
5356 | echo "$as_me: failed program was:" >&5 |
5357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5358 | ||
5359 | CATOBJEXT=.mo | |
c906108c SS |
5360 | DATADIRNAME=lib |
5361 | fi | |
b7026657 AC |
5362 | rm -f conftest.err conftest.$ac_objext \ |
5363 | conftest$ac_exeext conftest.$ac_ext | |
c906108c SS |
5364 | INSTOBJEXT=.mo |
5365 | fi | |
5366 | fi | |
b7026657 | 5367 | |
c906108c SS |
5368 | fi |
5369 | ||
5370 | ||
b7026657 AC |
5371 | |
5372 | ||
c906108c SS |
5373 | if test "$CATOBJEXT" = "NONE"; then |
5374 | nls_cv_use_gnu_gettext=yes | |
5375 | fi | |
5376 | fi | |
5377 | ||
5378 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
5379 | INTLOBJS="\$(GETTOBJS)" | |
5380 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5381 | set dummy msgfmt; ac_word=$2 | |
b7026657 AC |
5382 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5384 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5386 | else |
5387 | case "$MSGFMT" in | |
5388 | /*) | |
5389 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5390 | ;; | |
5391 | *) | |
5392 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5393 | for ac_dir in $PATH; do | |
5394 | test -z "$ac_dir" && ac_dir=. | |
5395 | if test -f $ac_dir/$ac_word; then | |
5396 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5397 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5398 | break | |
5399 | fi | |
5400 | fi | |
5401 | done | |
5402 | IFS="$ac_save_ifs" | |
5403 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
5404 | ;; | |
5405 | esac | |
5406 | fi | |
5407 | MSGFMT="$ac_cv_path_MSGFMT" | |
5408 | if test -n "$MSGFMT"; then | |
b7026657 AC |
5409 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5410 | echo "${ECHO_T}$MSGFMT" >&6 | |
c906108c | 5411 | else |
b7026657 AC |
5412 | echo "$as_me:$LINENO: result: no" >&5 |
5413 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5414 | fi |
5415 | ||
5416 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5417 | set dummy gmsgfmt; ac_word=$2 | |
b7026657 AC |
5418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5420 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 5422 | else |
b7026657 AC |
5423 | case $GMSGFMT in |
5424 | [\\/]* | ?:[\\/]*) | |
c906108c SS |
5425 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5426 | ;; | |
c906108c | 5427 | *) |
b7026657 AC |
5428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5429 | for as_dir in $PATH | |
5430 | do | |
5431 | IFS=$as_save_IFS | |
5432 | test -z "$as_dir" && as_dir=. | |
5433 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5434 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5435 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5436 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5437 | break 2 | |
5438 | fi | |
5439 | done | |
5440 | done | |
5441 | ||
c906108c SS |
5442 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5443 | ;; | |
5444 | esac | |
5445 | fi | |
b7026657 AC |
5446 | GMSGFMT=$ac_cv_path_GMSGFMT |
5447 | ||
c906108c | 5448 | if test -n "$GMSGFMT"; then |
b7026657 AC |
5449 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5450 | echo "${ECHO_T}$GMSGFMT" >&6 | |
c906108c | 5451 | else |
b7026657 AC |
5452 | echo "$as_me:$LINENO: result: no" >&5 |
5453 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5454 | fi |
5455 | ||
5456 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5457 | set dummy xgettext; ac_word=$2 | |
b7026657 AC |
5458 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5460 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5462 | else |
5463 | case "$XGETTEXT" in | |
5464 | /*) | |
5465 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5466 | ;; | |
5467 | *) | |
5468 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5469 | for ac_dir in $PATH; do | |
5470 | test -z "$ac_dir" && ac_dir=. | |
5471 | if test -f $ac_dir/$ac_word; then | |
5472 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5473 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5474 | break | |
5475 | fi | |
5476 | fi | |
5477 | done | |
5478 | IFS="$ac_save_ifs" | |
5479 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5480 | ;; | |
5481 | esac | |
5482 | fi | |
5483 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5484 | if test -n "$XGETTEXT"; then | |
b7026657 AC |
5485 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5486 | echo "${ECHO_T}$XGETTEXT" >&6 | |
c906108c | 5487 | else |
b7026657 AC |
5488 | echo "$as_me:$LINENO: result: no" >&5 |
5489 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5490 | fi |
5491 | ||
b7026657 | 5492 | |
c906108c SS |
5493 | USE_INCLUDED_LIBINTL=yes |
5494 | CATOBJEXT=.gmo | |
5495 | INSTOBJEXT=.mo | |
5496 | DATADIRNAME=share | |
5497 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
5498 | INTLLIBS=$INTLDEPS | |
5499 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
5500 | nls_cv_header_intl=libintl.h | |
5501 | nls_cv_header_libgt=libgettext.h | |
5502 | fi | |
5503 | ||
5504 | if test "$XGETTEXT" != ":"; then | |
5505 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
5506 | : ; | |
5507 | else | |
b7026657 AC |
5508 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
5509 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
c906108c SS |
5510 | XGETTEXT=":" |
5511 | fi | |
5512 | fi | |
5513 | ||
5514 | # We need to process the po/ directory. | |
5515 | POSUB=po | |
5516 | else | |
5517 | DATADIRNAME=share | |
5518 | nls_cv_header_intl=libintl.h | |
5519 | nls_cv_header_libgt=libgettext.h | |
5520 | fi | |
5521 | ||
5522 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
5523 | # because some of the sources are only built for this goal. | |
5524 | if test "$PACKAGE" = gettext; then | |
5525 | USE_NLS=yes | |
5526 | USE_INCLUDED_LIBINTL=yes | |
5527 | fi | |
5528 | ||
5529 | for lang in $ALL_LINGUAS; do | |
5530 | GMOFILES="$GMOFILES $lang.gmo" | |
5531 | POFILES="$POFILES $lang.po" | |
5532 | done | |
5533 | ||
b7026657 AC |
5534 | |
5535 | ||
5536 | ||
5537 | ||
5538 | ||
5539 | ||
5540 | ||
5541 | ||
5542 | ||
5543 | ||
5544 | ||
5545 | ||
c906108c SS |
5546 | |
5547 | if test "x$CATOBJEXT" != "x"; then | |
5548 | if test "x$ALL_LINGUAS" = "x"; then | |
5549 | LINGUAS= | |
5550 | else | |
b7026657 AC |
5551 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
5552 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
c906108c SS |
5553 | NEW_LINGUAS= |
5554 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
5555 | case "$ALL_LINGUAS" in | |
5556 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
5557 | esac | |
5558 | done | |
5559 | LINGUAS=$NEW_LINGUAS | |
b7026657 AC |
5560 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
5561 | echo "${ECHO_T}$LINGUAS" >&6 | |
c906108c SS |
5562 | fi |
5563 | ||
5564 | if test -n "$LINGUAS"; then | |
5565 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
5566 | fi | |
5567 | fi | |
5568 | ||
5569 | if test $ac_cv_header_locale_h = yes; then | |
5570 | INCLUDE_LOCALE_H="#include <locale.h>" | |
5571 | else | |
5572 | INCLUDE_LOCALE_H="\ | |
5573 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
5574 | fi | |
b7026657 | 5575 | |
c906108c SS |
5576 | |
5577 | if test -f $srcdir/po2tbl.sed.in; then | |
5578 | if test "$CATOBJEXT" = ".cat"; then | |
b7026657 AC |
5579 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
5580 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5581 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5582 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5584 | fi | |
5585 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5586 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5587 | else | |
5588 | # Is the header compilable? | |
5589 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
5590 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
5591 | cat >conftest.$ac_ext <<_ACEOF | |
5592 | /* confdefs.h. */ | |
5593 | _ACEOF | |
5594 | cat confdefs.h >>conftest.$ac_ext | |
5595 | cat >>conftest.$ac_ext <<_ACEOF | |
5596 | /* end confdefs.h. */ | |
5597 | $ac_includes_default | |
5598 | #include <linux/version.h> | |
5599 | _ACEOF | |
5600 | rm -f conftest.$ac_objext | |
5601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5602 | (eval $ac_compile) 2>conftest.er1 | |
5603 | ac_status=$? | |
5604 | grep -v '^ *+' conftest.er1 >conftest.err | |
5605 | rm -f conftest.er1 | |
5606 | cat conftest.err >&5 | |
5607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5608 | (exit $ac_status); } && | |
5609 | { ac_try='test -z "$ac_c_werror_flag" | |
5610 | || test ! -s conftest.err' | |
5611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5612 | (eval $ac_try) 2>&5 | |
5613 | ac_status=$? | |
5614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5615 | (exit $ac_status); }; } && | |
5616 | { ac_try='test -s conftest.$ac_objext' | |
5617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5618 | (eval $ac_try) 2>&5 | |
5619 | ac_status=$? | |
5620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5621 | (exit $ac_status); }; }; then | |
5622 | ac_header_compiler=yes | |
5623 | else | |
5624 | echo "$as_me: failed program was:" >&5 | |
5625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5626 | ||
5627 | ac_header_compiler=no | |
5628 | fi | |
5629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5630 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5631 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5632 | ||
5633 | # Is the header present? | |
5634 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
5635 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
5636 | cat >conftest.$ac_ext <<_ACEOF | |
5637 | /* confdefs.h. */ | |
5638 | _ACEOF | |
5639 | cat confdefs.h >>conftest.$ac_ext | |
5640 | cat >>conftest.$ac_ext <<_ACEOF | |
5641 | /* end confdefs.h. */ | |
c906108c | 5642 | #include <linux/version.h> |
b7026657 AC |
5643 | _ACEOF |
5644 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5645 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5646 | ac_status=$? | |
5647 | grep -v '^ *+' conftest.er1 >conftest.err | |
5648 | rm -f conftest.er1 | |
5649 | cat conftest.err >&5 | |
5650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5651 | (exit $ac_status); } >/dev/null; then | |
5652 | if test -s conftest.err; then | |
5653 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5654 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5655 | else | |
5656 | ac_cpp_err= | |
5657 | fi | |
5658 | else | |
5659 | ac_cpp_err=yes | |
c906108c | 5660 | fi |
b7026657 AC |
5661 | if test -z "$ac_cpp_err"; then |
5662 | ac_header_preproc=yes | |
5663 | else | |
5664 | echo "$as_me: failed program was:" >&5 | |
5665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5666 | ||
5667 | ac_header_preproc=no | |
5668 | fi | |
5669 | rm -f conftest.err conftest.$ac_ext | |
5670 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5671 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5672 | ||
5673 | # So? What about this header? | |
5674 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5675 | yes:no: ) | |
5676 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5677 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5678 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
5679 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
5680 | ac_header_preproc=yes | |
5681 | ;; | |
5682 | no:yes:* ) | |
5683 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
5684 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
5685 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
5686 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
5687 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
5688 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
5689 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5690 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5691 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
5692 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
5693 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
5694 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
5695 | ( | |
5696 | cat <<\_ASBOX | |
5697 | ## ------------------------------------------ ## | |
5698 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5699 | ## ------------------------------------------ ## | |
5700 | _ASBOX | |
5701 | ) | | |
5702 | sed "s/^/$as_me: WARNING: /" >&2 | |
5703 | ;; | |
5704 | esac | |
5705 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5706 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5707 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5709 | else | |
5710 | ac_cv_header_linux_version_h=$ac_header_preproc | |
5711 | fi | |
5712 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5713 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5714 | ||
c906108c | 5715 | fi |
b7026657 | 5716 | if test $ac_cv_header_linux_version_h = yes; then |
c906108c SS |
5717 | msgformat=linux |
5718 | else | |
b7026657 | 5719 | msgformat=xopen |
c906108c SS |
5720 | fi |
5721 | ||
5722 | ||
b7026657 | 5723 | |
c906108c SS |
5724 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
5725 | fi | |
5726 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
5727 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
5728 | fi | |
5729 | ||
5730 | if test "$PACKAGE" = "gettext"; then | |
5731 | GT_NO="#NO#" | |
5732 | GT_YES= | |
5733 | else | |
5734 | GT_NO= | |
5735 | GT_YES="#YES#" | |
5736 | fi | |
b7026657 AC |
5737 | |
5738 | ||
c906108c SS |
5739 | |
5740 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
b7026657 | 5741 | |
c906108c SS |
5742 | |
5743 | l= | |
b7026657 | 5744 | |
c906108c SS |
5745 | |
5746 | if test -d $srcdir/po; then | |
5747 | test -d po || mkdir po | |
5748 | if test "x$srcdir" != "x."; then | |
5749 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
5750 | posrcprefix="$srcdir/" | |
5751 | else | |
5752 | posrcprefix="../$srcdir/" | |
5753 | fi | |
5754 | else | |
5755 | posrcprefix="../" | |
5756 | fi | |
5757 | rm -f po/POTFILES | |
5758 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
5759 | < $srcdir/po/POTFILES.in > po/POTFILES | |
5760 | fi | |
b7026657 | 5761 | |
c906108c SS |
5762 | |
5763 | # Check for common headers. | |
5764 | # FIXME: Seems to me this can cause problems for i386-windows hosts. | |
5765 | # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*. | |
b7026657 AC |
5766 | |
5767 | ||
5768 | ||
5769 | ||
5770 | ||
5771 | for ac_header in stdlib.h string.h strings.h unistd.h time.h | |
c906108c | 5772 | do |
b7026657 AC |
5773 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5774 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5775 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5776 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5779 | fi | |
5780 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5781 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5782 | else | |
5783 | # Is the header compilable? | |
5784 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5785 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5786 | cat >conftest.$ac_ext <<_ACEOF | |
5787 | /* confdefs.h. */ | |
5788 | _ACEOF | |
5789 | cat confdefs.h >>conftest.$ac_ext | |
5790 | cat >>conftest.$ac_ext <<_ACEOF | |
5791 | /* end confdefs.h. */ | |
5792 | $ac_includes_default | |
5793 | #include <$ac_header> | |
5794 | _ACEOF | |
5795 | rm -f conftest.$ac_objext | |
5796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5797 | (eval $ac_compile) 2>conftest.er1 | |
5798 | ac_status=$? | |
5799 | grep -v '^ *+' conftest.er1 >conftest.err | |
5800 | rm -f conftest.er1 | |
5801 | cat conftest.err >&5 | |
5802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5803 | (exit $ac_status); } && | |
5804 | { ac_try='test -z "$ac_c_werror_flag" | |
5805 | || test ! -s conftest.err' | |
5806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5807 | (eval $ac_try) 2>&5 | |
5808 | ac_status=$? | |
5809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5810 | (exit $ac_status); }; } && | |
5811 | { ac_try='test -s conftest.$ac_objext' | |
5812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5813 | (eval $ac_try) 2>&5 | |
5814 | ac_status=$? | |
5815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5816 | (exit $ac_status); }; }; then | |
5817 | ac_header_compiler=yes | |
5818 | else | |
5819 | echo "$as_me: failed program was:" >&5 | |
5820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5821 | ||
5822 | ac_header_compiler=no | |
5823 | fi | |
5824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5825 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5826 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5827 | ||
5828 | # Is the header present? | |
5829 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5830 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5831 | cat >conftest.$ac_ext <<_ACEOF | |
5832 | /* confdefs.h. */ | |
5833 | _ACEOF | |
5834 | cat confdefs.h >>conftest.$ac_ext | |
5835 | cat >>conftest.$ac_ext <<_ACEOF | |
5836 | /* end confdefs.h. */ | |
5837 | #include <$ac_header> | |
5838 | _ACEOF | |
5839 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5840 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5841 | ac_status=$? | |
5842 | grep -v '^ *+' conftest.er1 >conftest.err | |
5843 | rm -f conftest.er1 | |
5844 | cat conftest.err >&5 | |
5845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5846 | (exit $ac_status); } >/dev/null; then | |
5847 | if test -s conftest.err; then | |
5848 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5849 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5850 | else | |
5851 | ac_cpp_err= | |
5852 | fi | |
5853 | else | |
5854 | ac_cpp_err=yes | |
c906108c | 5855 | fi |
b7026657 AC |
5856 | if test -z "$ac_cpp_err"; then |
5857 | ac_header_preproc=yes | |
5858 | else | |
5859 | echo "$as_me: failed program was:" >&5 | |
5860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5861 | ||
5862 | ac_header_preproc=no | |
c906108c | 5863 | fi |
b7026657 AC |
5864 | rm -f conftest.err conftest.$ac_ext |
5865 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5866 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5867 | ||
5868 | # So? What about this header? | |
5869 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5870 | yes:no: ) | |
5871 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5872 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5873 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5874 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5875 | ac_header_preproc=yes | |
5876 | ;; | |
5877 | no:yes:* ) | |
5878 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5879 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5880 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5881 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5882 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5883 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5884 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5885 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5886 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5887 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5888 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5889 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5890 | ( | |
5891 | cat <<\_ASBOX | |
5892 | ## ------------------------------------------ ## | |
5893 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5894 | ## ------------------------------------------ ## | |
5895 | _ASBOX | |
5896 | ) | | |
5897 | sed "s/^/$as_me: WARNING: /" >&2 | |
5898 | ;; | |
5899 | esac | |
5900 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5901 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 5904 | else |
b7026657 AC |
5905 | eval "$as_ac_Header=\$ac_header_preproc" |
5906 | fi | |
5907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5908 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5909 | ||
5910 | fi | |
5911 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5912 | cat >>confdefs.h <<_ACEOF | |
5913 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5914 | _ACEOF | |
5915 | ||
c906108c | 5916 | fi |
b7026657 | 5917 | |
c906108c SS |
5918 | done |
5919 | ||
b7026657 AC |
5920 | |
5921 | ||
5922 | for ac_header in sys/time.h sys/resource.h | |
c906108c | 5923 | do |
b7026657 AC |
5924 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5925 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5926 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5927 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5930 | fi | |
5931 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5932 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5933 | else | |
5934 | # Is the header compilable? | |
5935 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5936 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5937 | cat >conftest.$ac_ext <<_ACEOF | |
5938 | /* confdefs.h. */ | |
5939 | _ACEOF | |
5940 | cat confdefs.h >>conftest.$ac_ext | |
5941 | cat >>conftest.$ac_ext <<_ACEOF | |
5942 | /* end confdefs.h. */ | |
5943 | $ac_includes_default | |
5944 | #include <$ac_header> | |
5945 | _ACEOF | |
5946 | rm -f conftest.$ac_objext | |
5947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5948 | (eval $ac_compile) 2>conftest.er1 | |
5949 | ac_status=$? | |
5950 | grep -v '^ *+' conftest.er1 >conftest.err | |
5951 | rm -f conftest.er1 | |
5952 | cat conftest.err >&5 | |
5953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5954 | (exit $ac_status); } && | |
5955 | { ac_try='test -z "$ac_c_werror_flag" | |
5956 | || test ! -s conftest.err' | |
5957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5958 | (eval $ac_try) 2>&5 | |
5959 | ac_status=$? | |
5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5961 | (exit $ac_status); }; } && | |
5962 | { ac_try='test -s conftest.$ac_objext' | |
5963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5964 | (eval $ac_try) 2>&5 | |
5965 | ac_status=$? | |
5966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5967 | (exit $ac_status); }; }; then | |
5968 | ac_header_compiler=yes | |
5969 | else | |
5970 | echo "$as_me: failed program was:" >&5 | |
5971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5972 | ||
5973 | ac_header_compiler=no | |
5974 | fi | |
5975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5976 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5977 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5978 | ||
5979 | # Is the header present? | |
5980 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5981 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5982 | cat >conftest.$ac_ext <<_ACEOF | |
5983 | /* confdefs.h. */ | |
5984 | _ACEOF | |
5985 | cat confdefs.h >>conftest.$ac_ext | |
5986 | cat >>conftest.$ac_ext <<_ACEOF | |
5987 | /* end confdefs.h. */ | |
5988 | #include <$ac_header> | |
5989 | _ACEOF | |
5990 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5991 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5992 | ac_status=$? | |
5993 | grep -v '^ *+' conftest.er1 >conftest.err | |
5994 | rm -f conftest.er1 | |
5995 | cat conftest.err >&5 | |
5996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5997 | (exit $ac_status); } >/dev/null; then | |
5998 | if test -s conftest.err; then | |
5999 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6000 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6001 | else | |
6002 | ac_cpp_err= | |
6003 | fi | |
6004 | else | |
6005 | ac_cpp_err=yes | |
c906108c | 6006 | fi |
b7026657 AC |
6007 | if test -z "$ac_cpp_err"; then |
6008 | ac_header_preproc=yes | |
6009 | else | |
6010 | echo "$as_me: failed program was:" >&5 | |
6011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6012 | ||
6013 | ac_header_preproc=no | |
c906108c | 6014 | fi |
b7026657 AC |
6015 | rm -f conftest.err conftest.$ac_ext |
6016 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6017 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6018 | ||
6019 | # So? What about this header? | |
6020 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6021 | yes:no: ) | |
6022 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6023 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6024 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6025 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6026 | ac_header_preproc=yes | |
6027 | ;; | |
6028 | no:yes:* ) | |
6029 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6030 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6031 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6032 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6033 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6034 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6035 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6036 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6037 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6038 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6039 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6040 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6041 | ( | |
6042 | cat <<\_ASBOX | |
6043 | ## ------------------------------------------ ## | |
6044 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6045 | ## ------------------------------------------ ## | |
6046 | _ASBOX | |
6047 | ) | | |
6048 | sed "s/^/$as_me: WARNING: /" >&2 | |
6049 | ;; | |
6050 | esac | |
6051 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6052 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6053 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6055 | else |
b7026657 AC |
6056 | eval "$as_ac_Header=\$ac_header_preproc" |
6057 | fi | |
6058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6059 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6060 | ||
c906108c | 6061 | fi |
b7026657 AC |
6062 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6063 | cat >>confdefs.h <<_ACEOF | |
6064 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6065 | _ACEOF | |
6066 | ||
6067 | fi | |
6068 | ||
c906108c SS |
6069 | done |
6070 | ||
b7026657 AC |
6071 | |
6072 | ||
6073 | for ac_header in fcntl.h fpu_control.h | |
c906108c | 6074 | do |
b7026657 AC |
6075 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6076 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6077 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6078 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6079 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6081 | fi | |
6082 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6083 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6084 | else | |
6085 | # Is the header compilable? | |
6086 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6087 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6088 | cat >conftest.$ac_ext <<_ACEOF | |
6089 | /* confdefs.h. */ | |
6090 | _ACEOF | |
6091 | cat confdefs.h >>conftest.$ac_ext | |
6092 | cat >>conftest.$ac_ext <<_ACEOF | |
6093 | /* end confdefs.h. */ | |
6094 | $ac_includes_default | |
6095 | #include <$ac_header> | |
6096 | _ACEOF | |
6097 | rm -f conftest.$ac_objext | |
6098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6099 | (eval $ac_compile) 2>conftest.er1 | |
6100 | ac_status=$? | |
6101 | grep -v '^ *+' conftest.er1 >conftest.err | |
6102 | rm -f conftest.er1 | |
6103 | cat conftest.err >&5 | |
6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6105 | (exit $ac_status); } && | |
6106 | { ac_try='test -z "$ac_c_werror_flag" | |
6107 | || test ! -s conftest.err' | |
6108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6109 | (eval $ac_try) 2>&5 | |
6110 | ac_status=$? | |
6111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6112 | (exit $ac_status); }; } && | |
6113 | { ac_try='test -s conftest.$ac_objext' | |
6114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6115 | (eval $ac_try) 2>&5 | |
6116 | ac_status=$? | |
6117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6118 | (exit $ac_status); }; }; then | |
6119 | ac_header_compiler=yes | |
6120 | else | |
6121 | echo "$as_me: failed program was:" >&5 | |
6122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6123 | ||
6124 | ac_header_compiler=no | |
6125 | fi | |
6126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6127 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6128 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6129 | ||
6130 | # Is the header present? | |
6131 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6132 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6133 | cat >conftest.$ac_ext <<_ACEOF | |
6134 | /* confdefs.h. */ | |
6135 | _ACEOF | |
6136 | cat confdefs.h >>conftest.$ac_ext | |
6137 | cat >>conftest.$ac_ext <<_ACEOF | |
6138 | /* end confdefs.h. */ | |
6139 | #include <$ac_header> | |
6140 | _ACEOF | |
6141 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6142 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6143 | ac_status=$? | |
6144 | grep -v '^ *+' conftest.er1 >conftest.err | |
6145 | rm -f conftest.er1 | |
6146 | cat conftest.err >&5 | |
6147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6148 | (exit $ac_status); } >/dev/null; then | |
6149 | if test -s conftest.err; then | |
6150 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6151 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6152 | else | |
6153 | ac_cpp_err= | |
6154 | fi | |
6155 | else | |
6156 | ac_cpp_err=yes | |
c906108c | 6157 | fi |
b7026657 AC |
6158 | if test -z "$ac_cpp_err"; then |
6159 | ac_header_preproc=yes | |
6160 | else | |
6161 | echo "$as_me: failed program was:" >&5 | |
6162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6163 | ||
6164 | ac_header_preproc=no | |
c906108c | 6165 | fi |
b7026657 AC |
6166 | rm -f conftest.err conftest.$ac_ext |
6167 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6168 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6169 | ||
6170 | # So? What about this header? | |
6171 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6172 | yes:no: ) | |
6173 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6174 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6176 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6177 | ac_header_preproc=yes | |
6178 | ;; | |
6179 | no:yes:* ) | |
6180 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6181 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6182 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6183 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6184 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6185 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6186 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6187 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6188 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6189 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6190 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6191 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6192 | ( | |
6193 | cat <<\_ASBOX | |
6194 | ## ------------------------------------------ ## | |
6195 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6196 | ## ------------------------------------------ ## | |
6197 | _ASBOX | |
6198 | ) | | |
6199 | sed "s/^/$as_me: WARNING: /" >&2 | |
6200 | ;; | |
6201 | esac | |
6202 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6203 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6206 | else |
b7026657 AC |
6207 | eval "$as_ac_Header=\$ac_header_preproc" |
6208 | fi | |
6209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6210 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6211 | ||
6212 | fi | |
6213 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6214 | cat >>confdefs.h <<_ACEOF | |
6215 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6216 | _ACEOF | |
6217 | ||
c906108c | 6218 | fi |
b7026657 | 6219 | |
c906108c SS |
6220 | done |
6221 | ||
b7026657 AC |
6222 | |
6223 | ||
6224 | ||
6225 | for ac_header in dlfcn.h errno.h sys/stat.h | |
c906108c | 6226 | do |
b7026657 AC |
6227 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6228 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6229 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6230 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6231 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6233 | fi | |
6234 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6235 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6236 | else | |
6237 | # Is the header compilable? | |
6238 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6239 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6240 | cat >conftest.$ac_ext <<_ACEOF | |
6241 | /* confdefs.h. */ | |
6242 | _ACEOF | |
6243 | cat confdefs.h >>conftest.$ac_ext | |
6244 | cat >>conftest.$ac_ext <<_ACEOF | |
6245 | /* end confdefs.h. */ | |
6246 | $ac_includes_default | |
6247 | #include <$ac_header> | |
6248 | _ACEOF | |
6249 | rm -f conftest.$ac_objext | |
6250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6251 | (eval $ac_compile) 2>conftest.er1 | |
6252 | ac_status=$? | |
6253 | grep -v '^ *+' conftest.er1 >conftest.err | |
6254 | rm -f conftest.er1 | |
6255 | cat conftest.err >&5 | |
6256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6257 | (exit $ac_status); } && | |
6258 | { ac_try='test -z "$ac_c_werror_flag" | |
6259 | || test ! -s conftest.err' | |
6260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6261 | (eval $ac_try) 2>&5 | |
6262 | ac_status=$? | |
6263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6264 | (exit $ac_status); }; } && | |
6265 | { ac_try='test -s conftest.$ac_objext' | |
6266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6267 | (eval $ac_try) 2>&5 | |
6268 | ac_status=$? | |
6269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6270 | (exit $ac_status); }; }; then | |
6271 | ac_header_compiler=yes | |
6272 | else | |
6273 | echo "$as_me: failed program was:" >&5 | |
6274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6275 | ||
6276 | ac_header_compiler=no | |
6277 | fi | |
6278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6279 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6280 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6281 | ||
6282 | # Is the header present? | |
6283 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6284 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6285 | cat >conftest.$ac_ext <<_ACEOF | |
6286 | /* confdefs.h. */ | |
6287 | _ACEOF | |
6288 | cat confdefs.h >>conftest.$ac_ext | |
6289 | cat >>conftest.$ac_ext <<_ACEOF | |
6290 | /* end confdefs.h. */ | |
6291 | #include <$ac_header> | |
6292 | _ACEOF | |
6293 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6294 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6295 | ac_status=$? | |
6296 | grep -v '^ *+' conftest.er1 >conftest.err | |
6297 | rm -f conftest.er1 | |
6298 | cat conftest.err >&5 | |
6299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6300 | (exit $ac_status); } >/dev/null; then | |
6301 | if test -s conftest.err; then | |
6302 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6303 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6304 | else | |
6305 | ac_cpp_err= | |
6306 | fi | |
6307 | else | |
6308 | ac_cpp_err=yes | |
c906108c | 6309 | fi |
b7026657 AC |
6310 | if test -z "$ac_cpp_err"; then |
6311 | ac_header_preproc=yes | |
6312 | else | |
6313 | echo "$as_me: failed program was:" >&5 | |
6314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6315 | ||
6316 | ac_header_preproc=no | |
6317 | fi | |
6318 | rm -f conftest.err conftest.$ac_ext | |
6319 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6320 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6321 | ||
6322 | # So? What about this header? | |
6323 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6324 | yes:no: ) | |
6325 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6326 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6327 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6328 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6329 | ac_header_preproc=yes | |
6330 | ;; | |
6331 | no:yes:* ) | |
6332 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6333 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6334 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6335 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6336 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6337 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6338 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6339 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6340 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6341 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6342 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6343 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6344 | ( | |
6345 | cat <<\_ASBOX | |
6346 | ## ------------------------------------------ ## | |
6347 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6348 | ## ------------------------------------------ ## | |
6349 | _ASBOX | |
6350 | ) | | |
6351 | sed "s/^/$as_me: WARNING: /" >&2 | |
6352 | ;; | |
6353 | esac | |
6354 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6358 | else | |
6359 | eval "$as_ac_Header=\$ac_header_preproc" | |
6360 | fi | |
6361 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6362 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6363 | ||
c906108c | 6364 | fi |
b7026657 AC |
6365 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6366 | cat >>confdefs.h <<_ACEOF | |
6367 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6368 | _ACEOF | |
6369 | ||
c906108c | 6370 | fi |
b7026657 | 6371 | |
c906108c SS |
6372 | done |
6373 | ||
b7026657 AC |
6374 | |
6375 | ||
6376 | ||
6377 | ||
c906108c SS |
6378 | for ac_func in getrusage time sigaction __setfpucw |
6379 | do | |
b7026657 AC |
6380 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6381 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6382 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6383 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6385 | else | |
6386 | cat >conftest.$ac_ext <<_ACEOF | |
6387 | /* confdefs.h. */ | |
6388 | _ACEOF | |
6389 | cat confdefs.h >>conftest.$ac_ext | |
6390 | cat >>conftest.$ac_ext <<_ACEOF | |
6391 | /* end confdefs.h. */ | |
6392 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6393 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6394 | #define $ac_func innocuous_$ac_func | |
6395 | ||
c906108c | 6396 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
6397 | which can conflict with char $ac_func (); below. |
6398 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6399 | <limits.h> exists even on freestanding compilers. */ | |
6400 | ||
6401 | #ifdef __STDC__ | |
6402 | # include <limits.h> | |
6403 | #else | |
6404 | # include <assert.h> | |
6405 | #endif | |
c906108c | 6406 | |
b7026657 | 6407 | #undef $ac_func |
c906108c | 6408 | |
b7026657 AC |
6409 | /* Override any gcc2 internal prototype to avoid an error. */ |
6410 | #ifdef __cplusplus | |
6411 | extern "C" | |
6412 | { | |
6413 | #endif | |
6414 | /* We use char because int might match the return type of a gcc2 | |
6415 | builtin and then its argument prototype would still apply. */ | |
6416 | char $ac_func (); | |
c906108c SS |
6417 | /* The GNU C library defines this for functions which it implements |
6418 | to always fail with ENOSYS. Some functions are actually named | |
6419 | something starting with __ and the normal name is an alias. */ | |
6420 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6421 | choke me | |
6422 | #else | |
b7026657 AC |
6423 | char (*f) () = $ac_func; |
6424 | #endif | |
6425 | #ifdef __cplusplus | |
6426 | } | |
c906108c SS |
6427 | #endif |
6428 | ||
b7026657 AC |
6429 | int |
6430 | main () | |
6431 | { | |
6432 | return f != $ac_func; | |
6433 | ; | |
6434 | return 0; | |
6435 | } | |
6436 | _ACEOF | |
6437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6439 | (eval $ac_link) 2>conftest.er1 | |
6440 | ac_status=$? | |
6441 | grep -v '^ *+' conftest.er1 >conftest.err | |
6442 | rm -f conftest.er1 | |
6443 | cat conftest.err >&5 | |
6444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6445 | (exit $ac_status); } && | |
6446 | { ac_try='test -z "$ac_c_werror_flag" | |
6447 | || test ! -s conftest.err' | |
6448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6449 | (eval $ac_try) 2>&5 | |
6450 | ac_status=$? | |
6451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6452 | (exit $ac_status); }; } && | |
6453 | { ac_try='test -s conftest$ac_exeext' | |
6454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6455 | (eval $ac_try) 2>&5 | |
6456 | ac_status=$? | |
6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6458 | (exit $ac_status); }; }; then | |
6459 | eval "$as_ac_var=yes" | |
6460 | else | |
6461 | echo "$as_me: failed program was:" >&5 | |
6462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6463 | ||
6464 | eval "$as_ac_var=no" | |
6465 | fi | |
6466 | rm -f conftest.err conftest.$ac_objext \ | |
6467 | conftest$ac_exeext conftest.$ac_ext | |
6468 | fi | |
6469 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6470 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6471 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6472 | cat >>confdefs.h <<_ACEOF | |
6473 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6474 | _ACEOF | |
c906108c | 6475 | |
c906108c SS |
6476 | fi |
6477 | done | |
6478 | ||
6479 | ||
6480 | # Check for socket libraries | |
b7026657 AC |
6481 | |
6482 | echo "$as_me:$LINENO: checking for bind in -lsocket" >&5 | |
6483 | echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6 | |
6484 | if test "${ac_cv_lib_socket_bind+set}" = set; then | |
6485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6486 | else |
b7026657 | 6487 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 6488 | LIBS="-lsocket $LIBS" |
b7026657 AC |
6489 | cat >conftest.$ac_ext <<_ACEOF |
6490 | /* confdefs.h. */ | |
6491 | _ACEOF | |
6492 | cat confdefs.h >>conftest.$ac_ext | |
6493 | cat >>conftest.$ac_ext <<_ACEOF | |
6494 | /* end confdefs.h. */ | |
6495 | ||
c906108c | 6496 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
6497 | #ifdef __cplusplus |
6498 | extern "C" | |
6499 | #endif | |
c906108c | 6500 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
6501 | builtin and then its argument prototype would still apply. */ |
6502 | char bind (); | |
6503 | int | |
6504 | main () | |
6505 | { | |
6506 | bind (); | |
6507 | ; | |
6508 | return 0; | |
6509 | } | |
6510 | _ACEOF | |
6511 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6513 | (eval $ac_link) 2>conftest.er1 | |
6514 | ac_status=$? | |
6515 | grep -v '^ *+' conftest.er1 >conftest.err | |
6516 | rm -f conftest.er1 | |
6517 | cat conftest.err >&5 | |
6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6519 | (exit $ac_status); } && | |
6520 | { ac_try='test -z "$ac_c_werror_flag" | |
6521 | || test ! -s conftest.err' | |
6522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6523 | (eval $ac_try) 2>&5 | |
6524 | ac_status=$? | |
6525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6526 | (exit $ac_status); }; } && | |
6527 | { ac_try='test -s conftest$ac_exeext' | |
6528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6529 | (eval $ac_try) 2>&5 | |
6530 | ac_status=$? | |
6531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6532 | (exit $ac_status); }; }; then | |
6533 | ac_cv_lib_socket_bind=yes | |
6534 | else | |
6535 | echo "$as_me: failed program was:" >&5 | |
6536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6537 | ||
6538 | ac_cv_lib_socket_bind=no | |
6539 | fi | |
6540 | rm -f conftest.err conftest.$ac_objext \ | |
6541 | conftest$ac_exeext conftest.$ac_ext | |
6542 | LIBS=$ac_check_lib_save_LIBS | |
6543 | fi | |
6544 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5 | |
6545 | echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6 | |
6546 | if test $ac_cv_lib_socket_bind = yes; then | |
6547 | cat >>confdefs.h <<_ACEOF | |
6548 | #define HAVE_LIBSOCKET 1 | |
6549 | _ACEOF | |
c906108c SS |
6550 | |
6551 | LIBS="-lsocket $LIBS" | |
6552 | ||
c906108c SS |
6553 | fi |
6554 | ||
b7026657 AC |
6555 | |
6556 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
6557 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
6558 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
6559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6560 | else |
b7026657 | 6561 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 6562 | LIBS="-lnsl $LIBS" |
b7026657 AC |
6563 | cat >conftest.$ac_ext <<_ACEOF |
6564 | /* confdefs.h. */ | |
6565 | _ACEOF | |
6566 | cat confdefs.h >>conftest.$ac_ext | |
6567 | cat >>conftest.$ac_ext <<_ACEOF | |
6568 | /* end confdefs.h. */ | |
6569 | ||
c906108c | 6570 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
6571 | #ifdef __cplusplus |
6572 | extern "C" | |
6573 | #endif | |
c906108c | 6574 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
6575 | builtin and then its argument prototype would still apply. */ |
6576 | char gethostbyname (); | |
6577 | int | |
6578 | main () | |
6579 | { | |
6580 | gethostbyname (); | |
6581 | ; | |
6582 | return 0; | |
6583 | } | |
6584 | _ACEOF | |
6585 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6587 | (eval $ac_link) 2>conftest.er1 | |
6588 | ac_status=$? | |
6589 | grep -v '^ *+' conftest.er1 >conftest.err | |
6590 | rm -f conftest.er1 | |
6591 | cat conftest.err >&5 | |
6592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6593 | (exit $ac_status); } && | |
6594 | { ac_try='test -z "$ac_c_werror_flag" | |
6595 | || test ! -s conftest.err' | |
6596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6597 | (eval $ac_try) 2>&5 | |
6598 | ac_status=$? | |
6599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6600 | (exit $ac_status); }; } && | |
6601 | { ac_try='test -s conftest$ac_exeext' | |
6602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6603 | (eval $ac_try) 2>&5 | |
6604 | ac_status=$? | |
6605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6606 | (exit $ac_status); }; }; then | |
6607 | ac_cv_lib_nsl_gethostbyname=yes | |
6608 | else | |
6609 | echo "$as_me: failed program was:" >&5 | |
6610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6611 | ||
6612 | ac_cv_lib_nsl_gethostbyname=no | |
6613 | fi | |
6614 | rm -f conftest.err conftest.$ac_objext \ | |
6615 | conftest$ac_exeext conftest.$ac_ext | |
6616 | LIBS=$ac_check_lib_save_LIBS | |
6617 | fi | |
6618 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
6619 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
6620 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
6621 | cat >>confdefs.h <<_ACEOF | |
6622 | #define HAVE_LIBNSL 1 | |
6623 | _ACEOF | |
c906108c SS |
6624 | |
6625 | LIBS="-lnsl $LIBS" | |
6626 | ||
c906108c SS |
6627 | fi |
6628 | ||
6629 | ||
6630 | . ${srcdir}/../../bfd/configure.host | |
6631 | ||
6632 | ||
6633 | ||
6634 | USE_MAINTAINER_MODE=no | |
6635 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
6636 | if test "${enable_maintainer_mode+set}" = set; then | |
6637 | enableval="$enable_maintainer_mode" | |
6638 | case "${enableval}" in | |
6639 | yes) MAINT="" USE_MAINTAINER_MODE=yes ;; | |
6640 | no) MAINT="#" ;; | |
b7026657 AC |
6641 | *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5 |
6642 | echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;} | |
6643 | { (exit 1); exit 1; }; }; MAINT="#" ;; | |
c906108c SS |
6644 | esac |
6645 | if test x"$silent" != x"yes" && test x"$MAINT" = x""; then | |
6646 | echo "Setting maintainer mode" 6>&1 | |
6647 | fi | |
6648 | else | |
6649 | MAINT="#" | |
b7026657 | 6650 | fi; |
c906108c SS |
6651 | |
6652 | ||
6653 | # Check whether --enable-sim-bswap or --disable-sim-bswap was given. | |
6654 | if test "${enable_sim_bswap+set}" = set; then | |
6655 | enableval="$enable_sim_bswap" | |
6656 | case "${enableval}" in | |
6657 | yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";; | |
6658 | no) sim_bswap="-DWITH_BSWAP=0";; | |
b7026657 AC |
6659 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5 |
6660 | echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;} | |
6661 | { (exit 1); exit 1; }; }; sim_bswap="";; | |
c906108c SS |
6662 | esac |
6663 | if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then | |
6664 | echo "Setting bswap flags = $sim_bswap" 6>&1 | |
6665 | fi | |
6666 | else | |
6667 | sim_bswap="" | |
b7026657 | 6668 | fi; |
c906108c SS |
6669 | |
6670 | ||
6671 | # Check whether --enable-sim-cflags or --disable-sim-cflags was given. | |
6672 | if test "${enable_sim_cflags+set}" = set; then | |
6673 | enableval="$enable_sim_cflags" | |
6674 | case "${enableval}" in | |
6675 | yes) sim_cflags="-O2 -fomit-frame-pointer";; | |
b7026657 AC |
6676 | trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5 |
6677 | echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;} | |
6678 | { (exit 1); exit 1; }; }; sim_cflags="";; | |
c906108c SS |
6679 | no) sim_cflags="";; |
6680 | *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6681 | esac | |
6682 | if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then | |
6683 | echo "Setting sim cflags = $sim_cflags" 6>&1 | |
6684 | fi | |
6685 | else | |
6686 | sim_cflags="" | |
b7026657 | 6687 | fi; |
c906108c SS |
6688 | |
6689 | ||
6690 | # Check whether --enable-sim-debug or --disable-sim-debug was given. | |
6691 | if test "${enable_sim_debug+set}" = set; then | |
6692 | enableval="$enable_sim_debug" | |
6693 | case "${enableval}" in | |
6694 | yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";; | |
6695 | no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";; | |
6696 | *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";; | |
6697 | esac | |
6698 | if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then | |
6699 | echo "Setting sim debug = $sim_debug" 6>&1 | |
6700 | fi | |
6701 | else | |
6702 | sim_debug="" | |
b7026657 | 6703 | fi; |
c906108c SS |
6704 | |
6705 | ||
6706 | # Check whether --enable-sim-stdio or --disable-sim-stdio was given. | |
6707 | if test "${enable_sim_stdio+set}" = set; then | |
6708 | enableval="$enable_sim_stdio" | |
6709 | case "${enableval}" in | |
6710 | yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";; | |
6711 | no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";; | |
b7026657 AC |
6712 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5 |
6713 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;} | |
6714 | { (exit 1); exit 1; }; }; sim_stdio="";; | |
c906108c SS |
6715 | esac |
6716 | if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then | |
6717 | echo "Setting stdio flags = $sim_stdio" 6>&1 | |
6718 | fi | |
6719 | else | |
6720 | sim_stdio="" | |
b7026657 | 6721 | fi; |
c906108c SS |
6722 | |
6723 | ||
6724 | # Check whether --enable-sim-trace or --disable-sim-trace was given. | |
6725 | if test "${enable_sim_trace+set}" = set; then | |
6726 | enableval="$enable_sim_trace" | |
6727 | case "${enableval}" in | |
6728 | yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";; | |
6729 | no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";; | |
6730 | [-0-9]*) | |
6731 | sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";; | |
6732 | [a-z]*) | |
6733 | sim_trace="" | |
6734 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6735 | if test x"$sim_trace" = x; then | |
6736 | sim_trace="-DWITH_TRACE='(TRACE_$x" | |
6737 | else | |
6738 | sim_trace="${sim_trace}|TRACE_$x" | |
6739 | fi | |
6740 | done | |
6741 | sim_trace="$sim_trace)'" ;; | |
6742 | esac | |
6743 | if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then | |
6744 | echo "Setting sim trace = $sim_trace" 6>&1 | |
6745 | fi | |
6746 | else | |
6747 | sim_trace="" | |
b7026657 | 6748 | fi; |
c906108c SS |
6749 | |
6750 | ||
6751 | # Check whether --enable-sim-profile or --disable-sim-profile was given. | |
6752 | if test "${enable_sim_profile+set}" = set; then | |
6753 | enableval="$enable_sim_profile" | |
6754 | case "${enableval}" in | |
6755 | yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";; | |
6756 | no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";; | |
6757 | [-0-9]*) | |
6758 | sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";; | |
6759 | [a-z]*) | |
6760 | sim_profile="" | |
6761 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6762 | if test x"$sim_profile" = x; then | |
6763 | sim_profile="-DWITH_PROFILE='(PROFILE_$x" | |
6764 | else | |
6765 | sim_profile="${sim_profile}|PROFILE_$x" | |
6766 | fi | |
6767 | done | |
6768 | sim_profile="$sim_profile)'" ;; | |
6769 | esac | |
6770 | if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then | |
6771 | echo "Setting sim profile = $sim_profile" 6>&1 | |
6772 | fi | |
6773 | else | |
eb2d80b4 | 6774 | sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1" |
b7026657 | 6775 | fi; |
c906108c SS |
6776 | |
6777 | ||
b7026657 AC |
6778 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
6779 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
6780 | if test "${ac_cv_type_signal+set}" = set; then | |
6781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6782 | else |
b7026657 AC |
6783 | cat >conftest.$ac_ext <<_ACEOF |
6784 | /* confdefs.h. */ | |
6785 | _ACEOF | |
6786 | cat confdefs.h >>conftest.$ac_ext | |
6787 | cat >>conftest.$ac_ext <<_ACEOF | |
6788 | /* end confdefs.h. */ | |
c906108c SS |
6789 | #include <sys/types.h> |
6790 | #include <signal.h> | |
6791 | #ifdef signal | |
b7026657 | 6792 | # undef signal |
c906108c SS |
6793 | #endif |
6794 | #ifdef __cplusplus | |
6795 | extern "C" void (*signal (int, void (*)(int)))(int); | |
6796 | #else | |
6797 | void (*signal ()) (); | |
6798 | #endif | |
6799 | ||
b7026657 AC |
6800 | int |
6801 | main () | |
6802 | { | |
c906108c | 6803 | int i; |
b7026657 AC |
6804 | ; |
6805 | return 0; | |
6806 | } | |
6807 | _ACEOF | |
6808 | rm -f conftest.$ac_objext | |
6809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6810 | (eval $ac_compile) 2>conftest.er1 | |
6811 | ac_status=$? | |
6812 | grep -v '^ *+' conftest.er1 >conftest.err | |
6813 | rm -f conftest.er1 | |
6814 | cat conftest.err >&5 | |
6815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6816 | (exit $ac_status); } && | |
6817 | { ac_try='test -z "$ac_c_werror_flag" | |
6818 | || test ! -s conftest.err' | |
6819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6820 | (eval $ac_try) 2>&5 | |
6821 | ac_status=$? | |
6822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6823 | (exit $ac_status); }; } && | |
6824 | { ac_try='test -s conftest.$ac_objext' | |
6825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6826 | (eval $ac_try) 2>&5 | |
6827 | ac_status=$? | |
6828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6829 | (exit $ac_status); }; }; then | |
c906108c SS |
6830 | ac_cv_type_signal=void |
6831 | else | |
b7026657 AC |
6832 | echo "$as_me: failed program was:" >&5 |
6833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6834 | ||
6835 | ac_cv_type_signal=int | |
c906108c | 6836 | fi |
b7026657 | 6837 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 6838 | fi |
b7026657 AC |
6839 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
6840 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
c906108c | 6841 | |
b7026657 | 6842 | cat >>confdefs.h <<_ACEOF |
c906108c | 6843 | #define RETSIGTYPE $ac_cv_type_signal |
b7026657 | 6844 | _ACEOF |
cd0fc7c3 SS |
6845 | |
6846 | ||
cd0fc7c3 | 6847 | |
c906108c SS |
6848 | |
6849 | ||
6850 | sim_link_files= | |
6851 | sim_link_links= | |
6852 | ||
6853 | sim_link_links=tconfig.h | |
6854 | if test -f ${srcdir}/tconfig.in | |
6855 | then | |
6856 | sim_link_files=tconfig.in | |
6857 | else | |
6858 | sim_link_files=../common/tconfig.in | |
6859 | fi | |
6860 | ||
6861 | # targ-vals.def points to the libc macro description file. | |
6862 | case "${target}" in | |
6863 | *-*-*) TARG_VALS_DEF=../common/nltvals.def ;; | |
6864 | esac | |
6865 | sim_link_files="${sim_link_files} ${TARG_VALS_DEF}" | |
6866 | sim_link_links="${sim_link_links} targ-vals.def" | |
6867 | ||
6868 | ||
6869 | ||
6870 | ||
6871 | wire_endian="BIG_ENDIAN" | |
6872 | default_endian="" | |
6873 | # Check whether --enable-sim-endian or --disable-sim-endian was given. | |
6874 | if test "${enable_sim_endian+set}" = set; then | |
6875 | enableval="$enable_sim_endian" | |
6876 | case "${enableval}" in | |
6877 | b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";; | |
6878 | l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";; | |
6879 | yes) if test x"$wire_endian" != x; then | |
6880 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}" | |
6881 | else | |
6882 | if test x"$default_endian" != x; then | |
6883 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}" | |
6884 | else | |
6885 | echo "No hard-wired endian for target $target" 1>&6 | |
6886 | sim_endian="-DWITH_TARGET_BYTE_ORDER=0" | |
6887 | fi | |
6888 | fi;; | |
6889 | no) if test x"$default_endian" != x; then | |
6890 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}" | |
6891 | else | |
6892 | if test x"$wire_endian" != x; then | |
6893 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}" | |
6894 | else | |
6895 | echo "No default endian for target $target" 1>&6 | |
6896 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0" | |
6897 | fi | |
6898 | fi;; | |
b7026657 AC |
6899 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5 |
6900 | echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;} | |
6901 | { (exit 1); exit 1; }; }; sim_endian="";; | |
c906108c SS |
6902 | esac |
6903 | if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then | |
6904 | echo "Setting endian flags = $sim_endian" 6>&1 | |
6905 | fi | |
6906 | else | |
6907 | if test x"$default_endian" != x; then | |
6908 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}" | |
6909 | else | |
6910 | if test x"$wire_endian" != x; then | |
6911 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}" | |
6912 | else | |
6913 | sim_endian= | |
6914 | fi | |
6915 | fi | |
b7026657 | 6916 | fi; |
c906108c SS |
6917 | wire_alignment="STRICT_ALIGNMENT" |
6918 | default_alignment="" | |
6919 | ||
6920 | # Check whether --enable-sim-alignment or --disable-sim-alignment was given. | |
6921 | if test "${enable_sim_alignment+set}" = set; then | |
6922 | enableval="$enable_sim_alignment" | |
6923 | case "${enableval}" in | |
6924 | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";; | |
6925 | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";; | |
6926 | forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";; | |
6927 | yes) if test x"$wire_alignment" != x; then | |
6928 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
6929 | else | |
6930 | if test x"$default_alignment" != x; then | |
6931 | sim_alignment="-DWITH_ALIGNMENT=${default_alignment}" | |
6932 | else | |
6933 | echo "No hard-wired alignment for target $target" 1>&6 | |
6934 | sim_alignment="-DWITH_ALIGNMENT=0" | |
6935 | fi | |
6936 | fi;; | |
6937 | no) if test x"$default_alignment" != x; then | |
6938 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
6939 | else | |
6940 | if test x"$wire_alignment" != x; then | |
6941 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}" | |
6942 | else | |
6943 | echo "No default alignment for target $target" 1>&6 | |
6944 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0" | |
6945 | fi | |
6946 | fi;; | |
b7026657 AC |
6947 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5 |
6948 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;} | |
6949 | { (exit 1); exit 1; }; }; sim_alignment="";; | |
c906108c SS |
6950 | esac |
6951 | if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then | |
6952 | echo "Setting alignment flags = $sim_alignment" 6>&1 | |
6953 | fi | |
6954 | else | |
6955 | if test x"$default_alignment" != x; then | |
6956 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
6957 | else | |
6958 | if test x"$wire_alignment" != x; then | |
6959 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
6960 | else | |
6961 | sim_alignment= | |
6962 | fi | |
6963 | fi | |
b7026657 | 6964 | fi; |
c906108c SS |
6965 | |
6966 | # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given. | |
6967 | if test "${enable_sim_hostendian+set}" = set; then | |
6968 | enableval="$enable_sim_hostendian" | |
6969 | case "${enableval}" in | |
6970 | no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";; | |
6971 | b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";; | |
6972 | l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";; | |
b7026657 AC |
6973 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5 |
6974 | echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;} | |
6975 | { (exit 1); exit 1; }; }; sim_hostendian="";; | |
c906108c SS |
6976 | esac |
6977 | if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then | |
6978 | echo "Setting hostendian flags = $sim_hostendian" 6>&1 | |
6979 | fi | |
6980 | else | |
b7026657 | 6981 | |
c906108c | 6982 | if test "x$cross_compiling" = "xno"; then |
b7026657 AC |
6983 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
6984 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
6985 | if test "${ac_cv_c_bigendian+set}" = set; then | |
6986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6987 | else | |
6988 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6989 | cat >conftest.$ac_ext <<_ACEOF | |
6990 | /* confdefs.h. */ | |
6991 | _ACEOF | |
6992 | cat confdefs.h >>conftest.$ac_ext | |
6993 | cat >>conftest.$ac_ext <<_ACEOF | |
6994 | /* end confdefs.h. */ | |
c906108c SS |
6995 | #include <sys/types.h> |
6996 | #include <sys/param.h> | |
c906108c | 6997 | |
b7026657 AC |
6998 | int |
6999 | main () | |
7000 | { | |
c906108c SS |
7001 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
7002 | bogus endian macros | |
7003 | #endif | |
b7026657 AC |
7004 | |
7005 | ; | |
7006 | return 0; | |
7007 | } | |
7008 | _ACEOF | |
7009 | rm -f conftest.$ac_objext | |
7010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7011 | (eval $ac_compile) 2>conftest.er1 | |
7012 | ac_status=$? | |
7013 | grep -v '^ *+' conftest.er1 >conftest.err | |
7014 | rm -f conftest.er1 | |
7015 | cat conftest.err >&5 | |
7016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7017 | (exit $ac_status); } && | |
7018 | { ac_try='test -z "$ac_c_werror_flag" | |
7019 | || test ! -s conftest.err' | |
7020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7021 | (eval $ac_try) 2>&5 | |
7022 | ac_status=$? | |
7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7024 | (exit $ac_status); }; } && | |
7025 | { ac_try='test -s conftest.$ac_objext' | |
7026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7027 | (eval $ac_try) 2>&5 | |
7028 | ac_status=$? | |
7029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7030 | (exit $ac_status); }; }; then | |
c906108c | 7031 | # It does; now see whether it defined to BIG_ENDIAN or not. |
b7026657 AC |
7032 | cat >conftest.$ac_ext <<_ACEOF |
7033 | /* confdefs.h. */ | |
7034 | _ACEOF | |
7035 | cat confdefs.h >>conftest.$ac_ext | |
7036 | cat >>conftest.$ac_ext <<_ACEOF | |
7037 | /* end confdefs.h. */ | |
c906108c SS |
7038 | #include <sys/types.h> |
7039 | #include <sys/param.h> | |
c906108c | 7040 | |
b7026657 AC |
7041 | int |
7042 | main () | |
7043 | { | |
c906108c SS |
7044 | #if BYTE_ORDER != BIG_ENDIAN |
7045 | not big endian | |
7046 | #endif | |
b7026657 AC |
7047 | |
7048 | ; | |
7049 | return 0; | |
7050 | } | |
7051 | _ACEOF | |
7052 | rm -f conftest.$ac_objext | |
7053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7054 | (eval $ac_compile) 2>conftest.er1 | |
7055 | ac_status=$? | |
7056 | grep -v '^ *+' conftest.er1 >conftest.err | |
7057 | rm -f conftest.er1 | |
7058 | cat conftest.err >&5 | |
7059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7060 | (exit $ac_status); } && | |
7061 | { ac_try='test -z "$ac_c_werror_flag" | |
7062 | || test ! -s conftest.err' | |
7063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7064 | (eval $ac_try) 2>&5 | |
7065 | ac_status=$? | |
7066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7067 | (exit $ac_status); }; } && | |
7068 | { ac_try='test -s conftest.$ac_objext' | |
7069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7070 | (eval $ac_try) 2>&5 | |
7071 | ac_status=$? | |
7072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7073 | (exit $ac_status); }; }; then | |
c906108c SS |
7074 | ac_cv_c_bigendian=yes |
7075 | else | |
b7026657 AC |
7076 | echo "$as_me: failed program was:" >&5 |
7077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7078 | ||
7079 | ac_cv_c_bigendian=no | |
c906108c | 7080 | fi |
b7026657 | 7081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 7082 | else |
b7026657 AC |
7083 | echo "$as_me: failed program was:" >&5 |
7084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7085 | ||
7086 | # It does not; compile a test program. | |
c906108c | 7087 | if test "$cross_compiling" = yes; then |
b7026657 AC |
7088 | # try to guess the endianness by grepping values into an object file |
7089 | ac_cv_c_bigendian=unknown | |
7090 | cat >conftest.$ac_ext <<_ACEOF | |
7091 | /* confdefs.h. */ | |
7092 | _ACEOF | |
7093 | cat confdefs.h >>conftest.$ac_ext | |
7094 | cat >>conftest.$ac_ext <<_ACEOF | |
7095 | /* end confdefs.h. */ | |
7096 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
7097 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
7098 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
7099 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
7100 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
7101 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
7102 | int | |
7103 | main () | |
7104 | { | |
7105 | _ascii (); _ebcdic (); | |
7106 | ; | |
7107 | return 0; | |
7108 | } | |
7109 | _ACEOF | |
7110 | rm -f conftest.$ac_objext | |
7111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7112 | (eval $ac_compile) 2>conftest.er1 | |
7113 | ac_status=$? | |
7114 | grep -v '^ *+' conftest.er1 >conftest.err | |
7115 | rm -f conftest.er1 | |
7116 | cat conftest.err >&5 | |
7117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7118 | (exit $ac_status); } && | |
7119 | { ac_try='test -z "$ac_c_werror_flag" | |
7120 | || test ! -s conftest.err' | |
7121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7122 | (eval $ac_try) 2>&5 | |
7123 | ac_status=$? | |
7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7125 | (exit $ac_status); }; } && | |
7126 | { ac_try='test -s conftest.$ac_objext' | |
7127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7128 | (eval $ac_try) 2>&5 | |
7129 | ac_status=$? | |
7130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7131 | (exit $ac_status); }; }; then | |
7132 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
7133 | ac_cv_c_bigendian=yes | |
7134 | fi | |
7135 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
7136 | if test "$ac_cv_c_bigendian" = unknown; then | |
7137 | ac_cv_c_bigendian=no | |
7138 | else | |
7139 | # finding both strings is unlikely to happen, but who knows? | |
7140 | ac_cv_c_bigendian=unknown | |
7141 | fi | |
7142 | fi | |
7143 | else | |
7144 | echo "$as_me: failed program was:" >&5 | |
7145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7146 | ||
7147 | fi | |
7148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 7149 | else |
b7026657 AC |
7150 | cat >conftest.$ac_ext <<_ACEOF |
7151 | /* confdefs.h. */ | |
7152 | _ACEOF | |
7153 | cat confdefs.h >>conftest.$ac_ext | |
7154 | cat >>conftest.$ac_ext <<_ACEOF | |
7155 | /* end confdefs.h. */ | |
7156 | int | |
7157 | main () | |
7158 | { | |
c906108c SS |
7159 | /* Are we little or big endian? From Harbison&Steele. */ |
7160 | union | |
7161 | { | |
7162 | long l; | |
7163 | char c[sizeof (long)]; | |
7164 | } u; | |
7165 | u.l = 1; | |
7166 | exit (u.c[sizeof (long) - 1] == 1); | |
7167 | } | |
b7026657 AC |
7168 | _ACEOF |
7169 | rm -f conftest$ac_exeext | |
7170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7171 | (eval $ac_link) 2>&5 | |
7172 | ac_status=$? | |
7173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7174 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7176 | (eval $ac_try) 2>&5 | |
7177 | ac_status=$? | |
7178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7179 | (exit $ac_status); }; }; then | |
c906108c SS |
7180 | ac_cv_c_bigendian=no |
7181 | else | |
b7026657 AC |
7182 | echo "$as_me: program exited with status $ac_status" >&5 |
7183 | echo "$as_me: failed program was:" >&5 | |
7184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7185 | ||
7186 | ( exit $ac_status ) | |
7187 | ac_cv_c_bigendian=yes | |
c906108c | 7188 | fi |
b7026657 | 7189 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 7190 | fi |
c906108c | 7191 | fi |
b7026657 | 7192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 7193 | fi |
b7026657 AC |
7194 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
7195 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
7196 | case $ac_cv_c_bigendian in | |
7197 | yes) | |
c906108c | 7198 | |
b7026657 | 7199 | cat >>confdefs.h <<\_ACEOF |
c906108c | 7200 | #define WORDS_BIGENDIAN 1 |
b7026657 AC |
7201 | _ACEOF |
7202 | ;; | |
7203 | no) | |
7204 | ;; | |
7205 | *) | |
7206 | { { echo "$as_me:$LINENO: error: unknown endianness | |
7207 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
7208 | echo "$as_me: error: unknown endianness | |
7209 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
7210 | { (exit 1); exit 1; }; } ;; | |
7211 | esac | |
c906108c SS |
7212 | |
7213 | if test $ac_cv_c_bigendian = yes; then | |
7214 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN" | |
7215 | else | |
7216 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN" | |
7217 | fi | |
7218 | else | |
7219 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=0" | |
7220 | fi | |
b7026657 | 7221 | fi; |
c906108c SS |
7222 | |
7223 | default_sim_scache="16384" | |
7224 | # Check whether --enable-sim-scache or --disable-sim-scache was given. | |
7225 | if test "${enable_sim_scache+set}" = set; then | |
7226 | enableval="$enable_sim_scache" | |
7227 | case "${enableval}" in | |
7228 | yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";; | |
7229 | no) sim_scache="-DWITH_SCACHE=0" ;; | |
9397fcbf | 7230 | [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";; |
b7026657 AC |
7231 | *) { { echo "$as_me:$LINENO: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&5 |
7232 | echo "$as_me: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&2;} | |
7233 | { (exit 1); exit 1; }; }; | |
c906108c SS |
7234 | sim_scache="";; |
7235 | esac | |
7236 | if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then | |
7237 | echo "Setting scache size = $sim_scache" 6>&1 | |
7238 | fi | |
7239 | else | |
7240 | sim_scache="-DWITH_SCACHE=${default_sim_scache}" | |
b7026657 | 7241 | fi; |
c906108c SS |
7242 | |
7243 | ||
7244 | default_sim_default_model="m32r/d" | |
7245 | # Check whether --enable-sim-default-model or --disable-sim-default-model was given. | |
7246 | if test "${enable_sim_default_model+set}" = set; then | |
7247 | enableval="$enable_sim_default_model" | |
7248 | case "${enableval}" in | |
b7026657 AC |
7249 | yes|no) { { echo "$as_me:$LINENO: error: \"Missing argument to --enable-sim-default-model\"" >&5 |
7250 | echo "$as_me: error: \"Missing argument to --enable-sim-default-model\"" >&2;} | |
7251 | { (exit 1); exit 1; }; };; | |
c906108c SS |
7252 | *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";; |
7253 | esac | |
7254 | if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then | |
7255 | echo "Setting default model = $sim_default_model" 6>&1 | |
7256 | fi | |
7257 | else | |
7258 | sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'" | |
b7026657 | 7259 | fi; |
c906108c SS |
7260 | |
7261 | ||
7262 | # Check whether --enable-sim-environment or --disable-sim-environment was given. | |
7263 | if test "${enable_sim_environment+set}" = set; then | |
7264 | enableval="$enable_sim_environment" | |
7265 | case "${enableval}" in | |
7266 | all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";; | |
7267 | user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";; | |
7268 | virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";; | |
7269 | operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";; | |
b7026657 AC |
7270 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&5 |
7271 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&2;} | |
7272 | { (exit 1); exit 1; }; }; | |
c906108c SS |
7273 | sim_environment="";; |
7274 | esac | |
7275 | if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then | |
7276 | echo "Setting sim environment = $sim_environment" 6>&1 | |
7277 | fi | |
7278 | else | |
7279 | sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT" | |
b7026657 | 7280 | fi; |
c906108c SS |
7281 | |
7282 | default_sim_inline="" | |
7283 | # Check whether --enable-sim-inline or --disable-sim-inline was given. | |
7284 | if test "${enable_sim_inline+set}" = set; then | |
7285 | enableval="$enable_sim_inline" | |
7286 | sim_inline="" | |
7287 | case "$enableval" in | |
7288 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
7289 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
7290 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";; | |
7291 | 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";; | |
7292 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
7293 | new_flag="" | |
7294 | case "$x" in | |
7295 | *_INLINE=*) new_flag="-D$x";; | |
7296 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
7297 | *_INLINE) new_flag="-D$x=ALL_C_INLINE";; | |
7298 | *) new_flag="-D$x""_INLINE=ALL_C_INLINE";; | |
7299 | esac | |
7300 | if test x"$sim_inline" = x""; then | |
7301 | sim_inline="$new_flag" | |
7302 | else | |
7303 | sim_inline="$sim_inline $new_flag" | |
7304 | fi | |
7305 | done;; | |
7306 | esac | |
7307 | if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then | |
7308 | echo "Setting inline flags = $sim_inline" 6>&1 | |
7309 | fi | |
7310 | else | |
b7026657 | 7311 | |
c906108c SS |
7312 | if test "x$cross_compiling" = "xno"; then |
7313 | if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then | |
7314 | sim_inline="${default_sim_inline}" | |
7315 | if test x"$silent" != x"yes"; then | |
7316 | echo "Setting inline flags = $sim_inline" 6>&1 | |
7317 | fi | |
7318 | else | |
b7026657 AC |
7319 | sim_inline="" |
7320 | fi | |
7321 | else | |
7322 | sim_inline="-DDEFAULT_INLINE=0" | |
7323 | fi | |
7324 | fi; | |
7325 | ||
7326 | cgen_maint=no | |
7327 | cgen=guile | |
7328 | cgendir='$(srcdir)/../../cgen' | |
7329 | # Check whether --enable-cgen-maint or --disable-cgen-maint was given. | |
7330 | if test "${enable_cgen_maint+set}" = set; then | |
7331 | enableval="$enable_cgen_maint" | |
7332 | case "${enableval}" in | |
7333 | yes) cgen_maint=yes ;; | |
7334 | no) cgen_maint=no ;; | |
7335 | *) | |
7336 | # argument is cgen install directory (not implemented yet). | |
7337 | # Having a `share' directory might be more appropriate for the .scm, | |
7338 | # .cpu, etc. files. | |
7339 | cgendir=${cgen_maint}/lib/cgen | |
7340 | cgen=guile | |
7341 | ;; | |
7342 | esac | |
7343 | fi; if test x${cgen_maint} != xno ; then | |
7344 | CGEN_MAINT='' | |
7345 | else | |
7346 | CGEN_MAINT='#' | |
7347 | fi | |
7348 | ||
7349 | ||
7350 | ||
7351 | ||
7352 | ||
7353 | case "${target_alias}" in | |
7354 | m32r*-linux*) | |
7355 | traps_obj=traps-linux.o | |
7356 | sim_extra_cflags="-DM32R_LINUX" | |
7357 | ;; | |
7358 | *) | |
7359 | traps_obj=traps.o | |
7360 | sim_extra_cflags="-DM32R_ELF" | |
7361 | ;; | |
7362 | esac | |
7363 | ||
7364 | ||
7365 | ||
7366 | ||
7367 | ||
7368 | ac_sources="$sim_link_files" | |
7369 | ac_dests="$sim_link_links" | |
7370 | while test -n "$ac_sources"; do | |
7371 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
7372 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
7373 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
7374 | done | |
7375 | ac_config_links="$ac_config_links $ac_config_links_1" | |
7376 | ||
7377 | cgen_breaks="" | |
7378 | if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then | |
7379 | cgen_breaks="break cgen_rtx_error"; | |
7380 | fi | |
7381 | ||
7382 | ac_config_files="$ac_config_files Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in" | |
7383 | ac_config_commands="$ac_config_commands default" | |
7384 | cat >confcache <<\_ACEOF | |
7385 | # This file is a shell script that caches the results of configure | |
7386 | # tests run on this system so they can be shared between configure | |
7387 | # scripts and configure runs, see configure's option --config-cache. | |
7388 | # It is not useful on other systems. If it contains results you don't | |
7389 | # want to keep, you may remove or edit it. | |
7390 | # | |
7391 | # config.status only pays attention to the cache file if you give it | |
7392 | # the --recheck option to rerun configure. | |
7393 | # | |
7394 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7395 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7396 | # following values. | |
7397 | ||
7398 | _ACEOF | |
7399 | ||
7400 | # The following way of writing the cache mishandles newlines in values, | |
7401 | # but we know of no workaround that is simple, portable, and efficient. | |
7402 | # So, don't put newlines in cache variables' values. | |
7403 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7404 | # and sets the high bit in the cache file unless we assign to the vars. | |
7405 | { | |
7406 | (set) 2>&1 | | |
7407 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7408 | *ac_space=\ *) | |
7409 | # `set' does not quote correctly, so add quotes (double-quote | |
7410 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7411 | sed -n \ | |
7412 | "s/'/'\\\\''/g; | |
7413 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7414 | ;; | |
7415 | *) | |
7416 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7417 | sed -n \ | |
7418 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
7419 | ;; | |
7420 | esac; | |
7421 | } | | |
7422 | sed ' | |
7423 | t clear | |
7424 | : clear | |
7425 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7426 | t end | |
7427 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7428 | : end' >>confcache | |
7429 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
7430 | if test -w $cache_file; then | |
7431 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
7432 | cat confcache >$cache_file | |
7433 | else | |
7434 | echo "not updating unwritable cache $cache_file" | |
7435 | fi | |
7436 | fi | |
7437 | rm -f confcache | |
7438 | ||
7439 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7440 | # Let make expand exec_prefix. | |
7441 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7442 | ||
7443 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
7444 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7445 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7446 | # (actually we leave an empty line to preserve line numbers). | |
7447 | if test "x$srcdir" = x.; then | |
7448 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7449 | s/:*\$(srcdir):*/:/; | |
7450 | s/:*\${srcdir}:*/:/; | |
7451 | s/:*@srcdir@:*/:/; | |
7452 | s/^\([^=]*=[ ]*\):*/\1/; | |
7453 | s/:*$//; | |
7454 | s/^[^=]*=[ ]*$//; | |
7455 | }' | |
7456 | fi | |
7457 | ||
7458 | DEFS=-DHAVE_CONFIG_H | |
7459 | ||
7460 | ac_libobjs= | |
7461 | ac_ltlibobjs= | |
7462 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7463 | # 1. Remove the extension, and $U if already installed. | |
7464 | ac_i=`echo "$ac_i" | | |
7465 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
7466 | # 2. Add them. | |
7467 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
7468 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
7469 | done | |
7470 | LIBOBJS=$ac_libobjs | |
7471 | ||
7472 | LTLIBOBJS=$ac_ltlibobjs | |
7473 | ||
7474 | ||
7475 | ||
7476 | : ${CONFIG_STATUS=./config.status} | |
7477 | ac_clean_files_save=$ac_clean_files | |
7478 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7479 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
7480 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7481 | cat >$CONFIG_STATUS <<_ACEOF | |
7482 | #! $SHELL | |
7483 | # Generated by $as_me. | |
7484 | # Run this file to recreate the current configuration. | |
7485 | # Compiler output produced by configure, useful for debugging | |
7486 | # configure, is in config.log if it exists. | |
7487 | ||
7488 | debug=false | |
7489 | ac_cs_recheck=false | |
7490 | ac_cs_silent=false | |
7491 | SHELL=\${CONFIG_SHELL-$SHELL} | |
7492 | _ACEOF | |
7493 | ||
7494 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7495 | ## --------------------- ## | |
7496 | ## M4sh Initialization. ## | |
7497 | ## --------------------- ## | |
7498 | ||
7499 | # Be Bourne compatible | |
7500 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7501 | emulate sh | |
7502 | NULLCMD=: | |
7503 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
7504 | # is contrary to our usage. Disable this feature. | |
7505 | alias -g '${1+"$@"}'='"$@"' | |
7506 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
7507 | set -o posix | |
7508 | fi | |
7509 | DUALCASE=1; export DUALCASE # for MKS sh | |
7510 | ||
7511 | # Support unset when possible. | |
7512 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7513 | as_unset=unset | |
7514 | else | |
7515 | as_unset=false | |
7516 | fi | |
7517 | ||
7518 | ||
7519 | # Work around bugs in pre-3.0 UWIN ksh. | |
7520 | $as_unset ENV MAIL MAILPATH | |
7521 | PS1='$ ' | |
7522 | PS2='> ' | |
7523 | PS4='+ ' | |
7524 | ||
7525 | # NLS nuisances. | |
7526 | for as_var in \ | |
7527 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
7528 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
7529 | LC_TELEPHONE LC_TIME | |
7530 | do | |
7531 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
7532 | eval $as_var=C; export $as_var | |
7533 | else | |
7534 | $as_unset $as_var | |
c906108c | 7535 | fi |
b7026657 AC |
7536 | done |
7537 | ||
7538 | # Required to use basename. | |
7539 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7540 | as_expr=expr | |
c906108c | 7541 | else |
b7026657 | 7542 | as_expr=false |
c906108c | 7543 | fi |
b7026657 AC |
7544 | |
7545 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
7546 | as_basename=basename | |
7547 | else | |
7548 | as_basename=false | |
c906108c SS |
7549 | fi |
7550 | ||
7551 | ||
b7026657 AC |
7552 | # Name of the executable. |
7553 | as_me=`$as_basename "$0" || | |
7554 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
7555 | X"$0" : 'X\(//\)$' \| \ | |
7556 | X"$0" : 'X\(/\)$' \| \ | |
7557 | . : '\(.\)' 2>/dev/null || | |
7558 | echo X/"$0" | | |
7559 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
7560 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
7561 | /^X\/\(\/\).*/{ s//\1/; q; } | |
7562 | s/.*/./; q'` | |
7563 | ||
7564 | ||
7565 | # PATH needs CR, and LINENO needs CR and PATH. | |
7566 | # Avoid depending upon Character Ranges. | |
7567 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7568 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7569 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7570 | as_cr_digits='0123456789' | |
7571 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7572 | ||
7573 | # The user is always right. | |
7574 | if test "${PATH_SEPARATOR+set}" != set; then | |
7575 | echo "#! /bin/sh" >conf$$.sh | |
7576 | echo "exit 0" >>conf$$.sh | |
7577 | chmod +x conf$$.sh | |
7578 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7579 | PATH_SEPARATOR=';' | |
7580 | else | |
7581 | PATH_SEPARATOR=: | |
7582 | fi | |
7583 | rm -f conf$$.sh | |
7584 | fi | |
7585 | ||
7586 | ||
7587 | as_lineno_1=$LINENO | |
7588 | as_lineno_2=$LINENO | |
7589 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7590 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7591 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
7592 | # Find who we are. Look in the path if we contain no path at all | |
7593 | # relative or not. | |
7594 | case $0 in | |
7595 | *[\\/]* ) as_myself=$0 ;; | |
7596 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7597 | for as_dir in $PATH | |
7598 | do | |
7599 | IFS=$as_save_IFS | |
7600 | test -z "$as_dir" && as_dir=. | |
7601 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7602 | done | |
7603 | ||
7604 | ;; | |
7605 | esac | |
7606 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7607 | # in which case we are not to be found in the path. | |
7608 | if test "x$as_myself" = x; then | |
7609 | as_myself=$0 | |
7610 | fi | |
7611 | if test ! -f "$as_myself"; then | |
7612 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
7613 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
7614 | { (exit 1); exit 1; }; } | |
7615 | fi | |
7616 | case $CONFIG_SHELL in | |
7617 | '') | |
7618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7619 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
7620 | do | |
7621 | IFS=$as_save_IFS | |
7622 | test -z "$as_dir" && as_dir=. | |
7623 | for as_base in sh bash ksh sh5; do | |
7624 | case $as_dir in | |
7625 | /*) | |
7626 | if ("$as_dir/$as_base" -c ' | |
7627 | as_lineno_1=$LINENO | |
7628 | as_lineno_2=$LINENO | |
7629 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7630 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7631 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
7632 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
7633 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
7634 | CONFIG_SHELL=$as_dir/$as_base | |
7635 | export CONFIG_SHELL | |
7636 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
7637 | fi;; | |
7638 | esac | |
7639 | done | |
7640 | done | |
7641 | ;; | |
7642 | esac | |
7643 | ||
7644 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
7645 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7646 | # line-number line before each line; the second 'sed' does the real | |
7647 | # work. The second script uses 'N' to pair each line-number line | |
7648 | # with the numbered line, and appends trailing '-' during | |
7649 | # substitution so that $LINENO is not a special case at line end. | |
7650 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7651 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7652 | sed '=' <$as_myself | | |
7653 | sed ' | |
7654 | N | |
7655 | s,$,-, | |
7656 | : loop | |
7657 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7658 | t loop | |
7659 | s,-$,, | |
7660 | s,^['$as_cr_digits']*\n,, | |
7661 | ' >$as_me.lineno && | |
7662 | chmod +x $as_me.lineno || | |
7663 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
7664 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
7665 | { (exit 1); exit 1; }; } | |
7666 | ||
7667 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7668 | # (the dirname of $[0] is not the place where we might find the | |
7669 | # original and so on. Autoconf is especially sensible to this). | |
7670 | . ./$as_me.lineno | |
7671 | # Exit status is that of the last command. | |
7672 | exit | |
7673 | } | |
7674 | ||
7675 | ||
7676 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
7677 | *c*,-n*) ECHO_N= ECHO_C=' | |
7678 | ' ECHO_T=' ' ;; | |
7679 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7680 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
c906108c | 7681 | esac |
b7026657 AC |
7682 | |
7683 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7684 | as_expr=expr | |
7685 | else | |
7686 | as_expr=false | |
c906108c | 7687 | fi |
b7026657 AC |
7688 | |
7689 | rm -f conf$$ conf$$.exe conf$$.file | |
7690 | echo >conf$$.file | |
7691 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7692 | # We could just check for DJGPP; but this test a) works b) is more generic | |
7693 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7694 | if test -f conf$$.exe; then | |
7695 | # Don't use ln at all; we don't have any links | |
7696 | as_ln_s='cp -p' | |
7697 | else | |
7698 | as_ln_s='ln -s' | |
7699 | fi | |
7700 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7701 | as_ln_s=ln | |
c906108c | 7702 | else |
b7026657 | 7703 | as_ln_s='cp -p' |
c906108c | 7704 | fi |
b7026657 | 7705 | rm -f conf$$ conf$$.exe conf$$.file |
c906108c | 7706 | |
b7026657 AC |
7707 | if mkdir -p . 2>/dev/null; then |
7708 | as_mkdir_p=: | |
7709 | else | |
7710 | test -d ./-p && rmdir ./-p | |
7711 | as_mkdir_p=false | |
7712 | fi | |
c906108c | 7713 | |
b7026657 | 7714 | as_executable_p="test -f" |
c906108c | 7715 | |
b7026657 AC |
7716 | # Sed expression to map a string onto a valid CPP name. |
7717 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 7718 | |
b7026657 AC |
7719 | # Sed expression to map a string onto a valid variable name. |
7720 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 7721 | |
6edf0760 | 7722 | |
b7026657 AC |
7723 | # IFS |
7724 | # We need space, tab and new line, in precisely that order. | |
7725 | as_nl=' | |
7726 | ' | |
7727 | IFS=" $as_nl" | |
6edf0760 | 7728 | |
b7026657 AC |
7729 | # CDPATH. |
7730 | $as_unset CDPATH | |
6edf0760 | 7731 | |
b7026657 | 7732 | exec 6>&1 |
6edf0760 | 7733 | |
b7026657 AC |
7734 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
7735 | # report actual input values of CONFIG_FILES etc. instead of their | |
7736 | # values after options handling. Logging --version etc. is OK. | |
7737 | exec 5>>config.log | |
7738 | { | |
7739 | echo | |
7740 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7741 | ## Running $as_me. ## | |
7742 | _ASBOX | |
7743 | } >&5 | |
7744 | cat >&5 <<_CSEOF | |
c906108c | 7745 | |
b7026657 AC |
7746 | This file was extended by $as_me, which was |
7747 | generated by GNU Autoconf 2.59. Invocation command line was | |
c906108c | 7748 | |
b7026657 AC |
7749 | CONFIG_FILES = $CONFIG_FILES |
7750 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7751 | CONFIG_LINKS = $CONFIG_LINKS | |
7752 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7753 | $ $0 $@ | |
7754 | ||
7755 | _CSEOF | |
7756 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
7757 | echo >&5 | |
7758 | _ACEOF | |
7759 | ||
7760 | # Files that config.status was made for. | |
7761 | if test -n "$ac_config_files"; then | |
7762 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
379832de HPN |
7763 | fi |
7764 | ||
b7026657 AC |
7765 | if test -n "$ac_config_headers"; then |
7766 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7767 | fi | |
7768 | ||
7769 | if test -n "$ac_config_links"; then | |
7770 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7771 | fi | |
7772 | ||
7773 | if test -n "$ac_config_commands"; then | |
7774 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7775 | fi | |
7776 | ||
7777 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7778 | ||
7779 | ac_cs_usage="\ | |
7780 | \`$as_me' instantiates files from templates according to the | |
7781 | current configuration. | |
7782 | ||
7783 | Usage: $0 [OPTIONS] [FILE]... | |
7784 | ||
7785 | -h, --help print this help, then exit | |
7786 | -V, --version print version number, then exit | |
7787 | -q, --quiet do not print progress messages | |
7788 | -d, --debug don't remove temporary files | |
7789 | --recheck update $as_me by reconfiguring in the same conditions | |
7790 | --file=FILE[:TEMPLATE] | |
7791 | instantiate the configuration file FILE | |
7792 | --header=FILE[:TEMPLATE] | |
7793 | instantiate the configuration header FILE | |
7794 | ||
7795 | Configuration files: | |
7796 | $config_files | |
7797 | ||
7798 | Configuration headers: | |
7799 | $config_headers | |
7800 | ||
7801 | Configuration links: | |
7802 | $config_links | |
7803 | ||
7804 | Configuration commands: | |
7805 | $config_commands | |
7806 | ||
7807 | Report bugs to <bug-autoconf@gnu.org>." | |
7808 | _ACEOF | |
7809 | ||
7810 | cat >>$CONFIG_STATUS <<_ACEOF | |
7811 | ac_cs_version="\\ | |
7812 | config.status | |
7813 | configured by $0, generated by GNU Autoconf 2.59, | |
7814 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
7815 | ||
7816 | Copyright (C) 2003 Free Software Foundation, Inc. | |
7817 | This config.status script is free software; the Free Software Foundation | |
7818 | gives unlimited permission to copy, distribute and modify it." | |
7819 | srcdir=$srcdir | |
7820 | INSTALL="$INSTALL" | |
7821 | _ACEOF | |
7822 | ||
7823 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7824 | # If no file are specified by the user, then we need to provide default | |
7825 | # value. By we need to know if files were specified by the user. | |
7826 | ac_need_defaults=: | |
7827 | while test $# != 0 | |
7828 | do | |
7829 | case $1 in | |
7830 | --*=*) | |
7831 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7832 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
7833 | ac_shift=: | |
c906108c | 7834 | ;; |
b7026657 AC |
7835 | -*) |
7836 | ac_option=$1 | |
7837 | ac_optarg=$2 | |
7838 | ac_shift=shift | |
c906108c | 7839 | ;; |
b7026657 AC |
7840 | *) # This is not an option, so the user has probably given explicit |
7841 | # arguments. | |
7842 | ac_option=$1 | |
7843 | ac_need_defaults=false;; | |
7844 | esac | |
c906108c | 7845 | |
b7026657 AC |
7846 | case $ac_option in |
7847 | # Handling of the options. | |
7848 | _ACEOF | |
7849 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7850 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
7851 | ac_cs_recheck=: ;; | |
7852 | --version | --vers* | -V ) | |
7853 | echo "$ac_cs_version"; exit 0 ;; | |
7854 | --he | --h) | |
7855 | # Conflict between --help and --header | |
7856 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
7857 | Try \`$0 --help' for more information." >&5 | |
7858 | echo "$as_me: error: ambiguous option: $1 | |
7859 | Try \`$0 --help' for more information." >&2;} | |
7860 | { (exit 1); exit 1; }; };; | |
7861 | --help | --hel | -h ) | |
7862 | echo "$ac_cs_usage"; exit 0 ;; | |
7863 | --debug | --d* | -d ) | |
7864 | debug=: ;; | |
7865 | --file | --fil | --fi | --f ) | |
7866 | $ac_shift | |
7867 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
7868 | ac_need_defaults=false;; | |
7869 | --header | --heade | --head | --hea ) | |
7870 | $ac_shift | |
7871 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
7872 | ac_need_defaults=false;; | |
7873 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
7874 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7875 | ac_cs_silent=: ;; | |
c906108c | 7876 | |
b7026657 AC |
7877 | # This is an error. |
7878 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
7879 | Try \`$0 --help' for more information." >&5 | |
7880 | echo "$as_me: error: unrecognized option: $1 | |
7881 | Try \`$0 --help' for more information." >&2;} | |
7882 | { (exit 1); exit 1; }; } ;; | |
c906108c | 7883 | |
b7026657 AC |
7884 | *) ac_config_targets="$ac_config_targets $1" ;; |
7885 | ||
7886 | esac | |
7887 | shift | |
7888 | done | |
7889 | ||
7890 | ac_configure_extra_args= | |
7891 | ||
7892 | if $ac_cs_silent; then | |
7893 | exec 6>/dev/null | |
7894 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c SS |
7895 | fi |
7896 | ||
b7026657 AC |
7897 | _ACEOF |
7898 | cat >>$CONFIG_STATUS <<_ACEOF | |
7899 | if \$ac_cs_recheck; then | |
7900 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
7901 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7902 | fi | |
c906108c | 7903 | |
b7026657 | 7904 | _ACEOF |
c906108c | 7905 | |
c906108c | 7906 | |
c906108c | 7907 | |
b7026657 AC |
7908 | |
7909 | ||
7910 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7911 | for ac_config_target in $ac_config_targets | |
c906108c | 7912 | do |
b7026657 AC |
7913 | case "$ac_config_target" in |
7914 | # Handling of arguments. | |
7915 | "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;; | |
7916 | "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;; | |
7917 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;; | |
7918 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
7919 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
7920 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
7921 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
7922 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
7923 | { (exit 1); exit 1; }; };; | |
c906108c SS |
7924 | esac |
7925 | done | |
7926 | ||
b7026657 AC |
7927 | # If the user did not use the arguments to specify the items to instantiate, |
7928 | # then the envvar interface is used. Set only those that are not. | |
7929 | # We use the long form for the default assignment because of an extremely | |
7930 | # bizarre bug on SunOS 4.1.3. | |
7931 | if $ac_need_defaults; then | |
7932 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7933 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7934 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
7935 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7936 | fi | |
7937 | ||
7938 | # Have a temporary directory for convenience. Make it in the build tree | |
7939 | # simply because there is no reason to put it here, and in addition, | |
7940 | # creating and moving files from /tmp can sometimes cause problems. | |
7941 | # Create a temporary directory, and hook for its removal unless debugging. | |
7942 | $debug || | |
7943 | { | |
7944 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7945 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
7946 | } | |
c906108c | 7947 | |
b7026657 | 7948 | # Create a (secure) tmp directory for tmp files. |
c906108c | 7949 | |
b7026657 AC |
7950 | { |
7951 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
7952 | test -n "$tmp" && test -d "$tmp" | |
7953 | } || | |
7954 | { | |
7955 | tmp=./confstat$$-$RANDOM | |
7956 | (umask 077 && mkdir $tmp) | |
7957 | } || | |
7958 | { | |
7959 | echo "$me: cannot create a temporary directory in ." >&2 | |
7960 | { (exit 1); exit 1; } | |
7961 | } | |
7962 | ||
7963 | _ACEOF | |
7964 | ||
7965 | cat >>$CONFIG_STATUS <<_ACEOF | |
7966 | ||
7967 | # | |
7968 | # CONFIG_FILES section. | |
7969 | # | |
c906108c | 7970 | |
b7026657 AC |
7971 | # No need to generate the scripts if there are no CONFIG_FILES. |
7972 | # This happens for instance when ./config.status config.h | |
7973 | if test -n "\$CONFIG_FILES"; then | |
7974 | # Protect against being on the right side of a sed subst in config.status. | |
7975 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7976 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7977 | s,@sim_environment@,$sim_environment,;t t | |
7978 | s,@sim_alignment@,$sim_alignment,;t t | |
7979 | s,@sim_assert@,$sim_assert,;t t | |
7980 | s,@sim_bitsize@,$sim_bitsize,;t t | |
7981 | s,@sim_endian@,$sim_endian,;t t | |
7982 | s,@sim_hostendian@,$sim_hostendian,;t t | |
7983 | s,@sim_float@,$sim_float,;t t | |
7984 | s,@sim_scache@,$sim_scache,;t t | |
7985 | s,@sim_default_model@,$sim_default_model,;t t | |
7986 | s,@sim_hw_cflags@,$sim_hw_cflags,;t t | |
7987 | s,@sim_hw_objs@,$sim_hw_objs,;t t | |
7988 | s,@sim_hw@,$sim_hw,;t t | |
7989 | s,@sim_inline@,$sim_inline,;t t | |
7990 | s,@sim_packages@,$sim_packages,;t t | |
7991 | s,@sim_regparm@,$sim_regparm,;t t | |
7992 | s,@sim_reserved_bits@,$sim_reserved_bits,;t t | |
7993 | s,@sim_smp@,$sim_smp,;t t | |
7994 | s,@sim_stdcall@,$sim_stdcall,;t t | |
7995 | s,@sim_xor_endian@,$sim_xor_endian,;t t | |
7996 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
7997 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
7998 | s,@SHELL@,$SHELL,;t t | |
7999 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
8000 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
8001 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
8002 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
8003 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
8004 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
8005 | s,@exec_prefix@,$exec_prefix,;t t | |
8006 | s,@prefix@,$prefix,;t t | |
8007 | s,@program_transform_name@,$program_transform_name,;t t | |
8008 | s,@bindir@,$bindir,;t t | |
8009 | s,@sbindir@,$sbindir,;t t | |
8010 | s,@libexecdir@,$libexecdir,;t t | |
8011 | s,@datadir@,$datadir,;t t | |
8012 | s,@sysconfdir@,$sysconfdir,;t t | |
8013 | s,@sharedstatedir@,$sharedstatedir,;t t | |
8014 | s,@localstatedir@,$localstatedir,;t t | |
8015 | s,@libdir@,$libdir,;t t | |
8016 | s,@includedir@,$includedir,;t t | |
8017 | s,@oldincludedir@,$oldincludedir,;t t | |
8018 | s,@infodir@,$infodir,;t t | |
8019 | s,@mandir@,$mandir,;t t | |
8020 | s,@build_alias@,$build_alias,;t t | |
8021 | s,@host_alias@,$host_alias,;t t | |
8022 | s,@target_alias@,$target_alias,;t t | |
8023 | s,@DEFS@,$DEFS,;t t | |
8024 | s,@ECHO_C@,$ECHO_C,;t t | |
8025 | s,@ECHO_N@,$ECHO_N,;t t | |
8026 | s,@ECHO_T@,$ECHO_T,;t t | |
8027 | s,@LIBS@,$LIBS,;t t | |
8028 | s,@build@,$build,;t t | |
8029 | s,@build_cpu@,$build_cpu,;t t | |
8030 | s,@build_vendor@,$build_vendor,;t t | |
8031 | s,@build_os@,$build_os,;t t | |
8032 | s,@host@,$host,;t t | |
8033 | s,@host_cpu@,$host_cpu,;t t | |
8034 | s,@host_vendor@,$host_vendor,;t t | |
8035 | s,@host_os@,$host_os,;t t | |
8036 | s,@target@,$target,;t t | |
8037 | s,@target_cpu@,$target_cpu,;t t | |
8038 | s,@target_vendor@,$target_vendor,;t t | |
8039 | s,@target_os@,$target_os,;t t | |
8040 | s,@CC@,$CC,;t t | |
8041 | s,@CFLAGS@,$CFLAGS,;t t | |
8042 | s,@LDFLAGS@,$LDFLAGS,;t t | |
8043 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
8044 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
8045 | s,@EXEEXT@,$EXEEXT,;t t | |
8046 | s,@OBJEXT@,$OBJEXT,;t t | |
8047 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
8048 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
8049 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
8050 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
8051 | s,@HDEFINES@,$HDEFINES,;t t | |
8052 | s,@AR@,$AR,;t t | |
8053 | s,@RANLIB@,$RANLIB,;t t | |
8054 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
8055 | s,@SET_MAKE@,$SET_MAKE,;t t | |
8056 | s,@CPP@,$CPP,;t t | |
8057 | s,@EGREP@,$EGREP,;t t | |
8058 | s,@ALLOCA@,$ALLOCA,;t t | |
8059 | s,@USE_NLS@,$USE_NLS,;t t | |
8060 | s,@MSGFMT@,$MSGFMT,;t t | |
8061 | s,@GMSGFMT@,$GMSGFMT,;t t | |
8062 | s,@XGETTEXT@,$XGETTEXT,;t t | |
8063 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
8064 | s,@CATALOGS@,$CATALOGS,;t t | |
8065 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
8066 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
8067 | s,@GMOFILES@,$GMOFILES,;t t | |
8068 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
8069 | s,@INTLDEPS@,$INTLDEPS,;t t | |
8070 | s,@INTLLIBS@,$INTLLIBS,;t t | |
8071 | s,@INTLOBJS@,$INTLOBJS,;t t | |
8072 | s,@POFILES@,$POFILES,;t t | |
8073 | s,@POSUB@,$POSUB,;t t | |
8074 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
8075 | s,@GT_NO@,$GT_NO,;t t | |
8076 | s,@GT_YES@,$GT_YES,;t t | |
8077 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
8078 | s,@l@,$l,;t t | |
8079 | s,@MAINT@,$MAINT,;t t | |
8080 | s,@sim_bswap@,$sim_bswap,;t t | |
8081 | s,@sim_cflags@,$sim_cflags,;t t | |
8082 | s,@sim_debug@,$sim_debug,;t t | |
8083 | s,@sim_stdio@,$sim_stdio,;t t | |
8084 | s,@sim_trace@,$sim_trace,;t t | |
8085 | s,@sim_profile@,$sim_profile,;t t | |
8086 | s,@CGEN_MAINT@,$CGEN_MAINT,;t t | |
8087 | s,@cgendir@,$cgendir,;t t | |
8088 | s,@cgen@,$cgen,;t t | |
8089 | s,@traps_obj@,$traps_obj,;t t | |
8090 | s,@sim_extra_cflags@,$sim_extra_cflags,;t t | |
8091 | s,@cgen_breaks@,$cgen_breaks,;t t | |
8092 | s,@LIBOBJS@,$LIBOBJS,;t t | |
8093 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
c906108c | 8094 | CEOF |
b7026657 AC |
8095 | |
8096 | _ACEOF | |
8097 | ||
8098 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8099 | # Split the substitutions into bite-sized pieces for seds with | |
8100 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8101 | ac_max_sed_lines=48 | |
8102 | ac_sed_frag=1 # Number of current file. | |
8103 | ac_beg=1 # First line for current file. | |
8104 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
8105 | ac_more_lines=: | |
8106 | ac_sed_cmds= | |
8107 | while $ac_more_lines; do | |
8108 | if test $ac_beg -gt 1; then | |
8109 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
c906108c | 8110 | else |
b7026657 AC |
8111 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
8112 | fi | |
8113 | if test ! -s $tmp/subs.frag; then | |
8114 | ac_more_lines=false | |
8115 | else | |
8116 | # The purpose of the label and of the branching condition is to | |
8117 | # speed up the sed processing (if there are no `@' at all, there | |
8118 | # is no need to browse any of the substitutions). | |
8119 | # These are the two extra sed commands mentioned above. | |
8120 | (echo ':t | |
8121 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
8122 | if test -z "$ac_sed_cmds"; then | |
8123 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
8124 | else | |
8125 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
8126 | fi | |
8127 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
8128 | ac_beg=$ac_end | |
8129 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
c906108c | 8130 | fi |
b7026657 AC |
8131 | done |
8132 | if test -z "$ac_sed_cmds"; then | |
8133 | ac_sed_cmds=cat | |
c906108c | 8134 | fi |
b7026657 | 8135 | fi # test -n "$CONFIG_FILES" |
c906108c | 8136 | |
b7026657 AC |
8137 | _ACEOF |
8138 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8139 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
c906108c | 8140 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
8141 | case $ac_file in |
8142 | - | *:- | *:-:* ) # input from stdin | |
8143 | cat >$tmp/stdin | |
8144 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8145 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8146 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8147 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8148 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
8149 | esac |
8150 | ||
b7026657 AC |
8151 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
8152 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8153 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8154 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8155 | X"$ac_file" : 'X\(//\)$' \| \ | |
8156 | X"$ac_file" : 'X\(/\)' \| \ | |
8157 | . : '\(.\)' 2>/dev/null || | |
8158 | echo X"$ac_file" | | |
8159 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8160 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8161 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8162 | /^X\(\/\).*/{ s//\1/; q; } | |
8163 | s/.*/./; q'` | |
8164 | { if $as_mkdir_p; then | |
8165 | mkdir -p "$ac_dir" | |
c906108c | 8166 | else |
b7026657 AC |
8167 | as_dir="$ac_dir" |
8168 | as_dirs= | |
8169 | while test ! -d "$as_dir"; do | |
8170 | as_dirs="$as_dir $as_dirs" | |
8171 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8172 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8173 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8174 | X"$as_dir" : 'X\(//\)$' \| \ | |
8175 | X"$as_dir" : 'X\(/\)' \| \ | |
8176 | . : '\(.\)' 2>/dev/null || | |
8177 | echo X"$as_dir" | | |
8178 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8179 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8180 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8181 | /^X\(\/\).*/{ s//\1/; q; } | |
8182 | s/.*/./; q'` | |
8183 | done | |
8184 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8185 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8186 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8187 | { (exit 1); exit 1; }; }; } | |
8188 | ||
8189 | ac_builddir=. | |
c906108c | 8190 | |
b7026657 AC |
8191 | if test "$ac_dir" != .; then |
8192 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8193 | # A "../" for each directory in $ac_dir_suffix. | |
8194 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8195 | else | |
8196 | ac_dir_suffix= ac_top_builddir= | |
8197 | fi | |
8198 | ||
8199 | case $srcdir in | |
8200 | .) # No --srcdir option. We are building in place. | |
8201 | ac_srcdir=. | |
8202 | if test -z "$ac_top_builddir"; then | |
8203 | ac_top_srcdir=. | |
8204 | else | |
8205 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8206 | fi ;; | |
8207 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8208 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8209 | ac_top_srcdir=$srcdir ;; | |
c906108c | 8210 | *) # Relative path. |
b7026657 AC |
8211 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
8212 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8213 | esac | |
c906108c | 8214 | |
b7026657 AC |
8215 | # Do not use `cd foo && pwd` to compute absolute paths, because |
8216 | # the directories may not exist. | |
8217 | case `pwd` in | |
8218 | .) ac_abs_builddir="$ac_dir";; | |
8219 | *) | |
8220 | case "$ac_dir" in | |
8221 | .) ac_abs_builddir=`pwd`;; | |
8222 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8223 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8224 | esac;; | |
8225 | esac | |
8226 | case $ac_abs_builddir in | |
8227 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8228 | *) | |
8229 | case ${ac_top_builddir}. in | |
8230 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8231 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8232 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8233 | esac;; | |
8234 | esac | |
8235 | case $ac_abs_builddir in | |
8236 | .) ac_abs_srcdir=$ac_srcdir;; | |
8237 | *) | |
8238 | case $ac_srcdir in | |
8239 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8240 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8241 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8242 | esac;; | |
8243 | esac | |
8244 | case $ac_abs_builddir in | |
8245 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8246 | *) | |
8247 | case $ac_top_srcdir in | |
8248 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8249 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8250 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8251 | esac;; | |
8252 | esac | |
c906108c | 8253 | |
b7026657 AC |
8254 | |
8255 | case $INSTALL in | |
8256 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
8257 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c906108c SS |
8258 | esac |
8259 | ||
b7026657 AC |
8260 | if test x"$ac_file" != x-; then |
8261 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
8262 | echo "$as_me: creating $ac_file" >&6;} | |
8263 | rm -f "$ac_file" | |
8264 | fi | |
8265 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8266 | # use $as_me), people would be surprised to read: | |
8267 | # /* config.h. Generated by config.status. */ | |
8268 | if test x"$ac_file" = x-; then | |
8269 | configure_input= | |
8270 | else | |
8271 | configure_input="$ac_file. " | |
8272 | fi | |
8273 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
8274 | sed 's,.*/,,'` by configure." | |
8275 | ||
8276 | # First look for the input files in the build tree, otherwise in the | |
8277 | # src tree. | |
8278 | ac_file_inputs=`IFS=: | |
8279 | for f in $ac_file_in; do | |
8280 | case $f in | |
8281 | -) echo $tmp/stdin ;; | |
8282 | [\\/$]*) | |
8283 | # Absolute (can't be DOS-style, as IFS=:) | |
8284 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8285 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8286 | { (exit 1); exit 1; }; } | |
8287 | echo "$f";; | |
8288 | *) # Relative | |
8289 | if test -f "$f"; then | |
8290 | # Build tree | |
8291 | echo "$f" | |
8292 | elif test -f "$srcdir/$f"; then | |
8293 | # Source tree | |
8294 | echo "$srcdir/$f" | |
8295 | else | |
8296 | # /dev/null tree | |
8297 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8298 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8299 | { (exit 1); exit 1; }; } | |
8300 | fi;; | |
8301 | esac | |
8302 | done` || { (exit 1); exit 1; } | |
8303 | _ACEOF | |
8304 | cat >>$CONFIG_STATUS <<_ACEOF | |
8305 | sed "$ac_vpsub | |
8306 | $extrasub | |
8307 | _ACEOF | |
8308 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8309 | :t | |
8310 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
8311 | s,@configure_input@,$configure_input,;t t | |
8312 | s,@srcdir@,$ac_srcdir,;t t | |
8313 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
8314 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
8315 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
8316 | s,@builddir@,$ac_builddir,;t t | |
8317 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
8318 | s,@top_builddir@,$ac_top_builddir,;t t | |
8319 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
8320 | s,@INSTALL@,$ac_INSTALL,;t t | |
8321 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
8322 | rm -f $tmp/stdin | |
8323 | if test x"$ac_file" != x-; then | |
8324 | mv $tmp/out $ac_file | |
8325 | else | |
8326 | cat $tmp/out | |
8327 | rm -f $tmp/out | |
8328 | fi | |
8329 | ||
8330 | done | |
8331 | _ACEOF | |
8332 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8333 | ||
8334 | # | |
8335 | # CONFIG_HEADER section. | |
8336 | # | |
c906108c SS |
8337 | |
8338 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8339 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8340 | # | |
8341 | # ac_d sets the value in "#define NAME VALUE" lines. | |
b7026657 AC |
8342 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
8343 | ac_dB='[ ].*$,\1#\2' | |
8344 | ac_dC=' ' | |
8345 | ac_dD=',;t' | |
8346 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8347 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8348 | ac_uB='$,\1#\2define\3' | |
c906108c | 8349 | ac_uC=' ' |
b7026657 AC |
8350 | ac_uD=',;t' |
8351 | ||
8352 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
c906108c | 8353 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
8354 | case $ac_file in |
8355 | - | *:- | *:-:* ) # input from stdin | |
8356 | cat >$tmp/stdin | |
8357 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8358 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8359 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8360 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8361 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
8362 | esac |
8363 | ||
b7026657 AC |
8364 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
8365 | echo "$as_me: creating $ac_file" >&6;} | |
8366 | ||
8367 | # First look for the input files in the build tree, otherwise in the | |
8368 | # src tree. | |
8369 | ac_file_inputs=`IFS=: | |
8370 | for f in $ac_file_in; do | |
8371 | case $f in | |
8372 | -) echo $tmp/stdin ;; | |
8373 | [\\/$]*) | |
8374 | # Absolute (can't be DOS-style, as IFS=:) | |
8375 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8376 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8377 | { (exit 1); exit 1; }; } | |
8378 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
8379 | echo "$f";; | |
8380 | *) # Relative | |
8381 | if test -f "$f"; then | |
8382 | # Build tree | |
8383 | echo "$f" | |
8384 | elif test -f "$srcdir/$f"; then | |
8385 | # Source tree | |
8386 | echo "$srcdir/$f" | |
8387 | else | |
8388 | # /dev/null tree | |
8389 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8390 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8391 | { (exit 1); exit 1; }; } | |
8392 | fi;; | |
8393 | esac | |
8394 | done` || { (exit 1); exit 1; } | |
8395 | # Remove the trailing spaces. | |
8396 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
8397 | ||
8398 | _ACEOF | |
8399 | ||
8400 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
8401 | # `conftest.undefs', that substitutes the proper values into | |
8402 | # config.h.in to produce config.h. The first handles `#define' | |
8403 | # templates, and the second `#undef' templates. | |
8404 | # And first: Protect against being on the right side of a sed subst in | |
8405 | # config.status. Protect against being in an unquoted here document | |
8406 | # in config.status. | |
8407 | rm -f conftest.defines conftest.undefs | |
8408 | # Using a here document instead of a string reduces the quoting nightmare. | |
8409 | # Putting comments in sed scripts is not portable. | |
8410 | # | |
8411 | # `end' is used to avoid that the second main sed command (meant for | |
8412 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
8413 | # See the Autoconf documentation for `clear'. | |
8414 | cat >confdef2sed.sed <<\_ACEOF | |
8415 | s/[\\&,]/\\&/g | |
8416 | s,[\\$`],\\&,g | |
8417 | t clear | |
8418 | : clear | |
8419 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
8420 | t end | |
8421 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
8422 | : end | |
8423 | _ACEOF | |
8424 | # If some macros were called several times there might be several times | |
8425 | # the same #defines, which is useless. Nevertheless, we may not want to | |
8426 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
8427 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
8428 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
8429 | rm -f confdef2sed.sed | |
c906108c SS |
8430 | |
8431 | # This sed command replaces #undef with comments. This is necessary, for | |
8432 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8433 | # on some systems where configure will not decide to define it. | |
b7026657 AC |
8434 | cat >>conftest.undefs <<\_ACEOF |
8435 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
8436 | _ACEOF | |
8437 | ||
8438 | # Break up conftest.defines because some shells have a limit on the size | |
8439 | # of here documents, and old seds have small limits too (100 cmds). | |
8440 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
8441 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
8442 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
8443 | echo ' :' >>$CONFIG_STATUS | |
8444 | rm -f conftest.tail | |
8445 | while grep . conftest.defines >/dev/null | |
8446 | do | |
8447 | # Write a limited-size here document to $tmp/defines.sed. | |
8448 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
8449 | # Speed up: don't consider the non `#define' lines. | |
8450 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
8451 | # Work around the forget-to-reset-the-flag bug. | |
8452 | echo 't clr' >>$CONFIG_STATUS | |
8453 | echo ': clr' >>$CONFIG_STATUS | |
8454 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
8455 | echo 'CEOF | |
8456 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
8457 | rm -f $tmp/in | |
8458 | mv $tmp/out $tmp/in | |
8459 | ' >>$CONFIG_STATUS | |
8460 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
8461 | rm -f conftest.defines | |
8462 | mv conftest.tail conftest.defines | |
8463 | done | |
8464 | rm -f conftest.defines | |
8465 | echo ' fi # grep' >>$CONFIG_STATUS | |
8466 | echo >>$CONFIG_STATUS | |
c906108c | 8467 | |
b7026657 AC |
8468 | # Break up conftest.undefs because some shells have a limit on the size |
8469 | # of here documents, and old seds have small limits too (100 cmds). | |
8470 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
c906108c | 8471 | rm -f conftest.tail |
b7026657 | 8472 | while grep . conftest.undefs >/dev/null |
c906108c | 8473 | do |
b7026657 AC |
8474 | # Write a limited-size here document to $tmp/undefs.sed. |
8475 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
8476 | # Speed up: don't consider the non `#undef' | |
8477 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
8478 | # Work around the forget-to-reset-the-flag bug. | |
8479 | echo 't clr' >>$CONFIG_STATUS | |
8480 | echo ': clr' >>$CONFIG_STATUS | |
8481 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
c906108c | 8482 | echo 'CEOF |
b7026657 AC |
8483 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
8484 | rm -f $tmp/in | |
8485 | mv $tmp/out $tmp/in | |
8486 | ' >>$CONFIG_STATUS | |
8487 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
8488 | rm -f conftest.undefs | |
8489 | mv conftest.tail conftest.undefs | |
c906108c | 8490 | done |
b7026657 AC |
8491 | rm -f conftest.undefs |
8492 | ||
8493 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8494 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8495 | # use $as_me), people would be surprised to read: | |
8496 | # /* config.h. Generated by config.status. */ | |
8497 | if test x"$ac_file" = x-; then | |
8498 | echo "/* Generated by configure. */" >$tmp/config.h | |
c906108c | 8499 | else |
b7026657 | 8500 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
c906108c | 8501 | fi |
b7026657 AC |
8502 | cat $tmp/in >>$tmp/config.h |
8503 | rm -f $tmp/in | |
8504 | if test x"$ac_file" != x-; then | |
8505 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
8506 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
8507 | echo "$as_me: $ac_file is unchanged" >&6;} | |
8508 | else | |
8509 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8510 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8511 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8512 | X"$ac_file" : 'X\(//\)$' \| \ | |
8513 | X"$ac_file" : 'X\(/\)' \| \ | |
8514 | . : '\(.\)' 2>/dev/null || | |
8515 | echo X"$ac_file" | | |
8516 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8517 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8518 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8519 | /^X\(\/\).*/{ s//\1/; q; } | |
8520 | s/.*/./; q'` | |
8521 | { if $as_mkdir_p; then | |
8522 | mkdir -p "$ac_dir" | |
8523 | else | |
8524 | as_dir="$ac_dir" | |
8525 | as_dirs= | |
8526 | while test ! -d "$as_dir"; do | |
8527 | as_dirs="$as_dir $as_dirs" | |
8528 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8529 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8530 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8531 | X"$as_dir" : 'X\(//\)$' \| \ | |
8532 | X"$as_dir" : 'X\(/\)' \| \ | |
8533 | . : '\(.\)' 2>/dev/null || | |
8534 | echo X"$as_dir" | | |
8535 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8536 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8537 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8538 | /^X\(\/\).*/{ s//\1/; q; } | |
8539 | s/.*/./; q'` | |
8540 | done | |
8541 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8542 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8543 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8544 | { (exit 1); exit 1; }; }; } | |
c906108c | 8545 | |
b7026657 AC |
8546 | rm -f $ac_file |
8547 | mv $tmp/config.h $ac_file | |
8548 | fi | |
8549 | else | |
8550 | cat $tmp/config.h | |
8551 | rm -f $tmp/config.h | |
8552 | fi | |
8553 | done | |
8554 | _ACEOF | |
8555 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c906108c | 8556 | |
b7026657 AC |
8557 | # |
8558 | # CONFIG_LINKS section. | |
8559 | # | |
c906108c | 8560 | |
b7026657 AC |
8561 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
8562 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8563 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 8564 | |
b7026657 AC |
8565 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
8566 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
8567 | |
8568 | if test ! -r $srcdir/$ac_source; then | |
b7026657 AC |
8569 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
8570 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
8571 | { (exit 1); exit 1; }; } | |
c906108c SS |
8572 | fi |
8573 | rm -f $ac_dest | |
8574 | ||
8575 | # Make relative symlinks. | |
b7026657 AC |
8576 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
8577 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8578 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
8579 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8580 | X"$ac_dest" : 'X\(/\)' \| \ | |
8581 | . : '\(.\)' 2>/dev/null || | |
8582 | echo X"$ac_dest" | | |
8583 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8584 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8585 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8586 | /^X\(\/\).*/{ s//\1/; q; } | |
8587 | s/.*/./; q'` | |
8588 | { if $as_mkdir_p; then | |
8589 | mkdir -p "$ac_dest_dir" | |
c906108c | 8590 | else |
b7026657 AC |
8591 | as_dir="$ac_dest_dir" |
8592 | as_dirs= | |
8593 | while test ! -d "$as_dir"; do | |
8594 | as_dirs="$as_dir $as_dirs" | |
8595 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8596 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8597 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8598 | X"$as_dir" : 'X\(//\)$' \| \ | |
8599 | X"$as_dir" : 'X\(/\)' \| \ | |
8600 | . : '\(.\)' 2>/dev/null || | |
8601 | echo X"$as_dir" | | |
8602 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8603 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8604 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8605 | /^X\(\/\).*/{ s//\1/; q; } | |
8606 | s/.*/./; q'` | |
8607 | done | |
8608 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8609 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
8610 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
8611 | { (exit 1); exit 1; }; }; } | |
8612 | ||
8613 | ac_builddir=. | |
8614 | ||
8615 | if test "$ac_dest_dir" != .; then | |
8616 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
8617 | # A "../" for each directory in $ac_dir_suffix. | |
8618 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8619 | else | |
8620 | ac_dir_suffix= ac_top_builddir= | |
8621 | fi | |
8622 | ||
8623 | case $srcdir in | |
8624 | .) # No --srcdir option. We are building in place. | |
8625 | ac_srcdir=. | |
8626 | if test -z "$ac_top_builddir"; then | |
8627 | ac_top_srcdir=. | |
8628 | else | |
8629 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8630 | fi ;; | |
8631 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8632 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8633 | ac_top_srcdir=$srcdir ;; | |
8634 | *) # Relative path. | |
8635 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8636 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8637 | esac | |
8638 | ||
8639 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8640 | # the directories may not exist. | |
8641 | case `pwd` in | |
8642 | .) ac_abs_builddir="$ac_dest_dir";; | |
8643 | *) | |
8644 | case "$ac_dest_dir" in | |
8645 | .) ac_abs_builddir=`pwd`;; | |
8646 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
8647 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
8648 | esac;; | |
8649 | esac | |
8650 | case $ac_abs_builddir in | |
8651 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8652 | *) | |
8653 | case ${ac_top_builddir}. in | |
8654 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8655 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8656 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8657 | esac;; | |
8658 | esac | |
8659 | case $ac_abs_builddir in | |
8660 | .) ac_abs_srcdir=$ac_srcdir;; | |
8661 | *) | |
8662 | case $ac_srcdir in | |
8663 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8664 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8665 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8666 | esac;; | |
8667 | esac | |
8668 | case $ac_abs_builddir in | |
8669 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8670 | *) | |
8671 | case $ac_top_srcdir in | |
8672 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8673 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8674 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8675 | esac;; | |
8676 | esac | |
c906108c | 8677 | |
b7026657 AC |
8678 | |
8679 | case $srcdir in | |
8680 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
8681 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | |
c906108c SS |
8682 | esac |
8683 | ||
b7026657 AC |
8684 | # Try a symlink, then a hard link, then a copy. |
8685 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
8686 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
8687 | cp -p $srcdir/$ac_source $ac_dest || | |
8688 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
8689 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
8690 | { (exit 1); exit 1; }; } | |
c906108c | 8691 | done |
b7026657 AC |
8692 | _ACEOF |
8693 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8694 | ||
8695 | # | |
8696 | # CONFIG_COMMANDS section. | |
8697 | # | |
8698 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
8699 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8700 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8701 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
8702 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8703 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
8704 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8705 | X"$ac_dest" : 'X\(/\)' \| \ | |
8706 | . : '\(.\)' 2>/dev/null || | |
8707 | echo X"$ac_dest" | | |
8708 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8709 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8710 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8711 | /^X\(\/\).*/{ s//\1/; q; } | |
8712 | s/.*/./; q'` | |
8713 | { if $as_mkdir_p; then | |
8714 | mkdir -p "$ac_dir" | |
8715 | else | |
8716 | as_dir="$ac_dir" | |
8717 | as_dirs= | |
8718 | while test ! -d "$as_dir"; do | |
8719 | as_dirs="$as_dir $as_dirs" | |
8720 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8721 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8722 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8723 | X"$as_dir" : 'X\(//\)$' \| \ | |
8724 | X"$as_dir" : 'X\(/\)' \| \ | |
8725 | . : '\(.\)' 2>/dev/null || | |
8726 | echo X"$as_dir" | | |
8727 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8728 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8729 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8730 | /^X\(\/\).*/{ s//\1/; q; } | |
8731 | s/.*/./; q'` | |
8732 | done | |
8733 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8734 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8735 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8736 | { (exit 1); exit 1; }; }; } | |
8737 | ||
8738 | ac_builddir=. | |
8739 | ||
8740 | if test "$ac_dir" != .; then | |
8741 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8742 | # A "../" for each directory in $ac_dir_suffix. | |
8743 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8744 | else | |
8745 | ac_dir_suffix= ac_top_builddir= | |
8746 | fi | |
c906108c | 8747 | |
b7026657 AC |
8748 | case $srcdir in |
8749 | .) # No --srcdir option. We are building in place. | |
8750 | ac_srcdir=. | |
8751 | if test -z "$ac_top_builddir"; then | |
8752 | ac_top_srcdir=. | |
8753 | else | |
8754 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8755 | fi ;; | |
8756 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8757 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8758 | ac_top_srcdir=$srcdir ;; | |
8759 | *) # Relative path. | |
8760 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8761 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8762 | esac | |
8763 | ||
8764 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8765 | # the directories may not exist. | |
8766 | case `pwd` in | |
8767 | .) ac_abs_builddir="$ac_dir";; | |
8768 | *) | |
8769 | case "$ac_dir" in | |
8770 | .) ac_abs_builddir=`pwd`;; | |
8771 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8772 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8773 | esac;; | |
8774 | esac | |
8775 | case $ac_abs_builddir in | |
8776 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8777 | *) | |
8778 | case ${ac_top_builddir}. in | |
8779 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8780 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8781 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8782 | esac;; | |
8783 | esac | |
8784 | case $ac_abs_builddir in | |
8785 | .) ac_abs_srcdir=$ac_srcdir;; | |
8786 | *) | |
8787 | case $ac_srcdir in | |
8788 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8789 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8790 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8791 | esac;; | |
8792 | esac | |
8793 | case $ac_abs_builddir in | |
8794 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8795 | *) | |
8796 | case $ac_top_srcdir in | |
8797 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8798 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8799 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8800 | esac;; | |
8801 | esac | |
8802 | ||
8803 | ||
8804 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
8805 | echo "$as_me: executing $ac_dest commands" >&6;} | |
8806 | case $ac_dest in | |
8807 | default ) case "x$CONFIG_FILES" in | |
c906108c SS |
8808 | xMakefile*) |
8809 | echo "Merging Makefile.sim+Make-common.sim into Makefile ..." | |
8810 | rm -f Makesim1.tmp Makesim2.tmp Makefile | |
8811 | sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp | |
8812 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp | |
8813 | sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \ | |
8814 | -e '/^## COMMON_POST_/ r Makesim2.tmp' \ | |
8815 | <Makefile.sim >Makefile | |
8816 | rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp | |
8817 | ;; | |
8818 | esac | |
8819 | case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac | |
b7026657 AC |
8820 | ;; |
8821 | esac | |
8822 | done | |
8823 | _ACEOF | |
c906108c | 8824 | |
b7026657 AC |
8825 | cat >>$CONFIG_STATUS <<\_ACEOF |
8826 | ||
8827 | { (exit 0); exit 0; } | |
8828 | _ACEOF | |
c906108c | 8829 | chmod +x $CONFIG_STATUS |
b7026657 AC |
8830 | ac_clean_files=$ac_clean_files_save |
8831 | ||
8832 | ||
8833 | # configure is writing to config.log, and then calls config.status. | |
8834 | # config.status does its own redirection, appending to config.log. | |
8835 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8836 | # by configure, so config.status won't be able to write to it; its | |
8837 | # output is simply discarded. So we exec the FD to /dev/null, | |
8838 | # effectively closing config.log, so it can be properly (re)opened and | |
8839 | # appended to by config.status. When coming back to configure, we | |
8840 | # need to make the FD available again. | |
8841 | if test "$no_create" != yes; then | |
8842 | ac_cs_success=: | |
8843 | ac_config_status_args= | |
8844 | test "$silent" = yes && | |
8845 | ac_config_status_args="$ac_config_status_args --quiet" | |
8846 | exec 5>/dev/null | |
8847 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8848 | exec 5>>config.log | |
8849 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8850 | # would make configure fail if this is the last instruction. | |
8851 | $ac_cs_success || { (exit 1); exit 1; } | |
8852 | fi | |
c906108c SS |
8853 | |
8854 |