]>
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 COPRO 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 | ||
38f48d72 AC |
1315 | ac_aux_dir= |
1316 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1317 | if test -f $ac_dir/install-sh; then | |
1318 | ac_aux_dir=$ac_dir | |
1319 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1320 | break | |
1321 | elif test -f $ac_dir/install.sh; then | |
1322 | ac_aux_dir=$ac_dir | |
1323 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1324 | break | |
1325 | elif test -f $ac_dir/shtool; then | |
1326 | ac_aux_dir=$ac_dir | |
1327 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1328 | break | |
1329 | fi | |
1330 | done | |
1331 | if test -z "$ac_aux_dir"; then | |
1332 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1333 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1334 | { (exit 1); exit 1; }; } | |
1335 | fi | |
1336 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1337 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1338 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1339 | ||
b7026657 AC |
1340 | # Make sure we can run config.sub. |
1341 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1342 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1343 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1344 | { (exit 1); exit 1; }; } | |
1345 | ||
1346 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1347 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1348 | if test "${ac_cv_build+set}" = set; then | |
1349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1350 | else | |
1351 | ac_cv_build_alias=$build_alias | |
1352 | test -z "$ac_cv_build_alias" && | |
1353 | ac_cv_build_alias=`$ac_config_guess` | |
1354 | test -z "$ac_cv_build_alias" && | |
1355 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1356 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1357 | { (exit 1); exit 1; }; } | |
1358 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1359 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1360 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1361 | { (exit 1); exit 1; }; } | |
1362 | ||
1363 | fi | |
1364 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1365 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1366 | build=$ac_cv_build | |
1367 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1368 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1369 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1370 | ||
1371 | ||
1372 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1373 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1374 | if test "${ac_cv_host+set}" = set; then | |
1375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1376 | else | |
1377 | ac_cv_host_alias=$host_alias | |
1378 | test -z "$ac_cv_host_alias" && | |
1379 | ac_cv_host_alias=$ac_cv_build_alias | |
1380 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1381 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1382 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1383 | { (exit 1); exit 1; }; } | |
1384 | ||
1385 | fi | |
1386 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1387 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1388 | host=$ac_cv_host | |
1389 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1390 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1391 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1392 | ||
1393 | ||
1394 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1395 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1396 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1397 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1399 | else | |
1400 | cat >conftest.make <<\_ACEOF | |
1401 | all: | |
1402 | @echo 'ac_maketemp="$(MAKE)"' | |
1403 | _ACEOF | |
1404 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1405 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1406 | if test -n "$ac_maketemp"; then | |
1407 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1408 | else | |
1409 | eval ac_cv_prog_make_${ac_make}_set=no | |
1410 | fi | |
1411 | rm -f conftest.make | |
1412 | fi | |
1413 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1414 | echo "$as_me:$LINENO: result: yes" >&5 | |
1415 | echo "${ECHO_T}yes" >&6 | |
1416 | SET_MAKE= | |
1417 | else | |
1418 | echo "$as_me:$LINENO: result: no" >&5 | |
1419 | echo "${ECHO_T}no" >&6 | |
1420 | SET_MAKE="MAKE=${MAKE-make}" | |
1421 | fi | |
1422 | ||
1423 | ||
1424 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
1425 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
1426 | if test "${ac_cv_search_strerror+set}" = set; then | |
1427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1428 | else | |
1429 | ac_func_search_save_LIBS=$LIBS | |
1430 | ac_cv_search_strerror=no | |
1431 | cat >conftest.$ac_ext <<_ACEOF | |
1432 | /* confdefs.h. */ | |
1433 | _ACEOF | |
1434 | cat confdefs.h >>conftest.$ac_ext | |
1435 | cat >>conftest.$ac_ext <<_ACEOF | |
1436 | /* end confdefs.h. */ | |
1437 | ||
1438 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1439 | #ifdef __cplusplus | |
1440 | extern "C" | |
1441 | #endif | |
1442 | /* We use char because int might match the return type of a gcc2 | |
1443 | builtin and then its argument prototype would still apply. */ | |
1444 | char strerror (); | |
1445 | int | |
1446 | main () | |
1447 | { | |
1448 | strerror (); | |
1449 | ; | |
1450 | return 0; | |
1451 | } | |
1452 | _ACEOF | |
1453 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1455 | (eval $ac_link) 2>conftest.er1 | |
1456 | ac_status=$? | |
1457 | grep -v '^ *+' conftest.er1 >conftest.err | |
1458 | rm -f conftest.er1 | |
1459 | cat conftest.err >&5 | |
1460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1461 | (exit $ac_status); } && | |
1462 | { ac_try='test -z "$ac_c_werror_flag" | |
1463 | || test ! -s conftest.err' | |
1464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1465 | (eval $ac_try) 2>&5 | |
1466 | ac_status=$? | |
1467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1468 | (exit $ac_status); }; } && | |
1469 | { ac_try='test -s conftest$ac_exeext' | |
1470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1471 | (eval $ac_try) 2>&5 | |
1472 | ac_status=$? | |
1473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1474 | (exit $ac_status); }; }; then | |
1475 | ac_cv_search_strerror="none required" | |
1476 | else | |
1477 | echo "$as_me: failed program was:" >&5 | |
1478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1479 | ||
1480 | fi | |
1481 | rm -f conftest.err conftest.$ac_objext \ | |
1482 | conftest$ac_exeext conftest.$ac_ext | |
1483 | if test "$ac_cv_search_strerror" = no; then | |
1484 | for ac_lib in cposix; do | |
1485 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
1486 | cat >conftest.$ac_ext <<_ACEOF | |
1487 | /* confdefs.h. */ | |
1488 | _ACEOF | |
1489 | cat confdefs.h >>conftest.$ac_ext | |
1490 | cat >>conftest.$ac_ext <<_ACEOF | |
1491 | /* end confdefs.h. */ | |
1492 | ||
1493 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1494 | #ifdef __cplusplus | |
1495 | extern "C" | |
1496 | #endif | |
1497 | /* We use char because int might match the return type of a gcc2 | |
1498 | builtin and then its argument prototype would still apply. */ | |
1499 | char strerror (); | |
1500 | int | |
1501 | main () | |
1502 | { | |
1503 | strerror (); | |
1504 | ; | |
1505 | return 0; | |
1506 | } | |
1507 | _ACEOF | |
1508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1510 | (eval $ac_link) 2>conftest.er1 | |
1511 | ac_status=$? | |
1512 | grep -v '^ *+' conftest.er1 >conftest.err | |
1513 | rm -f conftest.er1 | |
1514 | cat conftest.err >&5 | |
1515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1516 | (exit $ac_status); } && | |
1517 | { ac_try='test -z "$ac_c_werror_flag" | |
1518 | || test ! -s conftest.err' | |
1519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1520 | (eval $ac_try) 2>&5 | |
1521 | ac_status=$? | |
1522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1523 | (exit $ac_status); }; } && | |
1524 | { ac_try='test -s conftest$ac_exeext' | |
1525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1526 | (eval $ac_try) 2>&5 | |
1527 | ac_status=$? | |
1528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1529 | (exit $ac_status); }; }; then | |
1530 | ac_cv_search_strerror="-l$ac_lib" | |
1531 | break | |
1532 | else | |
1533 | echo "$as_me: failed program was:" >&5 | |
1534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1535 | ||
1536 | fi | |
1537 | rm -f conftest.err conftest.$ac_objext \ | |
1538 | conftest$ac_exeext conftest.$ac_ext | |
1539 | done | |
1540 | fi | |
1541 | LIBS=$ac_func_search_save_LIBS | |
1542 | fi | |
1543 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
1544 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
1545 | if test "$ac_cv_search_strerror" != no; then | |
1546 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
1547 | ||
1548 | fi | |
1549 | ||
1550 | ac_ext=c | |
1551 | ac_cpp='$CPP $CPPFLAGS' | |
1552 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1553 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1554 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1555 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
1556 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
1557 | # On Suns, sometimes $CPP names a directory. | |
1558 | if test -n "$CPP" && test -d "$CPP"; then | |
1559 | CPP= | |
1560 | fi | |
1561 | if test -z "$CPP"; then | |
1562 | if test "${ac_cv_prog_CPP+set}" = set; then | |
1563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1564 | else | |
1565 | # Double quotes because CPP needs to be expanded | |
1566 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
1567 | do | |
1568 | ac_preproc_ok=false | |
1569 | for ac_c_preproc_warn_flag in '' yes | |
1570 | do | |
1571 | # Use a header file that comes with gcc, so configuring glibc | |
1572 | # with a fresh cross-compiler works. | |
1573 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1574 | # <limits.h> exists even on freestanding compilers. | |
1575 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1576 | # not just through cpp. "Syntax error" is here to catch this case. | |
1577 | cat >conftest.$ac_ext <<_ACEOF | |
1578 | /* confdefs.h. */ | |
1579 | _ACEOF | |
1580 | cat confdefs.h >>conftest.$ac_ext | |
1581 | cat >>conftest.$ac_ext <<_ACEOF | |
1582 | /* end confdefs.h. */ | |
1583 | #ifdef __STDC__ | |
1584 | # include <limits.h> | |
1585 | #else | |
1586 | # include <assert.h> | |
1587 | #endif | |
1588 | Syntax error | |
1589 | _ACEOF | |
1590 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1591 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1592 | ac_status=$? | |
1593 | grep -v '^ *+' conftest.er1 >conftest.err | |
1594 | rm -f conftest.er1 | |
1595 | cat conftest.err >&5 | |
1596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1597 | (exit $ac_status); } >/dev/null; then | |
1598 | if test -s conftest.err; then | |
1599 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1600 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1601 | else | |
1602 | ac_cpp_err= | |
1603 | fi | |
1604 | else | |
1605 | ac_cpp_err=yes | |
1606 | fi | |
1607 | if test -z "$ac_cpp_err"; then | |
1608 | : | |
1609 | else | |
1610 | echo "$as_me: failed program was:" >&5 | |
1611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1612 | ||
1613 | # Broken: fails on valid input. | |
1614 | continue | |
1615 | fi | |
1616 | rm -f conftest.err conftest.$ac_ext | |
1617 | ||
1618 | # OK, works on sane cases. Now check whether non-existent headers | |
1619 | # can be detected and how. | |
1620 | cat >conftest.$ac_ext <<_ACEOF | |
1621 | /* confdefs.h. */ | |
1622 | _ACEOF | |
1623 | cat confdefs.h >>conftest.$ac_ext | |
1624 | cat >>conftest.$ac_ext <<_ACEOF | |
1625 | /* end confdefs.h. */ | |
1626 | #include <ac_nonexistent.h> | |
1627 | _ACEOF | |
1628 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1629 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1630 | ac_status=$? | |
1631 | grep -v '^ *+' conftest.er1 >conftest.err | |
1632 | rm -f conftest.er1 | |
1633 | cat conftest.err >&5 | |
1634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1635 | (exit $ac_status); } >/dev/null; then | |
1636 | if test -s conftest.err; then | |
1637 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1638 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1639 | else | |
1640 | ac_cpp_err= | |
1641 | fi | |
1642 | else | |
1643 | ac_cpp_err=yes | |
1644 | fi | |
1645 | if test -z "$ac_cpp_err"; then | |
1646 | # Broken: success on invalid input. | |
1647 | continue | |
1648 | else | |
1649 | echo "$as_me: failed program was:" >&5 | |
1650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1651 | ||
1652 | # Passes both tests. | |
1653 | ac_preproc_ok=: | |
1654 | break | |
1655 | fi | |
1656 | rm -f conftest.err conftest.$ac_ext | |
1657 | ||
1658 | done | |
1659 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
1660 | rm -f conftest.err conftest.$ac_ext | |
1661 | if $ac_preproc_ok; then | |
1662 | break | |
1663 | fi | |
1664 | ||
1665 | done | |
1666 | ac_cv_prog_CPP=$CPP | |
1667 | ||
1668 | fi | |
1669 | CPP=$ac_cv_prog_CPP | |
1670 | else | |
1671 | ac_cv_prog_CPP=$CPP | |
1672 | fi | |
1673 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
1674 | echo "${ECHO_T}$CPP" >&6 | |
1675 | ac_preproc_ok=false | |
1676 | for ac_c_preproc_warn_flag in '' yes | |
1677 | do | |
1678 | # Use a header file that comes with gcc, so configuring glibc | |
1679 | # with a fresh cross-compiler works. | |
1680 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1681 | # <limits.h> exists even on freestanding compilers. | |
1682 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1683 | # not just through cpp. "Syntax error" is here to catch this case. | |
1684 | cat >conftest.$ac_ext <<_ACEOF | |
1685 | /* confdefs.h. */ | |
1686 | _ACEOF | |
1687 | cat confdefs.h >>conftest.$ac_ext | |
1688 | cat >>conftest.$ac_ext <<_ACEOF | |
1689 | /* end confdefs.h. */ | |
1690 | #ifdef __STDC__ | |
1691 | # include <limits.h> | |
1692 | #else | |
1693 | # include <assert.h> | |
1694 | #endif | |
1695 | Syntax error | |
1696 | _ACEOF | |
1697 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1698 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1699 | ac_status=$? | |
1700 | grep -v '^ *+' conftest.er1 >conftest.err | |
1701 | rm -f conftest.er1 | |
1702 | cat conftest.err >&5 | |
1703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1704 | (exit $ac_status); } >/dev/null; then | |
1705 | if test -s conftest.err; then | |
1706 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1707 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1708 | else | |
1709 | ac_cpp_err= | |
1710 | fi | |
1711 | else | |
1712 | ac_cpp_err=yes | |
1713 | fi | |
1714 | if test -z "$ac_cpp_err"; then | |
1715 | : | |
1716 | else | |
1717 | echo "$as_me: failed program was:" >&5 | |
1718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1719 | ||
1720 | # Broken: fails on valid input. | |
1721 | continue | |
1722 | fi | |
1723 | rm -f conftest.err conftest.$ac_ext | |
1724 | ||
1725 | # OK, works on sane cases. Now check whether non-existent headers | |
1726 | # can be detected and how. | |
1727 | cat >conftest.$ac_ext <<_ACEOF | |
1728 | /* confdefs.h. */ | |
1729 | _ACEOF | |
1730 | cat confdefs.h >>conftest.$ac_ext | |
1731 | cat >>conftest.$ac_ext <<_ACEOF | |
1732 | /* end confdefs.h. */ | |
1733 | #include <ac_nonexistent.h> | |
1734 | _ACEOF | |
1735 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
1736 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
1737 | ac_status=$? | |
1738 | grep -v '^ *+' conftest.er1 >conftest.err | |
1739 | rm -f conftest.er1 | |
1740 | cat conftest.err >&5 | |
1741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1742 | (exit $ac_status); } >/dev/null; then | |
1743 | if test -s conftest.err; then | |
1744 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1745 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
1746 | else | |
1747 | ac_cpp_err= | |
1748 | fi | |
1749 | else | |
1750 | ac_cpp_err=yes | |
1751 | fi | |
1752 | if test -z "$ac_cpp_err"; then | |
1753 | # Broken: success on invalid input. | |
1754 | continue | |
1755 | else | |
1756 | echo "$as_me: failed program was:" >&5 | |
1757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1758 | ||
1759 | # Passes both tests. | |
1760 | ac_preproc_ok=: | |
1761 | break | |
1762 | fi | |
1763 | rm -f conftest.err conftest.$ac_ext | |
1764 | ||
1765 | done | |
1766 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
1767 | rm -f conftest.err conftest.$ac_ext | |
1768 | if $ac_preproc_ok; then | |
1769 | : | |
1770 | else | |
1771 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
1772 | See \`config.log' for more details." >&5 | |
1773 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
1774 | See \`config.log' for more details." >&2;} | |
1775 | { (exit 1); exit 1; }; } | |
1776 | fi | |
1777 | ||
1778 | ac_ext=c | |
1779 | ac_cpp='$CPP $CPPFLAGS' | |
1780 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1781 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1782 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1783 | ||
1784 | ||
1785 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
1786 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
1787 | if test "${ac_cv_prog_egrep+set}" = set; then | |
1788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1789 | else | |
1790 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
1791 | then ac_cv_prog_egrep='grep -E' | |
1792 | else ac_cv_prog_egrep='egrep' | |
1793 | fi | |
1794 | fi | |
1795 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
1796 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
1797 | EGREP=$ac_cv_prog_egrep | |
1798 | ||
1799 | ||
1800 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
1801 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
1802 | if test "${ac_cv_header_stdc+set}" = set; then | |
1803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1804 | else | |
1805 | cat >conftest.$ac_ext <<_ACEOF | |
1806 | /* confdefs.h. */ | |
1807 | _ACEOF | |
1808 | cat confdefs.h >>conftest.$ac_ext | |
1809 | cat >>conftest.$ac_ext <<_ACEOF | |
1810 | /* end confdefs.h. */ | |
1811 | #include <stdlib.h> | |
1812 | #include <stdarg.h> | |
1813 | #include <string.h> | |
1814 | #include <float.h> | |
1815 | ||
1816 | int | |
1817 | main () | |
1818 | { | |
1819 | ||
1820 | ; | |
1821 | return 0; | |
1822 | } | |
1823 | _ACEOF | |
1824 | rm -f conftest.$ac_objext | |
1825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1826 | (eval $ac_compile) 2>conftest.er1 | |
1827 | ac_status=$? | |
1828 | grep -v '^ *+' conftest.er1 >conftest.err | |
1829 | rm -f conftest.er1 | |
1830 | cat conftest.err >&5 | |
1831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1832 | (exit $ac_status); } && | |
1833 | { ac_try='test -z "$ac_c_werror_flag" | |
1834 | || test ! -s conftest.err' | |
1835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1836 | (eval $ac_try) 2>&5 | |
1837 | ac_status=$? | |
1838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1839 | (exit $ac_status); }; } && | |
1840 | { ac_try='test -s conftest.$ac_objext' | |
1841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1842 | (eval $ac_try) 2>&5 | |
1843 | ac_status=$? | |
1844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1845 | (exit $ac_status); }; }; then | |
1846 | ac_cv_header_stdc=yes | |
1847 | else | |
1848 | echo "$as_me: failed program was:" >&5 | |
1849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1850 | ||
1851 | ac_cv_header_stdc=no | |
1852 | fi | |
1853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c SS |
1854 | |
1855 | if test $ac_cv_header_stdc = yes; then | |
1856 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b7026657 AC |
1857 | cat >conftest.$ac_ext <<_ACEOF |
1858 | /* confdefs.h. */ | |
1859 | _ACEOF | |
1860 | cat confdefs.h >>conftest.$ac_ext | |
1861 | cat >>conftest.$ac_ext <<_ACEOF | |
1862 | /* end confdefs.h. */ | |
c906108c | 1863 | #include <string.h> |
b7026657 AC |
1864 | |
1865 | _ACEOF | |
c906108c | 1866 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 1867 | $EGREP "memchr" >/dev/null 2>&1; then |
c906108c SS |
1868 | : |
1869 | else | |
c906108c SS |
1870 | ac_cv_header_stdc=no |
1871 | fi | |
1872 | rm -f conftest* | |
1873 | ||
1874 | fi | |
1875 | ||
1876 | if test $ac_cv_header_stdc = yes; then | |
1877 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b7026657 AC |
1878 | cat >conftest.$ac_ext <<_ACEOF |
1879 | /* confdefs.h. */ | |
1880 | _ACEOF | |
1881 | cat confdefs.h >>conftest.$ac_ext | |
1882 | cat >>conftest.$ac_ext <<_ACEOF | |
1883 | /* end confdefs.h. */ | |
c906108c | 1884 | #include <stdlib.h> |
b7026657 AC |
1885 | |
1886 | _ACEOF | |
c906108c | 1887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 1888 | $EGREP "free" >/dev/null 2>&1; then |
c906108c SS |
1889 | : |
1890 | else | |
c906108c SS |
1891 | ac_cv_header_stdc=no |
1892 | fi | |
1893 | rm -f conftest* | |
1894 | ||
1895 | fi | |
1896 | ||
1897 | if test $ac_cv_header_stdc = yes; then | |
1898 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b7026657 | 1899 | if test "$cross_compiling" = yes; then |
c906108c SS |
1900 | : |
1901 | else | |
b7026657 AC |
1902 | cat >conftest.$ac_ext <<_ACEOF |
1903 | /* confdefs.h. */ | |
1904 | _ACEOF | |
1905 | cat confdefs.h >>conftest.$ac_ext | |
1906 | cat >>conftest.$ac_ext <<_ACEOF | |
1907 | /* end confdefs.h. */ | |
c906108c | 1908 | #include <ctype.h> |
b7026657 AC |
1909 | #if ((' ' & 0x0FF) == 0x020) |
1910 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1911 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1912 | #else | |
1913 | # define ISLOWER(c) \ | |
1914 | (('a' <= (c) && (c) <= 'i') \ | |
1915 | || ('j' <= (c) && (c) <= 'r') \ | |
1916 | || ('s' <= (c) && (c) <= 'z')) | |
1917 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
1918 | #endif | |
c906108c | 1919 | |
b7026657 AC |
1920 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1921 | int | |
1922 | main () | |
1923 | { | |
1924 | int i; | |
1925 | for (i = 0; i < 256; i++) | |
1926 | if (XOR (islower (i), ISLOWER (i)) | |
1927 | || toupper (i) != TOUPPER (i)) | |
1928 | exit(2); | |
1929 | exit (0); | |
1930 | } | |
1931 | _ACEOF | |
1932 | rm -f conftest$ac_exeext | |
1933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1934 | (eval $ac_link) 2>&5 | |
1935 | ac_status=$? | |
1936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1937 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
1938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1939 | (eval $ac_try) 2>&5 | |
1940 | ac_status=$? | |
1941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1942 | (exit $ac_status); }; }; then | |
c906108c SS |
1943 | : |
1944 | else | |
b7026657 AC |
1945 | echo "$as_me: program exited with status $ac_status" >&5 |
1946 | echo "$as_me: failed program was:" >&5 | |
1947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1948 | ||
1949 | ( exit $ac_status ) | |
1950 | ac_cv_header_stdc=no | |
c906108c | 1951 | fi |
b7026657 | 1952 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 1953 | fi |
c906108c SS |
1954 | fi |
1955 | fi | |
b7026657 AC |
1956 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
1957 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
c906108c | 1958 | if test $ac_cv_header_stdc = yes; then |
b7026657 AC |
1959 | |
1960 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 1961 | #define STDC_HEADERS 1 |
b7026657 AC |
1962 | _ACEOF |
1963 | ||
1964 | fi | |
1965 | ||
1966 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
1967 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
1968 | if test "${ac_cv_c_const+set}" = set; then | |
1969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1970 | else | |
1971 | cat >conftest.$ac_ext <<_ACEOF | |
1972 | /* confdefs.h. */ | |
1973 | _ACEOF | |
1974 | cat confdefs.h >>conftest.$ac_ext | |
1975 | cat >>conftest.$ac_ext <<_ACEOF | |
1976 | /* end confdefs.h. */ | |
c906108c | 1977 | |
b7026657 AC |
1978 | int |
1979 | main () | |
1980 | { | |
1981 | /* FIXME: Include the comments suggested by Paul. */ | |
1982 | #ifndef __cplusplus | |
1983 | /* Ultrix mips cc rejects this. */ | |
1984 | typedef int charset[2]; | |
1985 | const charset x; | |
1986 | /* SunOS 4.1.1 cc rejects this. */ | |
1987 | char const *const *ccp; | |
1988 | char **p; | |
1989 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
1990 | struct point {int x, y;}; | |
1991 | static struct point const zero = {0,0}; | |
1992 | /* AIX XL C 1.02.0.0 rejects this. | |
1993 | It does not let you subtract one const X* pointer from another in | |
1994 | an arm of an if-expression whose if-part is not a constant | |
1995 | expression */ | |
1996 | const char *g = "string"; | |
1997 | ccp = &g + (g ? g-g : 0); | |
1998 | /* HPUX 7.0 cc rejects these. */ | |
1999 | ++ccp; | |
2000 | p = (char**) ccp; | |
2001 | ccp = (char const *const *) p; | |
2002 | { /* SCO 3.2v4 cc rejects this. */ | |
2003 | char *t; | |
2004 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
2005 | ||
2006 | *t++ = 0; | |
2007 | } | |
2008 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
2009 | int x[] = {25, 17}; | |
2010 | const int *foo = &x[0]; | |
2011 | ++foo; | |
2012 | } | |
2013 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
2014 | typedef const int *iptr; | |
2015 | iptr p = 0; | |
2016 | ++p; | |
2017 | } | |
2018 | { /* AIX XL C 1.02.0.0 rejects this saying | |
2019 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
2020 | struct s { int j; const int *ap[3]; }; | |
2021 | struct s *b; b->j = 5; | |
2022 | } | |
2023 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
2024 | const int foo = 10; | |
2025 | } | |
2026 | #endif | |
2027 | ||
2028 | ; | |
2029 | return 0; | |
2030 | } | |
2031 | _ACEOF | |
2032 | rm -f conftest.$ac_objext | |
2033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2034 | (eval $ac_compile) 2>conftest.er1 | |
2035 | ac_status=$? | |
2036 | grep -v '^ *+' conftest.er1 >conftest.err | |
2037 | rm -f conftest.er1 | |
2038 | cat conftest.err >&5 | |
2039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2040 | (exit $ac_status); } && | |
2041 | { ac_try='test -z "$ac_c_werror_flag" | |
2042 | || test ! -s conftest.err' | |
2043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2044 | (eval $ac_try) 2>&5 | |
2045 | ac_status=$? | |
2046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2047 | (exit $ac_status); }; } && | |
2048 | { ac_try='test -s conftest.$ac_objext' | |
2049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2050 | (eval $ac_try) 2>&5 | |
2051 | ac_status=$? | |
2052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2053 | (exit $ac_status); }; }; then | |
c906108c SS |
2054 | ac_cv_c_const=yes |
2055 | else | |
b7026657 AC |
2056 | echo "$as_me: failed program was:" >&5 |
2057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2058 | ||
2059 | ac_cv_c_const=no | |
c906108c | 2060 | fi |
b7026657 | 2061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 2062 | fi |
b7026657 AC |
2063 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
2064 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
c906108c | 2065 | if test $ac_cv_c_const = no; then |
b7026657 AC |
2066 | |
2067 | cat >>confdefs.h <<\_ACEOF | |
2068 | #define const | |
2069 | _ACEOF | |
c906108c SS |
2070 | |
2071 | fi | |
2072 | ||
b7026657 AC |
2073 | echo "$as_me:$LINENO: checking for inline" >&5 |
2074 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
2075 | if test "${ac_cv_c_inline+set}" = set; then | |
2076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2077 | else |
2078 | ac_cv_c_inline=no | |
2079 | for ac_kw in inline __inline__ __inline; do | |
b7026657 AC |
2080 | cat >conftest.$ac_ext <<_ACEOF |
2081 | /* confdefs.h. */ | |
2082 | _ACEOF | |
2083 | cat confdefs.h >>conftest.$ac_ext | |
2084 | cat >>conftest.$ac_ext <<_ACEOF | |
2085 | /* end confdefs.h. */ | |
2086 | #ifndef __cplusplus | |
2087 | typedef int foo_t; | |
2088 | static $ac_kw foo_t static_foo () {return 0; } | |
2089 | $ac_kw foo_t foo () {return 0; } | |
2090 | #endif | |
2091 | ||
2092 | _ACEOF | |
2093 | rm -f conftest.$ac_objext | |
2094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2095 | (eval $ac_compile) 2>conftest.er1 | |
2096 | ac_status=$? | |
2097 | grep -v '^ *+' conftest.er1 >conftest.err | |
2098 | rm -f conftest.er1 | |
2099 | cat conftest.err >&5 | |
2100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2101 | (exit $ac_status); } && | |
2102 | { ac_try='test -z "$ac_c_werror_flag" | |
2103 | || test ! -s conftest.err' | |
2104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2105 | (eval $ac_try) 2>&5 | |
2106 | ac_status=$? | |
2107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2108 | (exit $ac_status); }; } && | |
2109 | { ac_try='test -s conftest.$ac_objext' | |
2110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2111 | (eval $ac_try) 2>&5 | |
2112 | ac_status=$? | |
2113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2114 | (exit $ac_status); }; }; then | |
c906108c SS |
2115 | ac_cv_c_inline=$ac_kw; break |
2116 | else | |
b7026657 AC |
2117 | echo "$as_me: failed program was:" >&5 |
2118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2119 | ||
c906108c | 2120 | fi |
b7026657 | 2121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
2122 | done |
2123 | ||
2124 | fi | |
b7026657 AC |
2125 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
2126 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
c906108c | 2127 | |
b7026657 AC |
2128 | |
2129 | case $ac_cv_c_inline in | |
c906108c | 2130 | inline | yes) ;; |
b7026657 AC |
2131 | *) |
2132 | case $ac_cv_c_inline in | |
2133 | no) ac_val=;; | |
2134 | *) ac_val=$ac_cv_c_inline;; | |
2135 | esac | |
2136 | cat >>confdefs.h <<_ACEOF | |
2137 | #ifndef __cplusplus | |
2138 | #define inline $ac_val | |
2139 | #endif | |
2140 | _ACEOF | |
2141 | ;; | |
c906108c SS |
2142 | esac |
2143 | ||
b7026657 AC |
2144 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
2145 | ||
2146 | ||
2147 | ||
2148 | ||
2149 | ||
2150 | ||
2151 | ||
2152 | ||
2153 | ||
2154 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
2155 | inttypes.h stdint.h unistd.h | |
2156 | do | |
2157 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
2158 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2159 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2160 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2162 | else | |
2163 | cat >conftest.$ac_ext <<_ACEOF | |
2164 | /* confdefs.h. */ | |
2165 | _ACEOF | |
2166 | cat confdefs.h >>conftest.$ac_ext | |
2167 | cat >>conftest.$ac_ext <<_ACEOF | |
2168 | /* end confdefs.h. */ | |
2169 | $ac_includes_default | |
2170 | ||
2171 | #include <$ac_header> | |
2172 | _ACEOF | |
2173 | rm -f conftest.$ac_objext | |
2174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2175 | (eval $ac_compile) 2>conftest.er1 | |
2176 | ac_status=$? | |
2177 | grep -v '^ *+' conftest.er1 >conftest.err | |
2178 | rm -f conftest.er1 | |
2179 | cat conftest.err >&5 | |
2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2181 | (exit $ac_status); } && | |
2182 | { ac_try='test -z "$ac_c_werror_flag" | |
2183 | || test ! -s conftest.err' | |
2184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2185 | (eval $ac_try) 2>&5 | |
2186 | ac_status=$? | |
2187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2188 | (exit $ac_status); }; } && | |
2189 | { ac_try='test -s conftest.$ac_objext' | |
2190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2191 | (eval $ac_try) 2>&5 | |
2192 | ac_status=$? | |
2193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2194 | (exit $ac_status); }; }; then | |
2195 | eval "$as_ac_Header=yes" | |
2196 | else | |
2197 | echo "$as_me: failed program was:" >&5 | |
2198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2199 | ||
2200 | eval "$as_ac_Header=no" | |
2201 | fi | |
2202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2203 | fi | |
2204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2205 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2206 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2207 | cat >>confdefs.h <<_ACEOF | |
2208 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2209 | _ACEOF | |
2210 | ||
2211 | fi | |
2212 | ||
2213 | done | |
2214 | ||
2215 | ||
2216 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
2217 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
2218 | if test "${ac_cv_type_off_t+set}" = set; then | |
2219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2220 | else |
b7026657 AC |
2221 | cat >conftest.$ac_ext <<_ACEOF |
2222 | /* confdefs.h. */ | |
2223 | _ACEOF | |
2224 | cat confdefs.h >>conftest.$ac_ext | |
2225 | cat >>conftest.$ac_ext <<_ACEOF | |
2226 | /* end confdefs.h. */ | |
2227 | $ac_includes_default | |
2228 | int | |
2229 | main () | |
2230 | { | |
2231 | if ((off_t *) 0) | |
2232 | return 0; | |
2233 | if (sizeof (off_t)) | |
2234 | return 0; | |
2235 | ; | |
2236 | return 0; | |
2237 | } | |
2238 | _ACEOF | |
2239 | rm -f conftest.$ac_objext | |
2240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2241 | (eval $ac_compile) 2>conftest.er1 | |
2242 | ac_status=$? | |
2243 | grep -v '^ *+' conftest.er1 >conftest.err | |
2244 | rm -f conftest.er1 | |
2245 | cat conftest.err >&5 | |
2246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2247 | (exit $ac_status); } && | |
2248 | { ac_try='test -z "$ac_c_werror_flag" | |
2249 | || test ! -s conftest.err' | |
2250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2251 | (eval $ac_try) 2>&5 | |
2252 | ac_status=$? | |
2253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2254 | (exit $ac_status); }; } && | |
2255 | { ac_try='test -s conftest.$ac_objext' | |
2256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2257 | (eval $ac_try) 2>&5 | |
2258 | ac_status=$? | |
2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2260 | (exit $ac_status); }; }; then | |
c906108c SS |
2261 | ac_cv_type_off_t=yes |
2262 | else | |
b7026657 AC |
2263 | echo "$as_me: failed program was:" >&5 |
2264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2265 | |
b7026657 | 2266 | ac_cv_type_off_t=no |
c906108c | 2267 | fi |
b7026657 AC |
2268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2269 | fi | |
2270 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
2271 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
2272 | if test $ac_cv_type_off_t = yes; then | |
2273 | : | |
2274 | else | |
2275 | ||
2276 | cat >>confdefs.h <<_ACEOF | |
c906108c | 2277 | #define off_t long |
b7026657 | 2278 | _ACEOF |
c906108c SS |
2279 | |
2280 | fi | |
2281 | ||
b7026657 AC |
2282 | echo "$as_me:$LINENO: checking for size_t" >&5 |
2283 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
2284 | if test "${ac_cv_type_size_t+set}" = set; then | |
2285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2286 | else |
b7026657 AC |
2287 | cat >conftest.$ac_ext <<_ACEOF |
2288 | /* confdefs.h. */ | |
2289 | _ACEOF | |
2290 | cat confdefs.h >>conftest.$ac_ext | |
2291 | cat >>conftest.$ac_ext <<_ACEOF | |
2292 | /* end confdefs.h. */ | |
2293 | $ac_includes_default | |
2294 | int | |
2295 | main () | |
2296 | { | |
2297 | if ((size_t *) 0) | |
2298 | return 0; | |
2299 | if (sizeof (size_t)) | |
2300 | return 0; | |
2301 | ; | |
2302 | return 0; | |
2303 | } | |
2304 | _ACEOF | |
2305 | rm -f conftest.$ac_objext | |
2306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2307 | (eval $ac_compile) 2>conftest.er1 | |
2308 | ac_status=$? | |
2309 | grep -v '^ *+' conftest.er1 >conftest.err | |
2310 | rm -f conftest.er1 | |
2311 | cat conftest.err >&5 | |
2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2313 | (exit $ac_status); } && | |
2314 | { ac_try='test -z "$ac_c_werror_flag" | |
2315 | || test ! -s conftest.err' | |
2316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2317 | (eval $ac_try) 2>&5 | |
2318 | ac_status=$? | |
2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2320 | (exit $ac_status); }; } && | |
2321 | { ac_try='test -s conftest.$ac_objext' | |
2322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2323 | (eval $ac_try) 2>&5 | |
2324 | ac_status=$? | |
2325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2326 | (exit $ac_status); }; }; then | |
c906108c SS |
2327 | ac_cv_type_size_t=yes |
2328 | else | |
b7026657 AC |
2329 | echo "$as_me: failed program was:" >&5 |
2330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2331 | |
b7026657 | 2332 | ac_cv_type_size_t=no |
c906108c | 2333 | fi |
b7026657 AC |
2334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2335 | fi | |
2336 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
2337 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
2338 | if test $ac_cv_type_size_t = yes; then | |
2339 | : | |
2340 | else | |
2341 | ||
2342 | cat >>confdefs.h <<_ACEOF | |
c906108c | 2343 | #define size_t unsigned |
b7026657 | 2344 | _ACEOF |
c906108c SS |
2345 | |
2346 | fi | |
2347 | ||
2348 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
2349 | # for constant arguments. Useless! | |
b7026657 AC |
2350 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
2351 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
2352 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
2353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2354 | else | |
2355 | cat >conftest.$ac_ext <<_ACEOF | |
2356 | /* confdefs.h. */ | |
2357 | _ACEOF | |
2358 | cat confdefs.h >>conftest.$ac_ext | |
2359 | cat >>conftest.$ac_ext <<_ACEOF | |
2360 | /* end confdefs.h. */ | |
c906108c | 2361 | #include <alloca.h> |
b7026657 AC |
2362 | int |
2363 | main () | |
2364 | { | |
2365 | char *p = (char *) alloca (2 * sizeof (int)); | |
2366 | ; | |
2367 | return 0; | |
2368 | } | |
2369 | _ACEOF | |
2370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2372 | (eval $ac_link) 2>conftest.er1 | |
2373 | ac_status=$? | |
2374 | grep -v '^ *+' conftest.er1 >conftest.err | |
2375 | rm -f conftest.er1 | |
2376 | cat conftest.err >&5 | |
2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2378 | (exit $ac_status); } && | |
2379 | { ac_try='test -z "$ac_c_werror_flag" | |
2380 | || test ! -s conftest.err' | |
2381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2382 | (eval $ac_try) 2>&5 | |
2383 | ac_status=$? | |
2384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2385 | (exit $ac_status); }; } && | |
2386 | { ac_try='test -s conftest$ac_exeext' | |
2387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2388 | (eval $ac_try) 2>&5 | |
2389 | ac_status=$? | |
2390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2391 | (exit $ac_status); }; }; then | |
2392 | ac_cv_working_alloca_h=yes | |
2393 | else | |
2394 | echo "$as_me: failed program was:" >&5 | |
2395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2396 | ||
2397 | ac_cv_working_alloca_h=no | |
2398 | fi | |
2399 | rm -f conftest.err conftest.$ac_objext \ | |
2400 | conftest$ac_exeext conftest.$ac_ext | |
2401 | fi | |
2402 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
2403 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
2404 | if test $ac_cv_working_alloca_h = yes; then | |
2405 | ||
2406 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 2407 | #define HAVE_ALLOCA_H 1 |
b7026657 | 2408 | _ACEOF |
c906108c SS |
2409 | |
2410 | fi | |
2411 | ||
b7026657 AC |
2412 | echo "$as_me:$LINENO: checking for alloca" >&5 |
2413 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
2414 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
2415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2416 | else |
b7026657 AC |
2417 | cat >conftest.$ac_ext <<_ACEOF |
2418 | /* confdefs.h. */ | |
2419 | _ACEOF | |
2420 | cat confdefs.h >>conftest.$ac_ext | |
2421 | cat >>conftest.$ac_ext <<_ACEOF | |
2422 | /* end confdefs.h. */ | |
c906108c SS |
2423 | #ifdef __GNUC__ |
2424 | # define alloca __builtin_alloca | |
2425 | #else | |
2426 | # ifdef _MSC_VER | |
2427 | # include <malloc.h> | |
2428 | # define alloca _alloca | |
2429 | # else | |
2430 | # if HAVE_ALLOCA_H | |
2431 | # include <alloca.h> | |
2432 | # else | |
2433 | # ifdef _AIX | |
2434 | #pragma alloca | |
2435 | # else | |
2436 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
2437 | char *alloca (); | |
2438 | # endif | |
2439 | # endif | |
2440 | # endif | |
2441 | # endif | |
2442 | #endif | |
2443 | ||
b7026657 AC |
2444 | int |
2445 | main () | |
2446 | { | |
2447 | char *p = (char *) alloca (1); | |
2448 | ; | |
2449 | return 0; | |
2450 | } | |
2451 | _ACEOF | |
2452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2454 | (eval $ac_link) 2>conftest.er1 | |
2455 | ac_status=$? | |
2456 | grep -v '^ *+' conftest.er1 >conftest.err | |
2457 | rm -f conftest.er1 | |
2458 | cat conftest.err >&5 | |
2459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2460 | (exit $ac_status); } && | |
2461 | { ac_try='test -z "$ac_c_werror_flag" | |
2462 | || test ! -s conftest.err' | |
2463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2464 | (eval $ac_try) 2>&5 | |
2465 | ac_status=$? | |
2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2467 | (exit $ac_status); }; } && | |
2468 | { ac_try='test -s conftest$ac_exeext' | |
2469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2470 | (eval $ac_try) 2>&5 | |
2471 | ac_status=$? | |
2472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2473 | (exit $ac_status); }; }; then | |
c906108c SS |
2474 | ac_cv_func_alloca_works=yes |
2475 | else | |
b7026657 AC |
2476 | echo "$as_me: failed program was:" >&5 |
2477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2478 | ||
2479 | ac_cv_func_alloca_works=no | |
c906108c | 2480 | fi |
b7026657 AC |
2481 | rm -f conftest.err conftest.$ac_objext \ |
2482 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 2483 | fi |
b7026657 AC |
2484 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
2485 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
c906108c | 2486 | |
c906108c | 2487 | if test $ac_cv_func_alloca_works = yes; then |
c906108c | 2488 | |
b7026657 AC |
2489 | cat >>confdefs.h <<\_ACEOF |
2490 | #define HAVE_ALLOCA 1 | |
2491 | _ACEOF | |
c906108c | 2492 | |
b7026657 | 2493 | else |
c906108c | 2494 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
b7026657 AC |
2495 | # that cause trouble. Some versions do not even contain alloca or |
2496 | # contain a buggy version. If you still want to use their alloca, | |
2497 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
2498 | ||
2499 | ALLOCA=alloca.$ac_objext | |
2500 | ||
2501 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 2502 | #define C_ALLOCA 1 |
b7026657 | 2503 | _ACEOF |
c906108c SS |
2504 | |
2505 | ||
b7026657 AC |
2506 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
2507 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
2508 | if test "${ac_cv_os_cray+set}" = set; then | |
2509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2510 | else |
b7026657 AC |
2511 | cat >conftest.$ac_ext <<_ACEOF |
2512 | /* confdefs.h. */ | |
2513 | _ACEOF | |
2514 | cat confdefs.h >>conftest.$ac_ext | |
2515 | cat >>conftest.$ac_ext <<_ACEOF | |
2516 | /* end confdefs.h. */ | |
c906108c SS |
2517 | #if defined(CRAY) && ! defined(CRAY2) |
2518 | webecray | |
2519 | #else | |
2520 | wenotbecray | |
2521 | #endif | |
2522 | ||
b7026657 | 2523 | _ACEOF |
c906108c | 2524 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 2525 | $EGREP "webecray" >/dev/null 2>&1; then |
c906108c SS |
2526 | ac_cv_os_cray=yes |
2527 | else | |
c906108c SS |
2528 | ac_cv_os_cray=no |
2529 | fi | |
2530 | rm -f conftest* | |
2531 | ||
2532 | fi | |
b7026657 AC |
2533 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
2534 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
c906108c | 2535 | if test $ac_cv_os_cray = yes; then |
b7026657 AC |
2536 | for ac_func in _getb67 GETB67 getb67; do |
2537 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
2538 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
2539 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
2540 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
2541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2542 | else | |
2543 | cat >conftest.$ac_ext <<_ACEOF | |
2544 | /* confdefs.h. */ | |
2545 | _ACEOF | |
2546 | cat confdefs.h >>conftest.$ac_ext | |
2547 | cat >>conftest.$ac_ext <<_ACEOF | |
2548 | /* end confdefs.h. */ | |
2549 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
2550 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2551 | #define $ac_func innocuous_$ac_func | |
2552 | ||
c906108c | 2553 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
2554 | which can conflict with char $ac_func (); below. |
2555 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2556 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 2557 | |
b7026657 AC |
2558 | #ifdef __STDC__ |
2559 | # include <limits.h> | |
2560 | #else | |
2561 | # include <assert.h> | |
2562 | #endif | |
c906108c | 2563 | |
b7026657 AC |
2564 | #undef $ac_func |
2565 | ||
2566 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2567 | #ifdef __cplusplus | |
2568 | extern "C" | |
2569 | { | |
2570 | #endif | |
2571 | /* We use char because int might match the return type of a gcc2 | |
2572 | builtin and then its argument prototype would still apply. */ | |
2573 | char $ac_func (); | |
c906108c SS |
2574 | /* The GNU C library defines this for functions which it implements |
2575 | to always fail with ENOSYS. Some functions are actually named | |
2576 | something starting with __ and the normal name is an alias. */ | |
2577 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2578 | choke me | |
2579 | #else | |
b7026657 AC |
2580 | char (*f) () = $ac_func; |
2581 | #endif | |
2582 | #ifdef __cplusplus | |
2583 | } | |
c906108c SS |
2584 | #endif |
2585 | ||
b7026657 AC |
2586 | int |
2587 | main () | |
2588 | { | |
2589 | return f != $ac_func; | |
2590 | ; | |
2591 | return 0; | |
2592 | } | |
2593 | _ACEOF | |
2594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2596 | (eval $ac_link) 2>conftest.er1 | |
2597 | ac_status=$? | |
2598 | grep -v '^ *+' conftest.er1 >conftest.err | |
2599 | rm -f conftest.er1 | |
2600 | cat conftest.err >&5 | |
2601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2602 | (exit $ac_status); } && | |
2603 | { ac_try='test -z "$ac_c_werror_flag" | |
2604 | || test ! -s conftest.err' | |
2605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2606 | (eval $ac_try) 2>&5 | |
2607 | ac_status=$? | |
2608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2609 | (exit $ac_status); }; } && | |
2610 | { ac_try='test -s conftest$ac_exeext' | |
2611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2612 | (eval $ac_try) 2>&5 | |
2613 | ac_status=$? | |
2614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2615 | (exit $ac_status); }; }; then | |
2616 | eval "$as_ac_var=yes" | |
2617 | else | |
2618 | echo "$as_me: failed program was:" >&5 | |
2619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2620 | ||
2621 | eval "$as_ac_var=no" | |
2622 | fi | |
2623 | rm -f conftest.err conftest.$ac_objext \ | |
2624 | conftest$ac_exeext conftest.$ac_ext | |
2625 | fi | |
2626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
2627 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
2628 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
2629 | ||
2630 | cat >>confdefs.h <<_ACEOF | |
c906108c | 2631 | #define CRAY_STACKSEG_END $ac_func |
b7026657 | 2632 | _ACEOF |
c906108c | 2633 | |
b7026657 | 2634 | break |
c906108c SS |
2635 | fi |
2636 | ||
b7026657 | 2637 | done |
c906108c SS |
2638 | fi |
2639 | ||
b7026657 AC |
2640 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
2641 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
2642 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
2643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2644 | else |
2645 | if test "$cross_compiling" = yes; then | |
2646 | ac_cv_c_stack_direction=0 | |
2647 | else | |
b7026657 AC |
2648 | cat >conftest.$ac_ext <<_ACEOF |
2649 | /* confdefs.h. */ | |
2650 | _ACEOF | |
2651 | cat confdefs.h >>conftest.$ac_ext | |
2652 | cat >>conftest.$ac_ext <<_ACEOF | |
2653 | /* end confdefs.h. */ | |
2654 | int | |
c906108c SS |
2655 | find_stack_direction () |
2656 | { | |
2657 | static char *addr = 0; | |
2658 | auto char dummy; | |
2659 | if (addr == 0) | |
2660 | { | |
2661 | addr = &dummy; | |
2662 | return find_stack_direction (); | |
2663 | } | |
2664 | else | |
2665 | return (&dummy > addr) ? 1 : -1; | |
2666 | } | |
b7026657 AC |
2667 | |
2668 | int | |
c906108c SS |
2669 | main () |
2670 | { | |
b7026657 | 2671 | exit (find_stack_direction () < 0); |
c906108c | 2672 | } |
b7026657 AC |
2673 | _ACEOF |
2674 | rm -f conftest$ac_exeext | |
2675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2676 | (eval $ac_link) 2>&5 | |
2677 | ac_status=$? | |
2678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2679 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2681 | (eval $ac_try) 2>&5 | |
2682 | ac_status=$? | |
2683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2684 | (exit $ac_status); }; }; then | |
c906108c SS |
2685 | ac_cv_c_stack_direction=1 |
2686 | else | |
b7026657 AC |
2687 | echo "$as_me: program exited with status $ac_status" >&5 |
2688 | echo "$as_me: failed program was:" >&5 | |
2689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2690 | ||
2691 | ( exit $ac_status ) | |
2692 | ac_cv_c_stack_direction=-1 | |
c906108c | 2693 | fi |
b7026657 | 2694 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 2695 | fi |
c906108c | 2696 | fi |
b7026657 AC |
2697 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
2698 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
c906108c | 2699 | |
b7026657 | 2700 | cat >>confdefs.h <<_ACEOF |
c906108c | 2701 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
b7026657 AC |
2702 | _ACEOF |
2703 | ||
c906108c SS |
2704 | |
2705 | fi | |
2706 | ||
b7026657 AC |
2707 | |
2708 | ||
2709 | for ac_header in stdlib.h unistd.h | |
c906108c | 2710 | do |
b7026657 AC |
2711 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2712 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2713 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2714 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2715 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2717 | fi | |
2718 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2719 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2720 | else | |
2721 | # Is the header compilable? | |
2722 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
2723 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
2724 | cat >conftest.$ac_ext <<_ACEOF | |
2725 | /* confdefs.h. */ | |
2726 | _ACEOF | |
2727 | cat confdefs.h >>conftest.$ac_ext | |
2728 | cat >>conftest.$ac_ext <<_ACEOF | |
2729 | /* end confdefs.h. */ | |
2730 | $ac_includes_default | |
2731 | #include <$ac_header> | |
2732 | _ACEOF | |
2733 | rm -f conftest.$ac_objext | |
2734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2735 | (eval $ac_compile) 2>conftest.er1 | |
2736 | ac_status=$? | |
2737 | grep -v '^ *+' conftest.er1 >conftest.err | |
2738 | rm -f conftest.er1 | |
2739 | cat conftest.err >&5 | |
2740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2741 | (exit $ac_status); } && | |
2742 | { ac_try='test -z "$ac_c_werror_flag" | |
2743 | || test ! -s conftest.err' | |
2744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2745 | (eval $ac_try) 2>&5 | |
2746 | ac_status=$? | |
2747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2748 | (exit $ac_status); }; } && | |
2749 | { ac_try='test -s conftest.$ac_objext' | |
2750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2751 | (eval $ac_try) 2>&5 | |
2752 | ac_status=$? | |
2753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2754 | (exit $ac_status); }; }; then | |
2755 | ac_header_compiler=yes | |
2756 | else | |
2757 | echo "$as_me: failed program was:" >&5 | |
2758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2759 | ||
2760 | ac_header_compiler=no | |
2761 | fi | |
2762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2763 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
2764 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
2765 | ||
2766 | # Is the header present? | |
2767 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
2768 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
2769 | cat >conftest.$ac_ext <<_ACEOF | |
2770 | /* confdefs.h. */ | |
2771 | _ACEOF | |
2772 | cat confdefs.h >>conftest.$ac_ext | |
2773 | cat >>conftest.$ac_ext <<_ACEOF | |
2774 | /* end confdefs.h. */ | |
2775 | #include <$ac_header> | |
2776 | _ACEOF | |
2777 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2778 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2779 | ac_status=$? | |
2780 | grep -v '^ *+' conftest.er1 >conftest.err | |
2781 | rm -f conftest.er1 | |
2782 | cat conftest.err >&5 | |
2783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2784 | (exit $ac_status); } >/dev/null; then | |
2785 | if test -s conftest.err; then | |
2786 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2787 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2788 | else | |
2789 | ac_cpp_err= | |
2790 | fi | |
2791 | else | |
2792 | ac_cpp_err=yes | |
c906108c | 2793 | fi |
b7026657 AC |
2794 | if test -z "$ac_cpp_err"; then |
2795 | ac_header_preproc=yes | |
2796 | else | |
2797 | echo "$as_me: failed program was:" >&5 | |
2798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2799 | ||
2800 | ac_header_preproc=no | |
c906108c | 2801 | fi |
b7026657 AC |
2802 | rm -f conftest.err conftest.$ac_ext |
2803 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
2804 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
2805 | ||
2806 | # So? What about this header? | |
2807 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
2808 | yes:no: ) | |
2809 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2810 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2811 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
2812 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
2813 | ac_header_preproc=yes | |
2814 | ;; | |
2815 | no:yes:* ) | |
2816 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
2817 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
2818 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
2819 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
2820 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
2821 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
2822 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
2823 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
2824 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
2825 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
2826 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
2827 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
2828 | ( | |
2829 | cat <<\_ASBOX | |
2830 | ## ------------------------------------------ ## | |
2831 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
2832 | ## ------------------------------------------ ## | |
2833 | _ASBOX | |
2834 | ) | | |
2835 | sed "s/^/$as_me: WARNING: /" >&2 | |
2836 | ;; | |
2837 | esac | |
2838 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2839 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2840 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2842 | else |
b7026657 AC |
2843 | eval "$as_ac_Header=\$ac_header_preproc" |
2844 | fi | |
2845 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2846 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2847 | ||
c906108c | 2848 | fi |
b7026657 AC |
2849 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
2850 | cat >>confdefs.h <<_ACEOF | |
2851 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2852 | _ACEOF | |
2853 | ||
2854 | fi | |
2855 | ||
c906108c SS |
2856 | done |
2857 | ||
b7026657 | 2858 | |
c906108c SS |
2859 | for ac_func in getpagesize |
2860 | do | |
b7026657 AC |
2861 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2862 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
2863 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
2864 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
2865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2866 | else | |
2867 | cat >conftest.$ac_ext <<_ACEOF | |
2868 | /* confdefs.h. */ | |
2869 | _ACEOF | |
2870 | cat confdefs.h >>conftest.$ac_ext | |
2871 | cat >>conftest.$ac_ext <<_ACEOF | |
2872 | /* end confdefs.h. */ | |
2873 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
2874 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2875 | #define $ac_func innocuous_$ac_func | |
2876 | ||
c906108c | 2877 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
2878 | which can conflict with char $ac_func (); below. |
2879 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2880 | <limits.h> exists even on freestanding compilers. */ | |
2881 | ||
2882 | #ifdef __STDC__ | |
2883 | # include <limits.h> | |
2884 | #else | |
2885 | # include <assert.h> | |
2886 | #endif | |
c906108c | 2887 | |
b7026657 | 2888 | #undef $ac_func |
c906108c | 2889 | |
b7026657 AC |
2890 | /* Override any gcc2 internal prototype to avoid an error. */ |
2891 | #ifdef __cplusplus | |
2892 | extern "C" | |
2893 | { | |
2894 | #endif | |
2895 | /* We use char because int might match the return type of a gcc2 | |
2896 | builtin and then its argument prototype would still apply. */ | |
2897 | char $ac_func (); | |
c906108c SS |
2898 | /* The GNU C library defines this for functions which it implements |
2899 | to always fail with ENOSYS. Some functions are actually named | |
2900 | something starting with __ and the normal name is an alias. */ | |
2901 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2902 | choke me | |
2903 | #else | |
b7026657 AC |
2904 | char (*f) () = $ac_func; |
2905 | #endif | |
2906 | #ifdef __cplusplus | |
2907 | } | |
c906108c SS |
2908 | #endif |
2909 | ||
b7026657 AC |
2910 | int |
2911 | main () | |
2912 | { | |
2913 | return f != $ac_func; | |
2914 | ; | |
2915 | return 0; | |
2916 | } | |
2917 | _ACEOF | |
2918 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2920 | (eval $ac_link) 2>conftest.er1 | |
2921 | ac_status=$? | |
2922 | grep -v '^ *+' conftest.er1 >conftest.err | |
2923 | rm -f conftest.er1 | |
2924 | cat conftest.err >&5 | |
2925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2926 | (exit $ac_status); } && | |
2927 | { ac_try='test -z "$ac_c_werror_flag" | |
2928 | || test ! -s conftest.err' | |
2929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2930 | (eval $ac_try) 2>&5 | |
2931 | ac_status=$? | |
2932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2933 | (exit $ac_status); }; } && | |
2934 | { ac_try='test -s conftest$ac_exeext' | |
2935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2936 | (eval $ac_try) 2>&5 | |
2937 | ac_status=$? | |
2938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2939 | (exit $ac_status); }; }; then | |
2940 | eval "$as_ac_var=yes" | |
2941 | else | |
2942 | echo "$as_me: failed program was:" >&5 | |
2943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2944 | ||
2945 | eval "$as_ac_var=no" | |
2946 | fi | |
2947 | rm -f conftest.err conftest.$ac_objext \ | |
2948 | conftest$ac_exeext conftest.$ac_ext | |
2949 | fi | |
2950 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
2951 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
2952 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
2953 | cat >>confdefs.h <<_ACEOF | |
2954 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
2955 | _ACEOF | |
c906108c | 2956 | |
c906108c SS |
2957 | fi |
2958 | done | |
2959 | ||
b7026657 AC |
2960 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
2961 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
2962 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
2963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2964 | else |
2965 | if test "$cross_compiling" = yes; then | |
2966 | ac_cv_func_mmap_fixed_mapped=no | |
2967 | else | |
b7026657 AC |
2968 | cat >conftest.$ac_ext <<_ACEOF |
2969 | /* confdefs.h. */ | |
2970 | _ACEOF | |
2971 | cat confdefs.h >>conftest.$ac_ext | |
2972 | cat >>conftest.$ac_ext <<_ACEOF | |
2973 | /* end confdefs.h. */ | |
2974 | $ac_includes_default | |
2975 | /* malloc might have been renamed as rpl_malloc. */ | |
2976 | #undef malloc | |
c906108c SS |
2977 | |
2978 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
2979 | Here is a matrix of mmap possibilities: | |
2980 | mmap private not fixed | |
2981 | mmap private fixed at somewhere currently unmapped | |
2982 | mmap private fixed at somewhere already mapped | |
2983 | mmap shared not fixed | |
2984 | mmap shared fixed at somewhere currently unmapped | |
2985 | mmap shared fixed at somewhere already mapped | |
2986 | For private mappings, we should verify that changes cannot be read() | |
2987 | back from the file, nor mmap's back from the file at a different | |
2988 | address. (There have been systems where private was not correctly | |
2989 | implemented like the infamous i386 svr4.0, and systems where the | |
b7026657 | 2990 | VM page cache was not coherent with the file system buffer cache |
c906108c SS |
2991 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
2992 | For shared mappings, we should conversely verify that changes get | |
b7026657 | 2993 | propagated back to all the places they're supposed to be. |
c906108c SS |
2994 | |
2995 | Grep wants private fixed already mapped. | |
2996 | The main things grep needs to know about mmap are: | |
2997 | * does it exist and is it safe to write into the mmap'd area | |
2998 | * how to use it (BSD variants) */ | |
b7026657 | 2999 | |
c906108c SS |
3000 | #include <fcntl.h> |
3001 | #include <sys/mman.h> | |
3002 | ||
b7026657 AC |
3003 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
3004 | char *malloc (); | |
3005 | #endif | |
c906108c | 3006 | |
b7026657 AC |
3007 | /* This mess was copied from the GNU getpagesize.h. */ |
3008 | #if !HAVE_GETPAGESIZE | |
c906108c | 3009 | /* Assume that all systems that can run configure have sys/param.h. */ |
b7026657 | 3010 | # if !HAVE_SYS_PARAM_H |
c906108c SS |
3011 | # define HAVE_SYS_PARAM_H 1 |
3012 | # endif | |
3013 | ||
3014 | # ifdef _SC_PAGESIZE | |
3015 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
3016 | # else /* no _SC_PAGESIZE */ | |
b7026657 | 3017 | # if HAVE_SYS_PARAM_H |
c906108c SS |
3018 | # include <sys/param.h> |
3019 | # ifdef EXEC_PAGESIZE | |
3020 | # define getpagesize() EXEC_PAGESIZE | |
3021 | # else /* no EXEC_PAGESIZE */ | |
3022 | # ifdef NBPG | |
3023 | # define getpagesize() NBPG * CLSIZE | |
3024 | # ifndef CLSIZE | |
3025 | # define CLSIZE 1 | |
3026 | # endif /* no CLSIZE */ | |
3027 | # else /* no NBPG */ | |
3028 | # ifdef NBPC | |
3029 | # define getpagesize() NBPC | |
3030 | # else /* no NBPC */ | |
3031 | # ifdef PAGESIZE | |
3032 | # define getpagesize() PAGESIZE | |
3033 | # endif /* PAGESIZE */ | |
3034 | # endif /* no NBPC */ | |
3035 | # endif /* no NBPG */ | |
3036 | # endif /* no EXEC_PAGESIZE */ | |
3037 | # else /* no HAVE_SYS_PARAM_H */ | |
3038 | # define getpagesize() 8192 /* punt totally */ | |
3039 | # endif /* no HAVE_SYS_PARAM_H */ | |
3040 | # endif /* no _SC_PAGESIZE */ | |
3041 | ||
3042 | #endif /* no HAVE_GETPAGESIZE */ | |
3043 | ||
c906108c | 3044 | int |
b7026657 | 3045 | main () |
c906108c | 3046 | { |
b7026657 AC |
3047 | char *data, *data2, *data3; |
3048 | int i, pagesize; | |
3049 | int fd; | |
3050 | ||
3051 | pagesize = getpagesize (); | |
3052 | ||
3053 | /* First, make a file with some known garbage in it. */ | |
3054 | data = (char *) malloc (pagesize); | |
3055 | if (!data) | |
3056 | exit (1); | |
3057 | for (i = 0; i < pagesize; ++i) | |
3058 | *(data + i) = rand (); | |
3059 | umask (0); | |
3060 | fd = creat ("conftest.mmap", 0600); | |
3061 | if (fd < 0) | |
3062 | exit (1); | |
3063 | if (write (fd, data, pagesize) != pagesize) | |
3064 | exit (1); | |
3065 | close (fd); | |
3066 | ||
3067 | /* Next, try to mmap the file at a fixed address which already has | |
3068 | something else allocated at it. If we can, also make sure that | |
3069 | we see the same garbage. */ | |
3070 | fd = open ("conftest.mmap", O_RDWR); | |
3071 | if (fd < 0) | |
3072 | exit (1); | |
3073 | data2 = (char *) malloc (2 * pagesize); | |
3074 | if (!data2) | |
3075 | exit (1); | |
3076 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
3077 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
3078 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
3079 | exit (1); | |
3080 | for (i = 0; i < pagesize; ++i) | |
3081 | if (*(data + i) != *(data2 + i)) | |
3082 | exit (1); | |
3083 | ||
3084 | /* Finally, make sure that changes to the mapped area do not | |
3085 | percolate back to the file as seen by read(). (This is a bug on | |
3086 | some variants of i386 svr4.0.) */ | |
3087 | for (i = 0; i < pagesize; ++i) | |
3088 | *(data2 + i) = *(data2 + i) + 1; | |
3089 | data3 = (char *) malloc (pagesize); | |
3090 | if (!data3) | |
3091 | exit (1); | |
3092 | if (read (fd, data3, pagesize) != pagesize) | |
3093 | exit (1); | |
3094 | for (i = 0; i < pagesize; ++i) | |
3095 | if (*(data + i) != *(data3 + i)) | |
3096 | exit (1); | |
3097 | close (fd); | |
3098 | exit (0); | |
c906108c | 3099 | } |
b7026657 AC |
3100 | _ACEOF |
3101 | rm -f conftest$ac_exeext | |
3102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3103 | (eval $ac_link) 2>&5 | |
3104 | ac_status=$? | |
3105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3106 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3108 | (eval $ac_try) 2>&5 | |
3109 | ac_status=$? | |
3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3111 | (exit $ac_status); }; }; then | |
c906108c SS |
3112 | ac_cv_func_mmap_fixed_mapped=yes |
3113 | else | |
b7026657 AC |
3114 | echo "$as_me: program exited with status $ac_status" >&5 |
3115 | echo "$as_me: failed program was:" >&5 | |
3116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3117 | |
b7026657 AC |
3118 | ( exit $ac_status ) |
3119 | ac_cv_func_mmap_fixed_mapped=no | |
c906108c | 3120 | fi |
b7026657 | 3121 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 3122 | fi |
cd0fc7c3 | 3123 | fi |
b7026657 AC |
3124 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
3125 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
3126 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
cd0fc7c3 | 3127 | |
b7026657 AC |
3128 | cat >>confdefs.h <<\_ACEOF |
3129 | #define HAVE_MMAP 1 | |
3130 | _ACEOF | |
cd0fc7c3 | 3131 | |
cd0fc7c3 | 3132 | fi |
b7026657 | 3133 | rm -f conftest.mmap |
cd0fc7c3 | 3134 | |
c906108c SS |
3135 | |
3136 | # autoconf.info says this should be called right after AC_INIT. | |
b7026657 | 3137 | ac_config_headers="$ac_config_headers config.h:config.in" |
c906108c | 3138 | |
b7026657 AC |
3139 | echo "$as_me:$LINENO: checking target system type" >&5 |
3140 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
3141 | if test "${ac_cv_target+set}" = set; then | |
3142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3143 | else | |
3144 | ac_cv_target_alias=$target_alias | |
3145 | test "x$ac_cv_target_alias" = "x" && | |
3146 | ac_cv_target_alias=$ac_cv_host_alias | |
3147 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
3148 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
3149 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
3150 | { (exit 1); exit 1; }; } | |
c906108c | 3151 | |
b7026657 AC |
3152 | fi |
3153 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
3154 | echo "${ECHO_T}$ac_cv_target" >&6 | |
3155 | target=$ac_cv_target | |
3156 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3157 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3158 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 3159 | |
c906108c | 3160 | |
b7026657 AC |
3161 | # The aliases save the names the user supplied, while $host etc. |
3162 | # will get canonicalized. | |
3163 | test -n "$target_alias" && | |
c906108c SS |
3164 | test "$program_prefix$program_suffix$program_transform_name" = \ |
3165 | NONENONEs,x,x, && | |
3166 | program_prefix=${target_alias}- | |
c906108c | 3167 | test "$program_prefix" != NONE && |
b7026657 | 3168 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
c906108c SS |
3169 | # Use a double $ so make ignores it. |
3170 | test "$program_suffix" != NONE && | |
b7026657 AC |
3171 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
3172 | # Double any \ or $. echo might interpret backslashes. | |
3173 | # By default was `s,x,x', remove it if useless. | |
3174 | cat <<\_ACEOF >conftest.sed | |
3175 | s/[\\$]/&&/g;s/;s,x,x,$// | |
3176 | _ACEOF | |
3177 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
3178 | rm conftest.sed | |
3179 | ||
3180 | ac_ext=c | |
3181 | ac_cpp='$CPP $CPPFLAGS' | |
3182 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3183 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3184 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3185 | if test -n "$ac_tool_prefix"; then | |
3186 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3187 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3188 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3190 | if test "${ac_cv_prog_CC+set}" = set; then | |
3191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3192 | else | |
3193 | if test -n "$CC"; then | |
3194 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3195 | else | |
3196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3197 | for as_dir in $PATH | |
3198 | do | |
3199 | IFS=$as_save_IFS | |
3200 | test -z "$as_dir" && as_dir=. | |
3201 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3202 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3203 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3205 | break 2 | |
3206 | fi | |
3207 | done | |
3208 | done | |
c906108c | 3209 | |
b7026657 AC |
3210 | fi |
3211 | fi | |
3212 | CC=$ac_cv_prog_CC | |
3213 | if test -n "$CC"; then | |
3214 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3215 | echo "${ECHO_T}$CC" >&6 | |
3216 | else | |
3217 | echo "$as_me:$LINENO: result: no" >&5 | |
3218 | echo "${ECHO_T}no" >&6 | |
3219 | fi | |
c906108c | 3220 | |
b7026657 AC |
3221 | fi |
3222 | if test -z "$ac_cv_prog_CC"; then | |
3223 | ac_ct_CC=$CC | |
3224 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 3225 | set dummy gcc; ac_word=$2 |
b7026657 AC |
3226 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3227 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3228 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3230 | else | |
3231 | if test -n "$ac_ct_CC"; then | |
3232 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3233 | else | |
3234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3235 | for as_dir in $PATH | |
3236 | do | |
3237 | IFS=$as_save_IFS | |
3238 | test -z "$as_dir" && as_dir=. | |
3239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3240 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3241 | ac_cv_prog_ac_ct_CC="gcc" | |
3242 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3243 | break 2 | |
3244 | fi | |
3245 | done | |
3246 | done | |
3247 | ||
3248 | fi | |
3249 | fi | |
3250 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3251 | if test -n "$ac_ct_CC"; then | |
3252 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3253 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3254 | else | |
3255 | echo "$as_me:$LINENO: result: no" >&5 | |
3256 | echo "${ECHO_T}no" >&6 | |
3257 | fi | |
3258 | ||
3259 | CC=$ac_ct_CC | |
3260 | else | |
3261 | CC="$ac_cv_prog_CC" | |
3262 | fi | |
3263 | ||
3264 | if test -z "$CC"; then | |
3265 | if test -n "$ac_tool_prefix"; then | |
3266 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3267 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3268 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3270 | if test "${ac_cv_prog_CC+set}" = set; then | |
3271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
3272 | else |
3273 | if test -n "$CC"; then | |
3274 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3275 | else | |
b7026657 AC |
3276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3277 | for as_dir in $PATH | |
3278 | do | |
3279 | IFS=$as_save_IFS | |
3280 | test -z "$as_dir" && as_dir=. | |
3281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3282 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3283 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3284 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3285 | break 2 | |
3286 | fi | |
3287 | done | |
3288 | done | |
3289 | ||
c906108c SS |
3290 | fi |
3291 | fi | |
b7026657 | 3292 | CC=$ac_cv_prog_CC |
c906108c | 3293 | if test -n "$CC"; then |
b7026657 AC |
3294 | echo "$as_me:$LINENO: result: $CC" >&5 |
3295 | echo "${ECHO_T}$CC" >&6 | |
3296 | else | |
3297 | echo "$as_me:$LINENO: result: no" >&5 | |
3298 | echo "${ECHO_T}no" >&6 | |
3299 | fi | |
3300 | ||
3301 | fi | |
3302 | if test -z "$ac_cv_prog_CC"; then | |
3303 | ac_ct_CC=$CC | |
3304 | # Extract the first word of "cc", so it can be a program name with args. | |
3305 | set dummy cc; ac_word=$2 | |
3306 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3308 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3310 | else | |
3311 | if test -n "$ac_ct_CC"; then | |
3312 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3313 | else | |
3314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3315 | for as_dir in $PATH | |
3316 | do | |
3317 | IFS=$as_save_IFS | |
3318 | test -z "$as_dir" && as_dir=. | |
3319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3320 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3321 | ac_cv_prog_ac_ct_CC="cc" | |
3322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3323 | break 2 | |
3324 | fi | |
3325 | done | |
3326 | done | |
3327 | ||
3328 | fi | |
3329 | fi | |
3330 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3331 | if test -n "$ac_ct_CC"; then | |
3332 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3333 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3334 | else | |
3335 | echo "$as_me:$LINENO: result: no" >&5 | |
3336 | echo "${ECHO_T}no" >&6 | |
3337 | fi | |
3338 | ||
3339 | CC=$ac_ct_CC | |
c906108c | 3340 | else |
b7026657 | 3341 | CC="$ac_cv_prog_CC" |
c906108c SS |
3342 | fi |
3343 | ||
b7026657 | 3344 | fi |
c906108c SS |
3345 | if test -z "$CC"; then |
3346 | # Extract the first word of "cc", so it can be a program name with args. | |
3347 | set dummy cc; ac_word=$2 | |
b7026657 AC |
3348 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3350 | if test "${ac_cv_prog_CC+set}" = set; then | |
3351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
3352 | else |
3353 | if test -n "$CC"; then | |
3354 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3355 | else | |
c906108c | 3356 | ac_prog_rejected=no |
b7026657 AC |
3357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3358 | for as_dir in $PATH | |
3359 | do | |
3360 | IFS=$as_save_IFS | |
3361 | test -z "$as_dir" && as_dir=. | |
3362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3363 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3364 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3365 | ac_prog_rejected=yes | |
3366 | continue | |
3367 | fi | |
3368 | ac_cv_prog_CC="cc" | |
3369 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3370 | break 2 | |
3371 | fi | |
3372 | done | |
3373 | done | |
3374 | ||
c906108c SS |
3375 | if test $ac_prog_rejected = yes; then |
3376 | # We found a bogon in the path, so make sure we never use it. | |
3377 | set dummy $ac_cv_prog_CC | |
3378 | shift | |
b7026657 | 3379 | if test $# != 0; then |
c906108c SS |
3380 | # We chose a different compiler from the bogus one. |
3381 | # However, it has the same basename, so the bogon will be chosen | |
3382 | # first if we set CC to just the basename; use the full file name. | |
3383 | shift | |
b7026657 | 3384 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
3385 | fi |
3386 | fi | |
3387 | fi | |
3388 | fi | |
b7026657 | 3389 | CC=$ac_cv_prog_CC |
c906108c | 3390 | if test -n "$CC"; then |
b7026657 AC |
3391 | echo "$as_me:$LINENO: result: $CC" >&5 |
3392 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 3393 | else |
b7026657 AC |
3394 | echo "$as_me:$LINENO: result: no" >&5 |
3395 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3396 | fi |
3397 | ||
b7026657 AC |
3398 | fi |
3399 | if test -z "$CC"; then | |
3400 | if test -n "$ac_tool_prefix"; then | |
3401 | for ac_prog in cl | |
3402 | do | |
3403 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3404 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3405 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3406 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3407 | if test "${ac_cv_prog_CC+set}" = set; then | |
3408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
3409 | else |
3410 | if test -n "$CC"; then | |
3411 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3412 | else | |
b7026657 AC |
3413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3414 | for as_dir in $PATH | |
3415 | do | |
3416 | IFS=$as_save_IFS | |
3417 | test -z "$as_dir" && as_dir=. | |
3418 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3419 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3420 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3421 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3422 | break 2 | |
3423 | fi | |
3424 | done | |
3425 | done | |
3426 | ||
c906108c SS |
3427 | fi |
3428 | fi | |
b7026657 | 3429 | CC=$ac_cv_prog_CC |
c906108c | 3430 | if test -n "$CC"; then |
b7026657 AC |
3431 | echo "$as_me:$LINENO: result: $CC" >&5 |
3432 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 3433 | else |
b7026657 AC |
3434 | echo "$as_me:$LINENO: result: no" >&5 |
3435 | echo "${ECHO_T}no" >&6 | |
c906108c | 3436 | fi |
b7026657 AC |
3437 | |
3438 | test -n "$CC" && break | |
3439 | done | |
3440 | fi | |
3441 | if test -z "$CC"; then | |
3442 | ac_ct_CC=$CC | |
3443 | for ac_prog in cl | |
3444 | do | |
3445 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3446 | set dummy $ac_prog; ac_word=$2 | |
3447 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3449 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3451 | else | |
3452 | if test -n "$ac_ct_CC"; then | |
3453 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3454 | else | |
3455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3456 | for as_dir in $PATH | |
3457 | do | |
3458 | IFS=$as_save_IFS | |
3459 | test -z "$as_dir" && as_dir=. | |
3460 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3461 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3462 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3464 | break 2 | |
c906108c | 3465 | fi |
b7026657 AC |
3466 | done |
3467 | done | |
3468 | ||
3469 | fi | |
3470 | fi | |
3471 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3472 | if test -n "$ac_ct_CC"; then | |
3473 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3474 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3475 | else | |
3476 | echo "$as_me:$LINENO: result: no" >&5 | |
3477 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3478 | fi |
3479 | ||
b7026657 AC |
3480 | test -n "$ac_ct_CC" && break |
3481 | done | |
c906108c | 3482 | |
b7026657 AC |
3483 | CC=$ac_ct_CC |
3484 | fi | |
3485 | ||
3486 | fi | |
3487 | ||
3488 | ||
3489 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
3490 | See \`config.log' for more details." >&5 | |
3491 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3492 | See \`config.log' for more details." >&2;} | |
3493 | { (exit 1); exit 1; }; } | |
3494 | ||
3495 | # Provide some information about the compiler. | |
3496 | echo "$as_me:$LINENO:" \ | |
3497 | "checking for C compiler version" >&5 | |
3498 | ac_compiler=`set X $ac_compile; echo $2` | |
3499 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3500 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3501 | ac_status=$? | |
3502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3503 | (exit $ac_status); } | |
3504 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3505 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3506 | ac_status=$? | |
3507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3508 | (exit $ac_status); } | |
3509 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3510 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3511 | ac_status=$? | |
3512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3513 | (exit $ac_status); } | |
3514 | ||
3515 | cat >conftest.$ac_ext <<_ACEOF | |
3516 | /* confdefs.h. */ | |
3517 | _ACEOF | |
3518 | cat confdefs.h >>conftest.$ac_ext | |
3519 | cat >>conftest.$ac_ext <<_ACEOF | |
3520 | /* end confdefs.h. */ | |
3521 | ||
3522 | int | |
3523 | main () | |
3524 | { | |
3525 | ||
3526 | ; | |
3527 | return 0; | |
3528 | } | |
3529 | _ACEOF | |
3530 | ac_clean_files_save=$ac_clean_files | |
3531 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
3532 | # Try to create an executable without -o first, disregard a.out. | |
3533 | # It will help us diagnose broken compilers, and finding out an intuition | |
3534 | # of exeext. | |
3535 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
3536 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
3537 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3538 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
3539 | (eval $ac_link_default) 2>&5 | |
3540 | ac_status=$? | |
3541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3542 | (exit $ac_status); }; then | |
3543 | # Find the output, starting from the most likely. This scheme is | |
3544 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
3545 | # resort. | |
3546 | ||
3547 | # Be careful to initialize this variable, since it used to be cached. | |
3548 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
3549 | ac_cv_exeext= | |
3550 | # b.out is created by i960 compilers. | |
3551 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
3552 | do | |
3553 | test -f "$ac_file" || continue | |
3554 | case $ac_file in | |
3555 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
3556 | ;; | |
3557 | conftest.$ac_ext ) | |
3558 | # This is the source file. | |
3559 | ;; | |
3560 | [ab].out ) | |
3561 | # We found the default executable, but exeext='' is most | |
3562 | # certainly right. | |
3563 | break;; | |
3564 | *.* ) | |
3565 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3566 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
3567 | # but it would be cool to find out if it's true. Does anybody | |
3568 | # maintain Libtool? --akim. | |
3569 | export ac_cv_exeext | |
3570 | break;; | |
3571 | * ) | |
3572 | break;; | |
3573 | esac | |
3574 | done | |
3575 | else | |
3576 | echo "$as_me: failed program was:" >&5 | |
3577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3578 | ||
3579 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
3580 | See \`config.log' for more details." >&5 | |
3581 | echo "$as_me: error: C compiler cannot create executables | |
3582 | See \`config.log' for more details." >&2;} | |
3583 | { (exit 77); exit 77; }; } | |
3584 | fi | |
3585 | ||
3586 | ac_exeext=$ac_cv_exeext | |
3587 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3588 | echo "${ECHO_T}$ac_file" >&6 | |
3589 | ||
3590 | # Check the compiler produces executables we can run. If not, either | |
3591 | # the compiler is broken, or we cross compile. | |
3592 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
3593 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
3594 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3595 | # If not cross compiling, check that we can run a simple program. | |
3596 | if test "$cross_compiling" != yes; then | |
3597 | if { ac_try='./$ac_file' | |
3598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3599 | (eval $ac_try) 2>&5 | |
3600 | ac_status=$? | |
3601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3602 | (exit $ac_status); }; }; then | |
3603 | cross_compiling=no | |
c906108c | 3604 | else |
b7026657 AC |
3605 | if test "$cross_compiling" = maybe; then |
3606 | cross_compiling=yes | |
3607 | else | |
3608 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3609 | If you meant to cross compile, use \`--host'. | |
3610 | See \`config.log' for more details." >&5 | |
3611 | echo "$as_me: error: cannot run C compiled programs. | |
3612 | If you meant to cross compile, use \`--host'. | |
3613 | See \`config.log' for more details." >&2;} | |
3614 | { (exit 1); exit 1; }; } | |
3615 | fi | |
c906108c | 3616 | fi |
b7026657 AC |
3617 | fi |
3618 | echo "$as_me:$LINENO: result: yes" >&5 | |
3619 | echo "${ECHO_T}yes" >&6 | |
3620 | ||
3621 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
3622 | ac_clean_files=$ac_clean_files_save | |
3623 | # Check the compiler produces executables we can run. If not, either | |
3624 | # the compiler is broken, or we cross compile. | |
3625 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3626 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
3627 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3628 | echo "${ECHO_T}$cross_compiling" >&6 | |
3629 | ||
3630 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3631 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3633 | (eval $ac_link) 2>&5 | |
3634 | ac_status=$? | |
3635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3636 | (exit $ac_status); }; then | |
3637 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3638 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3639 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3640 | # `rm'. | |
3641 | for ac_file in conftest.exe conftest conftest.*; do | |
3642 | test -f "$ac_file" || continue | |
3643 | case $ac_file in | |
3644 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
3645 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3646 | export ac_cv_exeext | |
3647 | break;; | |
3648 | * ) break;; | |
3649 | esac | |
3650 | done | |
c906108c | 3651 | else |
b7026657 AC |
3652 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3653 | See \`config.log' for more details." >&5 | |
3654 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3655 | See \`config.log' for more details." >&2;} | |
3656 | { (exit 1); exit 1; }; } | |
c906108c | 3657 | fi |
c906108c | 3658 | |
b7026657 AC |
3659 | rm -f conftest$ac_cv_exeext |
3660 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3661 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 3662 | |
b7026657 AC |
3663 | rm -f conftest.$ac_ext |
3664 | EXEEXT=$ac_cv_exeext | |
3665 | ac_exeext=$EXEEXT | |
3666 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3667 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
3668 | if test "${ac_cv_objext+set}" = set; then | |
3669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3670 | else | |
3671 | cat >conftest.$ac_ext <<_ACEOF | |
3672 | /* confdefs.h. */ | |
3673 | _ACEOF | |
3674 | cat confdefs.h >>conftest.$ac_ext | |
3675 | cat >>conftest.$ac_ext <<_ACEOF | |
3676 | /* end confdefs.h. */ | |
c906108c | 3677 | |
b7026657 AC |
3678 | int |
3679 | main () | |
3680 | { | |
c906108c | 3681 | |
b7026657 AC |
3682 | ; |
3683 | return 0; | |
3684 | } | |
3685 | _ACEOF | |
3686 | rm -f conftest.o conftest.obj | |
3687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3688 | (eval $ac_compile) 2>&5 | |
3689 | ac_status=$? | |
3690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3691 | (exit $ac_status); }; then | |
3692 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3693 | case $ac_file in | |
3694 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
3695 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3696 | break;; | |
3697 | esac | |
3698 | done | |
c906108c | 3699 | else |
b7026657 AC |
3700 | echo "$as_me: failed program was:" >&5 |
3701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3702 | ||
3703 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3704 | See \`config.log' for more details." >&5 | |
3705 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3706 | See \`config.log' for more details." >&2;} | |
3707 | { (exit 1); exit 1; }; } | |
c906108c SS |
3708 | fi |
3709 | ||
b7026657 AC |
3710 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3711 | fi | |
3712 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3713 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
3714 | OBJEXT=$ac_cv_objext | |
3715 | ac_objext=$OBJEXT | |
3716 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3717 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3718 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3720 | else |
b7026657 AC |
3721 | cat >conftest.$ac_ext <<_ACEOF |
3722 | /* confdefs.h. */ | |
3723 | _ACEOF | |
3724 | cat confdefs.h >>conftest.$ac_ext | |
3725 | cat >>conftest.$ac_ext <<_ACEOF | |
3726 | /* end confdefs.h. */ | |
3727 | ||
3728 | int | |
3729 | main () | |
3730 | { | |
3731 | #ifndef __GNUC__ | |
3732 | choke me | |
3733 | #endif | |
3734 | ||
3735 | ; | |
3736 | return 0; | |
3737 | } | |
3738 | _ACEOF | |
3739 | rm -f conftest.$ac_objext | |
3740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3741 | (eval $ac_compile) 2>conftest.er1 | |
3742 | ac_status=$? | |
3743 | grep -v '^ *+' conftest.er1 >conftest.err | |
3744 | rm -f conftest.er1 | |
3745 | cat conftest.err >&5 | |
3746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3747 | (exit $ac_status); } && | |
3748 | { ac_try='test -z "$ac_c_werror_flag" | |
3749 | || test ! -s conftest.err' | |
3750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3751 | (eval $ac_try) 2>&5 | |
3752 | ac_status=$? | |
3753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3754 | (exit $ac_status); }; } && | |
3755 | { ac_try='test -s conftest.$ac_objext' | |
3756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3757 | (eval $ac_try) 2>&5 | |
3758 | ac_status=$? | |
3759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3760 | (exit $ac_status); }; }; then | |
3761 | ac_compiler_gnu=yes | |
3762 | else | |
3763 | echo "$as_me: failed program was:" >&5 | |
3764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3765 | ||
3766 | ac_compiler_gnu=no | |
3767 | fi | |
3768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3769 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3770 | ||
3771 | fi | |
3772 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3773 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3774 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3775 | ac_test_CFLAGS=${CFLAGS+set} | |
3776 | ac_save_CFLAGS=$CFLAGS | |
3777 | CFLAGS="-g" | |
3778 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3779 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3780 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3782 | else | |
3783 | cat >conftest.$ac_ext <<_ACEOF | |
3784 | /* confdefs.h. */ | |
3785 | _ACEOF | |
3786 | cat confdefs.h >>conftest.$ac_ext | |
3787 | cat >>conftest.$ac_ext <<_ACEOF | |
3788 | /* end confdefs.h. */ | |
3789 | ||
3790 | int | |
3791 | main () | |
3792 | { | |
3793 | ||
3794 | ; | |
3795 | return 0; | |
3796 | } | |
3797 | _ACEOF | |
3798 | rm -f conftest.$ac_objext | |
3799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3800 | (eval $ac_compile) 2>conftest.er1 | |
3801 | ac_status=$? | |
3802 | grep -v '^ *+' conftest.er1 >conftest.err | |
3803 | rm -f conftest.er1 | |
3804 | cat conftest.err >&5 | |
3805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3806 | (exit $ac_status); } && | |
3807 | { ac_try='test -z "$ac_c_werror_flag" | |
3808 | || test ! -s conftest.err' | |
3809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3810 | (eval $ac_try) 2>&5 | |
3811 | ac_status=$? | |
3812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3813 | (exit $ac_status); }; } && | |
3814 | { ac_try='test -s conftest.$ac_objext' | |
3815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3816 | (eval $ac_try) 2>&5 | |
3817 | ac_status=$? | |
3818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3819 | (exit $ac_status); }; }; then | |
c906108c SS |
3820 | ac_cv_prog_cc_g=yes |
3821 | else | |
b7026657 AC |
3822 | echo "$as_me: failed program was:" >&5 |
3823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3824 | |
b7026657 | 3825 | ac_cv_prog_cc_g=no |
c906108c | 3826 | fi |
b7026657 AC |
3827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3828 | fi | |
3829 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3830 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 3831 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 3832 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
3833 | elif test $ac_cv_prog_cc_g = yes; then |
3834 | if test "$GCC" = yes; then | |
3835 | CFLAGS="-g -O2" | |
3836 | else | |
3837 | CFLAGS="-g" | |
3838 | fi | |
3839 | else | |
3840 | if test "$GCC" = yes; then | |
3841 | CFLAGS="-O2" | |
3842 | else | |
3843 | CFLAGS= | |
3844 | fi | |
3845 | fi | |
b7026657 AC |
3846 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3847 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3848 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3850 | else | |
3851 | ac_cv_prog_cc_stdc=no | |
3852 | ac_save_CC=$CC | |
3853 | cat >conftest.$ac_ext <<_ACEOF | |
3854 | /* confdefs.h. */ | |
3855 | _ACEOF | |
3856 | cat confdefs.h >>conftest.$ac_ext | |
3857 | cat >>conftest.$ac_ext <<_ACEOF | |
3858 | /* end confdefs.h. */ | |
3859 | #include <stdarg.h> | |
3860 | #include <stdio.h> | |
3861 | #include <sys/types.h> | |
3862 | #include <sys/stat.h> | |
3863 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3864 | struct buf { int x; }; | |
3865 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3866 | static char *e (p, i) | |
3867 | char **p; | |
3868 | int i; | |
3869 | { | |
3870 | return p[i]; | |
3871 | } | |
3872 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3873 | { | |
3874 | char *s; | |
3875 | va_list v; | |
3876 | va_start (v,p); | |
3877 | s = g (p, va_arg (v,int)); | |
3878 | va_end (v); | |
3879 | return s; | |
3880 | } | |
3881 | ||
3882 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3883 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3884 | These don't provoke an error unfortunately, instead are silently treated | |
3885 | as 'x'. The following induces an error, until -std1 is added to get | |
3886 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3887 | array size at least. It's necessary to write '\x00'==0 to get something | |
3888 | that's true only with -std1. */ | |
3889 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3890 | ||
3891 | int test (int i, double x); | |
3892 | struct s1 {int (*f) (int a);}; | |
3893 | struct s2 {int (*f) (double a);}; | |
3894 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3895 | int argc; | |
3896 | char **argv; | |
3897 | int | |
3898 | main () | |
3899 | { | |
3900 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3901 | ; | |
3902 | return 0; | |
3903 | } | |
3904 | _ACEOF | |
3905 | # Don't try gcc -ansi; that turns off useful extensions and | |
3906 | # breaks some systems' header files. | |
3907 | # AIX -qlanglvl=ansi | |
3908 | # Ultrix and OSF/1 -std1 | |
3909 | # HP-UX 10.20 and later -Ae | |
3910 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3911 | # SVR4 -Xc -D__EXTENSIONS__ | |
3912 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3913 | do | |
3914 | CC="$ac_save_CC $ac_arg" | |
3915 | rm -f conftest.$ac_objext | |
3916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3917 | (eval $ac_compile) 2>conftest.er1 | |
3918 | ac_status=$? | |
3919 | grep -v '^ *+' conftest.er1 >conftest.err | |
3920 | rm -f conftest.er1 | |
3921 | cat conftest.err >&5 | |
3922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3923 | (exit $ac_status); } && | |
3924 | { ac_try='test -z "$ac_c_werror_flag" | |
3925 | || test ! -s conftest.err' | |
3926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3927 | (eval $ac_try) 2>&5 | |
3928 | ac_status=$? | |
3929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3930 | (exit $ac_status); }; } && | |
3931 | { ac_try='test -s conftest.$ac_objext' | |
3932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3933 | (eval $ac_try) 2>&5 | |
3934 | ac_status=$? | |
3935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3936 | (exit $ac_status); }; }; then | |
3937 | ac_cv_prog_cc_stdc=$ac_arg | |
3938 | break | |
3939 | else | |
3940 | echo "$as_me: failed program was:" >&5 | |
3941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3942 | ||
3943 | fi | |
3944 | rm -f conftest.err conftest.$ac_objext | |
3945 | done | |
3946 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3947 | CC=$ac_save_CC | |
3948 | ||
3949 | fi | |
3950 | ||
3951 | case "x$ac_cv_prog_cc_stdc" in | |
3952 | x|xno) | |
3953 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3954 | echo "${ECHO_T}none needed" >&6 ;; | |
3955 | *) | |
3956 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3957 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3958 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3959 | esac | |
3960 | ||
3961 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
3962 | # in C++ we need to declare it. In case someone uses the same compiler | |
3963 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3964 | # the declaration of exit, since it's the most demanding environment. | |
3965 | cat >conftest.$ac_ext <<_ACEOF | |
3966 | #ifndef __cplusplus | |
3967 | choke me | |
3968 | #endif | |
3969 | _ACEOF | |
3970 | rm -f conftest.$ac_objext | |
3971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3972 | (eval $ac_compile) 2>conftest.er1 | |
3973 | ac_status=$? | |
3974 | grep -v '^ *+' conftest.er1 >conftest.err | |
3975 | rm -f conftest.er1 | |
3976 | cat conftest.err >&5 | |
3977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3978 | (exit $ac_status); } && | |
3979 | { ac_try='test -z "$ac_c_werror_flag" | |
3980 | || test ! -s conftest.err' | |
3981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3982 | (eval $ac_try) 2>&5 | |
3983 | ac_status=$? | |
3984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3985 | (exit $ac_status); }; } && | |
3986 | { ac_try='test -s conftest.$ac_objext' | |
3987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3988 | (eval $ac_try) 2>&5 | |
3989 | ac_status=$? | |
3990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3991 | (exit $ac_status); }; }; then | |
3992 | for ac_declaration in \ | |
3993 | '' \ | |
3994 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3995 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3996 | 'extern "C" void exit (int) throw ();' \ | |
3997 | 'extern "C" void exit (int);' \ | |
3998 | 'void exit (int);' | |
3999 | do | |
4000 | cat >conftest.$ac_ext <<_ACEOF | |
4001 | /* confdefs.h. */ | |
4002 | _ACEOF | |
4003 | cat confdefs.h >>conftest.$ac_ext | |
4004 | cat >>conftest.$ac_ext <<_ACEOF | |
4005 | /* end confdefs.h. */ | |
4006 | $ac_declaration | |
4007 | #include <stdlib.h> | |
4008 | int | |
4009 | main () | |
4010 | { | |
4011 | exit (42); | |
4012 | ; | |
4013 | return 0; | |
4014 | } | |
4015 | _ACEOF | |
4016 | rm -f conftest.$ac_objext | |
4017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4018 | (eval $ac_compile) 2>conftest.er1 | |
4019 | ac_status=$? | |
4020 | grep -v '^ *+' conftest.er1 >conftest.err | |
4021 | rm -f conftest.er1 | |
4022 | cat conftest.err >&5 | |
4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4024 | (exit $ac_status); } && | |
4025 | { ac_try='test -z "$ac_c_werror_flag" | |
4026 | || test ! -s conftest.err' | |
4027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4028 | (eval $ac_try) 2>&5 | |
4029 | ac_status=$? | |
4030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4031 | (exit $ac_status); }; } && | |
4032 | { ac_try='test -s conftest.$ac_objext' | |
4033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4034 | (eval $ac_try) 2>&5 | |
4035 | ac_status=$? | |
4036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4037 | (exit $ac_status); }; }; then | |
4038 | : | |
4039 | else | |
4040 | echo "$as_me: failed program was:" >&5 | |
4041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4042 | ||
4043 | continue | |
4044 | fi | |
4045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4046 | cat >conftest.$ac_ext <<_ACEOF | |
4047 | /* confdefs.h. */ | |
4048 | _ACEOF | |
4049 | cat confdefs.h >>conftest.$ac_ext | |
4050 | cat >>conftest.$ac_ext <<_ACEOF | |
4051 | /* end confdefs.h. */ | |
4052 | $ac_declaration | |
4053 | int | |
4054 | main () | |
4055 | { | |
4056 | exit (42); | |
4057 | ; | |
4058 | return 0; | |
4059 | } | |
4060 | _ACEOF | |
4061 | rm -f conftest.$ac_objext | |
4062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4063 | (eval $ac_compile) 2>conftest.er1 | |
4064 | ac_status=$? | |
4065 | grep -v '^ *+' conftest.er1 >conftest.err | |
4066 | rm -f conftest.er1 | |
4067 | cat conftest.err >&5 | |
4068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4069 | (exit $ac_status); } && | |
4070 | { ac_try='test -z "$ac_c_werror_flag" | |
4071 | || test ! -s conftest.err' | |
4072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4073 | (eval $ac_try) 2>&5 | |
4074 | ac_status=$? | |
4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4076 | (exit $ac_status); }; } && | |
4077 | { ac_try='test -s conftest.$ac_objext' | |
4078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4079 | (eval $ac_try) 2>&5 | |
4080 | ac_status=$? | |
4081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4082 | (exit $ac_status); }; }; then | |
4083 | break | |
4084 | else | |
4085 | echo "$as_me: failed program was:" >&5 | |
4086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4087 | ||
4088 | fi | |
4089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4090 | done | |
4091 | rm -f conftest* | |
4092 | if test -n "$ac_declaration"; then | |
4093 | echo '#ifdef __cplusplus' >>confdefs.h | |
4094 | echo $ac_declaration >>confdefs.h | |
4095 | echo '#endif' >>confdefs.h | |
4096 | fi | |
4097 | ||
4098 | else | |
4099 | echo "$as_me: failed program was:" >&5 | |
4100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4101 | ||
4102 | fi | |
4103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4104 | ac_ext=c | |
4105 | ac_cpp='$CPP $CPPFLAGS' | |
4106 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4107 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4108 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
4109 | |
4110 | # Find a good install program. We prefer a C program (faster), | |
4111 | # so one script is as good as another. But avoid the broken or | |
4112 | # incompatible versions: | |
4113 | # SysV /etc/install, /usr/sbin/install | |
4114 | # SunOS /usr/etc/install | |
4115 | # IRIX /sbin/install | |
4116 | # AIX /bin/install | |
b7026657 | 4117 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c906108c SS |
4118 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4119 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4120 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b7026657 | 4121 | # OS/2's system install, which has a completely different semantic |
c906108c | 4122 | # ./install, which can be erroneously created by make from ./install.sh. |
b7026657 AC |
4123 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4124 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
c906108c | 4125 | if test -z "$INSTALL"; then |
b7026657 AC |
4126 | if test "${ac_cv_path_install+set}" = set; then |
4127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4128 | else |
b7026657 AC |
4129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4130 | for as_dir in $PATH | |
4131 | do | |
4132 | IFS=$as_save_IFS | |
4133 | test -z "$as_dir" && as_dir=. | |
4134 | # Account for people who put trailing slashes in PATH elements. | |
4135 | case $as_dir/ in | |
4136 | ./ | .// | /cC/* | \ | |
4137 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4138 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4139 | /usr/ucb/* ) ;; | |
4140 | *) | |
4141 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4142 | # Don't use installbsd from OSF since it installs stuff as root | |
4143 | # by default. | |
4144 | for ac_prog in ginstall scoinst install; do | |
4145 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4146 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
c906108c | 4147 | if test $ac_prog = install && |
b7026657 | 4148 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
c906108c SS |
4149 | # AIX install. It has an incompatible calling convention. |
4150 | : | |
b7026657 AC |
4151 | elif test $ac_prog = install && |
4152 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4153 | # program-specific install script used by HP pwplus--don't use. | |
4154 | : | |
c906108c | 4155 | else |
b7026657 AC |
4156 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4157 | break 3 | |
c906108c SS |
4158 | fi |
4159 | fi | |
4160 | done | |
b7026657 AC |
4161 | done |
4162 | ;; | |
4163 | esac | |
4164 | done | |
4165 | ||
c906108c SS |
4166 | |
4167 | fi | |
4168 | if test "${ac_cv_path_install+set}" = set; then | |
b7026657 | 4169 | INSTALL=$ac_cv_path_install |
c906108c SS |
4170 | else |
4171 | # As a last resort, use the slow shell script. We don't cache a | |
4172 | # path for INSTALL within a source directory, because that will | |
4173 | # break other packages using the cache if that directory is | |
4174 | # removed, or if the path is relative. | |
b7026657 | 4175 | INSTALL=$ac_install_sh |
c906108c SS |
4176 | fi |
4177 | fi | |
b7026657 AC |
4178 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4179 | echo "${ECHO_T}$INSTALL" >&6 | |
c906108c SS |
4180 | |
4181 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4182 | # It thinks the first close brace ends the variable substitution. | |
4183 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4184 | ||
b7026657 | 4185 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
cd0fc7c3 | 4186 | |
c906108c SS |
4187 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4188 | ||
4189 | ||
4190 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
4191 | if test "x$cross_compiling" = "xno"; then | |
4192 | CC_FOR_BUILD='$(CC)' | |
4193 | else | |
4194 | CC_FOR_BUILD=gcc | |
4195 | fi | |
4196 | ||
4197 | ||
4198 | ||
4199 | ||
4200 | AR=${AR-ar} | |
4201 | ||
b7026657 AC |
4202 | if test -n "$ac_tool_prefix"; then |
4203 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4204 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4205 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4206 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4207 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
4209 | else |
4210 | if test -n "$RANLIB"; then | |
4211 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4212 | else | |
b7026657 AC |
4213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4214 | for as_dir in $PATH | |
4215 | do | |
4216 | IFS=$as_save_IFS | |
4217 | test -z "$as_dir" && as_dir=. | |
4218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4219 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4220 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4221 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4222 | break 2 | |
4223 | fi | |
4224 | done | |
4225 | done | |
4226 | ||
4227 | fi | |
4228 | fi | |
4229 | RANLIB=$ac_cv_prog_RANLIB | |
4230 | if test -n "$RANLIB"; then | |
4231 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4232 | echo "${ECHO_T}$RANLIB" >&6 | |
4233 | else | |
4234 | echo "$as_me:$LINENO: result: no" >&5 | |
4235 | echo "${ECHO_T}no" >&6 | |
4236 | fi | |
4237 | ||
4238 | fi | |
4239 | if test -z "$ac_cv_prog_RANLIB"; then | |
4240 | ac_ct_RANLIB=$RANLIB | |
4241 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4242 | set dummy ranlib; ac_word=$2 | |
4243 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4244 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4245 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4247 | else | |
4248 | if test -n "$ac_ct_RANLIB"; then | |
4249 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4250 | else | |
4251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4252 | for as_dir in $PATH | |
4253 | do | |
4254 | IFS=$as_save_IFS | |
4255 | test -z "$as_dir" && as_dir=. | |
4256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4257 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4258 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4260 | break 2 | |
4261 | fi | |
4262 | done | |
4263 | done | |
4264 | ||
4265 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
c906108c SS |
4266 | fi |
4267 | fi | |
b7026657 AC |
4268 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4269 | if test -n "$ac_ct_RANLIB"; then | |
4270 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4271 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4272 | else | |
4273 | echo "$as_me:$LINENO: result: no" >&5 | |
4274 | echo "${ECHO_T}no" >&6 | |
4275 | fi | |
4276 | ||
4277 | RANLIB=$ac_ct_RANLIB | |
c906108c | 4278 | else |
b7026657 | 4279 | RANLIB="$ac_cv_prog_RANLIB" |
c906108c SS |
4280 | fi |
4281 | ||
4282 | ||
4283 | ALL_LINGUAS= | |
b7026657 AC |
4284 | |
4285 | ||
4286 | ||
4287 | ||
4288 | ||
4289 | ||
4290 | ||
4291 | ||
4292 | ||
4293 | ||
4294 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
c906108c SS |
4295 | unistd.h values.h sys/param.h |
4296 | do | |
b7026657 AC |
4297 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4298 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4299 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4300 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4301 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4303 | fi | |
4304 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4305 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4306 | else | |
4307 | # Is the header compilable? | |
4308 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4309 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4310 | cat >conftest.$ac_ext <<_ACEOF | |
4311 | /* confdefs.h. */ | |
4312 | _ACEOF | |
4313 | cat confdefs.h >>conftest.$ac_ext | |
4314 | cat >>conftest.$ac_ext <<_ACEOF | |
4315 | /* end confdefs.h. */ | |
4316 | $ac_includes_default | |
4317 | #include <$ac_header> | |
4318 | _ACEOF | |
4319 | rm -f conftest.$ac_objext | |
4320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4321 | (eval $ac_compile) 2>conftest.er1 | |
4322 | ac_status=$? | |
4323 | grep -v '^ *+' conftest.er1 >conftest.err | |
4324 | rm -f conftest.er1 | |
4325 | cat conftest.err >&5 | |
4326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4327 | (exit $ac_status); } && | |
4328 | { ac_try='test -z "$ac_c_werror_flag" | |
4329 | || test ! -s conftest.err' | |
4330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4331 | (eval $ac_try) 2>&5 | |
4332 | ac_status=$? | |
4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4334 | (exit $ac_status); }; } && | |
4335 | { ac_try='test -s conftest.$ac_objext' | |
4336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4337 | (eval $ac_try) 2>&5 | |
4338 | ac_status=$? | |
4339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4340 | (exit $ac_status); }; }; then | |
4341 | ac_header_compiler=yes | |
4342 | else | |
4343 | echo "$as_me: failed program was:" >&5 | |
4344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4345 | ||
4346 | ac_header_compiler=no | |
4347 | fi | |
4348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4349 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4350 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4351 | ||
4352 | # Is the header present? | |
4353 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4354 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4355 | cat >conftest.$ac_ext <<_ACEOF | |
4356 | /* confdefs.h. */ | |
4357 | _ACEOF | |
4358 | cat confdefs.h >>conftest.$ac_ext | |
4359 | cat >>conftest.$ac_ext <<_ACEOF | |
4360 | /* end confdefs.h. */ | |
4361 | #include <$ac_header> | |
4362 | _ACEOF | |
4363 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4364 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4365 | ac_status=$? | |
4366 | grep -v '^ *+' conftest.er1 >conftest.err | |
4367 | rm -f conftest.er1 | |
4368 | cat conftest.err >&5 | |
4369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4370 | (exit $ac_status); } >/dev/null; then | |
4371 | if test -s conftest.err; then | |
4372 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4373 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4374 | else | |
4375 | ac_cpp_err= | |
4376 | fi | |
4377 | else | |
4378 | ac_cpp_err=yes | |
c906108c | 4379 | fi |
b7026657 AC |
4380 | if test -z "$ac_cpp_err"; then |
4381 | ac_header_preproc=yes | |
4382 | else | |
4383 | echo "$as_me: failed program was:" >&5 | |
4384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4385 | ||
4386 | ac_header_preproc=no | |
c906108c | 4387 | fi |
b7026657 AC |
4388 | rm -f conftest.err conftest.$ac_ext |
4389 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4390 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4391 | ||
4392 | # So? What about this header? | |
4393 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4394 | yes:no: ) | |
4395 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4396 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4397 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4398 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4399 | ac_header_preproc=yes | |
4400 | ;; | |
4401 | no:yes:* ) | |
4402 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4403 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4404 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4405 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4406 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4407 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4408 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4409 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4410 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4411 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4412 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4413 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4414 | ( | |
4415 | cat <<\_ASBOX | |
4416 | ## ------------------------------------------ ## | |
4417 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4418 | ## ------------------------------------------ ## | |
4419 | _ASBOX | |
4420 | ) | | |
4421 | sed "s/^/$as_me: WARNING: /" >&2 | |
4422 | ;; | |
4423 | esac | |
4424 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4425 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4426 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4428 | else |
b7026657 AC |
4429 | eval "$as_ac_Header=\$ac_header_preproc" |
4430 | fi | |
4431 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4432 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4433 | ||
4434 | fi | |
4435 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4436 | cat >>confdefs.h <<_ACEOF | |
4437 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4438 | _ACEOF | |
4439 | ||
c906108c | 4440 | fi |
b7026657 | 4441 | |
c906108c SS |
4442 | done |
4443 | ||
b7026657 AC |
4444 | |
4445 | ||
4446 | ||
4447 | ||
4448 | ||
4449 | ||
4450 | ||
4451 | ||
4452 | ||
4453 | ||
4454 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
c906108c SS |
4455 | __argz_count __argz_stringify __argz_next |
4456 | do | |
b7026657 AC |
4457 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4458 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4459 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4460 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4462 | else | |
4463 | cat >conftest.$ac_ext <<_ACEOF | |
4464 | /* confdefs.h. */ | |
4465 | _ACEOF | |
4466 | cat confdefs.h >>conftest.$ac_ext | |
4467 | cat >>conftest.$ac_ext <<_ACEOF | |
4468 | /* end confdefs.h. */ | |
4469 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4470 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4471 | #define $ac_func innocuous_$ac_func | |
4472 | ||
c906108c | 4473 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4474 | which can conflict with char $ac_func (); below. |
4475 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4476 | <limits.h> exists even on freestanding compilers. */ | |
4477 | ||
4478 | #ifdef __STDC__ | |
4479 | # include <limits.h> | |
4480 | #else | |
4481 | # include <assert.h> | |
4482 | #endif | |
c906108c | 4483 | |
b7026657 | 4484 | #undef $ac_func |
c906108c | 4485 | |
b7026657 AC |
4486 | /* Override any gcc2 internal prototype to avoid an error. */ |
4487 | #ifdef __cplusplus | |
4488 | extern "C" | |
4489 | { | |
4490 | #endif | |
4491 | /* We use char because int might match the return type of a gcc2 | |
4492 | builtin and then its argument prototype would still apply. */ | |
4493 | char $ac_func (); | |
c906108c SS |
4494 | /* The GNU C library defines this for functions which it implements |
4495 | to always fail with ENOSYS. Some functions are actually named | |
4496 | something starting with __ and the normal name is an alias. */ | |
4497 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4498 | choke me | |
4499 | #else | |
b7026657 AC |
4500 | char (*f) () = $ac_func; |
4501 | #endif | |
4502 | #ifdef __cplusplus | |
4503 | } | |
c906108c SS |
4504 | #endif |
4505 | ||
b7026657 AC |
4506 | int |
4507 | main () | |
4508 | { | |
4509 | return f != $ac_func; | |
4510 | ; | |
4511 | return 0; | |
4512 | } | |
4513 | _ACEOF | |
4514 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4516 | (eval $ac_link) 2>conftest.er1 | |
4517 | ac_status=$? | |
4518 | grep -v '^ *+' conftest.er1 >conftest.err | |
4519 | rm -f conftest.er1 | |
4520 | cat conftest.err >&5 | |
4521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4522 | (exit $ac_status); } && | |
4523 | { ac_try='test -z "$ac_c_werror_flag" | |
4524 | || test ! -s conftest.err' | |
4525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4526 | (eval $ac_try) 2>&5 | |
4527 | ac_status=$? | |
4528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4529 | (exit $ac_status); }; } && | |
4530 | { ac_try='test -s conftest$ac_exeext' | |
4531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4532 | (eval $ac_try) 2>&5 | |
4533 | ac_status=$? | |
4534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4535 | (exit $ac_status); }; }; then | |
4536 | eval "$as_ac_var=yes" | |
4537 | else | |
4538 | echo "$as_me: failed program was:" >&5 | |
4539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4540 | ||
4541 | eval "$as_ac_var=no" | |
4542 | fi | |
4543 | rm -f conftest.err conftest.$ac_objext \ | |
4544 | conftest$ac_exeext conftest.$ac_ext | |
4545 | fi | |
4546 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4547 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4548 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4549 | cat >>confdefs.h <<_ACEOF | |
4550 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4551 | _ACEOF | |
c906108c | 4552 | |
c906108c SS |
4553 | fi |
4554 | done | |
4555 | ||
4556 | ||
4557 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
b7026657 AC |
4558 | |
4559 | for ac_func in stpcpy | |
c906108c | 4560 | do |
b7026657 AC |
4561 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4562 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4563 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4564 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4566 | else | |
4567 | cat >conftest.$ac_ext <<_ACEOF | |
4568 | /* confdefs.h. */ | |
4569 | _ACEOF | |
4570 | cat confdefs.h >>conftest.$ac_ext | |
4571 | cat >>conftest.$ac_ext <<_ACEOF | |
4572 | /* end confdefs.h. */ | |
4573 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4574 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4575 | #define $ac_func innocuous_$ac_func | |
4576 | ||
c906108c | 4577 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4578 | which can conflict with char $ac_func (); below. |
4579 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4580 | <limits.h> exists even on freestanding compilers. */ | |
4581 | ||
4582 | #ifdef __STDC__ | |
4583 | # include <limits.h> | |
4584 | #else | |
4585 | # include <assert.h> | |
4586 | #endif | |
c906108c | 4587 | |
b7026657 | 4588 | #undef $ac_func |
c906108c | 4589 | |
b7026657 AC |
4590 | /* Override any gcc2 internal prototype to avoid an error. */ |
4591 | #ifdef __cplusplus | |
4592 | extern "C" | |
4593 | { | |
4594 | #endif | |
4595 | /* We use char because int might match the return type of a gcc2 | |
4596 | builtin and then its argument prototype would still apply. */ | |
4597 | char $ac_func (); | |
c906108c SS |
4598 | /* The GNU C library defines this for functions which it implements |
4599 | to always fail with ENOSYS. Some functions are actually named | |
4600 | something starting with __ and the normal name is an alias. */ | |
4601 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4602 | choke me | |
4603 | #else | |
b7026657 AC |
4604 | char (*f) () = $ac_func; |
4605 | #endif | |
4606 | #ifdef __cplusplus | |
4607 | } | |
c906108c SS |
4608 | #endif |
4609 | ||
b7026657 AC |
4610 | int |
4611 | main () | |
4612 | { | |
4613 | return f != $ac_func; | |
4614 | ; | |
4615 | return 0; | |
4616 | } | |
4617 | _ACEOF | |
4618 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4620 | (eval $ac_link) 2>conftest.er1 | |
4621 | ac_status=$? | |
4622 | grep -v '^ *+' conftest.er1 >conftest.err | |
4623 | rm -f conftest.er1 | |
4624 | cat conftest.err >&5 | |
4625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4626 | (exit $ac_status); } && | |
4627 | { ac_try='test -z "$ac_c_werror_flag" | |
4628 | || test ! -s conftest.err' | |
4629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4630 | (eval $ac_try) 2>&5 | |
4631 | ac_status=$? | |
4632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4633 | (exit $ac_status); }; } && | |
4634 | { ac_try='test -s conftest$ac_exeext' | |
4635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4636 | (eval $ac_try) 2>&5 | |
4637 | ac_status=$? | |
4638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4639 | (exit $ac_status); }; }; then | |
4640 | eval "$as_ac_var=yes" | |
4641 | else | |
4642 | echo "$as_me: failed program was:" >&5 | |
4643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4644 | ||
4645 | eval "$as_ac_var=no" | |
4646 | fi | |
4647 | rm -f conftest.err conftest.$ac_objext \ | |
4648 | conftest$ac_exeext conftest.$ac_ext | |
4649 | fi | |
4650 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4651 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4652 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4653 | cat >>confdefs.h <<_ACEOF | |
4654 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4655 | _ACEOF | |
c906108c | 4656 | |
c906108c SS |
4657 | fi |
4658 | done | |
4659 | ||
4660 | fi | |
4661 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
b7026657 | 4662 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4663 | #define HAVE_STPCPY 1 |
b7026657 | 4664 | _ACEOF |
c906108c SS |
4665 | |
4666 | fi | |
4667 | ||
4668 | if test $ac_cv_header_locale_h = yes; then | |
b7026657 AC |
4669 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
4670 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
4671 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
4672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4673 | else | |
4674 | cat >conftest.$ac_ext <<_ACEOF | |
4675 | /* confdefs.h. */ | |
4676 | _ACEOF | |
4677 | cat confdefs.h >>conftest.$ac_ext | |
4678 | cat >>conftest.$ac_ext <<_ACEOF | |
4679 | /* end confdefs.h. */ | |
c906108c | 4680 | #include <locale.h> |
b7026657 AC |
4681 | int |
4682 | main () | |
4683 | { | |
c906108c | 4684 | return LC_MESSAGES |
b7026657 AC |
4685 | ; |
4686 | return 0; | |
4687 | } | |
4688 | _ACEOF | |
4689 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4691 | (eval $ac_link) 2>conftest.er1 | |
4692 | ac_status=$? | |
4693 | grep -v '^ *+' conftest.er1 >conftest.err | |
4694 | rm -f conftest.er1 | |
4695 | cat conftest.err >&5 | |
4696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4697 | (exit $ac_status); } && | |
4698 | { ac_try='test -z "$ac_c_werror_flag" | |
4699 | || test ! -s conftest.err' | |
4700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4701 | (eval $ac_try) 2>&5 | |
4702 | ac_status=$? | |
4703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4704 | (exit $ac_status); }; } && | |
4705 | { ac_try='test -s conftest$ac_exeext' | |
4706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4707 | (eval $ac_try) 2>&5 | |
4708 | ac_status=$? | |
4709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4710 | (exit $ac_status); }; }; then | |
c906108c SS |
4711 | am_cv_val_LC_MESSAGES=yes |
4712 | else | |
b7026657 AC |
4713 | echo "$as_me: failed program was:" >&5 |
4714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4715 | ||
4716 | am_cv_val_LC_MESSAGES=no | |
c906108c | 4717 | fi |
b7026657 AC |
4718 | rm -f conftest.err conftest.$ac_objext \ |
4719 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 4720 | fi |
b7026657 AC |
4721 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
4722 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
c906108c | 4723 | if test $am_cv_val_LC_MESSAGES = yes; then |
b7026657 | 4724 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4725 | #define HAVE_LC_MESSAGES 1 |
b7026657 | 4726 | _ACEOF |
c906108c SS |
4727 | |
4728 | fi | |
4729 | fi | |
b7026657 AC |
4730 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
4731 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
c906108c SS |
4732 | # Check whether --enable-nls or --disable-nls was given. |
4733 | if test "${enable_nls+set}" = set; then | |
4734 | enableval="$enable_nls" | |
4735 | USE_NLS=$enableval | |
4736 | else | |
4737 | USE_NLS=yes | |
b7026657 AC |
4738 | fi; |
4739 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
4740 | echo "${ECHO_T}$USE_NLS" >&6 | |
c906108c | 4741 | |
c906108c SS |
4742 | |
4743 | USE_INCLUDED_LIBINTL=no | |
4744 | ||
4745 | if test "$USE_NLS" = "yes"; then | |
b7026657 | 4746 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4747 | #define ENABLE_NLS 1 |
b7026657 | 4748 | _ACEOF |
c906108c | 4749 | |
b7026657 AC |
4750 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
4751 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
4752 | ||
4753 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
c906108c SS |
4754 | if test "${with_included_gettext+set}" = set; then |
4755 | withval="$with_included_gettext" | |
4756 | nls_cv_force_use_gnu_gettext=$withval | |
4757 | else | |
4758 | nls_cv_force_use_gnu_gettext=no | |
b7026657 AC |
4759 | fi; |
4760 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
4761 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
c906108c SS |
4762 | |
4763 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
4764 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
4765 | nls_cv_header_intl= | |
4766 | nls_cv_header_libgt= | |
4767 | CATOBJEXT=NONE | |
4768 | ||
b7026657 AC |
4769 | if test "${ac_cv_header_libintl_h+set}" = set; then |
4770 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4771 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4772 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4774 | fi | |
4775 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4776 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4777 | else | |
4778 | # Is the header compilable? | |
4779 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
4780 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
4781 | cat >conftest.$ac_ext <<_ACEOF | |
4782 | /* confdefs.h. */ | |
4783 | _ACEOF | |
4784 | cat confdefs.h >>conftest.$ac_ext | |
4785 | cat >>conftest.$ac_ext <<_ACEOF | |
4786 | /* end confdefs.h. */ | |
4787 | $ac_includes_default | |
c906108c | 4788 | #include <libintl.h> |
b7026657 AC |
4789 | _ACEOF |
4790 | rm -f conftest.$ac_objext | |
4791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4792 | (eval $ac_compile) 2>conftest.er1 | |
4793 | ac_status=$? | |
4794 | grep -v '^ *+' conftest.er1 >conftest.err | |
4795 | rm -f conftest.er1 | |
4796 | cat conftest.err >&5 | |
4797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4798 | (exit $ac_status); } && | |
4799 | { ac_try='test -z "$ac_c_werror_flag" | |
4800 | || test ! -s conftest.err' | |
4801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4802 | (eval $ac_try) 2>&5 | |
4803 | ac_status=$? | |
4804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4805 | (exit $ac_status); }; } && | |
4806 | { ac_try='test -s conftest.$ac_objext' | |
4807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4808 | (eval $ac_try) 2>&5 | |
4809 | ac_status=$? | |
4810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4811 | (exit $ac_status); }; }; then | |
4812 | ac_header_compiler=yes | |
4813 | else | |
4814 | echo "$as_me: failed program was:" >&5 | |
4815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4816 | ||
4817 | ac_header_compiler=no | |
4818 | fi | |
4819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4820 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4821 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4822 | ||
4823 | # Is the header present? | |
4824 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
4825 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
4826 | cat >conftest.$ac_ext <<_ACEOF | |
4827 | /* confdefs.h. */ | |
4828 | _ACEOF | |
4829 | cat confdefs.h >>conftest.$ac_ext | |
4830 | cat >>conftest.$ac_ext <<_ACEOF | |
4831 | /* end confdefs.h. */ | |
4832 | #include <libintl.h> | |
4833 | _ACEOF | |
4834 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4835 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4836 | ac_status=$? | |
4837 | grep -v '^ *+' conftest.er1 >conftest.err | |
4838 | rm -f conftest.er1 | |
4839 | cat conftest.err >&5 | |
4840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4841 | (exit $ac_status); } >/dev/null; then | |
4842 | if test -s conftest.err; then | |
4843 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4844 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4845 | else | |
4846 | ac_cpp_err= | |
4847 | fi | |
4848 | else | |
4849 | ac_cpp_err=yes | |
c906108c | 4850 | fi |
b7026657 AC |
4851 | if test -z "$ac_cpp_err"; then |
4852 | ac_header_preproc=yes | |
4853 | else | |
4854 | echo "$as_me: failed program was:" >&5 | |
4855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4856 | ||
4857 | ac_header_preproc=no | |
4858 | fi | |
4859 | rm -f conftest.err conftest.$ac_ext | |
4860 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4861 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4862 | ||
4863 | # So? What about this header? | |
4864 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4865 | yes:no: ) | |
4866 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4867 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4868 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
4869 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
4870 | ac_header_preproc=yes | |
4871 | ;; | |
4872 | no:yes:* ) | |
4873 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
4874 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
4875 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
4876 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
4877 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
4878 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
4879 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4880 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4881 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
4882 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
4883 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
4884 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
4885 | ( | |
4886 | cat <<\_ASBOX | |
4887 | ## ------------------------------------------ ## | |
4888 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4889 | ## ------------------------------------------ ## | |
4890 | _ASBOX | |
4891 | ) | | |
4892 | sed "s/^/$as_me: WARNING: /" >&2 | |
4893 | ;; | |
4894 | esac | |
4895 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4896 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4897 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4899 | else | |
4900 | ac_cv_header_libintl_h=$ac_header_preproc | |
4901 | fi | |
4902 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4903 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4904 | ||
c906108c | 4905 | fi |
b7026657 AC |
4906 | if test $ac_cv_header_libintl_h = yes; then |
4907 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
4908 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
4909 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
4910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4911 | else |
b7026657 AC |
4912 | cat >conftest.$ac_ext <<_ACEOF |
4913 | /* confdefs.h. */ | |
4914 | _ACEOF | |
4915 | cat confdefs.h >>conftest.$ac_ext | |
4916 | cat >>conftest.$ac_ext <<_ACEOF | |
4917 | /* end confdefs.h. */ | |
c906108c | 4918 | #include <libintl.h> |
b7026657 AC |
4919 | int |
4920 | main () | |
4921 | { | |
c906108c | 4922 | return (int) gettext ("") |
b7026657 AC |
4923 | ; |
4924 | return 0; | |
4925 | } | |
4926 | _ACEOF | |
4927 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4929 | (eval $ac_link) 2>conftest.er1 | |
4930 | ac_status=$? | |
4931 | grep -v '^ *+' conftest.er1 >conftest.err | |
4932 | rm -f conftest.er1 | |
4933 | cat conftest.err >&5 | |
4934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4935 | (exit $ac_status); } && | |
4936 | { ac_try='test -z "$ac_c_werror_flag" | |
4937 | || test ! -s conftest.err' | |
4938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4939 | (eval $ac_try) 2>&5 | |
4940 | ac_status=$? | |
4941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4942 | (exit $ac_status); }; } && | |
4943 | { ac_try='test -s conftest$ac_exeext' | |
4944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4945 | (eval $ac_try) 2>&5 | |
4946 | ac_status=$? | |
4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4948 | (exit $ac_status); }; }; then | |
c906108c SS |
4949 | gt_cv_func_gettext_libc=yes |
4950 | else | |
b7026657 AC |
4951 | echo "$as_me: failed program was:" >&5 |
4952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4953 | ||
4954 | gt_cv_func_gettext_libc=no | |
c906108c | 4955 | fi |
b7026657 AC |
4956 | rm -f conftest.err conftest.$ac_objext \ |
4957 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 4958 | fi |
b7026657 AC |
4959 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
4960 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
c906108c SS |
4961 | |
4962 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
b7026657 AC |
4963 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
4964 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
4965 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
4966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4967 | else |
b7026657 | 4968 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 4969 | LIBS="-lintl $LIBS" |
b7026657 AC |
4970 | cat >conftest.$ac_ext <<_ACEOF |
4971 | /* confdefs.h. */ | |
4972 | _ACEOF | |
4973 | cat confdefs.h >>conftest.$ac_ext | |
4974 | cat >>conftest.$ac_ext <<_ACEOF | |
4975 | /* end confdefs.h. */ | |
4976 | ||
c906108c | 4977 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
4978 | #ifdef __cplusplus |
4979 | extern "C" | |
4980 | #endif | |
c906108c | 4981 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
4982 | builtin and then its argument prototype would still apply. */ |
4983 | char bindtextdomain (); | |
4984 | int | |
4985 | main () | |
4986 | { | |
4987 | bindtextdomain (); | |
4988 | ; | |
4989 | return 0; | |
4990 | } | |
4991 | _ACEOF | |
4992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4994 | (eval $ac_link) 2>conftest.er1 | |
4995 | ac_status=$? | |
4996 | grep -v '^ *+' conftest.er1 >conftest.err | |
4997 | rm -f conftest.er1 | |
4998 | cat conftest.err >&5 | |
4999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5000 | (exit $ac_status); } && | |
5001 | { ac_try='test -z "$ac_c_werror_flag" | |
5002 | || test ! -s conftest.err' | |
5003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5004 | (eval $ac_try) 2>&5 | |
5005 | ac_status=$? | |
5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5007 | (exit $ac_status); }; } && | |
5008 | { ac_try='test -s conftest$ac_exeext' | |
5009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5010 | (eval $ac_try) 2>&5 | |
5011 | ac_status=$? | |
5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5013 | (exit $ac_status); }; }; then | |
5014 | ac_cv_lib_intl_bindtextdomain=yes | |
5015 | else | |
5016 | echo "$as_me: failed program was:" >&5 | |
5017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5018 | ||
5019 | ac_cv_lib_intl_bindtextdomain=no | |
5020 | fi | |
5021 | rm -f conftest.err conftest.$ac_objext \ | |
5022 | conftest$ac_exeext conftest.$ac_ext | |
5023 | LIBS=$ac_check_lib_save_LIBS | |
5024 | fi | |
5025 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
5026 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
5027 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
5028 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
5029 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
5030 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
5031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5032 | else | |
5033 | cat >conftest.$ac_ext <<_ACEOF | |
5034 | /* confdefs.h. */ | |
5035 | _ACEOF | |
5036 | cat confdefs.h >>conftest.$ac_ext | |
5037 | cat >>conftest.$ac_ext <<_ACEOF | |
5038 | /* end confdefs.h. */ | |
c906108c | 5039 | |
b7026657 AC |
5040 | int |
5041 | main () | |
5042 | { | |
c906108c | 5043 | return (int) gettext ("") |
b7026657 AC |
5044 | ; |
5045 | return 0; | |
5046 | } | |
5047 | _ACEOF | |
5048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5050 | (eval $ac_link) 2>conftest.er1 | |
5051 | ac_status=$? | |
5052 | grep -v '^ *+' conftest.er1 >conftest.err | |
5053 | rm -f conftest.er1 | |
5054 | cat conftest.err >&5 | |
5055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5056 | (exit $ac_status); } && | |
5057 | { ac_try='test -z "$ac_c_werror_flag" | |
5058 | || test ! -s conftest.err' | |
5059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5060 | (eval $ac_try) 2>&5 | |
5061 | ac_status=$? | |
5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5063 | (exit $ac_status); }; } && | |
5064 | { ac_try='test -s conftest$ac_exeext' | |
5065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5066 | (eval $ac_try) 2>&5 | |
5067 | ac_status=$? | |
5068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5069 | (exit $ac_status); }; }; then | |
c906108c SS |
5070 | gt_cv_func_gettext_libintl=yes |
5071 | else | |
b7026657 AC |
5072 | echo "$as_me: failed program was:" >&5 |
5073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5074 | ||
5075 | gt_cv_func_gettext_libintl=no | |
c906108c | 5076 | fi |
b7026657 AC |
5077 | rm -f conftest.err conftest.$ac_objext \ |
5078 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 5079 | fi |
b7026657 AC |
5080 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
5081 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
c906108c SS |
5082 | fi |
5083 | ||
5084 | fi | |
5085 | ||
5086 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
5087 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
b7026657 | 5088 | cat >>confdefs.h <<\_ACEOF |
c906108c | 5089 | #define HAVE_GETTEXT 1 |
b7026657 | 5090 | _ACEOF |
c906108c SS |
5091 | |
5092 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5093 | set dummy msgfmt; ac_word=$2 | |
b7026657 AC |
5094 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5095 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5096 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5098 | else |
5099 | case "$MSGFMT" in | |
5100 | /*) | |
5101 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5102 | ;; | |
5103 | *) | |
5104 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5105 | for ac_dir in $PATH; do | |
5106 | test -z "$ac_dir" && ac_dir=. | |
5107 | if test -f $ac_dir/$ac_word; then | |
5108 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5109 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5110 | break | |
5111 | fi | |
5112 | fi | |
5113 | done | |
5114 | IFS="$ac_save_ifs" | |
5115 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
5116 | ;; | |
5117 | esac | |
5118 | fi | |
5119 | MSGFMT="$ac_cv_path_MSGFMT" | |
5120 | if test -n "$MSGFMT"; then | |
b7026657 AC |
5121 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5122 | echo "${ECHO_T}$MSGFMT" >&6 | |
c906108c | 5123 | else |
b7026657 AC |
5124 | echo "$as_me:$LINENO: result: no" >&5 |
5125 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5126 | fi |
5127 | if test "$MSGFMT" != "no"; then | |
b7026657 AC |
5128 | |
5129 | for ac_func in dcgettext | |
c906108c | 5130 | do |
b7026657 AC |
5131 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5132 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5133 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5134 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5136 | else | |
5137 | cat >conftest.$ac_ext <<_ACEOF | |
5138 | /* confdefs.h. */ | |
5139 | _ACEOF | |
5140 | cat confdefs.h >>conftest.$ac_ext | |
5141 | cat >>conftest.$ac_ext <<_ACEOF | |
5142 | /* end confdefs.h. */ | |
5143 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5144 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5145 | #define $ac_func innocuous_$ac_func | |
5146 | ||
c906108c | 5147 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
5148 | which can conflict with char $ac_func (); below. |
5149 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5150 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 5151 | |
b7026657 AC |
5152 | #ifdef __STDC__ |
5153 | # include <limits.h> | |
5154 | #else | |
5155 | # include <assert.h> | |
5156 | #endif | |
c906108c | 5157 | |
b7026657 AC |
5158 | #undef $ac_func |
5159 | ||
5160 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5161 | #ifdef __cplusplus | |
5162 | extern "C" | |
5163 | { | |
5164 | #endif | |
5165 | /* We use char because int might match the return type of a gcc2 | |
5166 | builtin and then its argument prototype would still apply. */ | |
5167 | char $ac_func (); | |
c906108c SS |
5168 | /* The GNU C library defines this for functions which it implements |
5169 | to always fail with ENOSYS. Some functions are actually named | |
5170 | something starting with __ and the normal name is an alias. */ | |
5171 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5172 | choke me | |
5173 | #else | |
b7026657 AC |
5174 | char (*f) () = $ac_func; |
5175 | #endif | |
5176 | #ifdef __cplusplus | |
5177 | } | |
c906108c SS |
5178 | #endif |
5179 | ||
b7026657 AC |
5180 | int |
5181 | main () | |
5182 | { | |
5183 | return f != $ac_func; | |
5184 | ; | |
5185 | return 0; | |
5186 | } | |
5187 | _ACEOF | |
5188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5190 | (eval $ac_link) 2>conftest.er1 | |
5191 | ac_status=$? | |
5192 | grep -v '^ *+' conftest.er1 >conftest.err | |
5193 | rm -f conftest.er1 | |
5194 | cat conftest.err >&5 | |
5195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5196 | (exit $ac_status); } && | |
5197 | { ac_try='test -z "$ac_c_werror_flag" | |
5198 | || test ! -s conftest.err' | |
5199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5200 | (eval $ac_try) 2>&5 | |
5201 | ac_status=$? | |
5202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5203 | (exit $ac_status); }; } && | |
5204 | { ac_try='test -s conftest$ac_exeext' | |
5205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5206 | (eval $ac_try) 2>&5 | |
5207 | ac_status=$? | |
5208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5209 | (exit $ac_status); }; }; then | |
5210 | eval "$as_ac_var=yes" | |
5211 | else | |
5212 | echo "$as_me: failed program was:" >&5 | |
5213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5214 | ||
5215 | eval "$as_ac_var=no" | |
5216 | fi | |
5217 | rm -f conftest.err conftest.$ac_objext \ | |
5218 | conftest$ac_exeext conftest.$ac_ext | |
5219 | fi | |
5220 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5221 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5222 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5223 | cat >>confdefs.h <<_ACEOF | |
5224 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5225 | _ACEOF | |
c906108c | 5226 | |
c906108c SS |
5227 | fi |
5228 | done | |
5229 | ||
5230 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5231 | set dummy gmsgfmt; ac_word=$2 | |
b7026657 AC |
5232 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5234 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 5236 | else |
b7026657 AC |
5237 | case $GMSGFMT in |
5238 | [\\/]* | ?:[\\/]*) | |
c906108c SS |
5239 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5240 | ;; | |
c906108c | 5241 | *) |
b7026657 AC |
5242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5243 | for as_dir in $PATH | |
5244 | do | |
5245 | IFS=$as_save_IFS | |
5246 | test -z "$as_dir" && as_dir=. | |
5247 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5248 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5249 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5251 | break 2 | |
5252 | fi | |
5253 | done | |
5254 | done | |
5255 | ||
c906108c SS |
5256 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5257 | ;; | |
5258 | esac | |
5259 | fi | |
b7026657 AC |
5260 | GMSGFMT=$ac_cv_path_GMSGFMT |
5261 | ||
c906108c | 5262 | if test -n "$GMSGFMT"; then |
b7026657 AC |
5263 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5264 | echo "${ECHO_T}$GMSGFMT" >&6 | |
c906108c | 5265 | else |
b7026657 AC |
5266 | echo "$as_me:$LINENO: result: no" >&5 |
5267 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5268 | fi |
5269 | ||
5270 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5271 | set dummy xgettext; ac_word=$2 | |
b7026657 AC |
5272 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5274 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5276 | else |
5277 | case "$XGETTEXT" in | |
5278 | /*) | |
5279 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5280 | ;; | |
5281 | *) | |
5282 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5283 | for ac_dir in $PATH; do | |
5284 | test -z "$ac_dir" && ac_dir=. | |
5285 | if test -f $ac_dir/$ac_word; then | |
5286 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5287 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5288 | break | |
5289 | fi | |
5290 | fi | |
5291 | done | |
5292 | IFS="$ac_save_ifs" | |
5293 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5294 | ;; | |
5295 | esac | |
5296 | fi | |
5297 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5298 | if test -n "$XGETTEXT"; then | |
b7026657 AC |
5299 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5300 | echo "${ECHO_T}$XGETTEXT" >&6 | |
c906108c | 5301 | else |
b7026657 AC |
5302 | echo "$as_me:$LINENO: result: no" >&5 |
5303 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5304 | fi |
5305 | ||
b7026657 AC |
5306 | cat >conftest.$ac_ext <<_ACEOF |
5307 | /* confdefs.h. */ | |
5308 | _ACEOF | |
5309 | cat confdefs.h >>conftest.$ac_ext | |
5310 | cat >>conftest.$ac_ext <<_ACEOF | |
5311 | /* end confdefs.h. */ | |
c906108c | 5312 | |
b7026657 AC |
5313 | int |
5314 | main () | |
5315 | { | |
c906108c SS |
5316 | extern int _nl_msg_cat_cntr; |
5317 | return _nl_msg_cat_cntr | |
b7026657 AC |
5318 | ; |
5319 | return 0; | |
5320 | } | |
5321 | _ACEOF | |
5322 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5324 | (eval $ac_link) 2>conftest.er1 | |
5325 | ac_status=$? | |
5326 | grep -v '^ *+' conftest.er1 >conftest.err | |
5327 | rm -f conftest.er1 | |
5328 | cat conftest.err >&5 | |
5329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5330 | (exit $ac_status); } && | |
5331 | { ac_try='test -z "$ac_c_werror_flag" | |
5332 | || test ! -s conftest.err' | |
5333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5334 | (eval $ac_try) 2>&5 | |
5335 | ac_status=$? | |
5336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5337 | (exit $ac_status); }; } && | |
5338 | { ac_try='test -s conftest$ac_exeext' | |
5339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5340 | (eval $ac_try) 2>&5 | |
5341 | ac_status=$? | |
5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5343 | (exit $ac_status); }; }; then | |
c906108c SS |
5344 | CATOBJEXT=.gmo |
5345 | DATADIRNAME=share | |
5346 | else | |
b7026657 AC |
5347 | echo "$as_me: failed program was:" >&5 |
5348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5349 | ||
5350 | CATOBJEXT=.mo | |
c906108c SS |
5351 | DATADIRNAME=lib |
5352 | fi | |
b7026657 AC |
5353 | rm -f conftest.err conftest.$ac_objext \ |
5354 | conftest$ac_exeext conftest.$ac_ext | |
c906108c SS |
5355 | INSTOBJEXT=.mo |
5356 | fi | |
5357 | fi | |
b7026657 | 5358 | |
c906108c SS |
5359 | fi |
5360 | ||
5361 | ||
b7026657 AC |
5362 | |
5363 | ||
c906108c SS |
5364 | if test "$CATOBJEXT" = "NONE"; then |
5365 | nls_cv_use_gnu_gettext=yes | |
5366 | fi | |
5367 | fi | |
5368 | ||
5369 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
5370 | INTLOBJS="\$(GETTOBJS)" | |
5371 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5372 | set dummy msgfmt; ac_word=$2 | |
b7026657 AC |
5373 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5374 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5375 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5377 | else |
5378 | case "$MSGFMT" in | |
5379 | /*) | |
5380 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5381 | ;; | |
5382 | *) | |
5383 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5384 | for ac_dir in $PATH; do | |
5385 | test -z "$ac_dir" && ac_dir=. | |
5386 | if test -f $ac_dir/$ac_word; then | |
5387 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5388 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5389 | break | |
5390 | fi | |
5391 | fi | |
5392 | done | |
5393 | IFS="$ac_save_ifs" | |
5394 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
5395 | ;; | |
5396 | esac | |
5397 | fi | |
5398 | MSGFMT="$ac_cv_path_MSGFMT" | |
5399 | if test -n "$MSGFMT"; then | |
b7026657 AC |
5400 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5401 | echo "${ECHO_T}$MSGFMT" >&6 | |
c906108c | 5402 | else |
b7026657 AC |
5403 | echo "$as_me:$LINENO: result: no" >&5 |
5404 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5405 | fi |
5406 | ||
5407 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5408 | set dummy gmsgfmt; ac_word=$2 | |
b7026657 AC |
5409 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5411 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 5413 | else |
b7026657 AC |
5414 | case $GMSGFMT in |
5415 | [\\/]* | ?:[\\/]*) | |
c906108c SS |
5416 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5417 | ;; | |
c906108c | 5418 | *) |
b7026657 AC |
5419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5420 | for as_dir in $PATH | |
5421 | do | |
5422 | IFS=$as_save_IFS | |
5423 | test -z "$as_dir" && as_dir=. | |
5424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5425 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5426 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5427 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5428 | break 2 | |
5429 | fi | |
5430 | done | |
5431 | done | |
5432 | ||
c906108c SS |
5433 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5434 | ;; | |
5435 | esac | |
5436 | fi | |
b7026657 AC |
5437 | GMSGFMT=$ac_cv_path_GMSGFMT |
5438 | ||
c906108c | 5439 | if test -n "$GMSGFMT"; then |
b7026657 AC |
5440 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5441 | echo "${ECHO_T}$GMSGFMT" >&6 | |
c906108c | 5442 | else |
b7026657 AC |
5443 | echo "$as_me:$LINENO: result: no" >&5 |
5444 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5445 | fi |
5446 | ||
5447 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5448 | set dummy xgettext; ac_word=$2 | |
b7026657 AC |
5449 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5451 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5453 | else |
5454 | case "$XGETTEXT" in | |
5455 | /*) | |
5456 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5457 | ;; | |
5458 | *) | |
5459 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5460 | for ac_dir in $PATH; do | |
5461 | test -z "$ac_dir" && ac_dir=. | |
5462 | if test -f $ac_dir/$ac_word; then | |
5463 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5464 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5465 | break | |
5466 | fi | |
5467 | fi | |
5468 | done | |
5469 | IFS="$ac_save_ifs" | |
5470 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5471 | ;; | |
5472 | esac | |
5473 | fi | |
5474 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5475 | if test -n "$XGETTEXT"; then | |
b7026657 AC |
5476 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5477 | echo "${ECHO_T}$XGETTEXT" >&6 | |
c906108c | 5478 | else |
b7026657 AC |
5479 | echo "$as_me:$LINENO: result: no" >&5 |
5480 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5481 | fi |
5482 | ||
b7026657 | 5483 | |
c906108c SS |
5484 | USE_INCLUDED_LIBINTL=yes |
5485 | CATOBJEXT=.gmo | |
5486 | INSTOBJEXT=.mo | |
5487 | DATADIRNAME=share | |
5488 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
5489 | INTLLIBS=$INTLDEPS | |
5490 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
5491 | nls_cv_header_intl=libintl.h | |
5492 | nls_cv_header_libgt=libgettext.h | |
5493 | fi | |
5494 | ||
5495 | if test "$XGETTEXT" != ":"; then | |
5496 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
5497 | : ; | |
5498 | else | |
b7026657 AC |
5499 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
5500 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
c906108c SS |
5501 | XGETTEXT=":" |
5502 | fi | |
5503 | fi | |
5504 | ||
5505 | # We need to process the po/ directory. | |
5506 | POSUB=po | |
5507 | else | |
5508 | DATADIRNAME=share | |
5509 | nls_cv_header_intl=libintl.h | |
5510 | nls_cv_header_libgt=libgettext.h | |
5511 | fi | |
5512 | ||
5513 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
5514 | # because some of the sources are only built for this goal. | |
5515 | if test "$PACKAGE" = gettext; then | |
5516 | USE_NLS=yes | |
5517 | USE_INCLUDED_LIBINTL=yes | |
5518 | fi | |
5519 | ||
5520 | for lang in $ALL_LINGUAS; do | |
5521 | GMOFILES="$GMOFILES $lang.gmo" | |
5522 | POFILES="$POFILES $lang.po" | |
5523 | done | |
5524 | ||
b7026657 AC |
5525 | |
5526 | ||
5527 | ||
5528 | ||
5529 | ||
5530 | ||
5531 | ||
5532 | ||
5533 | ||
5534 | ||
5535 | ||
5536 | ||
c906108c SS |
5537 | |
5538 | if test "x$CATOBJEXT" != "x"; then | |
5539 | if test "x$ALL_LINGUAS" = "x"; then | |
5540 | LINGUAS= | |
5541 | else | |
b7026657 AC |
5542 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
5543 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
c906108c SS |
5544 | NEW_LINGUAS= |
5545 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
5546 | case "$ALL_LINGUAS" in | |
5547 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
5548 | esac | |
5549 | done | |
5550 | LINGUAS=$NEW_LINGUAS | |
b7026657 AC |
5551 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
5552 | echo "${ECHO_T}$LINGUAS" >&6 | |
c906108c SS |
5553 | fi |
5554 | ||
5555 | if test -n "$LINGUAS"; then | |
5556 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
5557 | fi | |
5558 | fi | |
5559 | ||
5560 | if test $ac_cv_header_locale_h = yes; then | |
5561 | INCLUDE_LOCALE_H="#include <locale.h>" | |
5562 | else | |
5563 | INCLUDE_LOCALE_H="\ | |
5564 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
5565 | fi | |
b7026657 | 5566 | |
c906108c SS |
5567 | |
5568 | if test -f $srcdir/po2tbl.sed.in; then | |
5569 | if test "$CATOBJEXT" = ".cat"; then | |
b7026657 AC |
5570 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
5571 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5572 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5573 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5575 | fi | |
5576 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5577 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5578 | else | |
5579 | # Is the header compilable? | |
5580 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
5581 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
5582 | cat >conftest.$ac_ext <<_ACEOF | |
5583 | /* confdefs.h. */ | |
5584 | _ACEOF | |
5585 | cat confdefs.h >>conftest.$ac_ext | |
5586 | cat >>conftest.$ac_ext <<_ACEOF | |
5587 | /* end confdefs.h. */ | |
5588 | $ac_includes_default | |
c906108c | 5589 | #include <linux/version.h> |
b7026657 AC |
5590 | _ACEOF |
5591 | rm -f conftest.$ac_objext | |
5592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5593 | (eval $ac_compile) 2>conftest.er1 | |
5594 | ac_status=$? | |
5595 | grep -v '^ *+' conftest.er1 >conftest.err | |
5596 | rm -f conftest.er1 | |
5597 | cat conftest.err >&5 | |
5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5599 | (exit $ac_status); } && | |
5600 | { ac_try='test -z "$ac_c_werror_flag" | |
5601 | || test ! -s conftest.err' | |
5602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5603 | (eval $ac_try) 2>&5 | |
5604 | ac_status=$? | |
5605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5606 | (exit $ac_status); }; } && | |
5607 | { ac_try='test -s conftest.$ac_objext' | |
5608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5609 | (eval $ac_try) 2>&5 | |
5610 | ac_status=$? | |
5611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5612 | (exit $ac_status); }; }; then | |
5613 | ac_header_compiler=yes | |
5614 | else | |
5615 | echo "$as_me: failed program was:" >&5 | |
5616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5617 | ||
5618 | ac_header_compiler=no | |
5619 | fi | |
5620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5621 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5622 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5623 | ||
5624 | # Is the header present? | |
5625 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
5626 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
5627 | cat >conftest.$ac_ext <<_ACEOF | |
5628 | /* confdefs.h. */ | |
5629 | _ACEOF | |
5630 | cat confdefs.h >>conftest.$ac_ext | |
5631 | cat >>conftest.$ac_ext <<_ACEOF | |
5632 | /* end confdefs.h. */ | |
5633 | #include <linux/version.h> | |
5634 | _ACEOF | |
5635 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5636 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5637 | ac_status=$? | |
5638 | grep -v '^ *+' conftest.er1 >conftest.err | |
5639 | rm -f conftest.er1 | |
5640 | cat conftest.err >&5 | |
5641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5642 | (exit $ac_status); } >/dev/null; then | |
5643 | if test -s conftest.err; then | |
5644 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5645 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5646 | else | |
5647 | ac_cpp_err= | |
5648 | fi | |
5649 | else | |
5650 | ac_cpp_err=yes | |
c906108c | 5651 | fi |
b7026657 AC |
5652 | if test -z "$ac_cpp_err"; then |
5653 | ac_header_preproc=yes | |
5654 | else | |
5655 | echo "$as_me: failed program was:" >&5 | |
5656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5657 | ||
5658 | ac_header_preproc=no | |
5659 | fi | |
5660 | rm -f conftest.err conftest.$ac_ext | |
5661 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5662 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5663 | ||
5664 | # So? What about this header? | |
5665 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5666 | yes:no: ) | |
5667 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5668 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5669 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
5670 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
5671 | ac_header_preproc=yes | |
5672 | ;; | |
5673 | no:yes:* ) | |
5674 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
5675 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
5676 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
5677 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
5678 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
5679 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
5680 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5681 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5682 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
5683 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
5684 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
5685 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
5686 | ( | |
5687 | cat <<\_ASBOX | |
5688 | ## ------------------------------------------ ## | |
5689 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5690 | ## ------------------------------------------ ## | |
5691 | _ASBOX | |
5692 | ) | | |
5693 | sed "s/^/$as_me: WARNING: /" >&2 | |
5694 | ;; | |
5695 | esac | |
5696 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5697 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5698 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5700 | else | |
5701 | ac_cv_header_linux_version_h=$ac_header_preproc | |
5702 | fi | |
5703 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5704 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5705 | ||
c906108c | 5706 | fi |
b7026657 | 5707 | if test $ac_cv_header_linux_version_h = yes; then |
c906108c SS |
5708 | msgformat=linux |
5709 | else | |
b7026657 | 5710 | msgformat=xopen |
c906108c SS |
5711 | fi |
5712 | ||
5713 | ||
b7026657 | 5714 | |
c906108c SS |
5715 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
5716 | fi | |
5717 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
5718 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
5719 | fi | |
5720 | ||
5721 | if test "$PACKAGE" = "gettext"; then | |
5722 | GT_NO="#NO#" | |
5723 | GT_YES= | |
5724 | else | |
5725 | GT_NO= | |
5726 | GT_YES="#YES#" | |
5727 | fi | |
b7026657 AC |
5728 | |
5729 | ||
c906108c SS |
5730 | |
5731 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
b7026657 | 5732 | |
c906108c SS |
5733 | |
5734 | l= | |
b7026657 | 5735 | |
c906108c SS |
5736 | |
5737 | if test -d $srcdir/po; then | |
5738 | test -d po || mkdir po | |
5739 | if test "x$srcdir" != "x."; then | |
5740 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
5741 | posrcprefix="$srcdir/" | |
5742 | else | |
5743 | posrcprefix="../$srcdir/" | |
5744 | fi | |
5745 | else | |
5746 | posrcprefix="../" | |
5747 | fi | |
5748 | rm -f po/POTFILES | |
5749 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
5750 | < $srcdir/po/POTFILES.in > po/POTFILES | |
5751 | fi | |
b7026657 | 5752 | |
c906108c SS |
5753 | |
5754 | # Check for common headers. | |
5755 | # FIXME: Seems to me this can cause problems for i386-windows hosts. | |
5756 | # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*. | |
b7026657 AC |
5757 | |
5758 | ||
5759 | ||
5760 | ||
5761 | ||
5762 | for ac_header in stdlib.h string.h strings.h unistd.h time.h | |
c906108c | 5763 | do |
b7026657 AC |
5764 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5765 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5766 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5767 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5768 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5770 | fi | |
5771 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5772 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5773 | else | |
5774 | # Is the header compilable? | |
5775 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5776 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5777 | cat >conftest.$ac_ext <<_ACEOF | |
5778 | /* confdefs.h. */ | |
5779 | _ACEOF | |
5780 | cat confdefs.h >>conftest.$ac_ext | |
5781 | cat >>conftest.$ac_ext <<_ACEOF | |
5782 | /* end confdefs.h. */ | |
5783 | $ac_includes_default | |
5784 | #include <$ac_header> | |
5785 | _ACEOF | |
5786 | rm -f conftest.$ac_objext | |
5787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5788 | (eval $ac_compile) 2>conftest.er1 | |
5789 | ac_status=$? | |
5790 | grep -v '^ *+' conftest.er1 >conftest.err | |
5791 | rm -f conftest.er1 | |
5792 | cat conftest.err >&5 | |
5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5794 | (exit $ac_status); } && | |
5795 | { ac_try='test -z "$ac_c_werror_flag" | |
5796 | || test ! -s conftest.err' | |
5797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5798 | (eval $ac_try) 2>&5 | |
5799 | ac_status=$? | |
5800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5801 | (exit $ac_status); }; } && | |
5802 | { ac_try='test -s conftest.$ac_objext' | |
5803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5804 | (eval $ac_try) 2>&5 | |
5805 | ac_status=$? | |
5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5807 | (exit $ac_status); }; }; then | |
5808 | ac_header_compiler=yes | |
5809 | else | |
5810 | echo "$as_me: failed program was:" >&5 | |
5811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5812 | ||
5813 | ac_header_compiler=no | |
5814 | fi | |
5815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5816 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5817 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5818 | ||
5819 | # Is the header present? | |
5820 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5821 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5822 | cat >conftest.$ac_ext <<_ACEOF | |
5823 | /* confdefs.h. */ | |
5824 | _ACEOF | |
5825 | cat confdefs.h >>conftest.$ac_ext | |
5826 | cat >>conftest.$ac_ext <<_ACEOF | |
5827 | /* end confdefs.h. */ | |
5828 | #include <$ac_header> | |
5829 | _ACEOF | |
5830 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5831 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5832 | ac_status=$? | |
5833 | grep -v '^ *+' conftest.er1 >conftest.err | |
5834 | rm -f conftest.er1 | |
5835 | cat conftest.err >&5 | |
5836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5837 | (exit $ac_status); } >/dev/null; then | |
5838 | if test -s conftest.err; then | |
5839 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5840 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5841 | else | |
5842 | ac_cpp_err= | |
5843 | fi | |
5844 | else | |
5845 | ac_cpp_err=yes | |
5846 | fi | |
5847 | if test -z "$ac_cpp_err"; then | |
5848 | ac_header_preproc=yes | |
5849 | else | |
5850 | echo "$as_me: failed program was:" >&5 | |
5851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5852 | ||
5853 | ac_header_preproc=no | |
5854 | fi | |
5855 | rm -f conftest.err conftest.$ac_ext | |
5856 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5857 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5858 | ||
5859 | # So? What about this header? | |
5860 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5861 | yes:no: ) | |
5862 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5863 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5864 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5865 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5866 | ac_header_preproc=yes | |
5867 | ;; | |
5868 | no:yes:* ) | |
5869 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5870 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5871 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5872 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5873 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5874 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5875 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5876 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5878 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5879 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5880 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5881 | ( | |
5882 | cat <<\_ASBOX | |
5883 | ## ------------------------------------------ ## | |
5884 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5885 | ## ------------------------------------------ ## | |
5886 | _ASBOX | |
5887 | ) | | |
5888 | sed "s/^/$as_me: WARNING: /" >&2 | |
5889 | ;; | |
5890 | esac | |
5891 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5892 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5893 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5895 | else | |
5896 | eval "$as_ac_Header=\$ac_header_preproc" | |
c906108c | 5897 | fi |
b7026657 AC |
5898 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5899 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5900 | ||
c906108c | 5901 | fi |
b7026657 AC |
5902 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5903 | cat >>confdefs.h <<_ACEOF | |
5904 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5905 | _ACEOF | |
5906 | ||
c906108c | 5907 | fi |
b7026657 | 5908 | |
c906108c SS |
5909 | done |
5910 | ||
b7026657 AC |
5911 | |
5912 | ||
5913 | for ac_header in sys/time.h sys/resource.h | |
c906108c | 5914 | do |
b7026657 AC |
5915 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5916 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5917 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5918 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5919 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5921 | fi | |
5922 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5923 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5924 | else | |
5925 | # Is the header compilable? | |
5926 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5927 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5928 | cat >conftest.$ac_ext <<_ACEOF | |
5929 | /* confdefs.h. */ | |
5930 | _ACEOF | |
5931 | cat confdefs.h >>conftest.$ac_ext | |
5932 | cat >>conftest.$ac_ext <<_ACEOF | |
5933 | /* end confdefs.h. */ | |
5934 | $ac_includes_default | |
5935 | #include <$ac_header> | |
5936 | _ACEOF | |
5937 | rm -f conftest.$ac_objext | |
5938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5939 | (eval $ac_compile) 2>conftest.er1 | |
5940 | ac_status=$? | |
5941 | grep -v '^ *+' conftest.er1 >conftest.err | |
5942 | rm -f conftest.er1 | |
5943 | cat conftest.err >&5 | |
5944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5945 | (exit $ac_status); } && | |
5946 | { ac_try='test -z "$ac_c_werror_flag" | |
5947 | || test ! -s conftest.err' | |
5948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5949 | (eval $ac_try) 2>&5 | |
5950 | ac_status=$? | |
5951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5952 | (exit $ac_status); }; } && | |
5953 | { ac_try='test -s conftest.$ac_objext' | |
5954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5955 | (eval $ac_try) 2>&5 | |
5956 | ac_status=$? | |
5957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5958 | (exit $ac_status); }; }; then | |
5959 | ac_header_compiler=yes | |
5960 | else | |
5961 | echo "$as_me: failed program was:" >&5 | |
5962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5963 | ||
5964 | ac_header_compiler=no | |
5965 | fi | |
5966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5967 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5968 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5969 | ||
5970 | # Is the header present? | |
5971 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5972 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5973 | cat >conftest.$ac_ext <<_ACEOF | |
5974 | /* confdefs.h. */ | |
5975 | _ACEOF | |
5976 | cat confdefs.h >>conftest.$ac_ext | |
5977 | cat >>conftest.$ac_ext <<_ACEOF | |
5978 | /* end confdefs.h. */ | |
5979 | #include <$ac_header> | |
5980 | _ACEOF | |
5981 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5982 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5983 | ac_status=$? | |
5984 | grep -v '^ *+' conftest.er1 >conftest.err | |
5985 | rm -f conftest.er1 | |
5986 | cat conftest.err >&5 | |
5987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5988 | (exit $ac_status); } >/dev/null; then | |
5989 | if test -s conftest.err; then | |
5990 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5991 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5992 | else | |
5993 | ac_cpp_err= | |
5994 | fi | |
5995 | else | |
5996 | ac_cpp_err=yes | |
c906108c | 5997 | fi |
b7026657 AC |
5998 | if test -z "$ac_cpp_err"; then |
5999 | ac_header_preproc=yes | |
6000 | else | |
6001 | echo "$as_me: failed program was:" >&5 | |
6002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6003 | ||
6004 | ac_header_preproc=no | |
c906108c | 6005 | fi |
b7026657 AC |
6006 | rm -f conftest.err conftest.$ac_ext |
6007 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6008 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6009 | ||
6010 | # So? What about this header? | |
6011 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6012 | yes:no: ) | |
6013 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6014 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6015 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6016 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6017 | ac_header_preproc=yes | |
6018 | ;; | |
6019 | no:yes:* ) | |
6020 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6021 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6022 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6023 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6024 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6025 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6026 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6027 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6028 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6029 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6030 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6031 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6032 | ( | |
6033 | cat <<\_ASBOX | |
6034 | ## ------------------------------------------ ## | |
6035 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6036 | ## ------------------------------------------ ## | |
6037 | _ASBOX | |
6038 | ) | | |
6039 | sed "s/^/$as_me: WARNING: /" >&2 | |
6040 | ;; | |
6041 | esac | |
6042 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6043 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6044 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6046 | else |
b7026657 AC |
6047 | eval "$as_ac_Header=\$ac_header_preproc" |
6048 | fi | |
6049 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6050 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6051 | ||
6052 | fi | |
6053 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6054 | cat >>confdefs.h <<_ACEOF | |
6055 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6056 | _ACEOF | |
6057 | ||
c906108c | 6058 | fi |
b7026657 | 6059 | |
c906108c SS |
6060 | done |
6061 | ||
b7026657 AC |
6062 | |
6063 | ||
6064 | for ac_header in fcntl.h fpu_control.h | |
c906108c | 6065 | do |
b7026657 AC |
6066 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6068 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6072 | fi | |
6073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6074 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6075 | else | |
6076 | # Is the header compilable? | |
6077 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6078 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6079 | cat >conftest.$ac_ext <<_ACEOF | |
6080 | /* confdefs.h. */ | |
6081 | _ACEOF | |
6082 | cat confdefs.h >>conftest.$ac_ext | |
6083 | cat >>conftest.$ac_ext <<_ACEOF | |
6084 | /* end confdefs.h. */ | |
6085 | $ac_includes_default | |
6086 | #include <$ac_header> | |
6087 | _ACEOF | |
6088 | rm -f conftest.$ac_objext | |
6089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6090 | (eval $ac_compile) 2>conftest.er1 | |
6091 | ac_status=$? | |
6092 | grep -v '^ *+' conftest.er1 >conftest.err | |
6093 | rm -f conftest.er1 | |
6094 | cat conftest.err >&5 | |
6095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6096 | (exit $ac_status); } && | |
6097 | { ac_try='test -z "$ac_c_werror_flag" | |
6098 | || test ! -s conftest.err' | |
6099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6100 | (eval $ac_try) 2>&5 | |
6101 | ac_status=$? | |
6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6103 | (exit $ac_status); }; } && | |
6104 | { ac_try='test -s conftest.$ac_objext' | |
6105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6106 | (eval $ac_try) 2>&5 | |
6107 | ac_status=$? | |
6108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6109 | (exit $ac_status); }; }; then | |
6110 | ac_header_compiler=yes | |
6111 | else | |
6112 | echo "$as_me: failed program was:" >&5 | |
6113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6114 | ||
6115 | ac_header_compiler=no | |
6116 | fi | |
6117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6118 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6119 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6120 | ||
6121 | # Is the header present? | |
6122 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6124 | cat >conftest.$ac_ext <<_ACEOF | |
6125 | /* confdefs.h. */ | |
6126 | _ACEOF | |
6127 | cat confdefs.h >>conftest.$ac_ext | |
6128 | cat >>conftest.$ac_ext <<_ACEOF | |
6129 | /* end confdefs.h. */ | |
6130 | #include <$ac_header> | |
6131 | _ACEOF | |
6132 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6133 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6134 | ac_status=$? | |
6135 | grep -v '^ *+' conftest.er1 >conftest.err | |
6136 | rm -f conftest.er1 | |
6137 | cat conftest.err >&5 | |
6138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6139 | (exit $ac_status); } >/dev/null; then | |
6140 | if test -s conftest.err; then | |
6141 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6142 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6143 | else | |
6144 | ac_cpp_err= | |
6145 | fi | |
6146 | else | |
6147 | ac_cpp_err=yes | |
cd0fc7c3 | 6148 | fi |
b7026657 AC |
6149 | if test -z "$ac_cpp_err"; then |
6150 | ac_header_preproc=yes | |
6151 | else | |
6152 | echo "$as_me: failed program was:" >&5 | |
6153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6154 | ||
6155 | ac_header_preproc=no | |
cd0fc7c3 | 6156 | fi |
b7026657 AC |
6157 | rm -f conftest.err conftest.$ac_ext |
6158 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6159 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6160 | ||
6161 | # So? What about this header? | |
6162 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6163 | yes:no: ) | |
6164 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6165 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6167 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6168 | ac_header_preproc=yes | |
6169 | ;; | |
6170 | no:yes:* ) | |
6171 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6172 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6173 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6174 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6175 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6176 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6177 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6178 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6180 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6181 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6182 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6183 | ( | |
6184 | cat <<\_ASBOX | |
6185 | ## ------------------------------------------ ## | |
6186 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6187 | ## ------------------------------------------ ## | |
6188 | _ASBOX | |
6189 | ) | | |
6190 | sed "s/^/$as_me: WARNING: /" >&2 | |
6191 | ;; | |
6192 | esac | |
6193 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6195 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd0fc7c3 | 6197 | else |
b7026657 AC |
6198 | eval "$as_ac_Header=\$ac_header_preproc" |
6199 | fi | |
6200 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6201 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6202 | ||
cd0fc7c3 | 6203 | fi |
b7026657 AC |
6204 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6205 | cat >>confdefs.h <<_ACEOF | |
6206 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6207 | _ACEOF | |
6208 | ||
6209 | fi | |
6210 | ||
cd0fc7c3 SS |
6211 | done |
6212 | ||
b7026657 AC |
6213 | |
6214 | ||
6215 | ||
6216 | for ac_header in dlfcn.h errno.h sys/stat.h | |
cd0fc7c3 | 6217 | do |
b7026657 AC |
6218 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6219 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6220 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6221 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6222 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6224 | fi | |
6225 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6226 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6227 | else | |
6228 | # Is the header compilable? | |
6229 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6230 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6231 | cat >conftest.$ac_ext <<_ACEOF | |
6232 | /* confdefs.h. */ | |
6233 | _ACEOF | |
6234 | cat confdefs.h >>conftest.$ac_ext | |
6235 | cat >>conftest.$ac_ext <<_ACEOF | |
6236 | /* end confdefs.h. */ | |
6237 | $ac_includes_default | |
6238 | #include <$ac_header> | |
6239 | _ACEOF | |
6240 | rm -f conftest.$ac_objext | |
6241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6242 | (eval $ac_compile) 2>conftest.er1 | |
6243 | ac_status=$? | |
6244 | grep -v '^ *+' conftest.er1 >conftest.err | |
6245 | rm -f conftest.er1 | |
6246 | cat conftest.err >&5 | |
6247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6248 | (exit $ac_status); } && | |
6249 | { ac_try='test -z "$ac_c_werror_flag" | |
6250 | || test ! -s conftest.err' | |
6251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6252 | (eval $ac_try) 2>&5 | |
6253 | ac_status=$? | |
6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6255 | (exit $ac_status); }; } && | |
6256 | { ac_try='test -s conftest.$ac_objext' | |
6257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6258 | (eval $ac_try) 2>&5 | |
6259 | ac_status=$? | |
6260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6261 | (exit $ac_status); }; }; then | |
6262 | ac_header_compiler=yes | |
6263 | else | |
6264 | echo "$as_me: failed program was:" >&5 | |
6265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6266 | ||
6267 | ac_header_compiler=no | |
6268 | fi | |
6269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6270 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6271 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6272 | ||
6273 | # Is the header present? | |
6274 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6275 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6276 | cat >conftest.$ac_ext <<_ACEOF | |
6277 | /* confdefs.h. */ | |
6278 | _ACEOF | |
6279 | cat confdefs.h >>conftest.$ac_ext | |
6280 | cat >>conftest.$ac_ext <<_ACEOF | |
6281 | /* end confdefs.h. */ | |
6282 | #include <$ac_header> | |
6283 | _ACEOF | |
6284 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6285 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6286 | ac_status=$? | |
6287 | grep -v '^ *+' conftest.er1 >conftest.err | |
6288 | rm -f conftest.er1 | |
6289 | cat conftest.err >&5 | |
6290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6291 | (exit $ac_status); } >/dev/null; then | |
6292 | if test -s conftest.err; then | |
6293 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6294 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6295 | else | |
6296 | ac_cpp_err= | |
6297 | fi | |
6298 | else | |
6299 | ac_cpp_err=yes | |
c906108c | 6300 | fi |
b7026657 AC |
6301 | if test -z "$ac_cpp_err"; then |
6302 | ac_header_preproc=yes | |
6303 | else | |
6304 | echo "$as_me: failed program was:" >&5 | |
6305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6306 | ||
6307 | ac_header_preproc=no | |
c906108c | 6308 | fi |
b7026657 AC |
6309 | rm -f conftest.err conftest.$ac_ext |
6310 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6311 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6312 | ||
6313 | # So? What about this header? | |
6314 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6315 | yes:no: ) | |
6316 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6317 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6318 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6319 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6320 | ac_header_preproc=yes | |
6321 | ;; | |
6322 | no:yes:* ) | |
6323 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6324 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6325 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6326 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6327 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6328 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6329 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6330 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6331 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6332 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6333 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6334 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6335 | ( | |
6336 | cat <<\_ASBOX | |
6337 | ## ------------------------------------------ ## | |
6338 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6339 | ## ------------------------------------------ ## | |
6340 | _ASBOX | |
6341 | ) | | |
6342 | sed "s/^/$as_me: WARNING: /" >&2 | |
6343 | ;; | |
6344 | esac | |
6345 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6346 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6347 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6349 | else |
b7026657 AC |
6350 | eval "$as_ac_Header=\$ac_header_preproc" |
6351 | fi | |
6352 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6353 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6354 | ||
6355 | fi | |
6356 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6357 | cat >>confdefs.h <<_ACEOF | |
6358 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6359 | _ACEOF | |
6360 | ||
c906108c | 6361 | fi |
b7026657 | 6362 | |
c906108c SS |
6363 | done |
6364 | ||
b7026657 AC |
6365 | |
6366 | ||
6367 | ||
6368 | ||
c906108c SS |
6369 | for ac_func in getrusage time sigaction __setfpucw |
6370 | do | |
b7026657 AC |
6371 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6372 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6373 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6374 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6376 | else | |
6377 | cat >conftest.$ac_ext <<_ACEOF | |
6378 | /* confdefs.h. */ | |
6379 | _ACEOF | |
6380 | cat confdefs.h >>conftest.$ac_ext | |
6381 | cat >>conftest.$ac_ext <<_ACEOF | |
6382 | /* end confdefs.h. */ | |
6383 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6384 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6385 | #define $ac_func innocuous_$ac_func | |
6386 | ||
c906108c | 6387 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
6388 | which can conflict with char $ac_func (); below. |
6389 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6390 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 6391 | |
b7026657 AC |
6392 | #ifdef __STDC__ |
6393 | # include <limits.h> | |
6394 | #else | |
6395 | # include <assert.h> | |
6396 | #endif | |
c906108c | 6397 | |
b7026657 AC |
6398 | #undef $ac_func |
6399 | ||
6400 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6401 | #ifdef __cplusplus | |
6402 | extern "C" | |
6403 | { | |
6404 | #endif | |
6405 | /* We use char because int might match the return type of a gcc2 | |
6406 | builtin and then its argument prototype would still apply. */ | |
6407 | char $ac_func (); | |
c906108c SS |
6408 | /* The GNU C library defines this for functions which it implements |
6409 | to always fail with ENOSYS. Some functions are actually named | |
6410 | something starting with __ and the normal name is an alias. */ | |
6411 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6412 | choke me | |
6413 | #else | |
b7026657 AC |
6414 | char (*f) () = $ac_func; |
6415 | #endif | |
6416 | #ifdef __cplusplus | |
6417 | } | |
c906108c SS |
6418 | #endif |
6419 | ||
b7026657 AC |
6420 | int |
6421 | main () | |
6422 | { | |
6423 | return f != $ac_func; | |
6424 | ; | |
6425 | return 0; | |
6426 | } | |
6427 | _ACEOF | |
6428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6430 | (eval $ac_link) 2>conftest.er1 | |
6431 | ac_status=$? | |
6432 | grep -v '^ *+' conftest.er1 >conftest.err | |
6433 | rm -f conftest.er1 | |
6434 | cat conftest.err >&5 | |
6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6436 | (exit $ac_status); } && | |
6437 | { ac_try='test -z "$ac_c_werror_flag" | |
6438 | || test ! -s conftest.err' | |
6439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6440 | (eval $ac_try) 2>&5 | |
6441 | ac_status=$? | |
6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6443 | (exit $ac_status); }; } && | |
6444 | { ac_try='test -s conftest$ac_exeext' | |
6445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6446 | (eval $ac_try) 2>&5 | |
6447 | ac_status=$? | |
6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6449 | (exit $ac_status); }; }; then | |
6450 | eval "$as_ac_var=yes" | |
6451 | else | |
6452 | echo "$as_me: failed program was:" >&5 | |
6453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6454 | ||
6455 | eval "$as_ac_var=no" | |
6456 | fi | |
6457 | rm -f conftest.err conftest.$ac_objext \ | |
6458 | conftest$ac_exeext conftest.$ac_ext | |
6459 | fi | |
6460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6461 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6462 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6463 | cat >>confdefs.h <<_ACEOF | |
6464 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6465 | _ACEOF | |
c906108c | 6466 | |
c906108c SS |
6467 | fi |
6468 | done | |
6469 | ||
6470 | ||
6471 | # Check for socket libraries | |
b7026657 AC |
6472 | |
6473 | echo "$as_me:$LINENO: checking for bind in -lsocket" >&5 | |
6474 | echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6 | |
6475 | if test "${ac_cv_lib_socket_bind+set}" = set; then | |
6476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6477 | else |
b7026657 | 6478 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 6479 | LIBS="-lsocket $LIBS" |
b7026657 AC |
6480 | cat >conftest.$ac_ext <<_ACEOF |
6481 | /* confdefs.h. */ | |
6482 | _ACEOF | |
6483 | cat confdefs.h >>conftest.$ac_ext | |
6484 | cat >>conftest.$ac_ext <<_ACEOF | |
6485 | /* end confdefs.h. */ | |
6486 | ||
c906108c | 6487 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
6488 | #ifdef __cplusplus |
6489 | extern "C" | |
6490 | #endif | |
c906108c | 6491 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
6492 | builtin and then its argument prototype would still apply. */ |
6493 | char bind (); | |
6494 | int | |
6495 | main () | |
6496 | { | |
6497 | bind (); | |
6498 | ; | |
6499 | return 0; | |
6500 | } | |
6501 | _ACEOF | |
6502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6504 | (eval $ac_link) 2>conftest.er1 | |
6505 | ac_status=$? | |
6506 | grep -v '^ *+' conftest.er1 >conftest.err | |
6507 | rm -f conftest.er1 | |
6508 | cat conftest.err >&5 | |
6509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6510 | (exit $ac_status); } && | |
6511 | { ac_try='test -z "$ac_c_werror_flag" | |
6512 | || test ! -s conftest.err' | |
6513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6514 | (eval $ac_try) 2>&5 | |
6515 | ac_status=$? | |
6516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6517 | (exit $ac_status); }; } && | |
6518 | { ac_try='test -s conftest$ac_exeext' | |
6519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6520 | (eval $ac_try) 2>&5 | |
6521 | ac_status=$? | |
6522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6523 | (exit $ac_status); }; }; then | |
6524 | ac_cv_lib_socket_bind=yes | |
6525 | else | |
6526 | echo "$as_me: failed program was:" >&5 | |
6527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6528 | ||
6529 | ac_cv_lib_socket_bind=no | |
6530 | fi | |
6531 | rm -f conftest.err conftest.$ac_objext \ | |
6532 | conftest$ac_exeext conftest.$ac_ext | |
6533 | LIBS=$ac_check_lib_save_LIBS | |
6534 | fi | |
6535 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5 | |
6536 | echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6 | |
6537 | if test $ac_cv_lib_socket_bind = yes; then | |
6538 | cat >>confdefs.h <<_ACEOF | |
6539 | #define HAVE_LIBSOCKET 1 | |
6540 | _ACEOF | |
c906108c SS |
6541 | |
6542 | LIBS="-lsocket $LIBS" | |
6543 | ||
c906108c SS |
6544 | fi |
6545 | ||
b7026657 AC |
6546 | |
6547 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
6548 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
6549 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
6550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6551 | else |
b7026657 | 6552 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 6553 | LIBS="-lnsl $LIBS" |
b7026657 AC |
6554 | cat >conftest.$ac_ext <<_ACEOF |
6555 | /* confdefs.h. */ | |
6556 | _ACEOF | |
6557 | cat confdefs.h >>conftest.$ac_ext | |
6558 | cat >>conftest.$ac_ext <<_ACEOF | |
6559 | /* end confdefs.h. */ | |
6560 | ||
c906108c | 6561 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
6562 | #ifdef __cplusplus |
6563 | extern "C" | |
6564 | #endif | |
c906108c | 6565 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
6566 | builtin and then its argument prototype would still apply. */ |
6567 | char gethostbyname (); | |
6568 | int | |
6569 | main () | |
6570 | { | |
6571 | gethostbyname (); | |
6572 | ; | |
6573 | return 0; | |
6574 | } | |
6575 | _ACEOF | |
6576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6578 | (eval $ac_link) 2>conftest.er1 | |
6579 | ac_status=$? | |
6580 | grep -v '^ *+' conftest.er1 >conftest.err | |
6581 | rm -f conftest.er1 | |
6582 | cat conftest.err >&5 | |
6583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6584 | (exit $ac_status); } && | |
6585 | { ac_try='test -z "$ac_c_werror_flag" | |
6586 | || test ! -s conftest.err' | |
6587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6588 | (eval $ac_try) 2>&5 | |
6589 | ac_status=$? | |
6590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6591 | (exit $ac_status); }; } && | |
6592 | { ac_try='test -s conftest$ac_exeext' | |
6593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6594 | (eval $ac_try) 2>&5 | |
6595 | ac_status=$? | |
6596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6597 | (exit $ac_status); }; }; then | |
6598 | ac_cv_lib_nsl_gethostbyname=yes | |
6599 | else | |
6600 | echo "$as_me: failed program was:" >&5 | |
6601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6602 | ||
6603 | ac_cv_lib_nsl_gethostbyname=no | |
6604 | fi | |
6605 | rm -f conftest.err conftest.$ac_objext \ | |
6606 | conftest$ac_exeext conftest.$ac_ext | |
6607 | LIBS=$ac_check_lib_save_LIBS | |
6608 | fi | |
6609 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
6610 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
6611 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
6612 | cat >>confdefs.h <<_ACEOF | |
6613 | #define HAVE_LIBNSL 1 | |
6614 | _ACEOF | |
c906108c SS |
6615 | |
6616 | LIBS="-lnsl $LIBS" | |
6617 | ||
c906108c SS |
6618 | fi |
6619 | ||
6620 | ||
6621 | . ${srcdir}/../../bfd/configure.host | |
6622 | ||
6623 | ||
6624 | ||
6625 | USE_MAINTAINER_MODE=no | |
6626 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
6627 | if test "${enable_maintainer_mode+set}" = set; then | |
6628 | enableval="$enable_maintainer_mode" | |
6629 | case "${enableval}" in | |
6630 | yes) MAINT="" USE_MAINTAINER_MODE=yes ;; | |
6631 | no) MAINT="#" ;; | |
b7026657 AC |
6632 | *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5 |
6633 | echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;} | |
6634 | { (exit 1); exit 1; }; }; MAINT="#" ;; | |
c906108c SS |
6635 | esac |
6636 | if test x"$silent" != x"yes" && test x"$MAINT" = x""; then | |
6637 | echo "Setting maintainer mode" 6>&1 | |
6638 | fi | |
6639 | else | |
6640 | MAINT="#" | |
b7026657 | 6641 | fi; |
c906108c SS |
6642 | |
6643 | ||
6644 | # Check whether --enable-sim-bswap or --disable-sim-bswap was given. | |
6645 | if test "${enable_sim_bswap+set}" = set; then | |
6646 | enableval="$enable_sim_bswap" | |
6647 | case "${enableval}" in | |
6648 | yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";; | |
6649 | no) sim_bswap="-DWITH_BSWAP=0";; | |
b7026657 AC |
6650 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5 |
6651 | echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;} | |
6652 | { (exit 1); exit 1; }; }; sim_bswap="";; | |
c906108c SS |
6653 | esac |
6654 | if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then | |
6655 | echo "Setting bswap flags = $sim_bswap" 6>&1 | |
6656 | fi | |
6657 | else | |
6658 | sim_bswap="" | |
b7026657 | 6659 | fi; |
c906108c SS |
6660 | |
6661 | ||
6662 | # Check whether --enable-sim-cflags or --disable-sim-cflags was given. | |
6663 | if test "${enable_sim_cflags+set}" = set; then | |
6664 | enableval="$enable_sim_cflags" | |
6665 | case "${enableval}" in | |
6666 | yes) sim_cflags="-O2 -fomit-frame-pointer";; | |
b7026657 AC |
6667 | trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5 |
6668 | echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;} | |
6669 | { (exit 1); exit 1; }; }; sim_cflags="";; | |
c906108c SS |
6670 | no) sim_cflags="";; |
6671 | *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6672 | esac | |
6673 | if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then | |
6674 | echo "Setting sim cflags = $sim_cflags" 6>&1 | |
6675 | fi | |
6676 | else | |
6677 | sim_cflags="" | |
b7026657 | 6678 | fi; |
c906108c SS |
6679 | |
6680 | ||
6681 | # Check whether --enable-sim-debug or --disable-sim-debug was given. | |
6682 | if test "${enable_sim_debug+set}" = set; then | |
6683 | enableval="$enable_sim_debug" | |
6684 | case "${enableval}" in | |
6685 | yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";; | |
6686 | no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";; | |
6687 | *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";; | |
6688 | esac | |
6689 | if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then | |
6690 | echo "Setting sim debug = $sim_debug" 6>&1 | |
6691 | fi | |
6692 | else | |
6693 | sim_debug="" | |
b7026657 | 6694 | fi; |
c906108c SS |
6695 | |
6696 | ||
6697 | # Check whether --enable-sim-stdio or --disable-sim-stdio was given. | |
6698 | if test "${enable_sim_stdio+set}" = set; then | |
6699 | enableval="$enable_sim_stdio" | |
6700 | case "${enableval}" in | |
6701 | yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";; | |
6702 | no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";; | |
b7026657 AC |
6703 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5 |
6704 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;} | |
6705 | { (exit 1); exit 1; }; }; sim_stdio="";; | |
c906108c SS |
6706 | esac |
6707 | if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then | |
6708 | echo "Setting stdio flags = $sim_stdio" 6>&1 | |
6709 | fi | |
6710 | else | |
6711 | sim_stdio="" | |
b7026657 | 6712 | fi; |
c906108c SS |
6713 | |
6714 | ||
6715 | # Check whether --enable-sim-trace or --disable-sim-trace was given. | |
6716 | if test "${enable_sim_trace+set}" = set; then | |
6717 | enableval="$enable_sim_trace" | |
6718 | case "${enableval}" in | |
6719 | yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";; | |
6720 | no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";; | |
6721 | [-0-9]*) | |
6722 | sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";; | |
6723 | [a-z]*) | |
6724 | sim_trace="" | |
6725 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6726 | if test x"$sim_trace" = x; then | |
6727 | sim_trace="-DWITH_TRACE='(TRACE_$x" | |
6728 | else | |
6729 | sim_trace="${sim_trace}|TRACE_$x" | |
6730 | fi | |
6731 | done | |
6732 | sim_trace="$sim_trace)'" ;; | |
6733 | esac | |
6734 | if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then | |
6735 | echo "Setting sim trace = $sim_trace" 6>&1 | |
6736 | fi | |
6737 | else | |
6738 | sim_trace="" | |
b7026657 | 6739 | fi; |
c906108c SS |
6740 | |
6741 | ||
6742 | # Check whether --enable-sim-profile or --disable-sim-profile was given. | |
6743 | if test "${enable_sim_profile+set}" = set; then | |
6744 | enableval="$enable_sim_profile" | |
6745 | case "${enableval}" in | |
6746 | yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";; | |
6747 | no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";; | |
6748 | [-0-9]*) | |
6749 | sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";; | |
6750 | [a-z]*) | |
6751 | sim_profile="" | |
6752 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6753 | if test x"$sim_profile" = x; then | |
6754 | sim_profile="-DWITH_PROFILE='(PROFILE_$x" | |
6755 | else | |
6756 | sim_profile="${sim_profile}|PROFILE_$x" | |
6757 | fi | |
6758 | done | |
6759 | sim_profile="$sim_profile)'" ;; | |
6760 | esac | |
6761 | if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then | |
6762 | echo "Setting sim profile = $sim_profile" 6>&1 | |
6763 | fi | |
6764 | else | |
b7026657 AC |
6765 | sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1" |
6766 | fi; | |
6767 | ||
6768 | ||
6769 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
6770 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
6771 | if test "${ac_cv_type_signal+set}" = set; then | |
6772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6773 | else | |
6774 | cat >conftest.$ac_ext <<_ACEOF | |
6775 | /* confdefs.h. */ | |
6776 | _ACEOF | |
6777 | cat confdefs.h >>conftest.$ac_ext | |
6778 | cat >>conftest.$ac_ext <<_ACEOF | |
6779 | /* end confdefs.h. */ | |
6780 | #include <sys/types.h> | |
6781 | #include <signal.h> | |
6782 | #ifdef signal | |
6783 | # undef signal | |
6784 | #endif | |
6785 | #ifdef __cplusplus | |
6786 | extern "C" void (*signal (int, void (*)(int)))(int); | |
6787 | #else | |
6788 | void (*signal ()) (); | |
6789 | #endif | |
6790 | ||
6791 | int | |
6792 | main () | |
6793 | { | |
6794 | int i; | |
6795 | ; | |
6796 | return 0; | |
6797 | } | |
6798 | _ACEOF | |
6799 | rm -f conftest.$ac_objext | |
6800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6801 | (eval $ac_compile) 2>conftest.er1 | |
6802 | ac_status=$? | |
6803 | grep -v '^ *+' conftest.er1 >conftest.err | |
6804 | rm -f conftest.er1 | |
6805 | cat conftest.err >&5 | |
6806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6807 | (exit $ac_status); } && | |
6808 | { ac_try='test -z "$ac_c_werror_flag" | |
6809 | || test ! -s conftest.err' | |
6810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6811 | (eval $ac_try) 2>&5 | |
6812 | ac_status=$? | |
6813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6814 | (exit $ac_status); }; } && | |
6815 | { ac_try='test -s conftest.$ac_objext' | |
6816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6817 | (eval $ac_try) 2>&5 | |
6818 | ac_status=$? | |
6819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6820 | (exit $ac_status); }; }; then | |
6821 | ac_cv_type_signal=void | |
6822 | else | |
6823 | echo "$as_me: failed program was:" >&5 | |
6824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6825 | ||
6826 | ac_cv_type_signal=int | |
6827 | fi | |
6828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6829 | fi | |
6830 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
6831 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
6832 | ||
6833 | cat >>confdefs.h <<_ACEOF | |
6834 | #define RETSIGTYPE $ac_cv_type_signal | |
6835 | _ACEOF | |
6836 | ||
6837 | ||
6838 | ||
6839 | ||
6840 | ||
6841 | sim_link_files= | |
6842 | sim_link_links= | |
6843 | ||
6844 | sim_link_links=tconfig.h | |
6845 | if test -f ${srcdir}/tconfig.in | |
6846 | then | |
6847 | sim_link_files=tconfig.in | |
6848 | else | |
6849 | sim_link_files=../common/tconfig.in | |
6850 | fi | |
6851 | ||
6852 | # targ-vals.def points to the libc macro description file. | |
6853 | case "${target}" in | |
6854 | *-*-*) TARG_VALS_DEF=../common/nltvals.def ;; | |
6855 | esac | |
6856 | sim_link_files="${sim_link_files} ${TARG_VALS_DEF}" | |
6857 | sim_link_links="${sim_link_links} targ-vals.def" | |
6858 | ||
6859 | ||
6860 | ||
6861 | ||
6862 | for ac_header in unistd.h | |
6863 | do | |
6864 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6865 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6866 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6867 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6870 | fi | |
6871 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6872 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6873 | else | |
6874 | # Is the header compilable? | |
6875 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6876 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6877 | cat >conftest.$ac_ext <<_ACEOF | |
6878 | /* confdefs.h. */ | |
6879 | _ACEOF | |
6880 | cat confdefs.h >>conftest.$ac_ext | |
6881 | cat >>conftest.$ac_ext <<_ACEOF | |
6882 | /* end confdefs.h. */ | |
6883 | $ac_includes_default | |
6884 | #include <$ac_header> | |
6885 | _ACEOF | |
6886 | rm -f conftest.$ac_objext | |
6887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6888 | (eval $ac_compile) 2>conftest.er1 | |
6889 | ac_status=$? | |
6890 | grep -v '^ *+' conftest.er1 >conftest.err | |
6891 | rm -f conftest.er1 | |
6892 | cat conftest.err >&5 | |
6893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6894 | (exit $ac_status); } && | |
6895 | { ac_try='test -z "$ac_c_werror_flag" | |
6896 | || test ! -s conftest.err' | |
6897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6898 | (eval $ac_try) 2>&5 | |
6899 | ac_status=$? | |
6900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6901 | (exit $ac_status); }; } && | |
6902 | { ac_try='test -s conftest.$ac_objext' | |
6903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6904 | (eval $ac_try) 2>&5 | |
6905 | ac_status=$? | |
6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6907 | (exit $ac_status); }; }; then | |
6908 | ac_header_compiler=yes | |
6909 | else | |
6910 | echo "$as_me: failed program was:" >&5 | |
6911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6912 | ||
6913 | ac_header_compiler=no | |
6914 | fi | |
6915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6916 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6917 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6918 | ||
6919 | # Is the header present? | |
6920 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6921 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6922 | cat >conftest.$ac_ext <<_ACEOF | |
6923 | /* confdefs.h. */ | |
6924 | _ACEOF | |
6925 | cat confdefs.h >>conftest.$ac_ext | |
6926 | cat >>conftest.$ac_ext <<_ACEOF | |
6927 | /* end confdefs.h. */ | |
6928 | #include <$ac_header> | |
6929 | _ACEOF | |
6930 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6931 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6932 | ac_status=$? | |
6933 | grep -v '^ *+' conftest.er1 >conftest.err | |
6934 | rm -f conftest.er1 | |
6935 | cat conftest.err >&5 | |
6936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6937 | (exit $ac_status); } >/dev/null; then | |
6938 | if test -s conftest.err; then | |
6939 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6940 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6941 | else | |
6942 | ac_cpp_err= | |
6943 | fi | |
6944 | else | |
6945 | ac_cpp_err=yes | |
6946 | fi | |
6947 | if test -z "$ac_cpp_err"; then | |
6948 | ac_header_preproc=yes | |
6949 | else | |
6950 | echo "$as_me: failed program was:" >&5 | |
6951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6952 | ||
6953 | ac_header_preproc=no | |
6954 | fi | |
6955 | rm -f conftest.err conftest.$ac_ext | |
6956 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6957 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6958 | ||
6959 | # So? What about this header? | |
6960 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6961 | yes:no: ) | |
6962 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6963 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6964 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6965 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6966 | ac_header_preproc=yes | |
6967 | ;; | |
6968 | no:yes:* ) | |
6969 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6970 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6971 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6972 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6973 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6974 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6975 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6976 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6977 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6978 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6979 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6980 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6981 | ( | |
6982 | cat <<\_ASBOX | |
6983 | ## ------------------------------------------ ## | |
6984 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6985 | ## ------------------------------------------ ## | |
6986 | _ASBOX | |
6987 | ) | | |
6988 | sed "s/^/$as_me: WARNING: /" >&2 | |
6989 | ;; | |
6990 | esac | |
6991 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6992 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6993 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6995 | else | |
6996 | eval "$as_ac_Header=\$ac_header_preproc" | |
6997 | fi | |
6998 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6999 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7000 | ||
7001 | fi | |
7002 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7003 | cat >>confdefs.h <<_ACEOF | |
7004 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7005 | _ACEOF | |
7006 | ||
7007 | fi | |
7008 | ||
7009 | done | |
7010 | ||
7011 | ||
7012 | COPRO="armcopro.o maverick.o iwmmxt.o" | |
7013 | ||
7014 | ||
7015 | ||
7016 | ||
7017 | ac_sources="$sim_link_files" | |
7018 | ac_dests="$sim_link_links" | |
7019 | while test -n "$ac_sources"; do | |
7020 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
7021 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
7022 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
7023 | done | |
7024 | ac_config_links="$ac_config_links $ac_config_links_1" | |
7025 | ||
7026 | cgen_breaks="" | |
7027 | if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then | |
7028 | cgen_breaks="break cgen_rtx_error"; | |
7029 | fi | |
7030 | ||
38f48d72 AC |
7031 | ac_config_files="$ac_config_files Makefile.sim:Makefile.in" |
7032 | ||
7033 | ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in" | |
7034 | ||
7035 | ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in" | |
7036 | ||
7037 | ac_config_commands="$ac_config_commands Makefile" | |
7038 | ||
7039 | ac_config_commands="$ac_config_commands stamp-h" | |
7040 | ||
b7026657 AC |
7041 | cat >confcache <<\_ACEOF |
7042 | # This file is a shell script that caches the results of configure | |
7043 | # tests run on this system so they can be shared between configure | |
7044 | # scripts and configure runs, see configure's option --config-cache. | |
7045 | # It is not useful on other systems. If it contains results you don't | |
7046 | # want to keep, you may remove or edit it. | |
7047 | # | |
7048 | # config.status only pays attention to the cache file if you give it | |
7049 | # the --recheck option to rerun configure. | |
7050 | # | |
7051 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7052 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7053 | # following values. | |
7054 | ||
7055 | _ACEOF | |
7056 | ||
7057 | # The following way of writing the cache mishandles newlines in values, | |
7058 | # but we know of no workaround that is simple, portable, and efficient. | |
7059 | # So, don't put newlines in cache variables' values. | |
7060 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7061 | # and sets the high bit in the cache file unless we assign to the vars. | |
7062 | { | |
7063 | (set) 2>&1 | | |
7064 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7065 | *ac_space=\ *) | |
7066 | # `set' does not quote correctly, so add quotes (double-quote | |
7067 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7068 | sed -n \ | |
7069 | "s/'/'\\\\''/g; | |
7070 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7071 | ;; | |
7072 | *) | |
7073 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7074 | sed -n \ | |
7075 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
7076 | ;; | |
7077 | esac; | |
7078 | } | | |
7079 | sed ' | |
7080 | t clear | |
7081 | : clear | |
7082 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7083 | t end | |
7084 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7085 | : end' >>confcache | |
7086 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
7087 | if test -w $cache_file; then | |
7088 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
7089 | cat confcache >$cache_file | |
7090 | else | |
7091 | echo "not updating unwritable cache $cache_file" | |
7092 | fi | |
7093 | fi | |
7094 | rm -f confcache | |
7095 | ||
7096 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7097 | # Let make expand exec_prefix. | |
7098 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7099 | ||
7100 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
7101 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7102 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7103 | # (actually we leave an empty line to preserve line numbers). | |
7104 | if test "x$srcdir" = x.; then | |
7105 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7106 | s/:*\$(srcdir):*/:/; | |
7107 | s/:*\${srcdir}:*/:/; | |
7108 | s/:*@srcdir@:*/:/; | |
7109 | s/^\([^=]*=[ ]*\):*/\1/; | |
7110 | s/:*$//; | |
7111 | s/^[^=]*=[ ]*$//; | |
7112 | }' | |
7113 | fi | |
7114 | ||
7115 | DEFS=-DHAVE_CONFIG_H | |
7116 | ||
7117 | ac_libobjs= | |
7118 | ac_ltlibobjs= | |
7119 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7120 | # 1. Remove the extension, and $U if already installed. | |
7121 | ac_i=`echo "$ac_i" | | |
7122 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
7123 | # 2. Add them. | |
7124 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
7125 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
7126 | done | |
7127 | LIBOBJS=$ac_libobjs | |
7128 | ||
7129 | LTLIBOBJS=$ac_ltlibobjs | |
7130 | ||
7131 | ||
7132 | ||
7133 | : ${CONFIG_STATUS=./config.status} | |
7134 | ac_clean_files_save=$ac_clean_files | |
7135 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7136 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
7137 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7138 | cat >$CONFIG_STATUS <<_ACEOF | |
7139 | #! $SHELL | |
7140 | # Generated by $as_me. | |
7141 | # Run this file to recreate the current configuration. | |
7142 | # Compiler output produced by configure, useful for debugging | |
7143 | # configure, is in config.log if it exists. | |
7144 | ||
7145 | debug=false | |
7146 | ac_cs_recheck=false | |
7147 | ac_cs_silent=false | |
7148 | SHELL=\${CONFIG_SHELL-$SHELL} | |
7149 | _ACEOF | |
7150 | ||
7151 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7152 | ## --------------------- ## | |
7153 | ## M4sh Initialization. ## | |
7154 | ## --------------------- ## | |
7155 | ||
7156 | # Be Bourne compatible | |
7157 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7158 | emulate sh | |
7159 | NULLCMD=: | |
7160 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
7161 | # is contrary to our usage. Disable this feature. | |
7162 | alias -g '${1+"$@"}'='"$@"' | |
7163 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
7164 | set -o posix | |
7165 | fi | |
7166 | DUALCASE=1; export DUALCASE # for MKS sh | |
7167 | ||
7168 | # Support unset when possible. | |
7169 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7170 | as_unset=unset | |
7171 | else | |
7172 | as_unset=false | |
c906108c SS |
7173 | fi |
7174 | ||
7175 | ||
b7026657 AC |
7176 | # Work around bugs in pre-3.0 UWIN ksh. |
7177 | $as_unset ENV MAIL MAILPATH | |
7178 | PS1='$ ' | |
7179 | PS2='> ' | |
7180 | PS4='+ ' | |
7181 | ||
7182 | # NLS nuisances. | |
7183 | for as_var in \ | |
7184 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
7185 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
7186 | LC_TELEPHONE LC_TIME | |
7187 | do | |
7188 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
7189 | eval $as_var=C; export $as_var | |
7190 | else | |
7191 | $as_unset $as_var | |
7192 | fi | |
7193 | done | |
c906108c | 7194 | |
b7026657 AC |
7195 | # Required to use basename. |
7196 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7197 | as_expr=expr | |
c906108c | 7198 | else |
b7026657 AC |
7199 | as_expr=false |
7200 | fi | |
c906108c | 7201 | |
b7026657 AC |
7202 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
7203 | as_basename=basename | |
c906108c | 7204 | else |
b7026657 | 7205 | as_basename=false |
c906108c | 7206 | fi |
b7026657 AC |
7207 | |
7208 | ||
7209 | # Name of the executable. | |
7210 | as_me=`$as_basename "$0" || | |
7211 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
7212 | X"$0" : 'X\(//\)$' \| \ | |
7213 | X"$0" : 'X\(/\)$' \| \ | |
7214 | . : '\(.\)' 2>/dev/null || | |
7215 | echo X/"$0" | | |
7216 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
7217 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
7218 | /^X\/\(\/\).*/{ s//\1/; q; } | |
7219 | s/.*/./; q'` | |
7220 | ||
7221 | ||
7222 | # PATH needs CR, and LINENO needs CR and PATH. | |
7223 | # Avoid depending upon Character Ranges. | |
7224 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7225 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7226 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7227 | as_cr_digits='0123456789' | |
7228 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7229 | ||
7230 | # The user is always right. | |
7231 | if test "${PATH_SEPARATOR+set}" != set; then | |
7232 | echo "#! /bin/sh" >conf$$.sh | |
7233 | echo "exit 0" >>conf$$.sh | |
7234 | chmod +x conf$$.sh | |
7235 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7236 | PATH_SEPARATOR=';' | |
7237 | else | |
7238 | PATH_SEPARATOR=: | |
7239 | fi | |
7240 | rm -f conf$$.sh | |
c906108c SS |
7241 | fi |
7242 | ||
c906108c | 7243 | |
b7026657 AC |
7244 | as_lineno_1=$LINENO |
7245 | as_lineno_2=$LINENO | |
7246 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7247 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7248 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
7249 | # Find who we are. Look in the path if we contain no path at all | |
7250 | # relative or not. | |
7251 | case $0 in | |
7252 | *[\\/]* ) as_myself=$0 ;; | |
7253 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7254 | for as_dir in $PATH | |
7255 | do | |
7256 | IFS=$as_save_IFS | |
7257 | test -z "$as_dir" && as_dir=. | |
7258 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7259 | done | |
7260 | ||
7261 | ;; | |
7262 | esac | |
7263 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7264 | # in which case we are not to be found in the path. | |
7265 | if test "x$as_myself" = x; then | |
7266 | as_myself=$0 | |
7267 | fi | |
7268 | if test ! -f "$as_myself"; then | |
7269 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
7270 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
7271 | { (exit 1); exit 1; }; } | |
7272 | fi | |
7273 | case $CONFIG_SHELL in | |
7274 | '') | |
7275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7276 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
7277 | do | |
7278 | IFS=$as_save_IFS | |
7279 | test -z "$as_dir" && as_dir=. | |
7280 | for as_base in sh bash ksh sh5; do | |
7281 | case $as_dir in | |
7282 | /*) | |
7283 | if ("$as_dir/$as_base" -c ' | |
7284 | as_lineno_1=$LINENO | |
7285 | as_lineno_2=$LINENO | |
7286 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7287 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7288 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
7289 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
7290 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
7291 | CONFIG_SHELL=$as_dir/$as_base | |
7292 | export CONFIG_SHELL | |
7293 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
7294 | fi;; | |
7295 | esac | |
7296 | done | |
7297 | done | |
7298 | ;; | |
7299 | esac | |
c906108c | 7300 | |
b7026657 AC |
7301 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
7302 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7303 | # line-number line before each line; the second 'sed' does the real | |
7304 | # work. The second script uses 'N' to pair each line-number line | |
7305 | # with the numbered line, and appends trailing '-' during | |
7306 | # substitution so that $LINENO is not a special case at line end. | |
7307 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7308 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7309 | sed '=' <$as_myself | | |
7310 | sed ' | |
7311 | N | |
7312 | s,$,-, | |
7313 | : loop | |
7314 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7315 | t loop | |
7316 | s,-$,, | |
7317 | s,^['$as_cr_digits']*\n,, | |
7318 | ' >$as_me.lineno && | |
7319 | chmod +x $as_me.lineno || | |
7320 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
7321 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
7322 | { (exit 1); exit 1; }; } | |
7323 | ||
7324 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7325 | # (the dirname of $[0] is not the place where we might find the | |
7326 | # original and so on. Autoconf is especially sensible to this). | |
7327 | . ./$as_me.lineno | |
7328 | # Exit status is that of the last command. | |
7329 | exit | |
7330 | } | |
c906108c | 7331 | |
cd0fc7c3 | 7332 | |
b7026657 AC |
7333 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
7334 | *c*,-n*) ECHO_N= ECHO_C=' | |
7335 | ' ECHO_T=' ' ;; | |
7336 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7337 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
7338 | esac | |
cd0fc7c3 | 7339 | |
b7026657 AC |
7340 | if expr a : '\(a\)' >/dev/null 2>&1; then |
7341 | as_expr=expr | |
c906108c | 7342 | else |
b7026657 AC |
7343 | as_expr=false |
7344 | fi | |
7345 | ||
7346 | rm -f conf$$ conf$$.exe conf$$.file | |
7347 | echo >conf$$.file | |
7348 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7349 | # We could just check for DJGPP; but this test a) works b) is more generic | |
7350 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7351 | if test -f conf$$.exe; then | |
7352 | # Don't use ln at all; we don't have any links | |
7353 | as_ln_s='cp -p' | |
cd0fc7c3 | 7354 | else |
b7026657 | 7355 | as_ln_s='ln -s' |
cd0fc7c3 | 7356 | fi |
b7026657 AC |
7357 | elif ln conf$$.file conf$$ 2>/dev/null; then |
7358 | as_ln_s=ln | |
7359 | else | |
7360 | as_ln_s='cp -p' | |
c906108c | 7361 | fi |
b7026657 AC |
7362 | rm -f conf$$ conf$$.exe conf$$.file |
7363 | ||
7364 | if mkdir -p . 2>/dev/null; then | |
7365 | as_mkdir_p=: | |
7366 | else | |
7367 | test -d ./-p && rmdir ./-p | |
7368 | as_mkdir_p=false | |
c906108c | 7369 | fi |
cd0fc7c3 | 7370 | |
b7026657 | 7371 | as_executable_p="test -f" |
c906108c | 7372 | |
b7026657 AC |
7373 | # Sed expression to map a string onto a valid CPP name. |
7374 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 7375 | |
b7026657 AC |
7376 | # Sed expression to map a string onto a valid variable name. |
7377 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 7378 | |
c906108c | 7379 | |
b7026657 AC |
7380 | # IFS |
7381 | # We need space, tab and new line, in precisely that order. | |
7382 | as_nl=' | |
7383 | ' | |
7384 | IFS=" $as_nl" | |
c906108c | 7385 | |
b7026657 AC |
7386 | # CDPATH. |
7387 | $as_unset CDPATH | |
c906108c | 7388 | |
b7026657 | 7389 | exec 6>&1 |
c906108c | 7390 | |
b7026657 AC |
7391 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
7392 | # report actual input values of CONFIG_FILES etc. instead of their | |
7393 | # values after options handling. Logging --version etc. is OK. | |
7394 | exec 5>>config.log | |
7395 | { | |
7396 | echo | |
7397 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7398 | ## Running $as_me. ## | |
7399 | _ASBOX | |
7400 | } >&5 | |
7401 | cat >&5 <<_CSEOF | |
7402 | ||
7403 | This file was extended by $as_me, which was | |
7404 | generated by GNU Autoconf 2.59. Invocation command line was | |
7405 | ||
7406 | CONFIG_FILES = $CONFIG_FILES | |
7407 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7408 | CONFIG_LINKS = $CONFIG_LINKS | |
7409 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7410 | $ $0 $@ | |
7411 | ||
7412 | _CSEOF | |
7413 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
7414 | echo >&5 | |
7415 | _ACEOF | |
7416 | ||
7417 | # Files that config.status was made for. | |
7418 | if test -n "$ac_config_files"; then | |
7419 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
c906108c | 7420 | fi |
b7026657 AC |
7421 | |
7422 | if test -n "$ac_config_headers"; then | |
7423 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
c906108c | 7424 | fi |
b7026657 AC |
7425 | |
7426 | if test -n "$ac_config_links"; then | |
7427 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
c906108c | 7428 | fi |
c906108c | 7429 | |
b7026657 AC |
7430 | if test -n "$ac_config_commands"; then |
7431 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7432 | fi | |
c906108c | 7433 | |
b7026657 | 7434 | cat >>$CONFIG_STATUS <<\_ACEOF |
f603c8fe | 7435 | |
b7026657 AC |
7436 | ac_cs_usage="\ |
7437 | \`$as_me' instantiates files from templates according to the | |
7438 | current configuration. | |
c906108c | 7439 | |
b7026657 | 7440 | Usage: $0 [OPTIONS] [FILE]... |
c906108c | 7441 | |
b7026657 AC |
7442 | -h, --help print this help, then exit |
7443 | -V, --version print version number, then exit | |
7444 | -q, --quiet do not print progress messages | |
7445 | -d, --debug don't remove temporary files | |
7446 | --recheck update $as_me by reconfiguring in the same conditions | |
7447 | --file=FILE[:TEMPLATE] | |
7448 | instantiate the configuration file FILE | |
7449 | --header=FILE[:TEMPLATE] | |
7450 | instantiate the configuration header FILE | |
c8cca39f | 7451 | |
b7026657 AC |
7452 | Configuration files: |
7453 | $config_files | |
c8cca39f | 7454 | |
b7026657 AC |
7455 | Configuration headers: |
7456 | $config_headers | |
379832de | 7457 | |
b7026657 AC |
7458 | Configuration links: |
7459 | $config_links | |
7460 | ||
7461 | Configuration commands: | |
7462 | $config_commands | |
7463 | ||
7464 | Report bugs to <bug-autoconf@gnu.org>." | |
7465 | _ACEOF | |
7466 | ||
7467 | cat >>$CONFIG_STATUS <<_ACEOF | |
7468 | ac_cs_version="\\ | |
7469 | config.status | |
7470 | configured by $0, generated by GNU Autoconf 2.59, | |
7471 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
7472 | ||
7473 | Copyright (C) 2003 Free Software Foundation, Inc. | |
7474 | This config.status script is free software; the Free Software Foundation | |
7475 | gives unlimited permission to copy, distribute and modify it." | |
7476 | srcdir=$srcdir | |
7477 | INSTALL="$INSTALL" | |
7478 | _ACEOF | |
7479 | ||
7480 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7481 | # If no file are specified by the user, then we need to provide default | |
7482 | # value. By we need to know if files were specified by the user. | |
7483 | ac_need_defaults=: | |
7484 | while test $# != 0 | |
7485 | do | |
7486 | case $1 in | |
7487 | --*=*) | |
7488 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7489 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
7490 | ac_shift=: | |
c906108c | 7491 | ;; |
b7026657 AC |
7492 | -*) |
7493 | ac_option=$1 | |
7494 | ac_optarg=$2 | |
7495 | ac_shift=shift | |
c906108c | 7496 | ;; |
b7026657 AC |
7497 | *) # This is not an option, so the user has probably given explicit |
7498 | # arguments. | |
7499 | ac_option=$1 | |
7500 | ac_need_defaults=false;; | |
7501 | esac | |
c906108c | 7502 | |
b7026657 AC |
7503 | case $ac_option in |
7504 | # Handling of the options. | |
7505 | _ACEOF | |
7506 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7507 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
7508 | ac_cs_recheck=: ;; | |
7509 | --version | --vers* | -V ) | |
7510 | echo "$ac_cs_version"; exit 0 ;; | |
7511 | --he | --h) | |
7512 | # Conflict between --help and --header | |
7513 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
7514 | Try \`$0 --help' for more information." >&5 | |
7515 | echo "$as_me: error: ambiguous option: $1 | |
7516 | Try \`$0 --help' for more information." >&2;} | |
7517 | { (exit 1); exit 1; }; };; | |
7518 | --help | --hel | -h ) | |
7519 | echo "$ac_cs_usage"; exit 0 ;; | |
7520 | --debug | --d* | -d ) | |
7521 | debug=: ;; | |
7522 | --file | --fil | --fi | --f ) | |
7523 | $ac_shift | |
7524 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
7525 | ac_need_defaults=false;; | |
7526 | --header | --heade | --head | --hea ) | |
7527 | $ac_shift | |
7528 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
7529 | ac_need_defaults=false;; | |
7530 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
7531 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7532 | ac_cs_silent=: ;; | |
c906108c | 7533 | |
b7026657 AC |
7534 | # This is an error. |
7535 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
7536 | Try \`$0 --help' for more information." >&5 | |
7537 | echo "$as_me: error: unrecognized option: $1 | |
7538 | Try \`$0 --help' for more information." >&2;} | |
7539 | { (exit 1); exit 1; }; } ;; | |
c906108c | 7540 | |
b7026657 AC |
7541 | *) ac_config_targets="$ac_config_targets $1" ;; |
7542 | ||
7543 | esac | |
7544 | shift | |
7545 | done | |
7546 | ||
7547 | ac_configure_extra_args= | |
7548 | ||
7549 | if $ac_cs_silent; then | |
7550 | exec 6>/dev/null | |
7551 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c SS |
7552 | fi |
7553 | ||
b7026657 AC |
7554 | _ACEOF |
7555 | cat >>$CONFIG_STATUS <<_ACEOF | |
7556 | if \$ac_cs_recheck; then | |
7557 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
7558 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7559 | fi | |
c906108c | 7560 | |
b7026657 | 7561 | _ACEOF |
c906108c | 7562 | |
c906108c | 7563 | |
c906108c | 7564 | |
b7026657 AC |
7565 | |
7566 | ||
7567 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7568 | for ac_config_target in $ac_config_targets | |
c906108c | 7569 | do |
b7026657 AC |
7570 | case "$ac_config_target" in |
7571 | # Handling of arguments. | |
7572 | "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;; | |
7573 | "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;; | |
7574 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;; | |
7575 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
38f48d72 AC |
7576 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
7577 | "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;; | |
b7026657 AC |
7578 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
7579 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
7580 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
7581 | { (exit 1); exit 1; }; };; | |
c906108c SS |
7582 | esac |
7583 | done | |
7584 | ||
b7026657 AC |
7585 | # If the user did not use the arguments to specify the items to instantiate, |
7586 | # then the envvar interface is used. Set only those that are not. | |
7587 | # We use the long form for the default assignment because of an extremely | |
7588 | # bizarre bug on SunOS 4.1.3. | |
7589 | if $ac_need_defaults; then | |
7590 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7591 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7592 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
7593 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7594 | fi | |
7595 | ||
7596 | # Have a temporary directory for convenience. Make it in the build tree | |
7597 | # simply because there is no reason to put it here, and in addition, | |
7598 | # creating and moving files from /tmp can sometimes cause problems. | |
7599 | # Create a temporary directory, and hook for its removal unless debugging. | |
7600 | $debug || | |
7601 | { | |
7602 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7603 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
7604 | } | |
c906108c | 7605 | |
b7026657 | 7606 | # Create a (secure) tmp directory for tmp files. |
c906108c | 7607 | |
b7026657 AC |
7608 | { |
7609 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
7610 | test -n "$tmp" && test -d "$tmp" | |
7611 | } || | |
7612 | { | |
7613 | tmp=./confstat$$-$RANDOM | |
7614 | (umask 077 && mkdir $tmp) | |
7615 | } || | |
7616 | { | |
7617 | echo "$me: cannot create a temporary directory in ." >&2 | |
7618 | { (exit 1); exit 1; } | |
7619 | } | |
7620 | ||
7621 | _ACEOF | |
7622 | ||
7623 | cat >>$CONFIG_STATUS <<_ACEOF | |
7624 | ||
7625 | # | |
7626 | # CONFIG_FILES section. | |
7627 | # | |
c906108c | 7628 | |
b7026657 AC |
7629 | # No need to generate the scripts if there are no CONFIG_FILES. |
7630 | # This happens for instance when ./config.status config.h | |
7631 | if test -n "\$CONFIG_FILES"; then | |
7632 | # Protect against being on the right side of a sed subst in config.status. | |
7633 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7634 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7635 | s,@sim_environment@,$sim_environment,;t t | |
7636 | s,@sim_alignment@,$sim_alignment,;t t | |
7637 | s,@sim_assert@,$sim_assert,;t t | |
7638 | s,@sim_bitsize@,$sim_bitsize,;t t | |
7639 | s,@sim_endian@,$sim_endian,;t t | |
7640 | s,@sim_hostendian@,$sim_hostendian,;t t | |
7641 | s,@sim_float@,$sim_float,;t t | |
7642 | s,@sim_scache@,$sim_scache,;t t | |
7643 | s,@sim_default_model@,$sim_default_model,;t t | |
7644 | s,@sim_hw_cflags@,$sim_hw_cflags,;t t | |
7645 | s,@sim_hw_objs@,$sim_hw_objs,;t t | |
7646 | s,@sim_hw@,$sim_hw,;t t | |
7647 | s,@sim_inline@,$sim_inline,;t t | |
7648 | s,@sim_packages@,$sim_packages,;t t | |
7649 | s,@sim_regparm@,$sim_regparm,;t t | |
7650 | s,@sim_reserved_bits@,$sim_reserved_bits,;t t | |
7651 | s,@sim_smp@,$sim_smp,;t t | |
7652 | s,@sim_stdcall@,$sim_stdcall,;t t | |
7653 | s,@sim_xor_endian@,$sim_xor_endian,;t t | |
7654 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
7655 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
7656 | s,@SHELL@,$SHELL,;t t | |
7657 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
7658 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7659 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7660 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7661 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7662 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
7663 | s,@exec_prefix@,$exec_prefix,;t t | |
7664 | s,@prefix@,$prefix,;t t | |
7665 | s,@program_transform_name@,$program_transform_name,;t t | |
7666 | s,@bindir@,$bindir,;t t | |
7667 | s,@sbindir@,$sbindir,;t t | |
7668 | s,@libexecdir@,$libexecdir,;t t | |
7669 | s,@datadir@,$datadir,;t t | |
7670 | s,@sysconfdir@,$sysconfdir,;t t | |
7671 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7672 | s,@localstatedir@,$localstatedir,;t t | |
7673 | s,@libdir@,$libdir,;t t | |
7674 | s,@includedir@,$includedir,;t t | |
7675 | s,@oldincludedir@,$oldincludedir,;t t | |
7676 | s,@infodir@,$infodir,;t t | |
7677 | s,@mandir@,$mandir,;t t | |
7678 | s,@build_alias@,$build_alias,;t t | |
7679 | s,@host_alias@,$host_alias,;t t | |
7680 | s,@target_alias@,$target_alias,;t t | |
7681 | s,@DEFS@,$DEFS,;t t | |
7682 | s,@ECHO_C@,$ECHO_C,;t t | |
7683 | s,@ECHO_N@,$ECHO_N,;t t | |
7684 | s,@ECHO_T@,$ECHO_T,;t t | |
7685 | s,@LIBS@,$LIBS,;t t | |
7686 | s,@build@,$build,;t t | |
7687 | s,@build_cpu@,$build_cpu,;t t | |
7688 | s,@build_vendor@,$build_vendor,;t t | |
7689 | s,@build_os@,$build_os,;t t | |
7690 | s,@host@,$host,;t t | |
7691 | s,@host_cpu@,$host_cpu,;t t | |
7692 | s,@host_vendor@,$host_vendor,;t t | |
7693 | s,@host_os@,$host_os,;t t | |
7694 | s,@target@,$target,;t t | |
7695 | s,@target_cpu@,$target_cpu,;t t | |
7696 | s,@target_vendor@,$target_vendor,;t t | |
7697 | s,@target_os@,$target_os,;t t | |
7698 | s,@CC@,$CC,;t t | |
7699 | s,@CFLAGS@,$CFLAGS,;t t | |
7700 | s,@LDFLAGS@,$LDFLAGS,;t t | |
7701 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
7702 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
7703 | s,@EXEEXT@,$EXEEXT,;t t | |
7704 | s,@OBJEXT@,$OBJEXT,;t t | |
7705 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7706 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7707 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7708 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
7709 | s,@HDEFINES@,$HDEFINES,;t t | |
7710 | s,@AR@,$AR,;t t | |
7711 | s,@RANLIB@,$RANLIB,;t t | |
7712 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
7713 | s,@SET_MAKE@,$SET_MAKE,;t t | |
7714 | s,@CPP@,$CPP,;t t | |
7715 | s,@EGREP@,$EGREP,;t t | |
7716 | s,@ALLOCA@,$ALLOCA,;t t | |
7717 | s,@USE_NLS@,$USE_NLS,;t t | |
7718 | s,@MSGFMT@,$MSGFMT,;t t | |
7719 | s,@GMSGFMT@,$GMSGFMT,;t t | |
7720 | s,@XGETTEXT@,$XGETTEXT,;t t | |
7721 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
7722 | s,@CATALOGS@,$CATALOGS,;t t | |
7723 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
7724 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
7725 | s,@GMOFILES@,$GMOFILES,;t t | |
7726 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
7727 | s,@INTLDEPS@,$INTLDEPS,;t t | |
7728 | s,@INTLLIBS@,$INTLLIBS,;t t | |
7729 | s,@INTLOBJS@,$INTLOBJS,;t t | |
7730 | s,@POFILES@,$POFILES,;t t | |
7731 | s,@POSUB@,$POSUB,;t t | |
7732 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
7733 | s,@GT_NO@,$GT_NO,;t t | |
7734 | s,@GT_YES@,$GT_YES,;t t | |
7735 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
7736 | s,@l@,$l,;t t | |
7737 | s,@MAINT@,$MAINT,;t t | |
7738 | s,@sim_bswap@,$sim_bswap,;t t | |
7739 | s,@sim_cflags@,$sim_cflags,;t t | |
7740 | s,@sim_debug@,$sim_debug,;t t | |
7741 | s,@sim_stdio@,$sim_stdio,;t t | |
7742 | s,@sim_trace@,$sim_trace,;t t | |
7743 | s,@sim_profile@,$sim_profile,;t t | |
7744 | s,@COPRO@,$COPRO,;t t | |
7745 | s,@cgen_breaks@,$cgen_breaks,;t t | |
7746 | s,@LIBOBJS@,$LIBOBJS,;t t | |
7747 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
c906108c | 7748 | CEOF |
b7026657 AC |
7749 | |
7750 | _ACEOF | |
7751 | ||
7752 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7753 | # Split the substitutions into bite-sized pieces for seds with | |
7754 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7755 | ac_max_sed_lines=48 | |
7756 | ac_sed_frag=1 # Number of current file. | |
7757 | ac_beg=1 # First line for current file. | |
7758 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7759 | ac_more_lines=: | |
7760 | ac_sed_cmds= | |
7761 | while $ac_more_lines; do | |
7762 | if test $ac_beg -gt 1; then | |
7763 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7764 | else | |
7765 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7766 | fi | |
7767 | if test ! -s $tmp/subs.frag; then | |
7768 | ac_more_lines=false | |
c906108c | 7769 | else |
b7026657 AC |
7770 | # The purpose of the label and of the branching condition is to |
7771 | # speed up the sed processing (if there are no `@' at all, there | |
7772 | # is no need to browse any of the substitutions). | |
7773 | # These are the two extra sed commands mentioned above. | |
7774 | (echo ':t | |
7775 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7776 | if test -z "$ac_sed_cmds"; then | |
7777 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
7778 | else | |
7779 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
7780 | fi | |
7781 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7782 | ac_beg=$ac_end | |
7783 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
c906108c | 7784 | fi |
b7026657 AC |
7785 | done |
7786 | if test -z "$ac_sed_cmds"; then | |
7787 | ac_sed_cmds=cat | |
c906108c | 7788 | fi |
b7026657 | 7789 | fi # test -n "$CONFIG_FILES" |
c906108c | 7790 | |
b7026657 AC |
7791 | _ACEOF |
7792 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7793 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
c906108c | 7794 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
7795 | case $ac_file in |
7796 | - | *:- | *:-:* ) # input from stdin | |
7797 | cat >$tmp/stdin | |
7798 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7799 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7800 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7801 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7802 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
7803 | esac |
7804 | ||
b7026657 AC |
7805 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
7806 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7807 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7808 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7809 | X"$ac_file" : 'X\(//\)$' \| \ | |
7810 | X"$ac_file" : 'X\(/\)' \| \ | |
7811 | . : '\(.\)' 2>/dev/null || | |
7812 | echo X"$ac_file" | | |
7813 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7814 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7815 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7816 | /^X\(\/\).*/{ s//\1/; q; } | |
7817 | s/.*/./; q'` | |
7818 | { if $as_mkdir_p; then | |
7819 | mkdir -p "$ac_dir" | |
c906108c | 7820 | else |
b7026657 AC |
7821 | as_dir="$ac_dir" |
7822 | as_dirs= | |
7823 | while test ! -d "$as_dir"; do | |
7824 | as_dirs="$as_dir $as_dirs" | |
7825 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7826 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7827 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7828 | X"$as_dir" : 'X\(//\)$' \| \ | |
7829 | X"$as_dir" : 'X\(/\)' \| \ | |
7830 | . : '\(.\)' 2>/dev/null || | |
7831 | echo X"$as_dir" | | |
7832 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7833 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7834 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7835 | /^X\(\/\).*/{ s//\1/; q; } | |
7836 | s/.*/./; q'` | |
7837 | done | |
7838 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7839 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7840 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7841 | { (exit 1); exit 1; }; }; } | |
c906108c | 7842 | |
b7026657 AC |
7843 | ac_builddir=. |
7844 | ||
7845 | if test "$ac_dir" != .; then | |
7846 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7847 | # A "../" for each directory in $ac_dir_suffix. | |
7848 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7849 | else | |
7850 | ac_dir_suffix= ac_top_builddir= | |
7851 | fi | |
7852 | ||
7853 | case $srcdir in | |
7854 | .) # No --srcdir option. We are building in place. | |
7855 | ac_srcdir=. | |
7856 | if test -z "$ac_top_builddir"; then | |
7857 | ac_top_srcdir=. | |
7858 | else | |
7859 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7860 | fi ;; | |
7861 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7862 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7863 | ac_top_srcdir=$srcdir ;; | |
c906108c | 7864 | *) # Relative path. |
b7026657 AC |
7865 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
7866 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7867 | esac | |
7868 | ||
7869 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7870 | # the directories may not exist. | |
7871 | case `pwd` in | |
7872 | .) ac_abs_builddir="$ac_dir";; | |
7873 | *) | |
7874 | case "$ac_dir" in | |
7875 | .) ac_abs_builddir=`pwd`;; | |
7876 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7877 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7878 | esac;; | |
7879 | esac | |
7880 | case $ac_abs_builddir in | |
7881 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7882 | *) | |
7883 | case ${ac_top_builddir}. in | |
7884 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7885 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7886 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7887 | esac;; | |
7888 | esac | |
7889 | case $ac_abs_builddir in | |
7890 | .) ac_abs_srcdir=$ac_srcdir;; | |
7891 | *) | |
7892 | case $ac_srcdir in | |
7893 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7894 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7895 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7896 | esac;; | |
7897 | esac | |
7898 | case $ac_abs_builddir in | |
7899 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7900 | *) | |
7901 | case $ac_top_srcdir in | |
7902 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7903 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7904 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7905 | esac;; | |
7906 | esac | |
c906108c | 7907 | |
c906108c | 7908 | |
b7026657 AC |
7909 | case $INSTALL in |
7910 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7911 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c906108c SS |
7912 | esac |
7913 | ||
b7026657 AC |
7914 | if test x"$ac_file" != x-; then |
7915 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7916 | echo "$as_me: creating $ac_file" >&6;} | |
7917 | rm -f "$ac_file" | |
7918 | fi | |
7919 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7920 | # use $as_me), people would be surprised to read: | |
7921 | # /* config.h. Generated by config.status. */ | |
7922 | if test x"$ac_file" = x-; then | |
7923 | configure_input= | |
7924 | else | |
7925 | configure_input="$ac_file. " | |
7926 | fi | |
7927 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
7928 | sed 's,.*/,,'` by configure." | |
7929 | ||
7930 | # First look for the input files in the build tree, otherwise in the | |
7931 | # src tree. | |
7932 | ac_file_inputs=`IFS=: | |
7933 | for f in $ac_file_in; do | |
7934 | case $f in | |
7935 | -) echo $tmp/stdin ;; | |
7936 | [\\/$]*) | |
7937 | # Absolute (can't be DOS-style, as IFS=:) | |
7938 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7939 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7940 | { (exit 1); exit 1; }; } | |
7941 | echo "$f";; | |
7942 | *) # Relative | |
7943 | if test -f "$f"; then | |
7944 | # Build tree | |
7945 | echo "$f" | |
7946 | elif test -f "$srcdir/$f"; then | |
7947 | # Source tree | |
7948 | echo "$srcdir/$f" | |
7949 | else | |
7950 | # /dev/null tree | |
7951 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7952 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7953 | { (exit 1); exit 1; }; } | |
7954 | fi;; | |
7955 | esac | |
7956 | done` || { (exit 1); exit 1; } | |
7957 | _ACEOF | |
7958 | cat >>$CONFIG_STATUS <<_ACEOF | |
7959 | sed "$ac_vpsub | |
7960 | $extrasub | |
7961 | _ACEOF | |
7962 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7963 | :t | |
7964 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7965 | s,@configure_input@,$configure_input,;t t | |
7966 | s,@srcdir@,$ac_srcdir,;t t | |
7967 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
7968 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
7969 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
7970 | s,@builddir@,$ac_builddir,;t t | |
7971 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
7972 | s,@top_builddir@,$ac_top_builddir,;t t | |
7973 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
7974 | s,@INSTALL@,$ac_INSTALL,;t t | |
7975 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7976 | rm -f $tmp/stdin | |
7977 | if test x"$ac_file" != x-; then | |
7978 | mv $tmp/out $ac_file | |
7979 | else | |
7980 | cat $tmp/out | |
7981 | rm -f $tmp/out | |
7982 | fi | |
7983 | ||
7984 | done | |
7985 | _ACEOF | |
7986 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7987 | ||
7988 | # | |
7989 | # CONFIG_HEADER section. | |
7990 | # | |
c906108c SS |
7991 | |
7992 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7993 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7994 | # | |
7995 | # ac_d sets the value in "#define NAME VALUE" lines. | |
b7026657 AC |
7996 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7997 | ac_dB='[ ].*$,\1#\2' | |
7998 | ac_dC=' ' | |
7999 | ac_dD=',;t' | |
8000 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8001 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8002 | ac_uB='$,\1#\2define\3' | |
c906108c | 8003 | ac_uC=' ' |
b7026657 AC |
8004 | ac_uD=',;t' |
8005 | ||
8006 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
c906108c | 8007 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
8008 | case $ac_file in |
8009 | - | *:- | *:-:* ) # input from stdin | |
8010 | cat >$tmp/stdin | |
8011 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8012 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8013 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8014 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8015 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
8016 | esac |
8017 | ||
b7026657 AC |
8018 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
8019 | echo "$as_me: creating $ac_file" >&6;} | |
8020 | ||
8021 | # First look for the input files in the build tree, otherwise in the | |
8022 | # src tree. | |
8023 | ac_file_inputs=`IFS=: | |
8024 | for f in $ac_file_in; do | |
8025 | case $f in | |
8026 | -) echo $tmp/stdin ;; | |
8027 | [\\/$]*) | |
8028 | # Absolute (can't be DOS-style, as IFS=:) | |
8029 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8030 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8031 | { (exit 1); exit 1; }; } | |
8032 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
8033 | echo "$f";; | |
8034 | *) # Relative | |
8035 | if test -f "$f"; then | |
8036 | # Build tree | |
8037 | echo "$f" | |
8038 | elif test -f "$srcdir/$f"; then | |
8039 | # Source tree | |
8040 | echo "$srcdir/$f" | |
8041 | else | |
8042 | # /dev/null tree | |
8043 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8044 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8045 | { (exit 1); exit 1; }; } | |
8046 | fi;; | |
8047 | esac | |
8048 | done` || { (exit 1); exit 1; } | |
8049 | # Remove the trailing spaces. | |
8050 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
8051 | ||
8052 | _ACEOF | |
8053 | ||
8054 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
8055 | # `conftest.undefs', that substitutes the proper values into | |
8056 | # config.h.in to produce config.h. The first handles `#define' | |
8057 | # templates, and the second `#undef' templates. | |
8058 | # And first: Protect against being on the right side of a sed subst in | |
8059 | # config.status. Protect against being in an unquoted here document | |
8060 | # in config.status. | |
8061 | rm -f conftest.defines conftest.undefs | |
8062 | # Using a here document instead of a string reduces the quoting nightmare. | |
8063 | # Putting comments in sed scripts is not portable. | |
8064 | # | |
8065 | # `end' is used to avoid that the second main sed command (meant for | |
8066 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
8067 | # See the Autoconf documentation for `clear'. | |
8068 | cat >confdef2sed.sed <<\_ACEOF | |
8069 | s/[\\&,]/\\&/g | |
8070 | s,[\\$`],\\&,g | |
8071 | t clear | |
8072 | : clear | |
8073 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
8074 | t end | |
8075 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
8076 | : end | |
8077 | _ACEOF | |
8078 | # If some macros were called several times there might be several times | |
8079 | # the same #defines, which is useless. Nevertheless, we may not want to | |
8080 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
8081 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
8082 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
8083 | rm -f confdef2sed.sed | |
c906108c SS |
8084 | |
8085 | # This sed command replaces #undef with comments. This is necessary, for | |
8086 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8087 | # on some systems where configure will not decide to define it. | |
b7026657 AC |
8088 | cat >>conftest.undefs <<\_ACEOF |
8089 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
8090 | _ACEOF | |
8091 | ||
8092 | # Break up conftest.defines because some shells have a limit on the size | |
8093 | # of here documents, and old seds have small limits too (100 cmds). | |
8094 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
8095 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
8096 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
8097 | echo ' :' >>$CONFIG_STATUS | |
8098 | rm -f conftest.tail | |
8099 | while grep . conftest.defines >/dev/null | |
8100 | do | |
8101 | # Write a limited-size here document to $tmp/defines.sed. | |
8102 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
8103 | # Speed up: don't consider the non `#define' lines. | |
8104 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
8105 | # Work around the forget-to-reset-the-flag bug. | |
8106 | echo 't clr' >>$CONFIG_STATUS | |
8107 | echo ': clr' >>$CONFIG_STATUS | |
8108 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
8109 | echo 'CEOF | |
8110 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
8111 | rm -f $tmp/in | |
8112 | mv $tmp/out $tmp/in | |
8113 | ' >>$CONFIG_STATUS | |
8114 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
8115 | rm -f conftest.defines | |
8116 | mv conftest.tail conftest.defines | |
8117 | done | |
8118 | rm -f conftest.defines | |
8119 | echo ' fi # grep' >>$CONFIG_STATUS | |
8120 | echo >>$CONFIG_STATUS | |
c906108c | 8121 | |
b7026657 AC |
8122 | # Break up conftest.undefs because some shells have a limit on the size |
8123 | # of here documents, and old seds have small limits too (100 cmds). | |
8124 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
c906108c | 8125 | rm -f conftest.tail |
b7026657 | 8126 | while grep . conftest.undefs >/dev/null |
c906108c | 8127 | do |
b7026657 AC |
8128 | # Write a limited-size here document to $tmp/undefs.sed. |
8129 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
8130 | # Speed up: don't consider the non `#undef' | |
8131 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
8132 | # Work around the forget-to-reset-the-flag bug. | |
8133 | echo 't clr' >>$CONFIG_STATUS | |
8134 | echo ': clr' >>$CONFIG_STATUS | |
8135 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
c906108c | 8136 | echo 'CEOF |
b7026657 AC |
8137 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
8138 | rm -f $tmp/in | |
8139 | mv $tmp/out $tmp/in | |
8140 | ' >>$CONFIG_STATUS | |
8141 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
8142 | rm -f conftest.undefs | |
8143 | mv conftest.tail conftest.undefs | |
8144 | done | |
8145 | rm -f conftest.undefs | |
8146 | ||
8147 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8148 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8149 | # use $as_me), people would be surprised to read: | |
8150 | # /* config.h. Generated by config.status. */ | |
8151 | if test x"$ac_file" = x-; then | |
8152 | echo "/* Generated by configure. */" >$tmp/config.h | |
c906108c | 8153 | else |
b7026657 | 8154 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
c906108c | 8155 | fi |
b7026657 AC |
8156 | cat $tmp/in >>$tmp/config.h |
8157 | rm -f $tmp/in | |
8158 | if test x"$ac_file" != x-; then | |
8159 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
8160 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
8161 | echo "$as_me: $ac_file is unchanged" >&6;} | |
8162 | else | |
8163 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8164 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8165 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8166 | X"$ac_file" : 'X\(//\)$' \| \ | |
8167 | X"$ac_file" : 'X\(/\)' \| \ | |
8168 | . : '\(.\)' 2>/dev/null || | |
8169 | echo X"$ac_file" | | |
8170 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8171 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8172 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8173 | /^X\(\/\).*/{ s//\1/; q; } | |
8174 | s/.*/./; q'` | |
8175 | { if $as_mkdir_p; then | |
8176 | mkdir -p "$ac_dir" | |
8177 | else | |
8178 | as_dir="$ac_dir" | |
8179 | as_dirs= | |
8180 | while test ! -d "$as_dir"; do | |
8181 | as_dirs="$as_dir $as_dirs" | |
8182 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8183 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8184 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8185 | X"$as_dir" : 'X\(//\)$' \| \ | |
8186 | X"$as_dir" : 'X\(/\)' \| \ | |
8187 | . : '\(.\)' 2>/dev/null || | |
8188 | echo X"$as_dir" | | |
8189 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8190 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8191 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8192 | /^X\(\/\).*/{ s//\1/; q; } | |
8193 | s/.*/./; q'` | |
8194 | done | |
8195 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8196 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8197 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8198 | { (exit 1); exit 1; }; }; } | |
c906108c | 8199 | |
b7026657 AC |
8200 | rm -f $ac_file |
8201 | mv $tmp/config.h $ac_file | |
8202 | fi | |
8203 | else | |
8204 | cat $tmp/config.h | |
8205 | rm -f $tmp/config.h | |
8206 | fi | |
8207 | done | |
8208 | _ACEOF | |
8209 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c906108c | 8210 | |
b7026657 AC |
8211 | # |
8212 | # CONFIG_LINKS section. | |
8213 | # | |
c906108c | 8214 | |
b7026657 AC |
8215 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
8216 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8217 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 8218 | |
b7026657 AC |
8219 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
8220 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
8221 | |
8222 | if test ! -r $srcdir/$ac_source; then | |
b7026657 AC |
8223 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
8224 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
8225 | { (exit 1); exit 1; }; } | |
c906108c SS |
8226 | fi |
8227 | rm -f $ac_dest | |
8228 | ||
8229 | # Make relative symlinks. | |
b7026657 AC |
8230 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
8231 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8232 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
8233 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8234 | X"$ac_dest" : 'X\(/\)' \| \ | |
8235 | . : '\(.\)' 2>/dev/null || | |
8236 | echo X"$ac_dest" | | |
8237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8238 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8239 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8240 | /^X\(\/\).*/{ s//\1/; q; } | |
8241 | s/.*/./; q'` | |
8242 | { if $as_mkdir_p; then | |
8243 | mkdir -p "$ac_dest_dir" | |
c906108c | 8244 | else |
b7026657 AC |
8245 | as_dir="$ac_dest_dir" |
8246 | as_dirs= | |
8247 | while test ! -d "$as_dir"; do | |
8248 | as_dirs="$as_dir $as_dirs" | |
8249 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8250 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8251 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8252 | X"$as_dir" : 'X\(//\)$' \| \ | |
8253 | X"$as_dir" : 'X\(/\)' \| \ | |
8254 | . : '\(.\)' 2>/dev/null || | |
8255 | echo X"$as_dir" | | |
8256 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8257 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8258 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8259 | /^X\(\/\).*/{ s//\1/; q; } | |
8260 | s/.*/./; q'` | |
8261 | done | |
8262 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8263 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
8264 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
8265 | { (exit 1); exit 1; }; }; } | |
8266 | ||
8267 | ac_builddir=. | |
8268 | ||
8269 | if test "$ac_dest_dir" != .; then | |
8270 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
8271 | # A "../" for each directory in $ac_dir_suffix. | |
8272 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8273 | else | |
8274 | ac_dir_suffix= ac_top_builddir= | |
8275 | fi | |
8276 | ||
8277 | case $srcdir in | |
8278 | .) # No --srcdir option. We are building in place. | |
8279 | ac_srcdir=. | |
8280 | if test -z "$ac_top_builddir"; then | |
8281 | ac_top_srcdir=. | |
8282 | else | |
8283 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8284 | fi ;; | |
8285 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8286 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8287 | ac_top_srcdir=$srcdir ;; | |
8288 | *) # Relative path. | |
8289 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8290 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8291 | esac | |
8292 | ||
8293 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8294 | # the directories may not exist. | |
8295 | case `pwd` in | |
8296 | .) ac_abs_builddir="$ac_dest_dir";; | |
8297 | *) | |
8298 | case "$ac_dest_dir" in | |
8299 | .) ac_abs_builddir=`pwd`;; | |
8300 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
8301 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
8302 | esac;; | |
8303 | esac | |
8304 | case $ac_abs_builddir in | |
8305 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8306 | *) | |
8307 | case ${ac_top_builddir}. in | |
8308 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8309 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8310 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8311 | esac;; | |
8312 | esac | |
8313 | case $ac_abs_builddir in | |
8314 | .) ac_abs_srcdir=$ac_srcdir;; | |
8315 | *) | |
8316 | case $ac_srcdir in | |
8317 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8318 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8319 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8320 | esac;; | |
8321 | esac | |
8322 | case $ac_abs_builddir in | |
8323 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8324 | *) | |
8325 | case $ac_top_srcdir in | |
8326 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8327 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8328 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8329 | esac;; | |
8330 | esac | |
c906108c | 8331 | |
b7026657 AC |
8332 | |
8333 | case $srcdir in | |
8334 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
8335 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | |
c906108c SS |
8336 | esac |
8337 | ||
b7026657 AC |
8338 | # Try a symlink, then a hard link, then a copy. |
8339 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
8340 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
8341 | cp -p $srcdir/$ac_source $ac_dest || | |
8342 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
8343 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
8344 | { (exit 1); exit 1; }; } | |
c906108c | 8345 | done |
b7026657 AC |
8346 | _ACEOF |
8347 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8348 | ||
8349 | # | |
8350 | # CONFIG_COMMANDS section. | |
8351 | # | |
8352 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
8353 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8354 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8355 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
8356 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8357 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
8358 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8359 | X"$ac_dest" : 'X\(/\)' \| \ | |
8360 | . : '\(.\)' 2>/dev/null || | |
8361 | echo X"$ac_dest" | | |
8362 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8363 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8364 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8365 | /^X\(\/\).*/{ s//\1/; q; } | |
8366 | s/.*/./; q'` | |
8367 | { if $as_mkdir_p; then | |
8368 | mkdir -p "$ac_dir" | |
8369 | else | |
8370 | as_dir="$ac_dir" | |
8371 | as_dirs= | |
8372 | while test ! -d "$as_dir"; do | |
8373 | as_dirs="$as_dir $as_dirs" | |
8374 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8375 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8376 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8377 | X"$as_dir" : 'X\(//\)$' \| \ | |
8378 | X"$as_dir" : 'X\(/\)' \| \ | |
8379 | . : '\(.\)' 2>/dev/null || | |
8380 | echo X"$as_dir" | | |
8381 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8382 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8383 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8384 | /^X\(\/\).*/{ s//\1/; q; } | |
8385 | s/.*/./; q'` | |
8386 | done | |
8387 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8388 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8389 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8390 | { (exit 1); exit 1; }; }; } | |
8391 | ||
8392 | ac_builddir=. | |
8393 | ||
8394 | if test "$ac_dir" != .; then | |
8395 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8396 | # A "../" for each directory in $ac_dir_suffix. | |
8397 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8398 | else | |
8399 | ac_dir_suffix= ac_top_builddir= | |
8400 | fi | |
c906108c | 8401 | |
b7026657 AC |
8402 | case $srcdir in |
8403 | .) # No --srcdir option. We are building in place. | |
8404 | ac_srcdir=. | |
8405 | if test -z "$ac_top_builddir"; then | |
8406 | ac_top_srcdir=. | |
8407 | else | |
8408 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8409 | fi ;; | |
8410 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8411 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8412 | ac_top_srcdir=$srcdir ;; | |
8413 | *) # Relative path. | |
8414 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8415 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8416 | esac | |
8417 | ||
8418 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8419 | # the directories may not exist. | |
8420 | case `pwd` in | |
8421 | .) ac_abs_builddir="$ac_dir";; | |
8422 | *) | |
8423 | case "$ac_dir" in | |
8424 | .) ac_abs_builddir=`pwd`;; | |
8425 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8426 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8427 | esac;; | |
8428 | esac | |
8429 | case $ac_abs_builddir in | |
8430 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8431 | *) | |
8432 | case ${ac_top_builddir}. in | |
8433 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8434 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8435 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8436 | esac;; | |
8437 | esac | |
8438 | case $ac_abs_builddir in | |
8439 | .) ac_abs_srcdir=$ac_srcdir;; | |
8440 | *) | |
8441 | case $ac_srcdir in | |
8442 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8443 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8444 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8445 | esac;; | |
8446 | esac | |
8447 | case $ac_abs_builddir in | |
8448 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8449 | *) | |
8450 | case $ac_top_srcdir in | |
8451 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8452 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8453 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8454 | esac;; | |
8455 | esac | |
8456 | ||
8457 | ||
8458 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
8459 | echo "$as_me: executing $ac_dest commands" >&6;} | |
8460 | case $ac_dest in | |
38f48d72 AC |
8461 | Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..." |
8462 | rm -f Makesim1.tmp Makesim2.tmp Makefile | |
8463 | sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp | |
8464 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp | |
8465 | sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \ | |
c906108c SS |
8466 | -e '/^## COMMON_POST_/ r Makesim2.tmp' \ |
8467 | <Makefile.sim >Makefile | |
38f48d72 | 8468 | rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp |
b7026657 | 8469 | ;; |
38f48d72 | 8470 | stamp-h ) echo > stamp-h ;; |
b7026657 AC |
8471 | esac |
8472 | done | |
8473 | _ACEOF | |
c906108c | 8474 | |
b7026657 AC |
8475 | cat >>$CONFIG_STATUS <<\_ACEOF |
8476 | ||
8477 | { (exit 0); exit 0; } | |
8478 | _ACEOF | |
c906108c | 8479 | chmod +x $CONFIG_STATUS |
b7026657 AC |
8480 | ac_clean_files=$ac_clean_files_save |
8481 | ||
8482 | ||
8483 | # configure is writing to config.log, and then calls config.status. | |
8484 | # config.status does its own redirection, appending to config.log. | |
8485 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8486 | # by configure, so config.status won't be able to write to it; its | |
8487 | # output is simply discarded. So we exec the FD to /dev/null, | |
8488 | # effectively closing config.log, so it can be properly (re)opened and | |
8489 | # appended to by config.status. When coming back to configure, we | |
8490 | # need to make the FD available again. | |
8491 | if test "$no_create" != yes; then | |
8492 | ac_cs_success=: | |
8493 | ac_config_status_args= | |
8494 | test "$silent" = yes && | |
8495 | ac_config_status_args="$ac_config_status_args --quiet" | |
8496 | exec 5>/dev/null | |
8497 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8498 | exec 5>>config.log | |
8499 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8500 | # would make configure fail if this is the last instruction. | |
8501 | $ac_cs_success || { (exit 1); exit 1; } | |
8502 | fi | |
c906108c SS |
8503 | |
8504 |