Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ab509236 | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
ab509236 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
252b5132 RH |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
13b2be9c DJ |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
ab509236 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
13b2be9c DJ |
23 | |
24 | # Support unset when possible. | |
ab509236 | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
13b2be9c DJ |
26 | as_unset=unset |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
ab509236 | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
13b2be9c DJ |
45 | eval $as_var=C; export $as_var |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
ab509236 | 221 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
222 | as_mkdir_p=false |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
ab509236 | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c DJ |
229 | |
230 | # Sed expression to map a string onto a valid variable name. | |
ab509236 | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c DJ |
232 | |
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 248 | |
13b2be9c DJ |
249 | exec 6>&1 |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
252b5132 | 254 | ac_default_prefix=/usr/local |
13b2be9c DJ |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="as.h" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
9e9b66a9 | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof BFDLIB OPCODES_LIB BFDVER_H ALL_OBJ_DEPS YACC LEX LEXLIB LEX_OUTPUT_ROOT 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBM LIBOBJS LTLIBOBJS' |
13b2be9c | 313 | ac_subst_files='' |
252b5132 RH |
314 | |
315 | # Initialize some variables set by options. | |
13b2be9c DJ |
316 | ac_init_help= |
317 | ac_init_version=false | |
252b5132 RH |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
13b2be9c | 320 | cache_file=/dev/null |
252b5132 | 321 | exec_prefix=NONE |
252b5132 | 322 | no_create= |
252b5132 RH |
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= | |
252b5132 RH |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
13b2be9c DJ |
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. | |
252b5132 RH |
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 | ||
252b5132 RH |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
252b5132 RH |
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 | ||
13b2be9c | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
13b2be9c | 367 | case $ac_option in |
252b5132 RH |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
13b2be9c | 372 | bindir=$ac_optarg ;; |
252b5132 RH |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
13b2be9c | 375 | ac_prev=build_alias ;; |
252b5132 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
13b2be9c | 377 | build_alias=$ac_optarg ;; |
252b5132 RH |
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=*) | |
13b2be9c DJ |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
252b5132 RH |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
13b2be9c | 393 | datadir=$ac_optarg ;; |
252b5132 RH |
394 | |
395 | -disable-* | --disable-*) | |
13b2be9c | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 397 | # Reject names that are not valid shell variable names. |
13b2be9c DJ |
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" ;; | |
252b5132 RH |
403 | |
404 | -enable-* | --enable-*) | |
13b2be9c | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 406 | # Reject names that are not valid shell variable names. |
13b2be9c DJ |
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"`;; | |
252b5132 RH |
413 | *) ac_optarg=yes ;; |
414 | esac | |
13b2be9c | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
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=*) | |
13b2be9c | 424 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
13b2be9c DJ |
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 ;; | |
252b5132 RH |
436 | |
437 | -host | --host | --hos | --ho) | |
13b2be9c | 438 | ac_prev=host_alias ;; |
252b5132 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
13b2be9c | 440 | host_alias=$ac_optarg ;; |
252b5132 RH |
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=*) | |
13b2be9c | 447 | includedir=$ac_optarg ;; |
252b5132 RH |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
13b2be9c | 452 | infodir=$ac_optarg ;; |
252b5132 RH |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
13b2be9c | 457 | libdir=$ac_optarg ;; |
252b5132 RH |
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=*) | |
13b2be9c | 464 | libexecdir=$ac_optarg ;; |
252b5132 RH |
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=*) | |
13b2be9c | 473 | localstatedir=$ac_optarg ;; |
252b5132 RH |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
13b2be9c | 478 | mandir=$ac_optarg ;; |
252b5132 RH |
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 \ | |
13b2be9c | 485 | | --no-cr | --no-c | -n) |
252b5132 RH |
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=*) | |
13b2be9c | 499 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
13b2be9c | 504 | prefix=$ac_optarg ;; |
252b5132 RH |
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=*) | |
13b2be9c | 511 | program_prefix=$ac_optarg ;; |
252b5132 RH |
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=*) | |
13b2be9c | 518 | program_suffix=$ac_optarg ;; |
252b5132 RH |
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=*) | |
13b2be9c | 535 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
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=*) | |
13b2be9c | 545 | sbindir=$ac_optarg ;; |
252b5132 RH |
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=*) | |
13b2be9c | 556 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
13b2be9c | 561 | site=$ac_optarg ;; |
76bff705 | 562 | |
252b5132 RH |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
13b2be9c | 566 | srcdir=$ac_optarg ;; |
252b5132 RH |
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=*) | |
13b2be9c | 573 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
13b2be9c | 576 | ac_prev=target_alias ;; |
252b5132 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
13b2be9c | 578 | target_alias=$ac_optarg ;; |
252b5132 RH |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
13b2be9c DJ |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
252b5132 RH |
585 | |
586 | -with-* | --with-*) | |
13b2be9c | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 588 | # Reject names that are not valid shell variable names. |
13b2be9c DJ |
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; }; } | |
252b5132 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
13b2be9c DJ |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
595 | *) ac_optarg=yes ;; |
596 | esac | |
13b2be9c | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
598 | |
599 | -without-* | --without-*) | |
13b2be9c | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 601 | # Reject names that are not valid shell variable names. |
13b2be9c DJ |
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" ;; | |
252b5132 RH |
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=*) | |
13b2be9c | 617 | x_includes=$ac_optarg ;; |
252b5132 RH |
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=*) | |
13b2be9c | 624 | x_libraries=$ac_optarg ;; |
252b5132 | 625 | |
13b2be9c DJ |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
252b5132 RH |
629 | ;; |
630 | ||
13b2be9c DJ |
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 | ||
252b5132 | 641 | *) |
13b2be9c DJ |
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} | |
252b5132 RH |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
13b2be9c DJ |
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; }; } | |
c8615825 | 656 | fi |
c8615825 | 657 | |
13b2be9c DJ |
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 | |
252b5132 | 668 | |
13b2be9c DJ |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ab509236 | 671 | localstatedir libdir includedir oldincludedir infodir mandir |
252b5132 | 672 | do |
13b2be9c DJ |
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; }; };; | |
252b5132 RH |
678 | esac |
679 | done | |
680 | ||
13b2be9c DJ |
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 | |
9b2b7d69 | 698 | |
13b2be9c DJ |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 703 | |
252b5132 RH |
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. | |
13b2be9c DJ |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
711 | X"$0" : 'X\(//\)[^/]' \| \ |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
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'` | |
252b5132 RH |
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 | |
13b2be9c DJ |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
252b5132 | 732 | else |
13b2be9c DJ |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
252b5132 RH |
735 | fi |
736 | fi | |
13b2be9c DJ |
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 | |
d6d788bd | 773 | |
13b2be9c DJ |
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. | |
9b2b7d69 | 782 | |
13b2be9c | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
9b2b7d69 | 784 | |
13b2be9c DJ |
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. | |
9b2b7d69 | 787 | |
13b2be9c | 788 | Defaults for the options are specified in brackets. |
9b2b7d69 | 789 | |
13b2be9c DJ |
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 | |
ab509236 | 806 | [$ac_default_prefix] |
13b2be9c | 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ab509236 | 808 | [PREFIX] |
9b2b7d69 | 809 | |
13b2be9c DJ |
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'. | |
9b2b7d69 | 814 | |
13b2be9c | 815 | For better control, use the options below. |
9b2b7d69 | 816 | |
13b2be9c DJ |
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 | |
9b2b7d69 | 831 | |
13b2be9c | 832 | cat <<\_ACEOF |
9b2b7d69 | 833 | |
13b2be9c DJ |
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 | |
9b2b7d69 | 838 | |
13b2be9c DJ |
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 | |
9b2b7d69 | 844 | fi |
9b2b7d69 | 845 | |
13b2be9c | 846 | if test -n "$ac_init_help"; then |
9b2b7d69 | 847 | |
13b2be9c | 848 | cat <<\_ACEOF |
9b2b7d69 | 849 | |
13b2be9c DJ |
850 | Optional Features: |
851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ab509236 L |
853 | --disable-dependency-tracking speeds up one-time build |
854 | --enable-dependency-tracking do not reject slow dependency extractors | |
13b2be9c DJ |
855 | --enable-shared=PKGS build shared libraries default=yes |
856 | --enable-static=PKGS build static libraries default=yes | |
857 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
858 | --disable-libtool-lock avoid locking (might break parallel builds) | |
859 | --enable-bfd-assembler use BFD back end for writing object files | |
860 | targets alternative target configurations besides the primary | |
861 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library | |
569acd2c | 862 | --enable-werror treat compile warnings as errors |
9e9b66a9 | 863 | --enable-build-warnings Enable build-time compiler warnings |
13b2be9c | 864 | --disable-nls do not use Native Language Support |
ab509236 L |
865 | --enable-maintainer-mode enable make rules and dependencies not useful |
866 | (and sometimes confusing) to the casual installer | |
9b2b7d69 | 867 | |
13b2be9c DJ |
868 | Optional Packages: |
869 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
870 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
871 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
872 | --with-pic try to use only PIC/non-PIC objects default=use both | |
873 | --with-included-gettext use the GNU gettext library included here | |
9b2b7d69 | 874 | |
13b2be9c DJ |
875 | Some influential environment variables: |
876 | CC C compiler command | |
877 | CFLAGS C compiler flags | |
878 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
879 | nonstandard directory <lib dir> | |
880 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
881 | headers in a nonstandard directory <include dir> | |
882 | CPP C preprocessor | |
883 | ||
884 | Use these variables to override the choices made by `configure' or to help | |
885 | it to find libraries and programs with nonstandard names/locations. | |
886 | ||
887 | _ACEOF | |
9b2b7d69 | 888 | fi |
9b2b7d69 | 889 | |
13b2be9c DJ |
890 | if test "$ac_init_help" = "recursive"; then |
891 | # If there are subdirs, report their specific --help. | |
892 | ac_popdir=`pwd` | |
893 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
894 | test -d $ac_dir || continue | |
895 | ac_builddir=. | |
896 | ||
897 | if test "$ac_dir" != .; then | |
898 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
899 | # A "../" for each directory in $ac_dir_suffix. | |
900 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
901 | else | |
902 | ac_dir_suffix= ac_top_builddir= | |
903 | fi | |
9b2b7d69 | 904 | |
13b2be9c DJ |
905 | case $srcdir in |
906 | .) # No --srcdir option. We are building in place. | |
907 | ac_srcdir=. | |
908 | if test -z "$ac_top_builddir"; then | |
909 | ac_top_srcdir=. | |
910 | else | |
911 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
c8615825 | 912 | fi ;; |
13b2be9c DJ |
913 | [\\/]* | ?:[\\/]* ) # Absolute path. |
914 | ac_srcdir=$srcdir$ac_dir_suffix; | |
915 | ac_top_srcdir=$srcdir ;; | |
916 | *) # Relative path. | |
917 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
918 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
c8615825 | 919 | esac |
ab509236 L |
920 | |
921 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
922 | # the directories may not exist. | |
923 | case `pwd` in | |
924 | .) ac_abs_builddir="$ac_dir";; | |
925 | *) | |
926 | case "$ac_dir" in | |
927 | .) ac_abs_builddir=`pwd`;; | |
928 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
929 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
930 | esac;; | |
931 | esac | |
932 | case $ac_abs_builddir in | |
933 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
934 | *) | |
935 | case ${ac_top_builddir}. in | |
936 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
937 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
938 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
939 | esac;; | |
940 | esac | |
941 | case $ac_abs_builddir in | |
942 | .) ac_abs_srcdir=$ac_srcdir;; | |
943 | *) | |
944 | case $ac_srcdir in | |
945 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
946 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
947 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
948 | esac;; | |
949 | esac | |
950 | case $ac_abs_builddir in | |
951 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
952 | *) | |
953 | case $ac_top_srcdir in | |
954 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
955 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
956 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
957 | esac;; | |
958 | esac | |
13b2be9c DJ |
959 | |
960 | cd $ac_dir | |
961 | # Check for guested configure; otherwise get Cygnus style configure. | |
962 | if test -f $ac_srcdir/configure.gnu; then | |
963 | echo | |
964 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
965 | elif test -f $ac_srcdir/configure; then | |
966 | echo | |
967 | $SHELL $ac_srcdir/configure --help=recursive | |
968 | elif test -f $ac_srcdir/configure.ac || | |
ab509236 | 969 | test -f $ac_srcdir/configure.in; then |
13b2be9c DJ |
970 | echo |
971 | $ac_configure --help | |
972 | else | |
973 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
974 | fi | |
1ad12f97 | 975 | cd $ac_popdir |
13b2be9c DJ |
976 | done |
977 | fi | |
6840198f | 978 | |
13b2be9c DJ |
979 | test -n "$ac_init_help" && exit 0 |
980 | if $ac_init_version; then | |
981 | cat <<\_ACEOF | |
c8615825 | 982 | |
ab509236 | 983 | Copyright (C) 2003 Free Software Foundation, Inc. |
13b2be9c DJ |
984 | This configure script is free software; the Free Software Foundation |
985 | gives unlimited permission to copy, distribute and modify it. | |
986 | _ACEOF | |
987 | exit 0 | |
988 | fi | |
989 | exec 5>config.log | |
990 | cat >&5 <<_ACEOF | |
991 | This file contains any messages produced by compilers while | |
992 | running configure, to aid debugging if configure makes a mistake. | |
c8615825 | 993 | |
13b2be9c | 994 | It was created by $as_me, which was |
ab509236 | 995 | generated by GNU Autoconf 2.59. Invocation command line was |
c8615825 | 996 | |
13b2be9c | 997 | $ $0 $@ |
c8615825 | 998 | |
13b2be9c DJ |
999 | _ACEOF |
1000 | { | |
1001 | cat <<_ASUNAME | |
1002 | ## --------- ## | |
1003 | ## Platform. ## | |
1004 | ## --------- ## | |
1005 | ||
1006 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1007 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1008 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1009 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1010 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1011 | ||
1012 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1013 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1014 | ||
1015 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1016 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1017 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1018 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1019 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1020 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1021 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1022 | ||
1023 | _ASUNAME | |
1024 | ||
1025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1026 | for as_dir in $PATH | |
1027 | do | |
1028 | IFS=$as_save_IFS | |
1029 | test -z "$as_dir" && as_dir=. | |
1030 | echo "PATH: $as_dir" | |
1031 | done | |
9b2b7d69 | 1032 | |
13b2be9c | 1033 | } >&5 |
6840198f | 1034 | |
13b2be9c | 1035 | cat >&5 <<_ACEOF |
c8615825 | 1036 | |
9b2b7d69 | 1037 | |
13b2be9c DJ |
1038 | ## ----------- ## |
1039 | ## Core tests. ## | |
1040 | ## ----------- ## | |
87ccc1b0 | 1041 | |
13b2be9c | 1042 | _ACEOF |
9b2b7d69 | 1043 | |
13b2be9c DJ |
1044 | |
1045 | # Keep a trace of the command line. | |
1046 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1047 | # Strip out --silent because we don't want to record it for future runs. | |
1048 | # Also quote any args containing shell meta-characters. | |
1049 | # Make two passes to allow for proper duplicate-argument suppression. | |
1050 | ac_configure_args= | |
1051 | ac_configure_args0= | |
1052 | ac_configure_args1= | |
1053 | ac_sep= | |
1054 | ac_must_keep_next=false | |
1055 | for ac_pass in 1 2 | |
1056 | do | |
1057 | for ac_arg | |
1058 | do | |
1059 | case $ac_arg in | |
1060 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1061 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1062 | | -silent | --silent | --silen | --sile | --sil) | |
1063 | continue ;; | |
1064 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1065 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1066 | esac | |
1067 | case $ac_pass in | |
1068 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1069 | 2) | |
1070 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1071 | if test $ac_must_keep_next = true; then | |
ab509236 | 1072 | ac_must_keep_next=false # Got value, back to normal. |
13b2be9c | 1073 | else |
ab509236 L |
1074 | case $ac_arg in |
1075 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1076 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1077 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1078 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1079 | case "$ac_configure_args0 " in | |
1080 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1081 | esac | |
1082 | ;; | |
1083 | -* ) ac_must_keep_next=true ;; | |
1084 | esac | |
13b2be9c DJ |
1085 | fi |
1086 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1087 | # Get rid of the leading space. | |
1088 | ac_sep=" " | |
c8615825 AM |
1089 | ;; |
1090 | esac | |
1091 | done | |
13b2be9c DJ |
1092 | done |
1093 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1094 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1095 | ||
1096 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1097 | # config.log. We remove comments because anyway the quotes in there | |
1098 | # would cause problems or look ugly. | |
1099 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1100 | # such as our DU 5.0 friend, will then `close' the trap. | |
1101 | trap 'exit_status=$? | |
1102 | # Save into config.log some information that might help in debugging. | |
1103 | { | |
1104 | echo | |
1105 | ||
1106 | cat <<\_ASBOX | |
1107 | ## ---------------- ## | |
1108 | ## Cache variables. ## | |
1109 | ## ---------------- ## | |
1110 | _ASBOX | |
1111 | echo | |
1112 | # The following way of writing the cache mishandles newlines in values, | |
1113 | { | |
1114 | (set) 2>&1 | | |
1115 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1116 | *ac_space=\ *) | |
1117 | sed -n \ | |
ab509236 L |
1118 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1119 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
13b2be9c DJ |
1120 | ;; |
1121 | *) | |
1122 | sed -n \ | |
ab509236 | 1123 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
13b2be9c DJ |
1124 | ;; |
1125 | esac; | |
1126 | } | |
1127 | echo | |
1128 | ||
1129 | cat <<\_ASBOX | |
1130 | ## ----------------- ## | |
1131 | ## Output variables. ## | |
1132 | ## ----------------- ## | |
1133 | _ASBOX | |
1134 | echo | |
1135 | for ac_var in $ac_subst_vars | |
1136 | do | |
1137 | eval ac_val=$`echo $ac_var` | |
1138 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1139 | done | sort | |
1140 | echo | |
1141 | ||
1142 | if test -n "$ac_subst_files"; then | |
1143 | cat <<\_ASBOX | |
1144 | ## ------------- ## | |
1145 | ## Output files. ## | |
1146 | ## ------------- ## | |
1147 | _ASBOX | |
1148 | echo | |
1149 | for ac_var in $ac_subst_files | |
1150 | do | |
1151 | eval ac_val=$`echo $ac_var` | |
ab509236 | 1152 | echo "$ac_var='"'"'$ac_val'"'"'" |
13b2be9c DJ |
1153 | done | sort |
1154 | echo | |
1155 | fi | |
1156 | ||
1157 | if test -s confdefs.h; then | |
1158 | cat <<\_ASBOX | |
1159 | ## ----------- ## | |
1160 | ## confdefs.h. ## | |
1161 | ## ----------- ## | |
1162 | _ASBOX | |
1163 | echo | |
1164 | sed "/^$/d" confdefs.h | sort | |
1165 | echo | |
1166 | fi | |
1167 | test "$ac_signal" != 0 && | |
1168 | echo "$as_me: caught signal $ac_signal" | |
1169 | echo "$as_me: exit $exit_status" | |
1170 | } >&5 | |
ab509236 | 1171 | rm -f core *.core && |
13b2be9c DJ |
1172 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1173 | exit $exit_status | |
1174 | ' 0 | |
1175 | for ac_signal in 1 2 13 15; do | |
1176 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1177 | done | |
1178 | ac_signal=0 | |
1179 | ||
1180 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1181 | rm -rf conftest* confdefs.h | |
1182 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1183 | echo >confdefs.h | |
1184 | ||
1185 | # Predefined preprocessor variables. | |
1186 | ||
1187 | cat >>confdefs.h <<_ACEOF | |
1188 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1189 | _ACEOF | |
1190 | ||
1191 | ||
1192 | cat >>confdefs.h <<_ACEOF | |
1193 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1194 | _ACEOF | |
1195 | ||
1196 | ||
1197 | cat >>confdefs.h <<_ACEOF | |
1198 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1199 | _ACEOF | |
1200 | ||
1201 | ||
1202 | cat >>confdefs.h <<_ACEOF | |
1203 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1204 | _ACEOF | |
1205 | ||
1206 | ||
1207 | cat >>confdefs.h <<_ACEOF | |
1208 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1209 | _ACEOF | |
1210 | ||
1211 | ||
1212 | # Let the site file select an alternate cache file if it wants to. | |
1213 | # Prefer explicitly selected file to automatically selected ones. | |
1214 | if test -z "$CONFIG_SITE"; then | |
1215 | if test "x$prefix" != xNONE; then | |
1216 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1217 | else | |
1218 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1219 | fi | |
1220 | fi | |
1221 | for ac_site_file in $CONFIG_SITE; do | |
1222 | if test -r "$ac_site_file"; then | |
1223 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1224 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1225 | sed 's/^/| /' "$ac_site_file" >&5 | |
1226 | . "$ac_site_file" | |
1227 | fi | |
1228 | done | |
1229 | ||
1230 | if test -r "$cache_file"; then | |
1231 | # Some versions of bash will fail to source /dev/null (special | |
1232 | # files actually), so we avoid doing that. | |
1233 | if test -f "$cache_file"; then | |
1234 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1235 | echo "$as_me: loading cache $cache_file" >&6;} | |
1236 | case $cache_file in | |
1237 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1238 | *) . ./$cache_file;; | |
1239 | esac | |
1240 | fi | |
1241 | else | |
1242 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1243 | echo "$as_me: creating cache $cache_file" >&6;} | |
1244 | >$cache_file | |
1245 | fi | |
1246 | ||
1247 | # Check that the precious variables saved in the cache have kept the same | |
1248 | # value. | |
1249 | ac_cache_corrupted=false | |
1250 | for ac_var in `(set) 2>&1 | | |
ab509236 | 1251 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
13b2be9c DJ |
1252 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1253 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1254 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1255 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1256 | case $ac_old_set,$ac_new_set in | |
1257 | set,) | |
1258 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1259 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1260 | ac_cache_corrupted=: ;; | |
1261 | ,set) | |
1262 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1263 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1264 | ac_cache_corrupted=: ;; | |
1265 | ,);; | |
1266 | *) | |
1267 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ab509236 | 1268 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
13b2be9c | 1269 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ab509236 | 1270 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
13b2be9c | 1271 | echo "$as_me: former value: $ac_old_val" >&2;} |
ab509236 | 1272 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
13b2be9c | 1273 | echo "$as_me: current value: $ac_new_val" >&2;} |
ab509236 | 1274 | ac_cache_corrupted=: |
13b2be9c DJ |
1275 | fi;; |
1276 | esac | |
1277 | # Pass precious variables to config.status. | |
1278 | if test "$ac_new_set" = set; then | |
1279 | case $ac_new_val in | |
1280 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1281 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1282 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1283 | esac | |
1284 | case " $ac_configure_args " in | |
1285 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1286 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1287 | esac | |
1288 | fi | |
1289 | done | |
1290 | if $ac_cache_corrupted; then | |
1291 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1292 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1293 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1294 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1295 | { (exit 1); exit 1; }; } | |
1296 | fi | |
1297 | ||
1298 | ac_ext=c | |
1299 | ac_cpp='$CPP $CPPFLAGS' | |
1300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ac_aux_dir= | |
1324 | for ac_dir in .. $srcdir/..; do | |
1325 | if test -f $ac_dir/install-sh; then | |
1326 | ac_aux_dir=$ac_dir | |
1327 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1328 | break | |
1329 | elif test -f $ac_dir/install.sh; then | |
1330 | ac_aux_dir=$ac_dir | |
1331 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1332 | break | |
1333 | elif test -f $ac_dir/shtool; then | |
1334 | ac_aux_dir=$ac_dir | |
1335 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1336 | break | |
1337 | fi | |
1338 | done | |
1339 | if test -z "$ac_aux_dir"; then | |
1340 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5 | |
1341 | echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;} | |
1342 | { (exit 1); exit 1; }; } | |
1343 | fi | |
1344 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1345 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1346 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1347 | ||
1348 | # Make sure we can run config.sub. | |
1349 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1350 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1351 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1352 | { (exit 1); exit 1; }; } | |
1353 | ||
1354 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1355 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1356 | if test "${ac_cv_build+set}" = set; then | |
1357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1358 | else | |
1359 | ac_cv_build_alias=$build_alias | |
1360 | test -z "$ac_cv_build_alias" && | |
1361 | ac_cv_build_alias=`$ac_config_guess` | |
1362 | test -z "$ac_cv_build_alias" && | |
1363 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1364 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1365 | { (exit 1); exit 1; }; } | |
1366 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1367 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1368 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1369 | { (exit 1); exit 1; }; } | |
1370 | ||
1371 | fi | |
1372 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1373 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1374 | build=$ac_cv_build | |
1375 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1376 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1377 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1378 | ||
1379 | ||
1380 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1381 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1382 | if test "${ac_cv_host+set}" = set; then | |
1383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1384 | else | |
1385 | ac_cv_host_alias=$host_alias | |
1386 | test -z "$ac_cv_host_alias" && | |
1387 | ac_cv_host_alias=$ac_cv_build_alias | |
1388 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1389 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1390 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1391 | { (exit 1); exit 1; }; } | |
1392 | ||
1393 | fi | |
1394 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1395 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1396 | host=$ac_cv_host | |
1397 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1398 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1399 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1400 | ||
1401 | ||
1402 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1403 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1404 | if test "${ac_cv_target+set}" = set; then | |
1405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1406 | else | |
1407 | ac_cv_target_alias=$target_alias | |
1408 | test "x$ac_cv_target_alias" = "x" && | |
1409 | ac_cv_target_alias=$ac_cv_host_alias | |
1410 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1411 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1412 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1413 | { (exit 1); exit 1; }; } | |
1414 | ||
1415 | fi | |
1416 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1417 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1418 | target=$ac_cv_target | |
1419 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1420 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1421 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1422 | ||
1423 | ||
1424 | # The aliases save the names the user supplied, while $host etc. | |
1425 | # will get canonicalized. | |
1426 | test -n "$target_alias" && | |
1427 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1428 | NONENONEs,x,x, && | |
1429 | program_prefix=${target_alias}- | |
1430 | ac_ext=c | |
1431 | ac_cpp='$CPP $CPPFLAGS' | |
1432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1435 | if test -n "$ac_tool_prefix"; then | |
1436 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1437 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1438 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1440 | if test "${ac_cv_prog_CC+set}" = set; then | |
1441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1442 | else | |
1443 | if test -n "$CC"; then | |
1444 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1445 | else | |
1446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1447 | for as_dir in $PATH | |
1448 | do | |
1449 | IFS=$as_save_IFS | |
1450 | test -z "$as_dir" && as_dir=. | |
1451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1452 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1453 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1454 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1455 | break 2 | |
1456 | fi | |
1457 | done | |
1458 | done | |
1459 | ||
1460 | fi | |
1461 | fi | |
1462 | CC=$ac_cv_prog_CC | |
1463 | if test -n "$CC"; then | |
1464 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1465 | echo "${ECHO_T}$CC" >&6 | |
1466 | else | |
1467 | echo "$as_me:$LINENO: result: no" >&5 | |
1468 | echo "${ECHO_T}no" >&6 | |
1469 | fi | |
1470 | ||
1471 | fi | |
1472 | if test -z "$ac_cv_prog_CC"; then | |
1473 | ac_ct_CC=$CC | |
1474 | # Extract the first word of "gcc", so it can be a program name with args. | |
1475 | set dummy gcc; ac_word=$2 | |
1476 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1478 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1480 | else | |
1481 | if test -n "$ac_ct_CC"; then | |
1482 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1483 | else | |
1484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1485 | for as_dir in $PATH | |
1486 | do | |
1487 | IFS=$as_save_IFS | |
1488 | test -z "$as_dir" && as_dir=. | |
1489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1490 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1491 | ac_cv_prog_ac_ct_CC="gcc" | |
1492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1493 | break 2 | |
1494 | fi | |
1495 | done | |
1496 | done | |
1497 | ||
1498 | fi | |
1499 | fi | |
1500 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1501 | if test -n "$ac_ct_CC"; then | |
1502 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1503 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1504 | else | |
1505 | echo "$as_me:$LINENO: result: no" >&5 | |
1506 | echo "${ECHO_T}no" >&6 | |
1507 | fi | |
1508 | ||
1509 | CC=$ac_ct_CC | |
1510 | else | |
1511 | CC="$ac_cv_prog_CC" | |
1512 | fi | |
1513 | ||
1514 | if test -z "$CC"; then | |
1515 | if test -n "$ac_tool_prefix"; then | |
1516 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1517 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1518 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1520 | if test "${ac_cv_prog_CC+set}" = set; then | |
1521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1522 | else | |
1523 | if test -n "$CC"; then | |
1524 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1525 | else | |
1526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1527 | for as_dir in $PATH | |
1528 | do | |
1529 | IFS=$as_save_IFS | |
1530 | test -z "$as_dir" && as_dir=. | |
1531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1532 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1533 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1535 | break 2 | |
1536 | fi | |
1537 | done | |
1538 | done | |
1539 | ||
1540 | fi | |
1541 | fi | |
1542 | CC=$ac_cv_prog_CC | |
1543 | if test -n "$CC"; then | |
1544 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1545 | echo "${ECHO_T}$CC" >&6 | |
1546 | else | |
1547 | echo "$as_me:$LINENO: result: no" >&5 | |
1548 | echo "${ECHO_T}no" >&6 | |
1549 | fi | |
1550 | ||
1551 | fi | |
1552 | if test -z "$ac_cv_prog_CC"; then | |
1553 | ac_ct_CC=$CC | |
1554 | # Extract the first word of "cc", so it can be a program name with args. | |
1555 | set dummy cc; ac_word=$2 | |
1556 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1558 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1560 | else | |
1561 | if test -n "$ac_ct_CC"; then | |
1562 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1563 | else | |
1564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1565 | for as_dir in $PATH | |
1566 | do | |
1567 | IFS=$as_save_IFS | |
1568 | test -z "$as_dir" && as_dir=. | |
1569 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1570 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1571 | ac_cv_prog_ac_ct_CC="cc" | |
1572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1573 | break 2 | |
1574 | fi | |
1575 | done | |
1576 | done | |
1577 | ||
1578 | fi | |
1579 | fi | |
1580 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1581 | if test -n "$ac_ct_CC"; then | |
1582 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1583 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1584 | else | |
1585 | echo "$as_me:$LINENO: result: no" >&5 | |
1586 | echo "${ECHO_T}no" >&6 | |
1587 | fi | |
1588 | ||
1589 | CC=$ac_ct_CC | |
1590 | else | |
1591 | CC="$ac_cv_prog_CC" | |
1592 | fi | |
1593 | ||
1594 | fi | |
1595 | if test -z "$CC"; then | |
1596 | # Extract the first word of "cc", so it can be a program name with args. | |
1597 | set dummy cc; ac_word=$2 | |
1598 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1600 | if test "${ac_cv_prog_CC+set}" = set; then | |
1601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1602 | else | |
1603 | if test -n "$CC"; then | |
1604 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1605 | else | |
1606 | ac_prog_rejected=no | |
1607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1608 | for as_dir in $PATH | |
1609 | do | |
1610 | IFS=$as_save_IFS | |
1611 | test -z "$as_dir" && as_dir=. | |
1612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1613 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1614 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1615 | ac_prog_rejected=yes | |
1616 | continue | |
1617 | fi | |
1618 | ac_cv_prog_CC="cc" | |
1619 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1620 | break 2 | |
1621 | fi | |
1622 | done | |
1623 | done | |
1624 | ||
1625 | if test $ac_prog_rejected = yes; then | |
1626 | # We found a bogon in the path, so make sure we never use it. | |
1627 | set dummy $ac_cv_prog_CC | |
1628 | shift | |
1629 | if test $# != 0; then | |
1630 | # We chose a different compiler from the bogus one. | |
1631 | # However, it has the same basename, so the bogon will be chosen | |
1632 | # first if we set CC to just the basename; use the full file name. | |
1633 | shift | |
1634 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1635 | fi | |
1636 | fi | |
1637 | fi | |
1638 | fi | |
1639 | CC=$ac_cv_prog_CC | |
1640 | if test -n "$CC"; then | |
1641 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1642 | echo "${ECHO_T}$CC" >&6 | |
1643 | else | |
1644 | echo "$as_me:$LINENO: result: no" >&5 | |
1645 | echo "${ECHO_T}no" >&6 | |
1646 | fi | |
1647 | ||
1648 | fi | |
1649 | if test -z "$CC"; then | |
1650 | if test -n "$ac_tool_prefix"; then | |
1651 | for ac_prog in cl | |
1652 | do | |
1653 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1654 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1655 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1657 | if test "${ac_cv_prog_CC+set}" = set; then | |
1658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1659 | else | |
1660 | if test -n "$CC"; then | |
1661 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1662 | else | |
1663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1664 | for as_dir in $PATH | |
1665 | do | |
1666 | IFS=$as_save_IFS | |
1667 | test -z "$as_dir" && as_dir=. | |
1668 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1669 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1670 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1671 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1672 | break 2 | |
1673 | fi | |
1674 | done | |
1675 | done | |
1676 | ||
1677 | fi | |
1678 | fi | |
1679 | CC=$ac_cv_prog_CC | |
1680 | if test -n "$CC"; then | |
1681 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1682 | echo "${ECHO_T}$CC" >&6 | |
1683 | else | |
1684 | echo "$as_me:$LINENO: result: no" >&5 | |
1685 | echo "${ECHO_T}no" >&6 | |
1686 | fi | |
1687 | ||
1688 | test -n "$CC" && break | |
1689 | done | |
1690 | fi | |
1691 | if test -z "$CC"; then | |
1692 | ac_ct_CC=$CC | |
1693 | for ac_prog in cl | |
1694 | do | |
1695 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1696 | set dummy $ac_prog; ac_word=$2 | |
1697 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1699 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1701 | else | |
1702 | if test -n "$ac_ct_CC"; then | |
1703 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1704 | else | |
1705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1706 | for as_dir in $PATH | |
1707 | do | |
1708 | IFS=$as_save_IFS | |
1709 | test -z "$as_dir" && as_dir=. | |
1710 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1711 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1712 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1714 | break 2 | |
1715 | fi | |
1716 | done | |
1717 | done | |
1718 | ||
1719 | fi | |
1720 | fi | |
1721 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1722 | if test -n "$ac_ct_CC"; then | |
1723 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1724 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1725 | else | |
1726 | echo "$as_me:$LINENO: result: no" >&5 | |
1727 | echo "${ECHO_T}no" >&6 | |
1728 | fi | |
1729 | ||
1730 | test -n "$ac_ct_CC" && break | |
1731 | done | |
1732 | ||
1733 | CC=$ac_ct_CC | |
1734 | fi | |
1735 | ||
1736 | fi | |
1737 | ||
1738 | ||
1739 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1740 | See \`config.log' for more details." >&5 | |
1741 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1742 | See \`config.log' for more details." >&2;} | |
1743 | { (exit 1); exit 1; }; } | |
1744 | ||
1745 | # Provide some information about the compiler. | |
1746 | echo "$as_me:$LINENO:" \ | |
1747 | "checking for C compiler version" >&5 | |
1748 | ac_compiler=`set X $ac_compile; echo $2` | |
1749 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1750 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1751 | ac_status=$? | |
1752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1753 | (exit $ac_status); } | |
1754 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1755 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1756 | ac_status=$? | |
1757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1758 | (exit $ac_status); } | |
1759 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1760 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1761 | ac_status=$? | |
1762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1763 | (exit $ac_status); } | |
1764 | ||
1765 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
1766 | /* confdefs.h. */ |
1767 | _ACEOF | |
1768 | cat confdefs.h >>conftest.$ac_ext | |
1769 | cat >>conftest.$ac_ext <<_ACEOF | |
1770 | /* end confdefs.h. */ | |
1771 | ||
1772 | int | |
1773 | main () | |
1774 | { | |
1775 | ||
1776 | ; | |
1777 | return 0; | |
1778 | } | |
1779 | _ACEOF | |
1780 | ac_clean_files_save=$ac_clean_files | |
1781 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1782 | # Try to create an executable without -o first, disregard a.out. | |
1783 | # It will help us diagnose broken compilers, and finding out an intuition | |
1784 | # of exeext. | |
ab509236 L |
1785 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1786 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
13b2be9c DJ |
1787 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1788 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1789 | (eval $ac_link_default) 2>&5 | |
1790 | ac_status=$? | |
1791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1792 | (exit $ac_status); }; then | |
1793 | # Find the output, starting from the most likely. This scheme is | |
1794 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1795 | # resort. | |
1796 | ||
1797 | # Be careful to initialize this variable, since it used to be cached. | |
1798 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1799 | ac_cv_exeext= | |
1800 | # b.out is created by i960 compilers. | |
1801 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1802 | do | |
1803 | test -f "$ac_file" || continue | |
1804 | case $ac_file in | |
1805 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ab509236 | 1806 | ;; |
13b2be9c | 1807 | conftest.$ac_ext ) |
ab509236 L |
1808 | # This is the source file. |
1809 | ;; | |
13b2be9c | 1810 | [ab].out ) |
ab509236 L |
1811 | # We found the default executable, but exeext='' is most |
1812 | # certainly right. | |
1813 | break;; | |
13b2be9c | 1814 | *.* ) |
ab509236 L |
1815 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1816 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1817 | # but it would be cool to find out if it's true. Does anybody | |
1818 | # maintain Libtool? --akim. | |
1819 | export ac_cv_exeext | |
1820 | break;; | |
13b2be9c | 1821 | * ) |
ab509236 | 1822 | break;; |
13b2be9c DJ |
1823 | esac |
1824 | done | |
1825 | else | |
1826 | echo "$as_me: failed program was:" >&5 | |
1827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1828 | ||
1829 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1830 | See \`config.log' for more details." >&5 | |
1831 | echo "$as_me: error: C compiler cannot create executables | |
1832 | See \`config.log' for more details." >&2;} | |
1833 | { (exit 77); exit 77; }; } | |
1834 | fi | |
1835 | ||
1836 | ac_exeext=$ac_cv_exeext | |
1837 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1838 | echo "${ECHO_T}$ac_file" >&6 | |
1839 | ||
1840 | # Check the compiler produces executables we can run. If not, either | |
1841 | # the compiler is broken, or we cross compile. | |
1842 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1843 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1844 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1845 | # If not cross compiling, check that we can run a simple program. | |
1846 | if test "$cross_compiling" != yes; then | |
1847 | if { ac_try='./$ac_file' | |
1848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1849 | (eval $ac_try) 2>&5 | |
1850 | ac_status=$? | |
1851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1852 | (exit $ac_status); }; }; then | |
1853 | cross_compiling=no | |
1854 | else | |
1855 | if test "$cross_compiling" = maybe; then | |
1856 | cross_compiling=yes | |
1857 | else | |
1858 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1859 | If you meant to cross compile, use \`--host'. | |
1860 | See \`config.log' for more details." >&5 | |
1861 | echo "$as_me: error: cannot run C compiled programs. | |
1862 | If you meant to cross compile, use \`--host'. | |
1863 | See \`config.log' for more details." >&2;} | |
1864 | { (exit 1); exit 1; }; } | |
1865 | fi | |
1866 | fi | |
1867 | fi | |
1868 | echo "$as_me:$LINENO: result: yes" >&5 | |
1869 | echo "${ECHO_T}yes" >&6 | |
1870 | ||
1871 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1872 | ac_clean_files=$ac_clean_files_save | |
1873 | # Check the compiler produces executables we can run. If not, either | |
1874 | # the compiler is broken, or we cross compile. | |
1875 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1876 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1877 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1878 | echo "${ECHO_T}$cross_compiling" >&6 | |
1879 | ||
1880 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1881 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1883 | (eval $ac_link) 2>&5 | |
1884 | ac_status=$? | |
1885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1886 | (exit $ac_status); }; then | |
1887 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1888 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1889 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1890 | # `rm'. | |
1891 | for ac_file in conftest.exe conftest conftest.*; do | |
1892 | test -f "$ac_file" || continue | |
1893 | case $ac_file in | |
1894 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1895 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ab509236 L |
1896 | export ac_cv_exeext |
1897 | break;; | |
13b2be9c DJ |
1898 | * ) break;; |
1899 | esac | |
1900 | done | |
1901 | else | |
1902 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1903 | See \`config.log' for more details." >&5 | |
1904 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1905 | See \`config.log' for more details." >&2;} | |
1906 | { (exit 1); exit 1; }; } | |
1907 | fi | |
1908 | ||
1909 | rm -f conftest$ac_cv_exeext | |
1910 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1911 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1912 | ||
1913 | rm -f conftest.$ac_ext | |
1914 | EXEEXT=$ac_cv_exeext | |
1915 | ac_exeext=$EXEEXT | |
1916 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1917 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1918 | if test "${ac_cv_objext+set}" = set; then | |
1919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1920 | else | |
1921 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
1922 | /* confdefs.h. */ |
1923 | _ACEOF | |
1924 | cat confdefs.h >>conftest.$ac_ext | |
1925 | cat >>conftest.$ac_ext <<_ACEOF | |
1926 | /* end confdefs.h. */ | |
1927 | ||
1928 | int | |
1929 | main () | |
1930 | { | |
1931 | ||
1932 | ; | |
1933 | return 0; | |
1934 | } | |
1935 | _ACEOF | |
1936 | rm -f conftest.o conftest.obj | |
1937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1938 | (eval $ac_compile) 2>&5 | |
1939 | ac_status=$? | |
1940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1941 | (exit $ac_status); }; then | |
1942 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1943 | case $ac_file in | |
1944 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1945 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1946 | break;; | |
1947 | esac | |
1948 | done | |
1949 | else | |
1950 | echo "$as_me: failed program was:" >&5 | |
1951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1952 | ||
1953 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1954 | See \`config.log' for more details." >&5 | |
1955 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1956 | See \`config.log' for more details." >&2;} | |
1957 | { (exit 1); exit 1; }; } | |
1958 | fi | |
1959 | ||
1960 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1961 | fi | |
1962 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1963 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1964 | OBJEXT=$ac_cv_objext | |
1965 | ac_objext=$OBJEXT | |
1966 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1967 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1968 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1970 | else | |
1971 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
1972 | /* confdefs.h. */ |
1973 | _ACEOF | |
1974 | cat confdefs.h >>conftest.$ac_ext | |
1975 | cat >>conftest.$ac_ext <<_ACEOF | |
1976 | /* end confdefs.h. */ | |
1977 | ||
1978 | int | |
1979 | main () | |
1980 | { | |
1981 | #ifndef __GNUC__ | |
1982 | choke me | |
1983 | #endif | |
1984 | ||
1985 | ; | |
1986 | return 0; | |
1987 | } | |
1988 | _ACEOF | |
1989 | rm -f conftest.$ac_objext | |
1990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 1991 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 1992 | ac_status=$? |
ab509236 L |
1993 | grep -v '^ *+' conftest.er1 >conftest.err |
1994 | rm -f conftest.er1 | |
1995 | cat conftest.err >&5 | |
13b2be9c DJ |
1996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1997 | (exit $ac_status); } && | |
1ad12f97 NC |
1998 | { ac_try='test -z "$ac_c_werror_flag" |
1999 | || test ! -s conftest.err' | |
ab509236 L |
2000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2001 | (eval $ac_try) 2>&5 | |
2002 | ac_status=$? | |
2003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2004 | (exit $ac_status); }; } && | |
2005 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2007 | (eval $ac_try) 2>&5 | |
2008 | ac_status=$? | |
2009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2010 | (exit $ac_status); }; }; then | |
2011 | ac_compiler_gnu=yes | |
2012 | else | |
2013 | echo "$as_me: failed program was:" >&5 | |
2014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2015 | ||
2016 | ac_compiler_gnu=no | |
2017 | fi | |
ab509236 | 2018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2019 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2020 | ||
2021 | fi | |
2022 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2023 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2024 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2025 | ac_test_CFLAGS=${CFLAGS+set} | |
2026 | ac_save_CFLAGS=$CFLAGS | |
2027 | CFLAGS="-g" | |
2028 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2029 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2030 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2032 | else | |
2033 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
2034 | /* confdefs.h. */ |
2035 | _ACEOF | |
2036 | cat confdefs.h >>conftest.$ac_ext | |
2037 | cat >>conftest.$ac_ext <<_ACEOF | |
2038 | /* end confdefs.h. */ | |
2039 | ||
2040 | int | |
2041 | main () | |
2042 | { | |
2043 | ||
2044 | ; | |
2045 | return 0; | |
2046 | } | |
2047 | _ACEOF | |
2048 | rm -f conftest.$ac_objext | |
2049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2050 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2051 | ac_status=$? |
ab509236 L |
2052 | grep -v '^ *+' conftest.er1 >conftest.err |
2053 | rm -f conftest.er1 | |
2054 | cat conftest.err >&5 | |
13b2be9c DJ |
2055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2056 | (exit $ac_status); } && | |
1ad12f97 NC |
2057 | { ac_try='test -z "$ac_c_werror_flag" |
2058 | || test ! -s conftest.err' | |
ab509236 L |
2059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2060 | (eval $ac_try) 2>&5 | |
2061 | ac_status=$? | |
2062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2063 | (exit $ac_status); }; } && | |
2064 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2066 | (eval $ac_try) 2>&5 | |
2067 | ac_status=$? | |
2068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2069 | (exit $ac_status); }; }; then | |
2070 | ac_cv_prog_cc_g=yes | |
2071 | else | |
2072 | echo "$as_me: failed program was:" >&5 | |
2073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2074 | ||
2075 | ac_cv_prog_cc_g=no | |
2076 | fi | |
ab509236 | 2077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2078 | fi |
2079 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2080 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2081 | if test "$ac_test_CFLAGS" = set; then | |
2082 | CFLAGS=$ac_save_CFLAGS | |
2083 | elif test $ac_cv_prog_cc_g = yes; then | |
2084 | if test "$GCC" = yes; then | |
2085 | CFLAGS="-g -O2" | |
2086 | else | |
2087 | CFLAGS="-g" | |
2088 | fi | |
2089 | else | |
2090 | if test "$GCC" = yes; then | |
2091 | CFLAGS="-O2" | |
2092 | else | |
2093 | CFLAGS= | |
2094 | fi | |
2095 | fi | |
2096 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2097 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2098 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2100 | else | |
2101 | ac_cv_prog_cc_stdc=no | |
2102 | ac_save_CC=$CC | |
2103 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
2104 | /* confdefs.h. */ |
2105 | _ACEOF | |
2106 | cat confdefs.h >>conftest.$ac_ext | |
2107 | cat >>conftest.$ac_ext <<_ACEOF | |
2108 | /* end confdefs.h. */ | |
2109 | #include <stdarg.h> | |
2110 | #include <stdio.h> | |
2111 | #include <sys/types.h> | |
2112 | #include <sys/stat.h> | |
2113 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2114 | struct buf { int x; }; | |
2115 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2116 | static char *e (p, i) | |
2117 | char **p; | |
2118 | int i; | |
2119 | { | |
2120 | return p[i]; | |
2121 | } | |
2122 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2123 | { | |
2124 | char *s; | |
2125 | va_list v; | |
2126 | va_start (v,p); | |
2127 | s = g (p, va_arg (v,int)); | |
2128 | va_end (v); | |
2129 | return s; | |
2130 | } | |
ab509236 L |
2131 | |
2132 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2133 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2134 | These don't provoke an error unfortunately, instead are silently treated | |
2135 | as 'x'. The following induces an error, until -std1 is added to get | |
2136 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2137 | array size at least. It's necessary to write '\x00'==0 to get something | |
2138 | that's true only with -std1. */ | |
2139 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2140 | ||
13b2be9c DJ |
2141 | int test (int i, double x); |
2142 | struct s1 {int (*f) (int a);}; | |
2143 | struct s2 {int (*f) (double a);}; | |
2144 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2145 | int argc; | |
2146 | char **argv; | |
2147 | int | |
2148 | main () | |
2149 | { | |
2150 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2151 | ; | |
2152 | return 0; | |
2153 | } | |
2154 | _ACEOF | |
2155 | # Don't try gcc -ansi; that turns off useful extensions and | |
2156 | # breaks some systems' header files. | |
2157 | # AIX -qlanglvl=ansi | |
2158 | # Ultrix and OSF/1 -std1 | |
2159 | # HP-UX 10.20 and later -Ae | |
2160 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2161 | # SVR4 -Xc -D__EXTENSIONS__ | |
2162 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2163 | do | |
2164 | CC="$ac_save_CC $ac_arg" | |
2165 | rm -f conftest.$ac_objext | |
2166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2167 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2168 | ac_status=$? |
ab509236 L |
2169 | grep -v '^ *+' conftest.er1 >conftest.err |
2170 | rm -f conftest.er1 | |
2171 | cat conftest.err >&5 | |
13b2be9c DJ |
2172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2173 | (exit $ac_status); } && | |
1ad12f97 NC |
2174 | { ac_try='test -z "$ac_c_werror_flag" |
2175 | || test ! -s conftest.err' | |
ab509236 L |
2176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2177 | (eval $ac_try) 2>&5 | |
2178 | ac_status=$? | |
2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2180 | (exit $ac_status); }; } && | |
2181 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2183 | (eval $ac_try) 2>&5 | |
2184 | ac_status=$? | |
2185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2186 | (exit $ac_status); }; }; then | |
2187 | ac_cv_prog_cc_stdc=$ac_arg | |
2188 | break | |
2189 | else | |
2190 | echo "$as_me: failed program was:" >&5 | |
2191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2192 | ||
2193 | fi | |
ab509236 | 2194 | rm -f conftest.err conftest.$ac_objext |
13b2be9c DJ |
2195 | done |
2196 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2197 | CC=$ac_save_CC | |
2198 | ||
2199 | fi | |
2200 | ||
2201 | case "x$ac_cv_prog_cc_stdc" in | |
2202 | x|xno) | |
2203 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2204 | echo "${ECHO_T}none needed" >&6 ;; | |
2205 | *) | |
2206 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2207 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2208 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2209 | esac | |
2210 | ||
2211 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2212 | # in C++ we need to declare it. In case someone uses the same compiler | |
2213 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2214 | # the declaration of exit, since it's the most demanding environment. | |
2215 | cat >conftest.$ac_ext <<_ACEOF | |
2216 | #ifndef __cplusplus | |
2217 | choke me | |
2218 | #endif | |
2219 | _ACEOF | |
2220 | rm -f conftest.$ac_objext | |
2221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2222 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2223 | ac_status=$? |
ab509236 L |
2224 | grep -v '^ *+' conftest.er1 >conftest.err |
2225 | rm -f conftest.er1 | |
2226 | cat conftest.err >&5 | |
13b2be9c DJ |
2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2228 | (exit $ac_status); } && | |
1ad12f97 NC |
2229 | { ac_try='test -z "$ac_c_werror_flag" |
2230 | || test ! -s conftest.err' | |
ab509236 L |
2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2232 | (eval $ac_try) 2>&5 | |
2233 | ac_status=$? | |
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2235 | (exit $ac_status); }; } && | |
2236 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2238 | (eval $ac_try) 2>&5 | |
2239 | ac_status=$? | |
2240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2241 | (exit $ac_status); }; }; then | |
2242 | for ac_declaration in \ | |
ab509236 | 2243 | '' \ |
13b2be9c DJ |
2244 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2245 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2246 | 'extern "C" void exit (int) throw ();' \ | |
2247 | 'extern "C" void exit (int);' \ | |
2248 | 'void exit (int);' | |
2249 | do | |
2250 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
2251 | /* confdefs.h. */ |
2252 | _ACEOF | |
2253 | cat confdefs.h >>conftest.$ac_ext | |
2254 | cat >>conftest.$ac_ext <<_ACEOF | |
2255 | /* end confdefs.h. */ | |
13dfd2d0 | 2256 | $ac_declaration |
ab509236 | 2257 | #include <stdlib.h> |
13b2be9c DJ |
2258 | int |
2259 | main () | |
2260 | { | |
2261 | exit (42); | |
2262 | ; | |
2263 | return 0; | |
2264 | } | |
2265 | _ACEOF | |
2266 | rm -f conftest.$ac_objext | |
2267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2268 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2269 | ac_status=$? |
ab509236 L |
2270 | grep -v '^ *+' conftest.er1 >conftest.err |
2271 | rm -f conftest.er1 | |
2272 | cat conftest.err >&5 | |
13b2be9c DJ |
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2274 | (exit $ac_status); } && | |
1ad12f97 NC |
2275 | { ac_try='test -z "$ac_c_werror_flag" |
2276 | || test ! -s conftest.err' | |
ab509236 L |
2277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2278 | (eval $ac_try) 2>&5 | |
2279 | ac_status=$? | |
2280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2281 | (exit $ac_status); }; } && | |
2282 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2284 | (eval $ac_try) 2>&5 | |
2285 | ac_status=$? | |
2286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2287 | (exit $ac_status); }; }; then | |
2288 | : | |
2289 | else | |
2290 | echo "$as_me: failed program was:" >&5 | |
2291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2292 | ||
2293 | continue | |
2294 | fi | |
ab509236 | 2295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c | 2296 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
2297 | /* confdefs.h. */ |
2298 | _ACEOF | |
2299 | cat confdefs.h >>conftest.$ac_ext | |
2300 | cat >>conftest.$ac_ext <<_ACEOF | |
2301 | /* end confdefs.h. */ | |
2302 | $ac_declaration | |
2303 | int | |
2304 | main () | |
2305 | { | |
2306 | exit (42); | |
2307 | ; | |
2308 | return 0; | |
2309 | } | |
2310 | _ACEOF | |
2311 | rm -f conftest.$ac_objext | |
2312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2313 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2314 | ac_status=$? |
ab509236 L |
2315 | grep -v '^ *+' conftest.er1 >conftest.err |
2316 | rm -f conftest.er1 | |
2317 | cat conftest.err >&5 | |
13b2be9c DJ |
2318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2319 | (exit $ac_status); } && | |
1ad12f97 NC |
2320 | { ac_try='test -z "$ac_c_werror_flag" |
2321 | || test ! -s conftest.err' | |
ab509236 L |
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); }; } && | |
2327 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2329 | (eval $ac_try) 2>&5 | |
2330 | ac_status=$? | |
2331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2332 | (exit $ac_status); }; }; then | |
2333 | break | |
2334 | else | |
2335 | echo "$as_me: failed program was:" >&5 | |
2336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2337 | ||
2338 | fi | |
ab509236 | 2339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2340 | done |
2341 | rm -f conftest* | |
2342 | if test -n "$ac_declaration"; then | |
2343 | echo '#ifdef __cplusplus' >>confdefs.h | |
2344 | echo $ac_declaration >>confdefs.h | |
2345 | echo '#endif' >>confdefs.h | |
2346 | fi | |
2347 | ||
2348 | else | |
2349 | echo "$as_me: failed program was:" >&5 | |
2350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2351 | ||
2352 | fi | |
ab509236 | 2353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2354 | ac_ext=c |
2355 | ac_cpp='$CPP $CPPFLAGS' | |
2356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2359 | ||
2360 | ||
ab509236 L |
2361 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2362 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2363 | if test "${ac_cv_search_strerror+set}" = set; then | |
13b2be9c DJ |
2364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2365 | else | |
ab509236 L |
2366 | ac_func_search_save_LIBS=$LIBS |
2367 | ac_cv_search_strerror=no | |
13b2be9c | 2368 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
2369 | /* confdefs.h. */ |
2370 | _ACEOF | |
2371 | cat confdefs.h >>conftest.$ac_ext | |
2372 | cat >>conftest.$ac_ext <<_ACEOF | |
2373 | /* end confdefs.h. */ | |
2374 | ||
2375 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2376 | #ifdef __cplusplus | |
2377 | extern "C" | |
2378 | #endif | |
2379 | /* We use char because int might match the return type of a gcc2 | |
2380 | builtin and then its argument prototype would still apply. */ | |
2381 | char strerror (); | |
2382 | int | |
2383 | main () | |
2384 | { | |
2385 | strerror (); | |
2386 | ; | |
2387 | return 0; | |
2388 | } | |
2389 | _ACEOF | |
2390 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 2392 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 2393 | ac_status=$? |
ab509236 L |
2394 | grep -v '^ *+' conftest.er1 >conftest.err |
2395 | rm -f conftest.er1 | |
2396 | cat conftest.err >&5 | |
13b2be9c DJ |
2397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2398 | (exit $ac_status); } && | |
1ad12f97 NC |
2399 | { ac_try='test -z "$ac_c_werror_flag" |
2400 | || test ! -s conftest.err' | |
ab509236 L |
2401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2402 | (eval $ac_try) 2>&5 | |
2403 | ac_status=$? | |
2404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2405 | (exit $ac_status); }; } && | |
2406 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
2407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2408 | (eval $ac_try) 2>&5 | |
2409 | ac_status=$? | |
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2411 | (exit $ac_status); }; }; then | |
ab509236 | 2412 | ac_cv_search_strerror="none required" |
13b2be9c DJ |
2413 | else |
2414 | echo "$as_me: failed program was:" >&5 | |
2415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2416 | ||
13b2be9c | 2417 | fi |
ab509236 L |
2418 | rm -f conftest.err conftest.$ac_objext \ |
2419 | conftest$ac_exeext conftest.$ac_ext | |
2420 | if test "$ac_cv_search_strerror" = no; then | |
2421 | for ac_lib in cposix; do | |
2422 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2423 | cat >conftest.$ac_ext <<_ACEOF | |
2424 | /* confdefs.h. */ | |
2425 | _ACEOF | |
2426 | cat confdefs.h >>conftest.$ac_ext | |
2427 | cat >>conftest.$ac_ext <<_ACEOF | |
2428 | /* end confdefs.h. */ | |
2429 | ||
2430 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2431 | #ifdef __cplusplus | |
2432 | extern "C" | |
2433 | #endif | |
2434 | /* We use char because int might match the return type of a gcc2 | |
2435 | builtin and then its argument prototype would still apply. */ | |
2436 | char strerror (); | |
2437 | int | |
2438 | main () | |
2439 | { | |
2440 | strerror (); | |
2441 | ; | |
2442 | return 0; | |
2443 | } | |
2444 | _ACEOF | |
2445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2447 | (eval $ac_link) 2>conftest.er1 | |
2448 | ac_status=$? | |
2449 | grep -v '^ *+' conftest.er1 >conftest.err | |
2450 | rm -f conftest.er1 | |
2451 | cat conftest.err >&5 | |
2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2453 | (exit $ac_status); } && | |
1ad12f97 NC |
2454 | { ac_try='test -z "$ac_c_werror_flag" |
2455 | || test ! -s conftest.err' | |
ab509236 L |
2456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2457 | (eval $ac_try) 2>&5 | |
2458 | ac_status=$? | |
2459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2460 | (exit $ac_status); }; } && | |
2461 | { ac_try='test -s conftest$ac_exeext' | |
2462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2463 | (eval $ac_try) 2>&5 | |
2464 | ac_status=$? | |
2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2466 | (exit $ac_status); }; }; then | |
2467 | ac_cv_search_strerror="-l$ac_lib" | |
2468 | break | |
2469 | else | |
2470 | echo "$as_me: failed program was:" >&5 | |
2471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2472 | ||
13b2be9c | 2473 | fi |
ab509236 L |
2474 | rm -f conftest.err conftest.$ac_objext \ |
2475 | conftest$ac_exeext conftest.$ac_ext | |
2476 | done | |
13b2be9c | 2477 | fi |
ab509236 L |
2478 | LIBS=$ac_func_search_save_LIBS |
2479 | fi | |
2480 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2481 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2482 | if test "$ac_cv_search_strerror" != no; then | |
2483 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
13b2be9c | 2484 | |
ab509236 | 2485 | fi |
13b2be9c DJ |
2486 | |
2487 | ||
2488 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
8ea2b00f | 2489 | am__api_version="1.9" |
13b2be9c DJ |
2490 | # Find a good install program. We prefer a C program (faster), |
2491 | # so one script is as good as another. But avoid the broken or | |
2492 | # incompatible versions: | |
2493 | # SysV /etc/install, /usr/sbin/install | |
2494 | # SunOS /usr/etc/install | |
2495 | # IRIX /sbin/install | |
2496 | # AIX /bin/install | |
2497 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2498 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2499 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2500 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ab509236 | 2501 | # OS/2's system install, which has a completely different semantic |
13b2be9c DJ |
2502 | # ./install, which can be erroneously created by make from ./install.sh. |
2503 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2504 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2505 | if test -z "$INSTALL"; then | |
2506 | if test "${ac_cv_path_install+set}" = set; then | |
2507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2508 | else | |
2509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2510 | for as_dir in $PATH | |
2511 | do | |
2512 | IFS=$as_save_IFS | |
2513 | test -z "$as_dir" && as_dir=. | |
2514 | # Account for people who put trailing slashes in PATH elements. | |
2515 | case $as_dir/ in | |
2516 | ./ | .// | /cC/* | \ | |
2517 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ab509236 | 2518 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
13b2be9c DJ |
2519 | /usr/ucb/* ) ;; |
2520 | *) | |
2521 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2522 | # Don't use installbsd from OSF since it installs stuff as root | |
2523 | # by default. | |
2524 | for ac_prog in ginstall scoinst install; do | |
2525 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ab509236 L |
2526 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2527 | if test $ac_prog = install && | |
2528 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2529 | # AIX install. It has an incompatible calling convention. | |
2530 | : | |
2531 | elif test $ac_prog = install && | |
2532 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2533 | # program-specific install script used by HP pwplus--don't use. | |
2534 | : | |
2535 | else | |
2536 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2537 | break 3 | |
2538 | fi | |
2539 | fi | |
13b2be9c DJ |
2540 | done |
2541 | done | |
2542 | ;; | |
2543 | esac | |
2544 | done | |
2545 | ||
252b5132 RH |
2546 | |
2547 | fi | |
2548 | if test "${ac_cv_path_install+set}" = set; then | |
13b2be9c | 2549 | INSTALL=$ac_cv_path_install |
252b5132 RH |
2550 | else |
2551 | # As a last resort, use the slow shell script. We don't cache a | |
2552 | # path for INSTALL within a source directory, because that will | |
2553 | # break other packages using the cache if that directory is | |
2554 | # removed, or if the path is relative. | |
13b2be9c | 2555 | INSTALL=$ac_install_sh |
252b5132 RH |
2556 | fi |
2557 | fi | |
13b2be9c DJ |
2558 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2559 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2560 | |
2561 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2562 | # It thinks the first close brace ends the variable substitution. | |
2563 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2564 | ||
13b2be9c | 2565 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2566 | |
2567 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2568 | ||
13b2be9c DJ |
2569 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2570 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2571 | # Just in case |
2572 | sleep 1 | |
13b2be9c | 2573 | echo timestamp > conftest.file |
252b5132 RH |
2574 | # Do `set' in a subshell so we don't clobber the current shell's |
2575 | # arguments. Must try -L first in case configure is actually a | |
2576 | # symlink; some systems play weird games with the mod time of symlinks | |
2577 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2578 | # directory). | |
2579 | if ( | |
13b2be9c | 2580 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2581 | if test "$*" = "X"; then |
2582 | # -L didn't work. | |
13b2be9c | 2583 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2584 | fi |
13b2be9c DJ |
2585 | rm -f conftest.file |
2586 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2587 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2588 | |
2589 | # If neither matched, then we have a broken ls. This can happen | |
2590 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2591 | # broken ls alias from the environment. This has actually | |
2592 | # happened. Such a system could not be considered "sane". | |
13b2be9c DJ |
2593 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2594 | alias in your environment" >&5 | |
2595 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2596 | alias in your environment" >&2;} | |
2597 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2598 | fi |
2599 | ||
13b2be9c DJ |
2600 | test "$2" = conftest.file |
2601 | ) | |
2602 | then | |
2603 | # Ok. | |
2604 | : | |
2605 | else | |
2606 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2607 | Check your system clock" >&5 | |
2608 | echo "$as_me: error: newly created file is older than distributed files! | |
2609 | Check your system clock" >&2;} | |
2610 | { (exit 1); exit 1; }; } | |
2611 | fi | |
2612 | echo "$as_me:$LINENO: result: yes" >&5 | |
2613 | echo "${ECHO_T}yes" >&6 | |
2614 | test "$program_prefix" != NONE && | |
2615 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
2616 | # Use a double $ so make ignores it. | |
2617 | test "$program_suffix" != NONE && | |
2618 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
2619 | # Double any \ or $. echo might interpret backslashes. | |
2620 | # By default was `s,x,x', remove it if useless. | |
2621 | cat <<\_ACEOF >conftest.sed | |
2622 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2623 | _ACEOF | |
2624 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2625 | rm conftest.sed | |
2626 | ||
13b2be9c DJ |
2627 | # expand $ac_aux_dir to an absolute path |
2628 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2629 | ||
2630 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2631 | # Use eval to expand $SHELL | |
2632 | if eval "$MISSING --run true"; then | |
2633 | am_missing_run="$MISSING --run " | |
2634 | else | |
2635 | am_missing_run= | |
2636 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2637 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2638 | fi | |
2639 | ||
4b363073 | 2640 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
8ea2b00f AM |
2641 | # We used to keeping the `.' as first argument, in order to |
2642 | # allow $(mkdir_p) to be used without argument. As in | |
ab509236 | 2643 | # $(mkdir_p) $(somedir) |
8ea2b00f AM |
2644 | # where $(somedir) is conditionally defined. However this is wrong |
2645 | # for two reasons: | |
2646 | # 1. if the package is installed by a user who cannot write `.' | |
2647 | # make install will fail, | |
2648 | # 2. the above comment should most certainly read | |
2649 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2650 | # so it does not work when $(somedir) is undefined and | |
2651 | # $(DESTDIR) is not. | |
2652 | # To support the latter case, we have to write | |
2653 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2654 | # so the `.' trick is pointless. | |
2655 | mkdir_p='mkdir -p --' | |
ab509236 L |
2656 | else |
2657 | # On NextStep and OpenStep, the `mkdir' command does not | |
2658 | # recognize any option. It will interpret all options as | |
2659 | # directories to create, and then abort because `.' already | |
2660 | # exists. | |
4b363073 | 2661 | for d in ./-p ./--version; |
ab509236 L |
2662 | do |
2663 | test -d $d && rmdir $d | |
2664 | done | |
2665 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2666 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2667 | mkdir_p='$(mkinstalldirs)' | |
2668 | else | |
2669 | mkdir_p='$(install_sh) -d' | |
2670 | fi | |
2671 | fi | |
2672 | ||
13b2be9c DJ |
2673 | for ac_prog in gawk mawk nawk awk |
2674 | do | |
2675 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2676 | set dummy $ac_prog; ac_word=$2 | |
2677 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2679 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2681 | else | |
2682 | if test -n "$AWK"; then | |
2683 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2684 | else | |
2685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2686 | for as_dir in $PATH | |
2687 | do | |
2688 | IFS=$as_save_IFS | |
2689 | test -z "$as_dir" && as_dir=. | |
2690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2691 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2692 | ac_cv_prog_AWK="$ac_prog" | |
2693 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2694 | break 2 | |
2695 | fi | |
2696 | done | |
2697 | done | |
2698 | ||
2699 | fi | |
2700 | fi | |
2701 | AWK=$ac_cv_prog_AWK | |
2702 | if test -n "$AWK"; then | |
2703 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2704 | echo "${ECHO_T}$AWK" >&6 | |
2705 | else | |
2706 | echo "$as_me:$LINENO: result: no" >&5 | |
2707 | echo "${ECHO_T}no" >&6 | |
2708 | fi | |
2709 | ||
2710 | test -n "$AWK" && break | |
2711 | done | |
2712 | ||
2713 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2714 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ab509236 | 2715 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
13b2be9c DJ |
2716 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
2717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2718 | else | |
2719 | cat >conftest.make <<\_ACEOF | |
2720 | all: | |
2721 | @echo 'ac_maketemp="$(MAKE)"' | |
2722 | _ACEOF | |
2723 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2724 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2725 | if test -n "$ac_maketemp"; then | |
2726 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2727 | else | |
2728 | eval ac_cv_prog_make_${ac_make}_set=no | |
2729 | fi | |
2730 | rm -f conftest.make | |
2731 | fi | |
2732 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2733 | echo "$as_me:$LINENO: result: yes" >&5 | |
2734 | echo "${ECHO_T}yes" >&6 | |
2735 | SET_MAKE= | |
2736 | else | |
2737 | echo "$as_me:$LINENO: result: no" >&5 | |
2738 | echo "${ECHO_T}no" >&6 | |
2739 | SET_MAKE="MAKE=${MAKE-make}" | |
2740 | fi | |
2741 | ||
2742 | rm -rf .tst 2>/dev/null | |
2743 | mkdir .tst 2>/dev/null | |
2744 | if test -d .tst; then | |
2745 | am__leading_dot=. | |
2746 | else | |
2747 | am__leading_dot=_ | |
2748 | fi | |
2749 | rmdir .tst 2>/dev/null | |
2750 | ||
2751 | DEPDIR="${am__leading_dot}deps" | |
2752 | ||
2753 | ac_config_commands="$ac_config_commands depfiles" | |
2754 | ||
2755 | ||
2756 | am_make=${MAKE-make} | |
2757 | cat > confinc << 'END' | |
2758 | am__doit: | |
2759 | @echo done | |
2760 | .PHONY: am__doit | |
2761 | END | |
2762 | # If we don't find an include directive, just comment out the code. | |
2763 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2764 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2765 | am__include="#" | |
2766 | am__quote= | |
2767 | _am_result=none | |
2768 | # First try GNU make style include. | |
2769 | echo "include confinc" > confmf | |
2770 | # We grep out `Entering directory' and `Leaving directory' | |
2771 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2772 | # In particular we don't look at `^make:' because GNU make might | |
2773 | # be invoked under some other name (usually "gmake"), in which | |
2774 | # case it prints its new name instead of `make'. | |
2775 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2776 | am__include=include | |
2777 | am__quote= | |
2778 | _am_result=GNU | |
2779 | fi | |
2780 | # Now try BSD make style include. | |
2781 | if test "$am__include" = "#"; then | |
2782 | echo '.include "confinc"' > confmf | |
2783 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2784 | am__include=.include | |
2785 | am__quote="\"" | |
2786 | _am_result=BSD | |
2787 | fi | |
2788 | fi | |
2789 | ||
2790 | ||
2791 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2792 | echo "${ECHO_T}$_am_result" >&6 | |
2793 | rm -f confinc confmf | |
2794 | ||
2795 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2796 | if test "${enable_dependency_tracking+set}" = set; then | |
2797 | enableval="$enable_dependency_tracking" | |
2798 | ||
2799 | fi; | |
2800 | if test "x$enable_dependency_tracking" != xno; then | |
2801 | am_depcomp="$ac_aux_dir/depcomp" | |
2802 | AMDEPBACKSLASH='\' | |
2803 | fi | |
2804 | ||
2805 | ||
2806 | if test "x$enable_dependency_tracking" != xno; then | |
2807 | AMDEP_TRUE= | |
2808 | AMDEP_FALSE='#' | |
2809 | else | |
2810 | AMDEP_TRUE='#' | |
2811 | AMDEP_FALSE= | |
2812 | fi | |
2813 | ||
2814 | ||
2815 | ||
ab509236 | 2816 | # test to see if srcdir already configured |
13b2be9c DJ |
2817 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
2818 | test -f $srcdir/config.status; then | |
2819 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2820 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2821 | { (exit 1); exit 1; }; } | |
2822 | fi | |
2823 | ||
2824 | # test whether we have cygpath | |
2825 | if test -z "$CYGPATH_W"; then | |
2826 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2827 | CYGPATH_W='cygpath -w' | |
2828 | else | |
2829 | CYGPATH_W=echo | |
2830 | fi | |
2831 | fi | |
2832 | ||
2833 | ||
2834 | # Define the identity of the package. | |
2835 | PACKAGE=gas | |
2836 | VERSION=${BFD_VERSION} | |
2837 | ||
2838 | ||
2839 | cat >>confdefs.h <<_ACEOF | |
2840 | #define PACKAGE "$PACKAGE" | |
2841 | _ACEOF | |
2842 | ||
2843 | ||
2844 | cat >>confdefs.h <<_ACEOF | |
2845 | #define VERSION "$VERSION" | |
2846 | _ACEOF | |
2847 | ||
2848 | # Some tools Automake needs. | |
2849 | ||
2850 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2851 | ||
2852 | ||
2853 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2854 | ||
2855 | ||
2856 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2857 | ||
2858 | ||
2859 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2860 | ||
2861 | ||
2862 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2863 | ||
13b2be9c DJ |
2864 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
2865 | ||
2866 | # Installed binaries are usually stripped using `strip' when the user | |
2867 | # run `make install-strip'. However `strip' might not be the right | |
2868 | # tool to use in cross-compilation environments, therefore Automake | |
2869 | # will honor the `STRIP' environment variable to overrule this program. | |
2870 | if test "$cross_compiling" != no; then | |
2871 | if test -n "$ac_tool_prefix"; then | |
2872 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2873 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2874 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2876 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2878 | else | |
2879 | if test -n "$STRIP"; then | |
2880 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
252b5132 | 2881 | else |
13b2be9c DJ |
2882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2883 | for as_dir in $PATH | |
2884 | do | |
2885 | IFS=$as_save_IFS | |
2886 | test -z "$as_dir" && as_dir=. | |
2887 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2888 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2889 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2890 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2891 | break 2 | |
2892 | fi | |
2893 | done | |
2894 | done | |
2895 | ||
252b5132 | 2896 | fi |
13b2be9c DJ |
2897 | fi |
2898 | STRIP=$ac_cv_prog_STRIP | |
2899 | if test -n "$STRIP"; then | |
2900 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2901 | echo "${ECHO_T}$STRIP" >&6 | |
c8615825 | 2902 | else |
13b2be9c DJ |
2903 | echo "$as_me:$LINENO: result: no" >&5 |
2904 | echo "${ECHO_T}no" >&6 | |
c8615825 | 2905 | fi |
c8615825 | 2906 | |
13b2be9c DJ |
2907 | fi |
2908 | if test -z "$ac_cv_prog_STRIP"; then | |
2909 | ac_ct_STRIP=$STRIP | |
2910 | # Extract the first word of "strip", so it can be a program name with args. | |
2911 | set dummy strip; ac_word=$2 | |
2912 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2914 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c8615825 | 2916 | else |
13b2be9c DJ |
2917 | if test -n "$ac_ct_STRIP"; then |
2918 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
252b5132 | 2919 | else |
13b2be9c DJ |
2920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2921 | for as_dir in $PATH | |
2922 | do | |
2923 | IFS=$as_save_IFS | |
2924 | test -z "$as_dir" && as_dir=. | |
2925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2926 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2927 | ac_cv_prog_ac_ct_STRIP="strip" | |
2928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2929 | break 2 | |
2930 | fi | |
2931 | done | |
2932 | done | |
2933 | ||
2934 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
252b5132 | 2935 | fi |
252b5132 | 2936 | fi |
13b2be9c DJ |
2937 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2938 | if test -n "$ac_ct_STRIP"; then | |
2939 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2940 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 2941 | else |
13b2be9c DJ |
2942 | echo "$as_me:$LINENO: result: no" >&5 |
2943 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2944 | fi |
2945 | ||
13b2be9c DJ |
2946 | STRIP=$ac_ct_STRIP |
2947 | else | |
2948 | STRIP="$ac_cv_prog_STRIP" | |
2949 | fi | |
d6d788bd | 2950 | |
252b5132 | 2951 | fi |
13b2be9c | 2952 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
252b5132 | 2953 | |
13b2be9c DJ |
2954 | # We need awk for the "check" target. The system "awk" is bad on |
2955 | # some platforms. | |
8ea2b00f AM |
2956 | # Always define AMTAR for backward compatibility. |
2957 | ||
2958 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2959 | ||
2960 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2961 | ||
2962 | ||
252b5132 | 2963 | |
d6d788bd | 2964 | |
13b2be9c | 2965 | depcc="$CC" am_compiler_list= |
d6d788bd | 2966 | |
13b2be9c DJ |
2967 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
2968 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2969 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2971 | else |
13b2be9c DJ |
2972 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2973 | # We make a subdir and do the tests there. Otherwise we can end up | |
2974 | # making bogus files that we don't know about and never remove. For | |
2975 | # instance it was reported that on HP-UX the gcc test will end up | |
2976 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2977 | # in D'. | |
2978 | mkdir conftest.dir | |
2979 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2980 | # using a relative directory. | |
2981 | cp "$am_depcomp" conftest.dir | |
2982 | cd conftest.dir | |
2983 | # We will build objects and dependencies in a subdirectory because | |
2984 | # it helps to detect inapplicable dependency modes. For instance | |
2985 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2986 | # side effect of compilation, but ICC will put the dependencies in | |
2987 | # the current directory while Tru64 will put them in the object | |
2988 | # directory. | |
2989 | mkdir sub | |
252b5132 | 2990 | |
13b2be9c DJ |
2991 | am_cv_CC_dependencies_compiler_type=none |
2992 | if test "$am_compiler_list" = ""; then | |
2993 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2994 | fi | |
2995 | for depmode in $am_compiler_list; do | |
2996 | # Setup a source with many dependencies, because some compilers | |
2997 | # like to wrap large dependency lists on column 80 (with \), and | |
2998 | # we should not choose a depcomp mode which is confused by this. | |
2999 | # | |
3000 | # We need to recreate these files for each test, as the compiler may | |
3001 | # overwrite some of them when testing with obscure command lines. | |
3002 | # This happens at least with the AIX C compiler. | |
3003 | : > sub/conftest.c | |
3004 | for i in 1 2 3 4 5 6; do | |
3005 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4b363073 NC |
3006 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3007 | # Solaris 8's {/usr,}/bin/sh. | |
3008 | touch sub/conftst$i.h | |
13b2be9c DJ |
3009 | done |
3010 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3011 | ||
3012 | case $depmode in | |
3013 | nosideeffect) | |
3014 | # after this tag, mechanisms are not by side-effect, so they'll | |
3015 | # only be used when explicitly requested | |
3016 | if test "x$enable_dependency_tracking" = xyes; then | |
3017 | continue | |
3018 | else | |
3019 | break | |
3020 | fi | |
3021 | ;; | |
3022 | none) break ;; | |
3023 | esac | |
3024 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3025 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3026 | # handle `-M -o', and we need to detect this. | |
3027 | if depmode=$depmode \ | |
3028 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3029 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3030 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3031 | >/dev/null 2>conftest.err && | |
3032 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3033 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3034 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3035 | # icc doesn't choke on unknown options, it will just issue warnings | |
4b363073 NC |
3036 | # or remarks (even with -Werror). So we grep stderr for any message |
3037 | # that says an option was ignored or not supported. | |
3038 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3039 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3040 | # The diagnosis changed in icc 8.0: | |
3041 | # icc: Command line remark: option '-MP' not supported | |
3042 | if (grep 'ignoring option' conftest.err || | |
3043 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
13b2be9c DJ |
3044 | am_cv_CC_dependencies_compiler_type=$depmode |
3045 | break | |
3046 | fi | |
3047 | fi | |
3048 | done | |
252b5132 | 3049 | |
13b2be9c DJ |
3050 | cd .. |
3051 | rm -rf conftest.dir | |
252b5132 | 3052 | else |
13b2be9c | 3053 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
3054 | fi |
3055 | ||
252b5132 | 3056 | fi |
13b2be9c DJ |
3057 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3058 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3059 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
252b5132 | 3060 | |
13b2be9c DJ |
3061 | |
3062 | ||
3063 | if | |
3064 | test "x$enable_dependency_tracking" != xno \ | |
3065 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3066 | am__fastdepCC_TRUE= | |
3067 | am__fastdepCC_FALSE='#' | |
252b5132 | 3068 | else |
13b2be9c DJ |
3069 | am__fastdepCC_TRUE='#' |
3070 | am__fastdepCC_FALSE= | |
252b5132 RH |
3071 | fi |
3072 | ||
d6d788bd L |
3073 | |
3074 | ||
13b2be9c | 3075 | |
252b5132 RH |
3076 | # Check whether --enable-shared or --disable-shared was given. |
3077 | if test "${enable_shared+set}" = set; then | |
3078 | enableval="$enable_shared" | |
3079 | p=${PACKAGE-default} | |
f9c19112 | 3080 | case $enableval in |
252b5132 RH |
3081 | yes) enable_shared=yes ;; |
3082 | no) enable_shared=no ;; | |
3083 | *) | |
3084 | enable_shared=no | |
3085 | # Look at the argument we got. We use all the common list separators. | |
3086 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3087 | for pkg in $enableval; do | |
3088 | if test "X$pkg" = "X$p"; then | |
3089 | enable_shared=yes | |
3090 | fi | |
3091 | done | |
3092 | IFS="$ac_save_ifs" | |
3093 | ;; | |
3094 | esac | |
3095 | else | |
3096 | enable_shared=yes | |
13b2be9c | 3097 | fi; |
252b5132 RH |
3098 | # Check whether --enable-static or --disable-static was given. |
3099 | if test "${enable_static+set}" = set; then | |
3100 | enableval="$enable_static" | |
3101 | p=${PACKAGE-default} | |
f9c19112 | 3102 | case $enableval in |
252b5132 RH |
3103 | yes) enable_static=yes ;; |
3104 | no) enable_static=no ;; | |
3105 | *) | |
3106 | enable_static=no | |
3107 | # Look at the argument we got. We use all the common list separators. | |
3108 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3109 | for pkg in $enableval; do | |
3110 | if test "X$pkg" = "X$p"; then | |
3111 | enable_static=yes | |
3112 | fi | |
3113 | done | |
3114 | IFS="$ac_save_ifs" | |
3115 | ;; | |
3116 | esac | |
3117 | else | |
3118 | enable_static=yes | |
13b2be9c | 3119 | fi; |
bedf545c ILT |
3120 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3121 | if test "${enable_fast_install+set}" = set; then | |
3122 | enableval="$enable_fast_install" | |
3123 | p=${PACKAGE-default} | |
f9c19112 | 3124 | case $enableval in |
bedf545c ILT |
3125 | yes) enable_fast_install=yes ;; |
3126 | no) enable_fast_install=no ;; | |
3127 | *) | |
3128 | enable_fast_install=no | |
3129 | # Look at the argument we got. We use all the common list separators. | |
3130 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3131 | for pkg in $enableval; do | |
3132 | if test "X$pkg" = "X$p"; then | |
3133 | enable_fast_install=yes | |
3134 | fi | |
3135 | done | |
3136 | IFS="$ac_save_ifs" | |
3137 | ;; | |
3138 | esac | |
3139 | else | |
3140 | enable_fast_install=yes | |
13b2be9c | 3141 | fi; |
87ccc1b0 | 3142 | |
6840198f NC |
3143 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3144 | if test "${with_gnu_ld+set}" = set; then | |
3145 | withval="$with_gnu_ld" | |
3146 | test "$withval" = no || with_gnu_ld=yes | |
27b7e12d | 3147 | else |
6840198f | 3148 | with_gnu_ld=no |
13b2be9c | 3149 | fi; |
6840198f NC |
3150 | ac_prog=ld |
3151 | if test "$GCC" = yes; then | |
3152 | # Check if gcc -print-prog-name=ld gives a path. | |
13b2be9c DJ |
3153 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3154 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
6840198f NC |
3155 | case $host in |
3156 | *-*-mingw*) | |
3157 | # gcc leaves a trailing carriage return which upsets mingw | |
3158 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3159 | *) | |
3160 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3161 | esac | |
3162 | case $ac_prog in | |
3163 | # Accept absolute paths. | |
3164 | [\\/]* | [A-Za-z]:[\\/]*) | |
3165 | re_direlt='/[^/][^/]*/\.\./' | |
3166 | # Canonicalize the path of ld | |
3167 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3168 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3169 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3170 | done | |
3171 | test -z "$LD" && LD="$ac_prog" | |
3172 | ;; | |
3173 | "") | |
3174 | # If it fails, then pretend we aren't using GCC. | |
3175 | ac_prog=ld | |
3176 | ;; | |
3177 | *) | |
3178 | # If it is relative, then search for the first ld in PATH. | |
3179 | with_gnu_ld=unknown | |
3180 | ;; | |
3181 | esac | |
3182 | elif test "$with_gnu_ld" = yes; then | |
13b2be9c DJ |
3183 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3184 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
27b7e12d | 3185 | else |
13b2be9c DJ |
3186 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3187 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
27b7e12d | 3188 | fi |
13b2be9c DJ |
3189 | if test "${lt_cv_path_LD+set}" = set; then |
3190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3191 | else |
3192 | if test -z "$LD"; then | |
a74801ba | 3193 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3194 | for ac_dir in $PATH; do |
3195 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 3196 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
f9c19112 | 3197 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
3198 | # Check to see if the program is GNU ld. I'd rather use --version, |
3199 | # but apparently some GNU ld's only accept -v. | |
3200 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
f9c19112 | 3201 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
3202 | test "$with_gnu_ld" != no && break |
3203 | else | |
bedf545c | 3204 | test "$with_gnu_ld" != yes && break |
252b5132 RH |
3205 | fi |
3206 | fi | |
3207 | done | |
3208 | IFS="$ac_save_ifs" | |
3209 | else | |
f9c19112 | 3210 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
3211 | fi |
3212 | fi | |
3213 | ||
f9c19112 | 3214 | LD="$lt_cv_path_LD" |
252b5132 | 3215 | if test -n "$LD"; then |
13b2be9c DJ |
3216 | echo "$as_me:$LINENO: result: $LD" >&5 |
3217 | echo "${ECHO_T}$LD" >&6 | |
252b5132 | 3218 | else |
13b2be9c DJ |
3219 | echo "$as_me:$LINENO: result: no" >&5 |
3220 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3221 | fi |
13b2be9c DJ |
3222 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3223 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3224 | { (exit 1); exit 1; }; } | |
3225 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3226 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3227 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3229 | else |
3230 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3231 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
f9c19112 | 3232 | lt_cv_prog_gnu_ld=yes |
252b5132 | 3233 | else |
f9c19112 | 3234 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
3235 | fi |
3236 | fi | |
13b2be9c DJ |
3237 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3238 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
f9c19112 | 3239 | with_gnu_ld=$lt_cv_prog_gnu_ld |
ac48eca1 | 3240 | |
d6d788bd | 3241 | |
13b2be9c DJ |
3242 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3243 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3244 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3246 | else |
3247 | lt_cv_ld_reload_flag='-r' | |
3248 | fi | |
13b2be9c DJ |
3249 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3250 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
ac48eca1 AO |
3251 | reload_flag=$lt_cv_ld_reload_flag |
3252 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
252b5132 | 3253 | |
13b2be9c DJ |
3254 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3255 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3256 | if test "${lt_cv_path_NM+set}" = set; then | |
3257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3258 | else |
3259 | if test -n "$NM"; then | |
3260 | # Let the user override the test. | |
f9c19112 | 3261 | lt_cv_path_NM="$NM" |
252b5132 | 3262 | else |
a74801ba | 3263 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
bedf545c | 3264 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
252b5132 | 3265 | test -z "$ac_dir" && ac_dir=. |
ac48eca1 AO |
3266 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3267 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
3268 | # Check to see if the nm accepts a BSD-compat flag. |
3269 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3270 | # nm: unknown option "B" ignored | |
58cccadb AO |
3271 | # Tru64's nm complains that /dev/null is an invalid object file |
3272 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
f9c19112 | 3273 | lt_cv_path_NM="$tmp_nm -B" |
bedf545c | 3274 | break |
ac48eca1 | 3275 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
f9c19112 | 3276 | lt_cv_path_NM="$tmp_nm -p" |
bedf545c | 3277 | break |
252b5132 | 3278 | else |
f9c19112 | 3279 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
bedf545c | 3280 | continue # so that we can try to find one that supports BSD flags |
252b5132 | 3281 | fi |
252b5132 RH |
3282 | fi |
3283 | done | |
3284 | IFS="$ac_save_ifs" | |
f9c19112 | 3285 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
3286 | fi |
3287 | fi | |
3288 | ||
f9c19112 | 3289 | NM="$lt_cv_path_NM" |
13b2be9c DJ |
3290 | echo "$as_me:$LINENO: result: $NM" >&5 |
3291 | echo "${ECHO_T}$NM" >&6 | |
252b5132 | 3292 | |
13b2be9c DJ |
3293 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3294 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3295 | LN_S=$as_ln_s | |
3296 | if test "$LN_S" = "ln -s"; then | |
3297 | echo "$as_me:$LINENO: result: yes" >&5 | |
3298 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 3299 | else |
13b2be9c DJ |
3300 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3301 | echo "${ECHO_T}no, using $LN_S" >&6 | |
252b5132 RH |
3302 | fi |
3303 | ||
13b2be9c DJ |
3304 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3305 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3306 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3308 | else |
d64552c5 | 3309 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
3310 | lt_cv_file_magic_test_file= |
3311 | lt_cv_deplibs_check_method='unknown' | |
3312 | # Need to set the preceding variable on all platforms that support | |
3313 | # interlibrary dependencies. | |
3314 | # 'none' -- dependencies not supported. | |
3315 | # `unknown' -- same as none, but documents that we really don't know. | |
3316 | # 'pass_all' -- all dependencies passed with no checks. | |
3317 | # 'test_compile' -- check by making test program. | |
3318 | # 'file_magic [regex]' -- check by looking for files in library path | |
3319 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3320 | # If you have `file' or equivalent on your system and you're not sure | |
3321 | # whether `pass_all' will *always* work, you probably want this one. | |
3322 | ||
f9c19112 HPN |
3323 | case $host_os in |
3324 | aix*) | |
ac48eca1 AO |
3325 | lt_cv_deplibs_check_method=pass_all |
3326 | ;; | |
3327 | ||
3328 | beos*) | |
3329 | lt_cv_deplibs_check_method=pass_all | |
3330 | ;; | |
3331 | ||
3332 | bsdi4*) | |
f9c19112 HPN |
3333 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3334 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
3335 | lt_cv_file_magic_test_file=/shlib/libc.so |
3336 | ;; | |
3337 | ||
d64552c5 | 3338 | cygwin* | mingw* |pw32*) |
ac48eca1 | 3339 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 3340 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
3341 | ;; |
3342 | ||
f9c19112 HPN |
3343 | darwin* | rhapsody*) |
3344 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
6840198f NC |
3345 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3346 | case "$host_os" in | |
3347 | rhapsody* | darwin1.012) | |
3348 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3349 | ;; | |
3350 | *) # Darwin 1.3 on | |
3351 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3352 | ;; | |
3353 | esac | |
f9c19112 HPN |
3354 | ;; |
3355 | ||
4101eec8 | 3356 | freebsd* | kfreebsd*-gnu) |
ac48eca1 | 3357 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
f9c19112 | 3358 | case $host_cpu in |
ac48eca1 | 3359 | i*86 ) |
58cccadb AO |
3360 | # Not sure whether the presence of OpenBSD here was a mistake. |
3361 | # Let's accept both of them until this is cleared up. | |
f9c19112 HPN |
3362 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3363 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
3364 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3365 | ;; | |
3366 | esac | |
3367 | else | |
3368 | lt_cv_deplibs_check_method=pass_all | |
3369 | fi | |
3370 | ;; | |
3371 | ||
3372 | gnu*) | |
3373 | lt_cv_deplibs_check_method=pass_all | |
3374 | ;; | |
3375 | ||
f9c19112 | 3376 | hpux10.20*|hpux11*) |
4867be41 DJ |
3377 | case $host_cpu in |
3378 | hppa*) | |
3379 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3380 | lt_cv_file_magic_cmd=/usr/bin/file | |
3381 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3382 | ;; | |
3383 | ia64*) | |
3384 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3385 | lt_cv_file_magic_cmd=/usr/bin/file | |
3386 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3387 | ;; | |
3388 | esac | |
ac48eca1 AO |
3389 | ;; |
3390 | ||
3391 | irix5* | irix6*) | |
f9c19112 | 3392 | case $host_os in |
ac48eca1 AO |
3393 | irix5*) |
3394 | # this will be overridden with pass_all, but let us keep it just in case | |
3395 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3396 | ;; | |
3397 | *) | |
f9c19112 | 3398 | case $LD in |
ac48eca1 AO |
3399 | *-32|*"-32 ") libmagic=32-bit;; |
3400 | *-n32|*"-n32 ") libmagic=N32;; | |
3401 | *-64|*"-64 ") libmagic=64-bit;; | |
3402 | *) libmagic=never-match;; | |
3403 | esac | |
3404 | # this will be overridden with pass_all, but let us keep it just in case | |
f9c19112 HPN |
3405 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3406 | ;; | |
ac48eca1 AO |
3407 | esac |
3408 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3409 | lt_cv_deplibs_check_method=pass_all | |
3410 | ;; | |
3411 | ||
3412 | # This must be Linux ELF. | |
58cccadb | 3413 | linux-gnu*) |
f9c19112 | 3414 | case $host_cpu in |
dbeba5e5 | 3415 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
ac48eca1 AO |
3416 | lt_cv_deplibs_check_method=pass_all ;; |
3417 | *) | |
3418 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
f9c19112 HPN |
3419 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
3420 | esac | |
ac48eca1 AO |
3421 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
3422 | ;; | |
3423 | ||
4101eec8 | 3424 | netbsd* | knetbsd*-gnu) |
f9c19112 | 3425 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
6840198f | 3426 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
ac48eca1 | 3427 | else |
6840198f | 3428 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 | 3429 | fi |
f9c19112 HPN |
3430 | ;; |
3431 | ||
3432 | newsos6) | |
3433 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3434 | lt_cv_file_magic_cmd=/usr/bin/file | |
3435 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
ac48eca1 AO |
3436 | ;; |
3437 | ||
3438 | osf3* | osf4* | osf5*) | |
3439 | # this will be overridden with pass_all, but let us keep it just in case | |
3440 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3441 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3442 | lt_cv_deplibs_check_method=pass_all | |
3443 | ;; | |
3444 | ||
3445 | sco3.2v5*) | |
3446 | lt_cv_deplibs_check_method=pass_all | |
3447 | ;; | |
3448 | ||
3449 | solaris*) | |
3450 | lt_cv_deplibs_check_method=pass_all | |
3451 | lt_cv_file_magic_test_file=/lib/libc.so | |
3452 | ;; | |
3453 | ||
6be7c12c AO |
3454 | sysv5uw[78]* | sysv4*uw2*) |
3455 | lt_cv_deplibs_check_method=pass_all | |
3456 | ;; | |
3457 | ||
ac48eca1 | 3458 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
f9c19112 | 3459 | case $host_vendor in |
ac48eca1 AO |
3460 | ncr) |
3461 | lt_cv_deplibs_check_method=pass_all | |
3462 | ;; | |
3463 | motorola) | |
f9c19112 HPN |
3464 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
3465 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
3466 | ;; |
3467 | esac | |
3468 | ;; | |
3469 | esac | |
3470 | ||
3471 | fi | |
13b2be9c DJ |
3472 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3473 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
ac48eca1 AO |
3474 | file_magic_cmd=$lt_cv_file_magic_cmd |
3475 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3476 | ||
c8615825 | 3477 | |
c8615825 | 3478 | |
c8615825 | 3479 | |
ac48eca1 AO |
3480 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
3481 | ||
3482 | # Only perform the check for file, if the check method requires it | |
f9c19112 | 3483 | case $deplibs_check_method in |
ac48eca1 | 3484 | file_magic*) |
d64552c5 | 3485 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
13b2be9c DJ |
3486 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
3487 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3488 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3490 | else |
f9c19112 | 3491 | case $MAGIC_CMD in |
ac48eca1 | 3492 | /*) |
d64552c5 | 3493 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3494 | ;; |
3495 | ?:/*) | |
d64552c5 | 3496 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3497 | ;; |
3498 | *) | |
d64552c5 | 3499 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3500 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3501 | ac_dummy="/usr/bin:$PATH" | |
3502 | for ac_dir in $ac_dummy; do | |
3503 | test -z "$ac_dir" && ac_dir=. | |
3504 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 3505 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 3506 | if test -n "$file_magic_test_file"; then |
f9c19112 | 3507 | case $deplibs_check_method in |
ac48eca1 AO |
3508 | "file_magic "*) |
3509 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3510 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3511 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3512 | egrep "$file_magic_regex" > /dev/null; then | |
3513 | : | |
3514 | else | |
3515 | cat <<EOF 1>&2 | |
3516 | ||
3517 | *** Warning: the command libtool uses to detect shared libraries, | |
3518 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3519 | *** The result is that libtool may fail to recognize shared libraries | |
3520 | *** as such. This will affect the creation of libtool libraries that | |
3521 | *** depend on shared libraries, but programs linked with such libtool | |
3522 | *** libraries will work regardless of this problem. Nevertheless, you | |
3523 | *** may want to report the problem to your system manager and/or to | |
3524 | *** bug-libtool@gnu.org | |
3525 | ||
3526 | EOF | |
3527 | fi ;; | |
3528 | esac | |
3529 | fi | |
3530 | break | |
3531 | fi | |
3532 | done | |
3533 | IFS="$ac_save_ifs" | |
d64552c5 | 3534 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3535 | ;; |
3536 | esac | |
3537 | fi | |
3538 | ||
d64552c5 AO |
3539 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3540 | if test -n "$MAGIC_CMD"; then | |
13b2be9c DJ |
3541 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3542 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3543 | else |
13b2be9c DJ |
3544 | echo "$as_me:$LINENO: result: no" >&5 |
3545 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3546 | fi |
3547 | ||
d64552c5 | 3548 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 3549 | if test -n "$ac_tool_prefix"; then |
13b2be9c DJ |
3550 | echo "$as_me:$LINENO: checking for file" >&5 |
3551 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3552 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3554 | else |
f9c19112 | 3555 | case $MAGIC_CMD in |
ac48eca1 | 3556 | /*) |
d64552c5 | 3557 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3558 | ;; |
3559 | ?:/*) | |
d64552c5 | 3560 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3561 | ;; |
3562 | *) | |
d64552c5 | 3563 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3564 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3565 | ac_dummy="/usr/bin:$PATH" | |
3566 | for ac_dir in $ac_dummy; do | |
3567 | test -z "$ac_dir" && ac_dir=. | |
3568 | if test -f $ac_dir/file; then | |
d64552c5 | 3569 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 3570 | if test -n "$file_magic_test_file"; then |
f9c19112 | 3571 | case $deplibs_check_method in |
ac48eca1 AO |
3572 | "file_magic "*) |
3573 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3574 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3575 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3576 | egrep "$file_magic_regex" > /dev/null; then | |
3577 | : | |
3578 | else | |
3579 | cat <<EOF 1>&2 | |
3580 | ||
3581 | *** Warning: the command libtool uses to detect shared libraries, | |
3582 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3583 | *** The result is that libtool may fail to recognize shared libraries | |
3584 | *** as such. This will affect the creation of libtool libraries that | |
3585 | *** depend on shared libraries, but programs linked with such libtool | |
3586 | *** libraries will work regardless of this problem. Nevertheless, you | |
3587 | *** may want to report the problem to your system manager and/or to | |
3588 | *** bug-libtool@gnu.org | |
3589 | ||
3590 | EOF | |
3591 | fi ;; | |
3592 | esac | |
3593 | fi | |
3594 | break | |
3595 | fi | |
3596 | done | |
3597 | IFS="$ac_save_ifs" | |
d64552c5 | 3598 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3599 | ;; |
3600 | esac | |
3601 | fi | |
3602 | ||
d64552c5 AO |
3603 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3604 | if test -n "$MAGIC_CMD"; then | |
13b2be9c DJ |
3605 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3606 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3607 | else |
13b2be9c DJ |
3608 | echo "$as_me:$LINENO: result: no" >&5 |
3609 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3610 | fi |
3611 | ||
3612 | else | |
d64552c5 | 3613 | MAGIC_CMD=: |
ac48eca1 AO |
3614 | fi |
3615 | fi | |
3616 | ||
3617 | fi | |
3618 | ;; | |
3619 | esac | |
3620 | ||
13b2be9c DJ |
3621 | if test -n "$ac_tool_prefix"; then |
3622 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ac48eca1 | 3623 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
13b2be9c DJ |
3624 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3625 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3626 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3628 | else |
3629 | if test -n "$RANLIB"; then | |
3630 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3631 | else | |
13b2be9c DJ |
3632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3633 | for as_dir in $PATH | |
3634 | do | |
3635 | IFS=$as_save_IFS | |
3636 | test -z "$as_dir" && as_dir=. | |
3637 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3638 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3639 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3640 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3641 | break 2 | |
3642 | fi | |
3643 | done | |
3644 | done | |
3645 | ||
ac48eca1 AO |
3646 | fi |
3647 | fi | |
13b2be9c | 3648 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 3649 | if test -n "$RANLIB"; then |
13b2be9c DJ |
3650 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3651 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 3652 | else |
13b2be9c DJ |
3653 | echo "$as_me:$LINENO: result: no" >&5 |
3654 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3655 | fi |
3656 | ||
13b2be9c | 3657 | fi |
ac48eca1 | 3658 | if test -z "$ac_cv_prog_RANLIB"; then |
13b2be9c | 3659 | ac_ct_RANLIB=$RANLIB |
ac48eca1 AO |
3660 | # Extract the first word of "ranlib", so it can be a program name with args. |
3661 | set dummy ranlib; ac_word=$2 | |
13b2be9c DJ |
3662 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3664 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d6d788bd | 3666 | else |
13b2be9c DJ |
3667 | if test -n "$ac_ct_RANLIB"; then |
3668 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
d6d788bd | 3669 | else |
13b2be9c DJ |
3670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3671 | for as_dir in $PATH | |
3672 | do | |
3673 | IFS=$as_save_IFS | |
3674 | test -z "$as_dir" && as_dir=. | |
3675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3676 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3677 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3679 | break 2 | |
3680 | fi | |
3681 | done | |
3682 | done | |
3683 | ||
3684 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ac48eca1 AO |
3685 | fi |
3686 | fi | |
13b2be9c DJ |
3687 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3688 | if test -n "$ac_ct_RANLIB"; then | |
3689 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3690 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ac48eca1 | 3691 | else |
13b2be9c DJ |
3692 | echo "$as_me:$LINENO: result: no" >&5 |
3693 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3694 | fi |
3695 | ||
13b2be9c | 3696 | RANLIB=$ac_ct_RANLIB |
ac48eca1 | 3697 | else |
13b2be9c | 3698 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 AO |
3699 | fi |
3700 | ||
13b2be9c DJ |
3701 | if test -n "$ac_tool_prefix"; then |
3702 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
ac48eca1 | 3703 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
13b2be9c DJ |
3704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3706 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3708 | else |
3709 | if test -n "$STRIP"; then | |
3710 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3711 | else | |
13b2be9c DJ |
3712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3713 | for as_dir in $PATH | |
3714 | do | |
3715 | IFS=$as_save_IFS | |
3716 | test -z "$as_dir" && as_dir=. | |
3717 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3718 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3719 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3721 | break 2 | |
3722 | fi | |
3723 | done | |
3724 | done | |
3725 | ||
ac48eca1 AO |
3726 | fi |
3727 | fi | |
13b2be9c | 3728 | STRIP=$ac_cv_prog_STRIP |
ac48eca1 | 3729 | if test -n "$STRIP"; then |
13b2be9c DJ |
3730 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3731 | echo "${ECHO_T}$STRIP" >&6 | |
ac48eca1 | 3732 | else |
13b2be9c DJ |
3733 | echo "$as_me:$LINENO: result: no" >&5 |
3734 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3735 | fi |
3736 | ||
13b2be9c | 3737 | fi |
ac48eca1 | 3738 | if test -z "$ac_cv_prog_STRIP"; then |
13b2be9c | 3739 | ac_ct_STRIP=$STRIP |
ac48eca1 AO |
3740 | # Extract the first word of "strip", so it can be a program name with args. |
3741 | set dummy strip; ac_word=$2 | |
13b2be9c DJ |
3742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3744 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3746 | else |
13b2be9c DJ |
3747 | if test -n "$ac_ct_STRIP"; then |
3748 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
ac48eca1 | 3749 | else |
13b2be9c DJ |
3750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3751 | for as_dir in $PATH | |
3752 | do | |
3753 | IFS=$as_save_IFS | |
3754 | test -z "$as_dir" && as_dir=. | |
3755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3757 | ac_cv_prog_ac_ct_STRIP="strip" | |
3758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3759 | break 2 | |
3760 | fi | |
3761 | done | |
3762 | done | |
3763 | ||
3764 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
d6d788bd L |
3765 | fi |
3766 | fi | |
13b2be9c DJ |
3767 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3768 | if test -n "$ac_ct_STRIP"; then | |
3769 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3770 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
d6d788bd | 3771 | else |
13b2be9c DJ |
3772 | echo "$as_me:$LINENO: result: no" >&5 |
3773 | echo "${ECHO_T}no" >&6 | |
d6d788bd L |
3774 | fi |
3775 | ||
13b2be9c | 3776 | STRIP=$ac_ct_STRIP |
d6d788bd | 3777 | else |
13b2be9c | 3778 | STRIP="$ac_cv_prog_STRIP" |
d6d788bd L |
3779 | fi |
3780 | ||
252b5132 | 3781 | |
252b5132 | 3782 | # Check for any special flags to pass to ltconfig. |
bedf545c | 3783 | libtool_flags="--cache-file=$cache_file" |
252b5132 RH |
3784 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
3785 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
bedf545c | 3786 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
f9c19112 HPN |
3787 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
3788 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 3789 | |
d6d788bd | 3790 | |
a74801ba ILT |
3791 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
3792 | if test "${enable_libtool_lock+set}" = set; then | |
3793 | enableval="$enable_libtool_lock" | |
a74801ba | 3794 | |
13b2be9c | 3795 | fi; |
a74801ba ILT |
3796 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
3797 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
3798 | ||
13b2be9c | 3799 | |
ac48eca1 AO |
3800 | # Check whether --with-pic or --without-pic was given. |
3801 | if test "${with_pic+set}" = set; then | |
3802 | withval="$with_pic" | |
3803 | pic_mode="$withval" | |
3804 | else | |
3805 | pic_mode=default | |
13b2be9c | 3806 | fi; |
ac48eca1 AO |
3807 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
3808 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
3809 | ||
252b5132 RH |
3810 | # Some flags need to be propagated to the compiler or linker for good |
3811 | # libtool support. | |
f9c19112 | 3812 | case $host in |
252b5132 RH |
3813 | *-*-irix6*) |
3814 | # Find out which ABI we are using. | |
1ad12f97 | 3815 | echo '#line 3815 "configure"' > conftest.$ac_ext |
13b2be9c DJ |
3816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3817 | (eval $ac_compile) 2>&5 | |
3818 | ac_status=$? | |
3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3820 | (exit $ac_status); }; then | |
e0001a05 NC |
3821 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3822 | case `/usr/bin/file conftest.$ac_objext` in | |
3823 | *32-bit*) | |
3824 | LD="${LD-ld} -melf32bsmip" | |
3825 | ;; | |
3826 | *N32*) | |
3827 | LD="${LD-ld} -melf32bmipn32" | |
3828 | ;; | |
3829 | *64-bit*) | |
3830 | LD="${LD-ld} -melf64bmip" | |
3831 | ;; | |
3832 | esac | |
3833 | else | |
f9c19112 | 3834 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
3835 | *32-bit*) |
3836 | LD="${LD-ld} -32" | |
3837 | ;; | |
3838 | *N32*) | |
3839 | LD="${LD-ld} -n32" | |
3840 | ;; | |
3841 | *64-bit*) | |
3842 | LD="${LD-ld} -64" | |
3843 | ;; | |
3844 | esac | |
e0001a05 | 3845 | fi |
252b5132 RH |
3846 | fi |
3847 | rm -rf conftest* | |
3848 | ;; | |
3849 | ||
4867be41 DJ |
3850 | ia64-*-hpux*) |
3851 | # Find out which ABI we are using. | |
3852 | echo 'int i;' > conftest.$ac_ext | |
13b2be9c DJ |
3853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3854 | (eval $ac_compile) 2>&5 | |
3855 | ac_status=$? | |
3856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3857 | (exit $ac_status); }; then | |
4867be41 DJ |
3858 | case "`/usr/bin/file conftest.o`" in |
3859 | *ELF-32*) | |
3860 | HPUX_IA64_MODE="32" | |
3861 | ;; | |
3862 | *ELF-64*) | |
3863 | HPUX_IA64_MODE="64" | |
3864 | ;; | |
3865 | esac | |
3866 | fi | |
3867 | rm -rf conftest* | |
3868 | ;; | |
3869 | ||
252b5132 RH |
3870 | *-*-sco3.2v5*) |
3871 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
bedf545c | 3872 | SAVE_CFLAGS="$CFLAGS" |
252b5132 | 3873 | CFLAGS="$CFLAGS -belf" |
13b2be9c DJ |
3874 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3875 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
3876 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
3877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bedf545c | 3878 | else |
13b2be9c DJ |
3879 | |
3880 | ||
ac48eca1 | 3881 | ac_ext=c |
ac48eca1 | 3882 | ac_cpp='$CPP $CPPFLAGS' |
13b2be9c DJ |
3883 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3884 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3885 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3886 | ||
3887 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
3888 | /* confdefs.h. */ |
3889 | _ACEOF | |
3890 | cat confdefs.h >>conftest.$ac_ext | |
3891 | cat >>conftest.$ac_ext <<_ACEOF | |
3892 | /* end confdefs.h. */ | |
bedf545c | 3893 | |
13b2be9c DJ |
3894 | int |
3895 | main () | |
3896 | { | |
6840198f | 3897 | |
13b2be9c DJ |
3898 | ; |
3899 | return 0; | |
3900 | } | |
3901 | _ACEOF | |
3902 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3903 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 3904 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 3905 | ac_status=$? |
ab509236 L |
3906 | grep -v '^ *+' conftest.er1 >conftest.err |
3907 | rm -f conftest.er1 | |
3908 | cat conftest.err >&5 | |
13b2be9c DJ |
3909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3910 | (exit $ac_status); } && | |
1ad12f97 NC |
3911 | { ac_try='test -z "$ac_c_werror_flag" |
3912 | || test ! -s conftest.err' | |
ab509236 L |
3913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3914 | (eval $ac_try) 2>&5 | |
3915 | ac_status=$? | |
3916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3917 | (exit $ac_status); }; } && | |
3918 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
3919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3920 | (eval $ac_try) 2>&5 | |
3921 | ac_status=$? | |
3922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3923 | (exit $ac_status); }; }; then | |
bedf545c ILT |
3924 | lt_cv_cc_needs_belf=yes |
3925 | else | |
13b2be9c DJ |
3926 | echo "$as_me: failed program was:" >&5 |
3927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3928 | ||
3929 | lt_cv_cc_needs_belf=no | |
bedf545c | 3930 | fi |
ab509236 L |
3931 | rm -f conftest.err conftest.$ac_objext \ |
3932 | conftest$ac_exeext conftest.$ac_ext | |
ac48eca1 | 3933 | ac_ext=c |
ac48eca1 | 3934 | ac_cpp='$CPP $CPPFLAGS' |
13b2be9c DJ |
3935 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3936 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3937 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 3938 | |
bedf545c | 3939 | fi |
13b2be9c DJ |
3940 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
3941 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
bedf545c ILT |
3942 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
3943 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
3944 | CFLAGS="$SAVE_CFLAGS" | |
3945 | fi | |
252b5132 RH |
3946 | ;; |
3947 | ||
d6d788bd | 3948 | |
252b5132 RH |
3949 | esac |
3950 | ||
d6d788bd | 3951 | |
bedf545c | 3952 | # Save cache, so that ltconfig can load it |
13b2be9c | 3953 | cat >confcache <<\_ACEOF |
bedf545c ILT |
3954 | # This file is a shell script that caches the results of configure |
3955 | # tests run on this system so they can be shared between configure | |
13b2be9c DJ |
3956 | # scripts and configure runs, see configure's option --config-cache. |
3957 | # It is not useful on other systems. If it contains results you don't | |
3958 | # want to keep, you may remove or edit it. | |
bedf545c | 3959 | # |
13b2be9c DJ |
3960 | # config.status only pays attention to the cache file if you give it |
3961 | # the --recheck option to rerun configure. | |
bedf545c | 3962 | # |
13b2be9c DJ |
3963 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
3964 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3965 | # following values. | |
3966 | ||
3967 | _ACEOF | |
3968 | ||
bedf545c | 3969 | # The following way of writing the cache mishandles newlines in values, |
9b2b7d69 MM |
3970 | # but we know of no workaround that is simple, portable, and efficient. |
3971 | # So, don't put newlines in cache variables' values. | |
3972 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3973 | # and sets the high bit in the cache file unless we assign to the vars. | |
13b2be9c DJ |
3974 | { |
3975 | (set) 2>&1 | | |
3976 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
3977 | *ac_space=\ *) | |
3978 | # `set' does not quote correctly, so add quotes (double-quote | |
3979 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3980 | sed -n \ | |
ab509236 L |
3981 | "s/'/'\\\\''/g; |
3982 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13b2be9c DJ |
3983 | ;; |
3984 | *) | |
3985 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3986 | sed -n \ | |
ab509236 | 3987 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
13b2be9c DJ |
3988 | ;; |
3989 | esac; | |
3990 | } | | |
3991 | sed ' | |
3992 | t clear | |
3993 | : clear | |
3994 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3995 | t end | |
3996 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3997 | : end' >>confcache | |
3998 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
bedf545c | 3999 | if test -w $cache_file; then |
13b2be9c DJ |
4000 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4001 | cat confcache >$cache_file | |
bedf545c ILT |
4002 | else |
4003 | echo "not updating unwritable cache $cache_file" | |
4004 | fi | |
4005 | fi | |
4006 | rm -f confcache | |
4007 | ||
252b5132 | 4008 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 4009 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 4010 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
4011 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4012 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4013 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4014 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 4015 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 4016 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
13b2be9c DJ |
4017 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4018 | echo "$as_me: error: libtool configure failed" >&2;} | |
4019 | { (exit 1); exit 1; }; } | |
252b5132 | 4020 | |
bedf545c ILT |
4021 | # Reload cache, that may have been modified by ltconfig |
4022 | if test -r "$cache_file"; then | |
13b2be9c DJ |
4023 | # Some versions of bash will fail to source /dev/null (special |
4024 | # files actually), so we avoid doing that. | |
4025 | if test -f "$cache_file"; then | |
4026 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4027 | echo "$as_me: loading cache $cache_file" >&6;} | |
4028 | case $cache_file in | |
4029 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4030 | *) . ./$cache_file;; | |
4031 | esac | |
4032 | fi | |
bedf545c | 4033 | else |
13b2be9c DJ |
4034 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4035 | echo "$as_me: creating cache $cache_file" >&6;} | |
4036 | >$cache_file | |
bedf545c ILT |
4037 | fi |
4038 | ||
d6d788bd | 4039 | |
bedf545c | 4040 | # This can be used to rebuild libtool when needed |
ac48eca1 | 4041 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
bedf545c ILT |
4042 | |
4043 | # Always use our own libtool. | |
4044 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4045 | ||
252b5132 RH |
4046 | # Redirect the config.log output again, so that the ltconfig log is not |
4047 | # clobbered by the next message. | |
4048 | exec 5>>./config.log | |
4049 | ||
d6d788bd | 4050 | |
13b2be9c DJ |
4051 | |
4052 | ||
4053 | ||
4054 | ||
d6d788bd | 4055 | |
252b5132 RH |
4056 | user_bfd_gas= |
4057 | # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given. | |
4058 | if test "${enable_bfd_assembler+set}" = set; then | |
4059 | enableval="$enable_bfd_assembler" | |
4060 | case "${enableval}" in | |
4061 | yes) need_bfd=yes user_bfd_gas=yes ;; | |
4062 | no) user_bfd_gas=no ;; | |
13b2be9c DJ |
4063 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5 |
4064 | echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;} | |
4065 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 4066 | esac |
13b2be9c | 4067 | fi; # Check whether --enable-targets or --disable-targets was given. |
252b5132 RH |
4068 | if test "${enable_targets+set}" = set; then |
4069 | enableval="$enable_targets" | |
4070 | case "${enableval}" in | |
13b2be9c DJ |
4071 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
4072 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
4073 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4074 | ;; |
4075 | no) enable_targets= ;; | |
4076 | *) enable_targets=$enableval ;; | |
4077 | esac | |
13b2be9c | 4078 | fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
252b5132 RH |
4079 | if test "${enable_commonbfdlib+set}" = set; then |
4080 | enableval="$enable_commonbfdlib" | |
4081 | case "${enableval}" in | |
4082 | yes) commonbfdlib=true ;; | |
4083 | no) commonbfdlib=false ;; | |
13b2be9c DJ |
4084 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 |
4085 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} | |
4086 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 4087 | esac |
13b2be9c | 4088 | fi; |
252b5132 RH |
4089 | using_cgen=no |
4090 | ||
9e9b66a9 AM |
4091 | |
4092 | WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | |
1ad12f97 | 4093 | |
569acd2c NC |
4094 | # Check whether --enable-werror or --disable-werror was given. |
4095 | if test "${enable_werror+set}" = set; then | |
4096 | enableval="$enable_werror" | |
1ad12f97 NC |
4097 | case "${enableval}" in |
4098 | yes | y) ERROR_ON_WARNING="yes" ;; | |
4099 | no | n) ERROR_ON_WARNING="no" ;; | |
569acd2c NC |
4100 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
4101 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
1ad12f97 NC |
4102 | { (exit 1); exit 1; }; } ;; |
4103 | esac | |
4104 | fi; | |
4105 | ||
9e9b66a9 AM |
4106 | # Enable -Werror by default when using gcc |
4107 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4108 | ERROR_ON_WARNING=yes | |
4109 | fi | |
4110 | ||
4111 | NO_WERROR= | |
4112 | if test "${ERROR_ON_WARNING}" = yes ; then | |
4113 | WARN_CFLAGS="$WARN_CFLAGS -Werror" | |
4114 | NO_WERROR="-Wno-error" | |
1ad12f97 NC |
4115 | fi |
4116 | ||
a2d91340 AC |
4117 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
4118 | if test "${enable_build_warnings+set}" = set; then | |
4119 | enableval="$enable_build_warnings" | |
4120 | case "${enableval}" in | |
4121 | yes) ;; | |
9e9b66a9 | 4122 | no) WARN_CFLAGS="-w";; |
a2d91340 | 4123 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
9e9b66a9 | 4124 | WARN_CFLAGS="${WARN_CFLAGS} ${t}";; |
a2d91340 | 4125 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
9e9b66a9 AM |
4126 | WARN_CFLAGS="${t} ${WARN_CFLAGS}";; |
4127 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
a2d91340 | 4128 | esac |
9e9b66a9 AM |
4129 | fi; |
4130 | ||
4131 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
4132 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
a2d91340 AC |
4133 | fi |
4134 | ||
d6d788bd | 4135 | |
9e9b66a9 AM |
4136 | |
4137 | ||
4138 | ||
252b5132 | 4139 | # Generate a header file |
13b2be9c | 4140 | ac_config_headers="$ac_config_headers config.h:config.in" |
d6d788bd | 4141 | |
252b5132 | 4142 | |
76a27922 ILT |
4143 | # If we are on a DOS filesystem, we must use gdb.ini rather than |
4144 | # .gdbinit. | |
76a27922 | 4145 | case "${host}" in |
591d4689 | 4146 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*) |
76a27922 | 4147 | GDBINIT="gdb.ini" |
13b2be9c DJ |
4148 | ac_config_files="$ac_config_files gdb.ini:gdbinit.in" |
4149 | ||
4150 | ;; | |
4151 | *) | |
4152 | GDBINIT=".gdbinit" | |
4153 | ac_config_files="$ac_config_files .gdbinit:gdbinit.in" | |
4154 | ||
76a27922 ILT |
4155 | ;; |
4156 | esac | |
4157 | ||
d6d788bd | 4158 | |
44f2f9d2 AM |
4159 | #We need this for the host. BOUT header is in host order. |
4160 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
4161 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
4162 | if test "${ac_cv_c_bigendian+set}" = set; then | |
4163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4164 | else | |
4165 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4166 | cat >conftest.$ac_ext <<_ACEOF | |
4167 | /* confdefs.h. */ | |
4168 | _ACEOF | |
4169 | cat confdefs.h >>conftest.$ac_ext | |
4170 | cat >>conftest.$ac_ext <<_ACEOF | |
4171 | /* end confdefs.h. */ | |
4172 | #include <sys/types.h> | |
4173 | #include <sys/param.h> | |
4174 | ||
4175 | int | |
4176 | main () | |
4177 | { | |
4178 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
4179 | bogus endian macros | |
4180 | #endif | |
4181 | ||
4182 | ; | |
4183 | return 0; | |
4184 | } | |
4185 | _ACEOF | |
4186 | rm -f conftest.$ac_objext | |
4187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4188 | (eval $ac_compile) 2>conftest.er1 | |
4189 | ac_status=$? | |
4190 | grep -v '^ *+' conftest.er1 >conftest.err | |
4191 | rm -f conftest.er1 | |
4192 | cat conftest.err >&5 | |
4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4194 | (exit $ac_status); } && | |
1ad12f97 NC |
4195 | { ac_try='test -z "$ac_c_werror_flag" |
4196 | || test ! -s conftest.err' | |
44f2f9d2 AM |
4197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4198 | (eval $ac_try) 2>&5 | |
4199 | ac_status=$? | |
4200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4201 | (exit $ac_status); }; } && | |
4202 | { ac_try='test -s conftest.$ac_objext' | |
4203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4204 | (eval $ac_try) 2>&5 | |
4205 | ac_status=$? | |
4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4207 | (exit $ac_status); }; }; then | |
4208 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4209 | cat >conftest.$ac_ext <<_ACEOF | |
4210 | /* confdefs.h. */ | |
4211 | _ACEOF | |
4212 | cat confdefs.h >>conftest.$ac_ext | |
4213 | cat >>conftest.$ac_ext <<_ACEOF | |
4214 | /* end confdefs.h. */ | |
4215 | #include <sys/types.h> | |
4216 | #include <sys/param.h> | |
4217 | ||
4218 | int | |
4219 | main () | |
4220 | { | |
4221 | #if BYTE_ORDER != BIG_ENDIAN | |
4222 | not big endian | |
4223 | #endif | |
4224 | ||
4225 | ; | |
4226 | return 0; | |
4227 | } | |
4228 | _ACEOF | |
4229 | rm -f conftest.$ac_objext | |
4230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4231 | (eval $ac_compile) 2>conftest.er1 | |
4232 | ac_status=$? | |
4233 | grep -v '^ *+' conftest.er1 >conftest.err | |
4234 | rm -f conftest.er1 | |
4235 | cat conftest.err >&5 | |
4236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4237 | (exit $ac_status); } && | |
1ad12f97 NC |
4238 | { ac_try='test -z "$ac_c_werror_flag" |
4239 | || test ! -s conftest.err' | |
44f2f9d2 AM |
4240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4241 | (eval $ac_try) 2>&5 | |
4242 | ac_status=$? | |
4243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4244 | (exit $ac_status); }; } && | |
4245 | { ac_try='test -s conftest.$ac_objext' | |
4246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4247 | (eval $ac_try) 2>&5 | |
4248 | ac_status=$? | |
4249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4250 | (exit $ac_status); }; }; then | |
4251 | ac_cv_c_bigendian=yes | |
4252 | else | |
4253 | echo "$as_me: failed program was:" >&5 | |
4254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4255 | ||
4256 | ac_cv_c_bigendian=no | |
4257 | fi | |
4258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4259 | else | |
4260 | echo "$as_me: failed program was:" >&5 | |
4261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4262 | ||
4263 | # It does not; compile a test program. | |
4264 | if test "$cross_compiling" = yes; then | |
4265 | # try to guess the endianness by grepping values into an object file | |
4266 | ac_cv_c_bigendian=unknown | |
4267 | cat >conftest.$ac_ext <<_ACEOF | |
4268 | /* confdefs.h. */ | |
4269 | _ACEOF | |
4270 | cat confdefs.h >>conftest.$ac_ext | |
4271 | cat >>conftest.$ac_ext <<_ACEOF | |
4272 | /* end confdefs.h. */ | |
4273 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
4274 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
4275 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
4276 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
4277 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
4278 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
4279 | int | |
4280 | main () | |
4281 | { | |
4282 | _ascii (); _ebcdic (); | |
4283 | ; | |
4284 | return 0; | |
4285 | } | |
4286 | _ACEOF | |
4287 | rm -f conftest.$ac_objext | |
4288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4289 | (eval $ac_compile) 2>conftest.er1 | |
4290 | ac_status=$? | |
4291 | grep -v '^ *+' conftest.er1 >conftest.err | |
4292 | rm -f conftest.er1 | |
4293 | cat conftest.err >&5 | |
4294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4295 | (exit $ac_status); } && | |
1ad12f97 NC |
4296 | { ac_try='test -z "$ac_c_werror_flag" |
4297 | || test ! -s conftest.err' | |
44f2f9d2 AM |
4298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4299 | (eval $ac_try) 2>&5 | |
4300 | ac_status=$? | |
4301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4302 | (exit $ac_status); }; } && | |
4303 | { ac_try='test -s conftest.$ac_objext' | |
4304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4305 | (eval $ac_try) 2>&5 | |
4306 | ac_status=$? | |
4307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4308 | (exit $ac_status); }; }; then | |
4309 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
4310 | ac_cv_c_bigendian=yes | |
4311 | fi | |
4312 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
4313 | if test "$ac_cv_c_bigendian" = unknown; then | |
4314 | ac_cv_c_bigendian=no | |
4315 | else | |
4316 | # finding both strings is unlikely to happen, but who knows? | |
4317 | ac_cv_c_bigendian=unknown | |
4318 | fi | |
4319 | fi | |
4320 | else | |
4321 | echo "$as_me: failed program was:" >&5 | |
4322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4323 | ||
4324 | fi | |
4325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4326 | else | |
4327 | cat >conftest.$ac_ext <<_ACEOF | |
4328 | /* confdefs.h. */ | |
4329 | _ACEOF | |
4330 | cat confdefs.h >>conftest.$ac_ext | |
4331 | cat >>conftest.$ac_ext <<_ACEOF | |
4332 | /* end confdefs.h. */ | |
4333 | int | |
4334 | main () | |
4335 | { | |
4336 | /* Are we little or big endian? From Harbison&Steele. */ | |
4337 | union | |
4338 | { | |
4339 | long l; | |
4340 | char c[sizeof (long)]; | |
4341 | } u; | |
4342 | u.l = 1; | |
4343 | exit (u.c[sizeof (long) - 1] == 1); | |
4344 | } | |
4345 | _ACEOF | |
4346 | rm -f conftest$ac_exeext | |
4347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4348 | (eval $ac_link) 2>&5 | |
4349 | ac_status=$? | |
4350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4351 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4353 | (eval $ac_try) 2>&5 | |
4354 | ac_status=$? | |
4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4356 | (exit $ac_status); }; }; then | |
4357 | ac_cv_c_bigendian=no | |
4358 | else | |
4359 | echo "$as_me: program exited with status $ac_status" >&5 | |
4360 | echo "$as_me: failed program was:" >&5 | |
4361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4362 | ||
4363 | ( exit $ac_status ) | |
4364 | ac_cv_c_bigendian=yes | |
4365 | fi | |
4366 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4367 | fi | |
4368 | fi | |
4369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4370 | fi | |
4371 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
4372 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
4373 | case $ac_cv_c_bigendian in | |
4374 | yes) | |
4375 | ||
4376 | cat >>confdefs.h <<\_ACEOF | |
4377 | #define WORDS_BIGENDIAN 1 | |
4378 | _ACEOF | |
4379 | ;; | |
4380 | no) | |
4381 | ;; | |
4382 | *) | |
4383 | { { echo "$as_me:$LINENO: error: unknown endianness | |
4384 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
4385 | echo "$as_me: error: unknown endianness | |
4386 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
4387 | { (exit 1); exit 1; }; } ;; | |
4388 | esac | |
4389 | ||
4390 | ||
252b5132 RH |
4391 | te_file=generic |
4392 | ||
4393 | # Makefile target for installing gas in $(tooldir)/bin. | |
4394 | install_tooldir=install-exec-tooldir | |
4395 | ||
4396 | canon_targets="" | |
15886821 | 4397 | all_targets=no |
252b5132 RH |
4398 | if test -n "$enable_targets" ; then |
4399 | for t in `echo $enable_targets | sed 's/,/ /g'`; do | |
15886821 L |
4400 | if test $t = "all"; then |
4401 | all_targets=yes | |
4402 | continue | |
4403 | fi | |
6d83c84b | 4404 | result=`$ac_config_sub $t 2>/dev/null` |
252b5132 RH |
4405 | if test -n "$result" ; then |
4406 | canon_targets="$canon_targets $result" | |
4407 | # else | |
4408 | # # Permit "all", etc. We don't support it yet though. | |
4409 | # canon_targets="$canon_targets $t" | |
4410 | fi | |
4411 | done | |
4412 | _gas_uniq_list="$canon_targets" | |
4413 | _gas_uniq_newlist="" | |
4414 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
4415 | case $_gas_uniq_i in | |
4416 | _gas_uniq_dummy) ;; | |
4417 | *) case " $_gas_uniq_newlist " in | |
4418 | *" $_gas_uniq_i "*) ;; | |
4419 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
4420 | esac ;; | |
4421 | esac | |
4422 | done | |
4423 | canon_targets=$_gas_uniq_newlist | |
4424 | ||
4425 | fi | |
4426 | ||
4427 | emulations="" | |
4428 | ||
4429 | for this_target in $target $canon_targets ; do | |
4430 | ||
14ee9f48 ILT |
4431 | targ=${this_target} |
4432 | . ${srcdir}/configure.tgt | |
4433 | ||
4434 | case ${target_cpu} in | |
4435 | crisv32) | |
ae57792d HPN |
4436 | |
4437 | cat >>confdefs.h <<_ACEOF | |
4438 | #define DEFAULT_CRIS_ARCH $arch | |
4439 | _ACEOF | |
4440 | ||
14ee9f48 | 4441 | ;; |
252b5132 RH |
4442 | esac |
4443 | ||
4444 | if test ${this_target} = $target ; then | |
4445 | target_cpu_type=${cpu_type} | |
4446 | elif test ${target_cpu_type} != ${cpu_type} ; then | |
4447 | continue | |
4448 | fi | |
4449 | ||
14ee9f48 | 4450 | generic_target=${cpu_type}-${target_vendor}-${target_os} |
252b5132 | 4451 | case ${generic_target} in |
14ee9f48 ILT |
4452 | i386-*-sco3.2v5*) |
4453 | if test ${this_target} = $target; then | |
13b2be9c DJ |
4454 | |
4455 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4456 | #define SCO_ELF 1 |
13b2be9c | 4457 | _ACEOF |
252b5132 | 4458 | |
14ee9f48 ILT |
4459 | fi |
4460 | ;; | |
4461 | ||
79500683 AM |
4462 | i386-*-msdosdjgpp* \ |
4463 | | i386-*-go32* \ | |
14ee9f48 | 4464 | | i386-go32-rtems*) |
13b2be9c DJ |
4465 | |
4466 | cat >>confdefs.h <<\_ACEOF | |
56385375 | 4467 | #define STRICTCOFF 1 |
13b2be9c | 4468 | _ACEOF |
14ee9f48 ILT |
4469 | |
4470 | ;; | |
4471 | ||
4472 | i860-*-*) | |
4473 | { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5 | |
4474 | echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} | |
4475 | ;; | |
4476 | ||
4477 | mips-sony-bsd*) | |
4478 | ;; | |
79500683 | 4479 | mips-*-bsd*) |
14ee9f48 | 4480 | { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5 |
13b2be9c | 4481 | echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;} |
14ee9f48 ILT |
4482 | { (exit 1); exit 1; }; } |
4483 | ;; | |
4484 | ||
4485 | ppc-*-aix5.*) | |
f8fc3443 NC |
4486 | |
4487 | cat >>confdefs.h <<\_ACEOF | |
4488 | #define AIX_WEAK_SUPPORT 1 | |
4489 | _ACEOF | |
4490 | ||
14ee9f48 | 4491 | ;; |
ed84e695 | 4492 | ppc-*-linux-*) |
14ee9f48 ILT |
4493 | case "$endian" in |
4494 | big) ;; | |
4495 | *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5 | |
13b2be9c DJ |
4496 | echo "$as_me: error: GNU/Linux must be configured big endian" >&2;} |
4497 | { (exit 1); exit 1; }; } ;; | |
14ee9f48 ILT |
4498 | esac |
4499 | ;; | |
4500 | ppc-*-solaris*) | |
4501 | if test ${this_target} = $target; then | |
13b2be9c DJ |
4502 | |
4503 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4504 | #define TARGET_SOLARIS_COMMENT 1 |
13b2be9c | 4505 | _ACEOF |
252b5132 | 4506 | |
14ee9f48 ILT |
4507 | fi |
4508 | if test x${endian} = xbig; then | |
4509 | { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5 | |
13b2be9c DJ |
4510 | echo "$as_me: error: Solaris must be configured little endian" >&2;} |
4511 | { (exit 1); exit 1; }; } | |
14ee9f48 ILT |
4512 | fi |
4513 | ;; | |
4514 | ||
4515 | sh*-*-symbianelf*) | |
85fbca6a NC |
4516 | |
4517 | cat >>confdefs.h <<\_ACEOF | |
4518 | #define TARGET_SYMBIAN 1 | |
4519 | _ACEOF | |
4520 | ||
14ee9f48 | 4521 | ;; |
252b5132 RH |
4522 | esac |
4523 | ||
4524 | if test ${this_target} = $target ; then | |
4525 | endian_def= | |
4526 | if test x${endian} = xbig; then | |
4527 | endian_def=1 | |
4528 | elif test x${endian} = xlittle; then | |
4529 | endian_def=0 | |
4530 | fi | |
4531 | if test x${endian_def} != x; then | |
13b2be9c DJ |
4532 | |
4533 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 4534 | #define TARGET_BYTES_BIG_ENDIAN $endian_def |
13b2be9c | 4535 | _ACEOF |
252b5132 RH |
4536 | |
4537 | fi | |
4538 | fi | |
4539 | ||
252b5132 RH |
4540 | # Other random stuff. |
4541 | ||
316f5878 RS |
4542 | case ${cpu_type} in |
4543 | mips) | |
4544 | # Set mips_cpu to the name of the default CPU. | |
4545 | case ${target_cpu} in | |
4546 | mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el) | |
4547 | mips_cpu=from-abi | |
4548 | ;; | |
4549 | mipsisa32 | mipsisa32el) | |
4550 | mips_cpu=mips32 | |
4551 | ;; | |
af7ee8bf CD |
4552 | mipsisa32r2 | mipsisa32r2el) |
4553 | mips_cpu=mips32r2 | |
4554 | ;; | |
316f5878 RS |
4555 | mipsisa64 | mipsisa64el) |
4556 | mips_cpu=mips64 | |
4557 | ;; | |
5f74bc13 CD |
4558 | mipsisa64r2 | mipsisa64r2el) |
4559 | mips_cpu=mips64r2 | |
4560 | ;; | |
316f5878 RS |
4561 | mipstx39 | mipstx39el) |
4562 | mips_cpu=r3900 | |
4563 | ;; | |
8f6847cb RS |
4564 | mips64vr | mips64vrel) |
4565 | mips_cpu=vr4100 | |
4566 | ;; | |
5f74bc13 | 4567 | mipsisa32r2* | mipsisa64r2*) |
af7ee8bf CD |
4568 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` |
4569 | ;; | |
316f5878 RS |
4570 | mips64* | mipsisa64* | mipsisa32*) |
4571 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'` | |
4572 | ;; | |
4573 | *) | |
13b2be9c DJ |
4574 | { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5 |
4575 | echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;} | |
4576 | { (exit 1); exit 1; }; } | |
316f5878 RS |
4577 | ;; |
4578 | esac | |
4579 | # See whether it's appropriate to set E_MIPS_ABI_O32 for o32 | |
4580 | # binaries. It's a GNU extension that some OSes don't understand. | |
4581 | # The value only matters on ELF targets. | |
4582 | case ${target} in | |
4583 | *-*-irix*) | |
4584 | use_e_mips_abi_o32=0 | |
4585 | ;; | |
4586 | *) | |
4587 | use_e_mips_abi_o32=1 | |
4588 | ;; | |
4589 | esac | |
4590 | # Decide whether to generate 32-bit or 64-bit code by default. | |
4591 | # Used to resolve -march=from-abi when an embedded ABI is selected. | |
4592 | case ${target} in | |
4593 | mips64*-*-* | mipsisa64*-*-*) | |
4594 | mips_default_64bit=1 | |
4595 | ;; | |
4596 | *) | |
4597 | mips_default_64bit=0 | |
4598 | ;; | |
4599 | esac | |
cac012d6 AO |
4600 | # Decide which ABI to target by default. |
4601 | case ${target} in | |
4602 | mips64*-linux* | mips-sgi-irix6*) | |
4603 | mips_default_abi=N32_ABI | |
4604 | ;; | |
4605 | mips*-linux*) | |
4606 | mips_default_abi=O32_ABI | |
4607 | ;; | |
26eebcf5 MK |
4608 | mips64*-openbsd*) |
4609 | mips_default_abi=N64_ABI | |
4610 | ;; | |
cac012d6 AO |
4611 | *) |
4612 | mips_default_abi=NO_ABI | |
4613 | ;; | |
4614 | esac | |
13b2be9c DJ |
4615 | |
4616 | cat >>confdefs.h <<_ACEOF | |
316f5878 | 4617 | #define MIPS_CPU_STRING_DEFAULT "$mips_cpu" |
13b2be9c | 4618 | _ACEOF |
316f5878 | 4619 | |
13b2be9c DJ |
4620 | |
4621 | cat >>confdefs.h <<_ACEOF | |
316f5878 | 4622 | #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32 |
13b2be9c | 4623 | _ACEOF |
316f5878 | 4624 | |
13b2be9c DJ |
4625 | |
4626 | cat >>confdefs.h <<_ACEOF | |
316f5878 | 4627 | #define MIPS_DEFAULT_64BIT $mips_default_64bit |
13b2be9c | 4628 | _ACEOF |
cac012d6 | 4629 | |
13b2be9c DJ |
4630 | |
4631 | cat >>confdefs.h <<_ACEOF | |
cac012d6 | 4632 | #define MIPS_DEFAULT_ABI $mips_default_abi |
13b2be9c | 4633 | _ACEOF |
316f5878 RS |
4634 | |
4635 | ;; | |
4636 | esac | |
4637 | ||
252b5132 RH |
4638 | # Do we need the opcodes library? |
4639 | case ${cpu_type} in | |
4640 | vax | i386 | tic30) | |
4641 | ;; | |
4642 | ||
4643 | *) | |
4644 | need_opcodes=yes | |
4645 | ||
4646 | case "${enable_shared}" in | |
4647 | yes) shared_opcodes=true ;; | |
4648 | *opcodes*) shared_opcodes=true ;; | |
4649 | *) shared_opcodes=false ;; | |
4650 | esac | |
4651 | if test "${shared_opcodes}" = "true"; then | |
4652 | # A shared libopcodes must be linked against libbfd. | |
4653 | need_bfd=yes | |
4654 | fi | |
4655 | ;; | |
4656 | esac | |
4657 | ||
4658 | # Any other special object files needed ? | |
4659 | case ${cpu_type} in | |
1c53c80d | 4660 | fr30 | ip2k | iq2000 | m32r | openrisc) |
252b5132 RH |
4661 | using_cgen=yes |
4662 | ;; | |
4663 | ||
0ebb9a87 DB |
4664 | frv) |
4665 | using_cgen=yes | |
4666 | ;; | |
252b5132 RH |
4667 | m68k) |
4668 | case ${extra_objects} in | |
4669 | *m68k-parse.o*) ;; | |
4670 | *) extra_objects="$extra_objects m68k-parse.o" ;; | |
4671 | esac | |
4672 | ;; | |
4673 | ||
4674 | mips) | |
13b2be9c | 4675 | echo ${extra_objects} | grep -s "itbl-parse.o" |
252b5132 RH |
4676 | if test $? -ne 0 ; then |
4677 | extra_objects="$extra_objects itbl-parse.o" | |
4678 | fi | |
4679 | ||
13b2be9c | 4680 | echo ${extra_objects} | grep -s "itbl-lex.o" |
252b5132 RH |
4681 | if test $? -ne 0 ; then |
4682 | extra_objects="$extra_objects itbl-lex.o" | |
4683 | fi | |
4684 | ||
13b2be9c | 4685 | echo ${extra_objects} | grep -s "itbl-ops.o" |
252b5132 RH |
4686 | if test $? -ne 0 ; then |
4687 | extra_objects="$extra_objects itbl-ops.o" | |
4688 | fi | |
4689 | ;; | |
4690 | ||
c1e4eef7 | 4691 | i386 | s390 | sparc) |
252b5132 | 4692 | if test $this_target = $target ; then |
13b2be9c DJ |
4693 | |
4694 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 4695 | #define DEFAULT_ARCH "${arch}" |
13b2be9c | 4696 | _ACEOF |
252b5132 RH |
4697 | |
4698 | fi | |
4699 | ;; | |
93fbbb04 GK |
4700 | |
4701 | xstormy16) | |
4702 | using_cgen=yes | |
4703 | ;; | |
4704 | ||
e0001a05 NC |
4705 | xtensa) |
4706 | echo ${extra_objects} | grep -s "xtensa-relax.o" | |
4707 | if test $? -ne 0 ; then | |
4708 | extra_objects="$extra_objects xtensa-relax.o" | |
4709 | fi | |
4710 | ;; | |
4711 | ||
252b5132 RH |
4712 | *) |
4713 | ;; | |
4714 | esac | |
4715 | ||
4716 | if test $using_cgen = yes ; then | |
4717 | case "x${extra_objects}" in | |
4718 | *cgen.o*) ;; | |
4719 | *) extra_objects="$extra_objects cgen.o" ;; | |
4720 | esac | |
4721 | fi | |
4722 | ||
4723 | # See if we really can support this configuration with the emulation code. | |
4724 | ||
4725 | if test $this_target = $target ; then | |
4726 | primary_bfd_gas=$bfd_gas | |
4727 | obj_format=$fmt | |
4728 | te_file=$em | |
4729 | ||
4730 | if test $bfd_gas = no ; then | |
4731 | # Can't support other configurations this way. | |
4732 | break | |
4733 | fi | |
4734 | elif test $bfd_gas = no ; then | |
4735 | # Can't support this configuration. | |
4736 | break | |
4737 | fi | |
4738 | ||
4739 | # From target name and format, produce a list of supported emulations. | |
4740 | ||
4741 | case ${generic_target}-${fmt} in | |
4742 | mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | |
056a1d49 | 4743 | mips*-*-linux*-*) case "$endian" in |
df3bcd6f L |
4744 | big) emulation="mipsbelf mipslelf mipself" ;; |
4745 | *) emulation="mipslelf mipsbelf mipself" ;; | |
252b5132 RH |
4746 | esac ;; |
4747 | mips-*-lnews*-ecoff) ;; | |
4748 | mips-*-*-ecoff) case "$endian" in | |
4749 | big) emulation="mipsbecoff mipslecoff mipsecoff" ;; | |
4750 | *) emulation="mipslecoff mipsbecoff mipsecoff" ;; | |
4751 | esac ;; | |
4752 | mips-*-*-elf) case "$endian" in | |
4753 | big) emulation="mipsbelf mipslelf mipself" ;; | |
4754 | *) emulation="mipslelf mipsbelf mipself" ;; | |
252b5132 | 4755 | esac ;; |
906fac54 | 4756 | mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; |
119caedd L |
4757 | # i386-pc-pe-coff != i386-pc-coff. |
4758 | i386-*-pe-coff) ;; | |
4c63da97 AM |
4759 | # Uncommenting the next line will turn on support for i386 AOUT |
4760 | # for the default linux configuration | |
4761 | # i386-*-linux*-elf) emulation="i386elf i386aout" ;; | |
4762 | # | |
4763 | i386-*-aout) emulation="i386aout" ;; | |
4ca72d38 | 4764 | i386-*-coff) emulation="i386coff" ;; |
4c63da97 | 4765 | i386-*-elf) emulation="i386elf" ;; |
3bcbcc3d | 4766 | |
f9c19112 HPN |
4767 | # Always all formats. The first stated emulation becomes the default. |
4768 | cris-*-*aout*) emulation="crisaout criself" ;; | |
4769 | cris-*-*) emulation="criself crisaout" ;; | |
252b5132 RH |
4770 | esac |
4771 | ||
4772 | emulations="$emulations $emulation" | |
4773 | ||
4774 | done | |
4775 | ||
15886821 L |
4776 | # Turn on all targets if possible |
4777 | if test ${all_targets} = "yes"; then | |
4778 | case ${target_cpu_type} in | |
4779 | i386) | |
4780 | case ${obj_format} in | |
4781 | aout) | |
4782 | emulations="$emulations i386coff i386elf" | |
4783 | ;; | |
4784 | coff) | |
4785 | emulations="$emulations i386aout i386elf" | |
4786 | ;; | |
4787 | elf) | |
4788 | emulations="$emulations i386aout i386coff" | |
4789 | ;; | |
4790 | esac | |
4791 | ;; | |
4792 | esac | |
4793 | fi | |
4794 | ||
252b5132 RH |
4795 | # Assign floating point type. Most processors with FP support |
4796 | # IEEE FP. On those that don't support FP at all, usually IEEE | |
4797 | # is emulated. | |
4798 | case ${target_cpu} in | |
4799 | vax | tahoe ) atof=${target_cpu} ;; | |
e135f41b | 4800 | pdp11) atof=vax ;; |
252b5132 RH |
4801 | *) atof=ieee ;; |
4802 | esac | |
4803 | ||
4804 | case "${obj_format}" in | |
13b2be9c DJ |
4805 | "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5 |
4806 | echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;} | |
4807 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
4808 | esac |
4809 | ||
4810 | # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU). | |
4811 | cgen_cpu_prefix="" | |
4812 | if test $using_cgen = yes ; then | |
4813 | case ${target_cpu} in | |
4814 | *) cgen_cpu_prefix=${target_cpu} ;; | |
4815 | esac | |
13b2be9c DJ |
4816 | |
4817 | ||
4818 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4819 | #define USING_CGEN 1 |
13b2be9c | 4820 | _ACEOF |
252b5132 RH |
4821 | |
4822 | fi | |
4823 | ||
d6d788bd | 4824 | |
252b5132 | 4825 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then |
13b2be9c DJ |
4826 | { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5 |
4827 | echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;} | |
4828 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4829 | fi |
4830 | ||
4831 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then | |
13b2be9c DJ |
4832 | { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5 |
4833 | echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;} | |
4834 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4835 | fi |
4836 | ||
4837 | case ${user_bfd_gas}-${primary_bfd_gas} in | |
4838 | yes-yes | no-no) | |
4839 | # We didn't override user's choice. | |
4840 | ;; | |
4841 | no-yes) | |
13b2be9c DJ |
4842 | { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5 |
4843 | echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;} | |
252b5132 RH |
4844 | ;; |
4845 | no-preferred) | |
4846 | primary_bfd_gas=no | |
4847 | ;; | |
4848 | *-preferred) | |
4849 | primary_bfd_gas=yes | |
4850 | ;; | |
4851 | yes-*) | |
4852 | primary_bfd_gas=yes | |
4853 | ;; | |
4854 | -*) | |
4855 | # User specified nothing. | |
4856 | ;; | |
4857 | esac | |
4858 | ||
4859 | # Some COFF configurations want these random other flags set. | |
4860 | case ${obj_format} in | |
4861 | coff) | |
4862 | case ${target_cpu_type} in | |
13b2be9c DJ |
4863 | i386) |
4864 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4865 | #define I386COFF 1 |
13b2be9c | 4866 | _ACEOF |
252b5132 | 4867 | ;; |
13b2be9c DJ |
4868 | m68k) |
4869 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4870 | #define M68KCOFF 1 |
13b2be9c | 4871 | _ACEOF |
252b5132 | 4872 | ;; |
13b2be9c DJ |
4873 | m88k) |
4874 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4875 | #define M88KCOFF 1 |
13b2be9c | 4876 | _ACEOF |
252b5132 RH |
4877 | ;; |
4878 | esac | |
4879 | ;; | |
4880 | esac | |
4881 | ||
4882 | # Getting this done right is going to be a bitch. Each configuration specified | |
4883 | # with --enable-targets=... should be checked for environment, format, cpu, and | |
4884 | # bfd_gas setting. | |
4885 | # | |
4886 | # For each configuration, the necessary object file support code must be linked | |
4887 | # in. This might be only one, it might be up to four. The necessary emulation | |
4888 | # code needs to be provided, too. | |
4889 | # | |
4890 | # And then there's "--enable-targets=all".... | |
4891 | # | |
4892 | # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh. | |
4893 | ||
4894 | formats="${obj_format}" | |
4895 | emfiles="" | |
4896 | EMULATIONS="" | |
4897 | _gas_uniq_list="$emulations" | |
4898 | _gas_uniq_newlist="" | |
4899 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
4900 | case $_gas_uniq_i in | |
4901 | _gas_uniq_dummy) ;; | |
4902 | *) case " $_gas_uniq_newlist " in | |
4903 | *" $_gas_uniq_i "*) ;; | |
4904 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
4905 | esac ;; | |
4906 | esac | |
4907 | done | |
4908 | emulations=$_gas_uniq_newlist | |
4909 | ||
4910 | for em in . $emulations ; do | |
4911 | case $em in | |
4912 | .) continue ;; | |
97238fbd | 4913 | mipsbelf | mipslelf | mipself) |
252b5132 | 4914 | fmt=elf file=mipself ;; |
97238fbd | 4915 | mipsbecoff | mipslecoff | mipsecoff) |
252b5132 | 4916 | fmt=ecoff file=mipsecoff ;; |
0aa5d426 HPN |
4917 | *coff) |
4918 | fmt=coff file=$em ;; | |
4919 | *aout) | |
4920 | fmt=aout file=$em ;; | |
4921 | *elf) | |
4922 | fmt=elf file=$em ;; | |
252b5132 RH |
4923 | esac |
4924 | formats="$formats $fmt" | |
4925 | emfiles="$emfiles e-$file.o" | |
4926 | EMULATIONS="$EMULATIONS &$em," | |
4927 | done | |
4928 | _gas_uniq_list="$formats" | |
4929 | _gas_uniq_newlist="" | |
4930 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
4931 | case $_gas_uniq_i in | |
4932 | _gas_uniq_dummy) ;; | |
4933 | *) case " $_gas_uniq_newlist " in | |
4934 | *" $_gas_uniq_i "*) ;; | |
4935 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
4936 | esac ;; | |
4937 | esac | |
4938 | done | |
4939 | formats=$_gas_uniq_newlist | |
4940 | ||
4941 | _gas_uniq_list="$emfiles" | |
4942 | _gas_uniq_newlist="" | |
4943 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
4944 | case $_gas_uniq_i in | |
4945 | _gas_uniq_dummy) ;; | |
4946 | *) case " $_gas_uniq_newlist " in | |
4947 | *" $_gas_uniq_i "*) ;; | |
4948 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
4949 | esac ;; | |
4950 | esac | |
4951 | done | |
4952 | emfiles=$_gas_uniq_newlist | |
4953 | ||
4954 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then | |
4955 | for fmt in $formats ; do | |
4956 | case $fmt in | |
13b2be9c DJ |
4957 | aout) |
4958 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4959 | #define OBJ_MAYBE_AOUT 1 |
13b2be9c | 4960 | _ACEOF |
252b5132 | 4961 | ;; |
13b2be9c DJ |
4962 | bout) |
4963 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4964 | #define OBJ_MAYBE_BOUT 1 |
13b2be9c | 4965 | _ACEOF |
252b5132 | 4966 | ;; |
13b2be9c DJ |
4967 | coff) |
4968 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4969 | #define OBJ_MAYBE_COFF 1 |
13b2be9c | 4970 | _ACEOF |
252b5132 | 4971 | ;; |
13b2be9c DJ |
4972 | ecoff) |
4973 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4974 | #define OBJ_MAYBE_ECOFF 1 |
13b2be9c | 4975 | _ACEOF |
252b5132 | 4976 | ;; |
13b2be9c DJ |
4977 | elf) |
4978 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4979 | #define OBJ_MAYBE_ELF 1 |
13b2be9c | 4980 | _ACEOF |
252b5132 | 4981 | ;; |
13b2be9c DJ |
4982 | generic) |
4983 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4984 | #define OBJ_MAYBE_GENERIC 1 |
13b2be9c | 4985 | _ACEOF |
252b5132 | 4986 | ;; |
13b2be9c DJ |
4987 | hp300) |
4988 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4989 | #define OBJ_MAYBE_HP300 1 |
13b2be9c | 4990 | _ACEOF |
252b5132 | 4991 | ;; |
13b2be9c DJ |
4992 | ieee) |
4993 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4994 | #define OBJ_MAYBE_IEEE 1 |
13b2be9c | 4995 | _ACEOF |
252b5132 | 4996 | ;; |
13b2be9c DJ |
4997 | som) |
4998 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4999 | #define OBJ_MAYBE_SOM 1 |
13b2be9c | 5000 | _ACEOF |
252b5132 RH |
5001 | ;; |
5002 | esac | |
5003 | extra_objects="$extra_objects obj-$fmt.o" | |
5004 | done | |
5005 | obj_format=multi | |
5006 | fi | |
5007 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then | |
252b5132 | 5008 | DEFAULT_EMULATION=`set . $emulations ; echo $2` |
4ca72d38 AM |
5009 | # e-mips* has more than one emulation per file, e-i386* has just one at the |
5010 | # moment. If only one emulation is specified, then don't define | |
5011 | # USE_EMULATIONS or include any of the e-files as they will only be bloat. | |
5012 | case "${obj_format}${emfiles}" in | |
5013 | multi* | *mips*) | |
4ca72d38 | 5014 | extra_objects="$extra_objects $emfiles" |
13b2be9c DJ |
5015 | |
5016 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5017 | #define USE_EMULATIONS 1 |
13b2be9c | 5018 | _ACEOF |
4ca72d38 AM |
5019 | ;; |
5020 | esac | |
252b5132 RH |
5021 | fi |
5022 | ||
13b2be9c DJ |
5023 | |
5024 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5025 | #define EMULATIONS $EMULATIONS |
13b2be9c DJ |
5026 | _ACEOF |
5027 | ||
252b5132 | 5028 | |
13b2be9c | 5029 | cat >>confdefs.h <<_ACEOF |
252b5132 | 5030 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION" |
13b2be9c | 5031 | _ACEOF |
252b5132 | 5032 | |
d6d788bd | 5033 | |
252b5132 RH |
5034 | case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in |
5035 | yes-*-coff) need_bfd=yes ;; | |
5036 | no-*-coff) need_bfd=yes | |
13b2be9c DJ |
5037 | |
5038 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5039 | #define MANY_SEGMENTS 1 |
13b2be9c | 5040 | _ACEOF |
252b5132 RH |
5041 | ;; |
5042 | esac | |
5043 | ||
5044 | reject_dev_configs=yes | |
5045 | ||
5046 | case ${reject_dev_configs}-${dev} in | |
5047 | yes-yes) # Oops. | |
13b2be9c DJ |
5048 | { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5 |
5049 | echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;} | |
5050 | { (exit 1); exit 1; }; } | |
252b5132 RH |
5051 | ;; |
5052 | esac | |
5053 | ||
d6d788bd L |
5054 | |
5055 | ||
5056 | ||
5057 | ||
5058 | ||
5059 | ||
252b5132 | 5060 | case "${primary_bfd_gas}" in |
13b2be9c DJ |
5061 | yes) |
5062 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5063 | #define BFD_ASSEMBLER 1 |
13b2be9c | 5064 | _ACEOF |
252b5132 RH |
5065 | |
5066 | need_bfd=yes ;; | |
5067 | esac | |
5068 | ||
5069 | # do we need the opcodes library? | |
5070 | case "${need_opcodes}" in | |
5071 | yes) | |
5072 | OPCODES_LIB=../opcodes/libopcodes.la | |
5073 | ;; | |
5074 | esac | |
5075 | ||
5076 | case "${need_bfd}" in | |
5077 | yes) | |
5078 | BFDLIB=../bfd/libbfd.la | |
4001ad8c | 5079 | BFDVER_H=../bfd/bfdver.h |
29589b0c | 5080 | ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h' |
252b5132 RH |
5081 | ;; |
5082 | esac | |
5083 | ||
d6d788bd L |
5084 | |
5085 | ||
5086 | ||
5087 | ||
5088 | ||
4001ad8c | 5089 | |
13b2be9c DJ |
5090 | |
5091 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5092 | #define TARGET_ALIAS "${target_alias}" |
13b2be9c | 5093 | _ACEOF |
9b2b7d69 | 5094 | |
13b2be9c DJ |
5095 | |
5096 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5097 | #define TARGET_CANONICAL "${target}" |
13b2be9c | 5098 | _ACEOF |
9b2b7d69 | 5099 | |
13b2be9c DJ |
5100 | |
5101 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5102 | #define TARGET_CPU "${target_cpu}" |
13b2be9c | 5103 | _ACEOF |
9b2b7d69 | 5104 | |
13b2be9c DJ |
5105 | |
5106 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5107 | #define TARGET_VENDOR "${target_vendor}" |
13b2be9c | 5108 | _ACEOF |
9b2b7d69 | 5109 | |
13b2be9c DJ |
5110 | |
5111 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5112 | #define TARGET_OS "${target_os}" |
13b2be9c DJ |
5113 | _ACEOF |
5114 | ||
5115 | ||
5116 | ac_ext=c | |
5117 | ac_cpp='$CPP $CPPFLAGS' | |
5118 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5119 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5120 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5121 | if test -n "$ac_tool_prefix"; then | |
5122 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
5123 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5124 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5125 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5126 | if test "${ac_cv_prog_CC+set}" = set; then | |
5127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5128 | else | |
5129 | if test -n "$CC"; then | |
5130 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5131 | else | |
5132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5133 | for as_dir in $PATH | |
5134 | do | |
5135 | IFS=$as_save_IFS | |
5136 | test -z "$as_dir" && as_dir=. | |
5137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5138 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5139 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
5140 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5141 | break 2 | |
5142 | fi | |
5143 | done | |
5144 | done | |
252b5132 | 5145 | |
13b2be9c DJ |
5146 | fi |
5147 | fi | |
5148 | CC=$ac_cv_prog_CC | |
5149 | if test -n "$CC"; then | |
5150 | echo "$as_me:$LINENO: result: $CC" >&5 | |
5151 | echo "${ECHO_T}$CC" >&6 | |
5152 | else | |
5153 | echo "$as_me:$LINENO: result: no" >&5 | |
5154 | echo "${ECHO_T}no" >&6 | |
5155 | fi | |
252b5132 | 5156 | |
13b2be9c DJ |
5157 | fi |
5158 | if test -z "$ac_cv_prog_CC"; then | |
5159 | ac_ct_CC=$CC | |
5160 | # Extract the first word of "gcc", so it can be a program name with args. | |
252b5132 | 5161 | set dummy gcc; ac_word=$2 |
13b2be9c DJ |
5162 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5164 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
5165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5166 | else | |
5167 | if test -n "$ac_ct_CC"; then | |
5168 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5169 | else | |
5170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5171 | for as_dir in $PATH | |
5172 | do | |
5173 | IFS=$as_save_IFS | |
5174 | test -z "$as_dir" && as_dir=. | |
5175 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5176 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5177 | ac_cv_prog_ac_ct_CC="gcc" | |
5178 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5179 | break 2 | |
5180 | fi | |
5181 | done | |
5182 | done | |
5183 | ||
5184 | fi | |
5185 | fi | |
5186 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5187 | if test -n "$ac_ct_CC"; then | |
5188 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
5189 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
5190 | else | |
5191 | echo "$as_me:$LINENO: result: no" >&5 | |
5192 | echo "${ECHO_T}no" >&6 | |
5193 | fi | |
5194 | ||
5195 | CC=$ac_ct_CC | |
5196 | else | |
5197 | CC="$ac_cv_prog_CC" | |
5198 | fi | |
5199 | ||
5200 | if test -z "$CC"; then | |
5201 | if test -n "$ac_tool_prefix"; then | |
5202 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
5203 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5204 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5206 | if test "${ac_cv_prog_CC+set}" = set; then | |
5207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5208 | else |
5209 | if test -n "$CC"; then | |
5210 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5211 | else | |
13b2be9c DJ |
5212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5213 | for as_dir in $PATH | |
5214 | do | |
5215 | IFS=$as_save_IFS | |
5216 | test -z "$as_dir" && as_dir=. | |
5217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5218 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5219 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
5220 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5221 | break 2 | |
5222 | fi | |
5223 | done | |
5224 | done | |
5225 | ||
252b5132 RH |
5226 | fi |
5227 | fi | |
13b2be9c | 5228 | CC=$ac_cv_prog_CC |
252b5132 | 5229 | if test -n "$CC"; then |
13b2be9c DJ |
5230 | echo "$as_me:$LINENO: result: $CC" >&5 |
5231 | echo "${ECHO_T}$CC" >&6 | |
5232 | else | |
5233 | echo "$as_me:$LINENO: result: no" >&5 | |
5234 | echo "${ECHO_T}no" >&6 | |
5235 | fi | |
5236 | ||
5237 | fi | |
5238 | if test -z "$ac_cv_prog_CC"; then | |
5239 | ac_ct_CC=$CC | |
5240 | # Extract the first word of "cc", so it can be a program name with args. | |
5241 | set dummy cc; ac_word=$2 | |
5242 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5244 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
5245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9b2b7d69 | 5246 | else |
13b2be9c DJ |
5247 | if test -n "$ac_ct_CC"; then |
5248 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5249 | else | |
5250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5251 | for as_dir in $PATH | |
5252 | do | |
5253 | IFS=$as_save_IFS | |
5254 | test -z "$as_dir" && as_dir=. | |
5255 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5256 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5257 | ac_cv_prog_ac_ct_CC="cc" | |
5258 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5259 | break 2 | |
5260 | fi | |
5261 | done | |
5262 | done | |
5263 | ||
5264 | fi | |
5265 | fi | |
5266 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5267 | if test -n "$ac_ct_CC"; then | |
5268 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
5269 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
5270 | else | |
5271 | echo "$as_me:$LINENO: result: no" >&5 | |
5272 | echo "${ECHO_T}no" >&6 | |
5273 | fi | |
5274 | ||
5275 | CC=$ac_ct_CC | |
5276 | else | |
5277 | CC="$ac_cv_prog_CC" | |
6840198f NC |
5278 | fi |
5279 | ||
13b2be9c | 5280 | fi |
252b5132 RH |
5281 | if test -z "$CC"; then |
5282 | # Extract the first word of "cc", so it can be a program name with args. | |
5283 | set dummy cc; ac_word=$2 | |
13b2be9c DJ |
5284 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5285 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5286 | if test "${ac_cv_prog_CC+set}" = set; then | |
5287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5288 | else |
5289 | if test -n "$CC"; then | |
5290 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5291 | else | |
252b5132 | 5292 | ac_prog_rejected=no |
13b2be9c DJ |
5293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5294 | for as_dir in $PATH | |
5295 | do | |
5296 | IFS=$as_save_IFS | |
5297 | test -z "$as_dir" && as_dir=. | |
5298 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5299 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5300 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
5301 | ac_prog_rejected=yes | |
5302 | continue | |
5303 | fi | |
5304 | ac_cv_prog_CC="cc" | |
5305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5306 | break 2 | |
5307 | fi | |
5308 | done | |
5309 | done | |
5310 | ||
252b5132 RH |
5311 | if test $ac_prog_rejected = yes; then |
5312 | # We found a bogon in the path, so make sure we never use it. | |
5313 | set dummy $ac_cv_prog_CC | |
5314 | shift | |
13b2be9c | 5315 | if test $# != 0; then |
252b5132 RH |
5316 | # We chose a different compiler from the bogus one. |
5317 | # However, it has the same basename, so the bogon will be chosen | |
5318 | # first if we set CC to just the basename; use the full file name. | |
5319 | shift | |
13b2be9c | 5320 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
252b5132 RH |
5321 | fi |
5322 | fi | |
5323 | fi | |
5324 | fi | |
13b2be9c | 5325 | CC=$ac_cv_prog_CC |
252b5132 | 5326 | if test -n "$CC"; then |
13b2be9c DJ |
5327 | echo "$as_me:$LINENO: result: $CC" >&5 |
5328 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 5329 | else |
13b2be9c DJ |
5330 | echo "$as_me:$LINENO: result: no" >&5 |
5331 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
5332 | fi |
5333 | ||
13b2be9c DJ |
5334 | fi |
5335 | if test -z "$CC"; then | |
5336 | if test -n "$ac_tool_prefix"; then | |
5337 | for ac_prog in cl | |
5338 | do | |
5339 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5340 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5341 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5343 | if test "${ac_cv_prog_CC+set}" = set; then | |
5344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5345 | else |
5346 | if test -n "$CC"; then | |
5347 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5348 | else | |
13b2be9c DJ |
5349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5350 | for as_dir in $PATH | |
5351 | do | |
5352 | IFS=$as_save_IFS | |
5353 | test -z "$as_dir" && as_dir=. | |
5354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5355 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5356 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
5357 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5358 | break 2 | |
5359 | fi | |
5360 | done | |
5361 | done | |
5362 | ||
252b5132 RH |
5363 | fi |
5364 | fi | |
13b2be9c | 5365 | CC=$ac_cv_prog_CC |
252b5132 | 5366 | if test -n "$CC"; then |
13b2be9c DJ |
5367 | echo "$as_me:$LINENO: result: $CC" >&5 |
5368 | echo "${ECHO_T}$CC" >&6 | |
c8615825 | 5369 | else |
13b2be9c DJ |
5370 | echo "$as_me:$LINENO: result: no" >&5 |
5371 | echo "${ECHO_T}no" >&6 | |
c8615825 | 5372 | fi |
6840198f | 5373 | |
13b2be9c DJ |
5374 | test -n "$CC" && break |
5375 | done | |
5376 | fi | |
5377 | if test -z "$CC"; then | |
5378 | ac_ct_CC=$CC | |
5379 | for ac_prog in cl | |
5380 | do | |
5381 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5382 | set dummy $ac_prog; ac_word=$2 | |
5383 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5385 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5387 | else |
13b2be9c DJ |
5388 | if test -n "$ac_ct_CC"; then |
5389 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
c8615825 | 5390 | else |
13b2be9c DJ |
5391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5392 | for as_dir in $PATH | |
5393 | do | |
5394 | IFS=$as_save_IFS | |
5395 | test -z "$as_dir" && as_dir=. | |
5396 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5397 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5398 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
5399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5400 | break 2 | |
5401 | fi | |
5402 | done | |
5403 | done | |
5404 | ||
c8615825 AM |
5405 | fi |
5406 | fi | |
13b2be9c DJ |
5407 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5408 | if test -n "$ac_ct_CC"; then | |
5409 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
5410 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
c8615825 | 5411 | else |
13b2be9c DJ |
5412 | echo "$as_me:$LINENO: result: no" >&5 |
5413 | echo "${ECHO_T}no" >&6 | |
c8615825 | 5414 | fi |
252b5132 | 5415 | |
13b2be9c DJ |
5416 | test -n "$ac_ct_CC" && break |
5417 | done | |
5418 | ||
5419 | CC=$ac_ct_CC | |
5420 | fi | |
5421 | ||
5422 | fi | |
5423 | ||
5424 | ||
5425 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
5426 | See \`config.log' for more details." >&5 | |
5427 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
5428 | See \`config.log' for more details." >&2;} | |
5429 | { (exit 1); exit 1; }; } | |
5430 | ||
5431 | # Provide some information about the compiler. | |
5432 | echo "$as_me:$LINENO:" \ | |
5433 | "checking for C compiler version" >&5 | |
5434 | ac_compiler=`set X $ac_compile; echo $2` | |
5435 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
5436 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
5437 | ac_status=$? | |
5438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5439 | (exit $ac_status); } | |
5440 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
5441 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
5442 | ac_status=$? | |
5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5444 | (exit $ac_status); } | |
5445 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
5446 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
5447 | ac_status=$? | |
5448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5449 | (exit $ac_status); } | |
5450 | ||
5451 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
5452 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
5453 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
5454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5455 | else | |
5456 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
5457 | /* confdefs.h. */ |
5458 | _ACEOF | |
5459 | cat confdefs.h >>conftest.$ac_ext | |
5460 | cat >>conftest.$ac_ext <<_ACEOF | |
5461 | /* end confdefs.h. */ | |
5462 | ||
5463 | int | |
5464 | main () | |
5465 | { | |
5466 | #ifndef __GNUC__ | |
5467 | choke me | |
5468 | #endif | |
5469 | ||
5470 | ; | |
5471 | return 0; | |
5472 | } | |
5473 | _ACEOF | |
5474 | rm -f conftest.$ac_objext | |
5475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 5476 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 5477 | ac_status=$? |
ab509236 L |
5478 | grep -v '^ *+' conftest.er1 >conftest.err |
5479 | rm -f conftest.er1 | |
5480 | cat conftest.err >&5 | |
13b2be9c DJ |
5481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5482 | (exit $ac_status); } && | |
1ad12f97 NC |
5483 | { ac_try='test -z "$ac_c_werror_flag" |
5484 | || test ! -s conftest.err' | |
ab509236 L |
5485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5486 | (eval $ac_try) 2>&5 | |
5487 | ac_status=$? | |
5488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5489 | (exit $ac_status); }; } && | |
5490 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
5491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5492 | (eval $ac_try) 2>&5 | |
5493 | ac_status=$? | |
5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5495 | (exit $ac_status); }; }; then | |
5496 | ac_compiler_gnu=yes | |
5497 | else | |
5498 | echo "$as_me: failed program was:" >&5 | |
5499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5500 | ||
5501 | ac_compiler_gnu=no | |
5502 | fi | |
ab509236 | 5503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
5504 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
5505 | ||
5506 | fi | |
5507 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
5508 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
5509 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
5510 | ac_test_CFLAGS=${CFLAGS+set} | |
5511 | ac_save_CFLAGS=$CFLAGS | |
5512 | CFLAGS="-g" | |
5513 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
5514 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
5515 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
5516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5517 | else | |
5518 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
5519 | /* confdefs.h. */ |
5520 | _ACEOF | |
5521 | cat confdefs.h >>conftest.$ac_ext | |
5522 | cat >>conftest.$ac_ext <<_ACEOF | |
5523 | /* end confdefs.h. */ | |
5524 | ||
5525 | int | |
5526 | main () | |
5527 | { | |
5528 | ||
5529 | ; | |
5530 | return 0; | |
5531 | } | |
5532 | _ACEOF | |
5533 | rm -f conftest.$ac_objext | |
5534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 5535 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 5536 | ac_status=$? |
ab509236 L |
5537 | grep -v '^ *+' conftest.er1 >conftest.err |
5538 | rm -f conftest.er1 | |
5539 | cat conftest.err >&5 | |
13b2be9c DJ |
5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5541 | (exit $ac_status); } && | |
1ad12f97 NC |
5542 | { ac_try='test -z "$ac_c_werror_flag" |
5543 | || test ! -s conftest.err' | |
ab509236 L |
5544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5545 | (eval $ac_try) 2>&5 | |
5546 | ac_status=$? | |
5547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5548 | (exit $ac_status); }; } && | |
5549 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
5550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5551 | (eval $ac_try) 2>&5 | |
5552 | ac_status=$? | |
5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5554 | (exit $ac_status); }; }; then | |
252b5132 RH |
5555 | ac_cv_prog_cc_g=yes |
5556 | else | |
13b2be9c DJ |
5557 | echo "$as_me: failed program was:" >&5 |
5558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c8615825 | 5559 | |
13b2be9c | 5560 | ac_cv_prog_cc_g=no |
252b5132 | 5561 | fi |
ab509236 | 5562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
5563 | fi |
5564 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
5565 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
252b5132 | 5566 | if test "$ac_test_CFLAGS" = set; then |
13b2be9c | 5567 | CFLAGS=$ac_save_CFLAGS |
252b5132 RH |
5568 | elif test $ac_cv_prog_cc_g = yes; then |
5569 | if test "$GCC" = yes; then | |
5570 | CFLAGS="-g -O2" | |
5571 | else | |
5572 | CFLAGS="-g" | |
5573 | fi | |
5574 | else | |
9b2b7d69 MM |
5575 | if test "$GCC" = yes; then |
5576 | CFLAGS="-O2" | |
5577 | else | |
5578 | CFLAGS= | |
5579 | fi | |
5580 | fi | |
13b2be9c DJ |
5581 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
5582 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
5583 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
5584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5585 | else | |
5586 | ac_cv_prog_cc_stdc=no | |
5587 | ac_save_CC=$CC | |
5588 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
5589 | /* confdefs.h. */ |
5590 | _ACEOF | |
5591 | cat confdefs.h >>conftest.$ac_ext | |
5592 | cat >>conftest.$ac_ext <<_ACEOF | |
5593 | /* end confdefs.h. */ | |
5594 | #include <stdarg.h> | |
5595 | #include <stdio.h> | |
5596 | #include <sys/types.h> | |
5597 | #include <sys/stat.h> | |
5598 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5599 | struct buf { int x; }; | |
5600 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5601 | static char *e (p, i) | |
5602 | char **p; | |
5603 | int i; | |
5604 | { | |
5605 | return p[i]; | |
5606 | } | |
5607 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5608 | { | |
5609 | char *s; | |
5610 | va_list v; | |
5611 | va_start (v,p); | |
5612 | s = g (p, va_arg (v,int)); | |
5613 | va_end (v); | |
5614 | return s; | |
5615 | } | |
ab509236 L |
5616 | |
5617 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5618 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5619 | These don't provoke an error unfortunately, instead are silently treated | |
5620 | as 'x'. The following induces an error, until -std1 is added to get | |
5621 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5622 | array size at least. It's necessary to write '\x00'==0 to get something | |
5623 | that's true only with -std1. */ | |
5624 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5625 | ||
13b2be9c DJ |
5626 | int test (int i, double x); |
5627 | struct s1 {int (*f) (int a);}; | |
5628 | struct s2 {int (*f) (double a);}; | |
5629 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5630 | int argc; | |
5631 | char **argv; | |
5632 | int | |
5633 | main () | |
5634 | { | |
5635 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5636 | ; | |
5637 | return 0; | |
5638 | } | |
5639 | _ACEOF | |
5640 | # Don't try gcc -ansi; that turns off useful extensions and | |
5641 | # breaks some systems' header files. | |
5642 | # AIX -qlanglvl=ansi | |
5643 | # Ultrix and OSF/1 -std1 | |
5644 | # HP-UX 10.20 and later -Ae | |
5645 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
5646 | # SVR4 -Xc -D__EXTENSIONS__ | |
5647 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5648 | do | |
5649 | CC="$ac_save_CC $ac_arg" | |
5650 | rm -f conftest.$ac_objext | |
5651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 5652 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 5653 | ac_status=$? |
ab509236 L |
5654 | grep -v '^ *+' conftest.er1 >conftest.err |
5655 | rm -f conftest.er1 | |
5656 | cat conftest.err >&5 | |
13b2be9c DJ |
5657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5658 | (exit $ac_status); } && | |
1ad12f97 NC |
5659 | { ac_try='test -z "$ac_c_werror_flag" |
5660 | || test ! -s conftest.err' | |
ab509236 L |
5661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5662 | (eval $ac_try) 2>&5 | |
5663 | ac_status=$? | |
5664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5665 | (exit $ac_status); }; } && | |
5666 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
5667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5668 | (eval $ac_try) 2>&5 | |
5669 | ac_status=$? | |
5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5671 | (exit $ac_status); }; }; then | |
5672 | ac_cv_prog_cc_stdc=$ac_arg | |
5673 | break | |
5674 | else | |
5675 | echo "$as_me: failed program was:" >&5 | |
5676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5677 | ||
5678 | fi | |
ab509236 | 5679 | rm -f conftest.err conftest.$ac_objext |
13b2be9c DJ |
5680 | done |
5681 | rm -f conftest.$ac_ext conftest.$ac_objext | |
5682 | CC=$ac_save_CC | |
5683 | ||
5684 | fi | |
5685 | ||
5686 | case "x$ac_cv_prog_cc_stdc" in | |
5687 | x|xno) | |
5688 | echo "$as_me:$LINENO: result: none needed" >&5 | |
5689 | echo "${ECHO_T}none needed" >&6 ;; | |
5690 | *) | |
5691 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
5692 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
5693 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
5694 | esac | |
5695 | ||
5696 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
5697 | # in C++ we need to declare it. In case someone uses the same compiler | |
5698 | # for both compiling C and C++ we need to have the C++ compiler decide | |
5699 | # the declaration of exit, since it's the most demanding environment. | |
5700 | cat >conftest.$ac_ext <<_ACEOF | |
5701 | #ifndef __cplusplus | |
5702 | choke me | |
5703 | #endif | |
5704 | _ACEOF | |
5705 | rm -f conftest.$ac_objext | |
5706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 5707 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 5708 | ac_status=$? |
ab509236 L |
5709 | grep -v '^ *+' conftest.er1 >conftest.err |
5710 | rm -f conftest.er1 | |
5711 | cat conftest.err >&5 | |
13b2be9c DJ |
5712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5713 | (exit $ac_status); } && | |
1ad12f97 NC |
5714 | { ac_try='test -z "$ac_c_werror_flag" |
5715 | || test ! -s conftest.err' | |
ab509236 L |
5716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5717 | (eval $ac_try) 2>&5 | |
5718 | ac_status=$? | |
5719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5720 | (exit $ac_status); }; } && | |
5721 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
5722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5723 | (eval $ac_try) 2>&5 | |
5724 | ac_status=$? | |
5725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5726 | (exit $ac_status); }; }; then | |
5727 | for ac_declaration in \ | |
ab509236 | 5728 | '' \ |
13b2be9c DJ |
5729 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
5730 | 'extern "C" void std::exit (int); using std::exit;' \ | |
5731 | 'extern "C" void exit (int) throw ();' \ | |
5732 | 'extern "C" void exit (int);' \ | |
5733 | 'void exit (int);' | |
5734 | do | |
5735 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
5736 | /* confdefs.h. */ |
5737 | _ACEOF | |
5738 | cat confdefs.h >>conftest.$ac_ext | |
5739 | cat >>conftest.$ac_ext <<_ACEOF | |
5740 | /* end confdefs.h. */ | |
13dfd2d0 | 5741 | $ac_declaration |
ab509236 | 5742 | #include <stdlib.h> |
13b2be9c DJ |
5743 | int |
5744 | main () | |
5745 | { | |
5746 | exit (42); | |
5747 | ; | |
5748 | return 0; | |
5749 | } | |
5750 | _ACEOF | |
5751 | rm -f conftest.$ac_objext | |
5752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 5753 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 5754 | ac_status=$? |
ab509236 L |
5755 | grep -v '^ *+' conftest.er1 >conftest.err |
5756 | rm -f conftest.er1 | |
5757 | cat conftest.err >&5 | |
13b2be9c DJ |
5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5759 | (exit $ac_status); } && | |
1ad12f97 NC |
5760 | { ac_try='test -z "$ac_c_werror_flag" |
5761 | || test ! -s conftest.err' | |
ab509236 L |
5762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5763 | (eval $ac_try) 2>&5 | |
5764 | ac_status=$? | |
5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5766 | (exit $ac_status); }; } && | |
5767 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
5768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5769 | (eval $ac_try) 2>&5 | |
5770 | ac_status=$? | |
5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5772 | (exit $ac_status); }; }; then | |
5773 | : | |
5774 | else | |
5775 | echo "$as_me: failed program was:" >&5 | |
5776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5777 | ||
5778 | continue | |
5779 | fi | |
ab509236 | 5780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c | 5781 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
5782 | /* confdefs.h. */ |
5783 | _ACEOF | |
5784 | cat confdefs.h >>conftest.$ac_ext | |
5785 | cat >>conftest.$ac_ext <<_ACEOF | |
5786 | /* end confdefs.h. */ | |
5787 | $ac_declaration | |
5788 | int | |
5789 | main () | |
5790 | { | |
5791 | exit (42); | |
5792 | ; | |
5793 | return 0; | |
5794 | } | |
5795 | _ACEOF | |
5796 | rm -f conftest.$ac_objext | |
5797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 5798 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 5799 | ac_status=$? |
ab509236 L |
5800 | grep -v '^ *+' conftest.er1 >conftest.err |
5801 | rm -f conftest.er1 | |
5802 | cat conftest.err >&5 | |
13b2be9c DJ |
5803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5804 | (exit $ac_status); } && | |
1ad12f97 NC |
5805 | { ac_try='test -z "$ac_c_werror_flag" |
5806 | || test ! -s conftest.err' | |
ab509236 L |
5807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5808 | (eval $ac_try) 2>&5 | |
5809 | ac_status=$? | |
5810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5811 | (exit $ac_status); }; } && | |
5812 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
5813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5814 | (eval $ac_try) 2>&5 | |
5815 | ac_status=$? | |
5816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5817 | (exit $ac_status); }; }; then | |
5818 | break | |
5819 | else | |
5820 | echo "$as_me: failed program was:" >&5 | |
5821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5822 | ||
5823 | fi | |
ab509236 | 5824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
5825 | done |
5826 | rm -f conftest* | |
5827 | if test -n "$ac_declaration"; then | |
5828 | echo '#ifdef __cplusplus' >>confdefs.h | |
5829 | echo $ac_declaration >>confdefs.h | |
5830 | echo '#endif' >>confdefs.h | |
5831 | fi | |
5832 | ||
5833 | else | |
5834 | echo "$as_me: failed program was:" >&5 | |
5835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5836 | ||
5837 | fi | |
ab509236 | 5838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
5839 | ac_ext=c |
5840 | ac_cpp='$CPP $CPPFLAGS' | |
5841 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5842 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5843 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c8615825 AM |
5844 | |
5845 | ||
5846 | for ac_prog in 'bison -y' byacc | |
9b2b7d69 | 5847 | do |
13b2be9c | 5848 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
c8615825 | 5849 | set dummy $ac_prog; ac_word=$2 |
13b2be9c DJ |
5850 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5852 | if test "${ac_cv_prog_YACC+set}" = set; then | |
5853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c8615825 AM |
5854 | else |
5855 | if test -n "$YACC"; then | |
5856 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5857 | else | |
13b2be9c DJ |
5858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5859 | for as_dir in $PATH | |
5860 | do | |
5861 | IFS=$as_save_IFS | |
5862 | test -z "$as_dir" && as_dir=. | |
5863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5864 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5865 | ac_cv_prog_YACC="$ac_prog" | |
5866 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5867 | break 2 | |
5868 | fi | |
5869 | done | |
5870 | done | |
5871 | ||
c8615825 AM |
5872 | fi |
5873 | fi | |
13b2be9c | 5874 | YACC=$ac_cv_prog_YACC |
c8615825 | 5875 | if test -n "$YACC"; then |
13b2be9c DJ |
5876 | echo "$as_me:$LINENO: result: $YACC" >&5 |
5877 | echo "${ECHO_T}$YACC" >&6 | |
c8615825 | 5878 | else |
13b2be9c DJ |
5879 | echo "$as_me:$LINENO: result: no" >&5 |
5880 | echo "${ECHO_T}no" >&6 | |
c8615825 AM |
5881 | fi |
5882 | ||
13b2be9c | 5883 | test -n "$YACC" && break |
c8615825 AM |
5884 | done |
5885 | test -n "$YACC" || YACC="yacc" | |
5886 | ||
13b2be9c DJ |
5887 | for ac_prog in flex lex |
5888 | do | |
5889 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5890 | set dummy $ac_prog; ac_word=$2 | |
5891 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5893 | if test "${ac_cv_prog_LEX+set}" = set; then | |
5894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c8615825 | 5895 | else |
13b2be9c DJ |
5896 | if test -n "$LEX"; then |
5897 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9b2b7d69 | 5898 | else |
13b2be9c DJ |
5899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5900 | for as_dir in $PATH | |
5901 | do | |
5902 | IFS=$as_save_IFS | |
5903 | test -z "$as_dir" && as_dir=. | |
5904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5905 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5906 | ac_cv_prog_LEX="$ac_prog" | |
5907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5908 | break 2 | |
5909 | fi | |
5910 | done | |
5911 | done | |
5912 | ||
5913 | fi | |
5914 | fi | |
5915 | LEX=$ac_cv_prog_LEX | |
5916 | if test -n "$LEX"; then | |
5917 | echo "$as_me:$LINENO: result: $LEX" >&5 | |
5918 | echo "${ECHO_T}$LEX" >&6 | |
c8615825 | 5919 | else |
13b2be9c DJ |
5920 | echo "$as_me:$LINENO: result: no" >&5 |
5921 | echo "${ECHO_T}no" >&6 | |
5922 | fi | |
5923 | ||
5924 | test -n "$LEX" && break | |
5925 | done | |
5926 | test -n "$LEX" || LEX=":" | |
5927 | ||
5928 | if test -z "$LEXLIB" | |
5929 | then | |
5930 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | |
5931 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
5932 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
5933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5934 | else | |
5935 | ac_check_lib_save_LIBS=$LIBS | |
5936 | LIBS="-lfl $LIBS" | |
5937 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
5938 | /* confdefs.h. */ |
5939 | _ACEOF | |
5940 | cat confdefs.h >>conftest.$ac_ext | |
5941 | cat >>conftest.$ac_ext <<_ACEOF | |
5942 | /* end confdefs.h. */ | |
5943 | ||
5944 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5945 | #ifdef __cplusplus | |
5946 | extern "C" | |
5947 | #endif | |
5948 | /* We use char because int might match the return type of a gcc2 | |
5949 | builtin and then its argument prototype would still apply. */ | |
5950 | char yywrap (); | |
5951 | int | |
5952 | main () | |
5953 | { | |
5954 | yywrap (); | |
5955 | ; | |
5956 | return 0; | |
5957 | } | |
5958 | _ACEOF | |
5959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 5961 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 5962 | ac_status=$? |
ab509236 L |
5963 | grep -v '^ *+' conftest.er1 >conftest.err |
5964 | rm -f conftest.er1 | |
5965 | cat conftest.err >&5 | |
13b2be9c DJ |
5966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5967 | (exit $ac_status); } && | |
1ad12f97 NC |
5968 | { ac_try='test -z "$ac_c_werror_flag" |
5969 | || test ! -s conftest.err' | |
ab509236 L |
5970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5971 | (eval $ac_try) 2>&5 | |
5972 | ac_status=$? | |
5973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5974 | (exit $ac_status); }; } && | |
5975 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
5976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5977 | (eval $ac_try) 2>&5 | |
5978 | ac_status=$? | |
5979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5980 | (exit $ac_status); }; }; then | |
5981 | ac_cv_lib_fl_yywrap=yes | |
5982 | else | |
5983 | echo "$as_me: failed program was:" >&5 | |
5984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5985 | ||
5986 | ac_cv_lib_fl_yywrap=no | |
5987 | fi | |
ab509236 L |
5988 | rm -f conftest.err conftest.$ac_objext \ |
5989 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
5990 | LIBS=$ac_check_lib_save_LIBS |
5991 | fi | |
5992 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
5993 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
5994 | if test $ac_cv_lib_fl_yywrap = yes; then | |
5995 | LEXLIB="-lfl" | |
5996 | else | |
5997 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
5998 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
5999 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
6000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6001 | else | |
6002 | ac_check_lib_save_LIBS=$LIBS | |
6003 | LIBS="-ll $LIBS" | |
6004 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
6005 | /* confdefs.h. */ |
6006 | _ACEOF | |
6007 | cat confdefs.h >>conftest.$ac_ext | |
6008 | cat >>conftest.$ac_ext <<_ACEOF | |
6009 | /* end confdefs.h. */ | |
6010 | ||
6011 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6012 | #ifdef __cplusplus | |
6013 | extern "C" | |
6014 | #endif | |
6015 | /* We use char because int might match the return type of a gcc2 | |
6016 | builtin and then its argument prototype would still apply. */ | |
6017 | char yywrap (); | |
6018 | int | |
6019 | main () | |
6020 | { | |
6021 | yywrap (); | |
6022 | ; | |
6023 | return 0; | |
6024 | } | |
6025 | _ACEOF | |
6026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 6028 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 6029 | ac_status=$? |
ab509236 L |
6030 | grep -v '^ *+' conftest.er1 >conftest.err |
6031 | rm -f conftest.er1 | |
6032 | cat conftest.err >&5 | |
13b2be9c DJ |
6033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6034 | (exit $ac_status); } && | |
1ad12f97 NC |
6035 | { ac_try='test -z "$ac_c_werror_flag" |
6036 | || test ! -s conftest.err' | |
ab509236 L |
6037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6038 | (eval $ac_try) 2>&5 | |
6039 | ac_status=$? | |
6040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6041 | (exit $ac_status); }; } && | |
6042 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
6043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6044 | (eval $ac_try) 2>&5 | |
6045 | ac_status=$? | |
6046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6047 | (exit $ac_status); }; }; then | |
6048 | ac_cv_lib_l_yywrap=yes | |
9b2b7d69 | 6049 | else |
13b2be9c DJ |
6050 | echo "$as_me: failed program was:" >&5 |
6051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6052 | ||
6053 | ac_cv_lib_l_yywrap=no | |
9b2b7d69 | 6054 | fi |
ab509236 L |
6055 | rm -f conftest.err conftest.$ac_objext \ |
6056 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 6057 | LIBS=$ac_check_lib_save_LIBS |
9b2b7d69 | 6058 | fi |
13b2be9c DJ |
6059 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
6060 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
6061 | if test $ac_cv_lib_l_yywrap = yes; then | |
6062 | LEXLIB="-ll" | |
252b5132 | 6063 | fi |
13b2be9c DJ |
6064 | |
6065 | fi | |
6066 | ||
252b5132 | 6067 | fi |
13b2be9c DJ |
6068 | |
6069 | if test "x$LEX" != "x:"; then | |
6070 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
6071 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
6072 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
6073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6074 | else | |
6075 | # The minimal lex program is just a single line: %%. But some broken lexes | |
6076 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
6077 | cat >conftest.l <<_ACEOF | |
6078 | %% | |
6079 | %% | |
6080 | _ACEOF | |
6081 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
6082 | (eval $LEX conftest.l) 2>&5 | |
6083 | ac_status=$? | |
6084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6085 | (exit $ac_status); } | |
6086 | if test -f lex.yy.c; then | |
6087 | ac_cv_prog_lex_root=lex.yy | |
6088 | elif test -f lexyy.c; then | |
6089 | ac_cv_prog_lex_root=lexyy | |
252b5132 | 6090 | else |
13b2be9c DJ |
6091 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
6092 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
6093 | { (exit 1); exit 1; }; } | |
252b5132 | 6094 | fi |
13b2be9c DJ |
6095 | fi |
6096 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | |
6097 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
6098 | rm -f conftest.l | |
6099 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
252b5132 | 6100 | |
13b2be9c DJ |
6101 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
6102 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
6103 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
6104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6105 | else |
13b2be9c DJ |
6106 | # POSIX says lex can declare yytext either as a pointer or an array; the |
6107 | # default is implementation-dependent. Figure out which it is, since | |
6108 | # not all implementations provide the %pointer and %array declarations. | |
6109 | ac_cv_prog_lex_yytext_pointer=no | |
6110 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
6111 | ac_save_LIBS=$LIBS | |
6112 | LIBS="$LIBS $LEXLIB" | |
6113 | cat >conftest.$ac_ext <<_ACEOF | |
6114 | `cat $LEX_OUTPUT_ROOT.c` | |
6115 | _ACEOF | |
6116 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 6118 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 6119 | ac_status=$? |
ab509236 L |
6120 | grep -v '^ *+' conftest.er1 >conftest.err |
6121 | rm -f conftest.er1 | |
6122 | cat conftest.err >&5 | |
13b2be9c DJ |
6123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6124 | (exit $ac_status); } && | |
1ad12f97 NC |
6125 | { ac_try='test -z "$ac_c_werror_flag" |
6126 | || test ! -s conftest.err' | |
ab509236 L |
6127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6128 | (eval $ac_try) 2>&5 | |
6129 | ac_status=$? | |
6130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6131 | (exit $ac_status); }; } && | |
6132 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
6133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6134 | (eval $ac_try) 2>&5 | |
6135 | ac_status=$? | |
6136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6137 | (exit $ac_status); }; }; then | |
6138 | ac_cv_prog_lex_yytext_pointer=yes | |
252b5132 | 6139 | else |
13b2be9c DJ |
6140 | echo "$as_me: failed program was:" >&5 |
6141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6142 | ||
252b5132 | 6143 | fi |
ab509236 L |
6144 | rm -f conftest.err conftest.$ac_objext \ |
6145 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
6146 | LIBS=$ac_save_LIBS |
6147 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
6148 | ||
252b5132 | 6149 | fi |
13b2be9c DJ |
6150 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
6151 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
6152 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
6153 | ||
6154 | cat >>confdefs.h <<\_ACEOF | |
6155 | #define YYTEXT_POINTER 1 | |
6156 | _ACEOF | |
6157 | ||
6158 | fi | |
6159 | ||
6160 | fi | |
6161 | if test "$LEX" = :; then | |
6162 | LEX=${am_missing_run}flex | |
6163 | fi | |
6164 | ||
0d6af1ab | 6165 | ALL_LINGUAS="fr tr es rw" |
13b2be9c DJ |
6166 | if test -n "$ac_tool_prefix"; then |
6167 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6168 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6169 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6171 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6173 | else | |
6174 | if test -n "$RANLIB"; then | |
6175 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6176 | else | |
6177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6178 | for as_dir in $PATH | |
6179 | do | |
6180 | IFS=$as_save_IFS | |
6181 | test -z "$as_dir" && as_dir=. | |
6182 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6183 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6184 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6186 | break 2 | |
6187 | fi | |
6188 | done | |
6189 | done | |
6190 | ||
6191 | fi | |
6192 | fi | |
6193 | RANLIB=$ac_cv_prog_RANLIB | |
6194 | if test -n "$RANLIB"; then | |
6195 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6196 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 6197 | else |
13b2be9c DJ |
6198 | echo "$as_me:$LINENO: result: no" >&5 |
6199 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
6200 | fi |
6201 | ||
13b2be9c DJ |
6202 | fi |
6203 | if test -z "$ac_cv_prog_RANLIB"; then | |
6204 | ac_ct_RANLIB=$RANLIB | |
6205 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6206 | set dummy ranlib; ac_word=$2 | |
6207 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6208 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6209 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6211 | else | |
6212 | if test -n "$ac_ct_RANLIB"; then | |
6213 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6214 | else | |
6215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6216 | for as_dir in $PATH | |
6217 | do | |
6218 | IFS=$as_save_IFS | |
6219 | test -z "$as_dir" && as_dir=. | |
6220 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6221 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6222 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6223 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6224 | break 2 | |
6225 | fi | |
6226 | done | |
6840198f | 6227 | done |
d6d788bd | 6228 | |
13b2be9c DJ |
6229 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6230 | fi | |
6231 | fi | |
6232 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6233 | if test -n "$ac_ct_RANLIB"; then | |
6234 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6235 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
d6d788bd | 6236 | else |
13b2be9c DJ |
6237 | echo "$as_me:$LINENO: result: no" >&5 |
6238 | echo "${ECHO_T}no" >&6 | |
6239 | fi | |
6240 | ||
6241 | RANLIB=$ac_ct_RANLIB | |
d6d788bd | 6242 | else |
13b2be9c DJ |
6243 | RANLIB="$ac_cv_prog_RANLIB" |
6244 | fi | |
6245 | ||
6246 | ac_ext=c | |
6247 | ac_cpp='$CPP $CPPFLAGS' | |
6248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6251 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
6252 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
6253 | # On Suns, sometimes $CPP names a directory. | |
6254 | if test -n "$CPP" && test -d "$CPP"; then | |
6255 | CPP= | |
d6d788bd | 6256 | fi |
13b2be9c DJ |
6257 | if test -z "$CPP"; then |
6258 | if test "${ac_cv_prog_CPP+set}" = set; then | |
6259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6260 | else | |
6261 | # Double quotes because CPP needs to be expanded | |
6262 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6263 | do | |
6264 | ac_preproc_ok=false | |
6265 | for ac_c_preproc_warn_flag in '' yes | |
6266 | do | |
6267 | # Use a header file that comes with gcc, so configuring glibc | |
6268 | # with a fresh cross-compiler works. | |
6269 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6270 | # <limits.h> exists even on freestanding compilers. | |
6271 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6272 | # not just through cpp. "Syntax error" is here to catch this case. | |
6273 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
6274 | /* confdefs.h. */ |
6275 | _ACEOF | |
6276 | cat confdefs.h >>conftest.$ac_ext | |
6277 | cat >>conftest.$ac_ext <<_ACEOF | |
6278 | /* end confdefs.h. */ | |
6279 | #ifdef __STDC__ | |
6280 | # include <limits.h> | |
6281 | #else | |
6282 | # include <assert.h> | |
6283 | #endif | |
ab509236 | 6284 | Syntax error |
13b2be9c DJ |
6285 | _ACEOF |
6286 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6287 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6288 | ac_status=$? | |
6289 | grep -v '^ *+' conftest.er1 >conftest.err | |
6290 | rm -f conftest.er1 | |
6291 | cat conftest.err >&5 | |
6292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6293 | (exit $ac_status); } >/dev/null; then | |
6294 | if test -s conftest.err; then | |
6295 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ab509236 | 6296 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
13b2be9c DJ |
6297 | else |
6298 | ac_cpp_err= | |
6299 | fi | |
6300 | else | |
6301 | ac_cpp_err=yes | |
d6d788bd | 6302 | fi |
13b2be9c DJ |
6303 | if test -z "$ac_cpp_err"; then |
6304 | : | |
6305 | else | |
6306 | echo "$as_me: failed program was:" >&5 | |
6307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6308 | ||
6309 | # Broken: fails on valid input. | |
6310 | continue | |
6311 | fi | |
6312 | rm -f conftest.err conftest.$ac_ext | |
6313 | ||
6314 | # OK, works on sane cases. Now check whether non-existent headers | |
6315 | # can be detected and how. | |
6316 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
6317 | /* confdefs.h. */ |
6318 | _ACEOF | |
6319 | cat confdefs.h >>conftest.$ac_ext | |
6320 | cat >>conftest.$ac_ext <<_ACEOF | |
6321 | /* end confdefs.h. */ | |
6322 | #include <ac_nonexistent.h> | |
6323 | _ACEOF | |
6324 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6325 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6326 | ac_status=$? | |
6327 | grep -v '^ *+' conftest.er1 >conftest.err | |
6328 | rm -f conftest.er1 | |
6329 | cat conftest.err >&5 | |
6330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6331 | (exit $ac_status); } >/dev/null; then | |
6332 | if test -s conftest.err; then | |
6333 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ab509236 | 6334 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
13b2be9c DJ |
6335 | else |
6336 | ac_cpp_err= | |
6337 | fi | |
d6d788bd | 6338 | else |
13b2be9c | 6339 | ac_cpp_err=yes |
d6d788bd | 6340 | fi |
13b2be9c DJ |
6341 | if test -z "$ac_cpp_err"; then |
6342 | # Broken: success on invalid input. | |
6343 | continue | |
6344 | else | |
6345 | echo "$as_me: failed program was:" >&5 | |
6346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6840198f | 6347 | |
13b2be9c DJ |
6348 | # Passes both tests. |
6349 | ac_preproc_ok=: | |
6350 | break | |
6351 | fi | |
6352 | rm -f conftest.err conftest.$ac_ext | |
252b5132 | 6353 | |
13b2be9c DJ |
6354 | done |
6355 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6356 | rm -f conftest.err conftest.$ac_ext | |
6357 | if $ac_preproc_ok; then | |
6358 | break | |
9b2b7d69 | 6359 | fi |
13b2be9c DJ |
6360 | |
6361 | done | |
6362 | ac_cv_prog_CPP=$CPP | |
9b2b7d69 | 6363 | |
d6d788bd | 6364 | fi |
13b2be9c | 6365 | CPP=$ac_cv_prog_CPP |
c8615825 | 6366 | else |
13b2be9c | 6367 | ac_cv_prog_CPP=$CPP |
c8615825 | 6368 | fi |
13b2be9c DJ |
6369 | echo "$as_me:$LINENO: result: $CPP" >&5 |
6370 | echo "${ECHO_T}$CPP" >&6 | |
6371 | ac_preproc_ok=false | |
6372 | for ac_c_preproc_warn_flag in '' yes | |
6373 | do | |
6374 | # Use a header file that comes with gcc, so configuring glibc | |
6375 | # with a fresh cross-compiler works. | |
6376 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6377 | # <limits.h> exists even on freestanding compilers. | |
6378 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6379 | # not just through cpp. "Syntax error" is here to catch this case. | |
6380 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
6381 | /* confdefs.h. */ |
6382 | _ACEOF | |
6383 | cat confdefs.h >>conftest.$ac_ext | |
6384 | cat >>conftest.$ac_ext <<_ACEOF | |
6385 | /* end confdefs.h. */ | |
6386 | #ifdef __STDC__ | |
6387 | # include <limits.h> | |
6388 | #else | |
6389 | # include <assert.h> | |
6390 | #endif | |
ab509236 | 6391 | Syntax error |
13b2be9c DJ |
6392 | _ACEOF |
6393 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6394 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6395 | ac_status=$? | |
6396 | grep -v '^ *+' conftest.er1 >conftest.err | |
6397 | rm -f conftest.er1 | |
6398 | cat conftest.err >&5 | |
6399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6400 | (exit $ac_status); } >/dev/null; then | |
6401 | if test -s conftest.err; then | |
6402 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ab509236 | 6403 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
13b2be9c DJ |
6404 | else |
6405 | ac_cpp_err= | |
6406 | fi | |
6407 | else | |
6408 | ac_cpp_err=yes | |
252b5132 | 6409 | fi |
13b2be9c DJ |
6410 | if test -z "$ac_cpp_err"; then |
6411 | : | |
252b5132 | 6412 | else |
13b2be9c DJ |
6413 | echo "$as_me: failed program was:" >&5 |
6414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6415 | ||
6416 | # Broken: fails on valid input. | |
6417 | continue | |
6418 | fi | |
6419 | rm -f conftest.err conftest.$ac_ext | |
6420 | ||
6421 | # OK, works on sane cases. Now check whether non-existent headers | |
6422 | # can be detected and how. | |
6423 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
6424 | /* confdefs.h. */ |
6425 | _ACEOF | |
6426 | cat confdefs.h >>conftest.$ac_ext | |
6427 | cat >>conftest.$ac_ext <<_ACEOF | |
6428 | /* end confdefs.h. */ | |
6429 | #include <ac_nonexistent.h> | |
6430 | _ACEOF | |
6431 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6432 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6433 | ac_status=$? | |
6434 | grep -v '^ *+' conftest.er1 >conftest.err | |
6435 | rm -f conftest.er1 | |
6436 | cat conftest.err >&5 | |
6437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6438 | (exit $ac_status); } >/dev/null; then | |
6439 | if test -s conftest.err; then | |
6440 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ab509236 | 6441 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
13b2be9c DJ |
6442 | else |
6443 | ac_cpp_err= | |
6444 | fi | |
252b5132 | 6445 | else |
13b2be9c | 6446 | ac_cpp_err=yes |
252b5132 | 6447 | fi |
13b2be9c DJ |
6448 | if test -z "$ac_cpp_err"; then |
6449 | # Broken: success on invalid input. | |
6450 | continue | |
252b5132 | 6451 | else |
13b2be9c DJ |
6452 | echo "$as_me: failed program was:" >&5 |
6453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c8615825 | 6454 | |
13b2be9c DJ |
6455 | # Passes both tests. |
6456 | ac_preproc_ok=: | |
6457 | break | |
252b5132 | 6458 | fi |
13b2be9c | 6459 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 6460 | |
13b2be9c DJ |
6461 | done |
6462 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6463 | rm -f conftest.err conftest.$ac_ext | |
6464 | if $ac_preproc_ok; then | |
6465 | : | |
6466 | else | |
6467 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
6468 | See \`config.log' for more details." >&5 | |
6469 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6470 | See \`config.log' for more details." >&2;} | |
6471 | { (exit 1); exit 1; }; } | |
252b5132 | 6472 | fi |
9b2b7d69 | 6473 | |
13b2be9c DJ |
6474 | ac_ext=c |
6475 | ac_cpp='$CPP $CPPFLAGS' | |
6476 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6477 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
252b5132 RH |
6479 | |
6480 | ||
13b2be9c DJ |
6481 | echo "$as_me:$LINENO: checking for egrep" >&5 |
6482 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
6483 | if test "${ac_cv_prog_egrep+set}" = set; then | |
6484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 6485 | else |
13b2be9c DJ |
6486 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
6487 | then ac_cv_prog_egrep='grep -E' | |
6488 | else ac_cv_prog_egrep='egrep' | |
c8615825 | 6489 | fi |
6840198f | 6490 | fi |
13b2be9c DJ |
6491 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
6492 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
6493 | EGREP=$ac_cv_prog_egrep | |
6840198f | 6494 | |
13b2be9c DJ |
6495 | |
6496 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
6497 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
6498 | if test "${ac_cv_header_stdc+set}" = set; then | |
6499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6840198f | 6500 | else |
13b2be9c | 6501 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
6502 | /* confdefs.h. */ |
6503 | _ACEOF | |
6504 | cat confdefs.h >>conftest.$ac_ext | |
6505 | cat >>conftest.$ac_ext <<_ACEOF | |
6506 | /* end confdefs.h. */ | |
252b5132 RH |
6507 | #include <stdlib.h> |
6508 | #include <stdarg.h> | |
6509 | #include <string.h> | |
6510 | #include <float.h> | |
13b2be9c DJ |
6511 | |
6512 | int | |
6513 | main () | |
6514 | { | |
6515 | ||
6516 | ; | |
6517 | return 0; | |
6518 | } | |
6519 | _ACEOF | |
6520 | rm -f conftest.$ac_objext | |
6521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 6522 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 6523 | ac_status=$? |
ab509236 L |
6524 | grep -v '^ *+' conftest.er1 >conftest.err |
6525 | rm -f conftest.er1 | |
6526 | cat conftest.err >&5 | |
13b2be9c DJ |
6527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6528 | (exit $ac_status); } && | |
1ad12f97 NC |
6529 | { ac_try='test -z "$ac_c_werror_flag" |
6530 | || test ! -s conftest.err' | |
ab509236 L |
6531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6532 | (eval $ac_try) 2>&5 | |
6533 | ac_status=$? | |
6534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6535 | (exit $ac_status); }; } && | |
6536 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
6537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6538 | (eval $ac_try) 2>&5 | |
6539 | ac_status=$? | |
6540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6541 | (exit $ac_status); }; }; then | |
252b5132 RH |
6542 | ac_cv_header_stdc=yes |
6543 | else | |
13b2be9c DJ |
6544 | echo "$as_me: failed program was:" >&5 |
6545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6546 | ||
6547 | ac_cv_header_stdc=no | |
252b5132 | 6548 | fi |
ab509236 | 6549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
6550 | |
6551 | if test $ac_cv_header_stdc = yes; then | |
6552 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
13b2be9c | 6553 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
6554 | /* confdefs.h. */ |
6555 | _ACEOF | |
6556 | cat confdefs.h >>conftest.$ac_ext | |
6557 | cat >>conftest.$ac_ext <<_ACEOF | |
6558 | /* end confdefs.h. */ | |
252b5132 | 6559 | #include <string.h> |
13b2be9c DJ |
6560 | |
6561 | _ACEOF | |
252b5132 | 6562 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13b2be9c | 6563 | $EGREP "memchr" >/dev/null 2>&1; then |
252b5132 RH |
6564 | : |
6565 | else | |
252b5132 RH |
6566 | ac_cv_header_stdc=no |
6567 | fi | |
6568 | rm -f conftest* | |
6569 | ||
6570 | fi | |
6571 | ||
6572 | if test $ac_cv_header_stdc = yes; then | |
6573 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
13b2be9c | 6574 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
6575 | /* confdefs.h. */ |
6576 | _ACEOF | |
6577 | cat confdefs.h >>conftest.$ac_ext | |
6578 | cat >>conftest.$ac_ext <<_ACEOF | |
6579 | /* end confdefs.h. */ | |
252b5132 | 6580 | #include <stdlib.h> |
13b2be9c DJ |
6581 | |
6582 | _ACEOF | |
252b5132 | 6583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13b2be9c | 6584 | $EGREP "free" >/dev/null 2>&1; then |
252b5132 RH |
6585 | : |
6586 | else | |
252b5132 RH |
6587 | ac_cv_header_stdc=no |
6588 | fi | |
6589 | rm -f conftest* | |
6590 | ||
6591 | fi | |
6592 | ||
6593 | if test $ac_cv_header_stdc = yes; then | |
6594 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
13b2be9c | 6595 | if test "$cross_compiling" = yes; then |
252b5132 RH |
6596 | : |
6597 | else | |
13b2be9c | 6598 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
6599 | /* confdefs.h. */ |
6600 | _ACEOF | |
6601 | cat confdefs.h >>conftest.$ac_ext | |
6602 | cat >>conftest.$ac_ext <<_ACEOF | |
6603 | /* end confdefs.h. */ | |
252b5132 | 6604 | #include <ctype.h> |
13b2be9c DJ |
6605 | #if ((' ' & 0x0FF) == 0x020) |
6606 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6607 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6608 | #else | |
6609 | # define ISLOWER(c) \ | |
ab509236 L |
6610 | (('a' <= (c) && (c) <= 'i') \ |
6611 | || ('j' <= (c) && (c) <= 'r') \ | |
6612 | || ('s' <= (c) && (c) <= 'z')) | |
13b2be9c DJ |
6613 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6614 | #endif | |
c8615825 | 6615 | |
13b2be9c DJ |
6616 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6617 | int | |
6618 | main () | |
6619 | { | |
6620 | int i; | |
6621 | for (i = 0; i < 256; i++) | |
6622 | if (XOR (islower (i), ISLOWER (i)) | |
ab509236 | 6623 | || toupper (i) != TOUPPER (i)) |
13b2be9c DJ |
6624 | exit(2); |
6625 | exit (0); | |
6626 | } | |
6627 | _ACEOF | |
6628 | rm -f conftest$ac_exeext | |
6629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6630 | (eval $ac_link) 2>&5 | |
6631 | ac_status=$? | |
6632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6633 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6635 | (eval $ac_try) 2>&5 | |
6636 | ac_status=$? | |
6637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6638 | (exit $ac_status); }; }; then | |
c8615825 AM |
6639 | : |
6640 | else | |
13b2be9c DJ |
6641 | echo "$as_me: program exited with status $ac_status" >&5 |
6642 | echo "$as_me: failed program was:" >&5 | |
6643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6644 | ||
6645 | ( exit $ac_status ) | |
6646 | ac_cv_header_stdc=no | |
c8615825 | 6647 | fi |
ab509236 | 6648 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c8615825 | 6649 | fi |
c8615825 | 6650 | fi |
9b2b7d69 | 6651 | fi |
13b2be9c DJ |
6652 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6653 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
c8615825 | 6654 | if test $ac_cv_header_stdc = yes; then |
13b2be9c DJ |
6655 | |
6656 | cat >>confdefs.h <<\_ACEOF | |
c8615825 | 6657 | #define STDC_HEADERS 1 |
13b2be9c | 6658 | _ACEOF |
9b2b7d69 | 6659 | |
c8615825 AM |
6660 | fi |
6661 | ||
13b2be9c DJ |
6662 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
6663 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
6664 | if test "${ac_cv_c_const+set}" = set; then | |
6665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6666 | else | |
6667 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
6668 | /* confdefs.h. */ |
6669 | _ACEOF | |
6670 | cat confdefs.h >>conftest.$ac_ext | |
6671 | cat >>conftest.$ac_ext <<_ACEOF | |
6672 | /* end confdefs.h. */ | |
c8615825 | 6673 | |
13b2be9c DJ |
6674 | int |
6675 | main () | |
6676 | { | |
6677 | /* FIXME: Include the comments suggested by Paul. */ | |
6678 | #ifndef __cplusplus | |
6679 | /* Ultrix mips cc rejects this. */ | |
6680 | typedef int charset[2]; | |
6681 | const charset x; | |
6682 | /* SunOS 4.1.1 cc rejects this. */ | |
6683 | char const *const *ccp; | |
6684 | char **p; | |
6685 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6686 | struct point {int x, y;}; | |
6687 | static struct point const zero = {0,0}; | |
6688 | /* AIX XL C 1.02.0.0 rejects this. | |
6689 | It does not let you subtract one const X* pointer from another in | |
6690 | an arm of an if-expression whose if-part is not a constant | |
6691 | expression */ | |
6692 | const char *g = "string"; | |
6693 | ccp = &g + (g ? g-g : 0); | |
6694 | /* HPUX 7.0 cc rejects these. */ | |
6695 | ++ccp; | |
6696 | p = (char**) ccp; | |
6697 | ccp = (char const *const *) p; | |
6698 | { /* SCO 3.2v4 cc rejects this. */ | |
6699 | char *t; | |
6700 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6701 | ||
6702 | *t++ = 0; | |
6703 | } | |
6704 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6705 | int x[] = {25, 17}; | |
6706 | const int *foo = &x[0]; | |
6707 | ++foo; | |
6708 | } | |
6709 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6710 | typedef const int *iptr; | |
6711 | iptr p = 0; | |
6712 | ++p; | |
6713 | } | |
6714 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6715 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6716 | struct s { int j; const int *ap[3]; }; | |
6717 | struct s *b; b->j = 5; | |
6718 | } | |
6719 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6720 | const int foo = 10; | |
6721 | } | |
6722 | #endif | |
6723 | ||
6724 | ; | |
6725 | return 0; | |
6726 | } | |
6727 | _ACEOF | |
6728 | rm -f conftest.$ac_objext | |
6729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 6730 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 6731 | ac_status=$? |
ab509236 L |
6732 | grep -v '^ *+' conftest.er1 >conftest.err |
6733 | rm -f conftest.er1 | |
6734 | cat conftest.err >&5 | |
13b2be9c DJ |
6735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6736 | (exit $ac_status); } && | |
1ad12f97 NC |
6737 | { ac_try='test -z "$ac_c_werror_flag" |
6738 | || test ! -s conftest.err' | |
ab509236 L |
6739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6740 | (eval $ac_try) 2>&5 | |
6741 | ac_status=$? | |
6742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6743 | (exit $ac_status); }; } && | |
6744 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
6745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6746 | (eval $ac_try) 2>&5 | |
6747 | ac_status=$? | |
6748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6749 | (exit $ac_status); }; }; then | |
252b5132 RH |
6750 | ac_cv_c_const=yes |
6751 | else | |
13b2be9c DJ |
6752 | echo "$as_me: failed program was:" >&5 |
6753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6754 | ||
6755 | ac_cv_c_const=no | |
252b5132 | 6756 | fi |
ab509236 | 6757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6758 | fi |
13b2be9c DJ |
6759 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
6760 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
c8615825 | 6761 | if test $ac_cv_c_const = no; then |
13b2be9c DJ |
6762 | |
6763 | cat >>confdefs.h <<\_ACEOF | |
6764 | #define const | |
6765 | _ACEOF | |
252b5132 RH |
6766 | |
6767 | fi | |
6768 | ||
13b2be9c DJ |
6769 | echo "$as_me:$LINENO: checking for inline" >&5 |
6770 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
6771 | if test "${ac_cv_c_inline+set}" = set; then | |
6772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6773 | else |
6774 | ac_cv_c_inline=no | |
6775 | for ac_kw in inline __inline__ __inline; do | |
13b2be9c | 6776 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
6777 | /* confdefs.h. */ |
6778 | _ACEOF | |
6779 | cat confdefs.h >>conftest.$ac_ext | |
6780 | cat >>conftest.$ac_ext <<_ACEOF | |
6781 | /* end confdefs.h. */ | |
6782 | #ifndef __cplusplus | |
6783 | typedef int foo_t; | |
6784 | static $ac_kw foo_t static_foo () {return 0; } | |
6785 | $ac_kw foo_t foo () {return 0; } | |
6786 | #endif | |
252b5132 | 6787 | |
13b2be9c DJ |
6788 | _ACEOF |
6789 | rm -f conftest.$ac_objext | |
6790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 6791 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 6792 | ac_status=$? |
ab509236 L |
6793 | grep -v '^ *+' conftest.er1 >conftest.err |
6794 | rm -f conftest.er1 | |
6795 | cat conftest.err >&5 | |
13b2be9c DJ |
6796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6797 | (exit $ac_status); } && | |
1ad12f97 NC |
6798 | { ac_try='test -z "$ac_c_werror_flag" |
6799 | || test ! -s conftest.err' | |
ab509236 L |
6800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6801 | (eval $ac_try) 2>&5 | |
6802 | ac_status=$? | |
6803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6804 | (exit $ac_status); }; } && | |
6805 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
6806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6807 | (eval $ac_try) 2>&5 | |
6808 | ac_status=$? | |
6809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6810 | (exit $ac_status); }; }; then | |
d6d788bd | 6811 | ac_cv_c_inline=$ac_kw; break |
6840198f | 6812 | else |
13b2be9c DJ |
6813 | echo "$as_me: failed program was:" >&5 |
6814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6815 | ||
6840198f | 6816 | fi |
ab509236 | 6817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d6d788bd | 6818 | done |
6840198f NC |
6819 | |
6820 | fi | |
13b2be9c DJ |
6821 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
6822 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ab509236 L |
6823 | |
6824 | ||
13b2be9c | 6825 | case $ac_cv_c_inline in |
d6d788bd | 6826 | inline | yes) ;; |
ab509236 L |
6827 | *) |
6828 | case $ac_cv_c_inline in | |
6829 | no) ac_val=;; | |
6830 | *) ac_val=$ac_cv_c_inline;; | |
6831 | esac | |
6832 | cat >>confdefs.h <<_ACEOF | |
6833 | #ifndef __cplusplus | |
6834 | #define inline $ac_val | |
6835 | #endif | |
13b2be9c | 6836 | _ACEOF |
ab509236 | 6837 | ;; |
d6d788bd L |
6838 | esac |
6839 | ||
13b2be9c DJ |
6840 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
6841 | ||
6842 | ||
6843 | ||
6844 | ||
6845 | ||
6846 | ||
6847 | ||
6848 | ||
6849 | ||
6850 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ab509236 | 6851 | inttypes.h stdint.h unistd.h |
13b2be9c DJ |
6852 | do |
6853 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6854 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6855 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6856 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6858 | else | |
6859 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
6860 | /* confdefs.h. */ |
6861 | _ACEOF | |
6862 | cat confdefs.h >>conftest.$ac_ext | |
6863 | cat >>conftest.$ac_ext <<_ACEOF | |
6864 | /* end confdefs.h. */ | |
6865 | $ac_includes_default | |
6866 | ||
6867 | #include <$ac_header> | |
6868 | _ACEOF | |
6869 | rm -f conftest.$ac_objext | |
6870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 6871 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 6872 | ac_status=$? |
ab509236 L |
6873 | grep -v '^ *+' conftest.er1 >conftest.err |
6874 | rm -f conftest.er1 | |
6875 | cat conftest.err >&5 | |
13b2be9c DJ |
6876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6877 | (exit $ac_status); } && | |
1ad12f97 NC |
6878 | { ac_try='test -z "$ac_c_werror_flag" |
6879 | || test ! -s conftest.err' | |
ab509236 L |
6880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6881 | (eval $ac_try) 2>&5 | |
6882 | ac_status=$? | |
6883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6884 | (exit $ac_status); }; } && | |
6885 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
6886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6887 | (eval $ac_try) 2>&5 | |
6888 | ac_status=$? | |
6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6890 | (exit $ac_status); }; }; then | |
6891 | eval "$as_ac_Header=yes" | |
6892 | else | |
6893 | echo "$as_me: failed program was:" >&5 | |
6894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6895 | ||
6896 | eval "$as_ac_Header=no" | |
6897 | fi | |
ab509236 | 6898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
6899 | fi |
6900 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6901 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6902 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6903 | cat >>confdefs.h <<_ACEOF | |
6904 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6905 | _ACEOF | |
6906 | ||
6907 | fi | |
6908 | ||
6909 | done | |
6910 | ||
6911 | ||
6912 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
6913 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
6914 | if test "${ac_cv_type_off_t+set}" = set; then | |
6915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6916 | else |
13b2be9c | 6917 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
6918 | /* confdefs.h. */ |
6919 | _ACEOF | |
6920 | cat confdefs.h >>conftest.$ac_ext | |
6921 | cat >>conftest.$ac_ext <<_ACEOF | |
6922 | /* end confdefs.h. */ | |
6923 | $ac_includes_default | |
6924 | int | |
6925 | main () | |
6926 | { | |
6927 | if ((off_t *) 0) | |
6928 | return 0; | |
6929 | if (sizeof (off_t)) | |
6930 | return 0; | |
6931 | ; | |
6932 | return 0; | |
6933 | } | |
6934 | _ACEOF | |
6935 | rm -f conftest.$ac_objext | |
6936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 6937 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 6938 | ac_status=$? |
ab509236 L |
6939 | grep -v '^ *+' conftest.er1 >conftest.err |
6940 | rm -f conftest.er1 | |
6941 | cat conftest.err >&5 | |
13b2be9c DJ |
6942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6943 | (exit $ac_status); } && | |
1ad12f97 NC |
6944 | { ac_try='test -z "$ac_c_werror_flag" |
6945 | || test ! -s conftest.err' | |
ab509236 L |
6946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6947 | (eval $ac_try) 2>&5 | |
6948 | ac_status=$? | |
6949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6950 | (exit $ac_status); }; } && | |
6951 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
6952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6953 | (eval $ac_try) 2>&5 | |
6954 | ac_status=$? | |
6955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6956 | (exit $ac_status); }; }; then | |
a2d91340 | 6957 | ac_cv_type_off_t=yes |
252b5132 | 6958 | else |
13b2be9c DJ |
6959 | echo "$as_me: failed program was:" >&5 |
6960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9b2b7d69 | 6961 | |
13b2be9c | 6962 | ac_cv_type_off_t=no |
c8615825 | 6963 | fi |
ab509236 | 6964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
6965 | fi |
6966 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
6967 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
6968 | if test $ac_cv_type_off_t = yes; then | |
6969 | : | |
6970 | else | |
6971 | ||
6972 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6973 | #define off_t long |
13b2be9c | 6974 | _ACEOF |
252b5132 RH |
6975 | |
6976 | fi | |
6977 | ||
13b2be9c DJ |
6978 | echo "$as_me:$LINENO: checking for size_t" >&5 |
6979 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
6980 | if test "${ac_cv_type_size_t+set}" = set; then | |
6981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6982 | else |
13b2be9c | 6983 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
6984 | /* confdefs.h. */ |
6985 | _ACEOF | |
6986 | cat confdefs.h >>conftest.$ac_ext | |
6987 | cat >>conftest.$ac_ext <<_ACEOF | |
6988 | /* end confdefs.h. */ | |
6989 | $ac_includes_default | |
6990 | int | |
6991 | main () | |
6992 | { | |
6993 | if ((size_t *) 0) | |
6994 | return 0; | |
6995 | if (sizeof (size_t)) | |
6996 | return 0; | |
6997 | ; | |
6998 | return 0; | |
6999 | } | |
7000 | _ACEOF | |
7001 | rm -f conftest.$ac_objext | |
7002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 7003 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 7004 | ac_status=$? |
ab509236 L |
7005 | grep -v '^ *+' conftest.er1 >conftest.err |
7006 | rm -f conftest.er1 | |
7007 | cat conftest.err >&5 | |
13b2be9c DJ |
7008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7009 | (exit $ac_status); } && | |
1ad12f97 NC |
7010 | { ac_try='test -z "$ac_c_werror_flag" |
7011 | || test ! -s conftest.err' | |
ab509236 L |
7012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7013 | (eval $ac_try) 2>&5 | |
7014 | ac_status=$? | |
7015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7016 | (exit $ac_status); }; } && | |
7017 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
7018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7019 | (eval $ac_try) 2>&5 | |
7020 | ac_status=$? | |
7021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7022 | (exit $ac_status); }; }; then | |
a2d91340 | 7023 | ac_cv_type_size_t=yes |
252b5132 | 7024 | else |
13b2be9c DJ |
7025 | echo "$as_me: failed program was:" >&5 |
7026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9b2b7d69 | 7027 | |
13b2be9c DJ |
7028 | ac_cv_type_size_t=no |
7029 | fi | |
ab509236 | 7030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c8615825 | 7031 | fi |
13b2be9c DJ |
7032 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
7033 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
7034 | if test $ac_cv_type_size_t = yes; then | |
7035 | : | |
7036 | else | |
7037 | ||
7038 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 7039 | #define size_t unsigned |
13b2be9c | 7040 | _ACEOF |
252b5132 RH |
7041 | |
7042 | fi | |
7043 | ||
7044 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
7045 | # for constant arguments. Useless! | |
13b2be9c DJ |
7046 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
7047 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
7048 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
7049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7050 | else | |
7051 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
7052 | /* confdefs.h. */ |
7053 | _ACEOF | |
7054 | cat confdefs.h >>conftest.$ac_ext | |
7055 | cat >>conftest.$ac_ext <<_ACEOF | |
7056 | /* end confdefs.h. */ | |
252b5132 | 7057 | #include <alloca.h> |
13b2be9c DJ |
7058 | int |
7059 | main () | |
7060 | { | |
7061 | char *p = (char *) alloca (2 * sizeof (int)); | |
7062 | ; | |
7063 | return 0; | |
7064 | } | |
7065 | _ACEOF | |
7066 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 7068 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 7069 | ac_status=$? |
ab509236 L |
7070 | grep -v '^ *+' conftest.er1 >conftest.err |
7071 | rm -f conftest.er1 | |
7072 | cat conftest.err >&5 | |
13b2be9c DJ |
7073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7074 | (exit $ac_status); } && | |
1ad12f97 NC |
7075 | { ac_try='test -z "$ac_c_werror_flag" |
7076 | || test ! -s conftest.err' | |
ab509236 L |
7077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7078 | (eval $ac_try) 2>&5 | |
7079 | ac_status=$? | |
7080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7081 | (exit $ac_status); }; } && | |
7082 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
7083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7084 | (eval $ac_try) 2>&5 | |
7085 | ac_status=$? | |
7086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7087 | (exit $ac_status); }; }; then | |
7088 | ac_cv_working_alloca_h=yes | |
7089 | else | |
7090 | echo "$as_me: failed program was:" >&5 | |
7091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7092 | ||
7093 | ac_cv_working_alloca_h=no | |
7094 | fi | |
ab509236 L |
7095 | rm -f conftest.err conftest.$ac_objext \ |
7096 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
7097 | fi |
7098 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
7099 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
7100 | if test $ac_cv_working_alloca_h = yes; then | |
7101 | ||
7102 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7103 | #define HAVE_ALLOCA_H 1 |
13b2be9c | 7104 | _ACEOF |
252b5132 RH |
7105 | |
7106 | fi | |
7107 | ||
13b2be9c DJ |
7108 | echo "$as_me:$LINENO: checking for alloca" >&5 |
7109 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
7110 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
7111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7112 | else |
13b2be9c | 7113 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
7114 | /* confdefs.h. */ |
7115 | _ACEOF | |
7116 | cat confdefs.h >>conftest.$ac_ext | |
7117 | cat >>conftest.$ac_ext <<_ACEOF | |
7118 | /* end confdefs.h. */ | |
252b5132 RH |
7119 | #ifdef __GNUC__ |
7120 | # define alloca __builtin_alloca | |
7121 | #else | |
7122 | # ifdef _MSC_VER | |
7123 | # include <malloc.h> | |
7124 | # define alloca _alloca | |
7125 | # else | |
7126 | # if HAVE_ALLOCA_H | |
7127 | # include <alloca.h> | |
7128 | # else | |
7129 | # ifdef _AIX | |
7130 | #pragma alloca | |
7131 | # else | |
7132 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
7133 | char *alloca (); | |
7134 | # endif | |
7135 | # endif | |
7136 | # endif | |
7137 | # endif | |
7138 | #endif | |
7139 | ||
13b2be9c DJ |
7140 | int |
7141 | main () | |
7142 | { | |
7143 | char *p = (char *) alloca (1); | |
7144 | ; | |
7145 | return 0; | |
7146 | } | |
7147 | _ACEOF | |
7148 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 7150 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 7151 | ac_status=$? |
ab509236 L |
7152 | grep -v '^ *+' conftest.er1 >conftest.err |
7153 | rm -f conftest.er1 | |
7154 | cat conftest.err >&5 | |
13b2be9c DJ |
7155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7156 | (exit $ac_status); } && | |
1ad12f97 NC |
7157 | { ac_try='test -z "$ac_c_werror_flag" |
7158 | || test ! -s conftest.err' | |
ab509236 L |
7159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7160 | (eval $ac_try) 2>&5 | |
7161 | ac_status=$? | |
7162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7163 | (exit $ac_status); }; } && | |
7164 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
7165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7166 | (eval $ac_try) 2>&5 | |
7167 | ac_status=$? | |
7168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7169 | (exit $ac_status); }; }; then | |
252b5132 RH |
7170 | ac_cv_func_alloca_works=yes |
7171 | else | |
13b2be9c DJ |
7172 | echo "$as_me: failed program was:" >&5 |
7173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7174 | ||
7175 | ac_cv_func_alloca_works=no | |
252b5132 | 7176 | fi |
ab509236 L |
7177 | rm -f conftest.err conftest.$ac_objext \ |
7178 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7179 | fi |
13b2be9c DJ |
7180 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
7181 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 7182 | |
252b5132 | 7183 | if test $ac_cv_func_alloca_works = yes; then |
9b2b7d69 | 7184 | |
13b2be9c DJ |
7185 | cat >>confdefs.h <<\_ACEOF |
7186 | #define HAVE_ALLOCA 1 | |
7187 | _ACEOF | |
9b2b7d69 | 7188 | |
13b2be9c | 7189 | else |
c8615825 | 7190 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
13b2be9c DJ |
7191 | # that cause trouble. Some versions do not even contain alloca or |
7192 | # contain a buggy version. If you still want to use their alloca, | |
7193 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
7194 | ||
7195 | ALLOCA=alloca.$ac_objext | |
7196 | ||
7197 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7198 | #define C_ALLOCA 1 |
13b2be9c | 7199 | _ACEOF |
252b5132 | 7200 | |
d6d788bd | 7201 | |
13b2be9c DJ |
7202 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
7203 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
7204 | if test "${ac_cv_os_cray+set}" = set; then | |
7205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7206 | else |
13b2be9c | 7207 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
7208 | /* confdefs.h. */ |
7209 | _ACEOF | |
7210 | cat confdefs.h >>conftest.$ac_ext | |
7211 | cat >>conftest.$ac_ext <<_ACEOF | |
7212 | /* end confdefs.h. */ | |
252b5132 RH |
7213 | #if defined(CRAY) && ! defined(CRAY2) |
7214 | webecray | |
7215 | #else | |
7216 | wenotbecray | |
7217 | #endif | |
7218 | ||
13b2be9c | 7219 | _ACEOF |
252b5132 | 7220 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13b2be9c | 7221 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
7222 | ac_cv_os_cray=yes |
7223 | else | |
252b5132 RH |
7224 | ac_cv_os_cray=no |
7225 | fi | |
7226 | rm -f conftest* | |
7227 | ||
7228 | fi | |
13b2be9c DJ |
7229 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
7230 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
252b5132 | 7231 | if test $ac_cv_os_cray = yes; then |
13b2be9c DJ |
7232 | for ac_func in _getb67 GETB67 getb67; do |
7233 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7234 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7235 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7236 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7238 | else | |
7239 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
7240 | /* confdefs.h. */ |
7241 | _ACEOF | |
7242 | cat confdefs.h >>conftest.$ac_ext | |
7243 | cat >>conftest.$ac_ext <<_ACEOF | |
7244 | /* end confdefs.h. */ | |
ab509236 L |
7245 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7246 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7247 | #define $ac_func innocuous_$ac_func | |
7248 | ||
252b5132 | 7249 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
7250 | which can conflict with char $ac_func (); below. |
7251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7252 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 7253 | |
13b2be9c DJ |
7254 | #ifdef __STDC__ |
7255 | # include <limits.h> | |
7256 | #else | |
7257 | # include <assert.h> | |
7258 | #endif | |
ab509236 L |
7259 | |
7260 | #undef $ac_func | |
7261 | ||
252b5132 | 7262 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
7263 | #ifdef __cplusplus |
7264 | extern "C" | |
7265 | { | |
7266 | #endif | |
252b5132 | 7267 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
7268 | builtin and then its argument prototype would still apply. */ |
7269 | char $ac_func (); | |
252b5132 RH |
7270 | /* The GNU C library defines this for functions which it implements |
7271 | to always fail with ENOSYS. Some functions are actually named | |
7272 | something starting with __ and the normal name is an alias. */ | |
7273 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7274 | choke me | |
7275 | #else | |
13b2be9c DJ |
7276 | char (*f) () = $ac_func; |
7277 | #endif | |
7278 | #ifdef __cplusplus | |
7279 | } | |
252b5132 RH |
7280 | #endif |
7281 | ||
13b2be9c DJ |
7282 | int |
7283 | main () | |
7284 | { | |
7285 | return f != $ac_func; | |
7286 | ; | |
7287 | return 0; | |
7288 | } | |
7289 | _ACEOF | |
7290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 7292 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 7293 | ac_status=$? |
ab509236 L |
7294 | grep -v '^ *+' conftest.er1 >conftest.err |
7295 | rm -f conftest.er1 | |
7296 | cat conftest.err >&5 | |
13b2be9c DJ |
7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7298 | (exit $ac_status); } && | |
1ad12f97 NC |
7299 | { ac_try='test -z "$ac_c_werror_flag" |
7300 | || test ! -s conftest.err' | |
ab509236 L |
7301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7302 | (eval $ac_try) 2>&5 | |
7303 | ac_status=$? | |
7304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7305 | (exit $ac_status); }; } && | |
7306 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
7307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7308 | (eval $ac_try) 2>&5 | |
7309 | ac_status=$? | |
7310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7311 | (exit $ac_status); }; }; then | |
7312 | eval "$as_ac_var=yes" | |
7313 | else | |
7314 | echo "$as_me: failed program was:" >&5 | |
7315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7316 | ||
7317 | eval "$as_ac_var=no" | |
7318 | fi | |
ab509236 L |
7319 | rm -f conftest.err conftest.$ac_objext \ |
7320 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
7321 | fi |
7322 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7323 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7324 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7325 | ||
7326 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 7327 | #define CRAY_STACKSEG_END $ac_func |
13b2be9c | 7328 | _ACEOF |
252b5132 | 7329 | |
13b2be9c | 7330 | break |
252b5132 RH |
7331 | fi |
7332 | ||
13b2be9c | 7333 | done |
252b5132 RH |
7334 | fi |
7335 | ||
13b2be9c DJ |
7336 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
7337 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
7338 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
7339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7340 | else |
7341 | if test "$cross_compiling" = yes; then | |
7342 | ac_cv_c_stack_direction=0 | |
7343 | else | |
13b2be9c | 7344 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
7345 | /* confdefs.h. */ |
7346 | _ACEOF | |
7347 | cat confdefs.h >>conftest.$ac_ext | |
7348 | cat >>conftest.$ac_ext <<_ACEOF | |
7349 | /* end confdefs.h. */ | |
7350 | int | |
252b5132 RH |
7351 | find_stack_direction () |
7352 | { | |
7353 | static char *addr = 0; | |
7354 | auto char dummy; | |
7355 | if (addr == 0) | |
7356 | { | |
7357 | addr = &dummy; | |
7358 | return find_stack_direction (); | |
7359 | } | |
7360 | else | |
7361 | return (&dummy > addr) ? 1 : -1; | |
7362 | } | |
13b2be9c DJ |
7363 | |
7364 | int | |
252b5132 RH |
7365 | main () |
7366 | { | |
13b2be9c | 7367 | exit (find_stack_direction () < 0); |
252b5132 | 7368 | } |
13b2be9c DJ |
7369 | _ACEOF |
7370 | rm -f conftest$ac_exeext | |
7371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7372 | (eval $ac_link) 2>&5 | |
7373 | ac_status=$? | |
7374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7375 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7377 | (eval $ac_try) 2>&5 | |
7378 | ac_status=$? | |
7379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7380 | (exit $ac_status); }; }; then | |
252b5132 RH |
7381 | ac_cv_c_stack_direction=1 |
7382 | else | |
13b2be9c DJ |
7383 | echo "$as_me: program exited with status $ac_status" >&5 |
7384 | echo "$as_me: failed program was:" >&5 | |
7385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7386 | ||
7387 | ( exit $ac_status ) | |
7388 | ac_cv_c_stack_direction=-1 | |
252b5132 | 7389 | fi |
ab509236 | 7390 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 7391 | fi |
252b5132 | 7392 | fi |
13b2be9c DJ |
7393 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
7394 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 7395 | |
13b2be9c | 7396 | cat >>confdefs.h <<_ACEOF |
252b5132 | 7397 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
13b2be9c DJ |
7398 | _ACEOF |
7399 | ||
252b5132 RH |
7400 | |
7401 | fi | |
7402 | ||
13b2be9c DJ |
7403 | |
7404 | ||
7405 | for ac_header in stdlib.h unistd.h | |
252b5132 | 7406 | do |
13b2be9c DJ |
7407 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7408 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7409 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7410 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7411 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7413 | fi | |
7414 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7415 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7416 | else | |
7417 | # Is the header compilable? | |
7418 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7419 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7420 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
7421 | /* confdefs.h. */ |
7422 | _ACEOF | |
7423 | cat confdefs.h >>conftest.$ac_ext | |
7424 | cat >>conftest.$ac_ext <<_ACEOF | |
7425 | /* end confdefs.h. */ | |
7426 | $ac_includes_default | |
7427 | #include <$ac_header> | |
7428 | _ACEOF | |
7429 | rm -f conftest.$ac_objext | |
7430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 7431 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 7432 | ac_status=$? |
ab509236 L |
7433 | grep -v '^ *+' conftest.er1 >conftest.err |
7434 | rm -f conftest.er1 | |
7435 | cat conftest.err >&5 | |
13b2be9c DJ |
7436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7437 | (exit $ac_status); } && | |
1ad12f97 NC |
7438 | { ac_try='test -z "$ac_c_werror_flag" |
7439 | || test ! -s conftest.err' | |
ab509236 L |
7440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7441 | (eval $ac_try) 2>&5 | |
7442 | ac_status=$? | |
7443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7444 | (exit $ac_status); }; } && | |
7445 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
7446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7447 | (eval $ac_try) 2>&5 | |
7448 | ac_status=$? | |
7449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7450 | (exit $ac_status); }; }; then | |
7451 | ac_header_compiler=yes | |
7452 | else | |
7453 | echo "$as_me: failed program was:" >&5 | |
7454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7455 | ||
7456 | ac_header_compiler=no | |
7457 | fi | |
ab509236 | 7458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
7459 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7460 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7461 | ||
7462 | # Is the header present? | |
7463 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7464 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7465 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
7466 | /* confdefs.h. */ |
7467 | _ACEOF | |
7468 | cat confdefs.h >>conftest.$ac_ext | |
7469 | cat >>conftest.$ac_ext <<_ACEOF | |
7470 | /* end confdefs.h. */ | |
7471 | #include <$ac_header> | |
7472 | _ACEOF | |
7473 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7474 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7475 | ac_status=$? | |
7476 | grep -v '^ *+' conftest.er1 >conftest.err | |
7477 | rm -f conftest.er1 | |
7478 | cat conftest.err >&5 | |
7479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7480 | (exit $ac_status); } >/dev/null; then | |
7481 | if test -s conftest.err; then | |
7482 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ab509236 | 7483 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
13b2be9c DJ |
7484 | else |
7485 | ac_cpp_err= | |
7486 | fi | |
252b5132 | 7487 | else |
13b2be9c DJ |
7488 | ac_cpp_err=yes |
7489 | fi | |
7490 | if test -z "$ac_cpp_err"; then | |
7491 | ac_header_preproc=yes | |
7492 | else | |
7493 | echo "$as_me: failed program was:" >&5 | |
7494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7495 | ||
7496 | ac_header_preproc=no | |
7497 | fi | |
7498 | rm -f conftest.err conftest.$ac_ext | |
7499 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7500 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7501 | ||
7502 | # So? What about this header? | |
ab509236 L |
7503 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7504 | yes:no: ) | |
13b2be9c DJ |
7505 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7506 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ab509236 L |
7507 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7508 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7509 | ac_header_preproc=yes | |
13b2be9c | 7510 | ;; |
ab509236 | 7511 | no:yes:* ) |
13b2be9c DJ |
7512 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7513 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ab509236 L |
7514 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7515 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7516 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7517 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7518 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7519 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13b2be9c DJ |
7520 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7521 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ab509236 L |
7522 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7523 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13b2be9c DJ |
7524 | ( |
7525 | cat <<\_ASBOX | |
ab509236 L |
7526 | ## ------------------------------------------ ## |
7527 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7528 | ## ------------------------------------------ ## | |
13b2be9c DJ |
7529 | _ASBOX |
7530 | ) | | |
7531 | sed "s/^/$as_me: WARNING: /" >&2 | |
7532 | ;; | |
7533 | esac | |
7534 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7535 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7536 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7538 | else | |
ab509236 | 7539 | eval "$as_ac_Header=\$ac_header_preproc" |
252b5132 | 7540 | fi |
13b2be9c DJ |
7541 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7542 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7543 | ||
252b5132 | 7544 | fi |
13b2be9c DJ |
7545 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7546 | cat >>confdefs.h <<_ACEOF | |
7547 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7548 | _ACEOF | |
7549 | ||
252b5132 | 7550 | fi |
13b2be9c | 7551 | |
252b5132 RH |
7552 | done |
7553 | ||
13b2be9c | 7554 | |
252b5132 RH |
7555 | for ac_func in getpagesize |
7556 | do | |
13b2be9c DJ |
7557 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7558 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7559 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7560 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7562 | else | |
7563 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
7564 | /* confdefs.h. */ |
7565 | _ACEOF | |
7566 | cat confdefs.h >>conftest.$ac_ext | |
7567 | cat >>conftest.$ac_ext <<_ACEOF | |
7568 | /* end confdefs.h. */ | |
ab509236 L |
7569 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7570 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7571 | #define $ac_func innocuous_$ac_func | |
7572 | ||
252b5132 | 7573 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
7574 | which can conflict with char $ac_func (); below. |
7575 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7576 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 7577 | |
13b2be9c DJ |
7578 | #ifdef __STDC__ |
7579 | # include <limits.h> | |
7580 | #else | |
7581 | # include <assert.h> | |
7582 | #endif | |
ab509236 L |
7583 | |
7584 | #undef $ac_func | |
7585 | ||
252b5132 | 7586 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
7587 | #ifdef __cplusplus |
7588 | extern "C" | |
7589 | { | |
7590 | #endif | |
252b5132 | 7591 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
7592 | builtin and then its argument prototype would still apply. */ |
7593 | char $ac_func (); | |
252b5132 RH |
7594 | /* The GNU C library defines this for functions which it implements |
7595 | to always fail with ENOSYS. Some functions are actually named | |
7596 | something starting with __ and the normal name is an alias. */ | |
7597 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7598 | choke me | |
7599 | #else | |
13b2be9c DJ |
7600 | char (*f) () = $ac_func; |
7601 | #endif | |
7602 | #ifdef __cplusplus | |
7603 | } | |
252b5132 RH |
7604 | #endif |
7605 | ||
13b2be9c DJ |
7606 | int |
7607 | main () | |
7608 | { | |
7609 | return f != $ac_func; | |
7610 | ; | |
7611 | return 0; | |
7612 | } | |
7613 | _ACEOF | |
7614 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 7616 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 7617 | ac_status=$? |
ab509236 L |
7618 | grep -v '^ *+' conftest.er1 >conftest.err |
7619 | rm -f conftest.er1 | |
7620 | cat conftest.err >&5 | |
13b2be9c DJ |
7621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7622 | (exit $ac_status); } && | |
1ad12f97 NC |
7623 | { ac_try='test -z "$ac_c_werror_flag" |
7624 | || test ! -s conftest.err' | |
ab509236 L |
7625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7626 | (eval $ac_try) 2>&5 | |
7627 | ac_status=$? | |
7628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7629 | (exit $ac_status); }; } && | |
7630 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
7631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7632 | (eval $ac_try) 2>&5 | |
7633 | ac_status=$? | |
7634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7635 | (exit $ac_status); }; }; then | |
7636 | eval "$as_ac_var=yes" | |
7637 | else | |
7638 | echo "$as_me: failed program was:" >&5 | |
7639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7640 | ||
7641 | eval "$as_ac_var=no" | |
7642 | fi | |
ab509236 L |
7643 | rm -f conftest.err conftest.$ac_objext \ |
7644 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
7645 | fi |
7646 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7647 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7648 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7649 | cat >>confdefs.h <<_ACEOF | |
7650 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7651 | _ACEOF | |
252b5132 | 7652 | |
252b5132 RH |
7653 | fi |
7654 | done | |
7655 | ||
13b2be9c DJ |
7656 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
7657 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
7658 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
7659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7660 | else |
7661 | if test "$cross_compiling" = yes; then | |
7662 | ac_cv_func_mmap_fixed_mapped=no | |
7663 | else | |
13b2be9c | 7664 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
7665 | /* confdefs.h. */ |
7666 | _ACEOF | |
7667 | cat confdefs.h >>conftest.$ac_ext | |
7668 | cat >>conftest.$ac_ext <<_ACEOF | |
7669 | /* end confdefs.h. */ | |
7670 | $ac_includes_default | |
7671 | /* malloc might have been renamed as rpl_malloc. */ | |
7672 | #undef malloc | |
d6d788bd | 7673 | |
252b5132 RH |
7674 | /* Thanks to Mike Haertel and Jim Avera for this test. |
7675 | Here is a matrix of mmap possibilities: | |
7676 | mmap private not fixed | |
7677 | mmap private fixed at somewhere currently unmapped | |
7678 | mmap private fixed at somewhere already mapped | |
7679 | mmap shared not fixed | |
7680 | mmap shared fixed at somewhere currently unmapped | |
7681 | mmap shared fixed at somewhere already mapped | |
7682 | For private mappings, we should verify that changes cannot be read() | |
7683 | back from the file, nor mmap's back from the file at a different | |
7684 | address. (There have been systems where private was not correctly | |
7685 | implemented like the infamous i386 svr4.0, and systems where the | |
13b2be9c | 7686 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
7687 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
7688 | For shared mappings, we should conversely verify that changes get | |
13b2be9c | 7689 | propagated back to all the places they're supposed to be. |
252b5132 RH |
7690 | |
7691 | Grep wants private fixed already mapped. | |
7692 | The main things grep needs to know about mmap are: | |
7693 | * does it exist and is it safe to write into the mmap'd area | |
7694 | * how to use it (BSD variants) */ | |
13b2be9c | 7695 | |
252b5132 RH |
7696 | #include <fcntl.h> |
7697 | #include <sys/mman.h> | |
7698 | ||
13b2be9c DJ |
7699 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
7700 | char *malloc (); | |
7701 | #endif | |
c8615825 | 7702 | |
13b2be9c DJ |
7703 | /* This mess was copied from the GNU getpagesize.h. */ |
7704 | #if !HAVE_GETPAGESIZE | |
252b5132 | 7705 | /* Assume that all systems that can run configure have sys/param.h. */ |
13b2be9c | 7706 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
7707 | # define HAVE_SYS_PARAM_H 1 |
7708 | # endif | |
7709 | ||
7710 | # ifdef _SC_PAGESIZE | |
7711 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7712 | # else /* no _SC_PAGESIZE */ | |
13b2be9c | 7713 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
7714 | # include <sys/param.h> |
7715 | # ifdef EXEC_PAGESIZE | |
7716 | # define getpagesize() EXEC_PAGESIZE | |
7717 | # else /* no EXEC_PAGESIZE */ | |
7718 | # ifdef NBPG | |
7719 | # define getpagesize() NBPG * CLSIZE | |
7720 | # ifndef CLSIZE | |
7721 | # define CLSIZE 1 | |
7722 | # endif /* no CLSIZE */ | |
7723 | # else /* no NBPG */ | |
7724 | # ifdef NBPC | |
7725 | # define getpagesize() NBPC | |
7726 | # else /* no NBPC */ | |
7727 | # ifdef PAGESIZE | |
7728 | # define getpagesize() PAGESIZE | |
7729 | # endif /* PAGESIZE */ | |
7730 | # endif /* no NBPC */ | |
7731 | # endif /* no NBPG */ | |
7732 | # endif /* no EXEC_PAGESIZE */ | |
7733 | # else /* no HAVE_SYS_PARAM_H */ | |
7734 | # define getpagesize() 8192 /* punt totally */ | |
7735 | # endif /* no HAVE_SYS_PARAM_H */ | |
7736 | # endif /* no _SC_PAGESIZE */ | |
7737 | ||
7738 | #endif /* no HAVE_GETPAGESIZE */ | |
7739 | ||
252b5132 | 7740 | int |
13b2be9c | 7741 | main () |
252b5132 | 7742 | { |
13b2be9c DJ |
7743 | char *data, *data2, *data3; |
7744 | int i, pagesize; | |
7745 | int fd; | |
7746 | ||
7747 | pagesize = getpagesize (); | |
7748 | ||
7749 | /* First, make a file with some known garbage in it. */ | |
7750 | data = (char *) malloc (pagesize); | |
7751 | if (!data) | |
7752 | exit (1); | |
7753 | for (i = 0; i < pagesize; ++i) | |
7754 | *(data + i) = rand (); | |
7755 | umask (0); | |
7756 | fd = creat ("conftest.mmap", 0600); | |
7757 | if (fd < 0) | |
7758 | exit (1); | |
7759 | if (write (fd, data, pagesize) != pagesize) | |
7760 | exit (1); | |
7761 | close (fd); | |
7762 | ||
7763 | /* Next, try to mmap the file at a fixed address which already has | |
7764 | something else allocated at it. If we can, also make sure that | |
7765 | we see the same garbage. */ | |
7766 | fd = open ("conftest.mmap", O_RDWR); | |
7767 | if (fd < 0) | |
7768 | exit (1); | |
7769 | data2 = (char *) malloc (2 * pagesize); | |
7770 | if (!data2) | |
7771 | exit (1); | |
ab509236 | 7772 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
13b2be9c | 7773 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
ab509236 | 7774 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
13b2be9c DJ |
7775 | exit (1); |
7776 | for (i = 0; i < pagesize; ++i) | |
7777 | if (*(data + i) != *(data2 + i)) | |
7778 | exit (1); | |
7779 | ||
7780 | /* Finally, make sure that changes to the mapped area do not | |
7781 | percolate back to the file as seen by read(). (This is a bug on | |
7782 | some variants of i386 svr4.0.) */ | |
7783 | for (i = 0; i < pagesize; ++i) | |
7784 | *(data2 + i) = *(data2 + i) + 1; | |
7785 | data3 = (char *) malloc (pagesize); | |
7786 | if (!data3) | |
7787 | exit (1); | |
7788 | if (read (fd, data3, pagesize) != pagesize) | |
7789 | exit (1); | |
7790 | for (i = 0; i < pagesize; ++i) | |
7791 | if (*(data + i) != *(data3 + i)) | |
7792 | exit (1); | |
7793 | close (fd); | |
7794 | exit (0); | |
252b5132 | 7795 | } |
13b2be9c DJ |
7796 | _ACEOF |
7797 | rm -f conftest$ac_exeext | |
7798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7799 | (eval $ac_link) 2>&5 | |
7800 | ac_status=$? | |
7801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7802 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7804 | (eval $ac_try) 2>&5 | |
7805 | ac_status=$? | |
7806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7807 | (exit $ac_status); }; }; then | |
252b5132 RH |
7808 | ac_cv_func_mmap_fixed_mapped=yes |
7809 | else | |
13b2be9c DJ |
7810 | echo "$as_me: program exited with status $ac_status" >&5 |
7811 | echo "$as_me: failed program was:" >&5 | |
7812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7813 | ||
7814 | ( exit $ac_status ) | |
7815 | ac_cv_func_mmap_fixed_mapped=no | |
9b2b7d69 | 7816 | fi |
ab509236 | 7817 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 7818 | fi |
252b5132 | 7819 | fi |
13b2be9c DJ |
7820 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7821 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
c8615825 | 7822 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
13b2be9c DJ |
7823 | |
7824 | cat >>confdefs.h <<\_ACEOF | |
9b2b7d69 | 7825 | #define HAVE_MMAP 1 |
13b2be9c | 7826 | _ACEOF |
9b2b7d69 MM |
7827 | |
7828 | fi | |
13b2be9c DJ |
7829 | rm -f conftest.mmap |
7830 | ||
7831 | ||
7832 | ||
7833 | ||
7834 | ||
7835 | ||
7836 | ||
6840198f | 7837 | |
13b2be9c DJ |
7838 | |
7839 | ||
7840 | ||
7841 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
252b5132 RH |
7842 | unistd.h values.h sys/param.h |
7843 | do | |
13b2be9c DJ |
7844 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7845 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7846 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7847 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7848 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7850 | fi | |
7851 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7852 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7853 | else | |
7854 | # Is the header compilable? | |
7855 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7856 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7857 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
7858 | /* confdefs.h. */ |
7859 | _ACEOF | |
7860 | cat confdefs.h >>conftest.$ac_ext | |
7861 | cat >>conftest.$ac_ext <<_ACEOF | |
7862 | /* end confdefs.h. */ | |
7863 | $ac_includes_default | |
7864 | #include <$ac_header> | |
7865 | _ACEOF | |
7866 | rm -f conftest.$ac_objext | |
7867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 7868 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 7869 | ac_status=$? |
ab509236 L |
7870 | grep -v '^ *+' conftest.er1 >conftest.err |
7871 | rm -f conftest.er1 | |
7872 | cat conftest.err >&5 | |
13b2be9c DJ |
7873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7874 | (exit $ac_status); } && | |
1ad12f97 NC |
7875 | { ac_try='test -z "$ac_c_werror_flag" |
7876 | || test ! -s conftest.err' | |
ab509236 L |
7877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7878 | (eval $ac_try) 2>&5 | |
7879 | ac_status=$? | |
7880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7881 | (exit $ac_status); }; } && | |
7882 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
7883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7884 | (eval $ac_try) 2>&5 | |
7885 | ac_status=$? | |
7886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7887 | (exit $ac_status); }; }; then | |
7888 | ac_header_compiler=yes | |
7889 | else | |
7890 | echo "$as_me: failed program was:" >&5 | |
7891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7892 | ||
7893 | ac_header_compiler=no | |
7894 | fi | |
ab509236 | 7895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
7896 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7897 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7898 | ||
7899 | # Is the header present? | |
7900 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7901 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7902 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
7903 | /* confdefs.h. */ |
7904 | _ACEOF | |
7905 | cat confdefs.h >>conftest.$ac_ext | |
7906 | cat >>conftest.$ac_ext <<_ACEOF | |
7907 | /* end confdefs.h. */ | |
7908 | #include <$ac_header> | |
7909 | _ACEOF | |
7910 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7911 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7912 | ac_status=$? | |
7913 | grep -v '^ *+' conftest.er1 >conftest.err | |
7914 | rm -f conftest.er1 | |
7915 | cat conftest.err >&5 | |
7916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7917 | (exit $ac_status); } >/dev/null; then | |
7918 | if test -s conftest.err; then | |
7919 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ab509236 | 7920 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
13b2be9c DJ |
7921 | else |
7922 | ac_cpp_err= | |
7923 | fi | |
9b2b7d69 | 7924 | else |
13b2be9c DJ |
7925 | ac_cpp_err=yes |
7926 | fi | |
7927 | if test -z "$ac_cpp_err"; then | |
7928 | ac_header_preproc=yes | |
7929 | else | |
7930 | echo "$as_me: failed program was:" >&5 | |
7931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7932 | ||
7933 | ac_header_preproc=no | |
7934 | fi | |
7935 | rm -f conftest.err conftest.$ac_ext | |
7936 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7937 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7938 | ||
7939 | # So? What about this header? | |
ab509236 L |
7940 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7941 | yes:no: ) | |
13b2be9c DJ |
7942 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7943 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ab509236 L |
7944 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7945 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7946 | ac_header_preproc=yes | |
13b2be9c | 7947 | ;; |
ab509236 | 7948 | no:yes:* ) |
13b2be9c DJ |
7949 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7950 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ab509236 L |
7951 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7952 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7953 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7954 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7955 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7956 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13b2be9c DJ |
7957 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7958 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ab509236 L |
7959 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7960 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13b2be9c DJ |
7961 | ( |
7962 | cat <<\_ASBOX | |
ab509236 L |
7963 | ## ------------------------------------------ ## |
7964 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7965 | ## ------------------------------------------ ## | |
13b2be9c DJ |
7966 | _ASBOX |
7967 | ) | | |
7968 | sed "s/^/$as_me: WARNING: /" >&2 | |
7969 | ;; | |
7970 | esac | |
7971 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7972 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7973 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7975 | else | |
ab509236 | 7976 | eval "$as_ac_Header=\$ac_header_preproc" |
252b5132 | 7977 | fi |
13b2be9c DJ |
7978 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7979 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7980 | ||
252b5132 | 7981 | fi |
13b2be9c DJ |
7982 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7983 | cat >>confdefs.h <<_ACEOF | |
7984 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7985 | _ACEOF | |
7986 | ||
252b5132 | 7987 | fi |
13b2be9c | 7988 | |
252b5132 RH |
7989 | done |
7990 | ||
13b2be9c DJ |
7991 | |
7992 | ||
7993 | ||
7994 | ||
7995 | ||
7996 | ||
7997 | ||
7998 | ||
7999 | ||
8000 | ||
8001 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
252b5132 RH |
8002 | __argz_count __argz_stringify __argz_next |
8003 | do | |
13b2be9c DJ |
8004 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8005 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8006 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8007 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8009 | else | |
8010 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
8011 | /* confdefs.h. */ |
8012 | _ACEOF | |
8013 | cat confdefs.h >>conftest.$ac_ext | |
8014 | cat >>conftest.$ac_ext <<_ACEOF | |
8015 | /* end confdefs.h. */ | |
ab509236 L |
8016 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8017 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8018 | #define $ac_func innocuous_$ac_func | |
8019 | ||
252b5132 | 8020 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
8021 | which can conflict with char $ac_func (); below. |
8022 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8023 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 8024 | |
13b2be9c DJ |
8025 | #ifdef __STDC__ |
8026 | # include <limits.h> | |
8027 | #else | |
8028 | # include <assert.h> | |
8029 | #endif | |
ab509236 L |
8030 | |
8031 | #undef $ac_func | |
8032 | ||
252b5132 | 8033 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
8034 | #ifdef __cplusplus |
8035 | extern "C" | |
8036 | { | |
8037 | #endif | |
252b5132 | 8038 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
8039 | builtin and then its argument prototype would still apply. */ |
8040 | char $ac_func (); | |
252b5132 RH |
8041 | /* The GNU C library defines this for functions which it implements |
8042 | to always fail with ENOSYS. Some functions are actually named | |
8043 | something starting with __ and the normal name is an alias. */ | |
8044 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8045 | choke me | |
8046 | #else | |
13b2be9c DJ |
8047 | char (*f) () = $ac_func; |
8048 | #endif | |
8049 | #ifdef __cplusplus | |
8050 | } | |
252b5132 RH |
8051 | #endif |
8052 | ||
13b2be9c DJ |
8053 | int |
8054 | main () | |
8055 | { | |
8056 | return f != $ac_func; | |
8057 | ; | |
8058 | return 0; | |
8059 | } | |
8060 | _ACEOF | |
8061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 8063 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 8064 | ac_status=$? |
ab509236 L |
8065 | grep -v '^ *+' conftest.er1 >conftest.err |
8066 | rm -f conftest.er1 | |
8067 | cat conftest.err >&5 | |
13b2be9c DJ |
8068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8069 | (exit $ac_status); } && | |
1ad12f97 NC |
8070 | { ac_try='test -z "$ac_c_werror_flag" |
8071 | || test ! -s conftest.err' | |
ab509236 L |
8072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8073 | (eval $ac_try) 2>&5 | |
8074 | ac_status=$? | |
8075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8076 | (exit $ac_status); }; } && | |
8077 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
8078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8079 | (eval $ac_try) 2>&5 | |
8080 | ac_status=$? | |
8081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8082 | (exit $ac_status); }; }; then | |
8083 | eval "$as_ac_var=yes" | |
8084 | else | |
8085 | echo "$as_me: failed program was:" >&5 | |
8086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8087 | ||
8088 | eval "$as_ac_var=no" | |
8089 | fi | |
ab509236 L |
8090 | rm -f conftest.err conftest.$ac_objext \ |
8091 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
8092 | fi |
8093 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
8094 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8095 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8096 | cat >>confdefs.h <<_ACEOF | |
8097 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8098 | _ACEOF | |
252b5132 | 8099 | |
252b5132 RH |
8100 | fi |
8101 | done | |
8102 | ||
6840198f | 8103 | |
d6d788bd | 8104 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
13b2be9c DJ |
8105 | |
8106 | for ac_func in stpcpy | |
252b5132 | 8107 | do |
13b2be9c DJ |
8108 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8109 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8110 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8111 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8113 | else | |
8114 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
8115 | /* confdefs.h. */ |
8116 | _ACEOF | |
8117 | cat confdefs.h >>conftest.$ac_ext | |
8118 | cat >>conftest.$ac_ext <<_ACEOF | |
8119 | /* end confdefs.h. */ | |
ab509236 L |
8120 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8121 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8122 | #define $ac_func innocuous_$ac_func | |
8123 | ||
252b5132 | 8124 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
8125 | which can conflict with char $ac_func (); below. |
8126 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8127 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 8128 | |
13b2be9c DJ |
8129 | #ifdef __STDC__ |
8130 | # include <limits.h> | |
8131 | #else | |
8132 | # include <assert.h> | |
8133 | #endif | |
ab509236 L |
8134 | |
8135 | #undef $ac_func | |
8136 | ||
252b5132 | 8137 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
8138 | #ifdef __cplusplus |
8139 | extern "C" | |
8140 | { | |
8141 | #endif | |
252b5132 | 8142 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
8143 | builtin and then its argument prototype would still apply. */ |
8144 | char $ac_func (); | |
252b5132 RH |
8145 | /* The GNU C library defines this for functions which it implements |
8146 | to always fail with ENOSYS. Some functions are actually named | |
8147 | something starting with __ and the normal name is an alias. */ | |
8148 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8149 | choke me | |
8150 | #else | |
13b2be9c DJ |
8151 | char (*f) () = $ac_func; |
8152 | #endif | |
8153 | #ifdef __cplusplus | |
8154 | } | |
252b5132 RH |
8155 | #endif |
8156 | ||
13b2be9c DJ |
8157 | int |
8158 | main () | |
8159 | { | |
8160 | return f != $ac_func; | |
8161 | ; | |
8162 | return 0; | |
8163 | } | |
8164 | _ACEOF | |
8165 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8166 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 8167 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 8168 | ac_status=$? |
ab509236 L |
8169 | grep -v '^ *+' conftest.er1 >conftest.err |
8170 | rm -f conftest.er1 | |
8171 | cat conftest.err >&5 | |
13b2be9c DJ |
8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8173 | (exit $ac_status); } && | |
1ad12f97 NC |
8174 | { ac_try='test -z "$ac_c_werror_flag" |
8175 | || test ! -s conftest.err' | |
ab509236 L |
8176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8177 | (eval $ac_try) 2>&5 | |
8178 | ac_status=$? | |
8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8180 | (exit $ac_status); }; } && | |
8181 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
8182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8183 | (eval $ac_try) 2>&5 | |
8184 | ac_status=$? | |
8185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8186 | (exit $ac_status); }; }; then | |
8187 | eval "$as_ac_var=yes" | |
8188 | else | |
8189 | echo "$as_me: failed program was:" >&5 | |
8190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8191 | ||
8192 | eval "$as_ac_var=no" | |
8193 | fi | |
ab509236 L |
8194 | rm -f conftest.err conftest.$ac_objext \ |
8195 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
8196 | fi |
8197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
8198 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8199 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8200 | cat >>confdefs.h <<_ACEOF | |
8201 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8202 | _ACEOF | |
252b5132 | 8203 | |
252b5132 RH |
8204 | fi |
8205 | done | |
8206 | ||
8207 | fi | |
8208 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
13b2be9c DJ |
8209 | |
8210 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 8211 | #define HAVE_STPCPY 1 |
13b2be9c | 8212 | _ACEOF |
252b5132 RH |
8213 | |
8214 | fi | |
8215 | ||
8216 | if test $ac_cv_header_locale_h = yes; then | |
13b2be9c DJ |
8217 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
8218 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
8219 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
8220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8221 | else | |
8222 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
8223 | /* confdefs.h. */ |
8224 | _ACEOF | |
8225 | cat confdefs.h >>conftest.$ac_ext | |
8226 | cat >>conftest.$ac_ext <<_ACEOF | |
8227 | /* end confdefs.h. */ | |
252b5132 | 8228 | #include <locale.h> |
13b2be9c DJ |
8229 | int |
8230 | main () | |
8231 | { | |
252b5132 | 8232 | return LC_MESSAGES |
13b2be9c DJ |
8233 | ; |
8234 | return 0; | |
8235 | } | |
8236 | _ACEOF | |
8237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 8239 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 8240 | ac_status=$? |
ab509236 L |
8241 | grep -v '^ *+' conftest.er1 >conftest.err |
8242 | rm -f conftest.er1 | |
8243 | cat conftest.err >&5 | |
13b2be9c DJ |
8244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8245 | (exit $ac_status); } && | |
1ad12f97 NC |
8246 | { ac_try='test -z "$ac_c_werror_flag" |
8247 | || test ! -s conftest.err' | |
ab509236 L |
8248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8249 | (eval $ac_try) 2>&5 | |
8250 | ac_status=$? | |
8251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8252 | (exit $ac_status); }; } && | |
8253 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
8254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8255 | (eval $ac_try) 2>&5 | |
8256 | ac_status=$? | |
8257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8258 | (exit $ac_status); }; }; then | |
252b5132 RH |
8259 | am_cv_val_LC_MESSAGES=yes |
8260 | else | |
13b2be9c DJ |
8261 | echo "$as_me: failed program was:" >&5 |
8262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8263 | ||
8264 | am_cv_val_LC_MESSAGES=no | |
252b5132 | 8265 | fi |
ab509236 L |
8266 | rm -f conftest.err conftest.$ac_objext \ |
8267 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 8268 | fi |
13b2be9c DJ |
8269 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
8270 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
c8615825 | 8271 | if test $am_cv_val_LC_MESSAGES = yes; then |
13b2be9c DJ |
8272 | |
8273 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 8274 | #define HAVE_LC_MESSAGES 1 |
13b2be9c | 8275 | _ACEOF |
252b5132 RH |
8276 | |
8277 | fi | |
8278 | fi | |
13b2be9c DJ |
8279 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
8280 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
252b5132 RH |
8281 | # Check whether --enable-nls or --disable-nls was given. |
8282 | if test "${enable_nls+set}" = set; then | |
8283 | enableval="$enable_nls" | |
8284 | USE_NLS=$enableval | |
8285 | else | |
8286 | USE_NLS=yes | |
13b2be9c DJ |
8287 | fi; |
8288 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
8289 | echo "${ECHO_T}$USE_NLS" >&6 | |
d6d788bd | 8290 | |
252b5132 RH |
8291 | |
8292 | USE_INCLUDED_LIBINTL=no | |
8293 | ||
8294 | if test "$USE_NLS" = "yes"; then | |
13b2be9c DJ |
8295 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
8296 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
8297 | ||
8298 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
252b5132 RH |
8299 | if test "${with_included_gettext+set}" = set; then |
8300 | withval="$with_included_gettext" | |
8301 | nls_cv_force_use_gnu_gettext=$withval | |
8302 | else | |
8303 | nls_cv_force_use_gnu_gettext=no | |
13b2be9c DJ |
8304 | fi; |
8305 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
8306 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
252b5132 RH |
8307 | |
8308 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
8309 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
8310 | nls_cv_header_intl= | |
8311 | nls_cv_header_libgt= | |
e8093792 | 8312 | CATOBJEXT= |
252b5132 | 8313 | |
13b2be9c DJ |
8314 | if test "${ac_cv_header_libintl_h+set}" = set; then |
8315 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
8316 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
8317 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
8318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8319 | fi | |
8320 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
8321 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
8322 | else | |
8323 | # Is the header compilable? | |
8324 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
8325 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
8326 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
8327 | /* confdefs.h. */ |
8328 | _ACEOF | |
8329 | cat confdefs.h >>conftest.$ac_ext | |
8330 | cat >>conftest.$ac_ext <<_ACEOF | |
8331 | /* end confdefs.h. */ | |
8332 | $ac_includes_default | |
9b2b7d69 | 8333 | #include <libintl.h> |
13b2be9c DJ |
8334 | _ACEOF |
8335 | rm -f conftest.$ac_objext | |
8336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 8337 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 8338 | ac_status=$? |
ab509236 L |
8339 | grep -v '^ *+' conftest.er1 >conftest.err |
8340 | rm -f conftest.er1 | |
8341 | cat conftest.err >&5 | |
13b2be9c DJ |
8342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8343 | (exit $ac_status); } && | |
1ad12f97 NC |
8344 | { ac_try='test -z "$ac_c_werror_flag" |
8345 | || test ! -s conftest.err' | |
ab509236 L |
8346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8347 | (eval $ac_try) 2>&5 | |
8348 | ac_status=$? | |
8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8350 | (exit $ac_status); }; } && | |
8351 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
8352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8353 | (eval $ac_try) 2>&5 | |
8354 | ac_status=$? | |
8355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8356 | (exit $ac_status); }; }; then | |
8357 | ac_header_compiler=yes | |
8358 | else | |
8359 | echo "$as_me: failed program was:" >&5 | |
8360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8361 | ||
8362 | ac_header_compiler=no | |
8363 | fi | |
ab509236 | 8364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
8365 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8366 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8367 | ||
8368 | # Is the header present? | |
8369 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
8370 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
8371 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
8372 | /* confdefs.h. */ |
8373 | _ACEOF | |
8374 | cat confdefs.h >>conftest.$ac_ext | |
8375 | cat >>conftest.$ac_ext <<_ACEOF | |
8376 | /* end confdefs.h. */ | |
8377 | #include <libintl.h> | |
8378 | _ACEOF | |
8379 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8380 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8381 | ac_status=$? | |
8382 | grep -v '^ *+' conftest.er1 >conftest.err | |
8383 | rm -f conftest.er1 | |
8384 | cat conftest.err >&5 | |
8385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8386 | (exit $ac_status); } >/dev/null; then | |
8387 | if test -s conftest.err; then | |
8388 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ab509236 | 8389 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
13b2be9c DJ |
8390 | else |
8391 | ac_cpp_err= | |
8392 | fi | |
252b5132 | 8393 | else |
13b2be9c DJ |
8394 | ac_cpp_err=yes |
8395 | fi | |
8396 | if test -z "$ac_cpp_err"; then | |
8397 | ac_header_preproc=yes | |
8398 | else | |
8399 | echo "$as_me: failed program was:" >&5 | |
8400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8401 | ||
8402 | ac_header_preproc=no | |
8403 | fi | |
8404 | rm -f conftest.err conftest.$ac_ext | |
8405 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8406 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8407 | ||
8408 | # So? What about this header? | |
ab509236 L |
8409 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8410 | yes:no: ) | |
13b2be9c DJ |
8411 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8412 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ab509236 L |
8413 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 |
8414 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
8415 | ac_header_preproc=yes | |
13b2be9c | 8416 | ;; |
ab509236 | 8417 | no:yes:* ) |
13b2be9c DJ |
8418 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 |
8419 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
ab509236 L |
8420 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 |
8421 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
8422 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
8423 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
8424 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
8425 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13b2be9c DJ |
8426 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 |
8427 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
ab509236 L |
8428 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 |
8429 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
13b2be9c DJ |
8430 | ( |
8431 | cat <<\_ASBOX | |
ab509236 L |
8432 | ## ------------------------------------------ ## |
8433 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8434 | ## ------------------------------------------ ## | |
13b2be9c DJ |
8435 | _ASBOX |
8436 | ) | | |
8437 | sed "s/^/$as_me: WARNING: /" >&2 | |
8438 | ;; | |
8439 | esac | |
8440 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
8441 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
8442 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
8443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8444 | else | |
8445 | ac_cv_header_libintl_h=$ac_header_preproc | |
8446 | fi | |
8447 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
8448 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
8449 | ||
8450 | fi | |
8451 | if test $ac_cv_header_libintl_h = yes; then | |
8452 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
8453 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
8454 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
8455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8456 | else | |
8457 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
8458 | /* confdefs.h. */ |
8459 | _ACEOF | |
8460 | cat confdefs.h >>conftest.$ac_ext | |
8461 | cat >>conftest.$ac_ext <<_ACEOF | |
8462 | /* end confdefs.h. */ | |
252b5132 | 8463 | #include <libintl.h> |
13b2be9c DJ |
8464 | int |
8465 | main () | |
8466 | { | |
252b5132 | 8467 | return (int) gettext ("") |
13b2be9c DJ |
8468 | ; |
8469 | return 0; | |
8470 | } | |
8471 | _ACEOF | |
8472 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 8474 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 8475 | ac_status=$? |
ab509236 L |
8476 | grep -v '^ *+' conftest.er1 >conftest.err |
8477 | rm -f conftest.er1 | |
8478 | cat conftest.err >&5 | |
13b2be9c DJ |
8479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8480 | (exit $ac_status); } && | |
1ad12f97 NC |
8481 | { ac_try='test -z "$ac_c_werror_flag" |
8482 | || test ! -s conftest.err' | |
ab509236 L |
8483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8484 | (eval $ac_try) 2>&5 | |
8485 | ac_status=$? | |
8486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8487 | (exit $ac_status); }; } && | |
8488 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
8489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8490 | (eval $ac_try) 2>&5 | |
8491 | ac_status=$? | |
8492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8493 | (exit $ac_status); }; }; then | |
252b5132 RH |
8494 | gt_cv_func_gettext_libc=yes |
8495 | else | |
13b2be9c DJ |
8496 | echo "$as_me: failed program was:" >&5 |
8497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8498 | ||
8499 | gt_cv_func_gettext_libc=no | |
252b5132 | 8500 | fi |
ab509236 L |
8501 | rm -f conftest.err conftest.$ac_objext \ |
8502 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 8503 | fi |
13b2be9c DJ |
8504 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
8505 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
252b5132 RH |
8506 | |
8507 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
13b2be9c DJ |
8508 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
8509 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
8510 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
8511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8512 | else |
13b2be9c | 8513 | ac_check_lib_save_LIBS=$LIBS |
252b5132 | 8514 | LIBS="-lintl $LIBS" |
13b2be9c | 8515 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
8516 | /* confdefs.h. */ |
8517 | _ACEOF | |
8518 | cat confdefs.h >>conftest.$ac_ext | |
8519 | cat >>conftest.$ac_ext <<_ACEOF | |
8520 | /* end confdefs.h. */ | |
8521 | ||
252b5132 | 8522 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
8523 | #ifdef __cplusplus |
8524 | extern "C" | |
8525 | #endif | |
252b5132 | 8526 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
8527 | builtin and then its argument prototype would still apply. */ |
8528 | char bindtextdomain (); | |
8529 | int | |
8530 | main () | |
8531 | { | |
8532 | bindtextdomain (); | |
8533 | ; | |
8534 | return 0; | |
8535 | } | |
8536 | _ACEOF | |
8537 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 8539 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 8540 | ac_status=$? |
ab509236 L |
8541 | grep -v '^ *+' conftest.er1 >conftest.err |
8542 | rm -f conftest.er1 | |
8543 | cat conftest.err >&5 | |
13b2be9c DJ |
8544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8545 | (exit $ac_status); } && | |
1ad12f97 NC |
8546 | { ac_try='test -z "$ac_c_werror_flag" |
8547 | || test ! -s conftest.err' | |
ab509236 L |
8548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8549 | (eval $ac_try) 2>&5 | |
8550 | ac_status=$? | |
8551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8552 | (exit $ac_status); }; } && | |
8553 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
8554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8555 | (eval $ac_try) 2>&5 | |
8556 | ac_status=$? | |
8557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8558 | (exit $ac_status); }; }; then | |
8559 | ac_cv_lib_intl_bindtextdomain=yes | |
8560 | else | |
8561 | echo "$as_me: failed program was:" >&5 | |
8562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8563 | ||
8564 | ac_cv_lib_intl_bindtextdomain=no | |
8565 | fi | |
ab509236 L |
8566 | rm -f conftest.err conftest.$ac_objext \ |
8567 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
8568 | LIBS=$ac_check_lib_save_LIBS |
8569 | fi | |
8570 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
8571 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
8572 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
8573 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
8574 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
8575 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
8576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8577 | else | |
8578 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
8579 | /* confdefs.h. */ |
8580 | _ACEOF | |
8581 | cat confdefs.h >>conftest.$ac_ext | |
8582 | cat >>conftest.$ac_ext <<_ACEOF | |
8583 | /* end confdefs.h. */ | |
d6d788bd | 8584 | |
13b2be9c DJ |
8585 | int |
8586 | main () | |
8587 | { | |
252b5132 | 8588 | return (int) gettext ("") |
13b2be9c DJ |
8589 | ; |
8590 | return 0; | |
8591 | } | |
8592 | _ACEOF | |
8593 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 8595 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 8596 | ac_status=$? |
ab509236 L |
8597 | grep -v '^ *+' conftest.er1 >conftest.err |
8598 | rm -f conftest.er1 | |
8599 | cat conftest.err >&5 | |
13b2be9c DJ |
8600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8601 | (exit $ac_status); } && | |
1ad12f97 NC |
8602 | { ac_try='test -z "$ac_c_werror_flag" |
8603 | || test ! -s conftest.err' | |
ab509236 L |
8604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8605 | (eval $ac_try) 2>&5 | |
8606 | ac_status=$? | |
8607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8608 | (exit $ac_status); }; } && | |
8609 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
8610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8611 | (eval $ac_try) 2>&5 | |
8612 | ac_status=$? | |
8613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8614 | (exit $ac_status); }; }; then | |
252b5132 RH |
8615 | gt_cv_func_gettext_libintl=yes |
8616 | else | |
13b2be9c DJ |
8617 | echo "$as_me: failed program was:" >&5 |
8618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8619 | ||
8620 | gt_cv_func_gettext_libintl=no | |
252b5132 | 8621 | fi |
ab509236 L |
8622 | rm -f conftest.err conftest.$ac_objext \ |
8623 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 8624 | fi |
13b2be9c DJ |
8625 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
8626 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
252b5132 RH |
8627 | fi |
8628 | ||
8629 | fi | |
8630 | ||
8631 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
8632 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
13b2be9c DJ |
8633 | |
8634 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 8635 | #define HAVE_GETTEXT 1 |
13b2be9c | 8636 | _ACEOF |
252b5132 RH |
8637 | |
8638 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
8639 | set dummy msgfmt; ac_word=$2 | |
13b2be9c DJ |
8640 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8641 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8642 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
8643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
8644 | else |
8645 | case "$MSGFMT" in | |
8646 | /*) | |
8647 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
8648 | ;; | |
8649 | *) | |
8650 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8651 | for ac_dir in $PATH; do | |
8652 | test -z "$ac_dir" && ac_dir=. | |
8653 | if test -f $ac_dir/$ac_word; then | |
8654 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
8655 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
8656 | break | |
8657 | fi | |
8658 | fi | |
8659 | done | |
8660 | IFS="$ac_save_ifs" | |
8661 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
8662 | ;; | |
8663 | esac | |
8664 | fi | |
8665 | MSGFMT="$ac_cv_path_MSGFMT" | |
8666 | if test -n "$MSGFMT"; then | |
13b2be9c DJ |
8667 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
8668 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 8669 | else |
13b2be9c DJ |
8670 | echo "$as_me:$LINENO: result: no" >&5 |
8671 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
8672 | fi |
8673 | if test "$MSGFMT" != "no"; then | |
13b2be9c DJ |
8674 | |
8675 | for ac_func in dcgettext | |
252b5132 | 8676 | do |
13b2be9c DJ |
8677 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8678 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8679 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8680 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8682 | else | |
8683 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
8684 | /* confdefs.h. */ |
8685 | _ACEOF | |
8686 | cat confdefs.h >>conftest.$ac_ext | |
8687 | cat >>conftest.$ac_ext <<_ACEOF | |
8688 | /* end confdefs.h. */ | |
ab509236 L |
8689 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8690 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8691 | #define $ac_func innocuous_$ac_func | |
8692 | ||
252b5132 | 8693 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
8694 | which can conflict with char $ac_func (); below. |
8695 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8696 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 8697 | |
13b2be9c DJ |
8698 | #ifdef __STDC__ |
8699 | # include <limits.h> | |
8700 | #else | |
8701 | # include <assert.h> | |
8702 | #endif | |
ab509236 L |
8703 | |
8704 | #undef $ac_func | |
8705 | ||
252b5132 | 8706 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
8707 | #ifdef __cplusplus |
8708 | extern "C" | |
8709 | { | |
8710 | #endif | |
252b5132 | 8711 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
8712 | builtin and then its argument prototype would still apply. */ |
8713 | char $ac_func (); | |
252b5132 RH |
8714 | /* The GNU C library defines this for functions which it implements |
8715 | to always fail with ENOSYS. Some functions are actually named | |
8716 | something starting with __ and the normal name is an alias. */ | |
8717 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8718 | choke me | |
8719 | #else | |
13b2be9c DJ |
8720 | char (*f) () = $ac_func; |
8721 | #endif | |
8722 | #ifdef __cplusplus | |
8723 | } | |
252b5132 RH |
8724 | #endif |
8725 | ||
13b2be9c DJ |
8726 | int |
8727 | main () | |
8728 | { | |
8729 | return f != $ac_func; | |
8730 | ; | |
8731 | return 0; | |
8732 | } | |
8733 | _ACEOF | |
8734 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 8736 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 8737 | ac_status=$? |
ab509236 L |
8738 | grep -v '^ *+' conftest.er1 >conftest.err |
8739 | rm -f conftest.er1 | |
8740 | cat conftest.err >&5 | |
13b2be9c DJ |
8741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8742 | (exit $ac_status); } && | |
1ad12f97 NC |
8743 | { ac_try='test -z "$ac_c_werror_flag" |
8744 | || test ! -s conftest.err' | |
ab509236 L |
8745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8746 | (eval $ac_try) 2>&5 | |
8747 | ac_status=$? | |
8748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8749 | (exit $ac_status); }; } && | |
8750 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
8751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8752 | (eval $ac_try) 2>&5 | |
8753 | ac_status=$? | |
8754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8755 | (exit $ac_status); }; }; then | |
8756 | eval "$as_ac_var=yes" | |
8757 | else | |
8758 | echo "$as_me: failed program was:" >&5 | |
8759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8760 | ||
8761 | eval "$as_ac_var=no" | |
8762 | fi | |
ab509236 L |
8763 | rm -f conftest.err conftest.$ac_objext \ |
8764 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
8765 | fi |
8766 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
8767 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8768 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8769 | cat >>confdefs.h <<_ACEOF | |
8770 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8771 | _ACEOF | |
252b5132 | 8772 | |
252b5132 RH |
8773 | fi |
8774 | done | |
8775 | ||
8776 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
8777 | set dummy gmsgfmt; ac_word=$2 | |
13b2be9c DJ |
8778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8780 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
8781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8782 | else |
13b2be9c DJ |
8783 | case $GMSGFMT in |
8784 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
8785 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
8786 | ;; | |
252b5132 | 8787 | *) |
13b2be9c DJ |
8788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8789 | for as_dir in $PATH | |
8790 | do | |
8791 | IFS=$as_save_IFS | |
8792 | test -z "$as_dir" && as_dir=. | |
8793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8794 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8795 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
8796 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8797 | break 2 | |
8798 | fi | |
8799 | done | |
8800 | done | |
8801 | ||
252b5132 RH |
8802 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
8803 | ;; | |
8804 | esac | |
8805 | fi | |
13b2be9c DJ |
8806 | GMSGFMT=$ac_cv_path_GMSGFMT |
8807 | ||
252b5132 | 8808 | if test -n "$GMSGFMT"; then |
13b2be9c DJ |
8809 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
8810 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 8811 | else |
13b2be9c DJ |
8812 | echo "$as_me:$LINENO: result: no" >&5 |
8813 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
8814 | fi |
8815 | ||
8816 | # Extract the first word of "xgettext", so it can be a program name with args. | |
8817 | set dummy xgettext; ac_word=$2 | |
13b2be9c DJ |
8818 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8819 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8820 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
8821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
8822 | else |
8823 | case "$XGETTEXT" in | |
8824 | /*) | |
8825 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8826 | ;; | |
8827 | *) | |
8828 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8829 | for ac_dir in $PATH; do | |
8830 | test -z "$ac_dir" && ac_dir=. | |
8831 | if test -f $ac_dir/$ac_word; then | |
8832 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
8833 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
8834 | break | |
8835 | fi | |
8836 | fi | |
8837 | done | |
8838 | IFS="$ac_save_ifs" | |
8839 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8840 | ;; | |
8841 | esac | |
8842 | fi | |
8843 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
8844 | if test -n "$XGETTEXT"; then | |
13b2be9c DJ |
8845 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
8846 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 8847 | else |
13b2be9c DJ |
8848 | echo "$as_me:$LINENO: result: no" >&5 |
8849 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
8850 | fi |
8851 | ||
13b2be9c | 8852 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
8853 | /* confdefs.h. */ |
8854 | _ACEOF | |
8855 | cat confdefs.h >>conftest.$ac_ext | |
8856 | cat >>conftest.$ac_ext <<_ACEOF | |
8857 | /* end confdefs.h. */ | |
252b5132 | 8858 | |
13b2be9c DJ |
8859 | int |
8860 | main () | |
8861 | { | |
252b5132 RH |
8862 | extern int _nl_msg_cat_cntr; |
8863 | return _nl_msg_cat_cntr | |
13b2be9c DJ |
8864 | ; |
8865 | return 0; | |
8866 | } | |
8867 | _ACEOF | |
8868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 8870 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 8871 | ac_status=$? |
ab509236 L |
8872 | grep -v '^ *+' conftest.er1 >conftest.err |
8873 | rm -f conftest.er1 | |
8874 | cat conftest.err >&5 | |
13b2be9c DJ |
8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8876 | (exit $ac_status); } && | |
1ad12f97 NC |
8877 | { ac_try='test -z "$ac_c_werror_flag" |
8878 | || test ! -s conftest.err' | |
ab509236 L |
8879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8880 | (eval $ac_try) 2>&5 | |
8881 | ac_status=$? | |
8882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8883 | (exit $ac_status); }; } && | |
8884 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
8885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8886 | (eval $ac_try) 2>&5 | |
8887 | ac_status=$? | |
8888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8889 | (exit $ac_status); }; }; then | |
252b5132 RH |
8890 | CATOBJEXT=.gmo |
8891 | DATADIRNAME=share | |
8892 | else | |
13b2be9c DJ |
8893 | echo "$as_me: failed program was:" >&5 |
8894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8895 | ||
8896 | CATOBJEXT=.mo | |
252b5132 RH |
8897 | DATADIRNAME=lib |
8898 | fi | |
ab509236 L |
8899 | rm -f conftest.err conftest.$ac_objext \ |
8900 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 RH |
8901 | INSTOBJEXT=.mo |
8902 | fi | |
8903 | fi | |
13b2be9c | 8904 | |
6840198f | 8905 | fi |
252b5132 | 8906 | |
d6d788bd | 8907 | |
13b2be9c DJ |
8908 | |
8909 | ||
e8093792 AC |
8910 | if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then |
8911 | # Neither gettext nor catgets in included in the C library. | |
8912 | # Fall back on GNU gettext library (assuming it is present). | |
8913 | nls_cv_use_gnu_gettext=yes | |
252b5132 RH |
8914 | fi |
8915 | fi | |
8916 | ||
8917 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
8918 | INTLOBJS="\$(GETTOBJS)" | |
8919 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
8920 | set dummy msgfmt; ac_word=$2 | |
13b2be9c DJ |
8921 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8923 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
8924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
8925 | else |
8926 | case "$MSGFMT" in | |
8927 | /*) | |
8928 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
8929 | ;; | |
8930 | *) | |
8931 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8932 | for ac_dir in $PATH; do | |
8933 | test -z "$ac_dir" && ac_dir=. | |
8934 | if test -f $ac_dir/$ac_word; then | |
8935 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
8936 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
8937 | break | |
8938 | fi | |
8939 | fi | |
8940 | done | |
8941 | IFS="$ac_save_ifs" | |
8942 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
8943 | ;; | |
8944 | esac | |
8945 | fi | |
8946 | MSGFMT="$ac_cv_path_MSGFMT" | |
8947 | if test -n "$MSGFMT"; then | |
13b2be9c DJ |
8948 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
8949 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 8950 | else |
13b2be9c DJ |
8951 | echo "$as_me:$LINENO: result: no" >&5 |
8952 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
8953 | fi |
8954 | ||
8955 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
8956 | set dummy gmsgfmt; ac_word=$2 | |
13b2be9c DJ |
8957 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8959 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
8960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8961 | else |
13b2be9c DJ |
8962 | case $GMSGFMT in |
8963 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
8964 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
8965 | ;; | |
252b5132 | 8966 | *) |
13b2be9c DJ |
8967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8968 | for as_dir in $PATH | |
8969 | do | |
8970 | IFS=$as_save_IFS | |
8971 | test -z "$as_dir" && as_dir=. | |
8972 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8973 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8974 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
8975 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8976 | break 2 | |
8977 | fi | |
8978 | done | |
8979 | done | |
8980 | ||
252b5132 RH |
8981 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
8982 | ;; | |
8983 | esac | |
8984 | fi | |
13b2be9c DJ |
8985 | GMSGFMT=$ac_cv_path_GMSGFMT |
8986 | ||
252b5132 | 8987 | if test -n "$GMSGFMT"; then |
13b2be9c DJ |
8988 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
8989 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 8990 | else |
13b2be9c DJ |
8991 | echo "$as_me:$LINENO: result: no" >&5 |
8992 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
8993 | fi |
8994 | ||
8995 | # Extract the first word of "xgettext", so it can be a program name with args. | |
8996 | set dummy xgettext; ac_word=$2 | |
13b2be9c DJ |
8997 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8998 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8999 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
9000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
9001 | else |
9002 | case "$XGETTEXT" in | |
9003 | /*) | |
9004 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
9005 | ;; | |
9006 | *) | |
9007 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
9008 | for ac_dir in $PATH; do | |
9009 | test -z "$ac_dir" && ac_dir=. | |
9010 | if test -f $ac_dir/$ac_word; then | |
9011 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
9012 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
9013 | break | |
9014 | fi | |
9015 | fi | |
9016 | done | |
9017 | IFS="$ac_save_ifs" | |
9018 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
9019 | ;; | |
9020 | esac | |
9021 | fi | |
9022 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
9023 | if test -n "$XGETTEXT"; then | |
13b2be9c DJ |
9024 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
9025 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 9026 | else |
13b2be9c DJ |
9027 | echo "$as_me:$LINENO: result: no" >&5 |
9028 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
9029 | fi |
9030 | ||
13b2be9c | 9031 | |
252b5132 RH |
9032 | USE_INCLUDED_LIBINTL=yes |
9033 | CATOBJEXT=.gmo | |
9034 | INSTOBJEXT=.mo | |
9035 | DATADIRNAME=share | |
9036 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
9037 | INTLLIBS=$INTLDEPS | |
9038 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
9039 | nls_cv_header_intl=libintl.h | |
9040 | nls_cv_header_libgt=libgettext.h | |
9041 | fi | |
9042 | ||
9043 | if test "$XGETTEXT" != ":"; then | |
9044 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
9045 | : ; | |
9046 | else | |
13b2be9c DJ |
9047 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
9048 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
252b5132 RH |
9049 | XGETTEXT=":" |
9050 | fi | |
9051 | fi | |
9052 | ||
9053 | # We need to process the po/ directory. | |
9054 | POSUB=po | |
9055 | else | |
9056 | DATADIRNAME=share | |
9057 | nls_cv_header_intl=libintl.h | |
9058 | nls_cv_header_libgt=libgettext.h | |
9059 | fi | |
9060 | ||
9061 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
9062 | # because some of the sources are only built for this goal. | |
9063 | if test "$PACKAGE" = gettext; then | |
9064 | USE_NLS=yes | |
9065 | USE_INCLUDED_LIBINTL=yes | |
9066 | fi | |
9067 | ||
9068 | for lang in $ALL_LINGUAS; do | |
9069 | GMOFILES="$GMOFILES $lang.gmo" | |
9070 | POFILES="$POFILES $lang.po" | |
9071 | done | |
9072 | ||
13b2be9c DJ |
9073 | |
9074 | ||
9075 | ||
9076 | ||
9077 | ||
9078 | ||
9079 | ||
9080 | ||
9081 | ||
9082 | ||
9083 | ||
b16b813f AM |
9084 | if test "x$CATOBJEXT" != "x"; then |
9085 | ||
9086 | cat >>confdefs.h <<\_ACEOF | |
9087 | #define ENABLE_NLS 1 | |
9088 | _ACEOF | |
9089 | ||
9090 | fi | |
13b2be9c | 9091 | |
d6d788bd | 9092 | |
252b5132 RH |
9093 | if test "x$CATOBJEXT" != "x"; then |
9094 | if test "x$ALL_LINGUAS" = "x"; then | |
9095 | LINGUAS= | |
9096 | else | |
13b2be9c DJ |
9097 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
9098 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
252b5132 RH |
9099 | NEW_LINGUAS= |
9100 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
9101 | case "$ALL_LINGUAS" in | |
9102 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
9103 | esac | |
9104 | done | |
9105 | LINGUAS=$NEW_LINGUAS | |
13b2be9c DJ |
9106 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
9107 | echo "${ECHO_T}$LINGUAS" >&6 | |
252b5132 RH |
9108 | fi |
9109 | ||
9110 | if test -n "$LINGUAS"; then | |
9111 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
9112 | fi | |
9113 | fi | |
9114 | ||
9115 | if test $ac_cv_header_locale_h = yes; then | |
9116 | INCLUDE_LOCALE_H="#include <locale.h>" | |
9117 | else | |
9118 | INCLUDE_LOCALE_H="\ | |
9119 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
9120 | fi | |
13b2be9c | 9121 | |
252b5132 RH |
9122 | |
9123 | if test -f $srcdir/po2tbl.sed.in; then | |
9124 | if test "$CATOBJEXT" = ".cat"; then | |
13b2be9c DJ |
9125 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
9126 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
9127 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
9128 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
9129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9130 | fi | |
9131 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
9132 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
9133 | else | |
9134 | # Is the header compilable? | |
9135 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
9136 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
9137 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
9138 | /* confdefs.h. */ |
9139 | _ACEOF | |
9140 | cat confdefs.h >>conftest.$ac_ext | |
9141 | cat >>conftest.$ac_ext <<_ACEOF | |
9142 | /* end confdefs.h. */ | |
9143 | $ac_includes_default | |
9b2b7d69 | 9144 | #include <linux/version.h> |
13b2be9c DJ |
9145 | _ACEOF |
9146 | rm -f conftest.$ac_objext | |
9147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 9148 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 9149 | ac_status=$? |
ab509236 L |
9150 | grep -v '^ *+' conftest.er1 >conftest.err |
9151 | rm -f conftest.er1 | |
9152 | cat conftest.err >&5 | |
13b2be9c DJ |
9153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9154 | (exit $ac_status); } && | |
1ad12f97 NC |
9155 | { ac_try='test -z "$ac_c_werror_flag" |
9156 | || test ! -s conftest.err' | |
ab509236 L |
9157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9158 | (eval $ac_try) 2>&5 | |
9159 | ac_status=$? | |
9160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9161 | (exit $ac_status); }; } && | |
9162 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
9163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9164 | (eval $ac_try) 2>&5 | |
9165 | ac_status=$? | |
9166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9167 | (exit $ac_status); }; }; then | |
9168 | ac_header_compiler=yes | |
9169 | else | |
9170 | echo "$as_me: failed program was:" >&5 | |
9171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9172 | ||
9173 | ac_header_compiler=no | |
9174 | fi | |
ab509236 | 9175 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
9176 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9177 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9178 | ||
9179 | # Is the header present? | |
9180 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
9181 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
9182 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
9183 | /* confdefs.h. */ |
9184 | _ACEOF | |
9185 | cat confdefs.h >>conftest.$ac_ext | |
9186 | cat >>conftest.$ac_ext <<_ACEOF | |
9187 | /* end confdefs.h. */ | |
9188 | #include <linux/version.h> | |
9189 | _ACEOF | |
9190 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9191 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9192 | ac_status=$? | |
9193 | grep -v '^ *+' conftest.er1 >conftest.err | |
9194 | rm -f conftest.er1 | |
9195 | cat conftest.err >&5 | |
9196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9197 | (exit $ac_status); } >/dev/null; then | |
9198 | if test -s conftest.err; then | |
9199 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ab509236 | 9200 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
13b2be9c DJ |
9201 | else |
9202 | ac_cpp_err= | |
9203 | fi | |
252b5132 | 9204 | else |
13b2be9c DJ |
9205 | ac_cpp_err=yes |
9206 | fi | |
9207 | if test -z "$ac_cpp_err"; then | |
9208 | ac_header_preproc=yes | |
9209 | else | |
9210 | echo "$as_me: failed program was:" >&5 | |
9211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9212 | ||
9213 | ac_header_preproc=no | |
9214 | fi | |
9215 | rm -f conftest.err conftest.$ac_ext | |
9216 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9217 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9218 | ||
9219 | # So? What about this header? | |
ab509236 L |
9220 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9221 | yes:no: ) | |
13b2be9c DJ |
9222 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9223 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ab509236 L |
9224 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 |
9225 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
9226 | ac_header_preproc=yes | |
13b2be9c | 9227 | ;; |
ab509236 | 9228 | no:yes:* ) |
13b2be9c DJ |
9229 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 |
9230 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
ab509236 L |
9231 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 |
9232 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
9233 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
9234 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
9235 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9236 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13b2be9c DJ |
9237 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 |
9238 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
ab509236 L |
9239 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 |
9240 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
13b2be9c DJ |
9241 | ( |
9242 | cat <<\_ASBOX | |
ab509236 L |
9243 | ## ------------------------------------------ ## |
9244 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9245 | ## ------------------------------------------ ## | |
13b2be9c DJ |
9246 | _ASBOX |
9247 | ) | | |
9248 | sed "s/^/$as_me: WARNING: /" >&2 | |
9249 | ;; | |
9250 | esac | |
9251 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
9252 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
9253 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
9254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9255 | else | |
9256 | ac_cv_header_linux_version_h=$ac_header_preproc | |
252b5132 | 9257 | fi |
13b2be9c DJ |
9258 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 |
9259 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
9260 | ||
252b5132 | 9261 | fi |
13b2be9c | 9262 | if test $ac_cv_header_linux_version_h = yes; then |
252b5132 RH |
9263 | msgformat=linux |
9264 | else | |
13b2be9c | 9265 | msgformat=xopen |
252b5132 RH |
9266 | fi |
9267 | ||
d6d788bd | 9268 | |
13b2be9c | 9269 | |
252b5132 RH |
9270 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
9271 | fi | |
9272 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
9273 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
9274 | fi | |
9275 | ||
9276 | if test "$PACKAGE" = "gettext"; then | |
9277 | GT_NO="#NO#" | |
9278 | GT_YES= | |
9279 | else | |
9280 | GT_NO= | |
9281 | GT_YES="#YES#" | |
9282 | fi | |
13b2be9c DJ |
9283 | |
9284 | ||
252b5132 RH |
9285 | |
9286 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
13b2be9c | 9287 | |
252b5132 RH |
9288 | |
9289 | l= | |
13b2be9c | 9290 | |
252b5132 | 9291 | |
fcd8210c | 9292 | if test -f $srcdir/po/POTFILES.in; then |
252b5132 RH |
9293 | test -d po || mkdir po |
9294 | if test "x$srcdir" != "x."; then | |
9295 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
9296 | posrcprefix="$srcdir/" | |
9297 | else | |
9298 | posrcprefix="../$srcdir/" | |
9299 | fi | |
9300 | else | |
9301 | posrcprefix="../" | |
9302 | fi | |
9303 | rm -f po/POTFILES | |
9304 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
9305 | < $srcdir/po/POTFILES.in > po/POTFILES | |
9306 | fi | |
252b5132 | 9307 | |
13b2be9c DJ |
9308 | |
9309 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
9310 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
252b5132 RH |
9311 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
9312 | if test "${enable_maintainer_mode+set}" = set; then | |
9313 | enableval="$enable_maintainer_mode" | |
9314 | USE_MAINTAINER_MODE=$enableval | |
9315 | else | |
9316 | USE_MAINTAINER_MODE=no | |
13b2be9c DJ |
9317 | fi; |
9318 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
9319 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
d6d788bd | 9320 | |
252b5132 RH |
9321 | |
9322 | if test $USE_MAINTAINER_MODE = yes; then | |
9323 | MAINTAINER_MODE_TRUE= | |
c8615825 AM |
9324 | MAINTAINER_MODE_FALSE='#' |
9325 | else | |
9326 | MAINTAINER_MODE_TRUE='#' | |
9327 | MAINTAINER_MODE_FALSE= | |
9328 | fi | |
13b2be9c | 9329 | |
c8615825 | 9330 | MAINT=$MAINTAINER_MODE_TRUE |
9b2b7d69 MM |
9331 | |
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
13b2be9c DJ |
9337 | |
9338 | ||
9339 | ||
9340 | ||
9341 | ||
9342 | ||
9343 | ||
9344 | for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h | |
d6d788bd | 9345 | do |
13b2be9c DJ |
9346 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9347 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9348 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9349 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9350 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9352 | fi | |
9353 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9354 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9355 | else | |
9356 | # Is the header compilable? | |
9357 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9358 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9359 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
9360 | /* confdefs.h. */ |
9361 | _ACEOF | |
9362 | cat confdefs.h >>conftest.$ac_ext | |
9363 | cat >>conftest.$ac_ext <<_ACEOF | |
9364 | /* end confdefs.h. */ | |
9365 | $ac_includes_default | |
9366 | #include <$ac_header> | |
9367 | _ACEOF | |
9368 | rm -f conftest.$ac_objext | |
9369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 9370 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 9371 | ac_status=$? |
ab509236 L |
9372 | grep -v '^ *+' conftest.er1 >conftest.err |
9373 | rm -f conftest.er1 | |
9374 | cat conftest.err >&5 | |
13b2be9c DJ |
9375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9376 | (exit $ac_status); } && | |
1ad12f97 NC |
9377 | { ac_try='test -z "$ac_c_werror_flag" |
9378 | || test ! -s conftest.err' | |
ab509236 L |
9379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9380 | (eval $ac_try) 2>&5 | |
9381 | ac_status=$? | |
9382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9383 | (exit $ac_status); }; } && | |
9384 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
9385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9386 | (eval $ac_try) 2>&5 | |
9387 | ac_status=$? | |
9388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9389 | (exit $ac_status); }; }; then | |
9390 | ac_header_compiler=yes | |
9391 | else | |
9392 | echo "$as_me: failed program was:" >&5 | |
9393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9394 | ||
9395 | ac_header_compiler=no | |
9396 | fi | |
ab509236 | 9397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
9398 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9399 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9400 | ||
9401 | # Is the header present? | |
9402 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9403 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9404 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
9405 | /* confdefs.h. */ |
9406 | _ACEOF | |
9407 | cat confdefs.h >>conftest.$ac_ext | |
9408 | cat >>conftest.$ac_ext <<_ACEOF | |
9409 | /* end confdefs.h. */ | |
9410 | #include <$ac_header> | |
9411 | _ACEOF | |
9412 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9413 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9414 | ac_status=$? | |
9415 | grep -v '^ *+' conftest.er1 >conftest.err | |
9416 | rm -f conftest.er1 | |
9417 | cat conftest.err >&5 | |
9418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9419 | (exit $ac_status); } >/dev/null; then | |
9420 | if test -s conftest.err; then | |
9421 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ab509236 | 9422 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
13b2be9c DJ |
9423 | else |
9424 | ac_cpp_err= | |
9425 | fi | |
9b2b7d69 | 9426 | else |
13b2be9c DJ |
9427 | ac_cpp_err=yes |
9428 | fi | |
9429 | if test -z "$ac_cpp_err"; then | |
9430 | ac_header_preproc=yes | |
9431 | else | |
9432 | echo "$as_me: failed program was:" >&5 | |
9433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9434 | ||
9435 | ac_header_preproc=no | |
9436 | fi | |
9437 | rm -f conftest.err conftest.$ac_ext | |
9438 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9439 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9440 | ||
9441 | # So? What about this header? | |
ab509236 L |
9442 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9443 | yes:no: ) | |
13b2be9c DJ |
9444 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9445 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ab509236 L |
9446 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9447 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9448 | ac_header_preproc=yes | |
13b2be9c | 9449 | ;; |
ab509236 | 9450 | no:yes:* ) |
13b2be9c DJ |
9451 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9452 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ab509236 L |
9453 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9454 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9455 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9456 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9457 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9458 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13b2be9c DJ |
9459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9460 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ab509236 L |
9461 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9462 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13b2be9c DJ |
9463 | ( |
9464 | cat <<\_ASBOX | |
ab509236 L |
9465 | ## ------------------------------------------ ## |
9466 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9467 | ## ------------------------------------------ ## | |
13b2be9c DJ |
9468 | _ASBOX |
9469 | ) | | |
9470 | sed "s/^/$as_me: WARNING: /" >&2 | |
9471 | ;; | |
9472 | esac | |
9473 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9474 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9475 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9477 | else | |
ab509236 | 9478 | eval "$as_ac_Header=\$ac_header_preproc" |
252b5132 | 9479 | fi |
13b2be9c DJ |
9480 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9481 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9482 | ||
252b5132 | 9483 | fi |
13b2be9c DJ |
9484 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9485 | cat >>confdefs.h <<_ACEOF | |
9486 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9487 | _ACEOF | |
9488 | ||
252b5132 | 9489 | fi |
13b2be9c | 9490 | |
252b5132 RH |
9491 | done |
9492 | ||
d6d788bd | 9493 | |
252b5132 RH |
9494 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse |
9495 | # people who are not cross-compiling but are compiling cross-assemblers. | |
13b2be9c DJ |
9496 | echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5 |
9497 | echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6 | |
252b5132 RH |
9498 | if test "${host}" = "${target}"; then |
9499 | cross_gas=no | |
9500 | else | |
9501 | cross_gas=yes | |
13b2be9c DJ |
9502 | |
9503 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9504 | #define CROSS_COMPILE 1 |
13b2be9c | 9505 | _ACEOF |
252b5132 RH |
9506 | |
9507 | fi | |
13b2be9c DJ |
9508 | echo "$as_me:$LINENO: result: $cross_gas" >&5 |
9509 | echo "${ECHO_T}$cross_gas" >&6 | |
252b5132 RH |
9510 | |
9511 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
9512 | # for constant arguments. Useless! | |
13b2be9c DJ |
9513 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
9514 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
9515 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
9516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9517 | else | |
9518 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
9519 | /* confdefs.h. */ |
9520 | _ACEOF | |
9521 | cat confdefs.h >>conftest.$ac_ext | |
9522 | cat >>conftest.$ac_ext <<_ACEOF | |
9523 | /* end confdefs.h. */ | |
252b5132 | 9524 | #include <alloca.h> |
13b2be9c DJ |
9525 | int |
9526 | main () | |
9527 | { | |
9528 | char *p = (char *) alloca (2 * sizeof (int)); | |
9529 | ; | |
9530 | return 0; | |
9531 | } | |
9532 | _ACEOF | |
9533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 9535 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 9536 | ac_status=$? |
ab509236 L |
9537 | grep -v '^ *+' conftest.er1 >conftest.err |
9538 | rm -f conftest.er1 | |
9539 | cat conftest.err >&5 | |
13b2be9c DJ |
9540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9541 | (exit $ac_status); } && | |
1ad12f97 NC |
9542 | { ac_try='test -z "$ac_c_werror_flag" |
9543 | || test ! -s conftest.err' | |
ab509236 L |
9544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9545 | (eval $ac_try) 2>&5 | |
9546 | ac_status=$? | |
9547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9548 | (exit $ac_status); }; } && | |
9549 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
9550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9551 | (eval $ac_try) 2>&5 | |
9552 | ac_status=$? | |
9553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9554 | (exit $ac_status); }; }; then | |
9555 | ac_cv_working_alloca_h=yes | |
9556 | else | |
9557 | echo "$as_me: failed program was:" >&5 | |
9558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9559 | ||
9560 | ac_cv_working_alloca_h=no | |
9561 | fi | |
ab509236 L |
9562 | rm -f conftest.err conftest.$ac_objext \ |
9563 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
9564 | fi |
9565 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
9566 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
9567 | if test $ac_cv_working_alloca_h = yes; then | |
9568 | ||
9569 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9570 | #define HAVE_ALLOCA_H 1 |
13b2be9c | 9571 | _ACEOF |
252b5132 RH |
9572 | |
9573 | fi | |
9574 | ||
13b2be9c DJ |
9575 | echo "$as_me:$LINENO: checking for alloca" >&5 |
9576 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
9577 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
9578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9579 | else |
13b2be9c | 9580 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
9581 | /* confdefs.h. */ |
9582 | _ACEOF | |
9583 | cat confdefs.h >>conftest.$ac_ext | |
9584 | cat >>conftest.$ac_ext <<_ACEOF | |
9585 | /* end confdefs.h. */ | |
252b5132 RH |
9586 | #ifdef __GNUC__ |
9587 | # define alloca __builtin_alloca | |
9588 | #else | |
9589 | # ifdef _MSC_VER | |
9590 | # include <malloc.h> | |
9591 | # define alloca _alloca | |
9592 | # else | |
9593 | # if HAVE_ALLOCA_H | |
9594 | # include <alloca.h> | |
9595 | # else | |
9596 | # ifdef _AIX | |
9597 | #pragma alloca | |
9598 | # else | |
9599 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
9600 | char *alloca (); | |
9601 | # endif | |
9602 | # endif | |
9603 | # endif | |
9604 | # endif | |
9605 | #endif | |
9606 | ||
13b2be9c DJ |
9607 | int |
9608 | main () | |
9609 | { | |
9610 | char *p = (char *) alloca (1); | |
9611 | ; | |
9612 | return 0; | |
9613 | } | |
9614 | _ACEOF | |
9615 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 9617 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 9618 | ac_status=$? |
ab509236 L |
9619 | grep -v '^ *+' conftest.er1 >conftest.err |
9620 | rm -f conftest.er1 | |
9621 | cat conftest.err >&5 | |
13b2be9c DJ |
9622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9623 | (exit $ac_status); } && | |
1ad12f97 NC |
9624 | { ac_try='test -z "$ac_c_werror_flag" |
9625 | || test ! -s conftest.err' | |
ab509236 L |
9626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9627 | (eval $ac_try) 2>&5 | |
9628 | ac_status=$? | |
9629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9630 | (exit $ac_status); }; } && | |
9631 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
9632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9633 | (eval $ac_try) 2>&5 | |
9634 | ac_status=$? | |
9635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9636 | (exit $ac_status); }; }; then | |
252b5132 RH |
9637 | ac_cv_func_alloca_works=yes |
9638 | else | |
13b2be9c DJ |
9639 | echo "$as_me: failed program was:" >&5 |
9640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9641 | ||
9642 | ac_cv_func_alloca_works=no | |
252b5132 | 9643 | fi |
ab509236 L |
9644 | rm -f conftest.err conftest.$ac_objext \ |
9645 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 9646 | fi |
13b2be9c DJ |
9647 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
9648 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 9649 | |
252b5132 | 9650 | if test $ac_cv_func_alloca_works = yes; then |
9b2b7d69 | 9651 | |
13b2be9c DJ |
9652 | cat >>confdefs.h <<\_ACEOF |
9653 | #define HAVE_ALLOCA 1 | |
9654 | _ACEOF | |
9b2b7d69 | 9655 | |
13b2be9c | 9656 | else |
c8615825 | 9657 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
13b2be9c DJ |
9658 | # that cause trouble. Some versions do not even contain alloca or |
9659 | # contain a buggy version. If you still want to use their alloca, | |
9660 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
9661 | ||
9662 | ALLOCA=alloca.$ac_objext | |
9663 | ||
9664 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9665 | #define C_ALLOCA 1 |
13b2be9c | 9666 | _ACEOF |
252b5132 | 9667 | |
d6d788bd | 9668 | |
13b2be9c DJ |
9669 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
9670 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
9671 | if test "${ac_cv_os_cray+set}" = set; then | |
9672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9673 | else |
13b2be9c | 9674 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
9675 | /* confdefs.h. */ |
9676 | _ACEOF | |
9677 | cat confdefs.h >>conftest.$ac_ext | |
9678 | cat >>conftest.$ac_ext <<_ACEOF | |
9679 | /* end confdefs.h. */ | |
252b5132 RH |
9680 | #if defined(CRAY) && ! defined(CRAY2) |
9681 | webecray | |
9682 | #else | |
9683 | wenotbecray | |
9684 | #endif | |
9685 | ||
13b2be9c | 9686 | _ACEOF |
252b5132 | 9687 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13b2be9c | 9688 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
9689 | ac_cv_os_cray=yes |
9690 | else | |
252b5132 RH |
9691 | ac_cv_os_cray=no |
9692 | fi | |
9693 | rm -f conftest* | |
9694 | ||
9695 | fi | |
13b2be9c DJ |
9696 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
9697 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
252b5132 | 9698 | if test $ac_cv_os_cray = yes; then |
13b2be9c DJ |
9699 | for ac_func in _getb67 GETB67 getb67; do |
9700 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9701 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9702 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9703 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9705 | else | |
9706 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
9707 | /* confdefs.h. */ |
9708 | _ACEOF | |
9709 | cat confdefs.h >>conftest.$ac_ext | |
9710 | cat >>conftest.$ac_ext <<_ACEOF | |
9711 | /* end confdefs.h. */ | |
ab509236 L |
9712 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9713 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9714 | #define $ac_func innocuous_$ac_func | |
9715 | ||
252b5132 | 9716 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
9717 | which can conflict with char $ac_func (); below. |
9718 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9719 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 9720 | |
13b2be9c DJ |
9721 | #ifdef __STDC__ |
9722 | # include <limits.h> | |
9723 | #else | |
9724 | # include <assert.h> | |
9725 | #endif | |
ab509236 L |
9726 | |
9727 | #undef $ac_func | |
9728 | ||
252b5132 | 9729 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
9730 | #ifdef __cplusplus |
9731 | extern "C" | |
9732 | { | |
9733 | #endif | |
252b5132 | 9734 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
9735 | builtin and then its argument prototype would still apply. */ |
9736 | char $ac_func (); | |
252b5132 RH |
9737 | /* The GNU C library defines this for functions which it implements |
9738 | to always fail with ENOSYS. Some functions are actually named | |
9739 | something starting with __ and the normal name is an alias. */ | |
9740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9741 | choke me | |
9742 | #else | |
13b2be9c DJ |
9743 | char (*f) () = $ac_func; |
9744 | #endif | |
9745 | #ifdef __cplusplus | |
9746 | } | |
252b5132 RH |
9747 | #endif |
9748 | ||
13b2be9c DJ |
9749 | int |
9750 | main () | |
9751 | { | |
9752 | return f != $ac_func; | |
9753 | ; | |
9754 | return 0; | |
9755 | } | |
9756 | _ACEOF | |
9757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 9759 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 9760 | ac_status=$? |
ab509236 L |
9761 | grep -v '^ *+' conftest.er1 >conftest.err |
9762 | rm -f conftest.er1 | |
9763 | cat conftest.err >&5 | |
13b2be9c DJ |
9764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9765 | (exit $ac_status); } && | |
1ad12f97 NC |
9766 | { ac_try='test -z "$ac_c_werror_flag" |
9767 | || test ! -s conftest.err' | |
ab509236 L |
9768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9769 | (eval $ac_try) 2>&5 | |
9770 | ac_status=$? | |
9771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9772 | (exit $ac_status); }; } && | |
9773 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
9774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9775 | (eval $ac_try) 2>&5 | |
9776 | ac_status=$? | |
9777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9778 | (exit $ac_status); }; }; then | |
9779 | eval "$as_ac_var=yes" | |
9780 | else | |
9781 | echo "$as_me: failed program was:" >&5 | |
9782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9783 | ||
9784 | eval "$as_ac_var=no" | |
9785 | fi | |
ab509236 L |
9786 | rm -f conftest.err conftest.$ac_objext \ |
9787 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
9788 | fi |
9789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9790 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9791 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9792 | ||
9793 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 9794 | #define CRAY_STACKSEG_END $ac_func |
13b2be9c | 9795 | _ACEOF |
252b5132 | 9796 | |
13b2be9c | 9797 | break |
252b5132 RH |
9798 | fi |
9799 | ||
13b2be9c | 9800 | done |
252b5132 RH |
9801 | fi |
9802 | ||
13b2be9c DJ |
9803 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
9804 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
9805 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
9806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
9807 | else |
9808 | if test "$cross_compiling" = yes; then | |
9809 | ac_cv_c_stack_direction=0 | |
9810 | else | |
13b2be9c | 9811 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
9812 | /* confdefs.h. */ |
9813 | _ACEOF | |
9814 | cat confdefs.h >>conftest.$ac_ext | |
9815 | cat >>conftest.$ac_ext <<_ACEOF | |
9816 | /* end confdefs.h. */ | |
9817 | int | |
252b5132 RH |
9818 | find_stack_direction () |
9819 | { | |
9820 | static char *addr = 0; | |
9821 | auto char dummy; | |
9822 | if (addr == 0) | |
9823 | { | |
9824 | addr = &dummy; | |
9825 | return find_stack_direction (); | |
9826 | } | |
9827 | else | |
9828 | return (&dummy > addr) ? 1 : -1; | |
9829 | } | |
13b2be9c DJ |
9830 | |
9831 | int | |
252b5132 RH |
9832 | main () |
9833 | { | |
13b2be9c | 9834 | exit (find_stack_direction () < 0); |
252b5132 | 9835 | } |
13b2be9c DJ |
9836 | _ACEOF |
9837 | rm -f conftest$ac_exeext | |
9838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9839 | (eval $ac_link) 2>&5 | |
9840 | ac_status=$? | |
9841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9844 | (eval $ac_try) 2>&5 | |
9845 | ac_status=$? | |
9846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9847 | (exit $ac_status); }; }; then | |
252b5132 RH |
9848 | ac_cv_c_stack_direction=1 |
9849 | else | |
13b2be9c DJ |
9850 | echo "$as_me: program exited with status $ac_status" >&5 |
9851 | echo "$as_me: failed program was:" >&5 | |
9852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9853 | ||
9854 | ( exit $ac_status ) | |
9855 | ac_cv_c_stack_direction=-1 | |
252b5132 | 9856 | fi |
ab509236 | 9857 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 9858 | fi |
252b5132 | 9859 | fi |
13b2be9c DJ |
9860 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
9861 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 9862 | |
13b2be9c | 9863 | cat >>confdefs.h <<_ACEOF |
252b5132 | 9864 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
13b2be9c DJ |
9865 | _ACEOF |
9866 | ||
252b5132 RH |
9867 | |
9868 | fi | |
9869 | ||
13b2be9c DJ |
9870 | echo "$as_me:$LINENO: checking for inline" >&5 |
9871 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
9872 | if test "${ac_cv_c_inline+set}" = set; then | |
9873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
9874 | else |
9875 | ac_cv_c_inline=no | |
9876 | for ac_kw in inline __inline__ __inline; do | |
13b2be9c | 9877 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
9878 | /* confdefs.h. */ |
9879 | _ACEOF | |
9880 | cat confdefs.h >>conftest.$ac_ext | |
9881 | cat >>conftest.$ac_ext <<_ACEOF | |
9882 | /* end confdefs.h. */ | |
9883 | #ifndef __cplusplus | |
9884 | typedef int foo_t; | |
9885 | static $ac_kw foo_t static_foo () {return 0; } | |
9886 | $ac_kw foo_t foo () {return 0; } | |
9887 | #endif | |
252b5132 | 9888 | |
13b2be9c DJ |
9889 | _ACEOF |
9890 | rm -f conftest.$ac_objext | |
9891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 9892 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 9893 | ac_status=$? |
ab509236 L |
9894 | grep -v '^ *+' conftest.er1 >conftest.err |
9895 | rm -f conftest.er1 | |
9896 | cat conftest.err >&5 | |
13b2be9c DJ |
9897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9898 | (exit $ac_status); } && | |
1ad12f97 NC |
9899 | { ac_try='test -z "$ac_c_werror_flag" |
9900 | || test ! -s conftest.err' | |
ab509236 L |
9901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9902 | (eval $ac_try) 2>&5 | |
9903 | ac_status=$? | |
9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9905 | (exit $ac_status); }; } && | |
9906 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
9907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9908 | (eval $ac_try) 2>&5 | |
9909 | ac_status=$? | |
9910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9911 | (exit $ac_status); }; }; then | |
252b5132 RH |
9912 | ac_cv_c_inline=$ac_kw; break |
9913 | else | |
13b2be9c DJ |
9914 | echo "$as_me: failed program was:" >&5 |
9915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9916 | ||
252b5132 | 9917 | fi |
ab509236 | 9918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9919 | done |
9920 | ||
9921 | fi | |
13b2be9c DJ |
9922 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
9923 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ab509236 L |
9924 | |
9925 | ||
13b2be9c | 9926 | case $ac_cv_c_inline in |
252b5132 | 9927 | inline | yes) ;; |
ab509236 L |
9928 | *) |
9929 | case $ac_cv_c_inline in | |
9930 | no) ac_val=;; | |
9931 | *) ac_val=$ac_cv_c_inline;; | |
9932 | esac | |
9933 | cat >>confdefs.h <<_ACEOF | |
9934 | #ifndef __cplusplus | |
9935 | #define inline $ac_val | |
9936 | #endif | |
13b2be9c | 9937 | _ACEOF |
ab509236 | 9938 | ;; |
252b5132 RH |
9939 | esac |
9940 | ||
6840198f | 9941 | |
d6d788bd | 9942 | # VMS doesn't have unlink. |
13b2be9c DJ |
9943 | |
9944 | ||
252b5132 RH |
9945 | for ac_func in unlink remove |
9946 | do | |
13b2be9c DJ |
9947 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9948 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9949 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9950 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9952 | else | |
9953 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
9954 | /* confdefs.h. */ |
9955 | _ACEOF | |
9956 | cat confdefs.h >>conftest.$ac_ext | |
9957 | cat >>conftest.$ac_ext <<_ACEOF | |
9958 | /* end confdefs.h. */ | |
ab509236 L |
9959 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9960 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9961 | #define $ac_func innocuous_$ac_func | |
9962 | ||
252b5132 | 9963 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
9964 | which can conflict with char $ac_func (); below. |
9965 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9966 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 9967 | |
13b2be9c DJ |
9968 | #ifdef __STDC__ |
9969 | # include <limits.h> | |
9970 | #else | |
9971 | # include <assert.h> | |
9972 | #endif | |
ab509236 L |
9973 | |
9974 | #undef $ac_func | |
9975 | ||
252b5132 | 9976 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
9977 | #ifdef __cplusplus |
9978 | extern "C" | |
9979 | { | |
9980 | #endif | |
252b5132 | 9981 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
9982 | builtin and then its argument prototype would still apply. */ |
9983 | char $ac_func (); | |
252b5132 RH |
9984 | /* The GNU C library defines this for functions which it implements |
9985 | to always fail with ENOSYS. Some functions are actually named | |
9986 | something starting with __ and the normal name is an alias. */ | |
9987 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9988 | choke me | |
9989 | #else | |
13b2be9c DJ |
9990 | char (*f) () = $ac_func; |
9991 | #endif | |
9992 | #ifdef __cplusplus | |
9993 | } | |
252b5132 RH |
9994 | #endif |
9995 | ||
13b2be9c DJ |
9996 | int |
9997 | main () | |
9998 | { | |
9999 | return f != $ac_func; | |
10000 | ; | |
10001 | return 0; | |
10002 | } | |
10003 | _ACEOF | |
10004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 10006 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 10007 | ac_status=$? |
ab509236 L |
10008 | grep -v '^ *+' conftest.er1 >conftest.err |
10009 | rm -f conftest.er1 | |
10010 | cat conftest.err >&5 | |
13b2be9c DJ |
10011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10012 | (exit $ac_status); } && | |
1ad12f97 NC |
10013 | { ac_try='test -z "$ac_c_werror_flag" |
10014 | || test ! -s conftest.err' | |
ab509236 L |
10015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10016 | (eval $ac_try) 2>&5 | |
10017 | ac_status=$? | |
10018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10019 | (exit $ac_status); }; } && | |
10020 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
10021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10022 | (eval $ac_try) 2>&5 | |
10023 | ac_status=$? | |
10024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10025 | (exit $ac_status); }; }; then | |
10026 | eval "$as_ac_var=yes" | |
10027 | else | |
10028 | echo "$as_me: failed program was:" >&5 | |
10029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10030 | ||
10031 | eval "$as_ac_var=no" | |
10032 | fi | |
ab509236 L |
10033 | rm -f conftest.err conftest.$ac_objext \ |
10034 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
10035 | fi |
10036 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10037 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10038 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10039 | cat >>confdefs.h <<_ACEOF | |
10040 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10041 | _ACEOF | |
252b5132 | 10042 | break |
252b5132 RH |
10043 | fi |
10044 | done | |
10045 | ||
6840198f | 10046 | |
d6d788bd | 10047 | # Some systems don't have sbrk(). |
13b2be9c | 10048 | |
252b5132 RH |
10049 | for ac_func in sbrk |
10050 | do | |
13b2be9c DJ |
10051 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10052 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10053 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10054 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10056 | else | |
10057 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
10058 | /* confdefs.h. */ |
10059 | _ACEOF | |
10060 | cat confdefs.h >>conftest.$ac_ext | |
10061 | cat >>conftest.$ac_ext <<_ACEOF | |
10062 | /* end confdefs.h. */ | |
ab509236 L |
10063 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10064 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10065 | #define $ac_func innocuous_$ac_func | |
10066 | ||
252b5132 | 10067 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
10068 | which can conflict with char $ac_func (); below. |
10069 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10070 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 10071 | |
13b2be9c DJ |
10072 | #ifdef __STDC__ |
10073 | # include <limits.h> | |
10074 | #else | |
10075 | # include <assert.h> | |
10076 | #endif | |
ab509236 L |
10077 | |
10078 | #undef $ac_func | |
10079 | ||
252b5132 | 10080 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
10081 | #ifdef __cplusplus |
10082 | extern "C" | |
10083 | { | |
10084 | #endif | |
252b5132 | 10085 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
10086 | builtin and then its argument prototype would still apply. */ |
10087 | char $ac_func (); | |
252b5132 RH |
10088 | /* The GNU C library defines this for functions which it implements |
10089 | to always fail with ENOSYS. Some functions are actually named | |
10090 | something starting with __ and the normal name is an alias. */ | |
10091 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10092 | choke me | |
10093 | #else | |
13b2be9c DJ |
10094 | char (*f) () = $ac_func; |
10095 | #endif | |
10096 | #ifdef __cplusplus | |
10097 | } | |
252b5132 RH |
10098 | #endif |
10099 | ||
13b2be9c DJ |
10100 | int |
10101 | main () | |
10102 | { | |
10103 | return f != $ac_func; | |
10104 | ; | |
10105 | return 0; | |
10106 | } | |
10107 | _ACEOF | |
10108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 10110 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 10111 | ac_status=$? |
ab509236 L |
10112 | grep -v '^ *+' conftest.er1 >conftest.err |
10113 | rm -f conftest.er1 | |
10114 | cat conftest.err >&5 | |
13b2be9c DJ |
10115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10116 | (exit $ac_status); } && | |
1ad12f97 NC |
10117 | { ac_try='test -z "$ac_c_werror_flag" |
10118 | || test ! -s conftest.err' | |
ab509236 L |
10119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10120 | (eval $ac_try) 2>&5 | |
10121 | ac_status=$? | |
10122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10123 | (exit $ac_status); }; } && | |
10124 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
10125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10126 | (eval $ac_try) 2>&5 | |
10127 | ac_status=$? | |
10128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10129 | (exit $ac_status); }; }; then | |
10130 | eval "$as_ac_var=yes" | |
10131 | else | |
10132 | echo "$as_me: failed program was:" >&5 | |
10133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10134 | ||
10135 | eval "$as_ac_var=no" | |
10136 | fi | |
ab509236 L |
10137 | rm -f conftest.err conftest.$ac_objext \ |
10138 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
10139 | fi |
10140 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10141 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10142 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10143 | cat >>confdefs.h <<_ACEOF | |
10144 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10145 | _ACEOF | |
252b5132 | 10146 | |
252b5132 RH |
10147 | fi |
10148 | done | |
10149 | ||
d6d788bd | 10150 | |
39bec121 TW |
10151 | # do we need the math library? |
10152 | case "${need_libm}" in | |
13b2be9c | 10153 | yes) |
39bec121 | 10154 | LIBM= |
f9c19112 | 10155 | case $host in |
4b363073 | 10156 | *-*-beos* | *-*-cygwin* | *-*-pw32*) |
39bec121 TW |
10157 | # These system don't have libm |
10158 | ;; | |
10159 | *-ncr-sysv4.3*) | |
13b2be9c DJ |
10160 | echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5 |
10161 | echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6 | |
10162 | if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then | |
10163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39bec121 | 10164 | else |
13b2be9c | 10165 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 10166 | LIBS="-lmw $LIBS" |
13b2be9c | 10167 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
10168 | /* confdefs.h. */ |
10169 | _ACEOF | |
10170 | cat confdefs.h >>conftest.$ac_ext | |
10171 | cat >>conftest.$ac_ext <<_ACEOF | |
10172 | /* end confdefs.h. */ | |
10173 | ||
39bec121 | 10174 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
10175 | #ifdef __cplusplus |
10176 | extern "C" | |
10177 | #endif | |
39bec121 | 10178 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
10179 | builtin and then its argument prototype would still apply. */ |
10180 | char _mwvalidcheckl (); | |
10181 | int | |
10182 | main () | |
10183 | { | |
10184 | _mwvalidcheckl (); | |
10185 | ; | |
10186 | return 0; | |
10187 | } | |
10188 | _ACEOF | |
10189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 10191 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 10192 | ac_status=$? |
ab509236 L |
10193 | grep -v '^ *+' conftest.er1 >conftest.err |
10194 | rm -f conftest.er1 | |
10195 | cat conftest.err >&5 | |
13b2be9c DJ |
10196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10197 | (exit $ac_status); } && | |
1ad12f97 NC |
10198 | { ac_try='test -z "$ac_c_werror_flag" |
10199 | || test ! -s conftest.err' | |
ab509236 L |
10200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10201 | (eval $ac_try) 2>&5 | |
10202 | ac_status=$? | |
10203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10204 | (exit $ac_status); }; } && | |
10205 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
10206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10207 | (eval $ac_try) 2>&5 | |
10208 | ac_status=$? | |
10209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10210 | (exit $ac_status); }; }; then | |
10211 | ac_cv_lib_mw__mwvalidcheckl=yes | |
10212 | else | |
10213 | echo "$as_me: failed program was:" >&5 | |
10214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10215 | ||
10216 | ac_cv_lib_mw__mwvalidcheckl=no | |
10217 | fi | |
ab509236 L |
10218 | rm -f conftest.err conftest.$ac_objext \ |
10219 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
10220 | LIBS=$ac_check_lib_save_LIBS |
10221 | fi | |
10222 | echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 | |
10223 | echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6 | |
10224 | if test $ac_cv_lib_mw__mwvalidcheckl = yes; then | |
39bec121 | 10225 | LIBM="-lmw" |
39bec121 TW |
10226 | fi |
10227 | ||
13b2be9c DJ |
10228 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
10229 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
10230 | if test "${ac_cv_lib_m_main+set}" = set; then | |
10231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39bec121 | 10232 | else |
13b2be9c | 10233 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 10234 | LIBS="-lm $LIBS" |
13b2be9c | 10235 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
10236 | /* confdefs.h. */ |
10237 | _ACEOF | |
10238 | cat confdefs.h >>conftest.$ac_ext | |
10239 | cat >>conftest.$ac_ext <<_ACEOF | |
10240 | /* end confdefs.h. */ | |
39bec121 | 10241 | |
d6d788bd | 10242 | |
13b2be9c DJ |
10243 | int |
10244 | main () | |
10245 | { | |
10246 | main (); | |
10247 | ; | |
10248 | return 0; | |
10249 | } | |
10250 | _ACEOF | |
10251 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 10253 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 10254 | ac_status=$? |
ab509236 L |
10255 | grep -v '^ *+' conftest.er1 >conftest.err |
10256 | rm -f conftest.er1 | |
10257 | cat conftest.err >&5 | |
13b2be9c DJ |
10258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10259 | (exit $ac_status); } && | |
1ad12f97 NC |
10260 | { ac_try='test -z "$ac_c_werror_flag" |
10261 | || test ! -s conftest.err' | |
ab509236 L |
10262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10263 | (eval $ac_try) 2>&5 | |
10264 | ac_status=$? | |
10265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10266 | (exit $ac_status); }; } && | |
10267 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
10268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10269 | (eval $ac_try) 2>&5 | |
10270 | ac_status=$? | |
10271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10272 | (exit $ac_status); }; }; then | |
10273 | ac_cv_lib_m_main=yes | |
10274 | else | |
10275 | echo "$as_me: failed program was:" >&5 | |
10276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10277 | ||
10278 | ac_cv_lib_m_main=no | |
10279 | fi | |
ab509236 L |
10280 | rm -f conftest.err conftest.$ac_objext \ |
10281 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
10282 | LIBS=$ac_check_lib_save_LIBS |
10283 | fi | |
10284 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 | |
10285 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
10286 | if test $ac_cv_lib_m_main = yes; then | |
39bec121 | 10287 | LIBM="$LIBM -lm" |
39bec121 TW |
10288 | fi |
10289 | ||
10290 | ;; | |
10291 | *) | |
13b2be9c DJ |
10292 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
10293 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
10294 | if test "${ac_cv_lib_m_main+set}" = set; then | |
10295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39bec121 | 10296 | else |
13b2be9c | 10297 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 10298 | LIBS="-lm $LIBS" |
13b2be9c | 10299 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
10300 | /* confdefs.h. */ |
10301 | _ACEOF | |
10302 | cat confdefs.h >>conftest.$ac_ext | |
10303 | cat >>conftest.$ac_ext <<_ACEOF | |
10304 | /* end confdefs.h. */ | |
39bec121 | 10305 | |
d6d788bd | 10306 | |
13b2be9c DJ |
10307 | int |
10308 | main () | |
10309 | { | |
10310 | main (); | |
10311 | ; | |
10312 | return 0; | |
10313 | } | |
10314 | _ACEOF | |
10315 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 10317 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 10318 | ac_status=$? |
ab509236 L |
10319 | grep -v '^ *+' conftest.er1 >conftest.err |
10320 | rm -f conftest.er1 | |
10321 | cat conftest.err >&5 | |
13b2be9c DJ |
10322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10323 | (exit $ac_status); } && | |
1ad12f97 NC |
10324 | { ac_try='test -z "$ac_c_werror_flag" |
10325 | || test ! -s conftest.err' | |
ab509236 L |
10326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10327 | (eval $ac_try) 2>&5 | |
10328 | ac_status=$? | |
10329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10330 | (exit $ac_status); }; } && | |
10331 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
10332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10333 | (eval $ac_try) 2>&5 | |
10334 | ac_status=$? | |
10335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10336 | (exit $ac_status); }; }; then | |
10337 | ac_cv_lib_m_main=yes | |
10338 | else | |
10339 | echo "$as_me: failed program was:" >&5 | |
10340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10341 | ||
10342 | ac_cv_lib_m_main=no | |
10343 | fi | |
ab509236 L |
10344 | rm -f conftest.err conftest.$ac_objext \ |
10345 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
10346 | LIBS=$ac_check_lib_save_LIBS |
10347 | fi | |
10348 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 | |
10349 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
10350 | if test $ac_cv_lib_m_main = yes; then | |
39bec121 | 10351 | LIBM="-lm" |
39bec121 TW |
10352 | fi |
10353 | ||
10354 | ;; | |
10355 | esac | |
10356 | ||
13b2be9c | 10357 | |
39bec121 TW |
10358 | ;; |
10359 | esac | |
10360 | ||
252b5132 RH |
10361 | # Some non-ANSI preprocessors botch requoting inside strings. That's bad |
10362 | # enough, but on some of those systems, the assert macro relies on requoting | |
10363 | # working properly! | |
13b2be9c DJ |
10364 | echo "$as_me:$LINENO: checking for working assert macro" >&5 |
10365 | echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6 | |
10366 | if test "${gas_cv_assert_ok+set}" = set; then | |
10367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10368 | else | |
10369 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
10370 | /* confdefs.h. */ |
10371 | _ACEOF | |
10372 | cat confdefs.h >>conftest.$ac_ext | |
10373 | cat >>conftest.$ac_ext <<_ACEOF | |
10374 | /* end confdefs.h. */ | |
252b5132 RH |
10375 | #include <assert.h> |
10376 | #include <stdio.h> | |
13b2be9c DJ |
10377 | int |
10378 | main () | |
10379 | { | |
252b5132 RH |
10380 | |
10381 | /* check for requoting problems */ | |
10382 | static int a, b, c, d; | |
10383 | static char *s; | |
10384 | assert (!strcmp(s, "foo bar baz quux")); | |
10385 | /* check for newline handling */ | |
10386 | assert (a == b | |
10387 | || c == d); | |
10388 | ||
13b2be9c DJ |
10389 | ; |
10390 | return 0; | |
10391 | } | |
10392 | _ACEOF | |
10393 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 10395 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 10396 | ac_status=$? |
ab509236 L |
10397 | grep -v '^ *+' conftest.er1 >conftest.err |
10398 | rm -f conftest.er1 | |
10399 | cat conftest.err >&5 | |
13b2be9c DJ |
10400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10401 | (exit $ac_status); } && | |
1ad12f97 NC |
10402 | { ac_try='test -z "$ac_c_werror_flag" |
10403 | || test ! -s conftest.err' | |
ab509236 L |
10404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10405 | (eval $ac_try) 2>&5 | |
10406 | ac_status=$? | |
10407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10408 | (exit $ac_status); }; } && | |
10409 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
10410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10411 | (eval $ac_try) 2>&5 | |
10412 | ac_status=$? | |
10413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10414 | (exit $ac_status); }; }; then | |
252b5132 RH |
10415 | gas_cv_assert_ok=yes |
10416 | else | |
13b2be9c DJ |
10417 | echo "$as_me: failed program was:" >&5 |
10418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10419 | ||
10420 | gas_cv_assert_ok=no | |
252b5132 | 10421 | fi |
ab509236 L |
10422 | rm -f conftest.err conftest.$ac_objext \ |
10423 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 10424 | fi |
13b2be9c DJ |
10425 | echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5 |
10426 | echo "${ECHO_T}$gas_cv_assert_ok" >&6 | |
10427 | test $gas_cv_assert_ok = yes || | |
10428 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10429 | #define BROKEN_ASSERT 1 |
13b2be9c | 10430 | _ACEOF |
252b5132 | 10431 | |
d6d788bd L |
10432 | |
10433 | ||
252b5132 RH |
10434 | # On some systems, the system header files may not declare malloc, realloc, |
10435 | # and free. There are places where gas needs these functions to have been | |
10436 | # declared -- such as when taking their addresses. | |
10437 | gas_test_headers=" | |
10438 | #ifdef HAVE_MEMORY_H | |
10439 | #include <memory.h> | |
10440 | #endif | |
10441 | #ifdef HAVE_STRING_H | |
10442 | #include <string.h> | |
10443 | #else | |
10444 | #ifdef HAVE_STRINGS_H | |
10445 | #include <strings.h> | |
10446 | #endif | |
10447 | #endif | |
10448 | #ifdef HAVE_STDLIB_H | |
10449 | #include <stdlib.h> | |
10450 | #endif | |
10451 | #ifdef HAVE_UNISTD_H | |
10452 | #include <unistd.h> | |
10453 | #endif | |
10454 | " | |
10455 | ||
e8a38df5 AL |
10456 | # Does errno.h declare errno, or do we have to add a separate declaration |
10457 | # for it? | |
10458 | ||
10459 | echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5 | |
10460 | echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6 | |
10461 | if test "${gas_cv_decl_needed_errno+set}" = set; then | |
10462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10463 | else | |
10464 | cat >conftest.$ac_ext <<_ACEOF | |
10465 | /* confdefs.h. */ | |
10466 | _ACEOF | |
10467 | cat confdefs.h >>conftest.$ac_ext | |
10468 | cat >>conftest.$ac_ext <<_ACEOF | |
10469 | /* end confdefs.h. */ | |
10470 | ||
10471 | #ifdef HAVE_ERRNO_H | |
10472 | #include <errno.h> | |
10473 | #endif | |
10474 | ||
10475 | int | |
10476 | main () | |
10477 | { | |
10478 | ||
10479 | typedef int f; | |
10480 | f x; | |
10481 | x = (f) errno; | |
10482 | ||
10483 | ; | |
10484 | return 0; | |
10485 | } | |
10486 | _ACEOF | |
10487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10489 | (eval $ac_link) 2>conftest.er1 | |
10490 | ac_status=$? | |
10491 | grep -v '^ *+' conftest.er1 >conftest.err | |
10492 | rm -f conftest.er1 | |
10493 | cat conftest.err >&5 | |
10494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10495 | (exit $ac_status); } && | |
10496 | { ac_try='test -z "$ac_c_werror_flag" | |
10497 | || test ! -s conftest.err' | |
10498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10499 | (eval $ac_try) 2>&5 | |
10500 | ac_status=$? | |
10501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10502 | (exit $ac_status); }; } && | |
10503 | { ac_try='test -s conftest$ac_exeext' | |
10504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10505 | (eval $ac_try) 2>&5 | |
10506 | ac_status=$? | |
10507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10508 | (exit $ac_status); }; }; then | |
10509 | gas_cv_decl_needed_errno=no | |
10510 | else | |
10511 | echo "$as_me: failed program was:" >&5 | |
10512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10513 | ||
10514 | gas_cv_decl_needed_errno=yes | |
10515 | fi | |
10516 | rm -f conftest.err conftest.$ac_objext \ | |
10517 | conftest$ac_exeext conftest.$ac_ext | |
10518 | fi | |
10519 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5 | |
10520 | echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6 | |
10521 | if test $gas_cv_decl_needed_errno = yes; then | |
10522 | ||
10523 | cat >>confdefs.h <<\_ACEOF | |
10524 | #define NEED_DECLARATION_ERRNO 1 | |
10525 | _ACEOF | |
10526 | ||
10527 | fi | |
10528 | ||
10529 | ||
56f36663 NC |
10530 | echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 |
10531 | echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6 | |
10532 | if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then | |
10533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10534 | else | |
10535 | cat >conftest.$ac_ext <<_ACEOF | |
10536 | /* confdefs.h. */ | |
10537 | _ACEOF | |
10538 | cat confdefs.h >>conftest.$ac_ext | |
10539 | cat >>conftest.$ac_ext <<_ACEOF | |
10540 | /* end confdefs.h. */ | |
10541 | #include <unistd.h> | |
10542 | int | |
10543 | main () | |
10544 | { | |
10545 | extern int getopt (int, char *const*, const char *); | |
10546 | ; | |
10547 | return 0; | |
10548 | } | |
10549 | _ACEOF | |
10550 | rm -f conftest.$ac_objext | |
10551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10552 | (eval $ac_compile) 2>conftest.er1 | |
10553 | ac_status=$? | |
10554 | grep -v '^ *+' conftest.er1 >conftest.err | |
10555 | rm -f conftest.er1 | |
10556 | cat conftest.err >&5 | |
10557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10558 | (exit $ac_status); } && | |
10559 | { ac_try='test -z "$ac_c_werror_flag" | |
10560 | || test ! -s conftest.err' | |
10561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10562 | (eval $ac_try) 2>&5 | |
10563 | ac_status=$? | |
10564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10565 | (exit $ac_status); }; } && | |
10566 | { ac_try='test -s conftest.$ac_objext' | |
10567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10568 | (eval $ac_try) 2>&5 | |
10569 | ac_status=$? | |
10570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10571 | (exit $ac_status); }; }; then | |
10572 | gas_cv_decl_getopt_unistd_h=yes | |
10573 | else | |
10574 | echo "$as_me: failed program was:" >&5 | |
10575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10576 | ||
10577 | gas_cv_decl_getopt_unistd_h=no | |
10578 | fi | |
10579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10580 | fi | |
10581 | ||
10582 | echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5 | |
10583 | echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6 | |
10584 | if test $gas_cv_decl_getopt_unistd_h = yes; then | |
10585 | ||
10586 | cat >>confdefs.h <<\_ACEOF | |
10587 | #define HAVE_DECL_GETOPT 1 | |
10588 | _ACEOF | |
10589 | ||
10590 | fi | |
10591 | ||
e8a38df5 AL |
10592 | |
10593 | echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5 | |
10594 | echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6 | |
10595 | if test "${gas_cv_decl_needed_environ+set}" = set; then | |
13b2be9c DJ |
10596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10597 | else | |
10598 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
10599 | /* confdefs.h. */ |
10600 | _ACEOF | |
10601 | cat confdefs.h >>conftest.$ac_ext | |
10602 | cat >>conftest.$ac_ext <<_ACEOF | |
10603 | /* end confdefs.h. */ | |
252b5132 | 10604 | $gas_test_headers |
13b2be9c DJ |
10605 | int |
10606 | main () | |
10607 | { | |
252b5132 | 10608 | |
e8a38df5 | 10609 | typedef char **f; |
252b5132 | 10610 | f x; |
e8a38df5 | 10611 | x = (f) environ; |
252b5132 | 10612 | |
13b2be9c DJ |
10613 | ; |
10614 | return 0; | |
10615 | } | |
10616 | _ACEOF | |
10617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 10619 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 10620 | ac_status=$? |
ab509236 L |
10621 | grep -v '^ *+' conftest.er1 >conftest.err |
10622 | rm -f conftest.er1 | |
10623 | cat conftest.err >&5 | |
13b2be9c DJ |
10624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10625 | (exit $ac_status); } && | |
1ad12f97 NC |
10626 | { ac_try='test -z "$ac_c_werror_flag" |
10627 | || test ! -s conftest.err' | |
ab509236 L |
10628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10629 | (eval $ac_try) 2>&5 | |
10630 | ac_status=$? | |
10631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10632 | (exit $ac_status); }; } && | |
10633 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
10634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10635 | (eval $ac_try) 2>&5 | |
10636 | ac_status=$? | |
10637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10638 | (exit $ac_status); }; }; then | |
e8a38df5 | 10639 | gas_cv_decl_needed_environ=no |
252b5132 | 10640 | else |
13b2be9c DJ |
10641 | echo "$as_me: failed program was:" >&5 |
10642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10643 | ||
e8a38df5 | 10644 | gas_cv_decl_needed_environ=yes |
252b5132 | 10645 | fi |
ab509236 L |
10646 | rm -f conftest.err conftest.$ac_objext \ |
10647 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 10648 | fi |
e8a38df5 AL |
10649 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5 |
10650 | echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6 | |
10651 | if test $gas_cv_decl_needed_environ = yes; then | |
13b2be9c DJ |
10652 | |
10653 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 10654 | #define NEED_DECLARATION_ENVIRON 1 |
13b2be9c DJ |
10655 | _ACEOF |
10656 | ||
10657 | fi | |
10658 | ||
10659 | ||
e8a38df5 AL |
10660 | echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5 |
10661 | echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6 | |
10662 | if test "${gas_cv_decl_needed_ffs+set}" = set; then | |
13b2be9c DJ |
10663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10664 | else | |
10665 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
10666 | /* confdefs.h. */ |
10667 | _ACEOF | |
10668 | cat confdefs.h >>conftest.$ac_ext | |
10669 | cat >>conftest.$ac_ext <<_ACEOF | |
10670 | /* end confdefs.h. */ | |
10671 | $gas_test_headers | |
10672 | int | |
10673 | main () | |
10674 | { | |
10675 | ||
e8a38df5 | 10676 | typedef int (*f)(int); |
13b2be9c | 10677 | f x; |
e8a38df5 | 10678 | x = (f) ffs; |
13b2be9c DJ |
10679 | |
10680 | ; | |
10681 | return 0; | |
10682 | } | |
10683 | _ACEOF | |
10684 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 10686 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 10687 | ac_status=$? |
ab509236 L |
10688 | grep -v '^ *+' conftest.er1 >conftest.err |
10689 | rm -f conftest.er1 | |
10690 | cat conftest.err >&5 | |
13b2be9c DJ |
10691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10692 | (exit $ac_status); } && | |
1ad12f97 NC |
10693 | { ac_try='test -z "$ac_c_werror_flag" |
10694 | || test ! -s conftest.err' | |
ab509236 L |
10695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10696 | (eval $ac_try) 2>&5 | |
10697 | ac_status=$? | |
10698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10699 | (exit $ac_status); }; } && | |
10700 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
10701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10702 | (eval $ac_try) 2>&5 | |
10703 | ac_status=$? | |
10704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10705 | (exit $ac_status); }; }; then | |
e8a38df5 | 10706 | gas_cv_decl_needed_ffs=no |
13b2be9c DJ |
10707 | else |
10708 | echo "$as_me: failed program was:" >&5 | |
10709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10710 | ||
e8a38df5 | 10711 | gas_cv_decl_needed_ffs=yes |
13b2be9c | 10712 | fi |
ab509236 L |
10713 | rm -f conftest.err conftest.$ac_objext \ |
10714 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 10715 | fi |
e8a38df5 AL |
10716 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5 |
10717 | echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6 | |
10718 | if test $gas_cv_decl_needed_ffs = yes; then | |
13b2be9c DJ |
10719 | |
10720 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 10721 | #define NEED_DECLARATION_FFS 1 |
13b2be9c DJ |
10722 | _ACEOF |
10723 | ||
10724 | fi | |
10725 | ||
10726 | ||
10727 | echo "$as_me:$LINENO: checking whether declaration is required for free" >&5 | |
10728 | echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6 | |
10729 | if test "${gas_cv_decl_needed_free+set}" = set; then | |
10730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10731 | else | |
10732 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
10733 | /* confdefs.h. */ |
10734 | _ACEOF | |
10735 | cat confdefs.h >>conftest.$ac_ext | |
10736 | cat >>conftest.$ac_ext <<_ACEOF | |
10737 | /* end confdefs.h. */ | |
10738 | $gas_test_headers | |
10739 | int | |
10740 | main () | |
10741 | { | |
10742 | ||
10743 | typedef void (*f)(); | |
10744 | f x; | |
10745 | x = (f) free; | |
10746 | ||
10747 | ; | |
10748 | return 0; | |
10749 | } | |
10750 | _ACEOF | |
10751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 10753 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 10754 | ac_status=$? |
ab509236 L |
10755 | grep -v '^ *+' conftest.er1 >conftest.err |
10756 | rm -f conftest.er1 | |
10757 | cat conftest.err >&5 | |
13b2be9c DJ |
10758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10759 | (exit $ac_status); } && | |
1ad12f97 NC |
10760 | { ac_try='test -z "$ac_c_werror_flag" |
10761 | || test ! -s conftest.err' | |
ab509236 L |
10762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10763 | (eval $ac_try) 2>&5 | |
10764 | ac_status=$? | |
10765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10766 | (exit $ac_status); }; } && | |
10767 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
10768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10769 | (eval $ac_try) 2>&5 | |
10770 | ac_status=$? | |
10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10772 | (exit $ac_status); }; }; then | |
10773 | gas_cv_decl_needed_free=no | |
10774 | else | |
10775 | echo "$as_me: failed program was:" >&5 | |
10776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10777 | ||
10778 | gas_cv_decl_needed_free=yes | |
10779 | fi | |
ab509236 L |
10780 | rm -f conftest.err conftest.$ac_objext \ |
10781 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
10782 | fi |
10783 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5 | |
10784 | echo "${ECHO_T}$gas_cv_decl_needed_free" >&6 | |
10785 | if test $gas_cv_decl_needed_free = yes; then | |
10786 | ||
10787 | cat >>confdefs.h <<\_ACEOF | |
10788 | #define NEED_DECLARATION_FREE 1 | |
10789 | _ACEOF | |
10790 | ||
10791 | fi | |
10792 | ||
10793 | ||
e8a38df5 AL |
10794 | echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5 |
10795 | echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6 | |
10796 | if test "${gas_cv_decl_needed_malloc+set}" = set; then | |
13b2be9c DJ |
10797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10798 | else | |
10799 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
10800 | /* confdefs.h. */ |
10801 | _ACEOF | |
10802 | cat confdefs.h >>conftest.$ac_ext | |
10803 | cat >>conftest.$ac_ext <<_ACEOF | |
10804 | /* end confdefs.h. */ | |
10805 | $gas_test_headers | |
10806 | int | |
10807 | main () | |
10808 | { | |
10809 | ||
10810 | typedef char *(*f)(); | |
10811 | f x; | |
e8a38df5 | 10812 | x = (f) malloc; |
13b2be9c DJ |
10813 | |
10814 | ; | |
10815 | return 0; | |
10816 | } | |
10817 | _ACEOF | |
10818 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 10820 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 10821 | ac_status=$? |
ab509236 L |
10822 | grep -v '^ *+' conftest.er1 >conftest.err |
10823 | rm -f conftest.er1 | |
10824 | cat conftest.err >&5 | |
13b2be9c DJ |
10825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10826 | (exit $ac_status); } && | |
1ad12f97 NC |
10827 | { ac_try='test -z "$ac_c_werror_flag" |
10828 | || test ! -s conftest.err' | |
ab509236 L |
10829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10830 | (eval $ac_try) 2>&5 | |
10831 | ac_status=$? | |
10832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10833 | (exit $ac_status); }; } && | |
10834 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
10835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10836 | (eval $ac_try) 2>&5 | |
10837 | ac_status=$? | |
10838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10839 | (exit $ac_status); }; }; then | |
e8a38df5 | 10840 | gas_cv_decl_needed_malloc=no |
13b2be9c DJ |
10841 | else |
10842 | echo "$as_me: failed program was:" >&5 | |
10843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10844 | ||
e8a38df5 | 10845 | gas_cv_decl_needed_malloc=yes |
13b2be9c | 10846 | fi |
ab509236 L |
10847 | rm -f conftest.err conftest.$ac_objext \ |
10848 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 10849 | fi |
e8a38df5 AL |
10850 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5 |
10851 | echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6 | |
10852 | if test $gas_cv_decl_needed_malloc = yes; then | |
13b2be9c DJ |
10853 | |
10854 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 10855 | #define NEED_DECLARATION_MALLOC 1 |
13b2be9c DJ |
10856 | _ACEOF |
10857 | ||
10858 | fi | |
10859 | ||
10860 | ||
e8a38df5 AL |
10861 | echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5 |
10862 | echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6 | |
10863 | if test "${gas_cv_decl_needed_sbrk+set}" = set; then | |
13b2be9c DJ |
10864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10865 | else | |
10866 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
10867 | /* confdefs.h. */ |
10868 | _ACEOF | |
10869 | cat confdefs.h >>conftest.$ac_ext | |
10870 | cat >>conftest.$ac_ext <<_ACEOF | |
10871 | /* end confdefs.h. */ | |
10872 | $gas_test_headers | |
10873 | int | |
10874 | main () | |
10875 | { | |
10876 | ||
e8a38df5 | 10877 | typedef char *(*f)(); |
13b2be9c | 10878 | f x; |
e8a38df5 | 10879 | x = (f) sbrk; |
13b2be9c DJ |
10880 | |
10881 | ; | |
10882 | return 0; | |
10883 | } | |
10884 | _ACEOF | |
10885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 10887 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 10888 | ac_status=$? |
ab509236 L |
10889 | grep -v '^ *+' conftest.er1 >conftest.err |
10890 | rm -f conftest.er1 | |
10891 | cat conftest.err >&5 | |
13b2be9c DJ |
10892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10893 | (exit $ac_status); } && | |
1ad12f97 NC |
10894 | { ac_try='test -z "$ac_c_werror_flag" |
10895 | || test ! -s conftest.err' | |
ab509236 L |
10896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10897 | (eval $ac_try) 2>&5 | |
10898 | ac_status=$? | |
10899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10900 | (exit $ac_status); }; } && | |
10901 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
10902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10903 | (eval $ac_try) 2>&5 | |
10904 | ac_status=$? | |
10905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10906 | (exit $ac_status); }; }; then | |
e8a38df5 | 10907 | gas_cv_decl_needed_sbrk=no |
13b2be9c DJ |
10908 | else |
10909 | echo "$as_me: failed program was:" >&5 | |
10910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10911 | ||
e8a38df5 | 10912 | gas_cv_decl_needed_sbrk=yes |
13b2be9c | 10913 | fi |
ab509236 L |
10914 | rm -f conftest.err conftest.$ac_objext \ |
10915 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 10916 | fi |
e8a38df5 AL |
10917 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5 |
10918 | echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6 | |
10919 | if test $gas_cv_decl_needed_sbrk = yes; then | |
13b2be9c DJ |
10920 | |
10921 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 10922 | #define NEED_DECLARATION_SBRK 1 |
13b2be9c DJ |
10923 | _ACEOF |
10924 | ||
10925 | fi | |
10926 | ||
10927 | ||
e8a38df5 AL |
10928 | echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5 |
10929 | echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6 | |
10930 | if test "${gas_cv_decl_needed_strstr+set}" = set; then | |
13b2be9c DJ |
10931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10932 | else | |
10933 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
10934 | /* confdefs.h. */ |
10935 | _ACEOF | |
10936 | cat confdefs.h >>conftest.$ac_ext | |
10937 | cat >>conftest.$ac_ext <<_ACEOF | |
10938 | /* end confdefs.h. */ | |
e8a38df5 | 10939 | $gas_test_headers |
13b2be9c DJ |
10940 | int |
10941 | main () | |
10942 | { | |
10943 | ||
e8a38df5 | 10944 | typedef char *(*f)(); |
13b2be9c | 10945 | f x; |
e8a38df5 | 10946 | x = (f) strstr; |
13b2be9c DJ |
10947 | |
10948 | ; | |
10949 | return 0; | |
10950 | } | |
10951 | _ACEOF | |
10952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 10954 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 10955 | ac_status=$? |
ab509236 L |
10956 | grep -v '^ *+' conftest.er1 >conftest.err |
10957 | rm -f conftest.er1 | |
10958 | cat conftest.err >&5 | |
13b2be9c DJ |
10959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10960 | (exit $ac_status); } && | |
1ad12f97 NC |
10961 | { ac_try='test -z "$ac_c_werror_flag" |
10962 | || test ! -s conftest.err' | |
ab509236 L |
10963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10964 | (eval $ac_try) 2>&5 | |
10965 | ac_status=$? | |
10966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10967 | (exit $ac_status); }; } && | |
10968 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
10969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10970 | (eval $ac_try) 2>&5 | |
10971 | ac_status=$? | |
10972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10973 | (exit $ac_status); }; }; then | |
e8a38df5 | 10974 | gas_cv_decl_needed_strstr=no |
13b2be9c DJ |
10975 | else |
10976 | echo "$as_me: failed program was:" >&5 | |
10977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10978 | ||
e8a38df5 | 10979 | gas_cv_decl_needed_strstr=yes |
13b2be9c | 10980 | fi |
ab509236 L |
10981 | rm -f conftest.err conftest.$ac_objext \ |
10982 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 10983 | fi |
e8a38df5 AL |
10984 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5 |
10985 | echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6 | |
10986 | if test $gas_cv_decl_needed_strstr = yes; then | |
13b2be9c DJ |
10987 | |
10988 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 10989 | #define NEED_DECLARATION_STRSTR 1 |
13b2be9c DJ |
10990 | _ACEOF |
10991 | ||
10992 | fi | |
10993 | ||
10994 | ||
10995 | ||
10996 | ||
10997 | ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" | |
10998 | ||
10999 | ac_config_commands="$ac_config_commands default" | |
11000 | ||
11001 | ||
11002 | cat >confcache <<\_ACEOF | |
11003 | # This file is a shell script that caches the results of configure | |
11004 | # tests run on this system so they can be shared between configure | |
11005 | # scripts and configure runs, see configure's option --config-cache. | |
11006 | # It is not useful on other systems. If it contains results you don't | |
11007 | # want to keep, you may remove or edit it. | |
11008 | # | |
11009 | # config.status only pays attention to the cache file if you give it | |
11010 | # the --recheck option to rerun configure. | |
11011 | # | |
11012 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11013 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11014 | # following values. | |
11015 | ||
11016 | _ACEOF | |
11017 | ||
11018 | # The following way of writing the cache mishandles newlines in values, | |
11019 | # but we know of no workaround that is simple, portable, and efficient. | |
11020 | # So, don't put newlines in cache variables' values. | |
11021 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11022 | # and sets the high bit in the cache file unless we assign to the vars. | |
11023 | { | |
11024 | (set) 2>&1 | | |
11025 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11026 | *ac_space=\ *) | |
11027 | # `set' does not quote correctly, so add quotes (double-quote | |
11028 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11029 | sed -n \ | |
ab509236 L |
11030 | "s/'/'\\\\''/g; |
11031 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13b2be9c DJ |
11032 | ;; |
11033 | *) | |
11034 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11035 | sed -n \ | |
ab509236 | 11036 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
13b2be9c DJ |
11037 | ;; |
11038 | esac; | |
11039 | } | | |
11040 | sed ' | |
11041 | t clear | |
11042 | : clear | |
11043 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11044 | t end | |
11045 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11046 | : end' >>confcache | |
11047 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11048 | if test -w $cache_file; then | |
11049 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
11050 | cat confcache >$cache_file | |
11051 | else | |
11052 | echo "not updating unwritable cache $cache_file" | |
11053 | fi | |
11054 | fi | |
11055 | rm -f confcache | |
11056 | ||
11057 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11058 | # Let make expand exec_prefix. | |
11059 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11060 | ||
11061 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
11062 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
11063 | # trailing colons and then remove the whole line if VPATH becomes empty | |
11064 | # (actually we leave an empty line to preserve line numbers). | |
11065 | if test "x$srcdir" = x.; then | |
ab509236 | 11066 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
13b2be9c DJ |
11067 | s/:*\$(srcdir):*/:/; |
11068 | s/:*\${srcdir}:*/:/; | |
11069 | s/:*@srcdir@:*/:/; | |
ab509236 | 11070 | s/^\([^=]*=[ ]*\):*/\1/; |
13b2be9c | 11071 | s/:*$//; |
ab509236 | 11072 | s/^[^=]*=[ ]*$//; |
13b2be9c DJ |
11073 | }' |
11074 | fi | |
11075 | ||
11076 | DEFS=-DHAVE_CONFIG_H | |
11077 | ||
11078 | ac_libobjs= | |
11079 | ac_ltlibobjs= | |
11080 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11081 | # 1. Remove the extension, and $U if already installed. | |
11082 | ac_i=`echo "$ac_i" | | |
ab509236 | 11083 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
13b2be9c DJ |
11084 | # 2. Add them. |
11085 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
11086 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
11087 | done | |
11088 | LIBOBJS=$ac_libobjs | |
11089 | ||
11090 | LTLIBOBJS=$ac_ltlibobjs | |
11091 | ||
11092 | ||
11093 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
11094 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
11095 | Usually this means the macro was only invoked conditionally." >&5 | |
11096 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
11097 | Usually this means the macro was only invoked conditionally." >&2;} | |
11098 | { (exit 1); exit 1; }; } | |
11099 | fi | |
11100 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
11101 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
11102 | Usually this means the macro was only invoked conditionally." >&5 | |
11103 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
11104 | Usually this means the macro was only invoked conditionally." >&2;} | |
11105 | { (exit 1); exit 1; }; } | |
11106 | fi | |
11107 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
11108 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
11109 | Usually this means the macro was only invoked conditionally." >&5 | |
11110 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
11111 | Usually this means the macro was only invoked conditionally." >&2;} | |
11112 | { (exit 1); exit 1; }; } | |
11113 | fi | |
11114 | ||
11115 | : ${CONFIG_STATUS=./config.status} | |
11116 | ac_clean_files_save=$ac_clean_files | |
11117 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11118 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
11119 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11120 | cat >$CONFIG_STATUS <<_ACEOF | |
11121 | #! $SHELL | |
11122 | # Generated by $as_me. | |
11123 | # Run this file to recreate the current configuration. | |
11124 | # Compiler output produced by configure, useful for debugging | |
11125 | # configure, is in config.log if it exists. | |
11126 | ||
11127 | debug=false | |
11128 | ac_cs_recheck=false | |
11129 | ac_cs_silent=false | |
11130 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11131 | _ACEOF | |
11132 | ||
11133 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11134 | ## --------------------- ## | |
11135 | ## M4sh Initialization. ## | |
11136 | ## --------------------- ## | |
11137 | ||
11138 | # Be Bourne compatible | |
11139 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
11140 | emulate sh | |
11141 | NULLCMD=: | |
11142 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
11143 | # is contrary to our usage. Disable this feature. | |
11144 | alias -g '${1+"$@"}'='"$@"' | |
11145 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
11146 | set -o posix | |
11147 | fi | |
ab509236 | 11148 | DUALCASE=1; export DUALCASE # for MKS sh |
13b2be9c DJ |
11149 | |
11150 | # Support unset when possible. | |
ab509236 | 11151 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
13b2be9c DJ |
11152 | as_unset=unset |
11153 | else | |
11154 | as_unset=false | |
11155 | fi | |
11156 | ||
11157 | ||
11158 | # Work around bugs in pre-3.0 UWIN ksh. | |
11159 | $as_unset ENV MAIL MAILPATH | |
11160 | PS1='$ ' | |
11161 | PS2='> ' | |
11162 | PS4='+ ' | |
11163 | ||
11164 | # NLS nuisances. | |
11165 | for as_var in \ | |
11166 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11167 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11168 | LC_TELEPHONE LC_TIME | |
11169 | do | |
ab509236 | 11170 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
13b2be9c DJ |
11171 | eval $as_var=C; export $as_var |
11172 | else | |
11173 | $as_unset $as_var | |
11174 | fi | |
11175 | done | |
11176 | ||
11177 | # Required to use basename. | |
11178 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11179 | as_expr=expr | |
11180 | else | |
11181 | as_expr=false | |
11182 | fi | |
11183 | ||
11184 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
11185 | as_basename=basename | |
11186 | else | |
11187 | as_basename=false | |
11188 | fi | |
11189 | ||
11190 | ||
11191 | # Name of the executable. | |
11192 | as_me=`$as_basename "$0" || | |
11193 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
11194 | X"$0" : 'X\(//\)$' \| \ | |
11195 | X"$0" : 'X\(/\)$' \| \ | |
11196 | . : '\(.\)' 2>/dev/null || | |
11197 | echo X/"$0" | | |
11198 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
11199 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
11200 | /^X\/\(\/\).*/{ s//\1/; q; } | |
11201 | s/.*/./; q'` | |
11202 | ||
11203 | ||
11204 | # PATH needs CR, and LINENO needs CR and PATH. | |
11205 | # Avoid depending upon Character Ranges. | |
11206 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11207 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11208 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11209 | as_cr_digits='0123456789' | |
11210 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11211 | ||
11212 | # The user is always right. | |
11213 | if test "${PATH_SEPARATOR+set}" != set; then | |
11214 | echo "#! /bin/sh" >conf$$.sh | |
11215 | echo "exit 0" >>conf$$.sh | |
11216 | chmod +x conf$$.sh | |
11217 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11218 | PATH_SEPARATOR=';' | |
11219 | else | |
11220 | PATH_SEPARATOR=: | |
11221 | fi | |
11222 | rm -f conf$$.sh | |
11223 | fi | |
11224 | ||
11225 | ||
11226 | as_lineno_1=$LINENO | |
11227 | as_lineno_2=$LINENO | |
11228 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11229 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11230 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
11231 | # Find who we are. Look in the path if we contain no path at all | |
11232 | # relative or not. | |
11233 | case $0 in | |
11234 | *[\\/]* ) as_myself=$0 ;; | |
11235 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11236 | for as_dir in $PATH | |
11237 | do | |
11238 | IFS=$as_save_IFS | |
11239 | test -z "$as_dir" && as_dir=. | |
11240 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11241 | done | |
252b5132 | 11242 | |
13b2be9c DJ |
11243 | ;; |
11244 | esac | |
11245 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11246 | # in which case we are not to be found in the path. | |
11247 | if test "x$as_myself" = x; then | |
11248 | as_myself=$0 | |
11249 | fi | |
11250 | if test ! -f "$as_myself"; then | |
11251 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
11252 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
11253 | { (exit 1); exit 1; }; } | |
11254 | fi | |
11255 | case $CONFIG_SHELL in | |
11256 | '') | |
11257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11258 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
11259 | do | |
11260 | IFS=$as_save_IFS | |
11261 | test -z "$as_dir" && as_dir=. | |
11262 | for as_base in sh bash ksh sh5; do | |
11263 | case $as_dir in | |
11264 | /*) | |
11265 | if ("$as_dir/$as_base" -c ' | |
11266 | as_lineno_1=$LINENO | |
11267 | as_lineno_2=$LINENO | |
11268 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11269 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11270 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
11271 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
11272 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
11273 | CONFIG_SHELL=$as_dir/$as_base | |
11274 | export CONFIG_SHELL | |
11275 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
11276 | fi;; | |
11277 | esac | |
11278 | done | |
11279 | done | |
11280 | ;; | |
11281 | esac | |
252b5132 | 11282 | |
13b2be9c DJ |
11283 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11284 | # uniformly replaced by the line number. The first 'sed' inserts a | |
11285 | # line-number line before each line; the second 'sed' does the real | |
11286 | # work. The second script uses 'N' to pair each line-number line | |
11287 | # with the numbered line, and appends trailing '-' during | |
11288 | # substitution so that $LINENO is not a special case at line end. | |
11289 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
11290 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
11291 | sed '=' <$as_myself | | |
11292 | sed ' | |
11293 | N | |
11294 | s,$,-, | |
11295 | : loop | |
11296 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
11297 | t loop | |
11298 | s,-$,, | |
11299 | s,^['$as_cr_digits']*\n,, | |
11300 | ' >$as_me.lineno && | |
11301 | chmod +x $as_me.lineno || | |
11302 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
11303 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
11304 | { (exit 1); exit 1; }; } | |
11305 | ||
11306 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11307 | # (the dirname of $[0] is not the place where we might find the | |
11308 | # original and so on. Autoconf is especially sensible to this). | |
11309 | . ./$as_me.lineno | |
11310 | # Exit status is that of the last command. | |
11311 | exit | |
11312 | } | |
d6d788bd | 11313 | |
252b5132 | 11314 | |
13b2be9c DJ |
11315 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
11316 | *c*,-n*) ECHO_N= ECHO_C=' | |
11317 | ' ECHO_T=' ' ;; | |
11318 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
11319 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
11320 | esac | |
252b5132 | 11321 | |
13b2be9c DJ |
11322 | if expr a : '\(a\)' >/dev/null 2>&1; then |
11323 | as_expr=expr | |
252b5132 | 11324 | else |
13b2be9c | 11325 | as_expr=false |
252b5132 | 11326 | fi |
252b5132 | 11327 | |
13b2be9c DJ |
11328 | rm -f conf$$ conf$$.exe conf$$.file |
11329 | echo >conf$$.file | |
11330 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11331 | # We could just check for DJGPP; but this test a) works b) is more generic | |
11332 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
11333 | if test -f conf$$.exe; then | |
11334 | # Don't use ln at all; we don't have any links | |
11335 | as_ln_s='cp -p' | |
11336 | else | |
11337 | as_ln_s='ln -s' | |
11338 | fi | |
11339 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
11340 | as_ln_s=ln | |
11341 | else | |
11342 | as_ln_s='cp -p' | |
252b5132 | 11343 | fi |
13b2be9c | 11344 | rm -f conf$$ conf$$.exe conf$$.file |
252b5132 | 11345 | |
13b2be9c DJ |
11346 | if mkdir -p . 2>/dev/null; then |
11347 | as_mkdir_p=: | |
252b5132 | 11348 | else |
ab509236 | 11349 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
11350 | as_mkdir_p=false |
11351 | fi | |
252b5132 | 11352 | |
13b2be9c | 11353 | as_executable_p="test -f" |
252b5132 | 11354 | |
13b2be9c | 11355 | # Sed expression to map a string onto a valid CPP name. |
ab509236 | 11356 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 11357 | |
13b2be9c | 11358 | # Sed expression to map a string onto a valid variable name. |
ab509236 | 11359 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 11360 | |
d6d788bd | 11361 | |
13b2be9c DJ |
11362 | # IFS |
11363 | # We need space, tab and new line, in precisely that order. | |
11364 | as_nl=' | |
11365 | ' | |
11366 | IFS=" $as_nl" | |
252b5132 | 11367 | |
13b2be9c DJ |
11368 | # CDPATH. |
11369 | $as_unset CDPATH | |
252b5132 | 11370 | |
13b2be9c | 11371 | exec 6>&1 |
252b5132 | 11372 | |
13b2be9c DJ |
11373 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
11374 | # report actual input values of CONFIG_FILES etc. instead of their | |
11375 | # values after options handling. Logging --version etc. is OK. | |
11376 | exec 5>>config.log | |
11377 | { | |
11378 | echo | |
11379 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11380 | ## Running $as_me. ## | |
11381 | _ASBOX | |
11382 | } >&5 | |
11383 | cat >&5 <<_CSEOF | |
252b5132 | 11384 | |
13b2be9c | 11385 | This file was extended by $as_me, which was |
ab509236 | 11386 | generated by GNU Autoconf 2.59. Invocation command line was |
d6d788bd | 11387 | |
13b2be9c DJ |
11388 | CONFIG_FILES = $CONFIG_FILES |
11389 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11390 | CONFIG_LINKS = $CONFIG_LINKS | |
11391 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11392 | $ $0 $@ | |
252b5132 | 11393 | |
13b2be9c DJ |
11394 | _CSEOF |
11395 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
11396 | echo >&5 | |
11397 | _ACEOF | |
252b5132 | 11398 | |
13b2be9c DJ |
11399 | # Files that config.status was made for. |
11400 | if test -n "$ac_config_files"; then | |
11401 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
252b5132 | 11402 | fi |
13b2be9c DJ |
11403 | |
11404 | if test -n "$ac_config_headers"; then | |
11405 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
252b5132 | 11406 | fi |
252b5132 | 11407 | |
13b2be9c DJ |
11408 | if test -n "$ac_config_links"; then |
11409 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
252b5132 RH |
11410 | fi |
11411 | ||
13b2be9c DJ |
11412 | if test -n "$ac_config_commands"; then |
11413 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
11414 | fi | |
d6d788bd | 11415 | |
13b2be9c | 11416 | cat >>$CONFIG_STATUS <<\_ACEOF |
252b5132 | 11417 | |
13b2be9c DJ |
11418 | ac_cs_usage="\ |
11419 | \`$as_me' instantiates files from templates according to the | |
11420 | current configuration. | |
252b5132 | 11421 | |
13b2be9c | 11422 | Usage: $0 [OPTIONS] [FILE]... |
252b5132 | 11423 | |
13b2be9c DJ |
11424 | -h, --help print this help, then exit |
11425 | -V, --version print version number, then exit | |
11426 | -q, --quiet do not print progress messages | |
11427 | -d, --debug don't remove temporary files | |
11428 | --recheck update $as_me by reconfiguring in the same conditions | |
11429 | --file=FILE[:TEMPLATE] | |
ab509236 | 11430 | instantiate the configuration file FILE |
13b2be9c | 11431 | --header=FILE[:TEMPLATE] |
ab509236 | 11432 | instantiate the configuration header FILE |
252b5132 | 11433 | |
13b2be9c DJ |
11434 | Configuration files: |
11435 | $config_files | |
252b5132 | 11436 | |
13b2be9c DJ |
11437 | Configuration headers: |
11438 | $config_headers | |
252b5132 | 11439 | |
13b2be9c DJ |
11440 | Configuration commands: |
11441 | $config_commands | |
252b5132 | 11442 | |
13b2be9c DJ |
11443 | Report bugs to <bug-autoconf@gnu.org>." |
11444 | _ACEOF | |
d6d788bd | 11445 | |
13b2be9c DJ |
11446 | cat >>$CONFIG_STATUS <<_ACEOF |
11447 | ac_cs_version="\\ | |
11448 | config.status | |
ab509236 | 11449 | configured by $0, generated by GNU Autoconf 2.59, |
13b2be9c | 11450 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
d6d788bd | 11451 | |
ab509236 | 11452 | Copyright (C) 2003 Free Software Foundation, Inc. |
13b2be9c DJ |
11453 | This config.status script is free software; the Free Software Foundation |
11454 | gives unlimited permission to copy, distribute and modify it." | |
11455 | srcdir=$srcdir | |
11456 | INSTALL="$INSTALL" | |
11457 | _ACEOF | |
d6d788bd | 11458 | |
13b2be9c DJ |
11459 | cat >>$CONFIG_STATUS <<\_ACEOF |
11460 | # If no file are specified by the user, then we need to provide default | |
11461 | # value. By we need to know if files were specified by the user. | |
11462 | ac_need_defaults=: | |
11463 | while test $# != 0 | |
11464 | do | |
11465 | case $1 in | |
11466 | --*=*) | |
11467 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
11468 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
11469 | ac_shift=: | |
c8615825 | 11470 | ;; |
13b2be9c DJ |
11471 | -*) |
11472 | ac_option=$1 | |
11473 | ac_optarg=$2 | |
11474 | ac_shift=shift | |
c8615825 | 11475 | ;; |
13b2be9c DJ |
11476 | *) # This is not an option, so the user has probably given explicit |
11477 | # arguments. | |
11478 | ac_option=$1 | |
11479 | ac_need_defaults=false;; | |
11480 | esac | |
252b5132 | 11481 | |
13b2be9c DJ |
11482 | case $ac_option in |
11483 | # Handling of the options. | |
11484 | _ACEOF | |
11485 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11486 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11487 | ac_cs_recheck=: ;; | |
11488 | --version | --vers* | -V ) | |
11489 | echo "$ac_cs_version"; exit 0 ;; | |
11490 | --he | --h) | |
11491 | # Conflict between --help and --header | |
11492 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
11493 | Try \`$0 --help' for more information." >&5 | |
11494 | echo "$as_me: error: ambiguous option: $1 | |
11495 | Try \`$0 --help' for more information." >&2;} | |
11496 | { (exit 1); exit 1; }; };; | |
11497 | --help | --hel | -h ) | |
11498 | echo "$ac_cs_usage"; exit 0 ;; | |
11499 | --debug | --d* | -d ) | |
11500 | debug=: ;; | |
11501 | --file | --fil | --fi | --f ) | |
11502 | $ac_shift | |
11503 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11504 | ac_need_defaults=false;; | |
11505 | --header | --heade | --head | --hea ) | |
11506 | $ac_shift | |
11507 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11508 | ac_need_defaults=false;; | |
11509 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
11510 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11511 | ac_cs_silent=: ;; | |
c8615825 | 11512 | |
13b2be9c DJ |
11513 | # This is an error. |
11514 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
11515 | Try \`$0 --help' for more information." >&5 | |
11516 | echo "$as_me: error: unrecognized option: $1 | |
11517 | Try \`$0 --help' for more information." >&2;} | |
11518 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 11519 | |
13b2be9c | 11520 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 11521 | |
13b2be9c DJ |
11522 | esac |
11523 | shift | |
11524 | done | |
252b5132 | 11525 | |
13b2be9c | 11526 | ac_configure_extra_args= |
d6d788bd | 11527 | |
13b2be9c DJ |
11528 | if $ac_cs_silent; then |
11529 | exec 6>/dev/null | |
11530 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11531 | fi | |
9b2b7d69 | 11532 | |
13b2be9c DJ |
11533 | _ACEOF |
11534 | cat >>$CONFIG_STATUS <<_ACEOF | |
11535 | if \$ac_cs_recheck; then | |
11536 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
11537 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
11538 | fi | |
11539 | ||
11540 | _ACEOF | |
11541 | ||
11542 | cat >>$CONFIG_STATUS <<_ACEOF | |
9b2b7d69 | 11543 | # |
13b2be9c | 11544 | # INIT-COMMANDS section. |
9b2b7d69 MM |
11545 | # |
11546 | ||
13b2be9c DJ |
11547 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
11548 | target_cpu_type=${target_cpu_type} | |
11549 | cgen_cpu_prefix=${cgen_cpu_prefix} | |
11550 | obj_format=${obj_format} | |
11551 | te_file=${te_file} | |
11552 | ||
11553 | _ACEOF | |
11554 | ||
11555 | ||
11556 | ||
11557 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11558 | for ac_config_target in $ac_config_targets | |
9b2b7d69 | 11559 | do |
13b2be9c DJ |
11560 | case "$ac_config_target" in |
11561 | # Handling of arguments. | |
11562 | "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;; | |
11563 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
11564 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11565 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
11566 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
11567 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
11568 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
11569 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
11570 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
11571 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
11572 | { (exit 1); exit 1; }; };; | |
9b2b7d69 MM |
11573 | esac |
11574 | done | |
11575 | ||
13b2be9c DJ |
11576 | # If the user did not use the arguments to specify the items to instantiate, |
11577 | # then the envvar interface is used. Set only those that are not. | |
11578 | # We use the long form for the default assignment because of an extremely | |
11579 | # bizarre bug on SunOS 4.1.3. | |
11580 | if $ac_need_defaults; then | |
11581 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
11582 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
11583 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
11584 | fi | |
11585 | ||
11586 | # Have a temporary directory for convenience. Make it in the build tree | |
11587 | # simply because there is no reason to put it here, and in addition, | |
11588 | # creating and moving files from /tmp can sometimes cause problems. | |
11589 | # Create a temporary directory, and hook for its removal unless debugging. | |
11590 | $debug || | |
11591 | { | |
11592 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
11593 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
11594 | } | |
9b2b7d69 | 11595 | |
13b2be9c | 11596 | # Create a (secure) tmp directory for tmp files. |
9b2b7d69 | 11597 | |
13b2be9c DJ |
11598 | { |
11599 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
11600 | test -n "$tmp" && test -d "$tmp" | |
11601 | } || | |
11602 | { | |
11603 | tmp=./confstat$$-$RANDOM | |
11604 | (umask 077 && mkdir $tmp) | |
11605 | } || | |
11606 | { | |
11607 | echo "$me: cannot create a temporary directory in ." >&2 | |
11608 | { (exit 1); exit 1; } | |
11609 | } | |
9b2b7d69 | 11610 | |
13b2be9c DJ |
11611 | _ACEOF |
11612 | ||
11613 | cat >>$CONFIG_STATUS <<_ACEOF | |
11614 | ||
11615 | # | |
11616 | # CONFIG_FILES section. | |
11617 | # | |
11618 | ||
11619 | # No need to generate the scripts if there are no CONFIG_FILES. | |
11620 | # This happens for instance when ./config.status config.h | |
11621 | if test -n "\$CONFIG_FILES"; then | |
11622 | # Protect against being on the right side of a sed subst in config.status. | |
11623 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
11624 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
11625 | s,@SHELL@,$SHELL,;t t | |
11626 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
11627 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
11628 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
11629 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
11630 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
11631 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
11632 | s,@exec_prefix@,$exec_prefix,;t t | |
11633 | s,@prefix@,$prefix,;t t | |
11634 | s,@program_transform_name@,$program_transform_name,;t t | |
11635 | s,@bindir@,$bindir,;t t | |
11636 | s,@sbindir@,$sbindir,;t t | |
11637 | s,@libexecdir@,$libexecdir,;t t | |
11638 | s,@datadir@,$datadir,;t t | |
11639 | s,@sysconfdir@,$sysconfdir,;t t | |
11640 | s,@sharedstatedir@,$sharedstatedir,;t t | |
11641 | s,@localstatedir@,$localstatedir,;t t | |
11642 | s,@libdir@,$libdir,;t t | |
11643 | s,@includedir@,$includedir,;t t | |
11644 | s,@oldincludedir@,$oldincludedir,;t t | |
11645 | s,@infodir@,$infodir,;t t | |
11646 | s,@mandir@,$mandir,;t t | |
11647 | s,@build_alias@,$build_alias,;t t | |
11648 | s,@host_alias@,$host_alias,;t t | |
11649 | s,@target_alias@,$target_alias,;t t | |
11650 | s,@DEFS@,$DEFS,;t t | |
11651 | s,@ECHO_C@,$ECHO_C,;t t | |
11652 | s,@ECHO_N@,$ECHO_N,;t t | |
11653 | s,@ECHO_T@,$ECHO_T,;t t | |
11654 | s,@LIBS@,$LIBS,;t t | |
11655 | s,@build@,$build,;t t | |
11656 | s,@build_cpu@,$build_cpu,;t t | |
11657 | s,@build_vendor@,$build_vendor,;t t | |
11658 | s,@build_os@,$build_os,;t t | |
11659 | s,@host@,$host,;t t | |
11660 | s,@host_cpu@,$host_cpu,;t t | |
11661 | s,@host_vendor@,$host_vendor,;t t | |
11662 | s,@host_os@,$host_os,;t t | |
11663 | s,@target@,$target,;t t | |
11664 | s,@target_cpu@,$target_cpu,;t t | |
11665 | s,@target_vendor@,$target_vendor,;t t | |
11666 | s,@target_os@,$target_os,;t t | |
11667 | s,@CC@,$CC,;t t | |
11668 | s,@CFLAGS@,$CFLAGS,;t t | |
11669 | s,@LDFLAGS@,$LDFLAGS,;t t | |
11670 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
11671 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
11672 | s,@EXEEXT@,$EXEEXT,;t t | |
11673 | s,@OBJEXT@,$OBJEXT,;t t | |
11674 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
11675 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
11676 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
11677 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
11678 | s,@PACKAGE@,$PACKAGE,;t t | |
11679 | s,@VERSION@,$VERSION,;t t | |
11680 | s,@ACLOCAL@,$ACLOCAL,;t t | |
11681 | s,@AUTOCONF@,$AUTOCONF,;t t | |
11682 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
11683 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
11684 | s,@MAKEINFO@,$MAKEINFO,;t t | |
13b2be9c DJ |
11685 | s,@install_sh@,$install_sh,;t t |
11686 | s,@STRIP@,$STRIP,;t t | |
11687 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
11688 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
ab509236 | 11689 | s,@mkdir_p@,$mkdir_p,;t t |
13b2be9c DJ |
11690 | s,@AWK@,$AWK,;t t |
11691 | s,@SET_MAKE@,$SET_MAKE,;t t | |
11692 | s,@am__leading_dot@,$am__leading_dot,;t t | |
8ea2b00f AM |
11693 | s,@AMTAR@,$AMTAR,;t t |
11694 | s,@am__tar@,$am__tar,;t t | |
11695 | s,@am__untar@,$am__untar,;t t | |
13b2be9c DJ |
11696 | s,@DEPDIR@,$DEPDIR,;t t |
11697 | s,@am__include@,$am__include,;t t | |
11698 | s,@am__quote@,$am__quote,;t t | |
11699 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
11700 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
11701 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
11702 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
11703 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
11704 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
11705 | s,@LN_S@,$LN_S,;t t | |
11706 | s,@RANLIB@,$RANLIB,;t t | |
11707 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
11708 | s,@LIBTOOL@,$LIBTOOL,;t t | |
11709 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
9e9b66a9 | 11710 | s,@NO_WERROR@,$NO_WERROR,;t t |
13b2be9c DJ |
11711 | s,@GDBINIT@,$GDBINIT,;t t |
11712 | s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t | |
11713 | s,@extra_objects@,$extra_objects,;t t | |
11714 | s,@target_cpu_type@,$target_cpu_type,;t t | |
11715 | s,@obj_format@,$obj_format,;t t | |
11716 | s,@te_file@,$te_file,;t t | |
11717 | s,@install_tooldir@,$install_tooldir,;t t | |
11718 | s,@atof@,$atof,;t t | |
11719 | s,@BFDLIB@,$BFDLIB,;t t | |
11720 | s,@OPCODES_LIB@,$OPCODES_LIB,;t t | |
11721 | s,@BFDVER_H@,$BFDVER_H,;t t | |
11722 | s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t | |
11723 | s,@YACC@,$YACC,;t t | |
11724 | s,@LEX@,$LEX,;t t | |
11725 | s,@LEXLIB@,$LEXLIB,;t t | |
11726 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
11727 | s,@CPP@,$CPP,;t t | |
11728 | s,@EGREP@,$EGREP,;t t | |
11729 | s,@ALLOCA@,$ALLOCA,;t t | |
11730 | s,@USE_NLS@,$USE_NLS,;t t | |
11731 | s,@MSGFMT@,$MSGFMT,;t t | |
11732 | s,@GMSGFMT@,$GMSGFMT,;t t | |
11733 | s,@XGETTEXT@,$XGETTEXT,;t t | |
11734 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
11735 | s,@CATALOGS@,$CATALOGS,;t t | |
11736 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
11737 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
11738 | s,@GMOFILES@,$GMOFILES,;t t | |
11739 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
11740 | s,@INTLDEPS@,$INTLDEPS,;t t | |
11741 | s,@INTLLIBS@,$INTLLIBS,;t t | |
11742 | s,@INTLOBJS@,$INTLOBJS,;t t | |
11743 | s,@POFILES@,$POFILES,;t t | |
11744 | s,@POSUB@,$POSUB,;t t | |
11745 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
11746 | s,@GT_NO@,$GT_NO,;t t | |
11747 | s,@GT_YES@,$GT_YES,;t t | |
11748 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
11749 | s,@l@,$l,;t t | |
11750 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
11751 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
11752 | s,@MAINT@,$MAINT,;t t | |
11753 | s,@LIBM@,$LIBM,;t t | |
11754 | s,@LIBOBJS@,$LIBOBJS,;t t | |
11755 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
9b2b7d69 MM |
11756 | CEOF |
11757 | ||
13b2be9c DJ |
11758 | _ACEOF |
11759 | ||
11760 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11761 | # Split the substitutions into bite-sized pieces for seds with | |
11762 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
11763 | ac_max_sed_lines=48 | |
11764 | ac_sed_frag=1 # Number of current file. | |
11765 | ac_beg=1 # First line for current file. | |
11766 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
11767 | ac_more_lines=: | |
11768 | ac_sed_cmds= | |
11769 | while $ac_more_lines; do | |
11770 | if test $ac_beg -gt 1; then | |
11771 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11772 | else | |
11773 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11774 | fi | |
11775 | if test ! -s $tmp/subs.frag; then | |
11776 | ac_more_lines=false | |
9b2b7d69 | 11777 | else |
13b2be9c DJ |
11778 | # The purpose of the label and of the branching condition is to |
11779 | # speed up the sed processing (if there are no `@' at all, there | |
11780 | # is no need to browse any of the substitutions). | |
11781 | # These are the two extra sed commands mentioned above. | |
11782 | (echo ':t | |
11783 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
11784 | if test -z "$ac_sed_cmds"; then | |
ab509236 | 11785 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
13b2be9c | 11786 | else |
ab509236 | 11787 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
13b2be9c DJ |
11788 | fi |
11789 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
11790 | ac_beg=$ac_end | |
11791 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
9b2b7d69 | 11792 | fi |
13b2be9c DJ |
11793 | done |
11794 | if test -z "$ac_sed_cmds"; then | |
11795 | ac_sed_cmds=cat | |
252b5132 | 11796 | fi |
13b2be9c | 11797 | fi # test -n "$CONFIG_FILES" |
252b5132 | 11798 | |
13b2be9c DJ |
11799 | _ACEOF |
11800 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11801 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
c8615825 | 11802 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
13b2be9c DJ |
11803 | case $ac_file in |
11804 | - | *:- | *:-:* ) # input from stdin | |
ab509236 L |
11805 | cat >$tmp/stdin |
11806 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11807 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13b2be9c | 11808 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ab509236 | 11809 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
13b2be9c | 11810 | * ) ac_file_in=$ac_file.in ;; |
252b5132 | 11811 | esac |
9b2b7d69 | 11812 | |
13b2be9c DJ |
11813 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
11814 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
11815 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
11816 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11817 | X"$ac_file" : 'X\(//\)$' \| \ | |
11818 | X"$ac_file" : 'X\(/\)' \| \ | |
11819 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
11820 | echo X"$ac_file" | |
11821 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11822 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11823 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11824 | /^X\(\/\).*/{ s//\1/; q; } | |
11825 | s/.*/./; q'` | |
11826 | { if $as_mkdir_p; then | |
11827 | mkdir -p "$ac_dir" | |
c8615825 | 11828 | else |
13b2be9c DJ |
11829 | as_dir="$ac_dir" |
11830 | as_dirs= | |
11831 | while test ! -d "$as_dir"; do | |
11832 | as_dirs="$as_dir $as_dirs" | |
11833 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11834 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
11835 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
11836 | X"$as_dir" : 'X\(//\)$' \| \ | |
11837 | X"$as_dir" : 'X\(/\)' \| \ | |
11838 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
11839 | echo X"$as_dir" | |
11840 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11841 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11842 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11843 | /^X\(\/\).*/{ s//\1/; q; } | |
11844 | s/.*/./; q'` | |
11845 | done | |
11846 | test ! -n "$as_dirs" || mkdir $as_dirs | |
11847 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
11848 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
11849 | { (exit 1); exit 1; }; }; } | |
11850 | ||
11851 | ac_builddir=. | |
11852 | ||
11853 | if test "$ac_dir" != .; then | |
11854 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
11855 | # A "../" for each directory in $ac_dir_suffix. | |
11856 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
11857 | else | |
11858 | ac_dir_suffix= ac_top_builddir= | |
11859 | fi | |
9b2b7d69 | 11860 | |
13b2be9c DJ |
11861 | case $srcdir in |
11862 | .) # No --srcdir option. We are building in place. | |
11863 | ac_srcdir=. | |
11864 | if test -z "$ac_top_builddir"; then | |
11865 | ac_top_srcdir=. | |
11866 | else | |
11867 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
11868 | fi ;; | |
11869 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
11870 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11871 | ac_top_srcdir=$srcdir ;; | |
9b2b7d69 | 11872 | *) # Relative path. |
13b2be9c DJ |
11873 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
11874 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
11875 | esac | |
ab509236 L |
11876 | |
11877 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
11878 | # the directories may not exist. | |
11879 | case `pwd` in | |
11880 | .) ac_abs_builddir="$ac_dir";; | |
11881 | *) | |
11882 | case "$ac_dir" in | |
11883 | .) ac_abs_builddir=`pwd`;; | |
11884 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
11885 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
11886 | esac;; | |
11887 | esac | |
11888 | case $ac_abs_builddir in | |
11889 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11890 | *) | |
11891 | case ${ac_top_builddir}. in | |
11892 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
11893 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11894 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
11895 | esac;; | |
11896 | esac | |
11897 | case $ac_abs_builddir in | |
11898 | .) ac_abs_srcdir=$ac_srcdir;; | |
11899 | *) | |
11900 | case $ac_srcdir in | |
11901 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
11902 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
11903 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
11904 | esac;; | |
11905 | esac | |
11906 | case $ac_abs_builddir in | |
11907 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11908 | *) | |
11909 | case $ac_top_srcdir in | |
11910 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
11911 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11912 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
11913 | esac;; | |
11914 | esac | |
252b5132 | 11915 | |
9b2b7d69 | 11916 | |
13b2be9c DJ |
11917 | case $INSTALL in |
11918 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
11919 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c8615825 | 11920 | esac |
9b2b7d69 | 11921 | |
1ad12f97 NC |
11922 | if test x"$ac_file" != x-; then |
11923 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
11924 | echo "$as_me: creating $ac_file" >&6;} | |
11925 | rm -f "$ac_file" | |
11926 | fi | |
13b2be9c DJ |
11927 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
11928 | # use $as_me), people would be surprised to read: | |
11929 | # /* config.h. Generated by config.status. */ | |
11930 | if test x"$ac_file" = x-; then | |
11931 | configure_input= | |
11932 | else | |
11933 | configure_input="$ac_file. " | |
11934 | fi | |
11935 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ab509236 | 11936 | sed 's,.*/,,'` by configure." |
13b2be9c DJ |
11937 | |
11938 | # First look for the input files in the build tree, otherwise in the | |
11939 | # src tree. | |
11940 | ac_file_inputs=`IFS=: | |
11941 | for f in $ac_file_in; do | |
11942 | case $f in | |
11943 | -) echo $tmp/stdin ;; | |
11944 | [\\/$]*) | |
ab509236 L |
11945 | # Absolute (can't be DOS-style, as IFS=:) |
11946 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13b2be9c DJ |
11947 | echo "$as_me: error: cannot find input file: $f" >&2;} |
11948 | { (exit 1); exit 1; }; } | |
ab509236 | 11949 | echo "$f";; |
13b2be9c | 11950 | *) # Relative |
ab509236 L |
11951 | if test -f "$f"; then |
11952 | # Build tree | |
11953 | echo "$f" | |
11954 | elif test -f "$srcdir/$f"; then | |
11955 | # Source tree | |
11956 | echo "$srcdir/$f" | |
11957 | else | |
11958 | # /dev/null tree | |
11959 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13b2be9c DJ |
11960 | echo "$as_me: error: cannot find input file: $f" >&2;} |
11961 | { (exit 1); exit 1; }; } | |
ab509236 | 11962 | fi;; |
13b2be9c DJ |
11963 | esac |
11964 | done` || { (exit 1); exit 1; } | |
11965 | _ACEOF | |
11966 | cat >>$CONFIG_STATUS <<_ACEOF | |
11967 | sed "$ac_vpsub | |
11968 | $extrasub | |
11969 | _ACEOF | |
11970 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11971 | :t | |
11972 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
11973 | s,@configure_input@,$configure_input,;t t | |
11974 | s,@srcdir@,$ac_srcdir,;t t | |
11975 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
11976 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
11977 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
11978 | s,@builddir@,$ac_builddir,;t t | |
11979 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
11980 | s,@top_builddir@,$ac_top_builddir,;t t | |
11981 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
11982 | s,@INSTALL@,$ac_INSTALL,;t t | |
11983 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
11984 | rm -f $tmp/stdin | |
11985 | if test x"$ac_file" != x-; then | |
11986 | mv $tmp/out $ac_file | |
11987 | else | |
11988 | cat $tmp/out | |
11989 | rm -f $tmp/out | |
11990 | fi | |
11991 | ||
11992 | done | |
11993 | _ACEOF | |
11994 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11995 | ||
11996 | # | |
11997 | # CONFIG_HEADER section. | |
11998 | # | |
252b5132 RH |
11999 | |
12000 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
12001 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
12002 | # | |
12003 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ab509236 L |
12004 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
12005 | ac_dB='[ ].*$,\1#\2' | |
13b2be9c DJ |
12006 | ac_dC=' ' |
12007 | ac_dD=',;t' | |
12008 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ab509236 | 12009 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
13b2be9c | 12010 | ac_uB='$,\1#\2define\3' |
252b5132 | 12011 | ac_uC=' ' |
13b2be9c DJ |
12012 | ac_uD=',;t' |
12013 | ||
12014 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 12015 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
13b2be9c DJ |
12016 | case $ac_file in |
12017 | - | *:- | *:-:* ) # input from stdin | |
ab509236 L |
12018 | cat >$tmp/stdin |
12019 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12020 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13b2be9c | 12021 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ab509236 | 12022 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
13b2be9c | 12023 | * ) ac_file_in=$ac_file.in ;; |
252b5132 RH |
12024 | esac |
12025 | ||
13b2be9c DJ |
12026 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
12027 | echo "$as_me: creating $ac_file" >&6;} | |
12028 | ||
12029 | # First look for the input files in the build tree, otherwise in the | |
12030 | # src tree. | |
12031 | ac_file_inputs=`IFS=: | |
12032 | for f in $ac_file_in; do | |
12033 | case $f in | |
12034 | -) echo $tmp/stdin ;; | |
12035 | [\\/$]*) | |
ab509236 L |
12036 | # Absolute (can't be DOS-style, as IFS=:) |
12037 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13b2be9c DJ |
12038 | echo "$as_me: error: cannot find input file: $f" >&2;} |
12039 | { (exit 1); exit 1; }; } | |
ab509236 L |
12040 | # Do quote $f, to prevent DOS paths from being IFS'd. |
12041 | echo "$f";; | |
13b2be9c | 12042 | *) # Relative |
ab509236 L |
12043 | if test -f "$f"; then |
12044 | # Build tree | |
12045 | echo "$f" | |
12046 | elif test -f "$srcdir/$f"; then | |
12047 | # Source tree | |
12048 | echo "$srcdir/$f" | |
12049 | else | |
12050 | # /dev/null tree | |
12051 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13b2be9c DJ |
12052 | echo "$as_me: error: cannot find input file: $f" >&2;} |
12053 | { (exit 1); exit 1; }; } | |
ab509236 | 12054 | fi;; |
13b2be9c DJ |
12055 | esac |
12056 | done` || { (exit 1); exit 1; } | |
12057 | # Remove the trailing spaces. | |
ab509236 | 12058 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
13b2be9c DJ |
12059 | |
12060 | _ACEOF | |
12061 | ||
12062 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
12063 | # `conftest.undefs', that substitutes the proper values into | |
12064 | # config.h.in to produce config.h. The first handles `#define' | |
12065 | # templates, and the second `#undef' templates. | |
12066 | # And first: Protect against being on the right side of a sed subst in | |
12067 | # config.status. Protect against being in an unquoted here document | |
12068 | # in config.status. | |
12069 | rm -f conftest.defines conftest.undefs | |
12070 | # Using a here document instead of a string reduces the quoting nightmare. | |
12071 | # Putting comments in sed scripts is not portable. | |
12072 | # | |
12073 | # `end' is used to avoid that the second main sed command (meant for | |
12074 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
12075 | # See the Autoconf documentation for `clear'. | |
12076 | cat >confdef2sed.sed <<\_ACEOF | |
12077 | s/[\\&,]/\\&/g | |
12078 | s,[\\$`],\\&,g | |
12079 | t clear | |
12080 | : clear | |
ab509236 | 12081 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
13b2be9c | 12082 | t end |
ab509236 | 12083 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
13b2be9c DJ |
12084 | : end |
12085 | _ACEOF | |
12086 | # If some macros were called several times there might be several times | |
12087 | # the same #defines, which is useless. Nevertheless, we may not want to | |
12088 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
12089 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
12090 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
12091 | rm -f confdef2sed.sed | |
252b5132 RH |
12092 | |
12093 | # This sed command replaces #undef with comments. This is necessary, for | |
12094 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12095 | # on some systems where configure will not decide to define it. | |
13b2be9c | 12096 | cat >>conftest.undefs <<\_ACEOF |
ab509236 | 12097 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
13b2be9c DJ |
12098 | _ACEOF |
12099 | ||
12100 | # Break up conftest.defines because some shells have a limit on the size | |
12101 | # of here documents, and old seds have small limits too (100 cmds). | |
12102 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ab509236 | 12103 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
13b2be9c DJ |
12104 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
12105 | echo ' :' >>$CONFIG_STATUS | |
12106 | rm -f conftest.tail | |
12107 | while grep . conftest.defines >/dev/null | |
12108 | do | |
12109 | # Write a limited-size here document to $tmp/defines.sed. | |
12110 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
12111 | # Speed up: don't consider the non `#define' lines. | |
ab509236 | 12112 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
13b2be9c DJ |
12113 | # Work around the forget-to-reset-the-flag bug. |
12114 | echo 't clr' >>$CONFIG_STATUS | |
12115 | echo ': clr' >>$CONFIG_STATUS | |
12116 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
12117 | echo 'CEOF | |
12118 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
12119 | rm -f $tmp/in | |
12120 | mv $tmp/out $tmp/in | |
12121 | ' >>$CONFIG_STATUS | |
12122 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
12123 | rm -f conftest.defines | |
12124 | mv conftest.tail conftest.defines | |
12125 | done | |
12126 | rm -f conftest.defines | |
12127 | echo ' fi # grep' >>$CONFIG_STATUS | |
12128 | echo >>$CONFIG_STATUS | |
252b5132 | 12129 | |
13b2be9c DJ |
12130 | # Break up conftest.undefs because some shells have a limit on the size |
12131 | # of here documents, and old seds have small limits too (100 cmds). | |
12132 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 12133 | rm -f conftest.tail |
13b2be9c | 12134 | while grep . conftest.undefs >/dev/null |
252b5132 | 12135 | do |
13b2be9c DJ |
12136 | # Write a limited-size here document to $tmp/undefs.sed. |
12137 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
12138 | # Speed up: don't consider the non `#undef' | |
ab509236 | 12139 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
13b2be9c DJ |
12140 | # Work around the forget-to-reset-the-flag bug. |
12141 | echo 't clr' >>$CONFIG_STATUS | |
12142 | echo ': clr' >>$CONFIG_STATUS | |
12143 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 12144 | echo 'CEOF |
13b2be9c DJ |
12145 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
12146 | rm -f $tmp/in | |
12147 | mv $tmp/out $tmp/in | |
12148 | ' >>$CONFIG_STATUS | |
12149 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
12150 | rm -f conftest.undefs | |
12151 | mv conftest.tail conftest.undefs | |
252b5132 | 12152 | done |
13b2be9c DJ |
12153 | rm -f conftest.undefs |
12154 | ||
12155 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12156 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12157 | # use $as_me), people would be surprised to read: | |
12158 | # /* config.h. Generated by config.status. */ | |
12159 | if test x"$ac_file" = x-; then | |
12160 | echo "/* Generated by configure. */" >$tmp/config.h | |
252b5132 | 12161 | else |
13b2be9c DJ |
12162 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
12163 | fi | |
12164 | cat $tmp/in >>$tmp/config.h | |
12165 | rm -f $tmp/in | |
12166 | if test x"$ac_file" != x-; then | |
12167 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
12168 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
12169 | echo "$as_me: $ac_file is unchanged" >&6;} | |
12170 | else | |
12171 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
12172 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
12173 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12174 | X"$ac_file" : 'X\(//\)$' \| \ | |
12175 | X"$ac_file" : 'X\(/\)' \| \ | |
12176 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
12177 | echo X"$ac_file" | |
12178 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12179 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12180 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12181 | /^X\(\/\).*/{ s//\1/; q; } | |
12182 | s/.*/./; q'` | |
12183 | { if $as_mkdir_p; then | |
12184 | mkdir -p "$ac_dir" | |
12185 | else | |
12186 | as_dir="$ac_dir" | |
12187 | as_dirs= | |
12188 | while test ! -d "$as_dir"; do | |
12189 | as_dirs="$as_dir $as_dirs" | |
12190 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12191 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
12192 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
12193 | X"$as_dir" : 'X\(//\)$' \| \ | |
12194 | X"$as_dir" : 'X\(/\)' \| \ | |
12195 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
12196 | echo X"$as_dir" | |
12197 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12198 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12199 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12200 | /^X\(\/\).*/{ s//\1/; q; } | |
12201 | s/.*/./; q'` | |
12202 | done | |
12203 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12204 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12205 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12206 | { (exit 1); exit 1; }; }; } | |
12207 | ||
12208 | rm -f $ac_file | |
12209 | mv $tmp/config.h $ac_file | |
9b2b7d69 | 12210 | fi |
13b2be9c DJ |
12211 | else |
12212 | cat $tmp/config.h | |
12213 | rm -f $tmp/config.h | |
9b2b7d69 | 12214 | fi |
13b2be9c DJ |
12215 | # Compute $ac_file's index in $config_headers. |
12216 | _am_stamp_count=1 | |
12217 | for _am_header in $config_headers :; do | |
12218 | case $_am_header in | |
12219 | $ac_file | $ac_file:* ) | |
12220 | break ;; | |
12221 | * ) | |
12222 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
12223 | esac | |
12224 | done | |
12225 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
12226 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
12227 | X$ac_file : 'X\(//\)[^/]' \| \ |
12228 | X$ac_file : 'X\(//\)$' \| \ | |
12229 | X$ac_file : 'X\(/\)' \| \ | |
12230 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
12231 | echo X$ac_file | |
12232 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12233 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12234 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12235 | /^X\(\/\).*/{ s//\1/; q; } | |
12236 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
12237 | done | |
12238 | _ACEOF | |
12239 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6840198f | 12240 | |
13b2be9c DJ |
12241 | # |
12242 | # CONFIG_COMMANDS section. | |
12243 | # | |
12244 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
12245 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
12246 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12247 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
12248 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
12249 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
12250 | X"$ac_dest" : 'X\(//\)$' \| \ | |
12251 | X"$ac_dest" : 'X\(/\)' \| \ | |
12252 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
12253 | echo X"$ac_dest" | |
12254 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12255 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12256 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12257 | /^X\(\/\).*/{ s//\1/; q; } | |
12258 | s/.*/./; q'` | |
ab509236 L |
12259 | { if $as_mkdir_p; then |
12260 | mkdir -p "$ac_dir" | |
12261 | else | |
12262 | as_dir="$ac_dir" | |
12263 | as_dirs= | |
12264 | while test ! -d "$as_dir"; do | |
12265 | as_dirs="$as_dir $as_dirs" | |
12266 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12267 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12268 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12269 | X"$as_dir" : 'X\(//\)$' \| \ | |
12270 | X"$as_dir" : 'X\(/\)' \| \ | |
12271 | . : '\(.\)' 2>/dev/null || | |
12272 | echo X"$as_dir" | | |
12273 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12274 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12275 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12276 | /^X\(\/\).*/{ s//\1/; q; } | |
12277 | s/.*/./; q'` | |
12278 | done | |
12279 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12280 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12281 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12282 | { (exit 1); exit 1; }; }; } | |
12283 | ||
13b2be9c DJ |
12284 | ac_builddir=. |
12285 | ||
12286 | if test "$ac_dir" != .; then | |
12287 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
12288 | # A "../" for each directory in $ac_dir_suffix. | |
12289 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
12290 | else | |
12291 | ac_dir_suffix= ac_top_builddir= | |
12292 | fi | |
12293 | ||
12294 | case $srcdir in | |
12295 | .) # No --srcdir option. We are building in place. | |
12296 | ac_srcdir=. | |
12297 | if test -z "$ac_top_builddir"; then | |
12298 | ac_top_srcdir=. | |
12299 | else | |
12300 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
12301 | fi ;; | |
12302 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
12303 | ac_srcdir=$srcdir$ac_dir_suffix; | |
12304 | ac_top_srcdir=$srcdir ;; | |
12305 | *) # Relative path. | |
12306 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
12307 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
12308 | esac | |
ab509236 L |
12309 | |
12310 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
12311 | # the directories may not exist. | |
12312 | case `pwd` in | |
12313 | .) ac_abs_builddir="$ac_dir";; | |
12314 | *) | |
12315 | case "$ac_dir" in | |
12316 | .) ac_abs_builddir=`pwd`;; | |
12317 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
12318 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
12319 | esac;; | |
12320 | esac | |
12321 | case $ac_abs_builddir in | |
12322 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12323 | *) | |
12324 | case ${ac_top_builddir}. in | |
12325 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
12326 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12327 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
12328 | esac;; | |
12329 | esac | |
12330 | case $ac_abs_builddir in | |
12331 | .) ac_abs_srcdir=$ac_srcdir;; | |
12332 | *) | |
12333 | case $ac_srcdir in | |
12334 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
12335 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
12336 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
12337 | esac;; | |
12338 | esac | |
12339 | case $ac_abs_builddir in | |
12340 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12341 | *) | |
12342 | case $ac_top_srcdir in | |
12343 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
12344 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12345 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
12346 | esac;; | |
12347 | esac | |
13b2be9c DJ |
12348 | |
12349 | ||
12350 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
12351 | echo "$as_me: executing $ac_dest commands" >&6;} | |
12352 | case $ac_dest in | |
12353 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
12354 | # Strip MF so we end up with the name of the file. | |
12355 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
12356 | # Check whether this is an Automake generated Makefile or not. | |
12357 | # We used to match only the files named `Makefile.in', but | |
12358 | # some people rename them; so instead we look at the file content. | |
12359 | # Grep'ing the first line is not enough: some people post-process | |
12360 | # each Makefile.in and add a new line on top of each file to say so. | |
12361 | # So let's grep whole file. | |
12362 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
12363 | dirpart=`(dirname "$mf") 2>/dev/null || | |
12364 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
12365 | X"$mf" : 'X\(//\)[^/]' \| \ |
12366 | X"$mf" : 'X\(//\)$' \| \ | |
12367 | X"$mf" : 'X\(/\)' \| \ | |
12368 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
12369 | echo X"$mf" | |
12370 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12371 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12372 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12373 | /^X\(\/\).*/{ s//\1/; q; } | |
12374 | s/.*/./; q'` | |
12375 | else | |
12376 | continue | |
12377 | fi | |
8ea2b00f AM |
12378 | # Extract the definition of DEPDIR, am__include, and am__quote |
12379 | # from the Makefile without running `make'. | |
4b363073 | 12380 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
13b2be9c | 12381 | test -z "$DEPDIR" && continue |
8ea2b00f AM |
12382 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
12383 | test -z "am__include" && continue | |
12384 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
13b2be9c | 12385 | # When using ansi2knr, U may be empty or an underscore; expand it |
4b363073 | 12386 | U=`sed -n 's/^U = //p' < "$mf"` |
8ea2b00f AM |
12387 | # Find all dependency output files, they are included files with |
12388 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
12389 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
12390 | # expansion. | |
12391 | for file in `sed -n " | |
12392 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
13b2be9c DJ |
12393 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
12394 | # Make sure the directory exists. | |
12395 | test -f "$dirpart/$file" && continue | |
12396 | fdir=`(dirname "$file") 2>/dev/null || | |
12397 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
12398 | X"$file" : 'X\(//\)[^/]' \| \ |
12399 | X"$file" : 'X\(//\)$' \| \ | |
12400 | X"$file" : 'X\(/\)' \| \ | |
12401 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
12402 | echo X"$file" | |
12403 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12404 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12405 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12406 | /^X\(\/\).*/{ s//\1/; q; } | |
12407 | s/.*/./; q'` | |
12408 | { if $as_mkdir_p; then | |
12409 | mkdir -p $dirpart/$fdir | |
12410 | else | |
12411 | as_dir=$dirpart/$fdir | |
12412 | as_dirs= | |
12413 | while test ! -d "$as_dir"; do | |
12414 | as_dirs="$as_dir $as_dirs" | |
12415 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12416 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
12417 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
12418 | X"$as_dir" : 'X\(//\)$' \| \ | |
12419 | X"$as_dir" : 'X\(/\)' \| \ | |
12420 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
12421 | echo X"$as_dir" | |
12422 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12423 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12424 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12425 | /^X\(\/\).*/{ s//\1/; q; } | |
12426 | s/.*/./; q'` | |
12427 | done | |
12428 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12429 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
12430 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
12431 | { (exit 1); exit 1; }; }; } | |
c8615825 | 12432 | |
13b2be9c DJ |
12433 | # echo "creating $dirpart/$file" |
12434 | echo '# dummy' > "$dirpart/$file" | |
12435 | done | |
12436 | done | |
12437 | ;; | |
12438 | default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h | |
252b5132 RH |
12439 | echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h |
12440 | echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h | |
12441 | echo '#include "te-'"${te_file}"'.h"' > targ-env.h | |
12442 | echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h | |
12443 | if test "x$cgen_cpu_prefix" != x ; then | |
12444 | echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h | |
12445 | fi | |
12446 | ||
13b2be9c DJ |
12447 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;; |
12448 | esac | |
12449 | done | |
12450 | _ACEOF | |
12451 | ||
12452 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12453 | ||
12454 | { (exit 0); exit 0; } | |
12455 | _ACEOF | |
252b5132 | 12456 | chmod +x $CONFIG_STATUS |
13b2be9c DJ |
12457 | ac_clean_files=$ac_clean_files_save |
12458 | ||
12459 | ||
12460 | # configure is writing to config.log, and then calls config.status. | |
12461 | # config.status does its own redirection, appending to config.log. | |
12462 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12463 | # by configure, so config.status won't be able to write to it; its | |
12464 | # output is simply discarded. So we exec the FD to /dev/null, | |
12465 | # effectively closing config.log, so it can be properly (re)opened and | |
12466 | # appended to by config.status. When coming back to configure, we | |
12467 | # need to make the FD available again. | |
12468 | if test "$no_create" != yes; then | |
12469 | ac_cs_success=: | |
12470 | ac_config_status_args= | |
12471 | test "$silent" = yes && | |
12472 | ac_config_status_args="$ac_config_status_args --quiet" | |
12473 | exec 5>/dev/null | |
12474 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12475 | exec 5>>config.log | |
12476 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12477 | # would make configure fail if this is the last instruction. | |
12478 | $ac_cs_success || { (exit 1); exit 1; } | |
12479 | fi | |
252b5132 | 12480 |