Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
b7026657 AC |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59. | |
4 | # | |
5 | # Copyright (C) 2003 Free Software Foundation, Inc. | |
6 | # This configure script is free software; the Free Software Foundation | |
7 | # gives unlimited permission to copy, distribute and modify it. | |
8 | ## --------------------- ## | |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
c906108c | 11 | |
b7026657 AC |
12 | # Be Bourne compatible |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
c906108c | 23 | |
b7026657 AC |
24 | # Support unset when possible. |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
c906108c SS |
30 | |
31 | ||
b7026657 AC |
32 | # Work around bugs in pre-3.0 UWIN ksh. |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
c906108c | 37 | |
b7026657 AC |
38 | # NLS nuisances. |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
c906108c | 50 | |
b7026657 AC |
51 | # Required to use basename. |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
c906108c | 57 | |
b7026657 AC |
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
c906108c SS |
63 | |
64 | ||
b7026657 AC |
65 | # Name of the executable. |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
c906108c SS |
76 | |
77 | ||
b7026657 AC |
78 | # PATH needs CR, and LINENO needs CR and PATH. |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
c906108c | 85 | |
b7026657 AC |
86 | # The user is always right. |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
c906108c SS |
98 | |
99 | ||
b7026657 AC |
100 | as_lineno_1=$LINENO |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
c906108c | 116 | |
b7026657 AC |
117 | ;; |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
c906108c | 155 | |
b7026657 AC |
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
c906108c SS |
185 | |
186 | ||
b7026657 AC |
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
c906108c | 193 | |
b7026657 AC |
194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
c906108c | 199 | |
b7026657 AC |
200 | rm -f conf$$ conf$$.exe conf$$.file |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
c906108c | 217 | |
b7026657 AC |
218 | if mkdir -p . 2>/dev/null; then |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
c906108c | 224 | |
b7026657 | 225 | as_executable_p="test -f" |
c906108c | 226 | |
b7026657 AC |
227 | # Sed expression to map a string onto a valid CPP name. |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 229 | |
b7026657 AC |
230 | # Sed expression to map a string onto a valid variable name. |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c SS |
232 | |
233 | ||
b7026657 AC |
234 | # IFS |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
c906108c | 239 | |
b7026657 AC |
240 | # CDPATH. |
241 | $as_unset CDPATH | |
c906108c SS |
242 | |
243 | ||
b7026657 AC |
244 | # Name of the host. |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
c906108c | 248 | |
b7026657 | 249 | exec 6>&1 |
c906108c | 250 | |
c906108c | 251 | # |
b7026657 | 252 | # Initializations. |
c906108c | 253 | # |
b7026657 AC |
254 | ac_default_prefix=/usr/local |
255 | ac_config_libobj_dir=. | |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
c906108c | 261 | |
b7026657 AC |
262 | # Maximum number of lines to put in a shell here document. |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="Makefile.in" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
c906108c | 311 | |
b7026657 AC |
312 | ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile cgen_breaks LIBOBJS LTLIBOBJS' |
313 | ac_subst_files='' | |
c906108c SS |
314 | |
315 | # Initialize some variables set by options. | |
b7026657 AC |
316 | ac_init_help= |
317 | ac_init_version=false | |
c906108c SS |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
b7026657 | 320 | cache_file=/dev/null |
c906108c | 321 | exec_prefix=NONE |
c906108c | 322 | no_create= |
c906108c SS |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
c906108c SS |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
b7026657 AC |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
c906108c SS |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
c906108c SS |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
c906108c SS |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
b7026657 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
b7026657 | 367 | case $ac_option in |
c906108c SS |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 372 | bindir=$ac_optarg ;; |
c906108c SS |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 375 | ac_prev=build_alias ;; |
c906108c | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 377 | build_alias=$ac_optarg ;; |
c906108c SS |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
c906108c SS |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
b7026657 | 393 | datadir=$ac_optarg ;; |
c906108c SS |
394 | |
395 | -disable-* | --disable-*) | |
b7026657 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 397 | # Reject names that are not valid shell variable names. |
b7026657 AC |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
c906108c SS |
403 | |
404 | -enable-* | --enable-*) | |
b7026657 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 406 | # Reject names that are not valid shell variable names. |
b7026657 AC |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
413 | *) ac_optarg=yes ;; |
414 | esac | |
b7026657 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
c906108c SS |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 424 | exec_prefix=$ac_optarg ;; |
c906108c SS |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
b7026657 AC |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
c906108c SS |
436 | |
437 | -host | --host | --hos | --ho) | |
b7026657 | 438 | ac_prev=host_alias ;; |
c906108c | 439 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 440 | host_alias=$ac_optarg ;; |
c906108c SS |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 447 | includedir=$ac_optarg ;; |
c906108c SS |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 452 | infodir=$ac_optarg ;; |
c906108c SS |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 457 | libdir=$ac_optarg ;; |
c906108c SS |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 464 | libexecdir=$ac_optarg ;; |
c906108c SS |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
b7026657 | 473 | localstatedir=$ac_optarg ;; |
c906108c SS |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 478 | mandir=$ac_optarg ;; |
c906108c SS |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 485 | | --no-cr | --no-c | -n) |
c906108c SS |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 499 | oldincludedir=$ac_optarg ;; |
c906108c SS |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 504 | prefix=$ac_optarg ;; |
c906108c SS |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 511 | program_prefix=$ac_optarg ;; |
c906108c SS |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 518 | program_suffix=$ac_optarg ;; |
c906108c SS |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 535 | program_transform_name=$ac_optarg ;; |
c906108c SS |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
b7026657 | 545 | sbindir=$ac_optarg ;; |
c906108c SS |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
b7026657 | 556 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
b7026657 | 561 | site=$ac_optarg ;; |
eb2d80b4 | 562 | |
c906108c SS |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 566 | srcdir=$ac_optarg ;; |
c906108c SS |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 573 | sysconfdir=$ac_optarg ;; |
c906108c SS |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 576 | ac_prev=target_alias ;; |
c906108c | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 578 | target_alias=$ac_optarg ;; |
c906108c SS |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
b7026657 AC |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
c906108c SS |
585 | |
586 | -with-* | --with-*) | |
b7026657 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 588 | # Reject names that are not valid shell variable names. |
b7026657 AC |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
c906108c | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
b7026657 AC |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
595 | *) ac_optarg=yes ;; |
596 | esac | |
b7026657 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
c906108c SS |
598 | |
599 | -without-* | --without-*) | |
b7026657 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 601 | # Reject names that are not valid shell variable names. |
b7026657 AC |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
c906108c SS |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 617 | x_includes=$ac_optarg ;; |
c906108c SS |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 624 | x_libraries=$ac_optarg ;; |
c906108c | 625 | |
b7026657 AC |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
c906108c SS |
629 | ;; |
630 | ||
b7026657 AC |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
c906108c | 641 | *) |
b7026657 AC |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
c906108c SS |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
b7026657 AC |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
c906108c | 656 | fi |
c906108c | 657 | |
b7026657 AC |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
c906108c | 668 | |
b7026657 AC |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
c906108c | 672 | do |
b7026657 AC |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
c906108c SS |
678 | esac |
679 | done | |
680 | ||
b7026657 AC |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
c906108c | 698 | |
b7026657 AC |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 703 | |
c906108c SS |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
b7026657 AC |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
c906108c SS |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
b7026657 AC |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
c906108c | 732 | else |
b7026657 AC |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
c906108c SS |
735 | fi |
736 | fi | |
b7026657 AC |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
c906108c | 773 | |
b7026657 AC |
774 | # |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
780 | cat <<_ACEOF | |
781 | \`configure' configures this package to adapt to many kinds of systems. | |
c906108c | 782 | |
b7026657 | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
c906108c | 784 | |
b7026657 AC |
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
c906108c | 787 | |
b7026657 | 788 | Defaults for the options are specified in brackets. |
c906108c | 789 | |
b7026657 AC |
790 | Configuration: |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
c906108c | 809 | |
b7026657 AC |
810 | By default, \`make install' will install all the files in |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
c906108c | 814 | |
b7026657 AC |
815 | For better control, use the options below. |
816 | ||
817 | Fine tuning of the installation directories: | |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
830 | _ACEOF | |
831 | ||
832 | cat <<\_ACEOF | |
833 | ||
834 | Program names: | |
835 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
836 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
837 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
838 | ||
839 | System types: | |
840 | --build=BUILD configure for building on BUILD [guessed] | |
841 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
842 | --target=TARGET configure for building compilers for TARGET [HOST] | |
843 | _ACEOF | |
c906108c | 844 | fi |
b7026657 AC |
845 | |
846 | if test -n "$ac_init_help"; then | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | Optional Features: | |
851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
853 | --disable-nls do not use Native Language Support | |
854 | --enable-maintainer-mode Enable developer functionality. | |
855 | --enable-sim-bswap Use Host specific BSWAP instruction. | |
856 | --enable-sim-cflags=opts Extra CFLAGS for use in building simulator | |
857 | --enable-sim-debug=opts Enable debugging flags | |
858 | --enable-sim-stdio Specify whether to use stdio for console input/output. | |
859 | --enable-sim-trace=opts Enable tracing flags | |
860 | --enable-sim-profile=opts Enable profiling flags | |
861 | ||
862 | Optional Packages: | |
863 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
864 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
865 | --with-included-gettext use the GNU gettext library included here | |
866 | ||
867 | Some influential environment variables: | |
868 | CC C compiler command | |
869 | CFLAGS C compiler flags | |
870 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
871 | nonstandard directory <lib dir> | |
872 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
873 | headers in a nonstandard directory <include dir> | |
874 | CPP C preprocessor | |
875 | ||
876 | Use these variables to override the choices made by `configure' or to help | |
877 | it to find libraries and programs with nonstandard names/locations. | |
878 | ||
879 | _ACEOF | |
c906108c SS |
880 | fi |
881 | ||
b7026657 AC |
882 | if test "$ac_init_help" = "recursive"; then |
883 | # If there are subdirs, report their specific --help. | |
884 | ac_popdir=`pwd` | |
885 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
886 | test -d $ac_dir || continue | |
887 | ac_builddir=. | |
c906108c | 888 | |
b7026657 AC |
889 | if test "$ac_dir" != .; then |
890 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
891 | # A "../" for each directory in $ac_dir_suffix. | |
892 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
c906108c | 893 | else |
b7026657 | 894 | ac_dir_suffix= ac_top_builddir= |
c906108c SS |
895 | fi |
896 | ||
b7026657 AC |
897 | case $srcdir in |
898 | .) # No --srcdir option. We are building in place. | |
899 | ac_srcdir=. | |
900 | if test -z "$ac_top_builddir"; then | |
901 | ac_top_srcdir=. | |
902 | else | |
903 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
904 | fi ;; | |
905 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
906 | ac_srcdir=$srcdir$ac_dir_suffix; | |
907 | ac_top_srcdir=$srcdir ;; | |
908 | *) # Relative path. | |
909 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
910 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
911 | esac | |
912 | ||
913 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
914 | # the directories may not exist. | |
915 | case `pwd` in | |
916 | .) ac_abs_builddir="$ac_dir";; | |
917 | *) | |
918 | case "$ac_dir" in | |
919 | .) ac_abs_builddir=`pwd`;; | |
920 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
921 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
922 | esac;; | |
923 | esac | |
924 | case $ac_abs_builddir in | |
925 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
926 | *) | |
927 | case ${ac_top_builddir}. in | |
928 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
929 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
930 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
931 | esac;; | |
932 | esac | |
933 | case $ac_abs_builddir in | |
934 | .) ac_abs_srcdir=$ac_srcdir;; | |
935 | *) | |
936 | case $ac_srcdir in | |
937 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
938 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
939 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
940 | esac;; | |
941 | esac | |
942 | case $ac_abs_builddir in | |
943 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
944 | *) | |
945 | case $ac_top_srcdir in | |
946 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
947 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
948 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
949 | esac;; | |
950 | esac | |
951 | ||
952 | cd $ac_dir | |
953 | # Check for guested configure; otherwise get Cygnus style configure. | |
954 | if test -f $ac_srcdir/configure.gnu; then | |
955 | echo | |
956 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
957 | elif test -f $ac_srcdir/configure; then | |
958 | echo | |
959 | $SHELL $ac_srcdir/configure --help=recursive | |
960 | elif test -f $ac_srcdir/configure.ac || | |
961 | test -f $ac_srcdir/configure.in; then | |
962 | echo | |
963 | $ac_configure --help | |
964 | else | |
965 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
966 | fi | |
967 | cd $ac_popdir | |
968 | done | |
c906108c | 969 | fi |
b7026657 AC |
970 | |
971 | test -n "$ac_init_help" && exit 0 | |
972 | if $ac_init_version; then | |
973 | cat <<\_ACEOF | |
974 | ||
975 | Copyright (C) 2003 Free Software Foundation, Inc. | |
976 | This configure script is free software; the Free Software Foundation | |
977 | gives unlimited permission to copy, distribute and modify it. | |
978 | _ACEOF | |
979 | exit 0 | |
980 | fi | |
981 | exec 5>config.log | |
982 | cat >&5 <<_ACEOF | |
983 | This file contains any messages produced by compilers while | |
984 | running configure, to aid debugging if configure makes a mistake. | |
985 | ||
986 | It was created by $as_me, which was | |
987 | generated by GNU Autoconf 2.59. Invocation command line was | |
988 | ||
989 | $ $0 $@ | |
990 | ||
991 | _ACEOF | |
992 | { | |
993 | cat <<_ASUNAME | |
994 | ## --------- ## | |
995 | ## Platform. ## | |
996 | ## --------- ## | |
997 | ||
998 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
999 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1000 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1001 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1002 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1003 | ||
1004 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1005 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1006 | ||
1007 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1008 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1009 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1010 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1011 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1012 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1013 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1014 | ||
1015 | _ASUNAME | |
1016 | ||
1017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1018 | for as_dir in $PATH | |
1019 | do | |
1020 | IFS=$as_save_IFS | |
1021 | test -z "$as_dir" && as_dir=. | |
1022 | echo "PATH: $as_dir" | |
1023 | done | |
1024 | ||
1025 | } >&5 | |
1026 | ||
1027 | cat >&5 <<_ACEOF | |
1028 | ||
1029 | ||
1030 | ## ----------- ## | |
1031 | ## Core tests. ## | |
1032 | ## ----------- ## | |
1033 | ||
1034 | _ACEOF | |
1035 | ||
1036 | ||
1037 | # Keep a trace of the command line. | |
1038 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1039 | # Strip out --silent because we don't want to record it for future runs. | |
1040 | # Also quote any args containing shell meta-characters. | |
1041 | # Make two passes to allow for proper duplicate-argument suppression. | |
1042 | ac_configure_args= | |
1043 | ac_configure_args0= | |
1044 | ac_configure_args1= | |
1045 | ac_sep= | |
1046 | ac_must_keep_next=false | |
1047 | for ac_pass in 1 2 | |
1048 | do | |
1049 | for ac_arg | |
1050 | do | |
1051 | case $ac_arg in | |
1052 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1053 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1054 | | -silent | --silent | --silen | --sile | --sil) | |
1055 | continue ;; | |
1056 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1057 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1058 | esac | |
1059 | case $ac_pass in | |
1060 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1061 | 2) | |
1062 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1063 | if test $ac_must_keep_next = true; then | |
1064 | ac_must_keep_next=false # Got value, back to normal. | |
1065 | else | |
1066 | case $ac_arg in | |
1067 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1068 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1069 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1070 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1071 | case "$ac_configure_args0 " in | |
1072 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1073 | esac | |
1074 | ;; | |
1075 | -* ) ac_must_keep_next=true ;; | |
1076 | esac | |
1077 | fi | |
1078 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1079 | # Get rid of the leading space. | |
1080 | ac_sep=" " | |
1081 | ;; | |
1082 | esac | |
1083 | done | |
1084 | done | |
1085 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1086 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1087 | ||
1088 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1089 | # config.log. We remove comments because anyway the quotes in there | |
1090 | # would cause problems or look ugly. | |
1091 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1092 | # such as our DU 5.0 friend, will then `close' the trap. | |
1093 | trap 'exit_status=$? | |
1094 | # Save into config.log some information that might help in debugging. | |
1095 | { | |
1096 | echo | |
1097 | ||
1098 | cat <<\_ASBOX | |
1099 | ## ---------------- ## | |
1100 | ## Cache variables. ## | |
1101 | ## ---------------- ## | |
1102 | _ASBOX | |
1103 | echo | |
1104 | # The following way of writing the cache mishandles newlines in values, | |
1105 | { | |
1106 | (set) 2>&1 | | |
1107 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1108 | *ac_space=\ *) | |
1109 | sed -n \ | |
1110 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1111 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1112 | ;; | |
1113 | *) | |
1114 | sed -n \ | |
1115 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1116 | ;; | |
1117 | esac; | |
1118 | } | |
1119 | echo | |
1120 | ||
1121 | cat <<\_ASBOX | |
1122 | ## ----------------- ## | |
1123 | ## Output variables. ## | |
1124 | ## ----------------- ## | |
1125 | _ASBOX | |
1126 | echo | |
1127 | for ac_var in $ac_subst_vars | |
1128 | do | |
1129 | eval ac_val=$`echo $ac_var` | |
1130 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1131 | done | sort | |
1132 | echo | |
1133 | ||
1134 | if test -n "$ac_subst_files"; then | |
1135 | cat <<\_ASBOX | |
1136 | ## ------------- ## | |
1137 | ## Output files. ## | |
1138 | ## ------------- ## | |
1139 | _ASBOX | |
1140 | echo | |
1141 | for ac_var in $ac_subst_files | |
1142 | do | |
1143 | eval ac_val=$`echo $ac_var` | |
1144 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1145 | done | sort | |
1146 | echo | |
1147 | fi | |
1148 | ||
1149 | if test -s confdefs.h; then | |
1150 | cat <<\_ASBOX | |
1151 | ## ----------- ## | |
1152 | ## confdefs.h. ## | |
1153 | ## ----------- ## | |
1154 | _ASBOX | |
1155 | echo | |
1156 | sed "/^$/d" confdefs.h | sort | |
1157 | echo | |
1158 | fi | |
1159 | test "$ac_signal" != 0 && | |
1160 | echo "$as_me: caught signal $ac_signal" | |
1161 | echo "$as_me: exit $exit_status" | |
1162 | } >&5 | |
1163 | rm -f core *.core && | |
1164 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1165 | exit $exit_status | |
1166 | ' 0 | |
1167 | for ac_signal in 1 2 13 15; do | |
1168 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1169 | done | |
1170 | ac_signal=0 | |
1171 | ||
1172 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1173 | rm -rf conftest* confdefs.h | |
1174 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1175 | echo >confdefs.h | |
1176 | ||
1177 | # Predefined preprocessor variables. | |
1178 | ||
1179 | cat >>confdefs.h <<_ACEOF | |
1180 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1181 | _ACEOF | |
1182 | ||
1183 | ||
1184 | cat >>confdefs.h <<_ACEOF | |
1185 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1186 | _ACEOF | |
1187 | ||
1188 | ||
1189 | cat >>confdefs.h <<_ACEOF | |
1190 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1191 | _ACEOF | |
1192 | ||
1193 | ||
1194 | cat >>confdefs.h <<_ACEOF | |
1195 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1196 | _ACEOF | |
1197 | ||
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | # Let the site file select an alternate cache file if it wants to. | |
1205 | # Prefer explicitly selected file to automatically selected ones. | |
1206 | if test -z "$CONFIG_SITE"; then | |
1207 | if test "x$prefix" != xNONE; then | |
1208 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1209 | else | |
1210 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1211 | fi | |
1212 | fi | |
1213 | for ac_site_file in $CONFIG_SITE; do | |
1214 | if test -r "$ac_site_file"; then | |
1215 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1216 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1217 | sed 's/^/| /' "$ac_site_file" >&5 | |
1218 | . "$ac_site_file" | |
1219 | fi | |
1220 | done | |
1221 | ||
1222 | if test -r "$cache_file"; then | |
1223 | # Some versions of bash will fail to source /dev/null (special | |
1224 | # files actually), so we avoid doing that. | |
1225 | if test -f "$cache_file"; then | |
1226 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1227 | echo "$as_me: loading cache $cache_file" >&6;} | |
1228 | case $cache_file in | |
1229 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1230 | *) . ./$cache_file;; | |
1231 | esac | |
1232 | fi | |
1233 | else | |
1234 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1235 | echo "$as_me: creating cache $cache_file" >&6;} | |
1236 | >$cache_file | |
1237 | fi | |
1238 | ||
1239 | # Check that the precious variables saved in the cache have kept the same | |
1240 | # value. | |
1241 | ac_cache_corrupted=false | |
1242 | for ac_var in `(set) 2>&1 | | |
1243 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1244 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1245 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1246 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1247 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1248 | case $ac_old_set,$ac_new_set in | |
1249 | set,) | |
1250 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1251 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1252 | ac_cache_corrupted=: ;; | |
1253 | ,set) | |
1254 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1255 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1256 | ac_cache_corrupted=: ;; | |
1257 | ,);; | |
1258 | *) | |
1259 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1260 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1261 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1262 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1263 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1264 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1265 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1266 | ac_cache_corrupted=: | |
1267 | fi;; | |
1268 | esac | |
1269 | # Pass precious variables to config.status. | |
1270 | if test "$ac_new_set" = set; then | |
1271 | case $ac_new_val in | |
1272 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1273 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1274 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1275 | esac | |
1276 | case " $ac_configure_args " in | |
1277 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1278 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1279 | esac | |
1280 | fi | |
1281 | done | |
1282 | if $ac_cache_corrupted; then | |
1283 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1284 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1285 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1286 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1287 | { (exit 1); exit 1; }; } | |
1288 | fi | |
1289 | ||
1290 | ac_ext=c | |
1291 | ac_cpp='$CPP $CPPFLAGS' | |
1292 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1293 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1294 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1295 | ||
1296 | ||
1297 | ||
1298 | ||
1299 | ||
1300 | ||
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | # Make sure we can run config.sub. | |
1316 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1317 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1318 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1319 | { (exit 1); exit 1; }; } | |
1320 | ||
1321 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1322 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1323 | if test "${ac_cv_build+set}" = set; then | |
1324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1325 | else | |
1326 | ac_cv_build_alias=$build_alias | |
1327 | test -z "$ac_cv_build_alias" && | |
1328 | ac_cv_build_alias=`$ac_config_guess` | |
1329 | test -z "$ac_cv_build_alias" && | |
1330 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1331 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1332 | { (exit 1); exit 1; }; } | |
1333 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1334 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1335 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1336 | { (exit 1); exit 1; }; } | |
1337 | ||
1338 | fi | |
1339 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1340 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1341 | build=$ac_cv_build | |
1342 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1343 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1344 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1345 | ||
1346 | ||
1347 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1348 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1349 | if test "${ac_cv_host+set}" = set; then | |
1350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1351 | else | |
1352 | ac_cv_host_alias=$host_alias | |
1353 | test -z "$ac_cv_host_alias" && | |
1354 | ac_cv_host_alias=$ac_cv_build_alias | |
1355 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1356 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1357 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1358 | { (exit 1); exit 1; }; } | |
1359 | ||
1360 | fi | |
1361 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1362 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1363 | host=$ac_cv_host | |
1364 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1365 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1366 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1367 | ||
1368 | ||
1369 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1370 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1371 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1372 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1374 | else | |
1375 | cat >conftest.make <<\_ACEOF | |
1376 | all: | |
1377 | @echo 'ac_maketemp="$(MAKE)"' | |
1378 | _ACEOF | |
1379 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1380 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1381 | if test -n "$ac_maketemp"; then | |
1382 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1383 | else | |
1384 | eval ac_cv_prog_make_${ac_make}_set=no | |
1385 | fi | |
1386 | rm -f conftest.make | |
1387 | fi | |
1388 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1389 | echo "$as_me:$LINENO: result: yes" >&5 | |
1390 | echo "${ECHO_T}yes" >&6 | |
1391 | SET_MAKE= | |
1392 | else | |
1393 | echo "$as_me:$LINENO: result: no" >&5 | |
1394 | echo "${ECHO_T}no" >&6 | |
1395 | SET_MAKE="MAKE=${MAKE-make}" | |
1396 | fi | |
1397 | ||
1398 | ||
1399 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
1400 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
1401 | if test "${ac_cv_search_strerror+set}" = set; then | |
1402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1403 | else | |
1404 | ac_func_search_save_LIBS=$LIBS | |
1405 | ac_cv_search_strerror=no | |
1406 | cat >conftest.$ac_ext <<_ACEOF | |
1407 | /* confdefs.h. */ | |
1408 | _ACEOF | |
1409 | cat confdefs.h >>conftest.$ac_ext | |
1410 | cat >>conftest.$ac_ext <<_ACEOF | |
1411 | /* end confdefs.h. */ | |
1412 | ||
1413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1414 | #ifdef __cplusplus | |
1415 | extern "C" | |
1416 | #endif | |
1417 | /* We use char because int might match the return type of a gcc2 | |
1418 | builtin and then its argument prototype would still apply. */ | |
1419 | char strerror (); | |
1420 | int | |
1421 | main () | |
1422 | { | |
1423 | strerror (); | |
1424 | ; | |
1425 | return 0; | |
1426 | } | |
1427 | _ACEOF | |
1428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1430 | (eval $ac_link) 2>conftest.er1 | |
1431 | ac_status=$? | |
1432 | grep -v '^ *+' conftest.er1 >conftest.err | |
1433 | rm -f conftest.er1 | |
1434 | cat conftest.err >&5 | |
1435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1436 | (exit $ac_status); } && | |
1437 | { ac_try='test -z "$ac_c_werror_flag" | |
1438 | || test ! -s conftest.err' | |
1439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1440 | (eval $ac_try) 2>&5 | |
1441 | ac_status=$? | |
1442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1443 | (exit $ac_status); }; } && | |
1444 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
1450 | ac_cv_search_strerror="none required" | |
1451 | else | |
1452 | echo "$as_me: failed program was:" >&5 | |
1453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1454 | ||
1455 | fi | |
1456 | rm -f conftest.err conftest.$ac_objext \ | |
1457 | conftest$ac_exeext conftest.$ac_ext | |
1458 | if test "$ac_cv_search_strerror" = no; then | |
1459 | for ac_lib in cposix; do | |
1460 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
1461 | cat >conftest.$ac_ext <<_ACEOF | |
1462 | /* confdefs.h. */ | |
1463 | _ACEOF | |
1464 | cat confdefs.h >>conftest.$ac_ext | |
1465 | cat >>conftest.$ac_ext <<_ACEOF | |
1466 | /* end confdefs.h. */ | |
1467 | ||
1468 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1469 | #ifdef __cplusplus | |
1470 | extern "C" | |
1471 | #endif | |
1472 | /* We use char because int might match the return type of a gcc2 | |
1473 | builtin and then its argument prototype would still apply. */ | |
1474 | char strerror (); | |
1475 | int | |
1476 | main () | |
1477 | { | |
1478 | strerror (); | |
1479 | ; | |
1480 | return 0; | |
1481 | } | |
1482 | _ACEOF | |
1483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1485 | (eval $ac_link) 2>conftest.er1 | |
1486 | ac_status=$? | |
1487 | grep -v '^ *+' conftest.er1 >conftest.err | |
1488 | rm -f conftest.er1 | |
1489 | cat conftest.err >&5 | |
1490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1491 | (exit $ac_status); } && | |
1492 | { ac_try='test -z "$ac_c_werror_flag" | |
1493 | || test ! -s conftest.err' | |
1494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1495 | (eval $ac_try) 2>&5 | |
1496 | ac_status=$? | |
1497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1498 | (exit $ac_status); }; } && | |
1499 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
1505 | ac_cv_search_strerror="-l$ac_lib" | |
1506 | break | |
1507 | else | |
1508 | echo "$as_me: failed program was:" >&5 | |
1509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1510 | ||
1511 | fi | |
1512 | rm -f conftest.err conftest.$ac_objext \ | |
1513 | conftest$ac_exeext conftest.$ac_ext | |
1514 | done | |
1515 | fi | |
1516 | LIBS=$ac_func_search_save_LIBS | |
1517 | fi | |
1518 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
1519 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
1520 | if test "$ac_cv_search_strerror" != no; then | |
1521 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
1522 | ||
1523 | fi | |
1524 | ||
1525 | ac_ext=c | |
1526 | ac_cpp='$CPP $CPPFLAGS' | |
1527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1530 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
1531 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
1532 | # On Suns, sometimes $CPP names a directory. | |
1533 | if test -n "$CPP" && test -d "$CPP"; then | |
1534 | CPP= | |
1535 | fi | |
1536 | if test -z "$CPP"; then | |
1537 | if test "${ac_cv_prog_CPP+set}" = set; then | |
1538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1539 | else | |
1540 | # Double quotes because CPP needs to be expanded | |
1541 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
1542 | do | |
1543 | ac_preproc_ok=false | |
1544 | for ac_c_preproc_warn_flag in '' yes | |
1545 | do | |
1546 | # Use a header file that comes with gcc, so configuring glibc | |
1547 | # with a fresh cross-compiler works. | |
1548 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1549 | # <limits.h> exists even on freestanding compilers. | |
1550 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1551 | # not just through cpp. "Syntax error" is here to catch this case. | |
1552 | cat >conftest.$ac_ext <<_ACEOF | |
1553 | /* confdefs.h. */ | |
1554 | _ACEOF | |
1555 | cat confdefs.h >>conftest.$ac_ext | |
1556 | cat >>conftest.$ac_ext <<_ACEOF | |
1557 | /* end confdefs.h. */ | |
1558 | #ifdef __STDC__ | |
1559 | # include <limits.h> | |
1560 | #else | |
1561 | # include <assert.h> | |
1562 | #endif | |
1563 | Syntax error | |
1564 | _ACEOF | |
1565 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1566 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1567 | ac_status=$? | |
1568 | grep -v '^ *+' conftest.er1 >conftest.err | |
1569 | rm -f conftest.er1 | |
1570 | cat conftest.err >&5 | |
1571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1572 | (exit $ac_status); } >/dev/null; then | |
1573 | if test -s conftest.err; then | |
1574 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1575 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1576 | else | |
1577 | ac_cpp_err= | |
1578 | fi | |
1579 | else | |
1580 | ac_cpp_err=yes | |
1581 | fi | |
1582 | if test -z "$ac_cpp_err"; then | |
1583 | : | |
1584 | else | |
1585 | echo "$as_me: failed program was:" >&5 | |
1586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1587 | ||
1588 | # Broken: fails on valid input. | |
1589 | continue | |
1590 | fi | |
1591 | rm -f conftest.err conftest.$ac_ext | |
1592 | ||
1593 | # OK, works on sane cases. Now check whether non-existent headers | |
1594 | # can be detected and how. | |
1595 | cat >conftest.$ac_ext <<_ACEOF | |
1596 | /* confdefs.h. */ | |
1597 | _ACEOF | |
1598 | cat confdefs.h >>conftest.$ac_ext | |
1599 | cat >>conftest.$ac_ext <<_ACEOF | |
1600 | /* end confdefs.h. */ | |
1601 | #include <ac_nonexistent.h> | |
1602 | _ACEOF | |
1603 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1604 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1605 | ac_status=$? | |
1606 | grep -v '^ *+' conftest.er1 >conftest.err | |
1607 | rm -f conftest.er1 | |
1608 | cat conftest.err >&5 | |
1609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1610 | (exit $ac_status); } >/dev/null; then | |
1611 | if test -s conftest.err; then | |
1612 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1613 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1614 | else | |
1615 | ac_cpp_err= | |
1616 | fi | |
1617 | else | |
1618 | ac_cpp_err=yes | |
1619 | fi | |
1620 | if test -z "$ac_cpp_err"; then | |
1621 | # Broken: success on invalid input. | |
1622 | continue | |
1623 | else | |
1624 | echo "$as_me: failed program was:" >&5 | |
1625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1626 | ||
1627 | # Passes both tests. | |
1628 | ac_preproc_ok=: | |
1629 | break | |
1630 | fi | |
1631 | rm -f conftest.err conftest.$ac_ext | |
1632 | ||
1633 | done | |
1634 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
1635 | rm -f conftest.err conftest.$ac_ext | |
1636 | if $ac_preproc_ok; then | |
1637 | break | |
1638 | fi | |
1639 | ||
1640 | done | |
1641 | ac_cv_prog_CPP=$CPP | |
1642 | ||
1643 | fi | |
1644 | CPP=$ac_cv_prog_CPP | |
1645 | else | |
1646 | ac_cv_prog_CPP=$CPP | |
1647 | fi | |
1648 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
1649 | echo "${ECHO_T}$CPP" >&6 | |
1650 | ac_preproc_ok=false | |
1651 | for ac_c_preproc_warn_flag in '' yes | |
1652 | do | |
1653 | # Use a header file that comes with gcc, so configuring glibc | |
1654 | # with a fresh cross-compiler works. | |
1655 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1656 | # <limits.h> exists even on freestanding compilers. | |
1657 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1658 | # not just through cpp. "Syntax error" is here to catch this case. | |
1659 | cat >conftest.$ac_ext <<_ACEOF | |
1660 | /* confdefs.h. */ | |
1661 | _ACEOF | |
1662 | cat confdefs.h >>conftest.$ac_ext | |
1663 | cat >>conftest.$ac_ext <<_ACEOF | |
1664 | /* end confdefs.h. */ | |
1665 | #ifdef __STDC__ | |
1666 | # include <limits.h> | |
1667 | #else | |
1668 | # include <assert.h> | |
1669 | #endif | |
1670 | Syntax error | |
1671 | _ACEOF | |
1672 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1673 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1674 | ac_status=$? | |
1675 | grep -v '^ *+' conftest.er1 >conftest.err | |
1676 | rm -f conftest.er1 | |
1677 | cat conftest.err >&5 | |
1678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1679 | (exit $ac_status); } >/dev/null; then | |
1680 | if test -s conftest.err; then | |
1681 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1682 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1683 | else | |
1684 | ac_cpp_err= | |
1685 | fi | |
1686 | else | |
1687 | ac_cpp_err=yes | |
1688 | fi | |
1689 | if test -z "$ac_cpp_err"; then | |
1690 | : | |
1691 | else | |
1692 | echo "$as_me: failed program was:" >&5 | |
1693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1694 | ||
1695 | # Broken: fails on valid input. | |
1696 | continue | |
1697 | fi | |
1698 | rm -f conftest.err conftest.$ac_ext | |
1699 | ||
1700 | # OK, works on sane cases. Now check whether non-existent headers | |
1701 | # can be detected and how. | |
1702 | cat >conftest.$ac_ext <<_ACEOF | |
1703 | /* confdefs.h. */ | |
1704 | _ACEOF | |
1705 | cat confdefs.h >>conftest.$ac_ext | |
1706 | cat >>conftest.$ac_ext <<_ACEOF | |
1707 | /* end confdefs.h. */ | |
1708 | #include <ac_nonexistent.h> | |
1709 | _ACEOF | |
1710 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1711 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1712 | ac_status=$? | |
1713 | grep -v '^ *+' conftest.er1 >conftest.err | |
1714 | rm -f conftest.er1 | |
1715 | cat conftest.err >&5 | |
1716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1717 | (exit $ac_status); } >/dev/null; then | |
1718 | if test -s conftest.err; then | |
1719 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1720 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1721 | else | |
1722 | ac_cpp_err= | |
1723 | fi | |
1724 | else | |
1725 | ac_cpp_err=yes | |
1726 | fi | |
1727 | if test -z "$ac_cpp_err"; then | |
1728 | # Broken: success on invalid input. | |
1729 | continue | |
1730 | else | |
1731 | echo "$as_me: failed program was:" >&5 | |
1732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1733 | ||
1734 | # Passes both tests. | |
1735 | ac_preproc_ok=: | |
1736 | break | |
1737 | fi | |
1738 | rm -f conftest.err conftest.$ac_ext | |
1739 | ||
1740 | done | |
1741 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
1742 | rm -f conftest.err conftest.$ac_ext | |
1743 | if $ac_preproc_ok; then | |
1744 | : | |
1745 | else | |
1746 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
1747 | See \`config.log' for more details." >&5 | |
1748 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
1749 | See \`config.log' for more details." >&2;} | |
1750 | { (exit 1); exit 1; }; } | |
1751 | fi | |
1752 | ||
1753 | ac_ext=c | |
1754 | ac_cpp='$CPP $CPPFLAGS' | |
1755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1758 | ||
1759 | ||
1760 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
1761 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
1762 | if test "${ac_cv_prog_egrep+set}" = set; then | |
1763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1764 | else | |
1765 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
1766 | then ac_cv_prog_egrep='grep -E' | |
1767 | else ac_cv_prog_egrep='egrep' | |
1768 | fi | |
1769 | fi | |
1770 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
1771 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
1772 | EGREP=$ac_cv_prog_egrep | |
1773 | ||
1774 | ||
1775 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
1776 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
1777 | if test "${ac_cv_header_stdc+set}" = set; then | |
1778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1779 | else | |
1780 | cat >conftest.$ac_ext <<_ACEOF | |
1781 | /* confdefs.h. */ | |
1782 | _ACEOF | |
1783 | cat confdefs.h >>conftest.$ac_ext | |
1784 | cat >>conftest.$ac_ext <<_ACEOF | |
1785 | /* end confdefs.h. */ | |
1786 | #include <stdlib.h> | |
1787 | #include <stdarg.h> | |
1788 | #include <string.h> | |
1789 | #include <float.h> | |
1790 | ||
1791 | int | |
1792 | main () | |
1793 | { | |
1794 | ||
1795 | ; | |
1796 | return 0; | |
1797 | } | |
1798 | _ACEOF | |
1799 | rm -f conftest.$ac_objext | |
1800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1801 | (eval $ac_compile) 2>conftest.er1 | |
1802 | ac_status=$? | |
1803 | grep -v '^ *+' conftest.er1 >conftest.err | |
1804 | rm -f conftest.er1 | |
1805 | cat conftest.err >&5 | |
1806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1807 | (exit $ac_status); } && | |
1808 | { ac_try='test -z "$ac_c_werror_flag" | |
1809 | || test ! -s conftest.err' | |
1810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1811 | (eval $ac_try) 2>&5 | |
1812 | ac_status=$? | |
1813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1814 | (exit $ac_status); }; } && | |
1815 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
1821 | ac_cv_header_stdc=yes | |
1822 | else | |
1823 | echo "$as_me: failed program was:" >&5 | |
1824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1825 | ||
1826 | ac_cv_header_stdc=no | |
1827 | fi | |
1828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c SS |
1829 | |
1830 | if test $ac_cv_header_stdc = yes; then | |
1831 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b7026657 AC |
1832 | cat >conftest.$ac_ext <<_ACEOF |
1833 | /* confdefs.h. */ | |
1834 | _ACEOF | |
1835 | cat confdefs.h >>conftest.$ac_ext | |
1836 | cat >>conftest.$ac_ext <<_ACEOF | |
1837 | /* end confdefs.h. */ | |
c906108c | 1838 | #include <string.h> |
b7026657 AC |
1839 | |
1840 | _ACEOF | |
c906108c | 1841 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 1842 | $EGREP "memchr" >/dev/null 2>&1; then |
c906108c SS |
1843 | : |
1844 | else | |
c906108c SS |
1845 | ac_cv_header_stdc=no |
1846 | fi | |
1847 | rm -f conftest* | |
1848 | ||
1849 | fi | |
1850 | ||
1851 | if test $ac_cv_header_stdc = yes; then | |
1852 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b7026657 AC |
1853 | cat >conftest.$ac_ext <<_ACEOF |
1854 | /* confdefs.h. */ | |
1855 | _ACEOF | |
1856 | cat confdefs.h >>conftest.$ac_ext | |
1857 | cat >>conftest.$ac_ext <<_ACEOF | |
1858 | /* end confdefs.h. */ | |
c906108c | 1859 | #include <stdlib.h> |
b7026657 AC |
1860 | |
1861 | _ACEOF | |
c906108c | 1862 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 1863 | $EGREP "free" >/dev/null 2>&1; then |
c906108c SS |
1864 | : |
1865 | else | |
c906108c SS |
1866 | ac_cv_header_stdc=no |
1867 | fi | |
1868 | rm -f conftest* | |
1869 | ||
1870 | fi | |
1871 | ||
1872 | if test $ac_cv_header_stdc = yes; then | |
1873 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b7026657 | 1874 | if test "$cross_compiling" = yes; then |
c906108c SS |
1875 | : |
1876 | else | |
b7026657 AC |
1877 | cat >conftest.$ac_ext <<_ACEOF |
1878 | /* confdefs.h. */ | |
1879 | _ACEOF | |
1880 | cat confdefs.h >>conftest.$ac_ext | |
1881 | cat >>conftest.$ac_ext <<_ACEOF | |
1882 | /* end confdefs.h. */ | |
c906108c | 1883 | #include <ctype.h> |
b7026657 AC |
1884 | #if ((' ' & 0x0FF) == 0x020) |
1885 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1886 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1887 | #else | |
1888 | # define ISLOWER(c) \ | |
1889 | (('a' <= (c) && (c) <= 'i') \ | |
1890 | || ('j' <= (c) && (c) <= 'r') \ | |
1891 | || ('s' <= (c) && (c) <= 'z')) | |
1892 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
1893 | #endif | |
c906108c | 1894 | |
b7026657 AC |
1895 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1896 | int | |
1897 | main () | |
1898 | { | |
1899 | int i; | |
1900 | for (i = 0; i < 256; i++) | |
1901 | if (XOR (islower (i), ISLOWER (i)) | |
1902 | || toupper (i) != TOUPPER (i)) | |
1903 | exit(2); | |
1904 | exit (0); | |
1905 | } | |
1906 | _ACEOF | |
1907 | rm -f conftest$ac_exeext | |
1908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1909 | (eval $ac_link) 2>&5 | |
1910 | ac_status=$? | |
1911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1912 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
1913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1914 | (eval $ac_try) 2>&5 | |
1915 | ac_status=$? | |
1916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1917 | (exit $ac_status); }; }; then | |
c906108c SS |
1918 | : |
1919 | else | |
b7026657 AC |
1920 | echo "$as_me: program exited with status $ac_status" >&5 |
1921 | echo "$as_me: failed program was:" >&5 | |
1922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1923 | ||
1924 | ( exit $ac_status ) | |
1925 | ac_cv_header_stdc=no | |
c906108c | 1926 | fi |
b7026657 | 1927 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 1928 | fi |
c906108c SS |
1929 | fi |
1930 | fi | |
b7026657 AC |
1931 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
1932 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
c906108c | 1933 | if test $ac_cv_header_stdc = yes; then |
b7026657 AC |
1934 | |
1935 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 1936 | #define STDC_HEADERS 1 |
b7026657 AC |
1937 | _ACEOF |
1938 | ||
1939 | fi | |
1940 | ||
1941 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
1942 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
1943 | if test "${ac_cv_c_const+set}" = set; then | |
1944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1945 | else | |
1946 | cat >conftest.$ac_ext <<_ACEOF | |
1947 | /* confdefs.h. */ | |
1948 | _ACEOF | |
1949 | cat confdefs.h >>conftest.$ac_ext | |
1950 | cat >>conftest.$ac_ext <<_ACEOF | |
1951 | /* end confdefs.h. */ | |
c906108c | 1952 | |
b7026657 AC |
1953 | int |
1954 | main () | |
1955 | { | |
1956 | /* FIXME: Include the comments suggested by Paul. */ | |
1957 | #ifndef __cplusplus | |
1958 | /* Ultrix mips cc rejects this. */ | |
1959 | typedef int charset[2]; | |
1960 | const charset x; | |
1961 | /* SunOS 4.1.1 cc rejects this. */ | |
1962 | char const *const *ccp; | |
1963 | char **p; | |
1964 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
1965 | struct point {int x, y;}; | |
1966 | static struct point const zero = {0,0}; | |
1967 | /* AIX XL C 1.02.0.0 rejects this. | |
1968 | It does not let you subtract one const X* pointer from another in | |
1969 | an arm of an if-expression whose if-part is not a constant | |
1970 | expression */ | |
1971 | const char *g = "string"; | |
1972 | ccp = &g + (g ? g-g : 0); | |
1973 | /* HPUX 7.0 cc rejects these. */ | |
1974 | ++ccp; | |
1975 | p = (char**) ccp; | |
1976 | ccp = (char const *const *) p; | |
1977 | { /* SCO 3.2v4 cc rejects this. */ | |
1978 | char *t; | |
1979 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
1980 | ||
1981 | *t++ = 0; | |
1982 | } | |
1983 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
1984 | int x[] = {25, 17}; | |
1985 | const int *foo = &x[0]; | |
1986 | ++foo; | |
1987 | } | |
1988 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
1989 | typedef const int *iptr; | |
1990 | iptr p = 0; | |
1991 | ++p; | |
1992 | } | |
1993 | { /* AIX XL C 1.02.0.0 rejects this saying | |
1994 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
1995 | struct s { int j; const int *ap[3]; }; | |
1996 | struct s *b; b->j = 5; | |
1997 | } | |
1998 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
1999 | const int foo = 10; | |
2000 | } | |
2001 | #endif | |
2002 | ||
2003 | ; | |
2004 | return 0; | |
2005 | } | |
2006 | _ACEOF | |
2007 | rm -f conftest.$ac_objext | |
2008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2009 | (eval $ac_compile) 2>conftest.er1 | |
2010 | ac_status=$? | |
2011 | grep -v '^ *+' conftest.er1 >conftest.err | |
2012 | rm -f conftest.er1 | |
2013 | cat conftest.err >&5 | |
2014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2015 | (exit $ac_status); } && | |
2016 | { ac_try='test -z "$ac_c_werror_flag" | |
2017 | || test ! -s conftest.err' | |
2018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2019 | (eval $ac_try) 2>&5 | |
2020 | ac_status=$? | |
2021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2022 | (exit $ac_status); }; } && | |
2023 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
c906108c SS |
2029 | ac_cv_c_const=yes |
2030 | else | |
b7026657 AC |
2031 | echo "$as_me: failed program was:" >&5 |
2032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2033 | ||
2034 | ac_cv_c_const=no | |
c906108c | 2035 | fi |
b7026657 | 2036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 2037 | fi |
b7026657 AC |
2038 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
2039 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
c906108c | 2040 | if test $ac_cv_c_const = no; then |
b7026657 AC |
2041 | |
2042 | cat >>confdefs.h <<\_ACEOF | |
2043 | #define const | |
2044 | _ACEOF | |
c906108c SS |
2045 | |
2046 | fi | |
2047 | ||
b7026657 AC |
2048 | echo "$as_me:$LINENO: checking for inline" >&5 |
2049 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
2050 | if test "${ac_cv_c_inline+set}" = set; then | |
2051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2052 | else |
2053 | ac_cv_c_inline=no | |
2054 | for ac_kw in inline __inline__ __inline; do | |
b7026657 AC |
2055 | cat >conftest.$ac_ext <<_ACEOF |
2056 | /* confdefs.h. */ | |
2057 | _ACEOF | |
2058 | cat confdefs.h >>conftest.$ac_ext | |
2059 | cat >>conftest.$ac_ext <<_ACEOF | |
2060 | /* end confdefs.h. */ | |
2061 | #ifndef __cplusplus | |
2062 | typedef int foo_t; | |
2063 | static $ac_kw foo_t static_foo () {return 0; } | |
2064 | $ac_kw foo_t foo () {return 0; } | |
2065 | #endif | |
2066 | ||
2067 | _ACEOF | |
2068 | rm -f conftest.$ac_objext | |
2069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2070 | (eval $ac_compile) 2>conftest.er1 | |
2071 | ac_status=$? | |
2072 | grep -v '^ *+' conftest.er1 >conftest.err | |
2073 | rm -f conftest.er1 | |
2074 | cat conftest.err >&5 | |
2075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2076 | (exit $ac_status); } && | |
2077 | { ac_try='test -z "$ac_c_werror_flag" | |
2078 | || test ! -s conftest.err' | |
2079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2080 | (eval $ac_try) 2>&5 | |
2081 | ac_status=$? | |
2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2083 | (exit $ac_status); }; } && | |
2084 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
c906108c SS |
2090 | ac_cv_c_inline=$ac_kw; break |
2091 | else | |
b7026657 AC |
2092 | echo "$as_me: failed program was:" >&5 |
2093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2094 | ||
c906108c | 2095 | fi |
b7026657 | 2096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
2097 | done |
2098 | ||
2099 | fi | |
b7026657 AC |
2100 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
2101 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
c906108c | 2102 | |
b7026657 AC |
2103 | |
2104 | case $ac_cv_c_inline in | |
c906108c | 2105 | inline | yes) ;; |
b7026657 AC |
2106 | *) |
2107 | case $ac_cv_c_inline in | |
2108 | no) ac_val=;; | |
2109 | *) ac_val=$ac_cv_c_inline;; | |
2110 | esac | |
2111 | cat >>confdefs.h <<_ACEOF | |
2112 | #ifndef __cplusplus | |
2113 | #define inline $ac_val | |
2114 | #endif | |
2115 | _ACEOF | |
2116 | ;; | |
c906108c SS |
2117 | esac |
2118 | ||
b7026657 AC |
2119 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
2120 | ||
2121 | ||
2122 | ||
2123 | ||
2124 | ||
2125 | ||
2126 | ||
2127 | ||
2128 | ||
2129 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
2130 | inttypes.h stdint.h unistd.h | |
2131 | do | |
2132 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
2133 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2134 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2135 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2137 | else | |
2138 | cat >conftest.$ac_ext <<_ACEOF | |
2139 | /* confdefs.h. */ | |
2140 | _ACEOF | |
2141 | cat confdefs.h >>conftest.$ac_ext | |
2142 | cat >>conftest.$ac_ext <<_ACEOF | |
2143 | /* end confdefs.h. */ | |
2144 | $ac_includes_default | |
2145 | ||
2146 | #include <$ac_header> | |
2147 | _ACEOF | |
2148 | rm -f conftest.$ac_objext | |
2149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2150 | (eval $ac_compile) 2>conftest.er1 | |
2151 | ac_status=$? | |
2152 | grep -v '^ *+' conftest.er1 >conftest.err | |
2153 | rm -f conftest.er1 | |
2154 | cat conftest.err >&5 | |
2155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2156 | (exit $ac_status); } && | |
2157 | { ac_try='test -z "$ac_c_werror_flag" | |
2158 | || test ! -s conftest.err' | |
2159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2160 | (eval $ac_try) 2>&5 | |
2161 | ac_status=$? | |
2162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2163 | (exit $ac_status); }; } && | |
2164 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
2170 | eval "$as_ac_Header=yes" | |
2171 | else | |
2172 | echo "$as_me: failed program was:" >&5 | |
2173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2174 | ||
2175 | eval "$as_ac_Header=no" | |
2176 | fi | |
2177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2178 | fi | |
2179 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2180 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2181 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2182 | cat >>confdefs.h <<_ACEOF | |
2183 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2184 | _ACEOF | |
2185 | ||
2186 | fi | |
2187 | ||
2188 | done | |
2189 | ||
2190 | ||
2191 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
2192 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
2193 | if test "${ac_cv_type_off_t+set}" = set; then | |
2194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2195 | else |
b7026657 AC |
2196 | cat >conftest.$ac_ext <<_ACEOF |
2197 | /* confdefs.h. */ | |
2198 | _ACEOF | |
2199 | cat confdefs.h >>conftest.$ac_ext | |
2200 | cat >>conftest.$ac_ext <<_ACEOF | |
2201 | /* end confdefs.h. */ | |
2202 | $ac_includes_default | |
2203 | int | |
2204 | main () | |
2205 | { | |
2206 | if ((off_t *) 0) | |
2207 | return 0; | |
2208 | if (sizeof (off_t)) | |
2209 | return 0; | |
2210 | ; | |
2211 | return 0; | |
2212 | } | |
2213 | _ACEOF | |
2214 | rm -f conftest.$ac_objext | |
2215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2216 | (eval $ac_compile) 2>conftest.er1 | |
2217 | ac_status=$? | |
2218 | grep -v '^ *+' conftest.er1 >conftest.err | |
2219 | rm -f conftest.er1 | |
2220 | cat conftest.err >&5 | |
2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2222 | (exit $ac_status); } && | |
2223 | { ac_try='test -z "$ac_c_werror_flag" | |
2224 | || test ! -s conftest.err' | |
2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2226 | (eval $ac_try) 2>&5 | |
2227 | ac_status=$? | |
2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2229 | (exit $ac_status); }; } && | |
2230 | { ac_try='test -s conftest.$ac_objext' | |
2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2232 | (eval $ac_try) 2>&5 | |
2233 | ac_status=$? | |
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2235 | (exit $ac_status); }; }; then | |
c906108c SS |
2236 | ac_cv_type_off_t=yes |
2237 | else | |
b7026657 AC |
2238 | echo "$as_me: failed program was:" >&5 |
2239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2240 | |
b7026657 | 2241 | ac_cv_type_off_t=no |
c906108c | 2242 | fi |
b7026657 AC |
2243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2244 | fi | |
2245 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
2246 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
2247 | if test $ac_cv_type_off_t = yes; then | |
2248 | : | |
2249 | else | |
2250 | ||
2251 | cat >>confdefs.h <<_ACEOF | |
c906108c | 2252 | #define off_t long |
b7026657 | 2253 | _ACEOF |
c906108c SS |
2254 | |
2255 | fi | |
2256 | ||
b7026657 AC |
2257 | echo "$as_me:$LINENO: checking for size_t" >&5 |
2258 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
2259 | if test "${ac_cv_type_size_t+set}" = set; then | |
2260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2261 | else |
b7026657 AC |
2262 | cat >conftest.$ac_ext <<_ACEOF |
2263 | /* confdefs.h. */ | |
2264 | _ACEOF | |
2265 | cat confdefs.h >>conftest.$ac_ext | |
2266 | cat >>conftest.$ac_ext <<_ACEOF | |
2267 | /* end confdefs.h. */ | |
2268 | $ac_includes_default | |
2269 | int | |
2270 | main () | |
2271 | { | |
2272 | if ((size_t *) 0) | |
2273 | return 0; | |
2274 | if (sizeof (size_t)) | |
2275 | return 0; | |
2276 | ; | |
2277 | return 0; | |
2278 | } | |
2279 | _ACEOF | |
2280 | rm -f conftest.$ac_objext | |
2281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2282 | (eval $ac_compile) 2>conftest.er1 | |
2283 | ac_status=$? | |
2284 | grep -v '^ *+' conftest.er1 >conftest.err | |
2285 | rm -f conftest.er1 | |
2286 | cat conftest.err >&5 | |
2287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2288 | (exit $ac_status); } && | |
2289 | { ac_try='test -z "$ac_c_werror_flag" | |
2290 | || test ! -s conftest.err' | |
2291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2292 | (eval $ac_try) 2>&5 | |
2293 | ac_status=$? | |
2294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2295 | (exit $ac_status); }; } && | |
2296 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
c906108c SS |
2302 | ac_cv_type_size_t=yes |
2303 | else | |
b7026657 AC |
2304 | echo "$as_me: failed program was:" >&5 |
2305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2306 | |
b7026657 | 2307 | ac_cv_type_size_t=no |
c906108c | 2308 | fi |
b7026657 AC |
2309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2310 | fi | |
2311 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
2312 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
2313 | if test $ac_cv_type_size_t = yes; then | |
2314 | : | |
2315 | else | |
2316 | ||
2317 | cat >>confdefs.h <<_ACEOF | |
c906108c | 2318 | #define size_t unsigned |
b7026657 | 2319 | _ACEOF |
c906108c SS |
2320 | |
2321 | fi | |
2322 | ||
2323 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
2324 | # for constant arguments. Useless! | |
b7026657 AC |
2325 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
2326 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
2327 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
2328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2329 | else | |
2330 | cat >conftest.$ac_ext <<_ACEOF | |
2331 | /* confdefs.h. */ | |
2332 | _ACEOF | |
2333 | cat confdefs.h >>conftest.$ac_ext | |
2334 | cat >>conftest.$ac_ext <<_ACEOF | |
2335 | /* end confdefs.h. */ | |
c906108c | 2336 | #include <alloca.h> |
b7026657 AC |
2337 | int |
2338 | main () | |
2339 | { | |
2340 | char *p = (char *) alloca (2 * sizeof (int)); | |
2341 | ; | |
2342 | return 0; | |
2343 | } | |
2344 | _ACEOF | |
2345 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2347 | (eval $ac_link) 2>conftest.er1 | |
2348 | ac_status=$? | |
2349 | grep -v '^ *+' conftest.er1 >conftest.err | |
2350 | rm -f conftest.er1 | |
2351 | cat conftest.err >&5 | |
2352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2353 | (exit $ac_status); } && | |
2354 | { ac_try='test -z "$ac_c_werror_flag" | |
2355 | || test ! -s conftest.err' | |
2356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2357 | (eval $ac_try) 2>&5 | |
2358 | ac_status=$? | |
2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2360 | (exit $ac_status); }; } && | |
2361 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
2367 | ac_cv_working_alloca_h=yes | |
2368 | else | |
2369 | echo "$as_me: failed program was:" >&5 | |
2370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2371 | ||
2372 | ac_cv_working_alloca_h=no | |
2373 | fi | |
2374 | rm -f conftest.err conftest.$ac_objext \ | |
2375 | conftest$ac_exeext conftest.$ac_ext | |
2376 | fi | |
2377 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
2378 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
2379 | if test $ac_cv_working_alloca_h = yes; then | |
2380 | ||
2381 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 2382 | #define HAVE_ALLOCA_H 1 |
b7026657 | 2383 | _ACEOF |
c906108c SS |
2384 | |
2385 | fi | |
2386 | ||
b7026657 AC |
2387 | echo "$as_me:$LINENO: checking for alloca" >&5 |
2388 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
2389 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
2390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2391 | else |
b7026657 AC |
2392 | cat >conftest.$ac_ext <<_ACEOF |
2393 | /* confdefs.h. */ | |
2394 | _ACEOF | |
2395 | cat confdefs.h >>conftest.$ac_ext | |
2396 | cat >>conftest.$ac_ext <<_ACEOF | |
2397 | /* end confdefs.h. */ | |
c906108c SS |
2398 | #ifdef __GNUC__ |
2399 | # define alloca __builtin_alloca | |
2400 | #else | |
2401 | # ifdef _MSC_VER | |
2402 | # include <malloc.h> | |
2403 | # define alloca _alloca | |
2404 | # else | |
2405 | # if HAVE_ALLOCA_H | |
2406 | # include <alloca.h> | |
2407 | # else | |
2408 | # ifdef _AIX | |
2409 | #pragma alloca | |
2410 | # else | |
2411 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
2412 | char *alloca (); | |
2413 | # endif | |
2414 | # endif | |
2415 | # endif | |
2416 | # endif | |
2417 | #endif | |
2418 | ||
b7026657 AC |
2419 | int |
2420 | main () | |
2421 | { | |
2422 | char *p = (char *) alloca (1); | |
2423 | ; | |
2424 | return 0; | |
2425 | } | |
2426 | _ACEOF | |
2427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2429 | (eval $ac_link) 2>conftest.er1 | |
2430 | ac_status=$? | |
2431 | grep -v '^ *+' conftest.er1 >conftest.err | |
2432 | rm -f conftest.er1 | |
2433 | cat conftest.err >&5 | |
2434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2435 | (exit $ac_status); } && | |
2436 | { ac_try='test -z "$ac_c_werror_flag" | |
2437 | || test ! -s conftest.err' | |
2438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2439 | (eval $ac_try) 2>&5 | |
2440 | ac_status=$? | |
2441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2442 | (exit $ac_status); }; } && | |
2443 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
c906108c SS |
2449 | ac_cv_func_alloca_works=yes |
2450 | else | |
b7026657 AC |
2451 | echo "$as_me: failed program was:" >&5 |
2452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2453 | ||
2454 | ac_cv_func_alloca_works=no | |
c906108c | 2455 | fi |
b7026657 AC |
2456 | rm -f conftest.err conftest.$ac_objext \ |
2457 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 2458 | fi |
b7026657 AC |
2459 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
2460 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
c906108c | 2461 | |
c906108c | 2462 | if test $ac_cv_func_alloca_works = yes; then |
c906108c | 2463 | |
b7026657 AC |
2464 | cat >>confdefs.h <<\_ACEOF |
2465 | #define HAVE_ALLOCA 1 | |
2466 | _ACEOF | |
c906108c | 2467 | |
b7026657 | 2468 | else |
c906108c | 2469 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
b7026657 AC |
2470 | # that cause trouble. Some versions do not even contain alloca or |
2471 | # contain a buggy version. If you still want to use their alloca, | |
2472 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
2473 | ||
2474 | ALLOCA=alloca.$ac_objext | |
2475 | ||
2476 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 2477 | #define C_ALLOCA 1 |
b7026657 | 2478 | _ACEOF |
c906108c SS |
2479 | |
2480 | ||
b7026657 AC |
2481 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
2482 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
2483 | if test "${ac_cv_os_cray+set}" = set; then | |
2484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2485 | else |
b7026657 AC |
2486 | cat >conftest.$ac_ext <<_ACEOF |
2487 | /* confdefs.h. */ | |
2488 | _ACEOF | |
2489 | cat confdefs.h >>conftest.$ac_ext | |
2490 | cat >>conftest.$ac_ext <<_ACEOF | |
2491 | /* end confdefs.h. */ | |
c906108c SS |
2492 | #if defined(CRAY) && ! defined(CRAY2) |
2493 | webecray | |
2494 | #else | |
2495 | wenotbecray | |
2496 | #endif | |
2497 | ||
b7026657 | 2498 | _ACEOF |
c906108c | 2499 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 2500 | $EGREP "webecray" >/dev/null 2>&1; then |
c906108c SS |
2501 | ac_cv_os_cray=yes |
2502 | else | |
c906108c SS |
2503 | ac_cv_os_cray=no |
2504 | fi | |
2505 | rm -f conftest* | |
2506 | ||
2507 | fi | |
b7026657 AC |
2508 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
2509 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
c906108c | 2510 | if test $ac_cv_os_cray = yes; then |
b7026657 AC |
2511 | for ac_func in _getb67 GETB67 getb67; do |
2512 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
2513 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
2514 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
2515 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
2516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2517 | else | |
2518 | cat >conftest.$ac_ext <<_ACEOF | |
2519 | /* confdefs.h. */ | |
2520 | _ACEOF | |
2521 | cat confdefs.h >>conftest.$ac_ext | |
2522 | cat >>conftest.$ac_ext <<_ACEOF | |
2523 | /* end confdefs.h. */ | |
2524 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
2525 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2526 | #define $ac_func innocuous_$ac_func | |
2527 | ||
c906108c | 2528 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
2529 | which can conflict with char $ac_func (); below. |
2530 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2531 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 2532 | |
b7026657 AC |
2533 | #ifdef __STDC__ |
2534 | # include <limits.h> | |
2535 | #else | |
2536 | # include <assert.h> | |
2537 | #endif | |
c906108c | 2538 | |
b7026657 AC |
2539 | #undef $ac_func |
2540 | ||
2541 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2542 | #ifdef __cplusplus | |
2543 | extern "C" | |
2544 | { | |
2545 | #endif | |
2546 | /* We use char because int might match the return type of a gcc2 | |
2547 | builtin and then its argument prototype would still apply. */ | |
2548 | char $ac_func (); | |
c906108c SS |
2549 | /* The GNU C library defines this for functions which it implements |
2550 | to always fail with ENOSYS. Some functions are actually named | |
2551 | something starting with __ and the normal name is an alias. */ | |
2552 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2553 | choke me | |
2554 | #else | |
b7026657 AC |
2555 | char (*f) () = $ac_func; |
2556 | #endif | |
2557 | #ifdef __cplusplus | |
2558 | } | |
c906108c SS |
2559 | #endif |
2560 | ||
b7026657 AC |
2561 | int |
2562 | main () | |
2563 | { | |
2564 | return f != $ac_func; | |
2565 | ; | |
2566 | return 0; | |
2567 | } | |
2568 | _ACEOF | |
2569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2571 | (eval $ac_link) 2>conftest.er1 | |
2572 | ac_status=$? | |
2573 | grep -v '^ *+' conftest.er1 >conftest.err | |
2574 | rm -f conftest.er1 | |
2575 | cat conftest.err >&5 | |
2576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2577 | (exit $ac_status); } && | |
2578 | { ac_try='test -z "$ac_c_werror_flag" | |
2579 | || test ! -s conftest.err' | |
2580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2581 | (eval $ac_try) 2>&5 | |
2582 | ac_status=$? | |
2583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2584 | (exit $ac_status); }; } && | |
2585 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
2591 | eval "$as_ac_var=yes" | |
2592 | else | |
2593 | echo "$as_me: failed program was:" >&5 | |
2594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2595 | ||
2596 | eval "$as_ac_var=no" | |
2597 | fi | |
2598 | rm -f conftest.err conftest.$ac_objext \ | |
2599 | conftest$ac_exeext conftest.$ac_ext | |
2600 | fi | |
2601 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
2602 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
2603 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
2604 | ||
2605 | cat >>confdefs.h <<_ACEOF | |
c906108c | 2606 | #define CRAY_STACKSEG_END $ac_func |
b7026657 | 2607 | _ACEOF |
c906108c | 2608 | |
b7026657 | 2609 | break |
c906108c SS |
2610 | fi |
2611 | ||
b7026657 | 2612 | done |
c906108c SS |
2613 | fi |
2614 | ||
b7026657 AC |
2615 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
2616 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
2617 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
2618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2619 | else |
2620 | if test "$cross_compiling" = yes; then | |
2621 | ac_cv_c_stack_direction=0 | |
2622 | else | |
b7026657 AC |
2623 | cat >conftest.$ac_ext <<_ACEOF |
2624 | /* confdefs.h. */ | |
2625 | _ACEOF | |
2626 | cat confdefs.h >>conftest.$ac_ext | |
2627 | cat >>conftest.$ac_ext <<_ACEOF | |
2628 | /* end confdefs.h. */ | |
2629 | int | |
c906108c SS |
2630 | find_stack_direction () |
2631 | { | |
2632 | static char *addr = 0; | |
2633 | auto char dummy; | |
2634 | if (addr == 0) | |
2635 | { | |
2636 | addr = &dummy; | |
2637 | return find_stack_direction (); | |
2638 | } | |
2639 | else | |
2640 | return (&dummy > addr) ? 1 : -1; | |
2641 | } | |
b7026657 AC |
2642 | |
2643 | int | |
c906108c SS |
2644 | main () |
2645 | { | |
b7026657 | 2646 | exit (find_stack_direction () < 0); |
c906108c | 2647 | } |
b7026657 AC |
2648 | _ACEOF |
2649 | rm -f conftest$ac_exeext | |
2650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2651 | (eval $ac_link) 2>&5 | |
2652 | ac_status=$? | |
2653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2654 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2656 | (eval $ac_try) 2>&5 | |
2657 | ac_status=$? | |
2658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2659 | (exit $ac_status); }; }; then | |
c906108c SS |
2660 | ac_cv_c_stack_direction=1 |
2661 | else | |
b7026657 AC |
2662 | echo "$as_me: program exited with status $ac_status" >&5 |
2663 | echo "$as_me: failed program was:" >&5 | |
2664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2665 | ||
2666 | ( exit $ac_status ) | |
2667 | ac_cv_c_stack_direction=-1 | |
c906108c | 2668 | fi |
b7026657 | 2669 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 2670 | fi |
c906108c | 2671 | fi |
b7026657 AC |
2672 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
2673 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
c906108c | 2674 | |
b7026657 | 2675 | cat >>confdefs.h <<_ACEOF |
c906108c | 2676 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
b7026657 AC |
2677 | _ACEOF |
2678 | ||
c906108c SS |
2679 | |
2680 | fi | |
2681 | ||
b7026657 AC |
2682 | |
2683 | ||
2684 | for ac_header in stdlib.h unistd.h | |
c906108c | 2685 | do |
b7026657 AC |
2686 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2687 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2688 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2689 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2690 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2692 | fi | |
2693 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2694 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2695 | else | |
2696 | # Is the header compilable? | |
2697 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
2698 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
2699 | cat >conftest.$ac_ext <<_ACEOF | |
2700 | /* confdefs.h. */ | |
2701 | _ACEOF | |
2702 | cat confdefs.h >>conftest.$ac_ext | |
2703 | cat >>conftest.$ac_ext <<_ACEOF | |
2704 | /* end confdefs.h. */ | |
2705 | $ac_includes_default | |
2706 | #include <$ac_header> | |
2707 | _ACEOF | |
2708 | rm -f conftest.$ac_objext | |
2709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2710 | (eval $ac_compile) 2>conftest.er1 | |
2711 | ac_status=$? | |
2712 | grep -v '^ *+' conftest.er1 >conftest.err | |
2713 | rm -f conftest.er1 | |
2714 | cat conftest.err >&5 | |
2715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2716 | (exit $ac_status); } && | |
2717 | { ac_try='test -z "$ac_c_werror_flag" | |
2718 | || test ! -s conftest.err' | |
2719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2720 | (eval $ac_try) 2>&5 | |
2721 | ac_status=$? | |
2722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2723 | (exit $ac_status); }; } && | |
2724 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
2730 | ac_header_compiler=yes | |
2731 | else | |
2732 | echo "$as_me: failed program was:" >&5 | |
2733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2734 | ||
2735 | ac_header_compiler=no | |
2736 | fi | |
2737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2738 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
2739 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
2740 | ||
2741 | # Is the header present? | |
2742 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
2743 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
2744 | cat >conftest.$ac_ext <<_ACEOF | |
2745 | /* confdefs.h. */ | |
2746 | _ACEOF | |
2747 | cat confdefs.h >>conftest.$ac_ext | |
2748 | cat >>conftest.$ac_ext <<_ACEOF | |
2749 | /* end confdefs.h. */ | |
2750 | #include <$ac_header> | |
2751 | _ACEOF | |
2752 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2753 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2754 | ac_status=$? | |
2755 | grep -v '^ *+' conftest.er1 >conftest.err | |
2756 | rm -f conftest.er1 | |
2757 | cat conftest.err >&5 | |
2758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2759 | (exit $ac_status); } >/dev/null; then | |
2760 | if test -s conftest.err; then | |
2761 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2762 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2763 | else | |
2764 | ac_cpp_err= | |
2765 | fi | |
2766 | else | |
2767 | ac_cpp_err=yes | |
c906108c | 2768 | fi |
b7026657 AC |
2769 | if test -z "$ac_cpp_err"; then |
2770 | ac_header_preproc=yes | |
2771 | else | |
2772 | echo "$as_me: failed program was:" >&5 | |
2773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2774 | ||
2775 | ac_header_preproc=no | |
c906108c | 2776 | fi |
b7026657 AC |
2777 | rm -f conftest.err conftest.$ac_ext |
2778 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
2779 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
2780 | ||
2781 | # So? What about this header? | |
2782 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
2783 | yes:no: ) | |
2784 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2785 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2786 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
2787 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
2788 | ac_header_preproc=yes | |
2789 | ;; | |
2790 | no:yes:* ) | |
2791 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
2792 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
2793 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
2794 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
2795 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
2796 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
2797 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
2798 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
2799 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
2800 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
2801 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
2802 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
2803 | ( | |
2804 | cat <<\_ASBOX | |
2805 | ## ------------------------------------------ ## | |
2806 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
2807 | ## ------------------------------------------ ## | |
2808 | _ASBOX | |
2809 | ) | | |
2810 | sed "s/^/$as_me: WARNING: /" >&2 | |
2811 | ;; | |
2812 | esac | |
2813 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2814 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2815 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2817 | else |
b7026657 AC |
2818 | eval "$as_ac_Header=\$ac_header_preproc" |
2819 | fi | |
2820 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2821 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2822 | ||
c906108c | 2823 | fi |
b7026657 AC |
2824 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
2825 | cat >>confdefs.h <<_ACEOF | |
2826 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2827 | _ACEOF | |
2828 | ||
2829 | fi | |
2830 | ||
c906108c SS |
2831 | done |
2832 | ||
b7026657 | 2833 | |
c906108c SS |
2834 | for ac_func in getpagesize |
2835 | do | |
b7026657 AC |
2836 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2837 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
2838 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
2839 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
2840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2841 | else | |
2842 | cat >conftest.$ac_ext <<_ACEOF | |
2843 | /* confdefs.h. */ | |
2844 | _ACEOF | |
2845 | cat confdefs.h >>conftest.$ac_ext | |
2846 | cat >>conftest.$ac_ext <<_ACEOF | |
2847 | /* end confdefs.h. */ | |
2848 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
2849 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2850 | #define $ac_func innocuous_$ac_func | |
2851 | ||
c906108c | 2852 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
2853 | which can conflict with char $ac_func (); below. |
2854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2855 | <limits.h> exists even on freestanding compilers. */ | |
2856 | ||
2857 | #ifdef __STDC__ | |
2858 | # include <limits.h> | |
2859 | #else | |
2860 | # include <assert.h> | |
2861 | #endif | |
c906108c | 2862 | |
b7026657 | 2863 | #undef $ac_func |
c906108c | 2864 | |
b7026657 AC |
2865 | /* Override any gcc2 internal prototype to avoid an error. */ |
2866 | #ifdef __cplusplus | |
2867 | extern "C" | |
2868 | { | |
2869 | #endif | |
2870 | /* We use char because int might match the return type of a gcc2 | |
2871 | builtin and then its argument prototype would still apply. */ | |
2872 | char $ac_func (); | |
c906108c SS |
2873 | /* The GNU C library defines this for functions which it implements |
2874 | to always fail with ENOSYS. Some functions are actually named | |
2875 | something starting with __ and the normal name is an alias. */ | |
2876 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2877 | choke me | |
2878 | #else | |
b7026657 AC |
2879 | char (*f) () = $ac_func; |
2880 | #endif | |
2881 | #ifdef __cplusplus | |
2882 | } | |
c906108c SS |
2883 | #endif |
2884 | ||
b7026657 AC |
2885 | int |
2886 | main () | |
2887 | { | |
2888 | return f != $ac_func; | |
2889 | ; | |
2890 | return 0; | |
2891 | } | |
2892 | _ACEOF | |
2893 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2895 | (eval $ac_link) 2>conftest.er1 | |
2896 | ac_status=$? | |
2897 | grep -v '^ *+' conftest.er1 >conftest.err | |
2898 | rm -f conftest.er1 | |
2899 | cat conftest.err >&5 | |
2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2901 | (exit $ac_status); } && | |
2902 | { ac_try='test -z "$ac_c_werror_flag" | |
2903 | || test ! -s conftest.err' | |
2904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2905 | (eval $ac_try) 2>&5 | |
2906 | ac_status=$? | |
2907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2908 | (exit $ac_status); }; } && | |
2909 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
2915 | eval "$as_ac_var=yes" | |
2916 | else | |
2917 | echo "$as_me: failed program was:" >&5 | |
2918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2919 | ||
2920 | eval "$as_ac_var=no" | |
2921 | fi | |
2922 | rm -f conftest.err conftest.$ac_objext \ | |
2923 | conftest$ac_exeext conftest.$ac_ext | |
2924 | fi | |
2925 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
2926 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
2927 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
2928 | cat >>confdefs.h <<_ACEOF | |
2929 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
2930 | _ACEOF | |
c906108c | 2931 | |
c906108c SS |
2932 | fi |
2933 | done | |
2934 | ||
b7026657 AC |
2935 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
2936 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
2937 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
2938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2939 | else |
2940 | if test "$cross_compiling" = yes; then | |
2941 | ac_cv_func_mmap_fixed_mapped=no | |
2942 | else | |
b7026657 AC |
2943 | cat >conftest.$ac_ext <<_ACEOF |
2944 | /* confdefs.h. */ | |
2945 | _ACEOF | |
2946 | cat confdefs.h >>conftest.$ac_ext | |
2947 | cat >>conftest.$ac_ext <<_ACEOF | |
2948 | /* end confdefs.h. */ | |
2949 | $ac_includes_default | |
2950 | /* malloc might have been renamed as rpl_malloc. */ | |
2951 | #undef malloc | |
c906108c SS |
2952 | |
2953 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
2954 | Here is a matrix of mmap possibilities: | |
2955 | mmap private not fixed | |
2956 | mmap private fixed at somewhere currently unmapped | |
2957 | mmap private fixed at somewhere already mapped | |
2958 | mmap shared not fixed | |
2959 | mmap shared fixed at somewhere currently unmapped | |
2960 | mmap shared fixed at somewhere already mapped | |
2961 | For private mappings, we should verify that changes cannot be read() | |
2962 | back from the file, nor mmap's back from the file at a different | |
2963 | address. (There have been systems where private was not correctly | |
2964 | implemented like the infamous i386 svr4.0, and systems where the | |
b7026657 | 2965 | VM page cache was not coherent with the file system buffer cache |
c906108c SS |
2966 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
2967 | For shared mappings, we should conversely verify that changes get | |
b7026657 | 2968 | propagated back to all the places they're supposed to be. |
c906108c SS |
2969 | |
2970 | Grep wants private fixed already mapped. | |
2971 | The main things grep needs to know about mmap are: | |
2972 | * does it exist and is it safe to write into the mmap'd area | |
2973 | * how to use it (BSD variants) */ | |
b7026657 | 2974 | |
c906108c SS |
2975 | #include <fcntl.h> |
2976 | #include <sys/mman.h> | |
2977 | ||
b7026657 AC |
2978 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
2979 | char *malloc (); | |
2980 | #endif | |
c906108c | 2981 | |
b7026657 AC |
2982 | /* This mess was copied from the GNU getpagesize.h. */ |
2983 | #if !HAVE_GETPAGESIZE | |
c906108c | 2984 | /* Assume that all systems that can run configure have sys/param.h. */ |
b7026657 | 2985 | # if !HAVE_SYS_PARAM_H |
c906108c SS |
2986 | # define HAVE_SYS_PARAM_H 1 |
2987 | # endif | |
2988 | ||
2989 | # ifdef _SC_PAGESIZE | |
2990 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
2991 | # else /* no _SC_PAGESIZE */ | |
b7026657 | 2992 | # if HAVE_SYS_PARAM_H |
c906108c SS |
2993 | # include <sys/param.h> |
2994 | # ifdef EXEC_PAGESIZE | |
2995 | # define getpagesize() EXEC_PAGESIZE | |
2996 | # else /* no EXEC_PAGESIZE */ | |
2997 | # ifdef NBPG | |
2998 | # define getpagesize() NBPG * CLSIZE | |
2999 | # ifndef CLSIZE | |
3000 | # define CLSIZE 1 | |
3001 | # endif /* no CLSIZE */ | |
3002 | # else /* no NBPG */ | |
3003 | # ifdef NBPC | |
3004 | # define getpagesize() NBPC | |
3005 | # else /* no NBPC */ | |
3006 | # ifdef PAGESIZE | |
3007 | # define getpagesize() PAGESIZE | |
3008 | # endif /* PAGESIZE */ | |
3009 | # endif /* no NBPC */ | |
3010 | # endif /* no NBPG */ | |
3011 | # endif /* no EXEC_PAGESIZE */ | |
3012 | # else /* no HAVE_SYS_PARAM_H */ | |
3013 | # define getpagesize() 8192 /* punt totally */ | |
3014 | # endif /* no HAVE_SYS_PARAM_H */ | |
3015 | # endif /* no _SC_PAGESIZE */ | |
3016 | ||
3017 | #endif /* no HAVE_GETPAGESIZE */ | |
3018 | ||
c906108c | 3019 | int |
b7026657 | 3020 | main () |
c906108c | 3021 | { |
b7026657 AC |
3022 | char *data, *data2, *data3; |
3023 | int i, pagesize; | |
3024 | int fd; | |
3025 | ||
3026 | pagesize = getpagesize (); | |
3027 | ||
3028 | /* First, make a file with some known garbage in it. */ | |
3029 | data = (char *) malloc (pagesize); | |
3030 | if (!data) | |
3031 | exit (1); | |
3032 | for (i = 0; i < pagesize; ++i) | |
3033 | *(data + i) = rand (); | |
3034 | umask (0); | |
3035 | fd = creat ("conftest.mmap", 0600); | |
3036 | if (fd < 0) | |
3037 | exit (1); | |
3038 | if (write (fd, data, pagesize) != pagesize) | |
3039 | exit (1); | |
3040 | close (fd); | |
3041 | ||
3042 | /* Next, try to mmap the file at a fixed address which already has | |
3043 | something else allocated at it. If we can, also make sure that | |
3044 | we see the same garbage. */ | |
3045 | fd = open ("conftest.mmap", O_RDWR); | |
3046 | if (fd < 0) | |
3047 | exit (1); | |
3048 | data2 = (char *) malloc (2 * pagesize); | |
3049 | if (!data2) | |
3050 | exit (1); | |
3051 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
3052 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
3053 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
3054 | exit (1); | |
3055 | for (i = 0; i < pagesize; ++i) | |
3056 | if (*(data + i) != *(data2 + i)) | |
3057 | exit (1); | |
3058 | ||
3059 | /* Finally, make sure that changes to the mapped area do not | |
3060 | percolate back to the file as seen by read(). (This is a bug on | |
3061 | some variants of i386 svr4.0.) */ | |
3062 | for (i = 0; i < pagesize; ++i) | |
3063 | *(data2 + i) = *(data2 + i) + 1; | |
3064 | data3 = (char *) malloc (pagesize); | |
3065 | if (!data3) | |
3066 | exit (1); | |
3067 | if (read (fd, data3, pagesize) != pagesize) | |
3068 | exit (1); | |
3069 | for (i = 0; i < pagesize; ++i) | |
3070 | if (*(data + i) != *(data3 + i)) | |
3071 | exit (1); | |
3072 | close (fd); | |
3073 | exit (0); | |
c906108c | 3074 | } |
b7026657 AC |
3075 | _ACEOF |
3076 | rm -f conftest$ac_exeext | |
3077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3078 | (eval $ac_link) 2>&5 | |
3079 | ac_status=$? | |
3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3081 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3083 | (eval $ac_try) 2>&5 | |
3084 | ac_status=$? | |
3085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3086 | (exit $ac_status); }; }; then | |
c906108c SS |
3087 | ac_cv_func_mmap_fixed_mapped=yes |
3088 | else | |
b7026657 AC |
3089 | echo "$as_me: program exited with status $ac_status" >&5 |
3090 | echo "$as_me: failed program was:" >&5 | |
3091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3092 | |
b7026657 AC |
3093 | ( exit $ac_status ) |
3094 | ac_cv_func_mmap_fixed_mapped=no | |
c906108c | 3095 | fi |
b7026657 | 3096 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 3097 | fi |
cd0fc7c3 | 3098 | fi |
b7026657 AC |
3099 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
3100 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
3101 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
cd0fc7c3 | 3102 | |
b7026657 AC |
3103 | cat >>confdefs.h <<\_ACEOF |
3104 | #define HAVE_MMAP 1 | |
3105 | _ACEOF | |
cd0fc7c3 | 3106 | |
cd0fc7c3 | 3107 | fi |
b7026657 | 3108 | rm -f conftest.mmap |
cd0fc7c3 | 3109 | |
c906108c SS |
3110 | |
3111 | # autoconf.info says this should be called right after AC_INIT. | |
b7026657 | 3112 | ac_config_headers="$ac_config_headers config.h:config.in" |
c906108c SS |
3113 | |
3114 | ||
3115 | ac_aux_dir= | |
3116 | for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do | |
3117 | if test -f $ac_dir/install-sh; then | |
3118 | ac_aux_dir=$ac_dir | |
3119 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3120 | break | |
3121 | elif test -f $ac_dir/install.sh; then | |
3122 | ac_aux_dir=$ac_dir | |
b7026657 AC |
3123 | ac_install_sh="$ac_aux_dir/install.sh -c" |
3124 | break | |
3125 | elif test -f $ac_dir/shtool; then | |
3126 | ac_aux_dir=$ac_dir | |
3127 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3128 | break | |
3129 | fi | |
3130 | done | |
3131 | if test -z "$ac_aux_dir"; then | |
3132 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&5 | |
3133 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&2;} | |
3134 | { (exit 1); exit 1; }; } | |
c906108c | 3135 | fi |
b7026657 AC |
3136 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
3137 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
3138 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
c906108c | 3139 | |
b7026657 AC |
3140 | echo "$as_me:$LINENO: checking target system type" >&5 |
3141 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
3142 | if test "${ac_cv_target+set}" = set; then | |
3143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3144 | else | |
3145 | ac_cv_target_alias=$target_alias | |
3146 | test "x$ac_cv_target_alias" = "x" && | |
3147 | ac_cv_target_alias=$ac_cv_host_alias | |
3148 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
3149 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
3150 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
3151 | { (exit 1); exit 1; }; } | |
c906108c | 3152 | |
b7026657 AC |
3153 | fi |
3154 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
3155 | echo "${ECHO_T}$ac_cv_target" >&6 | |
3156 | target=$ac_cv_target | |
3157 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3158 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3159 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 3160 | |
c906108c | 3161 | |
b7026657 AC |
3162 | # The aliases save the names the user supplied, while $host etc. |
3163 | # will get canonicalized. | |
3164 | test -n "$target_alias" && | |
c906108c SS |
3165 | test "$program_prefix$program_suffix$program_transform_name" = \ |
3166 | NONENONEs,x,x, && | |
3167 | program_prefix=${target_alias}- | |
c906108c | 3168 | test "$program_prefix" != NONE && |
b7026657 | 3169 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
c906108c SS |
3170 | # Use a double $ so make ignores it. |
3171 | test "$program_suffix" != NONE && | |
b7026657 AC |
3172 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
3173 | # Double any \ or $. echo might interpret backslashes. | |
3174 | # By default was `s,x,x', remove it if useless. | |
3175 | cat <<\_ACEOF >conftest.sed | |
3176 | s/[\\$]/&&/g;s/;s,x,x,$// | |
3177 | _ACEOF | |
3178 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
3179 | rm conftest.sed | |
3180 | ||
3181 | ac_ext=c | |
3182 | ac_cpp='$CPP $CPPFLAGS' | |
3183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3186 | if test -n "$ac_tool_prefix"; then | |
3187 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3188 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3189 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3191 | if test "${ac_cv_prog_CC+set}" = set; then | |
3192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3193 | else | |
3194 | if test -n "$CC"; then | |
3195 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3196 | else | |
3197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3198 | for as_dir in $PATH | |
3199 | do | |
3200 | IFS=$as_save_IFS | |
3201 | test -z "$as_dir" && as_dir=. | |
3202 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3203 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3204 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3206 | break 2 | |
3207 | fi | |
3208 | done | |
3209 | done | |
c906108c | 3210 | |
b7026657 AC |
3211 | fi |
3212 | fi | |
3213 | CC=$ac_cv_prog_CC | |
3214 | if test -n "$CC"; then | |
3215 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3216 | echo "${ECHO_T}$CC" >&6 | |
3217 | else | |
3218 | echo "$as_me:$LINENO: result: no" >&5 | |
3219 | echo "${ECHO_T}no" >&6 | |
3220 | fi | |
c906108c | 3221 | |
b7026657 AC |
3222 | fi |
3223 | if test -z "$ac_cv_prog_CC"; then | |
3224 | ac_ct_CC=$CC | |
3225 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 3226 | set dummy gcc; ac_word=$2 |
b7026657 AC |
3227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3229 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3231 | else | |
3232 | if test -n "$ac_ct_CC"; then | |
3233 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3234 | else | |
3235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3236 | for as_dir in $PATH | |
3237 | do | |
3238 | IFS=$as_save_IFS | |
3239 | test -z "$as_dir" && as_dir=. | |
3240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3241 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3242 | ac_cv_prog_ac_ct_CC="gcc" | |
3243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3244 | break 2 | |
3245 | fi | |
3246 | done | |
3247 | done | |
3248 | ||
3249 | fi | |
3250 | fi | |
3251 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3252 | if test -n "$ac_ct_CC"; then | |
3253 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3254 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3255 | else | |
3256 | echo "$as_me:$LINENO: result: no" >&5 | |
3257 | echo "${ECHO_T}no" >&6 | |
3258 | fi | |
3259 | ||
3260 | CC=$ac_ct_CC | |
3261 | else | |
3262 | CC="$ac_cv_prog_CC" | |
3263 | fi | |
3264 | ||
3265 | if test -z "$CC"; then | |
3266 | if test -n "$ac_tool_prefix"; then | |
3267 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3268 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3269 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3271 | if test "${ac_cv_prog_CC+set}" = set; then | |
3272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
3273 | else |
3274 | if test -n "$CC"; then | |
3275 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3276 | else | |
b7026657 AC |
3277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3278 | for as_dir in $PATH | |
3279 | do | |
3280 | IFS=$as_save_IFS | |
3281 | test -z "$as_dir" && as_dir=. | |
3282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3283 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3284 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3286 | break 2 | |
3287 | fi | |
3288 | done | |
3289 | done | |
3290 | ||
c906108c SS |
3291 | fi |
3292 | fi | |
b7026657 | 3293 | CC=$ac_cv_prog_CC |
c906108c | 3294 | if test -n "$CC"; then |
b7026657 AC |
3295 | echo "$as_me:$LINENO: result: $CC" >&5 |
3296 | echo "${ECHO_T}$CC" >&6 | |
3297 | else | |
3298 | echo "$as_me:$LINENO: result: no" >&5 | |
3299 | echo "${ECHO_T}no" >&6 | |
3300 | fi | |
3301 | ||
3302 | fi | |
3303 | if test -z "$ac_cv_prog_CC"; then | |
3304 | ac_ct_CC=$CC | |
3305 | # Extract the first word of "cc", so it can be a program name with args. | |
3306 | set dummy cc; ac_word=$2 | |
3307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3309 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3311 | else | |
3312 | if test -n "$ac_ct_CC"; then | |
3313 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3314 | else | |
3315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3316 | for as_dir in $PATH | |
3317 | do | |
3318 | IFS=$as_save_IFS | |
3319 | test -z "$as_dir" && as_dir=. | |
3320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3321 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3322 | ac_cv_prog_ac_ct_CC="cc" | |
3323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3324 | break 2 | |
3325 | fi | |
3326 | done | |
3327 | done | |
3328 | ||
3329 | fi | |
3330 | fi | |
3331 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3332 | if test -n "$ac_ct_CC"; then | |
3333 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3334 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3335 | else | |
3336 | echo "$as_me:$LINENO: result: no" >&5 | |
3337 | echo "${ECHO_T}no" >&6 | |
3338 | fi | |
3339 | ||
3340 | CC=$ac_ct_CC | |
c906108c | 3341 | else |
b7026657 | 3342 | CC="$ac_cv_prog_CC" |
c906108c SS |
3343 | fi |
3344 | ||
b7026657 | 3345 | fi |
c906108c SS |
3346 | if test -z "$CC"; then |
3347 | # Extract the first word of "cc", so it can be a program name with args. | |
3348 | set dummy cc; ac_word=$2 | |
b7026657 AC |
3349 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3350 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3351 | if test "${ac_cv_prog_CC+set}" = set; then | |
3352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
3353 | else |
3354 | if test -n "$CC"; then | |
3355 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3356 | else | |
c906108c | 3357 | ac_prog_rejected=no |
b7026657 AC |
3358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3359 | for as_dir in $PATH | |
3360 | do | |
3361 | IFS=$as_save_IFS | |
3362 | test -z "$as_dir" && as_dir=. | |
3363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3364 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3365 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3366 | ac_prog_rejected=yes | |
3367 | continue | |
3368 | fi | |
3369 | ac_cv_prog_CC="cc" | |
3370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3371 | break 2 | |
3372 | fi | |
3373 | done | |
3374 | done | |
3375 | ||
c906108c SS |
3376 | if test $ac_prog_rejected = yes; then |
3377 | # We found a bogon in the path, so make sure we never use it. | |
3378 | set dummy $ac_cv_prog_CC | |
3379 | shift | |
b7026657 | 3380 | if test $# != 0; then |
c906108c SS |
3381 | # We chose a different compiler from the bogus one. |
3382 | # However, it has the same basename, so the bogon will be chosen | |
3383 | # first if we set CC to just the basename; use the full file name. | |
3384 | shift | |
b7026657 | 3385 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
3386 | fi |
3387 | fi | |
3388 | fi | |
3389 | fi | |
b7026657 | 3390 | CC=$ac_cv_prog_CC |
c906108c | 3391 | if test -n "$CC"; then |
b7026657 AC |
3392 | echo "$as_me:$LINENO: result: $CC" >&5 |
3393 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 3394 | else |
b7026657 AC |
3395 | echo "$as_me:$LINENO: result: no" >&5 |
3396 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3397 | fi |
3398 | ||
b7026657 AC |
3399 | fi |
3400 | if test -z "$CC"; then | |
3401 | if test -n "$ac_tool_prefix"; then | |
3402 | for ac_prog in cl | |
3403 | do | |
3404 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3405 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3406 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3408 | if test "${ac_cv_prog_CC+set}" = set; then | |
3409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
3410 | else |
3411 | if test -n "$CC"; then | |
3412 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3413 | else | |
b7026657 AC |
3414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3415 | for as_dir in $PATH | |
3416 | do | |
3417 | IFS=$as_save_IFS | |
3418 | test -z "$as_dir" && as_dir=. | |
3419 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3420 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3421 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3422 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3423 | break 2 | |
3424 | fi | |
3425 | done | |
3426 | done | |
3427 | ||
c906108c SS |
3428 | fi |
3429 | fi | |
b7026657 | 3430 | CC=$ac_cv_prog_CC |
c906108c | 3431 | if test -n "$CC"; then |
b7026657 AC |
3432 | echo "$as_me:$LINENO: result: $CC" >&5 |
3433 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 3434 | else |
b7026657 AC |
3435 | echo "$as_me:$LINENO: result: no" >&5 |
3436 | echo "${ECHO_T}no" >&6 | |
c906108c | 3437 | fi |
b7026657 AC |
3438 | |
3439 | test -n "$CC" && break | |
3440 | done | |
3441 | fi | |
3442 | if test -z "$CC"; then | |
3443 | ac_ct_CC=$CC | |
3444 | for ac_prog in cl | |
3445 | do | |
3446 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3447 | set dummy $ac_prog; ac_word=$2 | |
3448 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3450 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3452 | else | |
3453 | if test -n "$ac_ct_CC"; then | |
3454 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3455 | else | |
3456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3457 | for as_dir in $PATH | |
3458 | do | |
3459 | IFS=$as_save_IFS | |
3460 | test -z "$as_dir" && as_dir=. | |
3461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3463 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3465 | break 2 | |
c906108c | 3466 | fi |
b7026657 AC |
3467 | done |
3468 | done | |
3469 | ||
3470 | fi | |
3471 | fi | |
3472 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3473 | if test -n "$ac_ct_CC"; then | |
3474 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3475 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3476 | else | |
3477 | echo "$as_me:$LINENO: result: no" >&5 | |
3478 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3479 | fi |
3480 | ||
b7026657 AC |
3481 | test -n "$ac_ct_CC" && break |
3482 | done | |
c906108c | 3483 | |
b7026657 AC |
3484 | CC=$ac_ct_CC |
3485 | fi | |
3486 | ||
3487 | fi | |
3488 | ||
3489 | ||
3490 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
3491 | See \`config.log' for more details." >&5 | |
3492 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3493 | See \`config.log' for more details." >&2;} | |
3494 | { (exit 1); exit 1; }; } | |
3495 | ||
3496 | # Provide some information about the compiler. | |
3497 | echo "$as_me:$LINENO:" \ | |
3498 | "checking for C compiler version" >&5 | |
3499 | ac_compiler=`set X $ac_compile; echo $2` | |
3500 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3501 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3502 | ac_status=$? | |
3503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3504 | (exit $ac_status); } | |
3505 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3506 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3507 | ac_status=$? | |
3508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3509 | (exit $ac_status); } | |
3510 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3511 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3512 | ac_status=$? | |
3513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3514 | (exit $ac_status); } | |
3515 | ||
3516 | cat >conftest.$ac_ext <<_ACEOF | |
3517 | /* confdefs.h. */ | |
3518 | _ACEOF | |
3519 | cat confdefs.h >>conftest.$ac_ext | |
3520 | cat >>conftest.$ac_ext <<_ACEOF | |
3521 | /* end confdefs.h. */ | |
3522 | ||
3523 | int | |
3524 | main () | |
3525 | { | |
3526 | ||
3527 | ; | |
3528 | return 0; | |
3529 | } | |
3530 | _ACEOF | |
3531 | ac_clean_files_save=$ac_clean_files | |
3532 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
3533 | # Try to create an executable without -o first, disregard a.out. | |
3534 | # It will help us diagnose broken compilers, and finding out an intuition | |
3535 | # of exeext. | |
3536 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
3537 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
3538 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3539 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
3540 | (eval $ac_link_default) 2>&5 | |
3541 | ac_status=$? | |
3542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3543 | (exit $ac_status); }; then | |
3544 | # Find the output, starting from the most likely. This scheme is | |
3545 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
3546 | # resort. | |
3547 | ||
3548 | # Be careful to initialize this variable, since it used to be cached. | |
3549 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
3550 | ac_cv_exeext= | |
3551 | # b.out is created by i960 compilers. | |
3552 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
3553 | do | |
3554 | test -f "$ac_file" || continue | |
3555 | case $ac_file in | |
3556 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
3557 | ;; | |
3558 | conftest.$ac_ext ) | |
3559 | # This is the source file. | |
3560 | ;; | |
3561 | [ab].out ) | |
3562 | # We found the default executable, but exeext='' is most | |
3563 | # certainly right. | |
3564 | break;; | |
3565 | *.* ) | |
3566 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3567 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
3568 | # but it would be cool to find out if it's true. Does anybody | |
3569 | # maintain Libtool? --akim. | |
3570 | export ac_cv_exeext | |
3571 | break;; | |
3572 | * ) | |
3573 | break;; | |
3574 | esac | |
3575 | done | |
3576 | else | |
3577 | echo "$as_me: failed program was:" >&5 | |
3578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3579 | ||
3580 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
3581 | See \`config.log' for more details." >&5 | |
3582 | echo "$as_me: error: C compiler cannot create executables | |
3583 | See \`config.log' for more details." >&2;} | |
3584 | { (exit 77); exit 77; }; } | |
3585 | fi | |
3586 | ||
3587 | ac_exeext=$ac_cv_exeext | |
3588 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3589 | echo "${ECHO_T}$ac_file" >&6 | |
3590 | ||
3591 | # Check the compiler produces executables we can run. If not, either | |
3592 | # the compiler is broken, or we cross compile. | |
3593 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
3594 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
3595 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3596 | # If not cross compiling, check that we can run a simple program. | |
3597 | if test "$cross_compiling" != yes; then | |
3598 | if { ac_try='./$ac_file' | |
3599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3600 | (eval $ac_try) 2>&5 | |
3601 | ac_status=$? | |
3602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3603 | (exit $ac_status); }; }; then | |
3604 | cross_compiling=no | |
c906108c | 3605 | else |
b7026657 AC |
3606 | if test "$cross_compiling" = maybe; then |
3607 | cross_compiling=yes | |
3608 | else | |
3609 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3610 | If you meant to cross compile, use \`--host'. | |
3611 | See \`config.log' for more details." >&5 | |
3612 | echo "$as_me: error: cannot run C compiled programs. | |
3613 | If you meant to cross compile, use \`--host'. | |
3614 | See \`config.log' for more details." >&2;} | |
3615 | { (exit 1); exit 1; }; } | |
3616 | fi | |
c906108c | 3617 | fi |
b7026657 AC |
3618 | fi |
3619 | echo "$as_me:$LINENO: result: yes" >&5 | |
3620 | echo "${ECHO_T}yes" >&6 | |
3621 | ||
3622 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
3623 | ac_clean_files=$ac_clean_files_save | |
3624 | # Check the compiler produces executables we can run. If not, either | |
3625 | # the compiler is broken, or we cross compile. | |
3626 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3627 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
3628 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3629 | echo "${ECHO_T}$cross_compiling" >&6 | |
3630 | ||
3631 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3632 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3634 | (eval $ac_link) 2>&5 | |
3635 | ac_status=$? | |
3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3637 | (exit $ac_status); }; then | |
3638 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3639 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3640 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3641 | # `rm'. | |
3642 | for ac_file in conftest.exe conftest conftest.*; do | |
3643 | test -f "$ac_file" || continue | |
3644 | case $ac_file in | |
3645 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
3646 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3647 | export ac_cv_exeext | |
3648 | break;; | |
3649 | * ) break;; | |
3650 | esac | |
3651 | done | |
c906108c | 3652 | else |
b7026657 AC |
3653 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3654 | See \`config.log' for more details." >&5 | |
3655 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3656 | See \`config.log' for more details." >&2;} | |
3657 | { (exit 1); exit 1; }; } | |
c906108c | 3658 | fi |
c906108c | 3659 | |
b7026657 AC |
3660 | rm -f conftest$ac_cv_exeext |
3661 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3662 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 3663 | |
b7026657 AC |
3664 | rm -f conftest.$ac_ext |
3665 | EXEEXT=$ac_cv_exeext | |
3666 | ac_exeext=$EXEEXT | |
3667 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3668 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
3669 | if test "${ac_cv_objext+set}" = set; then | |
3670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3671 | else | |
3672 | cat >conftest.$ac_ext <<_ACEOF | |
3673 | /* confdefs.h. */ | |
3674 | _ACEOF | |
3675 | cat confdefs.h >>conftest.$ac_ext | |
3676 | cat >>conftest.$ac_ext <<_ACEOF | |
3677 | /* end confdefs.h. */ | |
c906108c | 3678 | |
b7026657 AC |
3679 | int |
3680 | main () | |
3681 | { | |
c906108c | 3682 | |
b7026657 AC |
3683 | ; |
3684 | return 0; | |
3685 | } | |
3686 | _ACEOF | |
3687 | rm -f conftest.o conftest.obj | |
3688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3689 | (eval $ac_compile) 2>&5 | |
3690 | ac_status=$? | |
3691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3692 | (exit $ac_status); }; then | |
3693 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3694 | case $ac_file in | |
3695 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
3696 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3697 | break;; | |
3698 | esac | |
3699 | done | |
c906108c | 3700 | else |
b7026657 AC |
3701 | echo "$as_me: failed program was:" >&5 |
3702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3703 | ||
3704 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3705 | See \`config.log' for more details." >&5 | |
3706 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3707 | See \`config.log' for more details." >&2;} | |
3708 | { (exit 1); exit 1; }; } | |
c906108c SS |
3709 | fi |
3710 | ||
b7026657 AC |
3711 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3712 | fi | |
3713 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3714 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
3715 | OBJEXT=$ac_cv_objext | |
3716 | ac_objext=$OBJEXT | |
3717 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3718 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3719 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3721 | else |
b7026657 AC |
3722 | cat >conftest.$ac_ext <<_ACEOF |
3723 | /* confdefs.h. */ | |
3724 | _ACEOF | |
3725 | cat confdefs.h >>conftest.$ac_ext | |
3726 | cat >>conftest.$ac_ext <<_ACEOF | |
3727 | /* end confdefs.h. */ | |
3728 | ||
3729 | int | |
3730 | main () | |
3731 | { | |
3732 | #ifndef __GNUC__ | |
3733 | choke me | |
3734 | #endif | |
3735 | ||
3736 | ; | |
3737 | return 0; | |
3738 | } | |
3739 | _ACEOF | |
3740 | rm -f conftest.$ac_objext | |
3741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3742 | (eval $ac_compile) 2>conftest.er1 | |
3743 | ac_status=$? | |
3744 | grep -v '^ *+' conftest.er1 >conftest.err | |
3745 | rm -f conftest.er1 | |
3746 | cat conftest.err >&5 | |
3747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3748 | (exit $ac_status); } && | |
3749 | { ac_try='test -z "$ac_c_werror_flag" | |
3750 | || test ! -s conftest.err' | |
3751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3752 | (eval $ac_try) 2>&5 | |
3753 | ac_status=$? | |
3754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3755 | (exit $ac_status); }; } && | |
3756 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
3762 | ac_compiler_gnu=yes | |
3763 | else | |
3764 | echo "$as_me: failed program was:" >&5 | |
3765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3766 | ||
3767 | ac_compiler_gnu=no | |
3768 | fi | |
3769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3770 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3771 | ||
3772 | fi | |
3773 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3774 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3775 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3776 | ac_test_CFLAGS=${CFLAGS+set} | |
3777 | ac_save_CFLAGS=$CFLAGS | |
3778 | CFLAGS="-g" | |
3779 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3780 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3781 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3783 | else | |
3784 | cat >conftest.$ac_ext <<_ACEOF | |
3785 | /* confdefs.h. */ | |
3786 | _ACEOF | |
3787 | cat confdefs.h >>conftest.$ac_ext | |
3788 | cat >>conftest.$ac_ext <<_ACEOF | |
3789 | /* end confdefs.h. */ | |
3790 | ||
3791 | int | |
3792 | main () | |
3793 | { | |
3794 | ||
3795 | ; | |
3796 | return 0; | |
3797 | } | |
3798 | _ACEOF | |
3799 | rm -f conftest.$ac_objext | |
3800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3801 | (eval $ac_compile) 2>conftest.er1 | |
3802 | ac_status=$? | |
3803 | grep -v '^ *+' conftest.er1 >conftest.err | |
3804 | rm -f conftest.er1 | |
3805 | cat conftest.err >&5 | |
3806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3807 | (exit $ac_status); } && | |
3808 | { ac_try='test -z "$ac_c_werror_flag" | |
3809 | || test ! -s conftest.err' | |
3810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3811 | (eval $ac_try) 2>&5 | |
3812 | ac_status=$? | |
3813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3814 | (exit $ac_status); }; } && | |
3815 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
c906108c SS |
3821 | ac_cv_prog_cc_g=yes |
3822 | else | |
b7026657 AC |
3823 | echo "$as_me: failed program was:" >&5 |
3824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3825 | |
b7026657 | 3826 | ac_cv_prog_cc_g=no |
c906108c | 3827 | fi |
b7026657 AC |
3828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3829 | fi | |
3830 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3831 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 3832 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 3833 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
3834 | elif test $ac_cv_prog_cc_g = yes; then |
3835 | if test "$GCC" = yes; then | |
3836 | CFLAGS="-g -O2" | |
3837 | else | |
3838 | CFLAGS="-g" | |
3839 | fi | |
3840 | else | |
3841 | if test "$GCC" = yes; then | |
3842 | CFLAGS="-O2" | |
3843 | else | |
3844 | CFLAGS= | |
3845 | fi | |
3846 | fi | |
b7026657 AC |
3847 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3848 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3849 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3851 | else | |
3852 | ac_cv_prog_cc_stdc=no | |
3853 | ac_save_CC=$CC | |
3854 | cat >conftest.$ac_ext <<_ACEOF | |
3855 | /* confdefs.h. */ | |
3856 | _ACEOF | |
3857 | cat confdefs.h >>conftest.$ac_ext | |
3858 | cat >>conftest.$ac_ext <<_ACEOF | |
3859 | /* end confdefs.h. */ | |
3860 | #include <stdarg.h> | |
3861 | #include <stdio.h> | |
3862 | #include <sys/types.h> | |
3863 | #include <sys/stat.h> | |
3864 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3865 | struct buf { int x; }; | |
3866 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3867 | static char *e (p, i) | |
3868 | char **p; | |
3869 | int i; | |
3870 | { | |
3871 | return p[i]; | |
3872 | } | |
3873 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3874 | { | |
3875 | char *s; | |
3876 | va_list v; | |
3877 | va_start (v,p); | |
3878 | s = g (p, va_arg (v,int)); | |
3879 | va_end (v); | |
3880 | return s; | |
3881 | } | |
3882 | ||
3883 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3884 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3885 | These don't provoke an error unfortunately, instead are silently treated | |
3886 | as 'x'. The following induces an error, until -std1 is added to get | |
3887 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3888 | array size at least. It's necessary to write '\x00'==0 to get something | |
3889 | that's true only with -std1. */ | |
3890 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3891 | ||
3892 | int test (int i, double x); | |
3893 | struct s1 {int (*f) (int a);}; | |
3894 | struct s2 {int (*f) (double a);}; | |
3895 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3896 | int argc; | |
3897 | char **argv; | |
3898 | int | |
3899 | main () | |
3900 | { | |
3901 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3902 | ; | |
3903 | return 0; | |
3904 | } | |
3905 | _ACEOF | |
3906 | # Don't try gcc -ansi; that turns off useful extensions and | |
3907 | # breaks some systems' header files. | |
3908 | # AIX -qlanglvl=ansi | |
3909 | # Ultrix and OSF/1 -std1 | |
3910 | # HP-UX 10.20 and later -Ae | |
3911 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3912 | # SVR4 -Xc -D__EXTENSIONS__ | |
3913 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3914 | do | |
3915 | CC="$ac_save_CC $ac_arg" | |
3916 | rm -f conftest.$ac_objext | |
3917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3918 | (eval $ac_compile) 2>conftest.er1 | |
3919 | ac_status=$? | |
3920 | grep -v '^ *+' conftest.er1 >conftest.err | |
3921 | rm -f conftest.er1 | |
3922 | cat conftest.err >&5 | |
3923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3924 | (exit $ac_status); } && | |
3925 | { ac_try='test -z "$ac_c_werror_flag" | |
3926 | || test ! -s conftest.err' | |
3927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3928 | (eval $ac_try) 2>&5 | |
3929 | ac_status=$? | |
3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3931 | (exit $ac_status); }; } && | |
3932 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
3938 | ac_cv_prog_cc_stdc=$ac_arg | |
3939 | break | |
3940 | else | |
3941 | echo "$as_me: failed program was:" >&5 | |
3942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3943 | ||
3944 | fi | |
3945 | rm -f conftest.err conftest.$ac_objext | |
3946 | done | |
3947 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3948 | CC=$ac_save_CC | |
3949 | ||
3950 | fi | |
3951 | ||
3952 | case "x$ac_cv_prog_cc_stdc" in | |
3953 | x|xno) | |
3954 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3955 | echo "${ECHO_T}none needed" >&6 ;; | |
3956 | *) | |
3957 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3958 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3959 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3960 | esac | |
3961 | ||
3962 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
3963 | # in C++ we need to declare it. In case someone uses the same compiler | |
3964 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3965 | # the declaration of exit, since it's the most demanding environment. | |
3966 | cat >conftest.$ac_ext <<_ACEOF | |
3967 | #ifndef __cplusplus | |
3968 | choke me | |
3969 | #endif | |
3970 | _ACEOF | |
3971 | rm -f conftest.$ac_objext | |
3972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3973 | (eval $ac_compile) 2>conftest.er1 | |
3974 | ac_status=$? | |
3975 | grep -v '^ *+' conftest.er1 >conftest.err | |
3976 | rm -f conftest.er1 | |
3977 | cat conftest.err >&5 | |
3978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3979 | (exit $ac_status); } && | |
3980 | { ac_try='test -z "$ac_c_werror_flag" | |
3981 | || test ! -s conftest.err' | |
3982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3983 | (eval $ac_try) 2>&5 | |
3984 | ac_status=$? | |
3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3986 | (exit $ac_status); }; } && | |
3987 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
3993 | for ac_declaration in \ | |
3994 | '' \ | |
3995 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3996 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3997 | 'extern "C" void exit (int) throw ();' \ | |
3998 | 'extern "C" void exit (int);' \ | |
3999 | 'void exit (int);' | |
4000 | do | |
4001 | cat >conftest.$ac_ext <<_ACEOF | |
4002 | /* confdefs.h. */ | |
4003 | _ACEOF | |
4004 | cat confdefs.h >>conftest.$ac_ext | |
4005 | cat >>conftest.$ac_ext <<_ACEOF | |
4006 | /* end confdefs.h. */ | |
4007 | $ac_declaration | |
4008 | #include <stdlib.h> | |
4009 | int | |
4010 | main () | |
4011 | { | |
4012 | exit (42); | |
4013 | ; | |
4014 | return 0; | |
4015 | } | |
4016 | _ACEOF | |
4017 | rm -f conftest.$ac_objext | |
4018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4019 | (eval $ac_compile) 2>conftest.er1 | |
4020 | ac_status=$? | |
4021 | grep -v '^ *+' conftest.er1 >conftest.err | |
4022 | rm -f conftest.er1 | |
4023 | cat conftest.err >&5 | |
4024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4025 | (exit $ac_status); } && | |
4026 | { ac_try='test -z "$ac_c_werror_flag" | |
4027 | || test ! -s conftest.err' | |
4028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4029 | (eval $ac_try) 2>&5 | |
4030 | ac_status=$? | |
4031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4032 | (exit $ac_status); }; } && | |
4033 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
4039 | : | |
4040 | else | |
4041 | echo "$as_me: failed program was:" >&5 | |
4042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4043 | ||
4044 | continue | |
4045 | fi | |
4046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4047 | cat >conftest.$ac_ext <<_ACEOF | |
4048 | /* confdefs.h. */ | |
4049 | _ACEOF | |
4050 | cat confdefs.h >>conftest.$ac_ext | |
4051 | cat >>conftest.$ac_ext <<_ACEOF | |
4052 | /* end confdefs.h. */ | |
4053 | $ac_declaration | |
4054 | int | |
4055 | main () | |
4056 | { | |
4057 | exit (42); | |
4058 | ; | |
4059 | return 0; | |
4060 | } | |
4061 | _ACEOF | |
4062 | rm -f conftest.$ac_objext | |
4063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4064 | (eval $ac_compile) 2>conftest.er1 | |
4065 | ac_status=$? | |
4066 | grep -v '^ *+' conftest.er1 >conftest.err | |
4067 | rm -f conftest.er1 | |
4068 | cat conftest.err >&5 | |
4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4070 | (exit $ac_status); } && | |
4071 | { ac_try='test -z "$ac_c_werror_flag" | |
4072 | || test ! -s conftest.err' | |
4073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4074 | (eval $ac_try) 2>&5 | |
4075 | ac_status=$? | |
4076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4077 | (exit $ac_status); }; } && | |
4078 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
4084 | break | |
4085 | else | |
4086 | echo "$as_me: failed program was:" >&5 | |
4087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4088 | ||
4089 | fi | |
4090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4091 | done | |
4092 | rm -f conftest* | |
4093 | if test -n "$ac_declaration"; then | |
4094 | echo '#ifdef __cplusplus' >>confdefs.h | |
4095 | echo $ac_declaration >>confdefs.h | |
4096 | echo '#endif' >>confdefs.h | |
4097 | fi | |
4098 | ||
4099 | else | |
4100 | echo "$as_me: failed program was:" >&5 | |
4101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4102 | ||
4103 | fi | |
4104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4105 | ac_ext=c | |
4106 | ac_cpp='$CPP $CPPFLAGS' | |
4107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
4110 | |
4111 | # Find a good install program. We prefer a C program (faster), | |
4112 | # so one script is as good as another. But avoid the broken or | |
4113 | # incompatible versions: | |
4114 | # SysV /etc/install, /usr/sbin/install | |
4115 | # SunOS /usr/etc/install | |
4116 | # IRIX /sbin/install | |
4117 | # AIX /bin/install | |
b7026657 | 4118 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c906108c SS |
4119 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4120 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4121 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b7026657 | 4122 | # OS/2's system install, which has a completely different semantic |
c906108c | 4123 | # ./install, which can be erroneously created by make from ./install.sh. |
b7026657 AC |
4124 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4125 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
c906108c | 4126 | if test -z "$INSTALL"; then |
b7026657 AC |
4127 | if test "${ac_cv_path_install+set}" = set; then |
4128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4129 | else |
b7026657 AC |
4130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4131 | for as_dir in $PATH | |
4132 | do | |
4133 | IFS=$as_save_IFS | |
4134 | test -z "$as_dir" && as_dir=. | |
4135 | # Account for people who put trailing slashes in PATH elements. | |
4136 | case $as_dir/ in | |
4137 | ./ | .// | /cC/* | \ | |
4138 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4139 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4140 | /usr/ucb/* ) ;; | |
4141 | *) | |
4142 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4143 | # Don't use installbsd from OSF since it installs stuff as root | |
4144 | # by default. | |
4145 | for ac_prog in ginstall scoinst install; do | |
4146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4147 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
c906108c | 4148 | if test $ac_prog = install && |
b7026657 | 4149 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
c906108c SS |
4150 | # AIX install. It has an incompatible calling convention. |
4151 | : | |
b7026657 AC |
4152 | elif test $ac_prog = install && |
4153 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4154 | # program-specific install script used by HP pwplus--don't use. | |
4155 | : | |
c906108c | 4156 | else |
b7026657 AC |
4157 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4158 | break 3 | |
c906108c SS |
4159 | fi |
4160 | fi | |
4161 | done | |
b7026657 AC |
4162 | done |
4163 | ;; | |
4164 | esac | |
4165 | done | |
4166 | ||
c906108c SS |
4167 | |
4168 | fi | |
4169 | if test "${ac_cv_path_install+set}" = set; then | |
b7026657 | 4170 | INSTALL=$ac_cv_path_install |
c906108c SS |
4171 | else |
4172 | # As a last resort, use the slow shell script. We don't cache a | |
4173 | # path for INSTALL within a source directory, because that will | |
4174 | # break other packages using the cache if that directory is | |
4175 | # removed, or if the path is relative. | |
b7026657 | 4176 | INSTALL=$ac_install_sh |
c906108c SS |
4177 | fi |
4178 | fi | |
b7026657 AC |
4179 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4180 | echo "${ECHO_T}$INSTALL" >&6 | |
c906108c SS |
4181 | |
4182 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4183 | # It thinks the first close brace ends the variable substitution. | |
4184 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4185 | ||
b7026657 | 4186 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
cd0fc7c3 | 4187 | |
c906108c SS |
4188 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4189 | ||
4190 | ||
4191 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
4192 | if test "x$cross_compiling" = "xno"; then | |
4193 | CC_FOR_BUILD='$(CC)' | |
4194 | else | |
4195 | CC_FOR_BUILD=gcc | |
4196 | fi | |
4197 | ||
4198 | ||
4199 | ||
4200 | ||
4201 | AR=${AR-ar} | |
4202 | ||
b7026657 AC |
4203 | if test -n "$ac_tool_prefix"; then |
4204 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4205 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4206 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4207 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4208 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
4210 | else |
4211 | if test -n "$RANLIB"; then | |
4212 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4213 | else | |
b7026657 AC |
4214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4215 | for as_dir in $PATH | |
4216 | do | |
4217 | IFS=$as_save_IFS | |
4218 | test -z "$as_dir" && as_dir=. | |
4219 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4220 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4221 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4222 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4223 | break 2 | |
4224 | fi | |
4225 | done | |
4226 | done | |
4227 | ||
4228 | fi | |
4229 | fi | |
4230 | RANLIB=$ac_cv_prog_RANLIB | |
4231 | if test -n "$RANLIB"; then | |
4232 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4233 | echo "${ECHO_T}$RANLIB" >&6 | |
4234 | else | |
4235 | echo "$as_me:$LINENO: result: no" >&5 | |
4236 | echo "${ECHO_T}no" >&6 | |
4237 | fi | |
4238 | ||
4239 | fi | |
4240 | if test -z "$ac_cv_prog_RANLIB"; then | |
4241 | ac_ct_RANLIB=$RANLIB | |
4242 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4243 | set dummy ranlib; ac_word=$2 | |
4244 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4245 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4246 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4248 | else | |
4249 | if test -n "$ac_ct_RANLIB"; then | |
4250 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4251 | else | |
4252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4253 | for as_dir in $PATH | |
4254 | do | |
4255 | IFS=$as_save_IFS | |
4256 | test -z "$as_dir" && as_dir=. | |
4257 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4258 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4259 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4261 | break 2 | |
4262 | fi | |
4263 | done | |
4264 | done | |
4265 | ||
4266 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
c906108c SS |
4267 | fi |
4268 | fi | |
b7026657 AC |
4269 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4270 | if test -n "$ac_ct_RANLIB"; then | |
4271 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4272 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4273 | else | |
4274 | echo "$as_me:$LINENO: result: no" >&5 | |
4275 | echo "${ECHO_T}no" >&6 | |
4276 | fi | |
4277 | ||
4278 | RANLIB=$ac_ct_RANLIB | |
c906108c | 4279 | else |
b7026657 | 4280 | RANLIB="$ac_cv_prog_RANLIB" |
c906108c SS |
4281 | fi |
4282 | ||
4283 | ||
4284 | ALL_LINGUAS= | |
b7026657 AC |
4285 | |
4286 | ||
4287 | ||
4288 | ||
4289 | ||
4290 | ||
4291 | ||
4292 | ||
4293 | ||
4294 | ||
4295 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
c906108c SS |
4296 | unistd.h values.h sys/param.h |
4297 | do | |
b7026657 AC |
4298 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4299 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4300 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4301 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4302 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4304 | fi | |
4305 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4306 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4307 | else | |
4308 | # Is the header compilable? | |
4309 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4310 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4311 | cat >conftest.$ac_ext <<_ACEOF | |
4312 | /* confdefs.h. */ | |
4313 | _ACEOF | |
4314 | cat confdefs.h >>conftest.$ac_ext | |
4315 | cat >>conftest.$ac_ext <<_ACEOF | |
4316 | /* end confdefs.h. */ | |
4317 | $ac_includes_default | |
4318 | #include <$ac_header> | |
4319 | _ACEOF | |
4320 | rm -f conftest.$ac_objext | |
4321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4322 | (eval $ac_compile) 2>conftest.er1 | |
4323 | ac_status=$? | |
4324 | grep -v '^ *+' conftest.er1 >conftest.err | |
4325 | rm -f conftest.er1 | |
4326 | cat conftest.err >&5 | |
4327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4328 | (exit $ac_status); } && | |
4329 | { ac_try='test -z "$ac_c_werror_flag" | |
4330 | || test ! -s conftest.err' | |
4331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4332 | (eval $ac_try) 2>&5 | |
4333 | ac_status=$? | |
4334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4335 | (exit $ac_status); }; } && | |
4336 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
4342 | ac_header_compiler=yes | |
4343 | else | |
4344 | echo "$as_me: failed program was:" >&5 | |
4345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4346 | ||
4347 | ac_header_compiler=no | |
4348 | fi | |
4349 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4350 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4351 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4352 | ||
4353 | # Is the header present? | |
4354 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4355 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4356 | cat >conftest.$ac_ext <<_ACEOF | |
4357 | /* confdefs.h. */ | |
4358 | _ACEOF | |
4359 | cat confdefs.h >>conftest.$ac_ext | |
4360 | cat >>conftest.$ac_ext <<_ACEOF | |
4361 | /* end confdefs.h. */ | |
4362 | #include <$ac_header> | |
4363 | _ACEOF | |
4364 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4365 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4366 | ac_status=$? | |
4367 | grep -v '^ *+' conftest.er1 >conftest.err | |
4368 | rm -f conftest.er1 | |
4369 | cat conftest.err >&5 | |
4370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4371 | (exit $ac_status); } >/dev/null; then | |
4372 | if test -s conftest.err; then | |
4373 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4374 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4375 | else | |
4376 | ac_cpp_err= | |
4377 | fi | |
4378 | else | |
4379 | ac_cpp_err=yes | |
c906108c | 4380 | fi |
b7026657 AC |
4381 | if test -z "$ac_cpp_err"; then |
4382 | ac_header_preproc=yes | |
4383 | else | |
4384 | echo "$as_me: failed program was:" >&5 | |
4385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4386 | ||
4387 | ac_header_preproc=no | |
c906108c | 4388 | fi |
b7026657 AC |
4389 | rm -f conftest.err conftest.$ac_ext |
4390 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4391 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4392 | ||
4393 | # So? What about this header? | |
4394 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4395 | yes:no: ) | |
4396 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4397 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4398 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4399 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4400 | ac_header_preproc=yes | |
4401 | ;; | |
4402 | no:yes:* ) | |
4403 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4404 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4405 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4406 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4407 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4408 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4409 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4410 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4411 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4412 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4413 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4414 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4415 | ( | |
4416 | cat <<\_ASBOX | |
4417 | ## ------------------------------------------ ## | |
4418 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4419 | ## ------------------------------------------ ## | |
4420 | _ASBOX | |
4421 | ) | | |
4422 | sed "s/^/$as_me: WARNING: /" >&2 | |
4423 | ;; | |
4424 | esac | |
4425 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4426 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4427 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4429 | else |
b7026657 AC |
4430 | eval "$as_ac_Header=\$ac_header_preproc" |
4431 | fi | |
4432 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4433 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4434 | ||
4435 | fi | |
4436 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4437 | cat >>confdefs.h <<_ACEOF | |
4438 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4439 | _ACEOF | |
4440 | ||
c906108c | 4441 | fi |
b7026657 | 4442 | |
c906108c SS |
4443 | done |
4444 | ||
b7026657 AC |
4445 | |
4446 | ||
4447 | ||
4448 | ||
4449 | ||
4450 | ||
4451 | ||
4452 | ||
4453 | ||
4454 | ||
4455 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
c906108c SS |
4456 | __argz_count __argz_stringify __argz_next |
4457 | do | |
b7026657 AC |
4458 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4459 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4460 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4461 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4463 | else | |
4464 | cat >conftest.$ac_ext <<_ACEOF | |
4465 | /* confdefs.h. */ | |
4466 | _ACEOF | |
4467 | cat confdefs.h >>conftest.$ac_ext | |
4468 | cat >>conftest.$ac_ext <<_ACEOF | |
4469 | /* end confdefs.h. */ | |
4470 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4471 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4472 | #define $ac_func innocuous_$ac_func | |
4473 | ||
c906108c | 4474 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4475 | which can conflict with char $ac_func (); below. |
4476 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4477 | <limits.h> exists even on freestanding compilers. */ | |
4478 | ||
4479 | #ifdef __STDC__ | |
4480 | # include <limits.h> | |
4481 | #else | |
4482 | # include <assert.h> | |
4483 | #endif | |
c906108c | 4484 | |
b7026657 | 4485 | #undef $ac_func |
c906108c | 4486 | |
b7026657 AC |
4487 | /* Override any gcc2 internal prototype to avoid an error. */ |
4488 | #ifdef __cplusplus | |
4489 | extern "C" | |
4490 | { | |
4491 | #endif | |
4492 | /* We use char because int might match the return type of a gcc2 | |
4493 | builtin and then its argument prototype would still apply. */ | |
4494 | char $ac_func (); | |
c906108c SS |
4495 | /* The GNU C library defines this for functions which it implements |
4496 | to always fail with ENOSYS. Some functions are actually named | |
4497 | something starting with __ and the normal name is an alias. */ | |
4498 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4499 | choke me | |
4500 | #else | |
b7026657 AC |
4501 | char (*f) () = $ac_func; |
4502 | #endif | |
4503 | #ifdef __cplusplus | |
4504 | } | |
c906108c SS |
4505 | #endif |
4506 | ||
b7026657 AC |
4507 | int |
4508 | main () | |
4509 | { | |
4510 | return f != $ac_func; | |
4511 | ; | |
4512 | return 0; | |
4513 | } | |
4514 | _ACEOF | |
4515 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4517 | (eval $ac_link) 2>conftest.er1 | |
4518 | ac_status=$? | |
4519 | grep -v '^ *+' conftest.er1 >conftest.err | |
4520 | rm -f conftest.er1 | |
4521 | cat conftest.err >&5 | |
4522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4523 | (exit $ac_status); } && | |
4524 | { ac_try='test -z "$ac_c_werror_flag" | |
4525 | || test ! -s conftest.err' | |
4526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4527 | (eval $ac_try) 2>&5 | |
4528 | ac_status=$? | |
4529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4530 | (exit $ac_status); }; } && | |
4531 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
4537 | eval "$as_ac_var=yes" | |
4538 | else | |
4539 | echo "$as_me: failed program was:" >&5 | |
4540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4541 | ||
4542 | eval "$as_ac_var=no" | |
4543 | fi | |
4544 | rm -f conftest.err conftest.$ac_objext \ | |
4545 | conftest$ac_exeext conftest.$ac_ext | |
4546 | fi | |
4547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4548 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4549 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4550 | cat >>confdefs.h <<_ACEOF | |
4551 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4552 | _ACEOF | |
c906108c | 4553 | |
c906108c SS |
4554 | fi |
4555 | done | |
4556 | ||
4557 | ||
4558 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
b7026657 AC |
4559 | |
4560 | for ac_func in stpcpy | |
c906108c | 4561 | do |
b7026657 AC |
4562 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4563 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4564 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4565 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4567 | else | |
4568 | cat >conftest.$ac_ext <<_ACEOF | |
4569 | /* confdefs.h. */ | |
4570 | _ACEOF | |
4571 | cat confdefs.h >>conftest.$ac_ext | |
4572 | cat >>conftest.$ac_ext <<_ACEOF | |
4573 | /* end confdefs.h. */ | |
4574 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4575 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4576 | #define $ac_func innocuous_$ac_func | |
4577 | ||
c906108c | 4578 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4579 | which can conflict with char $ac_func (); below. |
4580 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4581 | <limits.h> exists even on freestanding compilers. */ | |
4582 | ||
4583 | #ifdef __STDC__ | |
4584 | # include <limits.h> | |
4585 | #else | |
4586 | # include <assert.h> | |
4587 | #endif | |
c906108c | 4588 | |
b7026657 | 4589 | #undef $ac_func |
c906108c | 4590 | |
b7026657 AC |
4591 | /* Override any gcc2 internal prototype to avoid an error. */ |
4592 | #ifdef __cplusplus | |
4593 | extern "C" | |
4594 | { | |
4595 | #endif | |
4596 | /* We use char because int might match the return type of a gcc2 | |
4597 | builtin and then its argument prototype would still apply. */ | |
4598 | char $ac_func (); | |
c906108c SS |
4599 | /* The GNU C library defines this for functions which it implements |
4600 | to always fail with ENOSYS. Some functions are actually named | |
4601 | something starting with __ and the normal name is an alias. */ | |
4602 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4603 | choke me | |
4604 | #else | |
b7026657 AC |
4605 | char (*f) () = $ac_func; |
4606 | #endif | |
4607 | #ifdef __cplusplus | |
4608 | } | |
c906108c SS |
4609 | #endif |
4610 | ||
b7026657 AC |
4611 | int |
4612 | main () | |
4613 | { | |
4614 | return f != $ac_func; | |
4615 | ; | |
4616 | return 0; | |
4617 | } | |
4618 | _ACEOF | |
4619 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4621 | (eval $ac_link) 2>conftest.er1 | |
4622 | ac_status=$? | |
4623 | grep -v '^ *+' conftest.er1 >conftest.err | |
4624 | rm -f conftest.er1 | |
4625 | cat conftest.err >&5 | |
4626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4627 | (exit $ac_status); } && | |
4628 | { ac_try='test -z "$ac_c_werror_flag" | |
4629 | || test ! -s conftest.err' | |
4630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4631 | (eval $ac_try) 2>&5 | |
4632 | ac_status=$? | |
4633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4634 | (exit $ac_status); }; } && | |
4635 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
4641 | eval "$as_ac_var=yes" | |
4642 | else | |
4643 | echo "$as_me: failed program was:" >&5 | |
4644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4645 | ||
4646 | eval "$as_ac_var=no" | |
4647 | fi | |
4648 | rm -f conftest.err conftest.$ac_objext \ | |
4649 | conftest$ac_exeext conftest.$ac_ext | |
4650 | fi | |
4651 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4652 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4653 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4654 | cat >>confdefs.h <<_ACEOF | |
4655 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4656 | _ACEOF | |
c906108c | 4657 | |
c906108c SS |
4658 | fi |
4659 | done | |
4660 | ||
4661 | fi | |
4662 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
b7026657 | 4663 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4664 | #define HAVE_STPCPY 1 |
b7026657 | 4665 | _ACEOF |
c906108c SS |
4666 | |
4667 | fi | |
4668 | ||
4669 | if test $ac_cv_header_locale_h = yes; then | |
b7026657 AC |
4670 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
4671 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
4672 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
4673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4674 | else | |
4675 | cat >conftest.$ac_ext <<_ACEOF | |
4676 | /* confdefs.h. */ | |
4677 | _ACEOF | |
4678 | cat confdefs.h >>conftest.$ac_ext | |
4679 | cat >>conftest.$ac_ext <<_ACEOF | |
4680 | /* end confdefs.h. */ | |
c906108c | 4681 | #include <locale.h> |
b7026657 AC |
4682 | int |
4683 | main () | |
4684 | { | |
c906108c | 4685 | return LC_MESSAGES |
b7026657 AC |
4686 | ; |
4687 | return 0; | |
4688 | } | |
4689 | _ACEOF | |
4690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4692 | (eval $ac_link) 2>conftest.er1 | |
4693 | ac_status=$? | |
4694 | grep -v '^ *+' conftest.er1 >conftest.err | |
4695 | rm -f conftest.er1 | |
4696 | cat conftest.err >&5 | |
4697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4698 | (exit $ac_status); } && | |
4699 | { ac_try='test -z "$ac_c_werror_flag" | |
4700 | || test ! -s conftest.err' | |
4701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4702 | (eval $ac_try) 2>&5 | |
4703 | ac_status=$? | |
4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4705 | (exit $ac_status); }; } && | |
4706 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
c906108c SS |
4712 | am_cv_val_LC_MESSAGES=yes |
4713 | else | |
b7026657 AC |
4714 | echo "$as_me: failed program was:" >&5 |
4715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4716 | ||
4717 | am_cv_val_LC_MESSAGES=no | |
c906108c | 4718 | fi |
b7026657 AC |
4719 | rm -f conftest.err conftest.$ac_objext \ |
4720 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 4721 | fi |
b7026657 AC |
4722 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
4723 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
c906108c | 4724 | if test $am_cv_val_LC_MESSAGES = yes; then |
b7026657 | 4725 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4726 | #define HAVE_LC_MESSAGES 1 |
b7026657 | 4727 | _ACEOF |
c906108c SS |
4728 | |
4729 | fi | |
4730 | fi | |
b7026657 AC |
4731 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
4732 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
c906108c SS |
4733 | # Check whether --enable-nls or --disable-nls was given. |
4734 | if test "${enable_nls+set}" = set; then | |
4735 | enableval="$enable_nls" | |
4736 | USE_NLS=$enableval | |
4737 | else | |
4738 | USE_NLS=yes | |
b7026657 AC |
4739 | fi; |
4740 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
4741 | echo "${ECHO_T}$USE_NLS" >&6 | |
c906108c | 4742 | |
c906108c SS |
4743 | |
4744 | USE_INCLUDED_LIBINTL=no | |
4745 | ||
4746 | if test "$USE_NLS" = "yes"; then | |
b7026657 | 4747 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4748 | #define ENABLE_NLS 1 |
b7026657 | 4749 | _ACEOF |
c906108c | 4750 | |
b7026657 AC |
4751 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
4752 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
4753 | ||
4754 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
c906108c SS |
4755 | if test "${with_included_gettext+set}" = set; then |
4756 | withval="$with_included_gettext" | |
4757 | nls_cv_force_use_gnu_gettext=$withval | |
4758 | else | |
4759 | nls_cv_force_use_gnu_gettext=no | |
b7026657 AC |
4760 | fi; |
4761 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
4762 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
c906108c SS |
4763 | |
4764 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
4765 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
4766 | nls_cv_header_intl= | |
4767 | nls_cv_header_libgt= | |
4768 | CATOBJEXT=NONE | |
4769 | ||
b7026657 AC |
4770 | if test "${ac_cv_header_libintl_h+set}" = set; then |
4771 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4772 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4773 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4775 | fi | |
4776 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4777 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4778 | else | |
4779 | # Is the header compilable? | |
4780 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
4781 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
4782 | cat >conftest.$ac_ext <<_ACEOF | |
4783 | /* confdefs.h. */ | |
4784 | _ACEOF | |
4785 | cat confdefs.h >>conftest.$ac_ext | |
4786 | cat >>conftest.$ac_ext <<_ACEOF | |
4787 | /* end confdefs.h. */ | |
4788 | $ac_includes_default | |
c906108c | 4789 | #include <libintl.h> |
b7026657 AC |
4790 | _ACEOF |
4791 | rm -f conftest.$ac_objext | |
4792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4793 | (eval $ac_compile) 2>conftest.er1 | |
4794 | ac_status=$? | |
4795 | grep -v '^ *+' conftest.er1 >conftest.err | |
4796 | rm -f conftest.er1 | |
4797 | cat conftest.err >&5 | |
4798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4799 | (exit $ac_status); } && | |
4800 | { ac_try='test -z "$ac_c_werror_flag" | |
4801 | || test ! -s conftest.err' | |
4802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4803 | (eval $ac_try) 2>&5 | |
4804 | ac_status=$? | |
4805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4806 | (exit $ac_status); }; } && | |
4807 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
4813 | ac_header_compiler=yes | |
4814 | else | |
4815 | echo "$as_me: failed program was:" >&5 | |
4816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4817 | ||
4818 | ac_header_compiler=no | |
4819 | fi | |
4820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4821 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4822 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4823 | ||
4824 | # Is the header present? | |
4825 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
4826 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
4827 | cat >conftest.$ac_ext <<_ACEOF | |
4828 | /* confdefs.h. */ | |
4829 | _ACEOF | |
4830 | cat confdefs.h >>conftest.$ac_ext | |
4831 | cat >>conftest.$ac_ext <<_ACEOF | |
4832 | /* end confdefs.h. */ | |
4833 | #include <libintl.h> | |
4834 | _ACEOF | |
4835 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4836 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4837 | ac_status=$? | |
4838 | grep -v '^ *+' conftest.er1 >conftest.err | |
4839 | rm -f conftest.er1 | |
4840 | cat conftest.err >&5 | |
4841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4842 | (exit $ac_status); } >/dev/null; then | |
4843 | if test -s conftest.err; then | |
4844 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4845 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4846 | else | |
4847 | ac_cpp_err= | |
4848 | fi | |
4849 | else | |
4850 | ac_cpp_err=yes | |
c906108c | 4851 | fi |
b7026657 AC |
4852 | if test -z "$ac_cpp_err"; then |
4853 | ac_header_preproc=yes | |
4854 | else | |
4855 | echo "$as_me: failed program was:" >&5 | |
4856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4857 | ||
4858 | ac_header_preproc=no | |
4859 | fi | |
4860 | rm -f conftest.err conftest.$ac_ext | |
4861 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4862 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4863 | ||
4864 | # So? What about this header? | |
4865 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4866 | yes:no: ) | |
4867 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4868 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4869 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
4870 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
4871 | ac_header_preproc=yes | |
4872 | ;; | |
4873 | no:yes:* ) | |
4874 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
4875 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
4876 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
4877 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
4878 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
4879 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
4880 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4881 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4882 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
4883 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
4884 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
4885 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
4886 | ( | |
4887 | cat <<\_ASBOX | |
4888 | ## ------------------------------------------ ## | |
4889 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4890 | ## ------------------------------------------ ## | |
4891 | _ASBOX | |
4892 | ) | | |
4893 | sed "s/^/$as_me: WARNING: /" >&2 | |
4894 | ;; | |
4895 | esac | |
4896 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4897 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4898 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4900 | else | |
4901 | ac_cv_header_libintl_h=$ac_header_preproc | |
4902 | fi | |
4903 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4904 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4905 | ||
c906108c | 4906 | fi |
b7026657 AC |
4907 | if test $ac_cv_header_libintl_h = yes; then |
4908 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
4909 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
4910 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
4911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4912 | else |
b7026657 AC |
4913 | cat >conftest.$ac_ext <<_ACEOF |
4914 | /* confdefs.h. */ | |
4915 | _ACEOF | |
4916 | cat confdefs.h >>conftest.$ac_ext | |
4917 | cat >>conftest.$ac_ext <<_ACEOF | |
4918 | /* end confdefs.h. */ | |
c906108c | 4919 | #include <libintl.h> |
b7026657 AC |
4920 | int |
4921 | main () | |
4922 | { | |
c906108c | 4923 | return (int) gettext ("") |
b7026657 AC |
4924 | ; |
4925 | return 0; | |
4926 | } | |
4927 | _ACEOF | |
4928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4930 | (eval $ac_link) 2>conftest.er1 | |
4931 | ac_status=$? | |
4932 | grep -v '^ *+' conftest.er1 >conftest.err | |
4933 | rm -f conftest.er1 | |
4934 | cat conftest.err >&5 | |
4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4936 | (exit $ac_status); } && | |
4937 | { ac_try='test -z "$ac_c_werror_flag" | |
4938 | || test ! -s conftest.err' | |
4939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4940 | (eval $ac_try) 2>&5 | |
4941 | ac_status=$? | |
4942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4943 | (exit $ac_status); }; } && | |
4944 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
c906108c SS |
4950 | gt_cv_func_gettext_libc=yes |
4951 | else | |
b7026657 AC |
4952 | echo "$as_me: failed program was:" >&5 |
4953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4954 | ||
4955 | gt_cv_func_gettext_libc=no | |
c906108c | 4956 | fi |
b7026657 AC |
4957 | rm -f conftest.err conftest.$ac_objext \ |
4958 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 4959 | fi |
b7026657 AC |
4960 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
4961 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
c906108c SS |
4962 | |
4963 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
b7026657 AC |
4964 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
4965 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
4966 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
4967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4968 | else |
b7026657 | 4969 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 4970 | LIBS="-lintl $LIBS" |
b7026657 AC |
4971 | cat >conftest.$ac_ext <<_ACEOF |
4972 | /* confdefs.h. */ | |
4973 | _ACEOF | |
4974 | cat confdefs.h >>conftest.$ac_ext | |
4975 | cat >>conftest.$ac_ext <<_ACEOF | |
4976 | /* end confdefs.h. */ | |
4977 | ||
c906108c | 4978 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
4979 | #ifdef __cplusplus |
4980 | extern "C" | |
4981 | #endif | |
c906108c | 4982 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
4983 | builtin and then its argument prototype would still apply. */ |
4984 | char bindtextdomain (); | |
4985 | int | |
4986 | main () | |
4987 | { | |
4988 | bindtextdomain (); | |
4989 | ; | |
4990 | return 0; | |
4991 | } | |
4992 | _ACEOF | |
4993 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4995 | (eval $ac_link) 2>conftest.er1 | |
4996 | ac_status=$? | |
4997 | grep -v '^ *+' conftest.er1 >conftest.err | |
4998 | rm -f conftest.er1 | |
4999 | cat conftest.err >&5 | |
5000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5001 | (exit $ac_status); } && | |
5002 | { ac_try='test -z "$ac_c_werror_flag" | |
5003 | || test ! -s conftest.err' | |
5004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5005 | (eval $ac_try) 2>&5 | |
5006 | ac_status=$? | |
5007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5008 | (exit $ac_status); }; } && | |
5009 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
5015 | ac_cv_lib_intl_bindtextdomain=yes | |
5016 | else | |
5017 | echo "$as_me: failed program was:" >&5 | |
5018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5019 | ||
5020 | ac_cv_lib_intl_bindtextdomain=no | |
5021 | fi | |
5022 | rm -f conftest.err conftest.$ac_objext \ | |
5023 | conftest$ac_exeext conftest.$ac_ext | |
5024 | LIBS=$ac_check_lib_save_LIBS | |
5025 | fi | |
5026 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
5027 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
5028 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
5029 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
5030 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
5031 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
5032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5033 | else | |
5034 | cat >conftest.$ac_ext <<_ACEOF | |
5035 | /* confdefs.h. */ | |
5036 | _ACEOF | |
5037 | cat confdefs.h >>conftest.$ac_ext | |
5038 | cat >>conftest.$ac_ext <<_ACEOF | |
5039 | /* end confdefs.h. */ | |
c906108c | 5040 | |
b7026657 AC |
5041 | int |
5042 | main () | |
5043 | { | |
c906108c | 5044 | return (int) gettext ("") |
b7026657 AC |
5045 | ; |
5046 | return 0; | |
5047 | } | |
5048 | _ACEOF | |
5049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5051 | (eval $ac_link) 2>conftest.er1 | |
5052 | ac_status=$? | |
5053 | grep -v '^ *+' conftest.er1 >conftest.err | |
5054 | rm -f conftest.er1 | |
5055 | cat conftest.err >&5 | |
5056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5057 | (exit $ac_status); } && | |
5058 | { ac_try='test -z "$ac_c_werror_flag" | |
5059 | || test ! -s conftest.err' | |
5060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5061 | (eval $ac_try) 2>&5 | |
5062 | ac_status=$? | |
5063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5064 | (exit $ac_status); }; } && | |
5065 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
c906108c SS |
5071 | gt_cv_func_gettext_libintl=yes |
5072 | else | |
b7026657 AC |
5073 | echo "$as_me: failed program was:" >&5 |
5074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5075 | ||
5076 | gt_cv_func_gettext_libintl=no | |
c906108c | 5077 | fi |
b7026657 AC |
5078 | rm -f conftest.err conftest.$ac_objext \ |
5079 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 5080 | fi |
b7026657 AC |
5081 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
5082 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
c906108c SS |
5083 | fi |
5084 | ||
5085 | fi | |
5086 | ||
5087 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
5088 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
b7026657 | 5089 | cat >>confdefs.h <<\_ACEOF |
c906108c | 5090 | #define HAVE_GETTEXT 1 |
b7026657 | 5091 | _ACEOF |
c906108c SS |
5092 | |
5093 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5094 | set dummy msgfmt; ac_word=$2 | |
b7026657 AC |
5095 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5097 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5099 | else |
5100 | case "$MSGFMT" in | |
5101 | /*) | |
5102 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5103 | ;; | |
5104 | *) | |
5105 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5106 | for ac_dir in $PATH; do | |
5107 | test -z "$ac_dir" && ac_dir=. | |
5108 | if test -f $ac_dir/$ac_word; then | |
5109 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5110 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5111 | break | |
5112 | fi | |
5113 | fi | |
5114 | done | |
5115 | IFS="$ac_save_ifs" | |
5116 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
5117 | ;; | |
5118 | esac | |
5119 | fi | |
5120 | MSGFMT="$ac_cv_path_MSGFMT" | |
5121 | if test -n "$MSGFMT"; then | |
b7026657 AC |
5122 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5123 | echo "${ECHO_T}$MSGFMT" >&6 | |
c906108c | 5124 | else |
b7026657 AC |
5125 | echo "$as_me:$LINENO: result: no" >&5 |
5126 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5127 | fi |
5128 | if test "$MSGFMT" != "no"; then | |
b7026657 AC |
5129 | |
5130 | for ac_func in dcgettext | |
c906108c | 5131 | do |
b7026657 AC |
5132 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5133 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5134 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5135 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5137 | else | |
5138 | cat >conftest.$ac_ext <<_ACEOF | |
5139 | /* confdefs.h. */ | |
5140 | _ACEOF | |
5141 | cat confdefs.h >>conftest.$ac_ext | |
5142 | cat >>conftest.$ac_ext <<_ACEOF | |
5143 | /* end confdefs.h. */ | |
5144 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5145 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5146 | #define $ac_func innocuous_$ac_func | |
5147 | ||
c906108c | 5148 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
5149 | which can conflict with char $ac_func (); below. |
5150 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5151 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 5152 | |
b7026657 AC |
5153 | #ifdef __STDC__ |
5154 | # include <limits.h> | |
5155 | #else | |
5156 | # include <assert.h> | |
5157 | #endif | |
c906108c | 5158 | |
b7026657 AC |
5159 | #undef $ac_func |
5160 | ||
5161 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5162 | #ifdef __cplusplus | |
5163 | extern "C" | |
5164 | { | |
5165 | #endif | |
5166 | /* We use char because int might match the return type of a gcc2 | |
5167 | builtin and then its argument prototype would still apply. */ | |
5168 | char $ac_func (); | |
c906108c SS |
5169 | /* The GNU C library defines this for functions which it implements |
5170 | to always fail with ENOSYS. Some functions are actually named | |
5171 | something starting with __ and the normal name is an alias. */ | |
5172 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5173 | choke me | |
5174 | #else | |
b7026657 AC |
5175 | char (*f) () = $ac_func; |
5176 | #endif | |
5177 | #ifdef __cplusplus | |
5178 | } | |
c906108c SS |
5179 | #endif |
5180 | ||
b7026657 AC |
5181 | int |
5182 | main () | |
5183 | { | |
5184 | return f != $ac_func; | |
5185 | ; | |
5186 | return 0; | |
5187 | } | |
5188 | _ACEOF | |
5189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5191 | (eval $ac_link) 2>conftest.er1 | |
5192 | ac_status=$? | |
5193 | grep -v '^ *+' conftest.er1 >conftest.err | |
5194 | rm -f conftest.er1 | |
5195 | cat conftest.err >&5 | |
5196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5197 | (exit $ac_status); } && | |
5198 | { ac_try='test -z "$ac_c_werror_flag" | |
5199 | || test ! -s conftest.err' | |
5200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5201 | (eval $ac_try) 2>&5 | |
5202 | ac_status=$? | |
5203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5204 | (exit $ac_status); }; } && | |
5205 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
5211 | eval "$as_ac_var=yes" | |
5212 | else | |
5213 | echo "$as_me: failed program was:" >&5 | |
5214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5215 | ||
5216 | eval "$as_ac_var=no" | |
5217 | fi | |
5218 | rm -f conftest.err conftest.$ac_objext \ | |
5219 | conftest$ac_exeext conftest.$ac_ext | |
5220 | fi | |
5221 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5222 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5223 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5224 | cat >>confdefs.h <<_ACEOF | |
5225 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5226 | _ACEOF | |
c906108c | 5227 | |
c906108c SS |
5228 | fi |
5229 | done | |
5230 | ||
5231 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5232 | set dummy gmsgfmt; ac_word=$2 | |
b7026657 AC |
5233 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5235 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 5237 | else |
b7026657 AC |
5238 | case $GMSGFMT in |
5239 | [\\/]* | ?:[\\/]*) | |
c906108c SS |
5240 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5241 | ;; | |
c906108c | 5242 | *) |
b7026657 AC |
5243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5244 | for as_dir in $PATH | |
5245 | do | |
5246 | IFS=$as_save_IFS | |
5247 | test -z "$as_dir" && as_dir=. | |
5248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5249 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5250 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5251 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5252 | break 2 | |
5253 | fi | |
5254 | done | |
5255 | done | |
5256 | ||
c906108c SS |
5257 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5258 | ;; | |
5259 | esac | |
5260 | fi | |
b7026657 AC |
5261 | GMSGFMT=$ac_cv_path_GMSGFMT |
5262 | ||
c906108c | 5263 | if test -n "$GMSGFMT"; then |
b7026657 AC |
5264 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5265 | echo "${ECHO_T}$GMSGFMT" >&6 | |
c906108c | 5266 | else |
b7026657 AC |
5267 | echo "$as_me:$LINENO: result: no" >&5 |
5268 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5269 | fi |
5270 | ||
5271 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5272 | set dummy xgettext; ac_word=$2 | |
b7026657 AC |
5273 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5274 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5275 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5277 | else |
5278 | case "$XGETTEXT" in | |
5279 | /*) | |
5280 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5281 | ;; | |
5282 | *) | |
5283 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5284 | for ac_dir in $PATH; do | |
5285 | test -z "$ac_dir" && ac_dir=. | |
5286 | if test -f $ac_dir/$ac_word; then | |
5287 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5288 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5289 | break | |
5290 | fi | |
5291 | fi | |
5292 | done | |
5293 | IFS="$ac_save_ifs" | |
5294 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5295 | ;; | |
5296 | esac | |
5297 | fi | |
5298 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5299 | if test -n "$XGETTEXT"; then | |
b7026657 AC |
5300 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5301 | echo "${ECHO_T}$XGETTEXT" >&6 | |
c906108c | 5302 | else |
b7026657 AC |
5303 | echo "$as_me:$LINENO: result: no" >&5 |
5304 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5305 | fi |
5306 | ||
b7026657 AC |
5307 | cat >conftest.$ac_ext <<_ACEOF |
5308 | /* confdefs.h. */ | |
5309 | _ACEOF | |
5310 | cat confdefs.h >>conftest.$ac_ext | |
5311 | cat >>conftest.$ac_ext <<_ACEOF | |
5312 | /* end confdefs.h. */ | |
c906108c | 5313 | |
b7026657 AC |
5314 | int |
5315 | main () | |
5316 | { | |
c906108c SS |
5317 | extern int _nl_msg_cat_cntr; |
5318 | return _nl_msg_cat_cntr | |
b7026657 AC |
5319 | ; |
5320 | return 0; | |
5321 | } | |
5322 | _ACEOF | |
5323 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5325 | (eval $ac_link) 2>conftest.er1 | |
5326 | ac_status=$? | |
5327 | grep -v '^ *+' conftest.er1 >conftest.err | |
5328 | rm -f conftest.er1 | |
5329 | cat conftest.err >&5 | |
5330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5331 | (exit $ac_status); } && | |
5332 | { ac_try='test -z "$ac_c_werror_flag" | |
5333 | || test ! -s conftest.err' | |
5334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5335 | (eval $ac_try) 2>&5 | |
5336 | ac_status=$? | |
5337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5338 | (exit $ac_status); }; } && | |
5339 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
c906108c SS |
5345 | CATOBJEXT=.gmo |
5346 | DATADIRNAME=share | |
5347 | else | |
b7026657 AC |
5348 | echo "$as_me: failed program was:" >&5 |
5349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5350 | ||
5351 | CATOBJEXT=.mo | |
c906108c SS |
5352 | DATADIRNAME=lib |
5353 | fi | |
b7026657 AC |
5354 | rm -f conftest.err conftest.$ac_objext \ |
5355 | conftest$ac_exeext conftest.$ac_ext | |
c906108c SS |
5356 | INSTOBJEXT=.mo |
5357 | fi | |
5358 | fi | |
b7026657 | 5359 | |
c906108c SS |
5360 | fi |
5361 | ||
5362 | ||
b7026657 AC |
5363 | |
5364 | ||
c906108c SS |
5365 | if test "$CATOBJEXT" = "NONE"; then |
5366 | nls_cv_use_gnu_gettext=yes | |
5367 | fi | |
5368 | fi | |
5369 | ||
5370 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
5371 | INTLOBJS="\$(GETTOBJS)" | |
5372 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5373 | set dummy msgfmt; ac_word=$2 | |
b7026657 AC |
5374 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5376 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5378 | else |
5379 | case "$MSGFMT" in | |
5380 | /*) | |
5381 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5382 | ;; | |
5383 | *) | |
5384 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5385 | for ac_dir in $PATH; do | |
5386 | test -z "$ac_dir" && ac_dir=. | |
5387 | if test -f $ac_dir/$ac_word; then | |
5388 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5389 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5390 | break | |
5391 | fi | |
5392 | fi | |
5393 | done | |
5394 | IFS="$ac_save_ifs" | |
5395 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
5396 | ;; | |
5397 | esac | |
5398 | fi | |
5399 | MSGFMT="$ac_cv_path_MSGFMT" | |
5400 | if test -n "$MSGFMT"; then | |
b7026657 AC |
5401 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5402 | echo "${ECHO_T}$MSGFMT" >&6 | |
c906108c | 5403 | else |
b7026657 AC |
5404 | echo "$as_me:$LINENO: result: no" >&5 |
5405 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5406 | fi |
5407 | ||
5408 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5409 | set dummy gmsgfmt; ac_word=$2 | |
b7026657 AC |
5410 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5411 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5412 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 5414 | else |
b7026657 AC |
5415 | case $GMSGFMT in |
5416 | [\\/]* | ?:[\\/]*) | |
c906108c SS |
5417 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5418 | ;; | |
c906108c | 5419 | *) |
b7026657 AC |
5420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5421 | for as_dir in $PATH | |
5422 | do | |
5423 | IFS=$as_save_IFS | |
5424 | test -z "$as_dir" && as_dir=. | |
5425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5426 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5427 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5428 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5429 | break 2 | |
5430 | fi | |
5431 | done | |
5432 | done | |
5433 | ||
c906108c SS |
5434 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5435 | ;; | |
5436 | esac | |
5437 | fi | |
b7026657 AC |
5438 | GMSGFMT=$ac_cv_path_GMSGFMT |
5439 | ||
c906108c | 5440 | if test -n "$GMSGFMT"; then |
b7026657 AC |
5441 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5442 | echo "${ECHO_T}$GMSGFMT" >&6 | |
c906108c | 5443 | else |
b7026657 AC |
5444 | echo "$as_me:$LINENO: result: no" >&5 |
5445 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5446 | fi |
5447 | ||
5448 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5449 | set dummy xgettext; ac_word=$2 | |
b7026657 AC |
5450 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5451 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5452 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5454 | else |
5455 | case "$XGETTEXT" in | |
5456 | /*) | |
5457 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5458 | ;; | |
5459 | *) | |
5460 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5461 | for ac_dir in $PATH; do | |
5462 | test -z "$ac_dir" && ac_dir=. | |
5463 | if test -f $ac_dir/$ac_word; then | |
5464 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5465 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5466 | break | |
5467 | fi | |
5468 | fi | |
5469 | done | |
5470 | IFS="$ac_save_ifs" | |
5471 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5472 | ;; | |
5473 | esac | |
5474 | fi | |
5475 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5476 | if test -n "$XGETTEXT"; then | |
b7026657 AC |
5477 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5478 | echo "${ECHO_T}$XGETTEXT" >&6 | |
c906108c | 5479 | else |
b7026657 AC |
5480 | echo "$as_me:$LINENO: result: no" >&5 |
5481 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5482 | fi |
5483 | ||
b7026657 | 5484 | |
c906108c SS |
5485 | USE_INCLUDED_LIBINTL=yes |
5486 | CATOBJEXT=.gmo | |
5487 | INSTOBJEXT=.mo | |
5488 | DATADIRNAME=share | |
5489 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
5490 | INTLLIBS=$INTLDEPS | |
5491 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
5492 | nls_cv_header_intl=libintl.h | |
5493 | nls_cv_header_libgt=libgettext.h | |
5494 | fi | |
5495 | ||
5496 | if test "$XGETTEXT" != ":"; then | |
5497 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
5498 | : ; | |
5499 | else | |
b7026657 AC |
5500 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
5501 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
c906108c SS |
5502 | XGETTEXT=":" |
5503 | fi | |
5504 | fi | |
5505 | ||
5506 | # We need to process the po/ directory. | |
5507 | POSUB=po | |
5508 | else | |
5509 | DATADIRNAME=share | |
5510 | nls_cv_header_intl=libintl.h | |
5511 | nls_cv_header_libgt=libgettext.h | |
5512 | fi | |
5513 | ||
5514 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
5515 | # because some of the sources are only built for this goal. | |
5516 | if test "$PACKAGE" = gettext; then | |
5517 | USE_NLS=yes | |
5518 | USE_INCLUDED_LIBINTL=yes | |
5519 | fi | |
5520 | ||
5521 | for lang in $ALL_LINGUAS; do | |
5522 | GMOFILES="$GMOFILES $lang.gmo" | |
5523 | POFILES="$POFILES $lang.po" | |
5524 | done | |
5525 | ||
b7026657 AC |
5526 | |
5527 | ||
5528 | ||
5529 | ||
5530 | ||
5531 | ||
5532 | ||
5533 | ||
5534 | ||
5535 | ||
5536 | ||
5537 | ||
c906108c SS |
5538 | |
5539 | if test "x$CATOBJEXT" != "x"; then | |
5540 | if test "x$ALL_LINGUAS" = "x"; then | |
5541 | LINGUAS= | |
5542 | else | |
b7026657 AC |
5543 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
5544 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
c906108c SS |
5545 | NEW_LINGUAS= |
5546 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
5547 | case "$ALL_LINGUAS" in | |
5548 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
5549 | esac | |
5550 | done | |
5551 | LINGUAS=$NEW_LINGUAS | |
b7026657 AC |
5552 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
5553 | echo "${ECHO_T}$LINGUAS" >&6 | |
c906108c SS |
5554 | fi |
5555 | ||
5556 | if test -n "$LINGUAS"; then | |
5557 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
5558 | fi | |
5559 | fi | |
5560 | ||
5561 | if test $ac_cv_header_locale_h = yes; then | |
5562 | INCLUDE_LOCALE_H="#include <locale.h>" | |
5563 | else | |
5564 | INCLUDE_LOCALE_H="\ | |
5565 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
5566 | fi | |
b7026657 | 5567 | |
c906108c SS |
5568 | |
5569 | if test -f $srcdir/po2tbl.sed.in; then | |
5570 | if test "$CATOBJEXT" = ".cat"; then | |
b7026657 AC |
5571 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
5572 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5573 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5574 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5576 | fi | |
5577 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5578 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5579 | else | |
5580 | # Is the header compilable? | |
5581 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
5582 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
5583 | cat >conftest.$ac_ext <<_ACEOF | |
5584 | /* confdefs.h. */ | |
5585 | _ACEOF | |
5586 | cat confdefs.h >>conftest.$ac_ext | |
5587 | cat >>conftest.$ac_ext <<_ACEOF | |
5588 | /* end confdefs.h. */ | |
5589 | $ac_includes_default | |
c906108c | 5590 | #include <linux/version.h> |
b7026657 AC |
5591 | _ACEOF |
5592 | rm -f conftest.$ac_objext | |
5593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5594 | (eval $ac_compile) 2>conftest.er1 | |
5595 | ac_status=$? | |
5596 | grep -v '^ *+' conftest.er1 >conftest.err | |
5597 | rm -f conftest.er1 | |
5598 | cat conftest.err >&5 | |
5599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5600 | (exit $ac_status); } && | |
5601 | { ac_try='test -z "$ac_c_werror_flag" | |
5602 | || test ! -s conftest.err' | |
5603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5604 | (eval $ac_try) 2>&5 | |
5605 | ac_status=$? | |
5606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5607 | (exit $ac_status); }; } && | |
5608 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
5614 | ac_header_compiler=yes | |
5615 | else | |
5616 | echo "$as_me: failed program was:" >&5 | |
5617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5618 | ||
5619 | ac_header_compiler=no | |
5620 | fi | |
5621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5622 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5623 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5624 | ||
5625 | # Is the header present? | |
5626 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
5627 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
5628 | cat >conftest.$ac_ext <<_ACEOF | |
5629 | /* confdefs.h. */ | |
5630 | _ACEOF | |
5631 | cat confdefs.h >>conftest.$ac_ext | |
5632 | cat >>conftest.$ac_ext <<_ACEOF | |
5633 | /* end confdefs.h. */ | |
5634 | #include <linux/version.h> | |
5635 | _ACEOF | |
5636 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5637 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5638 | ac_status=$? | |
5639 | grep -v '^ *+' conftest.er1 >conftest.err | |
5640 | rm -f conftest.er1 | |
5641 | cat conftest.err >&5 | |
5642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5643 | (exit $ac_status); } >/dev/null; then | |
5644 | if test -s conftest.err; then | |
5645 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5646 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5647 | else | |
5648 | ac_cpp_err= | |
5649 | fi | |
5650 | else | |
5651 | ac_cpp_err=yes | |
c906108c | 5652 | fi |
b7026657 AC |
5653 | if test -z "$ac_cpp_err"; then |
5654 | ac_header_preproc=yes | |
5655 | else | |
5656 | echo "$as_me: failed program was:" >&5 | |
5657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5658 | ||
5659 | ac_header_preproc=no | |
5660 | fi | |
5661 | rm -f conftest.err conftest.$ac_ext | |
5662 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5663 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5664 | ||
5665 | # So? What about this header? | |
5666 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5667 | yes:no: ) | |
5668 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5669 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5670 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
5671 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
5672 | ac_header_preproc=yes | |
5673 | ;; | |
5674 | no:yes:* ) | |
5675 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
5676 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
5677 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
5678 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
5679 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
5680 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
5681 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5682 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5683 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
5684 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
5685 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
5686 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
5687 | ( | |
5688 | cat <<\_ASBOX | |
5689 | ## ------------------------------------------ ## | |
5690 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5691 | ## ------------------------------------------ ## | |
5692 | _ASBOX | |
5693 | ) | | |
5694 | sed "s/^/$as_me: WARNING: /" >&2 | |
5695 | ;; | |
5696 | esac | |
5697 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5698 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5699 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5701 | else | |
5702 | ac_cv_header_linux_version_h=$ac_header_preproc | |
5703 | fi | |
5704 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5705 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5706 | ||
c906108c | 5707 | fi |
b7026657 | 5708 | if test $ac_cv_header_linux_version_h = yes; then |
c906108c SS |
5709 | msgformat=linux |
5710 | else | |
b7026657 | 5711 | msgformat=xopen |
c906108c SS |
5712 | fi |
5713 | ||
5714 | ||
b7026657 | 5715 | |
c906108c SS |
5716 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
5717 | fi | |
5718 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
5719 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
5720 | fi | |
5721 | ||
5722 | if test "$PACKAGE" = "gettext"; then | |
5723 | GT_NO="#NO#" | |
5724 | GT_YES= | |
5725 | else | |
5726 | GT_NO= | |
5727 | GT_YES="#YES#" | |
5728 | fi | |
b7026657 AC |
5729 | |
5730 | ||
c906108c SS |
5731 | |
5732 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
b7026657 | 5733 | |
c906108c SS |
5734 | |
5735 | l= | |
b7026657 | 5736 | |
c906108c SS |
5737 | |
5738 | if test -d $srcdir/po; then | |
5739 | test -d po || mkdir po | |
5740 | if test "x$srcdir" != "x."; then | |
5741 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
5742 | posrcprefix="$srcdir/" | |
5743 | else | |
5744 | posrcprefix="../$srcdir/" | |
5745 | fi | |
5746 | else | |
5747 | posrcprefix="../" | |
5748 | fi | |
5749 | rm -f po/POTFILES | |
5750 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
5751 | < $srcdir/po/POTFILES.in > po/POTFILES | |
5752 | fi | |
b7026657 | 5753 | |
c906108c SS |
5754 | |
5755 | # Check for common headers. | |
5756 | # FIXME: Seems to me this can cause problems for i386-windows hosts. | |
5757 | # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*. | |
b7026657 AC |
5758 | |
5759 | ||
5760 | ||
5761 | ||
5762 | ||
5763 | for ac_header in stdlib.h string.h strings.h unistd.h time.h | |
c906108c | 5764 | do |
b7026657 AC |
5765 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5766 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5767 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5771 | fi | |
5772 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5773 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5774 | else | |
5775 | # Is the header compilable? | |
5776 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5777 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5778 | cat >conftest.$ac_ext <<_ACEOF | |
5779 | /* confdefs.h. */ | |
5780 | _ACEOF | |
5781 | cat confdefs.h >>conftest.$ac_ext | |
5782 | cat >>conftest.$ac_ext <<_ACEOF | |
5783 | /* end confdefs.h. */ | |
5784 | $ac_includes_default | |
5785 | #include <$ac_header> | |
5786 | _ACEOF | |
5787 | rm -f conftest.$ac_objext | |
5788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5789 | (eval $ac_compile) 2>conftest.er1 | |
5790 | ac_status=$? | |
5791 | grep -v '^ *+' conftest.er1 >conftest.err | |
5792 | rm -f conftest.er1 | |
5793 | cat conftest.err >&5 | |
5794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5795 | (exit $ac_status); } && | |
5796 | { ac_try='test -z "$ac_c_werror_flag" | |
5797 | || test ! -s conftest.err' | |
5798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5799 | (eval $ac_try) 2>&5 | |
5800 | ac_status=$? | |
5801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5802 | (exit $ac_status); }; } && | |
5803 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
5809 | ac_header_compiler=yes | |
5810 | else | |
5811 | echo "$as_me: failed program was:" >&5 | |
5812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5813 | ||
5814 | ac_header_compiler=no | |
5815 | fi | |
5816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5817 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5818 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5819 | ||
5820 | # Is the header present? | |
5821 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5822 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5823 | cat >conftest.$ac_ext <<_ACEOF | |
5824 | /* confdefs.h. */ | |
5825 | _ACEOF | |
5826 | cat confdefs.h >>conftest.$ac_ext | |
5827 | cat >>conftest.$ac_ext <<_ACEOF | |
5828 | /* end confdefs.h. */ | |
5829 | #include <$ac_header> | |
5830 | _ACEOF | |
5831 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5832 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5833 | ac_status=$? | |
5834 | grep -v '^ *+' conftest.er1 >conftest.err | |
5835 | rm -f conftest.er1 | |
5836 | cat conftest.err >&5 | |
5837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5838 | (exit $ac_status); } >/dev/null; then | |
5839 | if test -s conftest.err; then | |
5840 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5841 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5842 | else | |
5843 | ac_cpp_err= | |
5844 | fi | |
5845 | else | |
5846 | ac_cpp_err=yes | |
5847 | fi | |
5848 | if test -z "$ac_cpp_err"; then | |
5849 | ac_header_preproc=yes | |
5850 | else | |
5851 | echo "$as_me: failed program was:" >&5 | |
5852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5853 | ||
5854 | ac_header_preproc=no | |
5855 | fi | |
5856 | rm -f conftest.err conftest.$ac_ext | |
5857 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5858 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5859 | ||
5860 | # So? What about this header? | |
5861 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5862 | yes:no: ) | |
5863 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5864 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5865 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5866 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5867 | ac_header_preproc=yes | |
5868 | ;; | |
5869 | no:yes:* ) | |
5870 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5871 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5872 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5873 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5874 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5875 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5876 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5877 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5878 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5879 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5880 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5881 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5882 | ( | |
5883 | cat <<\_ASBOX | |
5884 | ## ------------------------------------------ ## | |
5885 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5886 | ## ------------------------------------------ ## | |
5887 | _ASBOX | |
5888 | ) | | |
5889 | sed "s/^/$as_me: WARNING: /" >&2 | |
5890 | ;; | |
5891 | esac | |
5892 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5893 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5894 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5896 | else | |
5897 | eval "$as_ac_Header=\$ac_header_preproc" | |
c906108c | 5898 | fi |
b7026657 AC |
5899 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5900 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5901 | ||
c906108c | 5902 | fi |
b7026657 AC |
5903 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5904 | cat >>confdefs.h <<_ACEOF | |
5905 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5906 | _ACEOF | |
5907 | ||
c906108c | 5908 | fi |
b7026657 | 5909 | |
c906108c SS |
5910 | done |
5911 | ||
b7026657 AC |
5912 | |
5913 | ||
5914 | for ac_header in sys/time.h sys/resource.h | |
c906108c | 5915 | do |
b7026657 AC |
5916 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5917 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5918 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5919 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5920 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5922 | fi | |
5923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5925 | else | |
5926 | # Is the header compilable? | |
5927 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5928 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5929 | cat >conftest.$ac_ext <<_ACEOF | |
5930 | /* confdefs.h. */ | |
5931 | _ACEOF | |
5932 | cat confdefs.h >>conftest.$ac_ext | |
5933 | cat >>conftest.$ac_ext <<_ACEOF | |
5934 | /* end confdefs.h. */ | |
5935 | $ac_includes_default | |
5936 | #include <$ac_header> | |
5937 | _ACEOF | |
5938 | rm -f conftest.$ac_objext | |
5939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5940 | (eval $ac_compile) 2>conftest.er1 | |
5941 | ac_status=$? | |
5942 | grep -v '^ *+' conftest.er1 >conftest.err | |
5943 | rm -f conftest.er1 | |
5944 | cat conftest.err >&5 | |
5945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5946 | (exit $ac_status); } && | |
5947 | { ac_try='test -z "$ac_c_werror_flag" | |
5948 | || test ! -s conftest.err' | |
5949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5950 | (eval $ac_try) 2>&5 | |
5951 | ac_status=$? | |
5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5953 | (exit $ac_status); }; } && | |
5954 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
5960 | ac_header_compiler=yes | |
5961 | else | |
5962 | echo "$as_me: failed program was:" >&5 | |
5963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5964 | ||
5965 | ac_header_compiler=no | |
5966 | fi | |
5967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5968 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5969 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5970 | ||
5971 | # Is the header present? | |
5972 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5973 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5974 | cat >conftest.$ac_ext <<_ACEOF | |
5975 | /* confdefs.h. */ | |
5976 | _ACEOF | |
5977 | cat confdefs.h >>conftest.$ac_ext | |
5978 | cat >>conftest.$ac_ext <<_ACEOF | |
5979 | /* end confdefs.h. */ | |
5980 | #include <$ac_header> | |
5981 | _ACEOF | |
5982 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5983 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5984 | ac_status=$? | |
5985 | grep -v '^ *+' conftest.er1 >conftest.err | |
5986 | rm -f conftest.er1 | |
5987 | cat conftest.err >&5 | |
5988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5989 | (exit $ac_status); } >/dev/null; then | |
5990 | if test -s conftest.err; then | |
5991 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5992 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5993 | else | |
5994 | ac_cpp_err= | |
5995 | fi | |
5996 | else | |
5997 | ac_cpp_err=yes | |
c906108c | 5998 | fi |
b7026657 AC |
5999 | if test -z "$ac_cpp_err"; then |
6000 | ac_header_preproc=yes | |
6001 | else | |
6002 | echo "$as_me: failed program was:" >&5 | |
6003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6004 | ||
6005 | ac_header_preproc=no | |
c906108c | 6006 | fi |
b7026657 AC |
6007 | rm -f conftest.err conftest.$ac_ext |
6008 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6009 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6010 | ||
6011 | # So? What about this header? | |
6012 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6013 | yes:no: ) | |
6014 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6015 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6016 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6017 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6018 | ac_header_preproc=yes | |
6019 | ;; | |
6020 | no:yes:* ) | |
6021 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6022 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6023 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6024 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6025 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6026 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6027 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6028 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6030 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6031 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6032 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6033 | ( | |
6034 | cat <<\_ASBOX | |
6035 | ## ------------------------------------------ ## | |
6036 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6037 | ## ------------------------------------------ ## | |
6038 | _ASBOX | |
6039 | ) | | |
6040 | sed "s/^/$as_me: WARNING: /" >&2 | |
6041 | ;; | |
6042 | esac | |
6043 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6044 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6045 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6047 | else |
b7026657 AC |
6048 | eval "$as_ac_Header=\$ac_header_preproc" |
6049 | fi | |
6050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6051 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6052 | ||
6053 | fi | |
6054 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6055 | cat >>confdefs.h <<_ACEOF | |
6056 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6057 | _ACEOF | |
6058 | ||
c906108c | 6059 | fi |
b7026657 | 6060 | |
c906108c SS |
6061 | done |
6062 | ||
b7026657 AC |
6063 | |
6064 | ||
6065 | for ac_header in fcntl.h fpu_control.h | |
c906108c | 6066 | do |
b7026657 AC |
6067 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6068 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6069 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6070 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6073 | fi | |
6074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6075 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6076 | else | |
6077 | # Is the header compilable? | |
6078 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6079 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6080 | cat >conftest.$ac_ext <<_ACEOF | |
6081 | /* confdefs.h. */ | |
6082 | _ACEOF | |
6083 | cat confdefs.h >>conftest.$ac_ext | |
6084 | cat >>conftest.$ac_ext <<_ACEOF | |
6085 | /* end confdefs.h. */ | |
6086 | $ac_includes_default | |
6087 | #include <$ac_header> | |
6088 | _ACEOF | |
6089 | rm -f conftest.$ac_objext | |
6090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6091 | (eval $ac_compile) 2>conftest.er1 | |
6092 | ac_status=$? | |
6093 | grep -v '^ *+' conftest.er1 >conftest.err | |
6094 | rm -f conftest.er1 | |
6095 | cat conftest.err >&5 | |
6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6097 | (exit $ac_status); } && | |
6098 | { ac_try='test -z "$ac_c_werror_flag" | |
6099 | || test ! -s conftest.err' | |
6100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6101 | (eval $ac_try) 2>&5 | |
6102 | ac_status=$? | |
6103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6104 | (exit $ac_status); }; } && | |
6105 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
6111 | ac_header_compiler=yes | |
6112 | else | |
6113 | echo "$as_me: failed program was:" >&5 | |
6114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6115 | ||
6116 | ac_header_compiler=no | |
6117 | fi | |
6118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6119 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6120 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6121 | ||
6122 | # Is the header present? | |
6123 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6124 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6125 | cat >conftest.$ac_ext <<_ACEOF | |
6126 | /* confdefs.h. */ | |
6127 | _ACEOF | |
6128 | cat confdefs.h >>conftest.$ac_ext | |
6129 | cat >>conftest.$ac_ext <<_ACEOF | |
6130 | /* end confdefs.h. */ | |
6131 | #include <$ac_header> | |
6132 | _ACEOF | |
6133 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6134 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6135 | ac_status=$? | |
6136 | grep -v '^ *+' conftest.er1 >conftest.err | |
6137 | rm -f conftest.er1 | |
6138 | cat conftest.err >&5 | |
6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6140 | (exit $ac_status); } >/dev/null; then | |
6141 | if test -s conftest.err; then | |
6142 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6143 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6144 | else | |
6145 | ac_cpp_err= | |
6146 | fi | |
6147 | else | |
6148 | ac_cpp_err=yes | |
cd0fc7c3 | 6149 | fi |
b7026657 AC |
6150 | if test -z "$ac_cpp_err"; then |
6151 | ac_header_preproc=yes | |
6152 | else | |
6153 | echo "$as_me: failed program was:" >&5 | |
6154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6155 | ||
6156 | ac_header_preproc=no | |
cd0fc7c3 | 6157 | fi |
b7026657 AC |
6158 | rm -f conftest.err conftest.$ac_ext |
6159 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6160 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6161 | ||
6162 | # So? What about this header? | |
6163 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6164 | yes:no: ) | |
6165 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6166 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6167 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6168 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6169 | ac_header_preproc=yes | |
6170 | ;; | |
6171 | no:yes:* ) | |
6172 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6173 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6174 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6175 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6176 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6177 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6178 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6179 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6180 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6181 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6182 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6183 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6184 | ( | |
6185 | cat <<\_ASBOX | |
6186 | ## ------------------------------------------ ## | |
6187 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6188 | ## ------------------------------------------ ## | |
6189 | _ASBOX | |
6190 | ) | | |
6191 | sed "s/^/$as_me: WARNING: /" >&2 | |
6192 | ;; | |
6193 | esac | |
6194 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6195 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6196 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd0fc7c3 | 6198 | else |
b7026657 AC |
6199 | eval "$as_ac_Header=\$ac_header_preproc" |
6200 | fi | |
6201 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6202 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6203 | ||
cd0fc7c3 | 6204 | fi |
b7026657 AC |
6205 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6206 | cat >>confdefs.h <<_ACEOF | |
6207 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6208 | _ACEOF | |
6209 | ||
6210 | fi | |
6211 | ||
cd0fc7c3 SS |
6212 | done |
6213 | ||
b7026657 AC |
6214 | |
6215 | ||
6216 | ||
6217 | for ac_header in dlfcn.h errno.h sys/stat.h | |
cd0fc7c3 | 6218 | do |
b7026657 AC |
6219 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6220 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6221 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6222 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6223 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6225 | fi | |
6226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6228 | else | |
6229 | # Is the header compilable? | |
6230 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6231 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6232 | cat >conftest.$ac_ext <<_ACEOF | |
6233 | /* confdefs.h. */ | |
6234 | _ACEOF | |
6235 | cat confdefs.h >>conftest.$ac_ext | |
6236 | cat >>conftest.$ac_ext <<_ACEOF | |
6237 | /* end confdefs.h. */ | |
6238 | $ac_includes_default | |
6239 | #include <$ac_header> | |
6240 | _ACEOF | |
6241 | rm -f conftest.$ac_objext | |
6242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6243 | (eval $ac_compile) 2>conftest.er1 | |
6244 | ac_status=$? | |
6245 | grep -v '^ *+' conftest.er1 >conftest.err | |
6246 | rm -f conftest.er1 | |
6247 | cat conftest.err >&5 | |
6248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6249 | (exit $ac_status); } && | |
6250 | { ac_try='test -z "$ac_c_werror_flag" | |
6251 | || test ! -s conftest.err' | |
6252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6253 | (eval $ac_try) 2>&5 | |
6254 | ac_status=$? | |
6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6256 | (exit $ac_status); }; } && | |
6257 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
6263 | ac_header_compiler=yes | |
6264 | else | |
6265 | echo "$as_me: failed program was:" >&5 | |
6266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6267 | ||
6268 | ac_header_compiler=no | |
6269 | fi | |
6270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6271 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6272 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6273 | ||
6274 | # Is the header present? | |
6275 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6276 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6277 | cat >conftest.$ac_ext <<_ACEOF | |
6278 | /* confdefs.h. */ | |
6279 | _ACEOF | |
6280 | cat confdefs.h >>conftest.$ac_ext | |
6281 | cat >>conftest.$ac_ext <<_ACEOF | |
6282 | /* end confdefs.h. */ | |
6283 | #include <$ac_header> | |
6284 | _ACEOF | |
6285 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6286 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6287 | ac_status=$? | |
6288 | grep -v '^ *+' conftest.er1 >conftest.err | |
6289 | rm -f conftest.er1 | |
6290 | cat conftest.err >&5 | |
6291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6292 | (exit $ac_status); } >/dev/null; then | |
6293 | if test -s conftest.err; then | |
6294 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6295 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6296 | else | |
6297 | ac_cpp_err= | |
6298 | fi | |
6299 | else | |
6300 | ac_cpp_err=yes | |
c906108c | 6301 | fi |
b7026657 AC |
6302 | if test -z "$ac_cpp_err"; then |
6303 | ac_header_preproc=yes | |
6304 | else | |
6305 | echo "$as_me: failed program was:" >&5 | |
6306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6307 | ||
6308 | ac_header_preproc=no | |
c906108c | 6309 | fi |
b7026657 AC |
6310 | rm -f conftest.err conftest.$ac_ext |
6311 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6312 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6313 | ||
6314 | # So? What about this header? | |
6315 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6316 | yes:no: ) | |
6317 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6318 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6319 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6320 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6321 | ac_header_preproc=yes | |
6322 | ;; | |
6323 | no:yes:* ) | |
6324 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6325 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6326 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6327 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6328 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6329 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6330 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6331 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6332 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6333 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6334 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6335 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6336 | ( | |
6337 | cat <<\_ASBOX | |
6338 | ## ------------------------------------------ ## | |
6339 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6340 | ## ------------------------------------------ ## | |
6341 | _ASBOX | |
6342 | ) | | |
6343 | sed "s/^/$as_me: WARNING: /" >&2 | |
6344 | ;; | |
6345 | esac | |
6346 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6348 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6350 | else |
b7026657 AC |
6351 | eval "$as_ac_Header=\$ac_header_preproc" |
6352 | fi | |
6353 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6354 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6355 | ||
6356 | fi | |
6357 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6358 | cat >>confdefs.h <<_ACEOF | |
6359 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6360 | _ACEOF | |
6361 | ||
c906108c | 6362 | fi |
b7026657 | 6363 | |
c906108c SS |
6364 | done |
6365 | ||
b7026657 AC |
6366 | |
6367 | ||
6368 | ||
6369 | ||
c906108c SS |
6370 | for ac_func in getrusage time sigaction __setfpucw |
6371 | do | |
b7026657 AC |
6372 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6373 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6374 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6375 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6377 | else | |
6378 | cat >conftest.$ac_ext <<_ACEOF | |
6379 | /* confdefs.h. */ | |
6380 | _ACEOF | |
6381 | cat confdefs.h >>conftest.$ac_ext | |
6382 | cat >>conftest.$ac_ext <<_ACEOF | |
6383 | /* end confdefs.h. */ | |
6384 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6385 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6386 | #define $ac_func innocuous_$ac_func | |
6387 | ||
c906108c | 6388 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
6389 | which can conflict with char $ac_func (); below. |
6390 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6391 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 6392 | |
b7026657 AC |
6393 | #ifdef __STDC__ |
6394 | # include <limits.h> | |
6395 | #else | |
6396 | # include <assert.h> | |
6397 | #endif | |
c906108c | 6398 | |
b7026657 AC |
6399 | #undef $ac_func |
6400 | ||
6401 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6402 | #ifdef __cplusplus | |
6403 | extern "C" | |
6404 | { | |
6405 | #endif | |
6406 | /* We use char because int might match the return type of a gcc2 | |
6407 | builtin and then its argument prototype would still apply. */ | |
6408 | char $ac_func (); | |
c906108c SS |
6409 | /* The GNU C library defines this for functions which it implements |
6410 | to always fail with ENOSYS. Some functions are actually named | |
6411 | something starting with __ and the normal name is an alias. */ | |
6412 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6413 | choke me | |
6414 | #else | |
b7026657 AC |
6415 | char (*f) () = $ac_func; |
6416 | #endif | |
6417 | #ifdef __cplusplus | |
6418 | } | |
c906108c SS |
6419 | #endif |
6420 | ||
b7026657 AC |
6421 | int |
6422 | main () | |
6423 | { | |
6424 | return f != $ac_func; | |
6425 | ; | |
6426 | return 0; | |
6427 | } | |
6428 | _ACEOF | |
6429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6431 | (eval $ac_link) 2>conftest.er1 | |
6432 | ac_status=$? | |
6433 | grep -v '^ *+' conftest.er1 >conftest.err | |
6434 | rm -f conftest.er1 | |
6435 | cat conftest.err >&5 | |
6436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6437 | (exit $ac_status); } && | |
6438 | { ac_try='test -z "$ac_c_werror_flag" | |
6439 | || test ! -s conftest.err' | |
6440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6441 | (eval $ac_try) 2>&5 | |
6442 | ac_status=$? | |
6443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6444 | (exit $ac_status); }; } && | |
6445 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
6451 | eval "$as_ac_var=yes" | |
6452 | else | |
6453 | echo "$as_me: failed program was:" >&5 | |
6454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6455 | ||
6456 | eval "$as_ac_var=no" | |
6457 | fi | |
6458 | rm -f conftest.err conftest.$ac_objext \ | |
6459 | conftest$ac_exeext conftest.$ac_ext | |
6460 | fi | |
6461 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6462 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6463 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6464 | cat >>confdefs.h <<_ACEOF | |
6465 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6466 | _ACEOF | |
c906108c | 6467 | |
c906108c SS |
6468 | fi |
6469 | done | |
6470 | ||
6471 | ||
6472 | # Check for socket libraries | |
b7026657 AC |
6473 | |
6474 | echo "$as_me:$LINENO: checking for bind in -lsocket" >&5 | |
6475 | echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6 | |
6476 | if test "${ac_cv_lib_socket_bind+set}" = set; then | |
6477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6478 | else |
b7026657 | 6479 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 6480 | LIBS="-lsocket $LIBS" |
b7026657 AC |
6481 | cat >conftest.$ac_ext <<_ACEOF |
6482 | /* confdefs.h. */ | |
6483 | _ACEOF | |
6484 | cat confdefs.h >>conftest.$ac_ext | |
6485 | cat >>conftest.$ac_ext <<_ACEOF | |
6486 | /* end confdefs.h. */ | |
6487 | ||
c906108c | 6488 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
6489 | #ifdef __cplusplus |
6490 | extern "C" | |
6491 | #endif | |
c906108c | 6492 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
6493 | builtin and then its argument prototype would still apply. */ |
6494 | char bind (); | |
6495 | int | |
6496 | main () | |
6497 | { | |
6498 | bind (); | |
6499 | ; | |
6500 | return 0; | |
6501 | } | |
6502 | _ACEOF | |
6503 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6505 | (eval $ac_link) 2>conftest.er1 | |
6506 | ac_status=$? | |
6507 | grep -v '^ *+' conftest.er1 >conftest.err | |
6508 | rm -f conftest.er1 | |
6509 | cat conftest.err >&5 | |
6510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6511 | (exit $ac_status); } && | |
6512 | { ac_try='test -z "$ac_c_werror_flag" | |
6513 | || test ! -s conftest.err' | |
6514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6515 | (eval $ac_try) 2>&5 | |
6516 | ac_status=$? | |
6517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6518 | (exit $ac_status); }; } && | |
6519 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
6525 | ac_cv_lib_socket_bind=yes | |
6526 | else | |
6527 | echo "$as_me: failed program was:" >&5 | |
6528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6529 | ||
6530 | ac_cv_lib_socket_bind=no | |
6531 | fi | |
6532 | rm -f conftest.err conftest.$ac_objext \ | |
6533 | conftest$ac_exeext conftest.$ac_ext | |
6534 | LIBS=$ac_check_lib_save_LIBS | |
6535 | fi | |
6536 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5 | |
6537 | echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6 | |
6538 | if test $ac_cv_lib_socket_bind = yes; then | |
6539 | cat >>confdefs.h <<_ACEOF | |
6540 | #define HAVE_LIBSOCKET 1 | |
6541 | _ACEOF | |
c906108c SS |
6542 | |
6543 | LIBS="-lsocket $LIBS" | |
6544 | ||
c906108c SS |
6545 | fi |
6546 | ||
b7026657 AC |
6547 | |
6548 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
6549 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
6550 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
6551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6552 | else |
b7026657 | 6553 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 6554 | LIBS="-lnsl $LIBS" |
b7026657 AC |
6555 | cat >conftest.$ac_ext <<_ACEOF |
6556 | /* confdefs.h. */ | |
6557 | _ACEOF | |
6558 | cat confdefs.h >>conftest.$ac_ext | |
6559 | cat >>conftest.$ac_ext <<_ACEOF | |
6560 | /* end confdefs.h. */ | |
6561 | ||
c906108c | 6562 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
6563 | #ifdef __cplusplus |
6564 | extern "C" | |
6565 | #endif | |
c906108c | 6566 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
6567 | builtin and then its argument prototype would still apply. */ |
6568 | char gethostbyname (); | |
6569 | int | |
6570 | main () | |
6571 | { | |
6572 | gethostbyname (); | |
6573 | ; | |
6574 | return 0; | |
6575 | } | |
6576 | _ACEOF | |
6577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6579 | (eval $ac_link) 2>conftest.er1 | |
6580 | ac_status=$? | |
6581 | grep -v '^ *+' conftest.er1 >conftest.err | |
6582 | rm -f conftest.er1 | |
6583 | cat conftest.err >&5 | |
6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6585 | (exit $ac_status); } && | |
6586 | { ac_try='test -z "$ac_c_werror_flag" | |
6587 | || test ! -s conftest.err' | |
6588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6589 | (eval $ac_try) 2>&5 | |
6590 | ac_status=$? | |
6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6592 | (exit $ac_status); }; } && | |
6593 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
6599 | ac_cv_lib_nsl_gethostbyname=yes | |
6600 | else | |
6601 | echo "$as_me: failed program was:" >&5 | |
6602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6603 | ||
6604 | ac_cv_lib_nsl_gethostbyname=no | |
6605 | fi | |
6606 | rm -f conftest.err conftest.$ac_objext \ | |
6607 | conftest$ac_exeext conftest.$ac_ext | |
6608 | LIBS=$ac_check_lib_save_LIBS | |
6609 | fi | |
6610 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
6611 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
6612 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
6613 | cat >>confdefs.h <<_ACEOF | |
6614 | #define HAVE_LIBNSL 1 | |
6615 | _ACEOF | |
c906108c SS |
6616 | |
6617 | LIBS="-lnsl $LIBS" | |
6618 | ||
c906108c SS |
6619 | fi |
6620 | ||
6621 | ||
6622 | . ${srcdir}/../../bfd/configure.host | |
6623 | ||
6624 | ||
6625 | ||
6626 | USE_MAINTAINER_MODE=no | |
6627 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
6628 | if test "${enable_maintainer_mode+set}" = set; then | |
6629 | enableval="$enable_maintainer_mode" | |
6630 | case "${enableval}" in | |
6631 | yes) MAINT="" USE_MAINTAINER_MODE=yes ;; | |
6632 | no) MAINT="#" ;; | |
b7026657 AC |
6633 | *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5 |
6634 | echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;} | |
6635 | { (exit 1); exit 1; }; }; MAINT="#" ;; | |
c906108c SS |
6636 | esac |
6637 | if test x"$silent" != x"yes" && test x"$MAINT" = x""; then | |
6638 | echo "Setting maintainer mode" 6>&1 | |
6639 | fi | |
6640 | else | |
6641 | MAINT="#" | |
b7026657 | 6642 | fi; |
c906108c SS |
6643 | |
6644 | ||
6645 | # Check whether --enable-sim-bswap or --disable-sim-bswap was given. | |
6646 | if test "${enable_sim_bswap+set}" = set; then | |
6647 | enableval="$enable_sim_bswap" | |
6648 | case "${enableval}" in | |
6649 | yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";; | |
6650 | no) sim_bswap="-DWITH_BSWAP=0";; | |
b7026657 AC |
6651 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5 |
6652 | echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;} | |
6653 | { (exit 1); exit 1; }; }; sim_bswap="";; | |
c906108c SS |
6654 | esac |
6655 | if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then | |
6656 | echo "Setting bswap flags = $sim_bswap" 6>&1 | |
6657 | fi | |
6658 | else | |
6659 | sim_bswap="" | |
b7026657 | 6660 | fi; |
c906108c SS |
6661 | |
6662 | ||
6663 | # Check whether --enable-sim-cflags or --disable-sim-cflags was given. | |
6664 | if test "${enable_sim_cflags+set}" = set; then | |
6665 | enableval="$enable_sim_cflags" | |
6666 | case "${enableval}" in | |
6667 | yes) sim_cflags="-O2 -fomit-frame-pointer";; | |
b7026657 AC |
6668 | trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5 |
6669 | echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;} | |
6670 | { (exit 1); exit 1; }; }; sim_cflags="";; | |
c906108c SS |
6671 | no) sim_cflags="";; |
6672 | *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6673 | esac | |
6674 | if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then | |
6675 | echo "Setting sim cflags = $sim_cflags" 6>&1 | |
6676 | fi | |
6677 | else | |
6678 | sim_cflags="" | |
b7026657 | 6679 | fi; |
c906108c SS |
6680 | |
6681 | ||
6682 | # Check whether --enable-sim-debug or --disable-sim-debug was given. | |
6683 | if test "${enable_sim_debug+set}" = set; then | |
6684 | enableval="$enable_sim_debug" | |
6685 | case "${enableval}" in | |
6686 | yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";; | |
6687 | no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";; | |
6688 | *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";; | |
6689 | esac | |
6690 | if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then | |
6691 | echo "Setting sim debug = $sim_debug" 6>&1 | |
6692 | fi | |
6693 | else | |
6694 | sim_debug="" | |
b7026657 | 6695 | fi; |
c906108c SS |
6696 | |
6697 | ||
6698 | # Check whether --enable-sim-stdio or --disable-sim-stdio was given. | |
6699 | if test "${enable_sim_stdio+set}" = set; then | |
6700 | enableval="$enable_sim_stdio" | |
6701 | case "${enableval}" in | |
6702 | yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";; | |
6703 | no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";; | |
b7026657 AC |
6704 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5 |
6705 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;} | |
6706 | { (exit 1); exit 1; }; }; sim_stdio="";; | |
c906108c SS |
6707 | esac |
6708 | if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then | |
6709 | echo "Setting stdio flags = $sim_stdio" 6>&1 | |
6710 | fi | |
6711 | else | |
6712 | sim_stdio="" | |
b7026657 | 6713 | fi; |
c906108c SS |
6714 | |
6715 | ||
6716 | # Check whether --enable-sim-trace or --disable-sim-trace was given. | |
6717 | if test "${enable_sim_trace+set}" = set; then | |
6718 | enableval="$enable_sim_trace" | |
6719 | case "${enableval}" in | |
6720 | yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";; | |
6721 | no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";; | |
6722 | [-0-9]*) | |
6723 | sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";; | |
6724 | [a-z]*) | |
6725 | sim_trace="" | |
6726 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6727 | if test x"$sim_trace" = x; then | |
6728 | sim_trace="-DWITH_TRACE='(TRACE_$x" | |
6729 | else | |
6730 | sim_trace="${sim_trace}|TRACE_$x" | |
6731 | fi | |
6732 | done | |
6733 | sim_trace="$sim_trace)'" ;; | |
6734 | esac | |
6735 | if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then | |
6736 | echo "Setting sim trace = $sim_trace" 6>&1 | |
6737 | fi | |
6738 | else | |
6739 | sim_trace="" | |
b7026657 | 6740 | fi; |
c906108c SS |
6741 | |
6742 | ||
6743 | # Check whether --enable-sim-profile or --disable-sim-profile was given. | |
6744 | if test "${enable_sim_profile+set}" = set; then | |
6745 | enableval="$enable_sim_profile" | |
6746 | case "${enableval}" in | |
6747 | yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";; | |
6748 | no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";; | |
6749 | [-0-9]*) | |
6750 | sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";; | |
6751 | [a-z]*) | |
6752 | sim_profile="" | |
6753 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6754 | if test x"$sim_profile" = x; then | |
6755 | sim_profile="-DWITH_PROFILE='(PROFILE_$x" | |
6756 | else | |
6757 | sim_profile="${sim_profile}|PROFILE_$x" | |
6758 | fi | |
6759 | done | |
6760 | sim_profile="$sim_profile)'" ;; | |
6761 | esac | |
6762 | if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then | |
6763 | echo "Setting sim profile = $sim_profile" 6>&1 | |
6764 | fi | |
6765 | else | |
b7026657 AC |
6766 | sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1" |
6767 | fi; | |
6768 | ||
6769 | ||
6770 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
6771 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
6772 | if test "${ac_cv_type_signal+set}" = set; then | |
6773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6774 | else | |
6775 | cat >conftest.$ac_ext <<_ACEOF | |
6776 | /* confdefs.h. */ | |
6777 | _ACEOF | |
6778 | cat confdefs.h >>conftest.$ac_ext | |
6779 | cat >>conftest.$ac_ext <<_ACEOF | |
6780 | /* end confdefs.h. */ | |
6781 | #include <sys/types.h> | |
6782 | #include <signal.h> | |
6783 | #ifdef signal | |
6784 | # undef signal | |
6785 | #endif | |
6786 | #ifdef __cplusplus | |
6787 | extern "C" void (*signal (int, void (*)(int)))(int); | |
6788 | #else | |
6789 | void (*signal ()) (); | |
6790 | #endif | |
6791 | ||
6792 | int | |
6793 | main () | |
6794 | { | |
6795 | int i; | |
6796 | ; | |
6797 | return 0; | |
6798 | } | |
6799 | _ACEOF | |
6800 | rm -f conftest.$ac_objext | |
6801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6802 | (eval $ac_compile) 2>conftest.er1 | |
6803 | ac_status=$? | |
6804 | grep -v '^ *+' conftest.er1 >conftest.err | |
6805 | rm -f conftest.er1 | |
6806 | cat conftest.err >&5 | |
6807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6808 | (exit $ac_status); } && | |
6809 | { ac_try='test -z "$ac_c_werror_flag" | |
6810 | || test ! -s conftest.err' | |
6811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6812 | (eval $ac_try) 2>&5 | |
6813 | ac_status=$? | |
6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6815 | (exit $ac_status); }; } && | |
6816 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
6822 | ac_cv_type_signal=void | |
6823 | else | |
6824 | echo "$as_me: failed program was:" >&5 | |
6825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6826 | ||
6827 | ac_cv_type_signal=int | |
6828 | fi | |
6829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6830 | fi | |
6831 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
6832 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
6833 | ||
6834 | cat >>confdefs.h <<_ACEOF | |
6835 | #define RETSIGTYPE $ac_cv_type_signal | |
6836 | _ACEOF | |
6837 | ||
6838 | ||
6839 | ||
6840 | ||
6841 | ||
6842 | sim_link_files= | |
6843 | sim_link_links= | |
6844 | ||
6845 | sim_link_links=tconfig.h | |
6846 | if test -f ${srcdir}/tconfig.in | |
6847 | then | |
6848 | sim_link_files=tconfig.in | |
6849 | else | |
6850 | sim_link_files=../common/tconfig.in | |
6851 | fi | |
6852 | ||
6853 | # targ-vals.def points to the libc macro description file. | |
6854 | case "${target}" in | |
6855 | *-*-*) TARG_VALS_DEF=../common/nltvals.def ;; | |
6856 | esac | |
6857 | sim_link_files="${sim_link_files} ${TARG_VALS_DEF}" | |
6858 | sim_link_links="${sim_link_links} targ-vals.def" | |
6859 | ||
6860 | ||
6861 | ||
6862 | ||
6863 | ||
6864 | ||
6865 | for ac_header in stdlib.h time.h sys/param.h | |
6866 | do | |
6867 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6869 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6871 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6873 | fi | |
6874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6876 | else | |
6877 | # Is the header compilable? | |
6878 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6879 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6880 | cat >conftest.$ac_ext <<_ACEOF | |
6881 | /* confdefs.h. */ | |
6882 | _ACEOF | |
6883 | cat confdefs.h >>conftest.$ac_ext | |
6884 | cat >>conftest.$ac_ext <<_ACEOF | |
6885 | /* end confdefs.h. */ | |
6886 | $ac_includes_default | |
6887 | #include <$ac_header> | |
6888 | _ACEOF | |
6889 | rm -f conftest.$ac_objext | |
6890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6891 | (eval $ac_compile) 2>conftest.er1 | |
6892 | ac_status=$? | |
6893 | grep -v '^ *+' conftest.er1 >conftest.err | |
6894 | rm -f conftest.er1 | |
6895 | cat conftest.err >&5 | |
6896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6897 | (exit $ac_status); } && | |
6898 | { ac_try='test -z "$ac_c_werror_flag" | |
6899 | || test ! -s conftest.err' | |
6900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6901 | (eval $ac_try) 2>&5 | |
6902 | ac_status=$? | |
6903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6904 | (exit $ac_status); }; } && | |
6905 | { ac_try='test -s conftest.$ac_objext' | |
6906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6907 | (eval $ac_try) 2>&5 | |
6908 | ac_status=$? | |
6909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6910 | (exit $ac_status); }; }; then | |
6911 | ac_header_compiler=yes | |
6912 | else | |
6913 | echo "$as_me: failed program was:" >&5 | |
6914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6915 | ||
6916 | ac_header_compiler=no | |
6917 | fi | |
6918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6919 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6920 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6921 | ||
6922 | # Is the header present? | |
6923 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6924 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6925 | cat >conftest.$ac_ext <<_ACEOF | |
6926 | /* confdefs.h. */ | |
6927 | _ACEOF | |
6928 | cat confdefs.h >>conftest.$ac_ext | |
6929 | cat >>conftest.$ac_ext <<_ACEOF | |
6930 | /* end confdefs.h. */ | |
6931 | #include <$ac_header> | |
6932 | _ACEOF | |
6933 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6934 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6935 | ac_status=$? | |
6936 | grep -v '^ *+' conftest.er1 >conftest.err | |
6937 | rm -f conftest.er1 | |
6938 | cat conftest.err >&5 | |
6939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6940 | (exit $ac_status); } >/dev/null; then | |
6941 | if test -s conftest.err; then | |
6942 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6943 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6944 | else | |
6945 | ac_cpp_err= | |
6946 | fi | |
6947 | else | |
6948 | ac_cpp_err=yes | |
6949 | fi | |
6950 | if test -z "$ac_cpp_err"; then | |
6951 | ac_header_preproc=yes | |
6952 | else | |
6953 | echo "$as_me: failed program was:" >&5 | |
6954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6955 | ||
6956 | ac_header_preproc=no | |
6957 | fi | |
6958 | rm -f conftest.err conftest.$ac_ext | |
6959 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6960 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6961 | ||
6962 | # So? What about this header? | |
6963 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6964 | yes:no: ) | |
6965 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6966 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6967 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6968 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6969 | ac_header_preproc=yes | |
6970 | ;; | |
6971 | no:yes:* ) | |
6972 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6973 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6974 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6975 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6976 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6977 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6978 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6979 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6980 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6981 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6982 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6983 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6984 | ( | |
6985 | cat <<\_ASBOX | |
6986 | ## ------------------------------------------ ## | |
6987 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6988 | ## ------------------------------------------ ## | |
6989 | _ASBOX | |
6990 | ) | | |
6991 | sed "s/^/$as_me: WARNING: /" >&2 | |
6992 | ;; | |
6993 | esac | |
6994 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6996 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6998 | else | |
6999 | eval "$as_ac_Header=\$ac_header_preproc" | |
7000 | fi | |
7001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7003 | ||
7004 | fi | |
7005 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7006 | cat >>confdefs.h <<_ACEOF | |
7007 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7008 | _ACEOF | |
7009 | ||
7010 | fi | |
7011 | ||
7012 | done | |
7013 | ||
7014 | ||
7015 | ||
7016 | ac_sources="$sim_link_files" | |
7017 | ac_dests="$sim_link_links" | |
7018 | while test -n "$ac_sources"; do | |
7019 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
7020 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
7021 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
7022 | done | |
7023 | ac_config_links="$ac_config_links $ac_config_links_1" | |
7024 | ||
7025 | cgen_breaks="" | |
7026 | if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then | |
7027 | cgen_breaks="break cgen_rtx_error"; | |
7028 | fi | |
7029 | ||
7030 | ac_config_files="$ac_config_files Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in" | |
7031 | ac_config_commands="$ac_config_commands default" | |
7032 | cat >confcache <<\_ACEOF | |
7033 | # This file is a shell script that caches the results of configure | |
7034 | # tests run on this system so they can be shared between configure | |
7035 | # scripts and configure runs, see configure's option --config-cache. | |
7036 | # It is not useful on other systems. If it contains results you don't | |
7037 | # want to keep, you may remove or edit it. | |
7038 | # | |
7039 | # config.status only pays attention to the cache file if you give it | |
7040 | # the --recheck option to rerun configure. | |
7041 | # | |
7042 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7043 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7044 | # following values. | |
7045 | ||
7046 | _ACEOF | |
7047 | ||
7048 | # The following way of writing the cache mishandles newlines in values, | |
7049 | # but we know of no workaround that is simple, portable, and efficient. | |
7050 | # So, don't put newlines in cache variables' values. | |
7051 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7052 | # and sets the high bit in the cache file unless we assign to the vars. | |
7053 | { | |
7054 | (set) 2>&1 | | |
7055 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7056 | *ac_space=\ *) | |
7057 | # `set' does not quote correctly, so add quotes (double-quote | |
7058 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7059 | sed -n \ | |
7060 | "s/'/'\\\\''/g; | |
7061 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7062 | ;; | |
7063 | *) | |
7064 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7065 | sed -n \ | |
7066 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
7067 | ;; | |
7068 | esac; | |
7069 | } | | |
7070 | sed ' | |
7071 | t clear | |
7072 | : clear | |
7073 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7074 | t end | |
7075 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7076 | : end' >>confcache | |
7077 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
7078 | if test -w $cache_file; then | |
7079 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
7080 | cat confcache >$cache_file | |
7081 | else | |
7082 | echo "not updating unwritable cache $cache_file" | |
7083 | fi | |
7084 | fi | |
7085 | rm -f confcache | |
7086 | ||
7087 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7088 | # Let make expand exec_prefix. | |
7089 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7090 | ||
7091 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
7092 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7093 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7094 | # (actually we leave an empty line to preserve line numbers). | |
7095 | if test "x$srcdir" = x.; then | |
7096 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7097 | s/:*\$(srcdir):*/:/; | |
7098 | s/:*\${srcdir}:*/:/; | |
7099 | s/:*@srcdir@:*/:/; | |
7100 | s/^\([^=]*=[ ]*\):*/\1/; | |
7101 | s/:*$//; | |
7102 | s/^[^=]*=[ ]*$//; | |
7103 | }' | |
7104 | fi | |
7105 | ||
7106 | DEFS=-DHAVE_CONFIG_H | |
7107 | ||
7108 | ac_libobjs= | |
7109 | ac_ltlibobjs= | |
7110 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7111 | # 1. Remove the extension, and $U if already installed. | |
7112 | ac_i=`echo "$ac_i" | | |
7113 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
7114 | # 2. Add them. | |
7115 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
7116 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
7117 | done | |
7118 | LIBOBJS=$ac_libobjs | |
7119 | ||
7120 | LTLIBOBJS=$ac_ltlibobjs | |
7121 | ||
7122 | ||
7123 | ||
7124 | : ${CONFIG_STATUS=./config.status} | |
7125 | ac_clean_files_save=$ac_clean_files | |
7126 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7127 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
7128 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7129 | cat >$CONFIG_STATUS <<_ACEOF | |
7130 | #! $SHELL | |
7131 | # Generated by $as_me. | |
7132 | # Run this file to recreate the current configuration. | |
7133 | # Compiler output produced by configure, useful for debugging | |
7134 | # configure, is in config.log if it exists. | |
7135 | ||
7136 | debug=false | |
7137 | ac_cs_recheck=false | |
7138 | ac_cs_silent=false | |
7139 | SHELL=\${CONFIG_SHELL-$SHELL} | |
7140 | _ACEOF | |
7141 | ||
7142 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7143 | ## --------------------- ## | |
7144 | ## M4sh Initialization. ## | |
7145 | ## --------------------- ## | |
7146 | ||
7147 | # Be Bourne compatible | |
7148 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7149 | emulate sh | |
7150 | NULLCMD=: | |
7151 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
7152 | # is contrary to our usage. Disable this feature. | |
7153 | alias -g '${1+"$@"}'='"$@"' | |
7154 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
7155 | set -o posix | |
7156 | fi | |
7157 | DUALCASE=1; export DUALCASE # for MKS sh | |
7158 | ||
7159 | # Support unset when possible. | |
7160 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7161 | as_unset=unset | |
7162 | else | |
7163 | as_unset=false | |
c906108c SS |
7164 | fi |
7165 | ||
7166 | ||
b7026657 AC |
7167 | # Work around bugs in pre-3.0 UWIN ksh. |
7168 | $as_unset ENV MAIL MAILPATH | |
7169 | PS1='$ ' | |
7170 | PS2='> ' | |
7171 | PS4='+ ' | |
7172 | ||
7173 | # NLS nuisances. | |
7174 | for as_var in \ | |
7175 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
7176 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
7177 | LC_TELEPHONE LC_TIME | |
7178 | do | |
7179 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
7180 | eval $as_var=C; export $as_var | |
7181 | else | |
7182 | $as_unset $as_var | |
7183 | fi | |
7184 | done | |
c906108c | 7185 | |
b7026657 AC |
7186 | # Required to use basename. |
7187 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7188 | as_expr=expr | |
c906108c | 7189 | else |
b7026657 AC |
7190 | as_expr=false |
7191 | fi | |
c906108c | 7192 | |
b7026657 AC |
7193 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
7194 | as_basename=basename | |
c906108c | 7195 | else |
b7026657 | 7196 | as_basename=false |
c906108c | 7197 | fi |
b7026657 AC |
7198 | |
7199 | ||
7200 | # Name of the executable. | |
7201 | as_me=`$as_basename "$0" || | |
7202 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
7203 | X"$0" : 'X\(//\)$' \| \ | |
7204 | X"$0" : 'X\(/\)$' \| \ | |
7205 | . : '\(.\)' 2>/dev/null || | |
7206 | echo X/"$0" | | |
7207 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
7208 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
7209 | /^X\/\(\/\).*/{ s//\1/; q; } | |
7210 | s/.*/./; q'` | |
7211 | ||
7212 | ||
7213 | # PATH needs CR, and LINENO needs CR and PATH. | |
7214 | # Avoid depending upon Character Ranges. | |
7215 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7216 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7217 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7218 | as_cr_digits='0123456789' | |
7219 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7220 | ||
7221 | # The user is always right. | |
7222 | if test "${PATH_SEPARATOR+set}" != set; then | |
7223 | echo "#! /bin/sh" >conf$$.sh | |
7224 | echo "exit 0" >>conf$$.sh | |
7225 | chmod +x conf$$.sh | |
7226 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7227 | PATH_SEPARATOR=';' | |
7228 | else | |
7229 | PATH_SEPARATOR=: | |
7230 | fi | |
7231 | rm -f conf$$.sh | |
c906108c SS |
7232 | fi |
7233 | ||
c906108c | 7234 | |
b7026657 AC |
7235 | as_lineno_1=$LINENO |
7236 | as_lineno_2=$LINENO | |
7237 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7238 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7239 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
7240 | # Find who we are. Look in the path if we contain no path at all | |
7241 | # relative or not. | |
7242 | case $0 in | |
7243 | *[\\/]* ) as_myself=$0 ;; | |
7244 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7245 | for as_dir in $PATH | |
7246 | do | |
7247 | IFS=$as_save_IFS | |
7248 | test -z "$as_dir" && as_dir=. | |
7249 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7250 | done | |
7251 | ||
7252 | ;; | |
7253 | esac | |
7254 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7255 | # in which case we are not to be found in the path. | |
7256 | if test "x$as_myself" = x; then | |
7257 | as_myself=$0 | |
7258 | fi | |
7259 | if test ! -f "$as_myself"; then | |
7260 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
7261 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
7262 | { (exit 1); exit 1; }; } | |
7263 | fi | |
7264 | case $CONFIG_SHELL in | |
7265 | '') | |
7266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7267 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
7268 | do | |
7269 | IFS=$as_save_IFS | |
7270 | test -z "$as_dir" && as_dir=. | |
7271 | for as_base in sh bash ksh sh5; do | |
7272 | case $as_dir in | |
7273 | /*) | |
7274 | if ("$as_dir/$as_base" -c ' | |
7275 | as_lineno_1=$LINENO | |
7276 | as_lineno_2=$LINENO | |
7277 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7278 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7279 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
7280 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
7281 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
7282 | CONFIG_SHELL=$as_dir/$as_base | |
7283 | export CONFIG_SHELL | |
7284 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
7285 | fi;; | |
7286 | esac | |
7287 | done | |
7288 | done | |
7289 | ;; | |
7290 | esac | |
c906108c | 7291 | |
b7026657 AC |
7292 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
7293 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7294 | # line-number line before each line; the second 'sed' does the real | |
7295 | # work. The second script uses 'N' to pair each line-number line | |
7296 | # with the numbered line, and appends trailing '-' during | |
7297 | # substitution so that $LINENO is not a special case at line end. | |
7298 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7299 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7300 | sed '=' <$as_myself | | |
7301 | sed ' | |
7302 | N | |
7303 | s,$,-, | |
7304 | : loop | |
7305 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7306 | t loop | |
7307 | s,-$,, | |
7308 | s,^['$as_cr_digits']*\n,, | |
7309 | ' >$as_me.lineno && | |
7310 | chmod +x $as_me.lineno || | |
7311 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
7312 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
7313 | { (exit 1); exit 1; }; } | |
7314 | ||
7315 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7316 | # (the dirname of $[0] is not the place where we might find the | |
7317 | # original and so on. Autoconf is especially sensible to this). | |
7318 | . ./$as_me.lineno | |
7319 | # Exit status is that of the last command. | |
7320 | exit | |
7321 | } | |
c906108c | 7322 | |
cd0fc7c3 | 7323 | |
b7026657 AC |
7324 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
7325 | *c*,-n*) ECHO_N= ECHO_C=' | |
7326 | ' ECHO_T=' ' ;; | |
7327 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7328 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
7329 | esac | |
cd0fc7c3 | 7330 | |
b7026657 AC |
7331 | if expr a : '\(a\)' >/dev/null 2>&1; then |
7332 | as_expr=expr | |
c906108c | 7333 | else |
b7026657 AC |
7334 | as_expr=false |
7335 | fi | |
7336 | ||
7337 | rm -f conf$$ conf$$.exe conf$$.file | |
7338 | echo >conf$$.file | |
7339 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7340 | # We could just check for DJGPP; but this test a) works b) is more generic | |
7341 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7342 | if test -f conf$$.exe; then | |
7343 | # Don't use ln at all; we don't have any links | |
7344 | as_ln_s='cp -p' | |
cd0fc7c3 | 7345 | else |
b7026657 | 7346 | as_ln_s='ln -s' |
cd0fc7c3 | 7347 | fi |
b7026657 AC |
7348 | elif ln conf$$.file conf$$ 2>/dev/null; then |
7349 | as_ln_s=ln | |
7350 | else | |
7351 | as_ln_s='cp -p' | |
c906108c | 7352 | fi |
b7026657 AC |
7353 | rm -f conf$$ conf$$.exe conf$$.file |
7354 | ||
7355 | if mkdir -p . 2>/dev/null; then | |
7356 | as_mkdir_p=: | |
7357 | else | |
7358 | test -d ./-p && rmdir ./-p | |
7359 | as_mkdir_p=false | |
c906108c | 7360 | fi |
cd0fc7c3 | 7361 | |
b7026657 | 7362 | as_executable_p="test -f" |
c906108c | 7363 | |
b7026657 AC |
7364 | # Sed expression to map a string onto a valid CPP name. |
7365 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 7366 | |
b7026657 AC |
7367 | # Sed expression to map a string onto a valid variable name. |
7368 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 7369 | |
c906108c | 7370 | |
b7026657 AC |
7371 | # IFS |
7372 | # We need space, tab and new line, in precisely that order. | |
7373 | as_nl=' | |
7374 | ' | |
7375 | IFS=" $as_nl" | |
c906108c | 7376 | |
b7026657 AC |
7377 | # CDPATH. |
7378 | $as_unset CDPATH | |
c906108c | 7379 | |
b7026657 | 7380 | exec 6>&1 |
c906108c | 7381 | |
b7026657 AC |
7382 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
7383 | # report actual input values of CONFIG_FILES etc. instead of their | |
7384 | # values after options handling. Logging --version etc. is OK. | |
7385 | exec 5>>config.log | |
7386 | { | |
7387 | echo | |
7388 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7389 | ## Running $as_me. ## | |
7390 | _ASBOX | |
7391 | } >&5 | |
7392 | cat >&5 <<_CSEOF | |
7393 | ||
7394 | This file was extended by $as_me, which was | |
7395 | generated by GNU Autoconf 2.59. Invocation command line was | |
7396 | ||
7397 | CONFIG_FILES = $CONFIG_FILES | |
7398 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7399 | CONFIG_LINKS = $CONFIG_LINKS | |
7400 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7401 | $ $0 $@ | |
7402 | ||
7403 | _CSEOF | |
7404 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
7405 | echo >&5 | |
7406 | _ACEOF | |
7407 | ||
7408 | # Files that config.status was made for. | |
7409 | if test -n "$ac_config_files"; then | |
7410 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
c906108c | 7411 | fi |
b7026657 AC |
7412 | |
7413 | if test -n "$ac_config_headers"; then | |
7414 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
c906108c | 7415 | fi |
b7026657 AC |
7416 | |
7417 | if test -n "$ac_config_links"; then | |
7418 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
c906108c | 7419 | fi |
c906108c | 7420 | |
b7026657 AC |
7421 | if test -n "$ac_config_commands"; then |
7422 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7423 | fi | |
c906108c | 7424 | |
b7026657 | 7425 | cat >>$CONFIG_STATUS <<\_ACEOF |
c906108c | 7426 | |
b7026657 AC |
7427 | ac_cs_usage="\ |
7428 | \`$as_me' instantiates files from templates according to the | |
7429 | current configuration. | |
c906108c | 7430 | |
b7026657 | 7431 | Usage: $0 [OPTIONS] [FILE]... |
379832de | 7432 | |
b7026657 AC |
7433 | -h, --help print this help, then exit |
7434 | -V, --version print version number, then exit | |
7435 | -q, --quiet do not print progress messages | |
7436 | -d, --debug don't remove temporary files | |
7437 | --recheck update $as_me by reconfiguring in the same conditions | |
7438 | --file=FILE[:TEMPLATE] | |
7439 | instantiate the configuration file FILE | |
7440 | --header=FILE[:TEMPLATE] | |
7441 | instantiate the configuration header FILE | |
7442 | ||
7443 | Configuration files: | |
7444 | $config_files | |
7445 | ||
7446 | Configuration headers: | |
7447 | $config_headers | |
7448 | ||
7449 | Configuration links: | |
7450 | $config_links | |
7451 | ||
7452 | Configuration commands: | |
7453 | $config_commands | |
7454 | ||
7455 | Report bugs to <bug-autoconf@gnu.org>." | |
7456 | _ACEOF | |
7457 | ||
7458 | cat >>$CONFIG_STATUS <<_ACEOF | |
7459 | ac_cs_version="\\ | |
7460 | config.status | |
7461 | configured by $0, generated by GNU Autoconf 2.59, | |
7462 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
7463 | ||
7464 | Copyright (C) 2003 Free Software Foundation, Inc. | |
7465 | This config.status script is free software; the Free Software Foundation | |
7466 | gives unlimited permission to copy, distribute and modify it." | |
7467 | srcdir=$srcdir | |
7468 | INSTALL="$INSTALL" | |
7469 | _ACEOF | |
7470 | ||
7471 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7472 | # If no file are specified by the user, then we need to provide default | |
7473 | # value. By we need to know if files were specified by the user. | |
7474 | ac_need_defaults=: | |
7475 | while test $# != 0 | |
7476 | do | |
7477 | case $1 in | |
7478 | --*=*) | |
7479 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7480 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
7481 | ac_shift=: | |
c906108c | 7482 | ;; |
b7026657 AC |
7483 | -*) |
7484 | ac_option=$1 | |
7485 | ac_optarg=$2 | |
7486 | ac_shift=shift | |
c906108c | 7487 | ;; |
b7026657 AC |
7488 | *) # This is not an option, so the user has probably given explicit |
7489 | # arguments. | |
7490 | ac_option=$1 | |
7491 | ac_need_defaults=false;; | |
7492 | esac | |
c906108c | 7493 | |
b7026657 AC |
7494 | case $ac_option in |
7495 | # Handling of the options. | |
7496 | _ACEOF | |
7497 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7498 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
7499 | ac_cs_recheck=: ;; | |
7500 | --version | --vers* | -V ) | |
7501 | echo "$ac_cs_version"; exit 0 ;; | |
7502 | --he | --h) | |
7503 | # Conflict between --help and --header | |
7504 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
7505 | Try \`$0 --help' for more information." >&5 | |
7506 | echo "$as_me: error: ambiguous option: $1 | |
7507 | Try \`$0 --help' for more information." >&2;} | |
7508 | { (exit 1); exit 1; }; };; | |
7509 | --help | --hel | -h ) | |
7510 | echo "$ac_cs_usage"; exit 0 ;; | |
7511 | --debug | --d* | -d ) | |
7512 | debug=: ;; | |
7513 | --file | --fil | --fi | --f ) | |
7514 | $ac_shift | |
7515 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
7516 | ac_need_defaults=false;; | |
7517 | --header | --heade | --head | --hea ) | |
7518 | $ac_shift | |
7519 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
7520 | ac_need_defaults=false;; | |
7521 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
7522 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7523 | ac_cs_silent=: ;; | |
c906108c | 7524 | |
b7026657 AC |
7525 | # This is an error. |
7526 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
7527 | Try \`$0 --help' for more information." >&5 | |
7528 | echo "$as_me: error: unrecognized option: $1 | |
7529 | Try \`$0 --help' for more information." >&2;} | |
7530 | { (exit 1); exit 1; }; } ;; | |
c906108c | 7531 | |
b7026657 AC |
7532 | *) ac_config_targets="$ac_config_targets $1" ;; |
7533 | ||
7534 | esac | |
7535 | shift | |
7536 | done | |
7537 | ||
7538 | ac_configure_extra_args= | |
7539 | ||
7540 | if $ac_cs_silent; then | |
7541 | exec 6>/dev/null | |
7542 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c SS |
7543 | fi |
7544 | ||
b7026657 AC |
7545 | _ACEOF |
7546 | cat >>$CONFIG_STATUS <<_ACEOF | |
7547 | if \$ac_cs_recheck; then | |
7548 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
7549 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7550 | fi | |
c906108c | 7551 | |
b7026657 | 7552 | _ACEOF |
c906108c | 7553 | |
c906108c | 7554 | |
c906108c | 7555 | |
b7026657 AC |
7556 | |
7557 | ||
7558 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7559 | for ac_config_target in $ac_config_targets | |
c906108c | 7560 | do |
b7026657 AC |
7561 | case "$ac_config_target" in |
7562 | # Handling of arguments. | |
7563 | "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;; | |
7564 | "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;; | |
7565 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;; | |
7566 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
7567 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
7568 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
7569 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
7570 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
7571 | { (exit 1); exit 1; }; };; | |
c906108c SS |
7572 | esac |
7573 | done | |
7574 | ||
b7026657 AC |
7575 | # If the user did not use the arguments to specify the items to instantiate, |
7576 | # then the envvar interface is used. Set only those that are not. | |
7577 | # We use the long form for the default assignment because of an extremely | |
7578 | # bizarre bug on SunOS 4.1.3. | |
7579 | if $ac_need_defaults; then | |
7580 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7581 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7582 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
7583 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7584 | fi | |
7585 | ||
7586 | # Have a temporary directory for convenience. Make it in the build tree | |
7587 | # simply because there is no reason to put it here, and in addition, | |
7588 | # creating and moving files from /tmp can sometimes cause problems. | |
7589 | # Create a temporary directory, and hook for its removal unless debugging. | |
7590 | $debug || | |
7591 | { | |
7592 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7593 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
7594 | } | |
c906108c | 7595 | |
b7026657 | 7596 | # Create a (secure) tmp directory for tmp files. |
c906108c | 7597 | |
b7026657 AC |
7598 | { |
7599 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
7600 | test -n "$tmp" && test -d "$tmp" | |
7601 | } || | |
7602 | { | |
7603 | tmp=./confstat$$-$RANDOM | |
7604 | (umask 077 && mkdir $tmp) | |
7605 | } || | |
7606 | { | |
7607 | echo "$me: cannot create a temporary directory in ." >&2 | |
7608 | { (exit 1); exit 1; } | |
7609 | } | |
7610 | ||
7611 | _ACEOF | |
7612 | ||
7613 | cat >>$CONFIG_STATUS <<_ACEOF | |
7614 | ||
7615 | # | |
7616 | # CONFIG_FILES section. | |
7617 | # | |
c906108c | 7618 | |
b7026657 AC |
7619 | # No need to generate the scripts if there are no CONFIG_FILES. |
7620 | # This happens for instance when ./config.status config.h | |
7621 | if test -n "\$CONFIG_FILES"; then | |
7622 | # Protect against being on the right side of a sed subst in config.status. | |
7623 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7624 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7625 | s,@sim_environment@,$sim_environment,;t t | |
7626 | s,@sim_alignment@,$sim_alignment,;t t | |
7627 | s,@sim_assert@,$sim_assert,;t t | |
7628 | s,@sim_bitsize@,$sim_bitsize,;t t | |
7629 | s,@sim_endian@,$sim_endian,;t t | |
7630 | s,@sim_hostendian@,$sim_hostendian,;t t | |
7631 | s,@sim_float@,$sim_float,;t t | |
7632 | s,@sim_scache@,$sim_scache,;t t | |
7633 | s,@sim_default_model@,$sim_default_model,;t t | |
7634 | s,@sim_hw_cflags@,$sim_hw_cflags,;t t | |
7635 | s,@sim_hw_objs@,$sim_hw_objs,;t t | |
7636 | s,@sim_hw@,$sim_hw,;t t | |
7637 | s,@sim_inline@,$sim_inline,;t t | |
7638 | s,@sim_packages@,$sim_packages,;t t | |
7639 | s,@sim_regparm@,$sim_regparm,;t t | |
7640 | s,@sim_reserved_bits@,$sim_reserved_bits,;t t | |
7641 | s,@sim_smp@,$sim_smp,;t t | |
7642 | s,@sim_stdcall@,$sim_stdcall,;t t | |
7643 | s,@sim_xor_endian@,$sim_xor_endian,;t t | |
7644 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
7645 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
7646 | s,@SHELL@,$SHELL,;t t | |
7647 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
7648 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7649 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7650 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7651 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7652 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
7653 | s,@exec_prefix@,$exec_prefix,;t t | |
7654 | s,@prefix@,$prefix,;t t | |
7655 | s,@program_transform_name@,$program_transform_name,;t t | |
7656 | s,@bindir@,$bindir,;t t | |
7657 | s,@sbindir@,$sbindir,;t t | |
7658 | s,@libexecdir@,$libexecdir,;t t | |
7659 | s,@datadir@,$datadir,;t t | |
7660 | s,@sysconfdir@,$sysconfdir,;t t | |
7661 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7662 | s,@localstatedir@,$localstatedir,;t t | |
7663 | s,@libdir@,$libdir,;t t | |
7664 | s,@includedir@,$includedir,;t t | |
7665 | s,@oldincludedir@,$oldincludedir,;t t | |
7666 | s,@infodir@,$infodir,;t t | |
7667 | s,@mandir@,$mandir,;t t | |
7668 | s,@build_alias@,$build_alias,;t t | |
7669 | s,@host_alias@,$host_alias,;t t | |
7670 | s,@target_alias@,$target_alias,;t t | |
7671 | s,@DEFS@,$DEFS,;t t | |
7672 | s,@ECHO_C@,$ECHO_C,;t t | |
7673 | s,@ECHO_N@,$ECHO_N,;t t | |
7674 | s,@ECHO_T@,$ECHO_T,;t t | |
7675 | s,@LIBS@,$LIBS,;t t | |
7676 | s,@build@,$build,;t t | |
7677 | s,@build_cpu@,$build_cpu,;t t | |
7678 | s,@build_vendor@,$build_vendor,;t t | |
7679 | s,@build_os@,$build_os,;t t | |
7680 | s,@host@,$host,;t t | |
7681 | s,@host_cpu@,$host_cpu,;t t | |
7682 | s,@host_vendor@,$host_vendor,;t t | |
7683 | s,@host_os@,$host_os,;t t | |
7684 | s,@target@,$target,;t t | |
7685 | s,@target_cpu@,$target_cpu,;t t | |
7686 | s,@target_vendor@,$target_vendor,;t t | |
7687 | s,@target_os@,$target_os,;t t | |
7688 | s,@CC@,$CC,;t t | |
7689 | s,@CFLAGS@,$CFLAGS,;t t | |
7690 | s,@LDFLAGS@,$LDFLAGS,;t t | |
7691 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
7692 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
7693 | s,@EXEEXT@,$EXEEXT,;t t | |
7694 | s,@OBJEXT@,$OBJEXT,;t t | |
7695 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7696 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7697 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7698 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
7699 | s,@HDEFINES@,$HDEFINES,;t t | |
7700 | s,@AR@,$AR,;t t | |
7701 | s,@RANLIB@,$RANLIB,;t t | |
7702 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
7703 | s,@SET_MAKE@,$SET_MAKE,;t t | |
7704 | s,@CPP@,$CPP,;t t | |
7705 | s,@EGREP@,$EGREP,;t t | |
7706 | s,@ALLOCA@,$ALLOCA,;t t | |
7707 | s,@USE_NLS@,$USE_NLS,;t t | |
7708 | s,@MSGFMT@,$MSGFMT,;t t | |
7709 | s,@GMSGFMT@,$GMSGFMT,;t t | |
7710 | s,@XGETTEXT@,$XGETTEXT,;t t | |
7711 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
7712 | s,@CATALOGS@,$CATALOGS,;t t | |
7713 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
7714 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
7715 | s,@GMOFILES@,$GMOFILES,;t t | |
7716 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
7717 | s,@INTLDEPS@,$INTLDEPS,;t t | |
7718 | s,@INTLLIBS@,$INTLLIBS,;t t | |
7719 | s,@INTLOBJS@,$INTLOBJS,;t t | |
7720 | s,@POFILES@,$POFILES,;t t | |
7721 | s,@POSUB@,$POSUB,;t t | |
7722 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
7723 | s,@GT_NO@,$GT_NO,;t t | |
7724 | s,@GT_YES@,$GT_YES,;t t | |
7725 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
7726 | s,@l@,$l,;t t | |
7727 | s,@MAINT@,$MAINT,;t t | |
7728 | s,@sim_bswap@,$sim_bswap,;t t | |
7729 | s,@sim_cflags@,$sim_cflags,;t t | |
7730 | s,@sim_debug@,$sim_debug,;t t | |
7731 | s,@sim_stdio@,$sim_stdio,;t t | |
7732 | s,@sim_trace@,$sim_trace,;t t | |
7733 | s,@sim_profile@,$sim_profile,;t t | |
7734 | s,@cgen_breaks@,$cgen_breaks,;t t | |
7735 | s,@LIBOBJS@,$LIBOBJS,;t t | |
7736 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
c906108c | 7737 | CEOF |
b7026657 AC |
7738 | |
7739 | _ACEOF | |
7740 | ||
7741 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7742 | # Split the substitutions into bite-sized pieces for seds with | |
7743 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7744 | ac_max_sed_lines=48 | |
7745 | ac_sed_frag=1 # Number of current file. | |
7746 | ac_beg=1 # First line for current file. | |
7747 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7748 | ac_more_lines=: | |
7749 | ac_sed_cmds= | |
7750 | while $ac_more_lines; do | |
7751 | if test $ac_beg -gt 1; then | |
7752 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7753 | else | |
7754 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7755 | fi | |
7756 | if test ! -s $tmp/subs.frag; then | |
7757 | ac_more_lines=false | |
c906108c | 7758 | else |
b7026657 AC |
7759 | # The purpose of the label and of the branching condition is to |
7760 | # speed up the sed processing (if there are no `@' at all, there | |
7761 | # is no need to browse any of the substitutions). | |
7762 | # These are the two extra sed commands mentioned above. | |
7763 | (echo ':t | |
7764 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7765 | if test -z "$ac_sed_cmds"; then | |
7766 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
7767 | else | |
7768 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
7769 | fi | |
7770 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7771 | ac_beg=$ac_end | |
7772 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
c906108c | 7773 | fi |
b7026657 AC |
7774 | done |
7775 | if test -z "$ac_sed_cmds"; then | |
7776 | ac_sed_cmds=cat | |
c906108c | 7777 | fi |
b7026657 | 7778 | fi # test -n "$CONFIG_FILES" |
c906108c | 7779 | |
b7026657 AC |
7780 | _ACEOF |
7781 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7782 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
c906108c | 7783 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
7784 | case $ac_file in |
7785 | - | *:- | *:-:* ) # input from stdin | |
7786 | cat >$tmp/stdin | |
7787 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7788 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7789 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7790 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7791 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
7792 | esac |
7793 | ||
b7026657 AC |
7794 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
7795 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7796 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7797 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7798 | X"$ac_file" : 'X\(//\)$' \| \ | |
7799 | X"$ac_file" : 'X\(/\)' \| \ | |
7800 | . : '\(.\)' 2>/dev/null || | |
7801 | echo X"$ac_file" | | |
7802 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7803 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7804 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7805 | /^X\(\/\).*/{ s//\1/; q; } | |
7806 | s/.*/./; q'` | |
7807 | { if $as_mkdir_p; then | |
7808 | mkdir -p "$ac_dir" | |
c906108c | 7809 | else |
b7026657 AC |
7810 | as_dir="$ac_dir" |
7811 | as_dirs= | |
7812 | while test ! -d "$as_dir"; do | |
7813 | as_dirs="$as_dir $as_dirs" | |
7814 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7815 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7816 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7817 | X"$as_dir" : 'X\(//\)$' \| \ | |
7818 | X"$as_dir" : 'X\(/\)' \| \ | |
7819 | . : '\(.\)' 2>/dev/null || | |
7820 | echo X"$as_dir" | | |
7821 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7822 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7823 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7824 | /^X\(\/\).*/{ s//\1/; q; } | |
7825 | s/.*/./; q'` | |
7826 | done | |
7827 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7828 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7829 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7830 | { (exit 1); exit 1; }; }; } | |
c906108c | 7831 | |
b7026657 AC |
7832 | ac_builddir=. |
7833 | ||
7834 | if test "$ac_dir" != .; then | |
7835 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7836 | # A "../" for each directory in $ac_dir_suffix. | |
7837 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7838 | else | |
7839 | ac_dir_suffix= ac_top_builddir= | |
7840 | fi | |
7841 | ||
7842 | case $srcdir in | |
7843 | .) # No --srcdir option. We are building in place. | |
7844 | ac_srcdir=. | |
7845 | if test -z "$ac_top_builddir"; then | |
7846 | ac_top_srcdir=. | |
7847 | else | |
7848 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7849 | fi ;; | |
7850 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7851 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7852 | ac_top_srcdir=$srcdir ;; | |
c906108c | 7853 | *) # Relative path. |
b7026657 AC |
7854 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
7855 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7856 | esac | |
7857 | ||
7858 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7859 | # the directories may not exist. | |
7860 | case `pwd` in | |
7861 | .) ac_abs_builddir="$ac_dir";; | |
7862 | *) | |
7863 | case "$ac_dir" in | |
7864 | .) ac_abs_builddir=`pwd`;; | |
7865 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7866 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7867 | esac;; | |
7868 | esac | |
7869 | case $ac_abs_builddir in | |
7870 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7871 | *) | |
7872 | case ${ac_top_builddir}. in | |
7873 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7874 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7875 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7876 | esac;; | |
7877 | esac | |
7878 | case $ac_abs_builddir in | |
7879 | .) ac_abs_srcdir=$ac_srcdir;; | |
7880 | *) | |
7881 | case $ac_srcdir in | |
7882 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7883 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7884 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7885 | esac;; | |
7886 | esac | |
7887 | case $ac_abs_builddir in | |
7888 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7889 | *) | |
7890 | case $ac_top_srcdir in | |
7891 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7892 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7893 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7894 | esac;; | |
7895 | esac | |
c906108c | 7896 | |
c906108c | 7897 | |
b7026657 AC |
7898 | case $INSTALL in |
7899 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7900 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c906108c SS |
7901 | esac |
7902 | ||
b7026657 AC |
7903 | if test x"$ac_file" != x-; then |
7904 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7905 | echo "$as_me: creating $ac_file" >&6;} | |
7906 | rm -f "$ac_file" | |
7907 | fi | |
7908 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7909 | # use $as_me), people would be surprised to read: | |
7910 | # /* config.h. Generated by config.status. */ | |
7911 | if test x"$ac_file" = x-; then | |
7912 | configure_input= | |
7913 | else | |
7914 | configure_input="$ac_file. " | |
7915 | fi | |
7916 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
7917 | sed 's,.*/,,'` by configure." | |
7918 | ||
7919 | # First look for the input files in the build tree, otherwise in the | |
7920 | # src tree. | |
7921 | ac_file_inputs=`IFS=: | |
7922 | for f in $ac_file_in; do | |
7923 | case $f in | |
7924 | -) echo $tmp/stdin ;; | |
7925 | [\\/$]*) | |
7926 | # Absolute (can't be DOS-style, as IFS=:) | |
7927 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7928 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7929 | { (exit 1); exit 1; }; } | |
7930 | echo "$f";; | |
7931 | *) # Relative | |
7932 | if test -f "$f"; then | |
7933 | # Build tree | |
7934 | echo "$f" | |
7935 | elif test -f "$srcdir/$f"; then | |
7936 | # Source tree | |
7937 | echo "$srcdir/$f" | |
7938 | else | |
7939 | # /dev/null tree | |
7940 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7941 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7942 | { (exit 1); exit 1; }; } | |
7943 | fi;; | |
7944 | esac | |
7945 | done` || { (exit 1); exit 1; } | |
7946 | _ACEOF | |
7947 | cat >>$CONFIG_STATUS <<_ACEOF | |
7948 | sed "$ac_vpsub | |
7949 | $extrasub | |
7950 | _ACEOF | |
7951 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7952 | :t | |
7953 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7954 | s,@configure_input@,$configure_input,;t t | |
7955 | s,@srcdir@,$ac_srcdir,;t t | |
7956 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
7957 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
7958 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
7959 | s,@builddir@,$ac_builddir,;t t | |
7960 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
7961 | s,@top_builddir@,$ac_top_builddir,;t t | |
7962 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
7963 | s,@INSTALL@,$ac_INSTALL,;t t | |
7964 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7965 | rm -f $tmp/stdin | |
7966 | if test x"$ac_file" != x-; then | |
7967 | mv $tmp/out $ac_file | |
7968 | else | |
7969 | cat $tmp/out | |
7970 | rm -f $tmp/out | |
7971 | fi | |
7972 | ||
7973 | done | |
7974 | _ACEOF | |
7975 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7976 | ||
7977 | # | |
7978 | # CONFIG_HEADER section. | |
7979 | # | |
c906108c SS |
7980 | |
7981 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7982 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7983 | # | |
7984 | # ac_d sets the value in "#define NAME VALUE" lines. | |
b7026657 AC |
7985 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7986 | ac_dB='[ ].*$,\1#\2' | |
7987 | ac_dC=' ' | |
7988 | ac_dD=',;t' | |
7989 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
7990 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7991 | ac_uB='$,\1#\2define\3' | |
c906108c | 7992 | ac_uC=' ' |
b7026657 AC |
7993 | ac_uD=',;t' |
7994 | ||
7995 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
c906108c | 7996 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
7997 | case $ac_file in |
7998 | - | *:- | *:-:* ) # input from stdin | |
7999 | cat >$tmp/stdin | |
8000 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8001 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8002 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8003 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8004 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
8005 | esac |
8006 | ||
b7026657 AC |
8007 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
8008 | echo "$as_me: creating $ac_file" >&6;} | |
8009 | ||
8010 | # First look for the input files in the build tree, otherwise in the | |
8011 | # src tree. | |
8012 | ac_file_inputs=`IFS=: | |
8013 | for f in $ac_file_in; do | |
8014 | case $f in | |
8015 | -) echo $tmp/stdin ;; | |
8016 | [\\/$]*) | |
8017 | # Absolute (can't be DOS-style, as IFS=:) | |
8018 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8019 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8020 | { (exit 1); exit 1; }; } | |
8021 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
8022 | echo "$f";; | |
8023 | *) # Relative | |
8024 | if test -f "$f"; then | |
8025 | # Build tree | |
8026 | echo "$f" | |
8027 | elif test -f "$srcdir/$f"; then | |
8028 | # Source tree | |
8029 | echo "$srcdir/$f" | |
8030 | else | |
8031 | # /dev/null tree | |
8032 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8033 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8034 | { (exit 1); exit 1; }; } | |
8035 | fi;; | |
8036 | esac | |
8037 | done` || { (exit 1); exit 1; } | |
8038 | # Remove the trailing spaces. | |
8039 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
8040 | ||
8041 | _ACEOF | |
8042 | ||
8043 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
8044 | # `conftest.undefs', that substitutes the proper values into | |
8045 | # config.h.in to produce config.h. The first handles `#define' | |
8046 | # templates, and the second `#undef' templates. | |
8047 | # And first: Protect against being on the right side of a sed subst in | |
8048 | # config.status. Protect against being in an unquoted here document | |
8049 | # in config.status. | |
8050 | rm -f conftest.defines conftest.undefs | |
8051 | # Using a here document instead of a string reduces the quoting nightmare. | |
8052 | # Putting comments in sed scripts is not portable. | |
8053 | # | |
8054 | # `end' is used to avoid that the second main sed command (meant for | |
8055 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
8056 | # See the Autoconf documentation for `clear'. | |
8057 | cat >confdef2sed.sed <<\_ACEOF | |
8058 | s/[\\&,]/\\&/g | |
8059 | s,[\\$`],\\&,g | |
8060 | t clear | |
8061 | : clear | |
8062 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
8063 | t end | |
8064 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
8065 | : end | |
8066 | _ACEOF | |
8067 | # If some macros were called several times there might be several times | |
8068 | # the same #defines, which is useless. Nevertheless, we may not want to | |
8069 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
8070 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
8071 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
8072 | rm -f confdef2sed.sed | |
c906108c SS |
8073 | |
8074 | # This sed command replaces #undef with comments. This is necessary, for | |
8075 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8076 | # on some systems where configure will not decide to define it. | |
b7026657 AC |
8077 | cat >>conftest.undefs <<\_ACEOF |
8078 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
8079 | _ACEOF | |
8080 | ||
8081 | # Break up conftest.defines because some shells have a limit on the size | |
8082 | # of here documents, and old seds have small limits too (100 cmds). | |
8083 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
8084 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
8085 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
8086 | echo ' :' >>$CONFIG_STATUS | |
8087 | rm -f conftest.tail | |
8088 | while grep . conftest.defines >/dev/null | |
8089 | do | |
8090 | # Write a limited-size here document to $tmp/defines.sed. | |
8091 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
8092 | # Speed up: don't consider the non `#define' lines. | |
8093 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
8094 | # Work around the forget-to-reset-the-flag bug. | |
8095 | echo 't clr' >>$CONFIG_STATUS | |
8096 | echo ': clr' >>$CONFIG_STATUS | |
8097 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
8098 | echo 'CEOF | |
8099 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
8100 | rm -f $tmp/in | |
8101 | mv $tmp/out $tmp/in | |
8102 | ' >>$CONFIG_STATUS | |
8103 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
8104 | rm -f conftest.defines | |
8105 | mv conftest.tail conftest.defines | |
8106 | done | |
8107 | rm -f conftest.defines | |
8108 | echo ' fi # grep' >>$CONFIG_STATUS | |
8109 | echo >>$CONFIG_STATUS | |
c906108c | 8110 | |
b7026657 AC |
8111 | # Break up conftest.undefs because some shells have a limit on the size |
8112 | # of here documents, and old seds have small limits too (100 cmds). | |
8113 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
c906108c | 8114 | rm -f conftest.tail |
b7026657 | 8115 | while grep . conftest.undefs >/dev/null |
c906108c | 8116 | do |
b7026657 AC |
8117 | # Write a limited-size here document to $tmp/undefs.sed. |
8118 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
8119 | # Speed up: don't consider the non `#undef' | |
8120 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
8121 | # Work around the forget-to-reset-the-flag bug. | |
8122 | echo 't clr' >>$CONFIG_STATUS | |
8123 | echo ': clr' >>$CONFIG_STATUS | |
8124 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
c906108c | 8125 | echo 'CEOF |
b7026657 AC |
8126 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
8127 | rm -f $tmp/in | |
8128 | mv $tmp/out $tmp/in | |
8129 | ' >>$CONFIG_STATUS | |
8130 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
8131 | rm -f conftest.undefs | |
8132 | mv conftest.tail conftest.undefs | |
8133 | done | |
8134 | rm -f conftest.undefs | |
8135 | ||
8136 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8137 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8138 | # use $as_me), people would be surprised to read: | |
8139 | # /* config.h. Generated by config.status. */ | |
8140 | if test x"$ac_file" = x-; then | |
8141 | echo "/* Generated by configure. */" >$tmp/config.h | |
c906108c | 8142 | else |
b7026657 | 8143 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
c906108c | 8144 | fi |
b7026657 AC |
8145 | cat $tmp/in >>$tmp/config.h |
8146 | rm -f $tmp/in | |
8147 | if test x"$ac_file" != x-; then | |
8148 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
8149 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
8150 | echo "$as_me: $ac_file is unchanged" >&6;} | |
8151 | else | |
8152 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8153 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8154 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8155 | X"$ac_file" : 'X\(//\)$' \| \ | |
8156 | X"$ac_file" : 'X\(/\)' \| \ | |
8157 | . : '\(.\)' 2>/dev/null || | |
8158 | echo X"$ac_file" | | |
8159 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8160 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8161 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8162 | /^X\(\/\).*/{ s//\1/; q; } | |
8163 | s/.*/./; q'` | |
8164 | { if $as_mkdir_p; then | |
8165 | mkdir -p "$ac_dir" | |
8166 | else | |
8167 | as_dir="$ac_dir" | |
8168 | as_dirs= | |
8169 | while test ! -d "$as_dir"; do | |
8170 | as_dirs="$as_dir $as_dirs" | |
8171 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8172 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8173 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8174 | X"$as_dir" : 'X\(//\)$' \| \ | |
8175 | X"$as_dir" : 'X\(/\)' \| \ | |
8176 | . : '\(.\)' 2>/dev/null || | |
8177 | echo X"$as_dir" | | |
8178 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8179 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8180 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8181 | /^X\(\/\).*/{ s//\1/; q; } | |
8182 | s/.*/./; q'` | |
8183 | done | |
8184 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8185 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8186 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8187 | { (exit 1); exit 1; }; }; } | |
c906108c | 8188 | |
b7026657 AC |
8189 | rm -f $ac_file |
8190 | mv $tmp/config.h $ac_file | |
8191 | fi | |
8192 | else | |
8193 | cat $tmp/config.h | |
8194 | rm -f $tmp/config.h | |
8195 | fi | |
8196 | done | |
8197 | _ACEOF | |
8198 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c906108c | 8199 | |
b7026657 AC |
8200 | # |
8201 | # CONFIG_LINKS section. | |
8202 | # | |
c906108c | 8203 | |
b7026657 AC |
8204 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
8205 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8206 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 8207 | |
b7026657 AC |
8208 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
8209 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
8210 | |
8211 | if test ! -r $srcdir/$ac_source; then | |
b7026657 AC |
8212 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
8213 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
8214 | { (exit 1); exit 1; }; } | |
c906108c SS |
8215 | fi |
8216 | rm -f $ac_dest | |
8217 | ||
8218 | # Make relative symlinks. | |
b7026657 AC |
8219 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
8220 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8221 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
8222 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8223 | X"$ac_dest" : 'X\(/\)' \| \ | |
8224 | . : '\(.\)' 2>/dev/null || | |
8225 | echo X"$ac_dest" | | |
8226 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8227 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8228 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8229 | /^X\(\/\).*/{ s//\1/; q; } | |
8230 | s/.*/./; q'` | |
8231 | { if $as_mkdir_p; then | |
8232 | mkdir -p "$ac_dest_dir" | |
c906108c | 8233 | else |
b7026657 AC |
8234 | as_dir="$ac_dest_dir" |
8235 | as_dirs= | |
8236 | while test ! -d "$as_dir"; do | |
8237 | as_dirs="$as_dir $as_dirs" | |
8238 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8239 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8240 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8241 | X"$as_dir" : 'X\(//\)$' \| \ | |
8242 | X"$as_dir" : 'X\(/\)' \| \ | |
8243 | . : '\(.\)' 2>/dev/null || | |
8244 | echo X"$as_dir" | | |
8245 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8246 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8247 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8248 | /^X\(\/\).*/{ s//\1/; q; } | |
8249 | s/.*/./; q'` | |
8250 | done | |
8251 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8252 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
8253 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
8254 | { (exit 1); exit 1; }; }; } | |
8255 | ||
8256 | ac_builddir=. | |
8257 | ||
8258 | if test "$ac_dest_dir" != .; then | |
8259 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
8260 | # A "../" for each directory in $ac_dir_suffix. | |
8261 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8262 | else | |
8263 | ac_dir_suffix= ac_top_builddir= | |
8264 | fi | |
8265 | ||
8266 | case $srcdir in | |
8267 | .) # No --srcdir option. We are building in place. | |
8268 | ac_srcdir=. | |
8269 | if test -z "$ac_top_builddir"; then | |
8270 | ac_top_srcdir=. | |
8271 | else | |
8272 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8273 | fi ;; | |
8274 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8275 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8276 | ac_top_srcdir=$srcdir ;; | |
8277 | *) # Relative path. | |
8278 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8279 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8280 | esac | |
8281 | ||
8282 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8283 | # the directories may not exist. | |
8284 | case `pwd` in | |
8285 | .) ac_abs_builddir="$ac_dest_dir";; | |
8286 | *) | |
8287 | case "$ac_dest_dir" in | |
8288 | .) ac_abs_builddir=`pwd`;; | |
8289 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
8290 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
8291 | esac;; | |
8292 | esac | |
8293 | case $ac_abs_builddir in | |
8294 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8295 | *) | |
8296 | case ${ac_top_builddir}. in | |
8297 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8298 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8299 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8300 | esac;; | |
8301 | esac | |
8302 | case $ac_abs_builddir in | |
8303 | .) ac_abs_srcdir=$ac_srcdir;; | |
8304 | *) | |
8305 | case $ac_srcdir in | |
8306 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8307 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8308 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8309 | esac;; | |
8310 | esac | |
8311 | case $ac_abs_builddir in | |
8312 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8313 | *) | |
8314 | case $ac_top_srcdir in | |
8315 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8316 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8317 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8318 | esac;; | |
8319 | esac | |
c906108c | 8320 | |
b7026657 AC |
8321 | |
8322 | case $srcdir in | |
8323 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
8324 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | |
c906108c SS |
8325 | esac |
8326 | ||
b7026657 AC |
8327 | # Try a symlink, then a hard link, then a copy. |
8328 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
8329 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
8330 | cp -p $srcdir/$ac_source $ac_dest || | |
8331 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
8332 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
8333 | { (exit 1); exit 1; }; } | |
c906108c | 8334 | done |
b7026657 AC |
8335 | _ACEOF |
8336 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8337 | ||
8338 | # | |
8339 | # CONFIG_COMMANDS section. | |
8340 | # | |
8341 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
8342 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8343 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8344 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
8345 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8346 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
8347 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8348 | X"$ac_dest" : 'X\(/\)' \| \ | |
8349 | . : '\(.\)' 2>/dev/null || | |
8350 | echo X"$ac_dest" | | |
8351 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8352 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8353 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8354 | /^X\(\/\).*/{ s//\1/; q; } | |
8355 | s/.*/./; q'` | |
8356 | { if $as_mkdir_p; then | |
8357 | mkdir -p "$ac_dir" | |
8358 | else | |
8359 | as_dir="$ac_dir" | |
8360 | as_dirs= | |
8361 | while test ! -d "$as_dir"; do | |
8362 | as_dirs="$as_dir $as_dirs" | |
8363 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8364 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8365 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8366 | X"$as_dir" : 'X\(//\)$' \| \ | |
8367 | X"$as_dir" : 'X\(/\)' \| \ | |
8368 | . : '\(.\)' 2>/dev/null || | |
8369 | echo X"$as_dir" | | |
8370 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8371 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8372 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8373 | /^X\(\/\).*/{ s//\1/; q; } | |
8374 | s/.*/./; q'` | |
8375 | done | |
8376 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8377 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8378 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8379 | { (exit 1); exit 1; }; }; } | |
8380 | ||
8381 | ac_builddir=. | |
8382 | ||
8383 | if test "$ac_dir" != .; then | |
8384 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8385 | # A "../" for each directory in $ac_dir_suffix. | |
8386 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8387 | else | |
8388 | ac_dir_suffix= ac_top_builddir= | |
8389 | fi | |
c906108c | 8390 | |
b7026657 AC |
8391 | case $srcdir in |
8392 | .) # No --srcdir option. We are building in place. | |
8393 | ac_srcdir=. | |
8394 | if test -z "$ac_top_builddir"; then | |
8395 | ac_top_srcdir=. | |
8396 | else | |
8397 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8398 | fi ;; | |
8399 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8400 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8401 | ac_top_srcdir=$srcdir ;; | |
8402 | *) # Relative path. | |
8403 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8404 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8405 | esac | |
8406 | ||
8407 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8408 | # the directories may not exist. | |
8409 | case `pwd` in | |
8410 | .) ac_abs_builddir="$ac_dir";; | |
8411 | *) | |
8412 | case "$ac_dir" in | |
8413 | .) ac_abs_builddir=`pwd`;; | |
8414 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8415 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8416 | esac;; | |
8417 | esac | |
8418 | case $ac_abs_builddir in | |
8419 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8420 | *) | |
8421 | case ${ac_top_builddir}. in | |
8422 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8423 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8424 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8425 | esac;; | |
8426 | esac | |
8427 | case $ac_abs_builddir in | |
8428 | .) ac_abs_srcdir=$ac_srcdir;; | |
8429 | *) | |
8430 | case $ac_srcdir in | |
8431 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8432 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8433 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8434 | esac;; | |
8435 | esac | |
8436 | case $ac_abs_builddir in | |
8437 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8438 | *) | |
8439 | case $ac_top_srcdir in | |
8440 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8441 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8442 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8443 | esac;; | |
8444 | esac | |
8445 | ||
8446 | ||
8447 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
8448 | echo "$as_me: executing $ac_dest commands" >&6;} | |
8449 | case $ac_dest in | |
8450 | default ) case "x$CONFIG_FILES" in | |
c906108c SS |
8451 | xMakefile*) |
8452 | echo "Merging Makefile.sim+Make-common.sim into Makefile ..." | |
8453 | rm -f Makesim1.tmp Makesim2.tmp Makefile | |
8454 | sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp | |
8455 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp | |
8456 | sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \ | |
8457 | -e '/^## COMMON_POST_/ r Makesim2.tmp' \ | |
8458 | <Makefile.sim >Makefile | |
8459 | rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp | |
8460 | ;; | |
8461 | esac | |
8462 | case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac | |
b7026657 AC |
8463 | ;; |
8464 | esac | |
8465 | done | |
8466 | _ACEOF | |
c906108c | 8467 | |
b7026657 AC |
8468 | cat >>$CONFIG_STATUS <<\_ACEOF |
8469 | ||
8470 | { (exit 0); exit 0; } | |
8471 | _ACEOF | |
c906108c | 8472 | chmod +x $CONFIG_STATUS |
b7026657 AC |
8473 | ac_clean_files=$ac_clean_files_save |
8474 | ||
8475 | ||
8476 | # configure is writing to config.log, and then calls config.status. | |
8477 | # config.status does its own redirection, appending to config.log. | |
8478 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8479 | # by configure, so config.status won't be able to write to it; its | |
8480 | # output is simply discarded. So we exec the FD to /dev/null, | |
8481 | # effectively closing config.log, so it can be properly (re)opened and | |
8482 | # appended to by config.status. When coming back to configure, we | |
8483 | # need to make the FD available again. | |
8484 | if test "$no_create" != yes; then | |
8485 | ac_cs_success=: | |
8486 | ac_config_status_args= | |
8487 | test "$silent" = yes && | |
8488 | ac_config_status_args="$ac_config_status_args --quiet" | |
8489 | exec 5>/dev/null | |
8490 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8491 | exec 5>>config.log | |
8492 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8493 | # would make configure fail if this is the last instruction. | |
8494 | $ac_cs_success || { (exit 1); exit 1; } | |
8495 | fi | |
c906108c SS |
8496 | |
8497 |