Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
5464f5a1 | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
5464f5a1 | 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. | |
5464f5a1 NN |
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 | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
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 | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
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 | |
221 | test -d ./-p && rmdir ./-p | |
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. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
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 | |
5464f5a1 NN |
249 | exec 6>&1 |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
252b5132 | 254 | ac_default_prefix=/usr/local |
5464f5a1 NN |
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="libbfd.c" | |
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 AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir 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 HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS' |
5464f5a1 | 313 | ac_subst_files='' |
252b5132 RH |
314 | |
315 | # Initialize some variables set by options. | |
5464f5a1 NN |
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. | |
5464f5a1 | 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 | |
5464f5a1 NN |
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 | ||
5464f5a1 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
5464f5a1 | 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=*) | |
5464f5a1 | 372 | bindir=$ac_optarg ;; |
252b5132 RH |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
5464f5a1 | 375 | ac_prev=build_alias ;; |
252b5132 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
5464f5a1 | 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=*) | |
5464f5a1 NN |
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=*) | |
5464f5a1 | 393 | datadir=$ac_optarg ;; |
252b5132 RH |
394 | |
395 | -disable-* | --disable-*) | |
5464f5a1 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 397 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
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-*) | |
5464f5a1 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 406 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
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 | |
5464f5a1 | 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=*) | |
5464f5a1 | 424 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
5464f5a1 NN |
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) | |
5464f5a1 | 438 | ac_prev=host_alias ;; |
252b5132 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
5464f5a1 | 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=*) | |
5464f5a1 | 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=*) | |
5464f5a1 | 452 | infodir=$ac_optarg ;; |
252b5132 RH |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
5464f5a1 | 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=*) | |
5464f5a1 | 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=*) | |
5464f5a1 | 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=*) | |
5464f5a1 | 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 \ | |
5464f5a1 | 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=*) | |
5464f5a1 | 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=*) | |
5464f5a1 | 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=*) | |
5464f5a1 | 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=*) | |
5464f5a1 | 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=*) | |
5464f5a1 | 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=*) | |
5464f5a1 | 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=*) | |
5464f5a1 | 556 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
5464f5a1 | 561 | site=$ac_optarg ;; |
6be7c12c | 562 | |
252b5132 RH |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
5464f5a1 | 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=*) | |
5464f5a1 | 573 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
5464f5a1 | 576 | ac_prev=target_alias ;; |
252b5132 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
5464f5a1 | 578 | target_alias=$ac_optarg ;; |
252b5132 RH |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
5464f5a1 NN |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
252b5132 RH |
585 | |
586 | -with-* | --with-*) | |
5464f5a1 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 588 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
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'` |
5464f5a1 NN |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
595 | *) ac_optarg=yes ;; |
596 | esac | |
5464f5a1 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
598 | |
599 | -without-* | --without-*) | |
5464f5a1 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 601 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
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=*) | |
5464f5a1 | 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=*) | |
5464f5a1 | 624 | x_libraries=$ac_optarg ;; |
252b5132 | 625 | |
5464f5a1 NN |
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 | ||
5464f5a1 NN |
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 | *) |
5464f5a1 NN |
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 | |
5464f5a1 NN |
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; }; } | |
252b5132 | 656 | fi |
252b5132 | 657 | |
5464f5a1 NN |
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 | |
6be7c12c | 668 | |
5464f5a1 NN |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
252b5132 | 672 | do |
5464f5a1 NN |
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 | ||
5464f5a1 NN |
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 | |
252b5132 | 698 | |
5464f5a1 NN |
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. | |
5464f5a1 NN |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
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 | |
5464f5a1 NN |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
252b5132 | 732 | else |
5464f5a1 NN |
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 | |
5464f5a1 NN |
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 | |
b3baf5d0 | 773 | |
5464f5a1 NN |
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. | |
252b5132 | 782 | |
5464f5a1 | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 784 | |
5464f5a1 NN |
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. | |
6be7c12c | 787 | |
5464f5a1 | 788 | Defaults for the options are specified in brackets. |
6be7c12c | 789 | |
5464f5a1 NN |
790 | Configuration: |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
6be7c12c | 809 | |
5464f5a1 NN |
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'. | |
6be7c12c | 814 | |
5464f5a1 | 815 | For better control, use the options below. |
6be7c12c | 816 | |
5464f5a1 NN |
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 | |
6be7c12c | 831 | |
5464f5a1 | 832 | cat <<\_ACEOF |
6be7c12c | 833 | |
5464f5a1 NN |
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 | |
252b5132 | 838 | |
5464f5a1 NN |
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 | |
252b5132 | 844 | fi |
252b5132 | 845 | |
5464f5a1 | 846 | if test -n "$ac_init_help"; then |
6be7c12c | 847 | |
5464f5a1 | 848 | cat <<\_ACEOF |
252b5132 | 849 | |
5464f5a1 NN |
850 | Optional Features: |
851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
f5385ebf AM |
853 | --disable-dependency-tracking speeds up one-time build |
854 | --enable-dependency-tracking do not reject slow dependency extractors | |
5464f5a1 NN |
855 | --enable-shared=PKGS build shared libraries default=no |
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-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
860 | --enable-targets alternative target configurations | |
861 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library | |
6ec7057a | 862 | --enable-secureplt Default to creating read-only plt entries |
569acd2c | 863 | --enable-werror treat compile warnings as errors |
9e9b66a9 | 864 | --enable-build-warnings Enable build-time compiler warnings |
f5385ebf AM |
865 | --enable-maintainer-mode enable make rules and dependencies not useful |
866 | (and sometimes confusing) to the casual installer | |
5464f5a1 NN |
867 | --enable-install-libbfd controls installation of libbfd and related headers |
868 | --disable-nls do not use Native Language Support | |
869 | ||
870 | Optional Packages: | |
871 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
872 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
873 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
874 | --with-pic try to use only PIC/non-PIC objects default=use both | |
875 | --with-mmap try using mmap for BFD input files if available | |
876 | --with-included-gettext use the GNU gettext library included here | |
877 | ||
878 | Some influential environment variables: | |
879 | CC C compiler command | |
880 | CFLAGS C compiler flags | |
881 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
882 | nonstandard directory <lib dir> | |
883 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
884 | headers in a nonstandard directory <include dir> | |
885 | CPP C preprocessor | |
886 | ||
887 | Use these variables to override the choices made by `configure' or to help | |
888 | it to find libraries and programs with nonstandard names/locations. | |
889 | ||
890 | _ACEOF | |
891 | fi | |
892 | ||
893 | if test "$ac_init_help" = "recursive"; then | |
894 | # If there are subdirs, report their specific --help. | |
895 | ac_popdir=`pwd` | |
896 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
897 | test -d $ac_dir || continue | |
898 | ac_builddir=. | |
899 | ||
900 | if test "$ac_dir" != .; then | |
901 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
902 | # A "../" for each directory in $ac_dir_suffix. | |
903 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
904 | else | |
905 | ac_dir_suffix= ac_top_builddir= | |
906 | fi | |
907 | ||
908 | case $srcdir in | |
909 | .) # No --srcdir option. We are building in place. | |
910 | ac_srcdir=. | |
911 | if test -z "$ac_top_builddir"; then | |
912 | ac_top_srcdir=. | |
913 | else | |
914 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
915 | fi ;; | |
916 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
917 | ac_srcdir=$srcdir$ac_dir_suffix; | |
918 | ac_top_srcdir=$srcdir ;; | |
919 | *) # Relative path. | |
920 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
921 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6be7c12c AO |
922 | esac |
923 | ||
5464f5a1 NN |
924 | # Do not use `cd foo && pwd` to compute absolute paths, because |
925 | # the directories may not exist. | |
926 | case `pwd` in | |
927 | .) ac_abs_builddir="$ac_dir";; | |
928 | *) | |
929 | case "$ac_dir" in | |
930 | .) ac_abs_builddir=`pwd`;; | |
931 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
932 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
933 | esac;; | |
934 | esac | |
935 | case $ac_abs_builddir in | |
936 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
937 | *) | |
938 | case ${ac_top_builddir}. in | |
939 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
940 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
941 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
942 | esac;; | |
943 | esac | |
944 | case $ac_abs_builddir in | |
945 | .) ac_abs_srcdir=$ac_srcdir;; | |
946 | *) | |
947 | case $ac_srcdir in | |
948 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
949 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
950 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
951 | esac;; | |
952 | esac | |
953 | case $ac_abs_builddir in | |
954 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
955 | *) | |
956 | case $ac_top_srcdir in | |
957 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
958 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
959 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
960 | esac;; | |
961 | esac | |
6be7c12c | 962 | |
5464f5a1 NN |
963 | cd $ac_dir |
964 | # Check for guested configure; otherwise get Cygnus style configure. | |
965 | if test -f $ac_srcdir/configure.gnu; then | |
966 | echo | |
967 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
968 | elif test -f $ac_srcdir/configure; then | |
969 | echo | |
970 | $SHELL $ac_srcdir/configure --help=recursive | |
971 | elif test -f $ac_srcdir/configure.ac || | |
972 | test -f $ac_srcdir/configure.in; then | |
973 | echo | |
974 | $ac_configure --help | |
975 | else | |
976 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
977 | fi | |
6ec7057a | 978 | cd "$ac_popdir" |
5464f5a1 | 979 | done |
6be7c12c AO |
980 | fi |
981 | ||
5464f5a1 NN |
982 | test -n "$ac_init_help" && exit 0 |
983 | if $ac_init_version; then | |
984 | cat <<\_ACEOF | |
6be7c12c | 985 | |
5464f5a1 NN |
986 | Copyright (C) 2003 Free Software Foundation, Inc. |
987 | This configure script is free software; the Free Software Foundation | |
988 | gives unlimited permission to copy, distribute and modify it. | |
989 | _ACEOF | |
990 | exit 0 | |
991 | fi | |
992 | exec 5>config.log | |
993 | cat >&5 <<_ACEOF | |
994 | This file contains any messages produced by compilers while | |
995 | running configure, to aid debugging if configure makes a mistake. | |
6be7c12c | 996 | |
5464f5a1 NN |
997 | It was created by $as_me, which was |
998 | generated by GNU Autoconf 2.59. Invocation command line was | |
6be7c12c | 999 | |
5464f5a1 | 1000 | $ $0 $@ |
6be7c12c | 1001 | |
5464f5a1 NN |
1002 | _ACEOF |
1003 | { | |
1004 | cat <<_ASUNAME | |
1005 | ## --------- ## | |
1006 | ## Platform. ## | |
1007 | ## --------- ## | |
1008 | ||
1009 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1010 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1011 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1012 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1013 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1014 | ||
1015 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1016 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1017 | ||
1018 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1019 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1020 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1021 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1022 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1023 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1024 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1025 | ||
1026 | _ASUNAME | |
1027 | ||
1028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1029 | for as_dir in $PATH | |
1030 | do | |
1031 | IFS=$as_save_IFS | |
1032 | test -z "$as_dir" && as_dir=. | |
1033 | echo "PATH: $as_dir" | |
1034 | done | |
6be7c12c | 1035 | |
5464f5a1 | 1036 | } >&5 |
66e25bab | 1037 | |
5464f5a1 | 1038 | cat >&5 <<_ACEOF |
b3baf5d0 | 1039 | |
6be7c12c | 1040 | |
5464f5a1 NN |
1041 | ## ----------- ## |
1042 | ## Core tests. ## | |
1043 | ## ----------- ## | |
252b5132 | 1044 | |
5464f5a1 | 1045 | _ACEOF |
c5d1701e | 1046 | |
6be7c12c | 1047 | |
5464f5a1 NN |
1048 | # Keep a trace of the command line. |
1049 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1050 | # Strip out --silent because we don't want to record it for future runs. | |
1051 | # Also quote any args containing shell meta-characters. | |
1052 | # Make two passes to allow for proper duplicate-argument suppression. | |
1053 | ac_configure_args= | |
1054 | ac_configure_args0= | |
1055 | ac_configure_args1= | |
1056 | ac_sep= | |
1057 | ac_must_keep_next=false | |
1058 | for ac_pass in 1 2 | |
1059 | do | |
1060 | for ac_arg | |
1061 | do | |
1062 | case $ac_arg in | |
1063 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1064 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1065 | | -silent | --silent | --silen | --sile | --sil) | |
1066 | continue ;; | |
1067 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1068 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1069 | esac | |
1070 | case $ac_pass in | |
1071 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1072 | 2) | |
1073 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1074 | if test $ac_must_keep_next = true; then | |
1075 | ac_must_keep_next=false # Got value, back to normal. | |
1076 | else | |
1077 | case $ac_arg in | |
1078 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1079 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1080 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1081 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1082 | case "$ac_configure_args0 " in | |
1083 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1084 | esac | |
1085 | ;; | |
1086 | -* ) ac_must_keep_next=true ;; | |
1087 | esac | |
1088 | fi | |
1089 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1090 | # Get rid of the leading space. | |
1091 | ac_sep=" " | |
1092 | ;; | |
1093 | esac | |
1094 | done | |
1095 | done | |
1096 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1097 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1098 | ||
1099 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1100 | # config.log. We remove comments because anyway the quotes in there | |
1101 | # would cause problems or look ugly. | |
1102 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1103 | # such as our DU 5.0 friend, will then `close' the trap. | |
1104 | trap 'exit_status=$? | |
1105 | # Save into config.log some information that might help in debugging. | |
1106 | { | |
1107 | echo | |
1108 | ||
1109 | cat <<\_ASBOX | |
1110 | ## ---------------- ## | |
1111 | ## Cache variables. ## | |
1112 | ## ---------------- ## | |
1113 | _ASBOX | |
1114 | echo | |
1115 | # The following way of writing the cache mishandles newlines in values, | |
1116 | { | |
1117 | (set) 2>&1 | | |
1118 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1119 | *ac_space=\ *) | |
1120 | sed -n \ | |
1121 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1122 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1123 | ;; | |
1124 | *) | |
1125 | sed -n \ | |
1126 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1127 | ;; | |
1128 | esac; | |
1129 | } | |
1130 | echo | |
1131 | ||
1132 | cat <<\_ASBOX | |
1133 | ## ----------------- ## | |
1134 | ## Output variables. ## | |
1135 | ## ----------------- ## | |
1136 | _ASBOX | |
1137 | echo | |
1138 | for ac_var in $ac_subst_vars | |
1139 | do | |
1140 | eval ac_val=$`echo $ac_var` | |
1141 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1142 | done | sort | |
1143 | echo | |
1144 | ||
1145 | if test -n "$ac_subst_files"; then | |
1146 | cat <<\_ASBOX | |
1147 | ## ------------- ## | |
1148 | ## Output files. ## | |
1149 | ## ------------- ## | |
1150 | _ASBOX | |
1151 | echo | |
1152 | for ac_var in $ac_subst_files | |
1153 | do | |
1154 | eval ac_val=$`echo $ac_var` | |
1155 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1156 | done | sort | |
1157 | echo | |
1158 | fi | |
1159 | ||
1160 | if test -s confdefs.h; then | |
1161 | cat <<\_ASBOX | |
1162 | ## ----------- ## | |
1163 | ## confdefs.h. ## | |
1164 | ## ----------- ## | |
1165 | _ASBOX | |
1166 | echo | |
1167 | sed "/^$/d" confdefs.h | sort | |
1168 | echo | |
1169 | fi | |
1170 | test "$ac_signal" != 0 && | |
1171 | echo "$as_me: caught signal $ac_signal" | |
1172 | echo "$as_me: exit $exit_status" | |
1173 | } >&5 | |
1174 | rm -f core *.core && | |
1175 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1176 | exit $exit_status | |
1177 | ' 0 | |
1178 | for ac_signal in 1 2 13 15; do | |
1179 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1180 | done | |
1181 | ac_signal=0 | |
1182 | ||
1183 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1184 | rm -rf conftest* confdefs.h | |
1185 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1186 | echo >confdefs.h | |
1187 | ||
1188 | # Predefined preprocessor variables. | |
1189 | ||
1190 | cat >>confdefs.h <<_ACEOF | |
1191 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1192 | _ACEOF | |
1193 | ||
1194 | ||
1195 | cat >>confdefs.h <<_ACEOF | |
1196 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1197 | _ACEOF | |
1198 | ||
1199 | ||
1200 | cat >>confdefs.h <<_ACEOF | |
1201 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1202 | _ACEOF | |
1203 | ||
1204 | ||
1205 | cat >>confdefs.h <<_ACEOF | |
1206 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1207 | _ACEOF | |
1208 | ||
1209 | ||
1210 | cat >>confdefs.h <<_ACEOF | |
1211 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1212 | _ACEOF | |
1213 | ||
1214 | ||
1215 | # Let the site file select an alternate cache file if it wants to. | |
1216 | # Prefer explicitly selected file to automatically selected ones. | |
1217 | if test -z "$CONFIG_SITE"; then | |
1218 | if test "x$prefix" != xNONE; then | |
1219 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1220 | else | |
1221 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1222 | fi | |
1223 | fi | |
1224 | for ac_site_file in $CONFIG_SITE; do | |
1225 | if test -r "$ac_site_file"; then | |
1226 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1227 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1228 | sed 's/^/| /' "$ac_site_file" >&5 | |
1229 | . "$ac_site_file" | |
1230 | fi | |
1231 | done | |
1232 | ||
1233 | if test -r "$cache_file"; then | |
1234 | # Some versions of bash will fail to source /dev/null (special | |
1235 | # files actually), so we avoid doing that. | |
1236 | if test -f "$cache_file"; then | |
1237 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1238 | echo "$as_me: loading cache $cache_file" >&6;} | |
1239 | case $cache_file in | |
1240 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1241 | *) . ./$cache_file;; | |
1242 | esac | |
1243 | fi | |
1244 | else | |
1245 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1246 | echo "$as_me: creating cache $cache_file" >&6;} | |
1247 | >$cache_file | |
1248 | fi | |
1249 | ||
1250 | # Check that the precious variables saved in the cache have kept the same | |
1251 | # value. | |
1252 | ac_cache_corrupted=false | |
1253 | for ac_var in `(set) 2>&1 | | |
1254 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1255 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1256 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1257 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1258 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1259 | case $ac_old_set,$ac_new_set in | |
1260 | set,) | |
1261 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1262 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1263 | ac_cache_corrupted=: ;; | |
1264 | ,set) | |
1265 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1266 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1267 | ac_cache_corrupted=: ;; | |
1268 | ,);; | |
1269 | *) | |
1270 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1271 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1272 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1273 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1274 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1275 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1276 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1277 | ac_cache_corrupted=: | |
1278 | fi;; | |
1279 | esac | |
1280 | # Pass precious variables to config.status. | |
1281 | if test "$ac_new_set" = set; then | |
1282 | case $ac_new_val in | |
1283 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1284 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1285 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1286 | esac | |
1287 | case " $ac_configure_args " in | |
1288 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1289 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1290 | esac | |
1291 | fi | |
1292 | done | |
1293 | if $ac_cache_corrupted; then | |
1294 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1295 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1296 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1297 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1298 | { (exit 1); exit 1; }; } | |
1299 | fi | |
1300 | ||
1301 | ac_ext=c | |
1302 | ac_cpp='$CPP $CPPFLAGS' | |
1303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ac_aux_dir= | |
1328 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1329 | if 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/install.sh; then | |
1334 | ac_aux_dir=$ac_dir | |
1335 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1336 | break | |
1337 | elif test -f $ac_dir/shtool; then | |
1338 | ac_aux_dir=$ac_dir | |
1339 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1340 | break | |
1341 | fi | |
1342 | done | |
1343 | if test -z "$ac_aux_dir"; then | |
1344 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1345 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1346 | { (exit 1); exit 1; }; } | |
1347 | fi | |
1348 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1349 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1350 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1351 | ||
1352 | # Make sure we can run config.sub. | |
1353 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1354 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1355 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1356 | { (exit 1); exit 1; }; } | |
1357 | ||
1358 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1359 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1360 | if test "${ac_cv_build+set}" = set; then | |
1361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1362 | else | |
1363 | ac_cv_build_alias=$build_alias | |
1364 | test -z "$ac_cv_build_alias" && | |
1365 | ac_cv_build_alias=`$ac_config_guess` | |
1366 | test -z "$ac_cv_build_alias" && | |
1367 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1368 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1369 | { (exit 1); exit 1; }; } | |
1370 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1371 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1372 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1373 | { (exit 1); exit 1; }; } | |
1374 | ||
1375 | fi | |
1376 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1377 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1378 | build=$ac_cv_build | |
1379 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1380 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1381 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1382 | ||
1383 | ||
1384 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1385 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1386 | if test "${ac_cv_host+set}" = set; then | |
1387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1388 | else | |
1389 | ac_cv_host_alias=$host_alias | |
1390 | test -z "$ac_cv_host_alias" && | |
1391 | ac_cv_host_alias=$ac_cv_build_alias | |
1392 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1393 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1394 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1395 | { (exit 1); exit 1; }; } | |
1396 | ||
1397 | fi | |
1398 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1399 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1400 | host=$ac_cv_host | |
1401 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1402 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1403 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1404 | ||
1405 | ||
1406 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1407 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1408 | if test "${ac_cv_target+set}" = set; then | |
1409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1410 | else | |
1411 | ac_cv_target_alias=$target_alias | |
1412 | test "x$ac_cv_target_alias" = "x" && | |
1413 | ac_cv_target_alias=$ac_cv_host_alias | |
1414 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1415 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1416 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1417 | { (exit 1); exit 1; }; } | |
1418 | ||
1419 | fi | |
1420 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1421 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1422 | target=$ac_cv_target | |
1423 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1424 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1425 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1426 | ||
1427 | ||
1428 | # The aliases save the names the user supplied, while $host etc. | |
1429 | # will get canonicalized. | |
1430 | test -n "$target_alias" && | |
1431 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1432 | NONENONEs,x,x, && | |
1433 | program_prefix=${target_alias}- | |
1434 | ac_ext=c | |
1435 | ac_cpp='$CPP $CPPFLAGS' | |
1436 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1437 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1439 | if test -n "$ac_tool_prefix"; then | |
1440 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1441 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1442 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1443 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1444 | if test "${ac_cv_prog_CC+set}" = set; then | |
1445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1446 | else | |
1447 | if test -n "$CC"; then | |
1448 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1449 | else | |
1450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1451 | for as_dir in $PATH | |
1452 | do | |
1453 | IFS=$as_save_IFS | |
1454 | test -z "$as_dir" && as_dir=. | |
1455 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1456 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1457 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1459 | break 2 | |
1460 | fi | |
1461 | done | |
1462 | done | |
1463 | ||
1464 | fi | |
1465 | fi | |
1466 | CC=$ac_cv_prog_CC | |
1467 | if test -n "$CC"; then | |
1468 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1469 | echo "${ECHO_T}$CC" >&6 | |
1470 | else | |
1471 | echo "$as_me:$LINENO: result: no" >&5 | |
1472 | echo "${ECHO_T}no" >&6 | |
1473 | fi | |
1474 | ||
1475 | fi | |
1476 | if test -z "$ac_cv_prog_CC"; then | |
1477 | ac_ct_CC=$CC | |
1478 | # Extract the first word of "gcc", so it can be a program name with args. | |
1479 | set dummy gcc; ac_word=$2 | |
1480 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1481 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1482 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1484 | else | |
1485 | if test -n "$ac_ct_CC"; then | |
1486 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1487 | else | |
1488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1489 | for as_dir in $PATH | |
1490 | do | |
1491 | IFS=$as_save_IFS | |
1492 | test -z "$as_dir" && as_dir=. | |
1493 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1494 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1495 | ac_cv_prog_ac_ct_CC="gcc" | |
1496 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1497 | break 2 | |
1498 | fi | |
1499 | done | |
1500 | done | |
1501 | ||
1502 | fi | |
1503 | fi | |
1504 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1505 | if test -n "$ac_ct_CC"; then | |
1506 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1507 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1508 | else | |
1509 | echo "$as_me:$LINENO: result: no" >&5 | |
1510 | echo "${ECHO_T}no" >&6 | |
1511 | fi | |
1512 | ||
1513 | CC=$ac_ct_CC | |
1514 | else | |
1515 | CC="$ac_cv_prog_CC" | |
1516 | fi | |
1517 | ||
1518 | if test -z "$CC"; then | |
1519 | if test -n "$ac_tool_prefix"; then | |
1520 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1521 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1522 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1524 | if test "${ac_cv_prog_CC+set}" = set; then | |
1525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1526 | else | |
1527 | if test -n "$CC"; then | |
1528 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1529 | else | |
1530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1531 | for as_dir in $PATH | |
1532 | do | |
1533 | IFS=$as_save_IFS | |
1534 | test -z "$as_dir" && as_dir=. | |
1535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1536 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1537 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1539 | break 2 | |
1540 | fi | |
1541 | done | |
1542 | done | |
1543 | ||
1544 | fi | |
1545 | fi | |
1546 | CC=$ac_cv_prog_CC | |
1547 | if test -n "$CC"; then | |
1548 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1549 | echo "${ECHO_T}$CC" >&6 | |
1550 | else | |
1551 | echo "$as_me:$LINENO: result: no" >&5 | |
1552 | echo "${ECHO_T}no" >&6 | |
1553 | fi | |
1554 | ||
1555 | fi | |
1556 | if test -z "$ac_cv_prog_CC"; then | |
1557 | ac_ct_CC=$CC | |
1558 | # Extract the first word of "cc", so it can be a program name with args. | |
1559 | set dummy cc; ac_word=$2 | |
1560 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1561 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1562 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1564 | else | |
1565 | if test -n "$ac_ct_CC"; then | |
1566 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1567 | else | |
1568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1569 | for as_dir in $PATH | |
1570 | do | |
1571 | IFS=$as_save_IFS | |
1572 | test -z "$as_dir" && as_dir=. | |
1573 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1574 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1575 | ac_cv_prog_ac_ct_CC="cc" | |
1576 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1577 | break 2 | |
1578 | fi | |
1579 | done | |
1580 | done | |
1581 | ||
1582 | fi | |
1583 | fi | |
1584 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1585 | if test -n "$ac_ct_CC"; then | |
1586 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1587 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1588 | else | |
1589 | echo "$as_me:$LINENO: result: no" >&5 | |
1590 | echo "${ECHO_T}no" >&6 | |
1591 | fi | |
1592 | ||
1593 | CC=$ac_ct_CC | |
1594 | else | |
1595 | CC="$ac_cv_prog_CC" | |
1596 | fi | |
1597 | ||
1598 | fi | |
1599 | if test -z "$CC"; then | |
1600 | # Extract the first word of "cc", so it can be a program name with args. | |
1601 | set dummy cc; ac_word=$2 | |
1602 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1603 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1604 | if test "${ac_cv_prog_CC+set}" = set; then | |
1605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1606 | else | |
1607 | if test -n "$CC"; then | |
1608 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1609 | else | |
1610 | ac_prog_rejected=no | |
1611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1612 | for as_dir in $PATH | |
1613 | do | |
1614 | IFS=$as_save_IFS | |
1615 | test -z "$as_dir" && as_dir=. | |
1616 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1617 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1618 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1619 | ac_prog_rejected=yes | |
1620 | continue | |
1621 | fi | |
1622 | ac_cv_prog_CC="cc" | |
1623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1624 | break 2 | |
1625 | fi | |
1626 | done | |
1627 | done | |
1628 | ||
1629 | if test $ac_prog_rejected = yes; then | |
1630 | # We found a bogon in the path, so make sure we never use it. | |
1631 | set dummy $ac_cv_prog_CC | |
1632 | shift | |
1633 | if test $# != 0; then | |
1634 | # We chose a different compiler from the bogus one. | |
1635 | # However, it has the same basename, so the bogon will be chosen | |
1636 | # first if we set CC to just the basename; use the full file name. | |
1637 | shift | |
1638 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1639 | fi | |
1640 | fi | |
1641 | fi | |
1642 | fi | |
1643 | CC=$ac_cv_prog_CC | |
1644 | if test -n "$CC"; then | |
1645 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1646 | echo "${ECHO_T}$CC" >&6 | |
1647 | else | |
1648 | echo "$as_me:$LINENO: result: no" >&5 | |
1649 | echo "${ECHO_T}no" >&6 | |
1650 | fi | |
1651 | ||
1652 | fi | |
1653 | if test -z "$CC"; then | |
1654 | if test -n "$ac_tool_prefix"; then | |
1655 | for ac_prog in cl | |
1656 | do | |
1657 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1658 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1659 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1661 | if test "${ac_cv_prog_CC+set}" = set; then | |
1662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1663 | else | |
1664 | if test -n "$CC"; then | |
1665 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1666 | else | |
1667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1668 | for as_dir in $PATH | |
1669 | do | |
1670 | IFS=$as_save_IFS | |
1671 | test -z "$as_dir" && as_dir=. | |
1672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1673 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1674 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1675 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1676 | break 2 | |
1677 | fi | |
1678 | done | |
1679 | done | |
1680 | ||
1681 | fi | |
1682 | fi | |
1683 | CC=$ac_cv_prog_CC | |
1684 | if test -n "$CC"; then | |
1685 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1686 | echo "${ECHO_T}$CC" >&6 | |
1687 | else | |
1688 | echo "$as_me:$LINENO: result: no" >&5 | |
1689 | echo "${ECHO_T}no" >&6 | |
1690 | fi | |
1691 | ||
1692 | test -n "$CC" && break | |
1693 | done | |
1694 | fi | |
1695 | if test -z "$CC"; then | |
1696 | ac_ct_CC=$CC | |
1697 | for ac_prog in cl | |
1698 | do | |
1699 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1700 | set dummy $ac_prog; ac_word=$2 | |
1701 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1702 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1703 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1705 | else | |
1706 | if test -n "$ac_ct_CC"; then | |
1707 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1708 | else | |
1709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1710 | for as_dir in $PATH | |
1711 | do | |
1712 | IFS=$as_save_IFS | |
1713 | test -z "$as_dir" && as_dir=. | |
1714 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1715 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1716 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1718 | break 2 | |
1719 | fi | |
1720 | done | |
1721 | done | |
1722 | ||
1723 | fi | |
1724 | fi | |
1725 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1726 | if test -n "$ac_ct_CC"; then | |
1727 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1728 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1729 | else | |
1730 | echo "$as_me:$LINENO: result: no" >&5 | |
1731 | echo "${ECHO_T}no" >&6 | |
1732 | fi | |
1733 | ||
1734 | test -n "$ac_ct_CC" && break | |
1735 | done | |
1736 | ||
1737 | CC=$ac_ct_CC | |
1738 | fi | |
1739 | ||
1740 | fi | |
1741 | ||
1742 | ||
1743 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1744 | See \`config.log' for more details." >&5 | |
1745 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1746 | See \`config.log' for more details." >&2;} | |
1747 | { (exit 1); exit 1; }; } | |
1748 | ||
1749 | # Provide some information about the compiler. | |
1750 | echo "$as_me:$LINENO:" \ | |
1751 | "checking for C compiler version" >&5 | |
1752 | ac_compiler=`set X $ac_compile; echo $2` | |
1753 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1754 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1755 | ac_status=$? | |
1756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1757 | (exit $ac_status); } | |
1758 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1759 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1760 | ac_status=$? | |
1761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1762 | (exit $ac_status); } | |
1763 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1764 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1765 | ac_status=$? | |
1766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1767 | (exit $ac_status); } | |
1768 | ||
1769 | cat >conftest.$ac_ext <<_ACEOF | |
1770 | /* confdefs.h. */ | |
1771 | _ACEOF | |
1772 | cat confdefs.h >>conftest.$ac_ext | |
1773 | cat >>conftest.$ac_ext <<_ACEOF | |
1774 | /* end confdefs.h. */ | |
1775 | ||
1776 | int | |
1777 | main () | |
1778 | { | |
1779 | ||
1780 | ; | |
1781 | return 0; | |
1782 | } | |
1783 | _ACEOF | |
1784 | ac_clean_files_save=$ac_clean_files | |
1785 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1786 | # Try to create an executable without -o first, disregard a.out. | |
1787 | # It will help us diagnose broken compilers, and finding out an intuition | |
1788 | # of exeext. | |
1789 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1790 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1791 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1792 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1793 | (eval $ac_link_default) 2>&5 | |
1794 | ac_status=$? | |
1795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1796 | (exit $ac_status); }; then | |
1797 | # Find the output, starting from the most likely. This scheme is | |
1798 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1799 | # resort. | |
1800 | ||
1801 | # Be careful to initialize this variable, since it used to be cached. | |
1802 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1803 | ac_cv_exeext= | |
1804 | # b.out is created by i960 compilers. | |
1805 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1806 | do | |
1807 | test -f "$ac_file" || continue | |
1808 | case $ac_file in | |
1809 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1810 | ;; | |
1811 | conftest.$ac_ext ) | |
1812 | # This is the source file. | |
1813 | ;; | |
1814 | [ab].out ) | |
1815 | # We found the default executable, but exeext='' is most | |
1816 | # certainly right. | |
1817 | break;; | |
1818 | *.* ) | |
1819 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1820 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1821 | # but it would be cool to find out if it's true. Does anybody | |
1822 | # maintain Libtool? --akim. | |
1823 | export ac_cv_exeext | |
1824 | break;; | |
1825 | * ) | |
1826 | break;; | |
1827 | esac | |
1828 | done | |
1829 | else | |
1830 | echo "$as_me: failed program was:" >&5 | |
1831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1832 | ||
1833 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1834 | See \`config.log' for more details." >&5 | |
1835 | echo "$as_me: error: C compiler cannot create executables | |
1836 | See \`config.log' for more details." >&2;} | |
1837 | { (exit 77); exit 77; }; } | |
1838 | fi | |
1839 | ||
1840 | ac_exeext=$ac_cv_exeext | |
1841 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1842 | echo "${ECHO_T}$ac_file" >&6 | |
1843 | ||
1844 | # Check the compiler produces executables we can run. If not, either | |
1845 | # the compiler is broken, or we cross compile. | |
1846 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1847 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1848 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1849 | # If not cross compiling, check that we can run a simple program. | |
1850 | if test "$cross_compiling" != yes; then | |
1851 | if { ac_try='./$ac_file' | |
1852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1853 | (eval $ac_try) 2>&5 | |
1854 | ac_status=$? | |
1855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1856 | (exit $ac_status); }; }; then | |
1857 | cross_compiling=no | |
1858 | else | |
1859 | if test "$cross_compiling" = maybe; then | |
1860 | cross_compiling=yes | |
1861 | else | |
1862 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1863 | If you meant to cross compile, use \`--host'. | |
1864 | See \`config.log' for more details." >&5 | |
1865 | echo "$as_me: error: cannot run C compiled programs. | |
1866 | If you meant to cross compile, use \`--host'. | |
1867 | See \`config.log' for more details." >&2;} | |
1868 | { (exit 1); exit 1; }; } | |
1869 | fi | |
1870 | fi | |
1871 | fi | |
1872 | echo "$as_me:$LINENO: result: yes" >&5 | |
1873 | echo "${ECHO_T}yes" >&6 | |
1874 | ||
1875 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1876 | ac_clean_files=$ac_clean_files_save | |
1877 | # Check the compiler produces executables we can run. If not, either | |
1878 | # the compiler is broken, or we cross compile. | |
1879 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1880 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1881 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1882 | echo "${ECHO_T}$cross_compiling" >&6 | |
1883 | ||
1884 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1885 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1887 | (eval $ac_link) 2>&5 | |
1888 | ac_status=$? | |
1889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1890 | (exit $ac_status); }; then | |
1891 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1892 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1893 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1894 | # `rm'. | |
1895 | for ac_file in conftest.exe conftest conftest.*; do | |
1896 | test -f "$ac_file" || continue | |
1897 | case $ac_file in | |
1898 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1899 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1900 | export ac_cv_exeext | |
1901 | break;; | |
1902 | * ) break;; | |
1903 | esac | |
1904 | done | |
1905 | else | |
1906 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1907 | See \`config.log' for more details." >&5 | |
1908 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1909 | See \`config.log' for more details." >&2;} | |
1910 | { (exit 1); exit 1; }; } | |
1911 | fi | |
1912 | ||
1913 | rm -f conftest$ac_cv_exeext | |
1914 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1915 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1916 | ||
1917 | rm -f conftest.$ac_ext | |
1918 | EXEEXT=$ac_cv_exeext | |
1919 | ac_exeext=$EXEEXT | |
1920 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1921 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1922 | if test "${ac_cv_objext+set}" = set; then | |
1923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1924 | else | |
1925 | cat >conftest.$ac_ext <<_ACEOF | |
1926 | /* confdefs.h. */ | |
1927 | _ACEOF | |
1928 | cat confdefs.h >>conftest.$ac_ext | |
1929 | cat >>conftest.$ac_ext <<_ACEOF | |
1930 | /* end confdefs.h. */ | |
1931 | ||
1932 | int | |
1933 | main () | |
1934 | { | |
1935 | ||
1936 | ; | |
1937 | return 0; | |
1938 | } | |
1939 | _ACEOF | |
1940 | rm -f conftest.o conftest.obj | |
1941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1942 | (eval $ac_compile) 2>&5 | |
1943 | ac_status=$? | |
1944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1945 | (exit $ac_status); }; then | |
1946 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1947 | case $ac_file in | |
1948 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1949 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1950 | break;; | |
1951 | esac | |
1952 | done | |
1953 | else | |
1954 | echo "$as_me: failed program was:" >&5 | |
1955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1956 | ||
1957 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1958 | See \`config.log' for more details." >&5 | |
1959 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1960 | See \`config.log' for more details." >&2;} | |
1961 | { (exit 1); exit 1; }; } | |
1962 | fi | |
1963 | ||
1964 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1965 | fi | |
1966 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1967 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1968 | OBJEXT=$ac_cv_objext | |
1969 | ac_objext=$OBJEXT | |
1970 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1971 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1972 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1974 | else | |
1975 | cat >conftest.$ac_ext <<_ACEOF | |
1976 | /* confdefs.h. */ | |
1977 | _ACEOF | |
1978 | cat confdefs.h >>conftest.$ac_ext | |
1979 | cat >>conftest.$ac_ext <<_ACEOF | |
1980 | /* end confdefs.h. */ | |
1981 | ||
1982 | int | |
1983 | main () | |
1984 | { | |
1985 | #ifndef __GNUC__ | |
1986 | choke me | |
1987 | #endif | |
1988 | ||
1989 | ; | |
1990 | return 0; | |
1991 | } | |
1992 | _ACEOF | |
1993 | rm -f conftest.$ac_objext | |
1994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1995 | (eval $ac_compile) 2>conftest.er1 | |
1996 | ac_status=$? | |
1997 | grep -v '^ *+' conftest.er1 >conftest.err | |
1998 | rm -f conftest.er1 | |
1999 | cat conftest.err >&5 | |
2000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2001 | (exit $ac_status); } && | |
6ec7057a | 2002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2004 | (eval $ac_try) 2>&5 | |
2005 | ac_status=$? | |
2006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2007 | (exit $ac_status); }; } && | |
2008 | { ac_try='test -s conftest.$ac_objext' | |
2009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2010 | (eval $ac_try) 2>&5 | |
2011 | ac_status=$? | |
2012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2013 | (exit $ac_status); }; }; then | |
2014 | ac_compiler_gnu=yes | |
2015 | else | |
2016 | echo "$as_me: failed program was:" >&5 | |
2017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2018 | ||
2019 | ac_compiler_gnu=no | |
2020 | fi | |
2021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2022 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2023 | ||
2024 | fi | |
2025 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2026 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2027 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2028 | ac_test_CFLAGS=${CFLAGS+set} | |
2029 | ac_save_CFLAGS=$CFLAGS | |
2030 | CFLAGS="-g" | |
2031 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2032 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2033 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2035 | else | |
2036 | cat >conftest.$ac_ext <<_ACEOF | |
2037 | /* confdefs.h. */ | |
2038 | _ACEOF | |
2039 | cat confdefs.h >>conftest.$ac_ext | |
2040 | cat >>conftest.$ac_ext <<_ACEOF | |
2041 | /* end confdefs.h. */ | |
2042 | ||
2043 | int | |
2044 | main () | |
2045 | { | |
2046 | ||
2047 | ; | |
2048 | return 0; | |
2049 | } | |
2050 | _ACEOF | |
2051 | rm -f conftest.$ac_objext | |
2052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2053 | (eval $ac_compile) 2>conftest.er1 | |
2054 | ac_status=$? | |
2055 | grep -v '^ *+' conftest.er1 >conftest.err | |
2056 | rm -f conftest.er1 | |
2057 | cat conftest.err >&5 | |
2058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2059 | (exit $ac_status); } && | |
6ec7057a | 2060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2062 | (eval $ac_try) 2>&5 | |
2063 | ac_status=$? | |
2064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2065 | (exit $ac_status); }; } && | |
2066 | { ac_try='test -s conftest.$ac_objext' | |
2067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2068 | (eval $ac_try) 2>&5 | |
2069 | ac_status=$? | |
2070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2071 | (exit $ac_status); }; }; then | |
2072 | ac_cv_prog_cc_g=yes | |
2073 | else | |
2074 | echo "$as_me: failed program was:" >&5 | |
2075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2076 | ||
2077 | ac_cv_prog_cc_g=no | |
2078 | fi | |
2079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2080 | fi | |
2081 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2082 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2083 | if test "$ac_test_CFLAGS" = set; then | |
2084 | CFLAGS=$ac_save_CFLAGS | |
2085 | elif test $ac_cv_prog_cc_g = yes; then | |
2086 | if test "$GCC" = yes; then | |
2087 | CFLAGS="-g -O2" | |
2088 | else | |
2089 | CFLAGS="-g" | |
2090 | fi | |
2091 | else | |
2092 | if test "$GCC" = yes; then | |
2093 | CFLAGS="-O2" | |
2094 | else | |
2095 | CFLAGS= | |
2096 | fi | |
2097 | fi | |
2098 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2099 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2100 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2102 | else | |
2103 | ac_cv_prog_cc_stdc=no | |
2104 | ac_save_CC=$CC | |
2105 | cat >conftest.$ac_ext <<_ACEOF | |
2106 | /* confdefs.h. */ | |
2107 | _ACEOF | |
2108 | cat confdefs.h >>conftest.$ac_ext | |
2109 | cat >>conftest.$ac_ext <<_ACEOF | |
2110 | /* end confdefs.h. */ | |
2111 | #include <stdarg.h> | |
2112 | #include <stdio.h> | |
2113 | #include <sys/types.h> | |
2114 | #include <sys/stat.h> | |
2115 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2116 | struct buf { int x; }; | |
2117 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2118 | static char *e (p, i) | |
2119 | char **p; | |
2120 | int i; | |
2121 | { | |
2122 | return p[i]; | |
2123 | } | |
2124 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2125 | { | |
2126 | char *s; | |
2127 | va_list v; | |
2128 | va_start (v,p); | |
2129 | s = g (p, va_arg (v,int)); | |
2130 | va_end (v); | |
2131 | return s; | |
2132 | } | |
2133 | ||
2134 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2135 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2136 | These don't provoke an error unfortunately, instead are silently treated | |
2137 | as 'x'. The following induces an error, until -std1 is added to get | |
2138 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2139 | array size at least. It's necessary to write '\x00'==0 to get something | |
2140 | that's true only with -std1. */ | |
2141 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2142 | ||
2143 | int test (int i, double x); | |
2144 | struct s1 {int (*f) (int a);}; | |
2145 | struct s2 {int (*f) (double a);}; | |
2146 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2147 | int argc; | |
2148 | char **argv; | |
2149 | int | |
2150 | main () | |
2151 | { | |
2152 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2153 | ; | |
2154 | return 0; | |
2155 | } | |
2156 | _ACEOF | |
2157 | # Don't try gcc -ansi; that turns off useful extensions and | |
2158 | # breaks some systems' header files. | |
2159 | # AIX -qlanglvl=ansi | |
2160 | # Ultrix and OSF/1 -std1 | |
2161 | # HP-UX 10.20 and later -Ae | |
2162 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2163 | # SVR4 -Xc -D__EXTENSIONS__ | |
2164 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2165 | do | |
2166 | CC="$ac_save_CC $ac_arg" | |
2167 | rm -f conftest.$ac_objext | |
2168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2169 | (eval $ac_compile) 2>conftest.er1 | |
2170 | ac_status=$? | |
2171 | grep -v '^ *+' conftest.er1 >conftest.err | |
2172 | rm -f conftest.er1 | |
2173 | cat conftest.err >&5 | |
2174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2175 | (exit $ac_status); } && | |
6ec7057a | 2176 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2178 | (eval $ac_try) 2>&5 | |
2179 | ac_status=$? | |
2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2181 | (exit $ac_status); }; } && | |
2182 | { ac_try='test -s conftest.$ac_objext' | |
2183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2184 | (eval $ac_try) 2>&5 | |
2185 | ac_status=$? | |
2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2187 | (exit $ac_status); }; }; then | |
2188 | ac_cv_prog_cc_stdc=$ac_arg | |
2189 | break | |
2190 | else | |
2191 | echo "$as_me: failed program was:" >&5 | |
2192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2193 | ||
2194 | fi | |
2195 | rm -f conftest.err conftest.$ac_objext | |
2196 | done | |
2197 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2198 | CC=$ac_save_CC | |
2199 | ||
2200 | fi | |
2201 | ||
2202 | case "x$ac_cv_prog_cc_stdc" in | |
2203 | x|xno) | |
2204 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2205 | echo "${ECHO_T}none needed" >&6 ;; | |
2206 | *) | |
2207 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2208 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2209 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2210 | esac | |
2211 | ||
2212 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2213 | # in C++ we need to declare it. In case someone uses the same compiler | |
2214 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2215 | # the declaration of exit, since it's the most demanding environment. | |
2216 | cat >conftest.$ac_ext <<_ACEOF | |
2217 | #ifndef __cplusplus | |
2218 | choke me | |
2219 | #endif | |
2220 | _ACEOF | |
2221 | rm -f conftest.$ac_objext | |
2222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2223 | (eval $ac_compile) 2>conftest.er1 | |
2224 | ac_status=$? | |
2225 | grep -v '^ *+' conftest.er1 >conftest.err | |
2226 | rm -f conftest.er1 | |
2227 | cat conftest.err >&5 | |
2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2229 | (exit $ac_status); } && | |
6ec7057a | 2230 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2232 | (eval $ac_try) 2>&5 | |
2233 | ac_status=$? | |
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2235 | (exit $ac_status); }; } && | |
2236 | { ac_try='test -s conftest.$ac_objext' | |
2237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2238 | (eval $ac_try) 2>&5 | |
2239 | ac_status=$? | |
2240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2241 | (exit $ac_status); }; }; then | |
2242 | for ac_declaration in \ | |
2243 | '' \ | |
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 | |
2251 | /* confdefs.h. */ | |
2252 | _ACEOF | |
2253 | cat confdefs.h >>conftest.$ac_ext | |
2254 | cat >>conftest.$ac_ext <<_ACEOF | |
2255 | /* end confdefs.h. */ | |
2256 | $ac_declaration | |
2257 | #include <stdlib.h> | |
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 | |
2268 | (eval $ac_compile) 2>conftest.er1 | |
2269 | ac_status=$? | |
2270 | grep -v '^ *+' conftest.er1 >conftest.err | |
2271 | rm -f conftest.er1 | |
2272 | cat conftest.err >&5 | |
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2274 | (exit $ac_status); } && | |
6ec7057a | 2275 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2277 | (eval $ac_try) 2>&5 | |
2278 | ac_status=$? | |
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2280 | (exit $ac_status); }; } && | |
2281 | { ac_try='test -s conftest.$ac_objext' | |
2282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2283 | (eval $ac_try) 2>&5 | |
2284 | ac_status=$? | |
2285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2286 | (exit $ac_status); }; }; then | |
2287 | : | |
2288 | else | |
2289 | echo "$as_me: failed program was:" >&5 | |
2290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2291 | ||
2292 | continue | |
2293 | fi | |
2294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2295 | cat >conftest.$ac_ext <<_ACEOF | |
2296 | /* confdefs.h. */ | |
2297 | _ACEOF | |
2298 | cat confdefs.h >>conftest.$ac_ext | |
2299 | cat >>conftest.$ac_ext <<_ACEOF | |
2300 | /* end confdefs.h. */ | |
2301 | $ac_declaration | |
2302 | int | |
2303 | main () | |
2304 | { | |
2305 | exit (42); | |
2306 | ; | |
2307 | return 0; | |
2308 | } | |
2309 | _ACEOF | |
2310 | rm -f conftest.$ac_objext | |
2311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2312 | (eval $ac_compile) 2>conftest.er1 | |
2313 | ac_status=$? | |
2314 | grep -v '^ *+' conftest.er1 >conftest.err | |
2315 | rm -f conftest.er1 | |
2316 | cat conftest.err >&5 | |
2317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2318 | (exit $ac_status); } && | |
6ec7057a | 2319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2321 | (eval $ac_try) 2>&5 | |
2322 | ac_status=$? | |
2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2324 | (exit $ac_status); }; } && | |
2325 | { ac_try='test -s conftest.$ac_objext' | |
2326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2327 | (eval $ac_try) 2>&5 | |
2328 | ac_status=$? | |
2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2330 | (exit $ac_status); }; }; then | |
2331 | break | |
2332 | else | |
2333 | echo "$as_me: failed program was:" >&5 | |
2334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2335 | ||
2336 | fi | |
2337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2338 | done | |
2339 | rm -f conftest* | |
2340 | if test -n "$ac_declaration"; then | |
2341 | echo '#ifdef __cplusplus' >>confdefs.h | |
2342 | echo $ac_declaration >>confdefs.h | |
2343 | echo '#endif' >>confdefs.h | |
2344 | fi | |
2345 | ||
2346 | else | |
2347 | echo "$as_me: failed program was:" >&5 | |
2348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2349 | ||
2350 | fi | |
2351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2352 | ac_ext=c | |
2353 | ac_cpp='$CPP $CPPFLAGS' | |
2354 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2355 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2356 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2357 | ||
2358 | ||
f5385ebf AM |
2359 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2360 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2361 | if test "${ac_cv_search_strerror+set}" = set; then | |
5464f5a1 NN |
2362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2363 | else | |
f5385ebf AM |
2364 | ac_func_search_save_LIBS=$LIBS |
2365 | ac_cv_search_strerror=no | |
5464f5a1 NN |
2366 | cat >conftest.$ac_ext <<_ACEOF |
2367 | /* confdefs.h. */ | |
2368 | _ACEOF | |
2369 | cat confdefs.h >>conftest.$ac_ext | |
2370 | cat >>conftest.$ac_ext <<_ACEOF | |
2371 | /* end confdefs.h. */ | |
2372 | ||
2373 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2374 | #ifdef __cplusplus | |
2375 | extern "C" | |
2376 | #endif | |
2377 | /* We use char because int might match the return type of a gcc2 | |
2378 | builtin and then its argument prototype would still apply. */ | |
2379 | char strerror (); | |
2380 | int | |
2381 | main () | |
2382 | { | |
2383 | strerror (); | |
2384 | ; | |
2385 | return 0; | |
2386 | } | |
2387 | _ACEOF | |
2388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2390 | (eval $ac_link) 2>conftest.er1 | |
2391 | ac_status=$? | |
2392 | grep -v '^ *+' conftest.er1 >conftest.err | |
2393 | rm -f conftest.er1 | |
2394 | cat conftest.err >&5 | |
2395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2396 | (exit $ac_status); } && | |
6ec7057a | 2397 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2399 | (eval $ac_try) 2>&5 | |
2400 | ac_status=$? | |
2401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2402 | (exit $ac_status); }; } && | |
2403 | { ac_try='test -s conftest$ac_exeext' | |
2404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2405 | (eval $ac_try) 2>&5 | |
2406 | ac_status=$? | |
2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2408 | (exit $ac_status); }; }; then | |
f5385ebf | 2409 | ac_cv_search_strerror="none required" |
5464f5a1 NN |
2410 | else |
2411 | echo "$as_me: failed program was:" >&5 | |
2412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2413 | ||
5464f5a1 NN |
2414 | fi |
2415 | rm -f conftest.err conftest.$ac_objext \ | |
2416 | conftest$ac_exeext conftest.$ac_ext | |
f5385ebf AM |
2417 | if test "$ac_cv_search_strerror" = no; then |
2418 | for ac_lib in cposix; do | |
2419 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2420 | cat >conftest.$ac_ext <<_ACEOF | |
2421 | /* confdefs.h. */ | |
2422 | _ACEOF | |
2423 | cat confdefs.h >>conftest.$ac_ext | |
2424 | cat >>conftest.$ac_ext <<_ACEOF | |
2425 | /* end confdefs.h. */ | |
2426 | ||
2427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2428 | #ifdef __cplusplus | |
2429 | extern "C" | |
2430 | #endif | |
2431 | /* We use char because int might match the return type of a gcc2 | |
2432 | builtin and then its argument prototype would still apply. */ | |
2433 | char strerror (); | |
2434 | int | |
2435 | main () | |
2436 | { | |
2437 | strerror (); | |
2438 | ; | |
2439 | return 0; | |
2440 | } | |
2441 | _ACEOF | |
2442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2444 | (eval $ac_link) 2>conftest.er1 | |
2445 | ac_status=$? | |
2446 | grep -v '^ *+' conftest.er1 >conftest.err | |
2447 | rm -f conftest.er1 | |
2448 | cat conftest.err >&5 | |
2449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2450 | (exit $ac_status); } && | |
6ec7057a | 2451 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f5385ebf AM |
2452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2453 | (eval $ac_try) 2>&5 | |
2454 | ac_status=$? | |
2455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2456 | (exit $ac_status); }; } && | |
2457 | { ac_try='test -s conftest$ac_exeext' | |
2458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2459 | (eval $ac_try) 2>&5 | |
2460 | ac_status=$? | |
2461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2462 | (exit $ac_status); }; }; then | |
2463 | ac_cv_search_strerror="-l$ac_lib" | |
2464 | break | |
2465 | else | |
2466 | echo "$as_me: failed program was:" >&5 | |
2467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2468 | ||
5464f5a1 | 2469 | fi |
f5385ebf AM |
2470 | rm -f conftest.err conftest.$ac_objext \ |
2471 | conftest$ac_exeext conftest.$ac_ext | |
2472 | done | |
5464f5a1 | 2473 | fi |
f5385ebf AM |
2474 | LIBS=$ac_func_search_save_LIBS |
2475 | fi | |
2476 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2477 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2478 | if test "$ac_cv_search_strerror" != no; then | |
2479 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
5464f5a1 | 2480 | |
f5385ebf | 2481 | fi |
5464f5a1 NN |
2482 | |
2483 | ||
f5385ebf | 2484 | am__api_version="1.9" |
5464f5a1 NN |
2485 | # Find a good install program. We prefer a C program (faster), |
2486 | # so one script is as good as another. But avoid the broken or | |
2487 | # incompatible versions: | |
2488 | # SysV /etc/install, /usr/sbin/install | |
2489 | # SunOS /usr/etc/install | |
2490 | # IRIX /sbin/install | |
2491 | # AIX /bin/install | |
2492 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
252b5132 RH |
2493 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2494 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2495 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5464f5a1 | 2496 | # OS/2's system install, which has a completely different semantic |
252b5132 | 2497 | # ./install, which can be erroneously created by make from ./install.sh. |
5464f5a1 NN |
2498 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2499 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 2500 | if test -z "$INSTALL"; then |
5464f5a1 NN |
2501 | if test "${ac_cv_path_install+set}" = set; then |
2502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2503 | else |
5464f5a1 NN |
2504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2505 | for as_dir in $PATH | |
2506 | do | |
2507 | IFS=$as_save_IFS | |
2508 | test -z "$as_dir" && as_dir=. | |
2509 | # Account for people who put trailing slashes in PATH elements. | |
2510 | case $as_dir/ in | |
2511 | ./ | .// | /cC/* | \ | |
2512 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2513 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2514 | /usr/ucb/* ) ;; | |
2515 | *) | |
2516 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2517 | # Don't use installbsd from OSF since it installs stuff as root | |
2518 | # by default. | |
2519 | for ac_prog in ginstall scoinst install; do | |
2520 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2521 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 2522 | if test $ac_prog = install && |
5464f5a1 | 2523 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
2524 | # AIX install. It has an incompatible calling convention. |
2525 | : | |
5464f5a1 NN |
2526 | elif test $ac_prog = install && |
2527 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2528 | # program-specific install script used by HP pwplus--don't use. | |
2529 | : | |
252b5132 | 2530 | else |
5464f5a1 NN |
2531 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2532 | break 3 | |
252b5132 RH |
2533 | fi |
2534 | fi | |
2535 | done | |
5464f5a1 NN |
2536 | done |
2537 | ;; | |
2538 | esac | |
2539 | done | |
2540 | ||
252b5132 RH |
2541 | |
2542 | fi | |
2543 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 2544 | INSTALL=$ac_cv_path_install |
252b5132 RH |
2545 | else |
2546 | # As a last resort, use the slow shell script. We don't cache a | |
2547 | # path for INSTALL within a source directory, because that will | |
2548 | # break other packages using the cache if that directory is | |
2549 | # removed, or if the path is relative. | |
5464f5a1 | 2550 | INSTALL=$ac_install_sh |
252b5132 RH |
2551 | fi |
2552 | fi | |
5464f5a1 NN |
2553 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2554 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2555 | |
2556 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2557 | # It thinks the first close brace ends the variable substitution. | |
2558 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2559 | ||
5464f5a1 | 2560 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2561 | |
2562 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2563 | ||
5464f5a1 NN |
2564 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2565 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2566 | # Just in case |
2567 | sleep 1 | |
f5385ebf | 2568 | echo timestamp > conftest.file |
252b5132 RH |
2569 | # Do `set' in a subshell so we don't clobber the current shell's |
2570 | # arguments. Must try -L first in case configure is actually a | |
2571 | # symlink; some systems play weird games with the mod time of symlinks | |
2572 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2573 | # directory). | |
2574 | if ( | |
f5385ebf | 2575 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2576 | if test "$*" = "X"; then |
2577 | # -L didn't work. | |
f5385ebf | 2578 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2579 | fi |
f5385ebf AM |
2580 | rm -f conftest.file |
2581 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2582 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2583 | |
2584 | # If neither matched, then we have a broken ls. This can happen | |
2585 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2586 | # broken ls alias from the environment. This has actually | |
2587 | # happened. Such a system could not be considered "sane". | |
5464f5a1 NN |
2588 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2589 | alias in your environment" >&5 | |
2590 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2591 | alias in your environment" >&2;} | |
2592 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2593 | fi |
2594 | ||
f5385ebf | 2595 | test "$2" = conftest.file |
252b5132 RH |
2596 | ) |
2597 | then | |
2598 | # Ok. | |
2599 | : | |
2600 | else | |
5464f5a1 NN |
2601 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2602 | Check your system clock" >&5 | |
2603 | echo "$as_me: error: newly created file is older than distributed files! | |
2604 | Check your system clock" >&2;} | |
2605 | { (exit 1); exit 1; }; } | |
252b5132 | 2606 | fi |
5464f5a1 NN |
2607 | echo "$as_me:$LINENO: result: yes" >&5 |
2608 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2609 | test "$program_prefix" != NONE && |
5464f5a1 | 2610 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2611 | # Use a double $ so make ignores it. |
2612 | test "$program_suffix" != NONE && | |
5464f5a1 NN |
2613 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
2614 | # Double any \ or $. echo might interpret backslashes. | |
2615 | # By default was `s,x,x', remove it if useless. | |
2616 | cat <<\_ACEOF >conftest.sed | |
2617 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2618 | _ACEOF | |
2619 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2620 | rm conftest.sed | |
2621 | ||
f5385ebf AM |
2622 | # expand $ac_aux_dir to an absolute path |
2623 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2624 | ||
2625 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2626 | # Use eval to expand $SHELL | |
2627 | if eval "$MISSING --run true"; then | |
2628 | am_missing_run="$MISSING --run " | |
2629 | else | |
2630 | am_missing_run= | |
2631 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2632 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2633 | fi | |
2634 | ||
2635 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2636 | # We used to keeping the `.' as first argument, in order to | |
2637 | # allow $(mkdir_p) to be used without argument. As in | |
2638 | # $(mkdir_p) $(somedir) | |
2639 | # where $(somedir) is conditionally defined. However this is wrong | |
2640 | # for two reasons: | |
2641 | # 1. if the package is installed by a user who cannot write `.' | |
2642 | # make install will fail, | |
2643 | # 2. the above comment should most certainly read | |
2644 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2645 | # so it does not work when $(somedir) is undefined and | |
2646 | # $(DESTDIR) is not. | |
2647 | # To support the latter case, we have to write | |
2648 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2649 | # so the `.' trick is pointless. | |
2650 | mkdir_p='mkdir -p --' | |
2651 | else | |
2652 | # On NextStep and OpenStep, the `mkdir' command does not | |
2653 | # recognize any option. It will interpret all options as | |
2654 | # directories to create, and then abort because `.' already | |
2655 | # exists. | |
2656 | for d in ./-p ./--version; | |
2657 | do | |
2658 | test -d $d && rmdir $d | |
2659 | done | |
2660 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2661 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2662 | mkdir_p='$(mkinstalldirs)' | |
2663 | else | |
2664 | mkdir_p='$(install_sh) -d' | |
2665 | fi | |
2666 | fi | |
2667 | ||
2668 | for ac_prog in gawk mawk nawk awk | |
2669 | do | |
2670 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2671 | set dummy $ac_prog; ac_word=$2 | |
2672 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2674 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2676 | else | |
2677 | if test -n "$AWK"; then | |
2678 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2679 | else | |
2680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2681 | for as_dir in $PATH | |
2682 | do | |
2683 | IFS=$as_save_IFS | |
2684 | test -z "$as_dir" && as_dir=. | |
2685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2686 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2687 | ac_cv_prog_AWK="$ac_prog" | |
2688 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2689 | break 2 | |
2690 | fi | |
2691 | done | |
2692 | done | |
2693 | ||
2694 | fi | |
2695 | fi | |
2696 | AWK=$ac_cv_prog_AWK | |
2697 | if test -n "$AWK"; then | |
2698 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2699 | echo "${ECHO_T}$AWK" >&6 | |
2700 | else | |
2701 | echo "$as_me:$LINENO: result: no" >&5 | |
2702 | echo "${ECHO_T}no" >&6 | |
2703 | fi | |
2704 | ||
2705 | test -n "$AWK" && break | |
2706 | done | |
2707 | ||
5464f5a1 NN |
2708 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2709 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2710 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2711 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2713 | else | |
2714 | cat >conftest.make <<\_ACEOF | |
252b5132 | 2715 | all: |
5464f5a1 NN |
2716 | @echo 'ac_maketemp="$(MAKE)"' |
2717 | _ACEOF | |
252b5132 | 2718 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5464f5a1 | 2719 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
2720 | if test -n "$ac_maketemp"; then |
2721 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2722 | else | |
2723 | eval ac_cv_prog_make_${ac_make}_set=no | |
2724 | fi | |
5464f5a1 | 2725 | rm -f conftest.make |
252b5132 RH |
2726 | fi |
2727 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
5464f5a1 NN |
2728 | echo "$as_me:$LINENO: result: yes" >&5 |
2729 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2730 | SET_MAKE= |
2731 | else | |
5464f5a1 NN |
2732 | echo "$as_me:$LINENO: result: no" >&5 |
2733 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2734 | SET_MAKE="MAKE=${MAKE-make}" |
2735 | fi | |
2736 | ||
f5385ebf AM |
2737 | rm -rf .tst 2>/dev/null |
2738 | mkdir .tst 2>/dev/null | |
2739 | if test -d .tst; then | |
2740 | am__leading_dot=. | |
2741 | else | |
2742 | am__leading_dot=_ | |
2743 | fi | |
2744 | rmdir .tst 2>/dev/null | |
2745 | ||
2746 | DEPDIR="${am__leading_dot}deps" | |
2747 | ||
2748 | ac_config_commands="$ac_config_commands depfiles" | |
2749 | ||
2750 | ||
2751 | am_make=${MAKE-make} | |
2752 | cat > confinc << 'END' | |
2753 | am__doit: | |
2754 | @echo done | |
2755 | .PHONY: am__doit | |
2756 | END | |
2757 | # If we don't find an include directive, just comment out the code. | |
2758 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2759 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2760 | am__include="#" | |
2761 | am__quote= | |
2762 | _am_result=none | |
2763 | # First try GNU make style include. | |
2764 | echo "include confinc" > confmf | |
2765 | # We grep out `Entering directory' and `Leaving directory' | |
2766 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2767 | # In particular we don't look at `^make:' because GNU make might | |
2768 | # be invoked under some other name (usually "gmake"), in which | |
2769 | # case it prints its new name instead of `make'. | |
2770 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2771 | am__include=include | |
2772 | am__quote= | |
2773 | _am_result=GNU | |
2774 | fi | |
2775 | # Now try BSD make style include. | |
2776 | if test "$am__include" = "#"; then | |
2777 | echo '.include "confinc"' > confmf | |
2778 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2779 | am__include=.include | |
2780 | am__quote="\"" | |
2781 | _am_result=BSD | |
2782 | fi | |
2783 | fi | |
2784 | ||
2785 | ||
2786 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2787 | echo "${ECHO_T}$_am_result" >&6 | |
2788 | rm -f confinc confmf | |
2789 | ||
2790 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2791 | if test "${enable_dependency_tracking+set}" = set; then | |
2792 | enableval="$enable_dependency_tracking" | |
2793 | ||
2794 | fi; | |
2795 | if test "x$enable_dependency_tracking" != xno; then | |
2796 | am_depcomp="$ac_aux_dir/depcomp" | |
2797 | AMDEPBACKSLASH='\' | |
2798 | fi | |
2799 | ||
2800 | ||
2801 | if test "x$enable_dependency_tracking" != xno; then | |
2802 | AMDEP_TRUE= | |
2803 | AMDEP_FALSE='#' | |
2804 | else | |
2805 | AMDEP_TRUE='#' | |
2806 | AMDEP_FALSE= | |
2807 | fi | |
6be7c12c | 2808 | |
252b5132 | 2809 | |
252b5132 | 2810 | |
f5385ebf AM |
2811 | # test to see if srcdir already configured |
2812 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2813 | test -f $srcdir/config.status; then | |
5464f5a1 NN |
2814 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2815 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2816 | { (exit 1); exit 1; }; } | |
252b5132 | 2817 | fi |
5464f5a1 | 2818 | |
f5385ebf AM |
2819 | # test whether we have cygpath |
2820 | if test -z "$CYGPATH_W"; then | |
2821 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2822 | CYGPATH_W='cygpath -w' | |
2823 | else | |
2824 | CYGPATH_W=echo | |
2825 | fi | |
2826 | fi | |
2827 | ||
2828 | ||
2829 | # Define the identity of the package. | |
2830 | PACKAGE=bfd | |
664fe1be | 2831 | VERSION=2.16.90 |
f5385ebf AM |
2832 | |
2833 | ||
5464f5a1 | 2834 | cat >>confdefs.h <<_ACEOF |
252b5132 | 2835 | #define PACKAGE "$PACKAGE" |
5464f5a1 | 2836 | _ACEOF |
252b5132 | 2837 | |
5464f5a1 NN |
2838 | |
2839 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 2840 | #define VERSION "$VERSION" |
5464f5a1 | 2841 | _ACEOF |
252b5132 | 2842 | |
f5385ebf AM |
2843 | # Some tools Automake needs. |
2844 | ||
2845 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2846 | ||
2847 | ||
2848 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2849 | ||
2850 | ||
2851 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2852 | ||
2853 | ||
2854 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2855 | ||
2856 | ||
2857 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
6be7c12c | 2858 | |
f5385ebf | 2859 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
6be7c12c | 2860 | |
f5385ebf AM |
2861 | # Installed binaries are usually stripped using `strip' when the user |
2862 | # run `make install-strip'. However `strip' might not be the right | |
2863 | # tool to use in cross-compilation environments, therefore Automake | |
2864 | # will honor the `STRIP' environment variable to overrule this program. | |
2865 | if test "$cross_compiling" != no; then | |
2866 | if test -n "$ac_tool_prefix"; then | |
2867 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2868 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2869 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2871 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2873 | else | |
2874 | if test -n "$STRIP"; then | |
2875 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
252b5132 | 2876 | else |
f5385ebf AM |
2877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2878 | for as_dir in $PATH | |
2879 | do | |
2880 | IFS=$as_save_IFS | |
2881 | test -z "$as_dir" && as_dir=. | |
2882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2884 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2886 | break 2 | |
2887 | fi | |
2888 | done | |
2889 | done | |
2890 | ||
2891 | fi | |
2892 | fi | |
2893 | STRIP=$ac_cv_prog_STRIP | |
2894 | if test -n "$STRIP"; then | |
2895 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2896 | echo "${ECHO_T}$STRIP" >&6 | |
2897 | else | |
2898 | echo "$as_me:$LINENO: result: no" >&5 | |
2899 | echo "${ECHO_T}no" >&6 | |
2900 | fi | |
2901 | ||
252b5132 | 2902 | fi |
f5385ebf AM |
2903 | if test -z "$ac_cv_prog_STRIP"; then |
2904 | ac_ct_STRIP=$STRIP | |
2905 | # Extract the first word of "strip", so it can be a program name with args. | |
2906 | set dummy strip; ac_word=$2 | |
2907 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2909 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2911 | else | |
2912 | if test -n "$ac_ct_STRIP"; then | |
2913 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2914 | else | |
2915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2916 | for as_dir in $PATH | |
2917 | do | |
2918 | IFS=$as_save_IFS | |
2919 | test -z "$as_dir" && as_dir=. | |
2920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2921 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2922 | ac_cv_prog_ac_ct_STRIP="strip" | |
2923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2924 | break 2 | |
2925 | fi | |
2926 | done | |
2927 | done | |
252b5132 | 2928 | |
f5385ebf AM |
2929 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
2930 | fi | |
2931 | fi | |
2932 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2933 | if test -n "$ac_ct_STRIP"; then | |
2934 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2935 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 2936 | else |
f5385ebf AM |
2937 | echo "$as_me:$LINENO: result: no" >&5 |
2938 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2939 | fi |
2940 | ||
f5385ebf | 2941 | STRIP=$ac_ct_STRIP |
252b5132 | 2942 | else |
f5385ebf AM |
2943 | STRIP="$ac_cv_prog_STRIP" |
2944 | fi | |
2945 | ||
252b5132 | 2946 | fi |
f5385ebf AM |
2947 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
2948 | ||
2949 | # We need awk for the "check" target. The system "awk" is bad on | |
2950 | # some platforms. | |
2951 | # Always define AMTAR for backward compatibility. | |
2952 | ||
2953 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2954 | ||
2955 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2956 | ||
252b5132 | 2957 | |
f5385ebf AM |
2958 | |
2959 | ||
2960 | depcc="$CC" am_compiler_list= | |
2961 | ||
2962 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2963 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2964 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2966 | else |
f5385ebf AM |
2967 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2968 | # We make a subdir and do the tests there. Otherwise we can end up | |
2969 | # making bogus files that we don't know about and never remove. For | |
2970 | # instance it was reported that on HP-UX the gcc test will end up | |
2971 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2972 | # in D'. | |
2973 | mkdir conftest.dir | |
2974 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2975 | # using a relative directory. | |
2976 | cp "$am_depcomp" conftest.dir | |
2977 | cd conftest.dir | |
2978 | # We will build objects and dependencies in a subdirectory because | |
2979 | # it helps to detect inapplicable dependency modes. For instance | |
2980 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2981 | # side effect of compilation, but ICC will put the dependencies in | |
2982 | # the current directory while Tru64 will put them in the object | |
2983 | # directory. | |
2984 | mkdir sub | |
2985 | ||
2986 | am_cv_CC_dependencies_compiler_type=none | |
2987 | if test "$am_compiler_list" = ""; then | |
2988 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2989 | fi | |
2990 | for depmode in $am_compiler_list; do | |
2991 | # Setup a source with many dependencies, because some compilers | |
2992 | # like to wrap large dependency lists on column 80 (with \), and | |
2993 | # we should not choose a depcomp mode which is confused by this. | |
2994 | # | |
2995 | # We need to recreate these files for each test, as the compiler may | |
2996 | # overwrite some of them when testing with obscure command lines. | |
2997 | # This happens at least with the AIX C compiler. | |
2998 | : > sub/conftest.c | |
2999 | for i in 1 2 3 4 5 6; do | |
3000 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3001 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3002 | # Solaris 8's {/usr,}/bin/sh. | |
3003 | touch sub/conftst$i.h | |
3004 | done | |
3005 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3006 | ||
3007 | case $depmode in | |
3008 | nosideeffect) | |
3009 | # after this tag, mechanisms are not by side-effect, so they'll | |
3010 | # only be used when explicitly requested | |
3011 | if test "x$enable_dependency_tracking" = xyes; then | |
3012 | continue | |
3013 | else | |
3014 | break | |
3015 | fi | |
3016 | ;; | |
3017 | none) break ;; | |
3018 | esac | |
3019 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3020 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3021 | # handle `-M -o', and we need to detect this. | |
3022 | if depmode=$depmode \ | |
3023 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3024 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3025 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3026 | >/dev/null 2>conftest.err && | |
3027 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3028 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3029 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3030 | # icc doesn't choke on unknown options, it will just issue warnings | |
3031 | # or remarks (even with -Werror). So we grep stderr for any message | |
3032 | # that says an option was ignored or not supported. | |
3033 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3034 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3035 | # The diagnosis changed in icc 8.0: | |
3036 | # icc: Command line remark: option '-MP' not supported | |
3037 | if (grep 'ignoring option' conftest.err || | |
3038 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3039 | am_cv_CC_dependencies_compiler_type=$depmode | |
3040 | break | |
3041 | fi | |
3042 | fi | |
3043 | done | |
3044 | ||
3045 | cd .. | |
3046 | rm -rf conftest.dir | |
3047 | else | |
3048 | am_cv_CC_dependencies_compiler_type=none | |
3049 | fi | |
3050 | ||
252b5132 | 3051 | fi |
f5385ebf AM |
3052 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3053 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3054 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
252b5132 | 3055 | |
f5385ebf AM |
3056 | |
3057 | ||
3058 | if | |
3059 | test "x$enable_dependency_tracking" != xno \ | |
3060 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3061 | am__fastdepCC_TRUE= | |
3062 | am__fastdepCC_FALSE='#' | |
252b5132 | 3063 | else |
f5385ebf AM |
3064 | am__fastdepCC_TRUE='#' |
3065 | am__fastdepCC_FALSE= | |
252b5132 RH |
3066 | fi |
3067 | ||
6be7c12c | 3068 | |
e43d48cc | 3069 | |
f5385ebf | 3070 | |
5464f5a1 NN |
3071 | if test -n "$ac_tool_prefix"; then |
3072 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
252b5132 | 3073 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5464f5a1 NN |
3074 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3075 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3076 | if test "${ac_cv_prog_AR+set}" = set; then | |
3077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3078 | else |
3079 | if test -n "$AR"; then | |
3080 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3081 | else | |
5464f5a1 NN |
3082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3083 | for as_dir in $PATH | |
3084 | do | |
3085 | IFS=$as_save_IFS | |
3086 | test -z "$as_dir" && as_dir=. | |
3087 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3088 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3089 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3090 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3091 | break 2 | |
3092 | fi | |
3093 | done | |
3094 | done | |
3095 | ||
252b5132 RH |
3096 | fi |
3097 | fi | |
5464f5a1 | 3098 | AR=$ac_cv_prog_AR |
252b5132 | 3099 | if test -n "$AR"; then |
5464f5a1 NN |
3100 | echo "$as_me:$LINENO: result: $AR" >&5 |
3101 | echo "${ECHO_T}$AR" >&6 | |
252b5132 | 3102 | else |
5464f5a1 NN |
3103 | echo "$as_me:$LINENO: result: no" >&5 |
3104 | echo "${ECHO_T}no" >&6 | |
3105 | fi | |
3106 | ||
252b5132 | 3107 | fi |
5464f5a1 NN |
3108 | if test -z "$ac_cv_prog_AR"; then |
3109 | ac_ct_AR=$AR | |
3110 | # Extract the first word of "ar", so it can be a program name with args. | |
3111 | set dummy ar; ac_word=$2 | |
3112 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3113 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3114 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3116 | else | |
3117 | if test -n "$ac_ct_AR"; then | |
3118 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3119 | else | |
3120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3121 | for as_dir in $PATH | |
3122 | do | |
3123 | IFS=$as_save_IFS | |
3124 | test -z "$as_dir" && as_dir=. | |
3125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3126 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3127 | ac_cv_prog_ac_ct_AR="ar" | |
3128 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3129 | break 2 | |
3130 | fi | |
3131 | done | |
3132 | done | |
252b5132 | 3133 | |
5464f5a1 NN |
3134 | fi |
3135 | fi | |
3136 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3137 | if test -n "$ac_ct_AR"; then | |
3138 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3139 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3140 | else | |
3141 | echo "$as_me:$LINENO: result: no" >&5 | |
3142 | echo "${ECHO_T}no" >&6 | |
3143 | fi | |
252b5132 | 3144 | |
5464f5a1 NN |
3145 | AR=$ac_ct_AR |
3146 | else | |
3147 | AR="$ac_cv_prog_AR" | |
3148 | fi | |
6be7c12c | 3149 | |
5464f5a1 NN |
3150 | if test -n "$ac_tool_prefix"; then |
3151 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
252b5132 | 3152 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5464f5a1 NN |
3153 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3154 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3155 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3157 | else |
3158 | if test -n "$RANLIB"; then | |
3159 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3160 | else | |
5464f5a1 NN |
3161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3162 | for as_dir in $PATH | |
3163 | do | |
3164 | IFS=$as_save_IFS | |
3165 | test -z "$as_dir" && as_dir=. | |
3166 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3167 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3168 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3169 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3170 | break 2 | |
3171 | fi | |
3172 | done | |
3173 | done | |
3174 | ||
252b5132 RH |
3175 | fi |
3176 | fi | |
5464f5a1 | 3177 | RANLIB=$ac_cv_prog_RANLIB |
252b5132 | 3178 | if test -n "$RANLIB"; then |
5464f5a1 NN |
3179 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3180 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 3181 | else |
5464f5a1 NN |
3182 | echo "$as_me:$LINENO: result: no" >&5 |
3183 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3184 | fi |
3185 | ||
5464f5a1 | 3186 | fi |
252b5132 | 3187 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3188 | ac_ct_RANLIB=$RANLIB |
252b5132 RH |
3189 | # Extract the first word of "ranlib", so it can be a program name with args. |
3190 | set dummy ranlib; ac_word=$2 | |
5464f5a1 NN |
3191 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3193 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3195 | else |
5464f5a1 NN |
3196 | if test -n "$ac_ct_RANLIB"; then |
3197 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3198 | else |
5464f5a1 NN |
3199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3200 | for as_dir in $PATH | |
3201 | do | |
3202 | IFS=$as_save_IFS | |
3203 | test -z "$as_dir" && as_dir=. | |
3204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3205 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3206 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3208 | break 2 | |
3209 | fi | |
3210 | done | |
3211 | done | |
3212 | ||
3213 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
3214 | fi |
3215 | fi | |
5464f5a1 NN |
3216 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3217 | if test -n "$ac_ct_RANLIB"; then | |
3218 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3219 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 3220 | else |
5464f5a1 NN |
3221 | echo "$as_me:$LINENO: result: no" >&5 |
3222 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3223 | fi |
3224 | ||
5464f5a1 | 3225 | RANLIB=$ac_ct_RANLIB |
252b5132 | 3226 | else |
5464f5a1 | 3227 | RANLIB="$ac_cv_prog_RANLIB" |
6be7c12c AO |
3228 | fi |
3229 | ||
252b5132 RH |
3230 | |
3231 | # Check whether --enable-shared or --disable-shared was given. | |
3232 | if test "${enable_shared+set}" = set; then | |
3233 | enableval="$enable_shared" | |
3234 | p=${PACKAGE-default} | |
55c80943 | 3235 | case $enableval in |
252b5132 RH |
3236 | yes) enable_shared=yes ;; |
3237 | no) enable_shared=no ;; | |
3238 | *) | |
3239 | enable_shared=no | |
3240 | # Look at the argument we got. We use all the common list separators. | |
3241 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3242 | for pkg in $enableval; do | |
3243 | if test "X$pkg" = "X$p"; then | |
3244 | enable_shared=yes | |
3245 | fi | |
3246 | done | |
3247 | IFS="$ac_save_ifs" | |
3248 | ;; | |
3249 | esac | |
3250 | else | |
3251 | enable_shared=no | |
5464f5a1 | 3252 | fi; |
252b5132 RH |
3253 | |
3254 | # Check whether --enable-static or --disable-static was given. | |
3255 | if test "${enable_static+set}" = set; then | |
3256 | enableval="$enable_static" | |
3257 | p=${PACKAGE-default} | |
55c80943 | 3258 | case $enableval in |
252b5132 RH |
3259 | yes) enable_static=yes ;; |
3260 | no) enable_static=no ;; | |
3261 | *) | |
3262 | enable_static=no | |
3263 | # Look at the argument we got. We use all the common list separators. | |
3264 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3265 | for pkg in $enableval; do | |
3266 | if test "X$pkg" = "X$p"; then | |
3267 | enable_static=yes | |
3268 | fi | |
3269 | done | |
3270 | IFS="$ac_save_ifs" | |
3271 | ;; | |
3272 | esac | |
3273 | else | |
3274 | enable_static=yes | |
5464f5a1 | 3275 | fi; |
b2ef150d ILT |
3276 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3277 | if test "${enable_fast_install+set}" = set; then | |
3278 | enableval="$enable_fast_install" | |
3279 | p=${PACKAGE-default} | |
55c80943 | 3280 | case $enableval in |
b2ef150d ILT |
3281 | yes) enable_fast_install=yes ;; |
3282 | no) enable_fast_install=no ;; | |
3283 | *) | |
3284 | enable_fast_install=no | |
3285 | # Look at the argument we got. We use all the common list separators. | |
3286 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3287 | for pkg in $enableval; do | |
3288 | if test "X$pkg" = "X$p"; then | |
3289 | enable_fast_install=yes | |
3290 | fi | |
3291 | done | |
3292 | IFS="$ac_save_ifs" | |
3293 | ;; | |
3294 | esac | |
3295 | else | |
3296 | enable_fast_install=yes | |
5464f5a1 | 3297 | fi; |
c5d1701e | 3298 | |
252b5132 RH |
3299 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3300 | if test "${with_gnu_ld+set}" = set; then | |
3301 | withval="$with_gnu_ld" | |
3302 | test "$withval" = no || with_gnu_ld=yes | |
3303 | else | |
3304 | with_gnu_ld=no | |
5464f5a1 | 3305 | fi; |
252b5132 | 3306 | ac_prog=ld |
55c80943 | 3307 | if test "$GCC" = yes; then |
252b5132 | 3308 | # Check if gcc -print-prog-name=ld gives a path. |
5464f5a1 NN |
3309 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3310 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
ac48eca1 AO |
3311 | case $host in |
3312 | *-*-mingw*) | |
3313 | # gcc leaves a trailing carriage return which upsets mingw | |
3314 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3315 | *) | |
3316 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3317 | esac | |
55c80943 | 3318 | case $ac_prog in |
b2ef150d | 3319 | # Accept absolute paths. |
a74801ba | 3320 | [\\/]* | [A-Za-z]:[\\/]*) |
b2ef150d ILT |
3321 | re_direlt='/[^/][^/]*/\.\./' |
3322 | # Canonicalize the path of ld | |
3323 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3324 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3325 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3326 | done | |
3327 | test -z "$LD" && LD="$ac_prog" | |
3328 | ;; | |
252b5132 RH |
3329 | "") |
3330 | # If it fails, then pretend we aren't using GCC. | |
3331 | ac_prog=ld | |
3332 | ;; | |
3333 | *) | |
3334 | # If it is relative, then search for the first ld in PATH. | |
3335 | with_gnu_ld=unknown | |
3336 | ;; | |
3337 | esac | |
3338 | elif test "$with_gnu_ld" = yes; then | |
5464f5a1 NN |
3339 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3340 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
252b5132 | 3341 | else |
5464f5a1 NN |
3342 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3343 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
252b5132 | 3344 | fi |
5464f5a1 NN |
3345 | if test "${lt_cv_path_LD+set}" = set; then |
3346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3347 | else |
3348 | if test -z "$LD"; then | |
a74801ba | 3349 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3350 | for ac_dir in $PATH; do |
3351 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 3352 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
55c80943 | 3353 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
3354 | # Check to see if the program is GNU ld. I'd rather use --version, |
3355 | # but apparently some GNU ld's only accept -v. | |
3356 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
55c80943 | 3357 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
3358 | test "$with_gnu_ld" != no && break |
3359 | else | |
b2ef150d | 3360 | test "$with_gnu_ld" != yes && break |
252b5132 RH |
3361 | fi |
3362 | fi | |
3363 | done | |
3364 | IFS="$ac_save_ifs" | |
3365 | else | |
55c80943 | 3366 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
3367 | fi |
3368 | fi | |
3369 | ||
55c80943 | 3370 | LD="$lt_cv_path_LD" |
252b5132 | 3371 | if test -n "$LD"; then |
5464f5a1 NN |
3372 | echo "$as_me:$LINENO: result: $LD" >&5 |
3373 | echo "${ECHO_T}$LD" >&6 | |
252b5132 | 3374 | else |
5464f5a1 NN |
3375 | echo "$as_me:$LINENO: result: no" >&5 |
3376 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3377 | fi |
5464f5a1 NN |
3378 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3379 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3380 | { (exit 1); exit 1; }; } | |
3381 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3382 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3383 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3385 | else |
3386 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3387 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
55c80943 | 3388 | lt_cv_prog_gnu_ld=yes |
252b5132 | 3389 | else |
55c80943 | 3390 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
3391 | fi |
3392 | fi | |
5464f5a1 NN |
3393 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3394 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
55c80943 | 3395 | with_gnu_ld=$lt_cv_prog_gnu_ld |
252b5132 | 3396 | |
6be7c12c | 3397 | |
5464f5a1 NN |
3398 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3399 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3400 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3402 | else |
3403 | lt_cv_ld_reload_flag='-r' | |
3404 | fi | |
5464f5a1 NN |
3405 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3406 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
ac48eca1 AO |
3407 | reload_flag=$lt_cv_ld_reload_flag |
3408 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3409 | ||
5464f5a1 NN |
3410 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3411 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3412 | if test "${lt_cv_path_NM+set}" = set; then | |
3413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3414 | else |
3415 | if test -n "$NM"; then | |
3416 | # Let the user override the test. | |
55c80943 | 3417 | lt_cv_path_NM="$NM" |
252b5132 | 3418 | else |
a74801ba | 3419 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2ef150d | 3420 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
252b5132 | 3421 | test -z "$ac_dir" && ac_dir=. |
ac48eca1 AO |
3422 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3423 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
3424 | # Check to see if the nm accepts a BSD-compat flag. |
3425 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3426 | # nm: unknown option "B" ignored | |
90f2472a AO |
3427 | # Tru64's nm complains that /dev/null is an invalid object file |
3428 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
55c80943 | 3429 | lt_cv_path_NM="$tmp_nm -B" |
b2ef150d | 3430 | break |
ac48eca1 | 3431 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
55c80943 | 3432 | lt_cv_path_NM="$tmp_nm -p" |
b2ef150d | 3433 | break |
252b5132 | 3434 | else |
55c80943 | 3435 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
b2ef150d | 3436 | continue # so that we can try to find one that supports BSD flags |
252b5132 | 3437 | fi |
252b5132 RH |
3438 | fi |
3439 | done | |
3440 | IFS="$ac_save_ifs" | |
55c80943 | 3441 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
3442 | fi |
3443 | fi | |
3444 | ||
55c80943 | 3445 | NM="$lt_cv_path_NM" |
5464f5a1 NN |
3446 | echo "$as_me:$LINENO: result: $NM" >&5 |
3447 | echo "${ECHO_T}$NM" >&6 | |
252b5132 | 3448 | |
5464f5a1 NN |
3449 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3450 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3451 | LN_S=$as_ln_s | |
3452 | if test "$LN_S" = "ln -s"; then | |
3453 | echo "$as_me:$LINENO: result: yes" >&5 | |
3454 | echo "${ECHO_T}yes" >&6 | |
6be7c12c | 3455 | else |
5464f5a1 NN |
3456 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3457 | echo "${ECHO_T}no, using $LN_S" >&6 | |
252b5132 RH |
3458 | fi |
3459 | ||
5464f5a1 NN |
3460 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3461 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3462 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3464 | else |
d64552c5 | 3465 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
3466 | lt_cv_file_magic_test_file= |
3467 | lt_cv_deplibs_check_method='unknown' | |
3468 | # Need to set the preceding variable on all platforms that support | |
3469 | # interlibrary dependencies. | |
3470 | # 'none' -- dependencies not supported. | |
3471 | # `unknown' -- same as none, but documents that we really don't know. | |
3472 | # 'pass_all' -- all dependencies passed with no checks. | |
3473 | # 'test_compile' -- check by making test program. | |
3474 | # 'file_magic [regex]' -- check by looking for files in library path | |
3475 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3476 | # If you have `file' or equivalent on your system and you're not sure | |
3477 | # whether `pass_all' will *always* work, you probably want this one. | |
3478 | ||
55c80943 NC |
3479 | case $host_os in |
3480 | aix*) | |
ac48eca1 AO |
3481 | lt_cv_deplibs_check_method=pass_all |
3482 | ;; | |
3483 | ||
3484 | beos*) | |
3485 | lt_cv_deplibs_check_method=pass_all | |
3486 | ;; | |
3487 | ||
3488 | bsdi4*) | |
55c80943 NC |
3489 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3490 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
3491 | lt_cv_file_magic_test_file=/shlib/libc.so |
3492 | ;; | |
3493 | ||
d64552c5 | 3494 | cygwin* | mingw* |pw32*) |
ac48eca1 | 3495 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 3496 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
3497 | ;; |
3498 | ||
55c80943 NC |
3499 | darwin* | rhapsody*) |
3500 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
b3baf5d0 NC |
3501 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3502 | case "$host_os" in | |
3503 | rhapsody* | darwin1.012) | |
3504 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3505 | ;; | |
3506 | *) # Darwin 1.3 on | |
3507 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3508 | ;; | |
3509 | esac | |
55c80943 NC |
3510 | ;; |
3511 | ||
5464f5a1 | 3512 | freebsd* | kfreebsd*-gnu) |
ac48eca1 | 3513 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
55c80943 | 3514 | case $host_cpu in |
ac48eca1 | 3515 | i*86 ) |
90f2472a AO |
3516 | # Not sure whether the presence of OpenBSD here was a mistake. |
3517 | # Let's accept both of them until this is cleared up. | |
55c80943 NC |
3518 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3519 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
3520 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3521 | ;; | |
3522 | esac | |
3523 | else | |
3524 | lt_cv_deplibs_check_method=pass_all | |
3525 | fi | |
3526 | ;; | |
3527 | ||
3528 | gnu*) | |
3529 | lt_cv_deplibs_check_method=pass_all | |
3530 | ;; | |
3531 | ||
55c80943 | 3532 | hpux10.20*|hpux11*) |
4867be41 DJ |
3533 | case $host_cpu in |
3534 | hppa*) | |
3535 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3536 | lt_cv_file_magic_cmd=/usr/bin/file | |
3537 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3538 | ;; | |
3539 | ia64*) | |
3540 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3541 | lt_cv_file_magic_cmd=/usr/bin/file | |
3542 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3543 | ;; | |
3544 | esac | |
ac48eca1 AO |
3545 | ;; |
3546 | ||
3547 | irix5* | irix6*) | |
55c80943 | 3548 | case $host_os in |
ac48eca1 AO |
3549 | irix5*) |
3550 | # this will be overridden with pass_all, but let us keep it just in case | |
3551 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3552 | ;; | |
3553 | *) | |
55c80943 | 3554 | case $LD in |
ac48eca1 AO |
3555 | *-32|*"-32 ") libmagic=32-bit;; |
3556 | *-n32|*"-n32 ") libmagic=N32;; | |
3557 | *-64|*"-64 ") libmagic=64-bit;; | |
3558 | *) libmagic=never-match;; | |
3559 | esac | |
3560 | # this will be overridden with pass_all, but let us keep it just in case | |
55c80943 NC |
3561 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3562 | ;; | |
ac48eca1 AO |
3563 | esac |
3564 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3565 | lt_cv_deplibs_check_method=pass_all | |
3566 | ;; | |
3567 | ||
3568 | # This must be Linux ELF. | |
90f2472a | 3569 | linux-gnu*) |
55c80943 | 3570 | case $host_cpu in |
c5d1701e | 3571 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
ac48eca1 AO |
3572 | lt_cv_deplibs_check_method=pass_all ;; |
3573 | *) | |
3574 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
55c80943 NC |
3575 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
3576 | esac | |
ac48eca1 AO |
3577 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
3578 | ;; | |
3579 | ||
5464f5a1 | 3580 | netbsd* | knetbsd*-gnu) |
55c80943 | 3581 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
b3baf5d0 | 3582 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
ac48eca1 | 3583 | else |
b3baf5d0 | 3584 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 | 3585 | fi |
55c80943 NC |
3586 | ;; |
3587 | ||
3588 | newsos6) | |
3589 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3590 | lt_cv_file_magic_cmd=/usr/bin/file | |
3591 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
ac48eca1 AO |
3592 | ;; |
3593 | ||
3594 | osf3* | osf4* | osf5*) | |
3595 | # this will be overridden with pass_all, but let us keep it just in case | |
3596 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3597 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3598 | lt_cv_deplibs_check_method=pass_all | |
3599 | ;; | |
3600 | ||
3601 | sco3.2v5*) | |
3602 | lt_cv_deplibs_check_method=pass_all | |
3603 | ;; | |
3604 | ||
3605 | solaris*) | |
3606 | lt_cv_deplibs_check_method=pass_all | |
3607 | lt_cv_file_magic_test_file=/lib/libc.so | |
3608 | ;; | |
3609 | ||
6be7c12c AO |
3610 | sysv5uw[78]* | sysv4*uw2*) |
3611 | lt_cv_deplibs_check_method=pass_all | |
3612 | ;; | |
3613 | ||
ac48eca1 | 3614 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
55c80943 | 3615 | case $host_vendor in |
ac48eca1 AO |
3616 | ncr) |
3617 | lt_cv_deplibs_check_method=pass_all | |
3618 | ;; | |
3619 | motorola) | |
55c80943 NC |
3620 | 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]' |
3621 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
3622 | ;; |
3623 | esac | |
3624 | ;; | |
3625 | esac | |
3626 | ||
3627 | fi | |
5464f5a1 NN |
3628 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3629 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
ac48eca1 AO |
3630 | file_magic_cmd=$lt_cv_file_magic_cmd |
3631 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3632 | ||
6be7c12c AO |
3633 | |
3634 | ||
6be7c12c AO |
3635 | |
3636 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3637 | ||
3638 | # Only perform the check for file, if the check method requires it | |
3639 | case $deplibs_check_method in | |
3640 | file_magic*) | |
3641 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5464f5a1 NN |
3642 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
3643 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3644 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c AO |
3646 | else |
3647 | case $MAGIC_CMD in | |
3648 | /*) | |
3649 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3650 | ;; | |
3651 | ?:/*) | |
3652 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3653 | ;; | |
3654 | *) | |
d64552c5 | 3655 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3656 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3657 | ac_dummy="/usr/bin:$PATH" | |
3658 | for ac_dir in $ac_dummy; do | |
3659 | test -z "$ac_dir" && ac_dir=. | |
3660 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 3661 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 3662 | if test -n "$file_magic_test_file"; then |
55c80943 | 3663 | case $deplibs_check_method in |
ac48eca1 AO |
3664 | "file_magic "*) |
3665 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3666 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3667 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3668 | egrep "$file_magic_regex" > /dev/null; then | |
3669 | : | |
3670 | else | |
3671 | cat <<EOF 1>&2 | |
3672 | ||
3673 | *** Warning: the command libtool uses to detect shared libraries, | |
3674 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3675 | *** The result is that libtool may fail to recognize shared libraries | |
3676 | *** as such. This will affect the creation of libtool libraries that | |
3677 | *** depend on shared libraries, but programs linked with such libtool | |
3678 | *** libraries will work regardless of this problem. Nevertheless, you | |
3679 | *** may want to report the problem to your system manager and/or to | |
3680 | *** bug-libtool@gnu.org | |
3681 | ||
3682 | EOF | |
3683 | fi ;; | |
3684 | esac | |
3685 | fi | |
3686 | break | |
3687 | fi | |
3688 | done | |
3689 | IFS="$ac_save_ifs" | |
d64552c5 | 3690 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3691 | ;; |
3692 | esac | |
3693 | fi | |
3694 | ||
d64552c5 AO |
3695 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3696 | if test -n "$MAGIC_CMD"; then | |
5464f5a1 NN |
3697 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3698 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3699 | else |
5464f5a1 NN |
3700 | echo "$as_me:$LINENO: result: no" >&5 |
3701 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3702 | fi |
3703 | ||
d64552c5 | 3704 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 3705 | if test -n "$ac_tool_prefix"; then |
5464f5a1 NN |
3706 | echo "$as_me:$LINENO: checking for file" >&5 |
3707 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3708 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3710 | else |
55c80943 | 3711 | case $MAGIC_CMD in |
ac48eca1 | 3712 | /*) |
d64552c5 | 3713 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3714 | ;; |
3715 | ?:/*) | |
d64552c5 | 3716 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3717 | ;; |
3718 | *) | |
d64552c5 | 3719 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3720 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3721 | ac_dummy="/usr/bin:$PATH" | |
3722 | for ac_dir in $ac_dummy; do | |
3723 | test -z "$ac_dir" && ac_dir=. | |
3724 | if test -f $ac_dir/file; then | |
d64552c5 | 3725 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 3726 | if test -n "$file_magic_test_file"; then |
55c80943 | 3727 | case $deplibs_check_method in |
ac48eca1 AO |
3728 | "file_magic "*) |
3729 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3730 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3731 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3732 | egrep "$file_magic_regex" > /dev/null; then | |
3733 | : | |
3734 | else | |
3735 | cat <<EOF 1>&2 | |
3736 | ||
3737 | *** Warning: the command libtool uses to detect shared libraries, | |
3738 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3739 | *** The result is that libtool may fail to recognize shared libraries | |
3740 | *** as such. This will affect the creation of libtool libraries that | |
3741 | *** depend on shared libraries, but programs linked with such libtool | |
3742 | *** libraries will work regardless of this problem. Nevertheless, you | |
3743 | *** may want to report the problem to your system manager and/or to | |
3744 | *** bug-libtool@gnu.org | |
3745 | ||
3746 | EOF | |
3747 | fi ;; | |
3748 | esac | |
3749 | fi | |
3750 | break | |
3751 | fi | |
3752 | done | |
3753 | IFS="$ac_save_ifs" | |
d64552c5 | 3754 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3755 | ;; |
3756 | esac | |
3757 | fi | |
3758 | ||
d64552c5 AO |
3759 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3760 | if test -n "$MAGIC_CMD"; then | |
5464f5a1 NN |
3761 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3762 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3763 | else |
5464f5a1 NN |
3764 | echo "$as_me:$LINENO: result: no" >&5 |
3765 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3766 | fi |
3767 | ||
3768 | else | |
d64552c5 | 3769 | MAGIC_CMD=: |
ac48eca1 AO |
3770 | fi |
3771 | fi | |
3772 | ||
3773 | fi | |
3774 | ;; | |
3775 | esac | |
3776 | ||
5464f5a1 NN |
3777 | if test -n "$ac_tool_prefix"; then |
3778 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ac48eca1 | 3779 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5464f5a1 NN |
3780 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3781 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3782 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3784 | else |
3785 | if test -n "$RANLIB"; then | |
3786 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3787 | else | |
5464f5a1 NN |
3788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3789 | for as_dir in $PATH | |
3790 | do | |
3791 | IFS=$as_save_IFS | |
3792 | test -z "$as_dir" && as_dir=. | |
3793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3794 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3795 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3796 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3797 | break 2 | |
3798 | fi | |
3799 | done | |
3800 | done | |
3801 | ||
ac48eca1 AO |
3802 | fi |
3803 | fi | |
5464f5a1 | 3804 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 3805 | if test -n "$RANLIB"; then |
5464f5a1 NN |
3806 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3807 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 3808 | else |
5464f5a1 NN |
3809 | echo "$as_me:$LINENO: result: no" >&5 |
3810 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3811 | fi |
3812 | ||
5464f5a1 | 3813 | fi |
ac48eca1 | 3814 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3815 | ac_ct_RANLIB=$RANLIB |
ac48eca1 AO |
3816 | # Extract the first word of "ranlib", so it can be a program name with args. |
3817 | set dummy ranlib; ac_word=$2 | |
5464f5a1 NN |
3818 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3819 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3820 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3822 | else |
5464f5a1 NN |
3823 | if test -n "$ac_ct_RANLIB"; then |
3824 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3825 | else |
5464f5a1 NN |
3826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3827 | for as_dir in $PATH | |
3828 | do | |
3829 | IFS=$as_save_IFS | |
3830 | test -z "$as_dir" && as_dir=. | |
3831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3832 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3833 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3834 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3835 | break 2 | |
3836 | fi | |
3837 | done | |
3838 | done | |
3839 | ||
3840 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ac48eca1 AO |
3841 | fi |
3842 | fi | |
5464f5a1 NN |
3843 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3844 | if test -n "$ac_ct_RANLIB"; then | |
3845 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3846 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ac48eca1 | 3847 | else |
5464f5a1 NN |
3848 | echo "$as_me:$LINENO: result: no" >&5 |
3849 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3850 | fi |
3851 | ||
5464f5a1 | 3852 | RANLIB=$ac_ct_RANLIB |
ac48eca1 | 3853 | else |
5464f5a1 | 3854 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 AO |
3855 | fi |
3856 | ||
5464f5a1 NN |
3857 | if test -n "$ac_tool_prefix"; then |
3858 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
ac48eca1 | 3859 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5464f5a1 NN |
3860 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3861 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3862 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3864 | else |
3865 | if test -n "$STRIP"; then | |
3866 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3867 | else | |
5464f5a1 NN |
3868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3869 | for as_dir in $PATH | |
3870 | do | |
3871 | IFS=$as_save_IFS | |
3872 | test -z "$as_dir" && as_dir=. | |
3873 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3874 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3875 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3876 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3877 | break 2 | |
3878 | fi | |
3879 | done | |
3880 | done | |
3881 | ||
ac48eca1 AO |
3882 | fi |
3883 | fi | |
5464f5a1 | 3884 | STRIP=$ac_cv_prog_STRIP |
ac48eca1 | 3885 | if test -n "$STRIP"; then |
5464f5a1 NN |
3886 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3887 | echo "${ECHO_T}$STRIP" >&6 | |
ac48eca1 | 3888 | else |
5464f5a1 NN |
3889 | echo "$as_me:$LINENO: result: no" >&5 |
3890 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3891 | fi |
3892 | ||
5464f5a1 | 3893 | fi |
ac48eca1 | 3894 | if test -z "$ac_cv_prog_STRIP"; then |
5464f5a1 | 3895 | ac_ct_STRIP=$STRIP |
ac48eca1 AO |
3896 | # Extract the first word of "strip", so it can be a program name with args. |
3897 | set dummy strip; ac_word=$2 | |
5464f5a1 NN |
3898 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3900 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3902 | else |
5464f5a1 NN |
3903 | if test -n "$ac_ct_STRIP"; then |
3904 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6be7c12c | 3905 | else |
5464f5a1 NN |
3906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3907 | for as_dir in $PATH | |
3908 | do | |
3909 | IFS=$as_save_IFS | |
3910 | test -z "$as_dir" && as_dir=. | |
3911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3912 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3913 | ac_cv_prog_ac_ct_STRIP="strip" | |
3914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3915 | break 2 | |
3916 | fi | |
3917 | done | |
3918 | done | |
3919 | ||
3920 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
ac48eca1 AO |
3921 | fi |
3922 | fi | |
5464f5a1 NN |
3923 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3924 | if test -n "$ac_ct_STRIP"; then | |
3925 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3926 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
ac48eca1 | 3927 | else |
5464f5a1 NN |
3928 | echo "$as_me:$LINENO: result: no" >&5 |
3929 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3930 | fi |
3931 | ||
5464f5a1 | 3932 | STRIP=$ac_ct_STRIP |
ac48eca1 | 3933 | else |
5464f5a1 | 3934 | STRIP="$ac_cv_prog_STRIP" |
ac48eca1 | 3935 | fi |
252b5132 | 3936 | |
6be7c12c | 3937 | |
252b5132 | 3938 | # Check for any special flags to pass to ltconfig. |
b2ef150d | 3939 | libtool_flags="--cache-file=$cache_file" |
252b5132 RH |
3940 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
3941 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
b2ef150d | 3942 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
55c80943 NC |
3943 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
3944 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 3945 | |
6be7c12c | 3946 | |
a74801ba ILT |
3947 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
3948 | if test "${enable_libtool_lock+set}" = set; then | |
3949 | enableval="$enable_libtool_lock" | |
a74801ba | 3950 | |
5464f5a1 | 3951 | fi; |
a74801ba ILT |
3952 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
3953 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
3954 | ||
5464f5a1 | 3955 | |
ac48eca1 AO |
3956 | # Check whether --with-pic or --without-pic was given. |
3957 | if test "${with_pic+set}" = set; then | |
3958 | withval="$with_pic" | |
3959 | pic_mode="$withval" | |
3960 | else | |
5464f5a1 NN |
3961 | pic_mode=default |
3962 | fi; | |
ac48eca1 AO |
3963 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
3964 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
3965 | ||
252b5132 RH |
3966 | # Some flags need to be propagated to the compiler or linker for good |
3967 | # libtool support. | |
55c80943 | 3968 | case $host in |
252b5132 RH |
3969 | *-*-irix6*) |
3970 | # Find out which ABI we are using. | |
6ec7057a | 3971 | echo '#line 3971 "configure"' > conftest.$ac_ext |
5464f5a1 NN |
3972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3973 | (eval $ac_compile) 2>&5 | |
3974 | ac_status=$? | |
3975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3976 | (exit $ac_status); }; then | |
6a457e5c NC |
3977 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3978 | case `/usr/bin/file conftest.$ac_objext` in | |
3979 | *32-bit*) | |
3980 | LD="${LD-ld} -melf32bsmip" | |
3981 | ;; | |
3982 | *N32*) | |
3983 | LD="${LD-ld} -melf32bmipn32" | |
3984 | ;; | |
3985 | *64-bit*) | |
3986 | LD="${LD-ld} -melf64bmip" | |
3987 | ;; | |
3988 | esac | |
3989 | else | |
55c80943 | 3990 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
3991 | *32-bit*) |
3992 | LD="${LD-ld} -32" | |
3993 | ;; | |
3994 | *N32*) | |
3995 | LD="${LD-ld} -n32" | |
3996 | ;; | |
3997 | *64-bit*) | |
3998 | LD="${LD-ld} -64" | |
3999 | ;; | |
4000 | esac | |
6a457e5c | 4001 | fi |
252b5132 RH |
4002 | fi |
4003 | rm -rf conftest* | |
4004 | ;; | |
4005 | ||
4867be41 DJ |
4006 | ia64-*-hpux*) |
4007 | # Find out which ABI we are using. | |
4008 | echo 'int i;' > conftest.$ac_ext | |
5464f5a1 NN |
4009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4010 | (eval $ac_compile) 2>&5 | |
4011 | ac_status=$? | |
4012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4013 | (exit $ac_status); }; then | |
4867be41 DJ |
4014 | case "`/usr/bin/file conftest.o`" in |
4015 | *ELF-32*) | |
4016 | HPUX_IA64_MODE="32" | |
4017 | ;; | |
4018 | *ELF-64*) | |
4019 | HPUX_IA64_MODE="64" | |
4020 | ;; | |
4021 | esac | |
4022 | fi | |
4023 | rm -rf conftest* | |
4024 | ;; | |
4025 | ||
252b5132 RH |
4026 | *-*-sco3.2v5*) |
4027 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
b2ef150d | 4028 | SAVE_CFLAGS="$CFLAGS" |
252b5132 | 4029 | CFLAGS="$CFLAGS -belf" |
5464f5a1 NN |
4030 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4031 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4032 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2ef150d | 4034 | else |
5464f5a1 NN |
4035 | |
4036 | ||
ac48eca1 | 4037 | ac_ext=c |
ac48eca1 | 4038 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
4039 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4040 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4041 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4042 | |
5464f5a1 NN |
4043 | cat >conftest.$ac_ext <<_ACEOF |
4044 | /* confdefs.h. */ | |
4045 | _ACEOF | |
4046 | cat confdefs.h >>conftest.$ac_ext | |
4047 | cat >>conftest.$ac_ext <<_ACEOF | |
4048 | /* end confdefs.h. */ | |
b2ef150d | 4049 | |
5464f5a1 NN |
4050 | int |
4051 | main () | |
4052 | { | |
b2ef150d | 4053 | |
5464f5a1 NN |
4054 | ; |
4055 | return 0; | |
4056 | } | |
4057 | _ACEOF | |
4058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4060 | (eval $ac_link) 2>conftest.er1 | |
4061 | ac_status=$? | |
4062 | grep -v '^ *+' conftest.er1 >conftest.err | |
4063 | rm -f conftest.er1 | |
4064 | cat conftest.err >&5 | |
4065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4066 | (exit $ac_status); } && | |
6ec7057a | 4067 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
4068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4069 | (eval $ac_try) 2>&5 | |
4070 | ac_status=$? | |
4071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4072 | (exit $ac_status); }; } && | |
4073 | { ac_try='test -s conftest$ac_exeext' | |
4074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4075 | (eval $ac_try) 2>&5 | |
4076 | ac_status=$? | |
4077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4078 | (exit $ac_status); }; }; then | |
b2ef150d ILT |
4079 | lt_cv_cc_needs_belf=yes |
4080 | else | |
5464f5a1 NN |
4081 | echo "$as_me: failed program was:" >&5 |
4082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4083 | ||
4084 | lt_cv_cc_needs_belf=no | |
b2ef150d | 4085 | fi |
5464f5a1 NN |
4086 | rm -f conftest.err conftest.$ac_objext \ |
4087 | conftest$ac_exeext conftest.$ac_ext | |
ac48eca1 | 4088 | ac_ext=c |
ac48eca1 | 4089 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
4090 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4091 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4092 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4093 | |
b2ef150d | 4094 | fi |
5464f5a1 NN |
4095 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4096 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
b2ef150d ILT |
4097 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4098 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4099 | CFLAGS="$SAVE_CFLAGS" | |
4100 | fi | |
252b5132 RH |
4101 | ;; |
4102 | ||
6be7c12c | 4103 | |
252b5132 RH |
4104 | esac |
4105 | ||
6be7c12c | 4106 | |
b2ef150d | 4107 | # Save cache, so that ltconfig can load it |
5464f5a1 | 4108 | cat >confcache <<\_ACEOF |
b2ef150d ILT |
4109 | # This file is a shell script that caches the results of configure |
4110 | # tests run on this system so they can be shared between configure | |
5464f5a1 NN |
4111 | # scripts and configure runs, see configure's option --config-cache. |
4112 | # It is not useful on other systems. If it contains results you don't | |
4113 | # want to keep, you may remove or edit it. | |
b2ef150d | 4114 | # |
5464f5a1 NN |
4115 | # config.status only pays attention to the cache file if you give it |
4116 | # the --recheck option to rerun configure. | |
b2ef150d | 4117 | # |
5464f5a1 NN |
4118 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4119 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4120 | # following values. | |
4121 | ||
4122 | _ACEOF | |
4123 | ||
b2ef150d ILT |
4124 | # The following way of writing the cache mishandles newlines in values, |
4125 | # but we know of no workaround that is simple, portable, and efficient. | |
4126 | # So, don't put newlines in cache variables' values. | |
4127 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4128 | # and sets the high bit in the cache file unless we assign to the vars. | |
5464f5a1 NN |
4129 | { |
4130 | (set) 2>&1 | | |
4131 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4132 | *ac_space=\ *) | |
4133 | # `set' does not quote correctly, so add quotes (double-quote | |
4134 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4135 | sed -n \ | |
4136 | "s/'/'\\\\''/g; | |
4137 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4138 | ;; | |
4139 | *) | |
4140 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4141 | sed -n \ | |
4142 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4143 | ;; | |
4144 | esac; | |
4145 | } | | |
4146 | sed ' | |
4147 | t clear | |
4148 | : clear | |
4149 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4150 | t end | |
4151 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4152 | : end' >>confcache | |
4153 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
b2ef150d | 4154 | if test -w $cache_file; then |
5464f5a1 NN |
4155 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4156 | cat confcache >$cache_file | |
b2ef150d ILT |
4157 | else |
4158 | echo "not updating unwritable cache $cache_file" | |
4159 | fi | |
4160 | fi | |
4161 | rm -f confcache | |
4162 | ||
252b5132 | 4163 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 4164 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 4165 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
4166 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4167 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4168 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4169 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 4170 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 4171 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
5464f5a1 NN |
4172 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4173 | echo "$as_me: error: libtool configure failed" >&2;} | |
4174 | { (exit 1); exit 1; }; } | |
252b5132 | 4175 | |
b2ef150d ILT |
4176 | # Reload cache, that may have been modified by ltconfig |
4177 | if test -r "$cache_file"; then | |
5464f5a1 NN |
4178 | # Some versions of bash will fail to source /dev/null (special |
4179 | # files actually), so we avoid doing that. | |
4180 | if test -f "$cache_file"; then | |
4181 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4182 | echo "$as_me: loading cache $cache_file" >&6;} | |
4183 | case $cache_file in | |
4184 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4185 | *) . ./$cache_file;; | |
4186 | esac | |
4187 | fi | |
b2ef150d | 4188 | else |
5464f5a1 NN |
4189 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4190 | echo "$as_me: creating cache $cache_file" >&6;} | |
4191 | >$cache_file | |
b2ef150d ILT |
4192 | fi |
4193 | ||
6be7c12c | 4194 | |
b2ef150d | 4195 | # This can be used to rebuild libtool when needed |
ac48eca1 | 4196 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
b2ef150d ILT |
4197 | |
4198 | # Always use our own libtool. | |
4199 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4200 | ||
252b5132 RH |
4201 | # Redirect the config.log output again, so that the ltconfig log is not |
4202 | # clobbered by the next message. | |
4203 | exec 5>>./config.log | |
4204 | ||
6be7c12c | 4205 | |
5464f5a1 NN |
4206 | |
4207 | ||
4208 | ||
4209 | ||
6be7c12c | 4210 | |
252b5132 RH |
4211 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. |
4212 | if test "${enable_64_bit_bfd+set}" = set; then | |
4213 | enableval="$enable_64_bit_bfd" | |
4214 | case "${enableval}" in | |
4215 | yes) want64=true ;; | |
4216 | no) want64=false ;; | |
5464f5a1 NN |
4217 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 |
4218 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
4219 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
4220 | esac |
4221 | else | |
4222 | want64=false | |
5464f5a1 | 4223 | fi; # Check whether --enable-targets or --disable-targets was given. |
252b5132 RH |
4224 | if test "${enable_targets+set}" = set; then |
4225 | enableval="$enable_targets" | |
4226 | case "${enableval}" in | |
5464f5a1 NN |
4227 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
4228 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
4229 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4230 | ;; |
4231 | no) enable_targets= ;; | |
4232 | *) enable_targets=$enableval ;; | |
4233 | esac | |
5464f5a1 | 4234 | fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
252b5132 RH |
4235 | if test "${enable_commonbfdlib+set}" = set; then |
4236 | enableval="$enable_commonbfdlib" | |
4237 | case "${enableval}" in | |
4238 | yes) commonbfdlib=true ;; | |
4239 | no) commonbfdlib=false ;; | |
5464f5a1 NN |
4240 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 |
4241 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} | |
4242 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 4243 | esac |
5464f5a1 | 4244 | fi; |
252b5132 RH |
4245 | # Check whether --with-mmap or --without-mmap was given. |
4246 | if test "${with_mmap+set}" = set; then | |
4247 | withval="$with_mmap" | |
4248 | case "${withval}" in | |
4249 | yes) want_mmap=true ;; | |
4250 | no) want_mmap=false ;; | |
5464f5a1 NN |
4251 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5 |
4252 | echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;} | |
4253 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
4254 | esac |
4255 | else | |
4256 | want_mmap=false | |
5464f5a1 | 4257 | fi; |
6ec7057a RH |
4258 | # Check whether --enable-secureplt or --disable-secureplt was given. |
4259 | if test "${enable_secureplt+set}" = set; then | |
4260 | enableval="$enable_secureplt" | |
4261 | case "${enableval}" in | |
4262 | yes) use_secureplt=true ;; | |
4263 | no) use_secureplt=false ;; | |
4264 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5 | |
4265 | echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;} | |
4266 | { (exit 1); exit 1; }; } ;; | |
4267 | esac | |
4268 | else | |
4269 | use_secureplt=false | |
4270 | fi; if test $use_secureplt = true; then | |
4271 | ||
4272 | cat >>confdefs.h <<\_ACEOF | |
4273 | #define USE_SECUREPLT 1 | |
4274 | _ACEOF | |
4275 | ||
4276 | fi | |
4277 | ||
9e9b66a9 AM |
4278 | |
4279 | WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | |
1ad12f97 | 4280 | |
569acd2c NC |
4281 | # Check whether --enable-werror or --disable-werror was given. |
4282 | if test "${enable_werror+set}" = set; then | |
4283 | enableval="$enable_werror" | |
1ad12f97 NC |
4284 | case "${enableval}" in |
4285 | yes | y) ERROR_ON_WARNING="yes" ;; | |
4286 | no | n) ERROR_ON_WARNING="no" ;; | |
569acd2c NC |
4287 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
4288 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
1ad12f97 NC |
4289 | { (exit 1); exit 1; }; } ;; |
4290 | esac | |
4291 | fi; | |
4292 | ||
9e9b66a9 AM |
4293 | # Enable -Werror by default when using gcc |
4294 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4295 | ERROR_ON_WARNING=yes | |
4296 | fi | |
4297 | ||
4298 | NO_WERROR= | |
4299 | if test "${ERROR_ON_WARNING}" = yes ; then | |
4300 | WARN_CFLAGS="$WARN_CFLAGS -Werror" | |
4301 | NO_WERROR="-Wno-error" | |
1ad12f97 NC |
4302 | fi |
4303 | ||
a2d91340 AC |
4304 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
4305 | if test "${enable_build_warnings+set}" = set; then | |
4306 | enableval="$enable_build_warnings" | |
4307 | case "${enableval}" in | |
4308 | yes) ;; | |
9e9b66a9 | 4309 | no) WARN_CFLAGS="-w";; |
a2d91340 | 4310 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
9e9b66a9 | 4311 | WARN_CFLAGS="${WARN_CFLAGS} ${t}";; |
a2d91340 | 4312 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
9e9b66a9 AM |
4313 | WARN_CFLAGS="${t} ${WARN_CFLAGS}";; |
4314 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
a2d91340 | 4315 | esac |
9e9b66a9 AM |
4316 | fi; |
4317 | ||
4318 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
4319 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
a2d91340 AC |
4320 | fi |
4321 | ||
4322 | ||
9e9b66a9 AM |
4323 | |
4324 | ||
4325 | ||
5464f5a1 | 4326 | ac_config_headers="$ac_config_headers config.h:config.in" |
6be7c12c | 4327 | |
252b5132 RH |
4328 | |
4329 | if test -z "$target" ; then | |
5464f5a1 NN |
4330 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 |
4331 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
4332 | { (exit 1); exit 1; }; } | |
252b5132 | 4333 | fi |
252b5132 | 4334 | |
5464f5a1 NN |
4335 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4336 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
252b5132 RH |
4337 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
4338 | if test "${enable_maintainer_mode+set}" = set; then | |
4339 | enableval="$enable_maintainer_mode" | |
4340 | USE_MAINTAINER_MODE=$enableval | |
4341 | else | |
4342 | USE_MAINTAINER_MODE=no | |
5464f5a1 NN |
4343 | fi; |
4344 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
4345 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
6be7c12c | 4346 | |
252b5132 RH |
4347 | |
4348 | if test $USE_MAINTAINER_MODE = yes; then | |
4349 | MAINTAINER_MODE_TRUE= | |
4350 | MAINTAINER_MODE_FALSE='#' | |
4351 | else | |
4352 | MAINTAINER_MODE_TRUE='#' | |
4353 | MAINTAINER_MODE_FALSE= | |
4354 | fi | |
f5385ebf | 4355 | |
252b5132 | 4356 | MAINT=$MAINTAINER_MODE_TRUE |
252b5132 | 4357 | |
5464f5a1 | 4358 | |
24443139 AS |
4359 | case ${build_alias} in |
4360 | "") build_noncanonical=${build} ;; | |
4361 | *) build_noncanonical=${build_alias} ;; | |
4362 | esac | |
4363 | ||
4364 | case ${host_alias} in | |
4365 | "") host_noncanonical=${build_noncanonical} ;; | |
4366 | *) host_noncanonical=${host_alias} ;; | |
4367 | esac | |
4368 | ||
4369 | case ${target_alias} in | |
4370 | "") target_noncanonical=${host_noncanonical} ;; | |
4371 | *) target_noncanonical=${target_alias} ;; | |
4372 | esac | |
4373 | ||
5464f5a1 NN |
4374 | echo "$as_me:$LINENO: checking whether to install libbfd" >&5 |
4375 | echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6 | |
a703a6ea AM |
4376 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given. |
4377 | if test "${enable_install_libbfd+set}" = set; then | |
4378 | enableval="$enable_install_libbfd" | |
4379 | install_libbfd_p=$enableval | |
4380 | else | |
66e25bab | 4381 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
a703a6ea AM |
4382 | install_libbfd_p=yes |
4383 | else | |
4384 | install_libbfd_p=no | |
4385 | fi | |
5464f5a1 NN |
4386 | fi; |
4387 | echo "$as_me:$LINENO: result: $install_libbfd_p" >&5 | |
4388 | echo "${ECHO_T}$install_libbfd_p" >&6 | |
a703a6ea | 4389 | |
a703a6ea AM |
4390 | |
4391 | if test $install_libbfd_p = yes; then | |
4392 | INSTALL_LIBBFD_TRUE= | |
4393 | INSTALL_LIBBFD_FALSE='#' | |
4394 | else | |
4395 | INSTALL_LIBBFD_TRUE='#' | |
4396 | INSTALL_LIBBFD_FALSE= | |
4397 | fi | |
f5385ebf | 4398 | |
5464f5a1 | 4399 | # Need _noncanonical variables for this. |
24443139 AS |
4400 | |
4401 | ||
4402 | ||
4403 | ||
a703a6ea AM |
4404 | # libbfd.a is a host library containing target dependent code |
4405 | bfdlibdir='$(libdir)' | |
4406 | bfdincludedir='$(includedir)' | |
4407 | if test "${host}" != "${target}"; then | |
5464f5a1 NN |
4408 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' |
4409 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' | |
a703a6ea | 4410 | fi |
a703a6ea AM |
4411 | |
4412 | ||
252b5132 RH |
4413 | |
4414 | ||
5464f5a1 NN |
4415 | |
4416 | ||
4417 | host64=false | |
4418 | target64=false | |
4419 | bfd_default_target_size=32 | |
4420 | ||
4421 | # host stuff: | |
4422 | ||
4423 | ac_ext=c | |
4424 | ac_cpp='$CPP $CPPFLAGS' | |
4425 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4426 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4427 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4428 | if test -n "$ac_tool_prefix"; then | |
4429 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4430 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4431 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4433 | if test "${ac_cv_prog_CC+set}" = set; then | |
4434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4435 | else |
5464f5a1 NN |
4436 | if test -n "$CC"; then |
4437 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4438 | else |
5464f5a1 NN |
4439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4440 | for as_dir in $PATH | |
4441 | do | |
4442 | IFS=$as_save_IFS | |
4443 | test -z "$as_dir" && as_dir=. | |
4444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4445 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4446 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4447 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4448 | break 2 | |
6be7c12c | 4449 | fi |
5464f5a1 NN |
4450 | done |
4451 | done | |
4452 | ||
252b5132 | 4453 | fi |
b3baf5d0 | 4454 | fi |
5464f5a1 NN |
4455 | CC=$ac_cv_prog_CC |
4456 | if test -n "$CC"; then | |
4457 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4458 | echo "${ECHO_T}$CC" >&6 | |
4459 | else | |
4460 | echo "$as_me:$LINENO: result: no" >&5 | |
4461 | echo "${ECHO_T}no" >&6 | |
4462 | fi | |
252b5132 | 4463 | |
5464f5a1 NN |
4464 | fi |
4465 | if test -z "$ac_cv_prog_CC"; then | |
4466 | ac_ct_CC=$CC | |
4467 | # Extract the first word of "gcc", so it can be a program name with args. | |
4468 | set dummy gcc; ac_word=$2 | |
4469 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4471 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4473 | else | |
4474 | if test -n "$ac_ct_CC"; then | |
4475 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4476 | else | |
4477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4478 | for as_dir in $PATH | |
4479 | do | |
4480 | IFS=$as_save_IFS | |
4481 | test -z "$as_dir" && as_dir=. | |
4482 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4483 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4484 | ac_cv_prog_ac_ct_CC="gcc" | |
4485 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4486 | break 2 | |
4487 | fi | |
4488 | done | |
4489 | done | |
252b5132 | 4490 | |
5464f5a1 NN |
4491 | fi |
4492 | fi | |
4493 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4494 | if test -n "$ac_ct_CC"; then | |
4495 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4496 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4497 | else | |
4498 | echo "$as_me:$LINENO: result: no" >&5 | |
4499 | echo "${ECHO_T}no" >&6 | |
4500 | fi | |
252b5132 | 4501 | |
5464f5a1 NN |
4502 | CC=$ac_ct_CC |
4503 | else | |
4504 | CC="$ac_cv_prog_CC" | |
4505 | fi | |
252b5132 | 4506 | |
5464f5a1 NN |
4507 | if test -z "$CC"; then |
4508 | if test -n "$ac_tool_prefix"; then | |
4509 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4510 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4511 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4512 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4513 | if test "${ac_cv_prog_CC+set}" = set; then | |
4514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4515 | else | |
4516 | if test -n "$CC"; then | |
4517 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4518 | else | |
4519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4520 | for as_dir in $PATH | |
4521 | do | |
4522 | IFS=$as_save_IFS | |
4523 | test -z "$as_dir" && as_dir=. | |
4524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4525 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4526 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4527 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4528 | break 2 | |
4529 | fi | |
4530 | done | |
4531 | done | |
6be7c12c | 4532 | |
5464f5a1 NN |
4533 | fi |
4534 | fi | |
4535 | CC=$ac_cv_prog_CC | |
4536 | if test -n "$CC"; then | |
4537 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4538 | echo "${ECHO_T}$CC" >&6 | |
4539 | else | |
4540 | echo "$as_me:$LINENO: result: no" >&5 | |
4541 | echo "${ECHO_T}no" >&6 | |
4542 | fi | |
4543 | ||
4544 | fi | |
4545 | if test -z "$ac_cv_prog_CC"; then | |
4546 | ac_ct_CC=$CC | |
4547 | # Extract the first word of "cc", so it can be a program name with args. | |
4548 | set dummy cc; ac_word=$2 | |
4549 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4551 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4553 | else | |
4554 | if test -n "$ac_ct_CC"; then | |
4555 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4556 | else | |
4557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4558 | for as_dir in $PATH | |
4559 | do | |
4560 | IFS=$as_save_IFS | |
4561 | test -z "$as_dir" && as_dir=. | |
4562 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4563 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4564 | ac_cv_prog_ac_ct_CC="cc" | |
4565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4566 | break 2 | |
4567 | fi | |
4568 | done | |
4569 | done | |
4570 | ||
4571 | fi | |
4572 | fi | |
4573 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4574 | if test -n "$ac_ct_CC"; then | |
4575 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4576 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4577 | else | |
4578 | echo "$as_me:$LINENO: result: no" >&5 | |
4579 | echo "${ECHO_T}no" >&6 | |
4580 | fi | |
4581 | ||
4582 | CC=$ac_ct_CC | |
4583 | else | |
4584 | CC="$ac_cv_prog_CC" | |
4585 | fi | |
4586 | ||
4587 | fi | |
4588 | if test -z "$CC"; then | |
4589 | # Extract the first word of "cc", so it can be a program name with args. | |
4590 | set dummy cc; ac_word=$2 | |
4591 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4593 | if test "${ac_cv_prog_CC+set}" = set; then | |
4594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4595 | else |
4596 | if test -n "$CC"; then | |
4597 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4598 | else | |
5464f5a1 NN |
4599 | ac_prog_rejected=no |
4600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4601 | for as_dir in $PATH | |
4602 | do | |
4603 | IFS=$as_save_IFS | |
4604 | test -z "$as_dir" && as_dir=. | |
4605 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4606 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4607 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4608 | ac_prog_rejected=yes | |
4609 | continue | |
4610 | fi | |
4611 | ac_cv_prog_CC="cc" | |
4612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4613 | break 2 | |
4614 | fi | |
4615 | done | |
4616 | done | |
4617 | ||
4618 | if test $ac_prog_rejected = yes; then | |
4619 | # We found a bogon in the path, so make sure we never use it. | |
4620 | set dummy $ac_cv_prog_CC | |
4621 | shift | |
4622 | if test $# != 0; then | |
4623 | # We chose a different compiler from the bogus one. | |
4624 | # However, it has the same basename, so the bogon will be chosen | |
4625 | # first if we set CC to just the basename; use the full file name. | |
4626 | shift | |
4627 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4628 | fi | |
4629 | fi | |
4630 | fi | |
4631 | fi | |
4632 | CC=$ac_cv_prog_CC | |
4633 | if test -n "$CC"; then | |
4634 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4635 | echo "${ECHO_T}$CC" >&6 | |
4636 | else | |
4637 | echo "$as_me:$LINENO: result: no" >&5 | |
4638 | echo "${ECHO_T}no" >&6 | |
4639 | fi | |
4640 | ||
4641 | fi | |
4642 | if test -z "$CC"; then | |
4643 | if test -n "$ac_tool_prefix"; then | |
4644 | for ac_prog in cl | |
4645 | do | |
4646 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4647 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4648 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4649 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4650 | if test "${ac_cv_prog_CC+set}" = set; then | |
4651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4652 | else | |
4653 | if test -n "$CC"; then | |
4654 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4655 | else | |
4656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4657 | for as_dir in $PATH | |
4658 | do | |
4659 | IFS=$as_save_IFS | |
4660 | test -z "$as_dir" && as_dir=. | |
4661 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4662 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4663 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4664 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4665 | break 2 | |
4666 | fi | |
4667 | done | |
4668 | done | |
4669 | ||
4670 | fi | |
4671 | fi | |
4672 | CC=$ac_cv_prog_CC | |
4673 | if test -n "$CC"; then | |
4674 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4675 | echo "${ECHO_T}$CC" >&6 | |
4676 | else | |
4677 | echo "$as_me:$LINENO: result: no" >&5 | |
4678 | echo "${ECHO_T}no" >&6 | |
4679 | fi | |
4680 | ||
4681 | test -n "$CC" && break | |
6be7c12c | 4682 | done |
252b5132 | 4683 | fi |
5464f5a1 NN |
4684 | if test -z "$CC"; then |
4685 | ac_ct_CC=$CC | |
4686 | for ac_prog in cl | |
4687 | do | |
4688 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4689 | set dummy $ac_prog; ac_word=$2 | |
4690 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4692 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4694 | else | |
4695 | if test -n "$ac_ct_CC"; then | |
4696 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4697 | else | |
4698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4699 | for as_dir in $PATH | |
4700 | do | |
4701 | IFS=$as_save_IFS | |
4702 | test -z "$as_dir" && as_dir=. | |
4703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4705 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4707 | break 2 | |
4708 | fi | |
4709 | done | |
4710 | done | |
4711 | ||
4712 | fi | |
4713 | fi | |
4714 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4715 | if test -n "$ac_ct_CC"; then | |
4716 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4717 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4718 | else | |
4719 | echo "$as_me:$LINENO: result: no" >&5 | |
4720 | echo "${ECHO_T}no" >&6 | |
4721 | fi | |
4722 | ||
4723 | test -n "$ac_ct_CC" && break | |
4724 | done | |
4725 | ||
4726 | CC=$ac_ct_CC | |
4727 | fi | |
4728 | ||
4729 | fi | |
4730 | ||
4731 | ||
4732 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4733 | See \`config.log' for more details." >&5 | |
4734 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4735 | See \`config.log' for more details." >&2;} | |
4736 | { (exit 1); exit 1; }; } | |
4737 | ||
4738 | # Provide some information about the compiler. | |
4739 | echo "$as_me:$LINENO:" \ | |
4740 | "checking for C compiler version" >&5 | |
4741 | ac_compiler=`set X $ac_compile; echo $2` | |
4742 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4743 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4744 | ac_status=$? | |
4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4746 | (exit $ac_status); } | |
4747 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4748 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4749 | ac_status=$? | |
4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4751 | (exit $ac_status); } | |
4752 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4753 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4754 | ac_status=$? | |
4755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4756 | (exit $ac_status); } | |
4757 | ||
4758 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
4759 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
4760 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
4761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4762 | else | |
4763 | cat >conftest.$ac_ext <<_ACEOF | |
4764 | /* confdefs.h. */ | |
4765 | _ACEOF | |
4766 | cat confdefs.h >>conftest.$ac_ext | |
4767 | cat >>conftest.$ac_ext <<_ACEOF | |
4768 | /* end confdefs.h. */ | |
4769 | ||
4770 | int | |
4771 | main () | |
4772 | { | |
4773 | #ifndef __GNUC__ | |
4774 | choke me | |
4775 | #endif | |
4776 | ||
4777 | ; | |
4778 | return 0; | |
4779 | } | |
4780 | _ACEOF | |
4781 | rm -f conftest.$ac_objext | |
4782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4783 | (eval $ac_compile) 2>conftest.er1 | |
4784 | ac_status=$? | |
4785 | grep -v '^ *+' conftest.er1 >conftest.err | |
4786 | rm -f conftest.er1 | |
4787 | cat conftest.err >&5 | |
4788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4789 | (exit $ac_status); } && | |
6ec7057a | 4790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
4791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4792 | (eval $ac_try) 2>&5 | |
4793 | ac_status=$? | |
4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4795 | (exit $ac_status); }; } && | |
4796 | { ac_try='test -s conftest.$ac_objext' | |
4797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4798 | (eval $ac_try) 2>&5 | |
4799 | ac_status=$? | |
4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4801 | (exit $ac_status); }; }; then | |
4802 | ac_compiler_gnu=yes | |
4803 | else | |
4804 | echo "$as_me: failed program was:" >&5 | |
4805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4806 | ||
4807 | ac_compiler_gnu=no | |
4808 | fi | |
4809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4810 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4811 | ||
4812 | fi | |
4813 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
4814 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
4815 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
4816 | ac_test_CFLAGS=${CFLAGS+set} | |
4817 | ac_save_CFLAGS=$CFLAGS | |
4818 | CFLAGS="-g" | |
4819 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
4820 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
4821 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
4822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4823 | else | |
4824 | cat >conftest.$ac_ext <<_ACEOF | |
4825 | /* confdefs.h. */ | |
4826 | _ACEOF | |
4827 | cat confdefs.h >>conftest.$ac_ext | |
4828 | cat >>conftest.$ac_ext <<_ACEOF | |
4829 | /* end confdefs.h. */ | |
4830 | ||
4831 | int | |
4832 | main () | |
4833 | { | |
4834 | ||
4835 | ; | |
4836 | return 0; | |
4837 | } | |
4838 | _ACEOF | |
4839 | rm -f conftest.$ac_objext | |
4840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4841 | (eval $ac_compile) 2>conftest.er1 | |
4842 | ac_status=$? | |
4843 | grep -v '^ *+' conftest.er1 >conftest.err | |
4844 | rm -f conftest.er1 | |
4845 | cat conftest.err >&5 | |
4846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4847 | (exit $ac_status); } && | |
6ec7057a | 4848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
4849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4850 | (eval $ac_try) 2>&5 | |
4851 | ac_status=$? | |
4852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4853 | (exit $ac_status); }; } && | |
4854 | { ac_try='test -s conftest.$ac_objext' | |
4855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4856 | (eval $ac_try) 2>&5 | |
4857 | ac_status=$? | |
4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4859 | (exit $ac_status); }; }; then | |
4860 | ac_cv_prog_cc_g=yes | |
4861 | else | |
4862 | echo "$as_me: failed program was:" >&5 | |
4863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4864 | ||
4865 | ac_cv_prog_cc_g=no | |
4866 | fi | |
4867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4868 | fi | |
4869 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4870 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
4871 | if test "$ac_test_CFLAGS" = set; then | |
4872 | CFLAGS=$ac_save_CFLAGS | |
4873 | elif test $ac_cv_prog_cc_g = yes; then | |
4874 | if test "$GCC" = yes; then | |
4875 | CFLAGS="-g -O2" | |
4876 | else | |
4877 | CFLAGS="-g" | |
4878 | fi | |
4879 | else | |
4880 | if test "$GCC" = yes; then | |
4881 | CFLAGS="-O2" | |
4882 | else | |
4883 | CFLAGS= | |
4884 | fi | |
4885 | fi | |
4886 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
4887 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
4888 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4890 | else | |
4891 | ac_cv_prog_cc_stdc=no | |
4892 | ac_save_CC=$CC | |
4893 | cat >conftest.$ac_ext <<_ACEOF | |
4894 | /* confdefs.h. */ | |
4895 | _ACEOF | |
4896 | cat confdefs.h >>conftest.$ac_ext | |
4897 | cat >>conftest.$ac_ext <<_ACEOF | |
4898 | /* end confdefs.h. */ | |
4899 | #include <stdarg.h> | |
4900 | #include <stdio.h> | |
4901 | #include <sys/types.h> | |
4902 | #include <sys/stat.h> | |
4903 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4904 | struct buf { int x; }; | |
4905 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4906 | static char *e (p, i) | |
4907 | char **p; | |
4908 | int i; | |
4909 | { | |
4910 | return p[i]; | |
4911 | } | |
4912 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4913 | { | |
4914 | char *s; | |
4915 | va_list v; | |
4916 | va_start (v,p); | |
4917 | s = g (p, va_arg (v,int)); | |
4918 | va_end (v); | |
4919 | return s; | |
4920 | } | |
4921 | ||
4922 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4923 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4924 | These don't provoke an error unfortunately, instead are silently treated | |
4925 | as 'x'. The following induces an error, until -std1 is added to get | |
4926 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4927 | array size at least. It's necessary to write '\x00'==0 to get something | |
4928 | that's true only with -std1. */ | |
4929 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4930 | ||
4931 | int test (int i, double x); | |
4932 | struct s1 {int (*f) (int a);}; | |
4933 | struct s2 {int (*f) (double a);}; | |
4934 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4935 | int argc; | |
4936 | char **argv; | |
4937 | int | |
4938 | main () | |
4939 | { | |
4940 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4941 | ; | |
4942 | return 0; | |
4943 | } | |
4944 | _ACEOF | |
4945 | # Don't try gcc -ansi; that turns off useful extensions and | |
4946 | # breaks some systems' header files. | |
4947 | # AIX -qlanglvl=ansi | |
4948 | # Ultrix and OSF/1 -std1 | |
4949 | # HP-UX 10.20 and later -Ae | |
4950 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4951 | # SVR4 -Xc -D__EXTENSIONS__ | |
4952 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4953 | do | |
4954 | CC="$ac_save_CC $ac_arg" | |
4955 | rm -f conftest.$ac_objext | |
4956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4957 | (eval $ac_compile) 2>conftest.er1 | |
4958 | ac_status=$? | |
4959 | grep -v '^ *+' conftest.er1 >conftest.err | |
4960 | rm -f conftest.er1 | |
4961 | cat conftest.err >&5 | |
4962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4963 | (exit $ac_status); } && | |
6ec7057a | 4964 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
4965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4966 | (eval $ac_try) 2>&5 | |
4967 | ac_status=$? | |
4968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4969 | (exit $ac_status); }; } && | |
4970 | { ac_try='test -s conftest.$ac_objext' | |
4971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4972 | (eval $ac_try) 2>&5 | |
4973 | ac_status=$? | |
4974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4975 | (exit $ac_status); }; }; then | |
4976 | ac_cv_prog_cc_stdc=$ac_arg | |
4977 | break | |
4978 | else | |
4979 | echo "$as_me: failed program was:" >&5 | |
4980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4981 | ||
4982 | fi | |
4983 | rm -f conftest.err conftest.$ac_objext | |
4984 | done | |
4985 | rm -f conftest.$ac_ext conftest.$ac_objext | |
4986 | CC=$ac_save_CC | |
4987 | ||
4988 | fi | |
4989 | ||
4990 | case "x$ac_cv_prog_cc_stdc" in | |
4991 | x|xno) | |
4992 | echo "$as_me:$LINENO: result: none needed" >&5 | |
4993 | echo "${ECHO_T}none needed" >&6 ;; | |
4994 | *) | |
4995 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
4996 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4997 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4998 | esac | |
4999 | ||
5000 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
5001 | # in C++ we need to declare it. In case someone uses the same compiler | |
5002 | # for both compiling C and C++ we need to have the C++ compiler decide | |
5003 | # the declaration of exit, since it's the most demanding environment. | |
5004 | cat >conftest.$ac_ext <<_ACEOF | |
5005 | #ifndef __cplusplus | |
5006 | choke me | |
5007 | #endif | |
5008 | _ACEOF | |
5009 | rm -f conftest.$ac_objext | |
5010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5011 | (eval $ac_compile) 2>conftest.er1 | |
5012 | ac_status=$? | |
5013 | grep -v '^ *+' conftest.er1 >conftest.err | |
5014 | rm -f conftest.er1 | |
5015 | cat conftest.err >&5 | |
5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5017 | (exit $ac_status); } && | |
6ec7057a | 5018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5020 | (eval $ac_try) 2>&5 | |
5021 | ac_status=$? | |
5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5023 | (exit $ac_status); }; } && | |
5024 | { ac_try='test -s conftest.$ac_objext' | |
5025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5026 | (eval $ac_try) 2>&5 | |
5027 | ac_status=$? | |
5028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5029 | (exit $ac_status); }; }; then | |
5030 | for ac_declaration in \ | |
5031 | '' \ | |
5032 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
5033 | 'extern "C" void std::exit (int); using std::exit;' \ | |
5034 | 'extern "C" void exit (int) throw ();' \ | |
5035 | 'extern "C" void exit (int);' \ | |
5036 | 'void exit (int);' | |
5037 | do | |
5038 | cat >conftest.$ac_ext <<_ACEOF | |
5039 | /* confdefs.h. */ | |
5040 | _ACEOF | |
5041 | cat confdefs.h >>conftest.$ac_ext | |
5042 | cat >>conftest.$ac_ext <<_ACEOF | |
5043 | /* end confdefs.h. */ | |
5044 | $ac_declaration | |
5045 | #include <stdlib.h> | |
5046 | int | |
5047 | main () | |
5048 | { | |
5049 | exit (42); | |
5050 | ; | |
5051 | return 0; | |
5052 | } | |
5053 | _ACEOF | |
5054 | rm -f conftest.$ac_objext | |
5055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5056 | (eval $ac_compile) 2>conftest.er1 | |
5057 | ac_status=$? | |
5058 | grep -v '^ *+' conftest.er1 >conftest.err | |
5059 | rm -f conftest.er1 | |
5060 | cat conftest.err >&5 | |
5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5062 | (exit $ac_status); } && | |
6ec7057a | 5063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5065 | (eval $ac_try) 2>&5 | |
5066 | ac_status=$? | |
5067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5068 | (exit $ac_status); }; } && | |
5069 | { ac_try='test -s conftest.$ac_objext' | |
5070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5071 | (eval $ac_try) 2>&5 | |
5072 | ac_status=$? | |
5073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5074 | (exit $ac_status); }; }; then | |
5075 | : | |
5076 | else | |
5077 | echo "$as_me: failed program was:" >&5 | |
5078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5079 | ||
5080 | continue | |
5081 | fi | |
5082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5083 | cat >conftest.$ac_ext <<_ACEOF | |
5084 | /* confdefs.h. */ | |
5085 | _ACEOF | |
5086 | cat confdefs.h >>conftest.$ac_ext | |
5087 | cat >>conftest.$ac_ext <<_ACEOF | |
5088 | /* end confdefs.h. */ | |
5089 | $ac_declaration | |
5090 | int | |
5091 | main () | |
5092 | { | |
5093 | exit (42); | |
5094 | ; | |
5095 | return 0; | |
5096 | } | |
5097 | _ACEOF | |
5098 | rm -f conftest.$ac_objext | |
5099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5100 | (eval $ac_compile) 2>conftest.er1 | |
5101 | ac_status=$? | |
5102 | grep -v '^ *+' conftest.er1 >conftest.err | |
5103 | rm -f conftest.er1 | |
5104 | cat conftest.err >&5 | |
5105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5106 | (exit $ac_status); } && | |
6ec7057a | 5107 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5109 | (eval $ac_try) 2>&5 | |
5110 | ac_status=$? | |
5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5112 | (exit $ac_status); }; } && | |
5113 | { ac_try='test -s conftest.$ac_objext' | |
5114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5115 | (eval $ac_try) 2>&5 | |
5116 | ac_status=$? | |
5117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5118 | (exit $ac_status); }; }; then | |
5119 | break | |
5120 | else | |
5121 | echo "$as_me: failed program was:" >&5 | |
5122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5123 | ||
5124 | fi | |
5125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5126 | done | |
5127 | rm -f conftest* | |
5128 | if test -n "$ac_declaration"; then | |
5129 | echo '#ifdef __cplusplus' >>confdefs.h | |
5130 | echo $ac_declaration >>confdefs.h | |
5131 | echo '#endif' >>confdefs.h | |
252b5132 | 5132 | fi |
5464f5a1 | 5133 | |
b3baf5d0 | 5134 | else |
5464f5a1 NN |
5135 | echo "$as_me: failed program was:" >&5 |
5136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5137 | ||
b3baf5d0 | 5138 | fi |
5464f5a1 NN |
5139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5140 | ac_ext=c | |
5141 | ac_cpp='$CPP $CPPFLAGS' | |
5142 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5143 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5144 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b3baf5d0 | 5145 | |
5464f5a1 | 5146 | |
4a2a2686 HPN |
5147 | cat >>confdefs.h <<\_ACEOF |
5148 | #define _GNU_SOURCE 1 | |
5149 | _ACEOF | |
5150 | ||
5151 | ||
5152 | ||
429cc0ae | 5153 | ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw" |
5464f5a1 NN |
5154 | if test -n "$ac_tool_prefix"; then |
5155 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5156 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5157 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5159 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5161 | else |
5464f5a1 NN |
5162 | if test -n "$RANLIB"; then |
5163 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
252b5132 | 5164 | else |
5464f5a1 NN |
5165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5166 | for as_dir in $PATH | |
5167 | do | |
5168 | IFS=$as_save_IFS | |
5169 | test -z "$as_dir" && as_dir=. | |
5170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5171 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5172 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5174 | break 2 | |
252b5132 | 5175 | fi |
5464f5a1 NN |
5176 | done |
5177 | done | |
5178 | ||
252b5132 RH |
5179 | fi |
5180 | fi | |
5464f5a1 NN |
5181 | RANLIB=$ac_cv_prog_RANLIB |
5182 | if test -n "$RANLIB"; then | |
5183 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5184 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 5185 | else |
5464f5a1 NN |
5186 | echo "$as_me:$LINENO: result: no" >&5 |
5187 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
5188 | fi |
5189 | ||
5464f5a1 NN |
5190 | fi |
5191 | if test -z "$ac_cv_prog_RANLIB"; then | |
5192 | ac_ct_RANLIB=$RANLIB | |
5193 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5194 | set dummy ranlib; ac_word=$2 | |
5195 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5197 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5199 | else |
5464f5a1 NN |
5200 | if test -n "$ac_ct_RANLIB"; then |
5201 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
252b5132 | 5202 | else |
5464f5a1 NN |
5203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5204 | for as_dir in $PATH | |
5205 | do | |
5206 | IFS=$as_save_IFS | |
5207 | test -z "$as_dir" && as_dir=. | |
5208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5209 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5210 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5212 | break 2 | |
5213 | fi | |
5214 | done | |
5215 | done | |
5216 | ||
5217 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
5218 | fi |
5219 | fi | |
5464f5a1 NN |
5220 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5221 | if test -n "$ac_ct_RANLIB"; then | |
5222 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5223 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 5224 | else |
5464f5a1 NN |
5225 | echo "$as_me:$LINENO: result: no" >&5 |
5226 | echo "${ECHO_T}no" >&6 | |
b3baf5d0 | 5227 | fi |
252b5132 | 5228 | |
5464f5a1 | 5229 | RANLIB=$ac_ct_RANLIB |
6be7c12c | 5230 | else |
5464f5a1 | 5231 | RANLIB="$ac_cv_prog_RANLIB" |
252b5132 | 5232 | fi |
5464f5a1 | 5233 | |
6be7c12c | 5234 | ac_ext=c |
6be7c12c | 5235 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
5236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5239 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5240 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5241 | # On Suns, sometimes $CPP names a directory. | |
5242 | if test -n "$CPP" && test -d "$CPP"; then | |
5243 | CPP= | |
6be7c12c | 5244 | fi |
5464f5a1 NN |
5245 | if test -z "$CPP"; then |
5246 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5248 | else |
5464f5a1 NN |
5249 | # Double quotes because CPP needs to be expanded |
5250 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5251 | do | |
5252 | ac_preproc_ok=false | |
5253 | for ac_c_preproc_warn_flag in '' yes | |
5254 | do | |
5255 | # Use a header file that comes with gcc, so configuring glibc | |
5256 | # with a fresh cross-compiler works. | |
5257 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5258 | # <limits.h> exists even on freestanding compilers. | |
5259 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5260 | # not just through cpp. "Syntax error" is here to catch this case. | |
5261 | cat >conftest.$ac_ext <<_ACEOF | |
5262 | /* confdefs.h. */ | |
5263 | _ACEOF | |
5264 | cat confdefs.h >>conftest.$ac_ext | |
5265 | cat >>conftest.$ac_ext <<_ACEOF | |
5266 | /* end confdefs.h. */ | |
5267 | #ifdef __STDC__ | |
5268 | # include <limits.h> | |
5269 | #else | |
5270 | # include <assert.h> | |
252b5132 | 5271 | #endif |
5464f5a1 NN |
5272 | Syntax error |
5273 | _ACEOF | |
5274 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5275 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5276 | ac_status=$? | |
5277 | grep -v '^ *+' conftest.er1 >conftest.err | |
5278 | rm -f conftest.er1 | |
5279 | cat conftest.err >&5 | |
5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5281 | (exit $ac_status); } >/dev/null; then | |
5282 | if test -s conftest.err; then | |
5283 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5284 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5285 | else | |
5286 | ac_cpp_err= | |
5287 | fi | |
6be7c12c | 5288 | else |
5464f5a1 | 5289 | ac_cpp_err=yes |
6be7c12c | 5290 | fi |
5464f5a1 NN |
5291 | if test -z "$ac_cpp_err"; then |
5292 | : | |
6be7c12c | 5293 | else |
5464f5a1 NN |
5294 | echo "$as_me: failed program was:" >&5 |
5295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5296 | ||
5297 | # Broken: fails on valid input. | |
5298 | continue | |
5299 | fi | |
5300 | rm -f conftest.err conftest.$ac_ext | |
5301 | ||
5302 | # OK, works on sane cases. Now check whether non-existent headers | |
5303 | # can be detected and how. | |
5304 | cat >conftest.$ac_ext <<_ACEOF | |
5305 | /* confdefs.h. */ | |
5306 | _ACEOF | |
5307 | cat confdefs.h >>conftest.$ac_ext | |
5308 | cat >>conftest.$ac_ext <<_ACEOF | |
5309 | /* end confdefs.h. */ | |
5310 | #include <ac_nonexistent.h> | |
5311 | _ACEOF | |
5312 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5313 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5314 | ac_status=$? | |
5315 | grep -v '^ *+' conftest.er1 >conftest.err | |
5316 | rm -f conftest.er1 | |
5317 | cat conftest.err >&5 | |
5318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5319 | (exit $ac_status); } >/dev/null; then | |
5320 | if test -s conftest.err; then | |
5321 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5322 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5323 | else | |
5324 | ac_cpp_err= | |
5325 | fi | |
252b5132 | 5326 | else |
5464f5a1 | 5327 | ac_cpp_err=yes |
252b5132 | 5328 | fi |
5464f5a1 NN |
5329 | if test -z "$ac_cpp_err"; then |
5330 | # Broken: success on invalid input. | |
5331 | continue | |
5332 | else | |
5333 | echo "$as_me: failed program was:" >&5 | |
5334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6be7c12c | 5335 | |
5464f5a1 NN |
5336 | # Passes both tests. |
5337 | ac_preproc_ok=: | |
5338 | break | |
252b5132 | 5339 | fi |
5464f5a1 | 5340 | rm -f conftest.err conftest.$ac_ext |
6be7c12c | 5341 | |
5464f5a1 NN |
5342 | done |
5343 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5344 | rm -f conftest.err conftest.$ac_ext | |
5345 | if $ac_preproc_ok; then | |
5346 | break | |
252b5132 RH |
5347 | fi |
5348 | ||
5464f5a1 NN |
5349 | done |
5350 | ac_cv_prog_CPP=$CPP | |
252b5132 | 5351 | |
252b5132 | 5352 | fi |
5464f5a1 | 5353 | CPP=$ac_cv_prog_CPP |
6be7c12c | 5354 | else |
5464f5a1 NN |
5355 | ac_cv_prog_CPP=$CPP |
5356 | fi | |
5357 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5358 | echo "${ECHO_T}$CPP" >&6 | |
5359 | ac_preproc_ok=false | |
5360 | for ac_c_preproc_warn_flag in '' yes | |
5361 | do | |
5362 | # Use a header file that comes with gcc, so configuring glibc | |
5363 | # with a fresh cross-compiler works. | |
5364 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5365 | # <limits.h> exists even on freestanding compilers. | |
6be7c12c | 5366 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5464f5a1 NN |
5367 | # not just through cpp. "Syntax error" is here to catch this case. |
5368 | cat >conftest.$ac_ext <<_ACEOF | |
5369 | /* confdefs.h. */ | |
5370 | _ACEOF | |
5371 | cat confdefs.h >>conftest.$ac_ext | |
5372 | cat >>conftest.$ac_ext <<_ACEOF | |
5373 | /* end confdefs.h. */ | |
5374 | #ifdef __STDC__ | |
5375 | # include <limits.h> | |
5376 | #else | |
5377 | # include <assert.h> | |
5378 | #endif | |
5379 | Syntax error | |
5380 | _ACEOF | |
5381 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5382 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5383 | ac_status=$? | |
5384 | grep -v '^ *+' conftest.er1 >conftest.err | |
5385 | rm -f conftest.er1 | |
5386 | cat conftest.err >&5 | |
5387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5388 | (exit $ac_status); } >/dev/null; then | |
5389 | if test -s conftest.err; then | |
5390 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5391 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5392 | else | |
5393 | ac_cpp_err= | |
5394 | fi | |
252b5132 | 5395 | else |
5464f5a1 NN |
5396 | ac_cpp_err=yes |
5397 | fi | |
5398 | if test -z "$ac_cpp_err"; then | |
6be7c12c | 5399 | : |
252b5132 | 5400 | else |
5464f5a1 NN |
5401 | echo "$as_me: failed program was:" >&5 |
5402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5403 | ||
5404 | # Broken: fails on valid input. | |
5405 | continue | |
5406 | fi | |
5407 | rm -f conftest.err conftest.$ac_ext | |
5408 | ||
5409 | # OK, works on sane cases. Now check whether non-existent headers | |
5410 | # can be detected and how. | |
5411 | cat >conftest.$ac_ext <<_ACEOF | |
5412 | /* confdefs.h. */ | |
5413 | _ACEOF | |
5414 | cat confdefs.h >>conftest.$ac_ext | |
5415 | cat >>conftest.$ac_ext <<_ACEOF | |
5416 | /* end confdefs.h. */ | |
5417 | #include <ac_nonexistent.h> | |
5418 | _ACEOF | |
5419 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5420 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5421 | ac_status=$? | |
5422 | grep -v '^ *+' conftest.er1 >conftest.err | |
5423 | rm -f conftest.er1 | |
5424 | cat conftest.err >&5 | |
5425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5426 | (exit $ac_status); } >/dev/null; then | |
5427 | if test -s conftest.err; then | |
5428 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5429 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5430 | else | |
5431 | ac_cpp_err= | |
5432 | fi | |
b3baf5d0 | 5433 | else |
5464f5a1 | 5434 | ac_cpp_err=yes |
6be7c12c | 5435 | fi |
5464f5a1 NN |
5436 | if test -z "$ac_cpp_err"; then |
5437 | # Broken: success on invalid input. | |
5438 | continue | |
ac48eca1 | 5439 | else |
5464f5a1 NN |
5440 | echo "$as_me: failed program was:" >&5 |
5441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5442 | ||
5443 | # Passes both tests. | |
5444 | ac_preproc_ok=: | |
5445 | break | |
b3baf5d0 | 5446 | fi |
5464f5a1 | 5447 | rm -f conftest.err conftest.$ac_ext |
6be7c12c | 5448 | |
5464f5a1 NN |
5449 | done |
5450 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5451 | rm -f conftest.err conftest.$ac_ext | |
5452 | if $ac_preproc_ok; then | |
5453 | : | |
6be7c12c | 5454 | else |
5464f5a1 NN |
5455 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
5456 | See \`config.log' for more details." >&5 | |
5457 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5458 | See \`config.log' for more details." >&2;} | |
5459 | { (exit 1); exit 1; }; } | |
ac48eca1 | 5460 | fi |
5464f5a1 NN |
5461 | |
5462 | ac_ext=c | |
5463 | ac_cpp='$CPP $CPPFLAGS' | |
5464 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5465 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5466 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5467 | ||
5468 | ||
5469 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5470 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5471 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 5473 | else |
5464f5a1 NN |
5474 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
5475 | then ac_cv_prog_egrep='grep -E' | |
5476 | else ac_cv_prog_egrep='egrep' | |
5477 | fi | |
b3baf5d0 | 5478 | fi |
5464f5a1 NN |
5479 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
5480 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5481 | EGREP=$ac_cv_prog_egrep | |
5482 | ||
ac48eca1 | 5483 | |
5464f5a1 NN |
5484 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5485 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5486 | if test "${ac_cv_header_stdc+set}" = set; then | |
5487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5488 | else |
5464f5a1 NN |
5489 | cat >conftest.$ac_ext <<_ACEOF |
5490 | /* confdefs.h. */ | |
5491 | _ACEOF | |
5492 | cat confdefs.h >>conftest.$ac_ext | |
5493 | cat >>conftest.$ac_ext <<_ACEOF | |
5494 | /* end confdefs.h. */ | |
252b5132 RH |
5495 | #include <stdlib.h> |
5496 | #include <stdarg.h> | |
5497 | #include <string.h> | |
5498 | #include <float.h> | |
5464f5a1 NN |
5499 | |
5500 | int | |
5501 | main () | |
5502 | { | |
5503 | ||
5504 | ; | |
5505 | return 0; | |
5506 | } | |
5507 | _ACEOF | |
5508 | rm -f conftest.$ac_objext | |
5509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5510 | (eval $ac_compile) 2>conftest.er1 | |
5511 | ac_status=$? | |
5512 | grep -v '^ *+' conftest.er1 >conftest.err | |
5513 | rm -f conftest.er1 | |
5514 | cat conftest.err >&5 | |
5515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5516 | (exit $ac_status); } && | |
6ec7057a | 5517 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5519 | (eval $ac_try) 2>&5 | |
5520 | ac_status=$? | |
5521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5522 | (exit $ac_status); }; } && | |
5523 | { ac_try='test -s conftest.$ac_objext' | |
5524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5525 | (eval $ac_try) 2>&5 | |
5526 | ac_status=$? | |
5527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5528 | (exit $ac_status); }; }; then | |
252b5132 RH |
5529 | ac_cv_header_stdc=yes |
5530 | else | |
5464f5a1 NN |
5531 | echo "$as_me: failed program was:" >&5 |
5532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5533 | ||
5534 | ac_cv_header_stdc=no | |
252b5132 | 5535 | fi |
5464f5a1 | 5536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5537 | |
5538 | if test $ac_cv_header_stdc = yes; then | |
5539 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5464f5a1 NN |
5540 | cat >conftest.$ac_ext <<_ACEOF |
5541 | /* confdefs.h. */ | |
5542 | _ACEOF | |
5543 | cat confdefs.h >>conftest.$ac_ext | |
5544 | cat >>conftest.$ac_ext <<_ACEOF | |
5545 | /* end confdefs.h. */ | |
252b5132 | 5546 | #include <string.h> |
5464f5a1 NN |
5547 | |
5548 | _ACEOF | |
252b5132 | 5549 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 5550 | $EGREP "memchr" >/dev/null 2>&1; then |
252b5132 RH |
5551 | : |
5552 | else | |
252b5132 RH |
5553 | ac_cv_header_stdc=no |
5554 | fi | |
5555 | rm -f conftest* | |
5556 | ||
5557 | fi | |
5558 | ||
5559 | if test $ac_cv_header_stdc = yes; then | |
5560 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5464f5a1 NN |
5561 | cat >conftest.$ac_ext <<_ACEOF |
5562 | /* confdefs.h. */ | |
5563 | _ACEOF | |
5564 | cat confdefs.h >>conftest.$ac_ext | |
5565 | cat >>conftest.$ac_ext <<_ACEOF | |
5566 | /* end confdefs.h. */ | |
252b5132 | 5567 | #include <stdlib.h> |
5464f5a1 NN |
5568 | |
5569 | _ACEOF | |
252b5132 | 5570 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 5571 | $EGREP "free" >/dev/null 2>&1; then |
252b5132 RH |
5572 | : |
5573 | else | |
252b5132 RH |
5574 | ac_cv_header_stdc=no |
5575 | fi | |
5576 | rm -f conftest* | |
5577 | ||
5578 | fi | |
5579 | ||
5580 | if test $ac_cv_header_stdc = yes; then | |
5581 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5464f5a1 | 5582 | if test "$cross_compiling" = yes; then |
252b5132 RH |
5583 | : |
5584 | else | |
5464f5a1 NN |
5585 | cat >conftest.$ac_ext <<_ACEOF |
5586 | /* confdefs.h. */ | |
5587 | _ACEOF | |
5588 | cat confdefs.h >>conftest.$ac_ext | |
5589 | cat >>conftest.$ac_ext <<_ACEOF | |
5590 | /* end confdefs.h. */ | |
252b5132 | 5591 | #include <ctype.h> |
5464f5a1 NN |
5592 | #if ((' ' & 0x0FF) == 0x020) |
5593 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5594 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5595 | #else | |
5596 | # define ISLOWER(c) \ | |
5597 | (('a' <= (c) && (c) <= 'i') \ | |
5598 | || ('j' <= (c) && (c) <= 'r') \ | |
5599 | || ('s' <= (c) && (c) <= 'z')) | |
5600 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5601 | #endif | |
6be7c12c | 5602 | |
5464f5a1 NN |
5603 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5604 | int | |
5605 | main () | |
5606 | { | |
5607 | int i; | |
5608 | for (i = 0; i < 256; i++) | |
5609 | if (XOR (islower (i), ISLOWER (i)) | |
5610 | || toupper (i) != TOUPPER (i)) | |
5611 | exit(2); | |
5612 | exit (0); | |
5613 | } | |
5614 | _ACEOF | |
5615 | rm -f conftest$ac_exeext | |
5616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5617 | (eval $ac_link) 2>&5 | |
5618 | ac_status=$? | |
5619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5620 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5622 | (eval $ac_try) 2>&5 | |
5623 | ac_status=$? | |
5624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5625 | (exit $ac_status); }; }; then | |
252b5132 RH |
5626 | : |
5627 | else | |
5464f5a1 NN |
5628 | echo "$as_me: program exited with status $ac_status" >&5 |
5629 | echo "$as_me: failed program was:" >&5 | |
5630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5631 | ||
5632 | ( exit $ac_status ) | |
5633 | ac_cv_header_stdc=no | |
252b5132 | 5634 | fi |
5464f5a1 | 5635 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5636 | fi |
252b5132 RH |
5637 | fi |
5638 | fi | |
5464f5a1 NN |
5639 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5640 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6be7c12c | 5641 | if test $ac_cv_header_stdc = yes; then |
5464f5a1 NN |
5642 | |
5643 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5644 | #define STDC_HEADERS 1 |
5464f5a1 | 5645 | _ACEOF |
252b5132 RH |
5646 | |
5647 | fi | |
5648 | ||
5464f5a1 NN |
5649 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5650 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
5651 | if test "${ac_cv_c_const+set}" = set; then | |
5652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5653 | else |
5464f5a1 NN |
5654 | cat >conftest.$ac_ext <<_ACEOF |
5655 | /* confdefs.h. */ | |
5656 | _ACEOF | |
5657 | cat confdefs.h >>conftest.$ac_ext | |
5658 | cat >>conftest.$ac_ext <<_ACEOF | |
5659 | /* end confdefs.h. */ | |
6be7c12c | 5660 | |
5464f5a1 NN |
5661 | int |
5662 | main () | |
5663 | { | |
5664 | /* FIXME: Include the comments suggested by Paul. */ | |
5665 | #ifndef __cplusplus | |
5666 | /* Ultrix mips cc rejects this. */ | |
5667 | typedef int charset[2]; | |
5668 | const charset x; | |
5669 | /* SunOS 4.1.1 cc rejects this. */ | |
5670 | char const *const *ccp; | |
5671 | char **p; | |
5672 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5673 | struct point {int x, y;}; | |
5674 | static struct point const zero = {0,0}; | |
5675 | /* AIX XL C 1.02.0.0 rejects this. | |
5676 | It does not let you subtract one const X* pointer from another in | |
5677 | an arm of an if-expression whose if-part is not a constant | |
5678 | expression */ | |
5679 | const char *g = "string"; | |
5680 | ccp = &g + (g ? g-g : 0); | |
5681 | /* HPUX 7.0 cc rejects these. */ | |
5682 | ++ccp; | |
5683 | p = (char**) ccp; | |
5684 | ccp = (char const *const *) p; | |
5685 | { /* SCO 3.2v4 cc rejects this. */ | |
5686 | char *t; | |
5687 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5688 | ||
5689 | *t++ = 0; | |
5690 | } | |
5691 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5692 | int x[] = {25, 17}; | |
5693 | const int *foo = &x[0]; | |
5694 | ++foo; | |
5695 | } | |
5696 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5697 | typedef const int *iptr; | |
5698 | iptr p = 0; | |
5699 | ++p; | |
5700 | } | |
5701 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5702 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5703 | struct s { int j; const int *ap[3]; }; | |
5704 | struct s *b; b->j = 5; | |
5705 | } | |
5706 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5707 | const int foo = 10; | |
5708 | } | |
5709 | #endif | |
6be7c12c | 5710 | |
5464f5a1 NN |
5711 | ; |
5712 | return 0; | |
5713 | } | |
5714 | _ACEOF | |
5715 | rm -f conftest.$ac_objext | |
5716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5717 | (eval $ac_compile) 2>conftest.er1 | |
5718 | ac_status=$? | |
5719 | grep -v '^ *+' conftest.er1 >conftest.err | |
5720 | rm -f conftest.er1 | |
5721 | cat conftest.err >&5 | |
5722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5723 | (exit $ac_status); } && | |
6ec7057a | 5724 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5726 | (eval $ac_try) 2>&5 | |
5727 | ac_status=$? | |
5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5729 | (exit $ac_status); }; } && | |
5730 | { ac_try='test -s conftest.$ac_objext' | |
5731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5732 | (eval $ac_try) 2>&5 | |
5733 | ac_status=$? | |
5734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5735 | (exit $ac_status); }; }; then | |
252b5132 RH |
5736 | ac_cv_c_const=yes |
5737 | else | |
5464f5a1 NN |
5738 | echo "$as_me: failed program was:" >&5 |
5739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5740 | ||
5741 | ac_cv_c_const=no | |
252b5132 | 5742 | fi |
5464f5a1 | 5743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5744 | fi |
5464f5a1 NN |
5745 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5746 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
6be7c12c | 5747 | if test $ac_cv_c_const = no; then |
5464f5a1 NN |
5748 | |
5749 | cat >>confdefs.h <<\_ACEOF | |
5750 | #define const | |
5751 | _ACEOF | |
252b5132 RH |
5752 | |
5753 | fi | |
5754 | ||
5464f5a1 NN |
5755 | echo "$as_me:$LINENO: checking for inline" >&5 |
5756 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
5757 | if test "${ac_cv_c_inline+set}" = set; then | |
5758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5759 | else |
5760 | ac_cv_c_inline=no | |
5761 | for ac_kw in inline __inline__ __inline; do | |
5464f5a1 NN |
5762 | cat >conftest.$ac_ext <<_ACEOF |
5763 | /* confdefs.h. */ | |
5764 | _ACEOF | |
5765 | cat confdefs.h >>conftest.$ac_ext | |
5766 | cat >>conftest.$ac_ext <<_ACEOF | |
5767 | /* end confdefs.h. */ | |
5768 | #ifndef __cplusplus | |
5769 | typedef int foo_t; | |
5770 | static $ac_kw foo_t static_foo () {return 0; } | |
5771 | $ac_kw foo_t foo () {return 0; } | |
5772 | #endif | |
252b5132 | 5773 | |
5464f5a1 NN |
5774 | _ACEOF |
5775 | rm -f conftest.$ac_objext | |
5776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5777 | (eval $ac_compile) 2>conftest.er1 | |
5778 | ac_status=$? | |
5779 | grep -v '^ *+' conftest.er1 >conftest.err | |
5780 | rm -f conftest.er1 | |
5781 | cat conftest.err >&5 | |
5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5783 | (exit $ac_status); } && | |
6ec7057a | 5784 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5786 | (eval $ac_try) 2>&5 | |
5787 | ac_status=$? | |
5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5789 | (exit $ac_status); }; } && | |
5790 | { ac_try='test -s conftest.$ac_objext' | |
5791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5792 | (eval $ac_try) 2>&5 | |
5793 | ac_status=$? | |
5794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5795 | (exit $ac_status); }; }; then | |
252b5132 RH |
5796 | ac_cv_c_inline=$ac_kw; break |
5797 | else | |
5464f5a1 NN |
5798 | echo "$as_me: failed program was:" >&5 |
5799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5800 | ||
252b5132 | 5801 | fi |
5464f5a1 | 5802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5803 | done |
5804 | ||
5464f5a1 NN |
5805 | fi |
5806 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
5807 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
5808 | ||
5809 | ||
5810 | case $ac_cv_c_inline in | |
5811 | inline | yes) ;; | |
5812 | *) | |
5813 | case $ac_cv_c_inline in | |
5814 | no) ac_val=;; | |
5815 | *) ac_val=$ac_cv_c_inline;; | |
5816 | esac | |
5817 | cat >>confdefs.h <<_ACEOF | |
5818 | #ifndef __cplusplus | |
5819 | #define inline $ac_val | |
5820 | #endif | |
5821 | _ACEOF | |
5822 | ;; | |
5823 | esac | |
5824 | ||
5825 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5826 | ||
5827 | ||
5828 | ||
5829 | ||
5830 | ||
5831 | ||
5832 | ||
5833 | ||
5834 | ||
5835 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5836 | inttypes.h stdint.h unistd.h | |
5837 | do | |
5838 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5839 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5840 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5841 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5843 | else | |
5844 | cat >conftest.$ac_ext <<_ACEOF | |
5845 | /* confdefs.h. */ | |
5846 | _ACEOF | |
5847 | cat confdefs.h >>conftest.$ac_ext | |
5848 | cat >>conftest.$ac_ext <<_ACEOF | |
5849 | /* end confdefs.h. */ | |
5850 | $ac_includes_default | |
5851 | ||
5852 | #include <$ac_header> | |
5853 | _ACEOF | |
5854 | rm -f conftest.$ac_objext | |
5855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5856 | (eval $ac_compile) 2>conftest.er1 | |
5857 | ac_status=$? | |
5858 | grep -v '^ *+' conftest.er1 >conftest.err | |
5859 | rm -f conftest.er1 | |
5860 | cat conftest.err >&5 | |
5861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5862 | (exit $ac_status); } && | |
6ec7057a | 5863 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5865 | (eval $ac_try) 2>&5 | |
5866 | ac_status=$? | |
5867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5868 | (exit $ac_status); }; } && | |
5869 | { ac_try='test -s conftest.$ac_objext' | |
5870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5871 | (eval $ac_try) 2>&5 | |
5872 | ac_status=$? | |
5873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5874 | (exit $ac_status); }; }; then | |
5875 | eval "$as_ac_Header=yes" | |
5876 | else | |
5877 | echo "$as_me: failed program was:" >&5 | |
5878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5879 | ||
5880 | eval "$as_ac_Header=no" | |
5881 | fi | |
5882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5883 | fi | |
5884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5885 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5886 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5887 | cat >>confdefs.h <<_ACEOF | |
5888 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5889 | _ACEOF | |
5890 | ||
252b5132 | 5891 | fi |
6be7c12c | 5892 | |
5464f5a1 | 5893 | done |
252b5132 | 5894 | |
5464f5a1 NN |
5895 | |
5896 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
5897 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5898 | if test "${ac_cv_type_off_t+set}" = set; then | |
5899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3baf5d0 | 5900 | else |
5464f5a1 NN |
5901 | cat >conftest.$ac_ext <<_ACEOF |
5902 | /* confdefs.h. */ | |
5903 | _ACEOF | |
5904 | cat confdefs.h >>conftest.$ac_ext | |
5905 | cat >>conftest.$ac_ext <<_ACEOF | |
5906 | /* end confdefs.h. */ | |
5907 | $ac_includes_default | |
5908 | int | |
5909 | main () | |
5910 | { | |
5911 | if ((off_t *) 0) | |
5912 | return 0; | |
5913 | if (sizeof (off_t)) | |
5914 | return 0; | |
5915 | ; | |
5916 | return 0; | |
5917 | } | |
5918 | _ACEOF | |
5919 | rm -f conftest.$ac_objext | |
5920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5921 | (eval $ac_compile) 2>conftest.er1 | |
5922 | ac_status=$? | |
5923 | grep -v '^ *+' conftest.er1 >conftest.err | |
5924 | rm -f conftest.er1 | |
5925 | cat conftest.err >&5 | |
5926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5927 | (exit $ac_status); } && | |
6ec7057a | 5928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5930 | (eval $ac_try) 2>&5 | |
5931 | ac_status=$? | |
5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5933 | (exit $ac_status); }; } && | |
5934 | { ac_try='test -s conftest.$ac_objext' | |
5935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5936 | (eval $ac_try) 2>&5 | |
5937 | ac_status=$? | |
5938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5939 | (exit $ac_status); }; }; then | |
653f71ca | 5940 | ac_cv_type_off_t=yes |
252b5132 | 5941 | else |
5464f5a1 NN |
5942 | echo "$as_me: failed program was:" >&5 |
5943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3baf5d0 | 5944 | |
5464f5a1 | 5945 | ac_cv_type_off_t=no |
6be7c12c | 5946 | fi |
5464f5a1 NN |
5947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5948 | fi | |
5949 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5950 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
5951 | if test $ac_cv_type_off_t = yes; then | |
5952 | : | |
5953 | else | |
5954 | ||
5955 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5956 | #define off_t long |
5464f5a1 | 5957 | _ACEOF |
252b5132 RH |
5958 | |
5959 | fi | |
5960 | ||
5464f5a1 NN |
5961 | echo "$as_me:$LINENO: checking for size_t" >&5 |
5962 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
5963 | if test "${ac_cv_type_size_t+set}" = set; then | |
5964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5965 | else |
5464f5a1 NN |
5966 | cat >conftest.$ac_ext <<_ACEOF |
5967 | /* confdefs.h. */ | |
5968 | _ACEOF | |
5969 | cat confdefs.h >>conftest.$ac_ext | |
5970 | cat >>conftest.$ac_ext <<_ACEOF | |
5971 | /* end confdefs.h. */ | |
5972 | $ac_includes_default | |
5973 | int | |
5974 | main () | |
5975 | { | |
5976 | if ((size_t *) 0) | |
5977 | return 0; | |
5978 | if (sizeof (size_t)) | |
5979 | return 0; | |
5980 | ; | |
5981 | return 0; | |
5982 | } | |
5983 | _ACEOF | |
5984 | rm -f conftest.$ac_objext | |
5985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5986 | (eval $ac_compile) 2>conftest.er1 | |
5987 | ac_status=$? | |
5988 | grep -v '^ *+' conftest.er1 >conftest.err | |
5989 | rm -f conftest.er1 | |
5990 | cat conftest.err >&5 | |
5991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5992 | (exit $ac_status); } && | |
6ec7057a | 5993 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5995 | (eval $ac_try) 2>&5 | |
5996 | ac_status=$? | |
5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5998 | (exit $ac_status); }; } && | |
5999 | { ac_try='test -s conftest.$ac_objext' | |
6000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6001 | (eval $ac_try) 2>&5 | |
6002 | ac_status=$? | |
6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6004 | (exit $ac_status); }; }; then | |
653f71ca | 6005 | ac_cv_type_size_t=yes |
252b5132 | 6006 | else |
5464f5a1 NN |
6007 | echo "$as_me: failed program was:" >&5 |
6008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3baf5d0 | 6009 | |
5464f5a1 | 6010 | ac_cv_type_size_t=no |
6be7c12c | 6011 | fi |
5464f5a1 NN |
6012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6013 | fi | |
6014 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
6015 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
6016 | if test $ac_cv_type_size_t = yes; then | |
6017 | : | |
6018 | else | |
6019 | ||
6020 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6021 | #define size_t unsigned |
5464f5a1 | 6022 | _ACEOF |
252b5132 RH |
6023 | |
6024 | fi | |
6025 | ||
6026 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6027 | # for constant arguments. Useless! | |
5464f5a1 NN |
6028 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6029 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
6030 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
6031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6032 | else | |
6033 | cat >conftest.$ac_ext <<_ACEOF | |
6034 | /* confdefs.h. */ | |
6035 | _ACEOF | |
6036 | cat confdefs.h >>conftest.$ac_ext | |
6037 | cat >>conftest.$ac_ext <<_ACEOF | |
6038 | /* end confdefs.h. */ | |
252b5132 | 6039 | #include <alloca.h> |
5464f5a1 NN |
6040 | int |
6041 | main () | |
6042 | { | |
6043 | char *p = (char *) alloca (2 * sizeof (int)); | |
6044 | ; | |
6045 | return 0; | |
6046 | } | |
6047 | _ACEOF | |
6048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6050 | (eval $ac_link) 2>conftest.er1 | |
6051 | ac_status=$? | |
6052 | grep -v '^ *+' conftest.er1 >conftest.err | |
6053 | rm -f conftest.er1 | |
6054 | cat conftest.err >&5 | |
6055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6056 | (exit $ac_status); } && | |
6ec7057a | 6057 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6059 | (eval $ac_try) 2>&5 | |
6060 | ac_status=$? | |
6061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6062 | (exit $ac_status); }; } && | |
6063 | { ac_try='test -s conftest$ac_exeext' | |
6064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6065 | (eval $ac_try) 2>&5 | |
6066 | ac_status=$? | |
6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6068 | (exit $ac_status); }; }; then | |
6069 | ac_cv_working_alloca_h=yes | |
6070 | else | |
6071 | echo "$as_me: failed program was:" >&5 | |
6072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6073 | ||
6074 | ac_cv_working_alloca_h=no | |
6075 | fi | |
6076 | rm -f conftest.err conftest.$ac_objext \ | |
6077 | conftest$ac_exeext conftest.$ac_ext | |
6078 | fi | |
6079 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
6080 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
6081 | if test $ac_cv_working_alloca_h = yes; then | |
6082 | ||
6083 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6084 | #define HAVE_ALLOCA_H 1 |
5464f5a1 | 6085 | _ACEOF |
252b5132 RH |
6086 | |
6087 | fi | |
6088 | ||
5464f5a1 NN |
6089 | echo "$as_me:$LINENO: checking for alloca" >&5 |
6090 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
6091 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
6092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6093 | else |
5464f5a1 NN |
6094 | cat >conftest.$ac_ext <<_ACEOF |
6095 | /* confdefs.h. */ | |
6096 | _ACEOF | |
6097 | cat confdefs.h >>conftest.$ac_ext | |
6098 | cat >>conftest.$ac_ext <<_ACEOF | |
6099 | /* end confdefs.h. */ | |
252b5132 RH |
6100 | #ifdef __GNUC__ |
6101 | # define alloca __builtin_alloca | |
6102 | #else | |
6103 | # ifdef _MSC_VER | |
6104 | # include <malloc.h> | |
6105 | # define alloca _alloca | |
6106 | # else | |
6107 | # if HAVE_ALLOCA_H | |
6108 | # include <alloca.h> | |
6109 | # else | |
6110 | # ifdef _AIX | |
6111 | #pragma alloca | |
6112 | # else | |
6113 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6114 | char *alloca (); | |
6115 | # endif | |
6116 | # endif | |
6117 | # endif | |
6118 | # endif | |
6119 | #endif | |
6120 | ||
5464f5a1 NN |
6121 | int |
6122 | main () | |
6123 | { | |
6124 | char *p = (char *) alloca (1); | |
6125 | ; | |
6126 | return 0; | |
6127 | } | |
6128 | _ACEOF | |
6129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6131 | (eval $ac_link) 2>conftest.er1 | |
6132 | ac_status=$? | |
6133 | grep -v '^ *+' conftest.er1 >conftest.err | |
6134 | rm -f conftest.er1 | |
6135 | cat conftest.err >&5 | |
6136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6137 | (exit $ac_status); } && | |
6ec7057a | 6138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6140 | (eval $ac_try) 2>&5 | |
6141 | ac_status=$? | |
6142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6143 | (exit $ac_status); }; } && | |
6144 | { ac_try='test -s conftest$ac_exeext' | |
6145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6146 | (eval $ac_try) 2>&5 | |
6147 | ac_status=$? | |
6148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6149 | (exit $ac_status); }; }; then | |
252b5132 RH |
6150 | ac_cv_func_alloca_works=yes |
6151 | else | |
5464f5a1 NN |
6152 | echo "$as_me: failed program was:" >&5 |
6153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6154 | ||
6155 | ac_cv_func_alloca_works=no | |
252b5132 | 6156 | fi |
5464f5a1 NN |
6157 | rm -f conftest.err conftest.$ac_objext \ |
6158 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 6159 | fi |
5464f5a1 NN |
6160 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6161 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 6162 | |
252b5132 | 6163 | if test $ac_cv_func_alloca_works = yes; then |
252b5132 | 6164 | |
5464f5a1 NN |
6165 | cat >>confdefs.h <<\_ACEOF |
6166 | #define HAVE_ALLOCA 1 | |
6167 | _ACEOF | |
b3baf5d0 | 6168 | |
5464f5a1 | 6169 | else |
6be7c12c | 6170 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5464f5a1 NN |
6171 | # that cause trouble. Some versions do not even contain alloca or |
6172 | # contain a buggy version. If you still want to use their alloca, | |
6173 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6174 | ||
6175 | ALLOCA=alloca.$ac_objext | |
6176 | ||
6177 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6178 | #define C_ALLOCA 1 |
5464f5a1 | 6179 | _ACEOF |
252b5132 | 6180 | |
6be7c12c | 6181 | |
5464f5a1 NN |
6182 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6183 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
6184 | if test "${ac_cv_os_cray+set}" = set; then | |
6185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6186 | else |
5464f5a1 NN |
6187 | cat >conftest.$ac_ext <<_ACEOF |
6188 | /* confdefs.h. */ | |
6189 | _ACEOF | |
6190 | cat confdefs.h >>conftest.$ac_ext | |
6191 | cat >>conftest.$ac_ext <<_ACEOF | |
6192 | /* end confdefs.h. */ | |
252b5132 RH |
6193 | #if defined(CRAY) && ! defined(CRAY2) |
6194 | webecray | |
6195 | #else | |
6196 | wenotbecray | |
6197 | #endif | |
6198 | ||
5464f5a1 | 6199 | _ACEOF |
252b5132 | 6200 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 6201 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
6202 | ac_cv_os_cray=yes |
6203 | else | |
252b5132 RH |
6204 | ac_cv_os_cray=no |
6205 | fi | |
6206 | rm -f conftest* | |
6207 | ||
6208 | fi | |
5464f5a1 NN |
6209 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6210 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
252b5132 | 6211 | if test $ac_cv_os_cray = yes; then |
5464f5a1 NN |
6212 | for ac_func in _getb67 GETB67 getb67; do |
6213 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6214 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6215 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6216 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6218 | else | |
6219 | cat >conftest.$ac_ext <<_ACEOF | |
6220 | /* confdefs.h. */ | |
6221 | _ACEOF | |
6222 | cat confdefs.h >>conftest.$ac_ext | |
6223 | cat >>conftest.$ac_ext <<_ACEOF | |
6224 | /* end confdefs.h. */ | |
6225 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6226 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6227 | #define $ac_func innocuous_$ac_func | |
6228 | ||
252b5132 | 6229 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6230 | which can conflict with char $ac_func (); below. |
6231 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6232 | <limits.h> exists even on freestanding compilers. */ | |
6233 | ||
6234 | #ifdef __STDC__ | |
6235 | # include <limits.h> | |
6236 | #else | |
6237 | # include <assert.h> | |
6238 | #endif | |
6be7c12c | 6239 | |
5464f5a1 | 6240 | #undef $ac_func |
252b5132 | 6241 | |
5464f5a1 NN |
6242 | /* Override any gcc2 internal prototype to avoid an error. */ |
6243 | #ifdef __cplusplus | |
6244 | extern "C" | |
6245 | { | |
6246 | #endif | |
6247 | /* We use char because int might match the return type of a gcc2 | |
6248 | builtin and then its argument prototype would still apply. */ | |
6249 | char $ac_func (); | |
252b5132 RH |
6250 | /* The GNU C library defines this for functions which it implements |
6251 | to always fail with ENOSYS. Some functions are actually named | |
6252 | something starting with __ and the normal name is an alias. */ | |
6253 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6254 | choke me | |
6255 | #else | |
5464f5a1 NN |
6256 | char (*f) () = $ac_func; |
6257 | #endif | |
6258 | #ifdef __cplusplus | |
6259 | } | |
252b5132 RH |
6260 | #endif |
6261 | ||
5464f5a1 NN |
6262 | int |
6263 | main () | |
6264 | { | |
6265 | return f != $ac_func; | |
6266 | ; | |
6267 | return 0; | |
6268 | } | |
6269 | _ACEOF | |
6270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6272 | (eval $ac_link) 2>conftest.er1 | |
6273 | ac_status=$? | |
6274 | grep -v '^ *+' conftest.er1 >conftest.err | |
6275 | rm -f conftest.er1 | |
6276 | cat conftest.err >&5 | |
6277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6278 | (exit $ac_status); } && | |
6ec7057a | 6279 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6281 | (eval $ac_try) 2>&5 | |
6282 | ac_status=$? | |
6283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6284 | (exit $ac_status); }; } && | |
6285 | { ac_try='test -s conftest$ac_exeext' | |
6286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6287 | (eval $ac_try) 2>&5 | |
6288 | ac_status=$? | |
6289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6290 | (exit $ac_status); }; }; then | |
6291 | eval "$as_ac_var=yes" | |
6292 | else | |
6293 | echo "$as_me: failed program was:" >&5 | |
6294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6295 | ||
6296 | eval "$as_ac_var=no" | |
6297 | fi | |
6298 | rm -f conftest.err conftest.$ac_objext \ | |
6299 | conftest$ac_exeext conftest.$ac_ext | |
6300 | fi | |
6301 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6302 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6303 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6304 | ||
6305 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6306 | #define CRAY_STACKSEG_END $ac_func |
5464f5a1 | 6307 | _ACEOF |
252b5132 | 6308 | |
5464f5a1 | 6309 | break |
252b5132 RH |
6310 | fi |
6311 | ||
5464f5a1 | 6312 | done |
252b5132 RH |
6313 | fi |
6314 | ||
5464f5a1 NN |
6315 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6316 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
6317 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
6318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6319 | else |
6320 | if test "$cross_compiling" = yes; then | |
6321 | ac_cv_c_stack_direction=0 | |
6322 | else | |
5464f5a1 NN |
6323 | cat >conftest.$ac_ext <<_ACEOF |
6324 | /* confdefs.h. */ | |
6325 | _ACEOF | |
6326 | cat confdefs.h >>conftest.$ac_ext | |
6327 | cat >>conftest.$ac_ext <<_ACEOF | |
6328 | /* end confdefs.h. */ | |
6329 | int | |
252b5132 RH |
6330 | find_stack_direction () |
6331 | { | |
6332 | static char *addr = 0; | |
6333 | auto char dummy; | |
6334 | if (addr == 0) | |
6335 | { | |
6336 | addr = &dummy; | |
6337 | return find_stack_direction (); | |
6338 | } | |
6339 | else | |
6340 | return (&dummy > addr) ? 1 : -1; | |
6341 | } | |
5464f5a1 NN |
6342 | |
6343 | int | |
252b5132 RH |
6344 | main () |
6345 | { | |
5464f5a1 | 6346 | exit (find_stack_direction () < 0); |
252b5132 | 6347 | } |
5464f5a1 NN |
6348 | _ACEOF |
6349 | rm -f conftest$ac_exeext | |
6350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6351 | (eval $ac_link) 2>&5 | |
6352 | ac_status=$? | |
6353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6354 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6356 | (eval $ac_try) 2>&5 | |
6357 | ac_status=$? | |
6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6359 | (exit $ac_status); }; }; then | |
252b5132 RH |
6360 | ac_cv_c_stack_direction=1 |
6361 | else | |
5464f5a1 NN |
6362 | echo "$as_me: program exited with status $ac_status" >&5 |
6363 | echo "$as_me: failed program was:" >&5 | |
6364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6365 | ||
6366 | ( exit $ac_status ) | |
6367 | ac_cv_c_stack_direction=-1 | |
252b5132 | 6368 | fi |
5464f5a1 | 6369 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6370 | fi |
252b5132 | 6371 | fi |
5464f5a1 NN |
6372 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6373 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 6374 | |
5464f5a1 | 6375 | cat >>confdefs.h <<_ACEOF |
252b5132 | 6376 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
5464f5a1 NN |
6377 | _ACEOF |
6378 | ||
252b5132 RH |
6379 | |
6380 | fi | |
6381 | ||
5464f5a1 NN |
6382 | |
6383 | ||
6384 | for ac_header in stdlib.h unistd.h | |
252b5132 | 6385 | do |
5464f5a1 NN |
6386 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6387 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6388 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6389 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6390 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6392 | fi | |
6393 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6394 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6395 | else | |
6396 | # Is the header compilable? | |
6397 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6398 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6399 | cat >conftest.$ac_ext <<_ACEOF | |
6400 | /* confdefs.h. */ | |
6401 | _ACEOF | |
6402 | cat confdefs.h >>conftest.$ac_ext | |
6403 | cat >>conftest.$ac_ext <<_ACEOF | |
6404 | /* end confdefs.h. */ | |
6405 | $ac_includes_default | |
6406 | #include <$ac_header> | |
6407 | _ACEOF | |
6408 | rm -f conftest.$ac_objext | |
6409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6410 | (eval $ac_compile) 2>conftest.er1 | |
6411 | ac_status=$? | |
6412 | grep -v '^ *+' conftest.er1 >conftest.err | |
6413 | rm -f conftest.er1 | |
6414 | cat conftest.err >&5 | |
6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6416 | (exit $ac_status); } && | |
6ec7057a | 6417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6419 | (eval $ac_try) 2>&5 | |
6420 | ac_status=$? | |
6421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6422 | (exit $ac_status); }; } && | |
6423 | { ac_try='test -s conftest.$ac_objext' | |
6424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6425 | (eval $ac_try) 2>&5 | |
6426 | ac_status=$? | |
6427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6428 | (exit $ac_status); }; }; then | |
6429 | ac_header_compiler=yes | |
6430 | else | |
6431 | echo "$as_me: failed program was:" >&5 | |
6432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6433 | ||
6434 | ac_header_compiler=no | |
6435 | fi | |
6436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6437 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6438 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6439 | ||
6440 | # Is the header present? | |
6441 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6442 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6443 | cat >conftest.$ac_ext <<_ACEOF | |
6444 | /* confdefs.h. */ | |
6445 | _ACEOF | |
6446 | cat confdefs.h >>conftest.$ac_ext | |
6447 | cat >>conftest.$ac_ext <<_ACEOF | |
6448 | /* end confdefs.h. */ | |
6449 | #include <$ac_header> | |
6450 | _ACEOF | |
6451 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6452 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6453 | ac_status=$? | |
6454 | grep -v '^ *+' conftest.er1 >conftest.err | |
6455 | rm -f conftest.er1 | |
6456 | cat conftest.err >&5 | |
6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6458 | (exit $ac_status); } >/dev/null; then | |
6459 | if test -s conftest.err; then | |
6460 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6461 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6462 | else | |
6463 | ac_cpp_err= | |
6464 | fi | |
252b5132 | 6465 | else |
5464f5a1 | 6466 | ac_cpp_err=yes |
252b5132 | 6467 | fi |
5464f5a1 NN |
6468 | if test -z "$ac_cpp_err"; then |
6469 | ac_header_preproc=yes | |
6470 | else | |
6471 | echo "$as_me: failed program was:" >&5 | |
6472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6473 | ||
6474 | ac_header_preproc=no | |
252b5132 | 6475 | fi |
5464f5a1 NN |
6476 | rm -f conftest.err conftest.$ac_ext |
6477 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6478 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6479 | ||
6480 | # So? What about this header? | |
6481 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6482 | yes:no: ) | |
6483 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6484 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6485 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6486 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6487 | ac_header_preproc=yes | |
6488 | ;; | |
6489 | no:yes:* ) | |
6490 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6491 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6492 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6493 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6494 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6495 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6496 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6497 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6498 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6499 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6500 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6501 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6502 | ( | |
6503 | cat <<\_ASBOX | |
6504 | ## ------------------------------------------ ## | |
6505 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6506 | ## ------------------------------------------ ## | |
6507 | _ASBOX | |
6508 | ) | | |
6509 | sed "s/^/$as_me: WARNING: /" >&2 | |
6510 | ;; | |
6511 | esac | |
6512 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6513 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6514 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 6516 | else |
5464f5a1 NN |
6517 | eval "$as_ac_Header=\$ac_header_preproc" |
6518 | fi | |
6519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6520 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6521 | ||
252b5132 | 6522 | fi |
5464f5a1 NN |
6523 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6524 | cat >>confdefs.h <<_ACEOF | |
6525 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6526 | _ACEOF | |
6527 | ||
6528 | fi | |
6529 | ||
252b5132 RH |
6530 | done |
6531 | ||
5464f5a1 | 6532 | |
252b5132 RH |
6533 | for ac_func in getpagesize |
6534 | do | |
5464f5a1 NN |
6535 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6536 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6537 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6538 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6540 | else | |
6541 | cat >conftest.$ac_ext <<_ACEOF | |
6542 | /* confdefs.h. */ | |
6543 | _ACEOF | |
6544 | cat confdefs.h >>conftest.$ac_ext | |
6545 | cat >>conftest.$ac_ext <<_ACEOF | |
6546 | /* end confdefs.h. */ | |
6547 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6548 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6549 | #define $ac_func innocuous_$ac_func | |
6550 | ||
252b5132 | 6551 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6552 | which can conflict with char $ac_func (); below. |
6553 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6554 | <limits.h> exists even on freestanding compilers. */ | |
6555 | ||
6556 | #ifdef __STDC__ | |
6557 | # include <limits.h> | |
6558 | #else | |
6559 | # include <assert.h> | |
6560 | #endif | |
6be7c12c | 6561 | |
5464f5a1 | 6562 | #undef $ac_func |
252b5132 | 6563 | |
5464f5a1 NN |
6564 | /* Override any gcc2 internal prototype to avoid an error. */ |
6565 | #ifdef __cplusplus | |
6566 | extern "C" | |
6567 | { | |
6568 | #endif | |
6569 | /* We use char because int might match the return type of a gcc2 | |
6570 | builtin and then its argument prototype would still apply. */ | |
6571 | char $ac_func (); | |
252b5132 RH |
6572 | /* The GNU C library defines this for functions which it implements |
6573 | to always fail with ENOSYS. Some functions are actually named | |
6574 | something starting with __ and the normal name is an alias. */ | |
6575 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6576 | choke me | |
6577 | #else | |
5464f5a1 NN |
6578 | char (*f) () = $ac_func; |
6579 | #endif | |
6580 | #ifdef __cplusplus | |
6581 | } | |
252b5132 RH |
6582 | #endif |
6583 | ||
5464f5a1 NN |
6584 | int |
6585 | main () | |
6586 | { | |
6587 | return f != $ac_func; | |
6588 | ; | |
6589 | return 0; | |
6590 | } | |
6591 | _ACEOF | |
6592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6594 | (eval $ac_link) 2>conftest.er1 | |
6595 | ac_status=$? | |
6596 | grep -v '^ *+' conftest.er1 >conftest.err | |
6597 | rm -f conftest.er1 | |
6598 | cat conftest.err >&5 | |
6599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6600 | (exit $ac_status); } && | |
6ec7057a | 6601 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6603 | (eval $ac_try) 2>&5 | |
6604 | ac_status=$? | |
6605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6606 | (exit $ac_status); }; } && | |
6607 | { ac_try='test -s conftest$ac_exeext' | |
6608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6609 | (eval $ac_try) 2>&5 | |
6610 | ac_status=$? | |
6611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6612 | (exit $ac_status); }; }; then | |
6613 | eval "$as_ac_var=yes" | |
6614 | else | |
6615 | echo "$as_me: failed program was:" >&5 | |
6616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6617 | ||
6618 | eval "$as_ac_var=no" | |
6619 | fi | |
6620 | rm -f conftest.err conftest.$ac_objext \ | |
6621 | conftest$ac_exeext conftest.$ac_ext | |
6622 | fi | |
6623 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6624 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6625 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6626 | cat >>confdefs.h <<_ACEOF | |
6627 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6628 | _ACEOF | |
252b5132 | 6629 | |
252b5132 RH |
6630 | fi |
6631 | done | |
6632 | ||
5464f5a1 NN |
6633 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
6634 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6635 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6637 | else |
6638 | if test "$cross_compiling" = yes; then | |
6639 | ac_cv_func_mmap_fixed_mapped=no | |
6640 | else | |
5464f5a1 NN |
6641 | cat >conftest.$ac_ext <<_ACEOF |
6642 | /* confdefs.h. */ | |
6643 | _ACEOF | |
6644 | cat confdefs.h >>conftest.$ac_ext | |
6645 | cat >>conftest.$ac_ext <<_ACEOF | |
6646 | /* end confdefs.h. */ | |
6647 | $ac_includes_default | |
6648 | /* malloc might have been renamed as rpl_malloc. */ | |
6649 | #undef malloc | |
6be7c12c | 6650 | |
252b5132 RH |
6651 | /* Thanks to Mike Haertel and Jim Avera for this test. |
6652 | Here is a matrix of mmap possibilities: | |
6653 | mmap private not fixed | |
6654 | mmap private fixed at somewhere currently unmapped | |
6655 | mmap private fixed at somewhere already mapped | |
6656 | mmap shared not fixed | |
6657 | mmap shared fixed at somewhere currently unmapped | |
6658 | mmap shared fixed at somewhere already mapped | |
6659 | For private mappings, we should verify that changes cannot be read() | |
6660 | back from the file, nor mmap's back from the file at a different | |
6661 | address. (There have been systems where private was not correctly | |
6662 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 6663 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
6664 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
6665 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 6666 | propagated back to all the places they're supposed to be. |
252b5132 RH |
6667 | |
6668 | Grep wants private fixed already mapped. | |
6669 | The main things grep needs to know about mmap are: | |
6670 | * does it exist and is it safe to write into the mmap'd area | |
6671 | * how to use it (BSD variants) */ | |
5464f5a1 | 6672 | |
252b5132 RH |
6673 | #include <fcntl.h> |
6674 | #include <sys/mman.h> | |
6675 | ||
5464f5a1 NN |
6676 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
6677 | char *malloc (); | |
6678 | #endif | |
6be7c12c | 6679 | |
5464f5a1 NN |
6680 | /* This mess was copied from the GNU getpagesize.h. */ |
6681 | #if !HAVE_GETPAGESIZE | |
252b5132 | 6682 | /* Assume that all systems that can run configure have sys/param.h. */ |
5464f5a1 | 6683 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
6684 | # define HAVE_SYS_PARAM_H 1 |
6685 | # endif | |
6686 | ||
6687 | # ifdef _SC_PAGESIZE | |
6688 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6689 | # else /* no _SC_PAGESIZE */ | |
5464f5a1 | 6690 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
6691 | # include <sys/param.h> |
6692 | # ifdef EXEC_PAGESIZE | |
6693 | # define getpagesize() EXEC_PAGESIZE | |
6694 | # else /* no EXEC_PAGESIZE */ | |
6695 | # ifdef NBPG | |
6696 | # define getpagesize() NBPG * CLSIZE | |
6697 | # ifndef CLSIZE | |
6698 | # define CLSIZE 1 | |
6699 | # endif /* no CLSIZE */ | |
6700 | # else /* no NBPG */ | |
6701 | # ifdef NBPC | |
6702 | # define getpagesize() NBPC | |
6703 | # else /* no NBPC */ | |
6704 | # ifdef PAGESIZE | |
6705 | # define getpagesize() PAGESIZE | |
6706 | # endif /* PAGESIZE */ | |
6707 | # endif /* no NBPC */ | |
6708 | # endif /* no NBPG */ | |
6709 | # endif /* no EXEC_PAGESIZE */ | |
6710 | # else /* no HAVE_SYS_PARAM_H */ | |
6711 | # define getpagesize() 8192 /* punt totally */ | |
6712 | # endif /* no HAVE_SYS_PARAM_H */ | |
6713 | # endif /* no _SC_PAGESIZE */ | |
6714 | ||
6715 | #endif /* no HAVE_GETPAGESIZE */ | |
6716 | ||
252b5132 | 6717 | int |
5464f5a1 | 6718 | main () |
252b5132 | 6719 | { |
5464f5a1 NN |
6720 | char *data, *data2, *data3; |
6721 | int i, pagesize; | |
6722 | int fd; | |
6723 | ||
6724 | pagesize = getpagesize (); | |
6725 | ||
6726 | /* First, make a file with some known garbage in it. */ | |
6727 | data = (char *) malloc (pagesize); | |
6728 | if (!data) | |
6729 | exit (1); | |
6730 | for (i = 0; i < pagesize; ++i) | |
6731 | *(data + i) = rand (); | |
6732 | umask (0); | |
6733 | fd = creat ("conftest.mmap", 0600); | |
6734 | if (fd < 0) | |
6735 | exit (1); | |
6736 | if (write (fd, data, pagesize) != pagesize) | |
6737 | exit (1); | |
6738 | close (fd); | |
6739 | ||
6740 | /* Next, try to mmap the file at a fixed address which already has | |
6741 | something else allocated at it. If we can, also make sure that | |
6742 | we see the same garbage. */ | |
6743 | fd = open ("conftest.mmap", O_RDWR); | |
6744 | if (fd < 0) | |
6745 | exit (1); | |
6746 | data2 = (char *) malloc (2 * pagesize); | |
6747 | if (!data2) | |
6748 | exit (1); | |
6749 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
6750 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6751 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6752 | exit (1); | |
6753 | for (i = 0; i < pagesize; ++i) | |
6754 | if (*(data + i) != *(data2 + i)) | |
6755 | exit (1); | |
6756 | ||
6757 | /* Finally, make sure that changes to the mapped area do not | |
6758 | percolate back to the file as seen by read(). (This is a bug on | |
6759 | some variants of i386 svr4.0.) */ | |
6760 | for (i = 0; i < pagesize; ++i) | |
6761 | *(data2 + i) = *(data2 + i) + 1; | |
6762 | data3 = (char *) malloc (pagesize); | |
6763 | if (!data3) | |
6764 | exit (1); | |
6765 | if (read (fd, data3, pagesize) != pagesize) | |
6766 | exit (1); | |
6767 | for (i = 0; i < pagesize; ++i) | |
6768 | if (*(data + i) != *(data3 + i)) | |
6769 | exit (1); | |
6770 | close (fd); | |
6771 | exit (0); | |
252b5132 | 6772 | } |
5464f5a1 NN |
6773 | _ACEOF |
6774 | rm -f conftest$ac_exeext | |
6775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6776 | (eval $ac_link) 2>&5 | |
6777 | ac_status=$? | |
6778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6779 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6781 | (eval $ac_try) 2>&5 | |
6782 | ac_status=$? | |
6783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6784 | (exit $ac_status); }; }; then | |
252b5132 RH |
6785 | ac_cv_func_mmap_fixed_mapped=yes |
6786 | else | |
5464f5a1 NN |
6787 | echo "$as_me: program exited with status $ac_status" >&5 |
6788 | echo "$as_me: failed program was:" >&5 | |
6789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6790 | ||
6791 | ( exit $ac_status ) | |
6792 | ac_cv_func_mmap_fixed_mapped=no | |
252b5132 | 6793 | fi |
5464f5a1 | 6794 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6795 | fi |
252b5132 | 6796 | fi |
5464f5a1 NN |
6797 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6798 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
6be7c12c | 6799 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
5464f5a1 NN |
6800 | |
6801 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6802 | #define HAVE_MMAP 1 |
5464f5a1 | 6803 | _ACEOF |
252b5132 RH |
6804 | |
6805 | fi | |
5464f5a1 NN |
6806 | rm -f conftest.mmap |
6807 | ||
6808 | ||
252b5132 | 6809 | |
5464f5a1 NN |
6810 | |
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | ||
6816 | ||
6817 | ||
6818 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
252b5132 RH |
6819 | unistd.h values.h sys/param.h |
6820 | do | |
5464f5a1 NN |
6821 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6823 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6824 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6825 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6827 | fi | |
6828 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6829 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6830 | else | |
6831 | # Is the header compilable? | |
6832 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6833 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6834 | cat >conftest.$ac_ext <<_ACEOF | |
6835 | /* confdefs.h. */ | |
6836 | _ACEOF | |
6837 | cat confdefs.h >>conftest.$ac_ext | |
6838 | cat >>conftest.$ac_ext <<_ACEOF | |
6839 | /* end confdefs.h. */ | |
6840 | $ac_includes_default | |
6841 | #include <$ac_header> | |
6842 | _ACEOF | |
6843 | rm -f conftest.$ac_objext | |
6844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6845 | (eval $ac_compile) 2>conftest.er1 | |
6846 | ac_status=$? | |
6847 | grep -v '^ *+' conftest.er1 >conftest.err | |
6848 | rm -f conftest.er1 | |
6849 | cat conftest.err >&5 | |
6850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6851 | (exit $ac_status); } && | |
6ec7057a | 6852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6854 | (eval $ac_try) 2>&5 | |
6855 | ac_status=$? | |
6856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6857 | (exit $ac_status); }; } && | |
6858 | { ac_try='test -s conftest.$ac_objext' | |
6859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6860 | (eval $ac_try) 2>&5 | |
6861 | ac_status=$? | |
6862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6863 | (exit $ac_status); }; }; then | |
6864 | ac_header_compiler=yes | |
6865 | else | |
6866 | echo "$as_me: failed program was:" >&5 | |
6867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6868 | ||
6869 | ac_header_compiler=no | |
6870 | fi | |
6871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6872 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6873 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6874 | ||
6875 | # Is the header present? | |
6876 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6877 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6878 | cat >conftest.$ac_ext <<_ACEOF | |
6879 | /* confdefs.h. */ | |
6880 | _ACEOF | |
6881 | cat confdefs.h >>conftest.$ac_ext | |
6882 | cat >>conftest.$ac_ext <<_ACEOF | |
6883 | /* end confdefs.h. */ | |
6884 | #include <$ac_header> | |
6885 | _ACEOF | |
6886 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6887 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6888 | ac_status=$? | |
6889 | grep -v '^ *+' conftest.er1 >conftest.err | |
6890 | rm -f conftest.er1 | |
6891 | cat conftest.err >&5 | |
6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6893 | (exit $ac_status); } >/dev/null; then | |
6894 | if test -s conftest.err; then | |
6895 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6896 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6897 | else | |
6898 | ac_cpp_err= | |
6899 | fi | |
252b5132 | 6900 | else |
5464f5a1 | 6901 | ac_cpp_err=yes |
252b5132 | 6902 | fi |
5464f5a1 NN |
6903 | if test -z "$ac_cpp_err"; then |
6904 | ac_header_preproc=yes | |
6905 | else | |
6906 | echo "$as_me: failed program was:" >&5 | |
6907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6908 | ||
6909 | ac_header_preproc=no | |
252b5132 | 6910 | fi |
5464f5a1 NN |
6911 | rm -f conftest.err conftest.$ac_ext |
6912 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6913 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6914 | ||
6915 | # So? What about this header? | |
6916 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6917 | yes:no: ) | |
6918 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6919 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6920 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6921 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6922 | ac_header_preproc=yes | |
6923 | ;; | |
6924 | no:yes:* ) | |
6925 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6926 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6927 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6928 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6929 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6930 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6931 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6932 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6933 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6934 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6935 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6936 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6937 | ( | |
6938 | cat <<\_ASBOX | |
6939 | ## ------------------------------------------ ## | |
6940 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6941 | ## ------------------------------------------ ## | |
6942 | _ASBOX | |
6943 | ) | | |
6944 | sed "s/^/$as_me: WARNING: /" >&2 | |
6945 | ;; | |
6946 | esac | |
6947 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 6951 | else |
5464f5a1 NN |
6952 | eval "$as_ac_Header=\$ac_header_preproc" |
6953 | fi | |
6954 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6955 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6956 | ||
6957 | fi | |
6958 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6959 | cat >>confdefs.h <<_ACEOF | |
6960 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6961 | _ACEOF | |
6962 | ||
252b5132 | 6963 | fi |
5464f5a1 | 6964 | |
252b5132 RH |
6965 | done |
6966 | ||
5464f5a1 NN |
6967 | |
6968 | ||
6969 | ||
6970 | ||
6971 | ||
6972 | ||
6973 | ||
6974 | ||
6975 | ||
6976 | ||
6977 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
252b5132 RH |
6978 | __argz_count __argz_stringify __argz_next |
6979 | do | |
5464f5a1 NN |
6980 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6981 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6982 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6983 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6985 | else | |
6986 | cat >conftest.$ac_ext <<_ACEOF | |
6987 | /* confdefs.h. */ | |
6988 | _ACEOF | |
6989 | cat confdefs.h >>conftest.$ac_ext | |
6990 | cat >>conftest.$ac_ext <<_ACEOF | |
6991 | /* end confdefs.h. */ | |
6992 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6994 | #define $ac_func innocuous_$ac_func | |
6995 | ||
252b5132 | 6996 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6997 | which can conflict with char $ac_func (); below. |
6998 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6999 | <limits.h> exists even on freestanding compilers. */ | |
7000 | ||
7001 | #ifdef __STDC__ | |
7002 | # include <limits.h> | |
7003 | #else | |
7004 | # include <assert.h> | |
7005 | #endif | |
7006 | ||
7007 | #undef $ac_func | |
7008 | ||
252b5132 | 7009 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
7010 | #ifdef __cplusplus |
7011 | extern "C" | |
7012 | { | |
7013 | #endif | |
252b5132 | 7014 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
7015 | builtin and then its argument prototype would still apply. */ |
7016 | char $ac_func (); | |
252b5132 RH |
7017 | /* The GNU C library defines this for functions which it implements |
7018 | to always fail with ENOSYS. Some functions are actually named | |
7019 | something starting with __ and the normal name is an alias. */ | |
7020 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7021 | choke me | |
7022 | #else | |
5464f5a1 NN |
7023 | char (*f) () = $ac_func; |
7024 | #endif | |
7025 | #ifdef __cplusplus | |
7026 | } | |
252b5132 RH |
7027 | #endif |
7028 | ||
5464f5a1 NN |
7029 | int |
7030 | main () | |
7031 | { | |
7032 | return f != $ac_func; | |
7033 | ; | |
7034 | return 0; | |
7035 | } | |
7036 | _ACEOF | |
7037 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7039 | (eval $ac_link) 2>conftest.er1 | |
7040 | ac_status=$? | |
7041 | grep -v '^ *+' conftest.er1 >conftest.err | |
7042 | rm -f conftest.er1 | |
7043 | cat conftest.err >&5 | |
7044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7045 | (exit $ac_status); } && | |
6ec7057a | 7046 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7048 | (eval $ac_try) 2>&5 | |
7049 | ac_status=$? | |
7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7051 | (exit $ac_status); }; } && | |
7052 | { ac_try='test -s conftest$ac_exeext' | |
7053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7054 | (eval $ac_try) 2>&5 | |
7055 | ac_status=$? | |
7056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7057 | (exit $ac_status); }; }; then | |
7058 | eval "$as_ac_var=yes" | |
7059 | else | |
7060 | echo "$as_me: failed program was:" >&5 | |
7061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7062 | ||
7063 | eval "$as_ac_var=no" | |
7064 | fi | |
7065 | rm -f conftest.err conftest.$ac_objext \ | |
7066 | conftest$ac_exeext conftest.$ac_ext | |
7067 | fi | |
7068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7069 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7070 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7071 | cat >>confdefs.h <<_ACEOF | |
7072 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7073 | _ACEOF | |
252b5132 | 7074 | |
252b5132 RH |
7075 | fi |
7076 | done | |
7077 | ||
b3baf5d0 | 7078 | |
6be7c12c | 7079 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
5464f5a1 NN |
7080 | |
7081 | for ac_func in stpcpy | |
252b5132 | 7082 | do |
5464f5a1 NN |
7083 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7084 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7085 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7086 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7088 | else | |
7089 | cat >conftest.$ac_ext <<_ACEOF | |
7090 | /* confdefs.h. */ | |
7091 | _ACEOF | |
7092 | cat confdefs.h >>conftest.$ac_ext | |
7093 | cat >>conftest.$ac_ext <<_ACEOF | |
7094 | /* end confdefs.h. */ | |
7095 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7096 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7097 | #define $ac_func innocuous_$ac_func | |
7098 | ||
252b5132 | 7099 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
7100 | which can conflict with char $ac_func (); below. |
7101 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7102 | <limits.h> exists even on freestanding compilers. */ | |
7103 | ||
7104 | #ifdef __STDC__ | |
7105 | # include <limits.h> | |
7106 | #else | |
7107 | # include <assert.h> | |
7108 | #endif | |
6be7c12c | 7109 | |
5464f5a1 | 7110 | #undef $ac_func |
252b5132 | 7111 | |
5464f5a1 NN |
7112 | /* Override any gcc2 internal prototype to avoid an error. */ |
7113 | #ifdef __cplusplus | |
7114 | extern "C" | |
7115 | { | |
7116 | #endif | |
7117 | /* We use char because int might match the return type of a gcc2 | |
7118 | builtin and then its argument prototype would still apply. */ | |
7119 | char $ac_func (); | |
252b5132 RH |
7120 | /* The GNU C library defines this for functions which it implements |
7121 | to always fail with ENOSYS. Some functions are actually named | |
7122 | something starting with __ and the normal name is an alias. */ | |
7123 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7124 | choke me | |
7125 | #else | |
5464f5a1 NN |
7126 | char (*f) () = $ac_func; |
7127 | #endif | |
7128 | #ifdef __cplusplus | |
7129 | } | |
252b5132 RH |
7130 | #endif |
7131 | ||
5464f5a1 NN |
7132 | int |
7133 | main () | |
7134 | { | |
7135 | return f != $ac_func; | |
7136 | ; | |
7137 | return 0; | |
7138 | } | |
7139 | _ACEOF | |
7140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7142 | (eval $ac_link) 2>conftest.er1 | |
7143 | ac_status=$? | |
7144 | grep -v '^ *+' conftest.er1 >conftest.err | |
7145 | rm -f conftest.er1 | |
7146 | cat conftest.err >&5 | |
7147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7148 | (exit $ac_status); } && | |
6ec7057a | 7149 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7151 | (eval $ac_try) 2>&5 | |
7152 | ac_status=$? | |
7153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7154 | (exit $ac_status); }; } && | |
7155 | { ac_try='test -s conftest$ac_exeext' | |
7156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7157 | (eval $ac_try) 2>&5 | |
7158 | ac_status=$? | |
7159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7160 | (exit $ac_status); }; }; then | |
7161 | eval "$as_ac_var=yes" | |
7162 | else | |
7163 | echo "$as_me: failed program was:" >&5 | |
7164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7165 | ||
7166 | eval "$as_ac_var=no" | |
7167 | fi | |
7168 | rm -f conftest.err conftest.$ac_objext \ | |
7169 | conftest$ac_exeext conftest.$ac_ext | |
7170 | fi | |
7171 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7172 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7173 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7174 | cat >>confdefs.h <<_ACEOF | |
7175 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7176 | _ACEOF | |
252b5132 | 7177 | |
252b5132 RH |
7178 | fi |
7179 | done | |
7180 | ||
7181 | fi | |
7182 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
5464f5a1 NN |
7183 | |
7184 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7185 | #define HAVE_STPCPY 1 |
5464f5a1 | 7186 | _ACEOF |
252b5132 RH |
7187 | |
7188 | fi | |
7189 | ||
7190 | if test $ac_cv_header_locale_h = yes; then | |
5464f5a1 NN |
7191 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
7192 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
7193 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
7194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7195 | else | |
7196 | cat >conftest.$ac_ext <<_ACEOF | |
7197 | /* confdefs.h. */ | |
7198 | _ACEOF | |
7199 | cat confdefs.h >>conftest.$ac_ext | |
7200 | cat >>conftest.$ac_ext <<_ACEOF | |
7201 | /* end confdefs.h. */ | |
252b5132 | 7202 | #include <locale.h> |
5464f5a1 NN |
7203 | int |
7204 | main () | |
7205 | { | |
252b5132 | 7206 | return LC_MESSAGES |
5464f5a1 NN |
7207 | ; |
7208 | return 0; | |
7209 | } | |
7210 | _ACEOF | |
7211 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7213 | (eval $ac_link) 2>conftest.er1 | |
7214 | ac_status=$? | |
7215 | grep -v '^ *+' conftest.er1 >conftest.err | |
7216 | rm -f conftest.er1 | |
7217 | cat conftest.err >&5 | |
7218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7219 | (exit $ac_status); } && | |
6ec7057a | 7220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7222 | (eval $ac_try) 2>&5 | |
7223 | ac_status=$? | |
7224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7225 | (exit $ac_status); }; } && | |
7226 | { ac_try='test -s conftest$ac_exeext' | |
7227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7228 | (eval $ac_try) 2>&5 | |
7229 | ac_status=$? | |
7230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7231 | (exit $ac_status); }; }; then | |
252b5132 RH |
7232 | am_cv_val_LC_MESSAGES=yes |
7233 | else | |
5464f5a1 NN |
7234 | echo "$as_me: failed program was:" >&5 |
7235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7236 | ||
7237 | am_cv_val_LC_MESSAGES=no | |
252b5132 | 7238 | fi |
5464f5a1 NN |
7239 | rm -f conftest.err conftest.$ac_objext \ |
7240 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7241 | fi |
5464f5a1 NN |
7242 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
7243 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
6be7c12c | 7244 | if test $am_cv_val_LC_MESSAGES = yes; then |
5464f5a1 NN |
7245 | |
7246 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7247 | #define HAVE_LC_MESSAGES 1 |
5464f5a1 | 7248 | _ACEOF |
252b5132 RH |
7249 | |
7250 | fi | |
7251 | fi | |
5464f5a1 NN |
7252 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
7253 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
252b5132 RH |
7254 | # Check whether --enable-nls or --disable-nls was given. |
7255 | if test "${enable_nls+set}" = set; then | |
7256 | enableval="$enable_nls" | |
7257 | USE_NLS=$enableval | |
7258 | else | |
7259 | USE_NLS=yes | |
5464f5a1 NN |
7260 | fi; |
7261 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
7262 | echo "${ECHO_T}$USE_NLS" >&6 | |
6be7c12c | 7263 | |
252b5132 RH |
7264 | |
7265 | USE_INCLUDED_LIBINTL=no | |
7266 | ||
7267 | if test "$USE_NLS" = "yes"; then | |
5464f5a1 NN |
7268 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
7269 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
7270 | ||
7271 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
252b5132 RH |
7272 | if test "${with_included_gettext+set}" = set; then |
7273 | withval="$with_included_gettext" | |
7274 | nls_cv_force_use_gnu_gettext=$withval | |
7275 | else | |
7276 | nls_cv_force_use_gnu_gettext=no | |
5464f5a1 NN |
7277 | fi; |
7278 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
7279 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
252b5132 RH |
7280 | |
7281 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7282 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7283 | nls_cv_header_intl= | |
7284 | nls_cv_header_libgt= | |
a53bf506 | 7285 | CATOBJEXT= |
252b5132 | 7286 | |
5464f5a1 NN |
7287 | if test "${ac_cv_header_libintl_h+set}" = set; then |
7288 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7289 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7290 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7292 | fi | |
7293 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
7294 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7295 | else | |
7296 | # Is the header compilable? | |
7297 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
7298 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
7299 | cat >conftest.$ac_ext <<_ACEOF | |
7300 | /* confdefs.h. */ | |
7301 | _ACEOF | |
7302 | cat confdefs.h >>conftest.$ac_ext | |
7303 | cat >>conftest.$ac_ext <<_ACEOF | |
7304 | /* end confdefs.h. */ | |
7305 | $ac_includes_default | |
252b5132 | 7306 | #include <libintl.h> |
5464f5a1 NN |
7307 | _ACEOF |
7308 | rm -f conftest.$ac_objext | |
7309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7310 | (eval $ac_compile) 2>conftest.er1 | |
7311 | ac_status=$? | |
7312 | grep -v '^ *+' conftest.er1 >conftest.err | |
7313 | rm -f conftest.er1 | |
7314 | cat conftest.err >&5 | |
7315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7316 | (exit $ac_status); } && | |
6ec7057a | 7317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7319 | (eval $ac_try) 2>&5 | |
7320 | ac_status=$? | |
7321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7322 | (exit $ac_status); }; } && | |
7323 | { ac_try='test -s conftest.$ac_objext' | |
7324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7325 | (eval $ac_try) 2>&5 | |
7326 | ac_status=$? | |
7327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7328 | (exit $ac_status); }; }; then | |
7329 | ac_header_compiler=yes | |
7330 | else | |
7331 | echo "$as_me: failed program was:" >&5 | |
7332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7333 | ||
7334 | ac_header_compiler=no | |
7335 | fi | |
7336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7337 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7338 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7339 | ||
7340 | # Is the header present? | |
7341 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
7342 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
7343 | cat >conftest.$ac_ext <<_ACEOF | |
7344 | /* confdefs.h. */ | |
7345 | _ACEOF | |
7346 | cat confdefs.h >>conftest.$ac_ext | |
7347 | cat >>conftest.$ac_ext <<_ACEOF | |
7348 | /* end confdefs.h. */ | |
7349 | #include <libintl.h> | |
7350 | _ACEOF | |
7351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7353 | ac_status=$? | |
7354 | grep -v '^ *+' conftest.er1 >conftest.err | |
7355 | rm -f conftest.er1 | |
7356 | cat conftest.err >&5 | |
7357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7358 | (exit $ac_status); } >/dev/null; then | |
7359 | if test -s conftest.err; then | |
7360 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7361 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7362 | else | |
7363 | ac_cpp_err= | |
7364 | fi | |
252b5132 | 7365 | else |
5464f5a1 | 7366 | ac_cpp_err=yes |
252b5132 | 7367 | fi |
5464f5a1 NN |
7368 | if test -z "$ac_cpp_err"; then |
7369 | ac_header_preproc=yes | |
7370 | else | |
7371 | echo "$as_me: failed program was:" >&5 | |
7372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7373 | ||
7374 | ac_header_preproc=no | |
252b5132 | 7375 | fi |
5464f5a1 NN |
7376 | rm -f conftest.err conftest.$ac_ext |
7377 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7378 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7379 | ||
7380 | # So? What about this header? | |
7381 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7382 | yes:no: ) | |
7383 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7384 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7385 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
7386 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
7387 | ac_header_preproc=yes | |
7388 | ;; | |
7389 | no:yes:* ) | |
7390 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
7391 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
7392 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
7393 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
7394 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
7395 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
7396 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7397 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7398 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
7399 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
7400 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
7401 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
7402 | ( | |
7403 | cat <<\_ASBOX | |
7404 | ## ------------------------------------------ ## | |
7405 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7406 | ## ------------------------------------------ ## | |
7407 | _ASBOX | |
7408 | ) | | |
7409 | sed "s/^/$as_me: WARNING: /" >&2 | |
7410 | ;; | |
7411 | esac | |
7412 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7413 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7414 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7416 | else |
5464f5a1 NN |
7417 | ac_cv_header_libintl_h=$ac_header_preproc |
7418 | fi | |
7419 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
7420 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7421 | ||
7422 | fi | |
7423 | if test $ac_cv_header_libintl_h = yes; then | |
7424 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
7425 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
7426 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
7427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7428 | else | |
7429 | cat >conftest.$ac_ext <<_ACEOF | |
7430 | /* confdefs.h. */ | |
7431 | _ACEOF | |
7432 | cat confdefs.h >>conftest.$ac_ext | |
7433 | cat >>conftest.$ac_ext <<_ACEOF | |
7434 | /* end confdefs.h. */ | |
252b5132 | 7435 | #include <libintl.h> |
5464f5a1 NN |
7436 | int |
7437 | main () | |
7438 | { | |
252b5132 | 7439 | return (int) gettext ("") |
5464f5a1 NN |
7440 | ; |
7441 | return 0; | |
7442 | } | |
7443 | _ACEOF | |
7444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7446 | (eval $ac_link) 2>conftest.er1 | |
7447 | ac_status=$? | |
7448 | grep -v '^ *+' conftest.er1 >conftest.err | |
7449 | rm -f conftest.er1 | |
7450 | cat conftest.err >&5 | |
7451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7452 | (exit $ac_status); } && | |
6ec7057a | 7453 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7455 | (eval $ac_try) 2>&5 | |
7456 | ac_status=$? | |
7457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7458 | (exit $ac_status); }; } && | |
7459 | { ac_try='test -s conftest$ac_exeext' | |
7460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7461 | (eval $ac_try) 2>&5 | |
7462 | ac_status=$? | |
7463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7464 | (exit $ac_status); }; }; then | |
252b5132 RH |
7465 | gt_cv_func_gettext_libc=yes |
7466 | else | |
5464f5a1 NN |
7467 | echo "$as_me: failed program was:" >&5 |
7468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7469 | ||
7470 | gt_cv_func_gettext_libc=no | |
252b5132 | 7471 | fi |
5464f5a1 NN |
7472 | rm -f conftest.err conftest.$ac_objext \ |
7473 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7474 | fi |
5464f5a1 NN |
7475 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
7476 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
252b5132 RH |
7477 | |
7478 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
5464f5a1 NN |
7479 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
7480 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
7481 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
7482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7483 | else |
5464f5a1 | 7484 | ac_check_lib_save_LIBS=$LIBS |
252b5132 | 7485 | LIBS="-lintl $LIBS" |
5464f5a1 NN |
7486 | cat >conftest.$ac_ext <<_ACEOF |
7487 | /* confdefs.h. */ | |
7488 | _ACEOF | |
7489 | cat confdefs.h >>conftest.$ac_ext | |
7490 | cat >>conftest.$ac_ext <<_ACEOF | |
7491 | /* end confdefs.h. */ | |
7492 | ||
252b5132 | 7493 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
7494 | #ifdef __cplusplus |
7495 | extern "C" | |
7496 | #endif | |
252b5132 | 7497 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
7498 | builtin and then its argument prototype would still apply. */ |
7499 | char bindtextdomain (); | |
7500 | int | |
7501 | main () | |
7502 | { | |
7503 | bindtextdomain (); | |
7504 | ; | |
7505 | return 0; | |
7506 | } | |
7507 | _ACEOF | |
7508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7510 | (eval $ac_link) 2>conftest.er1 | |
7511 | ac_status=$? | |
7512 | grep -v '^ *+' conftest.er1 >conftest.err | |
7513 | rm -f conftest.er1 | |
7514 | cat conftest.err >&5 | |
7515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7516 | (exit $ac_status); } && | |
6ec7057a | 7517 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7519 | (eval $ac_try) 2>&5 | |
7520 | ac_status=$? | |
7521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7522 | (exit $ac_status); }; } && | |
7523 | { ac_try='test -s conftest$ac_exeext' | |
7524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7525 | (eval $ac_try) 2>&5 | |
7526 | ac_status=$? | |
7527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7528 | (exit $ac_status); }; }; then | |
7529 | ac_cv_lib_intl_bindtextdomain=yes | |
7530 | else | |
7531 | echo "$as_me: failed program was:" >&5 | |
7532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7533 | ||
7534 | ac_cv_lib_intl_bindtextdomain=no | |
7535 | fi | |
7536 | rm -f conftest.err conftest.$ac_objext \ | |
7537 | conftest$ac_exeext conftest.$ac_ext | |
7538 | LIBS=$ac_check_lib_save_LIBS | |
7539 | fi | |
7540 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
7541 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
7542 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
7543 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
7544 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
7545 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
7546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7547 | else | |
7548 | cat >conftest.$ac_ext <<_ACEOF | |
7549 | /* confdefs.h. */ | |
7550 | _ACEOF | |
7551 | cat confdefs.h >>conftest.$ac_ext | |
7552 | cat >>conftest.$ac_ext <<_ACEOF | |
7553 | /* end confdefs.h. */ | |
252b5132 | 7554 | |
5464f5a1 NN |
7555 | int |
7556 | main () | |
7557 | { | |
252b5132 | 7558 | return (int) gettext ("") |
5464f5a1 NN |
7559 | ; |
7560 | return 0; | |
7561 | } | |
7562 | _ACEOF | |
7563 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7565 | (eval $ac_link) 2>conftest.er1 | |
7566 | ac_status=$? | |
7567 | grep -v '^ *+' conftest.er1 >conftest.err | |
7568 | rm -f conftest.er1 | |
7569 | cat conftest.err >&5 | |
7570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7571 | (exit $ac_status); } && | |
6ec7057a | 7572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7574 | (eval $ac_try) 2>&5 | |
7575 | ac_status=$? | |
7576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7577 | (exit $ac_status); }; } && | |
7578 | { ac_try='test -s conftest$ac_exeext' | |
7579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7580 | (eval $ac_try) 2>&5 | |
7581 | ac_status=$? | |
7582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7583 | (exit $ac_status); }; }; then | |
252b5132 RH |
7584 | gt_cv_func_gettext_libintl=yes |
7585 | else | |
5464f5a1 NN |
7586 | echo "$as_me: failed program was:" >&5 |
7587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7588 | ||
7589 | gt_cv_func_gettext_libintl=no | |
252b5132 | 7590 | fi |
5464f5a1 NN |
7591 | rm -f conftest.err conftest.$ac_objext \ |
7592 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7593 | fi |
5464f5a1 NN |
7594 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
7595 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
252b5132 RH |
7596 | fi |
7597 | ||
7598 | fi | |
7599 | ||
7600 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7601 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
5464f5a1 NN |
7602 | |
7603 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7604 | #define HAVE_GETTEXT 1 |
5464f5a1 | 7605 | _ACEOF |
252b5132 RH |
7606 | |
7607 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7608 | set dummy msgfmt; ac_word=$2 | |
5464f5a1 NN |
7609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7611 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7613 | else |
7614 | case "$MSGFMT" in | |
7615 | /*) | |
7616 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7617 | ;; | |
7618 | *) | |
7619 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7620 | for ac_dir in $PATH; do | |
7621 | test -z "$ac_dir" && ac_dir=. | |
7622 | if test -f $ac_dir/$ac_word; then | |
7623 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7624 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7625 | break | |
7626 | fi | |
7627 | fi | |
7628 | done | |
7629 | IFS="$ac_save_ifs" | |
7630 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7631 | ;; | |
7632 | esac | |
7633 | fi | |
7634 | MSGFMT="$ac_cv_path_MSGFMT" | |
7635 | if test -n "$MSGFMT"; then | |
5464f5a1 NN |
7636 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7637 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7638 | else |
5464f5a1 NN |
7639 | echo "$as_me:$LINENO: result: no" >&5 |
7640 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7641 | fi |
7642 | if test "$MSGFMT" != "no"; then | |
5464f5a1 NN |
7643 | |
7644 | for ac_func in dcgettext | |
252b5132 | 7645 | do |
5464f5a1 NN |
7646 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7647 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7648 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7649 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7651 | else | |
7652 | cat >conftest.$ac_ext <<_ACEOF | |
7653 | /* confdefs.h. */ | |
7654 | _ACEOF | |
7655 | cat confdefs.h >>conftest.$ac_ext | |
7656 | cat >>conftest.$ac_ext <<_ACEOF | |
7657 | /* end confdefs.h. */ | |
7658 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7659 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7660 | #define $ac_func innocuous_$ac_func | |
7661 | ||
252b5132 | 7662 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
7663 | which can conflict with char $ac_func (); below. |
7664 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7665 | <limits.h> exists even on freestanding compilers. */ | |
7666 | ||
7667 | #ifdef __STDC__ | |
7668 | # include <limits.h> | |
7669 | #else | |
7670 | # include <assert.h> | |
7671 | #endif | |
6be7c12c | 7672 | |
5464f5a1 | 7673 | #undef $ac_func |
252b5132 | 7674 | |
5464f5a1 NN |
7675 | /* Override any gcc2 internal prototype to avoid an error. */ |
7676 | #ifdef __cplusplus | |
7677 | extern "C" | |
7678 | { | |
7679 | #endif | |
7680 | /* We use char because int might match the return type of a gcc2 | |
7681 | builtin and then its argument prototype would still apply. */ | |
7682 | char $ac_func (); | |
252b5132 RH |
7683 | /* The GNU C library defines this for functions which it implements |
7684 | to always fail with ENOSYS. Some functions are actually named | |
7685 | something starting with __ and the normal name is an alias. */ | |
7686 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7687 | choke me | |
7688 | #else | |
5464f5a1 NN |
7689 | char (*f) () = $ac_func; |
7690 | #endif | |
7691 | #ifdef __cplusplus | |
7692 | } | |
252b5132 RH |
7693 | #endif |
7694 | ||
5464f5a1 NN |
7695 | int |
7696 | main () | |
7697 | { | |
7698 | return f != $ac_func; | |
7699 | ; | |
7700 | return 0; | |
7701 | } | |
7702 | _ACEOF | |
7703 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7705 | (eval $ac_link) 2>conftest.er1 | |
7706 | ac_status=$? | |
7707 | grep -v '^ *+' conftest.er1 >conftest.err | |
7708 | rm -f conftest.er1 | |
7709 | cat conftest.err >&5 | |
7710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7711 | (exit $ac_status); } && | |
6ec7057a | 7712 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7714 | (eval $ac_try) 2>&5 | |
7715 | ac_status=$? | |
7716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7717 | (exit $ac_status); }; } && | |
7718 | { ac_try='test -s conftest$ac_exeext' | |
7719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7720 | (eval $ac_try) 2>&5 | |
7721 | ac_status=$? | |
7722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7723 | (exit $ac_status); }; }; then | |
7724 | eval "$as_ac_var=yes" | |
7725 | else | |
7726 | echo "$as_me: failed program was:" >&5 | |
7727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7728 | ||
7729 | eval "$as_ac_var=no" | |
7730 | fi | |
7731 | rm -f conftest.err conftest.$ac_objext \ | |
7732 | conftest$ac_exeext conftest.$ac_ext | |
7733 | fi | |
7734 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7735 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7736 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7737 | cat >>confdefs.h <<_ACEOF | |
7738 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7739 | _ACEOF | |
252b5132 | 7740 | |
252b5132 RH |
7741 | fi |
7742 | done | |
7743 | ||
7744 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7745 | set dummy gmsgfmt; ac_word=$2 | |
5464f5a1 NN |
7746 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7748 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7750 | else |
5464f5a1 NN |
7751 | case $GMSGFMT in |
7752 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7753 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7754 | ;; | |
252b5132 | 7755 | *) |
5464f5a1 NN |
7756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7757 | for as_dir in $PATH | |
7758 | do | |
7759 | IFS=$as_save_IFS | |
7760 | test -z "$as_dir" && as_dir=. | |
7761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7762 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7763 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7765 | break 2 | |
7766 | fi | |
7767 | done | |
7768 | done | |
7769 | ||
252b5132 RH |
7770 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7771 | ;; | |
7772 | esac | |
7773 | fi | |
5464f5a1 NN |
7774 | GMSGFMT=$ac_cv_path_GMSGFMT |
7775 | ||
252b5132 | 7776 | if test -n "$GMSGFMT"; then |
5464f5a1 NN |
7777 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7778 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7779 | else |
5464f5a1 NN |
7780 | echo "$as_me:$LINENO: result: no" >&5 |
7781 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7782 | fi |
7783 | ||
7784 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7785 | set dummy xgettext; ac_word=$2 | |
5464f5a1 NN |
7786 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7788 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7790 | else |
7791 | case "$XGETTEXT" in | |
7792 | /*) | |
7793 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7794 | ;; | |
7795 | *) | |
7796 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7797 | for ac_dir in $PATH; do | |
7798 | test -z "$ac_dir" && ac_dir=. | |
7799 | if test -f $ac_dir/$ac_word; then | |
7800 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7801 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7802 | break | |
7803 | fi | |
7804 | fi | |
7805 | done | |
7806 | IFS="$ac_save_ifs" | |
7807 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7808 | ;; | |
7809 | esac | |
7810 | fi | |
7811 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7812 | if test -n "$XGETTEXT"; then | |
5464f5a1 NN |
7813 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7814 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 7815 | else |
5464f5a1 NN |
7816 | echo "$as_me:$LINENO: result: no" >&5 |
7817 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7818 | fi |
7819 | ||
5464f5a1 NN |
7820 | cat >conftest.$ac_ext <<_ACEOF |
7821 | /* confdefs.h. */ | |
7822 | _ACEOF | |
7823 | cat confdefs.h >>conftest.$ac_ext | |
7824 | cat >>conftest.$ac_ext <<_ACEOF | |
7825 | /* end confdefs.h. */ | |
252b5132 | 7826 | |
5464f5a1 NN |
7827 | int |
7828 | main () | |
7829 | { | |
252b5132 RH |
7830 | extern int _nl_msg_cat_cntr; |
7831 | return _nl_msg_cat_cntr | |
5464f5a1 NN |
7832 | ; |
7833 | return 0; | |
7834 | } | |
7835 | _ACEOF | |
7836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7838 | (eval $ac_link) 2>conftest.er1 | |
7839 | ac_status=$? | |
7840 | grep -v '^ *+' conftest.er1 >conftest.err | |
7841 | rm -f conftest.er1 | |
7842 | cat conftest.err >&5 | |
7843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7844 | (exit $ac_status); } && | |
6ec7057a | 7845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7847 | (eval $ac_try) 2>&5 | |
7848 | ac_status=$? | |
7849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7850 | (exit $ac_status); }; } && | |
7851 | { ac_try='test -s conftest$ac_exeext' | |
7852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7853 | (eval $ac_try) 2>&5 | |
7854 | ac_status=$? | |
7855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7856 | (exit $ac_status); }; }; then | |
252b5132 RH |
7857 | CATOBJEXT=.gmo |
7858 | DATADIRNAME=share | |
7859 | else | |
5464f5a1 NN |
7860 | echo "$as_me: failed program was:" >&5 |
7861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7862 | ||
7863 | CATOBJEXT=.mo | |
252b5132 RH |
7864 | DATADIRNAME=lib |
7865 | fi | |
5464f5a1 NN |
7866 | rm -f conftest.err conftest.$ac_objext \ |
7867 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 RH |
7868 | INSTOBJEXT=.mo |
7869 | fi | |
7870 | fi | |
5464f5a1 | 7871 | |
b3baf5d0 | 7872 | fi |
252b5132 | 7873 | |
6be7c12c | 7874 | |
5464f5a1 NN |
7875 | |
7876 | ||
a53bf506 | 7877 | if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then |
45181ed1 AC |
7878 | # Neither gettext nor catgets in included in the C library. |
7879 | # Fall back on GNU gettext library (assuming it is present). | |
7880 | nls_cv_use_gnu_gettext=yes | |
252b5132 RH |
7881 | fi |
7882 | fi | |
7883 | ||
7884 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7885 | INTLOBJS="\$(GETTOBJS)" | |
7886 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7887 | set dummy msgfmt; ac_word=$2 | |
5464f5a1 NN |
7888 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7889 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7890 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7892 | else |
7893 | case "$MSGFMT" in | |
7894 | /*) | |
7895 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7896 | ;; | |
7897 | *) | |
7898 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7899 | for ac_dir in $PATH; do | |
7900 | test -z "$ac_dir" && ac_dir=. | |
7901 | if test -f $ac_dir/$ac_word; then | |
7902 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7903 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7904 | break | |
7905 | fi | |
7906 | fi | |
7907 | done | |
7908 | IFS="$ac_save_ifs" | |
7909 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7910 | ;; | |
7911 | esac | |
7912 | fi | |
7913 | MSGFMT="$ac_cv_path_MSGFMT" | |
7914 | if test -n "$MSGFMT"; then | |
5464f5a1 NN |
7915 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7916 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7917 | else |
5464f5a1 NN |
7918 | echo "$as_me:$LINENO: result: no" >&5 |
7919 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7920 | fi |
7921 | ||
7922 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7923 | set dummy gmsgfmt; ac_word=$2 | |
5464f5a1 NN |
7924 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7926 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7928 | else |
5464f5a1 NN |
7929 | case $GMSGFMT in |
7930 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7931 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7932 | ;; | |
252b5132 | 7933 | *) |
5464f5a1 NN |
7934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7935 | for as_dir in $PATH | |
7936 | do | |
7937 | IFS=$as_save_IFS | |
7938 | test -z "$as_dir" && as_dir=. | |
7939 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7940 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7941 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7942 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7943 | break 2 | |
7944 | fi | |
7945 | done | |
7946 | done | |
7947 | ||
252b5132 RH |
7948 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7949 | ;; | |
7950 | esac | |
7951 | fi | |
5464f5a1 NN |
7952 | GMSGFMT=$ac_cv_path_GMSGFMT |
7953 | ||
252b5132 | 7954 | if test -n "$GMSGFMT"; then |
5464f5a1 NN |
7955 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7956 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7957 | else |
5464f5a1 NN |
7958 | echo "$as_me:$LINENO: result: no" >&5 |
7959 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7960 | fi |
7961 | ||
7962 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7963 | set dummy xgettext; ac_word=$2 | |
5464f5a1 NN |
7964 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7966 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7968 | else |
7969 | case "$XGETTEXT" in | |
7970 | /*) | |
7971 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7972 | ;; | |
7973 | *) | |
7974 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7975 | for ac_dir in $PATH; do | |
7976 | test -z "$ac_dir" && ac_dir=. | |
7977 | if test -f $ac_dir/$ac_word; then | |
7978 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7979 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7980 | break | |
7981 | fi | |
7982 | fi | |
7983 | done | |
7984 | IFS="$ac_save_ifs" | |
7985 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7986 | ;; | |
7987 | esac | |
7988 | fi | |
7989 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7990 | if test -n "$XGETTEXT"; then | |
5464f5a1 NN |
7991 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7992 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 7993 | else |
5464f5a1 NN |
7994 | echo "$as_me:$LINENO: result: no" >&5 |
7995 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7996 | fi |
7997 | ||
5464f5a1 | 7998 | |
252b5132 RH |
7999 | USE_INCLUDED_LIBINTL=yes |
8000 | CATOBJEXT=.gmo | |
8001 | INSTOBJEXT=.mo | |
8002 | DATADIRNAME=share | |
8003 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
8004 | INTLLIBS=$INTLDEPS | |
8005 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
8006 | nls_cv_header_intl=libintl.h | |
8007 | nls_cv_header_libgt=libgettext.h | |
8008 | fi | |
8009 | ||
8010 | if test "$XGETTEXT" != ":"; then | |
8011 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
8012 | : ; | |
8013 | else | |
5464f5a1 NN |
8014 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
8015 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
252b5132 RH |
8016 | XGETTEXT=":" |
8017 | fi | |
8018 | fi | |
8019 | ||
8020 | # We need to process the po/ directory. | |
8021 | POSUB=po | |
8022 | else | |
8023 | DATADIRNAME=share | |
8024 | nls_cv_header_intl=libintl.h | |
8025 | nls_cv_header_libgt=libgettext.h | |
8026 | fi | |
8027 | ||
8028 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
8029 | # because some of the sources are only built for this goal. | |
8030 | if test "$PACKAGE" = gettext; then | |
8031 | USE_NLS=yes | |
8032 | USE_INCLUDED_LIBINTL=yes | |
8033 | fi | |
8034 | ||
8035 | for lang in $ALL_LINGUAS; do | |
8036 | GMOFILES="$GMOFILES $lang.gmo" | |
8037 | POFILES="$POFILES $lang.po" | |
8038 | done | |
8039 | ||
5464f5a1 NN |
8040 | |
8041 | ||
8042 | ||
8043 | ||
8044 | ||
8045 | ||
8046 | ||
8047 | ||
8048 | ||
8049 | ||
8050 | ||
c46f8c51 AC |
8051 | if test "x$CATOBJEXT" != "x"; then |
8052 | ||
8053 | cat >>confdefs.h <<\_ACEOF | |
8054 | #define ENABLE_NLS 1 | |
8055 | _ACEOF | |
8056 | ||
8057 | fi | |
5464f5a1 | 8058 | |
6be7c12c | 8059 | |
252b5132 RH |
8060 | if test "x$CATOBJEXT" != "x"; then |
8061 | if test "x$ALL_LINGUAS" = "x"; then | |
8062 | LINGUAS= | |
8063 | else | |
5464f5a1 NN |
8064 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
8065 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
252b5132 RH |
8066 | NEW_LINGUAS= |
8067 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
8068 | case "$ALL_LINGUAS" in | |
8069 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
8070 | esac | |
8071 | done | |
8072 | LINGUAS=$NEW_LINGUAS | |
5464f5a1 NN |
8073 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
8074 | echo "${ECHO_T}$LINGUAS" >&6 | |
252b5132 RH |
8075 | fi |
8076 | ||
8077 | if test -n "$LINGUAS"; then | |
8078 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
8079 | fi | |
8080 | fi | |
8081 | ||
8082 | if test $ac_cv_header_locale_h = yes; then | |
8083 | INCLUDE_LOCALE_H="#include <locale.h>" | |
8084 | else | |
8085 | INCLUDE_LOCALE_H="\ | |
8086 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
8087 | fi | |
5464f5a1 | 8088 | |
252b5132 RH |
8089 | |
8090 | if test -f $srcdir/po2tbl.sed.in; then | |
8091 | if test "$CATOBJEXT" = ".cat"; then | |
5464f5a1 NN |
8092 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
8093 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
8094 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
8095 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
8096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8097 | fi | |
8098 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
8099 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
8100 | else | |
8101 | # Is the header compilable? | |
8102 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
8103 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
8104 | cat >conftest.$ac_ext <<_ACEOF | |
8105 | /* confdefs.h. */ | |
8106 | _ACEOF | |
8107 | cat confdefs.h >>conftest.$ac_ext | |
8108 | cat >>conftest.$ac_ext <<_ACEOF | |
8109 | /* end confdefs.h. */ | |
8110 | $ac_includes_default | |
252b5132 | 8111 | #include <linux/version.h> |
5464f5a1 NN |
8112 | _ACEOF |
8113 | rm -f conftest.$ac_objext | |
8114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8115 | (eval $ac_compile) 2>conftest.er1 | |
8116 | ac_status=$? | |
8117 | grep -v '^ *+' conftest.er1 >conftest.err | |
8118 | rm -f conftest.er1 | |
8119 | cat conftest.err >&5 | |
8120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8121 | (exit $ac_status); } && | |
6ec7057a | 8122 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8124 | (eval $ac_try) 2>&5 | |
8125 | ac_status=$? | |
8126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8127 | (exit $ac_status); }; } && | |
8128 | { ac_try='test -s conftest.$ac_objext' | |
8129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8130 | (eval $ac_try) 2>&5 | |
8131 | ac_status=$? | |
8132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8133 | (exit $ac_status); }; }; then | |
8134 | ac_header_compiler=yes | |
8135 | else | |
8136 | echo "$as_me: failed program was:" >&5 | |
8137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8138 | ||
8139 | ac_header_compiler=no | |
8140 | fi | |
8141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8142 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8143 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8144 | ||
8145 | # Is the header present? | |
8146 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
8147 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
8148 | cat >conftest.$ac_ext <<_ACEOF | |
8149 | /* confdefs.h. */ | |
8150 | _ACEOF | |
8151 | cat confdefs.h >>conftest.$ac_ext | |
8152 | cat >>conftest.$ac_ext <<_ACEOF | |
8153 | /* end confdefs.h. */ | |
8154 | #include <linux/version.h> | |
8155 | _ACEOF | |
8156 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8157 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8158 | ac_status=$? | |
8159 | grep -v '^ *+' conftest.er1 >conftest.err | |
8160 | rm -f conftest.er1 | |
8161 | cat conftest.err >&5 | |
8162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8163 | (exit $ac_status); } >/dev/null; then | |
8164 | if test -s conftest.err; then | |
8165 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8166 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8167 | else | |
8168 | ac_cpp_err= | |
8169 | fi | |
252b5132 | 8170 | else |
5464f5a1 | 8171 | ac_cpp_err=yes |
252b5132 | 8172 | fi |
5464f5a1 NN |
8173 | if test -z "$ac_cpp_err"; then |
8174 | ac_header_preproc=yes | |
8175 | else | |
8176 | echo "$as_me: failed program was:" >&5 | |
8177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8178 | ||
8179 | ac_header_preproc=no | |
8180 | fi | |
8181 | rm -f conftest.err conftest.$ac_ext | |
8182 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8183 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8184 | ||
8185 | # So? What about this header? | |
8186 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8187 | yes:no: ) | |
8188 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8189 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8190 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
8191 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
8192 | ac_header_preproc=yes | |
8193 | ;; | |
8194 | no:yes:* ) | |
8195 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
8196 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
8197 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
8198 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
8199 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
8200 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
8201 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
8202 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
8203 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
8204 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
8205 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
8206 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
8207 | ( | |
8208 | cat <<\_ASBOX | |
8209 | ## ------------------------------------------ ## | |
8210 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8211 | ## ------------------------------------------ ## | |
8212 | _ASBOX | |
8213 | ) | | |
8214 | sed "s/^/$as_me: WARNING: /" >&2 | |
8215 | ;; | |
8216 | esac | |
8217 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
8218 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
8219 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
8220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8221 | else | |
8222 | ac_cv_header_linux_version_h=$ac_header_preproc | |
8223 | fi | |
8224 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
8225 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
8226 | ||
252b5132 | 8227 | fi |
5464f5a1 | 8228 | if test $ac_cv_header_linux_version_h = yes; then |
252b5132 RH |
8229 | msgformat=linux |
8230 | else | |
5464f5a1 | 8231 | msgformat=xopen |
252b5132 RH |
8232 | fi |
8233 | ||
6be7c12c | 8234 | |
5464f5a1 | 8235 | |
252b5132 RH |
8236 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
8237 | fi | |
8238 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
8239 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
8240 | fi | |
8241 | ||
8242 | if test "$PACKAGE" = "gettext"; then | |
8243 | GT_NO="#NO#" | |
8244 | GT_YES= | |
8245 | else | |
8246 | GT_NO= | |
8247 | GT_YES="#YES#" | |
8248 | fi | |
5464f5a1 NN |
8249 | |
8250 | ||
252b5132 RH |
8251 | |
8252 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
5464f5a1 | 8253 | |
252b5132 RH |
8254 | |
8255 | l= | |
5464f5a1 | 8256 | |
252b5132 | 8257 | |
3c3bdf30 | 8258 | if test -f $srcdir/po/POTFILES.in; then |
252b5132 RH |
8259 | test -d po || mkdir po |
8260 | if test "x$srcdir" != "x."; then | |
8261 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
8262 | posrcprefix="$srcdir/" | |
8263 | else | |
8264 | posrcprefix="../$srcdir/" | |
8265 | fi | |
8266 | else | |
8267 | posrcprefix="../" | |
8268 | fi | |
8269 | rm -f po/POTFILES | |
8270 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
8271 | < $srcdir/po/POTFILES.in > po/POTFILES | |
8272 | fi | |
5464f5a1 | 8273 | |
252b5132 RH |
8274 | |
8275 | # Permit host specific settings. | |
8276 | . ${srcdir}/configure.host | |
8277 | ||
6be7c12c | 8278 | |
252b5132 RH |
8279 | # Find a good install program. We prefer a C program (faster), |
8280 | # so one script is as good as another. But avoid the broken or | |
8281 | # incompatible versions: | |
8282 | # SysV /etc/install, /usr/sbin/install | |
8283 | # SunOS /usr/etc/install | |
8284 | # IRIX /sbin/install | |
8285 | # AIX /bin/install | |
5464f5a1 | 8286 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
252b5132 RH |
8287 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
8288 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8289 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5464f5a1 | 8290 | # OS/2's system install, which has a completely different semantic |
252b5132 | 8291 | # ./install, which can be erroneously created by make from ./install.sh. |
5464f5a1 NN |
8292 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
8293 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 8294 | if test -z "$INSTALL"; then |
5464f5a1 NN |
8295 | if test "${ac_cv_path_install+set}" = set; then |
8296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8297 | else |
5464f5a1 NN |
8298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8299 | for as_dir in $PATH | |
8300 | do | |
8301 | IFS=$as_save_IFS | |
8302 | test -z "$as_dir" && as_dir=. | |
8303 | # Account for people who put trailing slashes in PATH elements. | |
8304 | case $as_dir/ in | |
8305 | ./ | .// | /cC/* | \ | |
8306 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8307 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
8308 | /usr/ucb/* ) ;; | |
8309 | *) | |
8310 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8311 | # Don't use installbsd from OSF since it installs stuff as root | |
8312 | # by default. | |
8313 | for ac_prog in ginstall scoinst install; do | |
8314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8315 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 8316 | if test $ac_prog = install && |
5464f5a1 | 8317 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
8318 | # AIX install. It has an incompatible calling convention. |
8319 | : | |
5464f5a1 NN |
8320 | elif test $ac_prog = install && |
8321 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
8322 | # program-specific install script used by HP pwplus--don't use. | |
8323 | : | |
252b5132 | 8324 | else |
5464f5a1 NN |
8325 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
8326 | break 3 | |
252b5132 RH |
8327 | fi |
8328 | fi | |
8329 | done | |
5464f5a1 NN |
8330 | done |
8331 | ;; | |
8332 | esac | |
8333 | done | |
8334 | ||
252b5132 RH |
8335 | |
8336 | fi | |
8337 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 8338 | INSTALL=$ac_cv_path_install |
252b5132 RH |
8339 | else |
8340 | # As a last resort, use the slow shell script. We don't cache a | |
8341 | # path for INSTALL within a source directory, because that will | |
8342 | # break other packages using the cache if that directory is | |
8343 | # removed, or if the path is relative. | |
5464f5a1 | 8344 | INSTALL=$ac_install_sh |
252b5132 RH |
8345 | fi |
8346 | fi | |
5464f5a1 NN |
8347 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
8348 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
8349 | |
8350 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8351 | # It thinks the first close brace ends the variable substitution. | |
8352 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8353 | ||
5464f5a1 | 8354 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
8355 | |
8356 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8357 | ||
6be7c12c | 8358 | |
252b5132 | 8359 | BFD_HOST_64BIT_LONG=0 |
ec317fb1 | 8360 | BFD_HOST_LONG_LONG=0 |
252b5132 RH |
8361 | BFD_HOST_64_BIT_DEFINED=0 |
8362 | BFD_HOST_64_BIT= | |
8363 | BFD_HOST_U_64_BIT= | |
252b5132 | 8364 | |
5464f5a1 NN |
8365 | echo "$as_me:$LINENO: checking for long long" >&5 |
8366 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
8367 | if test "${bfd_cv_has_long_long+set}" = set; then | |
8368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ec317fb1 | 8369 | else |
5464f5a1 NN |
8370 | cat >conftest.$ac_ext <<_ACEOF |
8371 | /* confdefs.h. */ | |
8372 | _ACEOF | |
8373 | cat confdefs.h >>conftest.$ac_ext | |
8374 | cat >>conftest.$ac_ext <<_ACEOF | |
8375 | /* end confdefs.h. */ | |
ec317fb1 | 8376 | |
5464f5a1 NN |
8377 | int |
8378 | main () | |
8379 | { | |
ec317fb1 | 8380 | unsigned long long ll = 18446744073709551615ULL; |
5464f5a1 NN |
8381 | ; |
8382 | return 0; | |
8383 | } | |
8384 | _ACEOF | |
8385 | rm -f conftest.$ac_objext | |
8386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8387 | (eval $ac_compile) 2>conftest.er1 | |
8388 | ac_status=$? | |
8389 | grep -v '^ *+' conftest.er1 >conftest.err | |
8390 | rm -f conftest.er1 | |
8391 | cat conftest.err >&5 | |
8392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8393 | (exit $ac_status); } && | |
6ec7057a | 8394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8396 | (eval $ac_try) 2>&5 | |
8397 | ac_status=$? | |
8398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8399 | (exit $ac_status); }; } && | |
8400 | { ac_try='test -s conftest.$ac_objext' | |
8401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8402 | (eval $ac_try) 2>&5 | |
8403 | ac_status=$? | |
8404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8405 | (exit $ac_status); }; }; then | |
ec317fb1 ILT |
8406 | bfd_cv_has_long_long=yes |
8407 | else | |
5464f5a1 NN |
8408 | echo "$as_me: failed program was:" >&5 |
8409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8410 | ||
8411 | bfd_cv_has_long_long=no | |
ec317fb1 | 8412 | fi |
5464f5a1 | 8413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ec317fb1 ILT |
8414 | fi |
8415 | ||
5464f5a1 NN |
8416 | echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5 |
8417 | echo "${ECHO_T}$bfd_cv_has_long_long" >&6 | |
ec317fb1 ILT |
8418 | if test $bfd_cv_has_long_long = yes; then |
8419 | BFD_HOST_LONG_LONG=1 | |
2ba49b59 KC |
8420 | echo "$as_me:$LINENO: checking for long long" >&5 |
8421 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
8422 | if test "${ac_cv_type_long_long+set}" = set; then | |
5464f5a1 | 8423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6726e1ea | 8424 | else |
5464f5a1 NN |
8425 | cat >conftest.$ac_ext <<_ACEOF |
8426 | /* confdefs.h. */ | |
8427 | _ACEOF | |
8428 | cat confdefs.h >>conftest.$ac_ext | |
8429 | cat >>conftest.$ac_ext <<_ACEOF | |
8430 | /* end confdefs.h. */ | |
2ba49b59 | 8431 | $ac_includes_default |
5464f5a1 NN |
8432 | int |
8433 | main () | |
8434 | { | |
2ba49b59 KC |
8435 | if ((long long *) 0) |
8436 | return 0; | |
8437 | if (sizeof (long long)) | |
8438 | return 0; | |
5464f5a1 NN |
8439 | ; |
8440 | return 0; | |
8441 | } | |
8442 | _ACEOF | |
8443 | rm -f conftest.$ac_objext | |
8444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8445 | (eval $ac_compile) 2>conftest.er1 | |
8446 | ac_status=$? | |
8447 | grep -v '^ *+' conftest.er1 >conftest.err | |
8448 | rm -f conftest.er1 | |
8449 | cat conftest.err >&5 | |
8450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8451 | (exit $ac_status); } && | |
6ec7057a | 8452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8454 | (eval $ac_try) 2>&5 | |
8455 | ac_status=$? | |
8456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8457 | (exit $ac_status); }; } && | |
8458 | { ac_try='test -s conftest.$ac_objext' | |
8459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8460 | (eval $ac_try) 2>&5 | |
8461 | ac_status=$? | |
8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8463 | (exit $ac_status); }; }; then | |
2ba49b59 | 8464 | ac_cv_type_long_long=yes |
6726e1ea | 8465 | else |
5464f5a1 NN |
8466 | echo "$as_me: failed program was:" >&5 |
8467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8468 | ||
2ba49b59 | 8469 | ac_cv_type_long_long=no |
6726e1ea | 8470 | fi |
5464f5a1 | 8471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6726e1ea | 8472 | fi |
2ba49b59 KC |
8473 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
8474 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
6726e1ea | 8475 | |
2ba49b59 KC |
8476 | echo "$as_me:$LINENO: checking size of long long" >&5 |
8477 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
8478 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
5464f5a1 | 8479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6726e1ea | 8480 | else |
2ba49b59 KC |
8481 | if test "$ac_cv_type_long_long" = yes; then |
8482 | # The cast to unsigned long works around a bug in the HP C Compiler | |
8483 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
8484 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
8485 | # This bug is HP SR number 8606223364. | |
8486 | if test "$cross_compiling" = yes; then | |
8487 | # Depending upon the size, compute the lo and hi bounds. | |
8488 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
8489 | /* confdefs.h. */ |
8490 | _ACEOF | |
8491 | cat confdefs.h >>conftest.$ac_ext | |
8492 | cat >>conftest.$ac_ext <<_ACEOF | |
8493 | /* end confdefs.h. */ | |
2ba49b59 KC |
8494 | $ac_includes_default |
8495 | int | |
8496 | main () | |
8497 | { | |
8498 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
8499 | test_array [0] = 0 | |
6726e1ea | 8500 | |
2ba49b59 KC |
8501 | ; |
8502 | return 0; | |
8503 | } | |
8504 | _ACEOF | |
8505 | rm -f conftest.$ac_objext | |
8506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8507 | (eval $ac_compile) 2>conftest.er1 | |
8508 | ac_status=$? | |
8509 | grep -v '^ *+' conftest.er1 >conftest.err | |
8510 | rm -f conftest.er1 | |
8511 | cat conftest.err >&5 | |
8512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8513 | (exit $ac_status); } && | |
6ec7057a | 8514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
8515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8516 | (eval $ac_try) 2>&5 | |
8517 | ac_status=$? | |
8518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8519 | (exit $ac_status); }; } && | |
8520 | { ac_try='test -s conftest.$ac_objext' | |
8521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8522 | (eval $ac_try) 2>&5 | |
8523 | ac_status=$? | |
8524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8525 | (exit $ac_status); }; }; then | |
8526 | ac_lo=0 ac_mid=0 | |
8527 | while :; do | |
8528 | cat >conftest.$ac_ext <<_ACEOF | |
8529 | /* confdefs.h. */ | |
8530 | _ACEOF | |
8531 | cat confdefs.h >>conftest.$ac_ext | |
8532 | cat >>conftest.$ac_ext <<_ACEOF | |
8533 | /* end confdefs.h. */ | |
8534 | $ac_includes_default | |
5464f5a1 NN |
8535 | int |
8536 | main () | |
8537 | { | |
2ba49b59 KC |
8538 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
8539 | test_array [0] = 0 | |
8540 | ||
5464f5a1 NN |
8541 | ; |
8542 | return 0; | |
8543 | } | |
8544 | _ACEOF | |
8545 | rm -f conftest.$ac_objext | |
8546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8547 | (eval $ac_compile) 2>conftest.er1 | |
8548 | ac_status=$? | |
8549 | grep -v '^ *+' conftest.er1 >conftest.err | |
8550 | rm -f conftest.er1 | |
8551 | cat conftest.err >&5 | |
8552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8553 | (exit $ac_status); } && | |
6ec7057a | 8554 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8556 | (eval $ac_try) 2>&5 | |
8557 | ac_status=$? | |
8558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8559 | (exit $ac_status); }; } && | |
8560 | { ac_try='test -s conftest.$ac_objext' | |
8561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8562 | (eval $ac_try) 2>&5 | |
8563 | ac_status=$? | |
8564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8565 | (exit $ac_status); }; }; then | |
2ba49b59 | 8566 | ac_hi=$ac_mid; break |
6726e1ea | 8567 | else |
5464f5a1 NN |
8568 | echo "$as_me: failed program was:" >&5 |
8569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8570 | ||
2ba49b59 KC |
8571 | ac_lo=`expr $ac_mid + 1` |
8572 | if test $ac_lo -le $ac_mid; then | |
8573 | ac_lo= ac_hi= | |
8574 | break | |
8575 | fi | |
8576 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6726e1ea | 8577 | fi |
5464f5a1 | 8578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2ba49b59 | 8579 | done |
252b5132 | 8580 | else |
2ba49b59 KC |
8581 | echo "$as_me: failed program was:" >&5 |
8582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464f5a1 | 8583 | |
5464f5a1 NN |
8584 | cat >conftest.$ac_ext <<_ACEOF |
8585 | /* confdefs.h. */ | |
8586 | _ACEOF | |
8587 | cat confdefs.h >>conftest.$ac_ext | |
8588 | cat >>conftest.$ac_ext <<_ACEOF | |
8589 | /* end confdefs.h. */ | |
8590 | $ac_includes_default | |
2ba49b59 KC |
8591 | int |
8592 | main () | |
8593 | { | |
8594 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
8595 | test_array [0] = 0 | |
8596 | ||
8597 | ; | |
8598 | return 0; | |
8599 | } | |
5464f5a1 NN |
8600 | _ACEOF |
8601 | rm -f conftest.$ac_objext | |
8602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8603 | (eval $ac_compile) 2>conftest.er1 | |
8604 | ac_status=$? | |
8605 | grep -v '^ *+' conftest.er1 >conftest.err | |
8606 | rm -f conftest.er1 | |
8607 | cat conftest.err >&5 | |
8608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8609 | (exit $ac_status); } && | |
6ec7057a | 8610 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8612 | (eval $ac_try) 2>&5 | |
8613 | ac_status=$? | |
8614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8615 | (exit $ac_status); }; } && | |
8616 | { ac_try='test -s conftest.$ac_objext' | |
8617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8618 | (eval $ac_try) 2>&5 | |
8619 | ac_status=$? | |
8620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8621 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
8622 | ac_hi=-1 ac_mid=-1 |
8623 | while :; do | |
8624 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
8625 | /* confdefs.h. */ |
8626 | _ACEOF | |
8627 | cat confdefs.h >>conftest.$ac_ext | |
8628 | cat >>conftest.$ac_ext <<_ACEOF | |
8629 | /* end confdefs.h. */ | |
2ba49b59 KC |
8630 | $ac_includes_default |
8631 | int | |
8632 | main () | |
8633 | { | |
8634 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
8635 | test_array [0] = 0 | |
8636 | ||
8637 | ; | |
8638 | return 0; | |
8639 | } | |
5464f5a1 | 8640 | _ACEOF |
2ba49b59 KC |
8641 | rm -f conftest.$ac_objext |
8642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8643 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
8644 | ac_status=$? |
8645 | grep -v '^ *+' conftest.er1 >conftest.err | |
8646 | rm -f conftest.er1 | |
8647 | cat conftest.err >&5 | |
8648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2ba49b59 | 8649 | (exit $ac_status); } && |
6ec7057a | 8650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
8651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8652 | (eval $ac_try) 2>&5 | |
8653 | ac_status=$? | |
8654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8655 | (exit $ac_status); }; } && | |
8656 | { ac_try='test -s conftest.$ac_objext' | |
8657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8658 | (eval $ac_try) 2>&5 | |
8659 | ac_status=$? | |
8660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8661 | (exit $ac_status); }; }; then | |
8662 | ac_lo=$ac_mid; break | |
252b5132 | 8663 | else |
2ba49b59 KC |
8664 | echo "$as_me: failed program was:" >&5 |
8665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8666 | ||
8667 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8668 | if test $ac_mid -le $ac_hi; then | |
8669 | ac_lo= ac_hi= | |
8670 | break | |
8671 | fi | |
8672 | ac_mid=`expr 2 '*' $ac_mid` | |
252b5132 | 8673 | fi |
2ba49b59 KC |
8674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8675 | done | |
5464f5a1 NN |
8676 | else |
8677 | echo "$as_me: failed program was:" >&5 | |
8678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8679 | ||
2ba49b59 | 8680 | ac_lo= ac_hi= |
252b5132 | 8681 | fi |
2ba49b59 KC |
8682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8683 | fi | |
8684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8685 | # Binary search between lo and hi bounds. | |
8686 | while test "x$ac_lo" != "x$ac_hi"; do | |
8687 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
8688 | cat >conftest.$ac_ext <<_ACEOF | |
8689 | /* confdefs.h. */ | |
8690 | _ACEOF | |
8691 | cat confdefs.h >>conftest.$ac_ext | |
8692 | cat >>conftest.$ac_ext <<_ACEOF | |
8693 | /* end confdefs.h. */ | |
8694 | $ac_includes_default | |
8695 | int | |
8696 | main () | |
8697 | { | |
8698 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
8699 | test_array [0] = 0 | |
5464f5a1 | 8700 | |
2ba49b59 KC |
8701 | ; |
8702 | return 0; | |
8703 | } | |
5464f5a1 NN |
8704 | _ACEOF |
8705 | rm -f conftest.$ac_objext | |
8706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8707 | (eval $ac_compile) 2>conftest.er1 | |
8708 | ac_status=$? | |
8709 | grep -v '^ *+' conftest.er1 >conftest.err | |
8710 | rm -f conftest.er1 | |
8711 | cat conftest.err >&5 | |
8712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8713 | (exit $ac_status); } && | |
6ec7057a | 8714 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8716 | (eval $ac_try) 2>&5 | |
8717 | ac_status=$? | |
8718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8719 | (exit $ac_status); }; } && | |
8720 | { ac_try='test -s conftest.$ac_objext' | |
8721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8722 | (eval $ac_try) 2>&5 | |
8723 | ac_status=$? | |
8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8725 | (exit $ac_status); }; }; then | |
2ba49b59 | 8726 | ac_hi=$ac_mid |
5464f5a1 NN |
8727 | else |
8728 | echo "$as_me: failed program was:" >&5 | |
8729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8730 | ||
2ba49b59 | 8731 | ac_lo=`expr '(' $ac_mid ')' + 1` |
5464f5a1 NN |
8732 | fi |
8733 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2ba49b59 KC |
8734 | done |
8735 | case $ac_lo in | |
8736 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
8737 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
8738 | See \`config.log' for more details." >&5 | |
8739 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
8740 | See \`config.log' for more details." >&2;} | |
8741 | { (exit 1); exit 1; }; } ;; | |
8742 | esac | |
8743 | else | |
8744 | if test "$cross_compiling" = yes; then | |
6ec7057a RH |
8745 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
8746 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
2ba49b59 KC |
8747 | { (exit 1); exit 1; }; } |
8748 | else | |
8749 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
8750 | /* confdefs.h. */ |
8751 | _ACEOF | |
8752 | cat confdefs.h >>conftest.$ac_ext | |
8753 | cat >>conftest.$ac_ext <<_ACEOF | |
8754 | /* end confdefs.h. */ | |
2ba49b59 KC |
8755 | $ac_includes_default |
8756 | long longval () { return (long) (sizeof (long long)); } | |
8757 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8758 | #include <stdio.h> | |
8759 | #include <stdlib.h> | |
8760 | int | |
8761 | main () | |
8762 | { | |
8763 | ||
8764 | FILE *f = fopen ("conftest.val", "w"); | |
8765 | if (! f) | |
8766 | exit (1); | |
8767 | if (((long) (sizeof (long long))) < 0) | |
8768 | { | |
8769 | long i = longval (); | |
8770 | if (i != ((long) (sizeof (long long)))) | |
8771 | exit (1); | |
8772 | fprintf (f, "%ld\n", i); | |
8773 | } | |
8774 | else | |
8775 | { | |
8776 | unsigned long i = ulongval (); | |
8777 | if (i != ((long) (sizeof (long long)))) | |
8778 | exit (1); | |
8779 | fprintf (f, "%lu\n", i); | |
8780 | } | |
8781 | exit (ferror (f) || fclose (f) != 0); | |
8782 | ||
8783 | ; | |
8784 | return 0; | |
8785 | } | |
5464f5a1 | 8786 | _ACEOF |
2ba49b59 KC |
8787 | rm -f conftest$ac_exeext |
8788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8789 | (eval $ac_link) 2>&5 | |
5464f5a1 | 8790 | ac_status=$? |
5464f5a1 | 8791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2ba49b59 KC |
8792 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
8793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8794 | (eval $ac_try) 2>&5 | |
8795 | ac_status=$? | |
8796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8797 | (exit $ac_status); }; }; then | |
8798 | ac_cv_sizeof_long_long=`cat conftest.val` | |
5464f5a1 | 8799 | else |
2ba49b59 KC |
8800 | echo "$as_me: program exited with status $ac_status" >&5 |
8801 | echo "$as_me: failed program was:" >&5 | |
5464f5a1 NN |
8802 | sed 's/^/| /' conftest.$ac_ext >&5 |
8803 | ||
2ba49b59 KC |
8804 | ( exit $ac_status ) |
8805 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
8806 | See \`config.log' for more details." >&5 | |
8807 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
8808 | See \`config.log' for more details." >&2;} | |
8809 | { (exit 1); exit 1; }; } | |
252b5132 | 8810 | fi |
2ba49b59 KC |
8811 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8812 | fi | |
8813 | fi | |
8814 | rm -f conftest.val | |
6be7c12c | 8815 | else |
2ba49b59 | 8816 | ac_cv_sizeof_long_long=0 |
5464f5a1 | 8817 | fi |
5464f5a1 | 8818 | fi |
2ba49b59 KC |
8819 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
8820 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
8821 | cat >>confdefs.h <<_ACEOF | |
8822 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
5464f5a1 NN |
8823 | _ACEOF |
8824 | ||
5464f5a1 | 8825 | |
2ba49b59 | 8826 | fi |
252b5132 | 8827 | |
2ba49b59 KC |
8828 | echo "$as_me:$LINENO: checking for long" >&5 |
8829 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
8830 | if test "${ac_cv_type_long+set}" = set; then | |
5464f5a1 NN |
8831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8832 | else | |
8833 | cat >conftest.$ac_ext <<_ACEOF | |
8834 | /* confdefs.h. */ | |
8835 | _ACEOF | |
8836 | cat confdefs.h >>conftest.$ac_ext | |
8837 | cat >>conftest.$ac_ext <<_ACEOF | |
8838 | /* end confdefs.h. */ | |
2ba49b59 | 8839 | $ac_includes_default |
5464f5a1 NN |
8840 | int |
8841 | main () | |
8842 | { | |
2ba49b59 KC |
8843 | if ((long *) 0) |
8844 | return 0; | |
8845 | if (sizeof (long)) | |
8846 | return 0; | |
5464f5a1 NN |
8847 | ; |
8848 | return 0; | |
8849 | } | |
8850 | _ACEOF | |
8851 | rm -f conftest.$ac_objext | |
8852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8853 | (eval $ac_compile) 2>conftest.er1 | |
8854 | ac_status=$? | |
8855 | grep -v '^ *+' conftest.er1 >conftest.err | |
8856 | rm -f conftest.er1 | |
8857 | cat conftest.err >&5 | |
8858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8859 | (exit $ac_status); } && | |
6ec7057a | 8860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8862 | (eval $ac_try) 2>&5 | |
8863 | ac_status=$? | |
8864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8865 | (exit $ac_status); }; } && | |
8866 | { ac_try='test -s conftest.$ac_objext' | |
8867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8868 | (eval $ac_try) 2>&5 | |
8869 | ac_status=$? | |
8870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8871 | (exit $ac_status); }; }; then | |
2ba49b59 | 8872 | ac_cv_type_long=yes |
252b5132 | 8873 | else |
5464f5a1 NN |
8874 | echo "$as_me: failed program was:" >&5 |
8875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8876 | ||
2ba49b59 | 8877 | ac_cv_type_long=no |
252b5132 | 8878 | fi |
5464f5a1 | 8879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 8880 | fi |
2ba49b59 KC |
8881 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
8882 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
5464f5a1 | 8883 | |
2ba49b59 KC |
8884 | echo "$as_me:$LINENO: checking size of long" >&5 |
8885 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
8886 | if test "${ac_cv_sizeof_long+set}" = set; then | |
5464f5a1 NN |
8887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8888 | else | |
2ba49b59 KC |
8889 | if test "$ac_cv_type_long" = yes; then |
8890 | # The cast to unsigned long works around a bug in the HP C Compiler | |
8891 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
8892 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
8893 | # This bug is HP SR number 8606223364. | |
8894 | if test "$cross_compiling" = yes; then | |
8895 | # Depending upon the size, compute the lo and hi bounds. | |
8896 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
8897 | /* confdefs.h. */ |
8898 | _ACEOF | |
8899 | cat confdefs.h >>conftest.$ac_ext | |
8900 | cat >>conftest.$ac_ext <<_ACEOF | |
8901 | /* end confdefs.h. */ | |
2ba49b59 | 8902 | $ac_includes_default |
5464f5a1 NN |
8903 | int |
8904 | main () | |
8905 | { | |
2ba49b59 KC |
8906 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
8907 | test_array [0] = 0 | |
8908 | ||
5464f5a1 NN |
8909 | ; |
8910 | return 0; | |
8911 | } | |
8912 | _ACEOF | |
8913 | rm -f conftest.$ac_objext | |
8914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8915 | (eval $ac_compile) 2>conftest.er1 | |
8916 | ac_status=$? | |
8917 | grep -v '^ *+' conftest.er1 >conftest.err | |
8918 | rm -f conftest.er1 | |
8919 | cat conftest.err >&5 | |
8920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8921 | (exit $ac_status); } && | |
6ec7057a | 8922 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8924 | (eval $ac_try) 2>&5 | |
8925 | ac_status=$? | |
8926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8927 | (exit $ac_status); }; } && | |
8928 | { ac_try='test -s conftest.$ac_objext' | |
8929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8930 | (eval $ac_try) 2>&5 | |
8931 | ac_status=$? | |
8932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8933 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
8934 | ac_lo=0 ac_mid=0 |
8935 | while :; do | |
8936 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
8937 | /* confdefs.h. */ |
8938 | _ACEOF | |
8939 | cat confdefs.h >>conftest.$ac_ext | |
8940 | cat >>conftest.$ac_ext <<_ACEOF | |
8941 | /* end confdefs.h. */ | |
2ba49b59 | 8942 | $ac_includes_default |
5464f5a1 NN |
8943 | int |
8944 | main () | |
8945 | { | |
2ba49b59 KC |
8946 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
8947 | test_array [0] = 0 | |
8948 | ||
5464f5a1 NN |
8949 | ; |
8950 | return 0; | |
8951 | } | |
8952 | _ACEOF | |
2ba49b59 KC |
8953 | rm -f conftest.$ac_objext |
8954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8955 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
8956 | ac_status=$? |
8957 | grep -v '^ *+' conftest.er1 >conftest.err | |
8958 | rm -f conftest.er1 | |
8959 | cat conftest.err >&5 | |
8960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8961 | (exit $ac_status); } && | |
6ec7057a | 8962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8964 | (eval $ac_try) 2>&5 | |
8965 | ac_status=$? | |
8966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8967 | (exit $ac_status); }; } && | |
2ba49b59 | 8968 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
8969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8970 | (eval $ac_try) 2>&5 | |
8971 | ac_status=$? | |
8972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8973 | (exit $ac_status); }; }; then | |
2ba49b59 | 8974 | ac_hi=$ac_mid; break |
5464f5a1 NN |
8975 | else |
8976 | echo "$as_me: failed program was:" >&5 | |
8977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8978 | ||
2ba49b59 KC |
8979 | ac_lo=`expr $ac_mid + 1` |
8980 | if test $ac_lo -le $ac_mid; then | |
8981 | ac_lo= ac_hi= | |
8982 | break | |
8983 | fi | |
8984 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5464f5a1 | 8985 | fi |
2ba49b59 KC |
8986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8987 | done | |
8988 | else | |
8989 | echo "$as_me: failed program was:" >&5 | |
8990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8991 | ||
8992 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
8993 | /* confdefs.h. */ |
8994 | _ACEOF | |
8995 | cat confdefs.h >>conftest.$ac_ext | |
8996 | cat >>conftest.$ac_ext <<_ACEOF | |
8997 | /* end confdefs.h. */ | |
2ba49b59 | 8998 | $ac_includes_default |
5464f5a1 NN |
8999 | int |
9000 | main () | |
9001 | { | |
2ba49b59 KC |
9002 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
9003 | test_array [0] = 0 | |
9004 | ||
5464f5a1 NN |
9005 | ; |
9006 | return 0; | |
9007 | } | |
9008 | _ACEOF | |
2ba49b59 KC |
9009 | rm -f conftest.$ac_objext |
9010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9011 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
9012 | ac_status=$? |
9013 | grep -v '^ *+' conftest.er1 >conftest.err | |
9014 | rm -f conftest.er1 | |
9015 | cat conftest.err >&5 | |
9016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9017 | (exit $ac_status); } && | |
6ec7057a | 9018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9020 | (eval $ac_try) 2>&5 | |
9021 | ac_status=$? | |
9022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9023 | (exit $ac_status); }; } && | |
2ba49b59 | 9024 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
9025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9026 | (eval $ac_try) 2>&5 | |
9027 | ac_status=$? | |
9028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9029 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
9030 | ac_hi=-1 ac_mid=-1 |
9031 | while :; do | |
9032 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
9033 | /* confdefs.h. */ |
9034 | _ACEOF | |
9035 | cat confdefs.h >>conftest.$ac_ext | |
9036 | cat >>conftest.$ac_ext <<_ACEOF | |
9037 | /* end confdefs.h. */ | |
2ba49b59 | 9038 | $ac_includes_default |
5464f5a1 NN |
9039 | int |
9040 | main () | |
9041 | { | |
2ba49b59 KC |
9042 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
9043 | test_array [0] = 0 | |
9044 | ||
5464f5a1 NN |
9045 | ; |
9046 | return 0; | |
9047 | } | |
9048 | _ACEOF | |
2ba49b59 KC |
9049 | rm -f conftest.$ac_objext |
9050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9051 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
9052 | ac_status=$? |
9053 | grep -v '^ *+' conftest.er1 >conftest.err | |
9054 | rm -f conftest.er1 | |
9055 | cat conftest.err >&5 | |
9056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9057 | (exit $ac_status); } && | |
6ec7057a | 9058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9060 | (eval $ac_try) 2>&5 | |
9061 | ac_status=$? | |
9062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9063 | (exit $ac_status); }; } && | |
2ba49b59 | 9064 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
9065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9066 | (eval $ac_try) 2>&5 | |
9067 | ac_status=$? | |
9068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9069 | (exit $ac_status); }; }; then | |
2ba49b59 | 9070 | ac_lo=$ac_mid; break |
5464f5a1 NN |
9071 | else |
9072 | echo "$as_me: failed program was:" >&5 | |
9073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9074 | ||
2ba49b59 KC |
9075 | ac_hi=`expr '(' $ac_mid ')' - 1` |
9076 | if test $ac_mid -le $ac_hi; then | |
9077 | ac_lo= ac_hi= | |
9078 | break | |
9079 | fi | |
9080 | ac_mid=`expr 2 '*' $ac_mid` | |
5464f5a1 | 9081 | fi |
2ba49b59 KC |
9082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9083 | done | |
9084 | else | |
9085 | echo "$as_me: failed program was:" >&5 | |
9086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9087 | ||
9088 | ac_lo= ac_hi= | |
9089 | fi | |
9090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9091 | fi | |
9092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9093 | # Binary search between lo and hi bounds. | |
9094 | while test "x$ac_lo" != "x$ac_hi"; do | |
9095 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
9096 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
9097 | /* confdefs.h. */ |
9098 | _ACEOF | |
9099 | cat confdefs.h >>conftest.$ac_ext | |
9100 | cat >>conftest.$ac_ext <<_ACEOF | |
9101 | /* end confdefs.h. */ | |
2ba49b59 | 9102 | $ac_includes_default |
5464f5a1 NN |
9103 | int |
9104 | main () | |
9105 | { | |
2ba49b59 KC |
9106 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
9107 | test_array [0] = 0 | |
9108 | ||
5464f5a1 NN |
9109 | ; |
9110 | return 0; | |
9111 | } | |
9112 | _ACEOF | |
2ba49b59 KC |
9113 | rm -f conftest.$ac_objext |
9114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9115 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
9116 | ac_status=$? |
9117 | grep -v '^ *+' conftest.er1 >conftest.err | |
9118 | rm -f conftest.er1 | |
9119 | cat conftest.err >&5 | |
9120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9121 | (exit $ac_status); } && | |
6ec7057a | 9122 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9124 | (eval $ac_try) 2>&5 | |
9125 | ac_status=$? | |
9126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9127 | (exit $ac_status); }; } && | |
2ba49b59 | 9128 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
9129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9130 | (eval $ac_try) 2>&5 | |
9131 | ac_status=$? | |
9132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9133 | (exit $ac_status); }; }; then | |
2ba49b59 | 9134 | ac_hi=$ac_mid |
5464f5a1 NN |
9135 | else |
9136 | echo "$as_me: failed program was:" >&5 | |
9137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9138 | ||
2ba49b59 | 9139 | ac_lo=`expr '(' $ac_mid ')' + 1` |
5464f5a1 | 9140 | fi |
2ba49b59 KC |
9141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9142 | done | |
9143 | case $ac_lo in | |
9144 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
9145 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
9146 | See \`config.log' for more details." >&5 | |
9147 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
9148 | See \`config.log' for more details." >&2;} | |
9149 | { (exit 1); exit 1; }; } ;; | |
9150 | esac | |
9151 | else | |
9152 | if test "$cross_compiling" = yes; then | |
6ec7057a RH |
9153 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
9154 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
2ba49b59 | 9155 | { (exit 1); exit 1; }; } |
2e0fbf77 JW |
9156 | else |
9157 | cat >conftest.$ac_ext <<_ACEOF | |
9158 | /* confdefs.h. */ | |
9159 | _ACEOF | |
9160 | cat confdefs.h >>conftest.$ac_ext | |
9161 | cat >>conftest.$ac_ext <<_ACEOF | |
9162 | /* end confdefs.h. */ | |
2ba49b59 KC |
9163 | $ac_includes_default |
9164 | long longval () { return (long) (sizeof (long)); } | |
9165 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
9166 | #include <stdio.h> | |
9167 | #include <stdlib.h> | |
2e0fbf77 JW |
9168 | int |
9169 | main () | |
9170 | { | |
9171 | ||
2ba49b59 KC |
9172 | FILE *f = fopen ("conftest.val", "w"); |
9173 | if (! f) | |
9174 | exit (1); | |
9175 | if (((long) (sizeof (long))) < 0) | |
9176 | { | |
9177 | long i = longval (); | |
9178 | if (i != ((long) (sizeof (long)))) | |
9179 | exit (1); | |
9180 | fprintf (f, "%ld\n", i); | |
9181 | } | |
9182 | else | |
9183 | { | |
9184 | unsigned long i = ulongval (); | |
9185 | if (i != ((long) (sizeof (long)))) | |
9186 | exit (1); | |
9187 | fprintf (f, "%lu\n", i); | |
9188 | } | |
9189 | exit (ferror (f) || fclose (f) != 0); | |
9190 | ||
2e0fbf77 JW |
9191 | ; |
9192 | return 0; | |
9193 | } | |
9194 | _ACEOF | |
2ba49b59 KC |
9195 | rm -f conftest$ac_exeext |
9196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9197 | (eval $ac_link) 2>&5 | |
2e0fbf77 JW |
9198 | ac_status=$? |
9199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2ba49b59 | 9200 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2e0fbf77 JW |
9201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9202 | (eval $ac_try) 2>&5 | |
9203 | ac_status=$? | |
9204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9205 | (exit $ac_status); }; }; then | |
2ba49b59 | 9206 | ac_cv_sizeof_long=`cat conftest.val` |
2e0fbf77 | 9207 | else |
2ba49b59 KC |
9208 | echo "$as_me: program exited with status $ac_status" >&5 |
9209 | echo "$as_me: failed program was:" >&5 | |
2e0fbf77 JW |
9210 | sed 's/^/| /' conftest.$ac_ext >&5 |
9211 | ||
2ba49b59 KC |
9212 | ( exit $ac_status ) |
9213 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
9214 | See \`config.log' for more details." >&5 | |
9215 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
9216 | See \`config.log' for more details." >&2;} | |
9217 | { (exit 1); exit 1; }; } | |
2e0fbf77 | 9218 | fi |
2ba49b59 | 9219 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
2e0fbf77 | 9220 | fi |
2ba49b59 KC |
9221 | fi |
9222 | rm -f conftest.val | |
9223 | else | |
9224 | ac_cv_sizeof_long=0 | |
9225 | fi | |
9226 | fi | |
9227 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
9228 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
9229 | cat >>confdefs.h <<_ACEOF | |
9230 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
9231 | _ACEOF | |
9232 | ||
9233 | ||
9234 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
9235 | host64=true | |
9236 | BFD_HOST_64BIT_LONG=1 | |
9237 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" | |
9238 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" | |
9239 | elif test "x${ac_cv_sizeof_long_long}" = "x8"; then | |
9240 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" | |
9241 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" | |
9242 | fi | |
9243 | ||
9244 | if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then | |
9245 | BFD_HOST_64_BIT_DEFINED=1 | |
9246 | BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" | |
9247 | BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" | |
9248 | fi | |
9249 | ||
9250 | ||
9251 | ||
9252 | ||
9253 | ||
9254 | ||
9255 | ||
9256 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
9257 | if test -z "$CC_FOR_BUILD"; then | |
9258 | if test "x$cross_compiling" = "xno"; then | |
9259 | CC_FOR_BUILD='$(CC)' | |
9260 | else | |
9261 | CC_FOR_BUILD=gcc | |
9262 | fi | |
9263 | fi | |
9264 | ||
9265 | # Also set EXEEXT_FOR_BUILD. | |
9266 | if test "x$cross_compiling" = "xno"; then | |
9267 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
9268 | else | |
9269 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 | |
9270 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 | |
9271 | if test "${bfd_cv_build_exeext+set}" = set; then | |
9272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9273 | else | |
9274 | rm -f conftest* | |
9275 | echo 'int main () { return 0; }' > conftest.c | |
9276 | bfd_cv_build_exeext= | |
9277 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
9278 | for file in conftest.*; do | |
9279 | case $file in | |
9280 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
9281 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
9282 | esac | |
9283 | done | |
9284 | rm -f conftest* | |
9285 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
9286 | fi | |
9287 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 | |
9288 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 | |
9289 | EXEEXT_FOR_BUILD="" | |
9290 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
9291 | fi | |
9292 | ||
9293 | ||
9294 | ||
9295 | ||
9296 | ||
9297 | ||
9298 | ||
9299 | ||
9300 | for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h | |
9301 | do | |
9302 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9304 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9306 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9308 | fi | |
9309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9310 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9311 | else | |
9312 | # Is the header compilable? | |
9313 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9314 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9315 | cat >conftest.$ac_ext <<_ACEOF | |
9316 | /* confdefs.h. */ | |
9317 | _ACEOF | |
9318 | cat confdefs.h >>conftest.$ac_ext | |
9319 | cat >>conftest.$ac_ext <<_ACEOF | |
9320 | /* end confdefs.h. */ | |
9321 | $ac_includes_default | |
9322 | #include <$ac_header> | |
9323 | _ACEOF | |
9324 | rm -f conftest.$ac_objext | |
9325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9326 | (eval $ac_compile) 2>conftest.er1 | |
9327 | ac_status=$? | |
9328 | grep -v '^ *+' conftest.er1 >conftest.err | |
9329 | rm -f conftest.er1 | |
9330 | cat conftest.err >&5 | |
9331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9332 | (exit $ac_status); } && | |
6ec7057a | 9333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
9334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9335 | (eval $ac_try) 2>&5 | |
9336 | ac_status=$? | |
9337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9338 | (exit $ac_status); }; } && | |
9339 | { ac_try='test -s conftest.$ac_objext' | |
9340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9341 | (eval $ac_try) 2>&5 | |
9342 | ac_status=$? | |
9343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9344 | (exit $ac_status); }; }; then | |
9345 | ac_header_compiler=yes | |
9346 | else | |
9347 | echo "$as_me: failed program was:" >&5 | |
9348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9349 | ||
9350 | ac_header_compiler=no | |
9351 | fi | |
9352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9353 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9354 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9355 | ||
9356 | # Is the header present? | |
9357 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9358 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9359 | cat >conftest.$ac_ext <<_ACEOF | |
9360 | /* confdefs.h. */ | |
9361 | _ACEOF | |
9362 | cat confdefs.h >>conftest.$ac_ext | |
9363 | cat >>conftest.$ac_ext <<_ACEOF | |
9364 | /* end confdefs.h. */ | |
9365 | #include <$ac_header> | |
9366 | _ACEOF | |
9367 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9368 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9369 | ac_status=$? | |
9370 | grep -v '^ *+' conftest.er1 >conftest.err | |
9371 | rm -f conftest.er1 | |
9372 | cat conftest.err >&5 | |
9373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9374 | (exit $ac_status); } >/dev/null; then | |
9375 | if test -s conftest.err; then | |
9376 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9377 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9378 | else | |
9379 | ac_cpp_err= | |
9380 | fi | |
9381 | else | |
9382 | ac_cpp_err=yes | |
9383 | fi | |
9384 | if test -z "$ac_cpp_err"; then | |
9385 | ac_header_preproc=yes | |
9386 | else | |
9387 | echo "$as_me: failed program was:" >&5 | |
9388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9389 | ||
9390 | ac_header_preproc=no | |
9391 | fi | |
9392 | rm -f conftest.err conftest.$ac_ext | |
9393 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9394 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9395 | ||
9396 | # So? What about this header? | |
9397 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9398 | yes:no: ) | |
9399 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9400 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9401 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9402 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9403 | ac_header_preproc=yes | |
9404 | ;; | |
9405 | no:yes:* ) | |
9406 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9407 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9408 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9409 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9410 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9411 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9412 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9413 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9414 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9415 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9416 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9417 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9418 | ( | |
9419 | cat <<\_ASBOX | |
9420 | ## ------------------------------------------ ## | |
9421 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9422 | ## ------------------------------------------ ## | |
9423 | _ASBOX | |
9424 | ) | | |
9425 | sed "s/^/$as_me: WARNING: /" >&2 | |
9426 | ;; | |
9427 | esac | |
9428 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9429 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9430 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9432 | else | |
9433 | eval "$as_ac_Header=\$ac_header_preproc" | |
9434 | fi | |
9435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9436 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9437 | ||
9438 | fi | |
9439 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9440 | cat >>confdefs.h <<_ACEOF | |
9441 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9442 | _ACEOF | |
9443 | ||
9444 | fi | |
9445 | ||
9446 | done | |
9447 | ||
9448 | ||
9449 | ||
9450 | ||
9451 | for ac_header in fcntl.h sys/file.h sys/time.h | |
9452 | do | |
9453 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9454 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9455 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9456 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9457 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9459 | fi | |
9460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9462 | else | |
9463 | # Is the header compilable? | |
9464 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9465 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9466 | cat >conftest.$ac_ext <<_ACEOF | |
9467 | /* confdefs.h. */ | |
9468 | _ACEOF | |
9469 | cat confdefs.h >>conftest.$ac_ext | |
9470 | cat >>conftest.$ac_ext <<_ACEOF | |
9471 | /* end confdefs.h. */ | |
9472 | $ac_includes_default | |
9473 | #include <$ac_header> | |
9474 | _ACEOF | |
9475 | rm -f conftest.$ac_objext | |
9476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9477 | (eval $ac_compile) 2>conftest.er1 | |
9478 | ac_status=$? | |
9479 | grep -v '^ *+' conftest.er1 >conftest.err | |
9480 | rm -f conftest.er1 | |
9481 | cat conftest.err >&5 | |
9482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9483 | (exit $ac_status); } && | |
6ec7057a | 9484 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
9485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9486 | (eval $ac_try) 2>&5 | |
9487 | ac_status=$? | |
9488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9489 | (exit $ac_status); }; } && | |
9490 | { ac_try='test -s conftest.$ac_objext' | |
9491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9492 | (eval $ac_try) 2>&5 | |
9493 | ac_status=$? | |
9494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9495 | (exit $ac_status); }; }; then | |
9496 | ac_header_compiler=yes | |
9497 | else | |
9498 | echo "$as_me: failed program was:" >&5 | |
9499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9500 | ||
9501 | ac_header_compiler=no | |
9502 | fi | |
9503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9504 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9505 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9506 | ||
9507 | # Is the header present? | |
9508 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9509 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9510 | cat >conftest.$ac_ext <<_ACEOF | |
9511 | /* confdefs.h. */ | |
9512 | _ACEOF | |
9513 | cat confdefs.h >>conftest.$ac_ext | |
9514 | cat >>conftest.$ac_ext <<_ACEOF | |
9515 | /* end confdefs.h. */ | |
9516 | #include <$ac_header> | |
9517 | _ACEOF | |
9518 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9519 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9520 | ac_status=$? | |
9521 | grep -v '^ *+' conftest.er1 >conftest.err | |
9522 | rm -f conftest.er1 | |
9523 | cat conftest.err >&5 | |
9524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9525 | (exit $ac_status); } >/dev/null; then | |
9526 | if test -s conftest.err; then | |
9527 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9528 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9529 | else | |
9530 | ac_cpp_err= | |
9531 | fi | |
9532 | else | |
9533 | ac_cpp_err=yes | |
9534 | fi | |
9535 | if test -z "$ac_cpp_err"; then | |
9536 | ac_header_preproc=yes | |
9537 | else | |
9538 | echo "$as_me: failed program was:" >&5 | |
9539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9540 | ||
9541 | ac_header_preproc=no | |
9542 | fi | |
9543 | rm -f conftest.err conftest.$ac_ext | |
9544 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9545 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9546 | ||
9547 | # So? What about this header? | |
9548 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9549 | yes:no: ) | |
9550 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9551 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9552 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9553 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9554 | ac_header_preproc=yes | |
9555 | ;; | |
9556 | no:yes:* ) | |
9557 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9558 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9559 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9560 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9561 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9562 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9563 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9564 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9565 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9566 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9567 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9568 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9569 | ( | |
9570 | cat <<\_ASBOX | |
9571 | ## ------------------------------------------ ## | |
9572 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9573 | ## ------------------------------------------ ## | |
9574 | _ASBOX | |
9575 | ) | | |
9576 | sed "s/^/$as_me: WARNING: /" >&2 | |
9577 | ;; | |
9578 | esac | |
9579 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9580 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9581 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9583 | else | |
9584 | eval "$as_ac_Header=\$ac_header_preproc" | |
9585 | fi | |
9586 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9587 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9588 | ||
9589 | fi | |
9590 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9591 | cat >>confdefs.h <<_ACEOF | |
9592 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9593 | _ACEOF | |
9594 | ||
9595 | fi | |
9596 | ||
9597 | done | |
9598 | ||
9599 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
9600 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
9601 | if test "${ac_cv_header_time+set}" = set; then | |
9602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9603 | else | |
9604 | cat >conftest.$ac_ext <<_ACEOF | |
9605 | /* confdefs.h. */ | |
9606 | _ACEOF | |
9607 | cat confdefs.h >>conftest.$ac_ext | |
9608 | cat >>conftest.$ac_ext <<_ACEOF | |
9609 | /* end confdefs.h. */ | |
9610 | #include <sys/types.h> | |
9611 | #include <sys/time.h> | |
9612 | #include <time.h> | |
9613 | ||
9614 | int | |
9615 | main () | |
9616 | { | |
9617 | if ((struct tm *) 0) | |
9618 | return 0; | |
9619 | ; | |
9620 | return 0; | |
9621 | } | |
9622 | _ACEOF | |
9623 | rm -f conftest.$ac_objext | |
9624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9625 | (eval $ac_compile) 2>conftest.er1 | |
9626 | ac_status=$? | |
9627 | grep -v '^ *+' conftest.er1 >conftest.err | |
9628 | rm -f conftest.er1 | |
9629 | cat conftest.err >&5 | |
9630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9631 | (exit $ac_status); } && | |
6ec7057a | 9632 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
9633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9634 | (eval $ac_try) 2>&5 | |
9635 | ac_status=$? | |
9636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9637 | (exit $ac_status); }; } && | |
9638 | { ac_try='test -s conftest.$ac_objext' | |
9639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9640 | (eval $ac_try) 2>&5 | |
9641 | ac_status=$? | |
9642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9643 | (exit $ac_status); }; }; then | |
9644 | ac_cv_header_time=yes | |
9645 | else | |
9646 | echo "$as_me: failed program was:" >&5 | |
9647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9648 | ||
9649 | ac_cv_header_time=no | |
9650 | fi | |
9651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9652 | fi | |
9653 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
9654 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
9655 | if test $ac_cv_header_time = yes; then | |
9656 | ||
9657 | cat >>confdefs.h <<\_ACEOF | |
9658 | #define TIME_WITH_SYS_TIME 1 | |
9659 | _ACEOF | |
9660 | ||
9661 | fi | |
9662 | ||
9663 | ||
9664 | ||
9665 | ||
9666 | ||
9667 | ||
9668 | ac_header_dirent=no | |
9669 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
9670 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
9671 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
9672 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
9673 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9675 | else | |
9676 | cat >conftest.$ac_ext <<_ACEOF | |
9677 | /* confdefs.h. */ | |
9678 | _ACEOF | |
9679 | cat confdefs.h >>conftest.$ac_ext | |
9680 | cat >>conftest.$ac_ext <<_ACEOF | |
9681 | /* end confdefs.h. */ | |
9682 | #include <sys/types.h> | |
9683 | #include <$ac_hdr> | |
9684 | ||
9685 | int | |
9686 | main () | |
9687 | { | |
9688 | if ((DIR *) 0) | |
9689 | return 0; | |
9690 | ; | |
9691 | return 0; | |
9692 | } | |
9693 | _ACEOF | |
9694 | rm -f conftest.$ac_objext | |
9695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9696 | (eval $ac_compile) 2>conftest.er1 | |
9697 | ac_status=$? | |
9698 | grep -v '^ *+' conftest.er1 >conftest.err | |
9699 | rm -f conftest.er1 | |
9700 | cat conftest.err >&5 | |
9701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9702 | (exit $ac_status); } && | |
6ec7057a | 9703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
9704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9705 | (eval $ac_try) 2>&5 | |
9706 | ac_status=$? | |
9707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9708 | (exit $ac_status); }; } && | |
9709 | { ac_try='test -s conftest.$ac_objext' | |
9710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9711 | (eval $ac_try) 2>&5 | |
9712 | ac_status=$? | |
9713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9714 | (exit $ac_status); }; }; then | |
9715 | eval "$as_ac_Header=yes" | |
9716 | else | |
9717 | echo "$as_me: failed program was:" >&5 | |
9718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9719 | ||
9720 | eval "$as_ac_Header=no" | |
9721 | fi | |
9722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9723 | fi | |
9724 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9725 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9726 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9727 | cat >>confdefs.h <<_ACEOF | |
9728 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
9729 | _ACEOF | |
9730 | ||
9731 | ac_header_dirent=$ac_hdr; break | |
9732 | fi | |
9733 | ||
9734 | done | |
9735 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
9736 | if test $ac_header_dirent = dirent.h; then | |
9737 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
9738 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
9739 | if test "${ac_cv_search_opendir+set}" = set; then | |
9740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9741 | else | |
9742 | ac_func_search_save_LIBS=$LIBS | |
9743 | ac_cv_search_opendir=no | |
9744 | cat >conftest.$ac_ext <<_ACEOF | |
9745 | /* confdefs.h. */ | |
9746 | _ACEOF | |
9747 | cat confdefs.h >>conftest.$ac_ext | |
9748 | cat >>conftest.$ac_ext <<_ACEOF | |
9749 | /* end confdefs.h. */ | |
9750 | ||
9751 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9752 | #ifdef __cplusplus | |
9753 | extern "C" | |
9754 | #endif | |
9755 | /* We use char because int might match the return type of a gcc2 | |
9756 | builtin and then its argument prototype would still apply. */ | |
9757 | char opendir (); | |
9758 | int | |
9759 | main () | |
9760 | { | |
9761 | opendir (); | |
9762 | ; | |
9763 | return 0; | |
9764 | } | |
9765 | _ACEOF | |
9766 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9768 | (eval $ac_link) 2>conftest.er1 | |
9769 | ac_status=$? | |
9770 | grep -v '^ *+' conftest.er1 >conftest.err | |
9771 | rm -f conftest.er1 | |
9772 | cat conftest.err >&5 | |
9773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9774 | (exit $ac_status); } && | |
6ec7057a | 9775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
9776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9777 | (eval $ac_try) 2>&5 | |
9778 | ac_status=$? | |
9779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9780 | (exit $ac_status); }; } && | |
9781 | { ac_try='test -s conftest$ac_exeext' | |
9782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9783 | (eval $ac_try) 2>&5 | |
9784 | ac_status=$? | |
9785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9786 | (exit $ac_status); }; }; then | |
9787 | ac_cv_search_opendir="none required" | |
9788 | else | |
9789 | echo "$as_me: failed program was:" >&5 | |
9790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9791 | ||
9792 | fi | |
9793 | rm -f conftest.err conftest.$ac_objext \ | |
9794 | conftest$ac_exeext conftest.$ac_ext | |
9795 | if test "$ac_cv_search_opendir" = no; then | |
9796 | for ac_lib in dir; do | |
9797 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9798 | cat >conftest.$ac_ext <<_ACEOF | |
9799 | /* confdefs.h. */ | |
9800 | _ACEOF | |
9801 | cat confdefs.h >>conftest.$ac_ext | |
9802 | cat >>conftest.$ac_ext <<_ACEOF | |
9803 | /* end confdefs.h. */ | |
9804 | ||
9805 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9806 | #ifdef __cplusplus | |
9807 | extern "C" | |
9808 | #endif | |
9809 | /* We use char because int might match the return type of a gcc2 | |
9810 | builtin and then its argument prototype would still apply. */ | |
9811 | char opendir (); | |
9812 | int | |
9813 | main () | |
9814 | { | |
9815 | opendir (); | |
9816 | ; | |
9817 | return 0; | |
9818 | } | |
9819 | _ACEOF | |
9820 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9822 | (eval $ac_link) 2>conftest.er1 | |
9823 | ac_status=$? | |
9824 | grep -v '^ *+' conftest.er1 >conftest.err | |
9825 | rm -f conftest.er1 | |
9826 | cat conftest.err >&5 | |
9827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9828 | (exit $ac_status); } && | |
6ec7057a | 9829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
9830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9831 | (eval $ac_try) 2>&5 | |
9832 | ac_status=$? | |
9833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9834 | (exit $ac_status); }; } && | |
9835 | { ac_try='test -s conftest$ac_exeext' | |
9836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9837 | (eval $ac_try) 2>&5 | |
9838 | ac_status=$? | |
9839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9840 | (exit $ac_status); }; }; then | |
9841 | ac_cv_search_opendir="-l$ac_lib" | |
9842 | break | |
9843 | else | |
9844 | echo "$as_me: failed program was:" >&5 | |
9845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9846 | ||
9847 | fi | |
9848 | rm -f conftest.err conftest.$ac_objext \ | |
9849 | conftest$ac_exeext conftest.$ac_ext | |
9850 | done | |
9851 | fi | |
9852 | LIBS=$ac_func_search_save_LIBS | |
9853 | fi | |
9854 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
9855 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
9856 | if test "$ac_cv_search_opendir" != no; then | |
9857 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
9858 | ||
9859 | fi | |
9860 | ||
9861 | else | |
9862 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
9863 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
9864 | if test "${ac_cv_search_opendir+set}" = set; then | |
9865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9866 | else | |
9867 | ac_func_search_save_LIBS=$LIBS | |
9868 | ac_cv_search_opendir=no | |
9869 | cat >conftest.$ac_ext <<_ACEOF | |
9870 | /* confdefs.h. */ | |
9871 | _ACEOF | |
9872 | cat confdefs.h >>conftest.$ac_ext | |
9873 | cat >>conftest.$ac_ext <<_ACEOF | |
9874 | /* end confdefs.h. */ | |
9875 | ||
9876 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9877 | #ifdef __cplusplus | |
9878 | extern "C" | |
9879 | #endif | |
9880 | /* We use char because int might match the return type of a gcc2 | |
9881 | builtin and then its argument prototype would still apply. */ | |
9882 | char opendir (); | |
9883 | int | |
9884 | main () | |
9885 | { | |
9886 | opendir (); | |
9887 | ; | |
9888 | return 0; | |
9889 | } | |
9890 | _ACEOF | |
9891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9893 | (eval $ac_link) 2>conftest.er1 | |
9894 | ac_status=$? | |
9895 | grep -v '^ *+' conftest.er1 >conftest.err | |
9896 | rm -f conftest.er1 | |
9897 | cat conftest.err >&5 | |
9898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9899 | (exit $ac_status); } && | |
6ec7057a | 9900 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
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_exeext' | |
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 | |
9912 | ac_cv_search_opendir="none required" | |
9913 | else | |
9914 | echo "$as_me: failed program was:" >&5 | |
9915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9916 | ||
9917 | fi | |
9918 | rm -f conftest.err conftest.$ac_objext \ | |
9919 | conftest$ac_exeext conftest.$ac_ext | |
9920 | if test "$ac_cv_search_opendir" = no; then | |
9921 | for ac_lib in x; do | |
9922 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9923 | cat >conftest.$ac_ext <<_ACEOF | |
9924 | /* confdefs.h. */ | |
9925 | _ACEOF | |
9926 | cat confdefs.h >>conftest.$ac_ext | |
9927 | cat >>conftest.$ac_ext <<_ACEOF | |
9928 | /* end confdefs.h. */ | |
9929 | ||
9930 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9931 | #ifdef __cplusplus | |
9932 | extern "C" | |
9933 | #endif | |
9934 | /* We use char because int might match the return type of a gcc2 | |
9935 | builtin and then its argument prototype would still apply. */ | |
9936 | char opendir (); | |
9937 | int | |
9938 | main () | |
9939 | { | |
9940 | opendir (); | |
9941 | ; | |
9942 | return 0; | |
9943 | } | |
9944 | _ACEOF | |
9945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9947 | (eval $ac_link) 2>conftest.er1 | |
9948 | ac_status=$? | |
9949 | grep -v '^ *+' conftest.er1 >conftest.err | |
9950 | rm -f conftest.er1 | |
9951 | cat conftest.err >&5 | |
9952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9953 | (exit $ac_status); } && | |
6ec7057a | 9954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
9955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9956 | (eval $ac_try) 2>&5 | |
9957 | ac_status=$? | |
9958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9959 | (exit $ac_status); }; } && | |
9960 | { ac_try='test -s conftest$ac_exeext' | |
9961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9962 | (eval $ac_try) 2>&5 | |
9963 | ac_status=$? | |
9964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9965 | (exit $ac_status); }; }; then | |
9966 | ac_cv_search_opendir="-l$ac_lib" | |
9967 | break | |
9968 | else | |
9969 | echo "$as_me: failed program was:" >&5 | |
9970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9971 | ||
9972 | fi | |
9973 | rm -f conftest.err conftest.$ac_objext \ | |
9974 | conftest$ac_exeext conftest.$ac_ext | |
9975 | done | |
9976 | fi | |
9977 | LIBS=$ac_func_search_save_LIBS | |
9978 | fi | |
9979 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
9980 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
9981 | if test "$ac_cv_search_opendir" != no; then | |
9982 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
9983 | ||
9984 | fi | |
9985 | ||
9986 | fi | |
9987 | ||
9988 | echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 | |
9989 | echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6 | |
9990 | if test "${gcc_cv_header_string+set}" = set; then | |
9991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9992 | else | |
9993 | cat >conftest.$ac_ext <<_ACEOF | |
9994 | /* confdefs.h. */ | |
9995 | _ACEOF | |
9996 | cat confdefs.h >>conftest.$ac_ext | |
9997 | cat >>conftest.$ac_ext <<_ACEOF | |
9998 | /* end confdefs.h. */ | |
9999 | #include <string.h> | |
10000 | #include <strings.h> | |
10001 | int | |
10002 | main () | |
10003 | { | |
10004 | ||
10005 | ; | |
10006 | return 0; | |
10007 | } | |
10008 | _ACEOF | |
10009 | rm -f conftest.$ac_objext | |
10010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10011 | (eval $ac_compile) 2>conftest.er1 | |
10012 | ac_status=$? | |
10013 | grep -v '^ *+' conftest.er1 >conftest.err | |
10014 | rm -f conftest.er1 | |
10015 | cat conftest.err >&5 | |
10016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10017 | (exit $ac_status); } && | |
6ec7057a | 10018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
10019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10020 | (eval $ac_try) 2>&5 | |
10021 | ac_status=$? | |
10022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10023 | (exit $ac_status); }; } && | |
10024 | { ac_try='test -s conftest.$ac_objext' | |
10025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10026 | (eval $ac_try) 2>&5 | |
10027 | ac_status=$? | |
10028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10029 | (exit $ac_status); }; }; then | |
10030 | gcc_cv_header_string=yes | |
10031 | else | |
10032 | echo "$as_me: failed program was:" >&5 | |
10033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10034 | ||
10035 | gcc_cv_header_string=no | |
10036 | fi | |
10037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10038 | fi | |
10039 | echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 | |
10040 | echo "${ECHO_T}$gcc_cv_header_string" >&6 | |
10041 | if test $gcc_cv_header_string = yes; then | |
10042 | ||
10043 | cat >>confdefs.h <<\_ACEOF | |
10044 | #define STRING_WITH_STRINGS 1 | |
10045 | _ACEOF | |
10046 | ||
2e0fbf77 JW |
10047 | fi |
10048 | ||
5464f5a1 NN |
10049 | |
10050 | ||
10051 | ||
10052 | ||
10053 | ||
10054 | ||
10055 | ||
633fd09f | 10056 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid |
252b5132 | 10057 | do |
5464f5a1 NN |
10058 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10059 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10060 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10061 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10063 | else | |
10064 | cat >conftest.$ac_ext <<_ACEOF | |
10065 | /* confdefs.h. */ | |
10066 | _ACEOF | |
10067 | cat confdefs.h >>conftest.$ac_ext | |
10068 | cat >>conftest.$ac_ext <<_ACEOF | |
10069 | /* end confdefs.h. */ | |
10070 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10071 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10072 | #define $ac_func innocuous_$ac_func | |
10073 | ||
252b5132 | 10074 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
10075 | which can conflict with char $ac_func (); below. |
10076 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10077 | <limits.h> exists even on freestanding compilers. */ | |
10078 | ||
10079 | #ifdef __STDC__ | |
10080 | # include <limits.h> | |
10081 | #else | |
10082 | # include <assert.h> | |
10083 | #endif | |
6be7c12c | 10084 | |
5464f5a1 | 10085 | #undef $ac_func |
252b5132 | 10086 | |
5464f5a1 NN |
10087 | /* Override any gcc2 internal prototype to avoid an error. */ |
10088 | #ifdef __cplusplus | |
10089 | extern "C" | |
10090 | { | |
10091 | #endif | |
10092 | /* We use char because int might match the return type of a gcc2 | |
10093 | builtin and then its argument prototype would still apply. */ | |
10094 | char $ac_func (); | |
252b5132 RH |
10095 | /* The GNU C library defines this for functions which it implements |
10096 | to always fail with ENOSYS. Some functions are actually named | |
10097 | something starting with __ and the normal name is an alias. */ | |
10098 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10099 | choke me | |
10100 | #else | |
5464f5a1 NN |
10101 | char (*f) () = $ac_func; |
10102 | #endif | |
10103 | #ifdef __cplusplus | |
10104 | } | |
252b5132 RH |
10105 | #endif |
10106 | ||
5464f5a1 NN |
10107 | int |
10108 | main () | |
10109 | { | |
10110 | return f != $ac_func; | |
10111 | ; | |
10112 | return 0; | |
10113 | } | |
10114 | _ACEOF | |
10115 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10117 | (eval $ac_link) 2>conftest.er1 | |
10118 | ac_status=$? | |
10119 | grep -v '^ *+' conftest.er1 >conftest.err | |
10120 | rm -f conftest.er1 | |
10121 | cat conftest.err >&5 | |
10122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10123 | (exit $ac_status); } && | |
6ec7057a | 10124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
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); }; } && | |
10130 | { ac_try='test -s conftest$ac_exeext' | |
10131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10132 | (eval $ac_try) 2>&5 | |
10133 | ac_status=$? | |
10134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10135 | (exit $ac_status); }; }; then | |
10136 | eval "$as_ac_var=yes" | |
10137 | else | |
10138 | echo "$as_me: failed program was:" >&5 | |
10139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10140 | ||
10141 | eval "$as_ac_var=no" | |
10142 | fi | |
10143 | rm -f conftest.err conftest.$ac_objext \ | |
10144 | conftest$ac_exeext conftest.$ac_ext | |
10145 | fi | |
10146 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10147 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10148 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10149 | cat >>confdefs.h <<_ACEOF | |
10150 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10151 | _ACEOF | |
252b5132 | 10152 | |
252b5132 RH |
10153 | fi |
10154 | done | |
10155 | ||
5464f5a1 | 10156 | |
49c97a80 ILT |
10157 | for ac_func in strtoull |
10158 | do | |
5464f5a1 NN |
10159 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10160 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10161 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10162 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10164 | else | |
10165 | cat >conftest.$ac_ext <<_ACEOF | |
10166 | /* confdefs.h. */ | |
10167 | _ACEOF | |
10168 | cat confdefs.h >>conftest.$ac_ext | |
10169 | cat >>conftest.$ac_ext <<_ACEOF | |
10170 | /* end confdefs.h. */ | |
10171 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10172 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10173 | #define $ac_func innocuous_$ac_func | |
10174 | ||
49c97a80 | 10175 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
10176 | which can conflict with char $ac_func (); below. |
10177 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10178 | <limits.h> exists even on freestanding compilers. */ | |
10179 | ||
10180 | #ifdef __STDC__ | |
10181 | # include <limits.h> | |
10182 | #else | |
10183 | # include <assert.h> | |
10184 | #endif | |
49c97a80 | 10185 | |
5464f5a1 | 10186 | #undef $ac_func |
49c97a80 | 10187 | |
5464f5a1 NN |
10188 | /* Override any gcc2 internal prototype to avoid an error. */ |
10189 | #ifdef __cplusplus | |
10190 | extern "C" | |
10191 | { | |
10192 | #endif | |
10193 | /* We use char because int might match the return type of a gcc2 | |
10194 | builtin and then its argument prototype would still apply. */ | |
10195 | char $ac_func (); | |
49c97a80 ILT |
10196 | /* The GNU C library defines this for functions which it implements |
10197 | to always fail with ENOSYS. Some functions are actually named | |
10198 | something starting with __ and the normal name is an alias. */ | |
10199 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10200 | choke me | |
10201 | #else | |
5464f5a1 NN |
10202 | char (*f) () = $ac_func; |
10203 | #endif | |
10204 | #ifdef __cplusplus | |
10205 | } | |
49c97a80 ILT |
10206 | #endif |
10207 | ||
5464f5a1 NN |
10208 | int |
10209 | main () | |
10210 | { | |
10211 | return f != $ac_func; | |
10212 | ; | |
10213 | return 0; | |
10214 | } | |
10215 | _ACEOF | |
10216 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10218 | (eval $ac_link) 2>conftest.er1 | |
10219 | ac_status=$? | |
10220 | grep -v '^ *+' conftest.er1 >conftest.err | |
10221 | rm -f conftest.er1 | |
10222 | cat conftest.err >&5 | |
10223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10224 | (exit $ac_status); } && | |
6ec7057a | 10225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10227 | (eval $ac_try) 2>&5 | |
10228 | ac_status=$? | |
10229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10230 | (exit $ac_status); }; } && | |
10231 | { ac_try='test -s conftest$ac_exeext' | |
10232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10233 | (eval $ac_try) 2>&5 | |
10234 | ac_status=$? | |
10235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10236 | (exit $ac_status); }; }; then | |
10237 | eval "$as_ac_var=yes" | |
10238 | else | |
10239 | echo "$as_me: failed program was:" >&5 | |
10240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10241 | ||
10242 | eval "$as_ac_var=no" | |
10243 | fi | |
10244 | rm -f conftest.err conftest.$ac_objext \ | |
10245 | conftest$ac_exeext conftest.$ac_ext | |
10246 | fi | |
10247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10248 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10249 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10250 | cat >>confdefs.h <<_ACEOF | |
10251 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10252 | _ACEOF | |
49c97a80 | 10253 | |
49c97a80 ILT |
10254 | fi |
10255 | done | |
10256 | ||
6be7c12c | 10257 | |
2e9ebff5 JG |
10258 | echo "$as_me:$LINENO: checking whether basename is declared" >&5 |
10259 | echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6 | |
10260 | if test "${ac_cv_have_decl_basename+set}" = set; then | |
10261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10262 | else | |
10263 | cat >conftest.$ac_ext <<_ACEOF | |
10264 | /* confdefs.h. */ | |
10265 | _ACEOF | |
10266 | cat confdefs.h >>conftest.$ac_ext | |
10267 | cat >>conftest.$ac_ext <<_ACEOF | |
10268 | /* end confdefs.h. */ | |
ec7b76fe | 10269 | $ac_includes_default |
2e9ebff5 JG |
10270 | int |
10271 | main () | |
10272 | { | |
10273 | #ifndef basename | |
10274 | char *p = (char *) basename; | |
10275 | #endif | |
10276 | ||
10277 | ; | |
10278 | return 0; | |
10279 | } | |
10280 | _ACEOF | |
10281 | rm -f conftest.$ac_objext | |
10282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10283 | (eval $ac_compile) 2>conftest.er1 | |
10284 | ac_status=$? | |
10285 | grep -v '^ *+' conftest.er1 >conftest.err | |
10286 | rm -f conftest.er1 | |
10287 | cat conftest.err >&5 | |
10288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10289 | (exit $ac_status); } && | |
6ec7057a | 10290 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2e9ebff5 JG |
10291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10292 | (eval $ac_try) 2>&5 | |
10293 | ac_status=$? | |
10294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10295 | (exit $ac_status); }; } && | |
10296 | { ac_try='test -s conftest.$ac_objext' | |
10297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10298 | (eval $ac_try) 2>&5 | |
10299 | ac_status=$? | |
10300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10301 | (exit $ac_status); }; }; then | |
10302 | ac_cv_have_decl_basename=yes | |
10303 | else | |
10304 | echo "$as_me: failed program was:" >&5 | |
10305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10306 | ||
10307 | ac_cv_have_decl_basename=no | |
10308 | fi | |
10309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10310 | fi | |
10311 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5 | |
10312 | echo "${ECHO_T}$ac_cv_have_decl_basename" >&6 | |
10313 | if test $ac_cv_have_decl_basename = yes; then | |
10314 | ||
10315 | cat >>confdefs.h <<_ACEOF | |
10316 | #define HAVE_DECL_BASENAME 1 | |
10317 | _ACEOF | |
10318 | ||
10319 | ||
10320 | else | |
10321 | cat >>confdefs.h <<_ACEOF | |
10322 | #define HAVE_DECL_BASENAME 0 | |
10323 | _ACEOF | |
10324 | ||
10325 | ||
10326 | fi | |
10327 | ||
10328 | ||
ec7b76fe JG |
10329 | echo "$as_me:$LINENO: checking whether ftello is declared" >&5 |
10330 | echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6 | |
10331 | if test "${ac_cv_have_decl_ftello+set}" = set; then | |
10332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10333 | else | |
10334 | cat >conftest.$ac_ext <<_ACEOF | |
10335 | /* confdefs.h. */ | |
10336 | _ACEOF | |
10337 | cat confdefs.h >>conftest.$ac_ext | |
10338 | cat >>conftest.$ac_ext <<_ACEOF | |
10339 | /* end confdefs.h. */ | |
10340 | $ac_includes_default | |
10341 | int | |
10342 | main () | |
10343 | { | |
10344 | #ifndef ftello | |
10345 | char *p = (char *) ftello; | |
10346 | #endif | |
10347 | ||
10348 | ; | |
10349 | return 0; | |
10350 | } | |
10351 | _ACEOF | |
10352 | rm -f conftest.$ac_objext | |
10353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10354 | (eval $ac_compile) 2>conftest.er1 | |
10355 | ac_status=$? | |
10356 | grep -v '^ *+' conftest.er1 >conftest.err | |
10357 | rm -f conftest.er1 | |
10358 | cat conftest.err >&5 | |
10359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10360 | (exit $ac_status); } && | |
6ec7057a | 10361 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ec7b76fe JG |
10362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10363 | (eval $ac_try) 2>&5 | |
10364 | ac_status=$? | |
10365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10366 | (exit $ac_status); }; } && | |
10367 | { ac_try='test -s conftest.$ac_objext' | |
10368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10369 | (eval $ac_try) 2>&5 | |
10370 | ac_status=$? | |
10371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10372 | (exit $ac_status); }; }; then | |
10373 | ac_cv_have_decl_ftello=yes | |
10374 | else | |
10375 | echo "$as_me: failed program was:" >&5 | |
10376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10377 | ||
10378 | ac_cv_have_decl_ftello=no | |
10379 | fi | |
10380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10381 | fi | |
10382 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5 | |
10383 | echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6 | |
10384 | if test $ac_cv_have_decl_ftello = yes; then | |
10385 | ||
10386 | cat >>confdefs.h <<_ACEOF | |
10387 | #define HAVE_DECL_FTELLO 1 | |
10388 | _ACEOF | |
10389 | ||
10390 | ||
10391 | else | |
10392 | cat >>confdefs.h <<_ACEOF | |
10393 | #define HAVE_DECL_FTELLO 0 | |
10394 | _ACEOF | |
10395 | ||
10396 | ||
10397 | fi | |
10398 | ||
10399 | ||
10400 | echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5 | |
10401 | echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6 | |
10402 | if test "${ac_cv_have_decl_ftello64+set}" = set; then | |
10403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10404 | else | |
10405 | cat >conftest.$ac_ext <<_ACEOF | |
10406 | /* confdefs.h. */ | |
10407 | _ACEOF | |
10408 | cat confdefs.h >>conftest.$ac_ext | |
10409 | cat >>conftest.$ac_ext <<_ACEOF | |
10410 | /* end confdefs.h. */ | |
10411 | $ac_includes_default | |
10412 | int | |
10413 | main () | |
10414 | { | |
10415 | #ifndef ftello64 | |
10416 | char *p = (char *) ftello64; | |
10417 | #endif | |
10418 | ||
10419 | ; | |
10420 | return 0; | |
10421 | } | |
10422 | _ACEOF | |
10423 | rm -f conftest.$ac_objext | |
10424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10425 | (eval $ac_compile) 2>conftest.er1 | |
10426 | ac_status=$? | |
10427 | grep -v '^ *+' conftest.er1 >conftest.err | |
10428 | rm -f conftest.er1 | |
10429 | cat conftest.err >&5 | |
10430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10431 | (exit $ac_status); } && | |
6ec7057a | 10432 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ec7b76fe JG |
10433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10434 | (eval $ac_try) 2>&5 | |
10435 | ac_status=$? | |
10436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10437 | (exit $ac_status); }; } && | |
10438 | { ac_try='test -s conftest.$ac_objext' | |
10439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10440 | (eval $ac_try) 2>&5 | |
10441 | ac_status=$? | |
10442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10443 | (exit $ac_status); }; }; then | |
10444 | ac_cv_have_decl_ftello64=yes | |
10445 | else | |
10446 | echo "$as_me: failed program was:" >&5 | |
10447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10448 | ||
10449 | ac_cv_have_decl_ftello64=no | |
10450 | fi | |
10451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10452 | fi | |
10453 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5 | |
10454 | echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6 | |
10455 | if test $ac_cv_have_decl_ftello64 = yes; then | |
10456 | ||
10457 | cat >>confdefs.h <<_ACEOF | |
10458 | #define HAVE_DECL_FTELLO64 1 | |
10459 | _ACEOF | |
10460 | ||
10461 | ||
10462 | else | |
10463 | cat >>confdefs.h <<_ACEOF | |
10464 | #define HAVE_DECL_FTELLO64 0 | |
10465 | _ACEOF | |
10466 | ||
10467 | ||
10468 | fi | |
10469 | ||
10470 | ||
10471 | echo "$as_me:$LINENO: checking whether fseeko is declared" >&5 | |
10472 | echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6 | |
10473 | if test "${ac_cv_have_decl_fseeko+set}" = set; then | |
10474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10475 | else | |
10476 | cat >conftest.$ac_ext <<_ACEOF | |
10477 | /* confdefs.h. */ | |
10478 | _ACEOF | |
10479 | cat confdefs.h >>conftest.$ac_ext | |
10480 | cat >>conftest.$ac_ext <<_ACEOF | |
10481 | /* end confdefs.h. */ | |
10482 | $ac_includes_default | |
10483 | int | |
10484 | main () | |
10485 | { | |
10486 | #ifndef fseeko | |
10487 | char *p = (char *) fseeko; | |
10488 | #endif | |
10489 | ||
10490 | ; | |
10491 | return 0; | |
10492 | } | |
10493 | _ACEOF | |
10494 | rm -f conftest.$ac_objext | |
10495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10496 | (eval $ac_compile) 2>conftest.er1 | |
10497 | ac_status=$? | |
10498 | grep -v '^ *+' conftest.er1 >conftest.err | |
10499 | rm -f conftest.er1 | |
10500 | cat conftest.err >&5 | |
10501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10502 | (exit $ac_status); } && | |
6ec7057a | 10503 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ec7b76fe JG |
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); }; } && | |
10509 | { ac_try='test -s conftest.$ac_objext' | |
10510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10511 | (eval $ac_try) 2>&5 | |
10512 | ac_status=$? | |
10513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10514 | (exit $ac_status); }; }; then | |
10515 | ac_cv_have_decl_fseeko=yes | |
10516 | else | |
10517 | echo "$as_me: failed program was:" >&5 | |
10518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10519 | ||
10520 | ac_cv_have_decl_fseeko=no | |
10521 | fi | |
10522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10523 | fi | |
10524 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5 | |
10525 | echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6 | |
10526 | if test $ac_cv_have_decl_fseeko = yes; then | |
10527 | ||
10528 | cat >>confdefs.h <<_ACEOF | |
10529 | #define HAVE_DECL_FSEEKO 1 | |
10530 | _ACEOF | |
10531 | ||
10532 | ||
10533 | else | |
10534 | cat >>confdefs.h <<_ACEOF | |
10535 | #define HAVE_DECL_FSEEKO 0 | |
10536 | _ACEOF | |
10537 | ||
10538 | ||
10539 | fi | |
10540 | ||
10541 | ||
10542 | echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5 | |
10543 | echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6 | |
10544 | if test "${ac_cv_have_decl_fseeko64+set}" = set; then | |
10545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10546 | else | |
10547 | cat >conftest.$ac_ext <<_ACEOF | |
10548 | /* confdefs.h. */ | |
10549 | _ACEOF | |
10550 | cat confdefs.h >>conftest.$ac_ext | |
10551 | cat >>conftest.$ac_ext <<_ACEOF | |
10552 | /* end confdefs.h. */ | |
10553 | $ac_includes_default | |
10554 | int | |
10555 | main () | |
10556 | { | |
10557 | #ifndef fseeko64 | |
10558 | char *p = (char *) fseeko64; | |
10559 | #endif | |
10560 | ||
10561 | ; | |
10562 | return 0; | |
10563 | } | |
10564 | _ACEOF | |
10565 | rm -f conftest.$ac_objext | |
10566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10567 | (eval $ac_compile) 2>conftest.er1 | |
10568 | ac_status=$? | |
10569 | grep -v '^ *+' conftest.er1 >conftest.err | |
10570 | rm -f conftest.er1 | |
10571 | cat conftest.err >&5 | |
10572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10573 | (exit $ac_status); } && | |
6ec7057a | 10574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ec7b76fe JG |
10575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10576 | (eval $ac_try) 2>&5 | |
10577 | ac_status=$? | |
10578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10579 | (exit $ac_status); }; } && | |
10580 | { ac_try='test -s conftest.$ac_objext' | |
10581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10582 | (eval $ac_try) 2>&5 | |
10583 | ac_status=$? | |
10584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10585 | (exit $ac_status); }; }; then | |
10586 | ac_cv_have_decl_fseeko64=yes | |
10587 | else | |
10588 | echo "$as_me: failed program was:" >&5 | |
10589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10590 | ||
10591 | ac_cv_have_decl_fseeko64=no | |
10592 | fi | |
10593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10594 | fi | |
10595 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5 | |
10596 | echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6 | |
10597 | if test $ac_cv_have_decl_fseeko64 = yes; then | |
10598 | ||
10599 | cat >>confdefs.h <<_ACEOF | |
10600 | #define HAVE_DECL_FSEEKO64 1 | |
10601 | _ACEOF | |
10602 | ||
10603 | ||
10604 | else | |
10605 | cat >>confdefs.h <<_ACEOF | |
10606 | #define HAVE_DECL_FSEEKO64 0 | |
10607 | _ACEOF | |
10608 | ||
10609 | ||
10610 | fi | |
10611 | ||
10612 | ||
2e9ebff5 | 10613 | |
6be7c12c | 10614 | |
252b5132 | 10615 | case "${host}" in |
855b0be7 | 10616 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
5464f5a1 NN |
10617 | |
10618 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10619 | #define USE_BINARY_FOPEN 1 |
5464f5a1 | 10620 | _ACEOF |
252b5132 RH |
10621 | ;; |
10622 | esac | |
10623 | ||
d34a2b1d JG |
10624 | echo "$as_me:$LINENO: checking whether ffs is declared" >&5 |
10625 | echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6 | |
10626 | if test "${ac_cv_have_decl_ffs+set}" = set; then | |
5464f5a1 | 10627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10628 | else |
5464f5a1 NN |
10629 | cat >conftest.$ac_ext <<_ACEOF |
10630 | /* confdefs.h. */ | |
10631 | _ACEOF | |
10632 | cat confdefs.h >>conftest.$ac_ext | |
10633 | cat >>conftest.$ac_ext <<_ACEOF | |
10634 | /* end confdefs.h. */ | |
d34a2b1d | 10635 | $ac_includes_default |
5464f5a1 NN |
10636 | int |
10637 | main () | |
10638 | { | |
d34a2b1d JG |
10639 | #ifndef ffs |
10640 | char *p = (char *) ffs; | |
10641 | #endif | |
10642 | ||
5464f5a1 NN |
10643 | ; |
10644 | return 0; | |
10645 | } | |
10646 | _ACEOF | |
10647 | rm -f conftest.$ac_objext | |
10648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10649 | (eval $ac_compile) 2>conftest.er1 | |
10650 | ac_status=$? | |
10651 | grep -v '^ *+' conftest.er1 >conftest.err | |
10652 | rm -f conftest.er1 | |
10653 | cat conftest.err >&5 | |
10654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10655 | (exit $ac_status); } && | |
6ec7057a | 10656 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10658 | (eval $ac_try) 2>&5 | |
10659 | ac_status=$? | |
10660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10661 | (exit $ac_status); }; } && | |
10662 | { ac_try='test -s conftest.$ac_objext' | |
10663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10664 | (eval $ac_try) 2>&5 | |
10665 | ac_status=$? | |
10666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10667 | (exit $ac_status); }; }; then | |
d34a2b1d | 10668 | ac_cv_have_decl_ffs=yes |
252b5132 | 10669 | else |
5464f5a1 NN |
10670 | echo "$as_me: failed program was:" >&5 |
10671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10672 | ||
d34a2b1d | 10673 | ac_cv_have_decl_ffs=no |
252b5132 | 10674 | fi |
5464f5a1 | 10675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10676 | fi |
d34a2b1d JG |
10677 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5 |
10678 | echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6 | |
10679 | if test $ac_cv_have_decl_ffs = yes; then | |
252b5132 | 10680 | |
d34a2b1d JG |
10681 | cat >>confdefs.h <<_ACEOF |
10682 | #define HAVE_DECL_FFS 1 | |
10683 | _ACEOF | |
5464f5a1 | 10684 | |
d34a2b1d JG |
10685 | |
10686 | else | |
10687 | cat >>confdefs.h <<_ACEOF | |
10688 | #define HAVE_DECL_FFS 0 | |
5464f5a1 | 10689 | _ACEOF |
252b5132 | 10690 | |
d34a2b1d | 10691 | |
252b5132 RH |
10692 | fi |
10693 | ||
d34a2b1d JG |
10694 | |
10695 | echo "$as_me:$LINENO: checking whether free is declared" >&5 | |
10696 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
10697 | if test "${ac_cv_have_decl_free+set}" = set; then | |
5464f5a1 | 10698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10699 | else |
5464f5a1 NN |
10700 | cat >conftest.$ac_ext <<_ACEOF |
10701 | /* confdefs.h. */ | |
10702 | _ACEOF | |
10703 | cat confdefs.h >>conftest.$ac_ext | |
10704 | cat >>conftest.$ac_ext <<_ACEOF | |
10705 | /* end confdefs.h. */ | |
d34a2b1d | 10706 | $ac_includes_default |
5464f5a1 NN |
10707 | int |
10708 | main () | |
10709 | { | |
d34a2b1d JG |
10710 | #ifndef free |
10711 | char *p = (char *) free; | |
10712 | #endif | |
10713 | ||
5464f5a1 NN |
10714 | ; |
10715 | return 0; | |
10716 | } | |
10717 | _ACEOF | |
10718 | rm -f conftest.$ac_objext | |
10719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10720 | (eval $ac_compile) 2>conftest.er1 | |
10721 | ac_status=$? | |
10722 | grep -v '^ *+' conftest.er1 >conftest.err | |
10723 | rm -f conftest.er1 | |
10724 | cat conftest.err >&5 | |
10725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10726 | (exit $ac_status); } && | |
6ec7057a | 10727 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10729 | (eval $ac_try) 2>&5 | |
10730 | ac_status=$? | |
10731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10732 | (exit $ac_status); }; } && | |
10733 | { ac_try='test -s conftest.$ac_objext' | |
10734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10735 | (eval $ac_try) 2>&5 | |
10736 | ac_status=$? | |
10737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10738 | (exit $ac_status); }; }; then | |
d34a2b1d | 10739 | ac_cv_have_decl_free=yes |
252b5132 | 10740 | else |
5464f5a1 NN |
10741 | echo "$as_me: failed program was:" >&5 |
10742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10743 | ||
d34a2b1d | 10744 | ac_cv_have_decl_free=no |
252b5132 | 10745 | fi |
5464f5a1 | 10746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10747 | fi |
d34a2b1d JG |
10748 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
10749 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
10750 | if test $ac_cv_have_decl_free = yes; then | |
10751 | ||
10752 | cat >>confdefs.h <<_ACEOF | |
10753 | #define HAVE_DECL_FREE 1 | |
10754 | _ACEOF | |
252b5132 | 10755 | |
5464f5a1 | 10756 | |
d34a2b1d JG |
10757 | else |
10758 | cat >>confdefs.h <<_ACEOF | |
10759 | #define HAVE_DECL_FREE 0 | |
5464f5a1 | 10760 | _ACEOF |
252b5132 | 10761 | |
d34a2b1d | 10762 | |
252b5132 RH |
10763 | fi |
10764 | ||
d34a2b1d JG |
10765 | |
10766 | echo "$as_me:$LINENO: checking whether getenv is declared" >&5 | |
10767 | echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 | |
10768 | if test "${ac_cv_have_decl_getenv+set}" = set; then | |
5464f5a1 | 10769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10770 | else |
5464f5a1 NN |
10771 | cat >conftest.$ac_ext <<_ACEOF |
10772 | /* confdefs.h. */ | |
10773 | _ACEOF | |
10774 | cat confdefs.h >>conftest.$ac_ext | |
10775 | cat >>conftest.$ac_ext <<_ACEOF | |
10776 | /* end confdefs.h. */ | |
d34a2b1d | 10777 | $ac_includes_default |
5464f5a1 NN |
10778 | int |
10779 | main () | |
10780 | { | |
d34a2b1d JG |
10781 | #ifndef getenv |
10782 | char *p = (char *) getenv; | |
10783 | #endif | |
10784 | ||
5464f5a1 NN |
10785 | ; |
10786 | return 0; | |
10787 | } | |
10788 | _ACEOF | |
10789 | rm -f conftest.$ac_objext | |
10790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10791 | (eval $ac_compile) 2>conftest.er1 | |
10792 | ac_status=$? | |
10793 | grep -v '^ *+' conftest.er1 >conftest.err | |
10794 | rm -f conftest.er1 | |
10795 | cat conftest.err >&5 | |
10796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10797 | (exit $ac_status); } && | |
6ec7057a | 10798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10800 | (eval $ac_try) 2>&5 | |
10801 | ac_status=$? | |
10802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10803 | (exit $ac_status); }; } && | |
10804 | { ac_try='test -s conftest.$ac_objext' | |
10805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10806 | (eval $ac_try) 2>&5 | |
10807 | ac_status=$? | |
10808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10809 | (exit $ac_status); }; }; then | |
d34a2b1d | 10810 | ac_cv_have_decl_getenv=yes |
252b5132 | 10811 | else |
5464f5a1 NN |
10812 | echo "$as_me: failed program was:" >&5 |
10813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10814 | ||
d34a2b1d | 10815 | ac_cv_have_decl_getenv=no |
252b5132 | 10816 | fi |
5464f5a1 | 10817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10818 | fi |
d34a2b1d JG |
10819 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 |
10820 | echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 | |
10821 | if test $ac_cv_have_decl_getenv = yes; then | |
252b5132 | 10822 | |
d34a2b1d JG |
10823 | cat >>confdefs.h <<_ACEOF |
10824 | #define HAVE_DECL_GETENV 1 | |
10825 | _ACEOF | |
5464f5a1 | 10826 | |
d34a2b1d JG |
10827 | |
10828 | else | |
10829 | cat >>confdefs.h <<_ACEOF | |
10830 | #define HAVE_DECL_GETENV 0 | |
5464f5a1 | 10831 | _ACEOF |
252b5132 | 10832 | |
d34a2b1d | 10833 | |
252b5132 RH |
10834 | fi |
10835 | ||
d34a2b1d JG |
10836 | |
10837 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 | |
10838 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
10839 | if test "${ac_cv_have_decl_malloc+set}" = set; then | |
5464f5a1 | 10840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10841 | else |
5464f5a1 NN |
10842 | cat >conftest.$ac_ext <<_ACEOF |
10843 | /* confdefs.h. */ | |
10844 | _ACEOF | |
10845 | cat confdefs.h >>conftest.$ac_ext | |
10846 | cat >>conftest.$ac_ext <<_ACEOF | |
10847 | /* end confdefs.h. */ | |
d34a2b1d | 10848 | $ac_includes_default |
5464f5a1 NN |
10849 | int |
10850 | main () | |
10851 | { | |
d34a2b1d JG |
10852 | #ifndef malloc |
10853 | char *p = (char *) malloc; | |
10854 | #endif | |
10855 | ||
5464f5a1 NN |
10856 | ; |
10857 | return 0; | |
10858 | } | |
10859 | _ACEOF | |
10860 | rm -f conftest.$ac_objext | |
10861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10862 | (eval $ac_compile) 2>conftest.er1 | |
10863 | ac_status=$? | |
10864 | grep -v '^ *+' conftest.er1 >conftest.err | |
10865 | rm -f conftest.er1 | |
10866 | cat conftest.err >&5 | |
10867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10868 | (exit $ac_status); } && | |
6ec7057a | 10869 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10871 | (eval $ac_try) 2>&5 | |
10872 | ac_status=$? | |
10873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10874 | (exit $ac_status); }; } && | |
10875 | { ac_try='test -s conftest.$ac_objext' | |
10876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10877 | (eval $ac_try) 2>&5 | |
10878 | ac_status=$? | |
10879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10880 | (exit $ac_status); }; }; then | |
d34a2b1d | 10881 | ac_cv_have_decl_malloc=yes |
252b5132 | 10882 | else |
5464f5a1 NN |
10883 | echo "$as_me: failed program was:" >&5 |
10884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10885 | ||
d34a2b1d | 10886 | ac_cv_have_decl_malloc=no |
252b5132 | 10887 | fi |
5464f5a1 | 10888 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10889 | fi |
d34a2b1d JG |
10890 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
10891 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
10892 | if test $ac_cv_have_decl_malloc = yes; then | |
252b5132 | 10893 | |
d34a2b1d JG |
10894 | cat >>confdefs.h <<_ACEOF |
10895 | #define HAVE_DECL_MALLOC 1 | |
10896 | _ACEOF | |
5464f5a1 | 10897 | |
d34a2b1d JG |
10898 | |
10899 | else | |
10900 | cat >>confdefs.h <<_ACEOF | |
10901 | #define HAVE_DECL_MALLOC 0 | |
5464f5a1 | 10902 | _ACEOF |
252b5132 | 10903 | |
d34a2b1d | 10904 | |
252b5132 RH |
10905 | fi |
10906 | ||
d34a2b1d JG |
10907 | |
10908 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 | |
10909 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
10910 | if test "${ac_cv_have_decl_realloc+set}" = set; then | |
5464f5a1 | 10911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10912 | else |
5464f5a1 NN |
10913 | cat >conftest.$ac_ext <<_ACEOF |
10914 | /* confdefs.h. */ | |
10915 | _ACEOF | |
10916 | cat confdefs.h >>conftest.$ac_ext | |
10917 | cat >>conftest.$ac_ext <<_ACEOF | |
10918 | /* end confdefs.h. */ | |
d34a2b1d | 10919 | $ac_includes_default |
5464f5a1 NN |
10920 | int |
10921 | main () | |
10922 | { | |
d34a2b1d JG |
10923 | #ifndef realloc |
10924 | char *p = (char *) realloc; | |
10925 | #endif | |
10926 | ||
5464f5a1 NN |
10927 | ; |
10928 | return 0; | |
10929 | } | |
10930 | _ACEOF | |
10931 | rm -f conftest.$ac_objext | |
10932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10933 | (eval $ac_compile) 2>conftest.er1 | |
10934 | ac_status=$? | |
10935 | grep -v '^ *+' conftest.er1 >conftest.err | |
10936 | rm -f conftest.er1 | |
10937 | cat conftest.err >&5 | |
10938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10939 | (exit $ac_status); } && | |
6ec7057a | 10940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10942 | (eval $ac_try) 2>&5 | |
10943 | ac_status=$? | |
10944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10945 | (exit $ac_status); }; } && | |
10946 | { ac_try='test -s conftest.$ac_objext' | |
10947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10948 | (eval $ac_try) 2>&5 | |
10949 | ac_status=$? | |
10950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10951 | (exit $ac_status); }; }; then | |
d34a2b1d | 10952 | ac_cv_have_decl_realloc=yes |
252b5132 | 10953 | else |
5464f5a1 NN |
10954 | echo "$as_me: failed program was:" >&5 |
10955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10956 | ||
d34a2b1d | 10957 | ac_cv_have_decl_realloc=no |
252b5132 | 10958 | fi |
5464f5a1 | 10959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10960 | fi |
d34a2b1d JG |
10961 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
10962 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
10963 | if test $ac_cv_have_decl_realloc = yes; then | |
10964 | ||
10965 | cat >>confdefs.h <<_ACEOF | |
10966 | #define HAVE_DECL_REALLOC 1 | |
10967 | _ACEOF | |
252b5132 | 10968 | |
5464f5a1 | 10969 | |
d34a2b1d JG |
10970 | else |
10971 | cat >>confdefs.h <<_ACEOF | |
10972 | #define HAVE_DECL_REALLOC 0 | |
efa9bda4 AL |
10973 | _ACEOF |
10974 | ||
d34a2b1d | 10975 | |
efa9bda4 AL |
10976 | fi |
10977 | ||
d34a2b1d | 10978 | |
be5cacdb L |
10979 | echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5 |
10980 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 | |
10981 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then | |
10982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10983 | else | |
10984 | cat >conftest.$ac_ext <<_ACEOF | |
10985 | /* confdefs.h. */ | |
10986 | _ACEOF | |
10987 | cat confdefs.h >>conftest.$ac_ext | |
10988 | cat >>conftest.$ac_ext <<_ACEOF | |
10989 | /* end confdefs.h. */ | |
10990 | $ac_includes_default | |
10991 | int | |
10992 | main () | |
10993 | { | |
10994 | #ifndef stpcpy | |
10995 | char *p = (char *) stpcpy; | |
10996 | #endif | |
10997 | ||
10998 | ; | |
10999 | return 0; | |
11000 | } | |
11001 | _ACEOF | |
11002 | rm -f conftest.$ac_objext | |
11003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11004 | (eval $ac_compile) 2>conftest.er1 | |
11005 | ac_status=$? | |
11006 | grep -v '^ *+' conftest.er1 >conftest.err | |
11007 | rm -f conftest.er1 | |
11008 | cat conftest.err >&5 | |
11009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11010 | (exit $ac_status); } && | |
6ec7057a | 11011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
be5cacdb L |
11012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11013 | (eval $ac_try) 2>&5 | |
11014 | ac_status=$? | |
11015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11016 | (exit $ac_status); }; } && | |
11017 | { ac_try='test -s conftest.$ac_objext' | |
11018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11019 | (eval $ac_try) 2>&5 | |
11020 | ac_status=$? | |
11021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11022 | (exit $ac_status); }; }; then | |
11023 | ac_cv_have_decl_stpcpy=yes | |
11024 | else | |
11025 | echo "$as_me: failed program was:" >&5 | |
11026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11027 | ||
11028 | ac_cv_have_decl_stpcpy=no | |
11029 | fi | |
11030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11031 | fi | |
11032 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5 | |
11033 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 | |
11034 | if test $ac_cv_have_decl_stpcpy = yes; then | |
11035 | ||
11036 | cat >>confdefs.h <<_ACEOF | |
11037 | #define HAVE_DECL_STPCPY 1 | |
11038 | _ACEOF | |
11039 | ||
11040 | ||
11041 | else | |
11042 | cat >>confdefs.h <<_ACEOF | |
11043 | #define HAVE_DECL_STPCPY 0 | |
11044 | _ACEOF | |
11045 | ||
11046 | ||
11047 | fi | |
11048 | ||
11049 | ||
d34a2b1d JG |
11050 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
11051 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
11052 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
efa9bda4 AL |
11053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11054 | else | |
11055 | cat >conftest.$ac_ext <<_ACEOF | |
11056 | /* confdefs.h. */ | |
11057 | _ACEOF | |
11058 | cat confdefs.h >>conftest.$ac_ext | |
11059 | cat >>conftest.$ac_ext <<_ACEOF | |
11060 | /* end confdefs.h. */ | |
d34a2b1d | 11061 | $ac_includes_default |
efa9bda4 AL |
11062 | int |
11063 | main () | |
11064 | { | |
d34a2b1d JG |
11065 | #ifndef strstr |
11066 | char *p = (char *) strstr; | |
11067 | #endif | |
11068 | ||
efa9bda4 AL |
11069 | ; |
11070 | return 0; | |
11071 | } | |
11072 | _ACEOF | |
11073 | rm -f conftest.$ac_objext | |
11074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11075 | (eval $ac_compile) 2>conftest.er1 | |
11076 | ac_status=$? | |
11077 | grep -v '^ *+' conftest.er1 >conftest.err | |
11078 | rm -f conftest.er1 | |
11079 | cat conftest.err >&5 | |
11080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11081 | (exit $ac_status); } && | |
6ec7057a | 11082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
efa9bda4 AL |
11083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11084 | (eval $ac_try) 2>&5 | |
11085 | ac_status=$? | |
11086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11087 | (exit $ac_status); }; } && | |
11088 | { ac_try='test -s conftest.$ac_objext' | |
11089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11090 | (eval $ac_try) 2>&5 | |
11091 | ac_status=$? | |
11092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11093 | (exit $ac_status); }; }; then | |
d34a2b1d | 11094 | ac_cv_have_decl_strstr=yes |
efa9bda4 AL |
11095 | else |
11096 | echo "$as_me: failed program was:" >&5 | |
11097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11098 | ||
d34a2b1d | 11099 | ac_cv_have_decl_strstr=no |
efa9bda4 AL |
11100 | fi |
11101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11102 | fi | |
d34a2b1d JG |
11103 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
11104 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
11105 | if test $ac_cv_have_decl_strstr = yes; then | |
efa9bda4 | 11106 | |
d34a2b1d JG |
11107 | cat >>confdefs.h <<_ACEOF |
11108 | #define HAVE_DECL_STRSTR 1 | |
11109 | _ACEOF | |
efa9bda4 | 11110 | |
d34a2b1d JG |
11111 | |
11112 | else | |
11113 | cat >>confdefs.h <<_ACEOF | |
11114 | #define HAVE_DECL_STRSTR 0 | |
5464f5a1 | 11115 | _ACEOF |
252b5132 | 11116 | |
d34a2b1d | 11117 | |
252b5132 RH |
11118 | fi |
11119 | ||
6be7c12c | 11120 | |
36527912 AJ |
11121 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
11122 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
11123 | if test "${ac_cv_have_decl_snprintf+set}" = set; then | |
11124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11125 | else | |
11126 | cat >conftest.$ac_ext <<_ACEOF | |
11127 | /* confdefs.h. */ | |
11128 | _ACEOF | |
11129 | cat confdefs.h >>conftest.$ac_ext | |
11130 | cat >>conftest.$ac_ext <<_ACEOF | |
11131 | /* end confdefs.h. */ | |
11132 | $ac_includes_default | |
11133 | int | |
11134 | main () | |
11135 | { | |
11136 | #ifndef snprintf | |
11137 | char *p = (char *) snprintf; | |
11138 | #endif | |
11139 | ||
11140 | ; | |
11141 | return 0; | |
11142 | } | |
11143 | _ACEOF | |
11144 | rm -f conftest.$ac_objext | |
11145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11146 | (eval $ac_compile) 2>conftest.er1 | |
11147 | ac_status=$? | |
11148 | grep -v '^ *+' conftest.er1 >conftest.err | |
11149 | rm -f conftest.er1 | |
11150 | cat conftest.err >&5 | |
11151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11152 | (exit $ac_status); } && | |
6ec7057a | 11153 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
36527912 AJ |
11154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11155 | (eval $ac_try) 2>&5 | |
11156 | ac_status=$? | |
11157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11158 | (exit $ac_status); }; } && | |
11159 | { ac_try='test -s conftest.$ac_objext' | |
11160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11161 | (eval $ac_try) 2>&5 | |
11162 | ac_status=$? | |
11163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11164 | (exit $ac_status); }; }; then | |
11165 | ac_cv_have_decl_snprintf=yes | |
11166 | else | |
11167 | echo "$as_me: failed program was:" >&5 | |
11168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11169 | ||
11170 | ac_cv_have_decl_snprintf=no | |
11171 | fi | |
11172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11173 | fi | |
11174 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 | |
11175 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
11176 | if test $ac_cv_have_decl_snprintf = yes; then | |
11177 | ||
11178 | cat >>confdefs.h <<_ACEOF | |
11179 | #define HAVE_DECL_SNPRINTF 1 | |
11180 | _ACEOF | |
11181 | ||
11182 | ||
11183 | else | |
11184 | cat >>confdefs.h <<_ACEOF | |
11185 | #define HAVE_DECL_SNPRINTF 0 | |
11186 | _ACEOF | |
11187 | ||
11188 | ||
11189 | fi | |
11190 | ||
11191 | ||
11192 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 | |
11193 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
11194 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
11195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11196 | else | |
11197 | cat >conftest.$ac_ext <<_ACEOF | |
11198 | /* confdefs.h. */ | |
11199 | _ACEOF | |
11200 | cat confdefs.h >>conftest.$ac_ext | |
11201 | cat >>conftest.$ac_ext <<_ACEOF | |
11202 | /* end confdefs.h. */ | |
11203 | $ac_includes_default | |
11204 | int | |
11205 | main () | |
11206 | { | |
11207 | #ifndef vsnprintf | |
11208 | char *p = (char *) vsnprintf; | |
11209 | #endif | |
11210 | ||
11211 | ; | |
11212 | return 0; | |
11213 | } | |
11214 | _ACEOF | |
11215 | rm -f conftest.$ac_objext | |
11216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11217 | (eval $ac_compile) 2>conftest.er1 | |
11218 | ac_status=$? | |
11219 | grep -v '^ *+' conftest.er1 >conftest.err | |
11220 | rm -f conftest.er1 | |
11221 | cat conftest.err >&5 | |
11222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11223 | (exit $ac_status); } && | |
6ec7057a | 11224 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
36527912 AJ |
11225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11226 | (eval $ac_try) 2>&5 | |
11227 | ac_status=$? | |
11228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11229 | (exit $ac_status); }; } && | |
11230 | { ac_try='test -s conftest.$ac_objext' | |
11231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11232 | (eval $ac_try) 2>&5 | |
11233 | ac_status=$? | |
11234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11235 | (exit $ac_status); }; }; then | |
11236 | ac_cv_have_decl_vsnprintf=yes | |
11237 | else | |
11238 | echo "$as_me: failed program was:" >&5 | |
11239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11240 | ||
11241 | ac_cv_have_decl_vsnprintf=no | |
11242 | fi | |
11243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11244 | fi | |
11245 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
11246 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
11247 | if test $ac_cv_have_decl_vsnprintf = yes; then | |
11248 | ||
11249 | cat >>confdefs.h <<_ACEOF | |
11250 | #define HAVE_DECL_VSNPRINTF 1 | |
11251 | _ACEOF | |
11252 | ||
11253 | ||
11254 | else | |
11255 | cat >>confdefs.h <<_ACEOF | |
11256 | #define HAVE_DECL_VSNPRINTF 0 | |
11257 | _ACEOF | |
11258 | ||
11259 | ||
11260 | fi | |
11261 | ||
11262 | ||
d34a2b1d | 11263 | |
252b5132 RH |
11264 | # If we are configured native, pick a core file support file. |
11265 | COREFILE= | |
11266 | COREFLAG= | |
11267 | TRAD_HEADER= | |
11268 | if test "${target}" = "${host}"; then | |
11269 | case "${host}" in | |
13dfd2d0 | 11270 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) |
46d59bfa DB |
11271 | COREFILE='' |
11272 | ;; | |
ed84e695 | 11273 | alpha*-*-linux-*) |
252b5132 RH |
11274 | COREFILE=trad-core.lo |
11275 | TRAD_HEADER='"hosts/alphalinux.h"' | |
11276 | ;; | |
690cc98b NC |
11277 | alpha*-*-netbsd* | alpha*-*-openbsd*) |
11278 | COREFILE=netbsd-core.lo | |
11279 | ;; | |
252b5132 | 11280 | alpha*-*-*) COREFILE=osf-core.lo ;; |
13dfd2d0 NC |
11281 | arm-*-freebsd* | arm-*-kfreebsd*-gnu) |
11282 | COREFILE='' ;; | |
61d0bc33 | 11283 | arm-*-netbsd*) COREFILE=netbsd-core.lo ;; |
252b5132 RH |
11284 | arm-*-riscix) COREFILE=trad-core.lo ;; |
11285 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
11286 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
11287 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
11288 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
11289 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
eef0f186 MK |
11290 | hppa*-*-netbsd* | hppa*-*-openbsd*) |
11291 | COREFILE=netbsd-core.lo | |
11292 | ;; | |
11293 | ||
dc810e39 | 11294 | i370-*-*) |
5b93d8bb AM |
11295 | COREFILE=trad-core.lo |
11296 | TRAD_HEADER='"hosts/i370linux.h"' | |
11297 | ;; | |
11298 | ||
80c7c40a | 11299 | i[3-7]86-sequent-bsd*) |
5b93d8bb | 11300 | COREFILE=trad-core.lo |
252b5132 RH |
11301 | TRAD_HEADER='"hosts/symmetry.h"' |
11302 | ;; | |
80c7c40a NC |
11303 | i[3-7]86-sequent-sysv4*) ;; |
11304 | i[3-7]86-sequent-sysv*) | |
252b5132 RH |
11305 | COREFILE=trad-core.lo |
11306 | TRAD_HEADER='"hosts/symmetry.h"' | |
11307 | ;; | |
80c7c40a | 11308 | i[3-7]86-*-bsdi) |
7e3b3466 NC |
11309 | COREFILE= |
11310 | ;; | |
d2bef492 | 11311 | i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*) |
252b5132 RH |
11312 | COREFILE=trad-core.lo |
11313 | TRAD_HEADER='"hosts/i386bsd.h"' | |
11314 | ;; | |
13dfd2d0 | 11315 | i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu) |
d4af9775 DB |
11316 | COREFILE='' |
11317 | TRAD_HEADER='"hosts/i386bsd.h"' | |
11318 | ;; | |
4615568e | 11319 | i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) |
252b5132 RH |
11320 | COREFILE=netbsd-core.lo |
11321 | ;; | |
80c7c40a | 11322 | i[3-7]86-esix-sysv3*) |
252b5132 RH |
11323 | COREFILE=trad-core.lo |
11324 | TRAD_HEADER='"hosts/esix.h"' | |
11325 | ;; | |
80c7c40a | 11326 | i[3-7]86-*-sco3.2v5*) |
252b5132 RH |
11327 | COREFILE=sco5-core.lo |
11328 | ;; | |
80c7c40a | 11329 | i[3-7]86-*-sco* | i[3-7]86-*-isc*) |
252b5132 RH |
11330 | COREFILE=trad-core.lo |
11331 | TRAD_HEADER='"hosts/i386sco.h"' | |
11332 | ;; | |
80c7c40a | 11333 | i[3-7]86-*-mach3*) |
252b5132 RH |
11334 | COREFILE=trad-core.lo |
11335 | TRAD_HEADER='"hosts/i386mach3.h"' | |
11336 | ;; | |
ed84e695 | 11337 | i[3-7]86-*-linux-*) |
252b5132 RH |
11338 | COREFILE=trad-core.lo |
11339 | TRAD_HEADER='"hosts/i386linux.h"' | |
11340 | ;; | |
80c7c40a NC |
11341 | i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; |
11342 | i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; | |
252b5132 RH |
11343 | i860-*-mach3* | i860-*-osf1*) |
11344 | COREFILE=trad-core.lo | |
11345 | TRAD_HEADER='"hosts/i860mach3.h"' | |
11346 | ;; | |
252b5132 RH |
11347 | mips-*-netbsd* | mips*-*-openbsd*) |
11348 | COREFILE=netbsd-core.lo | |
11349 | ;; | |
11350 | mips-dec-*) | |
11351 | COREFILE=trad-core.lo | |
11352 | TRAD_HEADER='"hosts/decstation.h"' | |
11353 | ;; | |
11354 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; | |
11355 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
11356 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
252b5132 RH |
11357 | mips-*-sysv4*) ;; |
11358 | mips-*-sysv* | mips-*-riscos*) | |
11359 | COREFILE=trad-core.lo | |
11360 | TRAD_HEADER='"hosts/riscos.h"' | |
11361 | ;; | |
11362 | mips-sony-bsd*) | |
11363 | COREFILE=trad-core.lo | |
11364 | TRAD_HEADER='"hosts/news-mips.h"' | |
11365 | ;; | |
11366 | m68*-bull*-sysv*) | |
11367 | COREFILE=trad-core.lo | |
11368 | TRAD_HEADER='"hosts/dpx2.h"' | |
11369 | ;; | |
11370 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;; | |
11371 | m68*-hp-bsd*) | |
11372 | COREFILE=trad-core.lo | |
11373 | TRAD_HEADER='"hosts/hp300bsd.h"' | |
11374 | ;; | |
ed84e695 | 11375 | m68*-*-linux-*) |
252b5132 RH |
11376 | COREFILE=trad-core.lo |
11377 | TRAD_HEADER='"hosts/m68klinux.h"' | |
11378 | ;; | |
11379 | m68*-motorola-sysv*) | |
11380 | COREFILE=trad-core.lo | |
11381 | TRAD_HEADER='"hosts/delta68.h"' | |
11382 | ;; | |
11383 | m68*-sony-*) | |
11384 | COREFILE=trad-core.lo | |
11385 | TRAD_HEADER='"hosts/news.h"' | |
11386 | ;; | |
11387 | m68*-*-netbsd* | m68*-*-openbsd*) | |
11388 | COREFILE=netbsd-core.lo | |
11389 | ;; | |
11390 | m68*-apple-aux*) | |
11391 | COREFILE=trad-core.lo | |
11392 | TRAD_HEADER='"hosts/m68kaux.h"' | |
11393 | ;; | |
eb1e0e80 NC |
11394 | m88*-*-sysv4*) |
11395 | ;; | |
11396 | m88*-motorola-sysv*) | |
11397 | COREFILE=ptrace-core.lo | |
11398 | ;; | |
252b5132 RH |
11399 | m88*-*-mach3*) |
11400 | COREFILE=trad-core.lo | |
11401 | TRAD_HEADER='"hosts/m88kmach3.h"' | |
11402 | ;; | |
c6f8758f NC |
11403 | m88*-*-openbsd*) |
11404 | COREFILE=netbsd-core.lo | |
11405 | ;; | |
252b5132 RH |
11406 | ns32k-pc532-mach) |
11407 | COREFILE=trad-core.lo | |
11408 | TRAD_HEADER='"hosts/pc532mach.h"' | |
11409 | ;; | |
11410 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
11411 | COREFILE=netbsd-core.lo | |
11412 | ;; | |
eb1e0e80 NC |
11413 | rs6000-*-lynx*) |
11414 | COREFILE=lynx-core.lo | |
11415 | ;; | |
11416 | rs6000-*-aix5.* | powerpc-*-aix5.*) | |
11417 | COREFILE=rs6000-core.lo | |
11418 | COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" | |
11419 | ;; | |
83954261 | 11420 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) |
653f71ca KB |
11421 | COREFILE=rs6000-core.lo |
11422 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
83954261 AM |
11423 | # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE |
11424 | # have c_impl as a member of struct core_dumpx | |
5464f5a1 NN |
11425 | echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5 |
11426 | echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6 | |
11427 | cat >conftest.$ac_ext <<_ACEOF | |
11428 | /* confdefs.h. */ | |
11429 | _ACEOF | |
11430 | cat confdefs.h >>conftest.$ac_ext | |
11431 | cat >>conftest.$ac_ext <<_ACEOF | |
11432 | /* end confdefs.h. */ | |
83954261 | 11433 | #include <core.h> |
5464f5a1 NN |
11434 | int |
11435 | main () | |
11436 | { | |
83954261 | 11437 | struct core_dumpx c; c.c_impl = 0; |
5464f5a1 NN |
11438 | ; |
11439 | return 0; | |
11440 | } | |
11441 | _ACEOF | |
11442 | rm -f conftest.$ac_objext | |
11443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11444 | (eval $ac_compile) 2>conftest.er1 | |
11445 | ac_status=$? | |
11446 | grep -v '^ *+' conftest.er1 >conftest.err | |
11447 | rm -f conftest.er1 | |
11448 | cat conftest.err >&5 | |
11449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11450 | (exit $ac_status); } && | |
6ec7057a | 11451 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11453 | (eval $ac_try) 2>&5 | |
11454 | ac_status=$? | |
11455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11456 | (exit $ac_status); }; } && | |
11457 | { ac_try='test -s conftest.$ac_objext' | |
11458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11459 | (eval $ac_try) 2>&5 | |
11460 | ac_status=$? | |
11461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11462 | (exit $ac_status); }; }; then | |
11463 | ||
11464 | cat >>confdefs.h <<\_ACEOF | |
83954261 | 11465 | #define HAVE_ST_C_IMPL 1 |
5464f5a1 | 11466 | _ACEOF |
83954261 | 11467 | |
5464f5a1 NN |
11468 | echo "$as_me:$LINENO: result: yes" >&5 |
11469 | echo "${ECHO_T}yes" >&6 | |
83954261 | 11470 | else |
5464f5a1 NN |
11471 | echo "$as_me: failed program was:" >&5 |
11472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11473 | ||
11474 | echo "$as_me:$LINENO: result: no" >&5 | |
11475 | echo "${ECHO_T}no" >&6 | |
83954261 | 11476 | fi |
5464f5a1 | 11477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
653f71ca | 11478 | ;; |
252b5132 RH |
11479 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; |
11480 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
252b5132 RH |
11481 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; |
11482 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
11483 | powerpc-*-beos*) ;; | |
13dfd2d0 NC |
11484 | powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) |
11485 | COREFILE='' ;; | |
252b5132 | 11486 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; |
d4af9775 | 11487 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; |
dc810e39 | 11488 | s390*-*-*) COREFILE=trad-core.lo ;; |
8d05742f | 11489 | sh*-*-netbsd*) COREFILE=netbsd-core.lo ;; |
a9bf1154 | 11490 | sparc-*-netbsd* | sparc*-*-openbsd*) |
252b5132 RH |
11491 | COREFILE=netbsd-core.lo |
11492 | ;; | |
11493 | tahoe-*-*) | |
11494 | COREFILE=trad-core.lo | |
11495 | TRAD_HEADER='"hosts/tahoe.h"' | |
11496 | ;; | |
de6e5e1a NC |
11497 | vax-*-netbsd* | vax-*-openbsd*) |
11498 | COREFILE=netbsd-core.lo | |
11499 | ;; | |
252b5132 RH |
11500 | vax-*-ultrix2*) |
11501 | COREFILE=trad-core.lo | |
11502 | TRAD_HEADER='"hosts/vaxult2.h"' | |
11503 | ;; | |
11504 | vax-*-ultrix*) | |
11505 | COREFILE=trad-core.lo | |
11506 | TRAD_HEADER='"hosts/vaxult2.h"' | |
11507 | ;; | |
ed84e695 | 11508 | vax-*-linux-*) |
f8fc3443 NC |
11509 | COREFILE=trad-core.lo |
11510 | TRAD_HEADER='"hosts/vaxlinux.h"' | |
11511 | ;; | |
252b5132 RH |
11512 | vax-*-*) |
11513 | COREFILE=trad-core.lo | |
11514 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
11515 | ;; | |
85cfd8d3 MK |
11516 | x86_64-*-netbsd* | x86_64-*-openbsd*) |
11517 | COREFILE=netbsd-core.lo | |
11518 | ;; | |
252b5132 RH |
11519 | esac |
11520 | ||
11521 | case "$COREFILE" in | |
11522 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
11523 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
11524 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
11525 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
11526 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
11527 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
11528 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
11529 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
11530 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
11531 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
11532 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
11533 | esac | |
11534 | ||
11535 | # ELF corefile support has several flavors, but all of | |
11536 | # them use something called <sys/procfs.h> | |
5464f5a1 NN |
11537 | |
11538 | for ac_header in sys/procfs.h | |
252b5132 | 11539 | do |
5464f5a1 NN |
11540 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11541 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11542 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11546 | fi | |
11547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11548 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11549 | else | |
11550 | # Is the header compilable? | |
11551 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11552 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11553 | cat >conftest.$ac_ext <<_ACEOF | |
11554 | /* confdefs.h. */ | |
11555 | _ACEOF | |
11556 | cat confdefs.h >>conftest.$ac_ext | |
11557 | cat >>conftest.$ac_ext <<_ACEOF | |
11558 | /* end confdefs.h. */ | |
11559 | $ac_includes_default | |
11560 | #include <$ac_header> | |
11561 | _ACEOF | |
11562 | rm -f conftest.$ac_objext | |
11563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11564 | (eval $ac_compile) 2>conftest.er1 | |
11565 | ac_status=$? | |
11566 | grep -v '^ *+' conftest.er1 >conftest.err | |
11567 | rm -f conftest.er1 | |
11568 | cat conftest.err >&5 | |
11569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11570 | (exit $ac_status); } && | |
6ec7057a | 11571 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11573 | (eval $ac_try) 2>&5 | |
11574 | ac_status=$? | |
11575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11576 | (exit $ac_status); }; } && | |
11577 | { ac_try='test -s conftest.$ac_objext' | |
11578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11579 | (eval $ac_try) 2>&5 | |
11580 | ac_status=$? | |
11581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11582 | (exit $ac_status); }; }; then | |
11583 | ac_header_compiler=yes | |
11584 | else | |
11585 | echo "$as_me: failed program was:" >&5 | |
11586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11587 | ||
11588 | ac_header_compiler=no | |
11589 | fi | |
11590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11591 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11592 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11593 | ||
11594 | # Is the header present? | |
11595 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11596 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11597 | cat >conftest.$ac_ext <<_ACEOF | |
11598 | /* confdefs.h. */ | |
11599 | _ACEOF | |
11600 | cat confdefs.h >>conftest.$ac_ext | |
11601 | cat >>conftest.$ac_ext <<_ACEOF | |
11602 | /* end confdefs.h. */ | |
11603 | #include <$ac_header> | |
11604 | _ACEOF | |
11605 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11606 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11607 | ac_status=$? | |
11608 | grep -v '^ *+' conftest.er1 >conftest.err | |
11609 | rm -f conftest.er1 | |
11610 | cat conftest.err >&5 | |
11611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11612 | (exit $ac_status); } >/dev/null; then | |
11613 | if test -s conftest.err; then | |
11614 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11615 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11616 | else | |
11617 | ac_cpp_err= | |
11618 | fi | |
252b5132 | 11619 | else |
5464f5a1 | 11620 | ac_cpp_err=yes |
252b5132 | 11621 | fi |
5464f5a1 NN |
11622 | if test -z "$ac_cpp_err"; then |
11623 | ac_header_preproc=yes | |
11624 | else | |
11625 | echo "$as_me: failed program was:" >&5 | |
11626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11627 | ||
11628 | ac_header_preproc=no | |
252b5132 | 11629 | fi |
5464f5a1 NN |
11630 | rm -f conftest.err conftest.$ac_ext |
11631 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11632 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11633 | ||
11634 | # So? What about this header? | |
11635 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11636 | yes:no: ) | |
11637 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11638 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11639 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11640 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11641 | ac_header_preproc=yes | |
11642 | ;; | |
11643 | no:yes:* ) | |
11644 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11645 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11646 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11647 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11648 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11649 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11650 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11651 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11652 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11653 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11654 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11655 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11656 | ( | |
11657 | cat <<\_ASBOX | |
11658 | ## ------------------------------------------ ## | |
11659 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11660 | ## ------------------------------------------ ## | |
11661 | _ASBOX | |
11662 | ) | | |
11663 | sed "s/^/$as_me: WARNING: /" >&2 | |
11664 | ;; | |
11665 | esac | |
11666 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11667 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11668 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 11670 | else |
5464f5a1 NN |
11671 | eval "$as_ac_Header=\$ac_header_preproc" |
11672 | fi | |
11673 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11674 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11675 | ||
252b5132 | 11676 | fi |
5464f5a1 NN |
11677 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11678 | cat >>confdefs.h <<_ACEOF | |
11679 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11680 | _ACEOF | |
11681 | ||
11682 | fi | |
11683 | ||
252b5132 RH |
11684 | done |
11685 | ||
11686 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
5464f5a1 NN |
11687 | echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5 |
11688 | echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
11689 | if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then | |
11690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11691 | else | |
11692 | cat >conftest.$ac_ext <<_ACEOF | |
11693 | /* confdefs.h. */ | |
11694 | _ACEOF | |
11695 | cat confdefs.h >>conftest.$ac_ext | |
11696 | cat >>conftest.$ac_ext <<_ACEOF | |
11697 | /* end confdefs.h. */ | |
7ee38065 MS |
11698 | |
11699 | #define _SYSCALL32 | |
252b5132 | 11700 | #include <sys/procfs.h> |
5464f5a1 NN |
11701 | int |
11702 | main () | |
11703 | { | |
252b5132 | 11704 | prstatus_t avar |
5464f5a1 NN |
11705 | ; |
11706 | return 0; | |
11707 | } | |
11708 | _ACEOF | |
11709 | rm -f conftest.$ac_objext | |
11710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11711 | (eval $ac_compile) 2>conftest.er1 | |
11712 | ac_status=$? | |
11713 | grep -v '^ *+' conftest.er1 >conftest.err | |
11714 | rm -f conftest.er1 | |
11715 | cat conftest.err >&5 | |
11716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11717 | (exit $ac_status); } && | |
6ec7057a | 11718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11720 | (eval $ac_try) 2>&5 | |
11721 | ac_status=$? | |
11722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11723 | (exit $ac_status); }; } && | |
11724 | { ac_try='test -s conftest.$ac_objext' | |
11725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11726 | (eval $ac_try) 2>&5 | |
11727 | ac_status=$? | |
11728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11729 | (exit $ac_status); }; }; then | |
252b5132 RH |
11730 | bfd_cv_have_sys_procfs_type_prstatus_t=yes |
11731 | else | |
5464f5a1 NN |
11732 | echo "$as_me: failed program was:" >&5 |
11733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11734 | ||
11735 | bfd_cv_have_sys_procfs_type_prstatus_t=no | |
11736 | ||
252b5132 | 11737 | fi |
5464f5a1 | 11738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11739 | fi |
11740 | ||
11741 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then | |
5464f5a1 NN |
11742 | |
11743 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11744 | #define HAVE_PRSTATUS_T 1 |
5464f5a1 | 11745 | _ACEOF |
252b5132 RH |
11746 | |
11747 | fi | |
5464f5a1 NN |
11748 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 |
11749 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6 | |
252b5132 | 11750 | |
5464f5a1 NN |
11751 | echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5 |
11752 | echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
11753 | if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then | |
11754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 11755 | else |
5464f5a1 NN |
11756 | cat >conftest.$ac_ext <<_ACEOF |
11757 | /* confdefs.h. */ | |
11758 | _ACEOF | |
11759 | cat confdefs.h >>conftest.$ac_ext | |
11760 | cat >>conftest.$ac_ext <<_ACEOF | |
11761 | /* end confdefs.h. */ | |
7ee38065 MS |
11762 | |
11763 | #define _SYSCALL32 | |
11764 | #include <sys/procfs.h> | |
5464f5a1 NN |
11765 | int |
11766 | main () | |
11767 | { | |
7ee38065 | 11768 | prstatus32_t avar |
5464f5a1 NN |
11769 | ; |
11770 | return 0; | |
11771 | } | |
11772 | _ACEOF | |
11773 | rm -f conftest.$ac_objext | |
11774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11775 | (eval $ac_compile) 2>conftest.er1 | |
11776 | ac_status=$? | |
11777 | grep -v '^ *+' conftest.er1 >conftest.err | |
11778 | rm -f conftest.er1 | |
11779 | cat conftest.err >&5 | |
11780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11781 | (exit $ac_status); } && | |
6ec7057a | 11782 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11784 | (eval $ac_try) 2>&5 | |
11785 | ac_status=$? | |
11786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11787 | (exit $ac_status); }; } && | |
11788 | { ac_try='test -s conftest.$ac_objext' | |
11789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11790 | (eval $ac_try) 2>&5 | |
11791 | ac_status=$? | |
11792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11793 | (exit $ac_status); }; }; then | |
7ee38065 MS |
11794 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes |
11795 | else | |
5464f5a1 NN |
11796 | echo "$as_me: failed program was:" >&5 |
11797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11798 | ||
11799 | bfd_cv_have_sys_procfs_type_prstatus32_t=no | |
11800 | ||
7ee38065 | 11801 | fi |
5464f5a1 | 11802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
11803 | fi |
11804 | ||
11805 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then | |
5464f5a1 NN |
11806 | |
11807 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 11808 | #define HAVE_PRSTATUS32_T 1 |
5464f5a1 | 11809 | _ACEOF |
7ee38065 MS |
11810 | |
11811 | fi | |
5464f5a1 NN |
11812 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 |
11813 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6 | |
7ee38065 | 11814 | |
5464f5a1 NN |
11815 | echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5 |
11816 | echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
11817 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then | |
11818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11819 | else |
5464f5a1 NN |
11820 | cat >conftest.$ac_ext <<_ACEOF |
11821 | /* confdefs.h. */ | |
11822 | _ACEOF | |
11823 | cat confdefs.h >>conftest.$ac_ext | |
11824 | cat >>conftest.$ac_ext <<_ACEOF | |
11825 | /* end confdefs.h. */ | |
7ee38065 MS |
11826 | |
11827 | #define _SYSCALL32 | |
252b5132 | 11828 | #include <sys/procfs.h> |
5464f5a1 NN |
11829 | int |
11830 | main () | |
11831 | { | |
252b5132 | 11832 | prstatus_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
11833 | ; |
11834 | return 0; | |
11835 | } | |
11836 | _ACEOF | |
11837 | rm -f conftest.$ac_objext | |
11838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11839 | (eval $ac_compile) 2>conftest.er1 | |
11840 | ac_status=$? | |
11841 | grep -v '^ *+' conftest.er1 >conftest.err | |
11842 | rm -f conftest.er1 | |
11843 | cat conftest.err >&5 | |
11844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11845 | (exit $ac_status); } && | |
6ec7057a | 11846 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11848 | (eval $ac_try) 2>&5 | |
11849 | ac_status=$? | |
11850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11851 | (exit $ac_status); }; } && | |
11852 | { ac_try='test -s conftest.$ac_objext' | |
11853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11854 | (eval $ac_try) 2>&5 | |
11855 | ac_status=$? | |
11856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11857 | (exit $ac_status); }; }; then | |
252b5132 RH |
11858 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes |
11859 | else | |
5464f5a1 NN |
11860 | echo "$as_me: failed program was:" >&5 |
11861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11862 | ||
11863 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no | |
11864 | ||
252b5132 | 11865 | fi |
5464f5a1 | 11866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11867 | fi |
11868 | ||
11869 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then | |
5464f5a1 NN |
11870 | |
11871 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11872 | #define HAVE_PRSTATUS_T_PR_WHO 1 |
5464f5a1 | 11873 | _ACEOF |
252b5132 RH |
11874 | |
11875 | fi | |
5464f5a1 NN |
11876 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 |
11877 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6 | |
252b5132 | 11878 | |
5464f5a1 NN |
11879 | echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 |
11880 | echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
11881 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then | |
11882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 11883 | else |
5464f5a1 NN |
11884 | cat >conftest.$ac_ext <<_ACEOF |
11885 | /* confdefs.h. */ | |
11886 | _ACEOF | |
11887 | cat confdefs.h >>conftest.$ac_ext | |
11888 | cat >>conftest.$ac_ext <<_ACEOF | |
11889 | /* end confdefs.h. */ | |
7ee38065 MS |
11890 | |
11891 | #define _SYSCALL32 | |
11892 | #include <sys/procfs.h> | |
5464f5a1 NN |
11893 | int |
11894 | main () | |
11895 | { | |
7ee38065 | 11896 | prstatus32_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
11897 | ; |
11898 | return 0; | |
11899 | } | |
11900 | _ACEOF | |
11901 | rm -f conftest.$ac_objext | |
11902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11903 | (eval $ac_compile) 2>conftest.er1 | |
11904 | ac_status=$? | |
11905 | grep -v '^ *+' conftest.er1 >conftest.err | |
11906 | rm -f conftest.er1 | |
11907 | cat conftest.err >&5 | |
11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11909 | (exit $ac_status); } && | |
6ec7057a | 11910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11912 | (eval $ac_try) 2>&5 | |
11913 | ac_status=$? | |
11914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11915 | (exit $ac_status); }; } && | |
11916 | { ac_try='test -s conftest.$ac_objext' | |
11917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11918 | (eval $ac_try) 2>&5 | |
11919 | ac_status=$? | |
11920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11921 | (exit $ac_status); }; }; then | |
7ee38065 MS |
11922 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes |
11923 | else | |
5464f5a1 NN |
11924 | echo "$as_me: failed program was:" >&5 |
11925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11926 | ||
11927 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no | |
11928 | ||
7ee38065 | 11929 | fi |
5464f5a1 | 11930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
11931 | fi |
11932 | ||
11933 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then | |
5464f5a1 NN |
11934 | |
11935 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 11936 | #define HAVE_PRSTATUS32_T_PR_WHO 1 |
5464f5a1 | 11937 | _ACEOF |
7ee38065 MS |
11938 | |
11939 | fi | |
5464f5a1 NN |
11940 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 |
11941 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6 | |
7ee38065 | 11942 | |
5464f5a1 NN |
11943 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
11944 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
11945 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then | |
11946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11947 | else |
5464f5a1 NN |
11948 | cat >conftest.$ac_ext <<_ACEOF |
11949 | /* confdefs.h. */ | |
11950 | _ACEOF | |
11951 | cat confdefs.h >>conftest.$ac_ext | |
11952 | cat >>conftest.$ac_ext <<_ACEOF | |
11953 | /* end confdefs.h. */ | |
7ee38065 MS |
11954 | |
11955 | #define _SYSCALL32 | |
252b5132 | 11956 | #include <sys/procfs.h> |
5464f5a1 NN |
11957 | int |
11958 | main () | |
11959 | { | |
252b5132 | 11960 | pstatus_t avar |
5464f5a1 NN |
11961 | ; |
11962 | return 0; | |
11963 | } | |
11964 | _ACEOF | |
11965 | rm -f conftest.$ac_objext | |
11966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11967 | (eval $ac_compile) 2>conftest.er1 | |
11968 | ac_status=$? | |
11969 | grep -v '^ *+' conftest.er1 >conftest.err | |
11970 | rm -f conftest.er1 | |
11971 | cat conftest.err >&5 | |
11972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11973 | (exit $ac_status); } && | |
6ec7057a | 11974 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11976 | (eval $ac_try) 2>&5 | |
11977 | ac_status=$? | |
11978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11979 | (exit $ac_status); }; } && | |
11980 | { ac_try='test -s conftest.$ac_objext' | |
11981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11982 | (eval $ac_try) 2>&5 | |
11983 | ac_status=$? | |
11984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11985 | (exit $ac_status); }; }; then | |
252b5132 RH |
11986 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
11987 | else | |
5464f5a1 NN |
11988 | echo "$as_me: failed program was:" >&5 |
11989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11990 | ||
11991 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
11992 | ||
252b5132 | 11993 | fi |
5464f5a1 | 11994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11995 | fi |
11996 | ||
11997 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then | |
5464f5a1 NN |
11998 | |
11999 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12000 | #define HAVE_PSTATUS_T 1 |
5464f5a1 | 12001 | _ACEOF |
252b5132 RH |
12002 | |
12003 | fi | |
5464f5a1 NN |
12004 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
12005 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
252b5132 | 12006 | |
5464f5a1 NN |
12007 | echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5 |
12008 | echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
12009 | if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then | |
12010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 12011 | else |
5464f5a1 NN |
12012 | cat >conftest.$ac_ext <<_ACEOF |
12013 | /* confdefs.h. */ | |
12014 | _ACEOF | |
12015 | cat confdefs.h >>conftest.$ac_ext | |
12016 | cat >>conftest.$ac_ext <<_ACEOF | |
12017 | /* end confdefs.h. */ | |
f572a39d AM |
12018 | |
12019 | #define _SYSCALL32 | |
12020 | #include <sys/procfs.h> | |
5464f5a1 NN |
12021 | int |
12022 | main () | |
12023 | { | |
f572a39d | 12024 | pxstatus_t avar |
5464f5a1 NN |
12025 | ; |
12026 | return 0; | |
12027 | } | |
12028 | _ACEOF | |
12029 | rm -f conftest.$ac_objext | |
12030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12031 | (eval $ac_compile) 2>conftest.er1 | |
12032 | ac_status=$? | |
12033 | grep -v '^ *+' conftest.er1 >conftest.err | |
12034 | rm -f conftest.er1 | |
12035 | cat conftest.err >&5 | |
12036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12037 | (exit $ac_status); } && | |
6ec7057a | 12038 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12040 | (eval $ac_try) 2>&5 | |
12041 | ac_status=$? | |
12042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12043 | (exit $ac_status); }; } && | |
12044 | { ac_try='test -s conftest.$ac_objext' | |
12045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12046 | (eval $ac_try) 2>&5 | |
12047 | ac_status=$? | |
12048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12049 | (exit $ac_status); }; }; then | |
f572a39d AM |
12050 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes |
12051 | else | |
5464f5a1 NN |
12052 | echo "$as_me: failed program was:" >&5 |
12053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12054 | ||
12055 | bfd_cv_have_sys_procfs_type_pxstatus_t=no | |
12056 | ||
f572a39d | 12057 | fi |
5464f5a1 | 12058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
12059 | fi |
12060 | ||
12061 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then | |
5464f5a1 NN |
12062 | |
12063 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 12064 | #define HAVE_PXSTATUS_T 1 |
5464f5a1 | 12065 | _ACEOF |
f572a39d AM |
12066 | |
12067 | fi | |
5464f5a1 NN |
12068 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 |
12069 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6 | |
f572a39d | 12070 | |
5464f5a1 NN |
12071 | echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5 |
12072 | echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
12073 | if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then | |
12074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 12075 | else |
5464f5a1 NN |
12076 | cat >conftest.$ac_ext <<_ACEOF |
12077 | /* confdefs.h. */ | |
12078 | _ACEOF | |
12079 | cat confdefs.h >>conftest.$ac_ext | |
12080 | cat >>conftest.$ac_ext <<_ACEOF | |
12081 | /* end confdefs.h. */ | |
7ee38065 MS |
12082 | |
12083 | #define _SYSCALL32 | |
12084 | #include <sys/procfs.h> | |
5464f5a1 NN |
12085 | int |
12086 | main () | |
12087 | { | |
7ee38065 | 12088 | pstatus32_t avar |
5464f5a1 NN |
12089 | ; |
12090 | return 0; | |
12091 | } | |
12092 | _ACEOF | |
12093 | rm -f conftest.$ac_objext | |
12094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12095 | (eval $ac_compile) 2>conftest.er1 | |
12096 | ac_status=$? | |
12097 | grep -v '^ *+' conftest.er1 >conftest.err | |
12098 | rm -f conftest.er1 | |
12099 | cat conftest.err >&5 | |
12100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12101 | (exit $ac_status); } && | |
6ec7057a | 12102 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12104 | (eval $ac_try) 2>&5 | |
12105 | ac_status=$? | |
12106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12107 | (exit $ac_status); }; } && | |
12108 | { ac_try='test -s conftest.$ac_objext' | |
12109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12110 | (eval $ac_try) 2>&5 | |
12111 | ac_status=$? | |
12112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12113 | (exit $ac_status); }; }; then | |
7ee38065 MS |
12114 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes |
12115 | else | |
5464f5a1 NN |
12116 | echo "$as_me: failed program was:" >&5 |
12117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12118 | ||
12119 | bfd_cv_have_sys_procfs_type_pstatus32_t=no | |
12120 | ||
7ee38065 | 12121 | fi |
5464f5a1 | 12122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
12123 | fi |
12124 | ||
12125 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then | |
5464f5a1 NN |
12126 | |
12127 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 12128 | #define HAVE_PSTATUS32_T 1 |
5464f5a1 | 12129 | _ACEOF |
7ee38065 MS |
12130 | |
12131 | fi | |
5464f5a1 NN |
12132 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 |
12133 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6 | |
7ee38065 | 12134 | |
5464f5a1 NN |
12135 | echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5 |
12136 | echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
12137 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then | |
12138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12139 | else |
5464f5a1 NN |
12140 | cat >conftest.$ac_ext <<_ACEOF |
12141 | /* confdefs.h. */ | |
12142 | _ACEOF | |
12143 | cat confdefs.h >>conftest.$ac_ext | |
12144 | cat >>conftest.$ac_ext <<_ACEOF | |
12145 | /* end confdefs.h. */ | |
7ee38065 MS |
12146 | |
12147 | #define _SYSCALL32 | |
252b5132 | 12148 | #include <sys/procfs.h> |
5464f5a1 NN |
12149 | int |
12150 | main () | |
12151 | { | |
252b5132 | 12152 | prpsinfo_t avar |
5464f5a1 NN |
12153 | ; |
12154 | return 0; | |
12155 | } | |
12156 | _ACEOF | |
12157 | rm -f conftest.$ac_objext | |
12158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12159 | (eval $ac_compile) 2>conftest.er1 | |
12160 | ac_status=$? | |
12161 | grep -v '^ *+' conftest.er1 >conftest.err | |
12162 | rm -f conftest.er1 | |
12163 | cat conftest.err >&5 | |
12164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12165 | (exit $ac_status); } && | |
6ec7057a | 12166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12168 | (eval $ac_try) 2>&5 | |
12169 | ac_status=$? | |
12170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12171 | (exit $ac_status); }; } && | |
12172 | { ac_try='test -s conftest.$ac_objext' | |
12173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12174 | (eval $ac_try) 2>&5 | |
12175 | ac_status=$? | |
12176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12177 | (exit $ac_status); }; }; then | |
252b5132 RH |
12178 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes |
12179 | else | |
5464f5a1 NN |
12180 | echo "$as_me: failed program was:" >&5 |
12181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12182 | ||
12183 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no | |
12184 | ||
252b5132 | 12185 | fi |
5464f5a1 | 12186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
12187 | fi |
12188 | ||
12189 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then | |
5464f5a1 NN |
12190 | |
12191 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12192 | #define HAVE_PRPSINFO_T 1 |
5464f5a1 | 12193 | _ACEOF |
252b5132 RH |
12194 | |
12195 | fi | |
5464f5a1 NN |
12196 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 |
12197 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6 | |
252b5132 | 12198 | |
5464f5a1 NN |
12199 | echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5 |
12200 | echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
12201 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then | |
12202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 12203 | else |
5464f5a1 NN |
12204 | cat >conftest.$ac_ext <<_ACEOF |
12205 | /* confdefs.h. */ | |
12206 | _ACEOF | |
12207 | cat confdefs.h >>conftest.$ac_ext | |
12208 | cat >>conftest.$ac_ext <<_ACEOF | |
12209 | /* end confdefs.h. */ | |
7ee38065 MS |
12210 | |
12211 | #define _SYSCALL32 | |
12212 | #include <sys/procfs.h> | |
5464f5a1 NN |
12213 | int |
12214 | main () | |
12215 | { | |
7ee38065 | 12216 | prpsinfo32_t avar |
5464f5a1 NN |
12217 | ; |
12218 | return 0; | |
12219 | } | |
12220 | _ACEOF | |
12221 | rm -f conftest.$ac_objext | |
12222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12223 | (eval $ac_compile) 2>conftest.er1 | |
12224 | ac_status=$? | |
12225 | grep -v '^ *+' conftest.er1 >conftest.err | |
12226 | rm -f conftest.er1 | |
12227 | cat conftest.err >&5 | |
12228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12229 | (exit $ac_status); } && | |
6ec7057a | 12230 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12232 | (eval $ac_try) 2>&5 | |
12233 | ac_status=$? | |
12234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12235 | (exit $ac_status); }; } && | |
12236 | { ac_try='test -s conftest.$ac_objext' | |
12237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12238 | (eval $ac_try) 2>&5 | |
12239 | ac_status=$? | |
12240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12241 | (exit $ac_status); }; }; then | |
7ee38065 MS |
12242 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes |
12243 | else | |
5464f5a1 NN |
12244 | echo "$as_me: failed program was:" >&5 |
12245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12246 | ||
12247 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no | |
12248 | ||
7ee38065 | 12249 | fi |
5464f5a1 | 12250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
12251 | fi |
12252 | ||
12253 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then | |
5464f5a1 NN |
12254 | |
12255 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 12256 | #define HAVE_PRPSINFO32_T 1 |
5464f5a1 | 12257 | _ACEOF |
7ee38065 MS |
12258 | |
12259 | fi | |
5464f5a1 NN |
12260 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 |
12261 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6 | |
7ee38065 | 12262 | |
5464f5a1 NN |
12263 | echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5 |
12264 | echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
12265 | if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then | |
12266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12267 | else |
5464f5a1 NN |
12268 | cat >conftest.$ac_ext <<_ACEOF |
12269 | /* confdefs.h. */ | |
12270 | _ACEOF | |
12271 | cat confdefs.h >>conftest.$ac_ext | |
12272 | cat >>conftest.$ac_ext <<_ACEOF | |
12273 | /* end confdefs.h. */ | |
7ee38065 MS |
12274 | |
12275 | #define _SYSCALL32 | |
252b5132 | 12276 | #include <sys/procfs.h> |
5464f5a1 NN |
12277 | int |
12278 | main () | |
12279 | { | |
252b5132 | 12280 | psinfo_t avar |
5464f5a1 NN |
12281 | ; |
12282 | return 0; | |
12283 | } | |
12284 | _ACEOF | |
12285 | rm -f conftest.$ac_objext | |
12286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12287 | (eval $ac_compile) 2>conftest.er1 | |
12288 | ac_status=$? | |
12289 | grep -v '^ *+' conftest.er1 >conftest.err | |
12290 | rm -f conftest.er1 | |
12291 | cat conftest.err >&5 | |
12292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12293 | (exit $ac_status); } && | |
6ec7057a | 12294 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12296 | (eval $ac_try) 2>&5 | |
12297 | ac_status=$? | |
12298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12299 | (exit $ac_status); }; } && | |
12300 | { ac_try='test -s conftest.$ac_objext' | |
12301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12302 | (eval $ac_try) 2>&5 | |
12303 | ac_status=$? | |
12304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12305 | (exit $ac_status); }; }; then | |
252b5132 RH |
12306 | bfd_cv_have_sys_procfs_type_psinfo_t=yes |
12307 | else | |
5464f5a1 NN |
12308 | echo "$as_me: failed program was:" >&5 |
12309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12310 | ||
12311 | bfd_cv_have_sys_procfs_type_psinfo_t=no | |
12312 | ||
252b5132 | 12313 | fi |
5464f5a1 | 12314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
12315 | fi |
12316 | ||
12317 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then | |
5464f5a1 NN |
12318 | |
12319 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12320 | #define HAVE_PSINFO_T 1 |
5464f5a1 | 12321 | _ACEOF |
252b5132 RH |
12322 | |
12323 | fi | |
5464f5a1 NN |
12324 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 |
12325 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6 | |
252b5132 | 12326 | |
5464f5a1 NN |
12327 | echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5 |
12328 | echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
12329 | if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then | |
12330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 12331 | else |
5464f5a1 NN |
12332 | cat >conftest.$ac_ext <<_ACEOF |
12333 | /* confdefs.h. */ | |
12334 | _ACEOF | |
12335 | cat confdefs.h >>conftest.$ac_ext | |
12336 | cat >>conftest.$ac_ext <<_ACEOF | |
12337 | /* end confdefs.h. */ | |
7ee38065 MS |
12338 | |
12339 | #define _SYSCALL32 | |
12340 | #include <sys/procfs.h> | |
5464f5a1 NN |
12341 | int |
12342 | main () | |
12343 | { | |
7ee38065 | 12344 | psinfo32_t avar |
5464f5a1 NN |
12345 | ; |
12346 | return 0; | |
12347 | } | |
12348 | _ACEOF | |
12349 | rm -f conftest.$ac_objext | |
12350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12351 | (eval $ac_compile) 2>conftest.er1 | |
12352 | ac_status=$? | |
12353 | grep -v '^ *+' conftest.er1 >conftest.err | |
12354 | rm -f conftest.er1 | |
12355 | cat conftest.err >&5 | |
12356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12357 | (exit $ac_status); } && | |
6ec7057a | 12358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12360 | (eval $ac_try) 2>&5 | |
12361 | ac_status=$? | |
12362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12363 | (exit $ac_status); }; } && | |
12364 | { ac_try='test -s conftest.$ac_objext' | |
12365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12366 | (eval $ac_try) 2>&5 | |
12367 | ac_status=$? | |
12368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12369 | (exit $ac_status); }; }; then | |
7ee38065 MS |
12370 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes |
12371 | else | |
5464f5a1 NN |
12372 | echo "$as_me: failed program was:" >&5 |
12373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12374 | ||
12375 | bfd_cv_have_sys_procfs_type_psinfo32_t=no | |
12376 | ||
7ee38065 | 12377 | fi |
5464f5a1 | 12378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
12379 | fi |
12380 | ||
12381 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then | |
5464f5a1 NN |
12382 | |
12383 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 12384 | #define HAVE_PSINFO32_T 1 |
5464f5a1 | 12385 | _ACEOF |
7ee38065 MS |
12386 | |
12387 | fi | |
5464f5a1 NN |
12388 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 |
12389 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6 | |
7ee38065 | 12390 | |
5464f5a1 NN |
12391 | echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5 |
12392 | echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
12393 | if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then | |
12394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12395 | else |
5464f5a1 NN |
12396 | cat >conftest.$ac_ext <<_ACEOF |
12397 | /* confdefs.h. */ | |
12398 | _ACEOF | |
12399 | cat confdefs.h >>conftest.$ac_ext | |
12400 | cat >>conftest.$ac_ext <<_ACEOF | |
12401 | /* end confdefs.h. */ | |
7ee38065 MS |
12402 | |
12403 | #define _SYSCALL32 | |
252b5132 | 12404 | #include <sys/procfs.h> |
5464f5a1 NN |
12405 | int |
12406 | main () | |
12407 | { | |
252b5132 | 12408 | lwpstatus_t avar |
5464f5a1 NN |
12409 | ; |
12410 | return 0; | |
12411 | } | |
12412 | _ACEOF | |
12413 | rm -f conftest.$ac_objext | |
12414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12415 | (eval $ac_compile) 2>conftest.er1 | |
12416 | ac_status=$? | |
12417 | grep -v '^ *+' conftest.er1 >conftest.err | |
12418 | rm -f conftest.er1 | |
12419 | cat conftest.err >&5 | |
12420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12421 | (exit $ac_status); } && | |
6ec7057a | 12422 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12424 | (eval $ac_try) 2>&5 | |
12425 | ac_status=$? | |
12426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12427 | (exit $ac_status); }; } && | |
12428 | { ac_try='test -s conftest.$ac_objext' | |
12429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12430 | (eval $ac_try) 2>&5 | |
12431 | ac_status=$? | |
12432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12433 | (exit $ac_status); }; }; then | |
252b5132 RH |
12434 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes |
12435 | else | |
5464f5a1 NN |
12436 | echo "$as_me: failed program was:" >&5 |
12437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12438 | ||
12439 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no | |
12440 | ||
252b5132 | 12441 | fi |
5464f5a1 | 12442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
12443 | fi |
12444 | ||
12445 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then | |
5464f5a1 NN |
12446 | |
12447 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12448 | #define HAVE_LWPSTATUS_T 1 |
5464f5a1 | 12449 | _ACEOF |
252b5132 RH |
12450 | |
12451 | fi | |
5464f5a1 NN |
12452 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 |
12453 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6 | |
252b5132 | 12454 | |
5464f5a1 NN |
12455 | echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5 |
12456 | echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
12457 | if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then | |
12458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 12459 | else |
5464f5a1 NN |
12460 | cat >conftest.$ac_ext <<_ACEOF |
12461 | /* confdefs.h. */ | |
12462 | _ACEOF | |
12463 | cat confdefs.h >>conftest.$ac_ext | |
12464 | cat >>conftest.$ac_ext <<_ACEOF | |
12465 | /* end confdefs.h. */ | |
f572a39d AM |
12466 | |
12467 | #define _SYSCALL32 | |
12468 | #include <sys/procfs.h> | |
5464f5a1 NN |
12469 | int |
12470 | main () | |
12471 | { | |
f572a39d | 12472 | lwpxstatus_t avar |
5464f5a1 NN |
12473 | ; |
12474 | return 0; | |
12475 | } | |
12476 | _ACEOF | |
12477 | rm -f conftest.$ac_objext | |
12478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12479 | (eval $ac_compile) 2>conftest.er1 | |
12480 | ac_status=$? | |
12481 | grep -v '^ *+' conftest.er1 >conftest.err | |
12482 | rm -f conftest.er1 | |
12483 | cat conftest.err >&5 | |
12484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12485 | (exit $ac_status); } && | |
6ec7057a | 12486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12488 | (eval $ac_try) 2>&5 | |
12489 | ac_status=$? | |
12490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12491 | (exit $ac_status); }; } && | |
12492 | { ac_try='test -s conftest.$ac_objext' | |
12493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12494 | (eval $ac_try) 2>&5 | |
12495 | ac_status=$? | |
12496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12497 | (exit $ac_status); }; }; then | |
f572a39d AM |
12498 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes |
12499 | else | |
5464f5a1 NN |
12500 | echo "$as_me: failed program was:" >&5 |
12501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12502 | ||
12503 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no | |
12504 | ||
f572a39d | 12505 | fi |
5464f5a1 | 12506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
12507 | fi |
12508 | ||
12509 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then | |
5464f5a1 NN |
12510 | |
12511 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 12512 | #define HAVE_LWPXSTATUS_T 1 |
5464f5a1 | 12513 | _ACEOF |
f572a39d AM |
12514 | |
12515 | fi | |
5464f5a1 NN |
12516 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 |
12517 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6 | |
f572a39d | 12518 | |
5464f5a1 NN |
12519 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 |
12520 | echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6 | |
12521 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then | |
12522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12523 | else |
5464f5a1 NN |
12524 | cat >conftest.$ac_ext <<_ACEOF |
12525 | /* confdefs.h. */ | |
12526 | _ACEOF | |
12527 | cat confdefs.h >>conftest.$ac_ext | |
12528 | cat >>conftest.$ac_ext <<_ACEOF | |
12529 | /* end confdefs.h. */ | |
7ee38065 MS |
12530 | |
12531 | #define _SYSCALL32 | |
252b5132 | 12532 | #include <sys/procfs.h> |
5464f5a1 NN |
12533 | int |
12534 | main () | |
12535 | { | |
252b5132 | 12536 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context |
5464f5a1 NN |
12537 | ; |
12538 | return 0; | |
12539 | } | |
12540 | _ACEOF | |
12541 | rm -f conftest.$ac_objext | |
12542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12543 | (eval $ac_compile) 2>conftest.er1 | |
12544 | ac_status=$? | |
12545 | grep -v '^ *+' conftest.er1 >conftest.err | |
12546 | rm -f conftest.er1 | |
12547 | cat conftest.err >&5 | |
12548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12549 | (exit $ac_status); } && | |
6ec7057a | 12550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12552 | (eval $ac_try) 2>&5 | |
12553 | ac_status=$? | |
12554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12555 | (exit $ac_status); }; } && | |
12556 | { ac_try='test -s conftest.$ac_objext' | |
12557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12558 | (eval $ac_try) 2>&5 | |
12559 | ac_status=$? | |
12560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12561 | (exit $ac_status); }; }; then | |
252b5132 RH |
12562 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes |
12563 | else | |
5464f5a1 NN |
12564 | echo "$as_me: failed program was:" >&5 |
12565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12566 | ||
12567 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no | |
12568 | ||
252b5132 | 12569 | fi |
5464f5a1 | 12570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
12571 | fi |
12572 | ||
12573 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then | |
5464f5a1 NN |
12574 | |
12575 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12576 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1 |
5464f5a1 | 12577 | _ACEOF |
252b5132 RH |
12578 | |
12579 | fi | |
5464f5a1 NN |
12580 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 |
12581 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6 | |
252b5132 | 12582 | |
5464f5a1 NN |
12583 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 |
12584 | echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6 | |
12585 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then | |
12586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12587 | else |
5464f5a1 NN |
12588 | cat >conftest.$ac_ext <<_ACEOF |
12589 | /* confdefs.h. */ | |
12590 | _ACEOF | |
12591 | cat confdefs.h >>conftest.$ac_ext | |
12592 | cat >>conftest.$ac_ext <<_ACEOF | |
12593 | /* end confdefs.h. */ | |
7ee38065 MS |
12594 | |
12595 | #define _SYSCALL32 | |
252b5132 | 12596 | #include <sys/procfs.h> |
5464f5a1 NN |
12597 | int |
12598 | main () | |
12599 | { | |
252b5132 | 12600 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg |
5464f5a1 NN |
12601 | ; |
12602 | return 0; | |
12603 | } | |
12604 | _ACEOF | |
12605 | rm -f conftest.$ac_objext | |
12606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12607 | (eval $ac_compile) 2>conftest.er1 | |
12608 | ac_status=$? | |
12609 | grep -v '^ *+' conftest.er1 >conftest.err | |
12610 | rm -f conftest.er1 | |
12611 | cat conftest.err >&5 | |
12612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12613 | (exit $ac_status); } && | |
6ec7057a | 12614 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12616 | (eval $ac_try) 2>&5 | |
12617 | ac_status=$? | |
12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12619 | (exit $ac_status); }; } && | |
12620 | { ac_try='test -s conftest.$ac_objext' | |
12621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12622 | (eval $ac_try) 2>&5 | |
12623 | ac_status=$? | |
12624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12625 | (exit $ac_status); }; }; then | |
252b5132 RH |
12626 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes |
12627 | else | |
5464f5a1 NN |
12628 | echo "$as_me: failed program was:" >&5 |
12629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12630 | ||
12631 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no | |
12632 | ||
252b5132 | 12633 | fi |
5464f5a1 | 12634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
12635 | fi |
12636 | ||
12637 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then | |
5464f5a1 NN |
12638 | |
12639 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12640 | #define HAVE_LWPSTATUS_T_PR_REG 1 |
5464f5a1 | 12641 | _ACEOF |
252b5132 RH |
12642 | |
12643 | fi | |
5464f5a1 NN |
12644 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 |
12645 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6 | |
252b5132 | 12646 | |
5464f5a1 NN |
12647 | echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5 |
12648 | echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
12649 | if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then | |
12650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e3c976c4 | 12651 | else |
5464f5a1 NN |
12652 | cat >conftest.$ac_ext <<_ACEOF |
12653 | /* confdefs.h. */ | |
12654 | _ACEOF | |
12655 | cat confdefs.h >>conftest.$ac_ext | |
12656 | cat >>conftest.$ac_ext <<_ACEOF | |
12657 | /* end confdefs.h. */ | |
7ee38065 MS |
12658 | |
12659 | #define _SYSCALL32 | |
e3c976c4 | 12660 | #include <sys/procfs.h> |
5464f5a1 NN |
12661 | int |
12662 | main () | |
12663 | { | |
e3c976c4 | 12664 | win32_pstatus_t avar |
5464f5a1 NN |
12665 | ; |
12666 | return 0; | |
12667 | } | |
12668 | _ACEOF | |
12669 | rm -f conftest.$ac_objext | |
12670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12671 | (eval $ac_compile) 2>conftest.er1 | |
12672 | ac_status=$? | |
12673 | grep -v '^ *+' conftest.er1 >conftest.err | |
12674 | rm -f conftest.er1 | |
12675 | cat conftest.err >&5 | |
12676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12677 | (exit $ac_status); } && | |
6ec7057a | 12678 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12680 | (eval $ac_try) 2>&5 | |
12681 | ac_status=$? | |
12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12683 | (exit $ac_status); }; } && | |
12684 | { ac_try='test -s conftest.$ac_objext' | |
12685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12686 | (eval $ac_try) 2>&5 | |
12687 | ac_status=$? | |
12688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12689 | (exit $ac_status); }; }; then | |
e3c976c4 ILT |
12690 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes |
12691 | else | |
5464f5a1 NN |
12692 | echo "$as_me: failed program was:" >&5 |
12693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12694 | ||
12695 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no | |
12696 | ||
e3c976c4 | 12697 | fi |
5464f5a1 | 12698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
12699 | fi |
12700 | ||
e3c976c4 | 12701 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then |
5464f5a1 NN |
12702 | |
12703 | cat >>confdefs.h <<\_ACEOF | |
e3c976c4 | 12704 | #define HAVE_WIN32_PSTATUS_T 1 |
5464f5a1 | 12705 | _ACEOF |
16e9c715 NC |
12706 | |
12707 | fi | |
5464f5a1 NN |
12708 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 |
12709 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6 | |
e3c976c4 ILT |
12710 | |
12711 | fi | |
12712 | fi | |
16e9c715 | 12713 | |
b3baf5d0 | 12714 | |
6be7c12c | 12715 | if test -n "$TRAD_HEADER"; then |
5464f5a1 NN |
12716 | |
12717 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 12718 | #define TRAD_HEADER $TRAD_HEADER |
5464f5a1 | 12719 | _ACEOF |
252b5132 | 12720 | |
3f9b03b5 | 12721 | fi |
252b5132 RH |
12722 | |
12723 | # Horrible hacks to build DLLs on Windows. | |
12724 | WIN32LDFLAGS= | |
12725 | WIN32LIBADD= | |
12726 | case "${host}" in | |
12727 | *-*-cygwin*) | |
12728 | if test "$enable_shared" = "yes"; then | |
12729 | WIN32LDFLAGS="-no-undefined" | |
12730 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" | |
12731 | fi | |
12732 | ;; | |
78be1d6e | 12733 | *-*-linux*) |
39691762 L |
12734 | # We borrow WIN32LIBADD so that the shared libbfd won't depend on |
12735 | # libiberty.a. | |
ca51bfff L |
12736 | case "${host}" in |
12737 | mips*-*-linux*) | |
12738 | # Linux/MIPS uses PIC by default. | |
12739 | if test "$enable_shared" = "yes"; then | |
12740 | WIN32LIBADD="-L../libiberty -liberty" | |
12741 | fi | |
12742 | ;; | |
12743 | *) | |
66e25bab | 12744 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` |
bb2a49f2 | 12745 | if test -n "$x"; then |
ca51bfff L |
12746 | WIN32LIBADD="-L../libiberty/pic -liberty" |
12747 | fi | |
12748 | ;; | |
12749 | esac | |
39691762 | 12750 | ;; |
252b5132 RH |
12751 | esac |
12752 | ||
6be7c12c AO |
12753 | |
12754 | ||
252b5132 RH |
12755 | # target stuff: |
12756 | ||
12757 | # Canonicalize the secondary target names. | |
12758 | if test -n "$enable_targets" ; then | |
12759 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
12760 | do | |
6d83c84b | 12761 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
12762 | if test -n "$result" ; then |
12763 | canon_targets="$canon_targets $result" | |
12764 | else | |
12765 | # Allow targets that config.sub doesn't recognize, like "all". | |
12766 | canon_targets="$canon_targets $targ" | |
12767 | fi | |
12768 | done | |
12769 | fi | |
12770 | ||
12771 | all_targets=false | |
12772 | defvec= | |
12773 | selvecs= | |
08f74004 | 12774 | assocvecs= |
252b5132 RH |
12775 | selarchs= |
12776 | TDEFINES= | |
12777 | for targ in $target $canon_targets | |
12778 | do | |
12779 | if test "x$targ" = "xall"; then | |
12780 | all_targets=true | |
08f74004 | 12781 | assocvecs="$assocvecs $targ_defvec $targ_selvecs" |
252b5132 RH |
12782 | else |
12783 | . $srcdir/config.bfd | |
12784 | if test "x$targ" = "x$target"; then | |
12785 | defvec=$targ_defvec | |
12786 | fi | |
12787 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
12788 | selarchs="$selarchs $targ_archs" | |
12789 | TDEFINES="$TDEFINES $targ_cflags" | |
12790 | fi | |
12791 | done | |
12792 | ||
6be7c12c | 12793 | |
252b5132 RH |
12794 | # This processing still needs to be done if we're to decide properly whether |
12795 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
12796 | # the default or any other explicitly requested target requires it; it | |
12797 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
9eb7245e | 12798 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is |
252b5132 RH |
12799 | # used. |
12800 | ||
12801 | # uniq the default and selected vectors in all the configured targets. | |
12802 | f="" | |
12803 | for i in $selvecs ; do | |
12804 | case " $f " in | |
12805 | *" $i "*) ;; | |
12806 | *) f="$f $i" ;; | |
12807 | esac | |
12808 | done | |
12809 | selvecs="$f" | |
12810 | ||
6be7c12c | 12811 | |
08f74004 AM |
12812 | # uniq the associated vectors in all the configured targets. |
12813 | f="" | |
12814 | for i in $assocvecs ; do | |
12815 | case " $f " in | |
12816 | *" $i "*) ;; | |
12817 | *) f="$f $i" ;; | |
12818 | esac | |
12819 | done | |
12820 | assocvecs="$f" | |
12821 | ||
12822 | ||
252b5132 RH |
12823 | # uniq the architectures in all the configured targets. |
12824 | f="" | |
12825 | for i in $selarchs ; do | |
12826 | case " $f " in | |
12827 | *" $i "*) ;; | |
12828 | *) f="$f $i" ;; | |
12829 | esac | |
12830 | done | |
12831 | selarchs="$f" | |
12832 | ||
12833 | # Target backend .o files. | |
12834 | tb= | |
12835 | ||
65765700 | 12836 | elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo" |
252b5132 RH |
12837 | |
12838 | for vec in $selvecs | |
12839 | do | |
69263e90 | 12840 | target_size=32 |
252b5132 RH |
12841 | case "$vec" in |
12842 | # This list is alphabetized to make it easy to compare | |
dc810e39 AM |
12843 | # with the two vector lists in targets.c. For the same reason, |
12844 | # use one entry per line, even though this leads to long lines. | |
252b5132 RH |
12845 | a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; |
12846 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; | |
341ca622 | 12847 | aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
252b5132 RH |
12848 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; |
12849 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
12850 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
252b5132 | 12851 | apollocoff_vec) tb="$tb coff-apollo.lo" ;; |
dc810e39 AM |
12852 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; |
12853 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
12854 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
12855 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
12856 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
12857 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
12858 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; | |
12859 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
12860 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
12861 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
12862 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
252b5132 RH |
12863 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; |
12864 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; | |
fac41780 | 12865 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; |
dc810e39 | 12866 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; |
73c3cd1c | 12867 | bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; |
adde6300 | 12868 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
dc810e39 | 12869 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
252b5132 | 12870 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
7f266840 | 12871 | bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
e5a52504 | 12872 | bfd_elf32_bigarm_symbian_vec) |
7f266840 | 12873 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
4e7fd91e PB |
12874 | bfd_elf32_bigarm_vxworks_vec) |
12875 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; | |
c6e90b02 | 12876 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
0949843d | 12877 | bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; |
06c15ad7 | 12878 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
5464f5a1 | 12879 | bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; |
252b5132 RH |
12880 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
12881 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
d172d4ba | 12882 | bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; |
252b5132 | 12883 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; |
4e5ba5b7 | 12884 | bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
43850d5b | 12885 | bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
e01b0e69 | 12886 | bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; |
dc810e39 | 12887 | bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
225247f0 | 12888 | bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
dc810e39 | 12889 | bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
5b93d8bb | 12890 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; |
eac338cf PB |
12891 | bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; |
12892 | bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
12893 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
9d751335 | 12894 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
dc810e39 | 12895 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
b2ef150d | 12896 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; |
dc810e39 | 12897 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; |
fcf12726 | 12898 | bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";; |
cf88bb9f | 12899 | bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; |
a75473eb | 12900 | bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; |
252b5132 | 12901 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
dc810e39 | 12902 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
e5a52504 | 12903 | bfd_elf32_littlearm_symbian_vec) |
7f266840 | 12904 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
4e7fd91e PB |
12905 | bfd_elf32_littlearm_vxworks_vec) |
12906 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; | |
7f266840 | 12907 | bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
c6e90b02 | 12908 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
252b5132 | 12909 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
6edf0760 NC |
12910 | bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
12911 | bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
12912 | bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
f5a6f915 SC |
12913 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; |
12914 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; | |
252b5132 RH |
12915 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; |
12916 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; | |
12917 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
12918 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
12919 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; | |
12920 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
2469cfa2 | 12921 | bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; |
8a397dad TS |
12922 | bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
12923 | bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
12924 | bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
12925 | bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
b3baf5d0 | 12926 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; |
3b16e843 | 12927 | bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;; |
0bcb993b ILT |
12928 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; |
12929 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; | |
b6821651 AM |
12930 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; |
12931 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; | |
a85d7ed0 | 12932 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
eb1e0e80 NC |
12933 | # FIXME: We include cofflink.lo not because it's needed for |
12934 | # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec | |
12935 | # which needs it but does not list it. Should be fixed in right place. | |
9cba27b2 JT |
12936 | bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
12937 | bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
2bc3c89a AM |
12938 | bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
12939 | bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
12940 | bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; | |
12941 | bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; | |
b6821651 AM |
12942 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; |
12943 | bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
12944 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; | |
85fbca6a | 12945 | bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;; |
b6821651 AM |
12946 | bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
12947 | bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
12948 | bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
22b75d0a | 12949 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;; |
c6e90b02 TS |
12950 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
12951 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; | |
dc810e39 | 12952 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 | 12953 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
90ace9e9 | 12954 | bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; |
93fbbb04 | 12955 | bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; |
e0001a05 NC |
12956 | bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; |
12957 | bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; | |
2238051f | 12958 | bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
12959 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
12960 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
c6e90b02 | 12961 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
dc810e39 AM |
12962 | bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; |
12963 | bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; | |
dc810e39 | 12964 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
fcf12726 | 12965 | bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
12966 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
12967 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
c6e90b02 | 12968 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
3c3bdf30 | 12969 | bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; |
dc810e39 AM |
12970 | bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
12971 | bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; | |
12972 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; | |
341ca622 AM |
12973 | bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
12974 | bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
2bc3c89a AM |
12975 | bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
12976 | bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
12977 | bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
12978 | bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
22b75d0a | 12979 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;; |
c6e90b02 TS |
12980 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
12981 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
dc810e39 | 12982 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; |
3c3bdf30 | 12983 | bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; |
dc810e39 AM |
12984 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; |
12985 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
12986 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; | |
12987 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
06c15ad7 | 12988 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
dc810e39 | 12989 | demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; |
252b5132 | 12990 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
252b5132 | 12991 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
dc810e39 AM |
12992 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
12993 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; | |
252b5132 RH |
12994 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; |
12995 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; | |
12996 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; | |
12997 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; | |
12998 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
12999 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; | |
13000 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; | |
13001 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; | |
13002 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
13003 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; | |
13004 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; | |
13005 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; | |
252b5132 RH |
13006 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; |
13007 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; | |
13008 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; | |
13009 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; | |
dc810e39 | 13010 | i386msdos_vec) tb="$tb i386msdos.lo" ;; |
252b5132 RH |
13011 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; |
13012 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; | |
dc810e39 AM |
13013 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; |
13014 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
13015 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; |
13016 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
13017 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
13018 | ieee_vec) tb="$tb ieee.lo" ;; | |
dc810e39 AM |
13019 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; |
13020 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; | |
252b5132 RH |
13021 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; |
13022 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; | |
13023 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; | |
13024 | m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; | |
13025 | m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; | |
13026 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; | |
252b5132 RH |
13027 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; |
13028 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;; | |
341ca622 | 13029 | m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; |
c6f8758f | 13030 | m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; |
7499d566 | 13031 | maxqcoff_vec) tb="$tb coff-maxq.lo" ;; |
93509525 KD |
13032 | mach_o_be_vec) tb="$tb mach-o.lo" ;; |
13033 | mach_o_le_vec) tb="$tb mach-o.lo" ;; | |
13034 | mach_o_fat_vec) tb="$tb mach-o.lo" ;; | |
277d1b5e ILT |
13035 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; |
13036 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; | |
13037 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
13038 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
dc810e39 AM |
13039 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; |
13040 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 13041 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; |
dc810e39 | 13042 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; |
252b5132 | 13043 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; |
252b5132 | 13044 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; |
dc810e39 | 13045 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; |
3b16e843 | 13046 | or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;; |
252b5132 | 13047 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; |
dc810e39 | 13048 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; |
93509525 KD |
13049 | pef_vec) tb="$tb pef.lo" ;; |
13050 | pef_xlib_vec) tb="$tb pef.lo" ;; | |
e135f41b | 13051 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
6768c14a | 13052 | pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 13053 | ppcboot_vec) tb="$tb ppcboot.lo" ;; |
dc810e39 | 13054 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;; |
eb1e0e80 | 13055 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
dc810e39 | 13056 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 13057 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 13058 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
252b5132 | 13059 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 13060 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
60bcf0fa NC |
13061 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; |
13062 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 13063 | som_vec) tb="$tb som.lo" ;; |
dc810e39 | 13064 | sparccoff_vec) tb="$tb coff-sparc.lo" ;; |
252b5132 RH |
13065 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; |
13066 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; | |
13067 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; | |
13068 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; | |
13069 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; | |
252b5132 | 13070 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; |
93509525 | 13071 | sym_vec) tb="$tb xsym.lo" ;; |
252b5132 RH |
13072 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;; |
13073 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;; | |
026df7c5 NC |
13074 | tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;; |
13075 | tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
13076 | tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;; | |
13077 | tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
13078 | tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;; | |
13079 | tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
81635ce4 | 13080 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 13081 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 13082 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 13083 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 13084 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 13085 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; |
252b5132 | 13086 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; |
90ace9e9 | 13087 | vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; |
3c2bfad6 | 13088 | vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; |
ba26fd96 | 13089 | vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; |
252b5132 | 13090 | versados_vec) tb="$tb versados.lo" ;; |
dc810e39 | 13091 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;; |
252b5132 RH |
13092 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; |
13093 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; | |
13094 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;; | |
13095 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; | |
13096 | ||
341ca622 AM |
13097 | # These appear out of order in targets.c |
13098 | srec_vec) tb="$tb srec.lo" ;; | |
13099 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
13100 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
13101 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;; | |
13102 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;; | |
13103 | ||
252b5132 | 13104 | "") ;; |
5464f5a1 NN |
13105 | *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5 |
13106 | echo "$as_me: error: *** unknown target vector $vec" >&2;} | |
13107 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 13108 | esac |
69263e90 AM |
13109 | |
13110 | if test ${target_size} = 64; then | |
13111 | target64=true | |
13112 | fi | |
13113 | if test x"${vec}" = x"${defvec}"; then | |
13114 | bfd_default_target_size=${target_size} | |
13115 | fi | |
252b5132 RH |
13116 | done |
13117 | ||
13118 | # Target architecture .o files. | |
13119 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
13120 | # filesystems. | |
13121 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` | |
13122 | ||
13123 | # Weed out duplicate .o files. | |
13124 | f="" | |
13125 | for i in $tb ; do | |
13126 | case " $f " in | |
13127 | *" $i "*) ;; | |
13128 | *) f="$f $i" ;; | |
13129 | esac | |
13130 | done | |
13131 | tb="$f" | |
13132 | ||
13133 | f="" | |
13134 | for i in $ta ; do | |
13135 | case " $f " in | |
13136 | *" $i "*) ;; | |
13137 | *) f="$f $i" ;; | |
13138 | esac | |
13139 | done | |
13140 | ta="$f" | |
13141 | ||
13142 | bfd_backends="$tb" | |
13143 | bfd_machines="$ta" | |
13144 | ||
13145 | if test x${all_targets} = xtrue ; then | |
13146 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
13147 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
13148 | selvecs= | |
13149 | havevecs= | |
13150 | selarchs= | |
08f74004 AM |
13151 | test -n "$assocvecs" && |
13152 | assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
252b5132 RH |
13153 | else # all_targets is true |
13154 | # Only set these if they will be nonempty, for the clever echo. | |
13155 | havevecs= | |
08f74004 | 13156 | assocvecs= |
252b5132 RH |
13157 | test -n "$selvecs" && |
13158 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
13159 | test -n "$selvecs" && | |
13160 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
13161 | test -n "$selarchs" && | |
13162 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
13163 | fi # all_targets is true | |
13164 | ||
13165 | case ${host64}-${target64}-${want64} in | |
13166 | *true*) | |
13167 | wordsize=64 | |
2858ef35 | 13168 | bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)' |
252b5132 | 13169 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' |
ccba357f | 13170 | if test $BFD_HOST_64_BIT_DEFINED = 0; then |
5464f5a1 NN |
13171 | { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5 |
13172 | echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;} | |
13173 | { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5 | |
13174 | echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;} | |
252b5132 | 13175 | fi |
966abd70 HPN |
13176 | if test -n "$GCC" ; then |
13177 | bad_64bit_gcc=no; | |
5464f5a1 NN |
13178 | echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5 |
13179 | echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6 | |
966abd70 | 13180 | # Add more tests for gcc versions with non-working 64-bit support here. |
5464f5a1 NN |
13181 | cat >conftest.$ac_ext <<_ACEOF |
13182 | /* confdefs.h. */ | |
13183 | _ACEOF | |
13184 | cat confdefs.h >>conftest.$ac_ext | |
13185 | cat >>conftest.$ac_ext <<_ACEOF | |
13186 | /* end confdefs.h. */ | |
966abd70 | 13187 | :__GNUC__:__GNUC_MINOR__:__i386__: |
5464f5a1 | 13188 | _ACEOF |
966abd70 | 13189 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 13190 | $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then |
966abd70 | 13191 | bad_64bit_gcc=yes; |
5464f5a1 NN |
13192 | echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5 |
13193 | echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6 | |
966abd70 | 13194 | else |
5464f5a1 NN |
13195 | echo "$as_me:$LINENO: result: no" >&5 |
13196 | echo "${ECHO_T}no" >&6 | |
966abd70 HPN |
13197 | fi |
13198 | rm -f conftest* | |
13199 | ||
13200 | if test $bad_64bit_gcc = yes ; then | |
5464f5a1 NN |
13201 | { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5 |
13202 | echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;} | |
13203 | { (exit 1); exit 1; }; } | |
966abd70 HPN |
13204 | fi |
13205 | fi | |
252b5132 RH |
13206 | ;; |
13207 | false-false-false) | |
13208 | wordsize=32 | |
2858ef35 | 13209 | bfd_libs='$(BFD32_LIBS)' |
252b5132 RH |
13210 | all_backends='$(BFD32_BACKENDS)' |
13211 | ;; | |
13212 | esac | |
13213 | ||
6be7c12c AO |
13214 | |
13215 | ||
13216 | ||
13217 | ||
13218 | ||
69263e90 | 13219 | |
2858ef35 | 13220 | |
1012372a AC |
13221 | # Determine the host dependant file_ptr a.k.a. off_t type. In order |
13222 | # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and | |
13223 | # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. | |
13224 | # Hopefully a reasonable assumption since fseeko et.al. should be | |
13225 | # upward compatible. | |
5464f5a1 NN |
13226 | |
13227 | ||
13228 | ||
13229 | ||
1012372a AC |
13230 | for ac_func in ftello ftello64 fseeko fseeko64 |
13231 | do | |
5464f5a1 NN |
13232 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13233 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13234 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13235 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13237 | else | |
2ba49b59 KC |
13238 | cat >conftest.$ac_ext <<_ACEOF |
13239 | /* confdefs.h. */ | |
13240 | _ACEOF | |
13241 | cat confdefs.h >>conftest.$ac_ext | |
13242 | cat >>conftest.$ac_ext <<_ACEOF | |
13243 | /* end confdefs.h. */ | |
13244 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13245 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13246 | #define $ac_func innocuous_$ac_func | |
13247 | ||
13248 | /* System header to define __stub macros and hopefully few prototypes, | |
13249 | which can conflict with char $ac_func (); below. | |
13250 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13251 | <limits.h> exists even on freestanding compilers. */ | |
13252 | ||
13253 | #ifdef __STDC__ | |
13254 | # include <limits.h> | |
13255 | #else | |
13256 | # include <assert.h> | |
13257 | #endif | |
13258 | ||
13259 | #undef $ac_func | |
13260 | ||
13261 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13262 | #ifdef __cplusplus | |
13263 | extern "C" | |
13264 | { | |
13265 | #endif | |
13266 | /* We use char because int might match the return type of a gcc2 | |
13267 | builtin and then its argument prototype would still apply. */ | |
13268 | char $ac_func (); | |
13269 | /* The GNU C library defines this for functions which it implements | |
13270 | to always fail with ENOSYS. Some functions are actually named | |
13271 | something starting with __ and the normal name is an alias. */ | |
13272 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13273 | choke me | |
13274 | #else | |
13275 | char (*f) () = $ac_func; | |
13276 | #endif | |
13277 | #ifdef __cplusplus | |
13278 | } | |
13279 | #endif | |
13280 | ||
13281 | int | |
13282 | main () | |
13283 | { | |
13284 | return f != $ac_func; | |
13285 | ; | |
13286 | return 0; | |
13287 | } | |
13288 | _ACEOF | |
13289 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13291 | (eval $ac_link) 2>conftest.er1 | |
13292 | ac_status=$? | |
13293 | grep -v '^ *+' conftest.er1 >conftest.err | |
13294 | rm -f conftest.er1 | |
13295 | cat conftest.err >&5 | |
13296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13297 | (exit $ac_status); } && | |
6ec7057a | 13298 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
13299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13300 | (eval $ac_try) 2>&5 | |
13301 | ac_status=$? | |
13302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13303 | (exit $ac_status); }; } && | |
13304 | { ac_try='test -s conftest$ac_exeext' | |
13305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13306 | (eval $ac_try) 2>&5 | |
13307 | ac_status=$? | |
13308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13309 | (exit $ac_status); }; }; then | |
13310 | eval "$as_ac_var=yes" | |
13311 | else | |
13312 | echo "$as_me: failed program was:" >&5 | |
13313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13314 | ||
13315 | eval "$as_ac_var=no" | |
13316 | fi | |
13317 | rm -f conftest.err conftest.$ac_objext \ | |
13318 | conftest$ac_exeext conftest.$ac_ext | |
13319 | fi | |
13320 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13321 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13322 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13323 | cat >>confdefs.h <<_ACEOF | |
13324 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13325 | _ACEOF | |
13326 | ||
13327 | fi | |
13328 | done | |
13329 | ||
13330 | if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then | |
13331 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
13332 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
13333 | if test "${ac_cv_type_off_t+set}" = set; then | |
13334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13335 | else | |
13336 | cat >conftest.$ac_ext <<_ACEOF | |
13337 | /* confdefs.h. */ | |
13338 | _ACEOF | |
13339 | cat confdefs.h >>conftest.$ac_ext | |
13340 | cat >>conftest.$ac_ext <<_ACEOF | |
13341 | /* end confdefs.h. */ | |
13342 | $ac_includes_default | |
13343 | int | |
13344 | main () | |
13345 | { | |
13346 | if ((off_t *) 0) | |
13347 | return 0; | |
13348 | if (sizeof (off_t)) | |
13349 | return 0; | |
13350 | ; | |
13351 | return 0; | |
13352 | } | |
13353 | _ACEOF | |
13354 | rm -f conftest.$ac_objext | |
13355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13356 | (eval $ac_compile) 2>conftest.er1 | |
13357 | ac_status=$? | |
13358 | grep -v '^ *+' conftest.er1 >conftest.err | |
13359 | rm -f conftest.er1 | |
13360 | cat conftest.err >&5 | |
13361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13362 | (exit $ac_status); } && | |
6ec7057a | 13363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
13364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13365 | (eval $ac_try) 2>&5 | |
13366 | ac_status=$? | |
13367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13368 | (exit $ac_status); }; } && | |
13369 | { ac_try='test -s conftest.$ac_objext' | |
13370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13371 | (eval $ac_try) 2>&5 | |
13372 | ac_status=$? | |
13373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13374 | (exit $ac_status); }; }; then | |
13375 | ac_cv_type_off_t=yes | |
13376 | else | |
13377 | echo "$as_me: failed program was:" >&5 | |
13378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13379 | ||
13380 | ac_cv_type_off_t=no | |
13381 | fi | |
13382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13383 | fi | |
13384 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
13385 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
13386 | ||
13387 | echo "$as_me:$LINENO: checking size of off_t" >&5 | |
13388 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 | |
13389 | if test "${ac_cv_sizeof_off_t+set}" = set; then | |
13390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13391 | else | |
13392 | if test "$ac_cv_type_off_t" = yes; then | |
13393 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13394 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13395 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13396 | # This bug is HP SR number 8606223364. | |
13397 | if test "$cross_compiling" = yes; then | |
13398 | # Depending upon the size, compute the lo and hi bounds. | |
13399 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
13400 | /* confdefs.h. */ |
13401 | _ACEOF | |
13402 | cat confdefs.h >>conftest.$ac_ext | |
13403 | cat >>conftest.$ac_ext <<_ACEOF | |
13404 | /* end confdefs.h. */ | |
2ba49b59 KC |
13405 | $ac_includes_default |
13406 | int | |
13407 | main () | |
13408 | { | |
13409 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)]; | |
13410 | test_array [0] = 0 | |
5464f5a1 | 13411 | |
2ba49b59 KC |
13412 | ; |
13413 | return 0; | |
13414 | } | |
13415 | _ACEOF | |
13416 | rm -f conftest.$ac_objext | |
13417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13418 | (eval $ac_compile) 2>conftest.er1 | |
13419 | ac_status=$? | |
13420 | grep -v '^ *+' conftest.er1 >conftest.err | |
13421 | rm -f conftest.er1 | |
13422 | cat conftest.err >&5 | |
13423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13424 | (exit $ac_status); } && | |
6ec7057a | 13425 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
13426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13427 | (eval $ac_try) 2>&5 | |
13428 | ac_status=$? | |
13429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13430 | (exit $ac_status); }; } && | |
13431 | { ac_try='test -s conftest.$ac_objext' | |
13432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13433 | (eval $ac_try) 2>&5 | |
13434 | ac_status=$? | |
13435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13436 | (exit $ac_status); }; }; then | |
13437 | ac_lo=0 ac_mid=0 | |
13438 | while :; do | |
13439 | cat >conftest.$ac_ext <<_ACEOF | |
13440 | /* confdefs.h. */ | |
13441 | _ACEOF | |
13442 | cat confdefs.h >>conftest.$ac_ext | |
13443 | cat >>conftest.$ac_ext <<_ACEOF | |
13444 | /* end confdefs.h. */ | |
13445 | $ac_includes_default | |
13446 | int | |
13447 | main () | |
13448 | { | |
13449 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; | |
13450 | test_array [0] = 0 | |
5464f5a1 | 13451 | |
2ba49b59 KC |
13452 | ; |
13453 | return 0; | |
13454 | } | |
13455 | _ACEOF | |
13456 | rm -f conftest.$ac_objext | |
13457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13458 | (eval $ac_compile) 2>conftest.er1 | |
13459 | ac_status=$? | |
13460 | grep -v '^ *+' conftest.er1 >conftest.err | |
13461 | rm -f conftest.er1 | |
13462 | cat conftest.err >&5 | |
13463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13464 | (exit $ac_status); } && | |
6ec7057a | 13465 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
13466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13467 | (eval $ac_try) 2>&5 | |
13468 | ac_status=$? | |
13469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13470 | (exit $ac_status); }; } && | |
13471 | { ac_try='test -s conftest.$ac_objext' | |
13472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13473 | (eval $ac_try) 2>&5 | |
13474 | ac_status=$? | |
13475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13476 | (exit $ac_status); }; }; then | |
13477 | ac_hi=$ac_mid; break | |
13478 | else | |
13479 | echo "$as_me: failed program was:" >&5 | |
13480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 13481 | |
2ba49b59 KC |
13482 | ac_lo=`expr $ac_mid + 1` |
13483 | if test $ac_lo -le $ac_mid; then | |
13484 | ac_lo= ac_hi= | |
13485 | break | |
13486 | fi | |
13487 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13488 | fi | |
13489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13490 | done | |
13491 | else | |
13492 | echo "$as_me: failed program was:" >&5 | |
13493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 13494 | |
2ba49b59 KC |
13495 | cat >conftest.$ac_ext <<_ACEOF |
13496 | /* confdefs.h. */ | |
13497 | _ACEOF | |
13498 | cat confdefs.h >>conftest.$ac_ext | |
13499 | cat >>conftest.$ac_ext <<_ACEOF | |
13500 | /* end confdefs.h. */ | |
13501 | $ac_includes_default | |
13502 | int | |
13503 | main () | |
5464f5a1 | 13504 | { |
2ba49b59 KC |
13505 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)]; |
13506 | test_array [0] = 0 | |
1012372a | 13507 | |
2ba49b59 KC |
13508 | ; |
13509 | return 0; | |
13510 | } | |
13511 | _ACEOF | |
13512 | rm -f conftest.$ac_objext | |
13513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13514 | (eval $ac_compile) 2>conftest.er1 | |
13515 | ac_status=$? | |
13516 | grep -v '^ *+' conftest.er1 >conftest.err | |
13517 | rm -f conftest.er1 | |
13518 | cat conftest.err >&5 | |
13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13520 | (exit $ac_status); } && | |
6ec7057a | 13521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2ba49b59 KC |
13522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13523 | (eval $ac_try) 2>&5 | |
13524 | ac_status=$? | |
13525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13526 | (exit $ac_status); }; } && | |
13527 | { ac_try='test -s conftest.$ac_objext' | |
13528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13529 | (eval $ac_try) 2>&5 | |
13530 | ac_status=$? | |
13531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13532 | (exit $ac_status); }; }; then | |
13533 | ac_hi=-1 ac_mid=-1 | |
13534 | while :; do | |
13535 | cat >conftest.$ac_ext <<_ACEOF | |
13536 | /* confdefs.h. */ | |
13537 | _ACEOF | |
13538 | cat confdefs.h >>conftest.$ac_ext | |
13539 | cat >>conftest.$ac_ext <<_ACEOF | |
13540 | /* end confdefs.h. */ | |
13541 | $ac_includes_default | |
5464f5a1 NN |
13542 | int |
13543 | main () | |
13544 | { | |
2ba49b59 KC |
13545 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)]; |
13546 | test_array [0] = 0 | |
13547 | ||
5464f5a1 NN |
13548 | ; |
13549 | return 0; | |
13550 | } | |
13551 | _ACEOF | |
2ba49b59 KC |
13552 | rm -f conftest.$ac_objext |
13553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13554 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
13555 | ac_status=$? |
13556 | grep -v '^ *+' conftest.er1 >conftest.err | |
13557 | rm -f conftest.er1 | |
13558 | cat conftest.err >&5 | |
13559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13560 | (exit $ac_status); } && | |
6ec7057a | 13561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
13562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13563 | (eval $ac_try) 2>&5 | |
13564 | ac_status=$? | |
13565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13566 | (exit $ac_status); }; } && | |
2ba49b59 | 13567 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
13568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13569 | (eval $ac_try) 2>&5 | |
13570 | ac_status=$? | |
13571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13572 | (exit $ac_status); }; }; then | |
2ba49b59 | 13573 | ac_lo=$ac_mid; break |
5464f5a1 NN |
13574 | else |
13575 | echo "$as_me: failed program was:" >&5 | |
13576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13577 | ||
2ba49b59 KC |
13578 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13579 | if test $ac_mid -le $ac_hi; then | |
13580 | ac_lo= ac_hi= | |
13581 | break | |
13582 | fi | |
13583 | ac_mid=`expr 2 '*' $ac_mid` | |
5464f5a1 | 13584 | fi |
2ba49b59 KC |
13585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13586 | done | |
13587 | else | |
13588 | echo "$as_me: failed program was:" >&5 | |
13589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 13590 | |
2ba49b59 | 13591 | ac_lo= ac_hi= |
1012372a | 13592 | fi |
2ba49b59 KC |
13593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13594 | fi | |
13595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13596 | # Binary search between lo and hi bounds. | |
13597 | while test "x$ac_lo" != "x$ac_hi"; do | |
13598 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5464f5a1 NN |
13599 | cat >conftest.$ac_ext <<_ACEOF |
13600 | /* confdefs.h. */ | |
13601 | _ACEOF | |
13602 | cat confdefs.h >>conftest.$ac_ext | |
13603 | cat >>conftest.$ac_ext <<_ACEOF | |
13604 | /* end confdefs.h. */ | |
2ba49b59 | 13605 | $ac_includes_default |
5464f5a1 NN |
13606 | int |
13607 | main () | |
13608 | { | |
2ba49b59 KC |
13609 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; |
13610 | test_array [0] = 0 | |
13611 | ||
5464f5a1 NN |
13612 | ; |
13613 | return 0; | |
13614 | } | |
13615 | _ACEOF | |
13616 | rm -f conftest.$ac_objext | |
13617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13618 | (eval $ac_compile) 2>conftest.er1 | |
13619 | ac_status=$? | |
13620 | grep -v '^ *+' conftest.er1 >conftest.err | |
13621 | rm -f conftest.er1 | |
13622 | cat conftest.err >&5 | |
13623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13624 | (exit $ac_status); } && | |
6ec7057a | 13625 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
13626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13627 | (eval $ac_try) 2>&5 | |
13628 | ac_status=$? | |
13629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13630 | (exit $ac_status); }; } && | |
13631 | { ac_try='test -s conftest.$ac_objext' | |
13632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13633 | (eval $ac_try) 2>&5 | |
13634 | ac_status=$? | |
13635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13636 | (exit $ac_status); }; }; then | |
2ba49b59 | 13637 | ac_hi=$ac_mid |
1012372a | 13638 | else |
5464f5a1 NN |
13639 | echo "$as_me: failed program was:" >&5 |
13640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13641 | ||
2ba49b59 | 13642 | ac_lo=`expr '(' $ac_mid ')' + 1` |
1012372a | 13643 | fi |
5464f5a1 | 13644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1012372a | 13645 | done |
2ba49b59 KC |
13646 | case $ac_lo in |
13647 | ?*) ac_cv_sizeof_off_t=$ac_lo;; | |
13648 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 | |
13649 | See \`config.log' for more details." >&5 | |
13650 | echo "$as_me: error: cannot compute sizeof (off_t), 77 | |
13651 | See \`config.log' for more details." >&2;} | |
13652 | { (exit 1); exit 1; }; } ;; | |
13653 | esac | |
13654 | else | |
13655 | if test "$cross_compiling" = yes; then | |
6ec7057a RH |
13656 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
13657 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
2ba49b59 KC |
13658 | { (exit 1); exit 1; }; } |
13659 | else | |
13660 | cat >conftest.$ac_ext <<_ACEOF | |
13661 | /* confdefs.h. */ | |
13662 | _ACEOF | |
13663 | cat confdefs.h >>conftest.$ac_ext | |
13664 | cat >>conftest.$ac_ext <<_ACEOF | |
13665 | /* end confdefs.h. */ | |
13666 | $ac_includes_default | |
13667 | long longval () { return (long) (sizeof (off_t)); } | |
13668 | unsigned long ulongval () { return (long) (sizeof (off_t)); } | |
13669 | #include <stdio.h> | |
13670 | #include <stdlib.h> | |
13671 | int | |
13672 | main () | |
13673 | { | |
1012372a | 13674 | |
2ba49b59 KC |
13675 | FILE *f = fopen ("conftest.val", "w"); |
13676 | if (! f) | |
13677 | exit (1); | |
13678 | if (((long) (sizeof (off_t))) < 0) | |
13679 | { | |
13680 | long i = longval (); | |
13681 | if (i != ((long) (sizeof (off_t)))) | |
13682 | exit (1); | |
13683 | fprintf (f, "%ld\n", i); | |
13684 | } | |
13685 | else | |
13686 | { | |
13687 | unsigned long i = ulongval (); | |
13688 | if (i != ((long) (sizeof (off_t)))) | |
13689 | exit (1); | |
13690 | fprintf (f, "%lu\n", i); | |
13691 | } | |
13692 | exit (ferror (f) || fclose (f) != 0); | |
13693 | ||
13694 | ; | |
13695 | return 0; | |
13696 | } | |
13697 | _ACEOF | |
13698 | rm -f conftest$ac_exeext | |
13699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13700 | (eval $ac_link) 2>&5 | |
13701 | ac_status=$? | |
13702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13703 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13705 | (eval $ac_try) 2>&5 | |
13706 | ac_status=$? | |
13707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13708 | (exit $ac_status); }; }; then | |
13709 | ac_cv_sizeof_off_t=`cat conftest.val` | |
13710 | else | |
13711 | echo "$as_me: program exited with status $ac_status" >&5 | |
13712 | echo "$as_me: failed program was:" >&5 | |
13713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 13714 | |
2ba49b59 KC |
13715 | ( exit $ac_status ) |
13716 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 | |
13717 | See \`config.log' for more details." >&5 | |
13718 | echo "$as_me: error: cannot compute sizeof (off_t), 77 | |
13719 | See \`config.log' for more details." >&2;} | |
5464f5a1 | 13720 | { (exit 1); exit 1; }; } |
1012372a | 13721 | fi |
2ba49b59 KC |
13722 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
13723 | fi | |
13724 | fi | |
13725 | rm -f conftest.val | |
13726 | else | |
13727 | ac_cv_sizeof_off_t=0 | |
13728 | fi | |
13729 | fi | |
5464f5a1 NN |
13730 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
13731 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 | |
5464f5a1 | 13732 | cat >>confdefs.h <<_ACEOF |
1012372a | 13733 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
5464f5a1 | 13734 | _ACEOF |
1012372a AC |
13735 | |
13736 | ||
1012372a | 13737 | fi |
5464f5a1 NN |
13738 | echo "$as_me:$LINENO: checking file_ptr type" >&5 |
13739 | echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6 | |
ccba357f AM |
13740 | bfd_file_ptr="long" |
13741 | bfd_ufile_ptr="unsigned long" | |
13742 | if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ | |
13743 | -o x"${ac_cv_sizeof_off_t}" = x8; then | |
1012372a AC |
13744 | bfd_file_ptr=BFD_HOST_64_BIT |
13745 | bfd_ufile_ptr=BFD_HOST_U_64_BIT | |
13746 | fi | |
5464f5a1 NN |
13747 | echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5 |
13748 | echo "${ECHO_T}$bfd_file_ptr" >&6 | |
1012372a AC |
13749 | |
13750 | ||
13751 | ||
13752 | ||
252b5132 RH |
13753 | tdefaults="" |
13754 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
13755 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
08f74004 | 13756 | test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" |
252b5132 RH |
13757 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" |
13758 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" | |
13759 | ||
6be7c12c | 13760 | |
5464f5a1 NN |
13761 | |
13762 | ||
13763 | for ac_header in stdlib.h unistd.h | |
252b5132 | 13764 | do |
5464f5a1 NN |
13765 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13766 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13767 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13771 | fi | |
13772 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13773 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13774 | else | |
13775 | # Is the header compilable? | |
13776 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13777 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13778 | cat >conftest.$ac_ext <<_ACEOF | |
13779 | /* confdefs.h. */ | |
13780 | _ACEOF | |
13781 | cat confdefs.h >>conftest.$ac_ext | |
13782 | cat >>conftest.$ac_ext <<_ACEOF | |
13783 | /* end confdefs.h. */ | |
13784 | $ac_includes_default | |
13785 | #include <$ac_header> | |
13786 | _ACEOF | |
13787 | rm -f conftest.$ac_objext | |
13788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13789 | (eval $ac_compile) 2>conftest.er1 | |
13790 | ac_status=$? | |
13791 | grep -v '^ *+' conftest.er1 >conftest.err | |
13792 | rm -f conftest.er1 | |
13793 | cat conftest.err >&5 | |
13794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13795 | (exit $ac_status); } && | |
6ec7057a | 13796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
13797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13798 | (eval $ac_try) 2>&5 | |
13799 | ac_status=$? | |
13800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13801 | (exit $ac_status); }; } && | |
13802 | { ac_try='test -s conftest.$ac_objext' | |
13803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13804 | (eval $ac_try) 2>&5 | |
13805 | ac_status=$? | |
13806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13807 | (exit $ac_status); }; }; then | |
13808 | ac_header_compiler=yes | |
13809 | else | |
13810 | echo "$as_me: failed program was:" >&5 | |
13811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13812 | ||
13813 | ac_header_compiler=no | |
13814 | fi | |
13815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13816 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13817 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13818 | ||
13819 | # Is the header present? | |
13820 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13821 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13822 | cat >conftest.$ac_ext <<_ACEOF | |
13823 | /* confdefs.h. */ | |
13824 | _ACEOF | |
13825 | cat confdefs.h >>conftest.$ac_ext | |
13826 | cat >>conftest.$ac_ext <<_ACEOF | |
13827 | /* end confdefs.h. */ | |
13828 | #include <$ac_header> | |
13829 | _ACEOF | |
13830 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13831 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13832 | ac_status=$? | |
13833 | grep -v '^ *+' conftest.er1 >conftest.err | |
13834 | rm -f conftest.er1 | |
13835 | cat conftest.err >&5 | |
13836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13837 | (exit $ac_status); } >/dev/null; then | |
13838 | if test -s conftest.err; then | |
13839 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13840 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13841 | else | |
13842 | ac_cpp_err= | |
13843 | fi | |
252b5132 | 13844 | else |
5464f5a1 | 13845 | ac_cpp_err=yes |
252b5132 | 13846 | fi |
5464f5a1 NN |
13847 | if test -z "$ac_cpp_err"; then |
13848 | ac_header_preproc=yes | |
13849 | else | |
13850 | echo "$as_me: failed program was:" >&5 | |
13851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13852 | ||
13853 | ac_header_preproc=no | |
252b5132 | 13854 | fi |
5464f5a1 NN |
13855 | rm -f conftest.err conftest.$ac_ext |
13856 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13857 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13858 | ||
13859 | # So? What about this header? | |
13860 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13861 | yes:no: ) | |
13862 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13863 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13864 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13865 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13866 | ac_header_preproc=yes | |
13867 | ;; | |
13868 | no:yes:* ) | |
13869 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13870 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13871 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13872 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13873 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13874 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13875 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13876 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13878 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13879 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13880 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13881 | ( | |
13882 | cat <<\_ASBOX | |
13883 | ## ------------------------------------------ ## | |
13884 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13885 | ## ------------------------------------------ ## | |
13886 | _ASBOX | |
13887 | ) | | |
13888 | sed "s/^/$as_me: WARNING: /" >&2 | |
13889 | ;; | |
13890 | esac | |
13891 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13892 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13893 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 13895 | else |
5464f5a1 NN |
13896 | eval "$as_ac_Header=\$ac_header_preproc" |
13897 | fi | |
13898 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13899 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13900 | ||
13901 | fi | |
13902 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13903 | cat >>confdefs.h <<_ACEOF | |
13904 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13905 | _ACEOF | |
13906 | ||
252b5132 | 13907 | fi |
5464f5a1 | 13908 | |
252b5132 RH |
13909 | done |
13910 | ||
5464f5a1 | 13911 | |
252b5132 RH |
13912 | for ac_func in getpagesize |
13913 | do | |
5464f5a1 NN |
13914 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13915 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13916 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13917 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13919 | else | |
13920 | cat >conftest.$ac_ext <<_ACEOF | |
13921 | /* confdefs.h. */ | |
13922 | _ACEOF | |
13923 | cat confdefs.h >>conftest.$ac_ext | |
13924 | cat >>conftest.$ac_ext <<_ACEOF | |
13925 | /* end confdefs.h. */ | |
13926 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13927 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13928 | #define $ac_func innocuous_$ac_func | |
13929 | ||
252b5132 | 13930 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
13931 | which can conflict with char $ac_func (); below. |
13932 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13933 | <limits.h> exists even on freestanding compilers. */ | |
13934 | ||
13935 | #ifdef __STDC__ | |
13936 | # include <limits.h> | |
13937 | #else | |
13938 | # include <assert.h> | |
13939 | #endif | |
6be7c12c | 13940 | |
5464f5a1 | 13941 | #undef $ac_func |
252b5132 | 13942 | |
5464f5a1 NN |
13943 | /* Override any gcc2 internal prototype to avoid an error. */ |
13944 | #ifdef __cplusplus | |
13945 | extern "C" | |
13946 | { | |
13947 | #endif | |
13948 | /* We use char because int might match the return type of a gcc2 | |
13949 | builtin and then its argument prototype would still apply. */ | |
13950 | char $ac_func (); | |
252b5132 RH |
13951 | /* The GNU C library defines this for functions which it implements |
13952 | to always fail with ENOSYS. Some functions are actually named | |
13953 | something starting with __ and the normal name is an alias. */ | |
13954 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13955 | choke me | |
13956 | #else | |
5464f5a1 NN |
13957 | char (*f) () = $ac_func; |
13958 | #endif | |
13959 | #ifdef __cplusplus | |
13960 | } | |
252b5132 RH |
13961 | #endif |
13962 | ||
5464f5a1 NN |
13963 | int |
13964 | main () | |
13965 | { | |
13966 | return f != $ac_func; | |
13967 | ; | |
13968 | return 0; | |
13969 | } | |
13970 | _ACEOF | |
13971 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13973 | (eval $ac_link) 2>conftest.er1 | |
13974 | ac_status=$? | |
13975 | grep -v '^ *+' conftest.er1 >conftest.err | |
13976 | rm -f conftest.er1 | |
13977 | cat conftest.err >&5 | |
13978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13979 | (exit $ac_status); } && | |
6ec7057a | 13980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
13981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13982 | (eval $ac_try) 2>&5 | |
13983 | ac_status=$? | |
13984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13985 | (exit $ac_status); }; } && | |
13986 | { ac_try='test -s conftest$ac_exeext' | |
13987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13988 | (eval $ac_try) 2>&5 | |
13989 | ac_status=$? | |
13990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13991 | (exit $ac_status); }; }; then | |
13992 | eval "$as_ac_var=yes" | |
13993 | else | |
13994 | echo "$as_me: failed program was:" >&5 | |
13995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13996 | ||
13997 | eval "$as_ac_var=no" | |
13998 | fi | |
13999 | rm -f conftest.err conftest.$ac_objext \ | |
14000 | conftest$ac_exeext conftest.$ac_ext | |
14001 | fi | |
14002 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14003 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14004 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14005 | cat >>confdefs.h <<_ACEOF | |
14006 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14007 | _ACEOF | |
252b5132 | 14008 | |
252b5132 RH |
14009 | fi |
14010 | done | |
14011 | ||
5464f5a1 NN |
14012 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
14013 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
14014 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
14015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
14016 | else |
14017 | if test "$cross_compiling" = yes; then | |
14018 | ac_cv_func_mmap_fixed_mapped=no | |
14019 | else | |
5464f5a1 NN |
14020 | cat >conftest.$ac_ext <<_ACEOF |
14021 | /* confdefs.h. */ | |
14022 | _ACEOF | |
14023 | cat confdefs.h >>conftest.$ac_ext | |
14024 | cat >>conftest.$ac_ext <<_ACEOF | |
14025 | /* end confdefs.h. */ | |
14026 | $ac_includes_default | |
14027 | /* malloc might have been renamed as rpl_malloc. */ | |
14028 | #undef malloc | |
6be7c12c | 14029 | |
252b5132 RH |
14030 | /* Thanks to Mike Haertel and Jim Avera for this test. |
14031 | Here is a matrix of mmap possibilities: | |
14032 | mmap private not fixed | |
14033 | mmap private fixed at somewhere currently unmapped | |
14034 | mmap private fixed at somewhere already mapped | |
14035 | mmap shared not fixed | |
14036 | mmap shared fixed at somewhere currently unmapped | |
14037 | mmap shared fixed at somewhere already mapped | |
14038 | For private mappings, we should verify that changes cannot be read() | |
14039 | back from the file, nor mmap's back from the file at a different | |
14040 | address. (There have been systems where private was not correctly | |
14041 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 14042 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
14043 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
14044 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 14045 | propagated back to all the places they're supposed to be. |
252b5132 RH |
14046 | |
14047 | Grep wants private fixed already mapped. | |
14048 | The main things grep needs to know about mmap are: | |
14049 | * does it exist and is it safe to write into the mmap'd area | |
14050 | * how to use it (BSD variants) */ | |
5464f5a1 | 14051 | |
252b5132 RH |
14052 | #include <fcntl.h> |
14053 | #include <sys/mman.h> | |
14054 | ||
5464f5a1 NN |
14055 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
14056 | char *malloc (); | |
14057 | #endif | |
6be7c12c | 14058 | |
5464f5a1 NN |
14059 | /* This mess was copied from the GNU getpagesize.h. */ |
14060 | #if !HAVE_GETPAGESIZE | |
252b5132 | 14061 | /* Assume that all systems that can run configure have sys/param.h. */ |
5464f5a1 | 14062 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
14063 | # define HAVE_SYS_PARAM_H 1 |
14064 | # endif | |
14065 | ||
14066 | # ifdef _SC_PAGESIZE | |
14067 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
14068 | # else /* no _SC_PAGESIZE */ | |
5464f5a1 | 14069 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
14070 | # include <sys/param.h> |
14071 | # ifdef EXEC_PAGESIZE | |
14072 | # define getpagesize() EXEC_PAGESIZE | |
14073 | # else /* no EXEC_PAGESIZE */ | |
14074 | # ifdef NBPG | |
14075 | # define getpagesize() NBPG * CLSIZE | |
14076 | # ifndef CLSIZE | |
14077 | # define CLSIZE 1 | |
14078 | # endif /* no CLSIZE */ | |
14079 | # else /* no NBPG */ | |
14080 | # ifdef NBPC | |
14081 | # define getpagesize() NBPC | |
14082 | # else /* no NBPC */ | |
14083 | # ifdef PAGESIZE | |
14084 | # define getpagesize() PAGESIZE | |
14085 | # endif /* PAGESIZE */ | |
14086 | # endif /* no NBPC */ | |
14087 | # endif /* no NBPG */ | |
14088 | # endif /* no EXEC_PAGESIZE */ | |
14089 | # else /* no HAVE_SYS_PARAM_H */ | |
14090 | # define getpagesize() 8192 /* punt totally */ | |
14091 | # endif /* no HAVE_SYS_PARAM_H */ | |
14092 | # endif /* no _SC_PAGESIZE */ | |
14093 | ||
5464f5a1 NN |
14094 | #endif /* no HAVE_GETPAGESIZE */ |
14095 | ||
14096 | int | |
14097 | main () | |
14098 | { | |
14099 | char *data, *data2, *data3; | |
14100 | int i, pagesize; | |
14101 | int fd; | |
14102 | ||
14103 | pagesize = getpagesize (); | |
14104 | ||
14105 | /* First, make a file with some known garbage in it. */ | |
14106 | data = (char *) malloc (pagesize); | |
14107 | if (!data) | |
14108 | exit (1); | |
14109 | for (i = 0; i < pagesize; ++i) | |
14110 | *(data + i) = rand (); | |
14111 | umask (0); | |
14112 | fd = creat ("conftest.mmap", 0600); | |
14113 | if (fd < 0) | |
14114 | exit (1); | |
14115 | if (write (fd, data, pagesize) != pagesize) | |
14116 | exit (1); | |
14117 | close (fd); | |
14118 | ||
14119 | /* Next, try to mmap the file at a fixed address which already has | |
14120 | something else allocated at it. If we can, also make sure that | |
14121 | we see the same garbage. */ | |
14122 | fd = open ("conftest.mmap", O_RDWR); | |
14123 | if (fd < 0) | |
14124 | exit (1); | |
14125 | data2 = (char *) malloc (2 * pagesize); | |
14126 | if (!data2) | |
14127 | exit (1); | |
14128 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
14129 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
14130 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
14131 | exit (1); | |
14132 | for (i = 0; i < pagesize; ++i) | |
14133 | if (*(data + i) != *(data2 + i)) | |
14134 | exit (1); | |
14135 | ||
14136 | /* Finally, make sure that changes to the mapped area do not | |
14137 | percolate back to the file as seen by read(). (This is a bug on | |
14138 | some variants of i386 svr4.0.) */ | |
14139 | for (i = 0; i < pagesize; ++i) | |
14140 | *(data2 + i) = *(data2 + i) + 1; | |
14141 | data3 = (char *) malloc (pagesize); | |
14142 | if (!data3) | |
14143 | exit (1); | |
14144 | if (read (fd, data3, pagesize) != pagesize) | |
14145 | exit (1); | |
14146 | for (i = 0; i < pagesize; ++i) | |
14147 | if (*(data + i) != *(data3 + i)) | |
14148 | exit (1); | |
14149 | close (fd); | |
14150 | exit (0); | |
14151 | } | |
14152 | _ACEOF | |
14153 | rm -f conftest$ac_exeext | |
14154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14155 | (eval $ac_link) 2>&5 | |
14156 | ac_status=$? | |
14157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14158 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14160 | (eval $ac_try) 2>&5 | |
14161 | ac_status=$? | |
14162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14163 | (exit $ac_status); }; }; then | |
14164 | ac_cv_func_mmap_fixed_mapped=yes | |
14165 | else | |
14166 | echo "$as_me: program exited with status $ac_status" >&5 | |
14167 | echo "$as_me: failed program was:" >&5 | |
14168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14169 | ||
14170 | ( exit $ac_status ) | |
14171 | ac_cv_func_mmap_fixed_mapped=no | |
14172 | fi | |
14173 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14174 | fi | |
14175 | fi | |
14176 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
14177 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
14178 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
14179 | ||
14180 | cat >>confdefs.h <<\_ACEOF | |
14181 | #define HAVE_MMAP 1 | |
14182 | _ACEOF | |
14183 | ||
14184 | fi | |
14185 | rm -f conftest.mmap | |
14186 | ||
14187 | ||
14188 | ||
14189 | for ac_func in madvise mprotect | |
14190 | do | |
14191 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14192 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14193 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14194 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14196 | else | |
14197 | cat >conftest.$ac_ext <<_ACEOF | |
14198 | /* confdefs.h. */ | |
14199 | _ACEOF | |
14200 | cat confdefs.h >>conftest.$ac_ext | |
14201 | cat >>conftest.$ac_ext <<_ACEOF | |
14202 | /* end confdefs.h. */ | |
14203 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14204 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14205 | #define $ac_func innocuous_$ac_func | |
14206 | ||
14207 | /* System header to define __stub macros and hopefully few prototypes, | |
14208 | which can conflict with char $ac_func (); below. | |
14209 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14210 | <limits.h> exists even on freestanding compilers. */ | |
14211 | ||
14212 | #ifdef __STDC__ | |
14213 | # include <limits.h> | |
14214 | #else | |
14215 | # include <assert.h> | |
14216 | #endif | |
14217 | ||
14218 | #undef $ac_func | |
14219 | ||
14220 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14221 | #ifdef __cplusplus | |
14222 | extern "C" | |
14223 | { | |
14224 | #endif | |
14225 | /* We use char because int might match the return type of a gcc2 | |
14226 | builtin and then its argument prototype would still apply. */ | |
14227 | char $ac_func (); | |
14228 | /* The GNU C library defines this for functions which it implements | |
14229 | to always fail with ENOSYS. Some functions are actually named | |
14230 | something starting with __ and the normal name is an alias. */ | |
14231 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14232 | choke me | |
14233 | #else | |
14234 | char (*f) () = $ac_func; | |
14235 | #endif | |
14236 | #ifdef __cplusplus | |
14237 | } | |
14238 | #endif | |
14239 | ||
14240 | int | |
14241 | main () | |
14242 | { | |
14243 | return f != $ac_func; | |
14244 | ; | |
14245 | return 0; | |
14246 | } | |
14247 | _ACEOF | |
14248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14250 | (eval $ac_link) 2>conftest.er1 | |
14251 | ac_status=$? | |
14252 | grep -v '^ *+' conftest.er1 >conftest.err | |
14253 | rm -f conftest.er1 | |
14254 | cat conftest.err >&5 | |
14255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14256 | (exit $ac_status); } && | |
6ec7057a | 14257 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
14258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14259 | (eval $ac_try) 2>&5 | |
14260 | ac_status=$? | |
14261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14262 | (exit $ac_status); }; } && | |
14263 | { ac_try='test -s conftest$ac_exeext' | |
14264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14265 | (eval $ac_try) 2>&5 | |
14266 | ac_status=$? | |
14267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14268 | (exit $ac_status); }; }; then | |
14269 | eval "$as_ac_var=yes" | |
14270 | else | |
14271 | echo "$as_me: failed program was:" >&5 | |
14272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14273 | ||
14274 | eval "$as_ac_var=no" | |
14275 | fi | |
14276 | rm -f conftest.err conftest.$ac_objext \ | |
14277 | conftest$ac_exeext conftest.$ac_ext | |
14278 | fi | |
14279 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14280 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14281 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14282 | cat >>confdefs.h <<_ACEOF | |
14283 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14284 | _ACEOF | |
14285 | ||
14286 | fi | |
14287 | done | |
14288 | ||
14289 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
14290 | true+yes ) | |
14291 | cat >>confdefs.h <<\_ACEOF | |
14292 | #define USE_MMAP 1 | |
14293 | _ACEOF | |
14294 | ;; | |
14295 | esac | |
14296 | ||
14297 | rm -f doc/config.status | |
14298 | ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" | |
14299 | ||
14300 | ac_config_commands="$ac_config_commands default" | |
14301 | ||
14302 | cat >confcache <<\_ACEOF | |
14303 | # This file is a shell script that caches the results of configure | |
14304 | # tests run on this system so they can be shared between configure | |
14305 | # scripts and configure runs, see configure's option --config-cache. | |
14306 | # It is not useful on other systems. If it contains results you don't | |
14307 | # want to keep, you may remove or edit it. | |
14308 | # | |
14309 | # config.status only pays attention to the cache file if you give it | |
14310 | # the --recheck option to rerun configure. | |
14311 | # | |
14312 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14313 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14314 | # following values. | |
14315 | ||
14316 | _ACEOF | |
14317 | ||
14318 | # The following way of writing the cache mishandles newlines in values, | |
14319 | # but we know of no workaround that is simple, portable, and efficient. | |
14320 | # So, don't put newlines in cache variables' values. | |
14321 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14322 | # and sets the high bit in the cache file unless we assign to the vars. | |
14323 | { | |
14324 | (set) 2>&1 | | |
14325 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
14326 | *ac_space=\ *) | |
14327 | # `set' does not quote correctly, so add quotes (double-quote | |
14328 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
14329 | sed -n \ | |
14330 | "s/'/'\\\\''/g; | |
14331 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
14332 | ;; | |
14333 | *) | |
14334 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14335 | sed -n \ | |
14336 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
14337 | ;; | |
14338 | esac; | |
14339 | } | | |
14340 | sed ' | |
14341 | t clear | |
14342 | : clear | |
14343 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
14344 | t end | |
14345 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
14346 | : end' >>confcache | |
14347 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
14348 | if test -w $cache_file; then | |
14349 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
14350 | cat confcache >$cache_file | |
14351 | else | |
14352 | echo "not updating unwritable cache $cache_file" | |
14353 | fi | |
14354 | fi | |
14355 | rm -f confcache | |
14356 | ||
14357 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14358 | # Let make expand exec_prefix. | |
14359 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14360 | ||
14361 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14362 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14363 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14364 | # (actually we leave an empty line to preserve line numbers). | |
14365 | if test "x$srcdir" = x.; then | |
14366 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14367 | s/:*\$(srcdir):*/:/; | |
14368 | s/:*\${srcdir}:*/:/; | |
14369 | s/:*@srcdir@:*/:/; | |
14370 | s/^\([^=]*=[ ]*\):*/\1/; | |
14371 | s/:*$//; | |
14372 | s/^[^=]*=[ ]*$//; | |
14373 | }' | |
14374 | fi | |
14375 | ||
14376 | DEFS=-DHAVE_CONFIG_H | |
14377 | ||
14378 | ac_libobjs= | |
14379 | ac_ltlibobjs= | |
14380 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14381 | # 1. Remove the extension, and $U if already installed. | |
14382 | ac_i=`echo "$ac_i" | | |
14383 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
14384 | # 2. Add them. | |
14385 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
14386 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
14387 | done | |
14388 | LIBOBJS=$ac_libobjs | |
14389 | ||
14390 | LTLIBOBJS=$ac_ltlibobjs | |
14391 | ||
14392 | ||
f5385ebf AM |
14393 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
14394 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
14395 | Usually this means the macro was only invoked conditionally." >&5 | |
14396 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
14397 | Usually this means the macro was only invoked conditionally." >&2;} | |
14398 | { (exit 1); exit 1; }; } | |
14399 | fi | |
14400 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
14401 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
14402 | Usually this means the macro was only invoked conditionally." >&5 | |
14403 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
14404 | Usually this means the macro was only invoked conditionally." >&2;} | |
14405 | { (exit 1); exit 1; }; } | |
14406 | fi | |
14407 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
14408 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
14409 | Usually this means the macro was only invoked conditionally." >&5 | |
14410 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
14411 | Usually this means the macro was only invoked conditionally." >&2;} | |
14412 | { (exit 1); exit 1; }; } | |
14413 | fi | |
14414 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then | |
14415 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
14416 | Usually this means the macro was only invoked conditionally." >&5 | |
14417 | echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
14418 | Usually this means the macro was only invoked conditionally." >&2;} | |
14419 | { (exit 1); exit 1; }; } | |
14420 | fi | |
5464f5a1 NN |
14421 | |
14422 | : ${CONFIG_STATUS=./config.status} | |
14423 | ac_clean_files_save=$ac_clean_files | |
14424 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14425 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
14426 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14427 | cat >$CONFIG_STATUS <<_ACEOF | |
14428 | #! $SHELL | |
14429 | # Generated by $as_me. | |
14430 | # Run this file to recreate the current configuration. | |
14431 | # Compiler output produced by configure, useful for debugging | |
14432 | # configure, is in config.log if it exists. | |
14433 | ||
14434 | debug=false | |
14435 | ac_cs_recheck=false | |
14436 | ac_cs_silent=false | |
14437 | SHELL=\${CONFIG_SHELL-$SHELL} | |
14438 | _ACEOF | |
14439 | ||
14440 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14441 | ## --------------------- ## | |
14442 | ## M4sh Initialization. ## | |
14443 | ## --------------------- ## | |
14444 | ||
14445 | # Be Bourne compatible | |
14446 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14447 | emulate sh | |
14448 | NULLCMD=: | |
14449 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
14450 | # is contrary to our usage. Disable this feature. | |
14451 | alias -g '${1+"$@"}'='"$@"' | |
14452 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
14453 | set -o posix | |
14454 | fi | |
14455 | DUALCASE=1; export DUALCASE # for MKS sh | |
14456 | ||
14457 | # Support unset when possible. | |
14458 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
14459 | as_unset=unset | |
14460 | else | |
14461 | as_unset=false | |
14462 | fi | |
14463 | ||
14464 | ||
14465 | # Work around bugs in pre-3.0 UWIN ksh. | |
14466 | $as_unset ENV MAIL MAILPATH | |
14467 | PS1='$ ' | |
14468 | PS2='> ' | |
14469 | PS4='+ ' | |
14470 | ||
14471 | # NLS nuisances. | |
14472 | for as_var in \ | |
14473 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
14474 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
14475 | LC_TELEPHONE LC_TIME | |
14476 | do | |
14477 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
14478 | eval $as_var=C; export $as_var | |
14479 | else | |
14480 | $as_unset $as_var | |
14481 | fi | |
14482 | done | |
14483 | ||
14484 | # Required to use basename. | |
14485 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
14486 | as_expr=expr | |
14487 | else | |
14488 | as_expr=false | |
14489 | fi | |
14490 | ||
14491 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
14492 | as_basename=basename | |
14493 | else | |
14494 | as_basename=false | |
14495 | fi | |
252b5132 | 14496 | |
6be7c12c | 14497 | |
5464f5a1 NN |
14498 | # Name of the executable. |
14499 | as_me=`$as_basename "$0" || | |
14500 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
14501 | X"$0" : 'X\(//\)$' \| \ | |
14502 | X"$0" : 'X\(/\)$' \| \ | |
14503 | . : '\(.\)' 2>/dev/null || | |
14504 | echo X/"$0" | | |
14505 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
14506 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
14507 | /^X\/\(\/\).*/{ s//\1/; q; } | |
14508 | s/.*/./; q'` | |
14509 | ||
14510 | ||
14511 | # PATH needs CR, and LINENO needs CR and PATH. | |
14512 | # Avoid depending upon Character Ranges. | |
14513 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14514 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14515 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14516 | as_cr_digits='0123456789' | |
14517 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14518 | ||
14519 | # The user is always right. | |
14520 | if test "${PATH_SEPARATOR+set}" != set; then | |
14521 | echo "#! /bin/sh" >conf$$.sh | |
14522 | echo "exit 0" >>conf$$.sh | |
14523 | chmod +x conf$$.sh | |
14524 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14525 | PATH_SEPARATOR=';' | |
14526 | else | |
14527 | PATH_SEPARATOR=: | |
14528 | fi | |
14529 | rm -f conf$$.sh | |
14530 | fi | |
14531 | ||
14532 | ||
14533 | as_lineno_1=$LINENO | |
14534 | as_lineno_2=$LINENO | |
14535 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
14536 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
14537 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
14538 | # Find who we are. Look in the path if we contain no path at all | |
14539 | # relative or not. | |
14540 | case $0 in | |
14541 | *[\\/]* ) as_myself=$0 ;; | |
14542 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14543 | for as_dir in $PATH | |
14544 | do | |
14545 | IFS=$as_save_IFS | |
14546 | test -z "$as_dir" && as_dir=. | |
14547 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14548 | done | |
14549 | ||
14550 | ;; | |
14551 | esac | |
14552 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14553 | # in which case we are not to be found in the path. | |
14554 | if test "x$as_myself" = x; then | |
14555 | as_myself=$0 | |
14556 | fi | |
14557 | if test ! -f "$as_myself"; then | |
14558 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
14559 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
14560 | { (exit 1); exit 1; }; } | |
14561 | fi | |
14562 | case $CONFIG_SHELL in | |
14563 | '') | |
14564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14565 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
14566 | do | |
14567 | IFS=$as_save_IFS | |
14568 | test -z "$as_dir" && as_dir=. | |
14569 | for as_base in sh bash ksh sh5; do | |
14570 | case $as_dir in | |
14571 | /*) | |
14572 | if ("$as_dir/$as_base" -c ' | |
14573 | as_lineno_1=$LINENO | |
14574 | as_lineno_2=$LINENO | |
14575 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
14576 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
14577 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
14578 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
14579 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
14580 | CONFIG_SHELL=$as_dir/$as_base | |
14581 | export CONFIG_SHELL | |
14582 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
14583 | fi;; | |
14584 | esac | |
14585 | done | |
14586 | done | |
14587 | ;; | |
14588 | esac | |
14589 | ||
14590 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
14591 | # uniformly replaced by the line number. The first 'sed' inserts a | |
14592 | # line-number line before each line; the second 'sed' does the real | |
14593 | # work. The second script uses 'N' to pair each line-number line | |
14594 | # with the numbered line, and appends trailing '-' during | |
14595 | # substitution so that $LINENO is not a special case at line end. | |
14596 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
14597 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
14598 | sed '=' <$as_myself | | |
14599 | sed ' | |
14600 | N | |
14601 | s,$,-, | |
14602 | : loop | |
14603 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
14604 | t loop | |
14605 | s,-$,, | |
14606 | s,^['$as_cr_digits']*\n,, | |
14607 | ' >$as_me.lineno && | |
14608 | chmod +x $as_me.lineno || | |
14609 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
14610 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
14611 | { (exit 1); exit 1; }; } | |
14612 | ||
14613 | # Don't try to exec as it changes $[0], causing all sort of problems | |
14614 | # (the dirname of $[0] is not the place where we might find the | |
14615 | # original and so on. Autoconf is especially sensible to this). | |
14616 | . ./$as_me.lineno | |
14617 | # Exit status is that of the last command. | |
14618 | exit | |
252b5132 | 14619 | } |
6be7c12c | 14620 | |
5464f5a1 NN |
14621 | |
14622 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
14623 | *c*,-n*) ECHO_N= ECHO_C=' | |
14624 | ' ECHO_T=' ' ;; | |
14625 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
14626 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
14627 | esac | |
14628 | ||
14629 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
14630 | as_expr=expr | |
252b5132 | 14631 | else |
5464f5a1 | 14632 | as_expr=false |
252b5132 | 14633 | fi |
5464f5a1 NN |
14634 | |
14635 | rm -f conf$$ conf$$.exe conf$$.file | |
14636 | echo >conf$$.file | |
14637 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
14638 | # We could just check for DJGPP; but this test a) works b) is more generic | |
14639 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
14640 | if test -f conf$$.exe; then | |
14641 | # Don't use ln at all; we don't have any links | |
14642 | as_ln_s='cp -p' | |
14643 | else | |
14644 | as_ln_s='ln -s' | |
14645 | fi | |
14646 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14647 | as_ln_s=ln | |
14648 | else | |
14649 | as_ln_s='cp -p' | |
252b5132 | 14650 | fi |
5464f5a1 | 14651 | rm -f conf$$ conf$$.exe conf$$.file |
6be7c12c | 14652 | |
5464f5a1 NN |
14653 | if mkdir -p . 2>/dev/null; then |
14654 | as_mkdir_p=: | |
14655 | else | |
14656 | test -d ./-p && rmdir ./-p | |
14657 | as_mkdir_p=false | |
252b5132 | 14658 | fi |
b3baf5d0 | 14659 | |
5464f5a1 | 14660 | as_executable_p="test -f" |
252b5132 | 14661 | |
5464f5a1 NN |
14662 | # Sed expression to map a string onto a valid CPP name. |
14663 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
252b5132 | 14664 | |
5464f5a1 NN |
14665 | # Sed expression to map a string onto a valid variable name. |
14666 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6be7c12c | 14667 | |
252b5132 | 14668 | |
5464f5a1 NN |
14669 | # IFS |
14670 | # We need space, tab and new line, in precisely that order. | |
14671 | as_nl=' | |
14672 | ' | |
14673 | IFS=" $as_nl" | |
252b5132 | 14674 | |
5464f5a1 NN |
14675 | # CDPATH. |
14676 | $as_unset CDPATH | |
14677 | ||
14678 | exec 6>&1 | |
14679 | ||
14680 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
14681 | # report actual input values of CONFIG_FILES etc. instead of their | |
14682 | # values after options handling. Logging --version etc. is OK. | |
14683 | exec 5>>config.log | |
14684 | { | |
14685 | echo | |
14686 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14687 | ## Running $as_me. ## | |
14688 | _ASBOX | |
14689 | } >&5 | |
14690 | cat >&5 <<_CSEOF | |
14691 | ||
14692 | This file was extended by $as_me, which was | |
14693 | generated by GNU Autoconf 2.59. Invocation command line was | |
14694 | ||
14695 | CONFIG_FILES = $CONFIG_FILES | |
14696 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14697 | CONFIG_LINKS = $CONFIG_LINKS | |
14698 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14699 | $ $0 $@ | |
14700 | ||
14701 | _CSEOF | |
14702 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
14703 | echo >&5 | |
14704 | _ACEOF | |
14705 | ||
14706 | # Files that config.status was made for. | |
14707 | if test -n "$ac_config_files"; then | |
14708 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
6be7c12c | 14709 | fi |
5464f5a1 NN |
14710 | |
14711 | if test -n "$ac_config_headers"; then | |
14712 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
6be7c12c | 14713 | fi |
252b5132 | 14714 | |
5464f5a1 NN |
14715 | if test -n "$ac_config_links"; then |
14716 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
252b5132 | 14717 | fi |
252b5132 | 14718 | |
5464f5a1 NN |
14719 | if test -n "$ac_config_commands"; then |
14720 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
14721 | fi | |
252b5132 | 14722 | |
5464f5a1 NN |
14723 | cat >>$CONFIG_STATUS <<\_ACEOF |
14724 | ||
14725 | ac_cs_usage="\ | |
14726 | \`$as_me' instantiates files from templates according to the | |
14727 | current configuration. | |
14728 | ||
14729 | Usage: $0 [OPTIONS] [FILE]... | |
14730 | ||
14731 | -h, --help print this help, then exit | |
14732 | -V, --version print version number, then exit | |
14733 | -q, --quiet do not print progress messages | |
14734 | -d, --debug don't remove temporary files | |
14735 | --recheck update $as_me by reconfiguring in the same conditions | |
14736 | --file=FILE[:TEMPLATE] | |
14737 | instantiate the configuration file FILE | |
14738 | --header=FILE[:TEMPLATE] | |
14739 | instantiate the configuration header FILE | |
14740 | ||
14741 | Configuration files: | |
14742 | $config_files | |
14743 | ||
14744 | Configuration headers: | |
14745 | $config_headers | |
14746 | ||
14747 | Configuration commands: | |
14748 | $config_commands | |
14749 | ||
14750 | Report bugs to <bug-autoconf@gnu.org>." | |
14751 | _ACEOF | |
14752 | ||
14753 | cat >>$CONFIG_STATUS <<_ACEOF | |
14754 | ac_cs_version="\\ | |
14755 | config.status | |
14756 | configured by $0, generated by GNU Autoconf 2.59, | |
14757 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
14758 | ||
14759 | Copyright (C) 2003 Free Software Foundation, Inc. | |
14760 | This config.status script is free software; the Free Software Foundation | |
14761 | gives unlimited permission to copy, distribute and modify it." | |
14762 | srcdir=$srcdir | |
14763 | INSTALL="$INSTALL" | |
14764 | _ACEOF | |
14765 | ||
14766 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14767 | # If no file are specified by the user, then we need to provide default | |
14768 | # value. By we need to know if files were specified by the user. | |
14769 | ac_need_defaults=: | |
14770 | while test $# != 0 | |
14771 | do | |
14772 | case $1 in | |
14773 | --*=*) | |
14774 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
14775 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
14776 | ac_shift=: | |
6be7c12c | 14777 | ;; |
5464f5a1 NN |
14778 | -*) |
14779 | ac_option=$1 | |
14780 | ac_optarg=$2 | |
14781 | ac_shift=shift | |
6be7c12c | 14782 | ;; |
5464f5a1 NN |
14783 | *) # This is not an option, so the user has probably given explicit |
14784 | # arguments. | |
14785 | ac_option=$1 | |
14786 | ac_need_defaults=false;; | |
14787 | esac | |
252b5132 | 14788 | |
5464f5a1 NN |
14789 | case $ac_option in |
14790 | # Handling of the options. | |
14791 | _ACEOF | |
14792 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14793 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
14794 | ac_cs_recheck=: ;; | |
14795 | --version | --vers* | -V ) | |
14796 | echo "$ac_cs_version"; exit 0 ;; | |
14797 | --he | --h) | |
14798 | # Conflict between --help and --header | |
14799 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
14800 | Try \`$0 --help' for more information." >&5 | |
14801 | echo "$as_me: error: ambiguous option: $1 | |
14802 | Try \`$0 --help' for more information." >&2;} | |
14803 | { (exit 1); exit 1; }; };; | |
14804 | --help | --hel | -h ) | |
14805 | echo "$ac_cs_usage"; exit 0 ;; | |
14806 | --debug | --d* | -d ) | |
14807 | debug=: ;; | |
14808 | --file | --fil | --fi | --f ) | |
14809 | $ac_shift | |
14810 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
14811 | ac_need_defaults=false;; | |
14812 | --header | --heade | --head | --hea ) | |
14813 | $ac_shift | |
14814 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
14815 | ac_need_defaults=false;; | |
14816 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
14817 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14818 | ac_cs_silent=: ;; | |
6be7c12c | 14819 | |
5464f5a1 NN |
14820 | # This is an error. |
14821 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
14822 | Try \`$0 --help' for more information." >&5 | |
14823 | echo "$as_me: error: unrecognized option: $1 | |
14824 | Try \`$0 --help' for more information." >&2;} | |
14825 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 14826 | |
5464f5a1 | 14827 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 14828 | |
5464f5a1 NN |
14829 | esac |
14830 | shift | |
14831 | done | |
6be7c12c | 14832 | |
5464f5a1 | 14833 | ac_configure_extra_args= |
252b5132 | 14834 | |
5464f5a1 NN |
14835 | if $ac_cs_silent; then |
14836 | exec 6>/dev/null | |
14837 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14838 | fi | |
6be7c12c | 14839 | |
5464f5a1 NN |
14840 | _ACEOF |
14841 | cat >>$CONFIG_STATUS <<_ACEOF | |
14842 | if \$ac_cs_recheck; then | |
14843 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
14844 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
14845 | fi | |
14846 | ||
14847 | _ACEOF | |
14848 | ||
14849 | cat >>$CONFIG_STATUS <<_ACEOF | |
6be7c12c | 14850 | # |
5464f5a1 | 14851 | # INIT-COMMANDS section. |
6be7c12c | 14852 | # |
b3baf5d0 | 14853 | |
f5385ebf | 14854 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
5464f5a1 NN |
14855 | |
14856 | ||
14857 | _ACEOF | |
14858 | ||
14859 | ||
14860 | ||
14861 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14862 | for ac_config_target in $ac_config_targets | |
252b5132 | 14863 | do |
5464f5a1 NN |
14864 | case "$ac_config_target" in |
14865 | # Handling of arguments. | |
14866 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14867 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
14868 | "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; | |
14869 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
f5385ebf | 14870 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
5464f5a1 NN |
14871 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
14872 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
14873 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
14874 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
14875 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
14876 | esac |
14877 | done | |
14878 | ||
5464f5a1 NN |
14879 | # If the user did not use the arguments to specify the items to instantiate, |
14880 | # then the envvar interface is used. Set only those that are not. | |
14881 | # We use the long form for the default assignment because of an extremely | |
14882 | # bizarre bug on SunOS 4.1.3. | |
14883 | if $ac_need_defaults; then | |
14884 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14885 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14886 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
14887 | fi | |
14888 | ||
14889 | # Have a temporary directory for convenience. Make it in the build tree | |
14890 | # simply because there is no reason to put it here, and in addition, | |
14891 | # creating and moving files from /tmp can sometimes cause problems. | |
14892 | # Create a temporary directory, and hook for its removal unless debugging. | |
14893 | $debug || | |
14894 | { | |
14895 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
14896 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
14897 | } | |
b3baf5d0 | 14898 | |
5464f5a1 | 14899 | # Create a (secure) tmp directory for tmp files. |
b3baf5d0 | 14900 | |
5464f5a1 NN |
14901 | { |
14902 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
14903 | test -n "$tmp" && test -d "$tmp" | |
14904 | } || | |
14905 | { | |
14906 | tmp=./confstat$$-$RANDOM | |
14907 | (umask 077 && mkdir $tmp) | |
14908 | } || | |
14909 | { | |
14910 | echo "$me: cannot create a temporary directory in ." >&2 | |
14911 | { (exit 1); exit 1; } | |
14912 | } | |
14913 | ||
14914 | _ACEOF | |
14915 | ||
14916 | cat >>$CONFIG_STATUS <<_ACEOF | |
14917 | ||
14918 | # | |
14919 | # CONFIG_FILES section. | |
14920 | # | |
b3baf5d0 | 14921 | |
5464f5a1 NN |
14922 | # No need to generate the scripts if there are no CONFIG_FILES. |
14923 | # This happens for instance when ./config.status config.h | |
14924 | if test -n "\$CONFIG_FILES"; then | |
14925 | # Protect against being on the right side of a sed subst in config.status. | |
14926 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
14927 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
14928 | s,@SHELL@,$SHELL,;t t | |
14929 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
14930 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
14931 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
14932 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
14933 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
14934 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
14935 | s,@exec_prefix@,$exec_prefix,;t t | |
14936 | s,@prefix@,$prefix,;t t | |
14937 | s,@program_transform_name@,$program_transform_name,;t t | |
14938 | s,@bindir@,$bindir,;t t | |
14939 | s,@sbindir@,$sbindir,;t t | |
14940 | s,@libexecdir@,$libexecdir,;t t | |
14941 | s,@datadir@,$datadir,;t t | |
14942 | s,@sysconfdir@,$sysconfdir,;t t | |
14943 | s,@sharedstatedir@,$sharedstatedir,;t t | |
14944 | s,@localstatedir@,$localstatedir,;t t | |
14945 | s,@libdir@,$libdir,;t t | |
14946 | s,@includedir@,$includedir,;t t | |
14947 | s,@oldincludedir@,$oldincludedir,;t t | |
14948 | s,@infodir@,$infodir,;t t | |
14949 | s,@mandir@,$mandir,;t t | |
14950 | s,@build_alias@,$build_alias,;t t | |
14951 | s,@host_alias@,$host_alias,;t t | |
14952 | s,@target_alias@,$target_alias,;t t | |
14953 | s,@DEFS@,$DEFS,;t t | |
14954 | s,@ECHO_C@,$ECHO_C,;t t | |
14955 | s,@ECHO_N@,$ECHO_N,;t t | |
14956 | s,@ECHO_T@,$ECHO_T,;t t | |
14957 | s,@LIBS@,$LIBS,;t t | |
14958 | s,@build@,$build,;t t | |
14959 | s,@build_cpu@,$build_cpu,;t t | |
14960 | s,@build_vendor@,$build_vendor,;t t | |
14961 | s,@build_os@,$build_os,;t t | |
14962 | s,@host@,$host,;t t | |
14963 | s,@host_cpu@,$host_cpu,;t t | |
14964 | s,@host_vendor@,$host_vendor,;t t | |
14965 | s,@host_os@,$host_os,;t t | |
14966 | s,@target@,$target,;t t | |
14967 | s,@target_cpu@,$target_cpu,;t t | |
14968 | s,@target_vendor@,$target_vendor,;t t | |
14969 | s,@target_os@,$target_os,;t t | |
14970 | s,@CC@,$CC,;t t | |
14971 | s,@CFLAGS@,$CFLAGS,;t t | |
14972 | s,@LDFLAGS@,$LDFLAGS,;t t | |
14973 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
14974 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
14975 | s,@EXEEXT@,$EXEEXT,;t t | |
14976 | s,@OBJEXT@,$OBJEXT,;t t | |
14977 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
14978 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
14979 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
f5385ebf | 14980 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
5464f5a1 NN |
14981 | s,@PACKAGE@,$PACKAGE,;t t |
14982 | s,@VERSION@,$VERSION,;t t | |
14983 | s,@ACLOCAL@,$ACLOCAL,;t t | |
14984 | s,@AUTOCONF@,$AUTOCONF,;t t | |
14985 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
14986 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
14987 | s,@MAKEINFO@,$MAKEINFO,;t t | |
f5385ebf AM |
14988 | s,@install_sh@,$install_sh,;t t |
14989 | s,@STRIP@,$STRIP,;t t | |
14990 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
14991 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
14992 | s,@mkdir_p@,$mkdir_p,;t t | |
14993 | s,@AWK@,$AWK,;t t | |
5464f5a1 | 14994 | s,@SET_MAKE@,$SET_MAKE,;t t |
f5385ebf AM |
14995 | s,@am__leading_dot@,$am__leading_dot,;t t |
14996 | s,@AMTAR@,$AMTAR,;t t | |
14997 | s,@am__tar@,$am__tar,;t t | |
14998 | s,@am__untar@,$am__untar,;t t | |
14999 | s,@DEPDIR@,$DEPDIR,;t t | |
15000 | s,@am__include@,$am__include,;t t | |
15001 | s,@am__quote@,$am__quote,;t t | |
15002 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
15003 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
15004 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
15005 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
15006 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
15007 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
5464f5a1 NN |
15008 | s,@AR@,$AR,;t t |
15009 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
15010 | s,@RANLIB@,$RANLIB,;t t | |
15011 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
15012 | s,@LN_S@,$LN_S,;t t | |
5464f5a1 NN |
15013 | s,@LIBTOOL@,$LIBTOOL,;t t |
15014 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
9e9b66a9 | 15015 | s,@NO_WERROR@,$NO_WERROR,;t t |
5464f5a1 NN |
15016 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
15017 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
15018 | s,@MAINT@,$MAINT,;t t | |
15019 | s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t | |
15020 | s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t | |
24443139 AS |
15021 | s,@host_noncanonical@,$host_noncanonical,;t t |
15022 | s,@target_noncanonical@,$target_noncanonical,;t t | |
5464f5a1 NN |
15023 | s,@bfdlibdir@,$bfdlibdir,;t t |
15024 | s,@bfdincludedir@,$bfdincludedir,;t t | |
15025 | s,@CPP@,$CPP,;t t | |
15026 | s,@EGREP@,$EGREP,;t t | |
15027 | s,@ALLOCA@,$ALLOCA,;t t | |
15028 | s,@USE_NLS@,$USE_NLS,;t t | |
15029 | s,@MSGFMT@,$MSGFMT,;t t | |
15030 | s,@GMSGFMT@,$GMSGFMT,;t t | |
15031 | s,@XGETTEXT@,$XGETTEXT,;t t | |
15032 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
15033 | s,@CATALOGS@,$CATALOGS,;t t | |
15034 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
15035 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
15036 | s,@GMOFILES@,$GMOFILES,;t t | |
15037 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
15038 | s,@INTLDEPS@,$INTLDEPS,;t t | |
15039 | s,@INTLLIBS@,$INTLLIBS,;t t | |
15040 | s,@INTLOBJS@,$INTLOBJS,;t t | |
15041 | s,@POFILES@,$POFILES,;t t | |
15042 | s,@POSUB@,$POSUB,;t t | |
15043 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
15044 | s,@GT_NO@,$GT_NO,;t t | |
15045 | s,@GT_YES@,$GT_YES,;t t | |
15046 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
15047 | s,@l@,$l,;t t | |
15048 | s,@HDEFINES@,$HDEFINES,;t t | |
15049 | s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t | |
15050 | s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t | |
15051 | s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t | |
15052 | s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t | |
15053 | s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t | |
15054 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
15055 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t | |
15056 | s,@COREFILE@,$COREFILE,;t t | |
15057 | s,@COREFLAG@,$COREFLAG,;t t | |
15058 | s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t | |
15059 | s,@WIN32LIBADD@,$WIN32LIBADD,;t t | |
15060 | s,@TDEFINES@,$TDEFINES,;t t | |
15061 | s,@wordsize@,$wordsize,;t t | |
15062 | s,@bfd_libs@,$bfd_libs,;t t | |
15063 | s,@all_backends@,$all_backends,;t t | |
15064 | s,@bfd_backends@,$bfd_backends,;t t | |
15065 | s,@bfd_machines@,$bfd_machines,;t t | |
15066 | s,@bfd_default_target_size@,$bfd_default_target_size,;t t | |
15067 | s,@bfd_file_ptr@,$bfd_file_ptr,;t t | |
15068 | s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t | |
15069 | s,@tdefaults@,$tdefaults,;t t | |
15070 | s,@LIBOBJS@,$LIBOBJS,;t t | |
15071 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
252b5132 | 15072 | CEOF |
252b5132 | 15073 | |
5464f5a1 NN |
15074 | _ACEOF |
15075 | ||
15076 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15077 | # Split the substitutions into bite-sized pieces for seds with | |
15078 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
15079 | ac_max_sed_lines=48 | |
15080 | ac_sed_frag=1 # Number of current file. | |
15081 | ac_beg=1 # First line for current file. | |
15082 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
15083 | ac_more_lines=: | |
15084 | ac_sed_cmds= | |
15085 | while $ac_more_lines; do | |
15086 | if test $ac_beg -gt 1; then | |
15087 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
252b5132 | 15088 | else |
5464f5a1 NN |
15089 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
15090 | fi | |
15091 | if test ! -s $tmp/subs.frag; then | |
15092 | ac_more_lines=false | |
15093 | else | |
15094 | # The purpose of the label and of the branching condition is to | |
15095 | # speed up the sed processing (if there are no `@' at all, there | |
15096 | # is no need to browse any of the substitutions). | |
15097 | # These are the two extra sed commands mentioned above. | |
15098 | (echo ':t | |
15099 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
15100 | if test -z "$ac_sed_cmds"; then | |
15101 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
15102 | else | |
15103 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
15104 | fi | |
15105 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
15106 | ac_beg=$ac_end | |
15107 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
252b5132 | 15108 | fi |
5464f5a1 NN |
15109 | done |
15110 | if test -z "$ac_sed_cmds"; then | |
15111 | ac_sed_cmds=cat | |
252b5132 | 15112 | fi |
5464f5a1 | 15113 | fi # test -n "$CONFIG_FILES" |
6be7c12c | 15114 | |
5464f5a1 NN |
15115 | _ACEOF |
15116 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15117 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
252b5132 | 15118 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
15119 | case $ac_file in |
15120 | - | *:- | *:-:* ) # input from stdin | |
15121 | cat >$tmp/stdin | |
15122 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15123 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
15124 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15125 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
15126 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
15127 | esac |
15128 | ||
5464f5a1 NN |
15129 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
15130 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
15131 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15132 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15133 | X"$ac_file" : 'X\(//\)$' \| \ | |
15134 | X"$ac_file" : 'X\(/\)' \| \ | |
15135 | . : '\(.\)' 2>/dev/null || | |
15136 | echo X"$ac_file" | | |
15137 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15138 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15139 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15140 | /^X\(\/\).*/{ s//\1/; q; } | |
15141 | s/.*/./; q'` | |
15142 | { if $as_mkdir_p; then | |
15143 | mkdir -p "$ac_dir" | |
252b5132 | 15144 | else |
5464f5a1 NN |
15145 | as_dir="$ac_dir" |
15146 | as_dirs= | |
15147 | while test ! -d "$as_dir"; do | |
15148 | as_dirs="$as_dir $as_dirs" | |
15149 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
15150 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15151 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15152 | X"$as_dir" : 'X\(//\)$' \| \ | |
15153 | X"$as_dir" : 'X\(/\)' \| \ | |
15154 | . : '\(.\)' 2>/dev/null || | |
15155 | echo X"$as_dir" | | |
15156 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15157 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15158 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15159 | /^X\(\/\).*/{ s//\1/; q; } | |
15160 | s/.*/./; q'` | |
15161 | done | |
15162 | test ! -n "$as_dirs" || mkdir $as_dirs | |
15163 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
15164 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
15165 | { (exit 1); exit 1; }; }; } | |
15166 | ||
15167 | ac_builddir=. | |
15168 | ||
15169 | if test "$ac_dir" != .; then | |
15170 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
15171 | # A "../" for each directory in $ac_dir_suffix. | |
15172 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
15173 | else | |
15174 | ac_dir_suffix= ac_top_builddir= | |
15175 | fi | |
252b5132 | 15176 | |
5464f5a1 NN |
15177 | case $srcdir in |
15178 | .) # No --srcdir option. We are building in place. | |
15179 | ac_srcdir=. | |
15180 | if test -z "$ac_top_builddir"; then | |
15181 | ac_top_srcdir=. | |
15182 | else | |
15183 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
15184 | fi ;; | |
15185 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
15186 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15187 | ac_top_srcdir=$srcdir ;; | |
252b5132 | 15188 | *) # Relative path. |
5464f5a1 NN |
15189 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
15190 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
15191 | esac | |
252b5132 | 15192 | |
5464f5a1 NN |
15193 | # Do not use `cd foo && pwd` to compute absolute paths, because |
15194 | # the directories may not exist. | |
15195 | case `pwd` in | |
15196 | .) ac_abs_builddir="$ac_dir";; | |
15197 | *) | |
15198 | case "$ac_dir" in | |
15199 | .) ac_abs_builddir=`pwd`;; | |
15200 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
15201 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
15202 | esac;; | |
15203 | esac | |
15204 | case $ac_abs_builddir in | |
15205 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
15206 | *) | |
15207 | case ${ac_top_builddir}. in | |
15208 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
15209 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
15210 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
15211 | esac;; | |
15212 | esac | |
15213 | case $ac_abs_builddir in | |
15214 | .) ac_abs_srcdir=$ac_srcdir;; | |
15215 | *) | |
15216 | case $ac_srcdir in | |
15217 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
15218 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
15219 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
15220 | esac;; | |
15221 | esac | |
15222 | case $ac_abs_builddir in | |
15223 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
15224 | *) | |
15225 | case $ac_top_srcdir in | |
15226 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
15227 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
15228 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
15229 | esac;; | |
15230 | esac | |
252b5132 | 15231 | |
5464f5a1 NN |
15232 | |
15233 | case $INSTALL in | |
15234 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
15235 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
6be7c12c | 15236 | esac |
252b5132 | 15237 | |
5464f5a1 NN |
15238 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15239 | # use $as_me), people would be surprised to read: | |
15240 | # /* config.h. Generated by config.status. */ | |
15241 | if test x"$ac_file" = x-; then | |
15242 | configure_input= | |
15243 | else | |
15244 | configure_input="$ac_file. " | |
15245 | fi | |
15246 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
15247 | sed 's,.*/,,'` by configure." | |
15248 | ||
15249 | # First look for the input files in the build tree, otherwise in the | |
15250 | # src tree. | |
15251 | ac_file_inputs=`IFS=: | |
15252 | for f in $ac_file_in; do | |
15253 | case $f in | |
15254 | -) echo $tmp/stdin ;; | |
15255 | [\\/$]*) | |
15256 | # Absolute (can't be DOS-style, as IFS=:) | |
15257 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
15258 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
15259 | { (exit 1); exit 1; }; } | |
15260 | echo "$f";; | |
15261 | *) # Relative | |
15262 | if test -f "$f"; then | |
15263 | # Build tree | |
15264 | echo "$f" | |
15265 | elif test -f "$srcdir/$f"; then | |
15266 | # Source tree | |
15267 | echo "$srcdir/$f" | |
15268 | else | |
15269 | # /dev/null tree | |
15270 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
15271 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
15272 | { (exit 1); exit 1; }; } | |
15273 | fi;; | |
15274 | esac | |
15275 | done` || { (exit 1); exit 1; } | |
6ec7057a RH |
15276 | |
15277 | if test x"$ac_file" != x-; then | |
15278 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
15279 | echo "$as_me: creating $ac_file" >&6;} | |
15280 | rm -f "$ac_file" | |
15281 | fi | |
5464f5a1 NN |
15282 | _ACEOF |
15283 | cat >>$CONFIG_STATUS <<_ACEOF | |
15284 | sed "$ac_vpsub | |
15285 | $extrasub | |
15286 | _ACEOF | |
15287 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15288 | :t | |
15289 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
15290 | s,@configure_input@,$configure_input,;t t | |
15291 | s,@srcdir@,$ac_srcdir,;t t | |
15292 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
15293 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
15294 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
15295 | s,@builddir@,$ac_builddir,;t t | |
15296 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
15297 | s,@top_builddir@,$ac_top_builddir,;t t | |
15298 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
15299 | s,@INSTALL@,$ac_INSTALL,;t t | |
15300 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
15301 | rm -f $tmp/stdin | |
15302 | if test x"$ac_file" != x-; then | |
15303 | mv $tmp/out $ac_file | |
15304 | else | |
15305 | cat $tmp/out | |
15306 | rm -f $tmp/out | |
15307 | fi | |
15308 | ||
15309 | done | |
15310 | _ACEOF | |
15311 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15312 | ||
15313 | # | |
15314 | # CONFIG_HEADER section. | |
15315 | # | |
252b5132 RH |
15316 | |
15317 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
15318 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
15319 | # | |
15320 | # ac_d sets the value in "#define NAME VALUE" lines. | |
5464f5a1 NN |
15321 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
15322 | ac_dB='[ ].*$,\1#\2' | |
15323 | ac_dC=' ' | |
15324 | ac_dD=',;t' | |
15325 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
15326 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
15327 | ac_uB='$,\1#\2define\3' | |
252b5132 | 15328 | ac_uC=' ' |
5464f5a1 NN |
15329 | ac_uD=',;t' |
15330 | ||
15331 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 15332 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
15333 | case $ac_file in |
15334 | - | *:- | *:-:* ) # input from stdin | |
15335 | cat >$tmp/stdin | |
15336 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15337 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
15338 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15339 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
15340 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
15341 | esac |
15342 | ||
5464f5a1 NN |
15343 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
15344 | echo "$as_me: creating $ac_file" >&6;} | |
15345 | ||
15346 | # First look for the input files in the build tree, otherwise in the | |
15347 | # src tree. | |
15348 | ac_file_inputs=`IFS=: | |
15349 | for f in $ac_file_in; do | |
15350 | case $f in | |
15351 | -) echo $tmp/stdin ;; | |
15352 | [\\/$]*) | |
15353 | # Absolute (can't be DOS-style, as IFS=:) | |
15354 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
15355 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
15356 | { (exit 1); exit 1; }; } | |
15357 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
15358 | echo "$f";; | |
15359 | *) # Relative | |
15360 | if test -f "$f"; then | |
15361 | # Build tree | |
15362 | echo "$f" | |
15363 | elif test -f "$srcdir/$f"; then | |
15364 | # Source tree | |
15365 | echo "$srcdir/$f" | |
15366 | else | |
15367 | # /dev/null tree | |
15368 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
15369 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
15370 | { (exit 1); exit 1; }; } | |
15371 | fi;; | |
15372 | esac | |
15373 | done` || { (exit 1); exit 1; } | |
15374 | # Remove the trailing spaces. | |
15375 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
15376 | ||
15377 | _ACEOF | |
15378 | ||
15379 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
15380 | # `conftest.undefs', that substitutes the proper values into | |
15381 | # config.h.in to produce config.h. The first handles `#define' | |
15382 | # templates, and the second `#undef' templates. | |
15383 | # And first: Protect against being on the right side of a sed subst in | |
15384 | # config.status. Protect against being in an unquoted here document | |
15385 | # in config.status. | |
15386 | rm -f conftest.defines conftest.undefs | |
15387 | # Using a here document instead of a string reduces the quoting nightmare. | |
15388 | # Putting comments in sed scripts is not portable. | |
15389 | # | |
15390 | # `end' is used to avoid that the second main sed command (meant for | |
15391 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
15392 | # See the Autoconf documentation for `clear'. | |
15393 | cat >confdef2sed.sed <<\_ACEOF | |
15394 | s/[\\&,]/\\&/g | |
15395 | s,[\\$`],\\&,g | |
15396 | t clear | |
15397 | : clear | |
15398 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
15399 | t end | |
15400 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
15401 | : end | |
15402 | _ACEOF | |
15403 | # If some macros were called several times there might be several times | |
15404 | # the same #defines, which is useless. Nevertheless, we may not want to | |
15405 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
15406 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
15407 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
15408 | rm -f confdef2sed.sed | |
252b5132 RH |
15409 | |
15410 | # This sed command replaces #undef with comments. This is necessary, for | |
15411 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
15412 | # on some systems where configure will not decide to define it. | |
5464f5a1 NN |
15413 | cat >>conftest.undefs <<\_ACEOF |
15414 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
15415 | _ACEOF | |
15416 | ||
15417 | # Break up conftest.defines because some shells have a limit on the size | |
15418 | # of here documents, and old seds have small limits too (100 cmds). | |
15419 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
15420 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
15421 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
15422 | echo ' :' >>$CONFIG_STATUS | |
15423 | rm -f conftest.tail | |
15424 | while grep . conftest.defines >/dev/null | |
15425 | do | |
15426 | # Write a limited-size here document to $tmp/defines.sed. | |
15427 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
15428 | # Speed up: don't consider the non `#define' lines. | |
15429 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
15430 | # Work around the forget-to-reset-the-flag bug. | |
15431 | echo 't clr' >>$CONFIG_STATUS | |
15432 | echo ': clr' >>$CONFIG_STATUS | |
15433 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
15434 | echo 'CEOF | |
15435 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
15436 | rm -f $tmp/in | |
15437 | mv $tmp/out $tmp/in | |
15438 | ' >>$CONFIG_STATUS | |
15439 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
15440 | rm -f conftest.defines | |
15441 | mv conftest.tail conftest.defines | |
15442 | done | |
15443 | rm -f conftest.defines | |
15444 | echo ' fi # grep' >>$CONFIG_STATUS | |
15445 | echo >>$CONFIG_STATUS | |
252b5132 | 15446 | |
5464f5a1 NN |
15447 | # Break up conftest.undefs because some shells have a limit on the size |
15448 | # of here documents, and old seds have small limits too (100 cmds). | |
15449 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 15450 | rm -f conftest.tail |
5464f5a1 | 15451 | while grep . conftest.undefs >/dev/null |
252b5132 | 15452 | do |
5464f5a1 NN |
15453 | # Write a limited-size here document to $tmp/undefs.sed. |
15454 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
15455 | # Speed up: don't consider the non `#undef' | |
15456 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
15457 | # Work around the forget-to-reset-the-flag bug. | |
15458 | echo 't clr' >>$CONFIG_STATUS | |
15459 | echo ': clr' >>$CONFIG_STATUS | |
15460 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 15461 | echo 'CEOF |
5464f5a1 NN |
15462 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
15463 | rm -f $tmp/in | |
15464 | mv $tmp/out $tmp/in | |
15465 | ' >>$CONFIG_STATUS | |
15466 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
15467 | rm -f conftest.undefs | |
15468 | mv conftest.tail conftest.undefs | |
252b5132 | 15469 | done |
5464f5a1 NN |
15470 | rm -f conftest.undefs |
15471 | ||
15472 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15473 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15474 | # use $as_me), people would be surprised to read: | |
15475 | # /* config.h. Generated by config.status. */ | |
15476 | if test x"$ac_file" = x-; then | |
15477 | echo "/* Generated by configure. */" >$tmp/config.h | |
15478 | else | |
15479 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
15480 | fi | |
15481 | cat $tmp/in >>$tmp/config.h | |
15482 | rm -f $tmp/in | |
15483 | if test x"$ac_file" != x-; then | |
15484 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
15485 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
15486 | echo "$as_me: $ac_file is unchanged" >&6;} | |
15487 | else | |
15488 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
15489 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15490 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15491 | X"$ac_file" : 'X\(//\)$' \| \ | |
15492 | X"$ac_file" : 'X\(/\)' \| \ | |
15493 | . : '\(.\)' 2>/dev/null || | |
15494 | echo X"$ac_file" | | |
15495 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15496 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15497 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15498 | /^X\(\/\).*/{ s//\1/; q; } | |
15499 | s/.*/./; q'` | |
15500 | { if $as_mkdir_p; then | |
15501 | mkdir -p "$ac_dir" | |
252b5132 | 15502 | else |
5464f5a1 NN |
15503 | as_dir="$ac_dir" |
15504 | as_dirs= | |
15505 | while test ! -d "$as_dir"; do | |
15506 | as_dirs="$as_dir $as_dirs" | |
15507 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
15508 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15509 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15510 | X"$as_dir" : 'X\(//\)$' \| \ | |
15511 | X"$as_dir" : 'X\(/\)' \| \ | |
15512 | . : '\(.\)' 2>/dev/null || | |
15513 | echo X"$as_dir" | | |
15514 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15515 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15516 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15517 | /^X\(\/\).*/{ s//\1/; q; } | |
15518 | s/.*/./; q'` | |
15519 | done | |
15520 | test ! -n "$as_dirs" || mkdir $as_dirs | |
15521 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
15522 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
15523 | { (exit 1); exit 1; }; }; } | |
15524 | ||
15525 | rm -f $ac_file | |
15526 | mv $tmp/config.h $ac_file | |
252b5132 | 15527 | fi |
5464f5a1 NN |
15528 | else |
15529 | cat $tmp/config.h | |
15530 | rm -f $tmp/config.h | |
252b5132 | 15531 | fi |
f5385ebf AM |
15532 | # Compute $ac_file's index in $config_headers. |
15533 | _am_stamp_count=1 | |
15534 | for _am_header in $config_headers :; do | |
15535 | case $_am_header in | |
15536 | $ac_file | $ac_file:* ) | |
15537 | break ;; | |
15538 | * ) | |
15539 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
15540 | esac | |
15541 | done | |
15542 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
15543 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15544 | X$ac_file : 'X\(//\)[^/]' \| \ | |
15545 | X$ac_file : 'X\(//\)$' \| \ | |
15546 | X$ac_file : 'X\(/\)' \| \ | |
15547 | . : '\(.\)' 2>/dev/null || | |
15548 | echo X$ac_file | | |
15549 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15550 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15551 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15552 | /^X\(\/\).*/{ s//\1/; q; } | |
15553 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
5464f5a1 NN |
15554 | done |
15555 | _ACEOF | |
15556 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 15557 | |
5464f5a1 NN |
15558 | # |
15559 | # CONFIG_COMMANDS section. | |
15560 | # | |
15561 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
15562 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
15563 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15564 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
15565 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15566 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
15567 | X"$ac_dest" : 'X\(//\)$' \| \ | |
15568 | X"$ac_dest" : 'X\(/\)' \| \ | |
15569 | . : '\(.\)' 2>/dev/null || | |
15570 | echo X"$ac_dest" | | |
15571 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15572 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15573 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15574 | /^X\(\/\).*/{ s//\1/; q; } | |
15575 | s/.*/./; q'` | |
15576 | { if $as_mkdir_p; then | |
15577 | mkdir -p "$ac_dir" | |
15578 | else | |
15579 | as_dir="$ac_dir" | |
15580 | as_dirs= | |
15581 | while test ! -d "$as_dir"; do | |
15582 | as_dirs="$as_dir $as_dirs" | |
15583 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
15584 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15585 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15586 | X"$as_dir" : 'X\(//\)$' \| \ | |
15587 | X"$as_dir" : 'X\(/\)' \| \ | |
15588 | . : '\(.\)' 2>/dev/null || | |
15589 | echo X"$as_dir" | | |
15590 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15591 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15592 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15593 | /^X\(\/\).*/{ s//\1/; q; } | |
15594 | s/.*/./; q'` | |
15595 | done | |
15596 | test ! -n "$as_dirs" || mkdir $as_dirs | |
15597 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
15598 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
15599 | { (exit 1); exit 1; }; }; } | |
b3baf5d0 | 15600 | |
5464f5a1 | 15601 | ac_builddir=. |
b3baf5d0 | 15602 | |
5464f5a1 NN |
15603 | if test "$ac_dir" != .; then |
15604 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
15605 | # A "../" for each directory in $ac_dir_suffix. | |
15606 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
15607 | else | |
15608 | ac_dir_suffix= ac_top_builddir= | |
15609 | fi | |
15610 | ||
15611 | case $srcdir in | |
15612 | .) # No --srcdir option. We are building in place. | |
15613 | ac_srcdir=. | |
15614 | if test -z "$ac_top_builddir"; then | |
15615 | ac_top_srcdir=. | |
15616 | else | |
15617 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
15618 | fi ;; | |
15619 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
15620 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15621 | ac_top_srcdir=$srcdir ;; | |
15622 | *) # Relative path. | |
15623 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
15624 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
15625 | esac | |
15626 | ||
15627 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
15628 | # the directories may not exist. | |
15629 | case `pwd` in | |
15630 | .) ac_abs_builddir="$ac_dir";; | |
15631 | *) | |
15632 | case "$ac_dir" in | |
15633 | .) ac_abs_builddir=`pwd`;; | |
15634 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
15635 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
15636 | esac;; | |
15637 | esac | |
15638 | case $ac_abs_builddir in | |
15639 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
15640 | *) | |
15641 | case ${ac_top_builddir}. in | |
15642 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
15643 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
15644 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
15645 | esac;; | |
15646 | esac | |
15647 | case $ac_abs_builddir in | |
15648 | .) ac_abs_srcdir=$ac_srcdir;; | |
15649 | *) | |
15650 | case $ac_srcdir in | |
15651 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
15652 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
15653 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
15654 | esac;; | |
15655 | esac | |
15656 | case $ac_abs_builddir in | |
15657 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
15658 | *) | |
15659 | case $ac_top_srcdir in | |
15660 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
15661 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
15662 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
15663 | esac;; | |
15664 | esac | |
15665 | ||
15666 | ||
15667 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
15668 | echo "$as_me: executing $ac_dest commands" >&6;} | |
15669 | case $ac_dest in | |
f5385ebf AM |
15670 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
15671 | # Strip MF so we end up with the name of the file. | |
15672 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
15673 | # Check whether this is an Automake generated Makefile or not. | |
15674 | # We used to match only the files named `Makefile.in', but | |
15675 | # some people rename them; so instead we look at the file content. | |
15676 | # Grep'ing the first line is not enough: some people post-process | |
15677 | # each Makefile.in and add a new line on top of each file to say so. | |
15678 | # So let's grep whole file. | |
15679 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
15680 | dirpart=`(dirname "$mf") 2>/dev/null || | |
15681 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15682 | X"$mf" : 'X\(//\)[^/]' \| \ | |
15683 | X"$mf" : 'X\(//\)$' \| \ | |
15684 | X"$mf" : 'X\(/\)' \| \ | |
15685 | . : '\(.\)' 2>/dev/null || | |
15686 | echo X"$mf" | | |
15687 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15688 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15689 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15690 | /^X\(\/\).*/{ s//\1/; q; } | |
15691 | s/.*/./; q'` | |
15692 | else | |
15693 | continue | |
15694 | fi | |
15695 | # Extract the definition of DEPDIR, am__include, and am__quote | |
15696 | # from the Makefile without running `make'. | |
15697 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
15698 | test -z "$DEPDIR" && continue | |
15699 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
15700 | test -z "am__include" && continue | |
15701 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
15702 | # When using ansi2knr, U may be empty or an underscore; expand it | |
15703 | U=`sed -n 's/^U = //p' < "$mf"` | |
15704 | # Find all dependency output files, they are included files with | |
15705 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
15706 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
15707 | # expansion. | |
15708 | for file in `sed -n " | |
15709 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
15710 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
15711 | # Make sure the directory exists. | |
15712 | test -f "$dirpart/$file" && continue | |
15713 | fdir=`(dirname "$file") 2>/dev/null || | |
15714 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15715 | X"$file" : 'X\(//\)[^/]' \| \ | |
15716 | X"$file" : 'X\(//\)$' \| \ | |
15717 | X"$file" : 'X\(/\)' \| \ | |
15718 | . : '\(.\)' 2>/dev/null || | |
15719 | echo X"$file" | | |
15720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15723 | /^X\(\/\).*/{ s//\1/; q; } | |
15724 | s/.*/./; q'` | |
15725 | { if $as_mkdir_p; then | |
15726 | mkdir -p $dirpart/$fdir | |
15727 | else | |
15728 | as_dir=$dirpart/$fdir | |
15729 | as_dirs= | |
15730 | while test ! -d "$as_dir"; do | |
15731 | as_dirs="$as_dir $as_dirs" | |
15732 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
15733 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15734 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15735 | X"$as_dir" : 'X\(//\)$' \| \ | |
15736 | X"$as_dir" : 'X\(/\)' \| \ | |
15737 | . : '\(.\)' 2>/dev/null || | |
15738 | echo X"$as_dir" | | |
15739 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15740 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15741 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15742 | /^X\(\/\).*/{ s//\1/; q; } | |
15743 | s/.*/./; q'` | |
15744 | done | |
15745 | test ! -n "$as_dirs" || mkdir $as_dirs | |
15746 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
15747 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
15748 | { (exit 1); exit 1; }; }; } | |
15749 | ||
15750 | # echo "creating $dirpart/$file" | |
15751 | echo '# dummy' > "$dirpart/$file" | |
15752 | done | |
15753 | done | |
15754 | ;; | |
5464f5a1 NN |
15755 | default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;; |
15756 | esac | |
15757 | done | |
15758 | _ACEOF | |
15759 | ||
15760 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15761 | ||
15762 | { (exit 0); exit 0; } | |
15763 | _ACEOF | |
252b5132 | 15764 | chmod +x $CONFIG_STATUS |
5464f5a1 NN |
15765 | ac_clean_files=$ac_clean_files_save |
15766 | ||
15767 | ||
15768 | # configure is writing to config.log, and then calls config.status. | |
15769 | # config.status does its own redirection, appending to config.log. | |
15770 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15771 | # by configure, so config.status won't be able to write to it; its | |
15772 | # output is simply discarded. So we exec the FD to /dev/null, | |
15773 | # effectively closing config.log, so it can be properly (re)opened and | |
15774 | # appended to by config.status. When coming back to configure, we | |
15775 | # need to make the FD available again. | |
15776 | if test "$no_create" != yes; then | |
15777 | ac_cs_success=: | |
15778 | ac_config_status_args= | |
15779 | test "$silent" = yes && | |
15780 | ac_config_status_args="$ac_config_status_args --quiet" | |
15781 | exec 5>/dev/null | |
15782 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15783 | exec 5>>config.log | |
15784 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15785 | # would make configure fail if this is the last instruction. | |
15786 | $ac_cs_success || { (exit 1); exit 1; } | |
15787 | fi | |
252b5132 | 15788 | |
55c80943 | 15789 |