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 | ||
f5385ebf | 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 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 | |
862 | --enable-build-warnings Enable build-time compiler warnings if gcc is used | |
f5385ebf AM |
863 | --enable-maintainer-mode enable make rules and dependencies not useful |
864 | (and sometimes confusing) to the casual installer | |
5464f5a1 NN |
865 | --enable-install-libbfd controls installation of libbfd and related headers |
866 | --disable-nls do not use Native Language Support | |
867 | ||
868 | Optional Packages: | |
869 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
870 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
871 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
872 | --with-pic try to use only PIC/non-PIC objects default=use both | |
873 | --with-mmap try using mmap for BFD input files if available | |
874 | --with-included-gettext use the GNU gettext library included here | |
875 | ||
876 | Some influential environment variables: | |
877 | CC C compiler command | |
878 | CFLAGS C compiler flags | |
879 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
880 | nonstandard directory <lib dir> | |
881 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
882 | headers in a nonstandard directory <include dir> | |
883 | CPP C preprocessor | |
884 | ||
885 | Use these variables to override the choices made by `configure' or to help | |
886 | it to find libraries and programs with nonstandard names/locations. | |
887 | ||
888 | _ACEOF | |
889 | fi | |
890 | ||
891 | if test "$ac_init_help" = "recursive"; then | |
892 | # If there are subdirs, report their specific --help. | |
893 | ac_popdir=`pwd` | |
894 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
895 | test -d $ac_dir || continue | |
896 | ac_builddir=. | |
897 | ||
898 | if test "$ac_dir" != .; then | |
899 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
900 | # A "../" for each directory in $ac_dir_suffix. | |
901 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
902 | else | |
903 | ac_dir_suffix= ac_top_builddir= | |
904 | fi | |
905 | ||
906 | case $srcdir in | |
907 | .) # No --srcdir option. We are building in place. | |
908 | ac_srcdir=. | |
909 | if test -z "$ac_top_builddir"; then | |
910 | ac_top_srcdir=. | |
911 | else | |
912 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
913 | fi ;; | |
914 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
915 | ac_srcdir=$srcdir$ac_dir_suffix; | |
916 | ac_top_srcdir=$srcdir ;; | |
917 | *) # Relative path. | |
918 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
919 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6be7c12c AO |
920 | esac |
921 | ||
5464f5a1 NN |
922 | # Do not use `cd foo && pwd` to compute absolute paths, because |
923 | # the directories may not exist. | |
924 | case `pwd` in | |
925 | .) ac_abs_builddir="$ac_dir";; | |
926 | *) | |
927 | case "$ac_dir" in | |
928 | .) ac_abs_builddir=`pwd`;; | |
929 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
930 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
931 | esac;; | |
932 | esac | |
933 | case $ac_abs_builddir in | |
934 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
935 | *) | |
936 | case ${ac_top_builddir}. in | |
937 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
938 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
939 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
940 | esac;; | |
941 | esac | |
942 | case $ac_abs_builddir in | |
943 | .) ac_abs_srcdir=$ac_srcdir;; | |
944 | *) | |
945 | case $ac_srcdir in | |
946 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
947 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
948 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
949 | esac;; | |
950 | esac | |
951 | case $ac_abs_builddir in | |
952 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
953 | *) | |
954 | case $ac_top_srcdir in | |
955 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
956 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
957 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
958 | esac;; | |
959 | esac | |
6be7c12c | 960 | |
5464f5a1 NN |
961 | cd $ac_dir |
962 | # Check for guested configure; otherwise get Cygnus style configure. | |
963 | if test -f $ac_srcdir/configure.gnu; then | |
964 | echo | |
965 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
966 | elif test -f $ac_srcdir/configure; then | |
967 | echo | |
968 | $SHELL $ac_srcdir/configure --help=recursive | |
969 | elif test -f $ac_srcdir/configure.ac || | |
970 | test -f $ac_srcdir/configure.in; then | |
971 | echo | |
972 | $ac_configure --help | |
973 | else | |
974 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
975 | fi | |
7f266840 | 976 | cd "$ac_popdir" |
5464f5a1 | 977 | done |
6be7c12c AO |
978 | fi |
979 | ||
5464f5a1 NN |
980 | test -n "$ac_init_help" && exit 0 |
981 | if $ac_init_version; then | |
982 | cat <<\_ACEOF | |
6be7c12c | 983 | |
5464f5a1 NN |
984 | Copyright (C) 2003 Free Software Foundation, Inc. |
985 | This configure script is free software; the Free Software Foundation | |
986 | gives unlimited permission to copy, distribute and modify it. | |
987 | _ACEOF | |
988 | exit 0 | |
989 | fi | |
990 | exec 5>config.log | |
991 | cat >&5 <<_ACEOF | |
992 | This file contains any messages produced by compilers while | |
993 | running configure, to aid debugging if configure makes a mistake. | |
6be7c12c | 994 | |
5464f5a1 NN |
995 | It was created by $as_me, which was |
996 | generated by GNU Autoconf 2.59. Invocation command line was | |
6be7c12c | 997 | |
5464f5a1 | 998 | $ $0 $@ |
6be7c12c | 999 | |
5464f5a1 NN |
1000 | _ACEOF |
1001 | { | |
1002 | cat <<_ASUNAME | |
1003 | ## --------- ## | |
1004 | ## Platform. ## | |
1005 | ## --------- ## | |
1006 | ||
1007 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1008 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1009 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1010 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1011 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1012 | ||
1013 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1014 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1015 | ||
1016 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1017 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1018 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1019 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1020 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1021 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1022 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1023 | ||
1024 | _ASUNAME | |
1025 | ||
1026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1027 | for as_dir in $PATH | |
1028 | do | |
1029 | IFS=$as_save_IFS | |
1030 | test -z "$as_dir" && as_dir=. | |
1031 | echo "PATH: $as_dir" | |
1032 | done | |
6be7c12c | 1033 | |
5464f5a1 | 1034 | } >&5 |
66e25bab | 1035 | |
5464f5a1 | 1036 | cat >&5 <<_ACEOF |
b3baf5d0 | 1037 | |
6be7c12c | 1038 | |
5464f5a1 NN |
1039 | ## ----------- ## |
1040 | ## Core tests. ## | |
1041 | ## ----------- ## | |
252b5132 | 1042 | |
5464f5a1 | 1043 | _ACEOF |
c5d1701e | 1044 | |
6be7c12c | 1045 | |
5464f5a1 NN |
1046 | # Keep a trace of the command line. |
1047 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1048 | # Strip out --silent because we don't want to record it for future runs. | |
1049 | # Also quote any args containing shell meta-characters. | |
1050 | # Make two passes to allow for proper duplicate-argument suppression. | |
1051 | ac_configure_args= | |
1052 | ac_configure_args0= | |
1053 | ac_configure_args1= | |
1054 | ac_sep= | |
1055 | ac_must_keep_next=false | |
1056 | for ac_pass in 1 2 | |
1057 | do | |
1058 | for ac_arg | |
1059 | do | |
1060 | case $ac_arg in | |
1061 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1062 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1063 | | -silent | --silent | --silen | --sile | --sil) | |
1064 | continue ;; | |
1065 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1066 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1067 | esac | |
1068 | case $ac_pass in | |
1069 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1070 | 2) | |
1071 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1072 | if test $ac_must_keep_next = true; then | |
1073 | ac_must_keep_next=false # Got value, back to normal. | |
1074 | else | |
1075 | case $ac_arg in | |
1076 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1077 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1078 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1079 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1080 | case "$ac_configure_args0 " in | |
1081 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1082 | esac | |
1083 | ;; | |
1084 | -* ) ac_must_keep_next=true ;; | |
1085 | esac | |
1086 | fi | |
1087 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1088 | # Get rid of the leading space. | |
1089 | ac_sep=" " | |
1090 | ;; | |
1091 | esac | |
1092 | done | |
1093 | done | |
1094 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1095 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1096 | ||
1097 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1098 | # config.log. We remove comments because anyway the quotes in there | |
1099 | # would cause problems or look ugly. | |
1100 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1101 | # such as our DU 5.0 friend, will then `close' the trap. | |
1102 | trap 'exit_status=$? | |
1103 | # Save into config.log some information that might help in debugging. | |
1104 | { | |
1105 | echo | |
1106 | ||
1107 | cat <<\_ASBOX | |
1108 | ## ---------------- ## | |
1109 | ## Cache variables. ## | |
1110 | ## ---------------- ## | |
1111 | _ASBOX | |
1112 | echo | |
1113 | # The following way of writing the cache mishandles newlines in values, | |
1114 | { | |
1115 | (set) 2>&1 | | |
1116 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1117 | *ac_space=\ *) | |
1118 | sed -n \ | |
1119 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1120 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1121 | ;; | |
1122 | *) | |
1123 | sed -n \ | |
1124 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1125 | ;; | |
1126 | esac; | |
1127 | } | |
1128 | echo | |
1129 | ||
1130 | cat <<\_ASBOX | |
1131 | ## ----------------- ## | |
1132 | ## Output variables. ## | |
1133 | ## ----------------- ## | |
1134 | _ASBOX | |
1135 | echo | |
1136 | for ac_var in $ac_subst_vars | |
1137 | do | |
1138 | eval ac_val=$`echo $ac_var` | |
1139 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1140 | done | sort | |
1141 | echo | |
1142 | ||
1143 | if test -n "$ac_subst_files"; then | |
1144 | cat <<\_ASBOX | |
1145 | ## ------------- ## | |
1146 | ## Output files. ## | |
1147 | ## ------------- ## | |
1148 | _ASBOX | |
1149 | echo | |
1150 | for ac_var in $ac_subst_files | |
1151 | do | |
1152 | eval ac_val=$`echo $ac_var` | |
1153 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1154 | done | sort | |
1155 | echo | |
1156 | fi | |
1157 | ||
1158 | if test -s confdefs.h; then | |
1159 | cat <<\_ASBOX | |
1160 | ## ----------- ## | |
1161 | ## confdefs.h. ## | |
1162 | ## ----------- ## | |
1163 | _ASBOX | |
1164 | echo | |
1165 | sed "/^$/d" confdefs.h | sort | |
1166 | echo | |
1167 | fi | |
1168 | test "$ac_signal" != 0 && | |
1169 | echo "$as_me: caught signal $ac_signal" | |
1170 | echo "$as_me: exit $exit_status" | |
1171 | } >&5 | |
1172 | rm -f core *.core && | |
1173 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1174 | exit $exit_status | |
1175 | ' 0 | |
1176 | for ac_signal in 1 2 13 15; do | |
1177 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1178 | done | |
1179 | ac_signal=0 | |
1180 | ||
1181 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1182 | rm -rf conftest* confdefs.h | |
1183 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1184 | echo >confdefs.h | |
1185 | ||
1186 | # Predefined preprocessor variables. | |
1187 | ||
1188 | cat >>confdefs.h <<_ACEOF | |
1189 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1190 | _ACEOF | |
1191 | ||
1192 | ||
1193 | cat >>confdefs.h <<_ACEOF | |
1194 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1195 | _ACEOF | |
1196 | ||
1197 | ||
1198 | cat >>confdefs.h <<_ACEOF | |
1199 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1200 | _ACEOF | |
1201 | ||
1202 | ||
1203 | cat >>confdefs.h <<_ACEOF | |
1204 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1205 | _ACEOF | |
1206 | ||
1207 | ||
1208 | cat >>confdefs.h <<_ACEOF | |
1209 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1210 | _ACEOF | |
1211 | ||
1212 | ||
1213 | # Let the site file select an alternate cache file if it wants to. | |
1214 | # Prefer explicitly selected file to automatically selected ones. | |
1215 | if test -z "$CONFIG_SITE"; then | |
1216 | if test "x$prefix" != xNONE; then | |
1217 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1218 | else | |
1219 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1220 | fi | |
1221 | fi | |
1222 | for ac_site_file in $CONFIG_SITE; do | |
1223 | if test -r "$ac_site_file"; then | |
1224 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1225 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1226 | sed 's/^/| /' "$ac_site_file" >&5 | |
1227 | . "$ac_site_file" | |
1228 | fi | |
1229 | done | |
1230 | ||
1231 | if test -r "$cache_file"; then | |
1232 | # Some versions of bash will fail to source /dev/null (special | |
1233 | # files actually), so we avoid doing that. | |
1234 | if test -f "$cache_file"; then | |
1235 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1236 | echo "$as_me: loading cache $cache_file" >&6;} | |
1237 | case $cache_file in | |
1238 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1239 | *) . ./$cache_file;; | |
1240 | esac | |
1241 | fi | |
1242 | else | |
1243 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1244 | echo "$as_me: creating cache $cache_file" >&6;} | |
1245 | >$cache_file | |
1246 | fi | |
1247 | ||
1248 | # Check that the precious variables saved in the cache have kept the same | |
1249 | # value. | |
1250 | ac_cache_corrupted=false | |
1251 | for ac_var in `(set) 2>&1 | | |
1252 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1253 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1254 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1255 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1256 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1257 | case $ac_old_set,$ac_new_set in | |
1258 | set,) | |
1259 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1260 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1261 | ac_cache_corrupted=: ;; | |
1262 | ,set) | |
1263 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1264 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1265 | ac_cache_corrupted=: ;; | |
1266 | ,);; | |
1267 | *) | |
1268 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1269 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1270 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1271 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1272 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1273 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1274 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1275 | ac_cache_corrupted=: | |
1276 | fi;; | |
1277 | esac | |
1278 | # Pass precious variables to config.status. | |
1279 | if test "$ac_new_set" = set; then | |
1280 | case $ac_new_val in | |
1281 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1282 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1283 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1284 | esac | |
1285 | case " $ac_configure_args " in | |
1286 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1287 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1288 | esac | |
1289 | fi | |
1290 | done | |
1291 | if $ac_cache_corrupted; then | |
1292 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1293 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1294 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1295 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1296 | { (exit 1); exit 1; }; } | |
1297 | fi | |
1298 | ||
1299 | ac_ext=c | |
1300 | ac_cpp='$CPP $CPPFLAGS' | |
1301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ac_aux_dir= | |
1326 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1327 | if test -f $ac_dir/install-sh; then | |
1328 | ac_aux_dir=$ac_dir | |
1329 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1330 | break | |
1331 | elif test -f $ac_dir/install.sh; then | |
1332 | ac_aux_dir=$ac_dir | |
1333 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1334 | break | |
1335 | elif test -f $ac_dir/shtool; then | |
1336 | ac_aux_dir=$ac_dir | |
1337 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1338 | break | |
1339 | fi | |
1340 | done | |
1341 | if test -z "$ac_aux_dir"; then | |
1342 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1343 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1344 | { (exit 1); exit 1; }; } | |
1345 | fi | |
1346 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1347 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1348 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1349 | ||
1350 | # Make sure we can run config.sub. | |
1351 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1352 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1353 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1354 | { (exit 1); exit 1; }; } | |
1355 | ||
1356 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1357 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1358 | if test "${ac_cv_build+set}" = set; then | |
1359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1360 | else | |
1361 | ac_cv_build_alias=$build_alias | |
1362 | test -z "$ac_cv_build_alias" && | |
1363 | ac_cv_build_alias=`$ac_config_guess` | |
1364 | test -z "$ac_cv_build_alias" && | |
1365 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1366 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1367 | { (exit 1); exit 1; }; } | |
1368 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1369 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1370 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1371 | { (exit 1); exit 1; }; } | |
1372 | ||
1373 | fi | |
1374 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1375 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1376 | build=$ac_cv_build | |
1377 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1378 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1379 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1380 | ||
1381 | ||
1382 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1383 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1384 | if test "${ac_cv_host+set}" = set; then | |
1385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1386 | else | |
1387 | ac_cv_host_alias=$host_alias | |
1388 | test -z "$ac_cv_host_alias" && | |
1389 | ac_cv_host_alias=$ac_cv_build_alias | |
1390 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1391 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1392 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1393 | { (exit 1); exit 1; }; } | |
1394 | ||
1395 | fi | |
1396 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1397 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1398 | host=$ac_cv_host | |
1399 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1400 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1401 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1402 | ||
1403 | ||
1404 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1405 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1406 | if test "${ac_cv_target+set}" = set; then | |
1407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1408 | else | |
1409 | ac_cv_target_alias=$target_alias | |
1410 | test "x$ac_cv_target_alias" = "x" && | |
1411 | ac_cv_target_alias=$ac_cv_host_alias | |
1412 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1413 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1414 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1415 | { (exit 1); exit 1; }; } | |
1416 | ||
1417 | fi | |
1418 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1419 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1420 | target=$ac_cv_target | |
1421 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1422 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1423 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1424 | ||
1425 | ||
1426 | # The aliases save the names the user supplied, while $host etc. | |
1427 | # will get canonicalized. | |
1428 | test -n "$target_alias" && | |
1429 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1430 | NONENONEs,x,x, && | |
1431 | program_prefix=${target_alias}- | |
1432 | ac_ext=c | |
1433 | ac_cpp='$CPP $CPPFLAGS' | |
1434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1437 | if test -n "$ac_tool_prefix"; then | |
1438 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1439 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1440 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1442 | if test "${ac_cv_prog_CC+set}" = set; then | |
1443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1444 | else | |
1445 | if test -n "$CC"; then | |
1446 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1447 | else | |
1448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1449 | for as_dir in $PATH | |
1450 | do | |
1451 | IFS=$as_save_IFS | |
1452 | test -z "$as_dir" && as_dir=. | |
1453 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1454 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1455 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1457 | break 2 | |
1458 | fi | |
1459 | done | |
1460 | done | |
1461 | ||
1462 | fi | |
1463 | fi | |
1464 | CC=$ac_cv_prog_CC | |
1465 | if test -n "$CC"; then | |
1466 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1467 | echo "${ECHO_T}$CC" >&6 | |
1468 | else | |
1469 | echo "$as_me:$LINENO: result: no" >&5 | |
1470 | echo "${ECHO_T}no" >&6 | |
1471 | fi | |
1472 | ||
1473 | fi | |
1474 | if test -z "$ac_cv_prog_CC"; then | |
1475 | ac_ct_CC=$CC | |
1476 | # Extract the first word of "gcc", so it can be a program name with args. | |
1477 | set dummy gcc; ac_word=$2 | |
1478 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1480 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1482 | else | |
1483 | if test -n "$ac_ct_CC"; then | |
1484 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1485 | else | |
1486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1487 | for as_dir in $PATH | |
1488 | do | |
1489 | IFS=$as_save_IFS | |
1490 | test -z "$as_dir" && as_dir=. | |
1491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1493 | ac_cv_prog_ac_ct_CC="gcc" | |
1494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1495 | break 2 | |
1496 | fi | |
1497 | done | |
1498 | done | |
1499 | ||
1500 | fi | |
1501 | fi | |
1502 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1503 | if test -n "$ac_ct_CC"; then | |
1504 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1505 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1506 | else | |
1507 | echo "$as_me:$LINENO: result: no" >&5 | |
1508 | echo "${ECHO_T}no" >&6 | |
1509 | fi | |
1510 | ||
1511 | CC=$ac_ct_CC | |
1512 | else | |
1513 | CC="$ac_cv_prog_CC" | |
1514 | fi | |
1515 | ||
1516 | if test -z "$CC"; then | |
1517 | if test -n "$ac_tool_prefix"; then | |
1518 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1519 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1520 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1521 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1522 | if test "${ac_cv_prog_CC+set}" = set; then | |
1523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1524 | else | |
1525 | if test -n "$CC"; then | |
1526 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1527 | else | |
1528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1529 | for as_dir in $PATH | |
1530 | do | |
1531 | IFS=$as_save_IFS | |
1532 | test -z "$as_dir" && as_dir=. | |
1533 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1534 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1535 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1536 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1537 | break 2 | |
1538 | fi | |
1539 | done | |
1540 | done | |
1541 | ||
1542 | fi | |
1543 | fi | |
1544 | CC=$ac_cv_prog_CC | |
1545 | if test -n "$CC"; then | |
1546 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1547 | echo "${ECHO_T}$CC" >&6 | |
1548 | else | |
1549 | echo "$as_me:$LINENO: result: no" >&5 | |
1550 | echo "${ECHO_T}no" >&6 | |
1551 | fi | |
1552 | ||
1553 | fi | |
1554 | if test -z "$ac_cv_prog_CC"; then | |
1555 | ac_ct_CC=$CC | |
1556 | # Extract the first word of "cc", so it can be a program name with args. | |
1557 | set dummy cc; ac_word=$2 | |
1558 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1560 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1562 | else | |
1563 | if test -n "$ac_ct_CC"; then | |
1564 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1565 | else | |
1566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1567 | for as_dir in $PATH | |
1568 | do | |
1569 | IFS=$as_save_IFS | |
1570 | test -z "$as_dir" && as_dir=. | |
1571 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1572 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1573 | ac_cv_prog_ac_ct_CC="cc" | |
1574 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1575 | break 2 | |
1576 | fi | |
1577 | done | |
1578 | done | |
1579 | ||
1580 | fi | |
1581 | fi | |
1582 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1583 | if test -n "$ac_ct_CC"; then | |
1584 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1585 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1586 | else | |
1587 | echo "$as_me:$LINENO: result: no" >&5 | |
1588 | echo "${ECHO_T}no" >&6 | |
1589 | fi | |
1590 | ||
1591 | CC=$ac_ct_CC | |
1592 | else | |
1593 | CC="$ac_cv_prog_CC" | |
1594 | fi | |
1595 | ||
1596 | fi | |
1597 | if test -z "$CC"; then | |
1598 | # Extract the first word of "cc", so it can be a program name with args. | |
1599 | set dummy cc; ac_word=$2 | |
1600 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1602 | if test "${ac_cv_prog_CC+set}" = set; then | |
1603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1604 | else | |
1605 | if test -n "$CC"; then | |
1606 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1607 | else | |
1608 | ac_prog_rejected=no | |
1609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1610 | for as_dir in $PATH | |
1611 | do | |
1612 | IFS=$as_save_IFS | |
1613 | test -z "$as_dir" && as_dir=. | |
1614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1616 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1617 | ac_prog_rejected=yes | |
1618 | continue | |
1619 | fi | |
1620 | ac_cv_prog_CC="cc" | |
1621 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1622 | break 2 | |
1623 | fi | |
1624 | done | |
1625 | done | |
1626 | ||
1627 | if test $ac_prog_rejected = yes; then | |
1628 | # We found a bogon in the path, so make sure we never use it. | |
1629 | set dummy $ac_cv_prog_CC | |
1630 | shift | |
1631 | if test $# != 0; then | |
1632 | # We chose a different compiler from the bogus one. | |
1633 | # However, it has the same basename, so the bogon will be chosen | |
1634 | # first if we set CC to just the basename; use the full file name. | |
1635 | shift | |
1636 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1637 | fi | |
1638 | fi | |
1639 | fi | |
1640 | fi | |
1641 | CC=$ac_cv_prog_CC | |
1642 | if test -n "$CC"; then | |
1643 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1644 | echo "${ECHO_T}$CC" >&6 | |
1645 | else | |
1646 | echo "$as_me:$LINENO: result: no" >&5 | |
1647 | echo "${ECHO_T}no" >&6 | |
1648 | fi | |
1649 | ||
1650 | fi | |
1651 | if test -z "$CC"; then | |
1652 | if test -n "$ac_tool_prefix"; then | |
1653 | for ac_prog in cl | |
1654 | do | |
1655 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1656 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1657 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1658 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1659 | if test "${ac_cv_prog_CC+set}" = set; then | |
1660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1661 | else | |
1662 | if test -n "$CC"; then | |
1663 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1664 | else | |
1665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1666 | for as_dir in $PATH | |
1667 | do | |
1668 | IFS=$as_save_IFS | |
1669 | test -z "$as_dir" && as_dir=. | |
1670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1671 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1672 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1674 | break 2 | |
1675 | fi | |
1676 | done | |
1677 | done | |
1678 | ||
1679 | fi | |
1680 | fi | |
1681 | CC=$ac_cv_prog_CC | |
1682 | if test -n "$CC"; then | |
1683 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1684 | echo "${ECHO_T}$CC" >&6 | |
1685 | else | |
1686 | echo "$as_me:$LINENO: result: no" >&5 | |
1687 | echo "${ECHO_T}no" >&6 | |
1688 | fi | |
1689 | ||
1690 | test -n "$CC" && break | |
1691 | done | |
1692 | fi | |
1693 | if test -z "$CC"; then | |
1694 | ac_ct_CC=$CC | |
1695 | for ac_prog in cl | |
1696 | do | |
1697 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1698 | set dummy $ac_prog; ac_word=$2 | |
1699 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1701 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1703 | else | |
1704 | if test -n "$ac_ct_CC"; then | |
1705 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1706 | else | |
1707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1708 | for as_dir in $PATH | |
1709 | do | |
1710 | IFS=$as_save_IFS | |
1711 | test -z "$as_dir" && as_dir=. | |
1712 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1713 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1714 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1716 | break 2 | |
1717 | fi | |
1718 | done | |
1719 | done | |
1720 | ||
1721 | fi | |
1722 | fi | |
1723 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1724 | if test -n "$ac_ct_CC"; then | |
1725 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1726 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1727 | else | |
1728 | echo "$as_me:$LINENO: result: no" >&5 | |
1729 | echo "${ECHO_T}no" >&6 | |
1730 | fi | |
1731 | ||
1732 | test -n "$ac_ct_CC" && break | |
1733 | done | |
1734 | ||
1735 | CC=$ac_ct_CC | |
1736 | fi | |
1737 | ||
1738 | fi | |
1739 | ||
1740 | ||
1741 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1742 | See \`config.log' for more details." >&5 | |
1743 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1744 | See \`config.log' for more details." >&2;} | |
1745 | { (exit 1); exit 1; }; } | |
1746 | ||
1747 | # Provide some information about the compiler. | |
1748 | echo "$as_me:$LINENO:" \ | |
1749 | "checking for C compiler version" >&5 | |
1750 | ac_compiler=`set X $ac_compile; echo $2` | |
1751 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1752 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1753 | ac_status=$? | |
1754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1755 | (exit $ac_status); } | |
1756 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1757 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1758 | ac_status=$? | |
1759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1760 | (exit $ac_status); } | |
1761 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1762 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1763 | ac_status=$? | |
1764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1765 | (exit $ac_status); } | |
1766 | ||
1767 | cat >conftest.$ac_ext <<_ACEOF | |
1768 | /* confdefs.h. */ | |
1769 | _ACEOF | |
1770 | cat confdefs.h >>conftest.$ac_ext | |
1771 | cat >>conftest.$ac_ext <<_ACEOF | |
1772 | /* end confdefs.h. */ | |
1773 | ||
1774 | int | |
1775 | main () | |
1776 | { | |
1777 | ||
1778 | ; | |
1779 | return 0; | |
1780 | } | |
1781 | _ACEOF | |
1782 | ac_clean_files_save=$ac_clean_files | |
1783 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1784 | # Try to create an executable without -o first, disregard a.out. | |
1785 | # It will help us diagnose broken compilers, and finding out an intuition | |
1786 | # of exeext. | |
1787 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1788 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1789 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1790 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1791 | (eval $ac_link_default) 2>&5 | |
1792 | ac_status=$? | |
1793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1794 | (exit $ac_status); }; then | |
1795 | # Find the output, starting from the most likely. This scheme is | |
1796 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1797 | # resort. | |
1798 | ||
1799 | # Be careful to initialize this variable, since it used to be cached. | |
1800 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1801 | ac_cv_exeext= | |
1802 | # b.out is created by i960 compilers. | |
1803 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1804 | do | |
1805 | test -f "$ac_file" || continue | |
1806 | case $ac_file in | |
1807 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1808 | ;; | |
1809 | conftest.$ac_ext ) | |
1810 | # This is the source file. | |
1811 | ;; | |
1812 | [ab].out ) | |
1813 | # We found the default executable, but exeext='' is most | |
1814 | # certainly right. | |
1815 | break;; | |
1816 | *.* ) | |
1817 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1818 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1819 | # but it would be cool to find out if it's true. Does anybody | |
1820 | # maintain Libtool? --akim. | |
1821 | export ac_cv_exeext | |
1822 | break;; | |
1823 | * ) | |
1824 | break;; | |
1825 | esac | |
1826 | done | |
1827 | else | |
1828 | echo "$as_me: failed program was:" >&5 | |
1829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1830 | ||
1831 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1832 | See \`config.log' for more details." >&5 | |
1833 | echo "$as_me: error: C compiler cannot create executables | |
1834 | See \`config.log' for more details." >&2;} | |
1835 | { (exit 77); exit 77; }; } | |
1836 | fi | |
1837 | ||
1838 | ac_exeext=$ac_cv_exeext | |
1839 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1840 | echo "${ECHO_T}$ac_file" >&6 | |
1841 | ||
1842 | # Check the compiler produces executables we can run. If not, either | |
1843 | # the compiler is broken, or we cross compile. | |
1844 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1845 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1846 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1847 | # If not cross compiling, check that we can run a simple program. | |
1848 | if test "$cross_compiling" != yes; then | |
1849 | if { ac_try='./$ac_file' | |
1850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1851 | (eval $ac_try) 2>&5 | |
1852 | ac_status=$? | |
1853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1854 | (exit $ac_status); }; }; then | |
1855 | cross_compiling=no | |
1856 | else | |
1857 | if test "$cross_compiling" = maybe; then | |
1858 | cross_compiling=yes | |
1859 | else | |
1860 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1861 | If you meant to cross compile, use \`--host'. | |
1862 | See \`config.log' for more details." >&5 | |
1863 | echo "$as_me: error: cannot run C compiled programs. | |
1864 | If you meant to cross compile, use \`--host'. | |
1865 | See \`config.log' for more details." >&2;} | |
1866 | { (exit 1); exit 1; }; } | |
1867 | fi | |
1868 | fi | |
1869 | fi | |
1870 | echo "$as_me:$LINENO: result: yes" >&5 | |
1871 | echo "${ECHO_T}yes" >&6 | |
1872 | ||
1873 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1874 | ac_clean_files=$ac_clean_files_save | |
1875 | # Check the compiler produces executables we can run. If not, either | |
1876 | # the compiler is broken, or we cross compile. | |
1877 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1878 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1879 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1880 | echo "${ECHO_T}$cross_compiling" >&6 | |
1881 | ||
1882 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1883 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1885 | (eval $ac_link) 2>&5 | |
1886 | ac_status=$? | |
1887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1888 | (exit $ac_status); }; then | |
1889 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1890 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1891 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1892 | # `rm'. | |
1893 | for ac_file in conftest.exe conftest conftest.*; do | |
1894 | test -f "$ac_file" || continue | |
1895 | case $ac_file in | |
1896 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1897 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1898 | export ac_cv_exeext | |
1899 | break;; | |
1900 | * ) break;; | |
1901 | esac | |
1902 | done | |
1903 | else | |
1904 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1905 | See \`config.log' for more details." >&5 | |
1906 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1907 | See \`config.log' for more details." >&2;} | |
1908 | { (exit 1); exit 1; }; } | |
1909 | fi | |
1910 | ||
1911 | rm -f conftest$ac_cv_exeext | |
1912 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1913 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1914 | ||
1915 | rm -f conftest.$ac_ext | |
1916 | EXEEXT=$ac_cv_exeext | |
1917 | ac_exeext=$EXEEXT | |
1918 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1919 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1920 | if test "${ac_cv_objext+set}" = set; then | |
1921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1922 | else | |
1923 | cat >conftest.$ac_ext <<_ACEOF | |
1924 | /* confdefs.h. */ | |
1925 | _ACEOF | |
1926 | cat confdefs.h >>conftest.$ac_ext | |
1927 | cat >>conftest.$ac_ext <<_ACEOF | |
1928 | /* end confdefs.h. */ | |
1929 | ||
1930 | int | |
1931 | main () | |
1932 | { | |
1933 | ||
1934 | ; | |
1935 | return 0; | |
1936 | } | |
1937 | _ACEOF | |
1938 | rm -f conftest.o conftest.obj | |
1939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1940 | (eval $ac_compile) 2>&5 | |
1941 | ac_status=$? | |
1942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1943 | (exit $ac_status); }; then | |
1944 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1945 | case $ac_file in | |
1946 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1947 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1948 | break;; | |
1949 | esac | |
1950 | done | |
1951 | else | |
1952 | echo "$as_me: failed program was:" >&5 | |
1953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1954 | ||
1955 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1956 | See \`config.log' for more details." >&5 | |
1957 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1958 | See \`config.log' for more details." >&2;} | |
1959 | { (exit 1); exit 1; }; } | |
1960 | fi | |
1961 | ||
1962 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1963 | fi | |
1964 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1965 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1966 | OBJEXT=$ac_cv_objext | |
1967 | ac_objext=$OBJEXT | |
1968 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1969 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1970 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1972 | else | |
1973 | cat >conftest.$ac_ext <<_ACEOF | |
1974 | /* confdefs.h. */ | |
1975 | _ACEOF | |
1976 | cat confdefs.h >>conftest.$ac_ext | |
1977 | cat >>conftest.$ac_ext <<_ACEOF | |
1978 | /* end confdefs.h. */ | |
1979 | ||
1980 | int | |
1981 | main () | |
1982 | { | |
1983 | #ifndef __GNUC__ | |
1984 | choke me | |
1985 | #endif | |
1986 | ||
1987 | ; | |
1988 | return 0; | |
1989 | } | |
1990 | _ACEOF | |
1991 | rm -f conftest.$ac_objext | |
1992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1993 | (eval $ac_compile) 2>conftest.er1 | |
1994 | ac_status=$? | |
1995 | grep -v '^ *+' conftest.er1 >conftest.err | |
1996 | rm -f conftest.er1 | |
1997 | cat conftest.err >&5 | |
1998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1999 | (exit $ac_status); } && | |
7f266840 | 2000 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2002 | (eval $ac_try) 2>&5 | |
2003 | ac_status=$? | |
2004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2005 | (exit $ac_status); }; } && | |
2006 | { ac_try='test -s conftest.$ac_objext' | |
2007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2008 | (eval $ac_try) 2>&5 | |
2009 | ac_status=$? | |
2010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2011 | (exit $ac_status); }; }; then | |
2012 | ac_compiler_gnu=yes | |
2013 | else | |
2014 | echo "$as_me: failed program was:" >&5 | |
2015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2016 | ||
2017 | ac_compiler_gnu=no | |
2018 | fi | |
2019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2020 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2021 | ||
2022 | fi | |
2023 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2024 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2025 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2026 | ac_test_CFLAGS=${CFLAGS+set} | |
2027 | ac_save_CFLAGS=$CFLAGS | |
2028 | CFLAGS="-g" | |
2029 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2030 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2031 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2033 | else | |
2034 | cat >conftest.$ac_ext <<_ACEOF | |
2035 | /* confdefs.h. */ | |
2036 | _ACEOF | |
2037 | cat confdefs.h >>conftest.$ac_ext | |
2038 | cat >>conftest.$ac_ext <<_ACEOF | |
2039 | /* end confdefs.h. */ | |
2040 | ||
2041 | int | |
2042 | main () | |
2043 | { | |
2044 | ||
2045 | ; | |
2046 | return 0; | |
2047 | } | |
2048 | _ACEOF | |
2049 | rm -f conftest.$ac_objext | |
2050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2051 | (eval $ac_compile) 2>conftest.er1 | |
2052 | ac_status=$? | |
2053 | grep -v '^ *+' conftest.er1 >conftest.err | |
2054 | rm -f conftest.er1 | |
2055 | cat conftest.err >&5 | |
2056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2057 | (exit $ac_status); } && | |
7f266840 | 2058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2060 | (eval $ac_try) 2>&5 | |
2061 | ac_status=$? | |
2062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2063 | (exit $ac_status); }; } && | |
2064 | { ac_try='test -s conftest.$ac_objext' | |
2065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2066 | (eval $ac_try) 2>&5 | |
2067 | ac_status=$? | |
2068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2069 | (exit $ac_status); }; }; then | |
2070 | ac_cv_prog_cc_g=yes | |
2071 | else | |
2072 | echo "$as_me: failed program was:" >&5 | |
2073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2074 | ||
2075 | ac_cv_prog_cc_g=no | |
2076 | fi | |
2077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2078 | fi | |
2079 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2080 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2081 | if test "$ac_test_CFLAGS" = set; then | |
2082 | CFLAGS=$ac_save_CFLAGS | |
2083 | elif test $ac_cv_prog_cc_g = yes; then | |
2084 | if test "$GCC" = yes; then | |
2085 | CFLAGS="-g -O2" | |
2086 | else | |
2087 | CFLAGS="-g" | |
2088 | fi | |
2089 | else | |
2090 | if test "$GCC" = yes; then | |
2091 | CFLAGS="-O2" | |
2092 | else | |
2093 | CFLAGS= | |
2094 | fi | |
2095 | fi | |
2096 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2097 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2098 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2100 | else | |
2101 | ac_cv_prog_cc_stdc=no | |
2102 | ac_save_CC=$CC | |
2103 | cat >conftest.$ac_ext <<_ACEOF | |
2104 | /* confdefs.h. */ | |
2105 | _ACEOF | |
2106 | cat confdefs.h >>conftest.$ac_ext | |
2107 | cat >>conftest.$ac_ext <<_ACEOF | |
2108 | /* end confdefs.h. */ | |
2109 | #include <stdarg.h> | |
2110 | #include <stdio.h> | |
2111 | #include <sys/types.h> | |
2112 | #include <sys/stat.h> | |
2113 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2114 | struct buf { int x; }; | |
2115 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2116 | static char *e (p, i) | |
2117 | char **p; | |
2118 | int i; | |
2119 | { | |
2120 | return p[i]; | |
2121 | } | |
2122 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2123 | { | |
2124 | char *s; | |
2125 | va_list v; | |
2126 | va_start (v,p); | |
2127 | s = g (p, va_arg (v,int)); | |
2128 | va_end (v); | |
2129 | return s; | |
2130 | } | |
2131 | ||
2132 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2133 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2134 | These don't provoke an error unfortunately, instead are silently treated | |
2135 | as 'x'. The following induces an error, until -std1 is added to get | |
2136 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2137 | array size at least. It's necessary to write '\x00'==0 to get something | |
2138 | that's true only with -std1. */ | |
2139 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2140 | ||
2141 | int test (int i, double x); | |
2142 | struct s1 {int (*f) (int a);}; | |
2143 | struct s2 {int (*f) (double a);}; | |
2144 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2145 | int argc; | |
2146 | char **argv; | |
2147 | int | |
2148 | main () | |
2149 | { | |
2150 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2151 | ; | |
2152 | return 0; | |
2153 | } | |
2154 | _ACEOF | |
2155 | # Don't try gcc -ansi; that turns off useful extensions and | |
2156 | # breaks some systems' header files. | |
2157 | # AIX -qlanglvl=ansi | |
2158 | # Ultrix and OSF/1 -std1 | |
2159 | # HP-UX 10.20 and later -Ae | |
2160 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2161 | # SVR4 -Xc -D__EXTENSIONS__ | |
2162 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2163 | do | |
2164 | CC="$ac_save_CC $ac_arg" | |
2165 | rm -f conftest.$ac_objext | |
2166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2167 | (eval $ac_compile) 2>conftest.er1 | |
2168 | ac_status=$? | |
2169 | grep -v '^ *+' conftest.er1 >conftest.err | |
2170 | rm -f conftest.er1 | |
2171 | cat conftest.err >&5 | |
2172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2173 | (exit $ac_status); } && | |
7f266840 | 2174 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2176 | (eval $ac_try) 2>&5 | |
2177 | ac_status=$? | |
2178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2179 | (exit $ac_status); }; } && | |
2180 | { ac_try='test -s conftest.$ac_objext' | |
2181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2182 | (eval $ac_try) 2>&5 | |
2183 | ac_status=$? | |
2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2185 | (exit $ac_status); }; }; then | |
2186 | ac_cv_prog_cc_stdc=$ac_arg | |
2187 | break | |
2188 | else | |
2189 | echo "$as_me: failed program was:" >&5 | |
2190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2191 | ||
2192 | fi | |
2193 | rm -f conftest.err conftest.$ac_objext | |
2194 | done | |
2195 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2196 | CC=$ac_save_CC | |
2197 | ||
2198 | fi | |
2199 | ||
2200 | case "x$ac_cv_prog_cc_stdc" in | |
2201 | x|xno) | |
2202 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2203 | echo "${ECHO_T}none needed" >&6 ;; | |
2204 | *) | |
2205 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2206 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2207 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2208 | esac | |
2209 | ||
2210 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2211 | # in C++ we need to declare it. In case someone uses the same compiler | |
2212 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2213 | # the declaration of exit, since it's the most demanding environment. | |
2214 | cat >conftest.$ac_ext <<_ACEOF | |
2215 | #ifndef __cplusplus | |
2216 | choke me | |
2217 | #endif | |
2218 | _ACEOF | |
2219 | rm -f conftest.$ac_objext | |
2220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2221 | (eval $ac_compile) 2>conftest.er1 | |
2222 | ac_status=$? | |
2223 | grep -v '^ *+' conftest.er1 >conftest.err | |
2224 | rm -f conftest.er1 | |
2225 | cat conftest.err >&5 | |
2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2227 | (exit $ac_status); } && | |
7f266840 | 2228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2230 | (eval $ac_try) 2>&5 | |
2231 | ac_status=$? | |
2232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2233 | (exit $ac_status); }; } && | |
2234 | { ac_try='test -s conftest.$ac_objext' | |
2235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2236 | (eval $ac_try) 2>&5 | |
2237 | ac_status=$? | |
2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2239 | (exit $ac_status); }; }; then | |
2240 | for ac_declaration in \ | |
2241 | '' \ | |
2242 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2243 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2244 | 'extern "C" void exit (int) throw ();' \ | |
2245 | 'extern "C" void exit (int);' \ | |
2246 | 'void exit (int);' | |
2247 | do | |
2248 | cat >conftest.$ac_ext <<_ACEOF | |
2249 | /* confdefs.h. */ | |
2250 | _ACEOF | |
2251 | cat confdefs.h >>conftest.$ac_ext | |
2252 | cat >>conftest.$ac_ext <<_ACEOF | |
2253 | /* end confdefs.h. */ | |
2254 | $ac_declaration | |
2255 | #include <stdlib.h> | |
2256 | int | |
2257 | main () | |
2258 | { | |
2259 | exit (42); | |
2260 | ; | |
2261 | return 0; | |
2262 | } | |
2263 | _ACEOF | |
2264 | rm -f conftest.$ac_objext | |
2265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2266 | (eval $ac_compile) 2>conftest.er1 | |
2267 | ac_status=$? | |
2268 | grep -v '^ *+' conftest.er1 >conftest.err | |
2269 | rm -f conftest.er1 | |
2270 | cat conftest.err >&5 | |
2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2272 | (exit $ac_status); } && | |
7f266840 | 2273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2275 | (eval $ac_try) 2>&5 | |
2276 | ac_status=$? | |
2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2278 | (exit $ac_status); }; } && | |
2279 | { ac_try='test -s conftest.$ac_objext' | |
2280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2281 | (eval $ac_try) 2>&5 | |
2282 | ac_status=$? | |
2283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2284 | (exit $ac_status); }; }; then | |
2285 | : | |
2286 | else | |
2287 | echo "$as_me: failed program was:" >&5 | |
2288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2289 | ||
2290 | continue | |
2291 | fi | |
2292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2293 | cat >conftest.$ac_ext <<_ACEOF | |
2294 | /* confdefs.h. */ | |
2295 | _ACEOF | |
2296 | cat confdefs.h >>conftest.$ac_ext | |
2297 | cat >>conftest.$ac_ext <<_ACEOF | |
2298 | /* end confdefs.h. */ | |
2299 | $ac_declaration | |
2300 | int | |
2301 | main () | |
2302 | { | |
2303 | exit (42); | |
2304 | ; | |
2305 | return 0; | |
2306 | } | |
2307 | _ACEOF | |
2308 | rm -f conftest.$ac_objext | |
2309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2310 | (eval $ac_compile) 2>conftest.er1 | |
2311 | ac_status=$? | |
2312 | grep -v '^ *+' conftest.er1 >conftest.err | |
2313 | rm -f conftest.er1 | |
2314 | cat conftest.err >&5 | |
2315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2316 | (exit $ac_status); } && | |
7f266840 | 2317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2319 | (eval $ac_try) 2>&5 | |
2320 | ac_status=$? | |
2321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2322 | (exit $ac_status); }; } && | |
2323 | { ac_try='test -s conftest.$ac_objext' | |
2324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2325 | (eval $ac_try) 2>&5 | |
2326 | ac_status=$? | |
2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2328 | (exit $ac_status); }; }; then | |
2329 | break | |
2330 | else | |
2331 | echo "$as_me: failed program was:" >&5 | |
2332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2333 | ||
2334 | fi | |
2335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2336 | done | |
2337 | rm -f conftest* | |
2338 | if test -n "$ac_declaration"; then | |
2339 | echo '#ifdef __cplusplus' >>confdefs.h | |
2340 | echo $ac_declaration >>confdefs.h | |
2341 | echo '#endif' >>confdefs.h | |
2342 | fi | |
2343 | ||
2344 | else | |
2345 | echo "$as_me: failed program was:" >&5 | |
2346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2347 | ||
2348 | fi | |
2349 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2350 | ac_ext=c | |
2351 | ac_cpp='$CPP $CPPFLAGS' | |
2352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2355 | ||
2356 | ||
f5385ebf AM |
2357 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2358 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2359 | if test "${ac_cv_search_strerror+set}" = set; then | |
5464f5a1 NN |
2360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2361 | else | |
f5385ebf AM |
2362 | ac_func_search_save_LIBS=$LIBS |
2363 | ac_cv_search_strerror=no | |
5464f5a1 NN |
2364 | cat >conftest.$ac_ext <<_ACEOF |
2365 | /* confdefs.h. */ | |
2366 | _ACEOF | |
2367 | cat confdefs.h >>conftest.$ac_ext | |
2368 | cat >>conftest.$ac_ext <<_ACEOF | |
2369 | /* end confdefs.h. */ | |
2370 | ||
2371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2372 | #ifdef __cplusplus | |
2373 | extern "C" | |
2374 | #endif | |
2375 | /* We use char because int might match the return type of a gcc2 | |
2376 | builtin and then its argument prototype would still apply. */ | |
2377 | char strerror (); | |
2378 | int | |
2379 | main () | |
2380 | { | |
2381 | strerror (); | |
2382 | ; | |
2383 | return 0; | |
2384 | } | |
2385 | _ACEOF | |
2386 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2388 | (eval $ac_link) 2>conftest.er1 | |
2389 | ac_status=$? | |
2390 | grep -v '^ *+' conftest.er1 >conftest.err | |
2391 | rm -f conftest.er1 | |
2392 | cat conftest.err >&5 | |
2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2394 | (exit $ac_status); } && | |
7f266840 | 2395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2397 | (eval $ac_try) 2>&5 | |
2398 | ac_status=$? | |
2399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2400 | (exit $ac_status); }; } && | |
2401 | { ac_try='test -s conftest$ac_exeext' | |
2402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2403 | (eval $ac_try) 2>&5 | |
2404 | ac_status=$? | |
2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2406 | (exit $ac_status); }; }; then | |
f5385ebf | 2407 | ac_cv_search_strerror="none required" |
5464f5a1 NN |
2408 | else |
2409 | echo "$as_me: failed program was:" >&5 | |
2410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2411 | ||
5464f5a1 NN |
2412 | fi |
2413 | rm -f conftest.err conftest.$ac_objext \ | |
2414 | conftest$ac_exeext conftest.$ac_ext | |
f5385ebf AM |
2415 | if test "$ac_cv_search_strerror" = no; then |
2416 | for ac_lib in cposix; do | |
2417 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2418 | cat >conftest.$ac_ext <<_ACEOF | |
2419 | /* confdefs.h. */ | |
2420 | _ACEOF | |
2421 | cat confdefs.h >>conftest.$ac_ext | |
2422 | cat >>conftest.$ac_ext <<_ACEOF | |
2423 | /* end confdefs.h. */ | |
2424 | ||
2425 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2426 | #ifdef __cplusplus | |
2427 | extern "C" | |
2428 | #endif | |
2429 | /* We use char because int might match the return type of a gcc2 | |
2430 | builtin and then its argument prototype would still apply. */ | |
2431 | char strerror (); | |
2432 | int | |
2433 | main () | |
2434 | { | |
2435 | strerror (); | |
2436 | ; | |
2437 | return 0; | |
2438 | } | |
2439 | _ACEOF | |
2440 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2442 | (eval $ac_link) 2>conftest.er1 | |
2443 | ac_status=$? | |
2444 | grep -v '^ *+' conftest.er1 >conftest.err | |
2445 | rm -f conftest.er1 | |
2446 | cat conftest.err >&5 | |
2447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2448 | (exit $ac_status); } && | |
7f266840 | 2449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f5385ebf AM |
2450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2451 | (eval $ac_try) 2>&5 | |
2452 | ac_status=$? | |
2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2454 | (exit $ac_status); }; } && | |
2455 | { ac_try='test -s conftest$ac_exeext' | |
2456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2457 | (eval $ac_try) 2>&5 | |
2458 | ac_status=$? | |
2459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2460 | (exit $ac_status); }; }; then | |
2461 | ac_cv_search_strerror="-l$ac_lib" | |
2462 | break | |
2463 | else | |
2464 | echo "$as_me: failed program was:" >&5 | |
2465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2466 | ||
5464f5a1 | 2467 | fi |
f5385ebf AM |
2468 | rm -f conftest.err conftest.$ac_objext \ |
2469 | conftest$ac_exeext conftest.$ac_ext | |
2470 | done | |
5464f5a1 | 2471 | fi |
f5385ebf AM |
2472 | LIBS=$ac_func_search_save_LIBS |
2473 | fi | |
2474 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2475 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2476 | if test "$ac_cv_search_strerror" != no; then | |
2477 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
5464f5a1 | 2478 | |
f5385ebf | 2479 | fi |
5464f5a1 NN |
2480 | |
2481 | ||
f5385ebf | 2482 | am__api_version="1.9" |
5464f5a1 NN |
2483 | # Find a good install program. We prefer a C program (faster), |
2484 | # so one script is as good as another. But avoid the broken or | |
2485 | # incompatible versions: | |
2486 | # SysV /etc/install, /usr/sbin/install | |
2487 | # SunOS /usr/etc/install | |
2488 | # IRIX /sbin/install | |
2489 | # AIX /bin/install | |
2490 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
252b5132 RH |
2491 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2492 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2493 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5464f5a1 | 2494 | # OS/2's system install, which has a completely different semantic |
252b5132 | 2495 | # ./install, which can be erroneously created by make from ./install.sh. |
5464f5a1 NN |
2496 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2497 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 2498 | if test -z "$INSTALL"; then |
5464f5a1 NN |
2499 | if test "${ac_cv_path_install+set}" = set; then |
2500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2501 | else |
5464f5a1 NN |
2502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2503 | for as_dir in $PATH | |
2504 | do | |
2505 | IFS=$as_save_IFS | |
2506 | test -z "$as_dir" && as_dir=. | |
2507 | # Account for people who put trailing slashes in PATH elements. | |
2508 | case $as_dir/ in | |
2509 | ./ | .// | /cC/* | \ | |
2510 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2511 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2512 | /usr/ucb/* ) ;; | |
2513 | *) | |
2514 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2515 | # Don't use installbsd from OSF since it installs stuff as root | |
2516 | # by default. | |
2517 | for ac_prog in ginstall scoinst install; do | |
2518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2519 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 2520 | if test $ac_prog = install && |
5464f5a1 | 2521 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
2522 | # AIX install. It has an incompatible calling convention. |
2523 | : | |
5464f5a1 NN |
2524 | elif test $ac_prog = install && |
2525 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2526 | # program-specific install script used by HP pwplus--don't use. | |
2527 | : | |
252b5132 | 2528 | else |
5464f5a1 NN |
2529 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2530 | break 3 | |
252b5132 RH |
2531 | fi |
2532 | fi | |
2533 | done | |
5464f5a1 NN |
2534 | done |
2535 | ;; | |
2536 | esac | |
2537 | done | |
2538 | ||
252b5132 RH |
2539 | |
2540 | fi | |
2541 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 2542 | INSTALL=$ac_cv_path_install |
252b5132 RH |
2543 | else |
2544 | # As a last resort, use the slow shell script. We don't cache a | |
2545 | # path for INSTALL within a source directory, because that will | |
2546 | # break other packages using the cache if that directory is | |
2547 | # removed, or if the path is relative. | |
5464f5a1 | 2548 | INSTALL=$ac_install_sh |
252b5132 RH |
2549 | fi |
2550 | fi | |
5464f5a1 NN |
2551 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2552 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2553 | |
2554 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2555 | # It thinks the first close brace ends the variable substitution. | |
2556 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2557 | ||
5464f5a1 | 2558 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2559 | |
2560 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2561 | ||
5464f5a1 NN |
2562 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2563 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2564 | # Just in case |
2565 | sleep 1 | |
f5385ebf | 2566 | echo timestamp > conftest.file |
252b5132 RH |
2567 | # Do `set' in a subshell so we don't clobber the current shell's |
2568 | # arguments. Must try -L first in case configure is actually a | |
2569 | # symlink; some systems play weird games with the mod time of symlinks | |
2570 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2571 | # directory). | |
2572 | if ( | |
f5385ebf | 2573 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2574 | if test "$*" = "X"; then |
2575 | # -L didn't work. | |
f5385ebf | 2576 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2577 | fi |
f5385ebf AM |
2578 | rm -f conftest.file |
2579 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2580 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2581 | |
2582 | # If neither matched, then we have a broken ls. This can happen | |
2583 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2584 | # broken ls alias from the environment. This has actually | |
2585 | # happened. Such a system could not be considered "sane". | |
5464f5a1 NN |
2586 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2587 | alias in your environment" >&5 | |
2588 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2589 | alias in your environment" >&2;} | |
2590 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2591 | fi |
2592 | ||
f5385ebf | 2593 | test "$2" = conftest.file |
252b5132 RH |
2594 | ) |
2595 | then | |
2596 | # Ok. | |
2597 | : | |
2598 | else | |
5464f5a1 NN |
2599 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2600 | Check your system clock" >&5 | |
2601 | echo "$as_me: error: newly created file is older than distributed files! | |
2602 | Check your system clock" >&2;} | |
2603 | { (exit 1); exit 1; }; } | |
252b5132 | 2604 | fi |
5464f5a1 NN |
2605 | echo "$as_me:$LINENO: result: yes" >&5 |
2606 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2607 | test "$program_prefix" != NONE && |
5464f5a1 | 2608 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2609 | # Use a double $ so make ignores it. |
2610 | test "$program_suffix" != NONE && | |
5464f5a1 NN |
2611 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
2612 | # Double any \ or $. echo might interpret backslashes. | |
2613 | # By default was `s,x,x', remove it if useless. | |
2614 | cat <<\_ACEOF >conftest.sed | |
2615 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2616 | _ACEOF | |
2617 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2618 | rm conftest.sed | |
2619 | ||
f5385ebf AM |
2620 | # expand $ac_aux_dir to an absolute path |
2621 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2622 | ||
2623 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2624 | # Use eval to expand $SHELL | |
2625 | if eval "$MISSING --run true"; then | |
2626 | am_missing_run="$MISSING --run " | |
2627 | else | |
2628 | am_missing_run= | |
2629 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2630 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2631 | fi | |
2632 | ||
2633 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2634 | # We used to keeping the `.' as first argument, in order to | |
2635 | # allow $(mkdir_p) to be used without argument. As in | |
2636 | # $(mkdir_p) $(somedir) | |
2637 | # where $(somedir) is conditionally defined. However this is wrong | |
2638 | # for two reasons: | |
2639 | # 1. if the package is installed by a user who cannot write `.' | |
2640 | # make install will fail, | |
2641 | # 2. the above comment should most certainly read | |
2642 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2643 | # so it does not work when $(somedir) is undefined and | |
2644 | # $(DESTDIR) is not. | |
2645 | # To support the latter case, we have to write | |
2646 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2647 | # so the `.' trick is pointless. | |
2648 | mkdir_p='mkdir -p --' | |
2649 | else | |
2650 | # On NextStep and OpenStep, the `mkdir' command does not | |
2651 | # recognize any option. It will interpret all options as | |
2652 | # directories to create, and then abort because `.' already | |
2653 | # exists. | |
2654 | for d in ./-p ./--version; | |
2655 | do | |
2656 | test -d $d && rmdir $d | |
2657 | done | |
2658 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2659 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2660 | mkdir_p='$(mkinstalldirs)' | |
2661 | else | |
2662 | mkdir_p='$(install_sh) -d' | |
2663 | fi | |
2664 | fi | |
2665 | ||
2666 | for ac_prog in gawk mawk nawk awk | |
2667 | do | |
2668 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2669 | set dummy $ac_prog; ac_word=$2 | |
2670 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2671 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2672 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2674 | else | |
2675 | if test -n "$AWK"; then | |
2676 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2677 | else | |
2678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2679 | for as_dir in $PATH | |
2680 | do | |
2681 | IFS=$as_save_IFS | |
2682 | test -z "$as_dir" && as_dir=. | |
2683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2684 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2685 | ac_cv_prog_AWK="$ac_prog" | |
2686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2687 | break 2 | |
2688 | fi | |
2689 | done | |
2690 | done | |
2691 | ||
2692 | fi | |
2693 | fi | |
2694 | AWK=$ac_cv_prog_AWK | |
2695 | if test -n "$AWK"; then | |
2696 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2697 | echo "${ECHO_T}$AWK" >&6 | |
2698 | else | |
2699 | echo "$as_me:$LINENO: result: no" >&5 | |
2700 | echo "${ECHO_T}no" >&6 | |
2701 | fi | |
2702 | ||
2703 | test -n "$AWK" && break | |
2704 | done | |
2705 | ||
5464f5a1 NN |
2706 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2707 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2708 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2709 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2711 | else | |
2712 | cat >conftest.make <<\_ACEOF | |
252b5132 | 2713 | all: |
5464f5a1 NN |
2714 | @echo 'ac_maketemp="$(MAKE)"' |
2715 | _ACEOF | |
252b5132 | 2716 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5464f5a1 | 2717 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
2718 | if test -n "$ac_maketemp"; then |
2719 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2720 | else | |
2721 | eval ac_cv_prog_make_${ac_make}_set=no | |
2722 | fi | |
5464f5a1 | 2723 | rm -f conftest.make |
252b5132 RH |
2724 | fi |
2725 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
5464f5a1 NN |
2726 | echo "$as_me:$LINENO: result: yes" >&5 |
2727 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2728 | SET_MAKE= |
2729 | else | |
5464f5a1 NN |
2730 | echo "$as_me:$LINENO: result: no" >&5 |
2731 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2732 | SET_MAKE="MAKE=${MAKE-make}" |
2733 | fi | |
2734 | ||
f5385ebf AM |
2735 | rm -rf .tst 2>/dev/null |
2736 | mkdir .tst 2>/dev/null | |
2737 | if test -d .tst; then | |
2738 | am__leading_dot=. | |
2739 | else | |
2740 | am__leading_dot=_ | |
2741 | fi | |
2742 | rmdir .tst 2>/dev/null | |
2743 | ||
2744 | DEPDIR="${am__leading_dot}deps" | |
2745 | ||
2746 | ac_config_commands="$ac_config_commands depfiles" | |
2747 | ||
2748 | ||
2749 | am_make=${MAKE-make} | |
2750 | cat > confinc << 'END' | |
2751 | am__doit: | |
2752 | @echo done | |
2753 | .PHONY: am__doit | |
2754 | END | |
2755 | # If we don't find an include directive, just comment out the code. | |
2756 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2757 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2758 | am__include="#" | |
2759 | am__quote= | |
2760 | _am_result=none | |
2761 | # First try GNU make style include. | |
2762 | echo "include confinc" > confmf | |
2763 | # We grep out `Entering directory' and `Leaving directory' | |
2764 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2765 | # In particular we don't look at `^make:' because GNU make might | |
2766 | # be invoked under some other name (usually "gmake"), in which | |
2767 | # case it prints its new name instead of `make'. | |
2768 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2769 | am__include=include | |
2770 | am__quote= | |
2771 | _am_result=GNU | |
2772 | fi | |
2773 | # Now try BSD make style include. | |
2774 | if test "$am__include" = "#"; then | |
2775 | echo '.include "confinc"' > confmf | |
2776 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2777 | am__include=.include | |
2778 | am__quote="\"" | |
2779 | _am_result=BSD | |
2780 | fi | |
2781 | fi | |
2782 | ||
2783 | ||
2784 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2785 | echo "${ECHO_T}$_am_result" >&6 | |
2786 | rm -f confinc confmf | |
2787 | ||
2788 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2789 | if test "${enable_dependency_tracking+set}" = set; then | |
2790 | enableval="$enable_dependency_tracking" | |
2791 | ||
2792 | fi; | |
2793 | if test "x$enable_dependency_tracking" != xno; then | |
2794 | am_depcomp="$ac_aux_dir/depcomp" | |
2795 | AMDEPBACKSLASH='\' | |
2796 | fi | |
2797 | ||
2798 | ||
2799 | if test "x$enable_dependency_tracking" != xno; then | |
2800 | AMDEP_TRUE= | |
2801 | AMDEP_FALSE='#' | |
2802 | else | |
2803 | AMDEP_TRUE='#' | |
2804 | AMDEP_FALSE= | |
2805 | fi | |
6be7c12c | 2806 | |
252b5132 | 2807 | |
252b5132 | 2808 | |
f5385ebf AM |
2809 | # test to see if srcdir already configured |
2810 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2811 | test -f $srcdir/config.status; then | |
5464f5a1 NN |
2812 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2813 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2814 | { (exit 1); exit 1; }; } | |
252b5132 | 2815 | fi |
5464f5a1 | 2816 | |
f5385ebf AM |
2817 | # test whether we have cygpath |
2818 | if test -z "$CYGPATH_W"; then | |
2819 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2820 | CYGPATH_W='cygpath -w' | |
2821 | else | |
2822 | CYGPATH_W=echo | |
2823 | fi | |
2824 | fi | |
2825 | ||
2826 | ||
2827 | # Define the identity of the package. | |
2828 | PACKAGE=bfd | |
8697aafb | 2829 | VERSION=2.15.94 |
f5385ebf AM |
2830 | |
2831 | ||
5464f5a1 | 2832 | cat >>confdefs.h <<_ACEOF |
252b5132 | 2833 | #define PACKAGE "$PACKAGE" |
5464f5a1 | 2834 | _ACEOF |
252b5132 | 2835 | |
5464f5a1 NN |
2836 | |
2837 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 2838 | #define VERSION "$VERSION" |
5464f5a1 | 2839 | _ACEOF |
252b5132 | 2840 | |
f5385ebf AM |
2841 | # Some tools Automake needs. |
2842 | ||
2843 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2844 | ||
2845 | ||
2846 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2847 | ||
2848 | ||
2849 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2850 | ||
2851 | ||
2852 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2853 | ||
2854 | ||
2855 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
6be7c12c | 2856 | |
f5385ebf | 2857 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
6be7c12c | 2858 | |
f5385ebf AM |
2859 | # Installed binaries are usually stripped using `strip' when the user |
2860 | # run `make install-strip'. However `strip' might not be the right | |
2861 | # tool to use in cross-compilation environments, therefore Automake | |
2862 | # will honor the `STRIP' environment variable to overrule this program. | |
2863 | if test "$cross_compiling" != no; then | |
2864 | if test -n "$ac_tool_prefix"; then | |
2865 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2866 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2869 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2871 | else | |
2872 | if test -n "$STRIP"; then | |
2873 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
252b5132 | 2874 | else |
f5385ebf AM |
2875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2876 | for as_dir in $PATH | |
2877 | do | |
2878 | IFS=$as_save_IFS | |
2879 | test -z "$as_dir" && as_dir=. | |
2880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2882 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2884 | break 2 | |
2885 | fi | |
2886 | done | |
2887 | done | |
2888 | ||
2889 | fi | |
2890 | fi | |
2891 | STRIP=$ac_cv_prog_STRIP | |
2892 | if test -n "$STRIP"; then | |
2893 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2894 | echo "${ECHO_T}$STRIP" >&6 | |
2895 | else | |
2896 | echo "$as_me:$LINENO: result: no" >&5 | |
2897 | echo "${ECHO_T}no" >&6 | |
2898 | fi | |
2899 | ||
252b5132 | 2900 | fi |
f5385ebf AM |
2901 | if test -z "$ac_cv_prog_STRIP"; then |
2902 | ac_ct_STRIP=$STRIP | |
2903 | # Extract the first word of "strip", so it can be a program name with args. | |
2904 | set dummy strip; ac_word=$2 | |
2905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2907 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2909 | else | |
2910 | if test -n "$ac_ct_STRIP"; then | |
2911 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2912 | else | |
2913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2914 | for as_dir in $PATH | |
2915 | do | |
2916 | IFS=$as_save_IFS | |
2917 | test -z "$as_dir" && as_dir=. | |
2918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2920 | ac_cv_prog_ac_ct_STRIP="strip" | |
2921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2922 | break 2 | |
2923 | fi | |
2924 | done | |
2925 | done | |
252b5132 | 2926 | |
f5385ebf AM |
2927 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
2928 | fi | |
2929 | fi | |
2930 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2931 | if test -n "$ac_ct_STRIP"; then | |
2932 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2933 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 2934 | else |
f5385ebf AM |
2935 | echo "$as_me:$LINENO: result: no" >&5 |
2936 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2937 | fi |
2938 | ||
f5385ebf | 2939 | STRIP=$ac_ct_STRIP |
252b5132 | 2940 | else |
f5385ebf AM |
2941 | STRIP="$ac_cv_prog_STRIP" |
2942 | fi | |
2943 | ||
252b5132 | 2944 | fi |
f5385ebf AM |
2945 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
2946 | ||
2947 | # We need awk for the "check" target. The system "awk" is bad on | |
2948 | # some platforms. | |
2949 | # Always define AMTAR for backward compatibility. | |
2950 | ||
2951 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2952 | ||
2953 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2954 | ||
252b5132 | 2955 | |
f5385ebf AM |
2956 | |
2957 | ||
2958 | depcc="$CC" am_compiler_list= | |
2959 | ||
2960 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2961 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2962 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2964 | else |
f5385ebf AM |
2965 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2966 | # We make a subdir and do the tests there. Otherwise we can end up | |
2967 | # making bogus files that we don't know about and never remove. For | |
2968 | # instance it was reported that on HP-UX the gcc test will end up | |
2969 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2970 | # in D'. | |
2971 | mkdir conftest.dir | |
2972 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2973 | # using a relative directory. | |
2974 | cp "$am_depcomp" conftest.dir | |
2975 | cd conftest.dir | |
2976 | # We will build objects and dependencies in a subdirectory because | |
2977 | # it helps to detect inapplicable dependency modes. For instance | |
2978 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2979 | # side effect of compilation, but ICC will put the dependencies in | |
2980 | # the current directory while Tru64 will put them in the object | |
2981 | # directory. | |
2982 | mkdir sub | |
2983 | ||
2984 | am_cv_CC_dependencies_compiler_type=none | |
2985 | if test "$am_compiler_list" = ""; then | |
2986 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2987 | fi | |
2988 | for depmode in $am_compiler_list; do | |
2989 | # Setup a source with many dependencies, because some compilers | |
2990 | # like to wrap large dependency lists on column 80 (with \), and | |
2991 | # we should not choose a depcomp mode which is confused by this. | |
2992 | # | |
2993 | # We need to recreate these files for each test, as the compiler may | |
2994 | # overwrite some of them when testing with obscure command lines. | |
2995 | # This happens at least with the AIX C compiler. | |
2996 | : > sub/conftest.c | |
2997 | for i in 1 2 3 4 5 6; do | |
2998 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
2999 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3000 | # Solaris 8's {/usr,}/bin/sh. | |
3001 | touch sub/conftst$i.h | |
3002 | done | |
3003 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3004 | ||
3005 | case $depmode in | |
3006 | nosideeffect) | |
3007 | # after this tag, mechanisms are not by side-effect, so they'll | |
3008 | # only be used when explicitly requested | |
3009 | if test "x$enable_dependency_tracking" = xyes; then | |
3010 | continue | |
3011 | else | |
3012 | break | |
3013 | fi | |
3014 | ;; | |
3015 | none) break ;; | |
3016 | esac | |
3017 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3018 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3019 | # handle `-M -o', and we need to detect this. | |
3020 | if depmode=$depmode \ | |
3021 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3022 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3023 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3024 | >/dev/null 2>conftest.err && | |
3025 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3026 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3027 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3028 | # icc doesn't choke on unknown options, it will just issue warnings | |
3029 | # or remarks (even with -Werror). So we grep stderr for any message | |
3030 | # that says an option was ignored or not supported. | |
3031 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3032 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3033 | # The diagnosis changed in icc 8.0: | |
3034 | # icc: Command line remark: option '-MP' not supported | |
3035 | if (grep 'ignoring option' conftest.err || | |
3036 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3037 | am_cv_CC_dependencies_compiler_type=$depmode | |
3038 | break | |
3039 | fi | |
3040 | fi | |
3041 | done | |
3042 | ||
3043 | cd .. | |
3044 | rm -rf conftest.dir | |
3045 | else | |
3046 | am_cv_CC_dependencies_compiler_type=none | |
3047 | fi | |
3048 | ||
252b5132 | 3049 | fi |
f5385ebf AM |
3050 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3051 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3052 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
252b5132 | 3053 | |
f5385ebf AM |
3054 | |
3055 | ||
3056 | if | |
3057 | test "x$enable_dependency_tracking" != xno \ | |
3058 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3059 | am__fastdepCC_TRUE= | |
3060 | am__fastdepCC_FALSE='#' | |
252b5132 | 3061 | else |
f5385ebf AM |
3062 | am__fastdepCC_TRUE='#' |
3063 | am__fastdepCC_FALSE= | |
252b5132 RH |
3064 | fi |
3065 | ||
6be7c12c | 3066 | |
e43d48cc | 3067 | |
f5385ebf | 3068 | |
5464f5a1 NN |
3069 | if test -n "$ac_tool_prefix"; then |
3070 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
252b5132 | 3071 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5464f5a1 NN |
3072 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3073 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3074 | if test "${ac_cv_prog_AR+set}" = set; then | |
3075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3076 | else |
3077 | if test -n "$AR"; then | |
3078 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3079 | else | |
5464f5a1 NN |
3080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3081 | for as_dir in $PATH | |
3082 | do | |
3083 | IFS=$as_save_IFS | |
3084 | test -z "$as_dir" && as_dir=. | |
3085 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3086 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3087 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3088 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3089 | break 2 | |
3090 | fi | |
3091 | done | |
3092 | done | |
3093 | ||
252b5132 RH |
3094 | fi |
3095 | fi | |
5464f5a1 | 3096 | AR=$ac_cv_prog_AR |
252b5132 | 3097 | if test -n "$AR"; then |
5464f5a1 NN |
3098 | echo "$as_me:$LINENO: result: $AR" >&5 |
3099 | echo "${ECHO_T}$AR" >&6 | |
252b5132 | 3100 | else |
5464f5a1 NN |
3101 | echo "$as_me:$LINENO: result: no" >&5 |
3102 | echo "${ECHO_T}no" >&6 | |
3103 | fi | |
3104 | ||
252b5132 | 3105 | fi |
5464f5a1 NN |
3106 | if test -z "$ac_cv_prog_AR"; then |
3107 | ac_ct_AR=$AR | |
3108 | # Extract the first word of "ar", so it can be a program name with args. | |
3109 | set dummy ar; ac_word=$2 | |
3110 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3111 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3112 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3114 | else | |
3115 | if test -n "$ac_ct_AR"; then | |
3116 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3117 | else | |
3118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3119 | for as_dir in $PATH | |
3120 | do | |
3121 | IFS=$as_save_IFS | |
3122 | test -z "$as_dir" && as_dir=. | |
3123 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3124 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3125 | ac_cv_prog_ac_ct_AR="ar" | |
3126 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3127 | break 2 | |
3128 | fi | |
3129 | done | |
3130 | done | |
252b5132 | 3131 | |
5464f5a1 NN |
3132 | fi |
3133 | fi | |
3134 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3135 | if test -n "$ac_ct_AR"; then | |
3136 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3137 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3138 | else | |
3139 | echo "$as_me:$LINENO: result: no" >&5 | |
3140 | echo "${ECHO_T}no" >&6 | |
3141 | fi | |
252b5132 | 3142 | |
5464f5a1 NN |
3143 | AR=$ac_ct_AR |
3144 | else | |
3145 | AR="$ac_cv_prog_AR" | |
3146 | fi | |
6be7c12c | 3147 | |
5464f5a1 NN |
3148 | if test -n "$ac_tool_prefix"; then |
3149 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
252b5132 | 3150 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5464f5a1 NN |
3151 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3152 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3153 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3155 | else |
3156 | if test -n "$RANLIB"; then | |
3157 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3158 | else | |
5464f5a1 NN |
3159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3160 | for as_dir in $PATH | |
3161 | do | |
3162 | IFS=$as_save_IFS | |
3163 | test -z "$as_dir" && as_dir=. | |
3164 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3165 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3166 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3167 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3168 | break 2 | |
3169 | fi | |
3170 | done | |
3171 | done | |
3172 | ||
252b5132 RH |
3173 | fi |
3174 | fi | |
5464f5a1 | 3175 | RANLIB=$ac_cv_prog_RANLIB |
252b5132 | 3176 | if test -n "$RANLIB"; then |
5464f5a1 NN |
3177 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3178 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 3179 | else |
5464f5a1 NN |
3180 | echo "$as_me:$LINENO: result: no" >&5 |
3181 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3182 | fi |
3183 | ||
5464f5a1 | 3184 | fi |
252b5132 | 3185 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3186 | ac_ct_RANLIB=$RANLIB |
252b5132 RH |
3187 | # Extract the first word of "ranlib", so it can be a program name with args. |
3188 | set dummy ranlib; ac_word=$2 | |
5464f5a1 NN |
3189 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3191 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3193 | else |
5464f5a1 NN |
3194 | if test -n "$ac_ct_RANLIB"; then |
3195 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3196 | else |
5464f5a1 NN |
3197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3198 | for as_dir in $PATH | |
3199 | do | |
3200 | IFS=$as_save_IFS | |
3201 | test -z "$as_dir" && as_dir=. | |
3202 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3203 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3204 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3206 | break 2 | |
3207 | fi | |
3208 | done | |
3209 | done | |
3210 | ||
3211 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
3212 | fi |
3213 | fi | |
5464f5a1 NN |
3214 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3215 | if test -n "$ac_ct_RANLIB"; then | |
3216 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3217 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 3218 | else |
5464f5a1 NN |
3219 | echo "$as_me:$LINENO: result: no" >&5 |
3220 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3221 | fi |
3222 | ||
5464f5a1 | 3223 | RANLIB=$ac_ct_RANLIB |
252b5132 | 3224 | else |
5464f5a1 | 3225 | RANLIB="$ac_cv_prog_RANLIB" |
6be7c12c AO |
3226 | fi |
3227 | ||
252b5132 RH |
3228 | |
3229 | # Check whether --enable-shared or --disable-shared was given. | |
3230 | if test "${enable_shared+set}" = set; then | |
3231 | enableval="$enable_shared" | |
3232 | p=${PACKAGE-default} | |
55c80943 | 3233 | case $enableval in |
252b5132 RH |
3234 | yes) enable_shared=yes ;; |
3235 | no) enable_shared=no ;; | |
3236 | *) | |
3237 | enable_shared=no | |
3238 | # Look at the argument we got. We use all the common list separators. | |
3239 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3240 | for pkg in $enableval; do | |
3241 | if test "X$pkg" = "X$p"; then | |
3242 | enable_shared=yes | |
3243 | fi | |
3244 | done | |
3245 | IFS="$ac_save_ifs" | |
3246 | ;; | |
3247 | esac | |
3248 | else | |
3249 | enable_shared=no | |
5464f5a1 | 3250 | fi; |
252b5132 RH |
3251 | |
3252 | # Check whether --enable-static or --disable-static was given. | |
3253 | if test "${enable_static+set}" = set; then | |
3254 | enableval="$enable_static" | |
3255 | p=${PACKAGE-default} | |
55c80943 | 3256 | case $enableval in |
252b5132 RH |
3257 | yes) enable_static=yes ;; |
3258 | no) enable_static=no ;; | |
3259 | *) | |
3260 | enable_static=no | |
3261 | # Look at the argument we got. We use all the common list separators. | |
3262 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3263 | for pkg in $enableval; do | |
3264 | if test "X$pkg" = "X$p"; then | |
3265 | enable_static=yes | |
3266 | fi | |
3267 | done | |
3268 | IFS="$ac_save_ifs" | |
3269 | ;; | |
3270 | esac | |
3271 | else | |
3272 | enable_static=yes | |
5464f5a1 | 3273 | fi; |
b2ef150d ILT |
3274 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3275 | if test "${enable_fast_install+set}" = set; then | |
3276 | enableval="$enable_fast_install" | |
3277 | p=${PACKAGE-default} | |
55c80943 | 3278 | case $enableval in |
b2ef150d ILT |
3279 | yes) enable_fast_install=yes ;; |
3280 | no) enable_fast_install=no ;; | |
3281 | *) | |
3282 | enable_fast_install=no | |
3283 | # Look at the argument we got. We use all the common list separators. | |
3284 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3285 | for pkg in $enableval; do | |
3286 | if test "X$pkg" = "X$p"; then | |
3287 | enable_fast_install=yes | |
3288 | fi | |
3289 | done | |
3290 | IFS="$ac_save_ifs" | |
3291 | ;; | |
3292 | esac | |
3293 | else | |
3294 | enable_fast_install=yes | |
5464f5a1 | 3295 | fi; |
c5d1701e | 3296 | |
252b5132 RH |
3297 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3298 | if test "${with_gnu_ld+set}" = set; then | |
3299 | withval="$with_gnu_ld" | |
3300 | test "$withval" = no || with_gnu_ld=yes | |
3301 | else | |
3302 | with_gnu_ld=no | |
5464f5a1 | 3303 | fi; |
252b5132 | 3304 | ac_prog=ld |
55c80943 | 3305 | if test "$GCC" = yes; then |
252b5132 | 3306 | # Check if gcc -print-prog-name=ld gives a path. |
5464f5a1 NN |
3307 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3308 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
ac48eca1 AO |
3309 | case $host in |
3310 | *-*-mingw*) | |
3311 | # gcc leaves a trailing carriage return which upsets mingw | |
3312 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3313 | *) | |
3314 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3315 | esac | |
55c80943 | 3316 | case $ac_prog in |
b2ef150d | 3317 | # Accept absolute paths. |
a74801ba | 3318 | [\\/]* | [A-Za-z]:[\\/]*) |
b2ef150d ILT |
3319 | re_direlt='/[^/][^/]*/\.\./' |
3320 | # Canonicalize the path of ld | |
3321 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3322 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3323 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3324 | done | |
3325 | test -z "$LD" && LD="$ac_prog" | |
3326 | ;; | |
252b5132 RH |
3327 | "") |
3328 | # If it fails, then pretend we aren't using GCC. | |
3329 | ac_prog=ld | |
3330 | ;; | |
3331 | *) | |
3332 | # If it is relative, then search for the first ld in PATH. | |
3333 | with_gnu_ld=unknown | |
3334 | ;; | |
3335 | esac | |
3336 | elif test "$with_gnu_ld" = yes; then | |
5464f5a1 NN |
3337 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3338 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
252b5132 | 3339 | else |
5464f5a1 NN |
3340 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3341 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
252b5132 | 3342 | fi |
5464f5a1 NN |
3343 | if test "${lt_cv_path_LD+set}" = set; then |
3344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3345 | else |
3346 | if test -z "$LD"; then | |
a74801ba | 3347 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3348 | for ac_dir in $PATH; do |
3349 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 3350 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
55c80943 | 3351 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
3352 | # Check to see if the program is GNU ld. I'd rather use --version, |
3353 | # but apparently some GNU ld's only accept -v. | |
3354 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
55c80943 | 3355 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
3356 | test "$with_gnu_ld" != no && break |
3357 | else | |
b2ef150d | 3358 | test "$with_gnu_ld" != yes && break |
252b5132 RH |
3359 | fi |
3360 | fi | |
3361 | done | |
3362 | IFS="$ac_save_ifs" | |
3363 | else | |
55c80943 | 3364 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
3365 | fi |
3366 | fi | |
3367 | ||
55c80943 | 3368 | LD="$lt_cv_path_LD" |
252b5132 | 3369 | if test -n "$LD"; then |
5464f5a1 NN |
3370 | echo "$as_me:$LINENO: result: $LD" >&5 |
3371 | echo "${ECHO_T}$LD" >&6 | |
252b5132 | 3372 | else |
5464f5a1 NN |
3373 | echo "$as_me:$LINENO: result: no" >&5 |
3374 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3375 | fi |
5464f5a1 NN |
3376 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3377 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3378 | { (exit 1); exit 1; }; } | |
3379 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3380 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3381 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3383 | else |
3384 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3385 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
55c80943 | 3386 | lt_cv_prog_gnu_ld=yes |
252b5132 | 3387 | else |
55c80943 | 3388 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
3389 | fi |
3390 | fi | |
5464f5a1 NN |
3391 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3392 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
55c80943 | 3393 | with_gnu_ld=$lt_cv_prog_gnu_ld |
252b5132 | 3394 | |
6be7c12c | 3395 | |
5464f5a1 NN |
3396 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3397 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3398 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3400 | else |
3401 | lt_cv_ld_reload_flag='-r' | |
3402 | fi | |
5464f5a1 NN |
3403 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3404 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
ac48eca1 AO |
3405 | reload_flag=$lt_cv_ld_reload_flag |
3406 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3407 | ||
5464f5a1 NN |
3408 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3409 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3410 | if test "${lt_cv_path_NM+set}" = set; then | |
3411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3412 | else |
3413 | if test -n "$NM"; then | |
3414 | # Let the user override the test. | |
55c80943 | 3415 | lt_cv_path_NM="$NM" |
252b5132 | 3416 | else |
a74801ba | 3417 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2ef150d | 3418 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
252b5132 | 3419 | test -z "$ac_dir" && ac_dir=. |
ac48eca1 AO |
3420 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3421 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
3422 | # Check to see if the nm accepts a BSD-compat flag. |
3423 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3424 | # nm: unknown option "B" ignored | |
90f2472a AO |
3425 | # Tru64's nm complains that /dev/null is an invalid object file |
3426 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
55c80943 | 3427 | lt_cv_path_NM="$tmp_nm -B" |
b2ef150d | 3428 | break |
ac48eca1 | 3429 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
55c80943 | 3430 | lt_cv_path_NM="$tmp_nm -p" |
b2ef150d | 3431 | break |
252b5132 | 3432 | else |
55c80943 | 3433 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
b2ef150d | 3434 | continue # so that we can try to find one that supports BSD flags |
252b5132 | 3435 | fi |
252b5132 RH |
3436 | fi |
3437 | done | |
3438 | IFS="$ac_save_ifs" | |
55c80943 | 3439 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
3440 | fi |
3441 | fi | |
3442 | ||
55c80943 | 3443 | NM="$lt_cv_path_NM" |
5464f5a1 NN |
3444 | echo "$as_me:$LINENO: result: $NM" >&5 |
3445 | echo "${ECHO_T}$NM" >&6 | |
252b5132 | 3446 | |
5464f5a1 NN |
3447 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3448 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3449 | LN_S=$as_ln_s | |
3450 | if test "$LN_S" = "ln -s"; then | |
3451 | echo "$as_me:$LINENO: result: yes" >&5 | |
3452 | echo "${ECHO_T}yes" >&6 | |
6be7c12c | 3453 | else |
5464f5a1 NN |
3454 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3455 | echo "${ECHO_T}no, using $LN_S" >&6 | |
252b5132 RH |
3456 | fi |
3457 | ||
5464f5a1 NN |
3458 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3459 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3460 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3462 | else |
d64552c5 | 3463 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
3464 | lt_cv_file_magic_test_file= |
3465 | lt_cv_deplibs_check_method='unknown' | |
3466 | # Need to set the preceding variable on all platforms that support | |
3467 | # interlibrary dependencies. | |
3468 | # 'none' -- dependencies not supported. | |
3469 | # `unknown' -- same as none, but documents that we really don't know. | |
3470 | # 'pass_all' -- all dependencies passed with no checks. | |
3471 | # 'test_compile' -- check by making test program. | |
3472 | # 'file_magic [regex]' -- check by looking for files in library path | |
3473 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3474 | # If you have `file' or equivalent on your system and you're not sure | |
3475 | # whether `pass_all' will *always* work, you probably want this one. | |
3476 | ||
55c80943 NC |
3477 | case $host_os in |
3478 | aix*) | |
ac48eca1 AO |
3479 | lt_cv_deplibs_check_method=pass_all |
3480 | ;; | |
3481 | ||
3482 | beos*) | |
3483 | lt_cv_deplibs_check_method=pass_all | |
3484 | ;; | |
3485 | ||
3486 | bsdi4*) | |
55c80943 NC |
3487 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3488 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
3489 | lt_cv_file_magic_test_file=/shlib/libc.so |
3490 | ;; | |
3491 | ||
d64552c5 | 3492 | cygwin* | mingw* |pw32*) |
ac48eca1 | 3493 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 3494 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
3495 | ;; |
3496 | ||
55c80943 NC |
3497 | darwin* | rhapsody*) |
3498 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
b3baf5d0 NC |
3499 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3500 | case "$host_os" in | |
3501 | rhapsody* | darwin1.012) | |
3502 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3503 | ;; | |
3504 | *) # Darwin 1.3 on | |
3505 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3506 | ;; | |
3507 | esac | |
55c80943 NC |
3508 | ;; |
3509 | ||
5464f5a1 | 3510 | freebsd* | kfreebsd*-gnu) |
ac48eca1 | 3511 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
55c80943 | 3512 | case $host_cpu in |
ac48eca1 | 3513 | i*86 ) |
90f2472a AO |
3514 | # Not sure whether the presence of OpenBSD here was a mistake. |
3515 | # Let's accept both of them until this is cleared up. | |
55c80943 NC |
3516 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3517 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
3518 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3519 | ;; | |
3520 | esac | |
3521 | else | |
3522 | lt_cv_deplibs_check_method=pass_all | |
3523 | fi | |
3524 | ;; | |
3525 | ||
3526 | gnu*) | |
3527 | lt_cv_deplibs_check_method=pass_all | |
3528 | ;; | |
3529 | ||
55c80943 | 3530 | hpux10.20*|hpux11*) |
4867be41 DJ |
3531 | case $host_cpu in |
3532 | hppa*) | |
3533 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3534 | lt_cv_file_magic_cmd=/usr/bin/file | |
3535 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3536 | ;; | |
3537 | ia64*) | |
3538 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3539 | lt_cv_file_magic_cmd=/usr/bin/file | |
3540 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3541 | ;; | |
3542 | esac | |
ac48eca1 AO |
3543 | ;; |
3544 | ||
3545 | irix5* | irix6*) | |
55c80943 | 3546 | case $host_os in |
ac48eca1 AO |
3547 | irix5*) |
3548 | # this will be overridden with pass_all, but let us keep it just in case | |
3549 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3550 | ;; | |
3551 | *) | |
55c80943 | 3552 | case $LD in |
ac48eca1 AO |
3553 | *-32|*"-32 ") libmagic=32-bit;; |
3554 | *-n32|*"-n32 ") libmagic=N32;; | |
3555 | *-64|*"-64 ") libmagic=64-bit;; | |
3556 | *) libmagic=never-match;; | |
3557 | esac | |
3558 | # this will be overridden with pass_all, but let us keep it just in case | |
55c80943 NC |
3559 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3560 | ;; | |
ac48eca1 AO |
3561 | esac |
3562 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3563 | lt_cv_deplibs_check_method=pass_all | |
3564 | ;; | |
3565 | ||
3566 | # This must be Linux ELF. | |
90f2472a | 3567 | linux-gnu*) |
55c80943 | 3568 | case $host_cpu in |
c5d1701e | 3569 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
ac48eca1 AO |
3570 | lt_cv_deplibs_check_method=pass_all ;; |
3571 | *) | |
3572 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
55c80943 NC |
3573 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
3574 | esac | |
ac48eca1 AO |
3575 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
3576 | ;; | |
3577 | ||
5464f5a1 | 3578 | netbsd* | knetbsd*-gnu) |
55c80943 | 3579 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
b3baf5d0 | 3580 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
ac48eca1 | 3581 | else |
b3baf5d0 | 3582 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 | 3583 | fi |
55c80943 NC |
3584 | ;; |
3585 | ||
3586 | newsos6) | |
3587 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3588 | lt_cv_file_magic_cmd=/usr/bin/file | |
3589 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
ac48eca1 AO |
3590 | ;; |
3591 | ||
3592 | osf3* | osf4* | osf5*) | |
3593 | # this will be overridden with pass_all, but let us keep it just in case | |
3594 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3595 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3596 | lt_cv_deplibs_check_method=pass_all | |
3597 | ;; | |
3598 | ||
3599 | sco3.2v5*) | |
3600 | lt_cv_deplibs_check_method=pass_all | |
3601 | ;; | |
3602 | ||
3603 | solaris*) | |
3604 | lt_cv_deplibs_check_method=pass_all | |
3605 | lt_cv_file_magic_test_file=/lib/libc.so | |
3606 | ;; | |
3607 | ||
6be7c12c AO |
3608 | sysv5uw[78]* | sysv4*uw2*) |
3609 | lt_cv_deplibs_check_method=pass_all | |
3610 | ;; | |
3611 | ||
ac48eca1 | 3612 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
55c80943 | 3613 | case $host_vendor in |
ac48eca1 AO |
3614 | ncr) |
3615 | lt_cv_deplibs_check_method=pass_all | |
3616 | ;; | |
3617 | motorola) | |
55c80943 NC |
3618 | 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]' |
3619 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
3620 | ;; |
3621 | esac | |
3622 | ;; | |
3623 | esac | |
3624 | ||
3625 | fi | |
5464f5a1 NN |
3626 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3627 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
ac48eca1 AO |
3628 | file_magic_cmd=$lt_cv_file_magic_cmd |
3629 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3630 | ||
6be7c12c AO |
3631 | |
3632 | ||
6be7c12c AO |
3633 | |
3634 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3635 | ||
3636 | # Only perform the check for file, if the check method requires it | |
3637 | case $deplibs_check_method in | |
3638 | file_magic*) | |
3639 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5464f5a1 NN |
3640 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
3641 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3642 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c AO |
3644 | else |
3645 | case $MAGIC_CMD in | |
3646 | /*) | |
3647 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3648 | ;; | |
3649 | ?:/*) | |
3650 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3651 | ;; | |
3652 | *) | |
d64552c5 | 3653 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3654 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3655 | ac_dummy="/usr/bin:$PATH" | |
3656 | for ac_dir in $ac_dummy; do | |
3657 | test -z "$ac_dir" && ac_dir=. | |
3658 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 3659 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 3660 | if test -n "$file_magic_test_file"; then |
55c80943 | 3661 | case $deplibs_check_method in |
ac48eca1 AO |
3662 | "file_magic "*) |
3663 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3664 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3665 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3666 | egrep "$file_magic_regex" > /dev/null; then | |
3667 | : | |
3668 | else | |
3669 | cat <<EOF 1>&2 | |
3670 | ||
3671 | *** Warning: the command libtool uses to detect shared libraries, | |
3672 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3673 | *** The result is that libtool may fail to recognize shared libraries | |
3674 | *** as such. This will affect the creation of libtool libraries that | |
3675 | *** depend on shared libraries, but programs linked with such libtool | |
3676 | *** libraries will work regardless of this problem. Nevertheless, you | |
3677 | *** may want to report the problem to your system manager and/or to | |
3678 | *** bug-libtool@gnu.org | |
3679 | ||
3680 | EOF | |
3681 | fi ;; | |
3682 | esac | |
3683 | fi | |
3684 | break | |
3685 | fi | |
3686 | done | |
3687 | IFS="$ac_save_ifs" | |
d64552c5 | 3688 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3689 | ;; |
3690 | esac | |
3691 | fi | |
3692 | ||
d64552c5 AO |
3693 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3694 | if test -n "$MAGIC_CMD"; then | |
5464f5a1 NN |
3695 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3696 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3697 | else |
5464f5a1 NN |
3698 | echo "$as_me:$LINENO: result: no" >&5 |
3699 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3700 | fi |
3701 | ||
d64552c5 | 3702 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 3703 | if test -n "$ac_tool_prefix"; then |
5464f5a1 NN |
3704 | echo "$as_me:$LINENO: checking for file" >&5 |
3705 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3706 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3708 | else |
55c80943 | 3709 | case $MAGIC_CMD in |
ac48eca1 | 3710 | /*) |
d64552c5 | 3711 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3712 | ;; |
3713 | ?:/*) | |
d64552c5 | 3714 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3715 | ;; |
3716 | *) | |
d64552c5 | 3717 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3718 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3719 | ac_dummy="/usr/bin:$PATH" | |
3720 | for ac_dir in $ac_dummy; do | |
3721 | test -z "$ac_dir" && ac_dir=. | |
3722 | if test -f $ac_dir/file; then | |
d64552c5 | 3723 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 3724 | if test -n "$file_magic_test_file"; then |
55c80943 | 3725 | case $deplibs_check_method in |
ac48eca1 AO |
3726 | "file_magic "*) |
3727 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3728 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3729 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3730 | egrep "$file_magic_regex" > /dev/null; then | |
3731 | : | |
3732 | else | |
3733 | cat <<EOF 1>&2 | |
3734 | ||
3735 | *** Warning: the command libtool uses to detect shared libraries, | |
3736 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3737 | *** The result is that libtool may fail to recognize shared libraries | |
3738 | *** as such. This will affect the creation of libtool libraries that | |
3739 | *** depend on shared libraries, but programs linked with such libtool | |
3740 | *** libraries will work regardless of this problem. Nevertheless, you | |
3741 | *** may want to report the problem to your system manager and/or to | |
3742 | *** bug-libtool@gnu.org | |
3743 | ||
3744 | EOF | |
3745 | fi ;; | |
3746 | esac | |
3747 | fi | |
3748 | break | |
3749 | fi | |
3750 | done | |
3751 | IFS="$ac_save_ifs" | |
d64552c5 | 3752 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3753 | ;; |
3754 | esac | |
3755 | fi | |
3756 | ||
d64552c5 AO |
3757 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3758 | if test -n "$MAGIC_CMD"; then | |
5464f5a1 NN |
3759 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3760 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3761 | else |
5464f5a1 NN |
3762 | echo "$as_me:$LINENO: result: no" >&5 |
3763 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3764 | fi |
3765 | ||
3766 | else | |
d64552c5 | 3767 | MAGIC_CMD=: |
ac48eca1 AO |
3768 | fi |
3769 | fi | |
3770 | ||
3771 | fi | |
3772 | ;; | |
3773 | esac | |
3774 | ||
5464f5a1 NN |
3775 | if test -n "$ac_tool_prefix"; then |
3776 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ac48eca1 | 3777 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5464f5a1 NN |
3778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3780 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3782 | else |
3783 | if test -n "$RANLIB"; then | |
3784 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3785 | else | |
5464f5a1 NN |
3786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3787 | for as_dir in $PATH | |
3788 | do | |
3789 | IFS=$as_save_IFS | |
3790 | test -z "$as_dir" && as_dir=. | |
3791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3792 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3793 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3795 | break 2 | |
3796 | fi | |
3797 | done | |
3798 | done | |
3799 | ||
ac48eca1 AO |
3800 | fi |
3801 | fi | |
5464f5a1 | 3802 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 3803 | if test -n "$RANLIB"; then |
5464f5a1 NN |
3804 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3805 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 3806 | else |
5464f5a1 NN |
3807 | echo "$as_me:$LINENO: result: no" >&5 |
3808 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3809 | fi |
3810 | ||
5464f5a1 | 3811 | fi |
ac48eca1 | 3812 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3813 | ac_ct_RANLIB=$RANLIB |
ac48eca1 AO |
3814 | # Extract the first word of "ranlib", so it can be a program name with args. |
3815 | set dummy ranlib; ac_word=$2 | |
5464f5a1 NN |
3816 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3818 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3820 | else |
5464f5a1 NN |
3821 | if test -n "$ac_ct_RANLIB"; then |
3822 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3823 | else |
5464f5a1 NN |
3824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3825 | for as_dir in $PATH | |
3826 | do | |
3827 | IFS=$as_save_IFS | |
3828 | test -z "$as_dir" && as_dir=. | |
3829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3830 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3831 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3833 | break 2 | |
3834 | fi | |
3835 | done | |
3836 | done | |
3837 | ||
3838 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ac48eca1 AO |
3839 | fi |
3840 | fi | |
5464f5a1 NN |
3841 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3842 | if test -n "$ac_ct_RANLIB"; then | |
3843 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3844 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ac48eca1 | 3845 | else |
5464f5a1 NN |
3846 | echo "$as_me:$LINENO: result: no" >&5 |
3847 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3848 | fi |
3849 | ||
5464f5a1 | 3850 | RANLIB=$ac_ct_RANLIB |
ac48eca1 | 3851 | else |
5464f5a1 | 3852 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 AO |
3853 | fi |
3854 | ||
5464f5a1 NN |
3855 | if test -n "$ac_tool_prefix"; then |
3856 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
ac48eca1 | 3857 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5464f5a1 NN |
3858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3860 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3862 | else |
3863 | if test -n "$STRIP"; then | |
3864 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3865 | else | |
5464f5a1 NN |
3866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3867 | for as_dir in $PATH | |
3868 | do | |
3869 | IFS=$as_save_IFS | |
3870 | test -z "$as_dir" && as_dir=. | |
3871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3872 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3873 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3875 | break 2 | |
3876 | fi | |
3877 | done | |
3878 | done | |
3879 | ||
ac48eca1 AO |
3880 | fi |
3881 | fi | |
5464f5a1 | 3882 | STRIP=$ac_cv_prog_STRIP |
ac48eca1 | 3883 | if test -n "$STRIP"; then |
5464f5a1 NN |
3884 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3885 | echo "${ECHO_T}$STRIP" >&6 | |
ac48eca1 | 3886 | else |
5464f5a1 NN |
3887 | echo "$as_me:$LINENO: result: no" >&5 |
3888 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3889 | fi |
3890 | ||
5464f5a1 | 3891 | fi |
ac48eca1 | 3892 | if test -z "$ac_cv_prog_STRIP"; then |
5464f5a1 | 3893 | ac_ct_STRIP=$STRIP |
ac48eca1 AO |
3894 | # Extract the first word of "strip", so it can be a program name with args. |
3895 | set dummy strip; ac_word=$2 | |
5464f5a1 NN |
3896 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3898 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3900 | else |
5464f5a1 NN |
3901 | if test -n "$ac_ct_STRIP"; then |
3902 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6be7c12c | 3903 | else |
5464f5a1 NN |
3904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3905 | for as_dir in $PATH | |
3906 | do | |
3907 | IFS=$as_save_IFS | |
3908 | test -z "$as_dir" && as_dir=. | |
3909 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3910 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3911 | ac_cv_prog_ac_ct_STRIP="strip" | |
3912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3913 | break 2 | |
3914 | fi | |
3915 | done | |
3916 | done | |
3917 | ||
3918 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
ac48eca1 AO |
3919 | fi |
3920 | fi | |
5464f5a1 NN |
3921 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3922 | if test -n "$ac_ct_STRIP"; then | |
3923 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3924 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
ac48eca1 | 3925 | else |
5464f5a1 NN |
3926 | echo "$as_me:$LINENO: result: no" >&5 |
3927 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3928 | fi |
3929 | ||
5464f5a1 | 3930 | STRIP=$ac_ct_STRIP |
ac48eca1 | 3931 | else |
5464f5a1 | 3932 | STRIP="$ac_cv_prog_STRIP" |
ac48eca1 | 3933 | fi |
252b5132 | 3934 | |
6be7c12c | 3935 | |
252b5132 | 3936 | # Check for any special flags to pass to ltconfig. |
b2ef150d | 3937 | libtool_flags="--cache-file=$cache_file" |
252b5132 RH |
3938 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
3939 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
b2ef150d | 3940 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
55c80943 NC |
3941 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
3942 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 3943 | |
6be7c12c | 3944 | |
a74801ba ILT |
3945 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
3946 | if test "${enable_libtool_lock+set}" = set; then | |
3947 | enableval="$enable_libtool_lock" | |
a74801ba | 3948 | |
5464f5a1 | 3949 | fi; |
a74801ba ILT |
3950 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
3951 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
3952 | ||
5464f5a1 | 3953 | |
ac48eca1 AO |
3954 | # Check whether --with-pic or --without-pic was given. |
3955 | if test "${with_pic+set}" = set; then | |
3956 | withval="$with_pic" | |
3957 | pic_mode="$withval" | |
3958 | else | |
5464f5a1 NN |
3959 | pic_mode=default |
3960 | fi; | |
ac48eca1 AO |
3961 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
3962 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
3963 | ||
252b5132 RH |
3964 | # Some flags need to be propagated to the compiler or linker for good |
3965 | # libtool support. | |
55c80943 | 3966 | case $host in |
252b5132 RH |
3967 | *-*-irix6*) |
3968 | # Find out which ABI we are using. | |
7f266840 | 3969 | echo '#line 3969 "configure"' > conftest.$ac_ext |
5464f5a1 NN |
3970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3971 | (eval $ac_compile) 2>&5 | |
3972 | ac_status=$? | |
3973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3974 | (exit $ac_status); }; then | |
6a457e5c NC |
3975 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3976 | case `/usr/bin/file conftest.$ac_objext` in | |
3977 | *32-bit*) | |
3978 | LD="${LD-ld} -melf32bsmip" | |
3979 | ;; | |
3980 | *N32*) | |
3981 | LD="${LD-ld} -melf32bmipn32" | |
3982 | ;; | |
3983 | *64-bit*) | |
3984 | LD="${LD-ld} -melf64bmip" | |
3985 | ;; | |
3986 | esac | |
3987 | else | |
55c80943 | 3988 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
3989 | *32-bit*) |
3990 | LD="${LD-ld} -32" | |
3991 | ;; | |
3992 | *N32*) | |
3993 | LD="${LD-ld} -n32" | |
3994 | ;; | |
3995 | *64-bit*) | |
3996 | LD="${LD-ld} -64" | |
3997 | ;; | |
3998 | esac | |
6a457e5c | 3999 | fi |
252b5132 RH |
4000 | fi |
4001 | rm -rf conftest* | |
4002 | ;; | |
4003 | ||
4867be41 DJ |
4004 | ia64-*-hpux*) |
4005 | # Find out which ABI we are using. | |
4006 | echo 'int i;' > conftest.$ac_ext | |
5464f5a1 NN |
4007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4008 | (eval $ac_compile) 2>&5 | |
4009 | ac_status=$? | |
4010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4011 | (exit $ac_status); }; then | |
4867be41 DJ |
4012 | case "`/usr/bin/file conftest.o`" in |
4013 | *ELF-32*) | |
4014 | HPUX_IA64_MODE="32" | |
4015 | ;; | |
4016 | *ELF-64*) | |
4017 | HPUX_IA64_MODE="64" | |
4018 | ;; | |
4019 | esac | |
4020 | fi | |
4021 | rm -rf conftest* | |
4022 | ;; | |
4023 | ||
252b5132 RH |
4024 | *-*-sco3.2v5*) |
4025 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
b2ef150d | 4026 | SAVE_CFLAGS="$CFLAGS" |
252b5132 | 4027 | CFLAGS="$CFLAGS -belf" |
5464f5a1 NN |
4028 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4029 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4030 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2ef150d | 4032 | else |
5464f5a1 NN |
4033 | |
4034 | ||
ac48eca1 | 4035 | ac_ext=c |
ac48eca1 | 4036 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
4037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4040 | |
5464f5a1 NN |
4041 | cat >conftest.$ac_ext <<_ACEOF |
4042 | /* confdefs.h. */ | |
4043 | _ACEOF | |
4044 | cat confdefs.h >>conftest.$ac_ext | |
4045 | cat >>conftest.$ac_ext <<_ACEOF | |
4046 | /* end confdefs.h. */ | |
b2ef150d | 4047 | |
5464f5a1 NN |
4048 | int |
4049 | main () | |
4050 | { | |
b2ef150d | 4051 | |
5464f5a1 NN |
4052 | ; |
4053 | return 0; | |
4054 | } | |
4055 | _ACEOF | |
4056 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4058 | (eval $ac_link) 2>conftest.er1 | |
4059 | ac_status=$? | |
4060 | grep -v '^ *+' conftest.er1 >conftest.err | |
4061 | rm -f conftest.er1 | |
4062 | cat conftest.err >&5 | |
4063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4064 | (exit $ac_status); } && | |
7f266840 | 4065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
4066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4067 | (eval $ac_try) 2>&5 | |
4068 | ac_status=$? | |
4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4070 | (exit $ac_status); }; } && | |
4071 | { ac_try='test -s conftest$ac_exeext' | |
4072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4073 | (eval $ac_try) 2>&5 | |
4074 | ac_status=$? | |
4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4076 | (exit $ac_status); }; }; then | |
b2ef150d ILT |
4077 | lt_cv_cc_needs_belf=yes |
4078 | else | |
5464f5a1 NN |
4079 | echo "$as_me: failed program was:" >&5 |
4080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4081 | ||
4082 | lt_cv_cc_needs_belf=no | |
b2ef150d | 4083 | fi |
5464f5a1 NN |
4084 | rm -f conftest.err conftest.$ac_objext \ |
4085 | conftest$ac_exeext conftest.$ac_ext | |
ac48eca1 | 4086 | ac_ext=c |
ac48eca1 | 4087 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
4088 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4089 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4090 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4091 | |
b2ef150d | 4092 | fi |
5464f5a1 NN |
4093 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4094 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
b2ef150d ILT |
4095 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4096 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4097 | CFLAGS="$SAVE_CFLAGS" | |
4098 | fi | |
252b5132 RH |
4099 | ;; |
4100 | ||
6be7c12c | 4101 | |
252b5132 RH |
4102 | esac |
4103 | ||
6be7c12c | 4104 | |
b2ef150d | 4105 | # Save cache, so that ltconfig can load it |
5464f5a1 | 4106 | cat >confcache <<\_ACEOF |
b2ef150d ILT |
4107 | # This file is a shell script that caches the results of configure |
4108 | # tests run on this system so they can be shared between configure | |
5464f5a1 NN |
4109 | # scripts and configure runs, see configure's option --config-cache. |
4110 | # It is not useful on other systems. If it contains results you don't | |
4111 | # want to keep, you may remove or edit it. | |
b2ef150d | 4112 | # |
5464f5a1 NN |
4113 | # config.status only pays attention to the cache file if you give it |
4114 | # the --recheck option to rerun configure. | |
b2ef150d | 4115 | # |
5464f5a1 NN |
4116 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4117 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4118 | # following values. | |
4119 | ||
4120 | _ACEOF | |
4121 | ||
b2ef150d ILT |
4122 | # The following way of writing the cache mishandles newlines in values, |
4123 | # but we know of no workaround that is simple, portable, and efficient. | |
4124 | # So, don't put newlines in cache variables' values. | |
4125 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4126 | # and sets the high bit in the cache file unless we assign to the vars. | |
5464f5a1 NN |
4127 | { |
4128 | (set) 2>&1 | | |
4129 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4130 | *ac_space=\ *) | |
4131 | # `set' does not quote correctly, so add quotes (double-quote | |
4132 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4133 | sed -n \ | |
4134 | "s/'/'\\\\''/g; | |
4135 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4136 | ;; | |
4137 | *) | |
4138 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4139 | sed -n \ | |
4140 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4141 | ;; | |
4142 | esac; | |
4143 | } | | |
4144 | sed ' | |
4145 | t clear | |
4146 | : clear | |
4147 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4148 | t end | |
4149 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4150 | : end' >>confcache | |
4151 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
b2ef150d | 4152 | if test -w $cache_file; then |
5464f5a1 NN |
4153 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4154 | cat confcache >$cache_file | |
b2ef150d ILT |
4155 | else |
4156 | echo "not updating unwritable cache $cache_file" | |
4157 | fi | |
4158 | fi | |
4159 | rm -f confcache | |
4160 | ||
252b5132 | 4161 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 4162 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 4163 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
4164 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4165 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4166 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4167 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 4168 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 4169 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
5464f5a1 NN |
4170 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4171 | echo "$as_me: error: libtool configure failed" >&2;} | |
4172 | { (exit 1); exit 1; }; } | |
252b5132 | 4173 | |
b2ef150d ILT |
4174 | # Reload cache, that may have been modified by ltconfig |
4175 | if test -r "$cache_file"; then | |
5464f5a1 NN |
4176 | # Some versions of bash will fail to source /dev/null (special |
4177 | # files actually), so we avoid doing that. | |
4178 | if test -f "$cache_file"; then | |
4179 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4180 | echo "$as_me: loading cache $cache_file" >&6;} | |
4181 | case $cache_file in | |
4182 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4183 | *) . ./$cache_file;; | |
4184 | esac | |
4185 | fi | |
b2ef150d | 4186 | else |
5464f5a1 NN |
4187 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4188 | echo "$as_me: creating cache $cache_file" >&6;} | |
4189 | >$cache_file | |
b2ef150d ILT |
4190 | fi |
4191 | ||
6be7c12c | 4192 | |
b2ef150d | 4193 | # This can be used to rebuild libtool when needed |
ac48eca1 | 4194 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
b2ef150d ILT |
4195 | |
4196 | # Always use our own libtool. | |
4197 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4198 | ||
252b5132 RH |
4199 | # Redirect the config.log output again, so that the ltconfig log is not |
4200 | # clobbered by the next message. | |
4201 | exec 5>>./config.log | |
4202 | ||
6be7c12c | 4203 | |
5464f5a1 NN |
4204 | |
4205 | ||
4206 | ||
4207 | ||
6be7c12c | 4208 | |
252b5132 RH |
4209 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. |
4210 | if test "${enable_64_bit_bfd+set}" = set; then | |
4211 | enableval="$enable_64_bit_bfd" | |
4212 | case "${enableval}" in | |
4213 | yes) want64=true ;; | |
4214 | no) want64=false ;; | |
5464f5a1 NN |
4215 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 |
4216 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
4217 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
4218 | esac |
4219 | else | |
4220 | want64=false | |
5464f5a1 | 4221 | fi; # Check whether --enable-targets or --disable-targets was given. |
252b5132 RH |
4222 | if test "${enable_targets+set}" = set; then |
4223 | enableval="$enable_targets" | |
4224 | case "${enableval}" in | |
5464f5a1 NN |
4225 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
4226 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
4227 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4228 | ;; |
4229 | no) enable_targets= ;; | |
4230 | *) enable_targets=$enableval ;; | |
4231 | esac | |
5464f5a1 | 4232 | fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
252b5132 RH |
4233 | if test "${enable_commonbfdlib+set}" = set; then |
4234 | enableval="$enable_commonbfdlib" | |
4235 | case "${enableval}" in | |
4236 | yes) commonbfdlib=true ;; | |
4237 | no) commonbfdlib=false ;; | |
5464f5a1 NN |
4238 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 |
4239 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} | |
4240 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 4241 | esac |
5464f5a1 | 4242 | fi; |
252b5132 RH |
4243 | # Check whether --with-mmap or --without-mmap was given. |
4244 | if test "${with_mmap+set}" = set; then | |
4245 | withval="$with_mmap" | |
4246 | case "${withval}" in | |
4247 | yes) want_mmap=true ;; | |
4248 | no) want_mmap=false ;; | |
5464f5a1 NN |
4249 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5 |
4250 | echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;} | |
4251 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
4252 | esac |
4253 | else | |
4254 | want_mmap=false | |
5464f5a1 | 4255 | fi; |
0218d1e4 | 4256 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
a2d91340 AC |
4257 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
4258 | if test "${enable_build_warnings+set}" = set; then | |
4259 | enableval="$enable_build_warnings" | |
4260 | case "${enableval}" in | |
4261 | yes) ;; | |
4262 | no) build_warnings="-w";; | |
4263 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
4264 | build_warnings="${build_warnings} ${t}";; | |
4265 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
4266 | build_warnings="${t} ${build_warnings}";; | |
4267 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
4268 | esac | |
4269 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
4270 | echo "Setting warning flags = $build_warnings" 6>&1 | |
4271 | fi | |
5464f5a1 | 4272 | fi; WARN_CFLAGS="" |
66e25bab | 4273 | if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then |
a2d91340 AC |
4274 | WARN_CFLAGS="${build_warnings}" |
4275 | fi | |
4276 | ||
4277 | ||
5464f5a1 | 4278 | ac_config_headers="$ac_config_headers config.h:config.in" |
6be7c12c | 4279 | |
252b5132 RH |
4280 | |
4281 | if test -z "$target" ; then | |
5464f5a1 NN |
4282 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 |
4283 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
4284 | { (exit 1); exit 1; }; } | |
252b5132 | 4285 | fi |
252b5132 | 4286 | |
5464f5a1 NN |
4287 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4288 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
252b5132 RH |
4289 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
4290 | if test "${enable_maintainer_mode+set}" = set; then | |
4291 | enableval="$enable_maintainer_mode" | |
4292 | USE_MAINTAINER_MODE=$enableval | |
4293 | else | |
4294 | USE_MAINTAINER_MODE=no | |
5464f5a1 NN |
4295 | fi; |
4296 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
4297 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
6be7c12c | 4298 | |
252b5132 RH |
4299 | |
4300 | if test $USE_MAINTAINER_MODE = yes; then | |
4301 | MAINTAINER_MODE_TRUE= | |
4302 | MAINTAINER_MODE_FALSE='#' | |
4303 | else | |
4304 | MAINTAINER_MODE_TRUE='#' | |
4305 | MAINTAINER_MODE_FALSE= | |
4306 | fi | |
f5385ebf | 4307 | |
252b5132 | 4308 | MAINT=$MAINTAINER_MODE_TRUE |
252b5132 | 4309 | |
5464f5a1 | 4310 | |
24443139 AS |
4311 | case ${build_alias} in |
4312 | "") build_noncanonical=${build} ;; | |
4313 | *) build_noncanonical=${build_alias} ;; | |
4314 | esac | |
4315 | ||
4316 | case ${host_alias} in | |
4317 | "") host_noncanonical=${build_noncanonical} ;; | |
4318 | *) host_noncanonical=${host_alias} ;; | |
4319 | esac | |
4320 | ||
4321 | case ${target_alias} in | |
4322 | "") target_noncanonical=${host_noncanonical} ;; | |
4323 | *) target_noncanonical=${target_alias} ;; | |
4324 | esac | |
4325 | ||
5464f5a1 NN |
4326 | echo "$as_me:$LINENO: checking whether to install libbfd" >&5 |
4327 | echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6 | |
a703a6ea AM |
4328 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given. |
4329 | if test "${enable_install_libbfd+set}" = set; then | |
4330 | enableval="$enable_install_libbfd" | |
4331 | install_libbfd_p=$enableval | |
4332 | else | |
66e25bab | 4333 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
a703a6ea AM |
4334 | install_libbfd_p=yes |
4335 | else | |
4336 | install_libbfd_p=no | |
4337 | fi | |
5464f5a1 NN |
4338 | fi; |
4339 | echo "$as_me:$LINENO: result: $install_libbfd_p" >&5 | |
4340 | echo "${ECHO_T}$install_libbfd_p" >&6 | |
a703a6ea | 4341 | |
a703a6ea AM |
4342 | |
4343 | if test $install_libbfd_p = yes; then | |
4344 | INSTALL_LIBBFD_TRUE= | |
4345 | INSTALL_LIBBFD_FALSE='#' | |
4346 | else | |
4347 | INSTALL_LIBBFD_TRUE='#' | |
4348 | INSTALL_LIBBFD_FALSE= | |
4349 | fi | |
f5385ebf | 4350 | |
5464f5a1 | 4351 | # Need _noncanonical variables for this. |
24443139 AS |
4352 | |
4353 | ||
4354 | ||
4355 | ||
a703a6ea AM |
4356 | # libbfd.a is a host library containing target dependent code |
4357 | bfdlibdir='$(libdir)' | |
4358 | bfdincludedir='$(includedir)' | |
4359 | if test "${host}" != "${target}"; then | |
5464f5a1 NN |
4360 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' |
4361 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' | |
a703a6ea | 4362 | fi |
a703a6ea AM |
4363 | |
4364 | ||
252b5132 RH |
4365 | |
4366 | ||
5464f5a1 NN |
4367 | |
4368 | ||
4369 | host64=false | |
4370 | target64=false | |
4371 | bfd_default_target_size=32 | |
4372 | ||
4373 | # host stuff: | |
4374 | ||
4375 | ac_ext=c | |
4376 | ac_cpp='$CPP $CPPFLAGS' | |
4377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4380 | if test -n "$ac_tool_prefix"; then | |
4381 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4382 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4383 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4385 | if test "${ac_cv_prog_CC+set}" = set; then | |
4386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4387 | else |
5464f5a1 NN |
4388 | if test -n "$CC"; then |
4389 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4390 | else |
5464f5a1 NN |
4391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4392 | for as_dir in $PATH | |
4393 | do | |
4394 | IFS=$as_save_IFS | |
4395 | test -z "$as_dir" && as_dir=. | |
4396 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4397 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4398 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4400 | break 2 | |
6be7c12c | 4401 | fi |
5464f5a1 NN |
4402 | done |
4403 | done | |
4404 | ||
252b5132 | 4405 | fi |
b3baf5d0 | 4406 | fi |
5464f5a1 NN |
4407 | CC=$ac_cv_prog_CC |
4408 | if test -n "$CC"; then | |
4409 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4410 | echo "${ECHO_T}$CC" >&6 | |
4411 | else | |
4412 | echo "$as_me:$LINENO: result: no" >&5 | |
4413 | echo "${ECHO_T}no" >&6 | |
4414 | fi | |
252b5132 | 4415 | |
5464f5a1 NN |
4416 | fi |
4417 | if test -z "$ac_cv_prog_CC"; then | |
4418 | ac_ct_CC=$CC | |
4419 | # Extract the first word of "gcc", so it can be a program name with args. | |
4420 | set dummy gcc; ac_word=$2 | |
4421 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4423 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4425 | else | |
4426 | if test -n "$ac_ct_CC"; then | |
4427 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4428 | else | |
4429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4430 | for as_dir in $PATH | |
4431 | do | |
4432 | IFS=$as_save_IFS | |
4433 | test -z "$as_dir" && as_dir=. | |
4434 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4435 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4436 | ac_cv_prog_ac_ct_CC="gcc" | |
4437 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4438 | break 2 | |
4439 | fi | |
4440 | done | |
4441 | done | |
252b5132 | 4442 | |
5464f5a1 NN |
4443 | fi |
4444 | fi | |
4445 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4446 | if test -n "$ac_ct_CC"; then | |
4447 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4448 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4449 | else | |
4450 | echo "$as_me:$LINENO: result: no" >&5 | |
4451 | echo "${ECHO_T}no" >&6 | |
4452 | fi | |
252b5132 | 4453 | |
5464f5a1 NN |
4454 | CC=$ac_ct_CC |
4455 | else | |
4456 | CC="$ac_cv_prog_CC" | |
4457 | fi | |
252b5132 | 4458 | |
5464f5a1 NN |
4459 | if test -z "$CC"; then |
4460 | if test -n "$ac_tool_prefix"; then | |
4461 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4462 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4465 | if test "${ac_cv_prog_CC+set}" = set; then | |
4466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4467 | else | |
4468 | if test -n "$CC"; then | |
4469 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4470 | else | |
4471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4472 | for as_dir in $PATH | |
4473 | do | |
4474 | IFS=$as_save_IFS | |
4475 | test -z "$as_dir" && as_dir=. | |
4476 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4477 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4478 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4480 | break 2 | |
4481 | fi | |
4482 | done | |
4483 | done | |
6be7c12c | 4484 | |
5464f5a1 NN |
4485 | fi |
4486 | fi | |
4487 | CC=$ac_cv_prog_CC | |
4488 | if test -n "$CC"; then | |
4489 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4490 | echo "${ECHO_T}$CC" >&6 | |
4491 | else | |
4492 | echo "$as_me:$LINENO: result: no" >&5 | |
4493 | echo "${ECHO_T}no" >&6 | |
4494 | fi | |
4495 | ||
4496 | fi | |
4497 | if test -z "$ac_cv_prog_CC"; then | |
4498 | ac_ct_CC=$CC | |
4499 | # Extract the first word of "cc", so it can be a program name with args. | |
4500 | set dummy cc; ac_word=$2 | |
4501 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4503 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4505 | else | |
4506 | if test -n "$ac_ct_CC"; then | |
4507 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4508 | else | |
4509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4510 | for as_dir in $PATH | |
4511 | do | |
4512 | IFS=$as_save_IFS | |
4513 | test -z "$as_dir" && as_dir=. | |
4514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4515 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4516 | ac_cv_prog_ac_ct_CC="cc" | |
4517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4518 | break 2 | |
4519 | fi | |
4520 | done | |
4521 | done | |
4522 | ||
4523 | fi | |
4524 | fi | |
4525 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4526 | if test -n "$ac_ct_CC"; then | |
4527 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4528 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4529 | else | |
4530 | echo "$as_me:$LINENO: result: no" >&5 | |
4531 | echo "${ECHO_T}no" >&6 | |
4532 | fi | |
4533 | ||
4534 | CC=$ac_ct_CC | |
4535 | else | |
4536 | CC="$ac_cv_prog_CC" | |
4537 | fi | |
4538 | ||
4539 | fi | |
4540 | if test -z "$CC"; then | |
4541 | # Extract the first word of "cc", so it can be a program name with args. | |
4542 | set dummy cc; ac_word=$2 | |
4543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4545 | if test "${ac_cv_prog_CC+set}" = set; then | |
4546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4547 | else |
4548 | if test -n "$CC"; then | |
4549 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4550 | else | |
5464f5a1 NN |
4551 | ac_prog_rejected=no |
4552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4553 | for as_dir in $PATH | |
4554 | do | |
4555 | IFS=$as_save_IFS | |
4556 | test -z "$as_dir" && as_dir=. | |
4557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4558 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4559 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4560 | ac_prog_rejected=yes | |
4561 | continue | |
4562 | fi | |
4563 | ac_cv_prog_CC="cc" | |
4564 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4565 | break 2 | |
4566 | fi | |
4567 | done | |
4568 | done | |
4569 | ||
4570 | if test $ac_prog_rejected = yes; then | |
4571 | # We found a bogon in the path, so make sure we never use it. | |
4572 | set dummy $ac_cv_prog_CC | |
4573 | shift | |
4574 | if test $# != 0; then | |
4575 | # We chose a different compiler from the bogus one. | |
4576 | # However, it has the same basename, so the bogon will be chosen | |
4577 | # first if we set CC to just the basename; use the full file name. | |
4578 | shift | |
4579 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4580 | fi | |
4581 | fi | |
4582 | fi | |
4583 | fi | |
4584 | CC=$ac_cv_prog_CC | |
4585 | if test -n "$CC"; then | |
4586 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4587 | echo "${ECHO_T}$CC" >&6 | |
4588 | else | |
4589 | echo "$as_me:$LINENO: result: no" >&5 | |
4590 | echo "${ECHO_T}no" >&6 | |
4591 | fi | |
4592 | ||
4593 | fi | |
4594 | if test -z "$CC"; then | |
4595 | if test -n "$ac_tool_prefix"; then | |
4596 | for ac_prog in cl | |
4597 | do | |
4598 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4599 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4600 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4602 | if test "${ac_cv_prog_CC+set}" = set; then | |
4603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4604 | else | |
4605 | if test -n "$CC"; then | |
4606 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4607 | else | |
4608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4609 | for as_dir in $PATH | |
4610 | do | |
4611 | IFS=$as_save_IFS | |
4612 | test -z "$as_dir" && as_dir=. | |
4613 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4614 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4615 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4617 | break 2 | |
4618 | fi | |
4619 | done | |
4620 | done | |
4621 | ||
4622 | fi | |
4623 | fi | |
4624 | CC=$ac_cv_prog_CC | |
4625 | if test -n "$CC"; then | |
4626 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4627 | echo "${ECHO_T}$CC" >&6 | |
4628 | else | |
4629 | echo "$as_me:$LINENO: result: no" >&5 | |
4630 | echo "${ECHO_T}no" >&6 | |
4631 | fi | |
4632 | ||
4633 | test -n "$CC" && break | |
6be7c12c | 4634 | done |
252b5132 | 4635 | fi |
5464f5a1 NN |
4636 | if test -z "$CC"; then |
4637 | ac_ct_CC=$CC | |
4638 | for ac_prog in cl | |
4639 | do | |
4640 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4641 | set dummy $ac_prog; ac_word=$2 | |
4642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4644 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4646 | else | |
4647 | if test -n "$ac_ct_CC"; then | |
4648 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4649 | else | |
4650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4651 | for as_dir in $PATH | |
4652 | do | |
4653 | IFS=$as_save_IFS | |
4654 | test -z "$as_dir" && as_dir=. | |
4655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4657 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4659 | break 2 | |
4660 | fi | |
4661 | done | |
4662 | done | |
4663 | ||
4664 | fi | |
4665 | fi | |
4666 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4667 | if test -n "$ac_ct_CC"; then | |
4668 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4669 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4670 | else | |
4671 | echo "$as_me:$LINENO: result: no" >&5 | |
4672 | echo "${ECHO_T}no" >&6 | |
4673 | fi | |
4674 | ||
4675 | test -n "$ac_ct_CC" && break | |
4676 | done | |
4677 | ||
4678 | CC=$ac_ct_CC | |
4679 | fi | |
4680 | ||
4681 | fi | |
4682 | ||
4683 | ||
4684 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4685 | See \`config.log' for more details." >&5 | |
4686 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4687 | See \`config.log' for more details." >&2;} | |
4688 | { (exit 1); exit 1; }; } | |
4689 | ||
4690 | # Provide some information about the compiler. | |
4691 | echo "$as_me:$LINENO:" \ | |
4692 | "checking for C compiler version" >&5 | |
4693 | ac_compiler=`set X $ac_compile; echo $2` | |
4694 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4695 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4696 | ac_status=$? | |
4697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4698 | (exit $ac_status); } | |
4699 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4700 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4701 | ac_status=$? | |
4702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4703 | (exit $ac_status); } | |
4704 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4705 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4706 | ac_status=$? | |
4707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4708 | (exit $ac_status); } | |
4709 | ||
4710 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
4711 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
4712 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
4713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4714 | else | |
4715 | cat >conftest.$ac_ext <<_ACEOF | |
4716 | /* confdefs.h. */ | |
4717 | _ACEOF | |
4718 | cat confdefs.h >>conftest.$ac_ext | |
4719 | cat >>conftest.$ac_ext <<_ACEOF | |
4720 | /* end confdefs.h. */ | |
4721 | ||
4722 | int | |
4723 | main () | |
4724 | { | |
4725 | #ifndef __GNUC__ | |
4726 | choke me | |
4727 | #endif | |
4728 | ||
4729 | ; | |
4730 | return 0; | |
4731 | } | |
4732 | _ACEOF | |
4733 | rm -f conftest.$ac_objext | |
4734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4735 | (eval $ac_compile) 2>conftest.er1 | |
4736 | ac_status=$? | |
4737 | grep -v '^ *+' conftest.er1 >conftest.err | |
4738 | rm -f conftest.er1 | |
4739 | cat conftest.err >&5 | |
4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4741 | (exit $ac_status); } && | |
7f266840 | 4742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
4743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4744 | (eval $ac_try) 2>&5 | |
4745 | ac_status=$? | |
4746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4747 | (exit $ac_status); }; } && | |
4748 | { ac_try='test -s conftest.$ac_objext' | |
4749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4750 | (eval $ac_try) 2>&5 | |
4751 | ac_status=$? | |
4752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4753 | (exit $ac_status); }; }; then | |
4754 | ac_compiler_gnu=yes | |
4755 | else | |
4756 | echo "$as_me: failed program was:" >&5 | |
4757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4758 | ||
4759 | ac_compiler_gnu=no | |
4760 | fi | |
4761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4762 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4763 | ||
4764 | fi | |
4765 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
4766 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
4767 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
4768 | ac_test_CFLAGS=${CFLAGS+set} | |
4769 | ac_save_CFLAGS=$CFLAGS | |
4770 | CFLAGS="-g" | |
4771 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
4772 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
4773 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
4774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4775 | else | |
4776 | cat >conftest.$ac_ext <<_ACEOF | |
4777 | /* confdefs.h. */ | |
4778 | _ACEOF | |
4779 | cat confdefs.h >>conftest.$ac_ext | |
4780 | cat >>conftest.$ac_ext <<_ACEOF | |
4781 | /* end confdefs.h. */ | |
4782 | ||
4783 | int | |
4784 | main () | |
4785 | { | |
4786 | ||
4787 | ; | |
4788 | return 0; | |
4789 | } | |
4790 | _ACEOF | |
4791 | rm -f conftest.$ac_objext | |
4792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4793 | (eval $ac_compile) 2>conftest.er1 | |
4794 | ac_status=$? | |
4795 | grep -v '^ *+' conftest.er1 >conftest.err | |
4796 | rm -f conftest.er1 | |
4797 | cat conftest.err >&5 | |
4798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4799 | (exit $ac_status); } && | |
7f266840 | 4800 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
4801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4802 | (eval $ac_try) 2>&5 | |
4803 | ac_status=$? | |
4804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4805 | (exit $ac_status); }; } && | |
4806 | { ac_try='test -s conftest.$ac_objext' | |
4807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4808 | (eval $ac_try) 2>&5 | |
4809 | ac_status=$? | |
4810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4811 | (exit $ac_status); }; }; then | |
4812 | ac_cv_prog_cc_g=yes | |
4813 | else | |
4814 | echo "$as_me: failed program was:" >&5 | |
4815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4816 | ||
4817 | ac_cv_prog_cc_g=no | |
4818 | fi | |
4819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4820 | fi | |
4821 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4822 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
4823 | if test "$ac_test_CFLAGS" = set; then | |
4824 | CFLAGS=$ac_save_CFLAGS | |
4825 | elif test $ac_cv_prog_cc_g = yes; then | |
4826 | if test "$GCC" = yes; then | |
4827 | CFLAGS="-g -O2" | |
4828 | else | |
4829 | CFLAGS="-g" | |
4830 | fi | |
4831 | else | |
4832 | if test "$GCC" = yes; then | |
4833 | CFLAGS="-O2" | |
4834 | else | |
4835 | CFLAGS= | |
4836 | fi | |
4837 | fi | |
4838 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
4839 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
4840 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4842 | else | |
4843 | ac_cv_prog_cc_stdc=no | |
4844 | ac_save_CC=$CC | |
4845 | cat >conftest.$ac_ext <<_ACEOF | |
4846 | /* confdefs.h. */ | |
4847 | _ACEOF | |
4848 | cat confdefs.h >>conftest.$ac_ext | |
4849 | cat >>conftest.$ac_ext <<_ACEOF | |
4850 | /* end confdefs.h. */ | |
4851 | #include <stdarg.h> | |
4852 | #include <stdio.h> | |
4853 | #include <sys/types.h> | |
4854 | #include <sys/stat.h> | |
4855 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4856 | struct buf { int x; }; | |
4857 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4858 | static char *e (p, i) | |
4859 | char **p; | |
4860 | int i; | |
4861 | { | |
4862 | return p[i]; | |
4863 | } | |
4864 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4865 | { | |
4866 | char *s; | |
4867 | va_list v; | |
4868 | va_start (v,p); | |
4869 | s = g (p, va_arg (v,int)); | |
4870 | va_end (v); | |
4871 | return s; | |
4872 | } | |
4873 | ||
4874 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4875 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4876 | These don't provoke an error unfortunately, instead are silently treated | |
4877 | as 'x'. The following induces an error, until -std1 is added to get | |
4878 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4879 | array size at least. It's necessary to write '\x00'==0 to get something | |
4880 | that's true only with -std1. */ | |
4881 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4882 | ||
4883 | int test (int i, double x); | |
4884 | struct s1 {int (*f) (int a);}; | |
4885 | struct s2 {int (*f) (double a);}; | |
4886 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4887 | int argc; | |
4888 | char **argv; | |
4889 | int | |
4890 | main () | |
4891 | { | |
4892 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4893 | ; | |
4894 | return 0; | |
4895 | } | |
4896 | _ACEOF | |
4897 | # Don't try gcc -ansi; that turns off useful extensions and | |
4898 | # breaks some systems' header files. | |
4899 | # AIX -qlanglvl=ansi | |
4900 | # Ultrix and OSF/1 -std1 | |
4901 | # HP-UX 10.20 and later -Ae | |
4902 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4903 | # SVR4 -Xc -D__EXTENSIONS__ | |
4904 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4905 | do | |
4906 | CC="$ac_save_CC $ac_arg" | |
4907 | rm -f conftest.$ac_objext | |
4908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4909 | (eval $ac_compile) 2>conftest.er1 | |
4910 | ac_status=$? | |
4911 | grep -v '^ *+' conftest.er1 >conftest.err | |
4912 | rm -f conftest.er1 | |
4913 | cat conftest.err >&5 | |
4914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4915 | (exit $ac_status); } && | |
7f266840 | 4916 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
4917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4918 | (eval $ac_try) 2>&5 | |
4919 | ac_status=$? | |
4920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4921 | (exit $ac_status); }; } && | |
4922 | { ac_try='test -s conftest.$ac_objext' | |
4923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4924 | (eval $ac_try) 2>&5 | |
4925 | ac_status=$? | |
4926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4927 | (exit $ac_status); }; }; then | |
4928 | ac_cv_prog_cc_stdc=$ac_arg | |
4929 | break | |
4930 | else | |
4931 | echo "$as_me: failed program was:" >&5 | |
4932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4933 | ||
4934 | fi | |
4935 | rm -f conftest.err conftest.$ac_objext | |
4936 | done | |
4937 | rm -f conftest.$ac_ext conftest.$ac_objext | |
4938 | CC=$ac_save_CC | |
4939 | ||
4940 | fi | |
4941 | ||
4942 | case "x$ac_cv_prog_cc_stdc" in | |
4943 | x|xno) | |
4944 | echo "$as_me:$LINENO: result: none needed" >&5 | |
4945 | echo "${ECHO_T}none needed" >&6 ;; | |
4946 | *) | |
4947 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
4948 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4949 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4950 | esac | |
4951 | ||
4952 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
4953 | # in C++ we need to declare it. In case someone uses the same compiler | |
4954 | # for both compiling C and C++ we need to have the C++ compiler decide | |
4955 | # the declaration of exit, since it's the most demanding environment. | |
4956 | cat >conftest.$ac_ext <<_ACEOF | |
4957 | #ifndef __cplusplus | |
4958 | choke me | |
4959 | #endif | |
4960 | _ACEOF | |
4961 | rm -f conftest.$ac_objext | |
4962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4963 | (eval $ac_compile) 2>conftest.er1 | |
4964 | ac_status=$? | |
4965 | grep -v '^ *+' conftest.er1 >conftest.err | |
4966 | rm -f conftest.er1 | |
4967 | cat conftest.err >&5 | |
4968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4969 | (exit $ac_status); } && | |
7f266840 | 4970 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
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); }; } && | |
4976 | { ac_try='test -s conftest.$ac_objext' | |
4977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4978 | (eval $ac_try) 2>&5 | |
4979 | ac_status=$? | |
4980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4981 | (exit $ac_status); }; }; then | |
4982 | for ac_declaration in \ | |
4983 | '' \ | |
4984 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4985 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4986 | 'extern "C" void exit (int) throw ();' \ | |
4987 | 'extern "C" void exit (int);' \ | |
4988 | 'void exit (int);' | |
4989 | do | |
4990 | cat >conftest.$ac_ext <<_ACEOF | |
4991 | /* confdefs.h. */ | |
4992 | _ACEOF | |
4993 | cat confdefs.h >>conftest.$ac_ext | |
4994 | cat >>conftest.$ac_ext <<_ACEOF | |
4995 | /* end confdefs.h. */ | |
4996 | $ac_declaration | |
4997 | #include <stdlib.h> | |
4998 | int | |
4999 | main () | |
5000 | { | |
5001 | exit (42); | |
5002 | ; | |
5003 | return 0; | |
5004 | } | |
5005 | _ACEOF | |
5006 | rm -f conftest.$ac_objext | |
5007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5008 | (eval $ac_compile) 2>conftest.er1 | |
5009 | ac_status=$? | |
5010 | grep -v '^ *+' conftest.er1 >conftest.err | |
5011 | rm -f conftest.er1 | |
5012 | cat conftest.err >&5 | |
5013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5014 | (exit $ac_status); } && | |
7f266840 | 5015 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5017 | (eval $ac_try) 2>&5 | |
5018 | ac_status=$? | |
5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5020 | (exit $ac_status); }; } && | |
5021 | { ac_try='test -s conftest.$ac_objext' | |
5022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5023 | (eval $ac_try) 2>&5 | |
5024 | ac_status=$? | |
5025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5026 | (exit $ac_status); }; }; then | |
5027 | : | |
5028 | else | |
5029 | echo "$as_me: failed program was:" >&5 | |
5030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5031 | ||
5032 | continue | |
5033 | fi | |
5034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5035 | cat >conftest.$ac_ext <<_ACEOF | |
5036 | /* confdefs.h. */ | |
5037 | _ACEOF | |
5038 | cat confdefs.h >>conftest.$ac_ext | |
5039 | cat >>conftest.$ac_ext <<_ACEOF | |
5040 | /* end confdefs.h. */ | |
5041 | $ac_declaration | |
5042 | int | |
5043 | main () | |
5044 | { | |
5045 | exit (42); | |
5046 | ; | |
5047 | return 0; | |
5048 | } | |
5049 | _ACEOF | |
5050 | rm -f conftest.$ac_objext | |
5051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5052 | (eval $ac_compile) 2>conftest.er1 | |
5053 | ac_status=$? | |
5054 | grep -v '^ *+' conftest.er1 >conftest.err | |
5055 | rm -f conftest.er1 | |
5056 | cat conftest.err >&5 | |
5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5058 | (exit $ac_status); } && | |
7f266840 | 5059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5061 | (eval $ac_try) 2>&5 | |
5062 | ac_status=$? | |
5063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5064 | (exit $ac_status); }; } && | |
5065 | { ac_try='test -s conftest.$ac_objext' | |
5066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5067 | (eval $ac_try) 2>&5 | |
5068 | ac_status=$? | |
5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5070 | (exit $ac_status); }; }; then | |
5071 | break | |
5072 | else | |
5073 | echo "$as_me: failed program was:" >&5 | |
5074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5075 | ||
5076 | fi | |
5077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5078 | done | |
5079 | rm -f conftest* | |
5080 | if test -n "$ac_declaration"; then | |
5081 | echo '#ifdef __cplusplus' >>confdefs.h | |
5082 | echo $ac_declaration >>confdefs.h | |
5083 | echo '#endif' >>confdefs.h | |
252b5132 | 5084 | fi |
5464f5a1 | 5085 | |
b3baf5d0 | 5086 | else |
5464f5a1 NN |
5087 | echo "$as_me: failed program was:" >&5 |
5088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5089 | ||
b3baf5d0 | 5090 | fi |
5464f5a1 NN |
5091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5092 | ac_ext=c | |
5093 | ac_cpp='$CPP $CPPFLAGS' | |
5094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b3baf5d0 | 5097 | |
5464f5a1 NN |
5098 | |
5099 | ALL_LINGUAS="fr tr ja es sv da zh_CN ro" | |
5100 | if test -n "$ac_tool_prefix"; then | |
5101 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5102 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5103 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5105 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5107 | else |
5464f5a1 NN |
5108 | if test -n "$RANLIB"; then |
5109 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
252b5132 | 5110 | else |
5464f5a1 NN |
5111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5112 | for as_dir in $PATH | |
5113 | do | |
5114 | IFS=$as_save_IFS | |
5115 | test -z "$as_dir" && as_dir=. | |
5116 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5117 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5118 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5119 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5120 | break 2 | |
252b5132 | 5121 | fi |
5464f5a1 NN |
5122 | done |
5123 | done | |
5124 | ||
252b5132 RH |
5125 | fi |
5126 | fi | |
5464f5a1 NN |
5127 | RANLIB=$ac_cv_prog_RANLIB |
5128 | if test -n "$RANLIB"; then | |
5129 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5130 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 5131 | else |
5464f5a1 NN |
5132 | echo "$as_me:$LINENO: result: no" >&5 |
5133 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
5134 | fi |
5135 | ||
5464f5a1 NN |
5136 | fi |
5137 | if test -z "$ac_cv_prog_RANLIB"; then | |
5138 | ac_ct_RANLIB=$RANLIB | |
5139 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5140 | set dummy ranlib; ac_word=$2 | |
5141 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5143 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5145 | else |
5464f5a1 NN |
5146 | if test -n "$ac_ct_RANLIB"; then |
5147 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
252b5132 | 5148 | else |
5464f5a1 NN |
5149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5150 | for as_dir in $PATH | |
5151 | do | |
5152 | IFS=$as_save_IFS | |
5153 | test -z "$as_dir" && as_dir=. | |
5154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5155 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5156 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5157 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5158 | break 2 | |
5159 | fi | |
5160 | done | |
5161 | done | |
5162 | ||
5163 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
5164 | fi |
5165 | fi | |
5464f5a1 NN |
5166 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5167 | if test -n "$ac_ct_RANLIB"; then | |
5168 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5169 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 5170 | else |
5464f5a1 NN |
5171 | echo "$as_me:$LINENO: result: no" >&5 |
5172 | echo "${ECHO_T}no" >&6 | |
b3baf5d0 | 5173 | fi |
252b5132 | 5174 | |
5464f5a1 | 5175 | RANLIB=$ac_ct_RANLIB |
6be7c12c | 5176 | else |
5464f5a1 | 5177 | RANLIB="$ac_cv_prog_RANLIB" |
252b5132 | 5178 | fi |
5464f5a1 | 5179 | |
6be7c12c | 5180 | ac_ext=c |
6be7c12c | 5181 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
5182 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5183 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5184 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5185 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5186 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5187 | # On Suns, sometimes $CPP names a directory. | |
5188 | if test -n "$CPP" && test -d "$CPP"; then | |
5189 | CPP= | |
6be7c12c | 5190 | fi |
5464f5a1 NN |
5191 | if test -z "$CPP"; then |
5192 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5194 | else |
5464f5a1 NN |
5195 | # Double quotes because CPP needs to be expanded |
5196 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5197 | do | |
5198 | ac_preproc_ok=false | |
5199 | for ac_c_preproc_warn_flag in '' yes | |
5200 | do | |
5201 | # Use a header file that comes with gcc, so configuring glibc | |
5202 | # with a fresh cross-compiler works. | |
5203 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5204 | # <limits.h> exists even on freestanding compilers. | |
5205 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5206 | # not just through cpp. "Syntax error" is here to catch this case. | |
5207 | cat >conftest.$ac_ext <<_ACEOF | |
5208 | /* confdefs.h. */ | |
5209 | _ACEOF | |
5210 | cat confdefs.h >>conftest.$ac_ext | |
5211 | cat >>conftest.$ac_ext <<_ACEOF | |
5212 | /* end confdefs.h. */ | |
5213 | #ifdef __STDC__ | |
5214 | # include <limits.h> | |
5215 | #else | |
5216 | # include <assert.h> | |
252b5132 | 5217 | #endif |
5464f5a1 NN |
5218 | Syntax error |
5219 | _ACEOF | |
5220 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5221 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5222 | ac_status=$? | |
5223 | grep -v '^ *+' conftest.er1 >conftest.err | |
5224 | rm -f conftest.er1 | |
5225 | cat conftest.err >&5 | |
5226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5227 | (exit $ac_status); } >/dev/null; then | |
5228 | if test -s conftest.err; then | |
5229 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5230 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5231 | else | |
5232 | ac_cpp_err= | |
5233 | fi | |
6be7c12c | 5234 | else |
5464f5a1 | 5235 | ac_cpp_err=yes |
6be7c12c | 5236 | fi |
5464f5a1 NN |
5237 | if test -z "$ac_cpp_err"; then |
5238 | : | |
6be7c12c | 5239 | else |
5464f5a1 NN |
5240 | echo "$as_me: failed program was:" >&5 |
5241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5242 | ||
5243 | # Broken: fails on valid input. | |
5244 | continue | |
5245 | fi | |
5246 | rm -f conftest.err conftest.$ac_ext | |
5247 | ||
5248 | # OK, works on sane cases. Now check whether non-existent headers | |
5249 | # can be detected and how. | |
5250 | cat >conftest.$ac_ext <<_ACEOF | |
5251 | /* confdefs.h. */ | |
5252 | _ACEOF | |
5253 | cat confdefs.h >>conftest.$ac_ext | |
5254 | cat >>conftest.$ac_ext <<_ACEOF | |
5255 | /* end confdefs.h. */ | |
5256 | #include <ac_nonexistent.h> | |
5257 | _ACEOF | |
5258 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5259 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5260 | ac_status=$? | |
5261 | grep -v '^ *+' conftest.er1 >conftest.err | |
5262 | rm -f conftest.er1 | |
5263 | cat conftest.err >&5 | |
5264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5265 | (exit $ac_status); } >/dev/null; then | |
5266 | if test -s conftest.err; then | |
5267 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5268 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5269 | else | |
5270 | ac_cpp_err= | |
5271 | fi | |
252b5132 | 5272 | else |
5464f5a1 | 5273 | ac_cpp_err=yes |
252b5132 | 5274 | fi |
5464f5a1 NN |
5275 | if test -z "$ac_cpp_err"; then |
5276 | # Broken: success on invalid input. | |
5277 | continue | |
5278 | else | |
5279 | echo "$as_me: failed program was:" >&5 | |
5280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6be7c12c | 5281 | |
5464f5a1 NN |
5282 | # Passes both tests. |
5283 | ac_preproc_ok=: | |
5284 | break | |
252b5132 | 5285 | fi |
5464f5a1 | 5286 | rm -f conftest.err conftest.$ac_ext |
6be7c12c | 5287 | |
5464f5a1 NN |
5288 | done |
5289 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5290 | rm -f conftest.err conftest.$ac_ext | |
5291 | if $ac_preproc_ok; then | |
5292 | break | |
252b5132 RH |
5293 | fi |
5294 | ||
5464f5a1 NN |
5295 | done |
5296 | ac_cv_prog_CPP=$CPP | |
252b5132 | 5297 | |
252b5132 | 5298 | fi |
5464f5a1 | 5299 | CPP=$ac_cv_prog_CPP |
6be7c12c | 5300 | else |
5464f5a1 NN |
5301 | ac_cv_prog_CPP=$CPP |
5302 | fi | |
5303 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5304 | echo "${ECHO_T}$CPP" >&6 | |
5305 | ac_preproc_ok=false | |
5306 | for ac_c_preproc_warn_flag in '' yes | |
5307 | do | |
5308 | # Use a header file that comes with gcc, so configuring glibc | |
5309 | # with a fresh cross-compiler works. | |
5310 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5311 | # <limits.h> exists even on freestanding compilers. | |
6be7c12c | 5312 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5464f5a1 NN |
5313 | # not just through cpp. "Syntax error" is here to catch this case. |
5314 | cat >conftest.$ac_ext <<_ACEOF | |
5315 | /* confdefs.h. */ | |
5316 | _ACEOF | |
5317 | cat confdefs.h >>conftest.$ac_ext | |
5318 | cat >>conftest.$ac_ext <<_ACEOF | |
5319 | /* end confdefs.h. */ | |
5320 | #ifdef __STDC__ | |
5321 | # include <limits.h> | |
5322 | #else | |
5323 | # include <assert.h> | |
5324 | #endif | |
5325 | Syntax error | |
5326 | _ACEOF | |
5327 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5328 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5329 | ac_status=$? | |
5330 | grep -v '^ *+' conftest.er1 >conftest.err | |
5331 | rm -f conftest.er1 | |
5332 | cat conftest.err >&5 | |
5333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5334 | (exit $ac_status); } >/dev/null; then | |
5335 | if test -s conftest.err; then | |
5336 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5337 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5338 | else | |
5339 | ac_cpp_err= | |
5340 | fi | |
252b5132 | 5341 | else |
5464f5a1 NN |
5342 | ac_cpp_err=yes |
5343 | fi | |
5344 | if test -z "$ac_cpp_err"; then | |
6be7c12c | 5345 | : |
252b5132 | 5346 | else |
5464f5a1 NN |
5347 | echo "$as_me: failed program was:" >&5 |
5348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5349 | ||
5350 | # Broken: fails on valid input. | |
5351 | continue | |
5352 | fi | |
5353 | rm -f conftest.err conftest.$ac_ext | |
5354 | ||
5355 | # OK, works on sane cases. Now check whether non-existent headers | |
5356 | # can be detected and how. | |
5357 | cat >conftest.$ac_ext <<_ACEOF | |
5358 | /* confdefs.h. */ | |
5359 | _ACEOF | |
5360 | cat confdefs.h >>conftest.$ac_ext | |
5361 | cat >>conftest.$ac_ext <<_ACEOF | |
5362 | /* end confdefs.h. */ | |
5363 | #include <ac_nonexistent.h> | |
5364 | _ACEOF | |
5365 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5366 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5367 | ac_status=$? | |
5368 | grep -v '^ *+' conftest.er1 >conftest.err | |
5369 | rm -f conftest.er1 | |
5370 | cat conftest.err >&5 | |
5371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5372 | (exit $ac_status); } >/dev/null; then | |
5373 | if test -s conftest.err; then | |
5374 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5375 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5376 | else | |
5377 | ac_cpp_err= | |
5378 | fi | |
b3baf5d0 | 5379 | else |
5464f5a1 | 5380 | ac_cpp_err=yes |
6be7c12c | 5381 | fi |
5464f5a1 NN |
5382 | if test -z "$ac_cpp_err"; then |
5383 | # Broken: success on invalid input. | |
5384 | continue | |
ac48eca1 | 5385 | else |
5464f5a1 NN |
5386 | echo "$as_me: failed program was:" >&5 |
5387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5388 | ||
5389 | # Passes both tests. | |
5390 | ac_preproc_ok=: | |
5391 | break | |
b3baf5d0 | 5392 | fi |
5464f5a1 | 5393 | rm -f conftest.err conftest.$ac_ext |
6be7c12c | 5394 | |
5464f5a1 NN |
5395 | done |
5396 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5397 | rm -f conftest.err conftest.$ac_ext | |
5398 | if $ac_preproc_ok; then | |
5399 | : | |
6be7c12c | 5400 | else |
5464f5a1 NN |
5401 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
5402 | See \`config.log' for more details." >&5 | |
5403 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5404 | See \`config.log' for more details." >&2;} | |
5405 | { (exit 1); exit 1; }; } | |
ac48eca1 | 5406 | fi |
5464f5a1 NN |
5407 | |
5408 | ac_ext=c | |
5409 | ac_cpp='$CPP $CPPFLAGS' | |
5410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5413 | ||
5414 | ||
5415 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5416 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5417 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 5419 | else |
5464f5a1 NN |
5420 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
5421 | then ac_cv_prog_egrep='grep -E' | |
5422 | else ac_cv_prog_egrep='egrep' | |
5423 | fi | |
b3baf5d0 | 5424 | fi |
5464f5a1 NN |
5425 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
5426 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5427 | EGREP=$ac_cv_prog_egrep | |
5428 | ||
ac48eca1 | 5429 | |
5464f5a1 NN |
5430 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5431 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5432 | if test "${ac_cv_header_stdc+set}" = set; then | |
5433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5434 | else |
5464f5a1 NN |
5435 | cat >conftest.$ac_ext <<_ACEOF |
5436 | /* confdefs.h. */ | |
5437 | _ACEOF | |
5438 | cat confdefs.h >>conftest.$ac_ext | |
5439 | cat >>conftest.$ac_ext <<_ACEOF | |
5440 | /* end confdefs.h. */ | |
252b5132 RH |
5441 | #include <stdlib.h> |
5442 | #include <stdarg.h> | |
5443 | #include <string.h> | |
5444 | #include <float.h> | |
5464f5a1 NN |
5445 | |
5446 | int | |
5447 | main () | |
5448 | { | |
5449 | ||
5450 | ; | |
5451 | return 0; | |
5452 | } | |
5453 | _ACEOF | |
5454 | rm -f conftest.$ac_objext | |
5455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5456 | (eval $ac_compile) 2>conftest.er1 | |
5457 | ac_status=$? | |
5458 | grep -v '^ *+' conftest.er1 >conftest.err | |
5459 | rm -f conftest.er1 | |
5460 | cat conftest.err >&5 | |
5461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5462 | (exit $ac_status); } && | |
7f266840 | 5463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5465 | (eval $ac_try) 2>&5 | |
5466 | ac_status=$? | |
5467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5468 | (exit $ac_status); }; } && | |
5469 | { ac_try='test -s conftest.$ac_objext' | |
5470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5471 | (eval $ac_try) 2>&5 | |
5472 | ac_status=$? | |
5473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5474 | (exit $ac_status); }; }; then | |
252b5132 RH |
5475 | ac_cv_header_stdc=yes |
5476 | else | |
5464f5a1 NN |
5477 | echo "$as_me: failed program was:" >&5 |
5478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5479 | ||
5480 | ac_cv_header_stdc=no | |
252b5132 | 5481 | fi |
5464f5a1 | 5482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5483 | |
5484 | if test $ac_cv_header_stdc = yes; then | |
5485 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5464f5a1 NN |
5486 | cat >conftest.$ac_ext <<_ACEOF |
5487 | /* confdefs.h. */ | |
5488 | _ACEOF | |
5489 | cat confdefs.h >>conftest.$ac_ext | |
5490 | cat >>conftest.$ac_ext <<_ACEOF | |
5491 | /* end confdefs.h. */ | |
252b5132 | 5492 | #include <string.h> |
5464f5a1 NN |
5493 | |
5494 | _ACEOF | |
252b5132 | 5495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 5496 | $EGREP "memchr" >/dev/null 2>&1; then |
252b5132 RH |
5497 | : |
5498 | else | |
252b5132 RH |
5499 | ac_cv_header_stdc=no |
5500 | fi | |
5501 | rm -f conftest* | |
5502 | ||
5503 | fi | |
5504 | ||
5505 | if test $ac_cv_header_stdc = yes; then | |
5506 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5464f5a1 NN |
5507 | cat >conftest.$ac_ext <<_ACEOF |
5508 | /* confdefs.h. */ | |
5509 | _ACEOF | |
5510 | cat confdefs.h >>conftest.$ac_ext | |
5511 | cat >>conftest.$ac_ext <<_ACEOF | |
5512 | /* end confdefs.h. */ | |
252b5132 | 5513 | #include <stdlib.h> |
5464f5a1 NN |
5514 | |
5515 | _ACEOF | |
252b5132 | 5516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 5517 | $EGREP "free" >/dev/null 2>&1; then |
252b5132 RH |
5518 | : |
5519 | else | |
252b5132 RH |
5520 | ac_cv_header_stdc=no |
5521 | fi | |
5522 | rm -f conftest* | |
5523 | ||
5524 | fi | |
5525 | ||
5526 | if test $ac_cv_header_stdc = yes; then | |
5527 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5464f5a1 | 5528 | if test "$cross_compiling" = yes; then |
252b5132 RH |
5529 | : |
5530 | else | |
5464f5a1 NN |
5531 | cat >conftest.$ac_ext <<_ACEOF |
5532 | /* confdefs.h. */ | |
5533 | _ACEOF | |
5534 | cat confdefs.h >>conftest.$ac_ext | |
5535 | cat >>conftest.$ac_ext <<_ACEOF | |
5536 | /* end confdefs.h. */ | |
252b5132 | 5537 | #include <ctype.h> |
5464f5a1 NN |
5538 | #if ((' ' & 0x0FF) == 0x020) |
5539 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5540 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5541 | #else | |
5542 | # define ISLOWER(c) \ | |
5543 | (('a' <= (c) && (c) <= 'i') \ | |
5544 | || ('j' <= (c) && (c) <= 'r') \ | |
5545 | || ('s' <= (c) && (c) <= 'z')) | |
5546 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5547 | #endif | |
6be7c12c | 5548 | |
5464f5a1 NN |
5549 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5550 | int | |
5551 | main () | |
5552 | { | |
5553 | int i; | |
5554 | for (i = 0; i < 256; i++) | |
5555 | if (XOR (islower (i), ISLOWER (i)) | |
5556 | || toupper (i) != TOUPPER (i)) | |
5557 | exit(2); | |
5558 | exit (0); | |
5559 | } | |
5560 | _ACEOF | |
5561 | rm -f conftest$ac_exeext | |
5562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5563 | (eval $ac_link) 2>&5 | |
5564 | ac_status=$? | |
5565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5566 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5568 | (eval $ac_try) 2>&5 | |
5569 | ac_status=$? | |
5570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5571 | (exit $ac_status); }; }; then | |
252b5132 RH |
5572 | : |
5573 | else | |
5464f5a1 NN |
5574 | echo "$as_me: program exited with status $ac_status" >&5 |
5575 | echo "$as_me: failed program was:" >&5 | |
5576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5577 | ||
5578 | ( exit $ac_status ) | |
5579 | ac_cv_header_stdc=no | |
252b5132 | 5580 | fi |
5464f5a1 | 5581 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5582 | fi |
252b5132 RH |
5583 | fi |
5584 | fi | |
5464f5a1 NN |
5585 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5586 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6be7c12c | 5587 | if test $ac_cv_header_stdc = yes; then |
5464f5a1 NN |
5588 | |
5589 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5590 | #define STDC_HEADERS 1 |
5464f5a1 | 5591 | _ACEOF |
252b5132 RH |
5592 | |
5593 | fi | |
5594 | ||
5464f5a1 NN |
5595 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5596 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
5597 | if test "${ac_cv_c_const+set}" = set; then | |
5598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5599 | else |
5464f5a1 NN |
5600 | cat >conftest.$ac_ext <<_ACEOF |
5601 | /* confdefs.h. */ | |
5602 | _ACEOF | |
5603 | cat confdefs.h >>conftest.$ac_ext | |
5604 | cat >>conftest.$ac_ext <<_ACEOF | |
5605 | /* end confdefs.h. */ | |
6be7c12c | 5606 | |
5464f5a1 NN |
5607 | int |
5608 | main () | |
5609 | { | |
5610 | /* FIXME: Include the comments suggested by Paul. */ | |
5611 | #ifndef __cplusplus | |
5612 | /* Ultrix mips cc rejects this. */ | |
5613 | typedef int charset[2]; | |
5614 | const charset x; | |
5615 | /* SunOS 4.1.1 cc rejects this. */ | |
5616 | char const *const *ccp; | |
5617 | char **p; | |
5618 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5619 | struct point {int x, y;}; | |
5620 | static struct point const zero = {0,0}; | |
5621 | /* AIX XL C 1.02.0.0 rejects this. | |
5622 | It does not let you subtract one const X* pointer from another in | |
5623 | an arm of an if-expression whose if-part is not a constant | |
5624 | expression */ | |
5625 | const char *g = "string"; | |
5626 | ccp = &g + (g ? g-g : 0); | |
5627 | /* HPUX 7.0 cc rejects these. */ | |
5628 | ++ccp; | |
5629 | p = (char**) ccp; | |
5630 | ccp = (char const *const *) p; | |
5631 | { /* SCO 3.2v4 cc rejects this. */ | |
5632 | char *t; | |
5633 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5634 | ||
5635 | *t++ = 0; | |
5636 | } | |
5637 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5638 | int x[] = {25, 17}; | |
5639 | const int *foo = &x[0]; | |
5640 | ++foo; | |
5641 | } | |
5642 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5643 | typedef const int *iptr; | |
5644 | iptr p = 0; | |
5645 | ++p; | |
5646 | } | |
5647 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5648 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5649 | struct s { int j; const int *ap[3]; }; | |
5650 | struct s *b; b->j = 5; | |
5651 | } | |
5652 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5653 | const int foo = 10; | |
5654 | } | |
5655 | #endif | |
6be7c12c | 5656 | |
5464f5a1 NN |
5657 | ; |
5658 | return 0; | |
5659 | } | |
5660 | _ACEOF | |
5661 | rm -f conftest.$ac_objext | |
5662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5663 | (eval $ac_compile) 2>conftest.er1 | |
5664 | ac_status=$? | |
5665 | grep -v '^ *+' conftest.er1 >conftest.err | |
5666 | rm -f conftest.er1 | |
5667 | cat conftest.err >&5 | |
5668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5669 | (exit $ac_status); } && | |
7f266840 | 5670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5672 | (eval $ac_try) 2>&5 | |
5673 | ac_status=$? | |
5674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5675 | (exit $ac_status); }; } && | |
5676 | { ac_try='test -s conftest.$ac_objext' | |
5677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5678 | (eval $ac_try) 2>&5 | |
5679 | ac_status=$? | |
5680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5681 | (exit $ac_status); }; }; then | |
252b5132 RH |
5682 | ac_cv_c_const=yes |
5683 | else | |
5464f5a1 NN |
5684 | echo "$as_me: failed program was:" >&5 |
5685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5686 | ||
5687 | ac_cv_c_const=no | |
252b5132 | 5688 | fi |
5464f5a1 | 5689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5690 | fi |
5464f5a1 NN |
5691 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5692 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
6be7c12c | 5693 | if test $ac_cv_c_const = no; then |
5464f5a1 NN |
5694 | |
5695 | cat >>confdefs.h <<\_ACEOF | |
5696 | #define const | |
5697 | _ACEOF | |
252b5132 RH |
5698 | |
5699 | fi | |
5700 | ||
5464f5a1 NN |
5701 | echo "$as_me:$LINENO: checking for inline" >&5 |
5702 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
5703 | if test "${ac_cv_c_inline+set}" = set; then | |
5704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5705 | else |
5706 | ac_cv_c_inline=no | |
5707 | for ac_kw in inline __inline__ __inline; do | |
5464f5a1 NN |
5708 | cat >conftest.$ac_ext <<_ACEOF |
5709 | /* confdefs.h. */ | |
5710 | _ACEOF | |
5711 | cat confdefs.h >>conftest.$ac_ext | |
5712 | cat >>conftest.$ac_ext <<_ACEOF | |
5713 | /* end confdefs.h. */ | |
5714 | #ifndef __cplusplus | |
5715 | typedef int foo_t; | |
5716 | static $ac_kw foo_t static_foo () {return 0; } | |
5717 | $ac_kw foo_t foo () {return 0; } | |
5718 | #endif | |
252b5132 | 5719 | |
5464f5a1 NN |
5720 | _ACEOF |
5721 | rm -f conftest.$ac_objext | |
5722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5723 | (eval $ac_compile) 2>conftest.er1 | |
5724 | ac_status=$? | |
5725 | grep -v '^ *+' conftest.er1 >conftest.err | |
5726 | rm -f conftest.er1 | |
5727 | cat conftest.err >&5 | |
5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5729 | (exit $ac_status); } && | |
7f266840 | 5730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
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); }; } && | |
5736 | { ac_try='test -s conftest.$ac_objext' | |
5737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5738 | (eval $ac_try) 2>&5 | |
5739 | ac_status=$? | |
5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5741 | (exit $ac_status); }; }; then | |
252b5132 RH |
5742 | ac_cv_c_inline=$ac_kw; break |
5743 | else | |
5464f5a1 NN |
5744 | echo "$as_me: failed program was:" >&5 |
5745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5746 | ||
252b5132 | 5747 | fi |
5464f5a1 | 5748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5749 | done |
5750 | ||
5464f5a1 NN |
5751 | fi |
5752 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
5753 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
5754 | ||
5755 | ||
5756 | case $ac_cv_c_inline in | |
5757 | inline | yes) ;; | |
5758 | *) | |
5759 | case $ac_cv_c_inline in | |
5760 | no) ac_val=;; | |
5761 | *) ac_val=$ac_cv_c_inline;; | |
5762 | esac | |
5763 | cat >>confdefs.h <<_ACEOF | |
5764 | #ifndef __cplusplus | |
5765 | #define inline $ac_val | |
5766 | #endif | |
5767 | _ACEOF | |
5768 | ;; | |
5769 | esac | |
5770 | ||
5771 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5772 | ||
5773 | ||
5774 | ||
5775 | ||
5776 | ||
5777 | ||
5778 | ||
5779 | ||
5780 | ||
5781 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5782 | inttypes.h stdint.h unistd.h | |
5783 | do | |
5784 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5785 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5789 | else | |
5790 | cat >conftest.$ac_ext <<_ACEOF | |
5791 | /* confdefs.h. */ | |
5792 | _ACEOF | |
5793 | cat confdefs.h >>conftest.$ac_ext | |
5794 | cat >>conftest.$ac_ext <<_ACEOF | |
5795 | /* end confdefs.h. */ | |
5796 | $ac_includes_default | |
5797 | ||
5798 | #include <$ac_header> | |
5799 | _ACEOF | |
5800 | rm -f conftest.$ac_objext | |
5801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5802 | (eval $ac_compile) 2>conftest.er1 | |
5803 | ac_status=$? | |
5804 | grep -v '^ *+' conftest.er1 >conftest.err | |
5805 | rm -f conftest.er1 | |
5806 | cat conftest.err >&5 | |
5807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5808 | (exit $ac_status); } && | |
7f266840 | 5809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5811 | (eval $ac_try) 2>&5 | |
5812 | ac_status=$? | |
5813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5814 | (exit $ac_status); }; } && | |
5815 | { ac_try='test -s conftest.$ac_objext' | |
5816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5817 | (eval $ac_try) 2>&5 | |
5818 | ac_status=$? | |
5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5820 | (exit $ac_status); }; }; then | |
5821 | eval "$as_ac_Header=yes" | |
5822 | else | |
5823 | echo "$as_me: failed program was:" >&5 | |
5824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5825 | ||
5826 | eval "$as_ac_Header=no" | |
5827 | fi | |
5828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5829 | fi | |
5830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5831 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5832 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5833 | cat >>confdefs.h <<_ACEOF | |
5834 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5835 | _ACEOF | |
5836 | ||
252b5132 | 5837 | fi |
6be7c12c | 5838 | |
5464f5a1 | 5839 | done |
252b5132 | 5840 | |
5464f5a1 NN |
5841 | |
5842 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
5843 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5844 | if test "${ac_cv_type_off_t+set}" = set; then | |
5845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3baf5d0 | 5846 | else |
5464f5a1 NN |
5847 | cat >conftest.$ac_ext <<_ACEOF |
5848 | /* confdefs.h. */ | |
5849 | _ACEOF | |
5850 | cat confdefs.h >>conftest.$ac_ext | |
5851 | cat >>conftest.$ac_ext <<_ACEOF | |
5852 | /* end confdefs.h. */ | |
5853 | $ac_includes_default | |
5854 | int | |
5855 | main () | |
5856 | { | |
5857 | if ((off_t *) 0) | |
5858 | return 0; | |
5859 | if (sizeof (off_t)) | |
5860 | return 0; | |
5861 | ; | |
5862 | return 0; | |
5863 | } | |
5864 | _ACEOF | |
5865 | rm -f conftest.$ac_objext | |
5866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5867 | (eval $ac_compile) 2>conftest.er1 | |
5868 | ac_status=$? | |
5869 | grep -v '^ *+' conftest.er1 >conftest.err | |
5870 | rm -f conftest.er1 | |
5871 | cat conftest.err >&5 | |
5872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5873 | (exit $ac_status); } && | |
7f266840 | 5874 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5876 | (eval $ac_try) 2>&5 | |
5877 | ac_status=$? | |
5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5879 | (exit $ac_status); }; } && | |
5880 | { ac_try='test -s conftest.$ac_objext' | |
5881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5882 | (eval $ac_try) 2>&5 | |
5883 | ac_status=$? | |
5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5885 | (exit $ac_status); }; }; then | |
653f71ca | 5886 | ac_cv_type_off_t=yes |
252b5132 | 5887 | else |
5464f5a1 NN |
5888 | echo "$as_me: failed program was:" >&5 |
5889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3baf5d0 | 5890 | |
5464f5a1 | 5891 | ac_cv_type_off_t=no |
6be7c12c | 5892 | fi |
5464f5a1 NN |
5893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5894 | fi | |
5895 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5896 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
5897 | if test $ac_cv_type_off_t = yes; then | |
5898 | : | |
5899 | else | |
5900 | ||
5901 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5902 | #define off_t long |
5464f5a1 | 5903 | _ACEOF |
252b5132 RH |
5904 | |
5905 | fi | |
5906 | ||
5464f5a1 NN |
5907 | echo "$as_me:$LINENO: checking for size_t" >&5 |
5908 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
5909 | if test "${ac_cv_type_size_t+set}" = set; then | |
5910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5911 | else |
5464f5a1 NN |
5912 | cat >conftest.$ac_ext <<_ACEOF |
5913 | /* confdefs.h. */ | |
5914 | _ACEOF | |
5915 | cat confdefs.h >>conftest.$ac_ext | |
5916 | cat >>conftest.$ac_ext <<_ACEOF | |
5917 | /* end confdefs.h. */ | |
5918 | $ac_includes_default | |
5919 | int | |
5920 | main () | |
5921 | { | |
5922 | if ((size_t *) 0) | |
5923 | return 0; | |
5924 | if (sizeof (size_t)) | |
5925 | return 0; | |
5926 | ; | |
5927 | return 0; | |
5928 | } | |
5929 | _ACEOF | |
5930 | rm -f conftest.$ac_objext | |
5931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5932 | (eval $ac_compile) 2>conftest.er1 | |
5933 | ac_status=$? | |
5934 | grep -v '^ *+' conftest.er1 >conftest.err | |
5935 | rm -f conftest.er1 | |
5936 | cat conftest.err >&5 | |
5937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5938 | (exit $ac_status); } && | |
7f266840 | 5939 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5941 | (eval $ac_try) 2>&5 | |
5942 | ac_status=$? | |
5943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5944 | (exit $ac_status); }; } && | |
5945 | { ac_try='test -s conftest.$ac_objext' | |
5946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5947 | (eval $ac_try) 2>&5 | |
5948 | ac_status=$? | |
5949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5950 | (exit $ac_status); }; }; then | |
653f71ca | 5951 | ac_cv_type_size_t=yes |
252b5132 | 5952 | else |
5464f5a1 NN |
5953 | echo "$as_me: failed program was:" >&5 |
5954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3baf5d0 | 5955 | |
5464f5a1 | 5956 | ac_cv_type_size_t=no |
6be7c12c | 5957 | fi |
5464f5a1 NN |
5958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5959 | fi | |
5960 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
5961 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
5962 | if test $ac_cv_type_size_t = yes; then | |
5963 | : | |
5964 | else | |
5965 | ||
5966 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5967 | #define size_t unsigned |
5464f5a1 | 5968 | _ACEOF |
252b5132 RH |
5969 | |
5970 | fi | |
5971 | ||
5972 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
5973 | # for constant arguments. Useless! | |
5464f5a1 NN |
5974 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
5975 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
5976 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
5977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5978 | else | |
5979 | cat >conftest.$ac_ext <<_ACEOF | |
5980 | /* confdefs.h. */ | |
5981 | _ACEOF | |
5982 | cat confdefs.h >>conftest.$ac_ext | |
5983 | cat >>conftest.$ac_ext <<_ACEOF | |
5984 | /* end confdefs.h. */ | |
252b5132 | 5985 | #include <alloca.h> |
5464f5a1 NN |
5986 | int |
5987 | main () | |
5988 | { | |
5989 | char *p = (char *) alloca (2 * sizeof (int)); | |
5990 | ; | |
5991 | return 0; | |
5992 | } | |
5993 | _ACEOF | |
5994 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5996 | (eval $ac_link) 2>conftest.er1 | |
5997 | ac_status=$? | |
5998 | grep -v '^ *+' conftest.er1 >conftest.err | |
5999 | rm -f conftest.er1 | |
6000 | cat conftest.err >&5 | |
6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6002 | (exit $ac_status); } && | |
7f266840 | 6003 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6005 | (eval $ac_try) 2>&5 | |
6006 | ac_status=$? | |
6007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6008 | (exit $ac_status); }; } && | |
6009 | { ac_try='test -s conftest$ac_exeext' | |
6010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6011 | (eval $ac_try) 2>&5 | |
6012 | ac_status=$? | |
6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6014 | (exit $ac_status); }; }; then | |
6015 | ac_cv_working_alloca_h=yes | |
6016 | else | |
6017 | echo "$as_me: failed program was:" >&5 | |
6018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6019 | ||
6020 | ac_cv_working_alloca_h=no | |
6021 | fi | |
6022 | rm -f conftest.err conftest.$ac_objext \ | |
6023 | conftest$ac_exeext conftest.$ac_ext | |
6024 | fi | |
6025 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
6026 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
6027 | if test $ac_cv_working_alloca_h = yes; then | |
6028 | ||
6029 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6030 | #define HAVE_ALLOCA_H 1 |
5464f5a1 | 6031 | _ACEOF |
252b5132 RH |
6032 | |
6033 | fi | |
6034 | ||
5464f5a1 NN |
6035 | echo "$as_me:$LINENO: checking for alloca" >&5 |
6036 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
6037 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
6038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6039 | else |
5464f5a1 NN |
6040 | cat >conftest.$ac_ext <<_ACEOF |
6041 | /* confdefs.h. */ | |
6042 | _ACEOF | |
6043 | cat confdefs.h >>conftest.$ac_ext | |
6044 | cat >>conftest.$ac_ext <<_ACEOF | |
6045 | /* end confdefs.h. */ | |
252b5132 RH |
6046 | #ifdef __GNUC__ |
6047 | # define alloca __builtin_alloca | |
6048 | #else | |
6049 | # ifdef _MSC_VER | |
6050 | # include <malloc.h> | |
6051 | # define alloca _alloca | |
6052 | # else | |
6053 | # if HAVE_ALLOCA_H | |
6054 | # include <alloca.h> | |
6055 | # else | |
6056 | # ifdef _AIX | |
6057 | #pragma alloca | |
6058 | # else | |
6059 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6060 | char *alloca (); | |
6061 | # endif | |
6062 | # endif | |
6063 | # endif | |
6064 | # endif | |
6065 | #endif | |
6066 | ||
5464f5a1 NN |
6067 | int |
6068 | main () | |
6069 | { | |
6070 | char *p = (char *) alloca (1); | |
6071 | ; | |
6072 | return 0; | |
6073 | } | |
6074 | _ACEOF | |
6075 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6077 | (eval $ac_link) 2>conftest.er1 | |
6078 | ac_status=$? | |
6079 | grep -v '^ *+' conftest.er1 >conftest.err | |
6080 | rm -f conftest.er1 | |
6081 | cat conftest.err >&5 | |
6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6083 | (exit $ac_status); } && | |
7f266840 | 6084 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6086 | (eval $ac_try) 2>&5 | |
6087 | ac_status=$? | |
6088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6089 | (exit $ac_status); }; } && | |
6090 | { ac_try='test -s conftest$ac_exeext' | |
6091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6092 | (eval $ac_try) 2>&5 | |
6093 | ac_status=$? | |
6094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6095 | (exit $ac_status); }; }; then | |
252b5132 RH |
6096 | ac_cv_func_alloca_works=yes |
6097 | else | |
5464f5a1 NN |
6098 | echo "$as_me: failed program was:" >&5 |
6099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6100 | ||
6101 | ac_cv_func_alloca_works=no | |
252b5132 | 6102 | fi |
5464f5a1 NN |
6103 | rm -f conftest.err conftest.$ac_objext \ |
6104 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 6105 | fi |
5464f5a1 NN |
6106 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6107 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 6108 | |
252b5132 | 6109 | if test $ac_cv_func_alloca_works = yes; then |
252b5132 | 6110 | |
5464f5a1 NN |
6111 | cat >>confdefs.h <<\_ACEOF |
6112 | #define HAVE_ALLOCA 1 | |
6113 | _ACEOF | |
b3baf5d0 | 6114 | |
5464f5a1 | 6115 | else |
6be7c12c | 6116 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5464f5a1 NN |
6117 | # that cause trouble. Some versions do not even contain alloca or |
6118 | # contain a buggy version. If you still want to use their alloca, | |
6119 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6120 | ||
6121 | ALLOCA=alloca.$ac_objext | |
6122 | ||
6123 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6124 | #define C_ALLOCA 1 |
5464f5a1 | 6125 | _ACEOF |
252b5132 | 6126 | |
6be7c12c | 6127 | |
5464f5a1 NN |
6128 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6129 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
6130 | if test "${ac_cv_os_cray+set}" = set; then | |
6131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6132 | else |
5464f5a1 NN |
6133 | cat >conftest.$ac_ext <<_ACEOF |
6134 | /* confdefs.h. */ | |
6135 | _ACEOF | |
6136 | cat confdefs.h >>conftest.$ac_ext | |
6137 | cat >>conftest.$ac_ext <<_ACEOF | |
6138 | /* end confdefs.h. */ | |
252b5132 RH |
6139 | #if defined(CRAY) && ! defined(CRAY2) |
6140 | webecray | |
6141 | #else | |
6142 | wenotbecray | |
6143 | #endif | |
6144 | ||
5464f5a1 | 6145 | _ACEOF |
252b5132 | 6146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 6147 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
6148 | ac_cv_os_cray=yes |
6149 | else | |
252b5132 RH |
6150 | ac_cv_os_cray=no |
6151 | fi | |
6152 | rm -f conftest* | |
6153 | ||
6154 | fi | |
5464f5a1 NN |
6155 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6156 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
252b5132 | 6157 | if test $ac_cv_os_cray = yes; then |
5464f5a1 NN |
6158 | for ac_func in _getb67 GETB67 getb67; do |
6159 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6160 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6161 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6162 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6164 | else | |
6165 | cat >conftest.$ac_ext <<_ACEOF | |
6166 | /* confdefs.h. */ | |
6167 | _ACEOF | |
6168 | cat confdefs.h >>conftest.$ac_ext | |
6169 | cat >>conftest.$ac_ext <<_ACEOF | |
6170 | /* end confdefs.h. */ | |
6171 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6172 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6173 | #define $ac_func innocuous_$ac_func | |
6174 | ||
252b5132 | 6175 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6176 | which can conflict with char $ac_func (); below. |
6177 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6178 | <limits.h> exists even on freestanding compilers. */ | |
6179 | ||
6180 | #ifdef __STDC__ | |
6181 | # include <limits.h> | |
6182 | #else | |
6183 | # include <assert.h> | |
6184 | #endif | |
6be7c12c | 6185 | |
5464f5a1 | 6186 | #undef $ac_func |
252b5132 | 6187 | |
5464f5a1 NN |
6188 | /* Override any gcc2 internal prototype to avoid an error. */ |
6189 | #ifdef __cplusplus | |
6190 | extern "C" | |
6191 | { | |
6192 | #endif | |
6193 | /* We use char because int might match the return type of a gcc2 | |
6194 | builtin and then its argument prototype would still apply. */ | |
6195 | char $ac_func (); | |
252b5132 RH |
6196 | /* The GNU C library defines this for functions which it implements |
6197 | to always fail with ENOSYS. Some functions are actually named | |
6198 | something starting with __ and the normal name is an alias. */ | |
6199 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6200 | choke me | |
6201 | #else | |
5464f5a1 NN |
6202 | char (*f) () = $ac_func; |
6203 | #endif | |
6204 | #ifdef __cplusplus | |
6205 | } | |
252b5132 RH |
6206 | #endif |
6207 | ||
5464f5a1 NN |
6208 | int |
6209 | main () | |
6210 | { | |
6211 | return f != $ac_func; | |
6212 | ; | |
6213 | return 0; | |
6214 | } | |
6215 | _ACEOF | |
6216 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6218 | (eval $ac_link) 2>conftest.er1 | |
6219 | ac_status=$? | |
6220 | grep -v '^ *+' conftest.er1 >conftest.err | |
6221 | rm -f conftest.er1 | |
6222 | cat conftest.err >&5 | |
6223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6224 | (exit $ac_status); } && | |
7f266840 | 6225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6227 | (eval $ac_try) 2>&5 | |
6228 | ac_status=$? | |
6229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6230 | (exit $ac_status); }; } && | |
6231 | { ac_try='test -s conftest$ac_exeext' | |
6232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6233 | (eval $ac_try) 2>&5 | |
6234 | ac_status=$? | |
6235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6236 | (exit $ac_status); }; }; then | |
6237 | eval "$as_ac_var=yes" | |
6238 | else | |
6239 | echo "$as_me: failed program was:" >&5 | |
6240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6241 | ||
6242 | eval "$as_ac_var=no" | |
6243 | fi | |
6244 | rm -f conftest.err conftest.$ac_objext \ | |
6245 | conftest$ac_exeext conftest.$ac_ext | |
6246 | fi | |
6247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6248 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6249 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6250 | ||
6251 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6252 | #define CRAY_STACKSEG_END $ac_func |
5464f5a1 | 6253 | _ACEOF |
252b5132 | 6254 | |
5464f5a1 | 6255 | break |
252b5132 RH |
6256 | fi |
6257 | ||
5464f5a1 | 6258 | done |
252b5132 RH |
6259 | fi |
6260 | ||
5464f5a1 NN |
6261 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6262 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
6263 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
6264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6265 | else |
6266 | if test "$cross_compiling" = yes; then | |
6267 | ac_cv_c_stack_direction=0 | |
6268 | else | |
5464f5a1 NN |
6269 | cat >conftest.$ac_ext <<_ACEOF |
6270 | /* confdefs.h. */ | |
6271 | _ACEOF | |
6272 | cat confdefs.h >>conftest.$ac_ext | |
6273 | cat >>conftest.$ac_ext <<_ACEOF | |
6274 | /* end confdefs.h. */ | |
6275 | int | |
252b5132 RH |
6276 | find_stack_direction () |
6277 | { | |
6278 | static char *addr = 0; | |
6279 | auto char dummy; | |
6280 | if (addr == 0) | |
6281 | { | |
6282 | addr = &dummy; | |
6283 | return find_stack_direction (); | |
6284 | } | |
6285 | else | |
6286 | return (&dummy > addr) ? 1 : -1; | |
6287 | } | |
5464f5a1 NN |
6288 | |
6289 | int | |
252b5132 RH |
6290 | main () |
6291 | { | |
5464f5a1 | 6292 | exit (find_stack_direction () < 0); |
252b5132 | 6293 | } |
5464f5a1 NN |
6294 | _ACEOF |
6295 | rm -f conftest$ac_exeext | |
6296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6297 | (eval $ac_link) 2>&5 | |
6298 | ac_status=$? | |
6299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6300 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6302 | (eval $ac_try) 2>&5 | |
6303 | ac_status=$? | |
6304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6305 | (exit $ac_status); }; }; then | |
252b5132 RH |
6306 | ac_cv_c_stack_direction=1 |
6307 | else | |
5464f5a1 NN |
6308 | echo "$as_me: program exited with status $ac_status" >&5 |
6309 | echo "$as_me: failed program was:" >&5 | |
6310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6311 | ||
6312 | ( exit $ac_status ) | |
6313 | ac_cv_c_stack_direction=-1 | |
252b5132 | 6314 | fi |
5464f5a1 | 6315 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6316 | fi |
252b5132 | 6317 | fi |
5464f5a1 NN |
6318 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6319 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 6320 | |
5464f5a1 | 6321 | cat >>confdefs.h <<_ACEOF |
252b5132 | 6322 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
5464f5a1 NN |
6323 | _ACEOF |
6324 | ||
252b5132 RH |
6325 | |
6326 | fi | |
6327 | ||
5464f5a1 NN |
6328 | |
6329 | ||
6330 | for ac_header in stdlib.h unistd.h | |
252b5132 | 6331 | do |
5464f5a1 NN |
6332 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6333 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6334 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6336 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6338 | fi | |
6339 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6340 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6341 | else | |
6342 | # Is the header compilable? | |
6343 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6344 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6345 | cat >conftest.$ac_ext <<_ACEOF | |
6346 | /* confdefs.h. */ | |
6347 | _ACEOF | |
6348 | cat confdefs.h >>conftest.$ac_ext | |
6349 | cat >>conftest.$ac_ext <<_ACEOF | |
6350 | /* end confdefs.h. */ | |
6351 | $ac_includes_default | |
6352 | #include <$ac_header> | |
6353 | _ACEOF | |
6354 | rm -f conftest.$ac_objext | |
6355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6356 | (eval $ac_compile) 2>conftest.er1 | |
6357 | ac_status=$? | |
6358 | grep -v '^ *+' conftest.er1 >conftest.err | |
6359 | rm -f conftest.er1 | |
6360 | cat conftest.err >&5 | |
6361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6362 | (exit $ac_status); } && | |
7f266840 | 6363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6365 | (eval $ac_try) 2>&5 | |
6366 | ac_status=$? | |
6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6368 | (exit $ac_status); }; } && | |
6369 | { ac_try='test -s conftest.$ac_objext' | |
6370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6371 | (eval $ac_try) 2>&5 | |
6372 | ac_status=$? | |
6373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6374 | (exit $ac_status); }; }; then | |
6375 | ac_header_compiler=yes | |
6376 | else | |
6377 | echo "$as_me: failed program was:" >&5 | |
6378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6379 | ||
6380 | ac_header_compiler=no | |
6381 | fi | |
6382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6383 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6384 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6385 | ||
6386 | # Is the header present? | |
6387 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6388 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6389 | cat >conftest.$ac_ext <<_ACEOF | |
6390 | /* confdefs.h. */ | |
6391 | _ACEOF | |
6392 | cat confdefs.h >>conftest.$ac_ext | |
6393 | cat >>conftest.$ac_ext <<_ACEOF | |
6394 | /* end confdefs.h. */ | |
6395 | #include <$ac_header> | |
6396 | _ACEOF | |
6397 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6398 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6399 | ac_status=$? | |
6400 | grep -v '^ *+' conftest.er1 >conftest.err | |
6401 | rm -f conftest.er1 | |
6402 | cat conftest.err >&5 | |
6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6404 | (exit $ac_status); } >/dev/null; then | |
6405 | if test -s conftest.err; then | |
6406 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6407 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6408 | else | |
6409 | ac_cpp_err= | |
6410 | fi | |
252b5132 | 6411 | else |
5464f5a1 | 6412 | ac_cpp_err=yes |
252b5132 | 6413 | fi |
5464f5a1 NN |
6414 | if test -z "$ac_cpp_err"; then |
6415 | ac_header_preproc=yes | |
6416 | else | |
6417 | echo "$as_me: failed program was:" >&5 | |
6418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6419 | ||
6420 | ac_header_preproc=no | |
252b5132 | 6421 | fi |
5464f5a1 NN |
6422 | rm -f conftest.err conftest.$ac_ext |
6423 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6424 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6425 | ||
6426 | # So? What about this header? | |
6427 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6428 | yes:no: ) | |
6429 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6430 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6431 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6432 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6433 | ac_header_preproc=yes | |
6434 | ;; | |
6435 | no:yes:* ) | |
6436 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6437 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6438 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6439 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6440 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6441 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6442 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6443 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6444 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6445 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6446 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6447 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6448 | ( | |
6449 | cat <<\_ASBOX | |
6450 | ## ------------------------------------------ ## | |
6451 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6452 | ## ------------------------------------------ ## | |
6453 | _ASBOX | |
6454 | ) | | |
6455 | sed "s/^/$as_me: WARNING: /" >&2 | |
6456 | ;; | |
6457 | esac | |
6458 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6459 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6460 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 6462 | else |
5464f5a1 NN |
6463 | eval "$as_ac_Header=\$ac_header_preproc" |
6464 | fi | |
6465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6466 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6467 | ||
252b5132 | 6468 | fi |
5464f5a1 NN |
6469 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6470 | cat >>confdefs.h <<_ACEOF | |
6471 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6472 | _ACEOF | |
6473 | ||
6474 | fi | |
6475 | ||
252b5132 RH |
6476 | done |
6477 | ||
5464f5a1 | 6478 | |
252b5132 RH |
6479 | for ac_func in getpagesize |
6480 | do | |
5464f5a1 NN |
6481 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6482 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6483 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6484 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6486 | else | |
6487 | cat >conftest.$ac_ext <<_ACEOF | |
6488 | /* confdefs.h. */ | |
6489 | _ACEOF | |
6490 | cat confdefs.h >>conftest.$ac_ext | |
6491 | cat >>conftest.$ac_ext <<_ACEOF | |
6492 | /* end confdefs.h. */ | |
6493 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6494 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6495 | #define $ac_func innocuous_$ac_func | |
6496 | ||
252b5132 | 6497 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6498 | which can conflict with char $ac_func (); below. |
6499 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6500 | <limits.h> exists even on freestanding compilers. */ | |
6501 | ||
6502 | #ifdef __STDC__ | |
6503 | # include <limits.h> | |
6504 | #else | |
6505 | # include <assert.h> | |
6506 | #endif | |
6be7c12c | 6507 | |
5464f5a1 | 6508 | #undef $ac_func |
252b5132 | 6509 | |
5464f5a1 NN |
6510 | /* Override any gcc2 internal prototype to avoid an error. */ |
6511 | #ifdef __cplusplus | |
6512 | extern "C" | |
6513 | { | |
6514 | #endif | |
6515 | /* We use char because int might match the return type of a gcc2 | |
6516 | builtin and then its argument prototype would still apply. */ | |
6517 | char $ac_func (); | |
252b5132 RH |
6518 | /* The GNU C library defines this for functions which it implements |
6519 | to always fail with ENOSYS. Some functions are actually named | |
6520 | something starting with __ and the normal name is an alias. */ | |
6521 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6522 | choke me | |
6523 | #else | |
5464f5a1 NN |
6524 | char (*f) () = $ac_func; |
6525 | #endif | |
6526 | #ifdef __cplusplus | |
6527 | } | |
252b5132 RH |
6528 | #endif |
6529 | ||
5464f5a1 NN |
6530 | int |
6531 | main () | |
6532 | { | |
6533 | return f != $ac_func; | |
6534 | ; | |
6535 | return 0; | |
6536 | } | |
6537 | _ACEOF | |
6538 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6540 | (eval $ac_link) 2>conftest.er1 | |
6541 | ac_status=$? | |
6542 | grep -v '^ *+' conftest.er1 >conftest.err | |
6543 | rm -f conftest.er1 | |
6544 | cat conftest.err >&5 | |
6545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6546 | (exit $ac_status); } && | |
7f266840 | 6547 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6549 | (eval $ac_try) 2>&5 | |
6550 | ac_status=$? | |
6551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6552 | (exit $ac_status); }; } && | |
6553 | { ac_try='test -s conftest$ac_exeext' | |
6554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6555 | (eval $ac_try) 2>&5 | |
6556 | ac_status=$? | |
6557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6558 | (exit $ac_status); }; }; then | |
6559 | eval "$as_ac_var=yes" | |
6560 | else | |
6561 | echo "$as_me: failed program was:" >&5 | |
6562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6563 | ||
6564 | eval "$as_ac_var=no" | |
6565 | fi | |
6566 | rm -f conftest.err conftest.$ac_objext \ | |
6567 | conftest$ac_exeext conftest.$ac_ext | |
6568 | fi | |
6569 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6570 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6571 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6572 | cat >>confdefs.h <<_ACEOF | |
6573 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6574 | _ACEOF | |
252b5132 | 6575 | |
252b5132 RH |
6576 | fi |
6577 | done | |
6578 | ||
5464f5a1 NN |
6579 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
6580 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6581 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6583 | else |
6584 | if test "$cross_compiling" = yes; then | |
6585 | ac_cv_func_mmap_fixed_mapped=no | |
6586 | else | |
5464f5a1 NN |
6587 | cat >conftest.$ac_ext <<_ACEOF |
6588 | /* confdefs.h. */ | |
6589 | _ACEOF | |
6590 | cat confdefs.h >>conftest.$ac_ext | |
6591 | cat >>conftest.$ac_ext <<_ACEOF | |
6592 | /* end confdefs.h. */ | |
6593 | $ac_includes_default | |
6594 | /* malloc might have been renamed as rpl_malloc. */ | |
6595 | #undef malloc | |
6be7c12c | 6596 | |
252b5132 RH |
6597 | /* Thanks to Mike Haertel and Jim Avera for this test. |
6598 | Here is a matrix of mmap possibilities: | |
6599 | mmap private not fixed | |
6600 | mmap private fixed at somewhere currently unmapped | |
6601 | mmap private fixed at somewhere already mapped | |
6602 | mmap shared not fixed | |
6603 | mmap shared fixed at somewhere currently unmapped | |
6604 | mmap shared fixed at somewhere already mapped | |
6605 | For private mappings, we should verify that changes cannot be read() | |
6606 | back from the file, nor mmap's back from the file at a different | |
6607 | address. (There have been systems where private was not correctly | |
6608 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 6609 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
6610 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
6611 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 6612 | propagated back to all the places they're supposed to be. |
252b5132 RH |
6613 | |
6614 | Grep wants private fixed already mapped. | |
6615 | The main things grep needs to know about mmap are: | |
6616 | * does it exist and is it safe to write into the mmap'd area | |
6617 | * how to use it (BSD variants) */ | |
5464f5a1 | 6618 | |
252b5132 RH |
6619 | #include <fcntl.h> |
6620 | #include <sys/mman.h> | |
6621 | ||
5464f5a1 NN |
6622 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
6623 | char *malloc (); | |
6624 | #endif | |
6be7c12c | 6625 | |
5464f5a1 NN |
6626 | /* This mess was copied from the GNU getpagesize.h. */ |
6627 | #if !HAVE_GETPAGESIZE | |
252b5132 | 6628 | /* Assume that all systems that can run configure have sys/param.h. */ |
5464f5a1 | 6629 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
6630 | # define HAVE_SYS_PARAM_H 1 |
6631 | # endif | |
6632 | ||
6633 | # ifdef _SC_PAGESIZE | |
6634 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6635 | # else /* no _SC_PAGESIZE */ | |
5464f5a1 | 6636 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
6637 | # include <sys/param.h> |
6638 | # ifdef EXEC_PAGESIZE | |
6639 | # define getpagesize() EXEC_PAGESIZE | |
6640 | # else /* no EXEC_PAGESIZE */ | |
6641 | # ifdef NBPG | |
6642 | # define getpagesize() NBPG * CLSIZE | |
6643 | # ifndef CLSIZE | |
6644 | # define CLSIZE 1 | |
6645 | # endif /* no CLSIZE */ | |
6646 | # else /* no NBPG */ | |
6647 | # ifdef NBPC | |
6648 | # define getpagesize() NBPC | |
6649 | # else /* no NBPC */ | |
6650 | # ifdef PAGESIZE | |
6651 | # define getpagesize() PAGESIZE | |
6652 | # endif /* PAGESIZE */ | |
6653 | # endif /* no NBPC */ | |
6654 | # endif /* no NBPG */ | |
6655 | # endif /* no EXEC_PAGESIZE */ | |
6656 | # else /* no HAVE_SYS_PARAM_H */ | |
6657 | # define getpagesize() 8192 /* punt totally */ | |
6658 | # endif /* no HAVE_SYS_PARAM_H */ | |
6659 | # endif /* no _SC_PAGESIZE */ | |
6660 | ||
6661 | #endif /* no HAVE_GETPAGESIZE */ | |
6662 | ||
252b5132 | 6663 | int |
5464f5a1 | 6664 | main () |
252b5132 | 6665 | { |
5464f5a1 NN |
6666 | char *data, *data2, *data3; |
6667 | int i, pagesize; | |
6668 | int fd; | |
6669 | ||
6670 | pagesize = getpagesize (); | |
6671 | ||
6672 | /* First, make a file with some known garbage in it. */ | |
6673 | data = (char *) malloc (pagesize); | |
6674 | if (!data) | |
6675 | exit (1); | |
6676 | for (i = 0; i < pagesize; ++i) | |
6677 | *(data + i) = rand (); | |
6678 | umask (0); | |
6679 | fd = creat ("conftest.mmap", 0600); | |
6680 | if (fd < 0) | |
6681 | exit (1); | |
6682 | if (write (fd, data, pagesize) != pagesize) | |
6683 | exit (1); | |
6684 | close (fd); | |
6685 | ||
6686 | /* Next, try to mmap the file at a fixed address which already has | |
6687 | something else allocated at it. If we can, also make sure that | |
6688 | we see the same garbage. */ | |
6689 | fd = open ("conftest.mmap", O_RDWR); | |
6690 | if (fd < 0) | |
6691 | exit (1); | |
6692 | data2 = (char *) malloc (2 * pagesize); | |
6693 | if (!data2) | |
6694 | exit (1); | |
6695 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
6696 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6697 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6698 | exit (1); | |
6699 | for (i = 0; i < pagesize; ++i) | |
6700 | if (*(data + i) != *(data2 + i)) | |
6701 | exit (1); | |
6702 | ||
6703 | /* Finally, make sure that changes to the mapped area do not | |
6704 | percolate back to the file as seen by read(). (This is a bug on | |
6705 | some variants of i386 svr4.0.) */ | |
6706 | for (i = 0; i < pagesize; ++i) | |
6707 | *(data2 + i) = *(data2 + i) + 1; | |
6708 | data3 = (char *) malloc (pagesize); | |
6709 | if (!data3) | |
6710 | exit (1); | |
6711 | if (read (fd, data3, pagesize) != pagesize) | |
6712 | exit (1); | |
6713 | for (i = 0; i < pagesize; ++i) | |
6714 | if (*(data + i) != *(data3 + i)) | |
6715 | exit (1); | |
6716 | close (fd); | |
6717 | exit (0); | |
252b5132 | 6718 | } |
5464f5a1 NN |
6719 | _ACEOF |
6720 | rm -f conftest$ac_exeext | |
6721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6722 | (eval $ac_link) 2>&5 | |
6723 | ac_status=$? | |
6724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6725 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6727 | (eval $ac_try) 2>&5 | |
6728 | ac_status=$? | |
6729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6730 | (exit $ac_status); }; }; then | |
252b5132 RH |
6731 | ac_cv_func_mmap_fixed_mapped=yes |
6732 | else | |
5464f5a1 NN |
6733 | echo "$as_me: program exited with status $ac_status" >&5 |
6734 | echo "$as_me: failed program was:" >&5 | |
6735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6736 | ||
6737 | ( exit $ac_status ) | |
6738 | ac_cv_func_mmap_fixed_mapped=no | |
252b5132 | 6739 | fi |
5464f5a1 | 6740 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6741 | fi |
252b5132 | 6742 | fi |
5464f5a1 NN |
6743 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6744 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
6be7c12c | 6745 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
5464f5a1 NN |
6746 | |
6747 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6748 | #define HAVE_MMAP 1 |
5464f5a1 | 6749 | _ACEOF |
252b5132 RH |
6750 | |
6751 | fi | |
5464f5a1 NN |
6752 | rm -f conftest.mmap |
6753 | ||
6754 | ||
252b5132 | 6755 | |
5464f5a1 NN |
6756 | |
6757 | ||
6758 | ||
6759 | ||
6760 | ||
6761 | ||
6762 | ||
6763 | ||
6764 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
252b5132 RH |
6765 | unistd.h values.h sys/param.h |
6766 | do | |
5464f5a1 NN |
6767 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6768 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6769 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6770 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6771 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6773 | fi | |
6774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6775 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6776 | else | |
6777 | # Is the header compilable? | |
6778 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6779 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6780 | cat >conftest.$ac_ext <<_ACEOF | |
6781 | /* confdefs.h. */ | |
6782 | _ACEOF | |
6783 | cat confdefs.h >>conftest.$ac_ext | |
6784 | cat >>conftest.$ac_ext <<_ACEOF | |
6785 | /* end confdefs.h. */ | |
6786 | $ac_includes_default | |
6787 | #include <$ac_header> | |
6788 | _ACEOF | |
6789 | rm -f conftest.$ac_objext | |
6790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6791 | (eval $ac_compile) 2>conftest.er1 | |
6792 | ac_status=$? | |
6793 | grep -v '^ *+' conftest.er1 >conftest.err | |
6794 | rm -f conftest.er1 | |
6795 | cat conftest.err >&5 | |
6796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6797 | (exit $ac_status); } && | |
7f266840 | 6798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6800 | (eval $ac_try) 2>&5 | |
6801 | ac_status=$? | |
6802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6803 | (exit $ac_status); }; } && | |
6804 | { ac_try='test -s conftest.$ac_objext' | |
6805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6806 | (eval $ac_try) 2>&5 | |
6807 | ac_status=$? | |
6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6809 | (exit $ac_status); }; }; then | |
6810 | ac_header_compiler=yes | |
6811 | else | |
6812 | echo "$as_me: failed program was:" >&5 | |
6813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6814 | ||
6815 | ac_header_compiler=no | |
6816 | fi | |
6817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6818 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6819 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6820 | ||
6821 | # Is the header present? | |
6822 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6823 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6824 | cat >conftest.$ac_ext <<_ACEOF | |
6825 | /* confdefs.h. */ | |
6826 | _ACEOF | |
6827 | cat confdefs.h >>conftest.$ac_ext | |
6828 | cat >>conftest.$ac_ext <<_ACEOF | |
6829 | /* end confdefs.h. */ | |
6830 | #include <$ac_header> | |
6831 | _ACEOF | |
6832 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6833 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6834 | ac_status=$? | |
6835 | grep -v '^ *+' conftest.er1 >conftest.err | |
6836 | rm -f conftest.er1 | |
6837 | cat conftest.err >&5 | |
6838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6839 | (exit $ac_status); } >/dev/null; then | |
6840 | if test -s conftest.err; then | |
6841 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6842 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6843 | else | |
6844 | ac_cpp_err= | |
6845 | fi | |
252b5132 | 6846 | else |
5464f5a1 | 6847 | ac_cpp_err=yes |
252b5132 | 6848 | fi |
5464f5a1 NN |
6849 | if test -z "$ac_cpp_err"; then |
6850 | ac_header_preproc=yes | |
6851 | else | |
6852 | echo "$as_me: failed program was:" >&5 | |
6853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6854 | ||
6855 | ac_header_preproc=no | |
252b5132 | 6856 | fi |
5464f5a1 NN |
6857 | rm -f conftest.err conftest.$ac_ext |
6858 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6859 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6860 | ||
6861 | # So? What about this header? | |
6862 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6863 | yes:no: ) | |
6864 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6865 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6866 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6867 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6868 | ac_header_preproc=yes | |
6869 | ;; | |
6870 | no:yes:* ) | |
6871 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6872 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6873 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6874 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6875 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6876 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6877 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6878 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6879 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6880 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6881 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6882 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6883 | ( | |
6884 | cat <<\_ASBOX | |
6885 | ## ------------------------------------------ ## | |
6886 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6887 | ## ------------------------------------------ ## | |
6888 | _ASBOX | |
6889 | ) | | |
6890 | sed "s/^/$as_me: WARNING: /" >&2 | |
6891 | ;; | |
6892 | esac | |
6893 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6894 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6895 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 6897 | else |
5464f5a1 NN |
6898 | eval "$as_ac_Header=\$ac_header_preproc" |
6899 | fi | |
6900 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6901 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6902 | ||
6903 | fi | |
6904 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6905 | cat >>confdefs.h <<_ACEOF | |
6906 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6907 | _ACEOF | |
6908 | ||
252b5132 | 6909 | fi |
5464f5a1 | 6910 | |
252b5132 RH |
6911 | done |
6912 | ||
5464f5a1 NN |
6913 | |
6914 | ||
6915 | ||
6916 | ||
6917 | ||
6918 | ||
6919 | ||
6920 | ||
6921 | ||
6922 | ||
6923 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
252b5132 RH |
6924 | __argz_count __argz_stringify __argz_next |
6925 | do | |
5464f5a1 NN |
6926 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6927 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6928 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6929 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6931 | else | |
6932 | cat >conftest.$ac_ext <<_ACEOF | |
6933 | /* confdefs.h. */ | |
6934 | _ACEOF | |
6935 | cat confdefs.h >>conftest.$ac_ext | |
6936 | cat >>conftest.$ac_ext <<_ACEOF | |
6937 | /* end confdefs.h. */ | |
6938 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6939 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6940 | #define $ac_func innocuous_$ac_func | |
6941 | ||
252b5132 | 6942 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6943 | which can conflict with char $ac_func (); below. |
6944 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6945 | <limits.h> exists even on freestanding compilers. */ | |
6946 | ||
6947 | #ifdef __STDC__ | |
6948 | # include <limits.h> | |
6949 | #else | |
6950 | # include <assert.h> | |
6951 | #endif | |
6952 | ||
6953 | #undef $ac_func | |
6954 | ||
252b5132 | 6955 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
6956 | #ifdef __cplusplus |
6957 | extern "C" | |
6958 | { | |
6959 | #endif | |
252b5132 | 6960 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
6961 | builtin and then its argument prototype would still apply. */ |
6962 | char $ac_func (); | |
252b5132 RH |
6963 | /* The GNU C library defines this for functions which it implements |
6964 | to always fail with ENOSYS. Some functions are actually named | |
6965 | something starting with __ and the normal name is an alias. */ | |
6966 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6967 | choke me | |
6968 | #else | |
5464f5a1 NN |
6969 | char (*f) () = $ac_func; |
6970 | #endif | |
6971 | #ifdef __cplusplus | |
6972 | } | |
252b5132 RH |
6973 | #endif |
6974 | ||
5464f5a1 NN |
6975 | int |
6976 | main () | |
6977 | { | |
6978 | return f != $ac_func; | |
6979 | ; | |
6980 | return 0; | |
6981 | } | |
6982 | _ACEOF | |
6983 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6985 | (eval $ac_link) 2>conftest.er1 | |
6986 | ac_status=$? | |
6987 | grep -v '^ *+' conftest.er1 >conftest.err | |
6988 | rm -f conftest.er1 | |
6989 | cat conftest.err >&5 | |
6990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6991 | (exit $ac_status); } && | |
7f266840 | 6992 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6994 | (eval $ac_try) 2>&5 | |
6995 | ac_status=$? | |
6996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6997 | (exit $ac_status); }; } && | |
6998 | { ac_try='test -s conftest$ac_exeext' | |
6999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7000 | (eval $ac_try) 2>&5 | |
7001 | ac_status=$? | |
7002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7003 | (exit $ac_status); }; }; then | |
7004 | eval "$as_ac_var=yes" | |
7005 | else | |
7006 | echo "$as_me: failed program was:" >&5 | |
7007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7008 | ||
7009 | eval "$as_ac_var=no" | |
7010 | fi | |
7011 | rm -f conftest.err conftest.$ac_objext \ | |
7012 | conftest$ac_exeext conftest.$ac_ext | |
7013 | fi | |
7014 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7015 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7016 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7017 | cat >>confdefs.h <<_ACEOF | |
7018 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7019 | _ACEOF | |
252b5132 | 7020 | |
252b5132 RH |
7021 | fi |
7022 | done | |
7023 | ||
b3baf5d0 | 7024 | |
6be7c12c | 7025 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
5464f5a1 NN |
7026 | |
7027 | for ac_func in stpcpy | |
252b5132 | 7028 | do |
5464f5a1 NN |
7029 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7030 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7031 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7032 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7034 | else | |
7035 | cat >conftest.$ac_ext <<_ACEOF | |
7036 | /* confdefs.h. */ | |
7037 | _ACEOF | |
7038 | cat confdefs.h >>conftest.$ac_ext | |
7039 | cat >>conftest.$ac_ext <<_ACEOF | |
7040 | /* end confdefs.h. */ | |
7041 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7042 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7043 | #define $ac_func innocuous_$ac_func | |
7044 | ||
252b5132 | 7045 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
7046 | which can conflict with char $ac_func (); below. |
7047 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7048 | <limits.h> exists even on freestanding compilers. */ | |
7049 | ||
7050 | #ifdef __STDC__ | |
7051 | # include <limits.h> | |
7052 | #else | |
7053 | # include <assert.h> | |
7054 | #endif | |
6be7c12c | 7055 | |
5464f5a1 | 7056 | #undef $ac_func |
252b5132 | 7057 | |
5464f5a1 NN |
7058 | /* Override any gcc2 internal prototype to avoid an error. */ |
7059 | #ifdef __cplusplus | |
7060 | extern "C" | |
7061 | { | |
7062 | #endif | |
7063 | /* We use char because int might match the return type of a gcc2 | |
7064 | builtin and then its argument prototype would still apply. */ | |
7065 | char $ac_func (); | |
252b5132 RH |
7066 | /* The GNU C library defines this for functions which it implements |
7067 | to always fail with ENOSYS. Some functions are actually named | |
7068 | something starting with __ and the normal name is an alias. */ | |
7069 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7070 | choke me | |
7071 | #else | |
5464f5a1 NN |
7072 | char (*f) () = $ac_func; |
7073 | #endif | |
7074 | #ifdef __cplusplus | |
7075 | } | |
252b5132 RH |
7076 | #endif |
7077 | ||
5464f5a1 NN |
7078 | int |
7079 | main () | |
7080 | { | |
7081 | return f != $ac_func; | |
7082 | ; | |
7083 | return 0; | |
7084 | } | |
7085 | _ACEOF | |
7086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7088 | (eval $ac_link) 2>conftest.er1 | |
7089 | ac_status=$? | |
7090 | grep -v '^ *+' conftest.er1 >conftest.err | |
7091 | rm -f conftest.er1 | |
7092 | cat conftest.err >&5 | |
7093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7094 | (exit $ac_status); } && | |
7f266840 | 7095 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7097 | (eval $ac_try) 2>&5 | |
7098 | ac_status=$? | |
7099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7100 | (exit $ac_status); }; } && | |
7101 | { ac_try='test -s conftest$ac_exeext' | |
7102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7103 | (eval $ac_try) 2>&5 | |
7104 | ac_status=$? | |
7105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7106 | (exit $ac_status); }; }; then | |
7107 | eval "$as_ac_var=yes" | |
7108 | else | |
7109 | echo "$as_me: failed program was:" >&5 | |
7110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7111 | ||
7112 | eval "$as_ac_var=no" | |
7113 | fi | |
7114 | rm -f conftest.err conftest.$ac_objext \ | |
7115 | conftest$ac_exeext conftest.$ac_ext | |
7116 | fi | |
7117 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7118 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7119 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7120 | cat >>confdefs.h <<_ACEOF | |
7121 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7122 | _ACEOF | |
252b5132 | 7123 | |
252b5132 RH |
7124 | fi |
7125 | done | |
7126 | ||
7127 | fi | |
7128 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
5464f5a1 NN |
7129 | |
7130 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7131 | #define HAVE_STPCPY 1 |
5464f5a1 | 7132 | _ACEOF |
252b5132 RH |
7133 | |
7134 | fi | |
7135 | ||
7136 | if test $ac_cv_header_locale_h = yes; then | |
5464f5a1 NN |
7137 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
7138 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
7139 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
7140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7141 | else | |
7142 | cat >conftest.$ac_ext <<_ACEOF | |
7143 | /* confdefs.h. */ | |
7144 | _ACEOF | |
7145 | cat confdefs.h >>conftest.$ac_ext | |
7146 | cat >>conftest.$ac_ext <<_ACEOF | |
7147 | /* end confdefs.h. */ | |
252b5132 | 7148 | #include <locale.h> |
5464f5a1 NN |
7149 | int |
7150 | main () | |
7151 | { | |
252b5132 | 7152 | return LC_MESSAGES |
5464f5a1 NN |
7153 | ; |
7154 | return 0; | |
7155 | } | |
7156 | _ACEOF | |
7157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7159 | (eval $ac_link) 2>conftest.er1 | |
7160 | ac_status=$? | |
7161 | grep -v '^ *+' conftest.er1 >conftest.err | |
7162 | rm -f conftest.er1 | |
7163 | cat conftest.err >&5 | |
7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7165 | (exit $ac_status); } && | |
7f266840 | 7166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7168 | (eval $ac_try) 2>&5 | |
7169 | ac_status=$? | |
7170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7171 | (exit $ac_status); }; } && | |
7172 | { ac_try='test -s conftest$ac_exeext' | |
7173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7174 | (eval $ac_try) 2>&5 | |
7175 | ac_status=$? | |
7176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7177 | (exit $ac_status); }; }; then | |
252b5132 RH |
7178 | am_cv_val_LC_MESSAGES=yes |
7179 | else | |
5464f5a1 NN |
7180 | echo "$as_me: failed program was:" >&5 |
7181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7182 | ||
7183 | am_cv_val_LC_MESSAGES=no | |
252b5132 | 7184 | fi |
5464f5a1 NN |
7185 | rm -f conftest.err conftest.$ac_objext \ |
7186 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7187 | fi |
5464f5a1 NN |
7188 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
7189 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
6be7c12c | 7190 | if test $am_cv_val_LC_MESSAGES = yes; then |
5464f5a1 NN |
7191 | |
7192 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7193 | #define HAVE_LC_MESSAGES 1 |
5464f5a1 | 7194 | _ACEOF |
252b5132 RH |
7195 | |
7196 | fi | |
7197 | fi | |
5464f5a1 NN |
7198 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
7199 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
252b5132 RH |
7200 | # Check whether --enable-nls or --disable-nls was given. |
7201 | if test "${enable_nls+set}" = set; then | |
7202 | enableval="$enable_nls" | |
7203 | USE_NLS=$enableval | |
7204 | else | |
7205 | USE_NLS=yes | |
5464f5a1 NN |
7206 | fi; |
7207 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
7208 | echo "${ECHO_T}$USE_NLS" >&6 | |
6be7c12c | 7209 | |
252b5132 RH |
7210 | |
7211 | USE_INCLUDED_LIBINTL=no | |
7212 | ||
7213 | if test "$USE_NLS" = "yes"; then | |
5464f5a1 NN |
7214 | |
7215 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7216 | #define ENABLE_NLS 1 |
5464f5a1 | 7217 | _ACEOF |
252b5132 | 7218 | |
5464f5a1 NN |
7219 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
7220 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
7221 | ||
7222 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
252b5132 RH |
7223 | if test "${with_included_gettext+set}" = set; then |
7224 | withval="$with_included_gettext" | |
7225 | nls_cv_force_use_gnu_gettext=$withval | |
7226 | else | |
7227 | nls_cv_force_use_gnu_gettext=no | |
5464f5a1 NN |
7228 | fi; |
7229 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
7230 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
252b5132 RH |
7231 | |
7232 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7233 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7234 | nls_cv_header_intl= | |
7235 | nls_cv_header_libgt= | |
7236 | CATOBJEXT=NONE | |
7237 | ||
5464f5a1 NN |
7238 | if test "${ac_cv_header_libintl_h+set}" = set; then |
7239 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7240 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7241 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7243 | fi | |
7244 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
7245 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7246 | else | |
7247 | # Is the header compilable? | |
7248 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
7249 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
7250 | cat >conftest.$ac_ext <<_ACEOF | |
7251 | /* confdefs.h. */ | |
7252 | _ACEOF | |
7253 | cat confdefs.h >>conftest.$ac_ext | |
7254 | cat >>conftest.$ac_ext <<_ACEOF | |
7255 | /* end confdefs.h. */ | |
7256 | $ac_includes_default | |
252b5132 | 7257 | #include <libintl.h> |
5464f5a1 NN |
7258 | _ACEOF |
7259 | rm -f conftest.$ac_objext | |
7260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7261 | (eval $ac_compile) 2>conftest.er1 | |
7262 | ac_status=$? | |
7263 | grep -v '^ *+' conftest.er1 >conftest.err | |
7264 | rm -f conftest.er1 | |
7265 | cat conftest.err >&5 | |
7266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7267 | (exit $ac_status); } && | |
7f266840 | 7268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7270 | (eval $ac_try) 2>&5 | |
7271 | ac_status=$? | |
7272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7273 | (exit $ac_status); }; } && | |
7274 | { ac_try='test -s conftest.$ac_objext' | |
7275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7276 | (eval $ac_try) 2>&5 | |
7277 | ac_status=$? | |
7278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7279 | (exit $ac_status); }; }; then | |
7280 | ac_header_compiler=yes | |
7281 | else | |
7282 | echo "$as_me: failed program was:" >&5 | |
7283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7284 | ||
7285 | ac_header_compiler=no | |
7286 | fi | |
7287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7288 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7289 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7290 | ||
7291 | # Is the header present? | |
7292 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
7293 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
7294 | cat >conftest.$ac_ext <<_ACEOF | |
7295 | /* confdefs.h. */ | |
7296 | _ACEOF | |
7297 | cat confdefs.h >>conftest.$ac_ext | |
7298 | cat >>conftest.$ac_ext <<_ACEOF | |
7299 | /* end confdefs.h. */ | |
7300 | #include <libintl.h> | |
7301 | _ACEOF | |
7302 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7303 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7304 | ac_status=$? | |
7305 | grep -v '^ *+' conftest.er1 >conftest.err | |
7306 | rm -f conftest.er1 | |
7307 | cat conftest.err >&5 | |
7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7309 | (exit $ac_status); } >/dev/null; then | |
7310 | if test -s conftest.err; then | |
7311 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7312 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7313 | else | |
7314 | ac_cpp_err= | |
7315 | fi | |
252b5132 | 7316 | else |
5464f5a1 | 7317 | ac_cpp_err=yes |
252b5132 | 7318 | fi |
5464f5a1 NN |
7319 | if test -z "$ac_cpp_err"; then |
7320 | ac_header_preproc=yes | |
7321 | else | |
7322 | echo "$as_me: failed program was:" >&5 | |
7323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7324 | ||
7325 | ac_header_preproc=no | |
252b5132 | 7326 | fi |
5464f5a1 NN |
7327 | rm -f conftest.err conftest.$ac_ext |
7328 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7329 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7330 | ||
7331 | # So? What about this header? | |
7332 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7333 | yes:no: ) | |
7334 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7335 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7336 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
7337 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
7338 | ac_header_preproc=yes | |
7339 | ;; | |
7340 | no:yes:* ) | |
7341 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
7342 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
7343 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
7344 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
7345 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
7346 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
7347 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7348 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7349 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
7350 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
7351 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
7352 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
7353 | ( | |
7354 | cat <<\_ASBOX | |
7355 | ## ------------------------------------------ ## | |
7356 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7357 | ## ------------------------------------------ ## | |
7358 | _ASBOX | |
7359 | ) | | |
7360 | sed "s/^/$as_me: WARNING: /" >&2 | |
7361 | ;; | |
7362 | esac | |
7363 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7364 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7365 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7367 | else |
5464f5a1 NN |
7368 | ac_cv_header_libintl_h=$ac_header_preproc |
7369 | fi | |
7370 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
7371 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7372 | ||
7373 | fi | |
7374 | if test $ac_cv_header_libintl_h = yes; then | |
7375 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
7376 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
7377 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
7378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7379 | else | |
7380 | cat >conftest.$ac_ext <<_ACEOF | |
7381 | /* confdefs.h. */ | |
7382 | _ACEOF | |
7383 | cat confdefs.h >>conftest.$ac_ext | |
7384 | cat >>conftest.$ac_ext <<_ACEOF | |
7385 | /* end confdefs.h. */ | |
252b5132 | 7386 | #include <libintl.h> |
5464f5a1 NN |
7387 | int |
7388 | main () | |
7389 | { | |
252b5132 | 7390 | return (int) gettext ("") |
5464f5a1 NN |
7391 | ; |
7392 | return 0; | |
7393 | } | |
7394 | _ACEOF | |
7395 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7397 | (eval $ac_link) 2>conftest.er1 | |
7398 | ac_status=$? | |
7399 | grep -v '^ *+' conftest.er1 >conftest.err | |
7400 | rm -f conftest.er1 | |
7401 | cat conftest.err >&5 | |
7402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7403 | (exit $ac_status); } && | |
7f266840 | 7404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7406 | (eval $ac_try) 2>&5 | |
7407 | ac_status=$? | |
7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7409 | (exit $ac_status); }; } && | |
7410 | { ac_try='test -s conftest$ac_exeext' | |
7411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7412 | (eval $ac_try) 2>&5 | |
7413 | ac_status=$? | |
7414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7415 | (exit $ac_status); }; }; then | |
252b5132 RH |
7416 | gt_cv_func_gettext_libc=yes |
7417 | else | |
5464f5a1 NN |
7418 | echo "$as_me: failed program was:" >&5 |
7419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7420 | ||
7421 | gt_cv_func_gettext_libc=no | |
252b5132 | 7422 | fi |
5464f5a1 NN |
7423 | rm -f conftest.err conftest.$ac_objext \ |
7424 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7425 | fi |
5464f5a1 NN |
7426 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
7427 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
252b5132 RH |
7428 | |
7429 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
5464f5a1 NN |
7430 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
7431 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
7432 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
7433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7434 | else |
5464f5a1 | 7435 | ac_check_lib_save_LIBS=$LIBS |
252b5132 | 7436 | LIBS="-lintl $LIBS" |
5464f5a1 NN |
7437 | cat >conftest.$ac_ext <<_ACEOF |
7438 | /* confdefs.h. */ | |
7439 | _ACEOF | |
7440 | cat confdefs.h >>conftest.$ac_ext | |
7441 | cat >>conftest.$ac_ext <<_ACEOF | |
7442 | /* end confdefs.h. */ | |
7443 | ||
252b5132 | 7444 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
7445 | #ifdef __cplusplus |
7446 | extern "C" | |
7447 | #endif | |
252b5132 | 7448 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
7449 | builtin and then its argument prototype would still apply. */ |
7450 | char bindtextdomain (); | |
7451 | int | |
7452 | main () | |
7453 | { | |
7454 | bindtextdomain (); | |
7455 | ; | |
7456 | return 0; | |
7457 | } | |
7458 | _ACEOF | |
7459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7461 | (eval $ac_link) 2>conftest.er1 | |
7462 | ac_status=$? | |
7463 | grep -v '^ *+' conftest.er1 >conftest.err | |
7464 | rm -f conftest.er1 | |
7465 | cat conftest.err >&5 | |
7466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7467 | (exit $ac_status); } && | |
7f266840 | 7468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7470 | (eval $ac_try) 2>&5 | |
7471 | ac_status=$? | |
7472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7473 | (exit $ac_status); }; } && | |
7474 | { ac_try='test -s conftest$ac_exeext' | |
7475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7476 | (eval $ac_try) 2>&5 | |
7477 | ac_status=$? | |
7478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7479 | (exit $ac_status); }; }; then | |
7480 | ac_cv_lib_intl_bindtextdomain=yes | |
7481 | else | |
7482 | echo "$as_me: failed program was:" >&5 | |
7483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7484 | ||
7485 | ac_cv_lib_intl_bindtextdomain=no | |
7486 | fi | |
7487 | rm -f conftest.err conftest.$ac_objext \ | |
7488 | conftest$ac_exeext conftest.$ac_ext | |
7489 | LIBS=$ac_check_lib_save_LIBS | |
7490 | fi | |
7491 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
7492 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
7493 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
7494 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
7495 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
7496 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
7497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7498 | else | |
7499 | cat >conftest.$ac_ext <<_ACEOF | |
7500 | /* confdefs.h. */ | |
7501 | _ACEOF | |
7502 | cat confdefs.h >>conftest.$ac_ext | |
7503 | cat >>conftest.$ac_ext <<_ACEOF | |
7504 | /* end confdefs.h. */ | |
252b5132 | 7505 | |
5464f5a1 NN |
7506 | int |
7507 | main () | |
7508 | { | |
252b5132 | 7509 | return (int) gettext ("") |
5464f5a1 NN |
7510 | ; |
7511 | return 0; | |
7512 | } | |
7513 | _ACEOF | |
7514 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7516 | (eval $ac_link) 2>conftest.er1 | |
7517 | ac_status=$? | |
7518 | grep -v '^ *+' conftest.er1 >conftest.err | |
7519 | rm -f conftest.er1 | |
7520 | cat conftest.err >&5 | |
7521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7522 | (exit $ac_status); } && | |
7f266840 | 7523 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
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); }; } && | |
7529 | { ac_try='test -s conftest$ac_exeext' | |
7530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7531 | (eval $ac_try) 2>&5 | |
7532 | ac_status=$? | |
7533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7534 | (exit $ac_status); }; }; then | |
252b5132 RH |
7535 | gt_cv_func_gettext_libintl=yes |
7536 | else | |
5464f5a1 NN |
7537 | echo "$as_me: failed program was:" >&5 |
7538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7539 | ||
7540 | gt_cv_func_gettext_libintl=no | |
252b5132 | 7541 | fi |
5464f5a1 NN |
7542 | rm -f conftest.err conftest.$ac_objext \ |
7543 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7544 | fi |
5464f5a1 NN |
7545 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
7546 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
252b5132 RH |
7547 | fi |
7548 | ||
7549 | fi | |
7550 | ||
7551 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7552 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
5464f5a1 NN |
7553 | |
7554 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7555 | #define HAVE_GETTEXT 1 |
5464f5a1 | 7556 | _ACEOF |
252b5132 RH |
7557 | |
7558 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7559 | set dummy msgfmt; ac_word=$2 | |
5464f5a1 NN |
7560 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7561 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7562 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7564 | else |
7565 | case "$MSGFMT" in | |
7566 | /*) | |
7567 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7568 | ;; | |
7569 | *) | |
7570 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7571 | for ac_dir in $PATH; do | |
7572 | test -z "$ac_dir" && ac_dir=. | |
7573 | if test -f $ac_dir/$ac_word; then | |
7574 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7575 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7576 | break | |
7577 | fi | |
7578 | fi | |
7579 | done | |
7580 | IFS="$ac_save_ifs" | |
7581 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7582 | ;; | |
7583 | esac | |
7584 | fi | |
7585 | MSGFMT="$ac_cv_path_MSGFMT" | |
7586 | if test -n "$MSGFMT"; then | |
5464f5a1 NN |
7587 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7588 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7589 | else |
5464f5a1 NN |
7590 | echo "$as_me:$LINENO: result: no" >&5 |
7591 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7592 | fi |
7593 | if test "$MSGFMT" != "no"; then | |
5464f5a1 NN |
7594 | |
7595 | for ac_func in dcgettext | |
252b5132 | 7596 | do |
5464f5a1 NN |
7597 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7598 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7599 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7600 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7602 | else | |
7603 | cat >conftest.$ac_ext <<_ACEOF | |
7604 | /* confdefs.h. */ | |
7605 | _ACEOF | |
7606 | cat confdefs.h >>conftest.$ac_ext | |
7607 | cat >>conftest.$ac_ext <<_ACEOF | |
7608 | /* end confdefs.h. */ | |
7609 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7610 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7611 | #define $ac_func innocuous_$ac_func | |
7612 | ||
252b5132 | 7613 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
7614 | which can conflict with char $ac_func (); below. |
7615 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7616 | <limits.h> exists even on freestanding compilers. */ | |
7617 | ||
7618 | #ifdef __STDC__ | |
7619 | # include <limits.h> | |
7620 | #else | |
7621 | # include <assert.h> | |
7622 | #endif | |
6be7c12c | 7623 | |
5464f5a1 | 7624 | #undef $ac_func |
252b5132 | 7625 | |
5464f5a1 NN |
7626 | /* Override any gcc2 internal prototype to avoid an error. */ |
7627 | #ifdef __cplusplus | |
7628 | extern "C" | |
7629 | { | |
7630 | #endif | |
7631 | /* We use char because int might match the return type of a gcc2 | |
7632 | builtin and then its argument prototype would still apply. */ | |
7633 | char $ac_func (); | |
252b5132 RH |
7634 | /* The GNU C library defines this for functions which it implements |
7635 | to always fail with ENOSYS. Some functions are actually named | |
7636 | something starting with __ and the normal name is an alias. */ | |
7637 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7638 | choke me | |
7639 | #else | |
5464f5a1 NN |
7640 | char (*f) () = $ac_func; |
7641 | #endif | |
7642 | #ifdef __cplusplus | |
7643 | } | |
252b5132 RH |
7644 | #endif |
7645 | ||
5464f5a1 NN |
7646 | int |
7647 | main () | |
7648 | { | |
7649 | return f != $ac_func; | |
7650 | ; | |
7651 | return 0; | |
7652 | } | |
7653 | _ACEOF | |
7654 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7656 | (eval $ac_link) 2>conftest.er1 | |
7657 | ac_status=$? | |
7658 | grep -v '^ *+' conftest.er1 >conftest.err | |
7659 | rm -f conftest.er1 | |
7660 | cat conftest.err >&5 | |
7661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7662 | (exit $ac_status); } && | |
7f266840 | 7663 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7665 | (eval $ac_try) 2>&5 | |
7666 | ac_status=$? | |
7667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7668 | (exit $ac_status); }; } && | |
7669 | { ac_try='test -s conftest$ac_exeext' | |
7670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7671 | (eval $ac_try) 2>&5 | |
7672 | ac_status=$? | |
7673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7674 | (exit $ac_status); }; }; then | |
7675 | eval "$as_ac_var=yes" | |
7676 | else | |
7677 | echo "$as_me: failed program was:" >&5 | |
7678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7679 | ||
7680 | eval "$as_ac_var=no" | |
7681 | fi | |
7682 | rm -f conftest.err conftest.$ac_objext \ | |
7683 | conftest$ac_exeext conftest.$ac_ext | |
7684 | fi | |
7685 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7686 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7687 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7688 | cat >>confdefs.h <<_ACEOF | |
7689 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7690 | _ACEOF | |
252b5132 | 7691 | |
252b5132 RH |
7692 | fi |
7693 | done | |
7694 | ||
7695 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7696 | set dummy gmsgfmt; ac_word=$2 | |
5464f5a1 NN |
7697 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7699 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7701 | else |
5464f5a1 NN |
7702 | case $GMSGFMT in |
7703 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7704 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7705 | ;; | |
252b5132 | 7706 | *) |
5464f5a1 NN |
7707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7708 | for as_dir in $PATH | |
7709 | do | |
7710 | IFS=$as_save_IFS | |
7711 | test -z "$as_dir" && as_dir=. | |
7712 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7713 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7714 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7716 | break 2 | |
7717 | fi | |
7718 | done | |
7719 | done | |
7720 | ||
252b5132 RH |
7721 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7722 | ;; | |
7723 | esac | |
7724 | fi | |
5464f5a1 NN |
7725 | GMSGFMT=$ac_cv_path_GMSGFMT |
7726 | ||
252b5132 | 7727 | if test -n "$GMSGFMT"; then |
5464f5a1 NN |
7728 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7729 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7730 | else |
5464f5a1 NN |
7731 | echo "$as_me:$LINENO: result: no" >&5 |
7732 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7733 | fi |
7734 | ||
7735 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7736 | set dummy xgettext; ac_word=$2 | |
5464f5a1 NN |
7737 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7738 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7739 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7741 | else |
7742 | case "$XGETTEXT" in | |
7743 | /*) | |
7744 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7745 | ;; | |
7746 | *) | |
7747 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7748 | for ac_dir in $PATH; do | |
7749 | test -z "$ac_dir" && ac_dir=. | |
7750 | if test -f $ac_dir/$ac_word; then | |
7751 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7752 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7753 | break | |
7754 | fi | |
7755 | fi | |
7756 | done | |
7757 | IFS="$ac_save_ifs" | |
7758 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7759 | ;; | |
7760 | esac | |
7761 | fi | |
7762 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7763 | if test -n "$XGETTEXT"; then | |
5464f5a1 NN |
7764 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7765 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 7766 | else |
5464f5a1 NN |
7767 | echo "$as_me:$LINENO: result: no" >&5 |
7768 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7769 | fi |
7770 | ||
5464f5a1 NN |
7771 | cat >conftest.$ac_ext <<_ACEOF |
7772 | /* confdefs.h. */ | |
7773 | _ACEOF | |
7774 | cat confdefs.h >>conftest.$ac_ext | |
7775 | cat >>conftest.$ac_ext <<_ACEOF | |
7776 | /* end confdefs.h. */ | |
252b5132 | 7777 | |
5464f5a1 NN |
7778 | int |
7779 | main () | |
7780 | { | |
252b5132 RH |
7781 | extern int _nl_msg_cat_cntr; |
7782 | return _nl_msg_cat_cntr | |
5464f5a1 NN |
7783 | ; |
7784 | return 0; | |
7785 | } | |
7786 | _ACEOF | |
7787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7789 | (eval $ac_link) 2>conftest.er1 | |
7790 | ac_status=$? | |
7791 | grep -v '^ *+' conftest.er1 >conftest.err | |
7792 | rm -f conftest.er1 | |
7793 | cat conftest.err >&5 | |
7794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7795 | (exit $ac_status); } && | |
7f266840 | 7796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7798 | (eval $ac_try) 2>&5 | |
7799 | ac_status=$? | |
7800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7801 | (exit $ac_status); }; } && | |
7802 | { ac_try='test -s conftest$ac_exeext' | |
7803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7804 | (eval $ac_try) 2>&5 | |
7805 | ac_status=$? | |
7806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7807 | (exit $ac_status); }; }; then | |
252b5132 RH |
7808 | CATOBJEXT=.gmo |
7809 | DATADIRNAME=share | |
7810 | else | |
5464f5a1 NN |
7811 | echo "$as_me: failed program was:" >&5 |
7812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7813 | ||
7814 | CATOBJEXT=.mo | |
252b5132 RH |
7815 | DATADIRNAME=lib |
7816 | fi | |
5464f5a1 NN |
7817 | rm -f conftest.err conftest.$ac_objext \ |
7818 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 RH |
7819 | INSTOBJEXT=.mo |
7820 | fi | |
7821 | fi | |
5464f5a1 | 7822 | |
b3baf5d0 | 7823 | fi |
252b5132 | 7824 | |
6be7c12c | 7825 | |
5464f5a1 NN |
7826 | |
7827 | ||
252b5132 RH |
7828 | if test "$CATOBJEXT" = "NONE"; then |
7829 | nls_cv_use_gnu_gettext=yes | |
7830 | fi | |
7831 | fi | |
7832 | ||
7833 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7834 | INTLOBJS="\$(GETTOBJS)" | |
7835 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7836 | set dummy msgfmt; ac_word=$2 | |
5464f5a1 NN |
7837 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7839 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7841 | else |
7842 | case "$MSGFMT" in | |
7843 | /*) | |
7844 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7845 | ;; | |
7846 | *) | |
7847 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7848 | for ac_dir in $PATH; do | |
7849 | test -z "$ac_dir" && ac_dir=. | |
7850 | if test -f $ac_dir/$ac_word; then | |
7851 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7852 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7853 | break | |
7854 | fi | |
7855 | fi | |
7856 | done | |
7857 | IFS="$ac_save_ifs" | |
7858 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7859 | ;; | |
7860 | esac | |
7861 | fi | |
7862 | MSGFMT="$ac_cv_path_MSGFMT" | |
7863 | if test -n "$MSGFMT"; then | |
5464f5a1 NN |
7864 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7865 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7866 | else |
5464f5a1 NN |
7867 | echo "$as_me:$LINENO: result: no" >&5 |
7868 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7869 | fi |
7870 | ||
7871 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7872 | set dummy gmsgfmt; ac_word=$2 | |
5464f5a1 NN |
7873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7875 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7877 | else |
5464f5a1 NN |
7878 | case $GMSGFMT in |
7879 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7880 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7881 | ;; | |
252b5132 | 7882 | *) |
5464f5a1 NN |
7883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7884 | for as_dir in $PATH | |
7885 | do | |
7886 | IFS=$as_save_IFS | |
7887 | test -z "$as_dir" && as_dir=. | |
7888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7890 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7892 | break 2 | |
7893 | fi | |
7894 | done | |
7895 | done | |
7896 | ||
252b5132 RH |
7897 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7898 | ;; | |
7899 | esac | |
7900 | fi | |
5464f5a1 NN |
7901 | GMSGFMT=$ac_cv_path_GMSGFMT |
7902 | ||
252b5132 | 7903 | if test -n "$GMSGFMT"; then |
5464f5a1 NN |
7904 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7905 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7906 | else |
5464f5a1 NN |
7907 | echo "$as_me:$LINENO: result: no" >&5 |
7908 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7909 | fi |
7910 | ||
7911 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7912 | set dummy xgettext; ac_word=$2 | |
5464f5a1 NN |
7913 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7914 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7915 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7917 | else |
7918 | case "$XGETTEXT" in | |
7919 | /*) | |
7920 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7921 | ;; | |
7922 | *) | |
7923 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7924 | for ac_dir in $PATH; do | |
7925 | test -z "$ac_dir" && ac_dir=. | |
7926 | if test -f $ac_dir/$ac_word; then | |
7927 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7928 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7929 | break | |
7930 | fi | |
7931 | fi | |
7932 | done | |
7933 | IFS="$ac_save_ifs" | |
7934 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7935 | ;; | |
7936 | esac | |
7937 | fi | |
7938 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7939 | if test -n "$XGETTEXT"; then | |
5464f5a1 NN |
7940 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7941 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 7942 | else |
5464f5a1 NN |
7943 | echo "$as_me:$LINENO: result: no" >&5 |
7944 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7945 | fi |
7946 | ||
5464f5a1 | 7947 | |
252b5132 RH |
7948 | USE_INCLUDED_LIBINTL=yes |
7949 | CATOBJEXT=.gmo | |
7950 | INSTOBJEXT=.mo | |
7951 | DATADIRNAME=share | |
7952 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
7953 | INTLLIBS=$INTLDEPS | |
7954 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7955 | nls_cv_header_intl=libintl.h | |
7956 | nls_cv_header_libgt=libgettext.h | |
7957 | fi | |
7958 | ||
7959 | if test "$XGETTEXT" != ":"; then | |
7960 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
7961 | : ; | |
7962 | else | |
5464f5a1 NN |
7963 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
7964 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
252b5132 RH |
7965 | XGETTEXT=":" |
7966 | fi | |
7967 | fi | |
7968 | ||
7969 | # We need to process the po/ directory. | |
7970 | POSUB=po | |
7971 | else | |
7972 | DATADIRNAME=share | |
7973 | nls_cv_header_intl=libintl.h | |
7974 | nls_cv_header_libgt=libgettext.h | |
7975 | fi | |
7976 | ||
7977 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
7978 | # because some of the sources are only built for this goal. | |
7979 | if test "$PACKAGE" = gettext; then | |
7980 | USE_NLS=yes | |
7981 | USE_INCLUDED_LIBINTL=yes | |
7982 | fi | |
7983 | ||
7984 | for lang in $ALL_LINGUAS; do | |
7985 | GMOFILES="$GMOFILES $lang.gmo" | |
7986 | POFILES="$POFILES $lang.po" | |
7987 | done | |
7988 | ||
5464f5a1 NN |
7989 | |
7990 | ||
7991 | ||
7992 | ||
7993 | ||
7994 | ||
7995 | ||
7996 | ||
7997 | ||
7998 | ||
7999 | ||
8000 | ||
6be7c12c | 8001 | |
252b5132 RH |
8002 | if test "x$CATOBJEXT" != "x"; then |
8003 | if test "x$ALL_LINGUAS" = "x"; then | |
8004 | LINGUAS= | |
8005 | else | |
5464f5a1 NN |
8006 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
8007 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
252b5132 RH |
8008 | NEW_LINGUAS= |
8009 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
8010 | case "$ALL_LINGUAS" in | |
8011 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
8012 | esac | |
8013 | done | |
8014 | LINGUAS=$NEW_LINGUAS | |
5464f5a1 NN |
8015 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
8016 | echo "${ECHO_T}$LINGUAS" >&6 | |
252b5132 RH |
8017 | fi |
8018 | ||
8019 | if test -n "$LINGUAS"; then | |
8020 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
8021 | fi | |
8022 | fi | |
8023 | ||
8024 | if test $ac_cv_header_locale_h = yes; then | |
8025 | INCLUDE_LOCALE_H="#include <locale.h>" | |
8026 | else | |
8027 | INCLUDE_LOCALE_H="\ | |
8028 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
8029 | fi | |
5464f5a1 | 8030 | |
252b5132 RH |
8031 | |
8032 | if test -f $srcdir/po2tbl.sed.in; then | |
8033 | if test "$CATOBJEXT" = ".cat"; then | |
5464f5a1 NN |
8034 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
8035 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
8036 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
8037 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
8038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8039 | fi | |
8040 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
8041 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
8042 | else | |
8043 | # Is the header compilable? | |
8044 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
8045 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
8046 | cat >conftest.$ac_ext <<_ACEOF | |
8047 | /* confdefs.h. */ | |
8048 | _ACEOF | |
8049 | cat confdefs.h >>conftest.$ac_ext | |
8050 | cat >>conftest.$ac_ext <<_ACEOF | |
8051 | /* end confdefs.h. */ | |
8052 | $ac_includes_default | |
252b5132 | 8053 | #include <linux/version.h> |
5464f5a1 NN |
8054 | _ACEOF |
8055 | rm -f conftest.$ac_objext | |
8056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8057 | (eval $ac_compile) 2>conftest.er1 | |
8058 | ac_status=$? | |
8059 | grep -v '^ *+' conftest.er1 >conftest.err | |
8060 | rm -f conftest.er1 | |
8061 | cat conftest.err >&5 | |
8062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8063 | (exit $ac_status); } && | |
7f266840 | 8064 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8066 | (eval $ac_try) 2>&5 | |
8067 | ac_status=$? | |
8068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8069 | (exit $ac_status); }; } && | |
8070 | { ac_try='test -s conftest.$ac_objext' | |
8071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8072 | (eval $ac_try) 2>&5 | |
8073 | ac_status=$? | |
8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8075 | (exit $ac_status); }; }; then | |
8076 | ac_header_compiler=yes | |
8077 | else | |
8078 | echo "$as_me: failed program was:" >&5 | |
8079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8080 | ||
8081 | ac_header_compiler=no | |
8082 | fi | |
8083 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8084 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8085 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8086 | ||
8087 | # Is the header present? | |
8088 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
8089 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
8090 | cat >conftest.$ac_ext <<_ACEOF | |
8091 | /* confdefs.h. */ | |
8092 | _ACEOF | |
8093 | cat confdefs.h >>conftest.$ac_ext | |
8094 | cat >>conftest.$ac_ext <<_ACEOF | |
8095 | /* end confdefs.h. */ | |
8096 | #include <linux/version.h> | |
8097 | _ACEOF | |
8098 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8099 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8100 | ac_status=$? | |
8101 | grep -v '^ *+' conftest.er1 >conftest.err | |
8102 | rm -f conftest.er1 | |
8103 | cat conftest.err >&5 | |
8104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8105 | (exit $ac_status); } >/dev/null; then | |
8106 | if test -s conftest.err; then | |
8107 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8108 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8109 | else | |
8110 | ac_cpp_err= | |
8111 | fi | |
252b5132 | 8112 | else |
5464f5a1 | 8113 | ac_cpp_err=yes |
252b5132 | 8114 | fi |
5464f5a1 NN |
8115 | if test -z "$ac_cpp_err"; then |
8116 | ac_header_preproc=yes | |
8117 | else | |
8118 | echo "$as_me: failed program was:" >&5 | |
8119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8120 | ||
8121 | ac_header_preproc=no | |
8122 | fi | |
8123 | rm -f conftest.err conftest.$ac_ext | |
8124 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8125 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8126 | ||
8127 | # So? What about this header? | |
8128 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8129 | yes:no: ) | |
8130 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8131 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8132 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
8133 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
8134 | ac_header_preproc=yes | |
8135 | ;; | |
8136 | no:yes:* ) | |
8137 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
8138 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
8139 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
8140 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
8141 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
8142 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
8143 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
8144 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
8145 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
8146 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
8147 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
8148 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
8149 | ( | |
8150 | cat <<\_ASBOX | |
8151 | ## ------------------------------------------ ## | |
8152 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8153 | ## ------------------------------------------ ## | |
8154 | _ASBOX | |
8155 | ) | | |
8156 | sed "s/^/$as_me: WARNING: /" >&2 | |
8157 | ;; | |
8158 | esac | |
8159 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
8160 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
8161 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
8162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8163 | else | |
8164 | ac_cv_header_linux_version_h=$ac_header_preproc | |
8165 | fi | |
8166 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
8167 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
8168 | ||
252b5132 | 8169 | fi |
5464f5a1 | 8170 | if test $ac_cv_header_linux_version_h = yes; then |
252b5132 RH |
8171 | msgformat=linux |
8172 | else | |
5464f5a1 | 8173 | msgformat=xopen |
252b5132 RH |
8174 | fi |
8175 | ||
6be7c12c | 8176 | |
5464f5a1 | 8177 | |
252b5132 RH |
8178 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
8179 | fi | |
8180 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
8181 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
8182 | fi | |
8183 | ||
8184 | if test "$PACKAGE" = "gettext"; then | |
8185 | GT_NO="#NO#" | |
8186 | GT_YES= | |
8187 | else | |
8188 | GT_NO= | |
8189 | GT_YES="#YES#" | |
8190 | fi | |
5464f5a1 NN |
8191 | |
8192 | ||
252b5132 RH |
8193 | |
8194 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
5464f5a1 | 8195 | |
252b5132 RH |
8196 | |
8197 | l= | |
5464f5a1 | 8198 | |
252b5132 | 8199 | |
3c3bdf30 | 8200 | if test -f $srcdir/po/POTFILES.in; then |
252b5132 RH |
8201 | test -d po || mkdir po |
8202 | if test "x$srcdir" != "x."; then | |
8203 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
8204 | posrcprefix="$srcdir/" | |
8205 | else | |
8206 | posrcprefix="../$srcdir/" | |
8207 | fi | |
8208 | else | |
8209 | posrcprefix="../" | |
8210 | fi | |
8211 | rm -f po/POTFILES | |
8212 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
8213 | < $srcdir/po/POTFILES.in > po/POTFILES | |
8214 | fi | |
5464f5a1 | 8215 | |
252b5132 RH |
8216 | |
8217 | # Permit host specific settings. | |
8218 | . ${srcdir}/configure.host | |
8219 | ||
6be7c12c | 8220 | |
252b5132 RH |
8221 | # Find a good install program. We prefer a C program (faster), |
8222 | # so one script is as good as another. But avoid the broken or | |
8223 | # incompatible versions: | |
8224 | # SysV /etc/install, /usr/sbin/install | |
8225 | # SunOS /usr/etc/install | |
8226 | # IRIX /sbin/install | |
8227 | # AIX /bin/install | |
5464f5a1 | 8228 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
252b5132 RH |
8229 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
8230 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8231 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5464f5a1 | 8232 | # OS/2's system install, which has a completely different semantic |
252b5132 | 8233 | # ./install, which can be erroneously created by make from ./install.sh. |
5464f5a1 NN |
8234 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
8235 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 8236 | if test -z "$INSTALL"; then |
5464f5a1 NN |
8237 | if test "${ac_cv_path_install+set}" = set; then |
8238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8239 | else |
5464f5a1 NN |
8240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8241 | for as_dir in $PATH | |
8242 | do | |
8243 | IFS=$as_save_IFS | |
8244 | test -z "$as_dir" && as_dir=. | |
8245 | # Account for people who put trailing slashes in PATH elements. | |
8246 | case $as_dir/ in | |
8247 | ./ | .// | /cC/* | \ | |
8248 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8249 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
8250 | /usr/ucb/* ) ;; | |
8251 | *) | |
8252 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8253 | # Don't use installbsd from OSF since it installs stuff as root | |
8254 | # by default. | |
8255 | for ac_prog in ginstall scoinst install; do | |
8256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8257 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 8258 | if test $ac_prog = install && |
5464f5a1 | 8259 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
8260 | # AIX install. It has an incompatible calling convention. |
8261 | : | |
5464f5a1 NN |
8262 | elif test $ac_prog = install && |
8263 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
8264 | # program-specific install script used by HP pwplus--don't use. | |
8265 | : | |
252b5132 | 8266 | else |
5464f5a1 NN |
8267 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
8268 | break 3 | |
252b5132 RH |
8269 | fi |
8270 | fi | |
8271 | done | |
5464f5a1 NN |
8272 | done |
8273 | ;; | |
8274 | esac | |
8275 | done | |
8276 | ||
252b5132 RH |
8277 | |
8278 | fi | |
8279 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 8280 | INSTALL=$ac_cv_path_install |
252b5132 RH |
8281 | else |
8282 | # As a last resort, use the slow shell script. We don't cache a | |
8283 | # path for INSTALL within a source directory, because that will | |
8284 | # break other packages using the cache if that directory is | |
8285 | # removed, or if the path is relative. | |
5464f5a1 | 8286 | INSTALL=$ac_install_sh |
252b5132 RH |
8287 | fi |
8288 | fi | |
5464f5a1 NN |
8289 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
8290 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
8291 | |
8292 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8293 | # It thinks the first close brace ends the variable substitution. | |
8294 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8295 | ||
5464f5a1 | 8296 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
8297 | |
8298 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8299 | ||
6be7c12c | 8300 | |
252b5132 | 8301 | BFD_HOST_64BIT_LONG=0 |
ec317fb1 | 8302 | BFD_HOST_LONG_LONG=0 |
252b5132 RH |
8303 | BFD_HOST_64_BIT_DEFINED=0 |
8304 | BFD_HOST_64_BIT= | |
8305 | BFD_HOST_U_64_BIT= | |
252b5132 | 8306 | |
5464f5a1 NN |
8307 | echo "$as_me:$LINENO: checking for long long" >&5 |
8308 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
8309 | if test "${bfd_cv_has_long_long+set}" = set; then | |
8310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ec317fb1 | 8311 | else |
5464f5a1 NN |
8312 | cat >conftest.$ac_ext <<_ACEOF |
8313 | /* confdefs.h. */ | |
8314 | _ACEOF | |
8315 | cat confdefs.h >>conftest.$ac_ext | |
8316 | cat >>conftest.$ac_ext <<_ACEOF | |
8317 | /* end confdefs.h. */ | |
ec317fb1 | 8318 | |
5464f5a1 NN |
8319 | int |
8320 | main () | |
8321 | { | |
ec317fb1 | 8322 | unsigned long long ll = 18446744073709551615ULL; |
5464f5a1 NN |
8323 | ; |
8324 | return 0; | |
8325 | } | |
8326 | _ACEOF | |
8327 | rm -f conftest.$ac_objext | |
8328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8329 | (eval $ac_compile) 2>conftest.er1 | |
8330 | ac_status=$? | |
8331 | grep -v '^ *+' conftest.er1 >conftest.err | |
8332 | rm -f conftest.er1 | |
8333 | cat conftest.err >&5 | |
8334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8335 | (exit $ac_status); } && | |
7f266840 | 8336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8338 | (eval $ac_try) 2>&5 | |
8339 | ac_status=$? | |
8340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8341 | (exit $ac_status); }; } && | |
8342 | { ac_try='test -s conftest.$ac_objext' | |
8343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8344 | (eval $ac_try) 2>&5 | |
8345 | ac_status=$? | |
8346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8347 | (exit $ac_status); }; }; then | |
ec317fb1 ILT |
8348 | bfd_cv_has_long_long=yes |
8349 | else | |
5464f5a1 NN |
8350 | echo "$as_me: failed program was:" >&5 |
8351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8352 | ||
8353 | bfd_cv_has_long_long=no | |
ec317fb1 | 8354 | fi |
5464f5a1 | 8355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ec317fb1 ILT |
8356 | fi |
8357 | ||
5464f5a1 NN |
8358 | echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5 |
8359 | echo "${ECHO_T}$bfd_cv_has_long_long" >&6 | |
ec317fb1 ILT |
8360 | if test $bfd_cv_has_long_long = yes; then |
8361 | BFD_HOST_LONG_LONG=1 | |
5464f5a1 NN |
8362 | echo "$as_me:$LINENO: checking size of long long" >&5 |
8363 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
8364 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
8365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6726e1ea L |
8366 | else |
8367 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. | |
5464f5a1 NN |
8368 | cat >conftest.$ac_ext <<_ACEOF |
8369 | /* confdefs.h. */ | |
8370 | _ACEOF | |
8371 | cat confdefs.h >>conftest.$ac_ext | |
8372 | cat >>conftest.$ac_ext <<_ACEOF | |
8373 | /* end confdefs.h. */ | |
6726e1ea L |
8374 | #include "confdefs.h" |
8375 | #include <sys/types.h> | |
8376 | ||
8377 | ||
5464f5a1 NN |
8378 | int |
8379 | main () | |
8380 | { | |
6726e1ea | 8381 | switch (0) case 0: case (sizeof (long long) == $ac_size):; |
5464f5a1 NN |
8382 | ; |
8383 | return 0; | |
8384 | } | |
8385 | _ACEOF | |
8386 | rm -f conftest.$ac_objext | |
8387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8388 | (eval $ac_compile) 2>conftest.er1 | |
8389 | ac_status=$? | |
8390 | grep -v '^ *+' conftest.er1 >conftest.err | |
8391 | rm -f conftest.er1 | |
8392 | cat conftest.err >&5 | |
8393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8394 | (exit $ac_status); } && | |
7f266840 | 8395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8397 | (eval $ac_try) 2>&5 | |
8398 | ac_status=$? | |
8399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8400 | (exit $ac_status); }; } && | |
8401 | { ac_try='test -s conftest.$ac_objext' | |
8402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8403 | (eval $ac_try) 2>&5 | |
8404 | ac_status=$? | |
8405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8406 | (exit $ac_status); }; }; then | |
6726e1ea L |
8407 | ac_cv_sizeof_long_long=$ac_size |
8408 | else | |
5464f5a1 NN |
8409 | echo "$as_me: failed program was:" >&5 |
8410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8411 | ||
6726e1ea | 8412 | fi |
5464f5a1 | 8413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6726e1ea L |
8414 | if test x$ac_cv_sizeof_long_long != x ; then break; fi |
8415 | done | |
8416 | ||
8417 | fi | |
8418 | ||
8419 | if test x$ac_cv_sizeof_long_long = x ; then | |
5464f5a1 NN |
8420 | { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5 |
8421 | echo "$as_me: error: cannot determine a size for long long" >&2;} | |
8422 | { (exit 1); exit 1; }; } | |
6726e1ea | 8423 | fi |
5464f5a1 NN |
8424 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
8425 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
8426 | ||
8427 | cat >>confdefs.h <<_ACEOF | |
6726e1ea | 8428 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
5464f5a1 | 8429 | _ACEOF |
6726e1ea L |
8430 | |
8431 | ||
8432 | fi | |
8433 | ||
5464f5a1 NN |
8434 | echo "$as_me:$LINENO: checking size of long" >&5 |
8435 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
8436 | if test "${ac_cv_sizeof_long+set}" = set; then | |
8437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6726e1ea L |
8438 | else |
8439 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. | |
5464f5a1 NN |
8440 | cat >conftest.$ac_ext <<_ACEOF |
8441 | /* confdefs.h. */ | |
8442 | _ACEOF | |
8443 | cat confdefs.h >>conftest.$ac_ext | |
8444 | cat >>conftest.$ac_ext <<_ACEOF | |
8445 | /* end confdefs.h. */ | |
6726e1ea L |
8446 | #include "confdefs.h" |
8447 | #include <sys/types.h> | |
8448 | ||
8449 | ||
5464f5a1 NN |
8450 | int |
8451 | main () | |
8452 | { | |
6726e1ea | 8453 | switch (0) case 0: case (sizeof (long) == $ac_size):; |
5464f5a1 NN |
8454 | ; |
8455 | return 0; | |
8456 | } | |
8457 | _ACEOF | |
8458 | rm -f conftest.$ac_objext | |
8459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8460 | (eval $ac_compile) 2>conftest.er1 | |
8461 | ac_status=$? | |
8462 | grep -v '^ *+' conftest.er1 >conftest.err | |
8463 | rm -f conftest.er1 | |
8464 | cat conftest.err >&5 | |
8465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8466 | (exit $ac_status); } && | |
7f266840 | 8467 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8469 | (eval $ac_try) 2>&5 | |
8470 | ac_status=$? | |
8471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8472 | (exit $ac_status); }; } && | |
8473 | { ac_try='test -s conftest.$ac_objext' | |
8474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8475 | (eval $ac_try) 2>&5 | |
8476 | ac_status=$? | |
8477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8478 | (exit $ac_status); }; }; then | |
6726e1ea L |
8479 | ac_cv_sizeof_long=$ac_size |
8480 | else | |
5464f5a1 NN |
8481 | echo "$as_me: failed program was:" >&5 |
8482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8483 | ||
6726e1ea | 8484 | fi |
5464f5a1 | 8485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6726e1ea L |
8486 | if test x$ac_cv_sizeof_long != x ; then break; fi |
8487 | done | |
8488 | ||
8489 | fi | |
8490 | ||
8491 | if test x$ac_cv_sizeof_long = x ; then | |
5464f5a1 NN |
8492 | { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5 |
8493 | echo "$as_me: error: cannot determine a size for long" >&2;} | |
8494 | { (exit 1); exit 1; }; } | |
6726e1ea | 8495 | fi |
5464f5a1 NN |
8496 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
8497 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
8498 | ||
8499 | cat >>confdefs.h <<_ACEOF | |
6726e1ea | 8500 | #define SIZEOF_LONG $ac_cv_sizeof_long |
5464f5a1 | 8501 | _ACEOF |
6726e1ea L |
8502 | |
8503 | ||
8504 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
8505 | host64=true | |
ccba357f AM |
8506 | BFD_HOST_64BIT_LONG=1 |
8507 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" | |
8508 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" | |
6726e1ea | 8509 | elif test "x${ac_cv_sizeof_long_long}" = "x8"; then |
ccba357f AM |
8510 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" |
8511 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" | |
6726e1ea L |
8512 | fi |
8513 | ||
ccba357f | 8514 | if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then |
6726e1ea | 8515 | BFD_HOST_64_BIT_DEFINED=1 |
ccba357f AM |
8516 | BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" |
8517 | BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" | |
ec317fb1 ILT |
8518 | fi |
8519 | ||
8520 | ||
8521 | ||
6be7c12c AO |
8522 | |
8523 | ||
8524 | ||
8525 | ||
252b5132 RH |
8526 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
8527 | if test -z "$CC_FOR_BUILD"; then | |
8528 | if test "x$cross_compiling" = "xno"; then | |
8529 | CC_FOR_BUILD='$(CC)' | |
8530 | else | |
8531 | CC_FOR_BUILD=gcc | |
8532 | fi | |
8533 | fi | |
8534 | ||
8535 | # Also set EXEEXT_FOR_BUILD. | |
8536 | if test "x$cross_compiling" = "xno"; then | |
8537 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
8538 | else | |
5464f5a1 NN |
8539 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 |
8540 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 | |
8541 | if test "${bfd_cv_build_exeext+set}" = set; then | |
8542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8543 | else |
aab08431 ILT |
8544 | rm -f conftest* |
8545 | echo 'int main () { return 0; }' > conftest.c | |
8546 | bfd_cv_build_exeext= | |
8547 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
8548 | for file in conftest.*; do | |
8549 | case $file in | |
8550 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
8551 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
8552 | esac | |
8553 | done | |
8554 | rm -f conftest* | |
8555 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
252b5132 | 8556 | fi |
5464f5a1 NN |
8557 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 |
8558 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 | |
252b5132 RH |
8559 | EXEEXT_FOR_BUILD="" |
8560 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
8561 | fi | |
8562 | ||
6be7c12c | 8563 | |
5464f5a1 NN |
8564 | |
8565 | ||
8566 | ||
8567 | ||
8568 | ||
8569 | ||
8570 | for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h | |
252b5132 | 8571 | do |
5464f5a1 NN |
8572 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8573 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8574 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8576 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8578 | fi | |
8579 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8580 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8581 | else | |
8582 | # Is the header compilable? | |
8583 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8584 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8585 | cat >conftest.$ac_ext <<_ACEOF | |
8586 | /* confdefs.h. */ | |
8587 | _ACEOF | |
8588 | cat confdefs.h >>conftest.$ac_ext | |
8589 | cat >>conftest.$ac_ext <<_ACEOF | |
8590 | /* end confdefs.h. */ | |
8591 | $ac_includes_default | |
8592 | #include <$ac_header> | |
8593 | _ACEOF | |
8594 | rm -f conftest.$ac_objext | |
8595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8596 | (eval $ac_compile) 2>conftest.er1 | |
8597 | ac_status=$? | |
8598 | grep -v '^ *+' conftest.er1 >conftest.err | |
8599 | rm -f conftest.er1 | |
8600 | cat conftest.err >&5 | |
8601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8602 | (exit $ac_status); } && | |
7f266840 | 8603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8605 | (eval $ac_try) 2>&5 | |
8606 | ac_status=$? | |
8607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8608 | (exit $ac_status); }; } && | |
8609 | { ac_try='test -s conftest.$ac_objext' | |
8610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8611 | (eval $ac_try) 2>&5 | |
8612 | ac_status=$? | |
8613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8614 | (exit $ac_status); }; }; then | |
8615 | ac_header_compiler=yes | |
8616 | else | |
8617 | echo "$as_me: failed program was:" >&5 | |
8618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8619 | ||
8620 | ac_header_compiler=no | |
8621 | fi | |
8622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8623 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8624 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8625 | ||
8626 | # Is the header present? | |
8627 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8628 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8629 | cat >conftest.$ac_ext <<_ACEOF | |
8630 | /* confdefs.h. */ | |
8631 | _ACEOF | |
8632 | cat confdefs.h >>conftest.$ac_ext | |
8633 | cat >>conftest.$ac_ext <<_ACEOF | |
8634 | /* end confdefs.h. */ | |
8635 | #include <$ac_header> | |
8636 | _ACEOF | |
8637 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8638 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8639 | ac_status=$? | |
8640 | grep -v '^ *+' conftest.er1 >conftest.err | |
8641 | rm -f conftest.er1 | |
8642 | cat conftest.err >&5 | |
8643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8644 | (exit $ac_status); } >/dev/null; then | |
8645 | if test -s conftest.err; then | |
8646 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8647 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8648 | else | |
8649 | ac_cpp_err= | |
8650 | fi | |
252b5132 | 8651 | else |
5464f5a1 | 8652 | ac_cpp_err=yes |
252b5132 | 8653 | fi |
5464f5a1 NN |
8654 | if test -z "$ac_cpp_err"; then |
8655 | ac_header_preproc=yes | |
8656 | else | |
8657 | echo "$as_me: failed program was:" >&5 | |
8658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8659 | ||
8660 | ac_header_preproc=no | |
252b5132 | 8661 | fi |
5464f5a1 NN |
8662 | rm -f conftest.err conftest.$ac_ext |
8663 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8664 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8665 | ||
8666 | # So? What about this header? | |
8667 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8668 | yes:no: ) | |
8669 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8670 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8671 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8672 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8673 | ac_header_preproc=yes | |
8674 | ;; | |
8675 | no:yes:* ) | |
8676 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8677 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8678 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8679 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8680 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8681 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8682 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8683 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8684 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8685 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8686 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8687 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8688 | ( | |
8689 | cat <<\_ASBOX | |
8690 | ## ------------------------------------------ ## | |
8691 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8692 | ## ------------------------------------------ ## | |
8693 | _ASBOX | |
8694 | ) | | |
8695 | sed "s/^/$as_me: WARNING: /" >&2 | |
8696 | ;; | |
8697 | esac | |
8698 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8699 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 8702 | else |
5464f5a1 NN |
8703 | eval "$as_ac_Header=\$ac_header_preproc" |
8704 | fi | |
8705 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8706 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8707 | ||
252b5132 | 8708 | fi |
5464f5a1 NN |
8709 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8710 | cat >>confdefs.h <<_ACEOF | |
8711 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8712 | _ACEOF | |
8713 | ||
8714 | fi | |
8715 | ||
252b5132 RH |
8716 | done |
8717 | ||
5464f5a1 NN |
8718 | |
8719 | ||
8720 | ||
8721 | for ac_header in fcntl.h sys/file.h sys/time.h | |
252b5132 | 8722 | do |
5464f5a1 NN |
8723 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8724 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8725 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8729 | fi | |
8730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8731 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8732 | else | |
8733 | # Is the header compilable? | |
8734 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8735 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8736 | cat >conftest.$ac_ext <<_ACEOF | |
8737 | /* confdefs.h. */ | |
8738 | _ACEOF | |
8739 | cat confdefs.h >>conftest.$ac_ext | |
8740 | cat >>conftest.$ac_ext <<_ACEOF | |
8741 | /* end confdefs.h. */ | |
8742 | $ac_includes_default | |
8743 | #include <$ac_header> | |
8744 | _ACEOF | |
8745 | rm -f conftest.$ac_objext | |
8746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8747 | (eval $ac_compile) 2>conftest.er1 | |
8748 | ac_status=$? | |
8749 | grep -v '^ *+' conftest.er1 >conftest.err | |
8750 | rm -f conftest.er1 | |
8751 | cat conftest.err >&5 | |
8752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8753 | (exit $ac_status); } && | |
7f266840 | 8754 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8756 | (eval $ac_try) 2>&5 | |
8757 | ac_status=$? | |
8758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8759 | (exit $ac_status); }; } && | |
8760 | { ac_try='test -s conftest.$ac_objext' | |
8761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8762 | (eval $ac_try) 2>&5 | |
8763 | ac_status=$? | |
8764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8765 | (exit $ac_status); }; }; then | |
8766 | ac_header_compiler=yes | |
8767 | else | |
8768 | echo "$as_me: failed program was:" >&5 | |
8769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8770 | ||
8771 | ac_header_compiler=no | |
8772 | fi | |
8773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8774 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8775 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8776 | ||
8777 | # Is the header present? | |
8778 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8779 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8780 | cat >conftest.$ac_ext <<_ACEOF | |
8781 | /* confdefs.h. */ | |
8782 | _ACEOF | |
8783 | cat confdefs.h >>conftest.$ac_ext | |
8784 | cat >>conftest.$ac_ext <<_ACEOF | |
8785 | /* end confdefs.h. */ | |
8786 | #include <$ac_header> | |
8787 | _ACEOF | |
8788 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8789 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8790 | ac_status=$? | |
8791 | grep -v '^ *+' conftest.er1 >conftest.err | |
8792 | rm -f conftest.er1 | |
8793 | cat conftest.err >&5 | |
8794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8795 | (exit $ac_status); } >/dev/null; then | |
8796 | if test -s conftest.err; then | |
8797 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8798 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8799 | else | |
8800 | ac_cpp_err= | |
8801 | fi | |
252b5132 | 8802 | else |
5464f5a1 | 8803 | ac_cpp_err=yes |
252b5132 | 8804 | fi |
5464f5a1 NN |
8805 | if test -z "$ac_cpp_err"; then |
8806 | ac_header_preproc=yes | |
8807 | else | |
8808 | echo "$as_me: failed program was:" >&5 | |
8809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8810 | ||
8811 | ac_header_preproc=no | |
252b5132 | 8812 | fi |
5464f5a1 NN |
8813 | rm -f conftest.err conftest.$ac_ext |
8814 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8815 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8816 | ||
8817 | # So? What about this header? | |
8818 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8819 | yes:no: ) | |
8820 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8821 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8822 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8823 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8824 | ac_header_preproc=yes | |
8825 | ;; | |
8826 | no:yes:* ) | |
8827 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8828 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8829 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8830 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8831 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8832 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8833 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8834 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8835 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8836 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8837 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8838 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8839 | ( | |
8840 | cat <<\_ASBOX | |
8841 | ## ------------------------------------------ ## | |
8842 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8843 | ## ------------------------------------------ ## | |
8844 | _ASBOX | |
8845 | ) | | |
8846 | sed "s/^/$as_me: WARNING: /" >&2 | |
8847 | ;; | |
8848 | esac | |
8849 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8850 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8851 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 8853 | else |
5464f5a1 NN |
8854 | eval "$as_ac_Header=\$ac_header_preproc" |
8855 | fi | |
8856 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8857 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8858 | ||
8859 | fi | |
8860 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8861 | cat >>confdefs.h <<_ACEOF | |
8862 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8863 | _ACEOF | |
8864 | ||
252b5132 | 8865 | fi |
5464f5a1 | 8866 | |
252b5132 RH |
8867 | done |
8868 | ||
5464f5a1 NN |
8869 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
8870 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
8871 | if test "${ac_cv_header_time+set}" = set; then | |
8872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8873 | else | |
8874 | cat >conftest.$ac_ext <<_ACEOF | |
8875 | /* confdefs.h. */ | |
8876 | _ACEOF | |
8877 | cat confdefs.h >>conftest.$ac_ext | |
8878 | cat >>conftest.$ac_ext <<_ACEOF | |
8879 | /* end confdefs.h. */ | |
252b5132 RH |
8880 | #include <sys/types.h> |
8881 | #include <sys/time.h> | |
8882 | #include <time.h> | |
5464f5a1 NN |
8883 | |
8884 | int | |
8885 | main () | |
8886 | { | |
8887 | if ((struct tm *) 0) | |
8888 | return 0; | |
8889 | ; | |
8890 | return 0; | |
8891 | } | |
8892 | _ACEOF | |
8893 | rm -f conftest.$ac_objext | |
8894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8895 | (eval $ac_compile) 2>conftest.er1 | |
8896 | ac_status=$? | |
8897 | grep -v '^ *+' conftest.er1 >conftest.err | |
8898 | rm -f conftest.er1 | |
8899 | cat conftest.err >&5 | |
8900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8901 | (exit $ac_status); } && | |
7f266840 | 8902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8904 | (eval $ac_try) 2>&5 | |
8905 | ac_status=$? | |
8906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8907 | (exit $ac_status); }; } && | |
8908 | { ac_try='test -s conftest.$ac_objext' | |
8909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8910 | (eval $ac_try) 2>&5 | |
8911 | ac_status=$? | |
8912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8913 | (exit $ac_status); }; }; then | |
252b5132 RH |
8914 | ac_cv_header_time=yes |
8915 | else | |
5464f5a1 NN |
8916 | echo "$as_me: failed program was:" >&5 |
8917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8918 | ||
8919 | ac_cv_header_time=no | |
252b5132 | 8920 | fi |
5464f5a1 | 8921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 8922 | fi |
5464f5a1 NN |
8923 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
8924 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
6be7c12c | 8925 | if test $ac_cv_header_time = yes; then |
5464f5a1 NN |
8926 | |
8927 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 8928 | #define TIME_WITH_SYS_TIME 1 |
5464f5a1 | 8929 | _ACEOF |
252b5132 RH |
8930 | |
8931 | fi | |
8932 | ||
5464f5a1 NN |
8933 | |
8934 | ||
8935 | ||
8936 | ||
8937 | ||
252b5132 | 8938 | ac_header_dirent=no |
5464f5a1 NN |
8939 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
8940 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
8941 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
8942 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
8943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8945 | else | |
8946 | cat >conftest.$ac_ext <<_ACEOF | |
8947 | /* confdefs.h. */ | |
8948 | _ACEOF | |
8949 | cat confdefs.h >>conftest.$ac_ext | |
8950 | cat >>conftest.$ac_ext <<_ACEOF | |
8951 | /* end confdefs.h. */ | |
252b5132 RH |
8952 | #include <sys/types.h> |
8953 | #include <$ac_hdr> | |
5464f5a1 NN |
8954 | |
8955 | int | |
8956 | main () | |
8957 | { | |
8958 | if ((DIR *) 0) | |
8959 | return 0; | |
8960 | ; | |
8961 | return 0; | |
8962 | } | |
8963 | _ACEOF | |
8964 | rm -f conftest.$ac_objext | |
8965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8966 | (eval $ac_compile) 2>conftest.er1 | |
8967 | ac_status=$? | |
8968 | grep -v '^ *+' conftest.er1 >conftest.err | |
8969 | rm -f conftest.er1 | |
8970 | cat conftest.err >&5 | |
8971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8972 | (exit $ac_status); } && | |
7f266840 | 8973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8975 | (eval $ac_try) 2>&5 | |
8976 | ac_status=$? | |
8977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8978 | (exit $ac_status); }; } && | |
8979 | { ac_try='test -s conftest.$ac_objext' | |
8980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8981 | (eval $ac_try) 2>&5 | |
8982 | ac_status=$? | |
8983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8984 | (exit $ac_status); }; }; then | |
8985 | eval "$as_ac_Header=yes" | |
8986 | else | |
8987 | echo "$as_me: failed program was:" >&5 | |
8988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8989 | ||
8990 | eval "$as_ac_Header=no" | |
8991 | fi | |
8992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8993 | fi | |
8994 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8995 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8996 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8997 | cat >>confdefs.h <<_ACEOF | |
8998 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
8999 | _ACEOF | |
9000 | ||
9001 | ac_header_dirent=$ac_hdr; break | |
252b5132 | 9002 | fi |
5464f5a1 | 9003 | |
252b5132 RH |
9004 | done |
9005 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
9006 | if test $ac_header_dirent = dirent.h; then | |
5464f5a1 NN |
9007 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
9008 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
9009 | if test "${ac_cv_search_opendir+set}" = set; then | |
9010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9011 | else | |
9012 | ac_func_search_save_LIBS=$LIBS | |
9013 | ac_cv_search_opendir=no | |
9014 | cat >conftest.$ac_ext <<_ACEOF | |
9015 | /* confdefs.h. */ | |
9016 | _ACEOF | |
9017 | cat confdefs.h >>conftest.$ac_ext | |
9018 | cat >>conftest.$ac_ext <<_ACEOF | |
9019 | /* end confdefs.h. */ | |
9020 | ||
252b5132 | 9021 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
9022 | #ifdef __cplusplus |
9023 | extern "C" | |
9024 | #endif | |
252b5132 | 9025 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
9026 | builtin and then its argument prototype would still apply. */ |
9027 | char opendir (); | |
9028 | int | |
9029 | main () | |
9030 | { | |
9031 | opendir (); | |
9032 | ; | |
9033 | return 0; | |
9034 | } | |
9035 | _ACEOF | |
9036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9038 | (eval $ac_link) 2>conftest.er1 | |
9039 | ac_status=$? | |
9040 | grep -v '^ *+' conftest.er1 >conftest.err | |
9041 | rm -f conftest.er1 | |
9042 | cat conftest.err >&5 | |
9043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9044 | (exit $ac_status); } && | |
7f266840 | 9045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9047 | (eval $ac_try) 2>&5 | |
9048 | ac_status=$? | |
9049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9050 | (exit $ac_status); }; } && | |
9051 | { ac_try='test -s conftest$ac_exeext' | |
9052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9053 | (eval $ac_try) 2>&5 | |
9054 | ac_status=$? | |
9055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9056 | (exit $ac_status); }; }; then | |
9057 | ac_cv_search_opendir="none required" | |
9058 | else | |
9059 | echo "$as_me: failed program was:" >&5 | |
9060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9061 | ||
9062 | fi | |
9063 | rm -f conftest.err conftest.$ac_objext \ | |
9064 | conftest$ac_exeext conftest.$ac_ext | |
9065 | if test "$ac_cv_search_opendir" = no; then | |
9066 | for ac_lib in dir; do | |
9067 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9068 | cat >conftest.$ac_ext <<_ACEOF | |
9069 | /* confdefs.h. */ | |
9070 | _ACEOF | |
9071 | cat confdefs.h >>conftest.$ac_ext | |
9072 | cat >>conftest.$ac_ext <<_ACEOF | |
9073 | /* end confdefs.h. */ | |
6be7c12c | 9074 | |
5464f5a1 NN |
9075 | /* Override any gcc2 internal prototype to avoid an error. */ |
9076 | #ifdef __cplusplus | |
9077 | extern "C" | |
9078 | #endif | |
9079 | /* We use char because int might match the return type of a gcc2 | |
9080 | builtin and then its argument prototype would still apply. */ | |
9081 | char opendir (); | |
9082 | int | |
9083 | main () | |
9084 | { | |
9085 | opendir (); | |
9086 | ; | |
9087 | return 0; | |
9088 | } | |
9089 | _ACEOF | |
9090 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9092 | (eval $ac_link) 2>conftest.er1 | |
9093 | ac_status=$? | |
9094 | grep -v '^ *+' conftest.er1 >conftest.err | |
9095 | rm -f conftest.er1 | |
9096 | cat conftest.err >&5 | |
9097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9098 | (exit $ac_status); } && | |
7f266840 | 9099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9101 | (eval $ac_try) 2>&5 | |
9102 | ac_status=$? | |
9103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9104 | (exit $ac_status); }; } && | |
9105 | { ac_try='test -s conftest$ac_exeext' | |
9106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9107 | (eval $ac_try) 2>&5 | |
9108 | ac_status=$? | |
9109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9110 | (exit $ac_status); }; }; then | |
9111 | ac_cv_search_opendir="-l$ac_lib" | |
9112 | break | |
9113 | else | |
9114 | echo "$as_me: failed program was:" >&5 | |
9115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9116 | ||
9117 | fi | |
9118 | rm -f conftest.err conftest.$ac_objext \ | |
9119 | conftest$ac_exeext conftest.$ac_ext | |
9120 | done | |
6be7c12c | 9121 | fi |
5464f5a1 | 9122 | LIBS=$ac_func_search_save_LIBS |
6be7c12c | 9123 | fi |
5464f5a1 NN |
9124 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
9125 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
9126 | if test "$ac_cv_search_opendir" != no; then | |
9127 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
9128 | ||
252b5132 RH |
9129 | fi |
9130 | ||
9131 | else | |
5464f5a1 NN |
9132 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
9133 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
9134 | if test "${ac_cv_search_opendir+set}" = set; then | |
9135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3baf5d0 | 9136 | else |
5464f5a1 NN |
9137 | ac_func_search_save_LIBS=$LIBS |
9138 | ac_cv_search_opendir=no | |
9139 | cat >conftest.$ac_ext <<_ACEOF | |
9140 | /* confdefs.h. */ | |
9141 | _ACEOF | |
9142 | cat confdefs.h >>conftest.$ac_ext | |
9143 | cat >>conftest.$ac_ext <<_ACEOF | |
9144 | /* end confdefs.h. */ | |
9145 | ||
6be7c12c | 9146 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
9147 | #ifdef __cplusplus |
9148 | extern "C" | |
9149 | #endif | |
6be7c12c | 9150 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
9151 | builtin and then its argument prototype would still apply. */ |
9152 | char opendir (); | |
9153 | int | |
9154 | main () | |
9155 | { | |
9156 | opendir (); | |
9157 | ; | |
9158 | return 0; | |
9159 | } | |
9160 | _ACEOF | |
9161 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9163 | (eval $ac_link) 2>conftest.er1 | |
9164 | ac_status=$? | |
9165 | grep -v '^ *+' conftest.er1 >conftest.err | |
9166 | rm -f conftest.er1 | |
9167 | cat conftest.err >&5 | |
9168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9169 | (exit $ac_status); } && | |
7f266840 | 9170 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9172 | (eval $ac_try) 2>&5 | |
9173 | ac_status=$? | |
9174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9175 | (exit $ac_status); }; } && | |
9176 | { ac_try='test -s conftest$ac_exeext' | |
9177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9178 | (eval $ac_try) 2>&5 | |
9179 | ac_status=$? | |
9180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9181 | (exit $ac_status); }; }; then | |
9182 | ac_cv_search_opendir="none required" | |
9183 | else | |
9184 | echo "$as_me: failed program was:" >&5 | |
9185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9186 | ||
9187 | fi | |
9188 | rm -f conftest.err conftest.$ac_objext \ | |
9189 | conftest$ac_exeext conftest.$ac_ext | |
9190 | if test "$ac_cv_search_opendir" = no; then | |
9191 | for ac_lib in x; do | |
9192 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9193 | cat >conftest.$ac_ext <<_ACEOF | |
9194 | /* confdefs.h. */ | |
9195 | _ACEOF | |
9196 | cat confdefs.h >>conftest.$ac_ext | |
9197 | cat >>conftest.$ac_ext <<_ACEOF | |
9198 | /* end confdefs.h. */ | |
6be7c12c | 9199 | |
5464f5a1 NN |
9200 | /* Override any gcc2 internal prototype to avoid an error. */ |
9201 | #ifdef __cplusplus | |
9202 | extern "C" | |
9203 | #endif | |
9204 | /* We use char because int might match the return type of a gcc2 | |
9205 | builtin and then its argument prototype would still apply. */ | |
9206 | char opendir (); | |
9207 | int | |
9208 | main () | |
9209 | { | |
9210 | opendir (); | |
9211 | ; | |
9212 | return 0; | |
9213 | } | |
9214 | _ACEOF | |
9215 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9217 | (eval $ac_link) 2>conftest.er1 | |
9218 | ac_status=$? | |
9219 | grep -v '^ *+' conftest.er1 >conftest.err | |
9220 | rm -f conftest.er1 | |
9221 | cat conftest.err >&5 | |
9222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9223 | (exit $ac_status); } && | |
7f266840 | 9224 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9226 | (eval $ac_try) 2>&5 | |
9227 | ac_status=$? | |
9228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9229 | (exit $ac_status); }; } && | |
9230 | { ac_try='test -s conftest$ac_exeext' | |
9231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9232 | (eval $ac_try) 2>&5 | |
9233 | ac_status=$? | |
9234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9235 | (exit $ac_status); }; }; then | |
9236 | ac_cv_search_opendir="-l$ac_lib" | |
9237 | break | |
9238 | else | |
9239 | echo "$as_me: failed program was:" >&5 | |
9240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9241 | ||
9242 | fi | |
9243 | rm -f conftest.err conftest.$ac_objext \ | |
9244 | conftest$ac_exeext conftest.$ac_ext | |
9245 | done | |
6be7c12c | 9246 | fi |
5464f5a1 | 9247 | LIBS=$ac_func_search_save_LIBS |
6be7c12c | 9248 | fi |
5464f5a1 NN |
9249 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
9250 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
9251 | if test "$ac_cv_search_opendir" != no; then | |
9252 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
9253 | ||
252b5132 RH |
9254 | fi |
9255 | ||
9256 | fi | |
9257 | ||
5464f5a1 NN |
9258 | |
9259 | ||
9260 | ||
9261 | ||
9262 | ||
9263 | ||
9264 | ||
633fd09f | 9265 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid |
252b5132 | 9266 | do |
5464f5a1 NN |
9267 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9268 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9269 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9270 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9272 | else | |
9273 | cat >conftest.$ac_ext <<_ACEOF | |
9274 | /* confdefs.h. */ | |
9275 | _ACEOF | |
9276 | cat confdefs.h >>conftest.$ac_ext | |
9277 | cat >>conftest.$ac_ext <<_ACEOF | |
9278 | /* end confdefs.h. */ | |
9279 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9280 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9281 | #define $ac_func innocuous_$ac_func | |
9282 | ||
252b5132 | 9283 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
9284 | which can conflict with char $ac_func (); below. |
9285 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9286 | <limits.h> exists even on freestanding compilers. */ | |
9287 | ||
9288 | #ifdef __STDC__ | |
9289 | # include <limits.h> | |
9290 | #else | |
9291 | # include <assert.h> | |
9292 | #endif | |
6be7c12c | 9293 | |
5464f5a1 | 9294 | #undef $ac_func |
252b5132 | 9295 | |
5464f5a1 NN |
9296 | /* Override any gcc2 internal prototype to avoid an error. */ |
9297 | #ifdef __cplusplus | |
9298 | extern "C" | |
9299 | { | |
9300 | #endif | |
9301 | /* We use char because int might match the return type of a gcc2 | |
9302 | builtin and then its argument prototype would still apply. */ | |
9303 | char $ac_func (); | |
252b5132 RH |
9304 | /* The GNU C library defines this for functions which it implements |
9305 | to always fail with ENOSYS. Some functions are actually named | |
9306 | something starting with __ and the normal name is an alias. */ | |
9307 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9308 | choke me | |
9309 | #else | |
5464f5a1 NN |
9310 | char (*f) () = $ac_func; |
9311 | #endif | |
9312 | #ifdef __cplusplus | |
9313 | } | |
252b5132 RH |
9314 | #endif |
9315 | ||
5464f5a1 NN |
9316 | int |
9317 | main () | |
9318 | { | |
9319 | return f != $ac_func; | |
9320 | ; | |
9321 | return 0; | |
9322 | } | |
9323 | _ACEOF | |
9324 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9326 | (eval $ac_link) 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); } && | |
7f266840 | 9333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
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_exeext' | |
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 | eval "$as_ac_var=yes" | |
9346 | else | |
9347 | echo "$as_me: failed program was:" >&5 | |
9348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9349 | ||
9350 | eval "$as_ac_var=no" | |
9351 | fi | |
9352 | rm -f conftest.err conftest.$ac_objext \ | |
9353 | conftest$ac_exeext conftest.$ac_ext | |
9354 | fi | |
9355 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9356 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9357 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9358 | cat >>confdefs.h <<_ACEOF | |
9359 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9360 | _ACEOF | |
252b5132 | 9361 | |
252b5132 RH |
9362 | fi |
9363 | done | |
9364 | ||
5464f5a1 | 9365 | |
49c97a80 ILT |
9366 | for ac_func in strtoull |
9367 | do | |
5464f5a1 NN |
9368 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9369 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9370 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9371 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9373 | else | |
9374 | cat >conftest.$ac_ext <<_ACEOF | |
9375 | /* confdefs.h. */ | |
9376 | _ACEOF | |
9377 | cat confdefs.h >>conftest.$ac_ext | |
9378 | cat >>conftest.$ac_ext <<_ACEOF | |
9379 | /* end confdefs.h. */ | |
9380 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9381 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9382 | #define $ac_func innocuous_$ac_func | |
9383 | ||
49c97a80 | 9384 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
9385 | which can conflict with char $ac_func (); below. |
9386 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9387 | <limits.h> exists even on freestanding compilers. */ | |
9388 | ||
9389 | #ifdef __STDC__ | |
9390 | # include <limits.h> | |
9391 | #else | |
9392 | # include <assert.h> | |
9393 | #endif | |
49c97a80 | 9394 | |
5464f5a1 | 9395 | #undef $ac_func |
49c97a80 | 9396 | |
5464f5a1 NN |
9397 | /* Override any gcc2 internal prototype to avoid an error. */ |
9398 | #ifdef __cplusplus | |
9399 | extern "C" | |
9400 | { | |
9401 | #endif | |
9402 | /* We use char because int might match the return type of a gcc2 | |
9403 | builtin and then its argument prototype would still apply. */ | |
9404 | char $ac_func (); | |
49c97a80 ILT |
9405 | /* The GNU C library defines this for functions which it implements |
9406 | to always fail with ENOSYS. Some functions are actually named | |
9407 | something starting with __ and the normal name is an alias. */ | |
9408 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9409 | choke me | |
9410 | #else | |
5464f5a1 NN |
9411 | char (*f) () = $ac_func; |
9412 | #endif | |
9413 | #ifdef __cplusplus | |
9414 | } | |
49c97a80 ILT |
9415 | #endif |
9416 | ||
5464f5a1 NN |
9417 | int |
9418 | main () | |
9419 | { | |
9420 | return f != $ac_func; | |
9421 | ; | |
9422 | return 0; | |
9423 | } | |
9424 | _ACEOF | |
9425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9427 | (eval $ac_link) 2>conftest.er1 | |
9428 | ac_status=$? | |
9429 | grep -v '^ *+' conftest.er1 >conftest.err | |
9430 | rm -f conftest.er1 | |
9431 | cat conftest.err >&5 | |
9432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9433 | (exit $ac_status); } && | |
7f266840 | 9434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9436 | (eval $ac_try) 2>&5 | |
9437 | ac_status=$? | |
9438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9439 | (exit $ac_status); }; } && | |
9440 | { ac_try='test -s conftest$ac_exeext' | |
9441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9442 | (eval $ac_try) 2>&5 | |
9443 | ac_status=$? | |
9444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9445 | (exit $ac_status); }; }; then | |
9446 | eval "$as_ac_var=yes" | |
9447 | else | |
9448 | echo "$as_me: failed program was:" >&5 | |
9449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9450 | ||
9451 | eval "$as_ac_var=no" | |
9452 | fi | |
9453 | rm -f conftest.err conftest.$ac_objext \ | |
9454 | conftest$ac_exeext conftest.$ac_ext | |
9455 | fi | |
9456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9457 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9458 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9459 | cat >>confdefs.h <<_ACEOF | |
9460 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9461 | _ACEOF | |
49c97a80 | 9462 | |
49c97a80 ILT |
9463 | fi |
9464 | done | |
9465 | ||
6be7c12c AO |
9466 | |
9467 | ||
252b5132 | 9468 | case "${host}" in |
855b0be7 | 9469 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
5464f5a1 NN |
9470 | |
9471 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9472 | #define USE_BINARY_FOPEN 1 |
5464f5a1 | 9473 | _ACEOF |
252b5132 RH |
9474 | ;; |
9475 | esac | |
9476 | ||
5464f5a1 NN |
9477 | echo "$as_me:$LINENO: checking whether strstr must be declared" >&5 |
9478 | echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6 | |
9479 | if test "${bfd_cv_decl_needed_strstr+set}" = set; then | |
9480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9481 | else |
5464f5a1 NN |
9482 | cat >conftest.$ac_ext <<_ACEOF |
9483 | /* confdefs.h. */ | |
9484 | _ACEOF | |
9485 | cat confdefs.h >>conftest.$ac_ext | |
9486 | cat >>conftest.$ac_ext <<_ACEOF | |
9487 | /* end confdefs.h. */ | |
252b5132 RH |
9488 | |
9489 | #include <stdio.h> | |
9490 | #ifdef HAVE_STRING_H | |
9491 | #include <string.h> | |
9492 | #else | |
9493 | #ifdef HAVE_STRINGS_H | |
9494 | #include <strings.h> | |
9495 | #endif | |
9496 | #endif | |
9497 | #ifdef HAVE_STDLIB_H | |
9498 | #include <stdlib.h> | |
9499 | #endif | |
9500 | #ifdef HAVE_UNISTD_H | |
9501 | #include <unistd.h> | |
9502 | #endif | |
5464f5a1 NN |
9503 | int |
9504 | main () | |
9505 | { | |
252b5132 | 9506 | char *(*pfn) = (char *(*)) strstr |
5464f5a1 NN |
9507 | ; |
9508 | return 0; | |
9509 | } | |
9510 | _ACEOF | |
9511 | rm -f conftest.$ac_objext | |
9512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9513 | (eval $ac_compile) 2>conftest.er1 | |
9514 | ac_status=$? | |
9515 | grep -v '^ *+' conftest.er1 >conftest.err | |
9516 | rm -f conftest.er1 | |
9517 | cat conftest.err >&5 | |
9518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9519 | (exit $ac_status); } && | |
7f266840 | 9520 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9522 | (eval $ac_try) 2>&5 | |
9523 | ac_status=$? | |
9524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9525 | (exit $ac_status); }; } && | |
9526 | { ac_try='test -s conftest.$ac_objext' | |
9527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9528 | (eval $ac_try) 2>&5 | |
9529 | ac_status=$? | |
9530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9531 | (exit $ac_status); }; }; then | |
252b5132 RH |
9532 | bfd_cv_decl_needed_strstr=no |
9533 | else | |
5464f5a1 NN |
9534 | echo "$as_me: failed program was:" >&5 |
9535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9536 | ||
9537 | bfd_cv_decl_needed_strstr=yes | |
252b5132 | 9538 | fi |
5464f5a1 | 9539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9540 | fi |
9541 | ||
5464f5a1 NN |
9542 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5 |
9543 | echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6 | |
252b5132 | 9544 | if test $bfd_cv_decl_needed_strstr = yes; then |
5464f5a1 NN |
9545 | |
9546 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9547 | #define NEED_DECLARATION_STRSTR 1 |
5464f5a1 | 9548 | _ACEOF |
252b5132 RH |
9549 | |
9550 | fi | |
9551 | ||
5464f5a1 NN |
9552 | echo "$as_me:$LINENO: checking whether malloc must be declared" >&5 |
9553 | echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6 | |
9554 | if test "${bfd_cv_decl_needed_malloc+set}" = set; then | |
9555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9556 | else |
5464f5a1 NN |
9557 | cat >conftest.$ac_ext <<_ACEOF |
9558 | /* confdefs.h. */ | |
9559 | _ACEOF | |
9560 | cat confdefs.h >>conftest.$ac_ext | |
9561 | cat >>conftest.$ac_ext <<_ACEOF | |
9562 | /* end confdefs.h. */ | |
252b5132 RH |
9563 | |
9564 | #include <stdio.h> | |
9565 | #ifdef HAVE_STRING_H | |
9566 | #include <string.h> | |
9567 | #else | |
9568 | #ifdef HAVE_STRINGS_H | |
9569 | #include <strings.h> | |
9570 | #endif | |
9571 | #endif | |
9572 | #ifdef HAVE_STDLIB_H | |
9573 | #include <stdlib.h> | |
9574 | #endif | |
9575 | #ifdef HAVE_UNISTD_H | |
9576 | #include <unistd.h> | |
9577 | #endif | |
5464f5a1 NN |
9578 | int |
9579 | main () | |
9580 | { | |
9581 | char *(*pfn) = (char *(*)) malloc | |
9582 | ; | |
9583 | return 0; | |
9584 | } | |
9585 | _ACEOF | |
9586 | rm -f conftest.$ac_objext | |
9587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9588 | (eval $ac_compile) 2>conftest.er1 | |
9589 | ac_status=$? | |
9590 | grep -v '^ *+' conftest.er1 >conftest.err | |
9591 | rm -f conftest.er1 | |
9592 | cat conftest.err >&5 | |
9593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9594 | (exit $ac_status); } && | |
7f266840 | 9595 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9597 | (eval $ac_try) 2>&5 | |
9598 | ac_status=$? | |
9599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9600 | (exit $ac_status); }; } && | |
9601 | { ac_try='test -s conftest.$ac_objext' | |
9602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9603 | (eval $ac_try) 2>&5 | |
9604 | ac_status=$? | |
9605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9606 | (exit $ac_status); }; }; then | |
252b5132 RH |
9607 | bfd_cv_decl_needed_malloc=no |
9608 | else | |
5464f5a1 NN |
9609 | echo "$as_me: failed program was:" >&5 |
9610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9611 | ||
9612 | bfd_cv_decl_needed_malloc=yes | |
252b5132 | 9613 | fi |
5464f5a1 | 9614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9615 | fi |
9616 | ||
5464f5a1 NN |
9617 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5 |
9618 | echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6 | |
252b5132 | 9619 | if test $bfd_cv_decl_needed_malloc = yes; then |
5464f5a1 NN |
9620 | |
9621 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9622 | #define NEED_DECLARATION_MALLOC 1 |
5464f5a1 | 9623 | _ACEOF |
252b5132 RH |
9624 | |
9625 | fi | |
9626 | ||
5464f5a1 NN |
9627 | echo "$as_me:$LINENO: checking whether realloc must be declared" >&5 |
9628 | echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6 | |
9629 | if test "${bfd_cv_decl_needed_realloc+set}" = set; then | |
9630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9631 | else |
5464f5a1 NN |
9632 | cat >conftest.$ac_ext <<_ACEOF |
9633 | /* confdefs.h. */ | |
9634 | _ACEOF | |
9635 | cat confdefs.h >>conftest.$ac_ext | |
9636 | cat >>conftest.$ac_ext <<_ACEOF | |
9637 | /* end confdefs.h. */ | |
252b5132 RH |
9638 | |
9639 | #include <stdio.h> | |
9640 | #ifdef HAVE_STRING_H | |
9641 | #include <string.h> | |
9642 | #else | |
9643 | #ifdef HAVE_STRINGS_H | |
9644 | #include <strings.h> | |
9645 | #endif | |
9646 | #endif | |
9647 | #ifdef HAVE_STDLIB_H | |
9648 | #include <stdlib.h> | |
9649 | #endif | |
9650 | #ifdef HAVE_UNISTD_H | |
9651 | #include <unistd.h> | |
9652 | #endif | |
5464f5a1 NN |
9653 | int |
9654 | main () | |
9655 | { | |
252b5132 | 9656 | char *(*pfn) = (char *(*)) realloc |
5464f5a1 NN |
9657 | ; |
9658 | return 0; | |
9659 | } | |
9660 | _ACEOF | |
9661 | rm -f conftest.$ac_objext | |
9662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9663 | (eval $ac_compile) 2>conftest.er1 | |
9664 | ac_status=$? | |
9665 | grep -v '^ *+' conftest.er1 >conftest.err | |
9666 | rm -f conftest.er1 | |
9667 | cat conftest.err >&5 | |
9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9669 | (exit $ac_status); } && | |
7f266840 | 9670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9672 | (eval $ac_try) 2>&5 | |
9673 | ac_status=$? | |
9674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9675 | (exit $ac_status); }; } && | |
9676 | { ac_try='test -s conftest.$ac_objext' | |
9677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9678 | (eval $ac_try) 2>&5 | |
9679 | ac_status=$? | |
9680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9681 | (exit $ac_status); }; }; then | |
252b5132 RH |
9682 | bfd_cv_decl_needed_realloc=no |
9683 | else | |
5464f5a1 NN |
9684 | echo "$as_me: failed program was:" >&5 |
9685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9686 | ||
9687 | bfd_cv_decl_needed_realloc=yes | |
252b5132 | 9688 | fi |
5464f5a1 | 9689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9690 | fi |
9691 | ||
5464f5a1 NN |
9692 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5 |
9693 | echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6 | |
252b5132 | 9694 | if test $bfd_cv_decl_needed_realloc = yes; then |
5464f5a1 NN |
9695 | |
9696 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9697 | #define NEED_DECLARATION_REALLOC 1 |
5464f5a1 | 9698 | _ACEOF |
252b5132 RH |
9699 | |
9700 | fi | |
9701 | ||
5464f5a1 NN |
9702 | echo "$as_me:$LINENO: checking whether free must be declared" >&5 |
9703 | echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6 | |
9704 | if test "${bfd_cv_decl_needed_free+set}" = set; then | |
9705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9706 | else |
5464f5a1 NN |
9707 | cat >conftest.$ac_ext <<_ACEOF |
9708 | /* confdefs.h. */ | |
9709 | _ACEOF | |
9710 | cat confdefs.h >>conftest.$ac_ext | |
9711 | cat >>conftest.$ac_ext <<_ACEOF | |
9712 | /* end confdefs.h. */ | |
252b5132 RH |
9713 | |
9714 | #include <stdio.h> | |
9715 | #ifdef HAVE_STRING_H | |
9716 | #include <string.h> | |
9717 | #else | |
9718 | #ifdef HAVE_STRINGS_H | |
9719 | #include <strings.h> | |
9720 | #endif | |
9721 | #endif | |
9722 | #ifdef HAVE_STDLIB_H | |
9723 | #include <stdlib.h> | |
9724 | #endif | |
9725 | #ifdef HAVE_UNISTD_H | |
9726 | #include <unistd.h> | |
9727 | #endif | |
5464f5a1 NN |
9728 | int |
9729 | main () | |
9730 | { | |
252b5132 | 9731 | char *(*pfn) = (char *(*)) free |
5464f5a1 NN |
9732 | ; |
9733 | return 0; | |
9734 | } | |
9735 | _ACEOF | |
9736 | rm -f conftest.$ac_objext | |
9737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9738 | (eval $ac_compile) 2>conftest.er1 | |
9739 | ac_status=$? | |
9740 | grep -v '^ *+' conftest.er1 >conftest.err | |
9741 | rm -f conftest.er1 | |
9742 | cat conftest.err >&5 | |
9743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9744 | (exit $ac_status); } && | |
7f266840 | 9745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9747 | (eval $ac_try) 2>&5 | |
9748 | ac_status=$? | |
9749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9750 | (exit $ac_status); }; } && | |
9751 | { ac_try='test -s conftest.$ac_objext' | |
9752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9753 | (eval $ac_try) 2>&5 | |
9754 | ac_status=$? | |
9755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9756 | (exit $ac_status); }; }; then | |
252b5132 RH |
9757 | bfd_cv_decl_needed_free=no |
9758 | else | |
5464f5a1 NN |
9759 | echo "$as_me: failed program was:" >&5 |
9760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9761 | ||
9762 | bfd_cv_decl_needed_free=yes | |
252b5132 | 9763 | fi |
5464f5a1 | 9764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9765 | fi |
9766 | ||
5464f5a1 NN |
9767 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5 |
9768 | echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6 | |
252b5132 | 9769 | if test $bfd_cv_decl_needed_free = yes; then |
5464f5a1 NN |
9770 | |
9771 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9772 | #define NEED_DECLARATION_FREE 1 |
5464f5a1 | 9773 | _ACEOF |
252b5132 RH |
9774 | |
9775 | fi | |
9776 | ||
5464f5a1 NN |
9777 | echo "$as_me:$LINENO: checking whether getenv must be declared" >&5 |
9778 | echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6 | |
9779 | if test "${bfd_cv_decl_needed_getenv+set}" = set; then | |
9780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9781 | else |
5464f5a1 NN |
9782 | cat >conftest.$ac_ext <<_ACEOF |
9783 | /* confdefs.h. */ | |
9784 | _ACEOF | |
9785 | cat confdefs.h >>conftest.$ac_ext | |
9786 | cat >>conftest.$ac_ext <<_ACEOF | |
9787 | /* end confdefs.h. */ | |
252b5132 RH |
9788 | |
9789 | #include <stdio.h> | |
9790 | #ifdef HAVE_STRING_H | |
9791 | #include <string.h> | |
9792 | #else | |
9793 | #ifdef HAVE_STRINGS_H | |
9794 | #include <strings.h> | |
9795 | #endif | |
9796 | #endif | |
9797 | #ifdef HAVE_STDLIB_H | |
9798 | #include <stdlib.h> | |
9799 | #endif | |
9800 | #ifdef HAVE_UNISTD_H | |
9801 | #include <unistd.h> | |
9802 | #endif | |
5464f5a1 NN |
9803 | int |
9804 | main () | |
9805 | { | |
252b5132 | 9806 | char *(*pfn) = (char *(*)) getenv |
5464f5a1 NN |
9807 | ; |
9808 | return 0; | |
9809 | } | |
9810 | _ACEOF | |
9811 | rm -f conftest.$ac_objext | |
9812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9813 | (eval $ac_compile) 2>conftest.er1 | |
9814 | ac_status=$? | |
9815 | grep -v '^ *+' conftest.er1 >conftest.err | |
9816 | rm -f conftest.er1 | |
9817 | cat conftest.err >&5 | |
9818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9819 | (exit $ac_status); } && | |
7f266840 | 9820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9822 | (eval $ac_try) 2>&5 | |
9823 | ac_status=$? | |
9824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9825 | (exit $ac_status); }; } && | |
9826 | { ac_try='test -s conftest.$ac_objext' | |
9827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9828 | (eval $ac_try) 2>&5 | |
9829 | ac_status=$? | |
9830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9831 | (exit $ac_status); }; }; then | |
252b5132 RH |
9832 | bfd_cv_decl_needed_getenv=no |
9833 | else | |
5464f5a1 NN |
9834 | echo "$as_me: failed program was:" >&5 |
9835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9836 | ||
9837 | bfd_cv_decl_needed_getenv=yes | |
252b5132 | 9838 | fi |
5464f5a1 | 9839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9840 | fi |
9841 | ||
5464f5a1 NN |
9842 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5 |
9843 | echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6 | |
252b5132 | 9844 | if test $bfd_cv_decl_needed_getenv = yes; then |
5464f5a1 NN |
9845 | |
9846 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9847 | #define NEED_DECLARATION_GETENV 1 |
5464f5a1 | 9848 | _ACEOF |
252b5132 RH |
9849 | |
9850 | fi | |
9851 | ||
6be7c12c | 9852 | |
252b5132 RH |
9853 | # If we are configured native, pick a core file support file. |
9854 | COREFILE= | |
9855 | COREFLAG= | |
9856 | TRAD_HEADER= | |
9857 | if test "${target}" = "${host}"; then | |
9858 | case "${host}" in | |
13dfd2d0 | 9859 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) |
46d59bfa DB |
9860 | COREFILE='' |
9861 | ;; | |
252b5132 RH |
9862 | alpha*-*-linux-gnu*) |
9863 | COREFILE=trad-core.lo | |
9864 | TRAD_HEADER='"hosts/alphalinux.h"' | |
9865 | ;; | |
690cc98b NC |
9866 | alpha*-*-netbsd* | alpha*-*-openbsd*) |
9867 | COREFILE=netbsd-core.lo | |
9868 | ;; | |
252b5132 | 9869 | alpha*-*-*) COREFILE=osf-core.lo ;; |
13dfd2d0 NC |
9870 | arm-*-freebsd* | arm-*-kfreebsd*-gnu) |
9871 | COREFILE='' ;; | |
61d0bc33 | 9872 | arm-*-netbsd*) COREFILE=netbsd-core.lo ;; |
252b5132 RH |
9873 | arm-*-riscix) COREFILE=trad-core.lo ;; |
9874 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
9875 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
9876 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
9877 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
9878 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
eef0f186 MK |
9879 | hppa*-*-netbsd* | hppa*-*-openbsd*) |
9880 | COREFILE=netbsd-core.lo | |
9881 | ;; | |
9882 | ||
dc810e39 | 9883 | i370-*-*) |
5b93d8bb AM |
9884 | COREFILE=trad-core.lo |
9885 | TRAD_HEADER='"hosts/i370linux.h"' | |
9886 | ;; | |
9887 | ||
80c7c40a | 9888 | i[3-7]86-sequent-bsd*) |
5b93d8bb | 9889 | COREFILE=trad-core.lo |
252b5132 RH |
9890 | TRAD_HEADER='"hosts/symmetry.h"' |
9891 | ;; | |
80c7c40a NC |
9892 | i[3-7]86-sequent-sysv4*) ;; |
9893 | i[3-7]86-sequent-sysv*) | |
252b5132 RH |
9894 | COREFILE=trad-core.lo |
9895 | TRAD_HEADER='"hosts/symmetry.h"' | |
9896 | ;; | |
80c7c40a | 9897 | i[3-7]86-*-bsdi) |
7e3b3466 NC |
9898 | COREFILE= |
9899 | ;; | |
d2bef492 | 9900 | 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 |
9901 | COREFILE=trad-core.lo |
9902 | TRAD_HEADER='"hosts/i386bsd.h"' | |
9903 | ;; | |
13dfd2d0 | 9904 | i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu) |
d4af9775 DB |
9905 | COREFILE='' |
9906 | TRAD_HEADER='"hosts/i386bsd.h"' | |
9907 | ;; | |
4615568e | 9908 | i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) |
252b5132 RH |
9909 | COREFILE=netbsd-core.lo |
9910 | ;; | |
80c7c40a | 9911 | i[3-7]86-esix-sysv3*) |
252b5132 RH |
9912 | COREFILE=trad-core.lo |
9913 | TRAD_HEADER='"hosts/esix.h"' | |
9914 | ;; | |
80c7c40a | 9915 | i[3-7]86-*-sco3.2v5*) |
252b5132 RH |
9916 | COREFILE=sco5-core.lo |
9917 | ;; | |
80c7c40a | 9918 | i[3-7]86-*-sco* | i[3-7]86-*-isc*) |
252b5132 RH |
9919 | COREFILE=trad-core.lo |
9920 | TRAD_HEADER='"hosts/i386sco.h"' | |
9921 | ;; | |
80c7c40a | 9922 | i[3-7]86-*-mach3*) |
252b5132 RH |
9923 | COREFILE=trad-core.lo |
9924 | TRAD_HEADER='"hosts/i386mach3.h"' | |
9925 | ;; | |
80c7c40a | 9926 | i[3-7]86-*-linux-gnu*) |
252b5132 RH |
9927 | COREFILE=trad-core.lo |
9928 | TRAD_HEADER='"hosts/i386linux.h"' | |
9929 | ;; | |
80c7c40a NC |
9930 | i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; |
9931 | i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; | |
252b5132 RH |
9932 | i860-*-mach3* | i860-*-osf1*) |
9933 | COREFILE=trad-core.lo | |
9934 | TRAD_HEADER='"hosts/i860mach3.h"' | |
9935 | ;; | |
252b5132 RH |
9936 | mips-*-netbsd* | mips*-*-openbsd*) |
9937 | COREFILE=netbsd-core.lo | |
9938 | ;; | |
9939 | mips-dec-*) | |
9940 | COREFILE=trad-core.lo | |
9941 | TRAD_HEADER='"hosts/decstation.h"' | |
9942 | ;; | |
9943 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; | |
9944 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
9945 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
252b5132 RH |
9946 | mips-*-sysv4*) ;; |
9947 | mips-*-sysv* | mips-*-riscos*) | |
9948 | COREFILE=trad-core.lo | |
9949 | TRAD_HEADER='"hosts/riscos.h"' | |
9950 | ;; | |
9951 | mips-sony-bsd*) | |
9952 | COREFILE=trad-core.lo | |
9953 | TRAD_HEADER='"hosts/news-mips.h"' | |
9954 | ;; | |
9955 | m68*-bull*-sysv*) | |
9956 | COREFILE=trad-core.lo | |
9957 | TRAD_HEADER='"hosts/dpx2.h"' | |
9958 | ;; | |
9959 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;; | |
9960 | m68*-hp-bsd*) | |
9961 | COREFILE=trad-core.lo | |
9962 | TRAD_HEADER='"hosts/hp300bsd.h"' | |
9963 | ;; | |
9964 | m68*-*-linux-gnu*) | |
9965 | COREFILE=trad-core.lo | |
9966 | TRAD_HEADER='"hosts/m68klinux.h"' | |
9967 | ;; | |
9968 | m68*-motorola-sysv*) | |
9969 | COREFILE=trad-core.lo | |
9970 | TRAD_HEADER='"hosts/delta68.h"' | |
9971 | ;; | |
9972 | m68*-sony-*) | |
9973 | COREFILE=trad-core.lo | |
9974 | TRAD_HEADER='"hosts/news.h"' | |
9975 | ;; | |
9976 | m68*-*-netbsd* | m68*-*-openbsd*) | |
9977 | COREFILE=netbsd-core.lo | |
9978 | ;; | |
9979 | m68*-apple-aux*) | |
9980 | COREFILE=trad-core.lo | |
9981 | TRAD_HEADER='"hosts/m68kaux.h"' | |
9982 | ;; | |
eb1e0e80 NC |
9983 | m88*-*-sysv4*) |
9984 | ;; | |
9985 | m88*-motorola-sysv*) | |
9986 | COREFILE=ptrace-core.lo | |
9987 | ;; | |
252b5132 RH |
9988 | m88*-*-mach3*) |
9989 | COREFILE=trad-core.lo | |
9990 | TRAD_HEADER='"hosts/m88kmach3.h"' | |
9991 | ;; | |
c6f8758f NC |
9992 | m88*-*-openbsd*) |
9993 | COREFILE=netbsd-core.lo | |
9994 | ;; | |
252b5132 RH |
9995 | ns32k-pc532-mach) |
9996 | COREFILE=trad-core.lo | |
9997 | TRAD_HEADER='"hosts/pc532mach.h"' | |
9998 | ;; | |
9999 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
10000 | COREFILE=netbsd-core.lo | |
10001 | ;; | |
eb1e0e80 NC |
10002 | rs6000-*-lynx*) |
10003 | COREFILE=lynx-core.lo | |
10004 | ;; | |
10005 | rs6000-*-aix5.* | powerpc-*-aix5.*) | |
10006 | COREFILE=rs6000-core.lo | |
10007 | COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" | |
10008 | ;; | |
83954261 | 10009 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) |
653f71ca KB |
10010 | COREFILE=rs6000-core.lo |
10011 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
83954261 AM |
10012 | # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE |
10013 | # have c_impl as a member of struct core_dumpx | |
5464f5a1 NN |
10014 | echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5 |
10015 | echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6 | |
10016 | cat >conftest.$ac_ext <<_ACEOF | |
10017 | /* confdefs.h. */ | |
10018 | _ACEOF | |
10019 | cat confdefs.h >>conftest.$ac_ext | |
10020 | cat >>conftest.$ac_ext <<_ACEOF | |
10021 | /* end confdefs.h. */ | |
83954261 | 10022 | #include <core.h> |
5464f5a1 NN |
10023 | int |
10024 | main () | |
10025 | { | |
83954261 | 10026 | struct core_dumpx c; c.c_impl = 0; |
5464f5a1 NN |
10027 | ; |
10028 | return 0; | |
10029 | } | |
10030 | _ACEOF | |
10031 | rm -f conftest.$ac_objext | |
10032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10033 | (eval $ac_compile) 2>conftest.er1 | |
10034 | ac_status=$? | |
10035 | grep -v '^ *+' conftest.er1 >conftest.err | |
10036 | rm -f conftest.er1 | |
10037 | cat conftest.err >&5 | |
10038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10039 | (exit $ac_status); } && | |
7f266840 | 10040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10042 | (eval $ac_try) 2>&5 | |
10043 | ac_status=$? | |
10044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10045 | (exit $ac_status); }; } && | |
10046 | { ac_try='test -s conftest.$ac_objext' | |
10047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10048 | (eval $ac_try) 2>&5 | |
10049 | ac_status=$? | |
10050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10051 | (exit $ac_status); }; }; then | |
10052 | ||
10053 | cat >>confdefs.h <<\_ACEOF | |
83954261 | 10054 | #define HAVE_ST_C_IMPL 1 |
5464f5a1 | 10055 | _ACEOF |
83954261 | 10056 | |
5464f5a1 NN |
10057 | echo "$as_me:$LINENO: result: yes" >&5 |
10058 | echo "${ECHO_T}yes" >&6 | |
83954261 | 10059 | else |
5464f5a1 NN |
10060 | echo "$as_me: failed program was:" >&5 |
10061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10062 | ||
10063 | echo "$as_me:$LINENO: result: no" >&5 | |
10064 | echo "${ECHO_T}no" >&6 | |
83954261 | 10065 | fi |
5464f5a1 | 10066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
653f71ca | 10067 | ;; |
252b5132 RH |
10068 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; |
10069 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
252b5132 RH |
10070 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; |
10071 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
10072 | powerpc-*-beos*) ;; | |
13dfd2d0 NC |
10073 | powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) |
10074 | COREFILE='' ;; | |
252b5132 | 10075 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; |
d4af9775 | 10076 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; |
dc810e39 | 10077 | s390*-*-*) COREFILE=trad-core.lo ;; |
8d05742f | 10078 | sh*-*-netbsd*) COREFILE=netbsd-core.lo ;; |
a9bf1154 | 10079 | sparc-*-netbsd* | sparc*-*-openbsd*) |
252b5132 RH |
10080 | COREFILE=netbsd-core.lo |
10081 | ;; | |
10082 | tahoe-*-*) | |
10083 | COREFILE=trad-core.lo | |
10084 | TRAD_HEADER='"hosts/tahoe.h"' | |
10085 | ;; | |
de6e5e1a NC |
10086 | vax-*-netbsd* | vax-*-openbsd*) |
10087 | COREFILE=netbsd-core.lo | |
10088 | ;; | |
252b5132 RH |
10089 | vax-*-ultrix2*) |
10090 | COREFILE=trad-core.lo | |
10091 | TRAD_HEADER='"hosts/vaxult2.h"' | |
10092 | ;; | |
10093 | vax-*-ultrix*) | |
10094 | COREFILE=trad-core.lo | |
10095 | TRAD_HEADER='"hosts/vaxult2.h"' | |
10096 | ;; | |
f8fc3443 NC |
10097 | vax-*-linux-gnu*) |
10098 | COREFILE=trad-core.lo | |
10099 | TRAD_HEADER='"hosts/vaxlinux.h"' | |
10100 | ;; | |
252b5132 RH |
10101 | vax-*-*) |
10102 | COREFILE=trad-core.lo | |
10103 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
10104 | ;; | |
85cfd8d3 MK |
10105 | x86_64-*-netbsd* | x86_64-*-openbsd*) |
10106 | COREFILE=netbsd-core.lo | |
10107 | ;; | |
252b5132 RH |
10108 | esac |
10109 | ||
10110 | case "$COREFILE" in | |
10111 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
10112 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
10113 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
10114 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
10115 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
10116 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
10117 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
10118 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
10119 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
10120 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
10121 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
10122 | esac | |
10123 | ||
10124 | # ELF corefile support has several flavors, but all of | |
10125 | # them use something called <sys/procfs.h> | |
5464f5a1 NN |
10126 | |
10127 | for ac_header in sys/procfs.h | |
252b5132 | 10128 | do |
5464f5a1 NN |
10129 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10131 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10132 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10133 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10135 | fi | |
10136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10137 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10138 | else | |
10139 | # Is the header compilable? | |
10140 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10141 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10142 | cat >conftest.$ac_ext <<_ACEOF | |
10143 | /* confdefs.h. */ | |
10144 | _ACEOF | |
10145 | cat confdefs.h >>conftest.$ac_ext | |
10146 | cat >>conftest.$ac_ext <<_ACEOF | |
10147 | /* end confdefs.h. */ | |
10148 | $ac_includes_default | |
10149 | #include <$ac_header> | |
10150 | _ACEOF | |
10151 | rm -f conftest.$ac_objext | |
10152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10153 | (eval $ac_compile) 2>conftest.er1 | |
10154 | ac_status=$? | |
10155 | grep -v '^ *+' conftest.er1 >conftest.err | |
10156 | rm -f conftest.er1 | |
10157 | cat conftest.err >&5 | |
10158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10159 | (exit $ac_status); } && | |
7f266840 | 10160 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10162 | (eval $ac_try) 2>&5 | |
10163 | ac_status=$? | |
10164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10165 | (exit $ac_status); }; } && | |
10166 | { ac_try='test -s conftest.$ac_objext' | |
10167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10168 | (eval $ac_try) 2>&5 | |
10169 | ac_status=$? | |
10170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10171 | (exit $ac_status); }; }; then | |
10172 | ac_header_compiler=yes | |
10173 | else | |
10174 | echo "$as_me: failed program was:" >&5 | |
10175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10176 | ||
10177 | ac_header_compiler=no | |
10178 | fi | |
10179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10180 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10181 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10182 | ||
10183 | # Is the header present? | |
10184 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10185 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10186 | cat >conftest.$ac_ext <<_ACEOF | |
10187 | /* confdefs.h. */ | |
10188 | _ACEOF | |
10189 | cat confdefs.h >>conftest.$ac_ext | |
10190 | cat >>conftest.$ac_ext <<_ACEOF | |
10191 | /* end confdefs.h. */ | |
10192 | #include <$ac_header> | |
10193 | _ACEOF | |
10194 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10195 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10196 | ac_status=$? | |
10197 | grep -v '^ *+' conftest.er1 >conftest.err | |
10198 | rm -f conftest.er1 | |
10199 | cat conftest.err >&5 | |
10200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10201 | (exit $ac_status); } >/dev/null; then | |
10202 | if test -s conftest.err; then | |
10203 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10204 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10205 | else | |
10206 | ac_cpp_err= | |
10207 | fi | |
252b5132 | 10208 | else |
5464f5a1 | 10209 | ac_cpp_err=yes |
252b5132 | 10210 | fi |
5464f5a1 NN |
10211 | if test -z "$ac_cpp_err"; then |
10212 | ac_header_preproc=yes | |
10213 | else | |
10214 | echo "$as_me: failed program was:" >&5 | |
10215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10216 | ||
10217 | ac_header_preproc=no | |
252b5132 | 10218 | fi |
5464f5a1 NN |
10219 | rm -f conftest.err conftest.$ac_ext |
10220 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10221 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10222 | ||
10223 | # So? What about this header? | |
10224 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10225 | yes:no: ) | |
10226 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10227 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10228 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10229 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10230 | ac_header_preproc=yes | |
10231 | ;; | |
10232 | no:yes:* ) | |
10233 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10234 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10235 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10236 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10237 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10238 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10239 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10240 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10241 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10242 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10243 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10244 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10245 | ( | |
10246 | cat <<\_ASBOX | |
10247 | ## ------------------------------------------ ## | |
10248 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10249 | ## ------------------------------------------ ## | |
10250 | _ASBOX | |
10251 | ) | | |
10252 | sed "s/^/$as_me: WARNING: /" >&2 | |
10253 | ;; | |
10254 | esac | |
10255 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10256 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10257 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 10259 | else |
5464f5a1 NN |
10260 | eval "$as_ac_Header=\$ac_header_preproc" |
10261 | fi | |
10262 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10263 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10264 | ||
252b5132 | 10265 | fi |
5464f5a1 NN |
10266 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10267 | cat >>confdefs.h <<_ACEOF | |
10268 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10269 | _ACEOF | |
10270 | ||
10271 | fi | |
10272 | ||
252b5132 RH |
10273 | done |
10274 | ||
10275 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
5464f5a1 NN |
10276 | echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5 |
10277 | echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
10278 | if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then | |
10279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10280 | else | |
10281 | cat >conftest.$ac_ext <<_ACEOF | |
10282 | /* confdefs.h. */ | |
10283 | _ACEOF | |
10284 | cat confdefs.h >>conftest.$ac_ext | |
10285 | cat >>conftest.$ac_ext <<_ACEOF | |
10286 | /* end confdefs.h. */ | |
7ee38065 MS |
10287 | |
10288 | #define _SYSCALL32 | |
252b5132 | 10289 | #include <sys/procfs.h> |
5464f5a1 NN |
10290 | int |
10291 | main () | |
10292 | { | |
252b5132 | 10293 | prstatus_t avar |
5464f5a1 NN |
10294 | ; |
10295 | return 0; | |
10296 | } | |
10297 | _ACEOF | |
10298 | rm -f conftest.$ac_objext | |
10299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10300 | (eval $ac_compile) 2>conftest.er1 | |
10301 | ac_status=$? | |
10302 | grep -v '^ *+' conftest.er1 >conftest.err | |
10303 | rm -f conftest.er1 | |
10304 | cat conftest.err >&5 | |
10305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10306 | (exit $ac_status); } && | |
7f266840 | 10307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10309 | (eval $ac_try) 2>&5 | |
10310 | ac_status=$? | |
10311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10312 | (exit $ac_status); }; } && | |
10313 | { ac_try='test -s conftest.$ac_objext' | |
10314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10315 | (eval $ac_try) 2>&5 | |
10316 | ac_status=$? | |
10317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10318 | (exit $ac_status); }; }; then | |
252b5132 RH |
10319 | bfd_cv_have_sys_procfs_type_prstatus_t=yes |
10320 | else | |
5464f5a1 NN |
10321 | echo "$as_me: failed program was:" >&5 |
10322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10323 | ||
10324 | bfd_cv_have_sys_procfs_type_prstatus_t=no | |
10325 | ||
252b5132 | 10326 | fi |
5464f5a1 | 10327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
10328 | fi |
10329 | ||
10330 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then | |
5464f5a1 NN |
10331 | |
10332 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10333 | #define HAVE_PRSTATUS_T 1 |
5464f5a1 | 10334 | _ACEOF |
252b5132 RH |
10335 | |
10336 | fi | |
5464f5a1 NN |
10337 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 |
10338 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6 | |
252b5132 | 10339 | |
5464f5a1 NN |
10340 | echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5 |
10341 | echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
10342 | if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then | |
10343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 10344 | else |
5464f5a1 NN |
10345 | cat >conftest.$ac_ext <<_ACEOF |
10346 | /* confdefs.h. */ | |
10347 | _ACEOF | |
10348 | cat confdefs.h >>conftest.$ac_ext | |
10349 | cat >>conftest.$ac_ext <<_ACEOF | |
10350 | /* end confdefs.h. */ | |
7ee38065 MS |
10351 | |
10352 | #define _SYSCALL32 | |
10353 | #include <sys/procfs.h> | |
5464f5a1 NN |
10354 | int |
10355 | main () | |
10356 | { | |
7ee38065 | 10357 | prstatus32_t avar |
5464f5a1 NN |
10358 | ; |
10359 | return 0; | |
10360 | } | |
10361 | _ACEOF | |
10362 | rm -f conftest.$ac_objext | |
10363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10364 | (eval $ac_compile) 2>conftest.er1 | |
10365 | ac_status=$? | |
10366 | grep -v '^ *+' conftest.er1 >conftest.err | |
10367 | rm -f conftest.er1 | |
10368 | cat conftest.err >&5 | |
10369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10370 | (exit $ac_status); } && | |
7f266840 | 10371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10373 | (eval $ac_try) 2>&5 | |
10374 | ac_status=$? | |
10375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10376 | (exit $ac_status); }; } && | |
10377 | { ac_try='test -s conftest.$ac_objext' | |
10378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10379 | (eval $ac_try) 2>&5 | |
10380 | ac_status=$? | |
10381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10382 | (exit $ac_status); }; }; then | |
7ee38065 MS |
10383 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes |
10384 | else | |
5464f5a1 NN |
10385 | echo "$as_me: failed program was:" >&5 |
10386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10387 | ||
10388 | bfd_cv_have_sys_procfs_type_prstatus32_t=no | |
10389 | ||
7ee38065 | 10390 | fi |
5464f5a1 | 10391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
10392 | fi |
10393 | ||
10394 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then | |
5464f5a1 NN |
10395 | |
10396 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 10397 | #define HAVE_PRSTATUS32_T 1 |
5464f5a1 | 10398 | _ACEOF |
7ee38065 MS |
10399 | |
10400 | fi | |
5464f5a1 NN |
10401 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 |
10402 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6 | |
7ee38065 | 10403 | |
5464f5a1 NN |
10404 | echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5 |
10405 | echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
10406 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then | |
10407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 10408 | else |
5464f5a1 NN |
10409 | cat >conftest.$ac_ext <<_ACEOF |
10410 | /* confdefs.h. */ | |
10411 | _ACEOF | |
10412 | cat confdefs.h >>conftest.$ac_ext | |
10413 | cat >>conftest.$ac_ext <<_ACEOF | |
10414 | /* end confdefs.h. */ | |
7ee38065 MS |
10415 | |
10416 | #define _SYSCALL32 | |
252b5132 | 10417 | #include <sys/procfs.h> |
5464f5a1 NN |
10418 | int |
10419 | main () | |
10420 | { | |
252b5132 | 10421 | prstatus_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
10422 | ; |
10423 | return 0; | |
10424 | } | |
10425 | _ACEOF | |
10426 | rm -f conftest.$ac_objext | |
10427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10428 | (eval $ac_compile) 2>conftest.er1 | |
10429 | ac_status=$? | |
10430 | grep -v '^ *+' conftest.er1 >conftest.err | |
10431 | rm -f conftest.er1 | |
10432 | cat conftest.err >&5 | |
10433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10434 | (exit $ac_status); } && | |
7f266840 | 10435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10437 | (eval $ac_try) 2>&5 | |
10438 | ac_status=$? | |
10439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10440 | (exit $ac_status); }; } && | |
10441 | { ac_try='test -s conftest.$ac_objext' | |
10442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10443 | (eval $ac_try) 2>&5 | |
10444 | ac_status=$? | |
10445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10446 | (exit $ac_status); }; }; then | |
252b5132 RH |
10447 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes |
10448 | else | |
5464f5a1 NN |
10449 | echo "$as_me: failed program was:" >&5 |
10450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10451 | ||
10452 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no | |
10453 | ||
252b5132 | 10454 | fi |
5464f5a1 | 10455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
10456 | fi |
10457 | ||
10458 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then | |
5464f5a1 NN |
10459 | |
10460 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10461 | #define HAVE_PRSTATUS_T_PR_WHO 1 |
5464f5a1 | 10462 | _ACEOF |
252b5132 RH |
10463 | |
10464 | fi | |
5464f5a1 NN |
10465 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 |
10466 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6 | |
252b5132 | 10467 | |
5464f5a1 NN |
10468 | echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 |
10469 | echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
10470 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then | |
10471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 10472 | else |
5464f5a1 NN |
10473 | cat >conftest.$ac_ext <<_ACEOF |
10474 | /* confdefs.h. */ | |
10475 | _ACEOF | |
10476 | cat confdefs.h >>conftest.$ac_ext | |
10477 | cat >>conftest.$ac_ext <<_ACEOF | |
10478 | /* end confdefs.h. */ | |
7ee38065 MS |
10479 | |
10480 | #define _SYSCALL32 | |
10481 | #include <sys/procfs.h> | |
5464f5a1 NN |
10482 | int |
10483 | main () | |
10484 | { | |
7ee38065 | 10485 | prstatus32_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
10486 | ; |
10487 | return 0; | |
10488 | } | |
10489 | _ACEOF | |
10490 | rm -f conftest.$ac_objext | |
10491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10492 | (eval $ac_compile) 2>conftest.er1 | |
10493 | ac_status=$? | |
10494 | grep -v '^ *+' conftest.er1 >conftest.err | |
10495 | rm -f conftest.er1 | |
10496 | cat conftest.err >&5 | |
10497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10498 | (exit $ac_status); } && | |
7f266840 | 10499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10501 | (eval $ac_try) 2>&5 | |
10502 | ac_status=$? | |
10503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10504 | (exit $ac_status); }; } && | |
10505 | { ac_try='test -s conftest.$ac_objext' | |
10506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10507 | (eval $ac_try) 2>&5 | |
10508 | ac_status=$? | |
10509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10510 | (exit $ac_status); }; }; then | |
7ee38065 MS |
10511 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes |
10512 | else | |
5464f5a1 NN |
10513 | echo "$as_me: failed program was:" >&5 |
10514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10515 | ||
10516 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no | |
10517 | ||
7ee38065 | 10518 | fi |
5464f5a1 | 10519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
10520 | fi |
10521 | ||
10522 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then | |
5464f5a1 NN |
10523 | |
10524 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 10525 | #define HAVE_PRSTATUS32_T_PR_WHO 1 |
5464f5a1 | 10526 | _ACEOF |
7ee38065 MS |
10527 | |
10528 | fi | |
5464f5a1 NN |
10529 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 |
10530 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6 | |
7ee38065 | 10531 | |
5464f5a1 NN |
10532 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
10533 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
10534 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then | |
10535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 10536 | else |
5464f5a1 NN |
10537 | cat >conftest.$ac_ext <<_ACEOF |
10538 | /* confdefs.h. */ | |
10539 | _ACEOF | |
10540 | cat confdefs.h >>conftest.$ac_ext | |
10541 | cat >>conftest.$ac_ext <<_ACEOF | |
10542 | /* end confdefs.h. */ | |
7ee38065 MS |
10543 | |
10544 | #define _SYSCALL32 | |
252b5132 | 10545 | #include <sys/procfs.h> |
5464f5a1 NN |
10546 | int |
10547 | main () | |
10548 | { | |
252b5132 | 10549 | pstatus_t avar |
5464f5a1 NN |
10550 | ; |
10551 | return 0; | |
10552 | } | |
10553 | _ACEOF | |
10554 | rm -f conftest.$ac_objext | |
10555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10556 | (eval $ac_compile) 2>conftest.er1 | |
10557 | ac_status=$? | |
10558 | grep -v '^ *+' conftest.er1 >conftest.err | |
10559 | rm -f conftest.er1 | |
10560 | cat conftest.err >&5 | |
10561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10562 | (exit $ac_status); } && | |
7f266840 | 10563 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10565 | (eval $ac_try) 2>&5 | |
10566 | ac_status=$? | |
10567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10568 | (exit $ac_status); }; } && | |
10569 | { ac_try='test -s conftest.$ac_objext' | |
10570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10571 | (eval $ac_try) 2>&5 | |
10572 | ac_status=$? | |
10573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10574 | (exit $ac_status); }; }; then | |
252b5132 RH |
10575 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
10576 | else | |
5464f5a1 NN |
10577 | echo "$as_me: failed program was:" >&5 |
10578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10579 | ||
10580 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
10581 | ||
252b5132 | 10582 | fi |
5464f5a1 | 10583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
10584 | fi |
10585 | ||
10586 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then | |
5464f5a1 NN |
10587 | |
10588 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10589 | #define HAVE_PSTATUS_T 1 |
5464f5a1 | 10590 | _ACEOF |
252b5132 RH |
10591 | |
10592 | fi | |
5464f5a1 NN |
10593 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
10594 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
252b5132 | 10595 | |
5464f5a1 NN |
10596 | echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5 |
10597 | echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
10598 | if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then | |
10599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 10600 | else |
5464f5a1 NN |
10601 | cat >conftest.$ac_ext <<_ACEOF |
10602 | /* confdefs.h. */ | |
10603 | _ACEOF | |
10604 | cat confdefs.h >>conftest.$ac_ext | |
10605 | cat >>conftest.$ac_ext <<_ACEOF | |
10606 | /* end confdefs.h. */ | |
f572a39d AM |
10607 | |
10608 | #define _SYSCALL32 | |
10609 | #include <sys/procfs.h> | |
5464f5a1 NN |
10610 | int |
10611 | main () | |
10612 | { | |
f572a39d | 10613 | pxstatus_t avar |
5464f5a1 NN |
10614 | ; |
10615 | return 0; | |
10616 | } | |
10617 | _ACEOF | |
10618 | rm -f conftest.$ac_objext | |
10619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10620 | (eval $ac_compile) 2>conftest.er1 | |
10621 | ac_status=$? | |
10622 | grep -v '^ *+' conftest.er1 >conftest.err | |
10623 | rm -f conftest.er1 | |
10624 | cat conftest.err >&5 | |
10625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10626 | (exit $ac_status); } && | |
7f266840 | 10627 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10629 | (eval $ac_try) 2>&5 | |
10630 | ac_status=$? | |
10631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10632 | (exit $ac_status); }; } && | |
10633 | { ac_try='test -s conftest.$ac_objext' | |
10634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10635 | (eval $ac_try) 2>&5 | |
10636 | ac_status=$? | |
10637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10638 | (exit $ac_status); }; }; then | |
f572a39d AM |
10639 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes |
10640 | else | |
5464f5a1 NN |
10641 | echo "$as_me: failed program was:" >&5 |
10642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10643 | ||
10644 | bfd_cv_have_sys_procfs_type_pxstatus_t=no | |
10645 | ||
f572a39d | 10646 | fi |
5464f5a1 | 10647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
10648 | fi |
10649 | ||
10650 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then | |
5464f5a1 NN |
10651 | |
10652 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 10653 | #define HAVE_PXSTATUS_T 1 |
5464f5a1 | 10654 | _ACEOF |
f572a39d AM |
10655 | |
10656 | fi | |
5464f5a1 NN |
10657 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 |
10658 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6 | |
f572a39d | 10659 | |
5464f5a1 NN |
10660 | echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5 |
10661 | echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
10662 | if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then | |
10663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 10664 | else |
5464f5a1 NN |
10665 | cat >conftest.$ac_ext <<_ACEOF |
10666 | /* confdefs.h. */ | |
10667 | _ACEOF | |
10668 | cat confdefs.h >>conftest.$ac_ext | |
10669 | cat >>conftest.$ac_ext <<_ACEOF | |
10670 | /* end confdefs.h. */ | |
7ee38065 MS |
10671 | |
10672 | #define _SYSCALL32 | |
10673 | #include <sys/procfs.h> | |
5464f5a1 NN |
10674 | int |
10675 | main () | |
10676 | { | |
7ee38065 | 10677 | pstatus32_t avar |
5464f5a1 NN |
10678 | ; |
10679 | return 0; | |
10680 | } | |
10681 | _ACEOF | |
10682 | rm -f conftest.$ac_objext | |
10683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10684 | (eval $ac_compile) 2>conftest.er1 | |
10685 | ac_status=$? | |
10686 | grep -v '^ *+' conftest.er1 >conftest.err | |
10687 | rm -f conftest.er1 | |
10688 | cat conftest.err >&5 | |
10689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10690 | (exit $ac_status); } && | |
7f266840 | 10691 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10693 | (eval $ac_try) 2>&5 | |
10694 | ac_status=$? | |
10695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10696 | (exit $ac_status); }; } && | |
10697 | { ac_try='test -s conftest.$ac_objext' | |
10698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10699 | (eval $ac_try) 2>&5 | |
10700 | ac_status=$? | |
10701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10702 | (exit $ac_status); }; }; then | |
7ee38065 MS |
10703 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes |
10704 | else | |
5464f5a1 NN |
10705 | echo "$as_me: failed program was:" >&5 |
10706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10707 | ||
10708 | bfd_cv_have_sys_procfs_type_pstatus32_t=no | |
10709 | ||
7ee38065 | 10710 | fi |
5464f5a1 | 10711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
10712 | fi |
10713 | ||
10714 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then | |
5464f5a1 NN |
10715 | |
10716 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 10717 | #define HAVE_PSTATUS32_T 1 |
5464f5a1 | 10718 | _ACEOF |
7ee38065 MS |
10719 | |
10720 | fi | |
5464f5a1 NN |
10721 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 |
10722 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6 | |
7ee38065 | 10723 | |
5464f5a1 NN |
10724 | echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5 |
10725 | echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
10726 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then | |
10727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 10728 | else |
5464f5a1 NN |
10729 | cat >conftest.$ac_ext <<_ACEOF |
10730 | /* confdefs.h. */ | |
10731 | _ACEOF | |
10732 | cat confdefs.h >>conftest.$ac_ext | |
10733 | cat >>conftest.$ac_ext <<_ACEOF | |
10734 | /* end confdefs.h. */ | |
7ee38065 MS |
10735 | |
10736 | #define _SYSCALL32 | |
252b5132 | 10737 | #include <sys/procfs.h> |
5464f5a1 NN |
10738 | int |
10739 | main () | |
10740 | { | |
252b5132 | 10741 | prpsinfo_t avar |
5464f5a1 NN |
10742 | ; |
10743 | return 0; | |
10744 | } | |
10745 | _ACEOF | |
10746 | rm -f conftest.$ac_objext | |
10747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10748 | (eval $ac_compile) 2>conftest.er1 | |
10749 | ac_status=$? | |
10750 | grep -v '^ *+' conftest.er1 >conftest.err | |
10751 | rm -f conftest.er1 | |
10752 | cat conftest.err >&5 | |
10753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10754 | (exit $ac_status); } && | |
7f266840 | 10755 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10757 | (eval $ac_try) 2>&5 | |
10758 | ac_status=$? | |
10759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10760 | (exit $ac_status); }; } && | |
10761 | { ac_try='test -s conftest.$ac_objext' | |
10762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10763 | (eval $ac_try) 2>&5 | |
10764 | ac_status=$? | |
10765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10766 | (exit $ac_status); }; }; then | |
252b5132 RH |
10767 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes |
10768 | else | |
5464f5a1 NN |
10769 | echo "$as_me: failed program was:" >&5 |
10770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10771 | ||
10772 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no | |
10773 | ||
252b5132 | 10774 | fi |
5464f5a1 | 10775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
10776 | fi |
10777 | ||
10778 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then | |
5464f5a1 NN |
10779 | |
10780 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10781 | #define HAVE_PRPSINFO_T 1 |
5464f5a1 | 10782 | _ACEOF |
252b5132 RH |
10783 | |
10784 | fi | |
5464f5a1 NN |
10785 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 |
10786 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6 | |
252b5132 | 10787 | |
5464f5a1 NN |
10788 | echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5 |
10789 | echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
10790 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then | |
10791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 10792 | else |
5464f5a1 NN |
10793 | cat >conftest.$ac_ext <<_ACEOF |
10794 | /* confdefs.h. */ | |
10795 | _ACEOF | |
10796 | cat confdefs.h >>conftest.$ac_ext | |
10797 | cat >>conftest.$ac_ext <<_ACEOF | |
10798 | /* end confdefs.h. */ | |
7ee38065 MS |
10799 | |
10800 | #define _SYSCALL32 | |
10801 | #include <sys/procfs.h> | |
5464f5a1 NN |
10802 | int |
10803 | main () | |
10804 | { | |
7ee38065 | 10805 | prpsinfo32_t avar |
5464f5a1 NN |
10806 | ; |
10807 | return 0; | |
10808 | } | |
10809 | _ACEOF | |
10810 | rm -f conftest.$ac_objext | |
10811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10812 | (eval $ac_compile) 2>conftest.er1 | |
10813 | ac_status=$? | |
10814 | grep -v '^ *+' conftest.er1 >conftest.err | |
10815 | rm -f conftest.er1 | |
10816 | cat conftest.err >&5 | |
10817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10818 | (exit $ac_status); } && | |
7f266840 | 10819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10821 | (eval $ac_try) 2>&5 | |
10822 | ac_status=$? | |
10823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10824 | (exit $ac_status); }; } && | |
10825 | { ac_try='test -s conftest.$ac_objext' | |
10826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10827 | (eval $ac_try) 2>&5 | |
10828 | ac_status=$? | |
10829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10830 | (exit $ac_status); }; }; then | |
7ee38065 MS |
10831 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes |
10832 | else | |
5464f5a1 NN |
10833 | echo "$as_me: failed program was:" >&5 |
10834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10835 | ||
10836 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no | |
10837 | ||
7ee38065 | 10838 | fi |
5464f5a1 | 10839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
10840 | fi |
10841 | ||
10842 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then | |
5464f5a1 NN |
10843 | |
10844 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 10845 | #define HAVE_PRPSINFO32_T 1 |
5464f5a1 | 10846 | _ACEOF |
7ee38065 MS |
10847 | |
10848 | fi | |
5464f5a1 NN |
10849 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 |
10850 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6 | |
7ee38065 | 10851 | |
5464f5a1 NN |
10852 | echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5 |
10853 | echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
10854 | if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then | |
10855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 10856 | else |
5464f5a1 NN |
10857 | cat >conftest.$ac_ext <<_ACEOF |
10858 | /* confdefs.h. */ | |
10859 | _ACEOF | |
10860 | cat confdefs.h >>conftest.$ac_ext | |
10861 | cat >>conftest.$ac_ext <<_ACEOF | |
10862 | /* end confdefs.h. */ | |
7ee38065 MS |
10863 | |
10864 | #define _SYSCALL32 | |
252b5132 | 10865 | #include <sys/procfs.h> |
5464f5a1 NN |
10866 | int |
10867 | main () | |
10868 | { | |
252b5132 | 10869 | psinfo_t avar |
5464f5a1 NN |
10870 | ; |
10871 | return 0; | |
10872 | } | |
10873 | _ACEOF | |
10874 | rm -f conftest.$ac_objext | |
10875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10876 | (eval $ac_compile) 2>conftest.er1 | |
10877 | ac_status=$? | |
10878 | grep -v '^ *+' conftest.er1 >conftest.err | |
10879 | rm -f conftest.er1 | |
10880 | cat conftest.err >&5 | |
10881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10882 | (exit $ac_status); } && | |
7f266840 | 10883 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10885 | (eval $ac_try) 2>&5 | |
10886 | ac_status=$? | |
10887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10888 | (exit $ac_status); }; } && | |
10889 | { ac_try='test -s conftest.$ac_objext' | |
10890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10891 | (eval $ac_try) 2>&5 | |
10892 | ac_status=$? | |
10893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10894 | (exit $ac_status); }; }; then | |
252b5132 RH |
10895 | bfd_cv_have_sys_procfs_type_psinfo_t=yes |
10896 | else | |
5464f5a1 NN |
10897 | echo "$as_me: failed program was:" >&5 |
10898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10899 | ||
10900 | bfd_cv_have_sys_procfs_type_psinfo_t=no | |
10901 | ||
252b5132 | 10902 | fi |
5464f5a1 | 10903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
10904 | fi |
10905 | ||
10906 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then | |
5464f5a1 NN |
10907 | |
10908 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10909 | #define HAVE_PSINFO_T 1 |
5464f5a1 | 10910 | _ACEOF |
252b5132 RH |
10911 | |
10912 | fi | |
5464f5a1 NN |
10913 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 |
10914 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6 | |
252b5132 | 10915 | |
5464f5a1 NN |
10916 | echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5 |
10917 | echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
10918 | if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then | |
10919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 10920 | else |
5464f5a1 NN |
10921 | cat >conftest.$ac_ext <<_ACEOF |
10922 | /* confdefs.h. */ | |
10923 | _ACEOF | |
10924 | cat confdefs.h >>conftest.$ac_ext | |
10925 | cat >>conftest.$ac_ext <<_ACEOF | |
10926 | /* end confdefs.h. */ | |
7ee38065 MS |
10927 | |
10928 | #define _SYSCALL32 | |
10929 | #include <sys/procfs.h> | |
5464f5a1 NN |
10930 | int |
10931 | main () | |
10932 | { | |
7ee38065 | 10933 | psinfo32_t avar |
5464f5a1 NN |
10934 | ; |
10935 | return 0; | |
10936 | } | |
10937 | _ACEOF | |
10938 | rm -f conftest.$ac_objext | |
10939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10940 | (eval $ac_compile) 2>conftest.er1 | |
10941 | ac_status=$? | |
10942 | grep -v '^ *+' conftest.er1 >conftest.err | |
10943 | rm -f conftest.er1 | |
10944 | cat conftest.err >&5 | |
10945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10946 | (exit $ac_status); } && | |
7f266840 | 10947 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10949 | (eval $ac_try) 2>&5 | |
10950 | ac_status=$? | |
10951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10952 | (exit $ac_status); }; } && | |
10953 | { ac_try='test -s conftest.$ac_objext' | |
10954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10955 | (eval $ac_try) 2>&5 | |
10956 | ac_status=$? | |
10957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10958 | (exit $ac_status); }; }; then | |
7ee38065 MS |
10959 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes |
10960 | else | |
5464f5a1 NN |
10961 | echo "$as_me: failed program was:" >&5 |
10962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10963 | ||
10964 | bfd_cv_have_sys_procfs_type_psinfo32_t=no | |
10965 | ||
7ee38065 | 10966 | fi |
5464f5a1 | 10967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
10968 | fi |
10969 | ||
10970 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then | |
5464f5a1 NN |
10971 | |
10972 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 10973 | #define HAVE_PSINFO32_T 1 |
5464f5a1 | 10974 | _ACEOF |
7ee38065 MS |
10975 | |
10976 | fi | |
5464f5a1 NN |
10977 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 |
10978 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6 | |
7ee38065 | 10979 | |
5464f5a1 NN |
10980 | echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5 |
10981 | echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
10982 | if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then | |
10983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 10984 | else |
5464f5a1 NN |
10985 | cat >conftest.$ac_ext <<_ACEOF |
10986 | /* confdefs.h. */ | |
10987 | _ACEOF | |
10988 | cat confdefs.h >>conftest.$ac_ext | |
10989 | cat >>conftest.$ac_ext <<_ACEOF | |
10990 | /* end confdefs.h. */ | |
7ee38065 MS |
10991 | |
10992 | #define _SYSCALL32 | |
252b5132 | 10993 | #include <sys/procfs.h> |
5464f5a1 NN |
10994 | int |
10995 | main () | |
10996 | { | |
252b5132 | 10997 | lwpstatus_t avar |
5464f5a1 NN |
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); } && | |
7f266840 | 11011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
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 | |
252b5132 RH |
11023 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes |
11024 | else | |
5464f5a1 NN |
11025 | echo "$as_me: failed program was:" >&5 |
11026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11027 | ||
11028 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no | |
11029 | ||
252b5132 | 11030 | fi |
5464f5a1 | 11031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11032 | fi |
11033 | ||
11034 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then | |
5464f5a1 NN |
11035 | |
11036 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11037 | #define HAVE_LWPSTATUS_T 1 |
5464f5a1 | 11038 | _ACEOF |
252b5132 RH |
11039 | |
11040 | fi | |
5464f5a1 NN |
11041 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 |
11042 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6 | |
252b5132 | 11043 | |
5464f5a1 NN |
11044 | echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5 |
11045 | echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
11046 | if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then | |
11047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 11048 | else |
5464f5a1 NN |
11049 | cat >conftest.$ac_ext <<_ACEOF |
11050 | /* confdefs.h. */ | |
11051 | _ACEOF | |
11052 | cat confdefs.h >>conftest.$ac_ext | |
11053 | cat >>conftest.$ac_ext <<_ACEOF | |
11054 | /* end confdefs.h. */ | |
f572a39d AM |
11055 | |
11056 | #define _SYSCALL32 | |
11057 | #include <sys/procfs.h> | |
5464f5a1 NN |
11058 | int |
11059 | main () | |
11060 | { | |
f572a39d | 11061 | lwpxstatus_t avar |
5464f5a1 NN |
11062 | ; |
11063 | return 0; | |
11064 | } | |
11065 | _ACEOF | |
11066 | rm -f conftest.$ac_objext | |
11067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11068 | (eval $ac_compile) 2>conftest.er1 | |
11069 | ac_status=$? | |
11070 | grep -v '^ *+' conftest.er1 >conftest.err | |
11071 | rm -f conftest.er1 | |
11072 | cat conftest.err >&5 | |
11073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11074 | (exit $ac_status); } && | |
7f266840 | 11075 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11077 | (eval $ac_try) 2>&5 | |
11078 | ac_status=$? | |
11079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11080 | (exit $ac_status); }; } && | |
11081 | { ac_try='test -s conftest.$ac_objext' | |
11082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11083 | (eval $ac_try) 2>&5 | |
11084 | ac_status=$? | |
11085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11086 | (exit $ac_status); }; }; then | |
f572a39d AM |
11087 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes |
11088 | else | |
5464f5a1 NN |
11089 | echo "$as_me: failed program was:" >&5 |
11090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11091 | ||
11092 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no | |
11093 | ||
f572a39d | 11094 | fi |
5464f5a1 | 11095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
11096 | fi |
11097 | ||
11098 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then | |
5464f5a1 NN |
11099 | |
11100 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 11101 | #define HAVE_LWPXSTATUS_T 1 |
5464f5a1 | 11102 | _ACEOF |
f572a39d AM |
11103 | |
11104 | fi | |
5464f5a1 NN |
11105 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 |
11106 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6 | |
f572a39d | 11107 | |
5464f5a1 NN |
11108 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 |
11109 | echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6 | |
11110 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then | |
11111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11112 | else |
5464f5a1 NN |
11113 | cat >conftest.$ac_ext <<_ACEOF |
11114 | /* confdefs.h. */ | |
11115 | _ACEOF | |
11116 | cat confdefs.h >>conftest.$ac_ext | |
11117 | cat >>conftest.$ac_ext <<_ACEOF | |
11118 | /* end confdefs.h. */ | |
7ee38065 MS |
11119 | |
11120 | #define _SYSCALL32 | |
252b5132 | 11121 | #include <sys/procfs.h> |
5464f5a1 NN |
11122 | int |
11123 | main () | |
11124 | { | |
252b5132 | 11125 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context |
5464f5a1 NN |
11126 | ; |
11127 | return 0; | |
11128 | } | |
11129 | _ACEOF | |
11130 | rm -f conftest.$ac_objext | |
11131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11132 | (eval $ac_compile) 2>conftest.er1 | |
11133 | ac_status=$? | |
11134 | grep -v '^ *+' conftest.er1 >conftest.err | |
11135 | rm -f conftest.er1 | |
11136 | cat conftest.err >&5 | |
11137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11138 | (exit $ac_status); } && | |
7f266840 | 11139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11141 | (eval $ac_try) 2>&5 | |
11142 | ac_status=$? | |
11143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11144 | (exit $ac_status); }; } && | |
11145 | { ac_try='test -s conftest.$ac_objext' | |
11146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11147 | (eval $ac_try) 2>&5 | |
11148 | ac_status=$? | |
11149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11150 | (exit $ac_status); }; }; then | |
252b5132 RH |
11151 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes |
11152 | else | |
5464f5a1 NN |
11153 | echo "$as_me: failed program was:" >&5 |
11154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11155 | ||
11156 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no | |
11157 | ||
252b5132 | 11158 | fi |
5464f5a1 | 11159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11160 | fi |
11161 | ||
11162 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then | |
5464f5a1 NN |
11163 | |
11164 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11165 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1 |
5464f5a1 | 11166 | _ACEOF |
252b5132 RH |
11167 | |
11168 | fi | |
5464f5a1 NN |
11169 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 |
11170 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6 | |
252b5132 | 11171 | |
5464f5a1 NN |
11172 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 |
11173 | echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6 | |
11174 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then | |
11175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11176 | else |
5464f5a1 NN |
11177 | cat >conftest.$ac_ext <<_ACEOF |
11178 | /* confdefs.h. */ | |
11179 | _ACEOF | |
11180 | cat confdefs.h >>conftest.$ac_ext | |
11181 | cat >>conftest.$ac_ext <<_ACEOF | |
11182 | /* end confdefs.h. */ | |
7ee38065 MS |
11183 | |
11184 | #define _SYSCALL32 | |
252b5132 | 11185 | #include <sys/procfs.h> |
5464f5a1 NN |
11186 | int |
11187 | main () | |
11188 | { | |
252b5132 | 11189 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg |
5464f5a1 NN |
11190 | ; |
11191 | return 0; | |
11192 | } | |
11193 | _ACEOF | |
11194 | rm -f conftest.$ac_objext | |
11195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11196 | (eval $ac_compile) 2>conftest.er1 | |
11197 | ac_status=$? | |
11198 | grep -v '^ *+' conftest.er1 >conftest.err | |
11199 | rm -f conftest.er1 | |
11200 | cat conftest.err >&5 | |
11201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11202 | (exit $ac_status); } && | |
7f266840 | 11203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11205 | (eval $ac_try) 2>&5 | |
11206 | ac_status=$? | |
11207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11208 | (exit $ac_status); }; } && | |
11209 | { ac_try='test -s conftest.$ac_objext' | |
11210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11211 | (eval $ac_try) 2>&5 | |
11212 | ac_status=$? | |
11213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11214 | (exit $ac_status); }; }; then | |
252b5132 RH |
11215 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes |
11216 | else | |
5464f5a1 NN |
11217 | echo "$as_me: failed program was:" >&5 |
11218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11219 | ||
11220 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no | |
11221 | ||
252b5132 | 11222 | fi |
5464f5a1 | 11223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11224 | fi |
11225 | ||
11226 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then | |
5464f5a1 NN |
11227 | |
11228 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11229 | #define HAVE_LWPSTATUS_T_PR_REG 1 |
5464f5a1 | 11230 | _ACEOF |
252b5132 RH |
11231 | |
11232 | fi | |
5464f5a1 NN |
11233 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 |
11234 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6 | |
252b5132 | 11235 | |
5464f5a1 NN |
11236 | echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5 |
11237 | echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
11238 | if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then | |
11239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e3c976c4 | 11240 | else |
5464f5a1 NN |
11241 | cat >conftest.$ac_ext <<_ACEOF |
11242 | /* confdefs.h. */ | |
11243 | _ACEOF | |
11244 | cat confdefs.h >>conftest.$ac_ext | |
11245 | cat >>conftest.$ac_ext <<_ACEOF | |
11246 | /* end confdefs.h. */ | |
7ee38065 MS |
11247 | |
11248 | #define _SYSCALL32 | |
e3c976c4 | 11249 | #include <sys/procfs.h> |
5464f5a1 NN |
11250 | int |
11251 | main () | |
11252 | { | |
e3c976c4 | 11253 | win32_pstatus_t avar |
5464f5a1 NN |
11254 | ; |
11255 | return 0; | |
11256 | } | |
11257 | _ACEOF | |
11258 | rm -f conftest.$ac_objext | |
11259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11260 | (eval $ac_compile) 2>conftest.er1 | |
11261 | ac_status=$? | |
11262 | grep -v '^ *+' conftest.er1 >conftest.err | |
11263 | rm -f conftest.er1 | |
11264 | cat conftest.err >&5 | |
11265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11266 | (exit $ac_status); } && | |
7f266840 | 11267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11269 | (eval $ac_try) 2>&5 | |
11270 | ac_status=$? | |
11271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11272 | (exit $ac_status); }; } && | |
11273 | { ac_try='test -s conftest.$ac_objext' | |
11274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11275 | (eval $ac_try) 2>&5 | |
11276 | ac_status=$? | |
11277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11278 | (exit $ac_status); }; }; then | |
e3c976c4 ILT |
11279 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes |
11280 | else | |
5464f5a1 NN |
11281 | echo "$as_me: failed program was:" >&5 |
11282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11283 | ||
11284 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no | |
11285 | ||
e3c976c4 | 11286 | fi |
5464f5a1 | 11287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11288 | fi |
11289 | ||
e3c976c4 | 11290 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then |
5464f5a1 NN |
11291 | |
11292 | cat >>confdefs.h <<\_ACEOF | |
e3c976c4 | 11293 | #define HAVE_WIN32_PSTATUS_T 1 |
5464f5a1 | 11294 | _ACEOF |
16e9c715 NC |
11295 | |
11296 | fi | |
5464f5a1 NN |
11297 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 |
11298 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6 | |
e3c976c4 ILT |
11299 | |
11300 | fi | |
11301 | fi | |
16e9c715 | 11302 | |
b3baf5d0 | 11303 | |
6be7c12c | 11304 | if test -n "$TRAD_HEADER"; then |
5464f5a1 NN |
11305 | |
11306 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 11307 | #define TRAD_HEADER $TRAD_HEADER |
5464f5a1 | 11308 | _ACEOF |
252b5132 | 11309 | |
3f9b03b5 | 11310 | fi |
252b5132 RH |
11311 | |
11312 | # Horrible hacks to build DLLs on Windows. | |
11313 | WIN32LDFLAGS= | |
11314 | WIN32LIBADD= | |
11315 | case "${host}" in | |
11316 | *-*-cygwin*) | |
11317 | if test "$enable_shared" = "yes"; then | |
11318 | WIN32LDFLAGS="-no-undefined" | |
11319 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" | |
11320 | fi | |
11321 | ;; | |
78be1d6e | 11322 | *-*-linux*) |
39691762 L |
11323 | # We borrow WIN32LIBADD so that the shared libbfd won't depend on |
11324 | # libiberty.a. | |
ca51bfff L |
11325 | case "${host}" in |
11326 | mips*-*-linux*) | |
11327 | # Linux/MIPS uses PIC by default. | |
11328 | if test "$enable_shared" = "yes"; then | |
11329 | WIN32LIBADD="-L../libiberty -liberty" | |
11330 | fi | |
11331 | ;; | |
11332 | *) | |
66e25bab | 11333 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` |
bb2a49f2 | 11334 | if test -n "$x"; then |
ca51bfff L |
11335 | WIN32LIBADD="-L../libiberty/pic -liberty" |
11336 | fi | |
11337 | ;; | |
11338 | esac | |
39691762 | 11339 | ;; |
252b5132 RH |
11340 | esac |
11341 | ||
6be7c12c AO |
11342 | |
11343 | ||
252b5132 RH |
11344 | # target stuff: |
11345 | ||
11346 | # Canonicalize the secondary target names. | |
11347 | if test -n "$enable_targets" ; then | |
11348 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
11349 | do | |
6d83c84b | 11350 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
11351 | if test -n "$result" ; then |
11352 | canon_targets="$canon_targets $result" | |
11353 | else | |
11354 | # Allow targets that config.sub doesn't recognize, like "all". | |
11355 | canon_targets="$canon_targets $targ" | |
11356 | fi | |
11357 | done | |
11358 | fi | |
11359 | ||
11360 | all_targets=false | |
11361 | defvec= | |
11362 | selvecs= | |
08f74004 | 11363 | assocvecs= |
252b5132 RH |
11364 | selarchs= |
11365 | TDEFINES= | |
11366 | for targ in $target $canon_targets | |
11367 | do | |
11368 | if test "x$targ" = "xall"; then | |
11369 | all_targets=true | |
08f74004 | 11370 | assocvecs="$assocvecs $targ_defvec $targ_selvecs" |
252b5132 RH |
11371 | else |
11372 | . $srcdir/config.bfd | |
11373 | if test "x$targ" = "x$target"; then | |
11374 | defvec=$targ_defvec | |
11375 | fi | |
11376 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
11377 | selarchs="$selarchs $targ_archs" | |
11378 | TDEFINES="$TDEFINES $targ_cflags" | |
11379 | fi | |
11380 | done | |
11381 | ||
6be7c12c | 11382 | |
252b5132 RH |
11383 | # This processing still needs to be done if we're to decide properly whether |
11384 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
11385 | # the default or any other explicitly requested target requires it; it | |
11386 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
9eb7245e | 11387 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is |
252b5132 RH |
11388 | # used. |
11389 | ||
11390 | # uniq the default and selected vectors in all the configured targets. | |
11391 | f="" | |
11392 | for i in $selvecs ; do | |
11393 | case " $f " in | |
11394 | *" $i "*) ;; | |
11395 | *) f="$f $i" ;; | |
11396 | esac | |
11397 | done | |
11398 | selvecs="$f" | |
11399 | ||
6be7c12c | 11400 | |
08f74004 AM |
11401 | # uniq the associated vectors in all the configured targets. |
11402 | f="" | |
11403 | for i in $assocvecs ; do | |
11404 | case " $f " in | |
11405 | *" $i "*) ;; | |
11406 | *) f="$f $i" ;; | |
11407 | esac | |
11408 | done | |
11409 | assocvecs="$f" | |
11410 | ||
11411 | ||
252b5132 RH |
11412 | # uniq the architectures in all the configured targets. |
11413 | f="" | |
11414 | for i in $selarchs ; do | |
11415 | case " $f " in | |
11416 | *" $i "*) ;; | |
11417 | *) f="$f $i" ;; | |
11418 | esac | |
11419 | done | |
11420 | selarchs="$f" | |
11421 | ||
11422 | # Target backend .o files. | |
11423 | tb= | |
11424 | ||
65765700 | 11425 | elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo" |
252b5132 RH |
11426 | |
11427 | for vec in $selvecs | |
11428 | do | |
69263e90 | 11429 | target_size=32 |
252b5132 RH |
11430 | case "$vec" in |
11431 | # This list is alphabetized to make it easy to compare | |
dc810e39 AM |
11432 | # with the two vector lists in targets.c. For the same reason, |
11433 | # use one entry per line, even though this leads to long lines. | |
252b5132 RH |
11434 | a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; |
11435 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; | |
341ca622 | 11436 | aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
252b5132 RH |
11437 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; |
11438 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
11439 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
252b5132 | 11440 | apollocoff_vec) tb="$tb coff-apollo.lo" ;; |
dc810e39 AM |
11441 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; |
11442 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
11443 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
11444 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
11445 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
11446 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
11447 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; | |
11448 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
11449 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
11450 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
11451 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
252b5132 RH |
11452 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; |
11453 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; | |
fac41780 | 11454 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; |
dc810e39 | 11455 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; |
73c3cd1c | 11456 | bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; |
adde6300 | 11457 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
dc810e39 | 11458 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
252b5132 | 11459 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
7f266840 | 11460 | bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
e5a52504 | 11461 | bfd_elf32_bigarm_symbian_vec) |
7f266840 | 11462 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
c6e90b02 | 11463 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
0949843d | 11464 | bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; |
06c15ad7 | 11465 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
5464f5a1 | 11466 | bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; |
252b5132 RH |
11467 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
11468 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
d172d4ba | 11469 | bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; |
252b5132 | 11470 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; |
4e5ba5b7 | 11471 | bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
43850d5b | 11472 | bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
e01b0e69 | 11473 | bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; |
dc810e39 | 11474 | bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
225247f0 | 11475 | bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
dc810e39 | 11476 | bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
5b93d8bb | 11477 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; |
b6821651 AM |
11478 | bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;; |
11479 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;; | |
9d751335 | 11480 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
dc810e39 | 11481 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
b2ef150d | 11482 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; |
dc810e39 | 11483 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; |
fcf12726 | 11484 | bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";; |
cf88bb9f | 11485 | bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; |
a75473eb | 11486 | bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; |
252b5132 | 11487 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
dc810e39 | 11488 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
e5a52504 | 11489 | bfd_elf32_littlearm_symbian_vec) |
7f266840 DJ |
11490 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
11491 | bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;; | |
c6e90b02 | 11492 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
252b5132 | 11493 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
6edf0760 NC |
11494 | bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
11495 | bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
11496 | bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
f5a6f915 SC |
11497 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; |
11498 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; | |
252b5132 RH |
11499 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; |
11500 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; | |
11501 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
11502 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
11503 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; | |
11504 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
2469cfa2 | 11505 | bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; |
8a397dad TS |
11506 | bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
11507 | bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
11508 | bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
11509 | bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
b3baf5d0 | 11510 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; |
3b16e843 | 11511 | bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;; |
0bcb993b ILT |
11512 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; |
11513 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; | |
b6821651 AM |
11514 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; |
11515 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; | |
a85d7ed0 | 11516 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
eb1e0e80 NC |
11517 | # FIXME: We include cofflink.lo not because it's needed for |
11518 | # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec | |
11519 | # which needs it but does not list it. Should be fixed in right place. | |
9cba27b2 JT |
11520 | bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
11521 | bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
2bc3c89a AM |
11522 | bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
11523 | bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
11524 | bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; | |
11525 | bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; | |
b6821651 AM |
11526 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; |
11527 | bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
11528 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; | |
85fbca6a | 11529 | bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;; |
b6821651 AM |
11530 | bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
11531 | bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
11532 | bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
252b5132 | 11533 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;; |
c6e90b02 TS |
11534 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
11535 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; | |
dc810e39 | 11536 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 | 11537 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
90ace9e9 | 11538 | bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; |
93fbbb04 | 11539 | bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; |
e0001a05 NC |
11540 | bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; |
11541 | bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; | |
2238051f | 11542 | bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
11543 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
11544 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
c6e90b02 | 11545 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
dc810e39 AM |
11546 | bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; |
11547 | bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; | |
dc810e39 | 11548 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
fcf12726 | 11549 | bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
11550 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
11551 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
c6e90b02 | 11552 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
3c3bdf30 | 11553 | bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; |
dc810e39 AM |
11554 | bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
11555 | bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; | |
11556 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; | |
341ca622 AM |
11557 | bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
11558 | bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
2bc3c89a AM |
11559 | bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
11560 | bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
11561 | bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
11562 | bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
dc810e39 | 11563 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;; |
c6e90b02 TS |
11564 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
11565 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
dc810e39 | 11566 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; |
3c3bdf30 | 11567 | bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; |
dc810e39 AM |
11568 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; |
11569 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
11570 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; | |
11571 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
06c15ad7 | 11572 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
dc810e39 | 11573 | demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; |
252b5132 | 11574 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
252b5132 | 11575 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
dc810e39 AM |
11576 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
11577 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; | |
252b5132 RH |
11578 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; |
11579 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; | |
11580 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; | |
11581 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; | |
11582 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
11583 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; | |
11584 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; | |
11585 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; | |
11586 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
11587 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; | |
11588 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; | |
11589 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; | |
252b5132 RH |
11590 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; |
11591 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; | |
11592 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; | |
11593 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; | |
dc810e39 | 11594 | i386msdos_vec) tb="$tb i386msdos.lo" ;; |
252b5132 RH |
11595 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; |
11596 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; | |
dc810e39 AM |
11597 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; |
11598 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
11599 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; |
11600 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
11601 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
11602 | ieee_vec) tb="$tb ieee.lo" ;; | |
dc810e39 AM |
11603 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; |
11604 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; | |
252b5132 RH |
11605 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; |
11606 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; | |
11607 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; | |
11608 | m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; | |
11609 | m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; | |
11610 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; | |
252b5132 RH |
11611 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; |
11612 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;; | |
341ca622 | 11613 | m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; |
c6f8758f | 11614 | m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; |
93509525 KD |
11615 | mach_o_be_vec) tb="$tb mach-o.lo" ;; |
11616 | mach_o_le_vec) tb="$tb mach-o.lo" ;; | |
11617 | mach_o_fat_vec) tb="$tb mach-o.lo" ;; | |
277d1b5e ILT |
11618 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; |
11619 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; | |
11620 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
11621 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
dc810e39 AM |
11622 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; |
11623 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 11624 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; |
dc810e39 | 11625 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; |
252b5132 | 11626 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; |
252b5132 | 11627 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; |
dc810e39 | 11628 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; |
3b16e843 | 11629 | or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;; |
252b5132 | 11630 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; |
dc810e39 | 11631 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; |
93509525 KD |
11632 | pef_vec) tb="$tb pef.lo" ;; |
11633 | pef_xlib_vec) tb="$tb pef.lo" ;; | |
e135f41b | 11634 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
6768c14a | 11635 | pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 11636 | ppcboot_vec) tb="$tb ppcboot.lo" ;; |
dc810e39 | 11637 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;; |
eb1e0e80 | 11638 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
dc810e39 | 11639 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 11640 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 11641 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
252b5132 | 11642 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 11643 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
60bcf0fa NC |
11644 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; |
11645 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 11646 | som_vec) tb="$tb som.lo" ;; |
dc810e39 | 11647 | sparccoff_vec) tb="$tb coff-sparc.lo" ;; |
252b5132 RH |
11648 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; |
11649 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; | |
11650 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; | |
11651 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; | |
11652 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; | |
252b5132 | 11653 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; |
93509525 | 11654 | sym_vec) tb="$tb xsym.lo" ;; |
252b5132 RH |
11655 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;; |
11656 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;; | |
026df7c5 NC |
11657 | tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;; |
11658 | tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
11659 | tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;; | |
11660 | tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
11661 | tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;; | |
11662 | tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
81635ce4 | 11663 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 11664 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 11665 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 11666 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 11667 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 11668 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; |
252b5132 | 11669 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; |
90ace9e9 | 11670 | vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; |
3c2bfad6 | 11671 | vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; |
ba26fd96 | 11672 | vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; |
252b5132 | 11673 | versados_vec) tb="$tb versados.lo" ;; |
dc810e39 | 11674 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;; |
252b5132 RH |
11675 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; |
11676 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; | |
11677 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;; | |
11678 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; | |
11679 | ||
341ca622 AM |
11680 | # These appear out of order in targets.c |
11681 | srec_vec) tb="$tb srec.lo" ;; | |
11682 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
11683 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
11684 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;; | |
11685 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;; | |
11686 | ||
252b5132 | 11687 | "") ;; |
5464f5a1 NN |
11688 | *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5 |
11689 | echo "$as_me: error: *** unknown target vector $vec" >&2;} | |
11690 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 11691 | esac |
69263e90 AM |
11692 | |
11693 | if test ${target_size} = 64; then | |
11694 | target64=true | |
11695 | fi | |
11696 | if test x"${vec}" = x"${defvec}"; then | |
11697 | bfd_default_target_size=${target_size} | |
11698 | fi | |
252b5132 RH |
11699 | done |
11700 | ||
11701 | # Target architecture .o files. | |
11702 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
11703 | # filesystems. | |
11704 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` | |
11705 | ||
11706 | # Weed out duplicate .o files. | |
11707 | f="" | |
11708 | for i in $tb ; do | |
11709 | case " $f " in | |
11710 | *" $i "*) ;; | |
11711 | *) f="$f $i" ;; | |
11712 | esac | |
11713 | done | |
11714 | tb="$f" | |
11715 | ||
11716 | f="" | |
11717 | for i in $ta ; do | |
11718 | case " $f " in | |
11719 | *" $i "*) ;; | |
11720 | *) f="$f $i" ;; | |
11721 | esac | |
11722 | done | |
11723 | ta="$f" | |
11724 | ||
11725 | bfd_backends="$tb" | |
11726 | bfd_machines="$ta" | |
11727 | ||
11728 | if test x${all_targets} = xtrue ; then | |
11729 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
11730 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
11731 | selvecs= | |
11732 | havevecs= | |
11733 | selarchs= | |
08f74004 AM |
11734 | test -n "$assocvecs" && |
11735 | assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
252b5132 RH |
11736 | else # all_targets is true |
11737 | # Only set these if they will be nonempty, for the clever echo. | |
11738 | havevecs= | |
08f74004 | 11739 | assocvecs= |
252b5132 RH |
11740 | test -n "$selvecs" && |
11741 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
11742 | test -n "$selvecs" && | |
11743 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
11744 | test -n "$selarchs" && | |
11745 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
11746 | fi # all_targets is true | |
11747 | ||
11748 | case ${host64}-${target64}-${want64} in | |
11749 | *true*) | |
11750 | wordsize=64 | |
2858ef35 | 11751 | bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)' |
252b5132 | 11752 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' |
ccba357f | 11753 | if test $BFD_HOST_64_BIT_DEFINED = 0; then |
5464f5a1 NN |
11754 | { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5 |
11755 | echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;} | |
11756 | { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5 | |
11757 | echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;} | |
252b5132 | 11758 | fi |
966abd70 HPN |
11759 | if test -n "$GCC" ; then |
11760 | bad_64bit_gcc=no; | |
5464f5a1 NN |
11761 | echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5 |
11762 | echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6 | |
966abd70 | 11763 | # Add more tests for gcc versions with non-working 64-bit support here. |
5464f5a1 NN |
11764 | cat >conftest.$ac_ext <<_ACEOF |
11765 | /* confdefs.h. */ | |
11766 | _ACEOF | |
11767 | cat confdefs.h >>conftest.$ac_ext | |
11768 | cat >>conftest.$ac_ext <<_ACEOF | |
11769 | /* end confdefs.h. */ | |
966abd70 | 11770 | :__GNUC__:__GNUC_MINOR__:__i386__: |
5464f5a1 | 11771 | _ACEOF |
966abd70 | 11772 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 11773 | $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then |
966abd70 | 11774 | bad_64bit_gcc=yes; |
5464f5a1 NN |
11775 | echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5 |
11776 | echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6 | |
966abd70 | 11777 | else |
5464f5a1 NN |
11778 | echo "$as_me:$LINENO: result: no" >&5 |
11779 | echo "${ECHO_T}no" >&6 | |
966abd70 HPN |
11780 | fi |
11781 | rm -f conftest* | |
11782 | ||
11783 | if test $bad_64bit_gcc = yes ; then | |
5464f5a1 NN |
11784 | { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5 |
11785 | echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;} | |
11786 | { (exit 1); exit 1; }; } | |
966abd70 HPN |
11787 | fi |
11788 | fi | |
252b5132 RH |
11789 | ;; |
11790 | false-false-false) | |
11791 | wordsize=32 | |
2858ef35 | 11792 | bfd_libs='$(BFD32_LIBS)' |
252b5132 RH |
11793 | all_backends='$(BFD32_BACKENDS)' |
11794 | ;; | |
11795 | esac | |
11796 | ||
6be7c12c AO |
11797 | |
11798 | ||
11799 | ||
11800 | ||
11801 | ||
69263e90 | 11802 | |
2858ef35 | 11803 | |
1012372a AC |
11804 | # Determine the host dependant file_ptr a.k.a. off_t type. In order |
11805 | # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and | |
11806 | # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. | |
11807 | # Hopefully a reasonable assumption since fseeko et.al. should be | |
11808 | # upward compatible. | |
5464f5a1 NN |
11809 | |
11810 | ||
11811 | ||
11812 | ||
1012372a AC |
11813 | for ac_func in ftello ftello64 fseeko fseeko64 |
11814 | do | |
5464f5a1 NN |
11815 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11816 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11817 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11818 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11820 | else | |
11821 | cat >conftest.$ac_ext <<_ACEOF | |
11822 | /* confdefs.h. */ | |
11823 | _ACEOF | |
11824 | cat confdefs.h >>conftest.$ac_ext | |
11825 | cat >>conftest.$ac_ext <<_ACEOF | |
11826 | /* end confdefs.h. */ | |
11827 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11828 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11829 | #define $ac_func innocuous_$ac_func | |
11830 | ||
1012372a | 11831 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
11832 | which can conflict with char $ac_func (); below. |
11833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11834 | <limits.h> exists even on freestanding compilers. */ | |
11835 | ||
11836 | #ifdef __STDC__ | |
11837 | # include <limits.h> | |
11838 | #else | |
11839 | # include <assert.h> | |
11840 | #endif | |
1012372a | 11841 | |
5464f5a1 | 11842 | #undef $ac_func |
1012372a | 11843 | |
5464f5a1 NN |
11844 | /* Override any gcc2 internal prototype to avoid an error. */ |
11845 | #ifdef __cplusplus | |
11846 | extern "C" | |
11847 | { | |
11848 | #endif | |
11849 | /* We use char because int might match the return type of a gcc2 | |
11850 | builtin and then its argument prototype would still apply. */ | |
11851 | char $ac_func (); | |
1012372a AC |
11852 | /* The GNU C library defines this for functions which it implements |
11853 | to always fail with ENOSYS. Some functions are actually named | |
11854 | something starting with __ and the normal name is an alias. */ | |
11855 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11856 | choke me | |
11857 | #else | |
5464f5a1 NN |
11858 | char (*f) () = $ac_func; |
11859 | #endif | |
11860 | #ifdef __cplusplus | |
11861 | } | |
1012372a AC |
11862 | #endif |
11863 | ||
5464f5a1 NN |
11864 | int |
11865 | main () | |
11866 | { | |
11867 | return f != $ac_func; | |
11868 | ; | |
11869 | return 0; | |
11870 | } | |
11871 | _ACEOF | |
11872 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11874 | (eval $ac_link) 2>conftest.er1 | |
11875 | ac_status=$? | |
11876 | grep -v '^ *+' conftest.er1 >conftest.err | |
11877 | rm -f conftest.er1 | |
11878 | cat conftest.err >&5 | |
11879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11880 | (exit $ac_status); } && | |
7f266840 | 11881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11883 | (eval $ac_try) 2>&5 | |
11884 | ac_status=$? | |
11885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11886 | (exit $ac_status); }; } && | |
11887 | { ac_try='test -s conftest$ac_exeext' | |
11888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11889 | (eval $ac_try) 2>&5 | |
11890 | ac_status=$? | |
11891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11892 | (exit $ac_status); }; }; then | |
11893 | eval "$as_ac_var=yes" | |
11894 | else | |
11895 | echo "$as_me: failed program was:" >&5 | |
11896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11897 | ||
11898 | eval "$as_ac_var=no" | |
11899 | fi | |
11900 | rm -f conftest.err conftest.$ac_objext \ | |
11901 | conftest$ac_exeext conftest.$ac_ext | |
11902 | fi | |
11903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
11904 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
11905 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11906 | cat >>confdefs.h <<_ACEOF | |
11907 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11908 | _ACEOF | |
1012372a | 11909 | |
1012372a AC |
11910 | fi |
11911 | done | |
11912 | ||
1012372a | 11913 | if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then |
5464f5a1 NN |
11914 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
11915 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 | |
11916 | if test "${ac_cv_sizeof_off_t+set}" = set; then | |
11917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1012372a AC |
11918 | else |
11919 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. | |
5464f5a1 NN |
11920 | cat >conftest.$ac_ext <<_ACEOF |
11921 | /* confdefs.h. */ | |
11922 | _ACEOF | |
11923 | cat confdefs.h >>conftest.$ac_ext | |
11924 | cat >>conftest.$ac_ext <<_ACEOF | |
11925 | /* end confdefs.h. */ | |
1012372a AC |
11926 | #include "confdefs.h" |
11927 | #include <sys/types.h> | |
11928 | ||
11929 | ||
5464f5a1 NN |
11930 | int |
11931 | main () | |
11932 | { | |
1012372a | 11933 | switch (0) case 0: case (sizeof (off_t) == $ac_size):; |
5464f5a1 NN |
11934 | ; |
11935 | return 0; | |
11936 | } | |
11937 | _ACEOF | |
11938 | rm -f conftest.$ac_objext | |
11939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11940 | (eval $ac_compile) 2>conftest.er1 | |
11941 | ac_status=$? | |
11942 | grep -v '^ *+' conftest.er1 >conftest.err | |
11943 | rm -f conftest.er1 | |
11944 | cat conftest.err >&5 | |
11945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11946 | (exit $ac_status); } && | |
7f266840 | 11947 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11949 | (eval $ac_try) 2>&5 | |
11950 | ac_status=$? | |
11951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11952 | (exit $ac_status); }; } && | |
11953 | { ac_try='test -s conftest.$ac_objext' | |
11954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11955 | (eval $ac_try) 2>&5 | |
11956 | ac_status=$? | |
11957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11958 | (exit $ac_status); }; }; then | |
1012372a AC |
11959 | ac_cv_sizeof_off_t=$ac_size |
11960 | else | |
5464f5a1 NN |
11961 | echo "$as_me: failed program was:" >&5 |
11962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11963 | ||
1012372a | 11964 | fi |
5464f5a1 | 11965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1012372a AC |
11966 | if test x$ac_cv_sizeof_off_t != x ; then break; fi |
11967 | done | |
11968 | ||
11969 | fi | |
11970 | ||
11971 | if test x$ac_cv_sizeof_off_t = x ; then | |
5464f5a1 NN |
11972 | { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5 |
11973 | echo "$as_me: error: cannot determine a size for off_t" >&2;} | |
11974 | { (exit 1); exit 1; }; } | |
1012372a | 11975 | fi |
5464f5a1 NN |
11976 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
11977 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 | |
11978 | ||
11979 | cat >>confdefs.h <<_ACEOF | |
1012372a | 11980 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
5464f5a1 | 11981 | _ACEOF |
1012372a AC |
11982 | |
11983 | ||
1012372a | 11984 | fi |
5464f5a1 NN |
11985 | echo "$as_me:$LINENO: checking file_ptr type" >&5 |
11986 | echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6 | |
ccba357f AM |
11987 | bfd_file_ptr="long" |
11988 | bfd_ufile_ptr="unsigned long" | |
11989 | if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ | |
11990 | -o x"${ac_cv_sizeof_off_t}" = x8; then | |
1012372a AC |
11991 | bfd_file_ptr=BFD_HOST_64_BIT |
11992 | bfd_ufile_ptr=BFD_HOST_U_64_BIT | |
11993 | fi | |
5464f5a1 NN |
11994 | echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5 |
11995 | echo "${ECHO_T}$bfd_file_ptr" >&6 | |
1012372a AC |
11996 | |
11997 | ||
11998 | ||
11999 | ||
252b5132 RH |
12000 | tdefaults="" |
12001 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
12002 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
08f74004 | 12003 | test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" |
252b5132 RH |
12004 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" |
12005 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" | |
12006 | ||
6be7c12c | 12007 | |
5464f5a1 NN |
12008 | |
12009 | ||
12010 | for ac_header in stdlib.h unistd.h | |
252b5132 | 12011 | do |
5464f5a1 NN |
12012 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12013 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12014 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12015 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12016 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12018 | fi | |
12019 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12020 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12021 | else | |
12022 | # Is the header compilable? | |
12023 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12024 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12025 | cat >conftest.$ac_ext <<_ACEOF | |
12026 | /* confdefs.h. */ | |
12027 | _ACEOF | |
12028 | cat confdefs.h >>conftest.$ac_ext | |
12029 | cat >>conftest.$ac_ext <<_ACEOF | |
12030 | /* end confdefs.h. */ | |
12031 | $ac_includes_default | |
12032 | #include <$ac_header> | |
12033 | _ACEOF | |
12034 | rm -f conftest.$ac_objext | |
12035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12036 | (eval $ac_compile) 2>conftest.er1 | |
12037 | ac_status=$? | |
12038 | grep -v '^ *+' conftest.er1 >conftest.err | |
12039 | rm -f conftest.er1 | |
12040 | cat conftest.err >&5 | |
12041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12042 | (exit $ac_status); } && | |
7f266840 | 12043 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12045 | (eval $ac_try) 2>&5 | |
12046 | ac_status=$? | |
12047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12048 | (exit $ac_status); }; } && | |
12049 | { ac_try='test -s conftest.$ac_objext' | |
12050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12051 | (eval $ac_try) 2>&5 | |
12052 | ac_status=$? | |
12053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12054 | (exit $ac_status); }; }; then | |
12055 | ac_header_compiler=yes | |
12056 | else | |
12057 | echo "$as_me: failed program was:" >&5 | |
12058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12059 | ||
12060 | ac_header_compiler=no | |
12061 | fi | |
12062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12063 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12064 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12065 | ||
12066 | # Is the header present? | |
12067 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12068 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12069 | cat >conftest.$ac_ext <<_ACEOF | |
12070 | /* confdefs.h. */ | |
12071 | _ACEOF | |
12072 | cat confdefs.h >>conftest.$ac_ext | |
12073 | cat >>conftest.$ac_ext <<_ACEOF | |
12074 | /* end confdefs.h. */ | |
12075 | #include <$ac_header> | |
12076 | _ACEOF | |
12077 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12078 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12079 | ac_status=$? | |
12080 | grep -v '^ *+' conftest.er1 >conftest.err | |
12081 | rm -f conftest.er1 | |
12082 | cat conftest.err >&5 | |
12083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12084 | (exit $ac_status); } >/dev/null; then | |
12085 | if test -s conftest.err; then | |
12086 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12087 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12088 | else | |
12089 | ac_cpp_err= | |
12090 | fi | |
252b5132 | 12091 | else |
5464f5a1 | 12092 | ac_cpp_err=yes |
252b5132 | 12093 | fi |
5464f5a1 NN |
12094 | if test -z "$ac_cpp_err"; then |
12095 | ac_header_preproc=yes | |
12096 | else | |
12097 | echo "$as_me: failed program was:" >&5 | |
12098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12099 | ||
12100 | ac_header_preproc=no | |
252b5132 | 12101 | fi |
5464f5a1 NN |
12102 | rm -f conftest.err conftest.$ac_ext |
12103 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12104 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12105 | ||
12106 | # So? What about this header? | |
12107 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12108 | yes:no: ) | |
12109 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12110 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12111 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12112 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12113 | ac_header_preproc=yes | |
12114 | ;; | |
12115 | no:yes:* ) | |
12116 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12117 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12118 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12119 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12120 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12121 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12122 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12123 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12124 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12125 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12126 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12127 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12128 | ( | |
12129 | cat <<\_ASBOX | |
12130 | ## ------------------------------------------ ## | |
12131 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12132 | ## ------------------------------------------ ## | |
12133 | _ASBOX | |
12134 | ) | | |
12135 | sed "s/^/$as_me: WARNING: /" >&2 | |
12136 | ;; | |
12137 | esac | |
12138 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12139 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12140 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 12142 | else |
5464f5a1 NN |
12143 | eval "$as_ac_Header=\$ac_header_preproc" |
12144 | fi | |
12145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12146 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12147 | ||
12148 | fi | |
12149 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12150 | cat >>confdefs.h <<_ACEOF | |
12151 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12152 | _ACEOF | |
12153 | ||
252b5132 | 12154 | fi |
5464f5a1 | 12155 | |
252b5132 RH |
12156 | done |
12157 | ||
5464f5a1 | 12158 | |
252b5132 RH |
12159 | for ac_func in getpagesize |
12160 | do | |
5464f5a1 NN |
12161 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12162 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12163 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12164 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12166 | else | |
12167 | cat >conftest.$ac_ext <<_ACEOF | |
12168 | /* confdefs.h. */ | |
12169 | _ACEOF | |
12170 | cat confdefs.h >>conftest.$ac_ext | |
12171 | cat >>conftest.$ac_ext <<_ACEOF | |
12172 | /* end confdefs.h. */ | |
12173 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12174 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12175 | #define $ac_func innocuous_$ac_func | |
12176 | ||
252b5132 | 12177 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
12178 | which can conflict with char $ac_func (); below. |
12179 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12180 | <limits.h> exists even on freestanding compilers. */ | |
12181 | ||
12182 | #ifdef __STDC__ | |
12183 | # include <limits.h> | |
12184 | #else | |
12185 | # include <assert.h> | |
12186 | #endif | |
6be7c12c | 12187 | |
5464f5a1 | 12188 | #undef $ac_func |
252b5132 | 12189 | |
5464f5a1 NN |
12190 | /* Override any gcc2 internal prototype to avoid an error. */ |
12191 | #ifdef __cplusplus | |
12192 | extern "C" | |
12193 | { | |
12194 | #endif | |
12195 | /* We use char because int might match the return type of a gcc2 | |
12196 | builtin and then its argument prototype would still apply. */ | |
12197 | char $ac_func (); | |
252b5132 RH |
12198 | /* The GNU C library defines this for functions which it implements |
12199 | to always fail with ENOSYS. Some functions are actually named | |
12200 | something starting with __ and the normal name is an alias. */ | |
12201 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12202 | choke me | |
12203 | #else | |
5464f5a1 NN |
12204 | char (*f) () = $ac_func; |
12205 | #endif | |
12206 | #ifdef __cplusplus | |
12207 | } | |
252b5132 RH |
12208 | #endif |
12209 | ||
5464f5a1 NN |
12210 | int |
12211 | main () | |
12212 | { | |
12213 | return f != $ac_func; | |
12214 | ; | |
12215 | return 0; | |
12216 | } | |
12217 | _ACEOF | |
12218 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12220 | (eval $ac_link) 2>conftest.er1 | |
12221 | ac_status=$? | |
12222 | grep -v '^ *+' conftest.er1 >conftest.err | |
12223 | rm -f conftest.er1 | |
12224 | cat conftest.err >&5 | |
12225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12226 | (exit $ac_status); } && | |
7f266840 | 12227 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12229 | (eval $ac_try) 2>&5 | |
12230 | ac_status=$? | |
12231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12232 | (exit $ac_status); }; } && | |
12233 | { ac_try='test -s conftest$ac_exeext' | |
12234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12235 | (eval $ac_try) 2>&5 | |
12236 | ac_status=$? | |
12237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12238 | (exit $ac_status); }; }; then | |
12239 | eval "$as_ac_var=yes" | |
12240 | else | |
12241 | echo "$as_me: failed program was:" >&5 | |
12242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12243 | ||
12244 | eval "$as_ac_var=no" | |
12245 | fi | |
12246 | rm -f conftest.err conftest.$ac_objext \ | |
12247 | conftest$ac_exeext conftest.$ac_ext | |
12248 | fi | |
12249 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
12250 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
12251 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12252 | cat >>confdefs.h <<_ACEOF | |
12253 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12254 | _ACEOF | |
252b5132 | 12255 | |
252b5132 RH |
12256 | fi |
12257 | done | |
12258 | ||
5464f5a1 NN |
12259 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
12260 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
12261 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
12262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
12263 | else |
12264 | if test "$cross_compiling" = yes; then | |
12265 | ac_cv_func_mmap_fixed_mapped=no | |
12266 | else | |
5464f5a1 NN |
12267 | cat >conftest.$ac_ext <<_ACEOF |
12268 | /* confdefs.h. */ | |
12269 | _ACEOF | |
12270 | cat confdefs.h >>conftest.$ac_ext | |
12271 | cat >>conftest.$ac_ext <<_ACEOF | |
12272 | /* end confdefs.h. */ | |
12273 | $ac_includes_default | |
12274 | /* malloc might have been renamed as rpl_malloc. */ | |
12275 | #undef malloc | |
6be7c12c | 12276 | |
252b5132 RH |
12277 | /* Thanks to Mike Haertel and Jim Avera for this test. |
12278 | Here is a matrix of mmap possibilities: | |
12279 | mmap private not fixed | |
12280 | mmap private fixed at somewhere currently unmapped | |
12281 | mmap private fixed at somewhere already mapped | |
12282 | mmap shared not fixed | |
12283 | mmap shared fixed at somewhere currently unmapped | |
12284 | mmap shared fixed at somewhere already mapped | |
12285 | For private mappings, we should verify that changes cannot be read() | |
12286 | back from the file, nor mmap's back from the file at a different | |
12287 | address. (There have been systems where private was not correctly | |
12288 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 12289 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
12290 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
12291 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 12292 | propagated back to all the places they're supposed to be. |
252b5132 RH |
12293 | |
12294 | Grep wants private fixed already mapped. | |
12295 | The main things grep needs to know about mmap are: | |
12296 | * does it exist and is it safe to write into the mmap'd area | |
12297 | * how to use it (BSD variants) */ | |
5464f5a1 | 12298 | |
252b5132 RH |
12299 | #include <fcntl.h> |
12300 | #include <sys/mman.h> | |
12301 | ||
5464f5a1 NN |
12302 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
12303 | char *malloc (); | |
12304 | #endif | |
6be7c12c | 12305 | |
5464f5a1 NN |
12306 | /* This mess was copied from the GNU getpagesize.h. */ |
12307 | #if !HAVE_GETPAGESIZE | |
252b5132 | 12308 | /* Assume that all systems that can run configure have sys/param.h. */ |
5464f5a1 | 12309 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
12310 | # define HAVE_SYS_PARAM_H 1 |
12311 | # endif | |
12312 | ||
12313 | # ifdef _SC_PAGESIZE | |
12314 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
12315 | # else /* no _SC_PAGESIZE */ | |
5464f5a1 | 12316 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
12317 | # include <sys/param.h> |
12318 | # ifdef EXEC_PAGESIZE | |
12319 | # define getpagesize() EXEC_PAGESIZE | |
12320 | # else /* no EXEC_PAGESIZE */ | |
12321 | # ifdef NBPG | |
12322 | # define getpagesize() NBPG * CLSIZE | |
12323 | # ifndef CLSIZE | |
12324 | # define CLSIZE 1 | |
12325 | # endif /* no CLSIZE */ | |
12326 | # else /* no NBPG */ | |
12327 | # ifdef NBPC | |
12328 | # define getpagesize() NBPC | |
12329 | # else /* no NBPC */ | |
12330 | # ifdef PAGESIZE | |
12331 | # define getpagesize() PAGESIZE | |
12332 | # endif /* PAGESIZE */ | |
12333 | # endif /* no NBPC */ | |
12334 | # endif /* no NBPG */ | |
12335 | # endif /* no EXEC_PAGESIZE */ | |
12336 | # else /* no HAVE_SYS_PARAM_H */ | |
12337 | # define getpagesize() 8192 /* punt totally */ | |
12338 | # endif /* no HAVE_SYS_PARAM_H */ | |
12339 | # endif /* no _SC_PAGESIZE */ | |
12340 | ||
5464f5a1 NN |
12341 | #endif /* no HAVE_GETPAGESIZE */ |
12342 | ||
12343 | int | |
12344 | main () | |
12345 | { | |
12346 | char *data, *data2, *data3; | |
12347 | int i, pagesize; | |
12348 | int fd; | |
12349 | ||
12350 | pagesize = getpagesize (); | |
12351 | ||
12352 | /* First, make a file with some known garbage in it. */ | |
12353 | data = (char *) malloc (pagesize); | |
12354 | if (!data) | |
12355 | exit (1); | |
12356 | for (i = 0; i < pagesize; ++i) | |
12357 | *(data + i) = rand (); | |
12358 | umask (0); | |
12359 | fd = creat ("conftest.mmap", 0600); | |
12360 | if (fd < 0) | |
12361 | exit (1); | |
12362 | if (write (fd, data, pagesize) != pagesize) | |
12363 | exit (1); | |
12364 | close (fd); | |
12365 | ||
12366 | /* Next, try to mmap the file at a fixed address which already has | |
12367 | something else allocated at it. If we can, also make sure that | |
12368 | we see the same garbage. */ | |
12369 | fd = open ("conftest.mmap", O_RDWR); | |
12370 | if (fd < 0) | |
12371 | exit (1); | |
12372 | data2 = (char *) malloc (2 * pagesize); | |
12373 | if (!data2) | |
12374 | exit (1); | |
12375 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
12376 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
12377 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
12378 | exit (1); | |
12379 | for (i = 0; i < pagesize; ++i) | |
12380 | if (*(data + i) != *(data2 + i)) | |
12381 | exit (1); | |
12382 | ||
12383 | /* Finally, make sure that changes to the mapped area do not | |
12384 | percolate back to the file as seen by read(). (This is a bug on | |
12385 | some variants of i386 svr4.0.) */ | |
12386 | for (i = 0; i < pagesize; ++i) | |
12387 | *(data2 + i) = *(data2 + i) + 1; | |
12388 | data3 = (char *) malloc (pagesize); | |
12389 | if (!data3) | |
12390 | exit (1); | |
12391 | if (read (fd, data3, pagesize) != pagesize) | |
12392 | exit (1); | |
12393 | for (i = 0; i < pagesize; ++i) | |
12394 | if (*(data + i) != *(data3 + i)) | |
12395 | exit (1); | |
12396 | close (fd); | |
12397 | exit (0); | |
12398 | } | |
12399 | _ACEOF | |
12400 | rm -f conftest$ac_exeext | |
12401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12402 | (eval $ac_link) 2>&5 | |
12403 | ac_status=$? | |
12404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12405 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12407 | (eval $ac_try) 2>&5 | |
12408 | ac_status=$? | |
12409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12410 | (exit $ac_status); }; }; then | |
12411 | ac_cv_func_mmap_fixed_mapped=yes | |
12412 | else | |
12413 | echo "$as_me: program exited with status $ac_status" >&5 | |
12414 | echo "$as_me: failed program was:" >&5 | |
12415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12416 | ||
12417 | ( exit $ac_status ) | |
12418 | ac_cv_func_mmap_fixed_mapped=no | |
12419 | fi | |
12420 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12421 | fi | |
12422 | fi | |
12423 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
12424 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
12425 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
12426 | ||
12427 | cat >>confdefs.h <<\_ACEOF | |
12428 | #define HAVE_MMAP 1 | |
12429 | _ACEOF | |
12430 | ||
12431 | fi | |
12432 | rm -f conftest.mmap | |
12433 | ||
12434 | ||
12435 | ||
12436 | for ac_func in madvise mprotect | |
12437 | do | |
12438 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12439 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12440 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12441 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12443 | else | |
12444 | cat >conftest.$ac_ext <<_ACEOF | |
12445 | /* confdefs.h. */ | |
12446 | _ACEOF | |
12447 | cat confdefs.h >>conftest.$ac_ext | |
12448 | cat >>conftest.$ac_ext <<_ACEOF | |
12449 | /* end confdefs.h. */ | |
12450 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12451 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12452 | #define $ac_func innocuous_$ac_func | |
12453 | ||
12454 | /* System header to define __stub macros and hopefully few prototypes, | |
12455 | which can conflict with char $ac_func (); below. | |
12456 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12457 | <limits.h> exists even on freestanding compilers. */ | |
12458 | ||
12459 | #ifdef __STDC__ | |
12460 | # include <limits.h> | |
12461 | #else | |
12462 | # include <assert.h> | |
12463 | #endif | |
12464 | ||
12465 | #undef $ac_func | |
12466 | ||
12467 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12468 | #ifdef __cplusplus | |
12469 | extern "C" | |
12470 | { | |
12471 | #endif | |
12472 | /* We use char because int might match the return type of a gcc2 | |
12473 | builtin and then its argument prototype would still apply. */ | |
12474 | char $ac_func (); | |
12475 | /* The GNU C library defines this for functions which it implements | |
12476 | to always fail with ENOSYS. Some functions are actually named | |
12477 | something starting with __ and the normal name is an alias. */ | |
12478 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12479 | choke me | |
12480 | #else | |
12481 | char (*f) () = $ac_func; | |
12482 | #endif | |
12483 | #ifdef __cplusplus | |
12484 | } | |
12485 | #endif | |
12486 | ||
12487 | int | |
12488 | main () | |
12489 | { | |
12490 | return f != $ac_func; | |
12491 | ; | |
12492 | return 0; | |
12493 | } | |
12494 | _ACEOF | |
12495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12497 | (eval $ac_link) 2>conftest.er1 | |
12498 | ac_status=$? | |
12499 | grep -v '^ *+' conftest.er1 >conftest.err | |
12500 | rm -f conftest.er1 | |
12501 | cat conftest.err >&5 | |
12502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12503 | (exit $ac_status); } && | |
7f266840 | 12504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12506 | (eval $ac_try) 2>&5 | |
12507 | ac_status=$? | |
12508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12509 | (exit $ac_status); }; } && | |
12510 | { ac_try='test -s conftest$ac_exeext' | |
12511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12512 | (eval $ac_try) 2>&5 | |
12513 | ac_status=$? | |
12514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12515 | (exit $ac_status); }; }; then | |
12516 | eval "$as_ac_var=yes" | |
12517 | else | |
12518 | echo "$as_me: failed program was:" >&5 | |
12519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12520 | ||
12521 | eval "$as_ac_var=no" | |
12522 | fi | |
12523 | rm -f conftest.err conftest.$ac_objext \ | |
12524 | conftest$ac_exeext conftest.$ac_ext | |
12525 | fi | |
12526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
12527 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
12528 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12529 | cat >>confdefs.h <<_ACEOF | |
12530 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12531 | _ACEOF | |
12532 | ||
12533 | fi | |
12534 | done | |
12535 | ||
12536 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
12537 | true+yes ) | |
12538 | cat >>confdefs.h <<\_ACEOF | |
12539 | #define USE_MMAP 1 | |
12540 | _ACEOF | |
12541 | ;; | |
12542 | esac | |
12543 | ||
12544 | rm -f doc/config.status | |
12545 | ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" | |
12546 | ||
12547 | ac_config_commands="$ac_config_commands default" | |
12548 | ||
12549 | cat >confcache <<\_ACEOF | |
12550 | # This file is a shell script that caches the results of configure | |
12551 | # tests run on this system so they can be shared between configure | |
12552 | # scripts and configure runs, see configure's option --config-cache. | |
12553 | # It is not useful on other systems. If it contains results you don't | |
12554 | # want to keep, you may remove or edit it. | |
12555 | # | |
12556 | # config.status only pays attention to the cache file if you give it | |
12557 | # the --recheck option to rerun configure. | |
12558 | # | |
12559 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12560 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12561 | # following values. | |
12562 | ||
12563 | _ACEOF | |
12564 | ||
12565 | # The following way of writing the cache mishandles newlines in values, | |
12566 | # but we know of no workaround that is simple, portable, and efficient. | |
12567 | # So, don't put newlines in cache variables' values. | |
12568 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12569 | # and sets the high bit in the cache file unless we assign to the vars. | |
12570 | { | |
12571 | (set) 2>&1 | | |
12572 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
12573 | *ac_space=\ *) | |
12574 | # `set' does not quote correctly, so add quotes (double-quote | |
12575 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12576 | sed -n \ | |
12577 | "s/'/'\\\\''/g; | |
12578 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12579 | ;; | |
12580 | *) | |
12581 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12582 | sed -n \ | |
12583 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
12584 | ;; | |
12585 | esac; | |
12586 | } | | |
12587 | sed ' | |
12588 | t clear | |
12589 | : clear | |
12590 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12591 | t end | |
12592 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12593 | : end' >>confcache | |
12594 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
12595 | if test -w $cache_file; then | |
12596 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
12597 | cat confcache >$cache_file | |
12598 | else | |
12599 | echo "not updating unwritable cache $cache_file" | |
12600 | fi | |
12601 | fi | |
12602 | rm -f confcache | |
12603 | ||
12604 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12605 | # Let make expand exec_prefix. | |
12606 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12607 | ||
12608 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
12609 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12610 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12611 | # (actually we leave an empty line to preserve line numbers). | |
12612 | if test "x$srcdir" = x.; then | |
12613 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12614 | s/:*\$(srcdir):*/:/; | |
12615 | s/:*\${srcdir}:*/:/; | |
12616 | s/:*@srcdir@:*/:/; | |
12617 | s/^\([^=]*=[ ]*\):*/\1/; | |
12618 | s/:*$//; | |
12619 | s/^[^=]*=[ ]*$//; | |
12620 | }' | |
12621 | fi | |
12622 | ||
12623 | DEFS=-DHAVE_CONFIG_H | |
12624 | ||
12625 | ac_libobjs= | |
12626 | ac_ltlibobjs= | |
12627 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12628 | # 1. Remove the extension, and $U if already installed. | |
12629 | ac_i=`echo "$ac_i" | | |
12630 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
12631 | # 2. Add them. | |
12632 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
12633 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
12634 | done | |
12635 | LIBOBJS=$ac_libobjs | |
12636 | ||
12637 | LTLIBOBJS=$ac_ltlibobjs | |
12638 | ||
12639 | ||
f5385ebf AM |
12640 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
12641 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
12642 | Usually this means the macro was only invoked conditionally." >&5 | |
12643 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
12644 | Usually this means the macro was only invoked conditionally." >&2;} | |
12645 | { (exit 1); exit 1; }; } | |
12646 | fi | |
12647 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
12648 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
12649 | Usually this means the macro was only invoked conditionally." >&5 | |
12650 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
12651 | Usually this means the macro was only invoked conditionally." >&2;} | |
12652 | { (exit 1); exit 1; }; } | |
12653 | fi | |
12654 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
12655 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
12656 | Usually this means the macro was only invoked conditionally." >&5 | |
12657 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
12658 | Usually this means the macro was only invoked conditionally." >&2;} | |
12659 | { (exit 1); exit 1; }; } | |
12660 | fi | |
12661 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then | |
12662 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
12663 | Usually this means the macro was only invoked conditionally." >&5 | |
12664 | echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
12665 | Usually this means the macro was only invoked conditionally." >&2;} | |
12666 | { (exit 1); exit 1; }; } | |
12667 | fi | |
5464f5a1 NN |
12668 | |
12669 | : ${CONFIG_STATUS=./config.status} | |
12670 | ac_clean_files_save=$ac_clean_files | |
12671 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
12672 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
12673 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12674 | cat >$CONFIG_STATUS <<_ACEOF | |
12675 | #! $SHELL | |
12676 | # Generated by $as_me. | |
12677 | # Run this file to recreate the current configuration. | |
12678 | # Compiler output produced by configure, useful for debugging | |
12679 | # configure, is in config.log if it exists. | |
12680 | ||
12681 | debug=false | |
12682 | ac_cs_recheck=false | |
12683 | ac_cs_silent=false | |
12684 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12685 | _ACEOF | |
12686 | ||
12687 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12688 | ## --------------------- ## | |
12689 | ## M4sh Initialization. ## | |
12690 | ## --------------------- ## | |
12691 | ||
12692 | # Be Bourne compatible | |
12693 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
12694 | emulate sh | |
12695 | NULLCMD=: | |
12696 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
12697 | # is contrary to our usage. Disable this feature. | |
12698 | alias -g '${1+"$@"}'='"$@"' | |
12699 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
12700 | set -o posix | |
12701 | fi | |
12702 | DUALCASE=1; export DUALCASE # for MKS sh | |
12703 | ||
12704 | # Support unset when possible. | |
12705 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
12706 | as_unset=unset | |
12707 | else | |
12708 | as_unset=false | |
12709 | fi | |
12710 | ||
12711 | ||
12712 | # Work around bugs in pre-3.0 UWIN ksh. | |
12713 | $as_unset ENV MAIL MAILPATH | |
12714 | PS1='$ ' | |
12715 | PS2='> ' | |
12716 | PS4='+ ' | |
12717 | ||
12718 | # NLS nuisances. | |
12719 | for as_var in \ | |
12720 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
12721 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
12722 | LC_TELEPHONE LC_TIME | |
12723 | do | |
12724 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
12725 | eval $as_var=C; export $as_var | |
12726 | else | |
12727 | $as_unset $as_var | |
12728 | fi | |
12729 | done | |
12730 | ||
12731 | # Required to use basename. | |
12732 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
12733 | as_expr=expr | |
12734 | else | |
12735 | as_expr=false | |
12736 | fi | |
12737 | ||
12738 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
12739 | as_basename=basename | |
12740 | else | |
12741 | as_basename=false | |
12742 | fi | |
252b5132 | 12743 | |
6be7c12c | 12744 | |
5464f5a1 NN |
12745 | # Name of the executable. |
12746 | as_me=`$as_basename "$0" || | |
12747 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12748 | X"$0" : 'X\(//\)$' \| \ | |
12749 | X"$0" : 'X\(/\)$' \| \ | |
12750 | . : '\(.\)' 2>/dev/null || | |
12751 | echo X/"$0" | | |
12752 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
12753 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
12754 | /^X\/\(\/\).*/{ s//\1/; q; } | |
12755 | s/.*/./; q'` | |
12756 | ||
12757 | ||
12758 | # PATH needs CR, and LINENO needs CR and PATH. | |
12759 | # Avoid depending upon Character Ranges. | |
12760 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12761 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12762 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12763 | as_cr_digits='0123456789' | |
12764 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12765 | ||
12766 | # The user is always right. | |
12767 | if test "${PATH_SEPARATOR+set}" != set; then | |
12768 | echo "#! /bin/sh" >conf$$.sh | |
12769 | echo "exit 0" >>conf$$.sh | |
12770 | chmod +x conf$$.sh | |
12771 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12772 | PATH_SEPARATOR=';' | |
12773 | else | |
12774 | PATH_SEPARATOR=: | |
12775 | fi | |
12776 | rm -f conf$$.sh | |
12777 | fi | |
12778 | ||
12779 | ||
12780 | as_lineno_1=$LINENO | |
12781 | as_lineno_2=$LINENO | |
12782 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
12783 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
12784 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
12785 | # Find who we are. Look in the path if we contain no path at all | |
12786 | # relative or not. | |
12787 | case $0 in | |
12788 | *[\\/]* ) as_myself=$0 ;; | |
12789 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12790 | for as_dir in $PATH | |
12791 | do | |
12792 | IFS=$as_save_IFS | |
12793 | test -z "$as_dir" && as_dir=. | |
12794 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12795 | done | |
12796 | ||
12797 | ;; | |
12798 | esac | |
12799 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12800 | # in which case we are not to be found in the path. | |
12801 | if test "x$as_myself" = x; then | |
12802 | as_myself=$0 | |
12803 | fi | |
12804 | if test ! -f "$as_myself"; then | |
12805 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
12806 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
12807 | { (exit 1); exit 1; }; } | |
12808 | fi | |
12809 | case $CONFIG_SHELL in | |
12810 | '') | |
12811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12812 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
12813 | do | |
12814 | IFS=$as_save_IFS | |
12815 | test -z "$as_dir" && as_dir=. | |
12816 | for as_base in sh bash ksh sh5; do | |
12817 | case $as_dir in | |
12818 | /*) | |
12819 | if ("$as_dir/$as_base" -c ' | |
12820 | as_lineno_1=$LINENO | |
12821 | as_lineno_2=$LINENO | |
12822 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
12823 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
12824 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
12825 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
12826 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
12827 | CONFIG_SHELL=$as_dir/$as_base | |
12828 | export CONFIG_SHELL | |
12829 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
12830 | fi;; | |
12831 | esac | |
12832 | done | |
12833 | done | |
12834 | ;; | |
12835 | esac | |
12836 | ||
12837 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
12838 | # uniformly replaced by the line number. The first 'sed' inserts a | |
12839 | # line-number line before each line; the second 'sed' does the real | |
12840 | # work. The second script uses 'N' to pair each line-number line | |
12841 | # with the numbered line, and appends trailing '-' during | |
12842 | # substitution so that $LINENO is not a special case at line end. | |
12843 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
12844 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
12845 | sed '=' <$as_myself | | |
12846 | sed ' | |
12847 | N | |
12848 | s,$,-, | |
12849 | : loop | |
12850 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
12851 | t loop | |
12852 | s,-$,, | |
12853 | s,^['$as_cr_digits']*\n,, | |
12854 | ' >$as_me.lineno && | |
12855 | chmod +x $as_me.lineno || | |
12856 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
12857 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
12858 | { (exit 1); exit 1; }; } | |
12859 | ||
12860 | # Don't try to exec as it changes $[0], causing all sort of problems | |
12861 | # (the dirname of $[0] is not the place where we might find the | |
12862 | # original and so on. Autoconf is especially sensible to this). | |
12863 | . ./$as_me.lineno | |
12864 | # Exit status is that of the last command. | |
12865 | exit | |
252b5132 | 12866 | } |
6be7c12c | 12867 | |
5464f5a1 NN |
12868 | |
12869 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
12870 | *c*,-n*) ECHO_N= ECHO_C=' | |
12871 | ' ECHO_T=' ' ;; | |
12872 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
12873 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
12874 | esac | |
12875 | ||
12876 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
12877 | as_expr=expr | |
252b5132 | 12878 | else |
5464f5a1 | 12879 | as_expr=false |
252b5132 | 12880 | fi |
5464f5a1 NN |
12881 | |
12882 | rm -f conf$$ conf$$.exe conf$$.file | |
12883 | echo >conf$$.file | |
12884 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12885 | # We could just check for DJGPP; but this test a) works b) is more generic | |
12886 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
12887 | if test -f conf$$.exe; then | |
12888 | # Don't use ln at all; we don't have any links | |
12889 | as_ln_s='cp -p' | |
12890 | else | |
12891 | as_ln_s='ln -s' | |
12892 | fi | |
12893 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12894 | as_ln_s=ln | |
12895 | else | |
12896 | as_ln_s='cp -p' | |
252b5132 | 12897 | fi |
5464f5a1 | 12898 | rm -f conf$$ conf$$.exe conf$$.file |
6be7c12c | 12899 | |
5464f5a1 NN |
12900 | if mkdir -p . 2>/dev/null; then |
12901 | as_mkdir_p=: | |
12902 | else | |
12903 | test -d ./-p && rmdir ./-p | |
12904 | as_mkdir_p=false | |
252b5132 | 12905 | fi |
b3baf5d0 | 12906 | |
5464f5a1 | 12907 | as_executable_p="test -f" |
252b5132 | 12908 | |
5464f5a1 NN |
12909 | # Sed expression to map a string onto a valid CPP name. |
12910 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
252b5132 | 12911 | |
5464f5a1 NN |
12912 | # Sed expression to map a string onto a valid variable name. |
12913 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6be7c12c | 12914 | |
252b5132 | 12915 | |
5464f5a1 NN |
12916 | # IFS |
12917 | # We need space, tab and new line, in precisely that order. | |
12918 | as_nl=' | |
12919 | ' | |
12920 | IFS=" $as_nl" | |
252b5132 | 12921 | |
5464f5a1 NN |
12922 | # CDPATH. |
12923 | $as_unset CDPATH | |
12924 | ||
12925 | exec 6>&1 | |
12926 | ||
12927 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
12928 | # report actual input values of CONFIG_FILES etc. instead of their | |
12929 | # values after options handling. Logging --version etc. is OK. | |
12930 | exec 5>>config.log | |
12931 | { | |
12932 | echo | |
12933 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12934 | ## Running $as_me. ## | |
12935 | _ASBOX | |
12936 | } >&5 | |
12937 | cat >&5 <<_CSEOF | |
12938 | ||
12939 | This file was extended by $as_me, which was | |
12940 | generated by GNU Autoconf 2.59. Invocation command line was | |
12941 | ||
12942 | CONFIG_FILES = $CONFIG_FILES | |
12943 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12944 | CONFIG_LINKS = $CONFIG_LINKS | |
12945 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12946 | $ $0 $@ | |
12947 | ||
12948 | _CSEOF | |
12949 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
12950 | echo >&5 | |
12951 | _ACEOF | |
12952 | ||
12953 | # Files that config.status was made for. | |
12954 | if test -n "$ac_config_files"; then | |
12955 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
6be7c12c | 12956 | fi |
5464f5a1 NN |
12957 | |
12958 | if test -n "$ac_config_headers"; then | |
12959 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
6be7c12c | 12960 | fi |
252b5132 | 12961 | |
5464f5a1 NN |
12962 | if test -n "$ac_config_links"; then |
12963 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
252b5132 | 12964 | fi |
252b5132 | 12965 | |
5464f5a1 NN |
12966 | if test -n "$ac_config_commands"; then |
12967 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
12968 | fi | |
252b5132 | 12969 | |
5464f5a1 NN |
12970 | cat >>$CONFIG_STATUS <<\_ACEOF |
12971 | ||
12972 | ac_cs_usage="\ | |
12973 | \`$as_me' instantiates files from templates according to the | |
12974 | current configuration. | |
12975 | ||
12976 | Usage: $0 [OPTIONS] [FILE]... | |
12977 | ||
12978 | -h, --help print this help, then exit | |
12979 | -V, --version print version number, then exit | |
12980 | -q, --quiet do not print progress messages | |
12981 | -d, --debug don't remove temporary files | |
12982 | --recheck update $as_me by reconfiguring in the same conditions | |
12983 | --file=FILE[:TEMPLATE] | |
12984 | instantiate the configuration file FILE | |
12985 | --header=FILE[:TEMPLATE] | |
12986 | instantiate the configuration header FILE | |
12987 | ||
12988 | Configuration files: | |
12989 | $config_files | |
12990 | ||
12991 | Configuration headers: | |
12992 | $config_headers | |
12993 | ||
12994 | Configuration commands: | |
12995 | $config_commands | |
12996 | ||
12997 | Report bugs to <bug-autoconf@gnu.org>." | |
12998 | _ACEOF | |
12999 | ||
13000 | cat >>$CONFIG_STATUS <<_ACEOF | |
13001 | ac_cs_version="\\ | |
13002 | config.status | |
13003 | configured by $0, generated by GNU Autoconf 2.59, | |
13004 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
13005 | ||
13006 | Copyright (C) 2003 Free Software Foundation, Inc. | |
13007 | This config.status script is free software; the Free Software Foundation | |
13008 | gives unlimited permission to copy, distribute and modify it." | |
13009 | srcdir=$srcdir | |
13010 | INSTALL="$INSTALL" | |
13011 | _ACEOF | |
13012 | ||
13013 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13014 | # If no file are specified by the user, then we need to provide default | |
13015 | # value. By we need to know if files were specified by the user. | |
13016 | ac_need_defaults=: | |
13017 | while test $# != 0 | |
13018 | do | |
13019 | case $1 in | |
13020 | --*=*) | |
13021 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
13022 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
13023 | ac_shift=: | |
6be7c12c | 13024 | ;; |
5464f5a1 NN |
13025 | -*) |
13026 | ac_option=$1 | |
13027 | ac_optarg=$2 | |
13028 | ac_shift=shift | |
6be7c12c | 13029 | ;; |
5464f5a1 NN |
13030 | *) # This is not an option, so the user has probably given explicit |
13031 | # arguments. | |
13032 | ac_option=$1 | |
13033 | ac_need_defaults=false;; | |
13034 | esac | |
252b5132 | 13035 | |
5464f5a1 NN |
13036 | case $ac_option in |
13037 | # Handling of the options. | |
13038 | _ACEOF | |
13039 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13040 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13041 | ac_cs_recheck=: ;; | |
13042 | --version | --vers* | -V ) | |
13043 | echo "$ac_cs_version"; exit 0 ;; | |
13044 | --he | --h) | |
13045 | # Conflict between --help and --header | |
13046 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
13047 | Try \`$0 --help' for more information." >&5 | |
13048 | echo "$as_me: error: ambiguous option: $1 | |
13049 | Try \`$0 --help' for more information." >&2;} | |
13050 | { (exit 1); exit 1; }; };; | |
13051 | --help | --hel | -h ) | |
13052 | echo "$ac_cs_usage"; exit 0 ;; | |
13053 | --debug | --d* | -d ) | |
13054 | debug=: ;; | |
13055 | --file | --fil | --fi | --f ) | |
13056 | $ac_shift | |
13057 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
13058 | ac_need_defaults=false;; | |
13059 | --header | --heade | --head | --hea ) | |
13060 | $ac_shift | |
13061 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
13062 | ac_need_defaults=false;; | |
13063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13064 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13065 | ac_cs_silent=: ;; | |
6be7c12c | 13066 | |
5464f5a1 NN |
13067 | # This is an error. |
13068 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
13069 | Try \`$0 --help' for more information." >&5 | |
13070 | echo "$as_me: error: unrecognized option: $1 | |
13071 | Try \`$0 --help' for more information." >&2;} | |
13072 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 13073 | |
5464f5a1 | 13074 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 13075 | |
5464f5a1 NN |
13076 | esac |
13077 | shift | |
13078 | done | |
6be7c12c | 13079 | |
5464f5a1 | 13080 | ac_configure_extra_args= |
252b5132 | 13081 | |
5464f5a1 NN |
13082 | if $ac_cs_silent; then |
13083 | exec 6>/dev/null | |
13084 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13085 | fi | |
6be7c12c | 13086 | |
5464f5a1 NN |
13087 | _ACEOF |
13088 | cat >>$CONFIG_STATUS <<_ACEOF | |
13089 | if \$ac_cs_recheck; then | |
13090 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
13091 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
13092 | fi | |
13093 | ||
13094 | _ACEOF | |
13095 | ||
13096 | cat >>$CONFIG_STATUS <<_ACEOF | |
6be7c12c | 13097 | # |
5464f5a1 | 13098 | # INIT-COMMANDS section. |
6be7c12c | 13099 | # |
b3baf5d0 | 13100 | |
f5385ebf | 13101 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
5464f5a1 NN |
13102 | |
13103 | ||
13104 | _ACEOF | |
13105 | ||
13106 | ||
13107 | ||
13108 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13109 | for ac_config_target in $ac_config_targets | |
252b5132 | 13110 | do |
5464f5a1 NN |
13111 | case "$ac_config_target" in |
13112 | # Handling of arguments. | |
13113 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13114 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
13115 | "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; | |
13116 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
f5385ebf | 13117 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
5464f5a1 NN |
13118 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
13119 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
13120 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
13121 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
13122 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
13123 | esac |
13124 | done | |
13125 | ||
5464f5a1 NN |
13126 | # If the user did not use the arguments to specify the items to instantiate, |
13127 | # then the envvar interface is used. Set only those that are not. | |
13128 | # We use the long form for the default assignment because of an extremely | |
13129 | # bizarre bug on SunOS 4.1.3. | |
13130 | if $ac_need_defaults; then | |
13131 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13132 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13133 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13134 | fi | |
13135 | ||
13136 | # Have a temporary directory for convenience. Make it in the build tree | |
13137 | # simply because there is no reason to put it here, and in addition, | |
13138 | # creating and moving files from /tmp can sometimes cause problems. | |
13139 | # Create a temporary directory, and hook for its removal unless debugging. | |
13140 | $debug || | |
13141 | { | |
13142 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
13143 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
13144 | } | |
b3baf5d0 | 13145 | |
5464f5a1 | 13146 | # Create a (secure) tmp directory for tmp files. |
b3baf5d0 | 13147 | |
5464f5a1 NN |
13148 | { |
13149 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
13150 | test -n "$tmp" && test -d "$tmp" | |
13151 | } || | |
13152 | { | |
13153 | tmp=./confstat$$-$RANDOM | |
13154 | (umask 077 && mkdir $tmp) | |
13155 | } || | |
13156 | { | |
13157 | echo "$me: cannot create a temporary directory in ." >&2 | |
13158 | { (exit 1); exit 1; } | |
13159 | } | |
13160 | ||
13161 | _ACEOF | |
13162 | ||
13163 | cat >>$CONFIG_STATUS <<_ACEOF | |
13164 | ||
13165 | # | |
13166 | # CONFIG_FILES section. | |
13167 | # | |
b3baf5d0 | 13168 | |
5464f5a1 NN |
13169 | # No need to generate the scripts if there are no CONFIG_FILES. |
13170 | # This happens for instance when ./config.status config.h | |
13171 | if test -n "\$CONFIG_FILES"; then | |
13172 | # Protect against being on the right side of a sed subst in config.status. | |
13173 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
13174 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
13175 | s,@SHELL@,$SHELL,;t t | |
13176 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
13177 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
13178 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
13179 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
13180 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
13181 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
13182 | s,@exec_prefix@,$exec_prefix,;t t | |
13183 | s,@prefix@,$prefix,;t t | |
13184 | s,@program_transform_name@,$program_transform_name,;t t | |
13185 | s,@bindir@,$bindir,;t t | |
13186 | s,@sbindir@,$sbindir,;t t | |
13187 | s,@libexecdir@,$libexecdir,;t t | |
13188 | s,@datadir@,$datadir,;t t | |
13189 | s,@sysconfdir@,$sysconfdir,;t t | |
13190 | s,@sharedstatedir@,$sharedstatedir,;t t | |
13191 | s,@localstatedir@,$localstatedir,;t t | |
13192 | s,@libdir@,$libdir,;t t | |
13193 | s,@includedir@,$includedir,;t t | |
13194 | s,@oldincludedir@,$oldincludedir,;t t | |
13195 | s,@infodir@,$infodir,;t t | |
13196 | s,@mandir@,$mandir,;t t | |
13197 | s,@build_alias@,$build_alias,;t t | |
13198 | s,@host_alias@,$host_alias,;t t | |
13199 | s,@target_alias@,$target_alias,;t t | |
13200 | s,@DEFS@,$DEFS,;t t | |
13201 | s,@ECHO_C@,$ECHO_C,;t t | |
13202 | s,@ECHO_N@,$ECHO_N,;t t | |
13203 | s,@ECHO_T@,$ECHO_T,;t t | |
13204 | s,@LIBS@,$LIBS,;t t | |
13205 | s,@build@,$build,;t t | |
13206 | s,@build_cpu@,$build_cpu,;t t | |
13207 | s,@build_vendor@,$build_vendor,;t t | |
13208 | s,@build_os@,$build_os,;t t | |
13209 | s,@host@,$host,;t t | |
13210 | s,@host_cpu@,$host_cpu,;t t | |
13211 | s,@host_vendor@,$host_vendor,;t t | |
13212 | s,@host_os@,$host_os,;t t | |
13213 | s,@target@,$target,;t t | |
13214 | s,@target_cpu@,$target_cpu,;t t | |
13215 | s,@target_vendor@,$target_vendor,;t t | |
13216 | s,@target_os@,$target_os,;t t | |
13217 | s,@CC@,$CC,;t t | |
13218 | s,@CFLAGS@,$CFLAGS,;t t | |
13219 | s,@LDFLAGS@,$LDFLAGS,;t t | |
13220 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
13221 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
13222 | s,@EXEEXT@,$EXEEXT,;t t | |
13223 | s,@OBJEXT@,$OBJEXT,;t t | |
13224 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
13225 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
13226 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
f5385ebf | 13227 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
5464f5a1 NN |
13228 | s,@PACKAGE@,$PACKAGE,;t t |
13229 | s,@VERSION@,$VERSION,;t t | |
13230 | s,@ACLOCAL@,$ACLOCAL,;t t | |
13231 | s,@AUTOCONF@,$AUTOCONF,;t t | |
13232 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
13233 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
13234 | s,@MAKEINFO@,$MAKEINFO,;t t | |
f5385ebf AM |
13235 | s,@install_sh@,$install_sh,;t t |
13236 | s,@STRIP@,$STRIP,;t t | |
13237 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
13238 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
13239 | s,@mkdir_p@,$mkdir_p,;t t | |
13240 | s,@AWK@,$AWK,;t t | |
5464f5a1 | 13241 | s,@SET_MAKE@,$SET_MAKE,;t t |
f5385ebf AM |
13242 | s,@am__leading_dot@,$am__leading_dot,;t t |
13243 | s,@AMTAR@,$AMTAR,;t t | |
13244 | s,@am__tar@,$am__tar,;t t | |
13245 | s,@am__untar@,$am__untar,;t t | |
13246 | s,@DEPDIR@,$DEPDIR,;t t | |
13247 | s,@am__include@,$am__include,;t t | |
13248 | s,@am__quote@,$am__quote,;t t | |
13249 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
13250 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
13251 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
13252 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
13253 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
13254 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
5464f5a1 NN |
13255 | s,@AR@,$AR,;t t |
13256 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
13257 | s,@RANLIB@,$RANLIB,;t t | |
13258 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
13259 | s,@LN_S@,$LN_S,;t t | |
5464f5a1 NN |
13260 | s,@LIBTOOL@,$LIBTOOL,;t t |
13261 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
13262 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
13263 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
13264 | s,@MAINT@,$MAINT,;t t | |
13265 | s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t | |
13266 | s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t | |
24443139 AS |
13267 | s,@host_noncanonical@,$host_noncanonical,;t t |
13268 | s,@target_noncanonical@,$target_noncanonical,;t t | |
5464f5a1 NN |
13269 | s,@bfdlibdir@,$bfdlibdir,;t t |
13270 | s,@bfdincludedir@,$bfdincludedir,;t t | |
13271 | s,@CPP@,$CPP,;t t | |
13272 | s,@EGREP@,$EGREP,;t t | |
13273 | s,@ALLOCA@,$ALLOCA,;t t | |
13274 | s,@USE_NLS@,$USE_NLS,;t t | |
13275 | s,@MSGFMT@,$MSGFMT,;t t | |
13276 | s,@GMSGFMT@,$GMSGFMT,;t t | |
13277 | s,@XGETTEXT@,$XGETTEXT,;t t | |
13278 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
13279 | s,@CATALOGS@,$CATALOGS,;t t | |
13280 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
13281 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
13282 | s,@GMOFILES@,$GMOFILES,;t t | |
13283 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
13284 | s,@INTLDEPS@,$INTLDEPS,;t t | |
13285 | s,@INTLLIBS@,$INTLLIBS,;t t | |
13286 | s,@INTLOBJS@,$INTLOBJS,;t t | |
13287 | s,@POFILES@,$POFILES,;t t | |
13288 | s,@POSUB@,$POSUB,;t t | |
13289 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
13290 | s,@GT_NO@,$GT_NO,;t t | |
13291 | s,@GT_YES@,$GT_YES,;t t | |
13292 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
13293 | s,@l@,$l,;t t | |
13294 | s,@HDEFINES@,$HDEFINES,;t t | |
13295 | s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t | |
13296 | s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t | |
13297 | s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t | |
13298 | s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t | |
13299 | s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t | |
13300 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
13301 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t | |
13302 | s,@COREFILE@,$COREFILE,;t t | |
13303 | s,@COREFLAG@,$COREFLAG,;t t | |
13304 | s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t | |
13305 | s,@WIN32LIBADD@,$WIN32LIBADD,;t t | |
13306 | s,@TDEFINES@,$TDEFINES,;t t | |
13307 | s,@wordsize@,$wordsize,;t t | |
13308 | s,@bfd_libs@,$bfd_libs,;t t | |
13309 | s,@all_backends@,$all_backends,;t t | |
13310 | s,@bfd_backends@,$bfd_backends,;t t | |
13311 | s,@bfd_machines@,$bfd_machines,;t t | |
13312 | s,@bfd_default_target_size@,$bfd_default_target_size,;t t | |
13313 | s,@bfd_file_ptr@,$bfd_file_ptr,;t t | |
13314 | s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t | |
13315 | s,@tdefaults@,$tdefaults,;t t | |
13316 | s,@LIBOBJS@,$LIBOBJS,;t t | |
13317 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
252b5132 | 13318 | CEOF |
252b5132 | 13319 | |
5464f5a1 NN |
13320 | _ACEOF |
13321 | ||
13322 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13323 | # Split the substitutions into bite-sized pieces for seds with | |
13324 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
13325 | ac_max_sed_lines=48 | |
13326 | ac_sed_frag=1 # Number of current file. | |
13327 | ac_beg=1 # First line for current file. | |
13328 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
13329 | ac_more_lines=: | |
13330 | ac_sed_cmds= | |
13331 | while $ac_more_lines; do | |
13332 | if test $ac_beg -gt 1; then | |
13333 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
252b5132 | 13334 | else |
5464f5a1 NN |
13335 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
13336 | fi | |
13337 | if test ! -s $tmp/subs.frag; then | |
13338 | ac_more_lines=false | |
13339 | else | |
13340 | # The purpose of the label and of the branching condition is to | |
13341 | # speed up the sed processing (if there are no `@' at all, there | |
13342 | # is no need to browse any of the substitutions). | |
13343 | # These are the two extra sed commands mentioned above. | |
13344 | (echo ':t | |
13345 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
13346 | if test -z "$ac_sed_cmds"; then | |
13347 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
13348 | else | |
13349 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
13350 | fi | |
13351 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
13352 | ac_beg=$ac_end | |
13353 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
252b5132 | 13354 | fi |
5464f5a1 NN |
13355 | done |
13356 | if test -z "$ac_sed_cmds"; then | |
13357 | ac_sed_cmds=cat | |
252b5132 | 13358 | fi |
5464f5a1 | 13359 | fi # test -n "$CONFIG_FILES" |
6be7c12c | 13360 | |
5464f5a1 NN |
13361 | _ACEOF |
13362 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13363 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
252b5132 | 13364 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
13365 | case $ac_file in |
13366 | - | *:- | *:-:* ) # input from stdin | |
13367 | cat >$tmp/stdin | |
13368 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13369 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13370 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13371 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13372 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
13373 | esac |
13374 | ||
5464f5a1 NN |
13375 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
13376 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
13377 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13378 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13379 | X"$ac_file" : 'X\(//\)$' \| \ | |
13380 | X"$ac_file" : 'X\(/\)' \| \ | |
13381 | . : '\(.\)' 2>/dev/null || | |
13382 | echo X"$ac_file" | | |
13383 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13384 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13385 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13386 | /^X\(\/\).*/{ s//\1/; q; } | |
13387 | s/.*/./; q'` | |
13388 | { if $as_mkdir_p; then | |
13389 | mkdir -p "$ac_dir" | |
252b5132 | 13390 | else |
5464f5a1 NN |
13391 | as_dir="$ac_dir" |
13392 | as_dirs= | |
13393 | while test ! -d "$as_dir"; do | |
13394 | as_dirs="$as_dir $as_dirs" | |
13395 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
13396 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13397 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13398 | X"$as_dir" : 'X\(//\)$' \| \ | |
13399 | X"$as_dir" : 'X\(/\)' \| \ | |
13400 | . : '\(.\)' 2>/dev/null || | |
13401 | echo X"$as_dir" | | |
13402 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13403 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13404 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13405 | /^X\(\/\).*/{ s//\1/; q; } | |
13406 | s/.*/./; q'` | |
13407 | done | |
13408 | test ! -n "$as_dirs" || mkdir $as_dirs | |
13409 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
13410 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
13411 | { (exit 1); exit 1; }; }; } | |
13412 | ||
13413 | ac_builddir=. | |
13414 | ||
13415 | if test "$ac_dir" != .; then | |
13416 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
13417 | # A "../" for each directory in $ac_dir_suffix. | |
13418 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
13419 | else | |
13420 | ac_dir_suffix= ac_top_builddir= | |
13421 | fi | |
252b5132 | 13422 | |
5464f5a1 NN |
13423 | case $srcdir in |
13424 | .) # No --srcdir option. We are building in place. | |
13425 | ac_srcdir=. | |
13426 | if test -z "$ac_top_builddir"; then | |
13427 | ac_top_srcdir=. | |
13428 | else | |
13429 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
13430 | fi ;; | |
13431 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
13432 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13433 | ac_top_srcdir=$srcdir ;; | |
252b5132 | 13434 | *) # Relative path. |
5464f5a1 NN |
13435 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
13436 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
13437 | esac | |
252b5132 | 13438 | |
5464f5a1 NN |
13439 | # Do not use `cd foo && pwd` to compute absolute paths, because |
13440 | # the directories may not exist. | |
13441 | case `pwd` in | |
13442 | .) ac_abs_builddir="$ac_dir";; | |
13443 | *) | |
13444 | case "$ac_dir" in | |
13445 | .) ac_abs_builddir=`pwd`;; | |
13446 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
13447 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
13448 | esac;; | |
13449 | esac | |
13450 | case $ac_abs_builddir in | |
13451 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13452 | *) | |
13453 | case ${ac_top_builddir}. in | |
13454 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
13455 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13456 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
13457 | esac;; | |
13458 | esac | |
13459 | case $ac_abs_builddir in | |
13460 | .) ac_abs_srcdir=$ac_srcdir;; | |
13461 | *) | |
13462 | case $ac_srcdir in | |
13463 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
13464 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
13465 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
13466 | esac;; | |
13467 | esac | |
13468 | case $ac_abs_builddir in | |
13469 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13470 | *) | |
13471 | case $ac_top_srcdir in | |
13472 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
13473 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13474 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
13475 | esac;; | |
13476 | esac | |
252b5132 | 13477 | |
5464f5a1 NN |
13478 | |
13479 | case $INSTALL in | |
13480 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13481 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
6be7c12c | 13482 | esac |
252b5132 | 13483 | |
5464f5a1 NN |
13484 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
13485 | # use $as_me), people would be surprised to read: | |
13486 | # /* config.h. Generated by config.status. */ | |
13487 | if test x"$ac_file" = x-; then | |
13488 | configure_input= | |
13489 | else | |
13490 | configure_input="$ac_file. " | |
13491 | fi | |
13492 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
13493 | sed 's,.*/,,'` by configure." | |
13494 | ||
13495 | # First look for the input files in the build tree, otherwise in the | |
13496 | # src tree. | |
13497 | ac_file_inputs=`IFS=: | |
13498 | for f in $ac_file_in; do | |
13499 | case $f in | |
13500 | -) echo $tmp/stdin ;; | |
13501 | [\\/$]*) | |
13502 | # Absolute (can't be DOS-style, as IFS=:) | |
13503 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13504 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13505 | { (exit 1); exit 1; }; } | |
13506 | echo "$f";; | |
13507 | *) # Relative | |
13508 | if test -f "$f"; then | |
13509 | # Build tree | |
13510 | echo "$f" | |
13511 | elif test -f "$srcdir/$f"; then | |
13512 | # Source tree | |
13513 | echo "$srcdir/$f" | |
13514 | else | |
13515 | # /dev/null tree | |
13516 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13517 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13518 | { (exit 1); exit 1; }; } | |
13519 | fi;; | |
13520 | esac | |
13521 | done` || { (exit 1); exit 1; } | |
7f266840 DJ |
13522 | |
13523 | if test x"$ac_file" != x-; then | |
13524 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
13525 | echo "$as_me: creating $ac_file" >&6;} | |
13526 | rm -f "$ac_file" | |
13527 | fi | |
5464f5a1 NN |
13528 | _ACEOF |
13529 | cat >>$CONFIG_STATUS <<_ACEOF | |
13530 | sed "$ac_vpsub | |
13531 | $extrasub | |
13532 | _ACEOF | |
13533 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13534 | :t | |
13535 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13536 | s,@configure_input@,$configure_input,;t t | |
13537 | s,@srcdir@,$ac_srcdir,;t t | |
13538 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
13539 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
13540 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
13541 | s,@builddir@,$ac_builddir,;t t | |
13542 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
13543 | s,@top_builddir@,$ac_top_builddir,;t t | |
13544 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
13545 | s,@INSTALL@,$ac_INSTALL,;t t | |
13546 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
13547 | rm -f $tmp/stdin | |
13548 | if test x"$ac_file" != x-; then | |
13549 | mv $tmp/out $ac_file | |
13550 | else | |
13551 | cat $tmp/out | |
13552 | rm -f $tmp/out | |
13553 | fi | |
13554 | ||
13555 | done | |
13556 | _ACEOF | |
13557 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13558 | ||
13559 | # | |
13560 | # CONFIG_HEADER section. | |
13561 | # | |
252b5132 RH |
13562 | |
13563 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
13564 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
13565 | # | |
13566 | # ac_d sets the value in "#define NAME VALUE" lines. | |
5464f5a1 NN |
13567 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
13568 | ac_dB='[ ].*$,\1#\2' | |
13569 | ac_dC=' ' | |
13570 | ac_dD=',;t' | |
13571 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
13572 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13573 | ac_uB='$,\1#\2define\3' | |
252b5132 | 13574 | ac_uC=' ' |
5464f5a1 NN |
13575 | ac_uD=',;t' |
13576 | ||
13577 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 13578 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
13579 | case $ac_file in |
13580 | - | *:- | *:-:* ) # input from stdin | |
13581 | cat >$tmp/stdin | |
13582 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13583 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13584 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13585 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13586 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
13587 | esac |
13588 | ||
5464f5a1 NN |
13589 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
13590 | echo "$as_me: creating $ac_file" >&6;} | |
13591 | ||
13592 | # First look for the input files in the build tree, otherwise in the | |
13593 | # src tree. | |
13594 | ac_file_inputs=`IFS=: | |
13595 | for f in $ac_file_in; do | |
13596 | case $f in | |
13597 | -) echo $tmp/stdin ;; | |
13598 | [\\/$]*) | |
13599 | # Absolute (can't be DOS-style, as IFS=:) | |
13600 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13601 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13602 | { (exit 1); exit 1; }; } | |
13603 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
13604 | echo "$f";; | |
13605 | *) # Relative | |
13606 | if test -f "$f"; then | |
13607 | # Build tree | |
13608 | echo "$f" | |
13609 | elif test -f "$srcdir/$f"; then | |
13610 | # Source tree | |
13611 | echo "$srcdir/$f" | |
13612 | else | |
13613 | # /dev/null tree | |
13614 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13615 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13616 | { (exit 1); exit 1; }; } | |
13617 | fi;; | |
13618 | esac | |
13619 | done` || { (exit 1); exit 1; } | |
13620 | # Remove the trailing spaces. | |
13621 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
13622 | ||
13623 | _ACEOF | |
13624 | ||
13625 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
13626 | # `conftest.undefs', that substitutes the proper values into | |
13627 | # config.h.in to produce config.h. The first handles `#define' | |
13628 | # templates, and the second `#undef' templates. | |
13629 | # And first: Protect against being on the right side of a sed subst in | |
13630 | # config.status. Protect against being in an unquoted here document | |
13631 | # in config.status. | |
13632 | rm -f conftest.defines conftest.undefs | |
13633 | # Using a here document instead of a string reduces the quoting nightmare. | |
13634 | # Putting comments in sed scripts is not portable. | |
13635 | # | |
13636 | # `end' is used to avoid that the second main sed command (meant for | |
13637 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
13638 | # See the Autoconf documentation for `clear'. | |
13639 | cat >confdef2sed.sed <<\_ACEOF | |
13640 | s/[\\&,]/\\&/g | |
13641 | s,[\\$`],\\&,g | |
13642 | t clear | |
13643 | : clear | |
13644 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
13645 | t end | |
13646 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
13647 | : end | |
13648 | _ACEOF | |
13649 | # If some macros were called several times there might be several times | |
13650 | # the same #defines, which is useless. Nevertheless, we may not want to | |
13651 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
13652 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
13653 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
13654 | rm -f confdef2sed.sed | |
252b5132 RH |
13655 | |
13656 | # This sed command replaces #undef with comments. This is necessary, for | |
13657 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
13658 | # on some systems where configure will not decide to define it. | |
5464f5a1 NN |
13659 | cat >>conftest.undefs <<\_ACEOF |
13660 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
13661 | _ACEOF | |
13662 | ||
13663 | # Break up conftest.defines because some shells have a limit on the size | |
13664 | # of here documents, and old seds have small limits too (100 cmds). | |
13665 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
13666 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
13667 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
13668 | echo ' :' >>$CONFIG_STATUS | |
13669 | rm -f conftest.tail | |
13670 | while grep . conftest.defines >/dev/null | |
13671 | do | |
13672 | # Write a limited-size here document to $tmp/defines.sed. | |
13673 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
13674 | # Speed up: don't consider the non `#define' lines. | |
13675 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
13676 | # Work around the forget-to-reset-the-flag bug. | |
13677 | echo 't clr' >>$CONFIG_STATUS | |
13678 | echo ': clr' >>$CONFIG_STATUS | |
13679 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
13680 | echo 'CEOF | |
13681 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
13682 | rm -f $tmp/in | |
13683 | mv $tmp/out $tmp/in | |
13684 | ' >>$CONFIG_STATUS | |
13685 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
13686 | rm -f conftest.defines | |
13687 | mv conftest.tail conftest.defines | |
13688 | done | |
13689 | rm -f conftest.defines | |
13690 | echo ' fi # grep' >>$CONFIG_STATUS | |
13691 | echo >>$CONFIG_STATUS | |
252b5132 | 13692 | |
5464f5a1 NN |
13693 | # Break up conftest.undefs because some shells have a limit on the size |
13694 | # of here documents, and old seds have small limits too (100 cmds). | |
13695 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 13696 | rm -f conftest.tail |
5464f5a1 | 13697 | while grep . conftest.undefs >/dev/null |
252b5132 | 13698 | do |
5464f5a1 NN |
13699 | # Write a limited-size here document to $tmp/undefs.sed. |
13700 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
13701 | # Speed up: don't consider the non `#undef' | |
13702 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
13703 | # Work around the forget-to-reset-the-flag bug. | |
13704 | echo 't clr' >>$CONFIG_STATUS | |
13705 | echo ': clr' >>$CONFIG_STATUS | |
13706 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 13707 | echo 'CEOF |
5464f5a1 NN |
13708 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
13709 | rm -f $tmp/in | |
13710 | mv $tmp/out $tmp/in | |
13711 | ' >>$CONFIG_STATUS | |
13712 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
13713 | rm -f conftest.undefs | |
13714 | mv conftest.tail conftest.undefs | |
252b5132 | 13715 | done |
5464f5a1 NN |
13716 | rm -f conftest.undefs |
13717 | ||
13718 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13719 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13720 | # use $as_me), people would be surprised to read: | |
13721 | # /* config.h. Generated by config.status. */ | |
13722 | if test x"$ac_file" = x-; then | |
13723 | echo "/* Generated by configure. */" >$tmp/config.h | |
13724 | else | |
13725 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
13726 | fi | |
13727 | cat $tmp/in >>$tmp/config.h | |
13728 | rm -f $tmp/in | |
13729 | if test x"$ac_file" != x-; then | |
13730 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
13731 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
13732 | echo "$as_me: $ac_file is unchanged" >&6;} | |
13733 | else | |
13734 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
13735 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13736 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13737 | X"$ac_file" : 'X\(//\)$' \| \ | |
13738 | X"$ac_file" : 'X\(/\)' \| \ | |
13739 | . : '\(.\)' 2>/dev/null || | |
13740 | echo X"$ac_file" | | |
13741 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13742 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13743 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13744 | /^X\(\/\).*/{ s//\1/; q; } | |
13745 | s/.*/./; q'` | |
13746 | { if $as_mkdir_p; then | |
13747 | mkdir -p "$ac_dir" | |
252b5132 | 13748 | else |
5464f5a1 NN |
13749 | as_dir="$ac_dir" |
13750 | as_dirs= | |
13751 | while test ! -d "$as_dir"; do | |
13752 | as_dirs="$as_dir $as_dirs" | |
13753 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
13754 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13755 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13756 | X"$as_dir" : 'X\(//\)$' \| \ | |
13757 | X"$as_dir" : 'X\(/\)' \| \ | |
13758 | . : '\(.\)' 2>/dev/null || | |
13759 | echo X"$as_dir" | | |
13760 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13761 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13762 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13763 | /^X\(\/\).*/{ s//\1/; q; } | |
13764 | s/.*/./; q'` | |
13765 | done | |
13766 | test ! -n "$as_dirs" || mkdir $as_dirs | |
13767 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
13768 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
13769 | { (exit 1); exit 1; }; }; } | |
13770 | ||
13771 | rm -f $ac_file | |
13772 | mv $tmp/config.h $ac_file | |
252b5132 | 13773 | fi |
5464f5a1 NN |
13774 | else |
13775 | cat $tmp/config.h | |
13776 | rm -f $tmp/config.h | |
252b5132 | 13777 | fi |
f5385ebf AM |
13778 | # Compute $ac_file's index in $config_headers. |
13779 | _am_stamp_count=1 | |
13780 | for _am_header in $config_headers :; do | |
13781 | case $_am_header in | |
13782 | $ac_file | $ac_file:* ) | |
13783 | break ;; | |
13784 | * ) | |
13785 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13786 | esac | |
13787 | done | |
13788 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
13789 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13790 | X$ac_file : 'X\(//\)[^/]' \| \ | |
13791 | X$ac_file : 'X\(//\)$' \| \ | |
13792 | X$ac_file : 'X\(/\)' \| \ | |
13793 | . : '\(.\)' 2>/dev/null || | |
13794 | echo X$ac_file | | |
13795 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13796 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13797 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13798 | /^X\(\/\).*/{ s//\1/; q; } | |
13799 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
5464f5a1 NN |
13800 | done |
13801 | _ACEOF | |
13802 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 13803 | |
5464f5a1 NN |
13804 | # |
13805 | # CONFIG_COMMANDS section. | |
13806 | # | |
13807 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
13808 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
13809 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13810 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
13811 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13812 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
13813 | X"$ac_dest" : 'X\(//\)$' \| \ | |
13814 | X"$ac_dest" : 'X\(/\)' \| \ | |
13815 | . : '\(.\)' 2>/dev/null || | |
13816 | echo X"$ac_dest" | | |
13817 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13818 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13819 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13820 | /^X\(\/\).*/{ s//\1/; q; } | |
13821 | s/.*/./; q'` | |
13822 | { if $as_mkdir_p; then | |
13823 | mkdir -p "$ac_dir" | |
13824 | else | |
13825 | as_dir="$ac_dir" | |
13826 | as_dirs= | |
13827 | while test ! -d "$as_dir"; do | |
13828 | as_dirs="$as_dir $as_dirs" | |
13829 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
13830 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13831 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13832 | X"$as_dir" : 'X\(//\)$' \| \ | |
13833 | X"$as_dir" : 'X\(/\)' \| \ | |
13834 | . : '\(.\)' 2>/dev/null || | |
13835 | echo X"$as_dir" | | |
13836 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13837 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13838 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13839 | /^X\(\/\).*/{ s//\1/; q; } | |
13840 | s/.*/./; q'` | |
13841 | done | |
13842 | test ! -n "$as_dirs" || mkdir $as_dirs | |
13843 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
13844 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
13845 | { (exit 1); exit 1; }; }; } | |
b3baf5d0 | 13846 | |
5464f5a1 | 13847 | ac_builddir=. |
b3baf5d0 | 13848 | |
5464f5a1 NN |
13849 | if test "$ac_dir" != .; then |
13850 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
13851 | # A "../" for each directory in $ac_dir_suffix. | |
13852 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
13853 | else | |
13854 | ac_dir_suffix= ac_top_builddir= | |
13855 | fi | |
13856 | ||
13857 | case $srcdir in | |
13858 | .) # No --srcdir option. We are building in place. | |
13859 | ac_srcdir=. | |
13860 | if test -z "$ac_top_builddir"; then | |
13861 | ac_top_srcdir=. | |
13862 | else | |
13863 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
13864 | fi ;; | |
13865 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
13866 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13867 | ac_top_srcdir=$srcdir ;; | |
13868 | *) # Relative path. | |
13869 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
13870 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
13871 | esac | |
13872 | ||
13873 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
13874 | # the directories may not exist. | |
13875 | case `pwd` in | |
13876 | .) ac_abs_builddir="$ac_dir";; | |
13877 | *) | |
13878 | case "$ac_dir" in | |
13879 | .) ac_abs_builddir=`pwd`;; | |
13880 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
13881 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
13882 | esac;; | |
13883 | esac | |
13884 | case $ac_abs_builddir in | |
13885 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13886 | *) | |
13887 | case ${ac_top_builddir}. in | |
13888 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
13889 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13890 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
13891 | esac;; | |
13892 | esac | |
13893 | case $ac_abs_builddir in | |
13894 | .) ac_abs_srcdir=$ac_srcdir;; | |
13895 | *) | |
13896 | case $ac_srcdir in | |
13897 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
13898 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
13899 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
13900 | esac;; | |
13901 | esac | |
13902 | case $ac_abs_builddir in | |
13903 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13904 | *) | |
13905 | case $ac_top_srcdir in | |
13906 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
13907 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13908 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
13909 | esac;; | |
13910 | esac | |
13911 | ||
13912 | ||
13913 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
13914 | echo "$as_me: executing $ac_dest commands" >&6;} | |
13915 | case $ac_dest in | |
f5385ebf AM |
13916 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
13917 | # Strip MF so we end up with the name of the file. | |
13918 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13919 | # Check whether this is an Automake generated Makefile or not. | |
13920 | # We used to match only the files named `Makefile.in', but | |
13921 | # some people rename them; so instead we look at the file content. | |
13922 | # Grep'ing the first line is not enough: some people post-process | |
13923 | # each Makefile.in and add a new line on top of each file to say so. | |
13924 | # So let's grep whole file. | |
13925 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
13926 | dirpart=`(dirname "$mf") 2>/dev/null || | |
13927 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13928 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13929 | X"$mf" : 'X\(//\)$' \| \ | |
13930 | X"$mf" : 'X\(/\)' \| \ | |
13931 | . : '\(.\)' 2>/dev/null || | |
13932 | echo X"$mf" | | |
13933 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13934 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13935 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13936 | /^X\(\/\).*/{ s//\1/; q; } | |
13937 | s/.*/./; q'` | |
13938 | else | |
13939 | continue | |
13940 | fi | |
13941 | # Extract the definition of DEPDIR, am__include, and am__quote | |
13942 | # from the Makefile without running `make'. | |
13943 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
13944 | test -z "$DEPDIR" && continue | |
13945 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
13946 | test -z "am__include" && continue | |
13947 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
13948 | # When using ansi2knr, U may be empty or an underscore; expand it | |
13949 | U=`sed -n 's/^U = //p' < "$mf"` | |
13950 | # Find all dependency output files, they are included files with | |
13951 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13952 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
13953 | # expansion. | |
13954 | for file in `sed -n " | |
13955 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
13956 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
13957 | # Make sure the directory exists. | |
13958 | test -f "$dirpart/$file" && continue | |
13959 | fdir=`(dirname "$file") 2>/dev/null || | |
13960 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13961 | X"$file" : 'X\(//\)[^/]' \| \ | |
13962 | X"$file" : 'X\(//\)$' \| \ | |
13963 | X"$file" : 'X\(/\)' \| \ | |
13964 | . : '\(.\)' 2>/dev/null || | |
13965 | echo X"$file" | | |
13966 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13967 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13968 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13969 | /^X\(\/\).*/{ s//\1/; q; } | |
13970 | s/.*/./; q'` | |
13971 | { if $as_mkdir_p; then | |
13972 | mkdir -p $dirpart/$fdir | |
13973 | else | |
13974 | as_dir=$dirpart/$fdir | |
13975 | as_dirs= | |
13976 | while test ! -d "$as_dir"; do | |
13977 | as_dirs="$as_dir $as_dirs" | |
13978 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
13979 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13980 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13981 | X"$as_dir" : 'X\(//\)$' \| \ | |
13982 | X"$as_dir" : 'X\(/\)' \| \ | |
13983 | . : '\(.\)' 2>/dev/null || | |
13984 | echo X"$as_dir" | | |
13985 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13986 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13987 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13988 | /^X\(\/\).*/{ s//\1/; q; } | |
13989 | s/.*/./; q'` | |
13990 | done | |
13991 | test ! -n "$as_dirs" || mkdir $as_dirs | |
13992 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
13993 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
13994 | { (exit 1); exit 1; }; }; } | |
13995 | ||
13996 | # echo "creating $dirpart/$file" | |
13997 | echo '# dummy' > "$dirpart/$file" | |
13998 | done | |
13999 | done | |
14000 | ;; | |
5464f5a1 NN |
14001 | default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;; |
14002 | esac | |
14003 | done | |
14004 | _ACEOF | |
14005 | ||
14006 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14007 | ||
14008 | { (exit 0); exit 0; } | |
14009 | _ACEOF | |
252b5132 | 14010 | chmod +x $CONFIG_STATUS |
5464f5a1 NN |
14011 | ac_clean_files=$ac_clean_files_save |
14012 | ||
14013 | ||
14014 | # configure is writing to config.log, and then calls config.status. | |
14015 | # config.status does its own redirection, appending to config.log. | |
14016 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14017 | # by configure, so config.status won't be able to write to it; its | |
14018 | # output is simply discarded. So we exec the FD to /dev/null, | |
14019 | # effectively closing config.log, so it can be properly (re)opened and | |
14020 | # appended to by config.status. When coming back to configure, we | |
14021 | # need to make the FD available again. | |
14022 | if test "$no_create" != yes; then | |
14023 | ac_cs_success=: | |
14024 | ac_config_status_args= | |
14025 | test "$silent" = yes && | |
14026 | ac_config_status_args="$ac_config_status_args --quiet" | |
14027 | exec 5>/dev/null | |
14028 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14029 | exec 5>>config.log | |
14030 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14031 | # would make configure fail if this is the last instruction. | |
14032 | $ac_cs_success || { (exit 1); exit 1; } | |
14033 | fi | |
252b5132 | 14034 | |
55c80943 | 14035 |