Commit | Line | Data |
---|---|---|
5d031c16 | 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 | ## --------------------- ## | |
5d031c16 | 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 | |
5d031c16 | 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 | |
5d031c16 AC |
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='+ ' | |
5d031c16 | 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 | |
5d031c16 | 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 | |
5d031c16 | 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 | |
5d031c16 AC |
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'` | |
5d031c16 AC |
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 | |
5d031c16 | 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 | |
5d031c16 AC |
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 | |
5d031c16 | 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 | |
5d031c16 | 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 | } | |
5d031c16 AC |
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 | |
5d031c16 | 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 | |
5d031c16 | 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 | |
5d031c16 | 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 | |
5d031c16 | 224 | |
b7026657 | 225 | as_executable_p="test -f" |
5d031c16 | 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'" | |
5d031c16 | 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'" | |
5d031c16 AC |
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" | |
5d031c16 | 239 | |
b7026657 AC |
240 | # CDPATH. |
241 | $as_unset CDPATH | |
5d031c16 AC |
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` | |
5d031c16 | 248 | |
b7026657 | 249 | exec 6>&1 |
5d031c16 | 250 | |
5d031c16 | 251 | # |
b7026657 | 252 | # Initializations. |
5d031c16 | 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} | |
5d031c16 | 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" | |
5d031c16 | 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 m68hc11_extra_objs cgen_breaks LIBOBJS LTLIBOBJS' |
313 | ac_subst_files='' | |
5d031c16 AC |
314 | |
315 | # Initialize some variables set by options. | |
b7026657 AC |
316 | ac_init_help= |
317 | ac_init_version=false | |
5d031c16 AC |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
b7026657 | 320 | cache_file=/dev/null |
5d031c16 | 321 | exec_prefix=NONE |
5d031c16 | 322 | no_create= |
5d031c16 AC |
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= | |
5d031c16 | 330 | srcdir= |
5d031c16 AC |
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. | |
5d031c16 AC |
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 | ||
5d031c16 AC |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
5d031c16 AC |
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[^=]*=\(.*\)'` |
5d031c16 AC |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
b7026657 | 367 | case $ac_option in |
5d031c16 AC |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 372 | bindir=$ac_optarg ;; |
5d031c16 AC |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 375 | ac_prev=build_alias ;; |
5d031c16 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 377 | build_alias=$ac_optarg ;; |
5d031c16 AC |
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 ;; | |
5d031c16 AC |
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 ;; |
5d031c16 AC |
394 | |
395 | -disable-* | --disable-*) | |
b7026657 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
5d031c16 | 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" ;; | |
5d031c16 AC |
403 | |
404 | -enable-* | --enable-*) | |
b7026657 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
5d031c16 | 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"`;; | |
5d031c16 AC |
413 | *) ac_optarg=yes ;; |
414 | esac | |
b7026657 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
5d031c16 AC |
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 ;; |
5d031c16 AC |
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 ;; | |
5d031c16 AC |
436 | |
437 | -host | --host | --hos | --ho) | |
b7026657 | 438 | ac_prev=host_alias ;; |
5d031c16 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 440 | host_alias=$ac_optarg ;; |
5d031c16 AC |
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 ;; |
5d031c16 AC |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 452 | infodir=$ac_optarg ;; |
5d031c16 AC |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 457 | libdir=$ac_optarg ;; |
5d031c16 AC |
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 ;; |
5d031c16 AC |
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 ;; |
5d031c16 AC |
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 ;; |
5d031c16 AC |
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) |
5d031c16 AC |
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 ;; |
5d031c16 AC |
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 ;; |
5d031c16 AC |
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 ;; |
5d031c16 AC |
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 ;; |
5d031c16 AC |
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 ;; |
5d031c16 AC |
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 ;; |
5d031c16 AC |
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 ;; |
5d031c16 AC |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
b7026657 | 561 | site=$ac_optarg ;; |
5d031c16 AC |
562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 566 | srcdir=$ac_optarg ;; |
5d031c16 AC |
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 ;; |
5d031c16 AC |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 576 | ac_prev=target_alias ;; |
5d031c16 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 578 | target_alias=$ac_optarg ;; |
5d031c16 AC |
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=: ;; | |
5d031c16 AC |
585 | |
586 | -with-* | --with-*) | |
b7026657 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
5d031c16 | 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; }; } | |
5d031c16 | 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"`;; | |
5d031c16 AC |
595 | *) ac_optarg=yes ;; |
596 | esac | |
b7026657 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
5d031c16 AC |
598 | |
599 | -without-* | --without-*) | |
b7026657 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
5d031c16 | 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" ;; | |
5d031c16 AC |
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 ;; |
5d031c16 AC |
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 ;; |
5d031c16 | 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; }; } | |
5d031c16 AC |
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 | ||
5d031c16 | 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} | |
5d031c16 AC |
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; }; } | |
5d031c16 | 656 | fi |
5d031c16 | 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 | |
5d031c16 | 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 | |
5d031c16 | 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; }; };; | |
5d031c16 AC |
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 | |
5d031c16 | 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 | |
5d031c16 | 703 | |
5d031c16 AC |
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'` | |
5d031c16 AC |
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; }; } | |
5d031c16 | 732 | else |
b7026657 AC |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
5d031c16 AC |
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 | |
5d031c16 | 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. | |
5d031c16 | 782 | |
b7026657 | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
5d031c16 | 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. | |
5d031c16 | 787 | |
b7026657 | 788 | Defaults for the options are specified in brackets. |
5d031c16 | 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] | |
5d031c16 | 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'. | |
5d031c16 | 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 | |
5d031c16 | 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-inline=inlines Specify which functions should be inlined. | |
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-build-warnings Enable build-time compiler warnings if gcc is used | |
865 | --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used | |
866 | --enable-sim-hardware=LIST Specify the hardware to be included in the build. | |
867 | ||
868 | Optional Packages: | |
869 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
870 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
871 | --with-included-gettext use the GNU gettext library included here | |
872 | ||
873 | Some influential environment variables: | |
874 | CC C compiler command | |
875 | CFLAGS C compiler flags | |
876 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
877 | nonstandard directory <lib dir> | |
878 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
879 | headers in a nonstandard directory <include dir> | |
880 | CPP C preprocessor | |
881 | ||
882 | Use these variables to override the choices made by `configure' or to help | |
883 | it to find libraries and programs with nonstandard names/locations. | |
884 | ||
885 | _ACEOF | |
5d031c16 AC |
886 | fi |
887 | ||
b7026657 AC |
888 | if test "$ac_init_help" = "recursive"; then |
889 | # If there are subdirs, report their specific --help. | |
890 | ac_popdir=`pwd` | |
891 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
892 | test -d $ac_dir || continue | |
893 | ac_builddir=. | |
5d031c16 | 894 | |
b7026657 AC |
895 | if test "$ac_dir" != .; then |
896 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
897 | # A "../" for each directory in $ac_dir_suffix. | |
898 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
5d031c16 | 899 | else |
b7026657 | 900 | ac_dir_suffix= ac_top_builddir= |
5d031c16 AC |
901 | fi |
902 | ||
b7026657 AC |
903 | case $srcdir in |
904 | .) # No --srcdir option. We are building in place. | |
905 | ac_srcdir=. | |
906 | if test -z "$ac_top_builddir"; then | |
907 | ac_top_srcdir=. | |
908 | else | |
909 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
910 | fi ;; | |
911 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
912 | ac_srcdir=$srcdir$ac_dir_suffix; | |
913 | ac_top_srcdir=$srcdir ;; | |
914 | *) # Relative path. | |
915 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
916 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
917 | esac | |
918 | ||
919 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
920 | # the directories may not exist. | |
921 | case `pwd` in | |
922 | .) ac_abs_builddir="$ac_dir";; | |
923 | *) | |
924 | case "$ac_dir" in | |
925 | .) ac_abs_builddir=`pwd`;; | |
926 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
927 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
928 | esac;; | |
929 | esac | |
930 | case $ac_abs_builddir in | |
931 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
932 | *) | |
933 | case ${ac_top_builddir}. in | |
934 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
935 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
936 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
937 | esac;; | |
938 | esac | |
939 | case $ac_abs_builddir in | |
940 | .) ac_abs_srcdir=$ac_srcdir;; | |
941 | *) | |
942 | case $ac_srcdir in | |
943 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
944 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
945 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
946 | esac;; | |
947 | esac | |
948 | case $ac_abs_builddir in | |
949 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
950 | *) | |
951 | case $ac_top_srcdir in | |
952 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
953 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
954 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
955 | esac;; | |
956 | esac | |
957 | ||
958 | cd $ac_dir | |
959 | # Check for guested configure; otherwise get Cygnus style configure. | |
960 | if test -f $ac_srcdir/configure.gnu; then | |
961 | echo | |
962 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
963 | elif test -f $ac_srcdir/configure; then | |
964 | echo | |
965 | $SHELL $ac_srcdir/configure --help=recursive | |
966 | elif test -f $ac_srcdir/configure.ac || | |
967 | test -f $ac_srcdir/configure.in; then | |
968 | echo | |
969 | $ac_configure --help | |
970 | else | |
971 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
972 | fi | |
973 | cd $ac_popdir | |
974 | done | |
5d031c16 | 975 | fi |
b7026657 AC |
976 | |
977 | test -n "$ac_init_help" && exit 0 | |
978 | if $ac_init_version; then | |
979 | cat <<\_ACEOF | |
980 | ||
981 | Copyright (C) 2003 Free Software Foundation, Inc. | |
982 | This configure script is free software; the Free Software Foundation | |
983 | gives unlimited permission to copy, distribute and modify it. | |
984 | _ACEOF | |
985 | exit 0 | |
986 | fi | |
987 | exec 5>config.log | |
988 | cat >&5 <<_ACEOF | |
989 | This file contains any messages produced by compilers while | |
990 | running configure, to aid debugging if configure makes a mistake. | |
991 | ||
992 | It was created by $as_me, which was | |
993 | generated by GNU Autoconf 2.59. Invocation command line was | |
994 | ||
995 | $ $0 $@ | |
996 | ||
997 | _ACEOF | |
998 | { | |
999 | cat <<_ASUNAME | |
1000 | ## --------- ## | |
1001 | ## Platform. ## | |
1002 | ## --------- ## | |
1003 | ||
1004 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1005 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1006 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1007 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1008 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1009 | ||
1010 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1011 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1012 | ||
1013 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1014 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1015 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1016 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1017 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1018 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1019 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1020 | ||
1021 | _ASUNAME | |
1022 | ||
1023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1024 | for as_dir in $PATH | |
1025 | do | |
1026 | IFS=$as_save_IFS | |
1027 | test -z "$as_dir" && as_dir=. | |
1028 | echo "PATH: $as_dir" | |
1029 | done | |
1030 | ||
1031 | } >&5 | |
1032 | ||
1033 | cat >&5 <<_ACEOF | |
1034 | ||
1035 | ||
1036 | ## ----------- ## | |
1037 | ## Core tests. ## | |
1038 | ## ----------- ## | |
1039 | ||
1040 | _ACEOF | |
1041 | ||
1042 | ||
1043 | # Keep a trace of the command line. | |
1044 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1045 | # Strip out --silent because we don't want to record it for future runs. | |
1046 | # Also quote any args containing shell meta-characters. | |
1047 | # Make two passes to allow for proper duplicate-argument suppression. | |
1048 | ac_configure_args= | |
1049 | ac_configure_args0= | |
1050 | ac_configure_args1= | |
1051 | ac_sep= | |
1052 | ac_must_keep_next=false | |
1053 | for ac_pass in 1 2 | |
1054 | do | |
1055 | for ac_arg | |
1056 | do | |
1057 | case $ac_arg in | |
1058 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1059 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1060 | | -silent | --silent | --silen | --sile | --sil) | |
1061 | continue ;; | |
1062 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1063 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1064 | esac | |
1065 | case $ac_pass in | |
1066 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1067 | 2) | |
1068 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1069 | if test $ac_must_keep_next = true; then | |
1070 | ac_must_keep_next=false # Got value, back to normal. | |
1071 | else | |
1072 | case $ac_arg in | |
1073 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1074 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1075 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1076 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1077 | case "$ac_configure_args0 " in | |
1078 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1079 | esac | |
1080 | ;; | |
1081 | -* ) ac_must_keep_next=true ;; | |
1082 | esac | |
1083 | fi | |
1084 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1085 | # Get rid of the leading space. | |
1086 | ac_sep=" " | |
1087 | ;; | |
1088 | esac | |
1089 | done | |
1090 | done | |
1091 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1092 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1093 | ||
1094 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1095 | # config.log. We remove comments because anyway the quotes in there | |
1096 | # would cause problems or look ugly. | |
1097 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1098 | # such as our DU 5.0 friend, will then `close' the trap. | |
1099 | trap 'exit_status=$? | |
1100 | # Save into config.log some information that might help in debugging. | |
1101 | { | |
1102 | echo | |
1103 | ||
1104 | cat <<\_ASBOX | |
1105 | ## ---------------- ## | |
1106 | ## Cache variables. ## | |
1107 | ## ---------------- ## | |
1108 | _ASBOX | |
1109 | echo | |
1110 | # The following way of writing the cache mishandles newlines in values, | |
1111 | { | |
1112 | (set) 2>&1 | | |
1113 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1114 | *ac_space=\ *) | |
1115 | sed -n \ | |
1116 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1117 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1118 | ;; | |
1119 | *) | |
1120 | sed -n \ | |
1121 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1122 | ;; | |
1123 | esac; | |
1124 | } | |
1125 | echo | |
1126 | ||
1127 | cat <<\_ASBOX | |
1128 | ## ----------------- ## | |
1129 | ## Output variables. ## | |
1130 | ## ----------------- ## | |
1131 | _ASBOX | |
1132 | echo | |
1133 | for ac_var in $ac_subst_vars | |
1134 | do | |
1135 | eval ac_val=$`echo $ac_var` | |
1136 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1137 | done | sort | |
1138 | echo | |
1139 | ||
1140 | if test -n "$ac_subst_files"; then | |
1141 | cat <<\_ASBOX | |
1142 | ## ------------- ## | |
1143 | ## Output files. ## | |
1144 | ## ------------- ## | |
1145 | _ASBOX | |
1146 | echo | |
1147 | for ac_var in $ac_subst_files | |
1148 | do | |
1149 | eval ac_val=$`echo $ac_var` | |
1150 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1151 | done | sort | |
1152 | echo | |
1153 | fi | |
1154 | ||
1155 | if test -s confdefs.h; then | |
1156 | cat <<\_ASBOX | |
1157 | ## ----------- ## | |
1158 | ## confdefs.h. ## | |
1159 | ## ----------- ## | |
1160 | _ASBOX | |
1161 | echo | |
1162 | sed "/^$/d" confdefs.h | sort | |
1163 | echo | |
1164 | fi | |
1165 | test "$ac_signal" != 0 && | |
1166 | echo "$as_me: caught signal $ac_signal" | |
1167 | echo "$as_me: exit $exit_status" | |
1168 | } >&5 | |
1169 | rm -f core *.core && | |
1170 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1171 | exit $exit_status | |
1172 | ' 0 | |
1173 | for ac_signal in 1 2 13 15; do | |
1174 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1175 | done | |
1176 | ac_signal=0 | |
1177 | ||
1178 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1179 | rm -rf conftest* confdefs.h | |
1180 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1181 | echo >confdefs.h | |
1182 | ||
1183 | # Predefined preprocessor variables. | |
1184 | ||
1185 | cat >>confdefs.h <<_ACEOF | |
1186 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1187 | _ACEOF | |
1188 | ||
1189 | ||
1190 | cat >>confdefs.h <<_ACEOF | |
1191 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1192 | _ACEOF | |
1193 | ||
1194 | ||
1195 | cat >>confdefs.h <<_ACEOF | |
1196 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1197 | _ACEOF | |
1198 | ||
1199 | ||
1200 | cat >>confdefs.h <<_ACEOF | |
1201 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1202 | _ACEOF | |
1203 | ||
1204 | ||
1205 | cat >>confdefs.h <<_ACEOF | |
1206 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1207 | _ACEOF | |
1208 | ||
1209 | ||
1210 | # Let the site file select an alternate cache file if it wants to. | |
1211 | # Prefer explicitly selected file to automatically selected ones. | |
1212 | if test -z "$CONFIG_SITE"; then | |
1213 | if test "x$prefix" != xNONE; then | |
1214 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1215 | else | |
1216 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1217 | fi | |
1218 | fi | |
1219 | for ac_site_file in $CONFIG_SITE; do | |
1220 | if test -r "$ac_site_file"; then | |
1221 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1222 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1223 | sed 's/^/| /' "$ac_site_file" >&5 | |
1224 | . "$ac_site_file" | |
1225 | fi | |
1226 | done | |
1227 | ||
1228 | if test -r "$cache_file"; then | |
1229 | # Some versions of bash will fail to source /dev/null (special | |
1230 | # files actually), so we avoid doing that. | |
1231 | if test -f "$cache_file"; then | |
1232 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1233 | echo "$as_me: loading cache $cache_file" >&6;} | |
1234 | case $cache_file in | |
1235 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1236 | *) . ./$cache_file;; | |
1237 | esac | |
1238 | fi | |
1239 | else | |
1240 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1241 | echo "$as_me: creating cache $cache_file" >&6;} | |
1242 | >$cache_file | |
1243 | fi | |
1244 | ||
1245 | # Check that the precious variables saved in the cache have kept the same | |
1246 | # value. | |
1247 | ac_cache_corrupted=false | |
1248 | for ac_var in `(set) 2>&1 | | |
1249 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1250 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1251 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1252 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1253 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1254 | case $ac_old_set,$ac_new_set in | |
1255 | set,) | |
1256 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1257 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1258 | ac_cache_corrupted=: ;; | |
1259 | ,set) | |
1260 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1261 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1262 | ac_cache_corrupted=: ;; | |
1263 | ,);; | |
1264 | *) | |
1265 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1266 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1267 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1268 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1269 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1270 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1271 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1272 | ac_cache_corrupted=: | |
1273 | fi;; | |
1274 | esac | |
1275 | # Pass precious variables to config.status. | |
1276 | if test "$ac_new_set" = set; then | |
1277 | case $ac_new_val in | |
1278 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1279 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1280 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1281 | esac | |
1282 | case " $ac_configure_args " in | |
1283 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1284 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1285 | esac | |
1286 | fi | |
1287 | done | |
1288 | if $ac_cache_corrupted; then | |
1289 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1290 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1291 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1292 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1293 | { (exit 1); exit 1; }; } | |
1294 | fi | |
1295 | ||
1296 | ac_ext=c | |
1297 | ac_cpp='$CPP $CPPFLAGS' | |
1298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | # Make sure we can run config.sub. | |
1322 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1323 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1324 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1325 | { (exit 1); exit 1; }; } | |
1326 | ||
1327 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1328 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1329 | if test "${ac_cv_build+set}" = set; then | |
1330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1331 | else | |
1332 | ac_cv_build_alias=$build_alias | |
1333 | test -z "$ac_cv_build_alias" && | |
1334 | ac_cv_build_alias=`$ac_config_guess` | |
1335 | test -z "$ac_cv_build_alias" && | |
1336 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1337 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1338 | { (exit 1); exit 1; }; } | |
1339 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1340 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1341 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1342 | { (exit 1); exit 1; }; } | |
1343 | ||
1344 | fi | |
1345 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1346 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1347 | build=$ac_cv_build | |
1348 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1349 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1350 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1351 | ||
1352 | ||
1353 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1354 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1355 | if test "${ac_cv_host+set}" = set; then | |
1356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1357 | else | |
1358 | ac_cv_host_alias=$host_alias | |
1359 | test -z "$ac_cv_host_alias" && | |
1360 | ac_cv_host_alias=$ac_cv_build_alias | |
1361 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1362 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1363 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1364 | { (exit 1); exit 1; }; } | |
1365 | ||
1366 | fi | |
1367 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1368 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1369 | host=$ac_cv_host | |
1370 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1371 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1372 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1373 | ||
1374 | ||
1375 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1376 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1377 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1378 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1380 | else | |
1381 | cat >conftest.make <<\_ACEOF | |
1382 | all: | |
1383 | @echo 'ac_maketemp="$(MAKE)"' | |
1384 | _ACEOF | |
1385 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1386 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1387 | if test -n "$ac_maketemp"; then | |
1388 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1389 | else | |
1390 | eval ac_cv_prog_make_${ac_make}_set=no | |
1391 | fi | |
1392 | rm -f conftest.make | |
1393 | fi | |
1394 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1395 | echo "$as_me:$LINENO: result: yes" >&5 | |
1396 | echo "${ECHO_T}yes" >&6 | |
1397 | SET_MAKE= | |
1398 | else | |
1399 | echo "$as_me:$LINENO: result: no" >&5 | |
1400 | echo "${ECHO_T}no" >&6 | |
1401 | SET_MAKE="MAKE=${MAKE-make}" | |
1402 | fi | |
1403 | ||
1404 | ||
1405 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
1406 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
1407 | if test "${ac_cv_search_strerror+set}" = set; then | |
1408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1409 | else | |
1410 | ac_func_search_save_LIBS=$LIBS | |
1411 | ac_cv_search_strerror=no | |
1412 | cat >conftest.$ac_ext <<_ACEOF | |
1413 | /* confdefs.h. */ | |
1414 | _ACEOF | |
1415 | cat confdefs.h >>conftest.$ac_ext | |
1416 | cat >>conftest.$ac_ext <<_ACEOF | |
1417 | /* end confdefs.h. */ | |
1418 | ||
1419 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1420 | #ifdef __cplusplus | |
1421 | extern "C" | |
1422 | #endif | |
1423 | /* We use char because int might match the return type of a gcc2 | |
1424 | builtin and then its argument prototype would still apply. */ | |
1425 | char strerror (); | |
1426 | int | |
1427 | main () | |
1428 | { | |
1429 | strerror (); | |
1430 | ; | |
1431 | return 0; | |
1432 | } | |
1433 | _ACEOF | |
1434 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1436 | (eval $ac_link) 2>conftest.er1 | |
1437 | ac_status=$? | |
1438 | grep -v '^ *+' conftest.er1 >conftest.err | |
1439 | rm -f conftest.er1 | |
1440 | cat conftest.err >&5 | |
1441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1442 | (exit $ac_status); } && | |
1443 | { ac_try='test -z "$ac_c_werror_flag" | |
1444 | || test ! -s conftest.err' | |
1445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1446 | (eval $ac_try) 2>&5 | |
1447 | ac_status=$? | |
1448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1449 | (exit $ac_status); }; } && | |
1450 | { ac_try='test -s conftest$ac_exeext' | |
1451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1452 | (eval $ac_try) 2>&5 | |
1453 | ac_status=$? | |
1454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1455 | (exit $ac_status); }; }; then | |
1456 | ac_cv_search_strerror="none required" | |
1457 | else | |
1458 | echo "$as_me: failed program was:" >&5 | |
1459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1460 | ||
1461 | fi | |
1462 | rm -f conftest.err conftest.$ac_objext \ | |
1463 | conftest$ac_exeext conftest.$ac_ext | |
1464 | if test "$ac_cv_search_strerror" = no; then | |
1465 | for ac_lib in cposix; do | |
1466 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
1467 | cat >conftest.$ac_ext <<_ACEOF | |
1468 | /* confdefs.h. */ | |
1469 | _ACEOF | |
1470 | cat confdefs.h >>conftest.$ac_ext | |
1471 | cat >>conftest.$ac_ext <<_ACEOF | |
1472 | /* end confdefs.h. */ | |
1473 | ||
1474 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1475 | #ifdef __cplusplus | |
1476 | extern "C" | |
1477 | #endif | |
1478 | /* We use char because int might match the return type of a gcc2 | |
1479 | builtin and then its argument prototype would still apply. */ | |
1480 | char strerror (); | |
1481 | int | |
1482 | main () | |
1483 | { | |
1484 | strerror (); | |
1485 | ; | |
1486 | return 0; | |
1487 | } | |
1488 | _ACEOF | |
1489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1491 | (eval $ac_link) 2>conftest.er1 | |
1492 | ac_status=$? | |
1493 | grep -v '^ *+' conftest.er1 >conftest.err | |
1494 | rm -f conftest.er1 | |
1495 | cat conftest.err >&5 | |
1496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1497 | (exit $ac_status); } && | |
1498 | { ac_try='test -z "$ac_c_werror_flag" | |
1499 | || test ! -s conftest.err' | |
1500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1501 | (eval $ac_try) 2>&5 | |
1502 | ac_status=$? | |
1503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1504 | (exit $ac_status); }; } && | |
1505 | { ac_try='test -s conftest$ac_exeext' | |
1506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1507 | (eval $ac_try) 2>&5 | |
1508 | ac_status=$? | |
1509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1510 | (exit $ac_status); }; }; then | |
1511 | ac_cv_search_strerror="-l$ac_lib" | |
1512 | break | |
1513 | else | |
1514 | echo "$as_me: failed program was:" >&5 | |
1515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1516 | ||
1517 | fi | |
1518 | rm -f conftest.err conftest.$ac_objext \ | |
1519 | conftest$ac_exeext conftest.$ac_ext | |
1520 | done | |
1521 | fi | |
1522 | LIBS=$ac_func_search_save_LIBS | |
1523 | fi | |
1524 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
1525 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
1526 | if test "$ac_cv_search_strerror" != no; then | |
1527 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
1528 | ||
1529 | fi | |
1530 | ||
1531 | ac_ext=c | |
1532 | ac_cpp='$CPP $CPPFLAGS' | |
1533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1536 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
1537 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
1538 | # On Suns, sometimes $CPP names a directory. | |
1539 | if test -n "$CPP" && test -d "$CPP"; then | |
1540 | CPP= | |
1541 | fi | |
1542 | if test -z "$CPP"; then | |
1543 | if test "${ac_cv_prog_CPP+set}" = set; then | |
1544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1545 | else | |
1546 | # Double quotes because CPP needs to be expanded | |
1547 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
1548 | do | |
1549 | ac_preproc_ok=false | |
1550 | for ac_c_preproc_warn_flag in '' yes | |
1551 | do | |
1552 | # Use a header file that comes with gcc, so configuring glibc | |
1553 | # with a fresh cross-compiler works. | |
1554 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1555 | # <limits.h> exists even on freestanding compilers. | |
1556 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1557 | # not just through cpp. "Syntax error" is here to catch this case. | |
1558 | cat >conftest.$ac_ext <<_ACEOF | |
1559 | /* confdefs.h. */ | |
1560 | _ACEOF | |
1561 | cat confdefs.h >>conftest.$ac_ext | |
1562 | cat >>conftest.$ac_ext <<_ACEOF | |
1563 | /* end confdefs.h. */ | |
1564 | #ifdef __STDC__ | |
1565 | # include <limits.h> | |
1566 | #else | |
1567 | # include <assert.h> | |
1568 | #endif | |
1569 | Syntax error | |
1570 | _ACEOF | |
1571 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1572 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1573 | ac_status=$? | |
1574 | grep -v '^ *+' conftest.er1 >conftest.err | |
1575 | rm -f conftest.er1 | |
1576 | cat conftest.err >&5 | |
1577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1578 | (exit $ac_status); } >/dev/null; then | |
1579 | if test -s conftest.err; then | |
1580 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1581 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1582 | else | |
1583 | ac_cpp_err= | |
1584 | fi | |
1585 | else | |
1586 | ac_cpp_err=yes | |
1587 | fi | |
1588 | if test -z "$ac_cpp_err"; then | |
1589 | : | |
1590 | else | |
1591 | echo "$as_me: failed program was:" >&5 | |
1592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1593 | ||
1594 | # Broken: fails on valid input. | |
1595 | continue | |
1596 | fi | |
1597 | rm -f conftest.err conftest.$ac_ext | |
1598 | ||
1599 | # OK, works on sane cases. Now check whether non-existent headers | |
1600 | # can be detected and how. | |
1601 | cat >conftest.$ac_ext <<_ACEOF | |
1602 | /* confdefs.h. */ | |
1603 | _ACEOF | |
1604 | cat confdefs.h >>conftest.$ac_ext | |
1605 | cat >>conftest.$ac_ext <<_ACEOF | |
1606 | /* end confdefs.h. */ | |
1607 | #include <ac_nonexistent.h> | |
1608 | _ACEOF | |
1609 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1610 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1611 | ac_status=$? | |
1612 | grep -v '^ *+' conftest.er1 >conftest.err | |
1613 | rm -f conftest.er1 | |
1614 | cat conftest.err >&5 | |
1615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1616 | (exit $ac_status); } >/dev/null; then | |
1617 | if test -s conftest.err; then | |
1618 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1619 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1620 | else | |
1621 | ac_cpp_err= | |
1622 | fi | |
1623 | else | |
1624 | ac_cpp_err=yes | |
1625 | fi | |
1626 | if test -z "$ac_cpp_err"; then | |
1627 | # Broken: success on invalid input. | |
1628 | continue | |
1629 | else | |
1630 | echo "$as_me: failed program was:" >&5 | |
1631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1632 | ||
1633 | # Passes both tests. | |
1634 | ac_preproc_ok=: | |
1635 | break | |
1636 | fi | |
1637 | rm -f conftest.err conftest.$ac_ext | |
1638 | ||
1639 | done | |
1640 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
1641 | rm -f conftest.err conftest.$ac_ext | |
1642 | if $ac_preproc_ok; then | |
1643 | break | |
1644 | fi | |
1645 | ||
1646 | done | |
1647 | ac_cv_prog_CPP=$CPP | |
1648 | ||
1649 | fi | |
1650 | CPP=$ac_cv_prog_CPP | |
1651 | else | |
1652 | ac_cv_prog_CPP=$CPP | |
1653 | fi | |
1654 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
1655 | echo "${ECHO_T}$CPP" >&6 | |
1656 | ac_preproc_ok=false | |
1657 | for ac_c_preproc_warn_flag in '' yes | |
1658 | do | |
1659 | # Use a header file that comes with gcc, so configuring glibc | |
1660 | # with a fresh cross-compiler works. | |
1661 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1662 | # <limits.h> exists even on freestanding compilers. | |
1663 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1664 | # not just through cpp. "Syntax error" is here to catch this case. | |
1665 | cat >conftest.$ac_ext <<_ACEOF | |
1666 | /* confdefs.h. */ | |
1667 | _ACEOF | |
1668 | cat confdefs.h >>conftest.$ac_ext | |
1669 | cat >>conftest.$ac_ext <<_ACEOF | |
1670 | /* end confdefs.h. */ | |
1671 | #ifdef __STDC__ | |
1672 | # include <limits.h> | |
1673 | #else | |
1674 | # include <assert.h> | |
1675 | #endif | |
1676 | Syntax error | |
1677 | _ACEOF | |
1678 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1679 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1680 | ac_status=$? | |
1681 | grep -v '^ *+' conftest.er1 >conftest.err | |
1682 | rm -f conftest.er1 | |
1683 | cat conftest.err >&5 | |
1684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1685 | (exit $ac_status); } >/dev/null; then | |
1686 | if test -s conftest.err; then | |
1687 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1688 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1689 | else | |
1690 | ac_cpp_err= | |
1691 | fi | |
1692 | else | |
1693 | ac_cpp_err=yes | |
1694 | fi | |
1695 | if test -z "$ac_cpp_err"; then | |
1696 | : | |
1697 | else | |
1698 | echo "$as_me: failed program was:" >&5 | |
1699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1700 | ||
1701 | # Broken: fails on valid input. | |
1702 | continue | |
1703 | fi | |
1704 | rm -f conftest.err conftest.$ac_ext | |
1705 | ||
1706 | # OK, works on sane cases. Now check whether non-existent headers | |
1707 | # can be detected and how. | |
1708 | cat >conftest.$ac_ext <<_ACEOF | |
1709 | /* confdefs.h. */ | |
1710 | _ACEOF | |
1711 | cat confdefs.h >>conftest.$ac_ext | |
1712 | cat >>conftest.$ac_ext <<_ACEOF | |
1713 | /* end confdefs.h. */ | |
1714 | #include <ac_nonexistent.h> | |
1715 | _ACEOF | |
1716 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1717 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1718 | ac_status=$? | |
1719 | grep -v '^ *+' conftest.er1 >conftest.err | |
1720 | rm -f conftest.er1 | |
1721 | cat conftest.err >&5 | |
1722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1723 | (exit $ac_status); } >/dev/null; then | |
1724 | if test -s conftest.err; then | |
1725 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1726 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1727 | else | |
1728 | ac_cpp_err= | |
1729 | fi | |
1730 | else | |
1731 | ac_cpp_err=yes | |
1732 | fi | |
1733 | if test -z "$ac_cpp_err"; then | |
1734 | # Broken: success on invalid input. | |
1735 | continue | |
1736 | else | |
1737 | echo "$as_me: failed program was:" >&5 | |
1738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1739 | ||
1740 | # Passes both tests. | |
1741 | ac_preproc_ok=: | |
1742 | break | |
1743 | fi | |
1744 | rm -f conftest.err conftest.$ac_ext | |
1745 | ||
1746 | done | |
1747 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
1748 | rm -f conftest.err conftest.$ac_ext | |
1749 | if $ac_preproc_ok; then | |
1750 | : | |
1751 | else | |
1752 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
1753 | See \`config.log' for more details." >&5 | |
1754 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
1755 | See \`config.log' for more details." >&2;} | |
1756 | { (exit 1); exit 1; }; } | |
1757 | fi | |
1758 | ||
1759 | ac_ext=c | |
1760 | ac_cpp='$CPP $CPPFLAGS' | |
1761 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1762 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1764 | ||
1765 | ||
1766 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
1767 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
1768 | if test "${ac_cv_prog_egrep+set}" = set; then | |
1769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1770 | else | |
1771 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
1772 | then ac_cv_prog_egrep='grep -E' | |
1773 | else ac_cv_prog_egrep='egrep' | |
1774 | fi | |
1775 | fi | |
1776 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
1777 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
1778 | EGREP=$ac_cv_prog_egrep | |
1779 | ||
1780 | ||
1781 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
1782 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
1783 | if test "${ac_cv_header_stdc+set}" = set; then | |
1784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1785 | else | |
1786 | cat >conftest.$ac_ext <<_ACEOF | |
1787 | /* confdefs.h. */ | |
1788 | _ACEOF | |
1789 | cat confdefs.h >>conftest.$ac_ext | |
1790 | cat >>conftest.$ac_ext <<_ACEOF | |
1791 | /* end confdefs.h. */ | |
1792 | #include <stdlib.h> | |
1793 | #include <stdarg.h> | |
1794 | #include <string.h> | |
1795 | #include <float.h> | |
1796 | ||
1797 | int | |
1798 | main () | |
1799 | { | |
1800 | ||
1801 | ; | |
1802 | return 0; | |
1803 | } | |
1804 | _ACEOF | |
1805 | rm -f conftest.$ac_objext | |
1806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1807 | (eval $ac_compile) 2>conftest.er1 | |
1808 | ac_status=$? | |
1809 | grep -v '^ *+' conftest.er1 >conftest.err | |
1810 | rm -f conftest.er1 | |
1811 | cat conftest.err >&5 | |
1812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1813 | (exit $ac_status); } && | |
1814 | { ac_try='test -z "$ac_c_werror_flag" | |
1815 | || test ! -s conftest.err' | |
1816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1817 | (eval $ac_try) 2>&5 | |
1818 | ac_status=$? | |
1819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1820 | (exit $ac_status); }; } && | |
1821 | { ac_try='test -s conftest.$ac_objext' | |
1822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1823 | (eval $ac_try) 2>&5 | |
1824 | ac_status=$? | |
1825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1826 | (exit $ac_status); }; }; then | |
1827 | ac_cv_header_stdc=yes | |
1828 | else | |
1829 | echo "$as_me: failed program was:" >&5 | |
1830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1831 | ||
1832 | ac_cv_header_stdc=no | |
1833 | fi | |
1834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d031c16 AC |
1835 | |
1836 | if test $ac_cv_header_stdc = yes; then | |
1837 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b7026657 AC |
1838 | cat >conftest.$ac_ext <<_ACEOF |
1839 | /* confdefs.h. */ | |
1840 | _ACEOF | |
1841 | cat confdefs.h >>conftest.$ac_ext | |
1842 | cat >>conftest.$ac_ext <<_ACEOF | |
1843 | /* end confdefs.h. */ | |
5d031c16 | 1844 | #include <string.h> |
b7026657 AC |
1845 | |
1846 | _ACEOF | |
5d031c16 | 1847 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 1848 | $EGREP "memchr" >/dev/null 2>&1; then |
5d031c16 AC |
1849 | : |
1850 | else | |
5d031c16 AC |
1851 | ac_cv_header_stdc=no |
1852 | fi | |
1853 | rm -f conftest* | |
1854 | ||
1855 | fi | |
1856 | ||
1857 | if test $ac_cv_header_stdc = yes; then | |
1858 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b7026657 AC |
1859 | cat >conftest.$ac_ext <<_ACEOF |
1860 | /* confdefs.h. */ | |
1861 | _ACEOF | |
1862 | cat confdefs.h >>conftest.$ac_ext | |
1863 | cat >>conftest.$ac_ext <<_ACEOF | |
1864 | /* end confdefs.h. */ | |
5d031c16 | 1865 | #include <stdlib.h> |
b7026657 AC |
1866 | |
1867 | _ACEOF | |
5d031c16 | 1868 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 1869 | $EGREP "free" >/dev/null 2>&1; then |
5d031c16 AC |
1870 | : |
1871 | else | |
5d031c16 AC |
1872 | ac_cv_header_stdc=no |
1873 | fi | |
1874 | rm -f conftest* | |
1875 | ||
1876 | fi | |
1877 | ||
1878 | if test $ac_cv_header_stdc = yes; then | |
1879 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b7026657 | 1880 | if test "$cross_compiling" = yes; then |
5d031c16 AC |
1881 | : |
1882 | else | |
b7026657 AC |
1883 | cat >conftest.$ac_ext <<_ACEOF |
1884 | /* confdefs.h. */ | |
1885 | _ACEOF | |
1886 | cat confdefs.h >>conftest.$ac_ext | |
1887 | cat >>conftest.$ac_ext <<_ACEOF | |
1888 | /* end confdefs.h. */ | |
5d031c16 | 1889 | #include <ctype.h> |
b7026657 AC |
1890 | #if ((' ' & 0x0FF) == 0x020) |
1891 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1892 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1893 | #else | |
1894 | # define ISLOWER(c) \ | |
1895 | (('a' <= (c) && (c) <= 'i') \ | |
1896 | || ('j' <= (c) && (c) <= 'r') \ | |
1897 | || ('s' <= (c) && (c) <= 'z')) | |
1898 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
1899 | #endif | |
5d031c16 | 1900 | |
b7026657 AC |
1901 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1902 | int | |
1903 | main () | |
1904 | { | |
1905 | int i; | |
1906 | for (i = 0; i < 256; i++) | |
1907 | if (XOR (islower (i), ISLOWER (i)) | |
1908 | || toupper (i) != TOUPPER (i)) | |
1909 | exit(2); | |
1910 | exit (0); | |
1911 | } | |
1912 | _ACEOF | |
1913 | rm -f conftest$ac_exeext | |
1914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1915 | (eval $ac_link) 2>&5 | |
1916 | ac_status=$? | |
1917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1918 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
1919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1920 | (eval $ac_try) 2>&5 | |
1921 | ac_status=$? | |
1922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1923 | (exit $ac_status); }; }; then | |
5d031c16 AC |
1924 | : |
1925 | else | |
b7026657 AC |
1926 | echo "$as_me: program exited with status $ac_status" >&5 |
1927 | echo "$as_me: failed program was:" >&5 | |
1928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1929 | ||
1930 | ( exit $ac_status ) | |
1931 | ac_cv_header_stdc=no | |
5d031c16 | 1932 | fi |
b7026657 | 1933 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d031c16 | 1934 | fi |
5d031c16 AC |
1935 | fi |
1936 | fi | |
b7026657 AC |
1937 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
1938 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5d031c16 | 1939 | if test $ac_cv_header_stdc = yes; then |
b7026657 AC |
1940 | |
1941 | cat >>confdefs.h <<\_ACEOF | |
5d031c16 | 1942 | #define STDC_HEADERS 1 |
b7026657 | 1943 | _ACEOF |
5d031c16 | 1944 | |
b7026657 AC |
1945 | fi |
1946 | ||
1947 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
1948 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
1949 | if test "${ac_cv_c_const+set}" = set; then | |
1950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1951 | else | |
1952 | cat >conftest.$ac_ext <<_ACEOF | |
1953 | /* confdefs.h. */ | |
1954 | _ACEOF | |
1955 | cat confdefs.h >>conftest.$ac_ext | |
1956 | cat >>conftest.$ac_ext <<_ACEOF | |
1957 | /* end confdefs.h. */ | |
1958 | ||
1959 | int | |
1960 | main () | |
1961 | { | |
1962 | /* FIXME: Include the comments suggested by Paul. */ | |
1963 | #ifndef __cplusplus | |
1964 | /* Ultrix mips cc rejects this. */ | |
1965 | typedef int charset[2]; | |
1966 | const charset x; | |
1967 | /* SunOS 4.1.1 cc rejects this. */ | |
1968 | char const *const *ccp; | |
1969 | char **p; | |
1970 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
1971 | struct point {int x, y;}; | |
1972 | static struct point const zero = {0,0}; | |
1973 | /* AIX XL C 1.02.0.0 rejects this. | |
1974 | It does not let you subtract one const X* pointer from another in | |
1975 | an arm of an if-expression whose if-part is not a constant | |
1976 | expression */ | |
1977 | const char *g = "string"; | |
1978 | ccp = &g + (g ? g-g : 0); | |
1979 | /* HPUX 7.0 cc rejects these. */ | |
1980 | ++ccp; | |
1981 | p = (char**) ccp; | |
1982 | ccp = (char const *const *) p; | |
1983 | { /* SCO 3.2v4 cc rejects this. */ | |
1984 | char *t; | |
1985 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
1986 | ||
1987 | *t++ = 0; | |
1988 | } | |
1989 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
1990 | int x[] = {25, 17}; | |
1991 | const int *foo = &x[0]; | |
1992 | ++foo; | |
1993 | } | |
1994 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
1995 | typedef const int *iptr; | |
1996 | iptr p = 0; | |
1997 | ++p; | |
1998 | } | |
1999 | { /* AIX XL C 1.02.0.0 rejects this saying | |
2000 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
2001 | struct s { int j; const int *ap[3]; }; | |
2002 | struct s *b; b->j = 5; | |
2003 | } | |
2004 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
2005 | const int foo = 10; | |
2006 | } | |
2007 | #endif | |
2008 | ||
2009 | ; | |
2010 | return 0; | |
2011 | } | |
2012 | _ACEOF | |
2013 | rm -f conftest.$ac_objext | |
2014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2015 | (eval $ac_compile) 2>conftest.er1 | |
2016 | ac_status=$? | |
2017 | grep -v '^ *+' conftest.er1 >conftest.err | |
2018 | rm -f conftest.er1 | |
2019 | cat conftest.err >&5 | |
2020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2021 | (exit $ac_status); } && | |
2022 | { ac_try='test -z "$ac_c_werror_flag" | |
2023 | || test ! -s conftest.err' | |
2024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2025 | (eval $ac_try) 2>&5 | |
2026 | ac_status=$? | |
2027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2028 | (exit $ac_status); }; } && | |
2029 | { ac_try='test -s conftest.$ac_objext' | |
2030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2031 | (eval $ac_try) 2>&5 | |
2032 | ac_status=$? | |
2033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2034 | (exit $ac_status); }; }; then | |
5d031c16 AC |
2035 | ac_cv_c_const=yes |
2036 | else | |
b7026657 AC |
2037 | echo "$as_me: failed program was:" >&5 |
2038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2039 | ||
2040 | ac_cv_c_const=no | |
5d031c16 | 2041 | fi |
b7026657 | 2042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d031c16 | 2043 | fi |
b7026657 AC |
2044 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
2045 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
5d031c16 | 2046 | if test $ac_cv_c_const = no; then |
b7026657 AC |
2047 | |
2048 | cat >>confdefs.h <<\_ACEOF | |
2049 | #define const | |
2050 | _ACEOF | |
5d031c16 AC |
2051 | |
2052 | fi | |
2053 | ||
b7026657 AC |
2054 | echo "$as_me:$LINENO: checking for inline" >&5 |
2055 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
2056 | if test "${ac_cv_c_inline+set}" = set; then | |
2057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 AC |
2058 | else |
2059 | ac_cv_c_inline=no | |
2060 | for ac_kw in inline __inline__ __inline; do | |
b7026657 AC |
2061 | cat >conftest.$ac_ext <<_ACEOF |
2062 | /* confdefs.h. */ | |
2063 | _ACEOF | |
2064 | cat confdefs.h >>conftest.$ac_ext | |
2065 | cat >>conftest.$ac_ext <<_ACEOF | |
2066 | /* end confdefs.h. */ | |
2067 | #ifndef __cplusplus | |
2068 | typedef int foo_t; | |
2069 | static $ac_kw foo_t static_foo () {return 0; } | |
2070 | $ac_kw foo_t foo () {return 0; } | |
2071 | #endif | |
2072 | ||
2073 | _ACEOF | |
2074 | rm -f conftest.$ac_objext | |
2075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2076 | (eval $ac_compile) 2>conftest.er1 | |
2077 | ac_status=$? | |
2078 | grep -v '^ *+' conftest.er1 >conftest.err | |
2079 | rm -f conftest.er1 | |
2080 | cat conftest.err >&5 | |
2081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2082 | (exit $ac_status); } && | |
2083 | { ac_try='test -z "$ac_c_werror_flag" | |
2084 | || test ! -s conftest.err' | |
2085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2086 | (eval $ac_try) 2>&5 | |
2087 | ac_status=$? | |
2088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2089 | (exit $ac_status); }; } && | |
2090 | { ac_try='test -s conftest.$ac_objext' | |
2091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2092 | (eval $ac_try) 2>&5 | |
2093 | ac_status=$? | |
2094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2095 | (exit $ac_status); }; }; then | |
5d031c16 AC |
2096 | ac_cv_c_inline=$ac_kw; break |
2097 | else | |
b7026657 AC |
2098 | echo "$as_me: failed program was:" >&5 |
2099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2100 | ||
5d031c16 | 2101 | fi |
b7026657 | 2102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d031c16 AC |
2103 | done |
2104 | ||
2105 | fi | |
b7026657 AC |
2106 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
2107 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
5d031c16 | 2108 | |
b7026657 AC |
2109 | |
2110 | case $ac_cv_c_inline in | |
5d031c16 | 2111 | inline | yes) ;; |
b7026657 AC |
2112 | *) |
2113 | case $ac_cv_c_inline in | |
2114 | no) ac_val=;; | |
2115 | *) ac_val=$ac_cv_c_inline;; | |
2116 | esac | |
2117 | cat >>confdefs.h <<_ACEOF | |
2118 | #ifndef __cplusplus | |
2119 | #define inline $ac_val | |
2120 | #endif | |
2121 | _ACEOF | |
2122 | ;; | |
5d031c16 AC |
2123 | esac |
2124 | ||
b7026657 AC |
2125 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
2126 | ||
2127 | ||
2128 | ||
2129 | ||
2130 | ||
2131 | ||
2132 | ||
2133 | ||
2134 | ||
2135 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
2136 | inttypes.h stdint.h unistd.h | |
2137 | do | |
2138 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
2139 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2140 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2141 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2143 | else | |
2144 | cat >conftest.$ac_ext <<_ACEOF | |
2145 | /* confdefs.h. */ | |
2146 | _ACEOF | |
2147 | cat confdefs.h >>conftest.$ac_ext | |
2148 | cat >>conftest.$ac_ext <<_ACEOF | |
2149 | /* end confdefs.h. */ | |
2150 | $ac_includes_default | |
2151 | ||
2152 | #include <$ac_header> | |
2153 | _ACEOF | |
2154 | rm -f conftest.$ac_objext | |
2155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2156 | (eval $ac_compile) 2>conftest.er1 | |
2157 | ac_status=$? | |
2158 | grep -v '^ *+' conftest.er1 >conftest.err | |
2159 | rm -f conftest.er1 | |
2160 | cat conftest.err >&5 | |
2161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2162 | (exit $ac_status); } && | |
2163 | { ac_try='test -z "$ac_c_werror_flag" | |
2164 | || test ! -s conftest.err' | |
2165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2166 | (eval $ac_try) 2>&5 | |
2167 | ac_status=$? | |
2168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2169 | (exit $ac_status); }; } && | |
2170 | { ac_try='test -s conftest.$ac_objext' | |
2171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2172 | (eval $ac_try) 2>&5 | |
2173 | ac_status=$? | |
2174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2175 | (exit $ac_status); }; }; then | |
2176 | eval "$as_ac_Header=yes" | |
2177 | else | |
2178 | echo "$as_me: failed program was:" >&5 | |
2179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2180 | ||
2181 | eval "$as_ac_Header=no" | |
2182 | fi | |
2183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2184 | fi | |
2185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2186 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2187 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2188 | cat >>confdefs.h <<_ACEOF | |
2189 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2190 | _ACEOF | |
2191 | ||
2192 | fi | |
2193 | ||
2194 | done | |
2195 | ||
2196 | ||
2197 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
2198 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
2199 | if test "${ac_cv_type_off_t+set}" = set; then | |
2200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 2201 | else |
b7026657 AC |
2202 | cat >conftest.$ac_ext <<_ACEOF |
2203 | /* confdefs.h. */ | |
2204 | _ACEOF | |
2205 | cat confdefs.h >>conftest.$ac_ext | |
2206 | cat >>conftest.$ac_ext <<_ACEOF | |
2207 | /* end confdefs.h. */ | |
2208 | $ac_includes_default | |
2209 | int | |
2210 | main () | |
2211 | { | |
2212 | if ((off_t *) 0) | |
2213 | return 0; | |
2214 | if (sizeof (off_t)) | |
2215 | return 0; | |
2216 | ; | |
2217 | return 0; | |
2218 | } | |
2219 | _ACEOF | |
2220 | rm -f conftest.$ac_objext | |
2221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2222 | (eval $ac_compile) 2>conftest.er1 | |
2223 | ac_status=$? | |
2224 | grep -v '^ *+' conftest.er1 >conftest.err | |
2225 | rm -f conftest.er1 | |
2226 | cat conftest.err >&5 | |
2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2228 | (exit $ac_status); } && | |
2229 | { ac_try='test -z "$ac_c_werror_flag" | |
2230 | || test ! -s conftest.err' | |
2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2232 | (eval $ac_try) 2>&5 | |
2233 | ac_status=$? | |
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2235 | (exit $ac_status); }; } && | |
2236 | { ac_try='test -s conftest.$ac_objext' | |
2237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2238 | (eval $ac_try) 2>&5 | |
2239 | ac_status=$? | |
2240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2241 | (exit $ac_status); }; }; then | |
5d031c16 AC |
2242 | ac_cv_type_off_t=yes |
2243 | else | |
b7026657 AC |
2244 | echo "$as_me: failed program was:" >&5 |
2245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5d031c16 | 2246 | |
b7026657 AC |
2247 | ac_cv_type_off_t=no |
2248 | fi | |
2249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d031c16 | 2250 | fi |
b7026657 AC |
2251 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
2252 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
2253 | if test $ac_cv_type_off_t = yes; then | |
2254 | : | |
2255 | else | |
2256 | ||
2257 | cat >>confdefs.h <<_ACEOF | |
5d031c16 | 2258 | #define off_t long |
b7026657 | 2259 | _ACEOF |
5d031c16 AC |
2260 | |
2261 | fi | |
2262 | ||
b7026657 AC |
2263 | echo "$as_me:$LINENO: checking for size_t" >&5 |
2264 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
2265 | if test "${ac_cv_type_size_t+set}" = set; then | |
2266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 2267 | else |
b7026657 AC |
2268 | cat >conftest.$ac_ext <<_ACEOF |
2269 | /* confdefs.h. */ | |
2270 | _ACEOF | |
2271 | cat confdefs.h >>conftest.$ac_ext | |
2272 | cat >>conftest.$ac_ext <<_ACEOF | |
2273 | /* end confdefs.h. */ | |
2274 | $ac_includes_default | |
2275 | int | |
2276 | main () | |
2277 | { | |
2278 | if ((size_t *) 0) | |
2279 | return 0; | |
2280 | if (sizeof (size_t)) | |
2281 | return 0; | |
2282 | ; | |
2283 | return 0; | |
2284 | } | |
2285 | _ACEOF | |
2286 | rm -f conftest.$ac_objext | |
2287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2288 | (eval $ac_compile) 2>conftest.er1 | |
2289 | ac_status=$? | |
2290 | grep -v '^ *+' conftest.er1 >conftest.err | |
2291 | rm -f conftest.er1 | |
2292 | cat conftest.err >&5 | |
2293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2294 | (exit $ac_status); } && | |
2295 | { ac_try='test -z "$ac_c_werror_flag" | |
2296 | || test ! -s conftest.err' | |
2297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2298 | (eval $ac_try) 2>&5 | |
2299 | ac_status=$? | |
2300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2301 | (exit $ac_status); }; } && | |
2302 | { ac_try='test -s conftest.$ac_objext' | |
2303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2304 | (eval $ac_try) 2>&5 | |
2305 | ac_status=$? | |
2306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2307 | (exit $ac_status); }; }; then | |
5d031c16 AC |
2308 | ac_cv_type_size_t=yes |
2309 | else | |
b7026657 AC |
2310 | echo "$as_me: failed program was:" >&5 |
2311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5d031c16 | 2312 | |
b7026657 AC |
2313 | ac_cv_type_size_t=no |
2314 | fi | |
2315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d031c16 | 2316 | fi |
b7026657 AC |
2317 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
2318 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
2319 | if test $ac_cv_type_size_t = yes; then | |
2320 | : | |
2321 | else | |
2322 | ||
2323 | cat >>confdefs.h <<_ACEOF | |
5d031c16 | 2324 | #define size_t unsigned |
b7026657 | 2325 | _ACEOF |
5d031c16 AC |
2326 | |
2327 | fi | |
2328 | ||
2329 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
2330 | # for constant arguments. Useless! | |
b7026657 AC |
2331 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
2332 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
2333 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
2334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2335 | else | |
2336 | cat >conftest.$ac_ext <<_ACEOF | |
2337 | /* confdefs.h. */ | |
2338 | _ACEOF | |
2339 | cat confdefs.h >>conftest.$ac_ext | |
2340 | cat >>conftest.$ac_ext <<_ACEOF | |
2341 | /* end confdefs.h. */ | |
5d031c16 | 2342 | #include <alloca.h> |
b7026657 AC |
2343 | int |
2344 | main () | |
2345 | { | |
2346 | char *p = (char *) alloca (2 * sizeof (int)); | |
2347 | ; | |
2348 | return 0; | |
2349 | } | |
2350 | _ACEOF | |
2351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2353 | (eval $ac_link) 2>conftest.er1 | |
2354 | ac_status=$? | |
2355 | grep -v '^ *+' conftest.er1 >conftest.err | |
2356 | rm -f conftest.er1 | |
2357 | cat conftest.err >&5 | |
2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2359 | (exit $ac_status); } && | |
2360 | { ac_try='test -z "$ac_c_werror_flag" | |
2361 | || test ! -s conftest.err' | |
2362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2363 | (eval $ac_try) 2>&5 | |
2364 | ac_status=$? | |
2365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2366 | (exit $ac_status); }; } && | |
2367 | { ac_try='test -s conftest$ac_exeext' | |
2368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2369 | (eval $ac_try) 2>&5 | |
2370 | ac_status=$? | |
2371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2372 | (exit $ac_status); }; }; then | |
2373 | ac_cv_working_alloca_h=yes | |
2374 | else | |
2375 | echo "$as_me: failed program was:" >&5 | |
2376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2377 | ||
2378 | ac_cv_working_alloca_h=no | |
2379 | fi | |
2380 | rm -f conftest.err conftest.$ac_objext \ | |
2381 | conftest$ac_exeext conftest.$ac_ext | |
2382 | fi | |
2383 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
2384 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
2385 | if test $ac_cv_working_alloca_h = yes; then | |
2386 | ||
2387 | cat >>confdefs.h <<\_ACEOF | |
5d031c16 | 2388 | #define HAVE_ALLOCA_H 1 |
b7026657 | 2389 | _ACEOF |
5d031c16 AC |
2390 | |
2391 | fi | |
2392 | ||
b7026657 AC |
2393 | echo "$as_me:$LINENO: checking for alloca" >&5 |
2394 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
2395 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
2396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 2397 | else |
b7026657 AC |
2398 | cat >conftest.$ac_ext <<_ACEOF |
2399 | /* confdefs.h. */ | |
2400 | _ACEOF | |
2401 | cat confdefs.h >>conftest.$ac_ext | |
2402 | cat >>conftest.$ac_ext <<_ACEOF | |
2403 | /* end confdefs.h. */ | |
5d031c16 AC |
2404 | #ifdef __GNUC__ |
2405 | # define alloca __builtin_alloca | |
2406 | #else | |
2407 | # ifdef _MSC_VER | |
2408 | # include <malloc.h> | |
2409 | # define alloca _alloca | |
2410 | # else | |
2411 | # if HAVE_ALLOCA_H | |
2412 | # include <alloca.h> | |
2413 | # else | |
2414 | # ifdef _AIX | |
2415 | #pragma alloca | |
2416 | # else | |
2417 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
2418 | char *alloca (); | |
2419 | # endif | |
2420 | # endif | |
2421 | # endif | |
2422 | # endif | |
2423 | #endif | |
2424 | ||
b7026657 AC |
2425 | int |
2426 | main () | |
2427 | { | |
2428 | char *p = (char *) alloca (1); | |
2429 | ; | |
2430 | return 0; | |
2431 | } | |
2432 | _ACEOF | |
2433 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2435 | (eval $ac_link) 2>conftest.er1 | |
2436 | ac_status=$? | |
2437 | grep -v '^ *+' conftest.er1 >conftest.err | |
2438 | rm -f conftest.er1 | |
2439 | cat conftest.err >&5 | |
2440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2441 | (exit $ac_status); } && | |
2442 | { ac_try='test -z "$ac_c_werror_flag" | |
2443 | || test ! -s conftest.err' | |
2444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2445 | (eval $ac_try) 2>&5 | |
2446 | ac_status=$? | |
2447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2448 | (exit $ac_status); }; } && | |
2449 | { ac_try='test -s conftest$ac_exeext' | |
2450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2451 | (eval $ac_try) 2>&5 | |
2452 | ac_status=$? | |
2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2454 | (exit $ac_status); }; }; then | |
5d031c16 AC |
2455 | ac_cv_func_alloca_works=yes |
2456 | else | |
b7026657 AC |
2457 | echo "$as_me: failed program was:" >&5 |
2458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2459 | ||
2460 | ac_cv_func_alloca_works=no | |
5d031c16 | 2461 | fi |
b7026657 AC |
2462 | rm -f conftest.err conftest.$ac_objext \ |
2463 | conftest$ac_exeext conftest.$ac_ext | |
5d031c16 | 2464 | fi |
b7026657 AC |
2465 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
2466 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
5d031c16 | 2467 | |
5d031c16 | 2468 | if test $ac_cv_func_alloca_works = yes; then |
5d031c16 | 2469 | |
b7026657 AC |
2470 | cat >>confdefs.h <<\_ACEOF |
2471 | #define HAVE_ALLOCA 1 | |
2472 | _ACEOF | |
5d031c16 | 2473 | |
b7026657 | 2474 | else |
5d031c16 | 2475 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
b7026657 AC |
2476 | # that cause trouble. Some versions do not even contain alloca or |
2477 | # contain a buggy version. If you still want to use their alloca, | |
2478 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
2479 | ||
2480 | ALLOCA=alloca.$ac_objext | |
2481 | ||
2482 | cat >>confdefs.h <<\_ACEOF | |
5d031c16 | 2483 | #define C_ALLOCA 1 |
b7026657 | 2484 | _ACEOF |
5d031c16 AC |
2485 | |
2486 | ||
b7026657 AC |
2487 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
2488 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
2489 | if test "${ac_cv_os_cray+set}" = set; then | |
2490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 2491 | else |
b7026657 AC |
2492 | cat >conftest.$ac_ext <<_ACEOF |
2493 | /* confdefs.h. */ | |
2494 | _ACEOF | |
2495 | cat confdefs.h >>conftest.$ac_ext | |
2496 | cat >>conftest.$ac_ext <<_ACEOF | |
2497 | /* end confdefs.h. */ | |
5d031c16 AC |
2498 | #if defined(CRAY) && ! defined(CRAY2) |
2499 | webecray | |
2500 | #else | |
2501 | wenotbecray | |
2502 | #endif | |
2503 | ||
b7026657 | 2504 | _ACEOF |
5d031c16 | 2505 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 2506 | $EGREP "webecray" >/dev/null 2>&1; then |
5d031c16 AC |
2507 | ac_cv_os_cray=yes |
2508 | else | |
5d031c16 AC |
2509 | ac_cv_os_cray=no |
2510 | fi | |
2511 | rm -f conftest* | |
2512 | ||
2513 | fi | |
b7026657 AC |
2514 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
2515 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
5d031c16 | 2516 | if test $ac_cv_os_cray = yes; then |
b7026657 AC |
2517 | for ac_func in _getb67 GETB67 getb67; do |
2518 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
2519 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
2520 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
2521 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
2522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2523 | else | |
2524 | cat >conftest.$ac_ext <<_ACEOF | |
2525 | /* confdefs.h. */ | |
2526 | _ACEOF | |
2527 | cat confdefs.h >>conftest.$ac_ext | |
2528 | cat >>conftest.$ac_ext <<_ACEOF | |
2529 | /* end confdefs.h. */ | |
2530 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
2531 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2532 | #define $ac_func innocuous_$ac_func | |
2533 | ||
5d031c16 | 2534 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
2535 | which can conflict with char $ac_func (); below. |
2536 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2537 | <limits.h> exists even on freestanding compilers. */ | |
2538 | ||
2539 | #ifdef __STDC__ | |
2540 | # include <limits.h> | |
2541 | #else | |
2542 | # include <assert.h> | |
2543 | #endif | |
5d031c16 | 2544 | |
b7026657 | 2545 | #undef $ac_func |
5d031c16 | 2546 | |
b7026657 AC |
2547 | /* Override any gcc2 internal prototype to avoid an error. */ |
2548 | #ifdef __cplusplus | |
2549 | extern "C" | |
2550 | { | |
2551 | #endif | |
2552 | /* We use char because int might match the return type of a gcc2 | |
2553 | builtin and then its argument prototype would still apply. */ | |
2554 | char $ac_func (); | |
5d031c16 AC |
2555 | /* The GNU C library defines this for functions which it implements |
2556 | to always fail with ENOSYS. Some functions are actually named | |
2557 | something starting with __ and the normal name is an alias. */ | |
2558 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2559 | choke me | |
2560 | #else | |
b7026657 AC |
2561 | char (*f) () = $ac_func; |
2562 | #endif | |
2563 | #ifdef __cplusplus | |
2564 | } | |
5d031c16 AC |
2565 | #endif |
2566 | ||
b7026657 AC |
2567 | int |
2568 | main () | |
2569 | { | |
2570 | return f != $ac_func; | |
2571 | ; | |
2572 | return 0; | |
2573 | } | |
2574 | _ACEOF | |
2575 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2577 | (eval $ac_link) 2>conftest.er1 | |
2578 | ac_status=$? | |
2579 | grep -v '^ *+' conftest.er1 >conftest.err | |
2580 | rm -f conftest.er1 | |
2581 | cat conftest.err >&5 | |
2582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2583 | (exit $ac_status); } && | |
2584 | { ac_try='test -z "$ac_c_werror_flag" | |
2585 | || test ! -s conftest.err' | |
2586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2587 | (eval $ac_try) 2>&5 | |
2588 | ac_status=$? | |
2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2590 | (exit $ac_status); }; } && | |
2591 | { ac_try='test -s conftest$ac_exeext' | |
2592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2593 | (eval $ac_try) 2>&5 | |
2594 | ac_status=$? | |
2595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2596 | (exit $ac_status); }; }; then | |
2597 | eval "$as_ac_var=yes" | |
2598 | else | |
2599 | echo "$as_me: failed program was:" >&5 | |
2600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2601 | ||
2602 | eval "$as_ac_var=no" | |
2603 | fi | |
2604 | rm -f conftest.err conftest.$ac_objext \ | |
2605 | conftest$ac_exeext conftest.$ac_ext | |
2606 | fi | |
2607 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
2608 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
2609 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
2610 | ||
2611 | cat >>confdefs.h <<_ACEOF | |
5d031c16 | 2612 | #define CRAY_STACKSEG_END $ac_func |
b7026657 | 2613 | _ACEOF |
5d031c16 | 2614 | |
b7026657 | 2615 | break |
5d031c16 AC |
2616 | fi |
2617 | ||
b7026657 | 2618 | done |
5d031c16 AC |
2619 | fi |
2620 | ||
b7026657 AC |
2621 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
2622 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
2623 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
2624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 AC |
2625 | else |
2626 | if test "$cross_compiling" = yes; then | |
2627 | ac_cv_c_stack_direction=0 | |
2628 | else | |
b7026657 AC |
2629 | cat >conftest.$ac_ext <<_ACEOF |
2630 | /* confdefs.h. */ | |
2631 | _ACEOF | |
2632 | cat confdefs.h >>conftest.$ac_ext | |
2633 | cat >>conftest.$ac_ext <<_ACEOF | |
2634 | /* end confdefs.h. */ | |
2635 | int | |
5d031c16 AC |
2636 | find_stack_direction () |
2637 | { | |
2638 | static char *addr = 0; | |
2639 | auto char dummy; | |
2640 | if (addr == 0) | |
2641 | { | |
2642 | addr = &dummy; | |
2643 | return find_stack_direction (); | |
2644 | } | |
2645 | else | |
2646 | return (&dummy > addr) ? 1 : -1; | |
2647 | } | |
b7026657 AC |
2648 | |
2649 | int | |
5d031c16 AC |
2650 | main () |
2651 | { | |
b7026657 | 2652 | exit (find_stack_direction () < 0); |
5d031c16 | 2653 | } |
b7026657 AC |
2654 | _ACEOF |
2655 | rm -f conftest$ac_exeext | |
2656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2657 | (eval $ac_link) 2>&5 | |
2658 | ac_status=$? | |
2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2660 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2662 | (eval $ac_try) 2>&5 | |
2663 | ac_status=$? | |
2664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2665 | (exit $ac_status); }; }; then | |
5d031c16 AC |
2666 | ac_cv_c_stack_direction=1 |
2667 | else | |
b7026657 AC |
2668 | echo "$as_me: program exited with status $ac_status" >&5 |
2669 | echo "$as_me: failed program was:" >&5 | |
2670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2671 | ||
2672 | ( exit $ac_status ) | |
2673 | ac_cv_c_stack_direction=-1 | |
5d031c16 | 2674 | fi |
b7026657 | 2675 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d031c16 | 2676 | fi |
5d031c16 | 2677 | fi |
b7026657 AC |
2678 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
2679 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
5d031c16 | 2680 | |
b7026657 | 2681 | cat >>confdefs.h <<_ACEOF |
5d031c16 | 2682 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
b7026657 AC |
2683 | _ACEOF |
2684 | ||
5d031c16 AC |
2685 | |
2686 | fi | |
2687 | ||
b7026657 AC |
2688 | |
2689 | ||
2690 | for ac_header in stdlib.h unistd.h | |
5d031c16 | 2691 | do |
b7026657 AC |
2692 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2693 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2694 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2695 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2696 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2698 | fi | |
2699 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2700 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2701 | else | |
2702 | # Is the header compilable? | |
2703 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
2704 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
2705 | cat >conftest.$ac_ext <<_ACEOF | |
2706 | /* confdefs.h. */ | |
2707 | _ACEOF | |
2708 | cat confdefs.h >>conftest.$ac_ext | |
2709 | cat >>conftest.$ac_ext <<_ACEOF | |
2710 | /* end confdefs.h. */ | |
2711 | $ac_includes_default | |
2712 | #include <$ac_header> | |
2713 | _ACEOF | |
2714 | rm -f conftest.$ac_objext | |
2715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2716 | (eval $ac_compile) 2>conftest.er1 | |
2717 | ac_status=$? | |
2718 | grep -v '^ *+' conftest.er1 >conftest.err | |
2719 | rm -f conftest.er1 | |
2720 | cat conftest.err >&5 | |
2721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2722 | (exit $ac_status); } && | |
2723 | { ac_try='test -z "$ac_c_werror_flag" | |
2724 | || test ! -s conftest.err' | |
2725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2726 | (eval $ac_try) 2>&5 | |
2727 | ac_status=$? | |
2728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2729 | (exit $ac_status); }; } && | |
2730 | { ac_try='test -s conftest.$ac_objext' | |
2731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2732 | (eval $ac_try) 2>&5 | |
2733 | ac_status=$? | |
2734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2735 | (exit $ac_status); }; }; then | |
2736 | ac_header_compiler=yes | |
2737 | else | |
2738 | echo "$as_me: failed program was:" >&5 | |
2739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2740 | ||
2741 | ac_header_compiler=no | |
2742 | fi | |
2743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2744 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
2745 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
2746 | ||
2747 | # Is the header present? | |
2748 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
2749 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
2750 | cat >conftest.$ac_ext <<_ACEOF | |
2751 | /* confdefs.h. */ | |
2752 | _ACEOF | |
2753 | cat confdefs.h >>conftest.$ac_ext | |
2754 | cat >>conftest.$ac_ext <<_ACEOF | |
2755 | /* end confdefs.h. */ | |
2756 | #include <$ac_header> | |
2757 | _ACEOF | |
2758 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2759 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2760 | ac_status=$? | |
2761 | grep -v '^ *+' conftest.er1 >conftest.err | |
2762 | rm -f conftest.er1 | |
2763 | cat conftest.err >&5 | |
2764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2765 | (exit $ac_status); } >/dev/null; then | |
2766 | if test -s conftest.err; then | |
2767 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2768 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2769 | else | |
2770 | ac_cpp_err= | |
2771 | fi | |
2772 | else | |
2773 | ac_cpp_err=yes | |
5d031c16 | 2774 | fi |
b7026657 AC |
2775 | if test -z "$ac_cpp_err"; then |
2776 | ac_header_preproc=yes | |
2777 | else | |
2778 | echo "$as_me: failed program was:" >&5 | |
2779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2780 | ||
2781 | ac_header_preproc=no | |
5d031c16 | 2782 | fi |
b7026657 AC |
2783 | rm -f conftest.err conftest.$ac_ext |
2784 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
2785 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
2786 | ||
2787 | # So? What about this header? | |
2788 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
2789 | yes:no: ) | |
2790 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2791 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2792 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
2793 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
2794 | ac_header_preproc=yes | |
2795 | ;; | |
2796 | no:yes:* ) | |
2797 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
2798 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
2799 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
2800 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
2801 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
2802 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
2803 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
2804 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
2805 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
2806 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
2807 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
2808 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
2809 | ( | |
2810 | cat <<\_ASBOX | |
2811 | ## ------------------------------------------ ## | |
2812 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
2813 | ## ------------------------------------------ ## | |
2814 | _ASBOX | |
2815 | ) | | |
2816 | sed "s/^/$as_me: WARNING: /" >&2 | |
2817 | ;; | |
2818 | esac | |
2819 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2820 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2821 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 2823 | else |
b7026657 | 2824 | eval "$as_ac_Header=\$ac_header_preproc" |
5d031c16 | 2825 | fi |
b7026657 AC |
2826 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2827 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2828 | ||
2829 | fi | |
2830 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2831 | cat >>confdefs.h <<_ACEOF | |
2832 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2833 | _ACEOF | |
2834 | ||
2835 | fi | |
2836 | ||
5d031c16 AC |
2837 | done |
2838 | ||
b7026657 | 2839 | |
5d031c16 AC |
2840 | for ac_func in getpagesize |
2841 | do | |
b7026657 AC |
2842 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2843 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
2844 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
2845 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
2846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2847 | else | |
2848 | cat >conftest.$ac_ext <<_ACEOF | |
2849 | /* confdefs.h. */ | |
2850 | _ACEOF | |
2851 | cat confdefs.h >>conftest.$ac_ext | |
2852 | cat >>conftest.$ac_ext <<_ACEOF | |
2853 | /* end confdefs.h. */ | |
2854 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
2855 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2856 | #define $ac_func innocuous_$ac_func | |
2857 | ||
5d031c16 | 2858 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
2859 | which can conflict with char $ac_func (); below. |
2860 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2861 | <limits.h> exists even on freestanding compilers. */ | |
2862 | ||
2863 | #ifdef __STDC__ | |
2864 | # include <limits.h> | |
2865 | #else | |
2866 | # include <assert.h> | |
2867 | #endif | |
5d031c16 | 2868 | |
b7026657 | 2869 | #undef $ac_func |
5d031c16 | 2870 | |
b7026657 AC |
2871 | /* Override any gcc2 internal prototype to avoid an error. */ |
2872 | #ifdef __cplusplus | |
2873 | extern "C" | |
2874 | { | |
2875 | #endif | |
2876 | /* We use char because int might match the return type of a gcc2 | |
2877 | builtin and then its argument prototype would still apply. */ | |
2878 | char $ac_func (); | |
5d031c16 AC |
2879 | /* The GNU C library defines this for functions which it implements |
2880 | to always fail with ENOSYS. Some functions are actually named | |
2881 | something starting with __ and the normal name is an alias. */ | |
2882 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2883 | choke me | |
2884 | #else | |
b7026657 AC |
2885 | char (*f) () = $ac_func; |
2886 | #endif | |
2887 | #ifdef __cplusplus | |
2888 | } | |
5d031c16 AC |
2889 | #endif |
2890 | ||
b7026657 AC |
2891 | int |
2892 | main () | |
2893 | { | |
2894 | return f != $ac_func; | |
2895 | ; | |
2896 | return 0; | |
2897 | } | |
2898 | _ACEOF | |
2899 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2901 | (eval $ac_link) 2>conftest.er1 | |
2902 | ac_status=$? | |
2903 | grep -v '^ *+' conftest.er1 >conftest.err | |
2904 | rm -f conftest.er1 | |
2905 | cat conftest.err >&5 | |
2906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2907 | (exit $ac_status); } && | |
2908 | { ac_try='test -z "$ac_c_werror_flag" | |
2909 | || test ! -s conftest.err' | |
2910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2911 | (eval $ac_try) 2>&5 | |
2912 | ac_status=$? | |
2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2914 | (exit $ac_status); }; } && | |
2915 | { ac_try='test -s conftest$ac_exeext' | |
2916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2917 | (eval $ac_try) 2>&5 | |
2918 | ac_status=$? | |
2919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2920 | (exit $ac_status); }; }; then | |
2921 | eval "$as_ac_var=yes" | |
2922 | else | |
2923 | echo "$as_me: failed program was:" >&5 | |
2924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2925 | ||
2926 | eval "$as_ac_var=no" | |
2927 | fi | |
2928 | rm -f conftest.err conftest.$ac_objext \ | |
2929 | conftest$ac_exeext conftest.$ac_ext | |
2930 | fi | |
2931 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
2932 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
2933 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
2934 | cat >>confdefs.h <<_ACEOF | |
2935 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
2936 | _ACEOF | |
5d031c16 | 2937 | |
5d031c16 AC |
2938 | fi |
2939 | done | |
2940 | ||
b7026657 AC |
2941 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
2942 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
2943 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
2944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 AC |
2945 | else |
2946 | if test "$cross_compiling" = yes; then | |
2947 | ac_cv_func_mmap_fixed_mapped=no | |
2948 | else | |
b7026657 AC |
2949 | cat >conftest.$ac_ext <<_ACEOF |
2950 | /* confdefs.h. */ | |
2951 | _ACEOF | |
2952 | cat confdefs.h >>conftest.$ac_ext | |
2953 | cat >>conftest.$ac_ext <<_ACEOF | |
2954 | /* end confdefs.h. */ | |
2955 | $ac_includes_default | |
2956 | /* malloc might have been renamed as rpl_malloc. */ | |
2957 | #undef malloc | |
5d031c16 AC |
2958 | |
2959 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
2960 | Here is a matrix of mmap possibilities: | |
2961 | mmap private not fixed | |
2962 | mmap private fixed at somewhere currently unmapped | |
2963 | mmap private fixed at somewhere already mapped | |
2964 | mmap shared not fixed | |
2965 | mmap shared fixed at somewhere currently unmapped | |
2966 | mmap shared fixed at somewhere already mapped | |
2967 | For private mappings, we should verify that changes cannot be read() | |
2968 | back from the file, nor mmap's back from the file at a different | |
2969 | address. (There have been systems where private was not correctly | |
2970 | implemented like the infamous i386 svr4.0, and systems where the | |
b7026657 | 2971 | VM page cache was not coherent with the file system buffer cache |
5d031c16 AC |
2972 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
2973 | For shared mappings, we should conversely verify that changes get | |
b7026657 | 2974 | propagated back to all the places they're supposed to be. |
5d031c16 AC |
2975 | |
2976 | Grep wants private fixed already mapped. | |
2977 | The main things grep needs to know about mmap are: | |
2978 | * does it exist and is it safe to write into the mmap'd area | |
2979 | * how to use it (BSD variants) */ | |
b7026657 | 2980 | |
5d031c16 AC |
2981 | #include <fcntl.h> |
2982 | #include <sys/mman.h> | |
2983 | ||
b7026657 AC |
2984 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
2985 | char *malloc (); | |
2986 | #endif | |
5d031c16 | 2987 | |
b7026657 AC |
2988 | /* This mess was copied from the GNU getpagesize.h. */ |
2989 | #if !HAVE_GETPAGESIZE | |
5d031c16 | 2990 | /* Assume that all systems that can run configure have sys/param.h. */ |
b7026657 | 2991 | # if !HAVE_SYS_PARAM_H |
5d031c16 AC |
2992 | # define HAVE_SYS_PARAM_H 1 |
2993 | # endif | |
2994 | ||
2995 | # ifdef _SC_PAGESIZE | |
2996 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
2997 | # else /* no _SC_PAGESIZE */ | |
b7026657 | 2998 | # if HAVE_SYS_PARAM_H |
5d031c16 AC |
2999 | # include <sys/param.h> |
3000 | # ifdef EXEC_PAGESIZE | |
3001 | # define getpagesize() EXEC_PAGESIZE | |
3002 | # else /* no EXEC_PAGESIZE */ | |
3003 | # ifdef NBPG | |
3004 | # define getpagesize() NBPG * CLSIZE | |
3005 | # ifndef CLSIZE | |
3006 | # define CLSIZE 1 | |
3007 | # endif /* no CLSIZE */ | |
3008 | # else /* no NBPG */ | |
3009 | # ifdef NBPC | |
3010 | # define getpagesize() NBPC | |
3011 | # else /* no NBPC */ | |
3012 | # ifdef PAGESIZE | |
3013 | # define getpagesize() PAGESIZE | |
3014 | # endif /* PAGESIZE */ | |
3015 | # endif /* no NBPC */ | |
3016 | # endif /* no NBPG */ | |
3017 | # endif /* no EXEC_PAGESIZE */ | |
3018 | # else /* no HAVE_SYS_PARAM_H */ | |
3019 | # define getpagesize() 8192 /* punt totally */ | |
3020 | # endif /* no HAVE_SYS_PARAM_H */ | |
3021 | # endif /* no _SC_PAGESIZE */ | |
3022 | ||
b7026657 | 3023 | #endif /* no HAVE_GETPAGESIZE */ |
5d031c16 AC |
3024 | |
3025 | int | |
b7026657 | 3026 | main () |
5d031c16 | 3027 | { |
b7026657 AC |
3028 | char *data, *data2, *data3; |
3029 | int i, pagesize; | |
3030 | int fd; | |
3031 | ||
3032 | pagesize = getpagesize (); | |
3033 | ||
3034 | /* First, make a file with some known garbage in it. */ | |
3035 | data = (char *) malloc (pagesize); | |
3036 | if (!data) | |
3037 | exit (1); | |
3038 | for (i = 0; i < pagesize; ++i) | |
3039 | *(data + i) = rand (); | |
3040 | umask (0); | |
3041 | fd = creat ("conftest.mmap", 0600); | |
3042 | if (fd < 0) | |
3043 | exit (1); | |
3044 | if (write (fd, data, pagesize) != pagesize) | |
3045 | exit (1); | |
3046 | close (fd); | |
3047 | ||
3048 | /* Next, try to mmap the file at a fixed address which already has | |
3049 | something else allocated at it. If we can, also make sure that | |
3050 | we see the same garbage. */ | |
3051 | fd = open ("conftest.mmap", O_RDWR); | |
3052 | if (fd < 0) | |
3053 | exit (1); | |
3054 | data2 = (char *) malloc (2 * pagesize); | |
3055 | if (!data2) | |
3056 | exit (1); | |
3057 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
3058 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
3059 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
3060 | exit (1); | |
3061 | for (i = 0; i < pagesize; ++i) | |
3062 | if (*(data + i) != *(data2 + i)) | |
3063 | exit (1); | |
3064 | ||
3065 | /* Finally, make sure that changes to the mapped area do not | |
3066 | percolate back to the file as seen by read(). (This is a bug on | |
3067 | some variants of i386 svr4.0.) */ | |
3068 | for (i = 0; i < pagesize; ++i) | |
3069 | *(data2 + i) = *(data2 + i) + 1; | |
3070 | data3 = (char *) malloc (pagesize); | |
3071 | if (!data3) | |
3072 | exit (1); | |
3073 | if (read (fd, data3, pagesize) != pagesize) | |
3074 | exit (1); | |
3075 | for (i = 0; i < pagesize; ++i) | |
3076 | if (*(data + i) != *(data3 + i)) | |
3077 | exit (1); | |
3078 | close (fd); | |
3079 | exit (0); | |
5d031c16 | 3080 | } |
b7026657 AC |
3081 | _ACEOF |
3082 | rm -f conftest$ac_exeext | |
3083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3084 | (eval $ac_link) 2>&5 | |
3085 | ac_status=$? | |
3086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3087 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3089 | (eval $ac_try) 2>&5 | |
3090 | ac_status=$? | |
3091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3092 | (exit $ac_status); }; }; then | |
5d031c16 AC |
3093 | ac_cv_func_mmap_fixed_mapped=yes |
3094 | else | |
b7026657 AC |
3095 | echo "$as_me: program exited with status $ac_status" >&5 |
3096 | echo "$as_me: failed program was:" >&5 | |
3097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5d031c16 | 3098 | |
b7026657 AC |
3099 | ( exit $ac_status ) |
3100 | ac_cv_func_mmap_fixed_mapped=no | |
5d031c16 | 3101 | fi |
b7026657 | 3102 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d031c16 | 3103 | fi |
5d031c16 | 3104 | fi |
b7026657 AC |
3105 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
3106 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
3107 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
5d031c16 | 3108 | |
b7026657 AC |
3109 | cat >>confdefs.h <<\_ACEOF |
3110 | #define HAVE_MMAP 1 | |
3111 | _ACEOF | |
5d031c16 | 3112 | |
5d031c16 | 3113 | fi |
b7026657 | 3114 | rm -f conftest.mmap |
5d031c16 | 3115 | |
5d031c16 AC |
3116 | |
3117 | # autoconf.info says this should be called right after AC_INIT. | |
b7026657 | 3118 | ac_config_headers="$ac_config_headers config.h:config.in" |
5d031c16 AC |
3119 | |
3120 | ||
3121 | ac_aux_dir= | |
3122 | for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do | |
3123 | if test -f $ac_dir/install-sh; then | |
3124 | ac_aux_dir=$ac_dir | |
3125 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3126 | break | |
3127 | elif test -f $ac_dir/install.sh; then | |
3128 | ac_aux_dir=$ac_dir | |
3129 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3130 | break | |
b7026657 AC |
3131 | elif test -f $ac_dir/shtool; then |
3132 | ac_aux_dir=$ac_dir | |
3133 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3134 | break | |
5d031c16 AC |
3135 | fi |
3136 | done | |
3137 | if test -z "$ac_aux_dir"; then | |
b7026657 AC |
3138 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&5 |
3139 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&2;} | |
3140 | { (exit 1); exit 1; }; } | |
5d031c16 | 3141 | fi |
b7026657 AC |
3142 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
3143 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
3144 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
5d031c16 | 3145 | |
b7026657 AC |
3146 | echo "$as_me:$LINENO: checking target system type" >&5 |
3147 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
3148 | if test "${ac_cv_target+set}" = set; then | |
3149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3150 | else | |
3151 | ac_cv_target_alias=$target_alias | |
3152 | test "x$ac_cv_target_alias" = "x" && | |
3153 | ac_cv_target_alias=$ac_cv_host_alias | |
3154 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
3155 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
3156 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
3157 | { (exit 1); exit 1; }; } | |
5d031c16 | 3158 | |
5d031c16 | 3159 | fi |
b7026657 AC |
3160 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
3161 | echo "${ECHO_T}$ac_cv_target" >&6 | |
3162 | target=$ac_cv_target | |
3163 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3164 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3165 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
5d031c16 | 3166 | |
5d031c16 | 3167 | |
b7026657 AC |
3168 | # The aliases save the names the user supplied, while $host etc. |
3169 | # will get canonicalized. | |
3170 | test -n "$target_alias" && | |
5d031c16 AC |
3171 | test "$program_prefix$program_suffix$program_transform_name" = \ |
3172 | NONENONEs,x,x, && | |
3173 | program_prefix=${target_alias}- | |
5d031c16 | 3174 | test "$program_prefix" != NONE && |
b7026657 | 3175 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
5d031c16 AC |
3176 | # Use a double $ so make ignores it. |
3177 | test "$program_suffix" != NONE && | |
b7026657 AC |
3178 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
3179 | # Double any \ or $. echo might interpret backslashes. | |
3180 | # By default was `s,x,x', remove it if useless. | |
3181 | cat <<\_ACEOF >conftest.sed | |
3182 | s/[\\$]/&&/g;s/;s,x,x,$// | |
3183 | _ACEOF | |
3184 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
3185 | rm conftest.sed | |
3186 | ||
3187 | ac_ext=c | |
3188 | ac_cpp='$CPP $CPPFLAGS' | |
3189 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3190 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3191 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3192 | if test -n "$ac_tool_prefix"; then | |
3193 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3194 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3195 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3197 | if test "${ac_cv_prog_CC+set}" = set; then | |
3198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3199 | else | |
3200 | if test -n "$CC"; then | |
3201 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3202 | else | |
3203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3204 | for as_dir in $PATH | |
3205 | do | |
3206 | IFS=$as_save_IFS | |
3207 | test -z "$as_dir" && as_dir=. | |
3208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3209 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3210 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3212 | break 2 | |
3213 | fi | |
3214 | done | |
3215 | done | |
5d031c16 | 3216 | |
b7026657 AC |
3217 | fi |
3218 | fi | |
3219 | CC=$ac_cv_prog_CC | |
3220 | if test -n "$CC"; then | |
3221 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3222 | echo "${ECHO_T}$CC" >&6 | |
3223 | else | |
3224 | echo "$as_me:$LINENO: result: no" >&5 | |
3225 | echo "${ECHO_T}no" >&6 | |
3226 | fi | |
5d031c16 | 3227 | |
b7026657 AC |
3228 | fi |
3229 | if test -z "$ac_cv_prog_CC"; then | |
3230 | ac_ct_CC=$CC | |
3231 | # Extract the first word of "gcc", so it can be a program name with args. | |
5d031c16 | 3232 | set dummy gcc; ac_word=$2 |
b7026657 AC |
3233 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3235 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3237 | else | |
3238 | if test -n "$ac_ct_CC"; then | |
3239 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3240 | else | |
3241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3242 | for as_dir in $PATH | |
3243 | do | |
3244 | IFS=$as_save_IFS | |
3245 | test -z "$as_dir" && as_dir=. | |
3246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3247 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3248 | ac_cv_prog_ac_ct_CC="gcc" | |
3249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3250 | break 2 | |
3251 | fi | |
3252 | done | |
3253 | done | |
3254 | ||
3255 | fi | |
3256 | fi | |
3257 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3258 | if test -n "$ac_ct_CC"; then | |
3259 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3260 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3261 | else | |
3262 | echo "$as_me:$LINENO: result: no" >&5 | |
3263 | echo "${ECHO_T}no" >&6 | |
3264 | fi | |
3265 | ||
3266 | CC=$ac_ct_CC | |
3267 | else | |
3268 | CC="$ac_cv_prog_CC" | |
3269 | fi | |
3270 | ||
3271 | if test -z "$CC"; then | |
3272 | if test -n "$ac_tool_prefix"; then | |
3273 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3274 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3275 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3277 | if test "${ac_cv_prog_CC+set}" = set; then | |
3278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 AC |
3279 | else |
3280 | if test -n "$CC"; then | |
3281 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3282 | else | |
b7026657 AC |
3283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3284 | for as_dir in $PATH | |
3285 | do | |
3286 | IFS=$as_save_IFS | |
3287 | test -z "$as_dir" && as_dir=. | |
3288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3289 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3290 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3292 | break 2 | |
3293 | fi | |
3294 | done | |
3295 | done | |
3296 | ||
5d031c16 AC |
3297 | fi |
3298 | fi | |
b7026657 | 3299 | CC=$ac_cv_prog_CC |
5d031c16 | 3300 | if test -n "$CC"; then |
b7026657 AC |
3301 | echo "$as_me:$LINENO: result: $CC" >&5 |
3302 | echo "${ECHO_T}$CC" >&6 | |
3303 | else | |
3304 | echo "$as_me:$LINENO: result: no" >&5 | |
3305 | echo "${ECHO_T}no" >&6 | |
3306 | fi | |
3307 | ||
3308 | fi | |
3309 | if test -z "$ac_cv_prog_CC"; then | |
3310 | ac_ct_CC=$CC | |
3311 | # Extract the first word of "cc", so it can be a program name with args. | |
3312 | set dummy cc; ac_word=$2 | |
3313 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3315 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3317 | else | |
3318 | if test -n "$ac_ct_CC"; then | |
3319 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3320 | else | |
3321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3322 | for as_dir in $PATH | |
3323 | do | |
3324 | IFS=$as_save_IFS | |
3325 | test -z "$as_dir" && as_dir=. | |
3326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3327 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3328 | ac_cv_prog_ac_ct_CC="cc" | |
3329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3330 | break 2 | |
3331 | fi | |
3332 | done | |
3333 | done | |
3334 | ||
3335 | fi | |
3336 | fi | |
3337 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3338 | if test -n "$ac_ct_CC"; then | |
3339 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3340 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
5d031c16 | 3341 | else |
b7026657 AC |
3342 | echo "$as_me:$LINENO: result: no" >&5 |
3343 | echo "${ECHO_T}no" >&6 | |
5d031c16 AC |
3344 | fi |
3345 | ||
b7026657 AC |
3346 | CC=$ac_ct_CC |
3347 | else | |
3348 | CC="$ac_cv_prog_CC" | |
3349 | fi | |
3350 | ||
3351 | fi | |
5d031c16 AC |
3352 | if test -z "$CC"; then |
3353 | # Extract the first word of "cc", so it can be a program name with args. | |
3354 | set dummy cc; ac_word=$2 | |
b7026657 AC |
3355 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3356 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3357 | if test "${ac_cv_prog_CC+set}" = set; then | |
3358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 AC |
3359 | else |
3360 | if test -n "$CC"; then | |
3361 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3362 | else | |
5d031c16 | 3363 | ac_prog_rejected=no |
b7026657 AC |
3364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3365 | for as_dir in $PATH | |
3366 | do | |
3367 | IFS=$as_save_IFS | |
3368 | test -z "$as_dir" && as_dir=. | |
3369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3370 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3371 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3372 | ac_prog_rejected=yes | |
3373 | continue | |
3374 | fi | |
3375 | ac_cv_prog_CC="cc" | |
3376 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3377 | break 2 | |
3378 | fi | |
3379 | done | |
3380 | done | |
3381 | ||
5d031c16 AC |
3382 | if test $ac_prog_rejected = yes; then |
3383 | # We found a bogon in the path, so make sure we never use it. | |
3384 | set dummy $ac_cv_prog_CC | |
3385 | shift | |
b7026657 | 3386 | if test $# != 0; then |
5d031c16 AC |
3387 | # We chose a different compiler from the bogus one. |
3388 | # However, it has the same basename, so the bogon will be chosen | |
3389 | # first if we set CC to just the basename; use the full file name. | |
3390 | shift | |
b7026657 | 3391 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
5d031c16 AC |
3392 | fi |
3393 | fi | |
3394 | fi | |
3395 | fi | |
b7026657 | 3396 | CC=$ac_cv_prog_CC |
5d031c16 | 3397 | if test -n "$CC"; then |
b7026657 AC |
3398 | echo "$as_me:$LINENO: result: $CC" >&5 |
3399 | echo "${ECHO_T}$CC" >&6 | |
5d031c16 | 3400 | else |
b7026657 AC |
3401 | echo "$as_me:$LINENO: result: no" >&5 |
3402 | echo "${ECHO_T}no" >&6 | |
5d031c16 AC |
3403 | fi |
3404 | ||
b7026657 AC |
3405 | fi |
3406 | if test -z "$CC"; then | |
3407 | if test -n "$ac_tool_prefix"; then | |
3408 | for ac_prog in cl | |
3409 | do | |
3410 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3411 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3412 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3414 | if test "${ac_cv_prog_CC+set}" = set; then | |
3415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 AC |
3416 | else |
3417 | if test -n "$CC"; then | |
3418 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3419 | else | |
b7026657 AC |
3420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3421 | for as_dir in $PATH | |
3422 | do | |
3423 | IFS=$as_save_IFS | |
3424 | test -z "$as_dir" && as_dir=. | |
3425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3426 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3427 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3428 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3429 | break 2 | |
3430 | fi | |
3431 | done | |
3432 | done | |
3433 | ||
5d031c16 AC |
3434 | fi |
3435 | fi | |
b7026657 | 3436 | CC=$ac_cv_prog_CC |
5d031c16 | 3437 | if test -n "$CC"; then |
b7026657 AC |
3438 | echo "$as_me:$LINENO: result: $CC" >&5 |
3439 | echo "${ECHO_T}$CC" >&6 | |
5d031c16 | 3440 | else |
b7026657 AC |
3441 | echo "$as_me:$LINENO: result: no" >&5 |
3442 | echo "${ECHO_T}no" >&6 | |
5d031c16 | 3443 | fi |
b7026657 AC |
3444 | |
3445 | test -n "$CC" && break | |
3446 | done | |
3447 | fi | |
3448 | if test -z "$CC"; then | |
3449 | ac_ct_CC=$CC | |
3450 | for ac_prog in cl | |
3451 | do | |
3452 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3453 | set dummy $ac_prog; ac_word=$2 | |
3454 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3455 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3456 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3458 | else | |
3459 | if test -n "$ac_ct_CC"; then | |
3460 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3461 | else | |
3462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3463 | for as_dir in $PATH | |
3464 | do | |
3465 | IFS=$as_save_IFS | |
3466 | test -z "$as_dir" && as_dir=. | |
3467 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3468 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3469 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3470 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3471 | break 2 | |
5d031c16 | 3472 | fi |
b7026657 AC |
3473 | done |
3474 | done | |
3475 | ||
5d031c16 | 3476 | fi |
b7026657 AC |
3477 | fi |
3478 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3479 | if test -n "$ac_ct_CC"; then | |
3480 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3481 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3482 | else | |
3483 | echo "$as_me:$LINENO: result: no" >&5 | |
3484 | echo "${ECHO_T}no" >&6 | |
3485 | fi | |
3486 | ||
3487 | test -n "$ac_ct_CC" && break | |
3488 | done | |
5d031c16 | 3489 | |
b7026657 AC |
3490 | CC=$ac_ct_CC |
3491 | fi | |
3492 | ||
3493 | fi | |
3494 | ||
3495 | ||
3496 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
3497 | See \`config.log' for more details." >&5 | |
3498 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3499 | See \`config.log' for more details." >&2;} | |
3500 | { (exit 1); exit 1; }; } | |
3501 | ||
3502 | # Provide some information about the compiler. | |
3503 | echo "$as_me:$LINENO:" \ | |
3504 | "checking for C compiler version" >&5 | |
3505 | ac_compiler=`set X $ac_compile; echo $2` | |
3506 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3507 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3508 | ac_status=$? | |
3509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3510 | (exit $ac_status); } | |
3511 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3512 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3513 | ac_status=$? | |
3514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3515 | (exit $ac_status); } | |
3516 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3517 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3518 | ac_status=$? | |
3519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3520 | (exit $ac_status); } | |
3521 | ||
3522 | cat >conftest.$ac_ext <<_ACEOF | |
3523 | /* confdefs.h. */ | |
3524 | _ACEOF | |
3525 | cat confdefs.h >>conftest.$ac_ext | |
3526 | cat >>conftest.$ac_ext <<_ACEOF | |
3527 | /* end confdefs.h. */ | |
5d031c16 | 3528 | |
b7026657 AC |
3529 | int |
3530 | main () | |
3531 | { | |
3532 | ||
3533 | ; | |
3534 | return 0; | |
3535 | } | |
3536 | _ACEOF | |
3537 | ac_clean_files_save=$ac_clean_files | |
3538 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
3539 | # Try to create an executable without -o first, disregard a.out. | |
3540 | # It will help us diagnose broken compilers, and finding out an intuition | |
3541 | # of exeext. | |
3542 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
3543 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
3544 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3545 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
3546 | (eval $ac_link_default) 2>&5 | |
3547 | ac_status=$? | |
3548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3549 | (exit $ac_status); }; then | |
3550 | # Find the output, starting from the most likely. This scheme is | |
3551 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
3552 | # resort. | |
3553 | ||
3554 | # Be careful to initialize this variable, since it used to be cached. | |
3555 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
3556 | ac_cv_exeext= | |
3557 | # b.out is created by i960 compilers. | |
3558 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
3559 | do | |
3560 | test -f "$ac_file" || continue | |
3561 | case $ac_file in | |
3562 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
3563 | ;; | |
3564 | conftest.$ac_ext ) | |
3565 | # This is the source file. | |
3566 | ;; | |
3567 | [ab].out ) | |
3568 | # We found the default executable, but exeext='' is most | |
3569 | # certainly right. | |
3570 | break;; | |
3571 | *.* ) | |
3572 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3573 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
3574 | # but it would be cool to find out if it's true. Does anybody | |
3575 | # maintain Libtool? --akim. | |
3576 | export ac_cv_exeext | |
3577 | break;; | |
3578 | * ) | |
3579 | break;; | |
3580 | esac | |
3581 | done | |
3582 | else | |
3583 | echo "$as_me: failed program was:" >&5 | |
3584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3585 | ||
3586 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
3587 | See \`config.log' for more details." >&5 | |
3588 | echo "$as_me: error: C compiler cannot create executables | |
3589 | See \`config.log' for more details." >&2;} | |
3590 | { (exit 77); exit 77; }; } | |
3591 | fi | |
3592 | ||
3593 | ac_exeext=$ac_cv_exeext | |
3594 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3595 | echo "${ECHO_T}$ac_file" >&6 | |
3596 | ||
3597 | # Check the compiler produces executables we can run. If not, either | |
3598 | # the compiler is broken, or we cross compile. | |
3599 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
3600 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
3601 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3602 | # If not cross compiling, check that we can run a simple program. | |
3603 | if test "$cross_compiling" != yes; then | |
3604 | if { ac_try='./$ac_file' | |
3605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3606 | (eval $ac_try) 2>&5 | |
3607 | ac_status=$? | |
3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3609 | (exit $ac_status); }; }; then | |
3610 | cross_compiling=no | |
5d031c16 | 3611 | else |
b7026657 AC |
3612 | if test "$cross_compiling" = maybe; then |
3613 | cross_compiling=yes | |
3614 | else | |
3615 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3616 | If you meant to cross compile, use \`--host'. | |
3617 | See \`config.log' for more details." >&5 | |
3618 | echo "$as_me: error: cannot run C compiled programs. | |
3619 | If you meant to cross compile, use \`--host'. | |
3620 | See \`config.log' for more details." >&2;} | |
3621 | { (exit 1); exit 1; }; } | |
3622 | fi | |
5d031c16 | 3623 | fi |
b7026657 AC |
3624 | fi |
3625 | echo "$as_me:$LINENO: result: yes" >&5 | |
3626 | echo "${ECHO_T}yes" >&6 | |
3627 | ||
3628 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
3629 | ac_clean_files=$ac_clean_files_save | |
3630 | # Check the compiler produces executables we can run. If not, either | |
3631 | # the compiler is broken, or we cross compile. | |
3632 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3633 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
3634 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3635 | echo "${ECHO_T}$cross_compiling" >&6 | |
3636 | ||
3637 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3638 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3640 | (eval $ac_link) 2>&5 | |
3641 | ac_status=$? | |
3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3643 | (exit $ac_status); }; then | |
3644 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3645 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3646 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3647 | # `rm'. | |
3648 | for ac_file in conftest.exe conftest conftest.*; do | |
3649 | test -f "$ac_file" || continue | |
3650 | case $ac_file in | |
3651 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
3652 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3653 | export ac_cv_exeext | |
3654 | break;; | |
3655 | * ) break;; | |
3656 | esac | |
3657 | done | |
5d031c16 | 3658 | else |
b7026657 AC |
3659 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3660 | See \`config.log' for more details." >&5 | |
3661 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3662 | See \`config.log' for more details." >&2;} | |
3663 | { (exit 1); exit 1; }; } | |
5d031c16 | 3664 | fi |
5d031c16 | 3665 | |
b7026657 AC |
3666 | rm -f conftest$ac_cv_exeext |
3667 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3668 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
5d031c16 | 3669 | |
b7026657 AC |
3670 | rm -f conftest.$ac_ext |
3671 | EXEEXT=$ac_cv_exeext | |
3672 | ac_exeext=$EXEEXT | |
3673 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3674 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
3675 | if test "${ac_cv_objext+set}" = set; then | |
3676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3677 | else | |
3678 | cat >conftest.$ac_ext <<_ACEOF | |
3679 | /* confdefs.h. */ | |
3680 | _ACEOF | |
3681 | cat confdefs.h >>conftest.$ac_ext | |
3682 | cat >>conftest.$ac_ext <<_ACEOF | |
3683 | /* end confdefs.h. */ | |
5d031c16 | 3684 | |
b7026657 AC |
3685 | int |
3686 | main () | |
3687 | { | |
5d031c16 | 3688 | |
b7026657 AC |
3689 | ; |
3690 | return 0; | |
3691 | } | |
3692 | _ACEOF | |
3693 | rm -f conftest.o conftest.obj | |
3694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3695 | (eval $ac_compile) 2>&5 | |
3696 | ac_status=$? | |
3697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3698 | (exit $ac_status); }; then | |
3699 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3700 | case $ac_file in | |
3701 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
3702 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3703 | break;; | |
3704 | esac | |
3705 | done | |
5d031c16 | 3706 | else |
b7026657 AC |
3707 | echo "$as_me: failed program was:" >&5 |
3708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3709 | ||
3710 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3711 | See \`config.log' for more details." >&5 | |
3712 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3713 | See \`config.log' for more details." >&2;} | |
3714 | { (exit 1); exit 1; }; } | |
5d031c16 AC |
3715 | fi |
3716 | ||
b7026657 AC |
3717 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3718 | fi | |
3719 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3720 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
3721 | OBJEXT=$ac_cv_objext | |
3722 | ac_objext=$OBJEXT | |
3723 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3724 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3725 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 3727 | else |
b7026657 AC |
3728 | cat >conftest.$ac_ext <<_ACEOF |
3729 | /* confdefs.h. */ | |
3730 | _ACEOF | |
3731 | cat confdefs.h >>conftest.$ac_ext | |
3732 | cat >>conftest.$ac_ext <<_ACEOF | |
3733 | /* end confdefs.h. */ | |
3734 | ||
3735 | int | |
3736 | main () | |
3737 | { | |
3738 | #ifndef __GNUC__ | |
3739 | choke me | |
3740 | #endif | |
3741 | ||
3742 | ; | |
3743 | return 0; | |
3744 | } | |
3745 | _ACEOF | |
3746 | rm -f conftest.$ac_objext | |
3747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3748 | (eval $ac_compile) 2>conftest.er1 | |
3749 | ac_status=$? | |
3750 | grep -v '^ *+' conftest.er1 >conftest.err | |
3751 | rm -f conftest.er1 | |
3752 | cat conftest.err >&5 | |
3753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3754 | (exit $ac_status); } && | |
3755 | { ac_try='test -z "$ac_c_werror_flag" | |
3756 | || test ! -s conftest.err' | |
3757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3758 | (eval $ac_try) 2>&5 | |
3759 | ac_status=$? | |
3760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3761 | (exit $ac_status); }; } && | |
3762 | { ac_try='test -s conftest.$ac_objext' | |
3763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3764 | (eval $ac_try) 2>&5 | |
3765 | ac_status=$? | |
3766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3767 | (exit $ac_status); }; }; then | |
3768 | ac_compiler_gnu=yes | |
3769 | else | |
3770 | echo "$as_me: failed program was:" >&5 | |
3771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3772 | ||
3773 | ac_compiler_gnu=no | |
3774 | fi | |
3775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3776 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3777 | ||
3778 | fi | |
3779 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3780 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3781 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3782 | ac_test_CFLAGS=${CFLAGS+set} | |
3783 | ac_save_CFLAGS=$CFLAGS | |
3784 | CFLAGS="-g" | |
3785 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3786 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3787 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3789 | else | |
3790 | cat >conftest.$ac_ext <<_ACEOF | |
3791 | /* confdefs.h. */ | |
3792 | _ACEOF | |
3793 | cat confdefs.h >>conftest.$ac_ext | |
3794 | cat >>conftest.$ac_ext <<_ACEOF | |
3795 | /* end confdefs.h. */ | |
3796 | ||
3797 | int | |
3798 | main () | |
3799 | { | |
3800 | ||
3801 | ; | |
3802 | return 0; | |
3803 | } | |
3804 | _ACEOF | |
3805 | rm -f conftest.$ac_objext | |
3806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3807 | (eval $ac_compile) 2>conftest.er1 | |
3808 | ac_status=$? | |
3809 | grep -v '^ *+' conftest.er1 >conftest.err | |
3810 | rm -f conftest.er1 | |
3811 | cat conftest.err >&5 | |
3812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3813 | (exit $ac_status); } && | |
3814 | { ac_try='test -z "$ac_c_werror_flag" | |
3815 | || test ! -s conftest.err' | |
3816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3817 | (eval $ac_try) 2>&5 | |
3818 | ac_status=$? | |
3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3820 | (exit $ac_status); }; } && | |
3821 | { ac_try='test -s conftest.$ac_objext' | |
3822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3823 | (eval $ac_try) 2>&5 | |
3824 | ac_status=$? | |
3825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3826 | (exit $ac_status); }; }; then | |
5d031c16 AC |
3827 | ac_cv_prog_cc_g=yes |
3828 | else | |
b7026657 AC |
3829 | echo "$as_me: failed program was:" >&5 |
3830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5d031c16 | 3831 | |
b7026657 | 3832 | ac_cv_prog_cc_g=no |
5d031c16 | 3833 | fi |
b7026657 AC |
3834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3835 | fi | |
3836 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3837 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
5d031c16 | 3838 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 3839 | CFLAGS=$ac_save_CFLAGS |
5d031c16 AC |
3840 | elif test $ac_cv_prog_cc_g = yes; then |
3841 | if test "$GCC" = yes; then | |
3842 | CFLAGS="-g -O2" | |
3843 | else | |
3844 | CFLAGS="-g" | |
3845 | fi | |
3846 | else | |
3847 | if test "$GCC" = yes; then | |
3848 | CFLAGS="-O2" | |
3849 | else | |
3850 | CFLAGS= | |
3851 | fi | |
3852 | fi | |
b7026657 AC |
3853 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3854 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3855 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3857 | else | |
3858 | ac_cv_prog_cc_stdc=no | |
3859 | ac_save_CC=$CC | |
3860 | cat >conftest.$ac_ext <<_ACEOF | |
3861 | /* confdefs.h. */ | |
3862 | _ACEOF | |
3863 | cat confdefs.h >>conftest.$ac_ext | |
3864 | cat >>conftest.$ac_ext <<_ACEOF | |
3865 | /* end confdefs.h. */ | |
3866 | #include <stdarg.h> | |
3867 | #include <stdio.h> | |
3868 | #include <sys/types.h> | |
3869 | #include <sys/stat.h> | |
3870 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3871 | struct buf { int x; }; | |
3872 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3873 | static char *e (p, i) | |
3874 | char **p; | |
3875 | int i; | |
3876 | { | |
3877 | return p[i]; | |
3878 | } | |
3879 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3880 | { | |
3881 | char *s; | |
3882 | va_list v; | |
3883 | va_start (v,p); | |
3884 | s = g (p, va_arg (v,int)); | |
3885 | va_end (v); | |
3886 | return s; | |
3887 | } | |
3888 | ||
3889 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3890 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3891 | These don't provoke an error unfortunately, instead are silently treated | |
3892 | as 'x'. The following induces an error, until -std1 is added to get | |
3893 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3894 | array size at least. It's necessary to write '\x00'==0 to get something | |
3895 | that's true only with -std1. */ | |
3896 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3897 | ||
3898 | int test (int i, double x); | |
3899 | struct s1 {int (*f) (int a);}; | |
3900 | struct s2 {int (*f) (double a);}; | |
3901 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3902 | int argc; | |
3903 | char **argv; | |
3904 | int | |
3905 | main () | |
3906 | { | |
3907 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3908 | ; | |
3909 | return 0; | |
3910 | } | |
3911 | _ACEOF | |
3912 | # Don't try gcc -ansi; that turns off useful extensions and | |
3913 | # breaks some systems' header files. | |
3914 | # AIX -qlanglvl=ansi | |
3915 | # Ultrix and OSF/1 -std1 | |
3916 | # HP-UX 10.20 and later -Ae | |
3917 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3918 | # SVR4 -Xc -D__EXTENSIONS__ | |
3919 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3920 | do | |
3921 | CC="$ac_save_CC $ac_arg" | |
3922 | rm -f conftest.$ac_objext | |
3923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3924 | (eval $ac_compile) 2>conftest.er1 | |
3925 | ac_status=$? | |
3926 | grep -v '^ *+' conftest.er1 >conftest.err | |
3927 | rm -f conftest.er1 | |
3928 | cat conftest.err >&5 | |
3929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3930 | (exit $ac_status); } && | |
3931 | { ac_try='test -z "$ac_c_werror_flag" | |
3932 | || test ! -s conftest.err' | |
3933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3934 | (eval $ac_try) 2>&5 | |
3935 | ac_status=$? | |
3936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3937 | (exit $ac_status); }; } && | |
3938 | { ac_try='test -s conftest.$ac_objext' | |
3939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3940 | (eval $ac_try) 2>&5 | |
3941 | ac_status=$? | |
3942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3943 | (exit $ac_status); }; }; then | |
3944 | ac_cv_prog_cc_stdc=$ac_arg | |
3945 | break | |
3946 | else | |
3947 | echo "$as_me: failed program was:" >&5 | |
3948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3949 | ||
3950 | fi | |
3951 | rm -f conftest.err conftest.$ac_objext | |
3952 | done | |
3953 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3954 | CC=$ac_save_CC | |
3955 | ||
3956 | fi | |
3957 | ||
3958 | case "x$ac_cv_prog_cc_stdc" in | |
3959 | x|xno) | |
3960 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3961 | echo "${ECHO_T}none needed" >&6 ;; | |
3962 | *) | |
3963 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3964 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3965 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3966 | esac | |
3967 | ||
3968 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
3969 | # in C++ we need to declare it. In case someone uses the same compiler | |
3970 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3971 | # the declaration of exit, since it's the most demanding environment. | |
3972 | cat >conftest.$ac_ext <<_ACEOF | |
3973 | #ifndef __cplusplus | |
3974 | choke me | |
3975 | #endif | |
3976 | _ACEOF | |
3977 | rm -f conftest.$ac_objext | |
3978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3979 | (eval $ac_compile) 2>conftest.er1 | |
3980 | ac_status=$? | |
3981 | grep -v '^ *+' conftest.er1 >conftest.err | |
3982 | rm -f conftest.er1 | |
3983 | cat conftest.err >&5 | |
3984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3985 | (exit $ac_status); } && | |
3986 | { ac_try='test -z "$ac_c_werror_flag" | |
3987 | || test ! -s conftest.err' | |
3988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3989 | (eval $ac_try) 2>&5 | |
3990 | ac_status=$? | |
3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3992 | (exit $ac_status); }; } && | |
3993 | { ac_try='test -s conftest.$ac_objext' | |
3994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3995 | (eval $ac_try) 2>&5 | |
3996 | ac_status=$? | |
3997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3998 | (exit $ac_status); }; }; then | |
3999 | for ac_declaration in \ | |
4000 | '' \ | |
4001 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4002 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4003 | 'extern "C" void exit (int) throw ();' \ | |
4004 | 'extern "C" void exit (int);' \ | |
4005 | 'void exit (int);' | |
4006 | do | |
4007 | cat >conftest.$ac_ext <<_ACEOF | |
4008 | /* confdefs.h. */ | |
4009 | _ACEOF | |
4010 | cat confdefs.h >>conftest.$ac_ext | |
4011 | cat >>conftest.$ac_ext <<_ACEOF | |
4012 | /* end confdefs.h. */ | |
4013 | $ac_declaration | |
4014 | #include <stdlib.h> | |
4015 | int | |
4016 | main () | |
4017 | { | |
4018 | exit (42); | |
4019 | ; | |
4020 | return 0; | |
4021 | } | |
4022 | _ACEOF | |
4023 | rm -f conftest.$ac_objext | |
4024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4025 | (eval $ac_compile) 2>conftest.er1 | |
4026 | ac_status=$? | |
4027 | grep -v '^ *+' conftest.er1 >conftest.err | |
4028 | rm -f conftest.er1 | |
4029 | cat conftest.err >&5 | |
4030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4031 | (exit $ac_status); } && | |
4032 | { ac_try='test -z "$ac_c_werror_flag" | |
4033 | || test ! -s conftest.err' | |
4034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4035 | (eval $ac_try) 2>&5 | |
4036 | ac_status=$? | |
4037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4038 | (exit $ac_status); }; } && | |
4039 | { ac_try='test -s conftest.$ac_objext' | |
4040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4041 | (eval $ac_try) 2>&5 | |
4042 | ac_status=$? | |
4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4044 | (exit $ac_status); }; }; then | |
4045 | : | |
4046 | else | |
4047 | echo "$as_me: failed program was:" >&5 | |
4048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4049 | ||
4050 | continue | |
4051 | fi | |
4052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4053 | cat >conftest.$ac_ext <<_ACEOF | |
4054 | /* confdefs.h. */ | |
4055 | _ACEOF | |
4056 | cat confdefs.h >>conftest.$ac_ext | |
4057 | cat >>conftest.$ac_ext <<_ACEOF | |
4058 | /* end confdefs.h. */ | |
4059 | $ac_declaration | |
4060 | int | |
4061 | main () | |
4062 | { | |
4063 | exit (42); | |
4064 | ; | |
4065 | return 0; | |
4066 | } | |
4067 | _ACEOF | |
4068 | rm -f conftest.$ac_objext | |
4069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4070 | (eval $ac_compile) 2>conftest.er1 | |
4071 | ac_status=$? | |
4072 | grep -v '^ *+' conftest.er1 >conftest.err | |
4073 | rm -f conftest.er1 | |
4074 | cat conftest.err >&5 | |
4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4076 | (exit $ac_status); } && | |
4077 | { ac_try='test -z "$ac_c_werror_flag" | |
4078 | || test ! -s conftest.err' | |
4079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4080 | (eval $ac_try) 2>&5 | |
4081 | ac_status=$? | |
4082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4083 | (exit $ac_status); }; } && | |
4084 | { ac_try='test -s conftest.$ac_objext' | |
4085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4086 | (eval $ac_try) 2>&5 | |
4087 | ac_status=$? | |
4088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4089 | (exit $ac_status); }; }; then | |
4090 | break | |
4091 | else | |
4092 | echo "$as_me: failed program was:" >&5 | |
4093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4094 | ||
4095 | fi | |
4096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4097 | done | |
4098 | rm -f conftest* | |
4099 | if test -n "$ac_declaration"; then | |
4100 | echo '#ifdef __cplusplus' >>confdefs.h | |
4101 | echo $ac_declaration >>confdefs.h | |
4102 | echo '#endif' >>confdefs.h | |
4103 | fi | |
4104 | ||
4105 | else | |
4106 | echo "$as_me: failed program was:" >&5 | |
4107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4108 | ||
4109 | fi | |
4110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4111 | ac_ext=c | |
4112 | ac_cpp='$CPP $CPPFLAGS' | |
4113 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4114 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4115 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5d031c16 AC |
4116 | |
4117 | # Find a good install program. We prefer a C program (faster), | |
4118 | # so one script is as good as another. But avoid the broken or | |
4119 | # incompatible versions: | |
4120 | # SysV /etc/install, /usr/sbin/install | |
4121 | # SunOS /usr/etc/install | |
4122 | # IRIX /sbin/install | |
4123 | # AIX /bin/install | |
b7026657 | 4124 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
5d031c16 AC |
4125 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4126 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4127 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b7026657 | 4128 | # OS/2's system install, which has a completely different semantic |
5d031c16 | 4129 | # ./install, which can be erroneously created by make from ./install.sh. |
b7026657 AC |
4130 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4131 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
5d031c16 | 4132 | if test -z "$INSTALL"; then |
b7026657 AC |
4133 | if test "${ac_cv_path_install+set}" = set; then |
4134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 4135 | else |
b7026657 AC |
4136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4137 | for as_dir in $PATH | |
4138 | do | |
4139 | IFS=$as_save_IFS | |
4140 | test -z "$as_dir" && as_dir=. | |
4141 | # Account for people who put trailing slashes in PATH elements. | |
4142 | case $as_dir/ in | |
4143 | ./ | .// | /cC/* | \ | |
4144 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4145 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4146 | /usr/ucb/* ) ;; | |
4147 | *) | |
4148 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4149 | # Don't use installbsd from OSF since it installs stuff as root | |
4150 | # by default. | |
4151 | for ac_prog in ginstall scoinst install; do | |
4152 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4153 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
5d031c16 | 4154 | if test $ac_prog = install && |
b7026657 | 4155 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
5d031c16 AC |
4156 | # AIX install. It has an incompatible calling convention. |
4157 | : | |
b7026657 AC |
4158 | elif test $ac_prog = install && |
4159 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4160 | # program-specific install script used by HP pwplus--don't use. | |
4161 | : | |
5d031c16 | 4162 | else |
b7026657 AC |
4163 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4164 | break 3 | |
5d031c16 AC |
4165 | fi |
4166 | fi | |
4167 | done | |
b7026657 AC |
4168 | done |
4169 | ;; | |
4170 | esac | |
4171 | done | |
4172 | ||
5d031c16 AC |
4173 | |
4174 | fi | |
4175 | if test "${ac_cv_path_install+set}" = set; then | |
b7026657 | 4176 | INSTALL=$ac_cv_path_install |
5d031c16 AC |
4177 | else |
4178 | # As a last resort, use the slow shell script. We don't cache a | |
4179 | # path for INSTALL within a source directory, because that will | |
4180 | # break other packages using the cache if that directory is | |
4181 | # removed, or if the path is relative. | |
b7026657 | 4182 | INSTALL=$ac_install_sh |
5d031c16 AC |
4183 | fi |
4184 | fi | |
b7026657 AC |
4185 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4186 | echo "${ECHO_T}$INSTALL" >&6 | |
5d031c16 AC |
4187 | |
4188 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4189 | # It thinks the first close brace ends the variable substitution. | |
4190 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4191 | ||
b7026657 | 4192 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
5d031c16 AC |
4193 | |
4194 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4195 | ||
4196 | ||
4197 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
4198 | if test "x$cross_compiling" = "xno"; then | |
4199 | CC_FOR_BUILD='$(CC)' | |
4200 | else | |
4201 | CC_FOR_BUILD=gcc | |
4202 | fi | |
4203 | ||
4204 | ||
4205 | ||
4206 | ||
4207 | AR=${AR-ar} | |
4208 | ||
b7026657 AC |
4209 | if test -n "$ac_tool_prefix"; then |
4210 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4211 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4212 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4214 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 AC |
4216 | else |
4217 | if test -n "$RANLIB"; then | |
4218 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4219 | else | |
b7026657 AC |
4220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4221 | for as_dir in $PATH | |
4222 | do | |
4223 | IFS=$as_save_IFS | |
4224 | test -z "$as_dir" && as_dir=. | |
4225 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4226 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4227 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4229 | break 2 | |
4230 | fi | |
4231 | done | |
4232 | done | |
4233 | ||
5d031c16 AC |
4234 | fi |
4235 | fi | |
b7026657 | 4236 | RANLIB=$ac_cv_prog_RANLIB |
5d031c16 | 4237 | if test -n "$RANLIB"; then |
b7026657 AC |
4238 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4239 | echo "${ECHO_T}$RANLIB" >&6 | |
4240 | else | |
4241 | echo "$as_me:$LINENO: result: no" >&5 | |
4242 | echo "${ECHO_T}no" >&6 | |
4243 | fi | |
4244 | ||
4245 | fi | |
4246 | if test -z "$ac_cv_prog_RANLIB"; then | |
4247 | ac_ct_RANLIB=$RANLIB | |
4248 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4249 | set dummy ranlib; ac_word=$2 | |
4250 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4251 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4252 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4254 | else | |
4255 | if test -n "$ac_ct_RANLIB"; then | |
4256 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4257 | else | |
4258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4259 | for as_dir in $PATH | |
4260 | do | |
4261 | IFS=$as_save_IFS | |
4262 | test -z "$as_dir" && as_dir=. | |
4263 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4264 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4265 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4266 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4267 | break 2 | |
4268 | fi | |
4269 | done | |
4270 | done | |
4271 | ||
4272 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4273 | fi | |
4274 | fi | |
4275 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4276 | if test -n "$ac_ct_RANLIB"; then | |
4277 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4278 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4279 | else | |
4280 | echo "$as_me:$LINENO: result: no" >&5 | |
4281 | echo "${ECHO_T}no" >&6 | |
4282 | fi | |
4283 | ||
4284 | RANLIB=$ac_ct_RANLIB | |
5d031c16 | 4285 | else |
b7026657 | 4286 | RANLIB="$ac_cv_prog_RANLIB" |
5d031c16 AC |
4287 | fi |
4288 | ||
4289 | ||
4290 | ALL_LINGUAS= | |
b7026657 AC |
4291 | |
4292 | ||
4293 | ||
4294 | ||
4295 | ||
4296 | ||
4297 | ||
4298 | ||
4299 | ||
4300 | ||
4301 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
5d031c16 AC |
4302 | unistd.h values.h sys/param.h |
4303 | do | |
b7026657 AC |
4304 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4305 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4306 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4307 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4310 | fi | |
4311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4312 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4313 | else | |
4314 | # Is the header compilable? | |
4315 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4316 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4317 | cat >conftest.$ac_ext <<_ACEOF | |
4318 | /* confdefs.h. */ | |
4319 | _ACEOF | |
4320 | cat confdefs.h >>conftest.$ac_ext | |
4321 | cat >>conftest.$ac_ext <<_ACEOF | |
4322 | /* end confdefs.h. */ | |
4323 | $ac_includes_default | |
4324 | #include <$ac_header> | |
4325 | _ACEOF | |
4326 | rm -f conftest.$ac_objext | |
4327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4328 | (eval $ac_compile) 2>conftest.er1 | |
4329 | ac_status=$? | |
4330 | grep -v '^ *+' conftest.er1 >conftest.err | |
4331 | rm -f conftest.er1 | |
4332 | cat conftest.err >&5 | |
4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4334 | (exit $ac_status); } && | |
4335 | { ac_try='test -z "$ac_c_werror_flag" | |
4336 | || test ! -s conftest.err' | |
4337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4338 | (eval $ac_try) 2>&5 | |
4339 | ac_status=$? | |
4340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4341 | (exit $ac_status); }; } && | |
4342 | { ac_try='test -s conftest.$ac_objext' | |
4343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4344 | (eval $ac_try) 2>&5 | |
4345 | ac_status=$? | |
4346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4347 | (exit $ac_status); }; }; then | |
4348 | ac_header_compiler=yes | |
4349 | else | |
4350 | echo "$as_me: failed program was:" >&5 | |
4351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4352 | ||
4353 | ac_header_compiler=no | |
4354 | fi | |
4355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4356 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4357 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4358 | ||
4359 | # Is the header present? | |
4360 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4361 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4362 | cat >conftest.$ac_ext <<_ACEOF | |
4363 | /* confdefs.h. */ | |
4364 | _ACEOF | |
4365 | cat confdefs.h >>conftest.$ac_ext | |
4366 | cat >>conftest.$ac_ext <<_ACEOF | |
4367 | /* end confdefs.h. */ | |
4368 | #include <$ac_header> | |
4369 | _ACEOF | |
4370 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4371 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4372 | ac_status=$? | |
4373 | grep -v '^ *+' conftest.er1 >conftest.err | |
4374 | rm -f conftest.er1 | |
4375 | cat conftest.err >&5 | |
4376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4377 | (exit $ac_status); } >/dev/null; then | |
4378 | if test -s conftest.err; then | |
4379 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4380 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4381 | else | |
4382 | ac_cpp_err= | |
4383 | fi | |
4384 | else | |
4385 | ac_cpp_err=yes | |
5d031c16 | 4386 | fi |
b7026657 AC |
4387 | if test -z "$ac_cpp_err"; then |
4388 | ac_header_preproc=yes | |
4389 | else | |
4390 | echo "$as_me: failed program was:" >&5 | |
4391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4392 | ||
4393 | ac_header_preproc=no | |
5d031c16 | 4394 | fi |
b7026657 AC |
4395 | rm -f conftest.err conftest.$ac_ext |
4396 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4397 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4398 | ||
4399 | # So? What about this header? | |
4400 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4401 | yes:no: ) | |
4402 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4403 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4404 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4405 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4406 | ac_header_preproc=yes | |
4407 | ;; | |
4408 | no:yes:* ) | |
4409 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4410 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4411 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4412 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4413 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4414 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4415 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4416 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4417 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4418 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4419 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4420 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4421 | ( | |
4422 | cat <<\_ASBOX | |
4423 | ## ------------------------------------------ ## | |
4424 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4425 | ## ------------------------------------------ ## | |
4426 | _ASBOX | |
4427 | ) | | |
4428 | sed "s/^/$as_me: WARNING: /" >&2 | |
4429 | ;; | |
4430 | esac | |
4431 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4432 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4433 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 4435 | else |
b7026657 AC |
4436 | eval "$as_ac_Header=\$ac_header_preproc" |
4437 | fi | |
4438 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4439 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4440 | ||
5d031c16 | 4441 | fi |
b7026657 AC |
4442 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4443 | cat >>confdefs.h <<_ACEOF | |
4444 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4445 | _ACEOF | |
4446 | ||
4447 | fi | |
4448 | ||
5d031c16 AC |
4449 | done |
4450 | ||
b7026657 AC |
4451 | |
4452 | ||
4453 | ||
4454 | ||
4455 | ||
4456 | ||
4457 | ||
4458 | ||
4459 | ||
4460 | ||
4461 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
5d031c16 AC |
4462 | __argz_count __argz_stringify __argz_next |
4463 | do | |
b7026657 AC |
4464 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4465 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4466 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4467 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4469 | else | |
4470 | cat >conftest.$ac_ext <<_ACEOF | |
4471 | /* confdefs.h. */ | |
4472 | _ACEOF | |
4473 | cat confdefs.h >>conftest.$ac_ext | |
4474 | cat >>conftest.$ac_ext <<_ACEOF | |
4475 | /* end confdefs.h. */ | |
4476 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4477 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4478 | #define $ac_func innocuous_$ac_func | |
4479 | ||
5d031c16 | 4480 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4481 | which can conflict with char $ac_func (); below. |
4482 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4483 | <limits.h> exists even on freestanding compilers. */ | |
5d031c16 | 4484 | |
b7026657 AC |
4485 | #ifdef __STDC__ |
4486 | # include <limits.h> | |
4487 | #else | |
4488 | # include <assert.h> | |
4489 | #endif | |
5d031c16 | 4490 | |
b7026657 AC |
4491 | #undef $ac_func |
4492 | ||
4493 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4494 | #ifdef __cplusplus | |
4495 | extern "C" | |
4496 | { | |
4497 | #endif | |
4498 | /* We use char because int might match the return type of a gcc2 | |
4499 | builtin and then its argument prototype would still apply. */ | |
4500 | char $ac_func (); | |
5d031c16 AC |
4501 | /* The GNU C library defines this for functions which it implements |
4502 | to always fail with ENOSYS. Some functions are actually named | |
4503 | something starting with __ and the normal name is an alias. */ | |
4504 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4505 | choke me | |
4506 | #else | |
b7026657 AC |
4507 | char (*f) () = $ac_func; |
4508 | #endif | |
4509 | #ifdef __cplusplus | |
4510 | } | |
5d031c16 AC |
4511 | #endif |
4512 | ||
b7026657 AC |
4513 | int |
4514 | main () | |
4515 | { | |
4516 | return f != $ac_func; | |
4517 | ; | |
4518 | return 0; | |
4519 | } | |
4520 | _ACEOF | |
4521 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4523 | (eval $ac_link) 2>conftest.er1 | |
4524 | ac_status=$? | |
4525 | grep -v '^ *+' conftest.er1 >conftest.err | |
4526 | rm -f conftest.er1 | |
4527 | cat conftest.err >&5 | |
4528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4529 | (exit $ac_status); } && | |
4530 | { ac_try='test -z "$ac_c_werror_flag" | |
4531 | || test ! -s conftest.err' | |
4532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4533 | (eval $ac_try) 2>&5 | |
4534 | ac_status=$? | |
4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4536 | (exit $ac_status); }; } && | |
4537 | { ac_try='test -s conftest$ac_exeext' | |
4538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4539 | (eval $ac_try) 2>&5 | |
4540 | ac_status=$? | |
4541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4542 | (exit $ac_status); }; }; then | |
4543 | eval "$as_ac_var=yes" | |
4544 | else | |
4545 | echo "$as_me: failed program was:" >&5 | |
4546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4547 | ||
4548 | eval "$as_ac_var=no" | |
4549 | fi | |
4550 | rm -f conftest.err conftest.$ac_objext \ | |
4551 | conftest$ac_exeext conftest.$ac_ext | |
4552 | fi | |
4553 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4554 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4555 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4556 | cat >>confdefs.h <<_ACEOF | |
4557 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4558 | _ACEOF | |
5d031c16 | 4559 | |
5d031c16 AC |
4560 | fi |
4561 | done | |
4562 | ||
4563 | ||
4564 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
b7026657 AC |
4565 | |
4566 | for ac_func in stpcpy | |
5d031c16 | 4567 | do |
b7026657 AC |
4568 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4569 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4570 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4571 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4573 | else | |
4574 | cat >conftest.$ac_ext <<_ACEOF | |
4575 | /* confdefs.h. */ | |
4576 | _ACEOF | |
4577 | cat confdefs.h >>conftest.$ac_ext | |
4578 | cat >>conftest.$ac_ext <<_ACEOF | |
4579 | /* end confdefs.h. */ | |
4580 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4581 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4582 | #define $ac_func innocuous_$ac_func | |
4583 | ||
5d031c16 | 4584 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4585 | which can conflict with char $ac_func (); below. |
4586 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4587 | <limits.h> exists even on freestanding compilers. */ | |
5d031c16 | 4588 | |
b7026657 AC |
4589 | #ifdef __STDC__ |
4590 | # include <limits.h> | |
4591 | #else | |
4592 | # include <assert.h> | |
4593 | #endif | |
5d031c16 | 4594 | |
b7026657 AC |
4595 | #undef $ac_func |
4596 | ||
4597 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4598 | #ifdef __cplusplus | |
4599 | extern "C" | |
4600 | { | |
4601 | #endif | |
4602 | /* We use char because int might match the return type of a gcc2 | |
4603 | builtin and then its argument prototype would still apply. */ | |
4604 | char $ac_func (); | |
5d031c16 AC |
4605 | /* The GNU C library defines this for functions which it implements |
4606 | to always fail with ENOSYS. Some functions are actually named | |
4607 | something starting with __ and the normal name is an alias. */ | |
4608 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4609 | choke me | |
4610 | #else | |
b7026657 AC |
4611 | char (*f) () = $ac_func; |
4612 | #endif | |
4613 | #ifdef __cplusplus | |
4614 | } | |
5d031c16 AC |
4615 | #endif |
4616 | ||
b7026657 AC |
4617 | int |
4618 | main () | |
4619 | { | |
4620 | return f != $ac_func; | |
4621 | ; | |
4622 | return 0; | |
4623 | } | |
4624 | _ACEOF | |
4625 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4627 | (eval $ac_link) 2>conftest.er1 | |
4628 | ac_status=$? | |
4629 | grep -v '^ *+' conftest.er1 >conftest.err | |
4630 | rm -f conftest.er1 | |
4631 | cat conftest.err >&5 | |
4632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4633 | (exit $ac_status); } && | |
4634 | { ac_try='test -z "$ac_c_werror_flag" | |
4635 | || test ! -s conftest.err' | |
4636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4637 | (eval $ac_try) 2>&5 | |
4638 | ac_status=$? | |
4639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4640 | (exit $ac_status); }; } && | |
4641 | { ac_try='test -s conftest$ac_exeext' | |
4642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4643 | (eval $ac_try) 2>&5 | |
4644 | ac_status=$? | |
4645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4646 | (exit $ac_status); }; }; then | |
4647 | eval "$as_ac_var=yes" | |
4648 | else | |
4649 | echo "$as_me: failed program was:" >&5 | |
4650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4651 | ||
4652 | eval "$as_ac_var=no" | |
4653 | fi | |
4654 | rm -f conftest.err conftest.$ac_objext \ | |
4655 | conftest$ac_exeext conftest.$ac_ext | |
4656 | fi | |
4657 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4658 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4659 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4660 | cat >>confdefs.h <<_ACEOF | |
4661 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4662 | _ACEOF | |
5d031c16 | 4663 | |
5d031c16 AC |
4664 | fi |
4665 | done | |
4666 | ||
4667 | fi | |
4668 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
b7026657 | 4669 | cat >>confdefs.h <<\_ACEOF |
5d031c16 | 4670 | #define HAVE_STPCPY 1 |
b7026657 | 4671 | _ACEOF |
5d031c16 AC |
4672 | |
4673 | fi | |
4674 | ||
4675 | if test $ac_cv_header_locale_h = yes; then | |
b7026657 AC |
4676 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
4677 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
4678 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
4679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4680 | else | |
4681 | cat >conftest.$ac_ext <<_ACEOF | |
4682 | /* confdefs.h. */ | |
4683 | _ACEOF | |
4684 | cat confdefs.h >>conftest.$ac_ext | |
4685 | cat >>conftest.$ac_ext <<_ACEOF | |
4686 | /* end confdefs.h. */ | |
5d031c16 | 4687 | #include <locale.h> |
b7026657 AC |
4688 | int |
4689 | main () | |
4690 | { | |
5d031c16 | 4691 | return LC_MESSAGES |
b7026657 AC |
4692 | ; |
4693 | return 0; | |
4694 | } | |
4695 | _ACEOF | |
4696 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4698 | (eval $ac_link) 2>conftest.er1 | |
4699 | ac_status=$? | |
4700 | grep -v '^ *+' conftest.er1 >conftest.err | |
4701 | rm -f conftest.er1 | |
4702 | cat conftest.err >&5 | |
4703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4704 | (exit $ac_status); } && | |
4705 | { ac_try='test -z "$ac_c_werror_flag" | |
4706 | || test ! -s conftest.err' | |
4707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4708 | (eval $ac_try) 2>&5 | |
4709 | ac_status=$? | |
4710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4711 | (exit $ac_status); }; } && | |
4712 | { ac_try='test -s conftest$ac_exeext' | |
4713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4714 | (eval $ac_try) 2>&5 | |
4715 | ac_status=$? | |
4716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4717 | (exit $ac_status); }; }; then | |
5d031c16 AC |
4718 | am_cv_val_LC_MESSAGES=yes |
4719 | else | |
b7026657 AC |
4720 | echo "$as_me: failed program was:" >&5 |
4721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4722 | ||
4723 | am_cv_val_LC_MESSAGES=no | |
5d031c16 | 4724 | fi |
b7026657 AC |
4725 | rm -f conftest.err conftest.$ac_objext \ |
4726 | conftest$ac_exeext conftest.$ac_ext | |
5d031c16 | 4727 | fi |
b7026657 AC |
4728 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
4729 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
5d031c16 | 4730 | if test $am_cv_val_LC_MESSAGES = yes; then |
b7026657 | 4731 | cat >>confdefs.h <<\_ACEOF |
5d031c16 | 4732 | #define HAVE_LC_MESSAGES 1 |
b7026657 | 4733 | _ACEOF |
5d031c16 AC |
4734 | |
4735 | fi | |
4736 | fi | |
b7026657 AC |
4737 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
4738 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
5d031c16 AC |
4739 | # Check whether --enable-nls or --disable-nls was given. |
4740 | if test "${enable_nls+set}" = set; then | |
4741 | enableval="$enable_nls" | |
4742 | USE_NLS=$enableval | |
4743 | else | |
4744 | USE_NLS=yes | |
b7026657 AC |
4745 | fi; |
4746 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
4747 | echo "${ECHO_T}$USE_NLS" >&6 | |
5d031c16 | 4748 | |
5d031c16 AC |
4749 | |
4750 | USE_INCLUDED_LIBINTL=no | |
4751 | ||
4752 | if test "$USE_NLS" = "yes"; then | |
b7026657 | 4753 | cat >>confdefs.h <<\_ACEOF |
5d031c16 | 4754 | #define ENABLE_NLS 1 |
b7026657 | 4755 | _ACEOF |
5d031c16 | 4756 | |
b7026657 AC |
4757 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
4758 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
4759 | ||
4760 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
5d031c16 AC |
4761 | if test "${with_included_gettext+set}" = set; then |
4762 | withval="$with_included_gettext" | |
4763 | nls_cv_force_use_gnu_gettext=$withval | |
4764 | else | |
4765 | nls_cv_force_use_gnu_gettext=no | |
b7026657 AC |
4766 | fi; |
4767 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
4768 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
5d031c16 AC |
4769 | |
4770 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
4771 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
4772 | nls_cv_header_intl= | |
4773 | nls_cv_header_libgt= | |
4774 | CATOBJEXT=NONE | |
4775 | ||
b7026657 AC |
4776 | if test "${ac_cv_header_libintl_h+set}" = set; then |
4777 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4778 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4779 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4781 | fi | |
4782 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4783 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4784 | else | |
4785 | # Is the header compilable? | |
4786 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
4787 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
4788 | cat >conftest.$ac_ext <<_ACEOF | |
4789 | /* confdefs.h. */ | |
4790 | _ACEOF | |
4791 | cat confdefs.h >>conftest.$ac_ext | |
4792 | cat >>conftest.$ac_ext <<_ACEOF | |
4793 | /* end confdefs.h. */ | |
4794 | $ac_includes_default | |
5d031c16 | 4795 | #include <libintl.h> |
b7026657 AC |
4796 | _ACEOF |
4797 | rm -f conftest.$ac_objext | |
4798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4799 | (eval $ac_compile) 2>conftest.er1 | |
4800 | ac_status=$? | |
4801 | grep -v '^ *+' conftest.er1 >conftest.err | |
4802 | rm -f conftest.er1 | |
4803 | cat conftest.err >&5 | |
4804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4805 | (exit $ac_status); } && | |
4806 | { ac_try='test -z "$ac_c_werror_flag" | |
4807 | || test ! -s conftest.err' | |
4808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4809 | (eval $ac_try) 2>&5 | |
4810 | ac_status=$? | |
4811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4812 | (exit $ac_status); }; } && | |
4813 | { ac_try='test -s conftest.$ac_objext' | |
4814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4815 | (eval $ac_try) 2>&5 | |
4816 | ac_status=$? | |
4817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4818 | (exit $ac_status); }; }; then | |
4819 | ac_header_compiler=yes | |
4820 | else | |
4821 | echo "$as_me: failed program was:" >&5 | |
4822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4823 | ||
4824 | ac_header_compiler=no | |
4825 | fi | |
4826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4827 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4828 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4829 | ||
4830 | # Is the header present? | |
4831 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
4832 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
4833 | cat >conftest.$ac_ext <<_ACEOF | |
4834 | /* confdefs.h. */ | |
4835 | _ACEOF | |
4836 | cat confdefs.h >>conftest.$ac_ext | |
4837 | cat >>conftest.$ac_ext <<_ACEOF | |
4838 | /* end confdefs.h. */ | |
4839 | #include <libintl.h> | |
4840 | _ACEOF | |
4841 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4842 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4843 | ac_status=$? | |
4844 | grep -v '^ *+' conftest.er1 >conftest.err | |
4845 | rm -f conftest.er1 | |
4846 | cat conftest.err >&5 | |
4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4848 | (exit $ac_status); } >/dev/null; then | |
4849 | if test -s conftest.err; then | |
4850 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4851 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4852 | else | |
4853 | ac_cpp_err= | |
4854 | fi | |
4855 | else | |
4856 | ac_cpp_err=yes | |
5d031c16 | 4857 | fi |
b7026657 AC |
4858 | if test -z "$ac_cpp_err"; then |
4859 | ac_header_preproc=yes | |
4860 | else | |
4861 | echo "$as_me: failed program was:" >&5 | |
4862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4863 | ||
4864 | ac_header_preproc=no | |
4865 | fi | |
4866 | rm -f conftest.err conftest.$ac_ext | |
4867 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4868 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4869 | ||
4870 | # So? What about this header? | |
4871 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4872 | yes:no: ) | |
4873 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4874 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4875 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
4876 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
4877 | ac_header_preproc=yes | |
4878 | ;; | |
4879 | no:yes:* ) | |
4880 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
4881 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
4882 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
4883 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
4884 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
4885 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
4886 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4887 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4888 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
4889 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
4890 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
4891 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
4892 | ( | |
4893 | cat <<\_ASBOX | |
4894 | ## ------------------------------------------ ## | |
4895 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4896 | ## ------------------------------------------ ## | |
4897 | _ASBOX | |
4898 | ) | | |
4899 | sed "s/^/$as_me: WARNING: /" >&2 | |
4900 | ;; | |
4901 | esac | |
4902 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4903 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4904 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4906 | else | |
4907 | ac_cv_header_libintl_h=$ac_header_preproc | |
4908 | fi | |
4909 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4910 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4911 | ||
5d031c16 | 4912 | fi |
b7026657 AC |
4913 | if test $ac_cv_header_libintl_h = yes; then |
4914 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
4915 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
4916 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
4917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 4918 | else |
b7026657 AC |
4919 | cat >conftest.$ac_ext <<_ACEOF |
4920 | /* confdefs.h. */ | |
4921 | _ACEOF | |
4922 | cat confdefs.h >>conftest.$ac_ext | |
4923 | cat >>conftest.$ac_ext <<_ACEOF | |
4924 | /* end confdefs.h. */ | |
5d031c16 | 4925 | #include <libintl.h> |
b7026657 AC |
4926 | int |
4927 | main () | |
4928 | { | |
5d031c16 | 4929 | return (int) gettext ("") |
b7026657 AC |
4930 | ; |
4931 | return 0; | |
4932 | } | |
4933 | _ACEOF | |
4934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4936 | (eval $ac_link) 2>conftest.er1 | |
4937 | ac_status=$? | |
4938 | grep -v '^ *+' conftest.er1 >conftest.err | |
4939 | rm -f conftest.er1 | |
4940 | cat conftest.err >&5 | |
4941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4942 | (exit $ac_status); } && | |
4943 | { ac_try='test -z "$ac_c_werror_flag" | |
4944 | || test ! -s conftest.err' | |
4945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4946 | (eval $ac_try) 2>&5 | |
4947 | ac_status=$? | |
4948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4949 | (exit $ac_status); }; } && | |
4950 | { ac_try='test -s conftest$ac_exeext' | |
4951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4952 | (eval $ac_try) 2>&5 | |
4953 | ac_status=$? | |
4954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4955 | (exit $ac_status); }; }; then | |
5d031c16 AC |
4956 | gt_cv_func_gettext_libc=yes |
4957 | else | |
b7026657 AC |
4958 | echo "$as_me: failed program was:" >&5 |
4959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4960 | ||
4961 | gt_cv_func_gettext_libc=no | |
5d031c16 | 4962 | fi |
b7026657 AC |
4963 | rm -f conftest.err conftest.$ac_objext \ |
4964 | conftest$ac_exeext conftest.$ac_ext | |
5d031c16 | 4965 | fi |
b7026657 AC |
4966 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
4967 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
5d031c16 AC |
4968 | |
4969 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
b7026657 AC |
4970 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
4971 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
4972 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
4973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 4974 | else |
b7026657 | 4975 | ac_check_lib_save_LIBS=$LIBS |
5d031c16 | 4976 | LIBS="-lintl $LIBS" |
b7026657 AC |
4977 | cat >conftest.$ac_ext <<_ACEOF |
4978 | /* confdefs.h. */ | |
4979 | _ACEOF | |
4980 | cat confdefs.h >>conftest.$ac_ext | |
4981 | cat >>conftest.$ac_ext <<_ACEOF | |
4982 | /* end confdefs.h. */ | |
4983 | ||
5d031c16 | 4984 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
4985 | #ifdef __cplusplus |
4986 | extern "C" | |
4987 | #endif | |
5d031c16 | 4988 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
4989 | builtin and then its argument prototype would still apply. */ |
4990 | char bindtextdomain (); | |
4991 | int | |
4992 | main () | |
4993 | { | |
4994 | bindtextdomain (); | |
4995 | ; | |
4996 | return 0; | |
4997 | } | |
4998 | _ACEOF | |
4999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5001 | (eval $ac_link) 2>conftest.er1 | |
5002 | ac_status=$? | |
5003 | grep -v '^ *+' conftest.er1 >conftest.err | |
5004 | rm -f conftest.er1 | |
5005 | cat conftest.err >&5 | |
5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5007 | (exit $ac_status); } && | |
5008 | { ac_try='test -z "$ac_c_werror_flag" | |
5009 | || test ! -s conftest.err' | |
5010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5011 | (eval $ac_try) 2>&5 | |
5012 | ac_status=$? | |
5013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5014 | (exit $ac_status); }; } && | |
5015 | { ac_try='test -s conftest$ac_exeext' | |
5016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5017 | (eval $ac_try) 2>&5 | |
5018 | ac_status=$? | |
5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5020 | (exit $ac_status); }; }; then | |
5021 | ac_cv_lib_intl_bindtextdomain=yes | |
5022 | else | |
5023 | echo "$as_me: failed program was:" >&5 | |
5024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5025 | ||
5026 | ac_cv_lib_intl_bindtextdomain=no | |
5027 | fi | |
5028 | rm -f conftest.err conftest.$ac_objext \ | |
5029 | conftest$ac_exeext conftest.$ac_ext | |
5030 | LIBS=$ac_check_lib_save_LIBS | |
5031 | fi | |
5032 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
5033 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
5034 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
5035 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
5036 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
5037 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
5038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5039 | else | |
5040 | cat >conftest.$ac_ext <<_ACEOF | |
5041 | /* confdefs.h. */ | |
5042 | _ACEOF | |
5043 | cat confdefs.h >>conftest.$ac_ext | |
5044 | cat >>conftest.$ac_ext <<_ACEOF | |
5045 | /* end confdefs.h. */ | |
5d031c16 | 5046 | |
b7026657 AC |
5047 | int |
5048 | main () | |
5049 | { | |
5d031c16 | 5050 | return (int) gettext ("") |
b7026657 AC |
5051 | ; |
5052 | return 0; | |
5053 | } | |
5054 | _ACEOF | |
5055 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5057 | (eval $ac_link) 2>conftest.er1 | |
5058 | ac_status=$? | |
5059 | grep -v '^ *+' conftest.er1 >conftest.err | |
5060 | rm -f conftest.er1 | |
5061 | cat conftest.err >&5 | |
5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5063 | (exit $ac_status); } && | |
5064 | { ac_try='test -z "$ac_c_werror_flag" | |
5065 | || test ! -s conftest.err' | |
5066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5067 | (eval $ac_try) 2>&5 | |
5068 | ac_status=$? | |
5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5070 | (exit $ac_status); }; } && | |
5071 | { ac_try='test -s conftest$ac_exeext' | |
5072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5073 | (eval $ac_try) 2>&5 | |
5074 | ac_status=$? | |
5075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5076 | (exit $ac_status); }; }; then | |
5d031c16 AC |
5077 | gt_cv_func_gettext_libintl=yes |
5078 | else | |
b7026657 AC |
5079 | echo "$as_me: failed program was:" >&5 |
5080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5081 | ||
5082 | gt_cv_func_gettext_libintl=no | |
5d031c16 | 5083 | fi |
b7026657 AC |
5084 | rm -f conftest.err conftest.$ac_objext \ |
5085 | conftest$ac_exeext conftest.$ac_ext | |
5d031c16 | 5086 | fi |
b7026657 AC |
5087 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
5088 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
5d031c16 AC |
5089 | fi |
5090 | ||
5091 | fi | |
5092 | ||
5093 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
5094 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
b7026657 | 5095 | cat >>confdefs.h <<\_ACEOF |
5d031c16 | 5096 | #define HAVE_GETTEXT 1 |
b7026657 | 5097 | _ACEOF |
5d031c16 AC |
5098 | |
5099 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5100 | set dummy msgfmt; ac_word=$2 | |
b7026657 AC |
5101 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5103 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 AC |
5105 | else |
5106 | case "$MSGFMT" in | |
5107 | /*) | |
5108 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5109 | ;; | |
5110 | *) | |
5111 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5112 | for ac_dir in $PATH; do | |
5113 | test -z "$ac_dir" && ac_dir=. | |
5114 | if test -f $ac_dir/$ac_word; then | |
5115 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5116 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5117 | break | |
5118 | fi | |
5119 | fi | |
5120 | done | |
5121 | IFS="$ac_save_ifs" | |
5122 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
5123 | ;; | |
5124 | esac | |
5125 | fi | |
5126 | MSGFMT="$ac_cv_path_MSGFMT" | |
5127 | if test -n "$MSGFMT"; then | |
b7026657 AC |
5128 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5129 | echo "${ECHO_T}$MSGFMT" >&6 | |
5d031c16 | 5130 | else |
b7026657 AC |
5131 | echo "$as_me:$LINENO: result: no" >&5 |
5132 | echo "${ECHO_T}no" >&6 | |
5d031c16 AC |
5133 | fi |
5134 | if test "$MSGFMT" != "no"; then | |
b7026657 AC |
5135 | |
5136 | for ac_func in dcgettext | |
5d031c16 | 5137 | do |
b7026657 AC |
5138 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5139 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5140 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5141 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5143 | else | |
5144 | cat >conftest.$ac_ext <<_ACEOF | |
5145 | /* confdefs.h. */ | |
5146 | _ACEOF | |
5147 | cat confdefs.h >>conftest.$ac_ext | |
5148 | cat >>conftest.$ac_ext <<_ACEOF | |
5149 | /* end confdefs.h. */ | |
5150 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5152 | #define $ac_func innocuous_$ac_func | |
5153 | ||
5d031c16 | 5154 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
5155 | which can conflict with char $ac_func (); below. |
5156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5157 | <limits.h> exists even on freestanding compilers. */ | |
5158 | ||
5159 | #ifdef __STDC__ | |
5160 | # include <limits.h> | |
5161 | #else | |
5162 | # include <assert.h> | |
5163 | #endif | |
5d031c16 | 5164 | |
b7026657 | 5165 | #undef $ac_func |
5d031c16 | 5166 | |
b7026657 AC |
5167 | /* Override any gcc2 internal prototype to avoid an error. */ |
5168 | #ifdef __cplusplus | |
5169 | extern "C" | |
5170 | { | |
5171 | #endif | |
5172 | /* We use char because int might match the return type of a gcc2 | |
5173 | builtin and then its argument prototype would still apply. */ | |
5174 | char $ac_func (); | |
5d031c16 AC |
5175 | /* The GNU C library defines this for functions which it implements |
5176 | to always fail with ENOSYS. Some functions are actually named | |
5177 | something starting with __ and the normal name is an alias. */ | |
5178 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5179 | choke me | |
5180 | #else | |
b7026657 AC |
5181 | char (*f) () = $ac_func; |
5182 | #endif | |
5183 | #ifdef __cplusplus | |
5184 | } | |
5d031c16 AC |
5185 | #endif |
5186 | ||
b7026657 AC |
5187 | int |
5188 | main () | |
5189 | { | |
5190 | return f != $ac_func; | |
5191 | ; | |
5192 | return 0; | |
5193 | } | |
5194 | _ACEOF | |
5195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5197 | (eval $ac_link) 2>conftest.er1 | |
5198 | ac_status=$? | |
5199 | grep -v '^ *+' conftest.er1 >conftest.err | |
5200 | rm -f conftest.er1 | |
5201 | cat conftest.err >&5 | |
5202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5203 | (exit $ac_status); } && | |
5204 | { ac_try='test -z "$ac_c_werror_flag" | |
5205 | || test ! -s conftest.err' | |
5206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5207 | (eval $ac_try) 2>&5 | |
5208 | ac_status=$? | |
5209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5210 | (exit $ac_status); }; } && | |
5211 | { ac_try='test -s conftest$ac_exeext' | |
5212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5213 | (eval $ac_try) 2>&5 | |
5214 | ac_status=$? | |
5215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5216 | (exit $ac_status); }; }; then | |
5217 | eval "$as_ac_var=yes" | |
5218 | else | |
5219 | echo "$as_me: failed program was:" >&5 | |
5220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5221 | ||
5222 | eval "$as_ac_var=no" | |
5223 | fi | |
5224 | rm -f conftest.err conftest.$ac_objext \ | |
5225 | conftest$ac_exeext conftest.$ac_ext | |
5226 | fi | |
5227 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5228 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5229 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5230 | cat >>confdefs.h <<_ACEOF | |
5231 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5232 | _ACEOF | |
5d031c16 | 5233 | |
5d031c16 AC |
5234 | fi |
5235 | done | |
5236 | ||
5237 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5238 | set dummy gmsgfmt; ac_word=$2 | |
b7026657 AC |
5239 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5240 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5241 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 5243 | else |
b7026657 AC |
5244 | case $GMSGFMT in |
5245 | [\\/]* | ?:[\\/]*) | |
5d031c16 AC |
5246 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5247 | ;; | |
5d031c16 | 5248 | *) |
b7026657 AC |
5249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5250 | for as_dir in $PATH | |
5251 | do | |
5252 | IFS=$as_save_IFS | |
5253 | test -z "$as_dir" && as_dir=. | |
5254 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5255 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5256 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5257 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5258 | break 2 | |
5259 | fi | |
5260 | done | |
5261 | done | |
5262 | ||
5d031c16 AC |
5263 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5264 | ;; | |
5265 | esac | |
5266 | fi | |
b7026657 AC |
5267 | GMSGFMT=$ac_cv_path_GMSGFMT |
5268 | ||
5d031c16 | 5269 | if test -n "$GMSGFMT"; then |
b7026657 AC |
5270 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5271 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5d031c16 | 5272 | else |
b7026657 AC |
5273 | echo "$as_me:$LINENO: result: no" >&5 |
5274 | echo "${ECHO_T}no" >&6 | |
5d031c16 AC |
5275 | fi |
5276 | ||
5277 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5278 | set dummy xgettext; ac_word=$2 | |
b7026657 AC |
5279 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5281 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 AC |
5283 | else |
5284 | case "$XGETTEXT" in | |
5285 | /*) | |
5286 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5287 | ;; | |
5288 | *) | |
5289 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5290 | for ac_dir in $PATH; do | |
5291 | test -z "$ac_dir" && ac_dir=. | |
5292 | if test -f $ac_dir/$ac_word; then | |
5293 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5294 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5295 | break | |
5296 | fi | |
5297 | fi | |
5298 | done | |
5299 | IFS="$ac_save_ifs" | |
5300 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5301 | ;; | |
5302 | esac | |
5303 | fi | |
5304 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5305 | if test -n "$XGETTEXT"; then | |
b7026657 AC |
5306 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5307 | echo "${ECHO_T}$XGETTEXT" >&6 | |
5d031c16 | 5308 | else |
b7026657 AC |
5309 | echo "$as_me:$LINENO: result: no" >&5 |
5310 | echo "${ECHO_T}no" >&6 | |
5d031c16 AC |
5311 | fi |
5312 | ||
b7026657 AC |
5313 | cat >conftest.$ac_ext <<_ACEOF |
5314 | /* confdefs.h. */ | |
5315 | _ACEOF | |
5316 | cat confdefs.h >>conftest.$ac_ext | |
5317 | cat >>conftest.$ac_ext <<_ACEOF | |
5318 | /* end confdefs.h. */ | |
5d031c16 | 5319 | |
b7026657 AC |
5320 | int |
5321 | main () | |
5322 | { | |
5d031c16 AC |
5323 | extern int _nl_msg_cat_cntr; |
5324 | return _nl_msg_cat_cntr | |
b7026657 AC |
5325 | ; |
5326 | return 0; | |
5327 | } | |
5328 | _ACEOF | |
5329 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5331 | (eval $ac_link) 2>conftest.er1 | |
5332 | ac_status=$? | |
5333 | grep -v '^ *+' conftest.er1 >conftest.err | |
5334 | rm -f conftest.er1 | |
5335 | cat conftest.err >&5 | |
5336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5337 | (exit $ac_status); } && | |
5338 | { ac_try='test -z "$ac_c_werror_flag" | |
5339 | || test ! -s conftest.err' | |
5340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5341 | (eval $ac_try) 2>&5 | |
5342 | ac_status=$? | |
5343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5344 | (exit $ac_status); }; } && | |
5345 | { ac_try='test -s conftest$ac_exeext' | |
5346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5347 | (eval $ac_try) 2>&5 | |
5348 | ac_status=$? | |
5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5350 | (exit $ac_status); }; }; then | |
5d031c16 AC |
5351 | CATOBJEXT=.gmo |
5352 | DATADIRNAME=share | |
5353 | else | |
b7026657 AC |
5354 | echo "$as_me: failed program was:" >&5 |
5355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5356 | ||
5357 | CATOBJEXT=.mo | |
5d031c16 AC |
5358 | DATADIRNAME=lib |
5359 | fi | |
b7026657 AC |
5360 | rm -f conftest.err conftest.$ac_objext \ |
5361 | conftest$ac_exeext conftest.$ac_ext | |
5d031c16 AC |
5362 | INSTOBJEXT=.mo |
5363 | fi | |
5364 | fi | |
b7026657 | 5365 | |
5d031c16 AC |
5366 | fi |
5367 | ||
5368 | ||
b7026657 AC |
5369 | |
5370 | ||
5d031c16 AC |
5371 | if test "$CATOBJEXT" = "NONE"; then |
5372 | nls_cv_use_gnu_gettext=yes | |
5373 | fi | |
5374 | fi | |
5375 | ||
5376 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
5377 | INTLOBJS="\$(GETTOBJS)" | |
5378 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5379 | set dummy msgfmt; ac_word=$2 | |
b7026657 AC |
5380 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5382 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 AC |
5384 | else |
5385 | case "$MSGFMT" in | |
5386 | /*) | |
5387 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5388 | ;; | |
5389 | *) | |
5390 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5391 | for ac_dir in $PATH; do | |
5392 | test -z "$ac_dir" && ac_dir=. | |
5393 | if test -f $ac_dir/$ac_word; then | |
5394 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5395 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5396 | break | |
5397 | fi | |
5398 | fi | |
5399 | done | |
5400 | IFS="$ac_save_ifs" | |
5401 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
5402 | ;; | |
5403 | esac | |
5404 | fi | |
5405 | MSGFMT="$ac_cv_path_MSGFMT" | |
5406 | if test -n "$MSGFMT"; then | |
b7026657 AC |
5407 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5408 | echo "${ECHO_T}$MSGFMT" >&6 | |
5d031c16 | 5409 | else |
b7026657 AC |
5410 | echo "$as_me:$LINENO: result: no" >&5 |
5411 | echo "${ECHO_T}no" >&6 | |
5d031c16 AC |
5412 | fi |
5413 | ||
5414 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5415 | set dummy gmsgfmt; ac_word=$2 | |
b7026657 AC |
5416 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5418 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 5420 | else |
b7026657 AC |
5421 | case $GMSGFMT in |
5422 | [\\/]* | ?:[\\/]*) | |
5d031c16 AC |
5423 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5424 | ;; | |
5d031c16 | 5425 | *) |
b7026657 AC |
5426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5427 | for as_dir in $PATH | |
5428 | do | |
5429 | IFS=$as_save_IFS | |
5430 | test -z "$as_dir" && as_dir=. | |
5431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5433 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5435 | break 2 | |
5436 | fi | |
5437 | done | |
5438 | done | |
5439 | ||
5d031c16 AC |
5440 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5441 | ;; | |
5442 | esac | |
5443 | fi | |
b7026657 AC |
5444 | GMSGFMT=$ac_cv_path_GMSGFMT |
5445 | ||
5d031c16 | 5446 | if test -n "$GMSGFMT"; then |
b7026657 AC |
5447 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5448 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5d031c16 | 5449 | else |
b7026657 AC |
5450 | echo "$as_me:$LINENO: result: no" >&5 |
5451 | echo "${ECHO_T}no" >&6 | |
5d031c16 AC |
5452 | fi |
5453 | ||
5454 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5455 | set dummy xgettext; ac_word=$2 | |
b7026657 AC |
5456 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5458 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 AC |
5460 | else |
5461 | case "$XGETTEXT" in | |
5462 | /*) | |
5463 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5464 | ;; | |
5465 | *) | |
5466 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5467 | for ac_dir in $PATH; do | |
5468 | test -z "$ac_dir" && ac_dir=. | |
5469 | if test -f $ac_dir/$ac_word; then | |
5470 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5471 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5472 | break | |
5473 | fi | |
5474 | fi | |
5475 | done | |
5476 | IFS="$ac_save_ifs" | |
5477 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5478 | ;; | |
5479 | esac | |
5480 | fi | |
5481 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5482 | if test -n "$XGETTEXT"; then | |
b7026657 AC |
5483 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5484 | echo "${ECHO_T}$XGETTEXT" >&6 | |
5d031c16 | 5485 | else |
b7026657 AC |
5486 | echo "$as_me:$LINENO: result: no" >&5 |
5487 | echo "${ECHO_T}no" >&6 | |
5d031c16 AC |
5488 | fi |
5489 | ||
b7026657 | 5490 | |
5d031c16 AC |
5491 | USE_INCLUDED_LIBINTL=yes |
5492 | CATOBJEXT=.gmo | |
5493 | INSTOBJEXT=.mo | |
5494 | DATADIRNAME=share | |
5495 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
5496 | INTLLIBS=$INTLDEPS | |
5497 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
5498 | nls_cv_header_intl=libintl.h | |
5499 | nls_cv_header_libgt=libgettext.h | |
5500 | fi | |
5501 | ||
5502 | if test "$XGETTEXT" != ":"; then | |
5503 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
5504 | : ; | |
5505 | else | |
b7026657 AC |
5506 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
5507 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
5d031c16 AC |
5508 | XGETTEXT=":" |
5509 | fi | |
5510 | fi | |
5511 | ||
5512 | # We need to process the po/ directory. | |
5513 | POSUB=po | |
5514 | else | |
5515 | DATADIRNAME=share | |
5516 | nls_cv_header_intl=libintl.h | |
5517 | nls_cv_header_libgt=libgettext.h | |
5518 | fi | |
5519 | ||
5520 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
5521 | # because some of the sources are only built for this goal. | |
5522 | if test "$PACKAGE" = gettext; then | |
5523 | USE_NLS=yes | |
5524 | USE_INCLUDED_LIBINTL=yes | |
5525 | fi | |
5526 | ||
5527 | for lang in $ALL_LINGUAS; do | |
5528 | GMOFILES="$GMOFILES $lang.gmo" | |
5529 | POFILES="$POFILES $lang.po" | |
5530 | done | |
5531 | ||
b7026657 AC |
5532 | |
5533 | ||
5534 | ||
5535 | ||
5536 | ||
5537 | ||
5538 | ||
5539 | ||
5540 | ||
5541 | ||
5542 | ||
5543 | ||
5d031c16 AC |
5544 | |
5545 | if test "x$CATOBJEXT" != "x"; then | |
5546 | if test "x$ALL_LINGUAS" = "x"; then | |
5547 | LINGUAS= | |
5548 | else | |
b7026657 AC |
5549 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
5550 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
5d031c16 AC |
5551 | NEW_LINGUAS= |
5552 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
5553 | case "$ALL_LINGUAS" in | |
5554 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
5555 | esac | |
5556 | done | |
5557 | LINGUAS=$NEW_LINGUAS | |
b7026657 AC |
5558 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
5559 | echo "${ECHO_T}$LINGUAS" >&6 | |
5d031c16 AC |
5560 | fi |
5561 | ||
5562 | if test -n "$LINGUAS"; then | |
5563 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
5564 | fi | |
5565 | fi | |
5566 | ||
5567 | if test $ac_cv_header_locale_h = yes; then | |
5568 | INCLUDE_LOCALE_H="#include <locale.h>" | |
5569 | else | |
5570 | INCLUDE_LOCALE_H="\ | |
5571 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
5572 | fi | |
b7026657 | 5573 | |
5d031c16 AC |
5574 | |
5575 | if test -f $srcdir/po2tbl.sed.in; then | |
5576 | if test "$CATOBJEXT" = ".cat"; then | |
b7026657 AC |
5577 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
5578 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5579 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5580 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5582 | fi | |
5583 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5584 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5585 | else | |
5586 | # Is the header compilable? | |
5587 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
5588 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
5589 | cat >conftest.$ac_ext <<_ACEOF | |
5590 | /* confdefs.h. */ | |
5591 | _ACEOF | |
5592 | cat confdefs.h >>conftest.$ac_ext | |
5593 | cat >>conftest.$ac_ext <<_ACEOF | |
5594 | /* end confdefs.h. */ | |
5595 | $ac_includes_default | |
5d031c16 | 5596 | #include <linux/version.h> |
b7026657 AC |
5597 | _ACEOF |
5598 | rm -f conftest.$ac_objext | |
5599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5600 | (eval $ac_compile) 2>conftest.er1 | |
5601 | ac_status=$? | |
5602 | grep -v '^ *+' conftest.er1 >conftest.err | |
5603 | rm -f conftest.er1 | |
5604 | cat conftest.err >&5 | |
5605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5606 | (exit $ac_status); } && | |
5607 | { ac_try='test -z "$ac_c_werror_flag" | |
5608 | || test ! -s conftest.err' | |
5609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5610 | (eval $ac_try) 2>&5 | |
5611 | ac_status=$? | |
5612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5613 | (exit $ac_status); }; } && | |
5614 | { ac_try='test -s conftest.$ac_objext' | |
5615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5616 | (eval $ac_try) 2>&5 | |
5617 | ac_status=$? | |
5618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5619 | (exit $ac_status); }; }; then | |
5620 | ac_header_compiler=yes | |
5621 | else | |
5622 | echo "$as_me: failed program was:" >&5 | |
5623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5624 | ||
5625 | ac_header_compiler=no | |
5626 | fi | |
5627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5628 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5629 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5630 | ||
5631 | # Is the header present? | |
5632 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
5633 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
5634 | cat >conftest.$ac_ext <<_ACEOF | |
5635 | /* confdefs.h. */ | |
5636 | _ACEOF | |
5637 | cat confdefs.h >>conftest.$ac_ext | |
5638 | cat >>conftest.$ac_ext <<_ACEOF | |
5639 | /* end confdefs.h. */ | |
5640 | #include <linux/version.h> | |
5641 | _ACEOF | |
5642 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5643 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5644 | ac_status=$? | |
5645 | grep -v '^ *+' conftest.er1 >conftest.err | |
5646 | rm -f conftest.er1 | |
5647 | cat conftest.err >&5 | |
5648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5649 | (exit $ac_status); } >/dev/null; then | |
5650 | if test -s conftest.err; then | |
5651 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5652 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5653 | else | |
5654 | ac_cpp_err= | |
5655 | fi | |
5656 | else | |
5657 | ac_cpp_err=yes | |
5658 | fi | |
5659 | if test -z "$ac_cpp_err"; then | |
5660 | ac_header_preproc=yes | |
5661 | else | |
5662 | echo "$as_me: failed program was:" >&5 | |
5663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5664 | ||
5665 | ac_header_preproc=no | |
5666 | fi | |
5667 | rm -f conftest.err conftest.$ac_ext | |
5668 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5669 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5670 | ||
5671 | # So? What about this header? | |
5672 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5673 | yes:no: ) | |
5674 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5675 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5676 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
5677 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
5678 | ac_header_preproc=yes | |
5679 | ;; | |
5680 | no:yes:* ) | |
5681 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
5682 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
5683 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
5684 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
5685 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
5686 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
5687 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5688 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5689 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
5690 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
5691 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
5692 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
5693 | ( | |
5694 | cat <<\_ASBOX | |
5695 | ## ------------------------------------------ ## | |
5696 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5697 | ## ------------------------------------------ ## | |
5698 | _ASBOX | |
5699 | ) | | |
5700 | sed "s/^/$as_me: WARNING: /" >&2 | |
5701 | ;; | |
5702 | esac | |
5703 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5704 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5705 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5707 | else | |
5708 | ac_cv_header_linux_version_h=$ac_header_preproc | |
5d031c16 | 5709 | fi |
b7026657 AC |
5710 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 |
5711 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5712 | ||
5d031c16 | 5713 | fi |
b7026657 | 5714 | if test $ac_cv_header_linux_version_h = yes; then |
5d031c16 AC |
5715 | msgformat=linux |
5716 | else | |
b7026657 | 5717 | msgformat=xopen |
5d031c16 AC |
5718 | fi |
5719 | ||
5720 | ||
b7026657 | 5721 | |
5d031c16 AC |
5722 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
5723 | fi | |
5724 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
5725 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
5726 | fi | |
5727 | ||
5728 | if test "$PACKAGE" = "gettext"; then | |
5729 | GT_NO="#NO#" | |
5730 | GT_YES= | |
5731 | else | |
5732 | GT_NO= | |
5733 | GT_YES="#YES#" | |
5734 | fi | |
b7026657 AC |
5735 | |
5736 | ||
5d031c16 AC |
5737 | |
5738 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
b7026657 | 5739 | |
5d031c16 AC |
5740 | |
5741 | l= | |
b7026657 | 5742 | |
5d031c16 AC |
5743 | |
5744 | if test -d $srcdir/po; then | |
5745 | test -d po || mkdir po | |
5746 | if test "x$srcdir" != "x."; then | |
5747 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
5748 | posrcprefix="$srcdir/" | |
5749 | else | |
5750 | posrcprefix="../$srcdir/" | |
5751 | fi | |
5752 | else | |
5753 | posrcprefix="../" | |
5754 | fi | |
5755 | rm -f po/POTFILES | |
5756 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
5757 | < $srcdir/po/POTFILES.in > po/POTFILES | |
5758 | fi | |
b7026657 | 5759 | |
5d031c16 AC |
5760 | |
5761 | # Check for common headers. | |
5762 | # FIXME: Seems to me this can cause problems for i386-windows hosts. | |
5763 | # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*. | |
b7026657 AC |
5764 | |
5765 | ||
5766 | ||
5767 | ||
5768 | ||
5769 | for ac_header in stdlib.h string.h strings.h unistd.h time.h | |
5d031c16 | 5770 | do |
b7026657 AC |
5771 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5772 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5773 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5774 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5775 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5777 | fi | |
5778 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5779 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5780 | else | |
5781 | # Is the header compilable? | |
5782 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5783 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5784 | cat >conftest.$ac_ext <<_ACEOF | |
5785 | /* confdefs.h. */ | |
5786 | _ACEOF | |
5787 | cat confdefs.h >>conftest.$ac_ext | |
5788 | cat >>conftest.$ac_ext <<_ACEOF | |
5789 | /* end confdefs.h. */ | |
5790 | $ac_includes_default | |
5791 | #include <$ac_header> | |
5792 | _ACEOF | |
5793 | rm -f conftest.$ac_objext | |
5794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5795 | (eval $ac_compile) 2>conftest.er1 | |
5796 | ac_status=$? | |
5797 | grep -v '^ *+' conftest.er1 >conftest.err | |
5798 | rm -f conftest.er1 | |
5799 | cat conftest.err >&5 | |
5800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5801 | (exit $ac_status); } && | |
5802 | { ac_try='test -z "$ac_c_werror_flag" | |
5803 | || test ! -s conftest.err' | |
5804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5805 | (eval $ac_try) 2>&5 | |
5806 | ac_status=$? | |
5807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5808 | (exit $ac_status); }; } && | |
5809 | { ac_try='test -s conftest.$ac_objext' | |
5810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5811 | (eval $ac_try) 2>&5 | |
5812 | ac_status=$? | |
5813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5814 | (exit $ac_status); }; }; then | |
5815 | ac_header_compiler=yes | |
5816 | else | |
5817 | echo "$as_me: failed program was:" >&5 | |
5818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5819 | ||
5820 | ac_header_compiler=no | |
5821 | fi | |
5822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5823 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5824 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5825 | ||
5826 | # Is the header present? | |
5827 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5828 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5829 | cat >conftest.$ac_ext <<_ACEOF | |
5830 | /* confdefs.h. */ | |
5831 | _ACEOF | |
5832 | cat confdefs.h >>conftest.$ac_ext | |
5833 | cat >>conftest.$ac_ext <<_ACEOF | |
5834 | /* end confdefs.h. */ | |
5835 | #include <$ac_header> | |
5836 | _ACEOF | |
5837 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5838 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5839 | ac_status=$? | |
5840 | grep -v '^ *+' conftest.er1 >conftest.err | |
5841 | rm -f conftest.er1 | |
5842 | cat conftest.err >&5 | |
5843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5844 | (exit $ac_status); } >/dev/null; then | |
5845 | if test -s conftest.err; then | |
5846 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5847 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5848 | else | |
5849 | ac_cpp_err= | |
5850 | fi | |
5851 | else | |
5852 | ac_cpp_err=yes | |
5d031c16 | 5853 | fi |
b7026657 AC |
5854 | if test -z "$ac_cpp_err"; then |
5855 | ac_header_preproc=yes | |
5856 | else | |
5857 | echo "$as_me: failed program was:" >&5 | |
5858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5859 | ||
5860 | ac_header_preproc=no | |
5d031c16 | 5861 | fi |
b7026657 AC |
5862 | rm -f conftest.err conftest.$ac_ext |
5863 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5864 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5865 | ||
5866 | # So? What about this header? | |
5867 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5868 | yes:no: ) | |
5869 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5870 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5871 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5872 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5873 | ac_header_preproc=yes | |
5874 | ;; | |
5875 | no:yes:* ) | |
5876 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5877 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5878 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5879 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5880 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5881 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5882 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5883 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5884 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5885 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5886 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5887 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5888 | ( | |
5889 | cat <<\_ASBOX | |
5890 | ## ------------------------------------------ ## | |
5891 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5892 | ## ------------------------------------------ ## | |
5893 | _ASBOX | |
5894 | ) | | |
5895 | sed "s/^/$as_me: WARNING: /" >&2 | |
5896 | ;; | |
5897 | esac | |
5898 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5899 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5900 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 5902 | else |
b7026657 AC |
5903 | eval "$as_ac_Header=\$ac_header_preproc" |
5904 | fi | |
5905 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5906 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5907 | ||
5908 | fi | |
5909 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5910 | cat >>confdefs.h <<_ACEOF | |
5911 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5912 | _ACEOF | |
5913 | ||
5d031c16 | 5914 | fi |
b7026657 | 5915 | |
5d031c16 AC |
5916 | done |
5917 | ||
b7026657 AC |
5918 | |
5919 | ||
5920 | for ac_header in sys/time.h sys/resource.h | |
5d031c16 | 5921 | do |
b7026657 AC |
5922 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5923 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5924 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5925 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5928 | fi | |
5929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5931 | else | |
5932 | # Is the header compilable? | |
5933 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5934 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5935 | cat >conftest.$ac_ext <<_ACEOF | |
5936 | /* confdefs.h. */ | |
5937 | _ACEOF | |
5938 | cat confdefs.h >>conftest.$ac_ext | |
5939 | cat >>conftest.$ac_ext <<_ACEOF | |
5940 | /* end confdefs.h. */ | |
5941 | $ac_includes_default | |
5942 | #include <$ac_header> | |
5943 | _ACEOF | |
5944 | rm -f conftest.$ac_objext | |
5945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5946 | (eval $ac_compile) 2>conftest.er1 | |
5947 | ac_status=$? | |
5948 | grep -v '^ *+' conftest.er1 >conftest.err | |
5949 | rm -f conftest.er1 | |
5950 | cat conftest.err >&5 | |
5951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5952 | (exit $ac_status); } && | |
5953 | { ac_try='test -z "$ac_c_werror_flag" | |
5954 | || test ! -s conftest.err' | |
5955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5956 | (eval $ac_try) 2>&5 | |
5957 | ac_status=$? | |
5958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5959 | (exit $ac_status); }; } && | |
5960 | { ac_try='test -s conftest.$ac_objext' | |
5961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5962 | (eval $ac_try) 2>&5 | |
5963 | ac_status=$? | |
5964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5965 | (exit $ac_status); }; }; then | |
5966 | ac_header_compiler=yes | |
5967 | else | |
5968 | echo "$as_me: failed program was:" >&5 | |
5969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5970 | ||
5971 | ac_header_compiler=no | |
5972 | fi | |
5973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5974 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5975 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5976 | ||
5977 | # Is the header present? | |
5978 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5979 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5980 | cat >conftest.$ac_ext <<_ACEOF | |
5981 | /* confdefs.h. */ | |
5982 | _ACEOF | |
5983 | cat confdefs.h >>conftest.$ac_ext | |
5984 | cat >>conftest.$ac_ext <<_ACEOF | |
5985 | /* end confdefs.h. */ | |
5986 | #include <$ac_header> | |
5987 | _ACEOF | |
5988 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5989 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5990 | ac_status=$? | |
5991 | grep -v '^ *+' conftest.er1 >conftest.err | |
5992 | rm -f conftest.er1 | |
5993 | cat conftest.err >&5 | |
5994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5995 | (exit $ac_status); } >/dev/null; then | |
5996 | if test -s conftest.err; then | |
5997 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5998 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5999 | else | |
6000 | ac_cpp_err= | |
6001 | fi | |
6002 | else | |
6003 | ac_cpp_err=yes | |
5d031c16 | 6004 | fi |
b7026657 AC |
6005 | if test -z "$ac_cpp_err"; then |
6006 | ac_header_preproc=yes | |
6007 | else | |
6008 | echo "$as_me: failed program was:" >&5 | |
6009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6010 | ||
6011 | ac_header_preproc=no | |
5d031c16 | 6012 | fi |
b7026657 AC |
6013 | rm -f conftest.err conftest.$ac_ext |
6014 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6015 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6016 | ||
6017 | # So? What about this header? | |
6018 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6019 | yes:no: ) | |
6020 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6021 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6022 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6023 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6024 | ac_header_preproc=yes | |
6025 | ;; | |
6026 | no:yes:* ) | |
6027 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6028 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6029 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6030 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6031 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6032 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6033 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6034 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6035 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6036 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6037 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6038 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6039 | ( | |
6040 | cat <<\_ASBOX | |
6041 | ## ------------------------------------------ ## | |
6042 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6043 | ## ------------------------------------------ ## | |
6044 | _ASBOX | |
6045 | ) | | |
6046 | sed "s/^/$as_me: WARNING: /" >&2 | |
6047 | ;; | |
6048 | esac | |
6049 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 6053 | else |
b7026657 AC |
6054 | eval "$as_ac_Header=\$ac_header_preproc" |
6055 | fi | |
6056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6057 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6058 | ||
6059 | fi | |
6060 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6061 | cat >>confdefs.h <<_ACEOF | |
6062 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6063 | _ACEOF | |
6064 | ||
5d031c16 | 6065 | fi |
b7026657 | 6066 | |
5d031c16 AC |
6067 | done |
6068 | ||
b7026657 AC |
6069 | |
6070 | ||
6071 | for ac_header in fcntl.h fpu_control.h | |
5d031c16 | 6072 | do |
b7026657 AC |
6073 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6074 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6075 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6077 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6079 | fi | |
6080 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6081 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6082 | else | |
6083 | # Is the header compilable? | |
6084 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6085 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6086 | cat >conftest.$ac_ext <<_ACEOF | |
6087 | /* confdefs.h. */ | |
6088 | _ACEOF | |
6089 | cat confdefs.h >>conftest.$ac_ext | |
6090 | cat >>conftest.$ac_ext <<_ACEOF | |
6091 | /* end confdefs.h. */ | |
6092 | $ac_includes_default | |
6093 | #include <$ac_header> | |
6094 | _ACEOF | |
6095 | rm -f conftest.$ac_objext | |
6096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6097 | (eval $ac_compile) 2>conftest.er1 | |
6098 | ac_status=$? | |
6099 | grep -v '^ *+' conftest.er1 >conftest.err | |
6100 | rm -f conftest.er1 | |
6101 | cat conftest.err >&5 | |
6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6103 | (exit $ac_status); } && | |
6104 | { ac_try='test -z "$ac_c_werror_flag" | |
6105 | || test ! -s conftest.err' | |
6106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6107 | (eval $ac_try) 2>&5 | |
6108 | ac_status=$? | |
6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6110 | (exit $ac_status); }; } && | |
6111 | { ac_try='test -s conftest.$ac_objext' | |
6112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6113 | (eval $ac_try) 2>&5 | |
6114 | ac_status=$? | |
6115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6116 | (exit $ac_status); }; }; then | |
6117 | ac_header_compiler=yes | |
6118 | else | |
6119 | echo "$as_me: failed program was:" >&5 | |
6120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6121 | ||
6122 | ac_header_compiler=no | |
6123 | fi | |
6124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6125 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6126 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6127 | ||
6128 | # Is the header present? | |
6129 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6130 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6131 | cat >conftest.$ac_ext <<_ACEOF | |
6132 | /* confdefs.h. */ | |
6133 | _ACEOF | |
6134 | cat confdefs.h >>conftest.$ac_ext | |
6135 | cat >>conftest.$ac_ext <<_ACEOF | |
6136 | /* end confdefs.h. */ | |
6137 | #include <$ac_header> | |
6138 | _ACEOF | |
6139 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6140 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6141 | ac_status=$? | |
6142 | grep -v '^ *+' conftest.er1 >conftest.err | |
6143 | rm -f conftest.er1 | |
6144 | cat conftest.err >&5 | |
6145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6146 | (exit $ac_status); } >/dev/null; then | |
6147 | if test -s conftest.err; then | |
6148 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6149 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6150 | else | |
6151 | ac_cpp_err= | |
6152 | fi | |
6153 | else | |
6154 | ac_cpp_err=yes | |
5d031c16 | 6155 | fi |
b7026657 AC |
6156 | if test -z "$ac_cpp_err"; then |
6157 | ac_header_preproc=yes | |
6158 | else | |
6159 | echo "$as_me: failed program was:" >&5 | |
6160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6161 | ||
6162 | ac_header_preproc=no | |
5d031c16 | 6163 | fi |
b7026657 AC |
6164 | rm -f conftest.err conftest.$ac_ext |
6165 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6166 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6167 | ||
6168 | # So? What about this header? | |
6169 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6170 | yes:no: ) | |
6171 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6172 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6173 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6174 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6175 | ac_header_preproc=yes | |
6176 | ;; | |
6177 | no:yes:* ) | |
6178 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6179 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6180 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6181 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6182 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6183 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6184 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6185 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6186 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6187 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6188 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6189 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6190 | ( | |
6191 | cat <<\_ASBOX | |
6192 | ## ------------------------------------------ ## | |
6193 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6194 | ## ------------------------------------------ ## | |
6195 | _ASBOX | |
6196 | ) | | |
6197 | sed "s/^/$as_me: WARNING: /" >&2 | |
6198 | ;; | |
6199 | esac | |
6200 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6201 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6202 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 6204 | else |
b7026657 AC |
6205 | eval "$as_ac_Header=\$ac_header_preproc" |
6206 | fi | |
6207 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6208 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6209 | ||
5d031c16 | 6210 | fi |
b7026657 AC |
6211 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6212 | cat >>confdefs.h <<_ACEOF | |
6213 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6214 | _ACEOF | |
6215 | ||
6216 | fi | |
6217 | ||
5d031c16 AC |
6218 | done |
6219 | ||
b7026657 AC |
6220 | |
6221 | ||
6222 | ||
6223 | for ac_header in dlfcn.h errno.h sys/stat.h | |
5d031c16 | 6224 | do |
b7026657 AC |
6225 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6226 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6227 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6229 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6231 | fi | |
6232 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6233 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6234 | else | |
6235 | # Is the header compilable? | |
6236 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6237 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6238 | cat >conftest.$ac_ext <<_ACEOF | |
6239 | /* confdefs.h. */ | |
6240 | _ACEOF | |
6241 | cat confdefs.h >>conftest.$ac_ext | |
6242 | cat >>conftest.$ac_ext <<_ACEOF | |
6243 | /* end confdefs.h. */ | |
6244 | $ac_includes_default | |
6245 | #include <$ac_header> | |
6246 | _ACEOF | |
6247 | rm -f conftest.$ac_objext | |
6248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6249 | (eval $ac_compile) 2>conftest.er1 | |
6250 | ac_status=$? | |
6251 | grep -v '^ *+' conftest.er1 >conftest.err | |
6252 | rm -f conftest.er1 | |
6253 | cat conftest.err >&5 | |
6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6255 | (exit $ac_status); } && | |
6256 | { ac_try='test -z "$ac_c_werror_flag" | |
6257 | || test ! -s conftest.err' | |
6258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6259 | (eval $ac_try) 2>&5 | |
6260 | ac_status=$? | |
6261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6262 | (exit $ac_status); }; } && | |
6263 | { ac_try='test -s conftest.$ac_objext' | |
6264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6265 | (eval $ac_try) 2>&5 | |
6266 | ac_status=$? | |
6267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6268 | (exit $ac_status); }; }; then | |
6269 | ac_header_compiler=yes | |
6270 | else | |
6271 | echo "$as_me: failed program was:" >&5 | |
6272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6273 | ||
6274 | ac_header_compiler=no | |
6275 | fi | |
6276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6277 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6278 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6279 | ||
6280 | # Is the header present? | |
6281 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6282 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6283 | cat >conftest.$ac_ext <<_ACEOF | |
6284 | /* confdefs.h. */ | |
6285 | _ACEOF | |
6286 | cat confdefs.h >>conftest.$ac_ext | |
6287 | cat >>conftest.$ac_ext <<_ACEOF | |
6288 | /* end confdefs.h. */ | |
6289 | #include <$ac_header> | |
6290 | _ACEOF | |
6291 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6292 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6293 | ac_status=$? | |
6294 | grep -v '^ *+' conftest.er1 >conftest.err | |
6295 | rm -f conftest.er1 | |
6296 | cat conftest.err >&5 | |
6297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6298 | (exit $ac_status); } >/dev/null; then | |
6299 | if test -s conftest.err; then | |
6300 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6301 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6302 | else | |
6303 | ac_cpp_err= | |
6304 | fi | |
6305 | else | |
6306 | ac_cpp_err=yes | |
5d031c16 | 6307 | fi |
b7026657 AC |
6308 | if test -z "$ac_cpp_err"; then |
6309 | ac_header_preproc=yes | |
6310 | else | |
6311 | echo "$as_me: failed program was:" >&5 | |
6312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6313 | ||
6314 | ac_header_preproc=no | |
5d031c16 | 6315 | fi |
b7026657 AC |
6316 | rm -f conftest.err conftest.$ac_ext |
6317 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6318 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6319 | ||
6320 | # So? What about this header? | |
6321 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6322 | yes:no: ) | |
6323 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6324 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6325 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6326 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6327 | ac_header_preproc=yes | |
6328 | ;; | |
6329 | no:yes:* ) | |
6330 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6331 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6332 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6333 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6334 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6335 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6336 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6337 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6338 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6339 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6340 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6341 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6342 | ( | |
6343 | cat <<\_ASBOX | |
6344 | ## ------------------------------------------ ## | |
6345 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6346 | ## ------------------------------------------ ## | |
6347 | _ASBOX | |
6348 | ) | | |
6349 | sed "s/^/$as_me: WARNING: /" >&2 | |
6350 | ;; | |
6351 | esac | |
6352 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6353 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6354 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 6356 | else |
b7026657 | 6357 | eval "$as_ac_Header=\$ac_header_preproc" |
5d031c16 | 6358 | fi |
b7026657 AC |
6359 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6360 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6361 | ||
6362 | fi | |
6363 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6364 | cat >>confdefs.h <<_ACEOF | |
6365 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6366 | _ACEOF | |
6367 | ||
6368 | fi | |
6369 | ||
5d031c16 AC |
6370 | done |
6371 | ||
b7026657 AC |
6372 | |
6373 | ||
6374 | ||
6375 | ||
5d031c16 AC |
6376 | for ac_func in getrusage time sigaction __setfpucw |
6377 | do | |
b7026657 AC |
6378 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6379 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6380 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6381 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6383 | else | |
6384 | cat >conftest.$ac_ext <<_ACEOF | |
6385 | /* confdefs.h. */ | |
6386 | _ACEOF | |
6387 | cat confdefs.h >>conftest.$ac_ext | |
6388 | cat >>conftest.$ac_ext <<_ACEOF | |
6389 | /* end confdefs.h. */ | |
6390 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6391 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6392 | #define $ac_func innocuous_$ac_func | |
6393 | ||
5d031c16 | 6394 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
6395 | which can conflict with char $ac_func (); below. |
6396 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6397 | <limits.h> exists even on freestanding compilers. */ | |
5d031c16 | 6398 | |
b7026657 AC |
6399 | #ifdef __STDC__ |
6400 | # include <limits.h> | |
6401 | #else | |
6402 | # include <assert.h> | |
6403 | #endif | |
5d031c16 | 6404 | |
b7026657 AC |
6405 | #undef $ac_func |
6406 | ||
6407 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6408 | #ifdef __cplusplus | |
6409 | extern "C" | |
6410 | { | |
6411 | #endif | |
6412 | /* We use char because int might match the return type of a gcc2 | |
6413 | builtin and then its argument prototype would still apply. */ | |
6414 | char $ac_func (); | |
5d031c16 AC |
6415 | /* The GNU C library defines this for functions which it implements |
6416 | to always fail with ENOSYS. Some functions are actually named | |
6417 | something starting with __ and the normal name is an alias. */ | |
6418 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6419 | choke me | |
6420 | #else | |
b7026657 AC |
6421 | char (*f) () = $ac_func; |
6422 | #endif | |
6423 | #ifdef __cplusplus | |
6424 | } | |
5d031c16 AC |
6425 | #endif |
6426 | ||
b7026657 AC |
6427 | int |
6428 | main () | |
6429 | { | |
6430 | return f != $ac_func; | |
6431 | ; | |
6432 | return 0; | |
6433 | } | |
6434 | _ACEOF | |
6435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6437 | (eval $ac_link) 2>conftest.er1 | |
6438 | ac_status=$? | |
6439 | grep -v '^ *+' conftest.er1 >conftest.err | |
6440 | rm -f conftest.er1 | |
6441 | cat conftest.err >&5 | |
6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6443 | (exit $ac_status); } && | |
6444 | { ac_try='test -z "$ac_c_werror_flag" | |
6445 | || test ! -s conftest.err' | |
6446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6447 | (eval $ac_try) 2>&5 | |
6448 | ac_status=$? | |
6449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6450 | (exit $ac_status); }; } && | |
6451 | { ac_try='test -s conftest$ac_exeext' | |
6452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6453 | (eval $ac_try) 2>&5 | |
6454 | ac_status=$? | |
6455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6456 | (exit $ac_status); }; }; then | |
6457 | eval "$as_ac_var=yes" | |
6458 | else | |
6459 | echo "$as_me: failed program was:" >&5 | |
6460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6461 | ||
6462 | eval "$as_ac_var=no" | |
6463 | fi | |
6464 | rm -f conftest.err conftest.$ac_objext \ | |
6465 | conftest$ac_exeext conftest.$ac_ext | |
6466 | fi | |
6467 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6468 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6469 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6470 | cat >>confdefs.h <<_ACEOF | |
6471 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6472 | _ACEOF | |
5d031c16 | 6473 | |
5d031c16 AC |
6474 | fi |
6475 | done | |
6476 | ||
6477 | ||
6478 | # Check for socket libraries | |
b7026657 AC |
6479 | |
6480 | echo "$as_me:$LINENO: checking for bind in -lsocket" >&5 | |
6481 | echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6 | |
6482 | if test "${ac_cv_lib_socket_bind+set}" = set; then | |
6483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 6484 | else |
b7026657 | 6485 | ac_check_lib_save_LIBS=$LIBS |
5d031c16 | 6486 | LIBS="-lsocket $LIBS" |
b7026657 AC |
6487 | cat >conftest.$ac_ext <<_ACEOF |
6488 | /* confdefs.h. */ | |
6489 | _ACEOF | |
6490 | cat confdefs.h >>conftest.$ac_ext | |
6491 | cat >>conftest.$ac_ext <<_ACEOF | |
6492 | /* end confdefs.h. */ | |
6493 | ||
5d031c16 | 6494 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
6495 | #ifdef __cplusplus |
6496 | extern "C" | |
6497 | #endif | |
5d031c16 | 6498 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
6499 | builtin and then its argument prototype would still apply. */ |
6500 | char bind (); | |
6501 | int | |
6502 | main () | |
6503 | { | |
6504 | bind (); | |
6505 | ; | |
6506 | return 0; | |
6507 | } | |
6508 | _ACEOF | |
6509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6511 | (eval $ac_link) 2>conftest.er1 | |
6512 | ac_status=$? | |
6513 | grep -v '^ *+' conftest.er1 >conftest.err | |
6514 | rm -f conftest.er1 | |
6515 | cat conftest.err >&5 | |
6516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6517 | (exit $ac_status); } && | |
6518 | { ac_try='test -z "$ac_c_werror_flag" | |
6519 | || test ! -s conftest.err' | |
6520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6521 | (eval $ac_try) 2>&5 | |
6522 | ac_status=$? | |
6523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6524 | (exit $ac_status); }; } && | |
6525 | { ac_try='test -s conftest$ac_exeext' | |
6526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6527 | (eval $ac_try) 2>&5 | |
6528 | ac_status=$? | |
6529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6530 | (exit $ac_status); }; }; then | |
6531 | ac_cv_lib_socket_bind=yes | |
6532 | else | |
6533 | echo "$as_me: failed program was:" >&5 | |
6534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6535 | ||
6536 | ac_cv_lib_socket_bind=no | |
6537 | fi | |
6538 | rm -f conftest.err conftest.$ac_objext \ | |
6539 | conftest$ac_exeext conftest.$ac_ext | |
6540 | LIBS=$ac_check_lib_save_LIBS | |
6541 | fi | |
6542 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5 | |
6543 | echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6 | |
6544 | if test $ac_cv_lib_socket_bind = yes; then | |
6545 | cat >>confdefs.h <<_ACEOF | |
6546 | #define HAVE_LIBSOCKET 1 | |
6547 | _ACEOF | |
5d031c16 AC |
6548 | |
6549 | LIBS="-lsocket $LIBS" | |
6550 | ||
5d031c16 AC |
6551 | fi |
6552 | ||
b7026657 AC |
6553 | |
6554 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
6555 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
6556 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
6557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 6558 | else |
b7026657 | 6559 | ac_check_lib_save_LIBS=$LIBS |
5d031c16 | 6560 | LIBS="-lnsl $LIBS" |
b7026657 AC |
6561 | cat >conftest.$ac_ext <<_ACEOF |
6562 | /* confdefs.h. */ | |
6563 | _ACEOF | |
6564 | cat confdefs.h >>conftest.$ac_ext | |
6565 | cat >>conftest.$ac_ext <<_ACEOF | |
6566 | /* end confdefs.h. */ | |
6567 | ||
5d031c16 | 6568 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
6569 | #ifdef __cplusplus |
6570 | extern "C" | |
6571 | #endif | |
5d031c16 | 6572 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
6573 | builtin and then its argument prototype would still apply. */ |
6574 | char gethostbyname (); | |
6575 | int | |
6576 | main () | |
6577 | { | |
6578 | gethostbyname (); | |
6579 | ; | |
6580 | return 0; | |
6581 | } | |
6582 | _ACEOF | |
6583 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6585 | (eval $ac_link) 2>conftest.er1 | |
6586 | ac_status=$? | |
6587 | grep -v '^ *+' conftest.er1 >conftest.err | |
6588 | rm -f conftest.er1 | |
6589 | cat conftest.err >&5 | |
6590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6591 | (exit $ac_status); } && | |
6592 | { ac_try='test -z "$ac_c_werror_flag" | |
6593 | || test ! -s conftest.err' | |
6594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6595 | (eval $ac_try) 2>&5 | |
6596 | ac_status=$? | |
6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6598 | (exit $ac_status); }; } && | |
6599 | { ac_try='test -s conftest$ac_exeext' | |
6600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6601 | (eval $ac_try) 2>&5 | |
6602 | ac_status=$? | |
6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6604 | (exit $ac_status); }; }; then | |
6605 | ac_cv_lib_nsl_gethostbyname=yes | |
6606 | else | |
6607 | echo "$as_me: failed program was:" >&5 | |
6608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6609 | ||
6610 | ac_cv_lib_nsl_gethostbyname=no | |
6611 | fi | |
6612 | rm -f conftest.err conftest.$ac_objext \ | |
6613 | conftest$ac_exeext conftest.$ac_ext | |
6614 | LIBS=$ac_check_lib_save_LIBS | |
6615 | fi | |
6616 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
6617 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
6618 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
6619 | cat >>confdefs.h <<_ACEOF | |
6620 | #define HAVE_LIBNSL 1 | |
6621 | _ACEOF | |
5d031c16 AC |
6622 | |
6623 | LIBS="-lnsl $LIBS" | |
6624 | ||
5d031c16 AC |
6625 | fi |
6626 | ||
6627 | ||
6628 | . ${srcdir}/../../bfd/configure.host | |
6629 | ||
6630 | ||
6631 | ||
6632 | USE_MAINTAINER_MODE=no | |
6633 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
6634 | if test "${enable_maintainer_mode+set}" = set; then | |
6635 | enableval="$enable_maintainer_mode" | |
6636 | case "${enableval}" in | |
6637 | yes) MAINT="" USE_MAINTAINER_MODE=yes ;; | |
6638 | no) MAINT="#" ;; | |
b7026657 AC |
6639 | *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5 |
6640 | echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;} | |
6641 | { (exit 1); exit 1; }; }; MAINT="#" ;; | |
5d031c16 AC |
6642 | esac |
6643 | if test x"$silent" != x"yes" && test x"$MAINT" = x""; then | |
6644 | echo "Setting maintainer mode" 6>&1 | |
6645 | fi | |
6646 | else | |
6647 | MAINT="#" | |
b7026657 | 6648 | fi; |
5d031c16 AC |
6649 | |
6650 | ||
6651 | # Check whether --enable-sim-bswap or --disable-sim-bswap was given. | |
6652 | if test "${enable_sim_bswap+set}" = set; then | |
6653 | enableval="$enable_sim_bswap" | |
6654 | case "${enableval}" in | |
6655 | yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";; | |
6656 | no) sim_bswap="-DWITH_BSWAP=0";; | |
b7026657 AC |
6657 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5 |
6658 | echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;} | |
6659 | { (exit 1); exit 1; }; }; sim_bswap="";; | |
5d031c16 AC |
6660 | esac |
6661 | if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then | |
6662 | echo "Setting bswap flags = $sim_bswap" 6>&1 | |
6663 | fi | |
6664 | else | |
6665 | sim_bswap="" | |
b7026657 | 6666 | fi; |
5d031c16 AC |
6667 | |
6668 | ||
6669 | # Check whether --enable-sim-cflags or --disable-sim-cflags was given. | |
6670 | if test "${enable_sim_cflags+set}" = set; then | |
6671 | enableval="$enable_sim_cflags" | |
6672 | case "${enableval}" in | |
6673 | yes) sim_cflags="-O2 -fomit-frame-pointer";; | |
b7026657 AC |
6674 | trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5 |
6675 | echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;} | |
6676 | { (exit 1); exit 1; }; }; sim_cflags="";; | |
5d031c16 AC |
6677 | no) sim_cflags="";; |
6678 | *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6679 | esac | |
6680 | if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then | |
6681 | echo "Setting sim cflags = $sim_cflags" 6>&1 | |
6682 | fi | |
6683 | else | |
6684 | sim_cflags="" | |
b7026657 | 6685 | fi; |
5d031c16 AC |
6686 | |
6687 | ||
6688 | # Check whether --enable-sim-debug or --disable-sim-debug was given. | |
6689 | if test "${enable_sim_debug+set}" = set; then | |
6690 | enableval="$enable_sim_debug" | |
6691 | case "${enableval}" in | |
6692 | yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";; | |
6693 | no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";; | |
6694 | *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";; | |
6695 | esac | |
6696 | if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then | |
6697 | echo "Setting sim debug = $sim_debug" 6>&1 | |
6698 | fi | |
6699 | else | |
6700 | sim_debug="" | |
b7026657 | 6701 | fi; |
5d031c16 AC |
6702 | |
6703 | ||
6704 | # Check whether --enable-sim-stdio or --disable-sim-stdio was given. | |
6705 | if test "${enable_sim_stdio+set}" = set; then | |
6706 | enableval="$enable_sim_stdio" | |
6707 | case "${enableval}" in | |
6708 | yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";; | |
6709 | no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";; | |
b7026657 AC |
6710 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5 |
6711 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;} | |
6712 | { (exit 1); exit 1; }; }; sim_stdio="";; | |
5d031c16 AC |
6713 | esac |
6714 | if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then | |
6715 | echo "Setting stdio flags = $sim_stdio" 6>&1 | |
6716 | fi | |
6717 | else | |
6718 | sim_stdio="" | |
b7026657 | 6719 | fi; |
5d031c16 AC |
6720 | |
6721 | ||
6722 | # Check whether --enable-sim-trace or --disable-sim-trace was given. | |
6723 | if test "${enable_sim_trace+set}" = set; then | |
6724 | enableval="$enable_sim_trace" | |
6725 | case "${enableval}" in | |
6726 | yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";; | |
6727 | no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";; | |
6728 | [-0-9]*) | |
6729 | sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";; | |
6730 | [a-z]*) | |
6731 | sim_trace="" | |
6732 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6733 | if test x"$sim_trace" = x; then | |
6734 | sim_trace="-DWITH_TRACE='(TRACE_$x" | |
6735 | else | |
6736 | sim_trace="${sim_trace}|TRACE_$x" | |
6737 | fi | |
6738 | done | |
6739 | sim_trace="$sim_trace)'" ;; | |
6740 | esac | |
6741 | if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then | |
6742 | echo "Setting sim trace = $sim_trace" 6>&1 | |
6743 | fi | |
6744 | else | |
6745 | sim_trace="" | |
b7026657 | 6746 | fi; |
5d031c16 AC |
6747 | |
6748 | ||
6749 | # Check whether --enable-sim-profile or --disable-sim-profile was given. | |
6750 | if test "${enable_sim_profile+set}" = set; then | |
6751 | enableval="$enable_sim_profile" | |
6752 | case "${enableval}" in | |
6753 | yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";; | |
6754 | no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";; | |
6755 | [-0-9]*) | |
6756 | sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";; | |
6757 | [a-z]*) | |
6758 | sim_profile="" | |
6759 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6760 | if test x"$sim_profile" = x; then | |
6761 | sim_profile="-DWITH_PROFILE='(PROFILE_$x" | |
6762 | else | |
6763 | sim_profile="${sim_profile}|PROFILE_$x" | |
6764 | fi | |
6765 | done | |
6766 | sim_profile="$sim_profile)'" ;; | |
6767 | esac | |
6768 | if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then | |
6769 | echo "Setting sim profile = $sim_profile" 6>&1 | |
6770 | fi | |
6771 | else | |
6772 | sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1" | |
b7026657 | 6773 | fi; |
5d031c16 AC |
6774 | |
6775 | ||
b7026657 AC |
6776 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
6777 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
6778 | if test "${ac_cv_type_signal+set}" = set; then | |
6779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 6780 | else |
b7026657 AC |
6781 | cat >conftest.$ac_ext <<_ACEOF |
6782 | /* confdefs.h. */ | |
6783 | _ACEOF | |
6784 | cat confdefs.h >>conftest.$ac_ext | |
6785 | cat >>conftest.$ac_ext <<_ACEOF | |
6786 | /* end confdefs.h. */ | |
5d031c16 AC |
6787 | #include <sys/types.h> |
6788 | #include <signal.h> | |
6789 | #ifdef signal | |
b7026657 | 6790 | # undef signal |
5d031c16 AC |
6791 | #endif |
6792 | #ifdef __cplusplus | |
6793 | extern "C" void (*signal (int, void (*)(int)))(int); | |
6794 | #else | |
6795 | void (*signal ()) (); | |
6796 | #endif | |
6797 | ||
b7026657 AC |
6798 | int |
6799 | main () | |
6800 | { | |
5d031c16 | 6801 | int i; |
b7026657 AC |
6802 | ; |
6803 | return 0; | |
6804 | } | |
6805 | _ACEOF | |
6806 | rm -f conftest.$ac_objext | |
6807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6808 | (eval $ac_compile) 2>conftest.er1 | |
6809 | ac_status=$? | |
6810 | grep -v '^ *+' conftest.er1 >conftest.err | |
6811 | rm -f conftest.er1 | |
6812 | cat conftest.err >&5 | |
6813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6814 | (exit $ac_status); } && | |
6815 | { ac_try='test -z "$ac_c_werror_flag" | |
6816 | || test ! -s conftest.err' | |
6817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6818 | (eval $ac_try) 2>&5 | |
6819 | ac_status=$? | |
6820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6821 | (exit $ac_status); }; } && | |
6822 | { ac_try='test -s conftest.$ac_objext' | |
6823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6824 | (eval $ac_try) 2>&5 | |
6825 | ac_status=$? | |
6826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6827 | (exit $ac_status); }; }; then | |
5d031c16 AC |
6828 | ac_cv_type_signal=void |
6829 | else | |
b7026657 AC |
6830 | echo "$as_me: failed program was:" >&5 |
6831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6832 | ||
6833 | ac_cv_type_signal=int | |
5d031c16 | 6834 | fi |
b7026657 | 6835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d031c16 | 6836 | fi |
b7026657 AC |
6837 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
6838 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
5d031c16 | 6839 | |
b7026657 | 6840 | cat >>confdefs.h <<_ACEOF |
5d031c16 | 6841 | #define RETSIGTYPE $ac_cv_type_signal |
b7026657 | 6842 | _ACEOF |
5d031c16 AC |
6843 | |
6844 | ||
6845 | ||
5d031c16 AC |
6846 | |
6847 | ||
6848 | sim_link_files= | |
6849 | sim_link_links= | |
6850 | ||
6851 | sim_link_links=tconfig.h | |
6852 | if test -f ${srcdir}/tconfig.in | |
6853 | then | |
6854 | sim_link_files=tconfig.in | |
6855 | else | |
6856 | sim_link_files=../common/tconfig.in | |
6857 | fi | |
6858 | ||
6859 | # targ-vals.def points to the libc macro description file. | |
6860 | case "${target}" in | |
6861 | *-*-*) TARG_VALS_DEF=../common/nltvals.def ;; | |
6862 | esac | |
6863 | sim_link_files="${sim_link_files} ${TARG_VALS_DEF}" | |
6864 | sim_link_links="${sim_link_links} targ-vals.def" | |
6865 | ||
6866 | ||
6867 | ||
6868 | ||
6869 | default_sim_inline="" | |
6870 | # Check whether --enable-sim-inline or --disable-sim-inline was given. | |
6871 | if test "${enable_sim_inline+set}" = set; then | |
6872 | enableval="$enable_sim_inline" | |
6873 | sim_inline="" | |
6874 | case "$enableval" in | |
6875 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
6876 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
6877 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";; | |
6878 | 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";; | |
6879 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6880 | new_flag="" | |
6881 | case "$x" in | |
6882 | *_INLINE=*) new_flag="-D$x";; | |
6883 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
6884 | *_INLINE) new_flag="-D$x=ALL_C_INLINE";; | |
6885 | *) new_flag="-D$x""_INLINE=ALL_C_INLINE";; | |
6886 | esac | |
6887 | if test x"$sim_inline" = x""; then | |
6888 | sim_inline="$new_flag" | |
6889 | else | |
6890 | sim_inline="$sim_inline $new_flag" | |
6891 | fi | |
6892 | done;; | |
6893 | esac | |
6894 | if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then | |
6895 | echo "Setting inline flags = $sim_inline" 6>&1 | |
6896 | fi | |
6897 | else | |
b7026657 | 6898 | |
5d031c16 AC |
6899 | if test "x$cross_compiling" = "xno"; then |
6900 | if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then | |
6901 | sim_inline="${default_sim_inline}" | |
6902 | if test x"$silent" != x"yes"; then | |
6903 | echo "Setting inline flags = $sim_inline" 6>&1 | |
6904 | fi | |
6905 | else | |
6906 | sim_inline="" | |
6907 | fi | |
6908 | else | |
6909 | sim_inline="-DDEFAULT_INLINE=0" | |
6910 | fi | |
b7026657 | 6911 | fi; |
5d031c16 AC |
6912 | wire_alignment="NONSTRICT_ALIGNMENT" |
6913 | default_alignment="" | |
6914 | ||
6915 | # Check whether --enable-sim-alignment or --disable-sim-alignment was given. | |
6916 | if test "${enable_sim_alignment+set}" = set; then | |
6917 | enableval="$enable_sim_alignment" | |
6918 | case "${enableval}" in | |
6919 | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";; | |
6920 | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";; | |
6921 | forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";; | |
6922 | yes) if test x"$wire_alignment" != x; then | |
6923 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
6924 | else | |
6925 | if test x"$default_alignment" != x; then | |
6926 | sim_alignment="-DWITH_ALIGNMENT=${default_alignment}" | |
6927 | else | |
6928 | echo "No hard-wired alignment for target $target" 1>&6 | |
6929 | sim_alignment="-DWITH_ALIGNMENT=0" | |
6930 | fi | |
6931 | fi;; | |
6932 | no) if test x"$default_alignment" != x; then | |
6933 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
6934 | else | |
6935 | if test x"$wire_alignment" != x; then | |
6936 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}" | |
6937 | else | |
6938 | echo "No default alignment for target $target" 1>&6 | |
6939 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0" | |
6940 | fi | |
6941 | fi;; | |
b7026657 AC |
6942 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5 |
6943 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;} | |
6944 | { (exit 1); exit 1; }; }; sim_alignment="";; | |
5d031c16 AC |
6945 | esac |
6946 | if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then | |
6947 | echo "Setting alignment flags = $sim_alignment" 6>&1 | |
6948 | fi | |
6949 | else | |
6950 | if test x"$default_alignment" != x; then | |
6951 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
6952 | else | |
6953 | if test x"$wire_alignment" != x; then | |
6954 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
6955 | else | |
6956 | sim_alignment= | |
6957 | fi | |
6958 | fi | |
b7026657 | 6959 | fi; |
5d031c16 AC |
6960 | |
6961 | # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given. | |
6962 | if test "${enable_sim_hostendian+set}" = set; then | |
6963 | enableval="$enable_sim_hostendian" | |
6964 | case "${enableval}" in | |
6965 | no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";; | |
6966 | b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";; | |
6967 | l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";; | |
b7026657 AC |
6968 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5 |
6969 | echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;} | |
6970 | { (exit 1); exit 1; }; }; sim_hostendian="";; | |
5d031c16 AC |
6971 | esac |
6972 | if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then | |
6973 | echo "Setting hostendian flags = $sim_hostendian" 6>&1 | |
6974 | fi | |
6975 | else | |
b7026657 | 6976 | |
5d031c16 | 6977 | if test "x$cross_compiling" = "xno"; then |
b7026657 AC |
6978 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
6979 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
6980 | if test "${ac_cv_c_bigendian+set}" = set; then | |
6981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6982 | else | |
6983 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6984 | cat >conftest.$ac_ext <<_ACEOF | |
6985 | /* confdefs.h. */ | |
6986 | _ACEOF | |
6987 | cat confdefs.h >>conftest.$ac_ext | |
6988 | cat >>conftest.$ac_ext <<_ACEOF | |
6989 | /* end confdefs.h. */ | |
5d031c16 AC |
6990 | #include <sys/types.h> |
6991 | #include <sys/param.h> | |
5d031c16 | 6992 | |
b7026657 AC |
6993 | int |
6994 | main () | |
6995 | { | |
5d031c16 AC |
6996 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
6997 | bogus endian macros | |
6998 | #endif | |
b7026657 AC |
6999 | |
7000 | ; | |
7001 | return 0; | |
7002 | } | |
7003 | _ACEOF | |
7004 | rm -f conftest.$ac_objext | |
7005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7006 | (eval $ac_compile) 2>conftest.er1 | |
7007 | ac_status=$? | |
7008 | grep -v '^ *+' conftest.er1 >conftest.err | |
7009 | rm -f conftest.er1 | |
7010 | cat conftest.err >&5 | |
7011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7012 | (exit $ac_status); } && | |
7013 | { ac_try='test -z "$ac_c_werror_flag" | |
7014 | || test ! -s conftest.err' | |
7015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7016 | (eval $ac_try) 2>&5 | |
7017 | ac_status=$? | |
7018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7019 | (exit $ac_status); }; } && | |
7020 | { ac_try='test -s conftest.$ac_objext' | |
7021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7022 | (eval $ac_try) 2>&5 | |
7023 | ac_status=$? | |
7024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7025 | (exit $ac_status); }; }; then | |
5d031c16 | 7026 | # It does; now see whether it defined to BIG_ENDIAN or not. |
b7026657 AC |
7027 | cat >conftest.$ac_ext <<_ACEOF |
7028 | /* confdefs.h. */ | |
7029 | _ACEOF | |
7030 | cat confdefs.h >>conftest.$ac_ext | |
7031 | cat >>conftest.$ac_ext <<_ACEOF | |
7032 | /* end confdefs.h. */ | |
5d031c16 AC |
7033 | #include <sys/types.h> |
7034 | #include <sys/param.h> | |
5d031c16 | 7035 | |
b7026657 AC |
7036 | int |
7037 | main () | |
7038 | { | |
5d031c16 AC |
7039 | #if BYTE_ORDER != BIG_ENDIAN |
7040 | not big endian | |
7041 | #endif | |
b7026657 AC |
7042 | |
7043 | ; | |
7044 | return 0; | |
7045 | } | |
7046 | _ACEOF | |
7047 | rm -f conftest.$ac_objext | |
7048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7049 | (eval $ac_compile) 2>conftest.er1 | |
7050 | ac_status=$? | |
7051 | grep -v '^ *+' conftest.er1 >conftest.err | |
7052 | rm -f conftest.er1 | |
7053 | cat conftest.err >&5 | |
7054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7055 | (exit $ac_status); } && | |
7056 | { ac_try='test -z "$ac_c_werror_flag" | |
7057 | || test ! -s conftest.err' | |
7058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7059 | (eval $ac_try) 2>&5 | |
7060 | ac_status=$? | |
7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7062 | (exit $ac_status); }; } && | |
7063 | { ac_try='test -s conftest.$ac_objext' | |
7064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7065 | (eval $ac_try) 2>&5 | |
7066 | ac_status=$? | |
7067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7068 | (exit $ac_status); }; }; then | |
5d031c16 AC |
7069 | ac_cv_c_bigendian=yes |
7070 | else | |
b7026657 AC |
7071 | echo "$as_me: failed program was:" >&5 |
7072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7073 | ||
7074 | ac_cv_c_bigendian=no | |
5d031c16 | 7075 | fi |
b7026657 | 7076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d031c16 | 7077 | else |
b7026657 AC |
7078 | echo "$as_me: failed program was:" >&5 |
7079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7080 | ||
7081 | # It does not; compile a test program. | |
5d031c16 | 7082 | if test "$cross_compiling" = yes; then |
b7026657 AC |
7083 | # try to guess the endianness by grepping values into an object file |
7084 | ac_cv_c_bigendian=unknown | |
7085 | cat >conftest.$ac_ext <<_ACEOF | |
7086 | /* confdefs.h. */ | |
7087 | _ACEOF | |
7088 | cat confdefs.h >>conftest.$ac_ext | |
7089 | cat >>conftest.$ac_ext <<_ACEOF | |
7090 | /* end confdefs.h. */ | |
7091 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
7092 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
7093 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
7094 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
7095 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
7096 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
7097 | int | |
7098 | main () | |
7099 | { | |
7100 | _ascii (); _ebcdic (); | |
7101 | ; | |
7102 | return 0; | |
7103 | } | |
7104 | _ACEOF | |
7105 | rm -f conftest.$ac_objext | |
7106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7107 | (eval $ac_compile) 2>conftest.er1 | |
7108 | ac_status=$? | |
7109 | grep -v '^ *+' conftest.er1 >conftest.err | |
7110 | rm -f conftest.er1 | |
7111 | cat conftest.err >&5 | |
7112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7113 | (exit $ac_status); } && | |
7114 | { ac_try='test -z "$ac_c_werror_flag" | |
7115 | || test ! -s conftest.err' | |
7116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117 | (eval $ac_try) 2>&5 | |
7118 | ac_status=$? | |
7119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7120 | (exit $ac_status); }; } && | |
7121 | { ac_try='test -s conftest.$ac_objext' | |
7122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7123 | (eval $ac_try) 2>&5 | |
7124 | ac_status=$? | |
7125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7126 | (exit $ac_status); }; }; then | |
7127 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
7128 | ac_cv_c_bigendian=yes | |
7129 | fi | |
7130 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
7131 | if test "$ac_cv_c_bigendian" = unknown; then | |
7132 | ac_cv_c_bigendian=no | |
7133 | else | |
7134 | # finding both strings is unlikely to happen, but who knows? | |
7135 | ac_cv_c_bigendian=unknown | |
7136 | fi | |
7137 | fi | |
5d031c16 | 7138 | else |
b7026657 AC |
7139 | echo "$as_me: failed program was:" >&5 |
7140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7141 | ||
7142 | fi | |
7143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7144 | else | |
7145 | cat >conftest.$ac_ext <<_ACEOF | |
7146 | /* confdefs.h. */ | |
7147 | _ACEOF | |
7148 | cat confdefs.h >>conftest.$ac_ext | |
7149 | cat >>conftest.$ac_ext <<_ACEOF | |
7150 | /* end confdefs.h. */ | |
7151 | int | |
7152 | main () | |
7153 | { | |
5d031c16 AC |
7154 | /* Are we little or big endian? From Harbison&Steele. */ |
7155 | union | |
7156 | { | |
7157 | long l; | |
7158 | char c[sizeof (long)]; | |
7159 | } u; | |
7160 | u.l = 1; | |
7161 | exit (u.c[sizeof (long) - 1] == 1); | |
7162 | } | |
b7026657 AC |
7163 | _ACEOF |
7164 | rm -f conftest$ac_exeext | |
7165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7166 | (eval $ac_link) 2>&5 | |
7167 | ac_status=$? | |
7168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7169 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7171 | (eval $ac_try) 2>&5 | |
7172 | ac_status=$? | |
7173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7174 | (exit $ac_status); }; }; then | |
5d031c16 AC |
7175 | ac_cv_c_bigendian=no |
7176 | else | |
b7026657 AC |
7177 | echo "$as_me: program exited with status $ac_status" >&5 |
7178 | echo "$as_me: failed program was:" >&5 | |
7179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7180 | ||
7181 | ( exit $ac_status ) | |
7182 | ac_cv_c_bigendian=yes | |
5d031c16 | 7183 | fi |
b7026657 | 7184 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d031c16 | 7185 | fi |
5d031c16 | 7186 | fi |
b7026657 | 7187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d031c16 | 7188 | fi |
b7026657 AC |
7189 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
7190 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
7191 | case $ac_cv_c_bigendian in | |
7192 | yes) | |
5d031c16 | 7193 | |
b7026657 | 7194 | cat >>confdefs.h <<\_ACEOF |
5d031c16 | 7195 | #define WORDS_BIGENDIAN 1 |
b7026657 AC |
7196 | _ACEOF |
7197 | ;; | |
7198 | no) | |
7199 | ;; | |
7200 | *) | |
7201 | { { echo "$as_me:$LINENO: error: unknown endianness | |
7202 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
7203 | echo "$as_me: error: unknown endianness | |
7204 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
7205 | { (exit 1); exit 1; }; } ;; | |
7206 | esac | |
5d031c16 AC |
7207 | |
7208 | if test $ac_cv_c_bigendian = yes; then | |
7209 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN" | |
7210 | else | |
7211 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN" | |
7212 | fi | |
7213 | else | |
7214 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=0" | |
7215 | fi | |
b7026657 | 7216 | fi; |
5d031c16 | 7217 | |
c8cca39f AC |
7218 | # NOTE: Don't add -Wall or -Wunused, they both include |
7219 | # -Wunused-parameter which reports bogus warnings. | |
7220 | # NOTE: If you add to this list, remember to update | |
7221 | # gdb/doc/gdbint.texinfo. | |
7222 | build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ | |
7223 | -Wformat -Wparentheses -Wpointer-arith -Wuninitialized" | |
7224 | # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs | |
7225 | # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value | |
7226 | # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual | |
7227 | # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes | |
7228 | # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls | |
7229 | # -Woverloaded-virtual -Winline -Werror" | |
5d031c16 AC |
7230 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
7231 | if test "${enable_build_warnings+set}" = set; then | |
7232 | enableval="$enable_build_warnings" | |
c8cca39f AC |
7233 | case "${enableval}" in |
7234 | yes) ;; | |
7235 | no) build_warnings="-w";; | |
7236 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
7237 | build_warnings="${build_warnings} ${t}";; | |
7238 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
7239 | build_warnings="${t} ${build_warnings}";; | |
7240 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
7241 | esac | |
7242 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
7243 | echo "Setting compiler warning flags = $build_warnings" 6>&1 | |
7244 | fi | |
b7026657 | 7245 | fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given. |
c8cca39f AC |
7246 | if test "${enable_sim_build_warnings+set}" = set; then |
7247 | enableval="$enable_sim_build_warnings" | |
7248 | case "${enableval}" in | |
5d031c16 AC |
7249 | yes) ;; |
7250 | no) build_warnings="-w";; | |
7251 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
c8cca39f | 7252 | build_warnings="${build_warnings} ${t}";; |
5d031c16 | 7253 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
c8cca39f AC |
7254 | build_warnings="${t} ${build_warnings}";; |
7255 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
5d031c16 AC |
7256 | esac |
7257 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
c8cca39f AC |
7258 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 |
7259 | fi | |
b7026657 | 7260 | fi; WARN_CFLAGS="" |
5d031c16 AC |
7261 | WERROR_CFLAGS="" |
7262 | if test "x${build_warnings}" != x -a "x$GCC" = xyes | |
7263 | then | |
b7026657 AC |
7264 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
7265 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
c8cca39f AC |
7266 | # Separate out the -Werror flag as some files just cannot be |
7267 | # compiled with it enabled. | |
7268 | for w in ${build_warnings}; do | |
7269 | case $w in | |
7270 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
7271 | *) # Check that GCC accepts it | |
7272 | saved_CFLAGS="$CFLAGS" | |
7273 | CFLAGS="$CFLAGS $w" | |
b7026657 AC |
7274 | cat >conftest.$ac_ext <<_ACEOF |
7275 | /* confdefs.h. */ | |
7276 | _ACEOF | |
7277 | cat confdefs.h >>conftest.$ac_ext | |
7278 | cat >>conftest.$ac_ext <<_ACEOF | |
7279 | /* end confdefs.h. */ | |
c8cca39f | 7280 | |
b7026657 AC |
7281 | int |
7282 | main () | |
7283 | { | |
c8cca39f | 7284 | |
b7026657 AC |
7285 | ; |
7286 | return 0; | |
7287 | } | |
7288 | _ACEOF | |
7289 | rm -f conftest.$ac_objext | |
7290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7291 | (eval $ac_compile) 2>conftest.er1 | |
7292 | ac_status=$? | |
7293 | grep -v '^ *+' conftest.er1 >conftest.err | |
7294 | rm -f conftest.er1 | |
7295 | cat conftest.err >&5 | |
7296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7297 | (exit $ac_status); } && | |
7298 | { ac_try='test -z "$ac_c_werror_flag" | |
7299 | || test ! -s conftest.err' | |
7300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7301 | (eval $ac_try) 2>&5 | |
7302 | ac_status=$? | |
7303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7304 | (exit $ac_status); }; } && | |
7305 | { ac_try='test -s conftest.$ac_objext' | |
7306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7307 | (eval $ac_try) 2>&5 | |
7308 | ac_status=$? | |
7309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7310 | (exit $ac_status); }; }; then | |
c8cca39f | 7311 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
5d031c16 | 7312 | else |
b7026657 AC |
7313 | echo "$as_me: failed program was:" >&5 |
7314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7315 | ||
c8cca39f | 7316 | fi |
b7026657 | 7317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c8cca39f AC |
7318 | CFLAGS="$saved_CFLAGS" |
7319 | esac | |
7320 | done | |
b7026657 AC |
7321 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5 |
7322 | echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6 | |
5d031c16 AC |
7323 | fi |
7324 | ||
7325 | ||
7326 | # | |
7327 | # Add simulated hardware devices | |
7328 | # | |
7329 | hw_enabled=no | |
7330 | case "${target}" in | |
7331 | m68hc11-*-*|m6811-*-*) | |
7332 | hw_enabled=yes | |
7333 | hw_extra_devices="m68hc11 m68hc11sio m68hc11eepr m68hc11tim m68hc11spi nvram" | |
7334 | m68hc11_extra_objs="dv-sockser.o" | |
7335 | SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_M68HC11=1" | |
7336 | ;; | |
7337 | *) | |
b7026657 | 7338 | m68hc11_extra_objs="" |
5d031c16 AC |
7339 | ;; |
7340 | esac | |
7341 | ||
7342 | if test x"$hw_enabled" = x"yes"; then | |
7343 | sim_hw_p=yes | |
7344 | else | |
7345 | sim_hw_p=no | |
7346 | fi | |
7347 | if test "$hw_devices"; then | |
7348 | hardware="core pal glue" | |
7349 | else | |
7350 | hardware="core pal glue $hw_extra_devices" | |
7351 | fi | |
7352 | sim_hw_cflags="-DWITH_HW=1" | |
7353 | sim_hw="$hardware" | |
7354 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`" | |
7355 | # Check whether --enable-sim-hardware or --disable-sim-hardware was given. | |
7356 | if test "${enable_sim_hardware+set}" = set; then | |
7357 | enableval="$enable_sim_hardware" | |
b7026657 | 7358 | |
5d031c16 AC |
7359 | case "${enableval}" in |
7360 | yes) sim_hw_p=yes;; | |
7361 | no) sim_hw_p=no;; | |
7362 | ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";; | |
7363 | *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";; | |
7364 | *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';; | |
7365 | esac | |
7366 | if test "$sim_hw_p" != yes; then | |
7367 | sim_hw_objs= | |
7368 | sim_hw_cflags="-DWITH_HW=0" | |
7369 | sim_hw= | |
7370 | else | |
7371 | sim_hw_cflags="-DWITH_HW=1" | |
7372 | # remove duplicates | |
7373 | sim_hw="" | |
7374 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS)" | |
7375 | for i in x $hardware ; do | |
7376 | case " $f " in | |
7377 | x) ;; | |
7378 | *" $i "*) ;; | |
7379 | *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";; | |
7380 | esac | |
7381 | done | |
7382 | fi | |
7383 | if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then | |
7384 | echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" | |
7385 | fi | |
7386 | else | |
b7026657 | 7387 | |
5d031c16 AC |
7388 | if test "$sim_hw_p" != yes; then |
7389 | sim_hw_objs= | |
7390 | sim_hw_cflags="-DWITH_HW=0" | |
7391 | sim_hw= | |
7392 | fi | |
7393 | if test x"$silent" != x"yes"; then | |
7394 | echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" | |
7395 | fi | |
b7026657 | 7396 | fi; |
5d031c16 AC |
7397 | |
7398 | ||
b7026657 AC |
7399 | |
7400 | ||
7401 | ||
7402 | ||
7403 | for ac_header in string.h strings.h stdlib.h stdlib.h fcntl.h | |
5d031c16 | 7404 | do |
b7026657 AC |
7405 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7406 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7407 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7408 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7409 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7411 | fi | |
7412 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7413 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7414 | else | |
7415 | # Is the header compilable? | |
7416 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7417 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7418 | cat >conftest.$ac_ext <<_ACEOF | |
7419 | /* confdefs.h. */ | |
7420 | _ACEOF | |
7421 | cat confdefs.h >>conftest.$ac_ext | |
7422 | cat >>conftest.$ac_ext <<_ACEOF | |
7423 | /* end confdefs.h. */ | |
7424 | $ac_includes_default | |
7425 | #include <$ac_header> | |
7426 | _ACEOF | |
7427 | rm -f conftest.$ac_objext | |
7428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7429 | (eval $ac_compile) 2>conftest.er1 | |
7430 | ac_status=$? | |
7431 | grep -v '^ *+' conftest.er1 >conftest.err | |
7432 | rm -f conftest.er1 | |
7433 | cat conftest.err >&5 | |
7434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7435 | (exit $ac_status); } && | |
7436 | { ac_try='test -z "$ac_c_werror_flag" | |
7437 | || test ! -s conftest.err' | |
7438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7439 | (eval $ac_try) 2>&5 | |
7440 | ac_status=$? | |
7441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7442 | (exit $ac_status); }; } && | |
7443 | { ac_try='test -s conftest.$ac_objext' | |
7444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7445 | (eval $ac_try) 2>&5 | |
7446 | ac_status=$? | |
7447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7448 | (exit $ac_status); }; }; then | |
7449 | ac_header_compiler=yes | |
7450 | else | |
7451 | echo "$as_me: failed program was:" >&5 | |
7452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7453 | ||
7454 | ac_header_compiler=no | |
7455 | fi | |
7456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7457 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7458 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7459 | ||
7460 | # Is the header present? | |
7461 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7462 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7463 | cat >conftest.$ac_ext <<_ACEOF | |
7464 | /* confdefs.h. */ | |
7465 | _ACEOF | |
7466 | cat confdefs.h >>conftest.$ac_ext | |
7467 | cat >>conftest.$ac_ext <<_ACEOF | |
7468 | /* end confdefs.h. */ | |
7469 | #include <$ac_header> | |
7470 | _ACEOF | |
7471 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7472 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7473 | ac_status=$? | |
7474 | grep -v '^ *+' conftest.er1 >conftest.err | |
7475 | rm -f conftest.er1 | |
7476 | cat conftest.err >&5 | |
7477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7478 | (exit $ac_status); } >/dev/null; then | |
7479 | if test -s conftest.err; then | |
7480 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7481 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7482 | else | |
7483 | ac_cpp_err= | |
7484 | fi | |
7485 | else | |
7486 | ac_cpp_err=yes | |
5d031c16 | 7487 | fi |
b7026657 AC |
7488 | if test -z "$ac_cpp_err"; then |
7489 | ac_header_preproc=yes | |
7490 | else | |
7491 | echo "$as_me: failed program was:" >&5 | |
7492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7493 | ||
7494 | ac_header_preproc=no | |
5d031c16 | 7495 | fi |
b7026657 AC |
7496 | rm -f conftest.err conftest.$ac_ext |
7497 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7498 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7499 | ||
7500 | # So? What about this header? | |
7501 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7502 | yes:no: ) | |
7503 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7504 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7505 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7506 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7507 | ac_header_preproc=yes | |
7508 | ;; | |
7509 | no:yes:* ) | |
7510 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7511 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7512 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7513 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7514 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7515 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7516 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7517 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7518 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7519 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7520 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7521 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7522 | ( | |
7523 | cat <<\_ASBOX | |
7524 | ## ------------------------------------------ ## | |
7525 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7526 | ## ------------------------------------------ ## | |
7527 | _ASBOX | |
7528 | ) | | |
7529 | sed "s/^/$as_me: WARNING: /" >&2 | |
7530 | ;; | |
7531 | esac | |
7532 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7533 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7534 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d031c16 | 7536 | else |
b7026657 AC |
7537 | eval "$as_ac_Header=\$ac_header_preproc" |
7538 | fi | |
7539 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7540 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7541 | ||
5d031c16 | 7542 | fi |
b7026657 AC |
7543 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7544 | cat >>confdefs.h <<_ACEOF | |
7545 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7546 | _ACEOF | |
7547 | ||
7548 | fi | |
7549 | ||
5d031c16 AC |
7550 | done |
7551 | ||
7552 | ||
7553 | ||
7554 | ||
7555 | ||
b7026657 AC |
7556 | ac_sources="$sim_link_files" |
7557 | ac_dests="$sim_link_links" | |
7558 | while test -n "$ac_sources"; do | |
7559 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
7560 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
7561 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
7562 | done | |
7563 | ac_config_links="$ac_config_links $ac_config_links_1" | |
5d031c16 | 7564 | |
379832de HPN |
7565 | cgen_breaks="" |
7566 | if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then | |
7567 | cgen_breaks="break cgen_rtx_error"; | |
7568 | fi | |
7569 | ||
b7026657 AC |
7570 | ac_config_files="$ac_config_files Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in" |
7571 | ac_config_commands="$ac_config_commands default" | |
7572 | cat >confcache <<\_ACEOF | |
5d031c16 AC |
7573 | # This file is a shell script that caches the results of configure |
7574 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
7575 | # scripts and configure runs, see configure's option --config-cache. |
7576 | # It is not useful on other systems. If it contains results you don't | |
7577 | # want to keep, you may remove or edit it. | |
5d031c16 | 7578 | # |
b7026657 AC |
7579 | # config.status only pays attention to the cache file if you give it |
7580 | # the --recheck option to rerun configure. | |
5d031c16 | 7581 | # |
b7026657 AC |
7582 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
7583 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7584 | # following values. | |
7585 | ||
7586 | _ACEOF | |
7587 | ||
5d031c16 AC |
7588 | # The following way of writing the cache mishandles newlines in values, |
7589 | # but we know of no workaround that is simple, portable, and efficient. | |
7590 | # So, don't put newlines in cache variables' values. | |
7591 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7592 | # and sets the high bit in the cache file unless we assign to the vars. | |
b7026657 AC |
7593 | { |
7594 | (set) 2>&1 | | |
7595 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7596 | *ac_space=\ *) | |
7597 | # `set' does not quote correctly, so add quotes (double-quote | |
7598 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7599 | sed -n \ | |
7600 | "s/'/'\\\\''/g; | |
7601 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7602 | ;; | |
7603 | *) | |
7604 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7605 | sed -n \ | |
7606 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
7607 | ;; | |
7608 | esac; | |
7609 | } | | |
7610 | sed ' | |
7611 | t clear | |
7612 | : clear | |
7613 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7614 | t end | |
7615 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7616 | : end' >>confcache | |
7617 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
5d031c16 | 7618 | if test -w $cache_file; then |
b7026657 AC |
7619 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
7620 | cat confcache >$cache_file | |
5d031c16 AC |
7621 | else |
7622 | echo "not updating unwritable cache $cache_file" | |
7623 | fi | |
7624 | fi | |
7625 | rm -f confcache | |
7626 | ||
5d031c16 AC |
7627 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7628 | # Let make expand exec_prefix. | |
7629 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7630 | ||
b7026657 AC |
7631 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
7632 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7633 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7634 | # (actually we leave an empty line to preserve line numbers). | |
5d031c16 | 7635 | if test "x$srcdir" = x.; then |
b7026657 AC |
7636 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
7637 | s/:*\$(srcdir):*/:/; | |
7638 | s/:*\${srcdir}:*/:/; | |
7639 | s/:*@srcdir@:*/:/; | |
7640 | s/^\([^=]*=[ ]*\):*/\1/; | |
7641 | s/:*$//; | |
7642 | s/^[^=]*=[ ]*$//; | |
7643 | }' | |
5d031c16 AC |
7644 | fi |
7645 | ||
5d031c16 AC |
7646 | DEFS=-DHAVE_CONFIG_H |
7647 | ||
b7026657 AC |
7648 | ac_libobjs= |
7649 | ac_ltlibobjs= | |
7650 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7651 | # 1. Remove the extension, and $U if already installed. | |
7652 | ac_i=`echo "$ac_i" | | |
7653 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
7654 | # 2. Add them. | |
7655 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
7656 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
7657 | done | |
7658 | LIBOBJS=$ac_libobjs | |
5d031c16 | 7659 | |
b7026657 AC |
7660 | LTLIBOBJS=$ac_ltlibobjs |
7661 | ||
7662 | ||
7663 | ||
7664 | : ${CONFIG_STATUS=./config.status} | |
7665 | ac_clean_files_save=$ac_clean_files | |
7666 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7667 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
7668 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7669 | cat >$CONFIG_STATUS <<_ACEOF | |
7670 | #! $SHELL | |
7671 | # Generated by $as_me. | |
5d031c16 | 7672 | # Run this file to recreate the current configuration. |
5d031c16 | 7673 | # Compiler output produced by configure, useful for debugging |
b7026657 | 7674 | # configure, is in config.log if it exists. |
5d031c16 | 7675 | |
b7026657 AC |
7676 | debug=false |
7677 | ac_cs_recheck=false | |
7678 | ac_cs_silent=false | |
7679 | SHELL=\${CONFIG_SHELL-$SHELL} | |
7680 | _ACEOF | |
7681 | ||
7682 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7683 | ## --------------------- ## | |
7684 | ## M4sh Initialization. ## | |
7685 | ## --------------------- ## | |
7686 | ||
7687 | # Be Bourne compatible | |
7688 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7689 | emulate sh | |
7690 | NULLCMD=: | |
7691 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
7692 | # is contrary to our usage. Disable this feature. | |
7693 | alias -g '${1+"$@"}'='"$@"' | |
7694 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
7695 | set -o posix | |
7696 | fi | |
7697 | DUALCASE=1; export DUALCASE # for MKS sh | |
7698 | ||
7699 | # Support unset when possible. | |
7700 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7701 | as_unset=unset | |
7702 | else | |
7703 | as_unset=false | |
7704 | fi | |
7705 | ||
7706 | ||
7707 | # Work around bugs in pre-3.0 UWIN ksh. | |
7708 | $as_unset ENV MAIL MAILPATH | |
7709 | PS1='$ ' | |
7710 | PS2='> ' | |
7711 | PS4='+ ' | |
7712 | ||
7713 | # NLS nuisances. | |
7714 | for as_var in \ | |
7715 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
7716 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
7717 | LC_TELEPHONE LC_TIME | |
5d031c16 | 7718 | do |
b7026657 AC |
7719 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
7720 | eval $as_var=C; export $as_var | |
7721 | else | |
7722 | $as_unset $as_var | |
7723 | fi | |
5d031c16 AC |
7724 | done |
7725 | ||
b7026657 AC |
7726 | # Required to use basename. |
7727 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7728 | as_expr=expr | |
7729 | else | |
7730 | as_expr=false | |
7731 | fi | |
7732 | ||
7733 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
7734 | as_basename=basename | |
7735 | else | |
7736 | as_basename=false | |
7737 | fi | |
5d031c16 | 7738 | |
5d031c16 | 7739 | |
b7026657 AC |
7740 | # Name of the executable. |
7741 | as_me=`$as_basename "$0" || | |
7742 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
7743 | X"$0" : 'X\(//\)$' \| \ | |
7744 | X"$0" : 'X\(/\)$' \| \ | |
7745 | . : '\(.\)' 2>/dev/null || | |
7746 | echo X/"$0" | | |
7747 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
7748 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
7749 | /^X\/\(\/\).*/{ s//\1/; q; } | |
7750 | s/.*/./; q'` | |
5d031c16 | 7751 | |
b7026657 AC |
7752 | |
7753 | # PATH needs CR, and LINENO needs CR and PATH. | |
7754 | # Avoid depending upon Character Ranges. | |
7755 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7756 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7757 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7758 | as_cr_digits='0123456789' | |
7759 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7760 | ||
7761 | # The user is always right. | |
7762 | if test "${PATH_SEPARATOR+set}" != set; then | |
7763 | echo "#! /bin/sh" >conf$$.sh | |
7764 | echo "exit 0" >>conf$$.sh | |
7765 | chmod +x conf$$.sh | |
7766 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7767 | PATH_SEPARATOR=';' | |
5d031c16 | 7768 | else |
b7026657 AC |
7769 | PATH_SEPARATOR=: |
7770 | fi | |
7771 | rm -f conf$$.sh | |
7772 | fi | |
7773 | ||
7774 | ||
7775 | as_lineno_1=$LINENO | |
7776 | as_lineno_2=$LINENO | |
7777 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7778 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7779 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
7780 | # Find who we are. Look in the path if we contain no path at all | |
7781 | # relative or not. | |
7782 | case $0 in | |
7783 | *[\\/]* ) as_myself=$0 ;; | |
7784 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7785 | for as_dir in $PATH | |
7786 | do | |
7787 | IFS=$as_save_IFS | |
7788 | test -z "$as_dir" && as_dir=. | |
7789 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7790 | done | |
7791 | ||
7792 | ;; | |
7793 | esac | |
7794 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7795 | # in which case we are not to be found in the path. | |
7796 | if test "x$as_myself" = x; then | |
7797 | as_myself=$0 | |
7798 | fi | |
7799 | if test ! -f "$as_myself"; then | |
7800 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
7801 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
7802 | { (exit 1); exit 1; }; } | |
5d031c16 | 7803 | fi |
b7026657 AC |
7804 | case $CONFIG_SHELL in |
7805 | '') | |
7806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7807 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
7808 | do | |
7809 | IFS=$as_save_IFS | |
7810 | test -z "$as_dir" && as_dir=. | |
7811 | for as_base in sh bash ksh sh5; do | |
7812 | case $as_dir in | |
7813 | /*) | |
7814 | if ("$as_dir/$as_base" -c ' | |
7815 | as_lineno_1=$LINENO | |
7816 | as_lineno_2=$LINENO | |
7817 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7818 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7819 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
7820 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
7821 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
7822 | CONFIG_SHELL=$as_dir/$as_base | |
7823 | export CONFIG_SHELL | |
7824 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
7825 | fi;; | |
7826 | esac | |
7827 | done | |
7828 | done | |
7829 | ;; | |
7830 | esac | |
7831 | ||
7832 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
7833 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7834 | # line-number line before each line; the second 'sed' does the real | |
7835 | # work. The second script uses 'N' to pair each line-number line | |
7836 | # with the numbered line, and appends trailing '-' during | |
7837 | # substitution so that $LINENO is not a special case at line end. | |
7838 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7839 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7840 | sed '=' <$as_myself | | |
7841 | sed ' | |
7842 | N | |
7843 | s,$,-, | |
7844 | : loop | |
7845 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7846 | t loop | |
7847 | s,-$,, | |
7848 | s,^['$as_cr_digits']*\n,, | |
7849 | ' >$as_me.lineno && | |
7850 | chmod +x $as_me.lineno || | |
7851 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
7852 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
7853 | { (exit 1); exit 1; }; } | |
7854 | ||
7855 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7856 | # (the dirname of $[0] is not the place where we might find the | |
7857 | # original and so on. Autoconf is especially sensible to this). | |
7858 | . ./$as_me.lineno | |
7859 | # Exit status is that of the last command. | |
7860 | exit | |
7861 | } | |
7862 | ||
7863 | ||
7864 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
7865 | *c*,-n*) ECHO_N= ECHO_C=' | |
7866 | ' ECHO_T=' ' ;; | |
7867 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7868 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
7869 | esac | |
7870 | ||
7871 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7872 | as_expr=expr | |
7873 | else | |
7874 | as_expr=false | |
7875 | fi | |
7876 | ||
7877 | rm -f conf$$ conf$$.exe conf$$.file | |
7878 | echo >conf$$.file | |
7879 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7880 | # We could just check for DJGPP; but this test a) works b) is more generic | |
7881 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7882 | if test -f conf$$.exe; then | |
7883 | # Don't use ln at all; we don't have any links | |
7884 | as_ln_s='cp -p' | |
5d031c16 | 7885 | else |
b7026657 | 7886 | as_ln_s='ln -s' |
5d031c16 | 7887 | fi |
b7026657 AC |
7888 | elif ln conf$$.file conf$$ 2>/dev/null; then |
7889 | as_ln_s=ln | |
7890 | else | |
7891 | as_ln_s='cp -p' | |
7892 | fi | |
7893 | rm -f conf$$ conf$$.exe conf$$.file | |
7894 | ||
7895 | if mkdir -p . 2>/dev/null; then | |
7896 | as_mkdir_p=: | |
7897 | else | |
7898 | test -d ./-p && rmdir ./-p | |
7899 | as_mkdir_p=false | |
7900 | fi | |
7901 | ||
7902 | as_executable_p="test -f" | |
7903 | ||
7904 | # Sed expression to map a string onto a valid CPP name. | |
7905 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7906 | ||
7907 | # Sed expression to map a string onto a valid variable name. | |
7908 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7909 | ||
7910 | ||
7911 | # IFS | |
7912 | # We need space, tab and new line, in precisely that order. | |
7913 | as_nl=' | |
7914 | ' | |
7915 | IFS=" $as_nl" | |
7916 | ||
7917 | # CDPATH. | |
7918 | $as_unset CDPATH | |
7919 | ||
7920 | exec 6>&1 | |
7921 | ||
7922 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
7923 | # report actual input values of CONFIG_FILES etc. instead of their | |
7924 | # values after options handling. Logging --version etc. is OK. | |
7925 | exec 5>>config.log | |
7926 | { | |
7927 | echo | |
7928 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7929 | ## Running $as_me. ## | |
7930 | _ASBOX | |
7931 | } >&5 | |
7932 | cat >&5 <<_CSEOF | |
7933 | ||
7934 | This file was extended by $as_me, which was | |
7935 | generated by GNU Autoconf 2.59. Invocation command line was | |
7936 | ||
7937 | CONFIG_FILES = $CONFIG_FILES | |
7938 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7939 | CONFIG_LINKS = $CONFIG_LINKS | |
7940 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7941 | $ $0 $@ | |
7942 | ||
7943 | _CSEOF | |
7944 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
7945 | echo >&5 | |
7946 | _ACEOF | |
7947 | ||
7948 | # Files that config.status was made for. | |
7949 | if test -n "$ac_config_files"; then | |
7950 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
7951 | fi | |
7952 | ||
7953 | if test -n "$ac_config_headers"; then | |
7954 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7955 | fi | |
7956 | ||
7957 | if test -n "$ac_config_links"; then | |
7958 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7959 | fi | |
7960 | ||
7961 | if test -n "$ac_config_commands"; then | |
7962 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7963 | fi | |
7964 | ||
7965 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7966 | ||
7967 | ac_cs_usage="\ | |
7968 | \`$as_me' instantiates files from templates according to the | |
7969 | current configuration. | |
7970 | ||
7971 | Usage: $0 [OPTIONS] [FILE]... | |
7972 | ||
7973 | -h, --help print this help, then exit | |
7974 | -V, --version print version number, then exit | |
7975 | -q, --quiet do not print progress messages | |
7976 | -d, --debug don't remove temporary files | |
7977 | --recheck update $as_me by reconfiguring in the same conditions | |
7978 | --file=FILE[:TEMPLATE] | |
7979 | instantiate the configuration file FILE | |
7980 | --header=FILE[:TEMPLATE] | |
7981 | instantiate the configuration header FILE | |
7982 | ||
7983 | Configuration files: | |
7984 | $config_files | |
7985 | ||
7986 | Configuration headers: | |
7987 | $config_headers | |
7988 | ||
7989 | Configuration links: | |
7990 | $config_links | |
7991 | ||
7992 | Configuration commands: | |
7993 | $config_commands | |
7994 | ||
7995 | Report bugs to <bug-autoconf@gnu.org>." | |
7996 | _ACEOF | |
7997 | ||
7998 | cat >>$CONFIG_STATUS <<_ACEOF | |
7999 | ac_cs_version="\\ | |
8000 | config.status | |
8001 | configured by $0, generated by GNU Autoconf 2.59, | |
8002 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
8003 | ||
8004 | Copyright (C) 2003 Free Software Foundation, Inc. | |
8005 | This config.status script is free software; the Free Software Foundation | |
8006 | gives unlimited permission to copy, distribute and modify it." | |
8007 | srcdir=$srcdir | |
8008 | INSTALL="$INSTALL" | |
8009 | _ACEOF | |
8010 | ||
8011 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8012 | # If no file are specified by the user, then we need to provide default | |
8013 | # value. By we need to know if files were specified by the user. | |
8014 | ac_need_defaults=: | |
8015 | while test $# != 0 | |
8016 | do | |
8017 | case $1 in | |
8018 | --*=*) | |
8019 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
8020 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
8021 | ac_shift=: | |
8022 | ;; | |
8023 | -*) | |
8024 | ac_option=$1 | |
8025 | ac_optarg=$2 | |
8026 | ac_shift=shift | |
8027 | ;; | |
8028 | *) # This is not an option, so the user has probably given explicit | |
8029 | # arguments. | |
8030 | ac_option=$1 | |
8031 | ac_need_defaults=false;; | |
8032 | esac | |
8033 | ||
8034 | case $ac_option in | |
8035 | # Handling of the options. | |
8036 | _ACEOF | |
8037 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8038 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8039 | ac_cs_recheck=: ;; | |
8040 | --version | --vers* | -V ) | |
8041 | echo "$ac_cs_version"; exit 0 ;; | |
8042 | --he | --h) | |
8043 | # Conflict between --help and --header | |
8044 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
8045 | Try \`$0 --help' for more information." >&5 | |
8046 | echo "$as_me: error: ambiguous option: $1 | |
8047 | Try \`$0 --help' for more information." >&2;} | |
8048 | { (exit 1); exit 1; }; };; | |
8049 | --help | --hel | -h ) | |
8050 | echo "$ac_cs_usage"; exit 0 ;; | |
8051 | --debug | --d* | -d ) | |
8052 | debug=: ;; | |
8053 | --file | --fil | --fi | --f ) | |
8054 | $ac_shift | |
8055 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
8056 | ac_need_defaults=false;; | |
8057 | --header | --heade | --head | --hea ) | |
8058 | $ac_shift | |
8059 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
8060 | ac_need_defaults=false;; | |
8061 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
8062 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8063 | ac_cs_silent=: ;; | |
8064 | ||
8065 | # This is an error. | |
8066 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
8067 | Try \`$0 --help' for more information." >&5 | |
8068 | echo "$as_me: error: unrecognized option: $1 | |
8069 | Try \`$0 --help' for more information." >&2;} | |
8070 | { (exit 1); exit 1; }; } ;; | |
8071 | ||
8072 | *) ac_config_targets="$ac_config_targets $1" ;; | |
8073 | ||
8074 | esac | |
8075 | shift | |
5d031c16 | 8076 | done |
b7026657 AC |
8077 | |
8078 | ac_configure_extra_args= | |
8079 | ||
8080 | if $ac_cs_silent; then | |
8081 | exec 6>/dev/null | |
8082 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8083 | fi | |
8084 | ||
8085 | _ACEOF | |
8086 | cat >>$CONFIG_STATUS <<_ACEOF | |
8087 | if \$ac_cs_recheck; then | |
8088 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
8089 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
5d031c16 | 8090 | fi |
5d031c16 | 8091 | |
b7026657 | 8092 | _ACEOF |
5d031c16 | 8093 | |
b7026657 AC |
8094 | |
8095 | ||
8096 | ||
8097 | ||
8098 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8099 | for ac_config_target in $ac_config_targets | |
8100 | do | |
8101 | case "$ac_config_target" in | |
8102 | # Handling of arguments. | |
8103 | "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;; | |
8104 | "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;; | |
8105 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;; | |
8106 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
8107 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
8108 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
8109 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
8110 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
8111 | { (exit 1); exit 1; }; };; | |
5d031c16 | 8112 | esac |
b7026657 | 8113 | done |
5d031c16 | 8114 | |
b7026657 AC |
8115 | # If the user did not use the arguments to specify the items to instantiate, |
8116 | # then the envvar interface is used. Set only those that are not. | |
8117 | # We use the long form for the default assignment because of an extremely | |
8118 | # bizarre bug on SunOS 4.1.3. | |
8119 | if $ac_need_defaults; then | |
8120 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8121 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8122 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
8123 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8124 | fi | |
8125 | ||
8126 | # Have a temporary directory for convenience. Make it in the build tree | |
8127 | # simply because there is no reason to put it here, and in addition, | |
8128 | # creating and moving files from /tmp can sometimes cause problems. | |
8129 | # Create a temporary directory, and hook for its removal unless debugging. | |
8130 | $debug || | |
8131 | { | |
8132 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
8133 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
8134 | } | |
5d031c16 | 8135 | |
b7026657 AC |
8136 | # Create a (secure) tmp directory for tmp files. |
8137 | ||
8138 | { | |
8139 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
8140 | test -n "$tmp" && test -d "$tmp" | |
8141 | } || | |
8142 | { | |
8143 | tmp=./confstat$$-$RANDOM | |
8144 | (umask 077 && mkdir $tmp) | |
8145 | } || | |
8146 | { | |
8147 | echo "$me: cannot create a temporary directory in ." >&2 | |
8148 | { (exit 1); exit 1; } | |
8149 | } | |
8150 | ||
8151 | _ACEOF | |
8152 | ||
8153 | cat >>$CONFIG_STATUS <<_ACEOF | |
8154 | ||
8155 | # | |
8156 | # CONFIG_FILES section. | |
8157 | # | |
8158 | ||
8159 | # No need to generate the scripts if there are no CONFIG_FILES. | |
8160 | # This happens for instance when ./config.status config.h | |
8161 | if test -n "\$CONFIG_FILES"; then | |
8162 | # Protect against being on the right side of a sed subst in config.status. | |
8163 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
8164 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
8165 | s,@sim_environment@,$sim_environment,;t t | |
8166 | s,@sim_alignment@,$sim_alignment,;t t | |
8167 | s,@sim_assert@,$sim_assert,;t t | |
8168 | s,@sim_bitsize@,$sim_bitsize,;t t | |
8169 | s,@sim_endian@,$sim_endian,;t t | |
8170 | s,@sim_hostendian@,$sim_hostendian,;t t | |
8171 | s,@sim_float@,$sim_float,;t t | |
8172 | s,@sim_scache@,$sim_scache,;t t | |
8173 | s,@sim_default_model@,$sim_default_model,;t t | |
8174 | s,@sim_hw_cflags@,$sim_hw_cflags,;t t | |
8175 | s,@sim_hw_objs@,$sim_hw_objs,;t t | |
8176 | s,@sim_hw@,$sim_hw,;t t | |
8177 | s,@sim_inline@,$sim_inline,;t t | |
8178 | s,@sim_packages@,$sim_packages,;t t | |
8179 | s,@sim_regparm@,$sim_regparm,;t t | |
8180 | s,@sim_reserved_bits@,$sim_reserved_bits,;t t | |
8181 | s,@sim_smp@,$sim_smp,;t t | |
8182 | s,@sim_stdcall@,$sim_stdcall,;t t | |
8183 | s,@sim_xor_endian@,$sim_xor_endian,;t t | |
8184 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
8185 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
8186 | s,@SHELL@,$SHELL,;t t | |
8187 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
8188 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
8189 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
8190 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
8191 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
8192 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
8193 | s,@exec_prefix@,$exec_prefix,;t t | |
8194 | s,@prefix@,$prefix,;t t | |
8195 | s,@program_transform_name@,$program_transform_name,;t t | |
8196 | s,@bindir@,$bindir,;t t | |
8197 | s,@sbindir@,$sbindir,;t t | |
8198 | s,@libexecdir@,$libexecdir,;t t | |
8199 | s,@datadir@,$datadir,;t t | |
8200 | s,@sysconfdir@,$sysconfdir,;t t | |
8201 | s,@sharedstatedir@,$sharedstatedir,;t t | |
8202 | s,@localstatedir@,$localstatedir,;t t | |
8203 | s,@libdir@,$libdir,;t t | |
8204 | s,@includedir@,$includedir,;t t | |
8205 | s,@oldincludedir@,$oldincludedir,;t t | |
8206 | s,@infodir@,$infodir,;t t | |
8207 | s,@mandir@,$mandir,;t t | |
8208 | s,@build_alias@,$build_alias,;t t | |
8209 | s,@host_alias@,$host_alias,;t t | |
8210 | s,@target_alias@,$target_alias,;t t | |
8211 | s,@DEFS@,$DEFS,;t t | |
8212 | s,@ECHO_C@,$ECHO_C,;t t | |
8213 | s,@ECHO_N@,$ECHO_N,;t t | |
8214 | s,@ECHO_T@,$ECHO_T,;t t | |
8215 | s,@LIBS@,$LIBS,;t t | |
8216 | s,@build@,$build,;t t | |
8217 | s,@build_cpu@,$build_cpu,;t t | |
8218 | s,@build_vendor@,$build_vendor,;t t | |
8219 | s,@build_os@,$build_os,;t t | |
8220 | s,@host@,$host,;t t | |
8221 | s,@host_cpu@,$host_cpu,;t t | |
8222 | s,@host_vendor@,$host_vendor,;t t | |
8223 | s,@host_os@,$host_os,;t t | |
8224 | s,@target@,$target,;t t | |
8225 | s,@target_cpu@,$target_cpu,;t t | |
8226 | s,@target_vendor@,$target_vendor,;t t | |
8227 | s,@target_os@,$target_os,;t t | |
8228 | s,@CC@,$CC,;t t | |
8229 | s,@CFLAGS@,$CFLAGS,;t t | |
8230 | s,@LDFLAGS@,$LDFLAGS,;t t | |
8231 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
8232 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
8233 | s,@EXEEXT@,$EXEEXT,;t t | |
8234 | s,@OBJEXT@,$OBJEXT,;t t | |
8235 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
8236 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
8237 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
8238 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
8239 | s,@HDEFINES@,$HDEFINES,;t t | |
8240 | s,@AR@,$AR,;t t | |
8241 | s,@RANLIB@,$RANLIB,;t t | |
8242 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
8243 | s,@SET_MAKE@,$SET_MAKE,;t t | |
8244 | s,@CPP@,$CPP,;t t | |
8245 | s,@EGREP@,$EGREP,;t t | |
8246 | s,@ALLOCA@,$ALLOCA,;t t | |
8247 | s,@USE_NLS@,$USE_NLS,;t t | |
8248 | s,@MSGFMT@,$MSGFMT,;t t | |
8249 | s,@GMSGFMT@,$GMSGFMT,;t t | |
8250 | s,@XGETTEXT@,$XGETTEXT,;t t | |
8251 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
8252 | s,@CATALOGS@,$CATALOGS,;t t | |
8253 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
8254 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
8255 | s,@GMOFILES@,$GMOFILES,;t t | |
8256 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
8257 | s,@INTLDEPS@,$INTLDEPS,;t t | |
8258 | s,@INTLLIBS@,$INTLLIBS,;t t | |
8259 | s,@INTLOBJS@,$INTLOBJS,;t t | |
8260 | s,@POFILES@,$POFILES,;t t | |
8261 | s,@POSUB@,$POSUB,;t t | |
8262 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
8263 | s,@GT_NO@,$GT_NO,;t t | |
8264 | s,@GT_YES@,$GT_YES,;t t | |
8265 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
8266 | s,@l@,$l,;t t | |
8267 | s,@MAINT@,$MAINT,;t t | |
8268 | s,@sim_bswap@,$sim_bswap,;t t | |
8269 | s,@sim_cflags@,$sim_cflags,;t t | |
8270 | s,@sim_debug@,$sim_debug,;t t | |
8271 | s,@sim_stdio@,$sim_stdio,;t t | |
8272 | s,@sim_trace@,$sim_trace,;t t | |
8273 | s,@sim_profile@,$sim_profile,;t t | |
8274 | s,@m68hc11_extra_objs@,$m68hc11_extra_objs,;t t | |
8275 | s,@cgen_breaks@,$cgen_breaks,;t t | |
8276 | s,@LIBOBJS@,$LIBOBJS,;t t | |
8277 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
8278 | CEOF | |
8279 | ||
8280 | _ACEOF | |
8281 | ||
8282 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8283 | # Split the substitutions into bite-sized pieces for seds with | |
8284 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8285 | ac_max_sed_lines=48 | |
8286 | ac_sed_frag=1 # Number of current file. | |
8287 | ac_beg=1 # First line for current file. | |
8288 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
8289 | ac_more_lines=: | |
8290 | ac_sed_cmds= | |
8291 | while $ac_more_lines; do | |
8292 | if test $ac_beg -gt 1; then | |
8293 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
8294 | else | |
8295 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
8296 | fi | |
8297 | if test ! -s $tmp/subs.frag; then | |
8298 | ac_more_lines=false | |
8299 | else | |
8300 | # The purpose of the label and of the branching condition is to | |
8301 | # speed up the sed processing (if there are no `@' at all, there | |
8302 | # is no need to browse any of the substitutions). | |
8303 | # These are the two extra sed commands mentioned above. | |
8304 | (echo ':t | |
8305 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
8306 | if test -z "$ac_sed_cmds"; then | |
8307 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
8308 | else | |
8309 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
8310 | fi | |
8311 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
8312 | ac_beg=$ac_end | |
8313 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
8314 | fi | |
8315 | done | |
8316 | if test -z "$ac_sed_cmds"; then | |
8317 | ac_sed_cmds=cat | |
5d031c16 | 8318 | fi |
b7026657 | 8319 | fi # test -n "$CONFIG_FILES" |
5d031c16 | 8320 | |
b7026657 AC |
8321 | _ACEOF |
8322 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8323 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
8324 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8325 | case $ac_file in | |
8326 | - | *:- | *:-:* ) # input from stdin | |
8327 | cat >$tmp/stdin | |
8328 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8329 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8330 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8331 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8332 | * ) ac_file_in=$ac_file.in ;; | |
5d031c16 AC |
8333 | esac |
8334 | ||
b7026657 AC |
8335 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
8336 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8337 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8338 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8339 | X"$ac_file" : 'X\(//\)$' \| \ | |
8340 | X"$ac_file" : 'X\(/\)' \| \ | |
8341 | . : '\(.\)' 2>/dev/null || | |
8342 | echo X"$ac_file" | | |
8343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8344 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8345 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8346 | /^X\(\/\).*/{ s//\1/; q; } | |
8347 | s/.*/./; q'` | |
8348 | { if $as_mkdir_p; then | |
8349 | mkdir -p "$ac_dir" | |
8350 | else | |
8351 | as_dir="$ac_dir" | |
8352 | as_dirs= | |
8353 | while test ! -d "$as_dir"; do | |
8354 | as_dirs="$as_dir $as_dirs" | |
8355 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8356 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8357 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8358 | X"$as_dir" : 'X\(//\)$' \| \ | |
8359 | X"$as_dir" : 'X\(/\)' \| \ | |
8360 | . : '\(.\)' 2>/dev/null || | |
8361 | echo X"$as_dir" | | |
8362 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8363 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8364 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8365 | /^X\(\/\).*/{ s//\1/; q; } | |
8366 | s/.*/./; q'` | |
8367 | done | |
8368 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8369 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8370 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8371 | { (exit 1); exit 1; }; }; } | |
5d031c16 | 8372 | |
b7026657 AC |
8373 | ac_builddir=. |
8374 | ||
8375 | if test "$ac_dir" != .; then | |
8376 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8377 | # A "../" for each directory in $ac_dir_suffix. | |
8378 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8379 | else | |
8380 | ac_dir_suffix= ac_top_builddir= | |
8381 | fi | |
8382 | ||
8383 | case $srcdir in | |
8384 | .) # No --srcdir option. We are building in place. | |
8385 | ac_srcdir=. | |
8386 | if test -z "$ac_top_builddir"; then | |
8387 | ac_top_srcdir=. | |
8388 | else | |
8389 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8390 | fi ;; | |
8391 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8392 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8393 | ac_top_srcdir=$srcdir ;; | |
8394 | *) # Relative path. | |
8395 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8396 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8397 | esac | |
8398 | ||
8399 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8400 | # the directories may not exist. | |
8401 | case `pwd` in | |
8402 | .) ac_abs_builddir="$ac_dir";; | |
8403 | *) | |
8404 | case "$ac_dir" in | |
8405 | .) ac_abs_builddir=`pwd`;; | |
8406 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8407 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8408 | esac;; | |
8409 | esac | |
8410 | case $ac_abs_builddir in | |
8411 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8412 | *) | |
8413 | case ${ac_top_builddir}. in | |
8414 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8415 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8416 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8417 | esac;; | |
8418 | esac | |
8419 | case $ac_abs_builddir in | |
8420 | .) ac_abs_srcdir=$ac_srcdir;; | |
8421 | *) | |
8422 | case $ac_srcdir in | |
8423 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8424 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8425 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8426 | esac;; | |
8427 | esac | |
8428 | case $ac_abs_builddir in | |
8429 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8430 | *) | |
8431 | case $ac_top_srcdir in | |
8432 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8433 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8434 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8435 | esac;; | |
8436 | esac | |
8437 | ||
8438 | ||
8439 | case $INSTALL in | |
8440 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
8441 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
5d031c16 AC |
8442 | esac |
8443 | ||
b7026657 AC |
8444 | if test x"$ac_file" != x-; then |
8445 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
8446 | echo "$as_me: creating $ac_file" >&6;} | |
8447 | rm -f "$ac_file" | |
8448 | fi | |
8449 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8450 | # use $as_me), people would be surprised to read: | |
8451 | # /* config.h. Generated by config.status. */ | |
8452 | if test x"$ac_file" = x-; then | |
8453 | configure_input= | |
8454 | else | |
8455 | configure_input="$ac_file. " | |
8456 | fi | |
8457 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
8458 | sed 's,.*/,,'` by configure." | |
8459 | ||
8460 | # First look for the input files in the build tree, otherwise in the | |
8461 | # src tree. | |
8462 | ac_file_inputs=`IFS=: | |
8463 | for f in $ac_file_in; do | |
8464 | case $f in | |
8465 | -) echo $tmp/stdin ;; | |
8466 | [\\/$]*) | |
8467 | # Absolute (can't be DOS-style, as IFS=:) | |
8468 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8469 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8470 | { (exit 1); exit 1; }; } | |
8471 | echo "$f";; | |
8472 | *) # Relative | |
8473 | if test -f "$f"; then | |
8474 | # Build tree | |
8475 | echo "$f" | |
8476 | elif test -f "$srcdir/$f"; then | |
8477 | # Source tree | |
8478 | echo "$srcdir/$f" | |
8479 | else | |
8480 | # /dev/null tree | |
8481 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8482 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8483 | { (exit 1); exit 1; }; } | |
8484 | fi;; | |
8485 | esac | |
8486 | done` || { (exit 1); exit 1; } | |
8487 | _ACEOF | |
8488 | cat >>$CONFIG_STATUS <<_ACEOF | |
8489 | sed "$ac_vpsub | |
8490 | $extrasub | |
8491 | _ACEOF | |
8492 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8493 | :t | |
8494 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
8495 | s,@configure_input@,$configure_input,;t t | |
8496 | s,@srcdir@,$ac_srcdir,;t t | |
8497 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
8498 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
8499 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
8500 | s,@builddir@,$ac_builddir,;t t | |
8501 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
8502 | s,@top_builddir@,$ac_top_builddir,;t t | |
8503 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
8504 | s,@INSTALL@,$ac_INSTALL,;t t | |
8505 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
8506 | rm -f $tmp/stdin | |
8507 | if test x"$ac_file" != x-; then | |
8508 | mv $tmp/out $ac_file | |
8509 | else | |
8510 | cat $tmp/out | |
8511 | rm -f $tmp/out | |
8512 | fi | |
8513 | ||
8514 | done | |
8515 | _ACEOF | |
8516 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8517 | ||
8518 | # | |
8519 | # CONFIG_HEADER section. | |
8520 | # | |
5d031c16 AC |
8521 | |
8522 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8523 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8524 | # | |
8525 | # ac_d sets the value in "#define NAME VALUE" lines. | |
b7026657 AC |
8526 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
8527 | ac_dB='[ ].*$,\1#\2' | |
8528 | ac_dC=' ' | |
8529 | ac_dD=',;t' | |
8530 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8531 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8532 | ac_uB='$,\1#\2define\3' | |
5d031c16 | 8533 | ac_uC=' ' |
b7026657 AC |
8534 | ac_uD=',;t' |
8535 | ||
8536 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
5d031c16 | 8537 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
8538 | case $ac_file in |
8539 | - | *:- | *:-:* ) # input from stdin | |
8540 | cat >$tmp/stdin | |
8541 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8542 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8543 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8544 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8545 | * ) ac_file_in=$ac_file.in ;; | |
5d031c16 AC |
8546 | esac |
8547 | ||
b7026657 AC |
8548 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
8549 | echo "$as_me: creating $ac_file" >&6;} | |
8550 | ||
8551 | # First look for the input files in the build tree, otherwise in the | |
8552 | # src tree. | |
8553 | ac_file_inputs=`IFS=: | |
8554 | for f in $ac_file_in; do | |
8555 | case $f in | |
8556 | -) echo $tmp/stdin ;; | |
8557 | [\\/$]*) | |
8558 | # Absolute (can't be DOS-style, as IFS=:) | |
8559 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8560 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8561 | { (exit 1); exit 1; }; } | |
8562 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
8563 | echo "$f";; | |
8564 | *) # Relative | |
8565 | if test -f "$f"; then | |
8566 | # Build tree | |
8567 | echo "$f" | |
8568 | elif test -f "$srcdir/$f"; then | |
8569 | # Source tree | |
8570 | echo "$srcdir/$f" | |
8571 | else | |
8572 | # /dev/null tree | |
8573 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8574 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8575 | { (exit 1); exit 1; }; } | |
8576 | fi;; | |
8577 | esac | |
8578 | done` || { (exit 1); exit 1; } | |
8579 | # Remove the trailing spaces. | |
8580 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
8581 | ||
8582 | _ACEOF | |
8583 | ||
8584 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
8585 | # `conftest.undefs', that substitutes the proper values into | |
8586 | # config.h.in to produce config.h. The first handles `#define' | |
8587 | # templates, and the second `#undef' templates. | |
8588 | # And first: Protect against being on the right side of a sed subst in | |
8589 | # config.status. Protect against being in an unquoted here document | |
8590 | # in config.status. | |
8591 | rm -f conftest.defines conftest.undefs | |
8592 | # Using a here document instead of a string reduces the quoting nightmare. | |
8593 | # Putting comments in sed scripts is not portable. | |
8594 | # | |
8595 | # `end' is used to avoid that the second main sed command (meant for | |
8596 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
8597 | # See the Autoconf documentation for `clear'. | |
8598 | cat >confdef2sed.sed <<\_ACEOF | |
8599 | s/[\\&,]/\\&/g | |
8600 | s,[\\$`],\\&,g | |
8601 | t clear | |
8602 | : clear | |
8603 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
8604 | t end | |
8605 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
8606 | : end | |
8607 | _ACEOF | |
8608 | # If some macros were called several times there might be several times | |
8609 | # the same #defines, which is useless. Nevertheless, we may not want to | |
8610 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
8611 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
8612 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
8613 | rm -f confdef2sed.sed | |
5d031c16 AC |
8614 | |
8615 | # This sed command replaces #undef with comments. This is necessary, for | |
8616 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8617 | # on some systems where configure will not decide to define it. | |
b7026657 AC |
8618 | cat >>conftest.undefs <<\_ACEOF |
8619 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
8620 | _ACEOF | |
8621 | ||
8622 | # Break up conftest.defines because some shells have a limit on the size | |
8623 | # of here documents, and old seds have small limits too (100 cmds). | |
8624 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
8625 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
8626 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
8627 | echo ' :' >>$CONFIG_STATUS | |
8628 | rm -f conftest.tail | |
8629 | while grep . conftest.defines >/dev/null | |
8630 | do | |
8631 | # Write a limited-size here document to $tmp/defines.sed. | |
8632 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
8633 | # Speed up: don't consider the non `#define' lines. | |
8634 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
8635 | # Work around the forget-to-reset-the-flag bug. | |
8636 | echo 't clr' >>$CONFIG_STATUS | |
8637 | echo ': clr' >>$CONFIG_STATUS | |
8638 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
8639 | echo 'CEOF | |
8640 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
8641 | rm -f $tmp/in | |
8642 | mv $tmp/out $tmp/in | |
8643 | ' >>$CONFIG_STATUS | |
8644 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
8645 | rm -f conftest.defines | |
8646 | mv conftest.tail conftest.defines | |
8647 | done | |
8648 | rm -f conftest.defines | |
8649 | echo ' fi # grep' >>$CONFIG_STATUS | |
8650 | echo >>$CONFIG_STATUS | |
5d031c16 | 8651 | |
b7026657 AC |
8652 | # Break up conftest.undefs because some shells have a limit on the size |
8653 | # of here documents, and old seds have small limits too (100 cmds). | |
8654 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
5d031c16 | 8655 | rm -f conftest.tail |
b7026657 | 8656 | while grep . conftest.undefs >/dev/null |
5d031c16 | 8657 | do |
b7026657 AC |
8658 | # Write a limited-size here document to $tmp/undefs.sed. |
8659 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
8660 | # Speed up: don't consider the non `#undef' | |
8661 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
8662 | # Work around the forget-to-reset-the-flag bug. | |
8663 | echo 't clr' >>$CONFIG_STATUS | |
8664 | echo ': clr' >>$CONFIG_STATUS | |
8665 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
5d031c16 | 8666 | echo 'CEOF |
b7026657 AC |
8667 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
8668 | rm -f $tmp/in | |
8669 | mv $tmp/out $tmp/in | |
8670 | ' >>$CONFIG_STATUS | |
8671 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
8672 | rm -f conftest.undefs | |
8673 | mv conftest.tail conftest.undefs | |
5d031c16 | 8674 | done |
b7026657 AC |
8675 | rm -f conftest.undefs |
8676 | ||
8677 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8678 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8679 | # use $as_me), people would be surprised to read: | |
8680 | # /* config.h. Generated by config.status. */ | |
8681 | if test x"$ac_file" = x-; then | |
8682 | echo "/* Generated by configure. */" >$tmp/config.h | |
5d031c16 | 8683 | else |
b7026657 | 8684 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
5d031c16 | 8685 | fi |
b7026657 AC |
8686 | cat $tmp/in >>$tmp/config.h |
8687 | rm -f $tmp/in | |
8688 | if test x"$ac_file" != x-; then | |
8689 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
8690 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
8691 | echo "$as_me: $ac_file is unchanged" >&6;} | |
8692 | else | |
8693 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8694 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8695 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8696 | X"$ac_file" : 'X\(//\)$' \| \ | |
8697 | X"$ac_file" : 'X\(/\)' \| \ | |
8698 | . : '\(.\)' 2>/dev/null || | |
8699 | echo X"$ac_file" | | |
8700 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8701 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8702 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8703 | /^X\(\/\).*/{ s//\1/; q; } | |
8704 | s/.*/./; q'` | |
8705 | { if $as_mkdir_p; then | |
8706 | mkdir -p "$ac_dir" | |
8707 | else | |
8708 | as_dir="$ac_dir" | |
8709 | as_dirs= | |
8710 | while test ! -d "$as_dir"; do | |
8711 | as_dirs="$as_dir $as_dirs" | |
8712 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8713 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8714 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8715 | X"$as_dir" : 'X\(//\)$' \| \ | |
8716 | X"$as_dir" : 'X\(/\)' \| \ | |
8717 | . : '\(.\)' 2>/dev/null || | |
8718 | echo X"$as_dir" | | |
8719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8721 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8722 | /^X\(\/\).*/{ s//\1/; q; } | |
8723 | s/.*/./; q'` | |
8724 | done | |
8725 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8726 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8727 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8728 | { (exit 1); exit 1; }; }; } | |
5d031c16 | 8729 | |
b7026657 AC |
8730 | rm -f $ac_file |
8731 | mv $tmp/config.h $ac_file | |
8732 | fi | |
8733 | else | |
8734 | cat $tmp/config.h | |
8735 | rm -f $tmp/config.h | |
8736 | fi | |
8737 | done | |
8738 | _ACEOF | |
8739 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5d031c16 | 8740 | |
b7026657 AC |
8741 | # |
8742 | # CONFIG_LINKS section. | |
8743 | # | |
5d031c16 | 8744 | |
b7026657 AC |
8745 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
8746 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8747 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
5d031c16 | 8748 | |
b7026657 AC |
8749 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
8750 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
5d031c16 AC |
8751 | |
8752 | if test ! -r $srcdir/$ac_source; then | |
b7026657 AC |
8753 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
8754 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
8755 | { (exit 1); exit 1; }; } | |
5d031c16 AC |
8756 | fi |
8757 | rm -f $ac_dest | |
8758 | ||
8759 | # Make relative symlinks. | |
b7026657 AC |
8760 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
8761 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8762 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
8763 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8764 | X"$ac_dest" : 'X\(/\)' \| \ | |
8765 | . : '\(.\)' 2>/dev/null || | |
8766 | echo X"$ac_dest" | | |
8767 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8768 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8769 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8770 | /^X\(\/\).*/{ s//\1/; q; } | |
8771 | s/.*/./; q'` | |
8772 | { if $as_mkdir_p; then | |
8773 | mkdir -p "$ac_dest_dir" | |
5d031c16 | 8774 | else |
b7026657 AC |
8775 | as_dir="$ac_dest_dir" |
8776 | as_dirs= | |
8777 | while test ! -d "$as_dir"; do | |
8778 | as_dirs="$as_dir $as_dirs" | |
8779 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8780 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8781 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8782 | X"$as_dir" : 'X\(//\)$' \| \ | |
8783 | X"$as_dir" : 'X\(/\)' \| \ | |
8784 | . : '\(.\)' 2>/dev/null || | |
8785 | echo X"$as_dir" | | |
8786 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8787 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8788 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8789 | /^X\(\/\).*/{ s//\1/; q; } | |
8790 | s/.*/./; q'` | |
8791 | done | |
8792 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8793 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
8794 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
8795 | { (exit 1); exit 1; }; }; } | |
8796 | ||
8797 | ac_builddir=. | |
8798 | ||
8799 | if test "$ac_dest_dir" != .; then | |
8800 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
8801 | # A "../" for each directory in $ac_dir_suffix. | |
8802 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8803 | else | |
8804 | ac_dir_suffix= ac_top_builddir= | |
8805 | fi | |
8806 | ||
8807 | case $srcdir in | |
8808 | .) # No --srcdir option. We are building in place. | |
8809 | ac_srcdir=. | |
8810 | if test -z "$ac_top_builddir"; then | |
8811 | ac_top_srcdir=. | |
8812 | else | |
8813 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8814 | fi ;; | |
8815 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8816 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8817 | ac_top_srcdir=$srcdir ;; | |
8818 | *) # Relative path. | |
8819 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8820 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8821 | esac | |
8822 | ||
8823 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8824 | # the directories may not exist. | |
8825 | case `pwd` in | |
8826 | .) ac_abs_builddir="$ac_dest_dir";; | |
8827 | *) | |
8828 | case "$ac_dest_dir" in | |
8829 | .) ac_abs_builddir=`pwd`;; | |
8830 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
8831 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
8832 | esac;; | |
8833 | esac | |
8834 | case $ac_abs_builddir in | |
8835 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8836 | *) | |
8837 | case ${ac_top_builddir}. in | |
8838 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8839 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8840 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8841 | esac;; | |
8842 | esac | |
8843 | case $ac_abs_builddir in | |
8844 | .) ac_abs_srcdir=$ac_srcdir;; | |
8845 | *) | |
8846 | case $ac_srcdir in | |
8847 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8848 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8849 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8850 | esac;; | |
8851 | esac | |
8852 | case $ac_abs_builddir in | |
8853 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8854 | *) | |
8855 | case $ac_top_srcdir in | |
8856 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8857 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8858 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8859 | esac;; | |
8860 | esac | |
5d031c16 | 8861 | |
b7026657 AC |
8862 | |
8863 | case $srcdir in | |
8864 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
8865 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | |
5d031c16 AC |
8866 | esac |
8867 | ||
b7026657 AC |
8868 | # Try a symlink, then a hard link, then a copy. |
8869 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
8870 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
8871 | cp -p $srcdir/$ac_source $ac_dest || | |
8872 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
8873 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
8874 | { (exit 1); exit 1; }; } | |
5d031c16 | 8875 | done |
b7026657 AC |
8876 | _ACEOF |
8877 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8878 | ||
8879 | # | |
8880 | # CONFIG_COMMANDS section. | |
8881 | # | |
8882 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
8883 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8884 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8885 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
8886 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8887 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
8888 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8889 | X"$ac_dest" : 'X\(/\)' \| \ | |
8890 | . : '\(.\)' 2>/dev/null || | |
8891 | echo X"$ac_dest" | | |
8892 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8893 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8894 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8895 | /^X\(\/\).*/{ s//\1/; q; } | |
8896 | s/.*/./; q'` | |
8897 | { if $as_mkdir_p; then | |
8898 | mkdir -p "$ac_dir" | |
8899 | else | |
8900 | as_dir="$ac_dir" | |
8901 | as_dirs= | |
8902 | while test ! -d "$as_dir"; do | |
8903 | as_dirs="$as_dir $as_dirs" | |
8904 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8905 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8906 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8907 | X"$as_dir" : 'X\(//\)$' \| \ | |
8908 | X"$as_dir" : 'X\(/\)' \| \ | |
8909 | . : '\(.\)' 2>/dev/null || | |
8910 | echo X"$as_dir" | | |
8911 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8912 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8913 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8914 | /^X\(\/\).*/{ s//\1/; q; } | |
8915 | s/.*/./; q'` | |
8916 | done | |
8917 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8918 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8919 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8920 | { (exit 1); exit 1; }; }; } | |
8921 | ||
8922 | ac_builddir=. | |
8923 | ||
8924 | if test "$ac_dir" != .; then | |
8925 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8926 | # A "../" for each directory in $ac_dir_suffix. | |
8927 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8928 | else | |
8929 | ac_dir_suffix= ac_top_builddir= | |
8930 | fi | |
5d031c16 | 8931 | |
b7026657 AC |
8932 | case $srcdir in |
8933 | .) # No --srcdir option. We are building in place. | |
8934 | ac_srcdir=. | |
8935 | if test -z "$ac_top_builddir"; then | |
8936 | ac_top_srcdir=. | |
8937 | else | |
8938 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8939 | fi ;; | |
8940 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8941 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8942 | ac_top_srcdir=$srcdir ;; | |
8943 | *) # Relative path. | |
8944 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8945 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8946 | esac | |
8947 | ||
8948 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8949 | # the directories may not exist. | |
8950 | case `pwd` in | |
8951 | .) ac_abs_builddir="$ac_dir";; | |
8952 | *) | |
8953 | case "$ac_dir" in | |
8954 | .) ac_abs_builddir=`pwd`;; | |
8955 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8956 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8957 | esac;; | |
8958 | esac | |
8959 | case $ac_abs_builddir in | |
8960 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8961 | *) | |
8962 | case ${ac_top_builddir}. in | |
8963 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8964 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8965 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8966 | esac;; | |
8967 | esac | |
8968 | case $ac_abs_builddir in | |
8969 | .) ac_abs_srcdir=$ac_srcdir;; | |
8970 | *) | |
8971 | case $ac_srcdir in | |
8972 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8973 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8974 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8975 | esac;; | |
8976 | esac | |
8977 | case $ac_abs_builddir in | |
8978 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8979 | *) | |
8980 | case $ac_top_srcdir in | |
8981 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8982 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8983 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8984 | esac;; | |
8985 | esac | |
8986 | ||
8987 | ||
8988 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
8989 | echo "$as_me: executing $ac_dest commands" >&6;} | |
8990 | case $ac_dest in | |
8991 | default ) case "x$CONFIG_FILES" in | |
5d031c16 AC |
8992 | xMakefile*) |
8993 | echo "Merging Makefile.sim+Make-common.sim into Makefile ..." | |
8994 | rm -f Makesim1.tmp Makesim2.tmp Makefile | |
8995 | sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp | |
8996 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp | |
8997 | sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \ | |
8998 | -e '/^## COMMON_POST_/ r Makesim2.tmp' \ | |
8999 | <Makefile.sim >Makefile | |
9000 | rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp | |
9001 | ;; | |
9002 | esac | |
9003 | case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac | |
b7026657 AC |
9004 | ;; |
9005 | esac | |
9006 | done | |
9007 | _ACEOF | |
5d031c16 | 9008 | |
b7026657 AC |
9009 | cat >>$CONFIG_STATUS <<\_ACEOF |
9010 | ||
9011 | { (exit 0); exit 0; } | |
9012 | _ACEOF | |
5d031c16 | 9013 | chmod +x $CONFIG_STATUS |
b7026657 AC |
9014 | ac_clean_files=$ac_clean_files_save |
9015 | ||
9016 | ||
9017 | # configure is writing to config.log, and then calls config.status. | |
9018 | # config.status does its own redirection, appending to config.log. | |
9019 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9020 | # by configure, so config.status won't be able to write to it; its | |
9021 | # output is simply discarded. So we exec the FD to /dev/null, | |
9022 | # effectively closing config.log, so it can be properly (re)opened and | |
9023 | # appended to by config.status. When coming back to configure, we | |
9024 | # need to make the FD available again. | |
9025 | if test "$no_create" != yes; then | |
9026 | ac_cs_success=: | |
9027 | ac_config_status_args= | |
9028 | test "$silent" = yes && | |
9029 | ac_config_status_args="$ac_config_status_args --quiet" | |
9030 | exec 5>/dev/null | |
9031 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9032 | exec 5>>config.log | |
9033 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9034 | # would make configure fail if this is the last instruction. | |
9035 | $ac_cs_success || { (exit 1); exit 1; } | |
9036 | fi | |
5d031c16 AC |
9037 | |
9038 |